/* =========================
   Theme tokens & resets
   ========================= */
:root {
    --bg: #0b0d12;
    --bg2: #0e1118;
    --fg: #e9eef7;
    --muted: #a7b0c0;
    --card: #121520;
    --line: #1b2230;
    --accent: #0ab;
    --accent2: #2af;
    --radius: 12px;
    --wrap: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

a { color: inherit; }
img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius);
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   Navigation
   ========================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(11, 13, 18, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 8px;
}
.brand { font-weight: 700; letter-spacing: .2px; }
.menu { display: flex; gap: 18px; }
.menu a { color: var(--muted); text-decoration: none; }
.menu a:hover { color: var(--fg); }
.hamburger {
    display: none;
    background: none;
    border: 0;
    color: var(--fg);
    font-size: 22px;
}

/* =========================
   Typography
   ========================= */
h1 {
    /* Use the responsive clamp from your inline CSS (keeps large-screen sizing)
       If you prefer your old 2rem on tiny screens, clamp already covers it. */
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    margin: 0 0 10px;
}

.sub,
.subhead { /* alias your old .subhead to .sub styles */
    color: var(--muted);
    margin: 0 0 18px;
}

/* Small meta text */
.meta {
    color: var(--muted);
    font-size: 14px;
}

/* =========================
   Hero
   ========================= */
.hero {
    /* Keep your visual from the inline styles.
       If you still want "full-height center", add .hero--full on a specific page. */
    padding: 72px 0;
    background: radial-gradient(1400px 800px at 15% -10%, #141a26 0%, transparent 60%);
}
.hero-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
}

/* Optional helper if you used .hero-content previously */
.hero-content { max-width: 700px; margin-inline: auto; text-align: center; }

/* =========================
   Buttons
   ========================= */
.btn {
    display: inline-block;
    padding: 12px 16px;            /* your inline padding */
    border-radius: 10px;           /* match inline radius */
    border: 1px solid #2a3245;     /* subtle border from inline */
    text-decoration: none;
    transition: transform 0.15s ease;
}
.btn:hover { transform: scale(1.05); }

.btn-primary {
    background: linear-gradient(180deg, var(--accent2), var(--accent));
    border-color: #079;
    color: #fff;
}

/* Reduced motion: disable scale bump */
@media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
    .btn:hover { transform: none; }
}

/* =========================
   Sections, grids, cards
   ========================= */
.section { padding: 56px 0; }
.alt { background: var(--bg2); }
.lede { color: var(--muted); }

.grid { display: grid; gap: 22px; }
.two   { grid-template-columns: 1.1fr .9fr; }
.three { grid-template-columns: repeat(3, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.caption { color: var(--muted); font-size: 12px; }

/* =========================
   Details / summary
   ========================= */
details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
}
details + details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; }

/* =========================
   Forms
   ========================= */
.email-form { display: flex; gap: 10px; flex-wrap: wrap; }
.email-form input {
    flex: 1;
    min-width: 240px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #2a3245;
    background: #0b0f17;
    color: var(--fg);
}
.email-form button {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #2a3245;
    background: linear-gradient(180deg, var(--accent2), var(--accent));
    color: #fff;
    cursor: pointer;
}

/* =========================
   Footer
   ========================= */
.footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    background: #0a0c12;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
}
.footer nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 14px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 920px) {
    .hero-grid, .two { grid-template-columns: 1fr; }
    .cards-3, .three { grid-template-columns: 1fr 1fr; }

    .menu { display: none; }
    .hamburger { display: block; }

    .menu.open {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
    }
}

@media (max-width: 600px) {
    .cards-3, .three { grid-template-columns: 1fr; }
}

/* =========================
   Optional: full-height hero
   ========================= */
.hero--full {
    min-height: 100svh;            /* avoids mobile URL bar issues */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    align-items: start;
}
.proof-strip figure { margin: 0; text-align: center; }
.proof-strip img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.proof-strip figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }

@media (max-width: 720px) {
    .proof-strip { grid-template-columns: 1fr 1fr; }
}

/* Core layout */
.carousel { position: relative; margin-top: 12px; }
.car-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    outline: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-item {
    scroll-snap-align: center;
    margin: 0;
    text-align: center;
}
.car-item img {
    width: min(420px, 92vw);
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    margin-inline: auto;
}
.car-item figcaption {
    margin-top: 6px; font-size: 12px; color: var(--muted);
}

/* Arrows */
.car-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid color-mix(in oklab, #000 14%, transparent);
    background: color-mix(in oklab, #fff 86%, transparent);
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
    display: grid; place-items: center;
    font-size: 22px; line-height: 1; cursor: pointer;
    user-select: none;
}
.car-btn:hover { filter: brightness(0.96); }
.car-btn.prev { left: -8px; }
.car-btn.next { right: -8px; }
@media (max-width: 720px) { .car-btn { display: none; } } /* rely on swipe on mobile */

/* Dots */
.car-dots {
    display: flex; gap: 8px; justify-content: center;
    margin-top: 10px;
}
.car-dots > button {
    width: 8px; height: 8px; border-radius: 50%;
    border: 0; background: #c7c7c7; cursor: pointer;
}
.car-dots > button[aria-selected="true"] { background: #555; }

/* Reduce motion for folks who prefer it */
@media (prefers-reduced-motion: no-preference) {
    .car-track { scroll-behavior: smooth; }
}

/* Swipeable info strip */
.info-snap { position: relative; margin-top: 18px; }
.info-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 1rem;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px; /* room for dots */
}
.info-track::-webkit-scrollbar { display: none; }
.info-track { scrollbar-width: none; }

.info-card { scroll-snap-align: start; }

/* Dots */
.info-dots {
    display: flex; gap: 8px; justify-content: center; margin-top: 8px;
}
.info-dots > button {
    width: 8px; height: 8px; border-radius: 50%;
    border: 0; background: var(--muted, #8892a6); opacity: .5;
}
.info-dots > button[aria-selected="true"] { opacity: 1; }

/* Arrows */
.info-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    border: 0; background: rgba(0,0,0,.35); color: #fff;
    width: 32px; height: 32px; border-radius: 999px; cursor: pointer;
    display: grid; place-items: center;
}
.info-btn.prev { left: -6px; }
.info-btn.next { right: -6px; }

/* Desktop: lock into a tidy 3-across grid (no horizontal scroll) */
@media (min-width: 900px) {
    .info-track {
        overflow: visible;
        scroll-snap-type: none;
        grid-auto-flow: unset;
        grid-auto-columns: unset;
        grid-template-columns: repeat(3, 1fr);
    }
    .info-btn, .info-dots { display: none; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .info-track { scroll-behavior: auto; }
}

/* Showcase: swipe on mobile, grid on desktop */
.showcase-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding: 6px 4px 8px;
    scroll-snap-type: x mandatory;
    scroll-padding: 8px;
    -webkit-overflow-scrolling: touch;
}
.showcase-strip::-webkit-scrollbar { display: none; }
.showcase-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}
.showcase-card picture,
.showcase-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}
.showcase-card .caption { margin-top: 8px; }

/* Gift card variant */
.gift-card {
    align-items: flex-start;
    padding: 16px;
}
.gift-card strong { display: block; }

/* Desktop: turn into a tidy grid, no horizontal scroll */
@media (min-width: 900px) {
    .showcase-strip {
        overflow: visible;
        grid-auto-flow: unset;
        grid-auto-columns: unset;
        grid-template-columns: repeat(4, 1fr); /* 3 samples + 1 gift card */
    }
}


/* Showcase main image */
.showcase-main {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.showcase-main img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.showcase-main .caption {
    margin-top: 8px;
    max-width: 60ch;
    font-size: 0.9rem;
    color: var(--muted, #666);
}
