:root {
    --wine: #66192C;
    --wine-deep: #3d0f1a;
    --wine-mid: #8B2A42;
    --cream: #FDF6E5;
    --cream-soft: #F7EED8;
    --ink: #1a1214;
    --muted: #6b5a52;
    --gold: #F9A826;
    --gold-soft: #FBC252;
    --line: rgba(102, 25, 44, 0.12);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Sora', system-ui, sans-serif;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ─── Top nav ─── */
.topnav {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: calc(6px + var(--safe-top)) 16px 6px;
    background: rgba(253, 246, 229, 0.88);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-bottom: 1px solid var(--line);
}

.topnav__brand {
    display: flex;
    align-items: center;
    min-height: 44px;
    flex-shrink: 0;
}

.topnav__brand img {
    height: 24px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(13%) sepia(45%) saturate(4000%) hue-rotate(315deg) brightness(95%);
}

.topnav__links {
    display: none;
    gap: 22px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--muted);
}

.topnav__links a:hover { color: var(--wine); }

.topnav__auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.topnav__auth a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    border-radius: 980px;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.topnav__auth a:first-child {
    color: var(--wine);
    background: rgba(102, 25, 44, 0.1);
}

.topnav__auth a:last-child {
    color: var(--cream);
    background: var(--wine);
}

.topnav__auth a:active {
    opacity: 0.85;
    transform: scale(0.97);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:active { transform: scale(0.98); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--ghost {
    background: transparent;
    color: var(--cream);
    border: 1.5px solid rgba(253, 246, 229, 0.35);
}
.btn--ghost-dark {
    background: transparent;
    color: var(--wine);
    border: 1.5px solid rgba(102, 25, 44, 0.25);
}

/* ─── Hero ─── */
.hero {
    position: relative;
    min-height: min(92dvh, 820px);
    display: grid;
    align-items: start;
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(139, 42, 66, 0.55) 0%, transparent 60%),
        linear-gradient(165deg, var(--wine-deep) 0%, var(--wine) 48%, #2a0c14 100%);
    color: var(--cream);
    overflow: hidden;
    padding: 18px 20px 0;
}

.hero__copy {
    position: relative;
    z-index: 2;
    max-width: 34rem;
    padding-top: 8px;
    padding-bottom: 40px;
    animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.35rem, 7.5vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin-bottom: 14px;
}

.hero__lead {
    font-size: clamp(0.95rem, 2.4vw, 1.1rem);
    color: rgba(253, 246, 229, 0.78);
    max-width: 28rem;
    margin-bottom: 24px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero__stage {
    position: absolute;
    right: -2%;
    bottom: 0;
    width: min(56vw, 400px);
    height: 72%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
    animation: floatProduct 5.5s ease-in-out infinite;
}

.hero__glow {
    position: absolute;
    left: 50%;
    bottom: 8%;
    width: 70%;
    height: 28%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(249, 168, 38, 0.35), transparent 70%);
}

.hero__product {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatProduct {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ─── Day band ─── */
.dayband {
    background: linear-gradient(120deg, #1a0a10, var(--wine));
    color: var(--cream);
    overflow: visible;
}

.dayband__inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 200px;
    padding: 28px 20px 0;
    overflow: visible;
}

.dayband__kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 8px;
}

.dayband__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.dayband__desc {
    color: rgba(253, 246, 229, 0.72);
    font-size: 0.92rem;
    max-width: 28rem;
    padding-bottom: 28px;
}

.dayband__img {
    justify-self: center;
    height: 220px;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: bottom;
    animation: floatProduct 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* ─── Content blocks ─── */
.block {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 20px 24px;
}

.block--dark {
    max-width: none;
    background: linear-gradient(180deg, #1a0a10 0%, var(--wine-deep) 100%);
    color: var(--cream);
    padding: 64px 0 40px;
}

.block--dark .block__head,
.block--dark .price-note {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.block--dark .block__desc,
.block--dark .price-note { color: rgba(253, 246, 229, 0.65); }

.block__head { margin-bottom: 28px; max-width: 36rem; }

.block__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: inherit;
}

.block__desc {
    margin-top: 10px;
    color: var(--muted);
    font-size: 1rem;
}

.price-note {
    margin-top: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

/* ─── Product rail ─── */
.rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 12px;
    scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

.rail--cones { padding-top: 8px; }

.flavor-tile {
    flex: 0 0 148px;
    scroll-snap-align: start;
    border: none;
    background: transparent;
    text-align: center;
    font-family: inherit;
    color: inherit;
    padding-top: 96px;
}

.rail--cones .flavor-tile { padding-top: 112px; }

.flavor-tile__pedestal {
    position: relative;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f3e9d4 0%, #fff 75%);
    border: 1px solid rgba(102, 25, 44, 0.1);
    overflow: visible;
    z-index: 1;
}

.block--dark .flavor-tile__pedestal {
    background: linear-gradient(180deg, rgba(253, 246, 229, 0.16), rgba(253, 246, 229, 0.06));
    border-color: rgba(253, 246, 229, 0.18);
}

.flavor-tile__img {
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    height: 152px;
    width: auto;
    max-width: 126px;
    object-fit: contain;
    object-position: bottom;
    z-index: 3;
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.rail--cones .flavor-tile__img { height: 168px; }

.flavor-tile:hover .flavor-tile__img {
    transform: translateX(-50%) translateY(-6px);
}

.flavor-tile__name {
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.flavor-tile__tag {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ─── Smoothie grid ─── */
.smoothie-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
}

.smoothie-item {
    text-align: center;
    padding-top: 88px;
    border: none;
    background: transparent;
    font-family: inherit;
    color: inherit;
    width: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.smoothie-item__stage {
    position: relative;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f3e9d4 0%, #fff 75%);
    border: 1px solid rgba(102, 25, 44, 0.1);
    overflow: visible;
}

.smoothie-item__img {
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    height: 132px;
    width: auto;
    max-width: 96px;
    object-fit: contain;
    object-position: bottom;
    z-index: 2;
    transition: transform 0.35s ease;
}

.smoothie-item:hover .smoothie-item__img {
    transform: translateX(-50%) translateY(-6px);
}

.smoothie-item__name {
    position: relative;
    z-index: 3;
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.smoothie-item__price {
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--wine);
}

.smoothie-item__hint {
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ─── Smoothie sheet ─── */
.sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
}

.sheet.is-open {
    pointer-events: auto;
    visibility: visible;
}

.sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 10, 16, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.sheet.is-open .sheet__backdrop { opacity: 1; }

.sheet__panel {
    position: relative;
    width: min(100%, 440px);
    max-height: min(86dvh, 640px);
    overflow: auto;
    background: var(--cream);
    border-radius: 28px 28px 0 0;
    padding: 12px 22px calc(28px + var(--safe-bottom));
    transform: translateY(108%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 -12px 40px rgba(26, 10, 16, 0.18);
}

.sheet.is-open .sheet__panel { transform: translateY(0); }

.sheet__handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: rgba(102, 25, 44, 0.18);
    margin: 4px auto 18px;
}

.sheet__top {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: end;
    margin-bottom: 22px;
}

.sheet__img-wrap {
    height: 110px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.sheet__img {
    height: 150px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    object-position: bottom;
}

.sheet__kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.sheet__title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--wine);
    margin-bottom: 6px;
}

.sheet__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

.sheet__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.sheet__ings {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.sheet__ings li {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--wine);
    background: rgba(102, 25, 44, 0.08);
    border: 1px solid rgba(102, 25, 44, 0.12);
    padding: 8px 12px;
    border-radius: 999px;
}

.sheet__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(102, 25, 44, 0.08);
    color: var(--wine);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.sheet__cta {
    display: flex;
    width: 100%;
}

/* ─── Closer ─── */
.closer {
    max-width: 1100px;
    margin: 24px auto 0;
    padding: 72px 20px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(249, 168, 38, 0.18), transparent 55%),
        linear-gradient(180deg, var(--cream-soft), var(--cream));
    border-top: 1px solid var(--line);
}

.closer__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--wine);
    margin-bottom: 12px;
}

.closer__desc {
    color: var(--muted);
    margin-bottom: 28px;
}

.closer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.closer__account {
    margin-top: 18px;
    font-size: 0.86rem;
    color: var(--muted);
}

.closer__account a {
    color: var(--wine);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* ─── Footer ─── */
.site-footer {
    padding: 28px 20px calc(28px + var(--safe-bottom));
    text-align: center;
    border-top: 1px solid var(--line);
}

.site-footer__logo {
    height: 28px;
    width: auto;
    margin: 0 auto 14px;
    filter: brightness(0) saturate(100%) invert(13%) sepia(45%) saturate(4000%) hue-rotate(315deg) brightness(95%);
}

.site-footer__legal {
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ─── Desktop ─── */
@media (min-width: 760px) {
    .topnav {
        padding-left: 40px;
        padding-right: 40px;
    }

    .topnav__links { display: flex; }

    .hero {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: center;
        padding: 28px 48px 0;
        min-height: 88dvh;
    }

    .hero__copy {
        padding-top: 0;
        padding-bottom: 48px;
        padding-right: 24px;
    }

    .hero__stage {
        position: relative;
        right: auto;
        width: 100%;
        height: min(78vh, 680px);
        justify-self: end;
    }

    .hero__product {
        height: 100%;
    }

    .dayband__inner {
        padding-left: 48px;
        padding-right: 48px;
        min-height: 240px;
    }

    .dayband__img { height: 250px; }

    .block { padding-left: 48px; padding-right: 48px; }

    .block--dark .block__head,
    .block--dark .price-note {
        padding-left: 48px;
        padding-right: 48px;
    }

    .rail {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        overflow: visible;
        padding-top: 8px;
        gap: 18px;
    }

    .flavor-tile { flex: none; }

    .smoothie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 28px 18px;
    }

    .smoothie-item { padding-top: 100px; }
    .smoothie-item__img { height: 148px; max-width: 108px; }
}

@media (max-width: 759px) {
    .hero {
        min-height: min(88dvh, 720px);
        padding: 12px 20px 0;
    }

    .hero__copy {
        max-width: 62%;
        padding-top: 4px;
        padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    }

    .hero__stage {
        width: 54vw;
        height: 62%;
        right: -8%;
    }

    .dayband__inner {
        grid-template-columns: 1fr 120px;
    }

    .dayband__img { height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__copy,
    .hero__stage,
    .dayband__img,
    .flavor-tile__img,
    .smoothie-item__img {
        animation: none !important;
        transition: none !important;
    }
}
