﻿/* ============================================================
   Sorino.Ai - fine-dining AI brand surface
   "Aubergine & Champagne" palette: deep aubergine/plum + champagne gold
   + mulberry-rose on warm porcelain. Playfair Display headings, Switzer
   body, Geist Mono labels. Authored from the Sorino.Ai design system
   (DESIGN.md). Kept clear of the KwickBlocks family (Construction cobalt,
   Invoicing teal), of Hospitality's forest green and of
   FoodAndBeverage's paprika-red.
   ============================================================ */

:root {
    /* --- Palette --- */
    /* Aubergine anchors, champagne gold energises on dark, mulberry-rose
       accents on light, warm porcelain grounds. Token names kept for
       stability so component CSS is untouched. */
    --bone: #F6F2EE;            /* warm porcelain ground */
    --bone-deep: #ECE4DB;       /* alt band / cards */
    --bone-card: #FFFFFF;       /* white cards */
    --ink-text: #241820;        /* warm plum near-black */
    --ink-soft: #5F5058;        /* muted mauve-grey */
    --wine: #4E2542;            /* deep aubergine (anchor) */
    --wine-deep: #37182F;
    --wine-tint: #6A3A5B;
    --saffron: #D8B57A;         /* champagne gold (accent on dark) */
    --saffron-bright: #E7CB98;
    --saffron-soft: #F0E1C6;
    --terracotta: #8E355A;      /* mulberry-rose (accent on light) - WCAG 4.5:1+ on porcelain */
    --terracotta-deep: #6F2645; /* deep mulberry */

    /* dark surfaces (nav menu, audio player, footer) */
    --ink: #1B0F18;             /* deep aubergine-black */
    --ink-elev: #291A26;
    --ink-line: rgba(246, 242, 238, 0.14);

    /* semantic aliases used across components */
    --chalk: var(--bone);
    --chalk-deep: var(--bone-deep);
    --text-on-chalk: var(--ink-text);
    --text-on-chalk-soft: var(--ink-soft);
    --line-on-chalk: rgba(36, 24, 32, 0.14);
    --cobalt: var(--wine);
    --cobalt-deep: var(--wine-deep);
    --cobalt-bright: var(--wine-tint);
    --text-on-cobalt: var(--bone);
    --line-on-cobalt: rgba(246, 242, 238, 0.20);
    --hot: var(--terracotta);
    --hot-deep: var(--terracotta-deep);
    --text-on-ink: var(--bone);
    --text-on-ink-soft: rgba(246, 242, 238, 0.66);
    --frame-shadow: 0 24px 60px -28px rgba(55, 24, 47, 0.5);

    /* --- Type --- */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --fs-hero: clamp(2.9rem, 6.2vw, 5.4rem);
    --fs-display: clamp(2.1rem, 4.2vw, 3.5rem);
    --fs-title: clamp(1.4rem, 2.2vw, 2rem);
    --fs-lead: clamp(1.05rem, 1.4vw, 1.28rem);
    --fs-body: 1.0625rem;
    --fs-eyebrow: 0.78rem;

    /* --- Spacing --- */
    --s-4: 0.25rem;
    --s-8: 0.5rem;
    --s-12: 0.75rem;
    --s-16: 1rem;
    --s-24: 1.5rem;
    --s-32: 2rem;
    --s-48: 3rem;
    --s-64: 4rem;
    --s-96: 6rem;

    /* --- Motion --- */
    --dur-feedback: 160ms;
    --dur-state: 320ms;
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);

    --maxw: 1200px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--ink-text);
    background: var(--bone);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: var(--saffron); color: var(--ink-text); }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 1000;
    background: var(--wine);
    color: var(--bone);
    padding: var(--s-12) var(--s-16);
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Typography utilities
   ============================================================ */
.display {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-display);
    line-height: 1.04;
    letter-spacing: -0.015em;
    margin: 0;
}

.headline {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-display);
    line-height: 1.06;
    letter-spacing: -0.015em;
    margin: 0;
}

.title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-title);
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0;
}

.lead {
    font-family: var(--font-sans);
    font-size: var(--fs-lead);
    line-height: 1.5;
    margin: 0;
}

.body { font-size: var(--fs-body); line-height: 1.6; margin: 0; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
    color: var(--terracotta);
}

.measure { max-width: 65ch; }
.serif-accent { font-family: var(--font-display); font-style: italic; color: var(--saffron); }

/* ============================================================
   Layout - container, panels, sections
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.panel {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4rem, 8vw, 7rem);
}

.panel-cream { background: var(--bone); color: var(--ink-text); }
.panel-cream-deep { background: var(--bone-deep); color: var(--ink-text); }
.panel-wine { background: var(--wine); color: var(--bone); }
.panel-wine-grad {
    background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%);
    color: var(--bone);
}
.panel-ink { background: var(--ink); color: var(--bone); }

/* keep these legacy aliases working for retained markup */
.panel-cobalt { background: var(--wine); color: var(--bone); }
.panel-chalk { background: var(--bone); color: var(--ink-text); }

.panel-wine .eyebrow,
.panel-wine-grad .eyebrow,
.panel-ink .eyebrow { color: var(--saffron); }

.section-head { max-width: 60ch; }
.section-head .eyebrow { margin-bottom: var(--s-16); }
.section-head .headline { margin-bottom: var(--s-16); }
.section-lead { color: var(--ink-soft); max-width: 56ch; }
.panel-wine .section-lead,
.panel-wine-grad .section-lead,
.panel-ink .section-lead { color: rgba(246, 244, 236, 0.78); }

/* ============================================================
   Buttons
   ============================================================ */
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-8);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform var(--dur-feedback) var(--ease-out-quart),
                background var(--dur-feedback) var(--ease-out-quart),
                border-color var(--dur-feedback) var(--ease-out-quart),
                box-shadow var(--dur-state) var(--ease-out-quart);
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: translateY(0); }

/* on light grounds */
.cta-primary {
    background: var(--wine);
    color: var(--bone);
    box-shadow: 0 12px 28px -14px rgba(55, 24, 47, 0.7);
}
.cta-primary:hover { background: var(--wine-deep); box-shadow: 0 18px 36px -16px rgba(55, 24, 47, 0.8); }

.cta-secondary {
    background: transparent;
    color: var(--ink-text);
    border-color: rgba(36, 36, 36, 0.28);
}
.cta-secondary:hover { border-color: var(--ink-text); background: rgba(36, 36, 36, 0.04); }

/* on wine / ink grounds */
.panel-wine .cta-primary,
.panel-wine-grad .cta-primary,
.panel-ink .cta-primary,
.cta-on-dark.cta-primary {
    background: var(--saffron);
    color: var(--ink-text);
    box-shadow: 0 14px 30px -14px rgba(216, 181, 122, 0.55);
}
.panel-wine .cta-primary:hover,
.panel-wine-grad .cta-primary:hover,
.panel-ink .cta-primary:hover,
.cta-on-dark.cta-primary:hover { background: var(--saffron-bright); }

.panel-wine .cta-secondary,
.panel-wine-grad .cta-secondary,
.panel-ink .cta-secondary,
.cta-on-dark.cta-secondary {
    color: var(--bone);
    border-color: rgba(246, 244, 236, 0.4);
}
.panel-wine .cta-secondary:hover,
.panel-wine-grad .cta-secondary:hover,
.panel-ink .cta-secondary:hover,
.cta-on-dark.cta-secondary:hover { border-color: var(--bone); background: rgba(246, 244, 236, 0.08); }

.cta:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-16); align-items: center; }

/* Supporting hook line beneath a primary CTA (instant-demo mechanic) */
.cta-hook {
    margin: var(--s-16) 0 0;
    max-width: 46ch;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink-soft);
}
.cta-hook-dark { color: rgba(246, 244, 236, 0.72); }
.final-cta-actions .cta-hook { max-width: none; text-align: center; }

/* ============================================================
   Scroll reveal
   ============================================================ */
/* Progressive enhancement: content is visible until reveal.js opts in by
   adding .has-reveal to <html>, then off-screen items animate in on scroll
   (reveal.js sets data-reveal="shown"). */
.has-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease-out-quint), transform 0.6s var(--ease-out-quint);
    transition-delay: var(--reveal-delay, 0ms);
}
.has-reveal [data-reveal="shown"] { opacity: 1; transform: none; }

/* ============================================================
   Site navigation
   ============================================================ */
.site-nav { position: relative; z-index: 30; }

.nav-row {
    display: flex;
    align-items: center;
    gap: var(--s-24);
    padding: var(--s-16) var(--gutter);
    max-width: 1320px;
    margin-inline: auto;
}

.brand-mark { display: inline-flex; align-items: center; gap: var(--s-12); }
.brand-logo.mark { width: 32px; height: 32px; flex: none; }
/* Coupe mark: glass outline in the nav's current colour (cream on dark hero,
   ink on light pages) so it always reads; the wine fills gold, a glint twinkles. */
.brand-logo .mark-glass,
.brand-logo .mark-wine,
.brand-logo .mark-glint { transform-box: view-box; }
.brand-logo .mark-glass { transform-origin: 16px 16px; animation: coupe-glass 560ms var(--ease-out-quint) both; }
.brand-logo .mark-wine { transform-origin: 16px 16px; animation: coupe-wine 700ms var(--ease-out-quint) 200ms both; }
.brand-logo .mark-glint { transform-origin: 22.6px 6px; animation: coupe-glint 520ms var(--ease-out-quint) 640ms both; }
@keyframes coupe-glass { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes coupe-wine { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: none; } }
@keyframes coupe-glint { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
.brand-lockup { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.32rem;
    letter-spacing: -0.01em;
    color: currentColor;
}
.brand-dot { color: var(--saffron); }
.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--s-8);
    margin-left: auto;
}

.nav-link {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--s-8) var(--s-12);
    border-radius: 8px;
    color: currentColor;
    transition: background var(--dur-feedback) var(--ease-out-quart), opacity var(--dur-feedback);
}
.nav-link:hover { background: rgba(246, 244, 236, 0.1); }
.panel-cream .nav-link:hover,
.panel-chalk .nav-link:hover { background: rgba(36, 36, 36, 0.06); }

.cta-nav { margin-left: var(--s-8); padding: 0.6rem 1.2rem; }

/* Use Cases mega-menu */
.nav-uc { display: inline-flex; position: relative; }
.nav-uc-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--s-4);
    color: currentColor;
}
.nav-uc-caret { font-size: 0.7em; transition: transform var(--dur-state) var(--ease-out-quart); }
.nav-uc:hover .nav-uc-caret,
.nav-uc:focus-within .nav-uc-caret { transform: rotate(180deg); }
.nav-uc-trigger:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }

.uc-megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    padding-top: var(--s-12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur-state) var(--ease-out-quart),
                transform var(--dur-state) var(--ease-out-quart);
    z-index: 60;
}
.nav-uc:hover .uc-megamenu,
.nav-uc:focus-within .uc-megamenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.uc-megamenu-inner {
    width: min(86vw, 880px);
    background: var(--ink);
    color: var(--bone);
    border: 1px solid var(--ink-line);
    border-radius: 16px;
    box-shadow: var(--frame-shadow);
    padding: var(--s-24);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-24) var(--s-32);
}
@media (min-width: 1100px) {
    .uc-megamenu-inner { grid-template-columns: repeat(4, 1fr); }
}

.uc-group-head {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--saffron);
    margin: 0 0 var(--s-12);
    padding-bottom: var(--s-8);
    border-bottom: 1px solid var(--ink-line);
}

.uc-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-4); }

.uc-row {
    display: flex;
    align-items: center;
    gap: var(--s-12);
    padding: var(--s-8) var(--s-12);
    border-radius: 10px;
    color: var(--bone);
    transition: background var(--dur-feedback) var(--ease-out-quart);
}
.uc-row:hover, .uc-row:focus-visible { background: var(--ink-elev); }

.uc-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.uc-row-title { font-weight: 600; font-size: 0.92rem; letter-spacing: -0.01em; line-height: 1.2; }
.uc-row-sub { font-size: 0.8rem; line-height: 1.3; color: var(--text-on-ink-soft); }
.uc-row-arrow {
    margin-left: auto;
    font-family: var(--font-mono);
    color: var(--text-on-ink-soft);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--dur-feedback) var(--ease-out-quart), transform var(--dur-feedback) var(--ease-out-quart);
}
.uc-row:hover .uc-row-arrow, .uc-row:focus-visible .uc-row-arrow { opacity: 1; transform: none; color: var(--saffron); }

/* mobile hamburger */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-burger { display: none; }

@media (max-width: 900px) {
    .nav-burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 11px;
        margin-left: auto;
        cursor: pointer;
        border: 1px solid currentColor;
        border-radius: 10px;
        color: currentColor;
    }
    .nav-burger span { display: block; height: 2px; width: 100%; background: currentColor;
        transition: transform var(--dur-state) var(--ease-out-quart), opacity var(--dur-feedback) var(--ease-out-quart); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: var(--s-8);
        background: var(--ink);
        color: var(--bone);
        border-top: 1px solid var(--ink-line);
        padding: var(--s-24);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height var(--dur-state) var(--ease-out-quart), opacity var(--dur-state) var(--ease-out-quart);
        z-index: 60;
    }
    .nav-toggle:checked ~ .nav-links {
        max-height: calc(100vh - 64px);
        overflow: auto;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links .nav-link { display: inline-flex; color: var(--bone); }
    .nav-links .nav-link:hover { background: var(--ink-elev); }
    .nav-links .cta-nav { width: 100%; margin: var(--s-8) 0 0; }

    .nav-uc { display: block; width: 100%; }
    .nav-uc-trigger { width: 100%; justify-content: space-between; color: var(--bone); padding: var(--s-8) var(--s-12); }
    .uc-megamenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding-top: var(--s-12);
    }
    .uc-megamenu-inner {
        width: auto;
        grid-template-columns: 1fr;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: var(--s-16);
    }
    .uc-row-arrow { opacity: 1; transform: none; }
}

/* slim-band pages must let the dropdown escape the clipped panel */
.lead-nav-band,
.page-mini-hero { overflow: visible; position: relative; z-index: 30; }

/* ============================================================
   Hero
   ============================================================ */
.panel-hero {
    position: relative;
    color: var(--bone);
    background: var(--wine-deep);
    padding: 0;
    overflow: hidden;
    isolation: isolate;
}
.panel-hero > .site-nav { z-index: 30; }

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-video, .hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(27, 15, 24, 0.55) 0%, rgba(27, 15, 24, 0.35) 40%, rgba(55, 24, 47, 0.85) 100%),
        linear-gradient(95deg, rgba(27, 15, 24, 0.78) 0%, rgba(27, 15, 24, 0.25) 60%, transparent 100%);
}

.hero-inner {
    max-width: 1320px;
    margin-inline: auto;
    padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4rem, 9vw, 7rem);
    display: grid;
    gap: var(--s-32);
    align-items: end;
}
.hero-copy { max-width: 56rem; }
.hero-eyebrow { color: var(--saffron); margin-bottom: var(--s-24); }
.hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-hero);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0 0 var(--s-24);
    max-width: 20ch;
    text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--saffron); }
.hero-lead {
    font-size: var(--fs-lead);
    line-height: 1.5;
    color: rgba(246, 244, 236, 0.92);
    margin: 0 0 var(--s-32);
    max-width: 42ch;
}

/* Hero CTAs stay on a single line side by side on wider screens; the longer
   primary label needs more room, so wrap (and go full-width) earlier on phones. */
.panel-hero .cta-row { flex-wrap: nowrap; }
@media (max-width: 760px) {
    .panel-hero .cta-row { flex-wrap: wrap; }
    .panel-hero .cta-row .cta { flex: 1 1 100%; justify-content: center; }
}

/* The three user wow-factors, on one row */
.hero-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-32);
    margin-top: var(--s-32);
    padding-top: var(--s-24);
    border-top: 1px solid rgba(246, 244, 236, 0.2);
}
@media (max-width: 680px) { .hero-strip { grid-template-columns: 1fr; gap: var(--s-16); } }
.hero-strip-item { display: flex; flex-direction: column; gap: var(--s-4); }
.hero-strip-k {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.1rem, 0.9rem + 0.7vw, 1.35rem);
    line-height: 1.1;
    color: var(--saffron);
}
.hero-strip-v {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
    color: rgba(246, 244, 236, 0.72);
}
/* Match the reference hero proof-bullet legibility on desktop; leave mobile size. */
@media (min-width: 681px) { .hero-strip-v { font-size: 0.95rem; line-height: 1.4; } }

/* ============================================================
   The Shift
   ============================================================ */
.shift-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-48);
    align-items: center;
}
@media (min-width: 880px) {
    .shift-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-64); }
}
.shift-stat {
    background: var(--bone-card);
    border: 1px solid var(--line-on-chalk);
    border-radius: 20px;
    padding: var(--s-32);
    box-shadow: var(--frame-shadow);
}
.shift-stat-num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1;
    color: var(--wine);
    letter-spacing: -0.02em;
}
.shift-stat-num span { color: var(--terracotta); }
.shift-stat-label { margin-top: var(--s-12); color: var(--ink-soft); font-size: 0.95rem; }
.shift-stat-src {
    margin-top: var(--s-16);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    opacity: 0.8;
}

/* ============================================================
   Knowledge Base - the brain + lifecycle tiles
   ============================================================ */
.kb-foundation {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-24);
    margin-bottom: var(--s-64);
}
@media (min-width: 760px) {
    .kb-foundation { grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: var(--s-48); }
}
.kb-brain {
    background: var(--ink);
    color: var(--bone);
    border-radius: 20px;
    padding: var(--s-32);
    text-align: center;
    box-shadow: var(--frame-shadow);
}
.kb-brain-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--saffron);
    margin: 0 0 var(--s-12);
}
.kb-brain-title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin: 0; }
.kb-fan { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-12); }
@media (min-width: 520px) { .kb-fan { grid-template-columns: repeat(4, 1fr); } }
.kb-fan-item {
    background: var(--bone-card);
    border: 1px solid var(--line-on-chalk);
    border-radius: 14px;
    padding: var(--s-16);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wine);
    transition: transform var(--dur-feedback) var(--ease-out-quart), border-color var(--dur-feedback);
}
.kb-fan-item:hover { transform: translateY(-3px); border-color: var(--terracotta); }
.panel-cream-deep .kb-fan-item { background: var(--bone); }

.kb-phase { margin-top: var(--s-48); }
.kb-phase-head {
    display: flex;
    align-items: baseline;
    gap: var(--s-16);
    margin-bottom: var(--s-24);
    padding-bottom: var(--s-12);
    border-bottom: 1px solid var(--line-on-chalk);
}
.kb-phase-idx { font-family: var(--font-mono); font-size: 0.75rem; color: var(--terracotta); letter-spacing: 0.1em; }
.kb-phase-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }

.kb-tiles { display: grid; grid-template-columns: 1fr; gap: var(--s-16); }
@media (min-width: 560px) { .kb-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .kb-tiles { grid-template-columns: repeat(3, 1fr); } }

.kb-tile {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 230px;
    display: flex;
    align-items: flex-end;
    padding: var(--s-24);
    color: var(--bone);
    background-image: linear-gradient(180deg, rgba(27, 15, 24, 0.05) 0%, rgba(27, 15, 24, 0.85) 100%), var(--kb-img);
    background-size: cover;
    background-position: center;
    box-shadow: var(--frame-shadow);
    isolation: isolate;
}
.kb-tile-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0; position: relative; z-index: 2; }
.kb-tile-body {
    margin: var(--s-8) 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(246, 244, 236, 0.9);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(6px);
    transition: max-height var(--dur-state) var(--ease-out-quart), opacity var(--dur-state), transform var(--dur-state);
    position: relative;
    z-index: 2;
}
.kb-tile:hover .kb-tile-body,
.kb-tile:focus-within .kb-tile-body { max-height: 120px; opacity: 1; transform: none; }

/* Touch / narrow screens have no hover, so always show the tile body there. */
@media (hover: none), (max-width: 760px) {
    .kb-tile-body { max-height: 140px; opacity: 1; transform: none; }
}

/* ============================================================
   Four channels band
   ============================================================ */
.channels-band {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line-on-cobalt);
}
@media (min-width: 560px) { .channels-band { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .channels-band { grid-template-columns: repeat(4, 1fr); } }

.channel {
    padding: var(--s-32) var(--s-24);
    border-bottom: 1px solid var(--line-on-cobalt);
    border-right: 1px solid var(--line-on-cobalt);
    transition: background var(--dur-state) var(--ease-out-quart);
}
.channel:hover { background: rgba(246, 244, 236, 0.05); }
.channel-idx {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--saffron);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.channel-tag {
    font-size: 0.58rem;
    color: var(--ink-text);
    background: var(--saffron);
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.06em;
}
.channel-name { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin: var(--s-16) 0 var(--s-8); }
.channel-body { font-size: 0.92rem; line-height: 1.5; color: rgba(246, 244, 236, 0.78); margin: 0; }

/* ============================================================
   The Solution - six-card band (four channels + two system cards)
   ============================================================ */
/* Green gradient that begins on the hero's bottom tone so the hero
   appears to merge straight into this section. */
.panel-solution {
    background: linear-gradient(180deg,
        var(--wine-deep) 0%,
        var(--wine) 52%,
        var(--wine-deep) 100%);
}
.solution-band {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-16);
    margin-top: var(--s-48);
}
@media (min-width: 560px) { .solution-band { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .solution-band { grid-template-columns: repeat(3, 1fr); } }

.sol-card {
    position: relative;
    padding: var(--s-32) var(--s-24) var(--s-24);
    background: rgba(20, 11, 18, 0.42);
    border: 1px solid rgba(246, 244, 236, 0.14);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(2px);
    transition: transform var(--dur-state) var(--ease-out-quart),
                border-color var(--dur-state) var(--ease-out-quart),
                background var(--dur-state) var(--ease-out-quart);
}
.sol-card:hover { background: rgba(20, 11, 18, 0.55); }
.sol-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--saffron);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-state) var(--ease-out-quart);
}
.sol-card:hover { transform: translateY(-4px); border-color: rgba(216, 181, 122, 0.45); }
.sol-card:hover::before { transform: scaleX(1); }
.sol-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--saffron);
}
.sol-head {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.45rem, 1.1rem + 1.5vw, 1.95rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--bone);
    margin: var(--s-16) 0 var(--s-12);
    text-wrap: balance;
}
.sol-body { font-size: 0.92rem; line-height: 1.5; color: rgba(246, 244, 236, 0.74); margin: 0; }

/* ============================================================
   Proof
   ============================================================ */
.proof-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-48);
    align-items: center;
}
@media (min-width: 860px) {
    .proof-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-64); }
}
.proof-quote {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: var(--s-24) 0;
    text-wrap: balance;
}
.proof-cite { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.panel-wine .proof-cite, .panel-wine-grad .proof-cite { color: rgba(248,242,231,0.72); }
.proof-figure-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--frame-shadow);
}
.proof-pills { display: flex; flex-wrap: wrap; gap: var(--s-12); margin-top: var(--s-24); }
.proof-pill {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: var(--s-8) var(--s-16);
    border-radius: 999px;
    border: 1px solid rgba(246, 244, 236, 0.28);
    color: rgba(246, 244, 236, 0.85);
}

/* ============================================================
   In Production - testimonials (quotes only, 3-up grid)
   ============================================================ */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 0.4rem + 1.6vw, 1.6rem);
    margin-top: var(--s-48);
}
@media (max-width: 900px) {
    .testimonials { grid-template-columns: 1fr; max-width: 38rem; margin-inline: auto; }
}
.testimonial {
    display: flex;
    flex-direction: column;
    gap: var(--s-16);
    padding: 1.85rem 1.6rem 1.7rem;
    background: var(--bone-card, #fff);
    border: 1px solid var(--line-on-chalk);
    border-top: 3px solid var(--wine);
    border-radius: 16px;
    transition: transform var(--dur-mid, 0.4s) ease, box-shadow var(--dur-mid, 0.4s) ease;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--frame-shadow); }
.t-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wine);
}
.t-quote {
    margin: 0;
    flex: 1 1 auto;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.18rem;
    line-height: 1.42;
    color: var(--ink-text);
}
.t-cite {
    margin: 0;
    padding-top: var(--s-16);
    border-top: 1px solid var(--line-on-chalk);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.t-cite b {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wine);
    font-weight: 600;
}
.t-role {
    font-family: var(--font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ============================================================
   How It Works - horizontal stepper (Lucy invariant)
   ============================================================ */
.hiw-stepper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-24);
    margin-top: var(--s-48);
}
@media (min-width: 900px) { .hiw-stepper { grid-template-columns: repeat(4, 1fr); gap: var(--s-16); } }

.hiw-step { position: relative; padding: var(--s-24); border-radius: 16px; background: var(--bone-card); border: 1px solid var(--line-on-chalk); }
.panel-cream-deep .hiw-step { background: var(--bone); }
.hiw-step-idx {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--terracotta);
    letter-spacing: 0.1em;
}
.hiw-step-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: var(--s-12) 0 var(--s-8); }
.hiw-step-body { font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.hiw-step-arrow {
    display: none;
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    color: var(--terracotta);
    z-index: 2;
}
@media (min-width: 900px) {
    .hiw-step:not(:last-child) .hiw-step-arrow { display: block; }
}
.hiw-foot { margin-top: var(--s-32); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta); }

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-32);
    text-align: left;
    align-items: center;
}
@media (min-width: 880px) {
    .final-cta {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        gap: clamp(2.5rem, 6vw, 6rem);
    }
}
.final-cta-text { max-width: 30ch; }
.final-cta-text .display { margin-bottom: var(--s-16); }
.final-cta-text .section-lead { margin: 0; max-width: 46ch; }
.final-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-16);
}
.final-cta-actions .cta { width: 100%; justify-content: center; }
.final-cta-foot {
    margin: var(--s-4) 0 0;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(246, 244, 236, 0.6);
    text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--bone); padding: var(--s-64) 0 var(--s-32); }
.footer-row {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-16) var(--s-24);
}
.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.footer-built { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-ink-soft); }
.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-20, 1.25rem) var(--s-24); }
.footer-links a { font-size: 0.9rem; color: var(--text-on-ink-soft); transition: color var(--dur-feedback); }
.footer-links a:hover { color: var(--saffron); }
.footer-copyright { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-on-ink-soft); }
.footer-powered { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--text-on-ink-soft); }
.footer-powered a { color: var(--saffron); transition: color var(--dur-feedback); }
.footer-powered a:hover { color: var(--saffron-bright); }
.footer-note {
    max-width: var(--maxw);
    margin: var(--s-48) auto 0;
    padding: var(--s-24) var(--gutter) 0;
    border-top: 1px solid var(--ink-line);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-on-ink-soft);
}
.footer-strip {
    max-width: var(--maxw);
    margin: var(--s-32) auto 0;
    padding: var(--s-24) var(--gutter) 0;
    border-top: 1px solid var(--ink-line);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--s-16) var(--s-24);
}
.footer-strip .footer-copyright { justify-self: start; }
.footer-quote {
    justify-self: center;
    text-align: center;
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.98rem;
    color: var(--bone);
}
.footer-strip .footer-powered { justify-self: end; }
@media (max-width: 640px) {
    .footer-strip {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: var(--s-12, 0.75rem);
    }
    .footer-strip .footer-copyright,
    .footer-strip .footer-powered { justify-self: center; }
}

/* ============================================================
   Demo interstitial modal
   ============================================================ */
.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-24);
}
.demo-modal[hidden] { display: none; }
.demo-modal:not([hidden]) .demo-modal-backdrop { animation: demo-backdrop-in var(--dur-state) var(--ease-out-quart); }
.demo-modal:not([hidden]) .demo-modal-card { animation: demo-card-in var(--dur-state) var(--ease-out-quint); }
@keyframes demo-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes demo-card-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }

.demo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(27, 15, 24, 0.62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.demo-modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: var(--bone-card);
    color: var(--ink-text);
    border: 1px solid var(--line-on-chalk);
    border-radius: 18px;
    padding: var(--s-32);
    box-shadow: var(--frame-shadow);
}
.demo-modal-eyebrow { margin: 0 0 var(--s-12); }
.demo-modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0 0 var(--s-12);
}
.demo-modal-desc { margin: 0 0 var(--s-24); color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.demo-modal-actions { display: flex; flex-wrap: wrap; gap: var(--s-12); justify-content: flex-end; }
@media (max-width: 460px) {
    .demo-modal-actions { flex-direction: column-reverse; }
    .demo-modal-actions .cta { width: 100%; }
}

/* ============================================================
   Lead form (/get-started, /pricing)
   ============================================================ */
.lead-nav-band { padding-block: var(--s-12); min-height: 0; }
.lead-section { padding-block: var(--s-64); }
@media (min-width: 1024px) { .lead-section { padding-block: var(--s-96); } }

.lead-layout { display: grid; grid-template-columns: 1fr; gap: var(--s-48); align-items: start; }
@media (min-width: 920px) {
    .lead-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: var(--s-64); }
}

.lead-pitch-eyebrow { margin: 0 0 var(--s-16); }
.price-lead {
    margin: 0 0 var(--s-32);
    padding: var(--s-24) var(--s-32);
    border: 1px solid var(--line-on-chalk);
    border-left: 3px solid var(--wine);
    border-radius: var(--radius, 10px);
    background: color-mix(in srgb, var(--wine) 4%, transparent);
}
.price-lead-figure {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
    line-height: 1.15;
    margin: 0 0 var(--s-8);
    color: var(--ink);
}
.price-lead-figure strong { color: var(--wine); font-weight: 700; }
.price-lead-sub { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-soft); }
.price-lead-sub a { color: var(--wine); text-decoration: underline; text-underline-offset: 2px; }
.price-lead-sub a:hover { color: var(--saffron); }
.price-lead-badge {
    display: inline-block;
    margin-top: var(--s-16);
    padding: var(--s-4) var(--s-12);
    border-radius: 999px;
    background: var(--saffron);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.lead-pitch-title { max-width: 18ch; margin: 0 0 var(--s-24); }
.lead-pitch-lead { color: var(--ink-soft); margin: 0 0 var(--s-32); }
.lead-pitch-steps { list-style: none; margin: 0 0 var(--s-32); padding: 0; display: flex; flex-direction: column; gap: var(--s-24); }
.lead-pitch-steps li { display: flex; gap: var(--s-16); align-items: flex-start; }
.lead-pitch-step-num {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--wine);
    color: var(--bone);
}
.lead-pitch-steps strong { display: block; font-weight: 600; margin-bottom: 2px; }
.lead-pitch-steps p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); }
.lead-pitch-pills { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-8); margin: 0; padding: 0; }
.lead-pitch-pills li {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: var(--s-4) var(--s-12);
    border: 1px solid var(--line-on-chalk);
    border-radius: 999px;
    color: var(--ink-soft);
}

.lead-card {
    background: var(--bone-card);
    border: 1px solid var(--line-on-chalk);
    border-radius: 18px;
    padding: var(--s-32);
    box-shadow: var(--frame-shadow);
}
@media (min-width: 768px) { .lead-card { padding: var(--s-48); } }
.lead-card-head { margin-bottom: var(--s-32); }
.lead-card-title { margin: 0 0 var(--s-8); }
.lead-card-subtitle { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }

.wizard-progress { margin-bottom: var(--s-32); }
.wizard-progress-track { height: 3px; background: var(--bone-deep); border-radius: 3px; margin-bottom: var(--s-16); overflow: hidden; }
.wizard-progress-fill { height: 100%; background: var(--terracotta); border-radius: 3px; transition: width var(--dur-state) var(--ease-out-quart); }
.wizard-steps { display: flex; justify-content: space-between; gap: var(--s-8); }
.wizard-step { display: flex; flex-direction: column; align-items: center; gap: var(--s-8); flex: 1; }
.wizard-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--line-on-chalk);
    background: var(--bone);
    color: var(--ink-soft);
    transition: all var(--dur-state) var(--ease-out-quart);
}
.wizard-step.active .wizard-step-circle { border-color: var(--terracotta); color: var(--terracotta); box-shadow: 0 0 0 3px rgba(154, 123, 62, 0.14); }
.wizard-step.completed .wizard-step-circle { border-color: var(--terracotta); background: var(--terracotta); color: var(--bone); }
.wizard-step-label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.wizard-step.active .wizard-step-label { color: var(--terracotta); }

.lead-form .form-group { margin-bottom: var(--s-24); }
.lead-form .form-label {
    display: block;
    margin-bottom: var(--s-8);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.lead-form .form-control, .lead-form .form-select {
    width: 100%;
    background: var(--bone);
    border: 1px solid var(--line-on-chalk);
    border-radius: 10px;
    padding: var(--s-12) var(--s-16);
    font-size: 1rem;
    color: var(--ink-text);
    transition: border-color var(--dur-feedback) var(--ease-out-quart), box-shadow var(--dur-feedback) var(--ease-out-quart);
}
.lead-form .form-control::placeholder { color: #9C8B94; }
.lead-form .form-control:focus, .lead-form .form-select:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(154, 123, 62, 0.16); }
.lead-form .form-control:disabled, .lead-form .form-select:disabled { opacity: 0.6; }
.lead-form .form-control-sm, .lead-form .form-select-sm { padding: var(--s-8) var(--s-12); font-size: 0.9375rem; }
.lead-form-textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.lead-form-help { margin: 0 0 var(--s-16); font-size: 0.875rem; color: var(--ink-soft); }
.lead-form-optional { text-transform: none; opacity: 0.7; }

.phone-input-group { display: flex; gap: var(--s-8); }
.phone-country-code { flex: 0 0 110px; }
.phone-number { flex: 1; }

.feature-interest { display: flex; flex-direction: column; gap: var(--s-12); }
.feature-interest-row {
    border: 1px solid var(--line-on-chalk);
    border-radius: 12px;
    padding: var(--s-16);
    transition: border-color var(--dur-feedback) var(--ease-out-quart), background var(--dur-feedback) var(--ease-out-quart);
}
.feature-interest-row.is-active { border-color: var(--wine); background: rgba(78, 37, 66, 0.05); }
.feature-interest-check { display: flex; align-items: center; gap: var(--s-12); cursor: pointer; }
.feature-interest-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--terracotta); cursor: pointer; }
.feature-interest-name { font-weight: 600; font-size: 1rem; }
.feature-interest-detail:not(:empty) { margin-top: var(--s-16); }
.feature-interest-sub-label {
    display: block;
    margin-bottom: var(--s-8);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.feature-interest-note { font-size: 0.875rem; color: var(--ink-soft); }
.feature-interest-yesno, .feature-interest-platforms { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.feature-interest-pill {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    padding: var(--s-8) var(--s-16);
    border: 1px solid var(--line-on-chalk);
    border-radius: 999px;
    background: var(--bone);
    color: var(--ink-text);
    cursor: pointer;
    transition: all var(--dur-feedback) var(--ease-out-quart);
}
.feature-interest-pill:hover:not(:disabled) { border-color: var(--ink-text); }
.feature-interest-pill:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.feature-interest-pill.is-active { background: var(--wine); border-color: var(--wine); color: var(--bone); }

.lead-submit-btn { width: 100%; margin-top: var(--s-24); }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--s-16); margin-top: var(--s-24); }
.wizard-next-btn { margin-left: auto; }

.validation-summary { margin-top: var(--s-16); padding: var(--s-12) var(--s-16); border: 1px solid rgba(154, 123, 62, 0.3); border-radius: 10px; background: rgba(154, 123, 62, 0.06); }
.validation-error { font-size: 0.875rem; line-height: 1.5; color: var(--terracotta-deep); }
.lead-alert { margin-top: var(--s-16); padding: var(--s-12) var(--s-16); border: 1px solid rgba(154, 123, 62, 0.35); border-radius: 10px; background: rgba(154, 123, 62, 0.08); color: var(--terracotta-deep); font-size: 0.9375rem; }

.lead-card-success { max-width: 560px; margin-inline: auto; text-align: center; }
.lead-success-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: var(--s-24); border-radius: 50%; background: var(--terracotta); color: var(--bone); font-size: 2rem; line-height: 1; }
.lead-success-title { margin: 0 0 var(--s-16); }
.lead-success-body { margin: 0 auto var(--s-32); max-width: 48ch; color: var(--ink-soft); }
.lead-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-12); }
@media (max-width: 540px) {
    .wizard-nav { flex-direction: column-reverse; }
    .wizard-nav .cta { width: 100%; }
    .wizard-next-btn { margin-left: 0; }
    .lead-success-actions .cta { width: 100%; }
}

.wizard-panel-active, .lead-card-success { animation: wizard-step-in var(--dur-state) var(--ease-out-quint); }
@keyframes wizard-step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lead-success-check { display: block; }
.lead-success-check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: lead-check-draw 520ms var(--ease-out-quint) 140ms forwards; }
@keyframes lead-check-draw { to { stroke-dashoffset: 0; } }

/* ============================================================
   Page mini-hero (privacy / terms / 404)
   ============================================================ */
.page-mini-hero { padding-block: var(--s-32); }
.page-body { padding-block: var(--s-64); }
.page-body h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin: var(--s-32) 0 var(--s-12); }
.page-body p, .page-body li { color: var(--ink-soft); line-height: 1.7; }
.page-body a { color: var(--terracotta); text-decoration: underline; }
.page-prose { max-width: 68ch; }

/* ============================================================
   Use-case pages
   ============================================================ */
.uc-hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-48); align-items: center; }
@media (min-width: 900px) { .uc-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-64); } }
.uc-hero-title { max-width: 18ch; margin-top: var(--s-16); }
.uc-hero-lead { margin-top: var(--s-24); color: var(--ink-soft); }
.panel-wine .uc-hero-lead, .panel-wine-grad .uc-hero-lead, .panel-ink .uc-hero-lead { color: rgba(246, 244, 236, 0.9); }
.uc-hero-text .cta-row { margin-top: var(--s-32); }
.uc-split-text .body { color: var(--ink-soft); }
.panel-wine .uc-split-text .body, .panel-wine-grad .uc-split-text .body, .panel-ink .uc-split-text .body { color: rgba(246, 244, 236, 0.82); }
.uc-figure-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: var(--wine-deep); box-shadow: var(--frame-shadow); }

.uc-split { display: grid; grid-template-columns: 1fr; gap: var(--s-48); align-items: center; max-width: 1240px; margin-inline: auto; }
@media (min-width: 900px) {
    .uc-split { grid-template-columns: 1fr 1fr; gap: var(--s-64); }
    .uc-split-mirror .uc-split-media { order: 0; }
    .uc-split-mirror .uc-split-text { order: 1; }
}
.uc-h2 { max-width: 20ch; margin-top: var(--s-16); margin-bottom: var(--s-24); }
.uc-split-text .lead { color: var(--ink-soft); }
.panel-wine .uc-split-text .lead, .panel-wine-grad .uc-split-text .lead { color: rgba(248,242,231,0.82); }

.uc-frame { border-radius: 18px; padding: var(--s-24); box-shadow: var(--frame-shadow); }
.uc-frame-label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 var(--s-16); }

.uc-frame--missed { background: var(--ink-elev); border: 1px solid var(--ink-line); color: var(--bone); }
.uc-frame--missed .uc-frame-label { color: var(--text-on-ink-soft); }
.uc-frame-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-12); font-size: 0.9375rem; }
.uc-frame-list li { display: flex; gap: var(--s-12); align-items: baseline; color: var(--bone); }
.uc-frame-x {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--saffron);
    border: 1px solid rgba(216, 181, 122, 0.45);
    border-radius: 5px;
    padding: 1px var(--s-8);
    flex: 0 0 auto;
}

.uc-frame--email, .uc-frame--dm, .uc-frame--answer { background: var(--bone-card); color: var(--ink-text); border: 1px solid var(--line-on-chalk); }
.uc-frame--email .uc-frame-label, .uc-frame--dm .uc-frame-label, .uc-frame--answer .uc-frame-label { color: var(--ink-soft); }
.uc-frame-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); margin: 0; }
.uc-frame-subject { font-family: var(--font-display); font-weight: 600; color: var(--ink-text); margin: var(--s-4) 0 var(--s-16); }
.uc-frame-body { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-soft); display: flex; flex-direction: column; gap: var(--s-8); border-top: 1px solid var(--line-on-chalk); padding-top: var(--s-16); }
.uc-frame-body p { margin: 0; }
.uc-frame-foot { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.05em; color: var(--ink-soft); margin: var(--s-16) 0 0; }

.uc-dm { font-size: 0.9375rem; line-height: 1.5; padding: var(--s-12) var(--s-16); border-radius: 16px; max-width: 92%; margin-top: var(--s-12); }
.uc-dm--in { background: var(--bone-deep); color: var(--ink-text); border-bottom-left-radius: 4px; }
.uc-dm--out { background: var(--wine); color: var(--bone); margin-left: auto; border-bottom-right-radius: 4px; }

.uc-frame--answer .uc-frame-q { font-style: italic; font-size: 0.9375rem; color: var(--ink-soft); margin: 0 0 var(--s-16); }
.uc-frame-a { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; color: var(--wine); margin: 0; }
.uc-frame-ameta { font-size: 0.875rem; color: var(--ink-soft); margin: var(--s-8) 0 var(--s-16); }
.uc-frame-cite { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.05em; color: var(--terracotta); margin: 0; padding-top: var(--s-12); border-top: 1px solid var(--line-on-chalk); }

.uc-transcript { max-width: 820px; margin-inline: auto; }
.uc-transcript-title { margin: var(--s-12) 0 var(--s-32); max-width: 32ch; }
.uc-script { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-16); }
.uc-line { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-16); align-items: baseline; }
.uc-line-who { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.uc-line--agent .uc-line-who { color: var(--terracotta); }
.uc-line--customer .uc-line-who { color: var(--ink-soft); }
.uc-line-text { font-size: 1rem; line-height: 1.55; color: var(--ink-text); }
.uc-line--customer .uc-line-text { color: var(--ink-soft); }
@media (max-width: 640px) { .uc-line { grid-template-columns: 1fr; gap: 2px; } }
.uc-close-display { max-width: 20ch; }

/* ============================================================
   Themed sample-call audio player (voice use cases)
   ============================================================ */
.audio-sample {
    background: var(--ink);
    color: var(--bone);
    border: 1px solid var(--ink-line);
    border-radius: 18px;
    padding: var(--s-24);
    box-shadow: var(--frame-shadow);
    display: flex;
    flex-direction: column;
    gap: var(--s-16);
}
.audio-sample-marker { display: flex; align-items: center; gap: var(--s-8); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-ink-soft); }
.audio-marker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); }
.audio-sample.is-playing .audio-marker-dot { animation: audio-pulse 1.4s var(--ease-out-quart) infinite; }
@keyframes audio-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.audio-waveform { position: relative; height: 56px; --audio-progress: 0%; }
.audio-waveform-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.audio-waveform-svg--base rect { fill: rgba(246, 244, 236, 0.22); }
.audio-waveform-svg--heard { clip-path: inset(0 calc(100% - var(--audio-progress)) 0 0); }
.audio-waveform-svg--heard rect { fill: var(--saffron); }
.audio-waveform-playhead { position: absolute; top: -3px; bottom: -3px; left: var(--audio-progress); width: 2px; background: var(--saffron); box-shadow: 0 0 10px rgba(216, 181, 122, 0.85); }

.audio-transport { display: flex; align-items: center; gap: var(--s-16); }
.audio-play-button {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--saffron);
    border: none;
    color: var(--ink-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--dur-state) var(--ease-out-quart), transform var(--dur-feedback) var(--ease-out-quart);
}
.audio-play-button:hover { background: var(--saffron-bright); }
.audio-play-button:active { transform: translateY(1px); }
.audio-play-button:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }
.audio-icon { width: 20px; height: 20px; fill: currentColor; }
.audio-icon--pause { display: none; }
.audio-sample.is-playing .audio-icon--play { display: none; }
.audio-sample.is-playing .audio-icon--pause { display: block; }
.audio-timecode { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--bone); display: flex; gap: 4px; }
.audio-time-sep, .audio-time-total { color: var(--text-on-ink-soft); }
.audio-meta-strip { margin-left: auto; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-on-ink-soft); }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .hero-video { display: none; }
}

/* ============================================================
   Fixed nav — pinned on every page (like the hotels site)
   The nav keeps its DOM band, so currentColor stays correct;
   only the scrolled surface differs (dark on hero/wine, light on bone).
   ============================================================ */
:root { --nav-h: 64px; }
html { scroll-padding-top: var(--nav-h); }

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.28s var(--ease-out-quart),
                border-color 0.28s var(--ease-out-quart);
}
.panel-hero > .site-nav { position: fixed; z-index: 100; }

/* default (dark hero + wine get-started band): dark surface, light text */
.site-nav.scrolled {
    background: color-mix(in oklch, var(--ink) 88%, transparent);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    backdrop-filter: blur(12px) saturate(1.1);
    border-bottom-color: rgba(216, 181, 122, 0.28);
}
/* light bone pages (legal + use cases): light surface, dark text stays readable */
.page-mini-hero .site-nav.scrolled {
    background: color-mix(in srgb, var(--bone) 90%, transparent);
    border-bottom-color: rgba(36, 24, 32, 0.12);
}

/* Non-hero pages: leave room for the now-fixed nav. */
.lead-nav-band { padding-top: calc(var(--nav-h) + var(--s-16)); }
.page-mini-hero { padding-top: calc(var(--nav-h) + var(--s-16)); }

/* The hero's `isolation: isolate` created a stacking context that trapped
   the now-fixed nav: past the hero, later sections painted over it. Drop the
   isolation so the fixed nav (z-index 100) sits in the root stacking context
   and stays on top on every scroll position. */
.panel-hero { isolation: auto; }

/* With the hero no longer an isolated stacking context (so the fixed nav can
   escape it), the hero's negative z-indexes dropped the video behind the panel
   background. Re-layer with non-negative z-indexes: video < scrim < content. */
.hero-media { z-index: 0; }
.hero-scrim { z-index: 1; }
.hero-inner { position: relative; z-index: 2; }
