/* ============================================
   Eaverly Marketing Site — Main Styles
   Brand tokens mirror mobile/src/theme/index.js
   ============================================ */

:root {
    /* Colors — anchored on the app's deep green */
    --primary: #2D6A4F;
    --primary-light: #52B788;
    --primary-pale: #D8F3DC;
    --primary-deep: #1B4332;

    --background: #F4EFE5;
    --surface: #FFFEFA;
    --surface-warm: #F7F1E2;
    --border: #E2DBCD;

    --text: #1A1A1A;
    --text-muted: #5A5A5A;
    --text-light: #6F6A5F; /* AA on light surfaces; don't use under ~18px */
    --red: #B3261E;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-xxxl: 72px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 999px;

    /* Type */
    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --container-max: 1140px;
    --container-padding: var(--space-lg);
    --nav-h: 63px;

    --z-nav: 100;
    --z-modal: 200;

    --shadow-card: 0 10px 30px rgba(27, 67, 50, 0.07);
    --shadow-lift: 0 18px 44px rgba(27, 67, 50, 0.14);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text);
    background-color: var(--background);
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Visually-hidden but available to screen readers (real <label>s on inputs) */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Inline form validation */
.field-error {
    flex-basis: 100%;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    text-align: left;
}
input[aria-invalid="true"] { border-color: var(--red) !important; }
/* On the dark waitlist panel, lift the error message for contrast */
.waitlist__form .field-error { color: #FFD9D5; }

/* Keyboard focus ring (WCAG 2.4.7) — visible on keyboard focus everywhere */
:where(a, button, summary, input, [tabindex]):focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
/* High-contrast ring on dark surfaces */
.waitlist :where(a, button, summary, input):focus-visible,
.footer :where(a, button, summary):focus-visible {
    outline-color: #fff;
}

/* Count-up numbers shouldn't reflow as digits grow */
.count { font-variant-numeric: tabular-nums; }

/* Roofline motif — the brand mark is an eave; it draws itself in on scroll */
.roofline { display: block; width: 150px; height: 28px; margin: 0 auto var(--space-md); color: var(--primary); }
.roofline svg { display: block; width: 100%; height: 100%; overflow: visible; }
.roofline path { stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.roofline--light { color: var(--primary-light); }
.js .roofline path { stroke-dasharray: 200; stroke-dashoffset: 200; }
.js .roofline.is-in path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s ease-out; }

/* ---- Icons ---- */
.icon {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Solid deep-green tile with a white glyph (house rule: no pale chips) */
.icon-chip {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-deep);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.icon-chip .icon { width: 28px; height: 28px; stroke-width: 1.9; }
.icon-chip--sm { width: 40px; height: 40px; border-radius: var(--radius-sm); }
.icon-chip--sm .icon { width: 21px; height: 21px; }

/* ---- Brand / logo ---- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.brand__mark {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--primary-deep);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.brand__mark .icon { width: 22px; height: 22px; }
.brand__text {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 23px;
    letter-spacing: -0.5px;
    color: var(--primary-deep);
}
.brand--light .brand__text { color: #fff; }
.brand--light .brand__mark { background: rgba(255,255,255,0.14); }

/* ---- Eyebrow pill ---- */
.hero__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}
.hero__eyebrow--dark {
    color: var(--primary);
    background: var(--primary-pale);
    border-color: transparent;
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 254, 250, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: var(--z-nav);
    transition: transform 0.3s ease;
}
.nav__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 12px var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__menu { display: none; align-items: center; gap: var(--space-xl); }
.nav__link { font-weight: 500; color: var(--text-muted); transition: color 0.2s ease; padding: 6px 0; }
.nav__link:hover { color: var(--primary-deep); }
.nav__cta {
    background: var(--primary-deep);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(27, 67, 50, 0.3); }
.nav__toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2px; background: var(--primary-deep); border-radius: 2px; transition: all 0.3s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ---- Mobile menu ---- */
.mobile-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.mobile-menu[aria-hidden="false"] { transform: translateY(0); }
.mobile-menu__content { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-lg); }
.mobile-menu__link { font-weight: 600; color: var(--text); font-size: 18px; }
.mobile-menu__cta {
    background: var(--primary-deep); color: #fff; padding: 14px 24px;
    border-radius: var(--radius-full); font-weight: 600; text-align: center; margin-top: var(--space-xs);
}

/* ---- Hero (light, product-forward) ---- */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 116px;
    padding-bottom: var(--space-xxl);
    background: linear-gradient(180deg, #FBF9F3 0%, var(--background) 100%);
}
.hero__bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(640px 460px at 88% 8%, rgba(82,183,136,0.28), transparent 62%),
        radial-gradient(520px 420px at 6% 92%, rgba(45,106,79,0.14), transparent 60%);
}
.hero__container {
    position: relative; z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}
.hero__eyebrow { margin-bottom: var(--space-md); }
.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(40px, 8.4vw, 76px);
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -1.2px;
    color: var(--text);
    margin-bottom: var(--space-lg);
}
.hero__headline em {
    display: block;
    font-style: italic;
    font-weight: 500;
    color: var(--primary);
}
.hero__sub {
    font-size: clamp(17px, 2.4vw, 20px);
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    max-width: 520px;
}
.hero__form { display: flex; flex-direction: column; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-md); max-width: 500px; }
.hero__input {
    padding: 17px 22px; border-radius: var(--radius-full);
    border: 1.5px solid var(--border); background: #fff; font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(45,106,79,0.12); }
.hero__submit {
    padding: 17px 30px; background: var(--primary-deep); color: #fff;
    border-radius: var(--radius-full); font-weight: 700; font-size: 16px;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero__submit:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(27,67,50,0.28); }
.hero__submit:hover .hero__submit-arrow { transform: translateX(4px); }
.hero__submit-arrow { width: 20px; height: 20px; transition: transform 0.3s ease; }
.hero__note { display: flex; align-items: center; gap: var(--space-sm); color: var(--text-muted); font-size: 14px; }
.hero__note .icon { width: 16px; height: 16px; color: var(--primary); }

/* showcase: device + floating glass cards */
.hero__showcase { position: relative; display: flex; justify-content: center; padding: var(--space-md) 0; }
.hero__phone { width: 248px; }
.device {
    background: #1A1A1A;
    padding: 8px;
    border-radius: 46px;
    box-shadow: 0 32px 64px rgba(27,67,50,0.24);
}
.device__shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 38px;
}

.floatcard {
    display: none;
    position: absolute;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: var(--radius-lg);
    padding: 11px 14px;
    box-shadow: 0 16px 36px rgba(27,67,50,0.16);
}
.floatcard__big { display: block; font-size: 14px; font-weight: 700; color: var(--primary-deep); }
.floatcard__sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.floatcard__icon { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-deep); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.floatcard__icon .icon { width: 19px; height: 19px; }
.floatcard__ring {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; color: var(--primary-deep);
    border: 3px solid var(--primary);
}
.floatcard__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--primary-pale); }
.floatcard--protect { top: 7%; left: -5%; }
.floatcard--guess   { top: 42%; right: -6%; max-width: 220px; }
.floatcard--beverly { bottom: 9%; left: -6%; max-width: 230px; }

/* Gentle idle float — calm, long period; killed under reduced-motion (global rule) */
@keyframes floatBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---- Section scaffolding ---- */
.problem, .how, .beverly, .different, .faq { padding: var(--space-xxxl) 0; }
.problem__container, .how__container, .beverly__container,
.different__container, .faq__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}
.problem { background: var(--surface); }
.how { background: var(--background); }
.beverly { background: var(--surface); position: relative; overflow: hidden; }
.different { background: var(--background); }
.faq { background: var(--surface); }

.problem__title, .how__title, .different__title, .faq__title {
    font-family: var(--font-serif);
    font-size: clamp(30px, 5.5vw, 44px);
    font-weight: 600;
    text-align: center;
    color: var(--primary-deep);
    line-height: 1.15;
    letter-spacing: -0.4px;
}

/* ---- Problem ---- */
.problem__title { margin-bottom: var(--space-md); }
.problem__intro {
    text-align: center; color: var(--text-muted); font-size: 18px;
    max-width: 620px; margin: 0 auto var(--space-xxl); line-height: 1.55;
}
.problem__grid { display: grid; gap: var(--space-lg); margin-bottom: var(--space-xxl); }
.problem__card {
    background: var(--surface); padding: var(--space-xl);
    border-radius: var(--radius-xl); border: 1px solid var(--border);
    text-align: center; box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.problem__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.problem__card .icon-chip { margin: 0 auto var(--space-md); }
.problem__card-title { font-weight: 700; font-size: 20px; margin-bottom: var(--space-xs); color: var(--primary-deep); }
.problem__card-text { color: var(--text-muted); line-height: 1.5; }
.problem__card-cost {
    margin-top: var(--space-sm); font-weight: 700; color: var(--red); font-size: 15px;
}
.problem__bottom { text-align: center; font-size: 18px; color: var(--text-muted); line-height: 1.6; }
.problem__bottom strong { display: block; color: var(--primary-deep); font-weight: 700; margin-top: var(--space-xs); }

/* ---- How ---- */
.how__title { margin-bottom: var(--space-md); }
.how__sub { text-align: center; font-size: 18px; color: var(--text-muted); max-width: 640px; margin: 0 auto var(--space-xxl); line-height: 1.55; }
.how__steps { position: relative; display: grid; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.how__step { position: relative; }
.how__step-number {
    width: 44px; height: 44px; border-radius: var(--radius-full);
    background: var(--primary-deep); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px; font-family: var(--font-serif);
    margin-bottom: var(--space-md);
    position: relative; z-index: 1;
}
.how__step-title { font-weight: 700; font-size: 20px; margin-bottom: var(--space-xs); color: var(--primary-deep); }
.how__step-text { color: var(--text-muted); line-height: 1.55; }
.how__features {
    background: var(--surface); padding: var(--space-xl);
    border-radius: var(--radius-xl); border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.how__features-title { font-weight: 700; font-size: 18px; margin-bottom: var(--space-lg); color: var(--primary-deep); }
.how__features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-lg) var(--space-md); }
.how__feature { display: flex; align-items: center; gap: var(--space-md); font-size: 15px; font-weight: 500; color: var(--text); }

/* ---- Beverly ---- */
.beverly::before {
    content: ''; position: absolute; top: -120px; right: -120px;
    width: 340px; height: 340px;
    background: radial-gradient(circle, var(--primary-pale) 0%, transparent 70%);
    opacity: 0.5; border-radius: 50%;
}
.beverly__container { display: grid; gap: var(--space-xxl); align-items: center; position: relative; }
.beverly__book { margin: 0; display: flex; flex-direction: column; align-items: center; }
.beverly__book-cover {
    width: 100%; max-width: 340px; height: auto; display: block;
    border-radius: var(--radius-md);
    box-shadow: 0 28px 60px rgba(27, 67, 50, 0.28);
    transform: rotate(-2deg);
    transition: transform 0.4s ease;
}
.beverly__book-cover:hover { transform: rotate(0deg) translateY(-4px); }
.beverly__book-cover--fallback {
    max-width: 300px; border-radius: var(--radius-xl);
    background: var(--surface-warm); transform: none;
}
.beverly__book-caption {
    margin-top: var(--space-lg); text-align: center;
    font-size: 14px; color: var(--text-muted); line-height: 1.5;
    display: flex; flex-direction: column; align-items: center; gap: var(--space-sm);
}
.beverly__book-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary-deep); color: #fff;
    padding: 6px 14px; border-radius: var(--radius-full);
    font-size: 13px; font-weight: 700;
}
.beverly__book-badge .icon { width: 15px; height: 15px; color: #FFCB47; }
.beverly__title {
    font-family: var(--font-serif); font-size: clamp(32px, 6vw, 46px);
    font-weight: 600; line-height: 1.05; color: var(--primary-deep);
    margin-bottom: var(--space-md); letter-spacing: -0.4px;
}
.beverly__lead { font-size: 20px; line-height: 1.5; color: var(--text); margin-bottom: var(--space-lg); font-weight: 500; }
.beverly__text { font-size: 16px; line-height: 1.65; color: var(--text-muted); margin-bottom: var(--space-md); }
.beverly__quote {
    background: var(--surface-warm); padding: var(--space-lg);
    border-left: 4px solid var(--primary); border-radius: var(--radius-md);
    margin: var(--space-xl) 0; font-family: var(--font-serif); font-style: italic;
    font-size: 18px; line-height: 1.5; color: var(--text);
}
.beverly__quote cite { display: block; margin-top: var(--space-md); font-style: normal; font-family: var(--font-sans); color: var(--text-muted); font-size: 14px; font-weight: 600; }
.beverly__cta-text { font-size: 18px; color: var(--text-muted); }
.beverly__cta-text strong { color: var(--primary-deep); font-weight: 700; }

/* ---- Versus: "The old way" vs "With Eaverly" split ---- */
.different__title { margin-bottom: var(--space-md); }
.different__intro {
    text-align: center; color: var(--text-muted); font-size: 18px;
    max-width: 620px; margin: 0 auto var(--space-xxl); line-height: 1.55;
}
.versus { padding: var(--space-xxxl) var(--container-padding); background: var(--background); }
.versus__head { max-width: var(--container-max); margin: 0 auto var(--space-xl); }
.versus__head .different__intro { margin-bottom: 0; }
.versus__board {
    --split: 55%;
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    gap: var(--space-md);
}
.versus__side { border-radius: var(--radius-xl); padding: var(--space-lg) var(--space-xl) var(--space-xl); }
.versus__side--old { background: #EBE6DC; color: #8C8678; }
.versus__side--new {
    background:
        radial-gradient(600px 320px at 80% 0%, rgba(82,183,136,0.22), transparent 60%),
        linear-gradient(160deg, var(--primary-deep) 0%, #21533D 100%);
    color: #fff;
}
.versus__label {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.6px;
    text-transform: uppercase; margin-bottom: var(--space-sm);
}
.versus__side--old .versus__label { color: #A8A192; }
.versus__side--new .versus__label { color: #B7E4C7; }
.versus__list { list-style: none; }
.versus__list li { padding: var(--space-md) 0; line-height: 1.5; font-size: 15px; }
.versus__side--old .versus__list li { border-bottom: 1px solid rgba(0,0,0,0.07); }
.versus__side--new .versus__list li { border-bottom: 1px solid rgba(255,255,255,0.14); font-weight: 600; }
.versus__list li:last-child { border-bottom: 0; }
.versus__side--new strong { color: #FFCB47; }
.versus__handle { display: none; }

@media (min-width: 768px) {
    .versus__board {
        grid-template-columns: calc(100% - var(--split)) var(--split);
        gap: 0; align-items: stretch;
    }
    .versus__side { padding: var(--space-xl) var(--space-xxl); }
    .versus__side--old { border-radius: var(--radius-xl) 0 0 var(--radius-xl); }
    .versus__side--new { border-radius: 0 var(--radius-xl) var(--radius-xl) 0; }
    .js .versus__board { --split: 50%; }
    .js .versus__board.is-in { --split: 55%; transition: grid-template-columns 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
    .versus__board.is-dragging { transition: none !important; }
    .versus__handle {
        display: flex; align-items: center; justify-content: center;
        position: absolute; top: 0; bottom: 0;
        left: calc(100% - var(--split)); width: 44px; margin-left: -22px;
        background: transparent; border: 0; cursor: ew-resize; z-index: 2; touch-action: none;
    }
    .js .versus__handle { transition: left 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
    .versus__board.is-dragging .versus__handle { transition: none; }
    .versus__handle-grip {
        width: 44px; height: 44px; border-radius: 50%;
        background: #fff; color: var(--primary-deep);
        box-shadow: 0 6px 20px rgba(27, 67, 50, 0.28);
        display: flex; align-items: center; justify-content: center;
        font-weight: 700; font-size: 17px; letter-spacing: -1px;
    }
}

/* ---- Waitlist ---- */
.waitlist {
    padding: var(--space-xxxl) 0;
    background:
        radial-gradient(700px 400px at 50% 120%, rgba(82,183,136,0.18), transparent 60%),
        linear-gradient(160deg, var(--primary-deep) 0%, #21533D 100%);
    color: #fff; text-align: center;
}
.waitlist__container { max-width: 620px; margin: 0 auto; padding: 0 var(--container-padding); }
.waitlist__urgency {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
    padding: 7px 16px; border-radius: var(--radius-full);
    font-size: 13px; font-weight: 700; margin-bottom: var(--space-lg);
}
.waitlist__urgency .icon { width: 16px; height: 16px; color: #FFCB47; }
.waitlist__title { font-family: var(--font-serif); font-size: clamp(30px, 5.5vw, 44px); font-weight: 600; line-height: 1.1; margin-bottom: var(--space-md); letter-spacing: -0.4px; }
.waitlist__sub { font-size: 18px; color: rgba(255,255,255,0.9); margin-bottom: var(--space-xl); line-height: 1.5; }
.waitlist__form { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.waitlist__fields { display: flex; flex-direction: column; gap: var(--space-sm); }
.waitlist__input { padding: 16px 20px; border-radius: var(--radius-full); border: 2px solid transparent; background: #fff; font-size: 16px; color: var(--text); }
.waitlist__input:focus { outline: none; border-color: var(--primary-light); }
.waitlist__submit { padding: 16px 28px; background: #fff; color: var(--primary-deep); border-radius: var(--radius-full); font-weight: 700; font-size: 16px; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.waitlist__submit:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,0.22); }
.waitlist__trust { display: flex; justify-content: center; gap: var(--space-lg); flex-wrap: wrap; }
.waitlist__trust-item { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 500; }
.waitlist__trust-item .icon { width: 16px; height: 16px; }

/* ---- FAQ ---- */
.faq__title { margin-bottom: var(--space-xxl); }
.faq__grid { display: grid; gap: var(--space-md); }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.faq__question {
    padding: var(--space-lg); font-weight: 600; font-size: 16px; color: var(--text);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
    transition: color 0.2s ease;
}
.faq__question:hover { color: var(--primary); }
.faq__question::after { content: '+'; font-size: 24px; color: var(--primary); transition: transform 0.3s ease; line-height: 1; }
.faq__item[open] .faq__question::after { transform: rotate(45deg); }
.faq__answer { padding: 0 var(--space-lg) var(--space-lg); color: var(--text-muted); line-height: 1.6; }

/* ---- Footer ---- */
.footer { background: var(--primary-deep); color: #fff; padding: var(--space-xxl) 0 var(--space-xl); }
.footer__container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
.footer__main { display: grid; gap: var(--space-xxl); margin-bottom: var(--space-xxl); }
.footer__brand .brand { margin-bottom: var(--space-md); }
.footer__tagline { opacity: 0.78; line-height: 1.55; margin-bottom: var(--space-lg); }
.footer__social { display: flex; gap: var(--space-md); }
.footer__social-link { width: 44px; height: 44px; background: rgba(255,255,255,0.1); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.footer__social-link:hover { background: rgba(255,255,255,0.2); }
.footer__social-link .icon { width: 20px; height: 20px; }
.footer__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-xl); }
.footer__column-title { font-weight: 600; margin-bottom: var(--space-md); opacity: 0.95; }
.footer__link { display: block; opacity: 0.72; margin-bottom: 0; padding: 10px 0; transition: opacity 0.2s ease; }
.footer__link:hover { opacity: 1; }
.footer__bottom { padding-top: var(--space-xl); border-top: 1px solid rgba(255,255,255,0.12); text-align: center; opacity: 0.72; font-size: 14px; }

/* ---- Modal ---- */
.modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: var(--z-modal); opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal[aria-hidden="false"] { opacity: 1; pointer-events: all; }
.modal__content {
    background: var(--surface); padding: var(--space-xxl); border-radius: var(--radius-xl);
    text-align: center; max-width: 400px; margin: 0 var(--space-lg);
    transform: scale(0.92); transition: transform 0.3s ease;
}
.modal[aria-hidden="false"] .modal__content { transform: scale(1); }
.modal__icon { display: inline-flex; color: var(--primary); margin-bottom: var(--space-md); }
.modal__icon .icon { width: 52px; height: 52px; stroke-width: 1.6; }
.modal__title { font-family: var(--font-serif); font-size: 24px; font-weight: 600; margin-bottom: var(--space-sm); color: var(--primary-deep); }
.modal__text { color: var(--text-muted); margin-bottom: var(--space-lg); line-height: 1.5; }
.modal__close { padding: 12px 32px; background: var(--primary-deep); color: #fff; border-radius: var(--radius-full); font-weight: 600; cursor: pointer; transition: transform 0.2s ease; }
.modal__close:hover { transform: translateY(-2px); }

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 768px) {
    .nav__menu { display: flex; }
    .nav__toggle { display: none; }

    .hero { padding-top: 148px; padding-bottom: 110px; }
    .hero__container { grid-template-columns: 1.08fr 0.92fr; gap: var(--space-xxl); }
    .hero__form { flex-direction: row; }
    .hero__input { flex: 1; }
    .hero__submit { flex-shrink: 0; }
    .hero__phone { width: 300px; }
    .floatcard { display: flex; animation: floatBob 7s ease-in-out infinite; }
    .floatcard--protect { animation-delay: 0s; }
    .floatcard--guess   { animation-delay: 2.3s; }
    .floatcard--beverly { animation-delay: 4.6s; }

    .problem__grid { grid-template-columns: repeat(3, 1fr); }
    .how__features-grid { grid-template-columns: repeat(3, 1fr); }

    /* How steps become a connected 1→2→3 timeline (not a third card grid) */
    .how__steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
    .how__step { text-align: center; padding: 0 var(--space-sm); }
    .how__step-number { margin-left: auto; margin-right: auto; }
    .how__steps::before {
        content: ''; position: absolute; z-index: 0;
        top: 22px; left: 16.6%; right: 16.6%; height: 2px;
        background: var(--primary-pale);
        transform: scaleX(0); transform-origin: left center;
    }
    .js .how__steps.is-in::before {
        transform: scaleX(1);
        transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
    }
    .beverly__container { grid-template-columns: 0.85fr 1.15fr; }
    .different__grid { grid-template-columns: repeat(2, 1fr); }
    .waitlist__fields { flex-direction: row; }
    .waitlist__input { flex: 1; }
    .faq__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__main { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 1024px) {
    .different__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.hero__eyebrow, .hero__headline, .hero__sub, .hero__form, .hero__note, .hero__showcase {
    animation: fadeInUp 0.7s ease-out backwards;
}
.hero__headline { animation-delay: 0.05s; }
.hero__sub { animation-delay: 0.12s; }
.hero__form { animation-delay: 0.18s; }
.hero__note { animation-delay: 0.24s; }
.hero__showcase { animation-delay: 0.2s; }

/* Scroll-reveal — gated on `.js` so content stays visible if JS never runs */
.js [data-animate] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js [data-animate].visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-animate] { opacity: 1 !important; transform: none !important; }
}
