/* =====================================================================
   BibleKey — web theme.
   Every token below is lifted directly from the app's Theme.swift so the
   site and the app read as one product. Fonts are the *actual* system
   faces the app uses: New York (ui-serif) for Scripture and headlines,
   SF Pro (-apple-system) for interface chrome.
   ===================================================================== */

:root {
    /* Type — the app's own faces */
    --serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;

    /* Canvas — Theme.Colors.cream / cardBackground / warmWhite */
    --cream: #FAF8F4;
    --surface: #FEFDFB;
    --surface-2: #FFFFFF;
    --parchment: #F3EDE3;
    --card-edge: rgba(31, 27, 23, 0.06);

    /* Ink — Theme.Colors.primaryText / secondaryText / tertiaryText */
    --ink: #1F1B17;
    --ink-soft: #4A433C;
    --ink-muted: #6B6460;
    --ink-faint: #8A8480;
    --ink-ghost: #C6BFB6;

    /* Gold — Theme.Colors.gold / goldLight / warmGoldInk */
    --gold: #C29A54;
    --gold-deep: #A8801C;
    --gold-bright: #D4A85A;
    --gold-ink: #8C6B2D;
    --gold-light: #ECDDC0;
    --gold-wash: rgba(194, 154, 84, 0.09);
    --gold-hair: rgba(194, 154, 84, 0.30);

    /* Warm secondary — Theme.Colors.terracotta / redLetter / highlights */
    --terra: #C17B5E;
    --terra-wash: rgba(193, 123, 94, 0.10);
    --red-letter: #B5433A;
    --sage: #5B8A72;
    --hl-green: #D4EDDA;
    --hl-yellow: #FFF3C4;

    /* Radii — Theme.Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-card: 20px;
    --r-full: 9999px;

    /* Elevation — FloatingCardModifier (double shadow) */
    --lift-subtle: 0 3px 8px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
    --lift-medium: 0 5px 14px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.03);
    --lift-prominent: 0 8px 20px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.03);
    --lift-hero: 0 40px 80px rgba(31,27,23,0.14), 0 12px 28px rgba(31,27,23,0.07);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --cream: #0C0C0C;
        --surface: #1C1C1E;
        --surface-2: #232326;
        --parchment: #1A1815;
        --card-edge: rgba(255, 255, 255, 0.08);

        --ink: #F5F0EB;
        --ink-soft: #CFC8C1;
        --ink-muted: #A39E99;
        --ink-faint: #7A756F;
        --ink-ghost: #4A4642;

        --gold: #DEBB6E;
        --gold-deep: #9A7B3C;
        --gold-bright: #EBD094;
        --gold-ink: #E2C081;
        --gold-light: #3D352A;
        --gold-wash: rgba(222, 187, 110, 0.10);
        --gold-hair: rgba(222, 187, 110, 0.28);

        --terra: #D4956F;
        --terra-wash: rgba(212, 149, 111, 0.12);
        --red-letter: #D4645C;
        --sage: #6B9E82;
        --hl-green: #2A3D2E;
        --hl-yellow: #4A4229;

        --lift-subtle: 0 0 0 1px rgba(255,255,255,0.05);
        --lift-medium: 0 0 0 1px rgba(255,255,255,0.06);
        --lift-prominent: 0 0 0 1px rgba(255,255,255,0.08);
        --lift-hero: 0 40px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.07);
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Paper grain — the app's cream canvas has a warmth flat hex can't carry */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none; z-index: 9999;
    opacity: 0.016;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat; background-size: 200px 200px;
}
@media (prefers-color-scheme: dark) { body::before { opacity: 0.03; } }

::selection { background: var(--gold-light); color: var(--ink); }

/* ============================= NAV ============================= */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 32px;
    transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
    border-bottom: 1px solid transparent;
}
nav.scrolled {
    padding: 12px 32px;
    background: color-mix(in srgb, var(--cream) 88%, transparent);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom-color: var(--card-edge);
}
.nav-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo .key-mark { width: 26px; height: 26px; color: var(--gold); }
.logo span { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s ease; }
.nav-link:hover { color: var(--gold-ink); }
.nav-cta {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: #fff; padding: 10px 22px; border-radius: var(--r-full);
    text-decoration: none; font-weight: 600; font-size: 13.5px; letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(168,128,28,0.22);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(168,128,28,0.3); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 102; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(31,27,23,.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 99; opacity: 0; transition: opacity .3s ease; }
.mobile-overlay.active { opacity: 1; }

/* ====================== SHARED TYPOGRAPHY ====================== */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.18em; color: var(--gold-ink); margin-bottom: 18px;
}
.eyebrow::before { content: ''; display: block; width: 22px; height: 1px; background: var(--gold-hair); }
.eyebrow--center { justify-content: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.022em; line-height: 1.08; }
.display { font-size: clamp(46px, 6.2vw, 78px); line-height: 1.02; }
.display em, h2 em { font-style: italic; color: var(--gold-ink); font-weight: 600; }
.h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 18px; }
.lede { font-size: clamp(16.5px, 1.4vw, 18.5px); color: var(--ink-muted); line-height: 1.68; max-width: 520px; }

/* ============================ BUTTONS ============================ */
.btn-gold {
    display: inline-flex; align-items: center; gap: 11px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: #fff; padding: 15px 30px; border-radius: var(--r-md);
    text-decoration: none; font-weight: 600; font-size: 15.5px;
    box-shadow: 0 8px 22px rgba(168,128,28,0.24), inset 0 1px 0 rgba(255,255,255,0.18);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(168,128,28,0.3), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-gold svg { width: 20px; height: 20px; }
.btn-quiet {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px;
    padding: 15px 24px; border-radius: var(--r-md);
    border: 1px solid var(--ink-ghost); transition: all .25s ease; background: transparent;
}
.btn-quiet:hover { border-color: var(--gold); color: var(--gold-ink); background: var(--gold-wash); }
.fine { margin-top: 18px; font-size: 13px; color: var(--ink-faint); }

/* ============================ LAYOUT ============================ */
.section { padding: 128px 32px; position: relative; }
.wrap { max-width: 1240px; margin: 0 auto; }
.band { background: var(--surface); border-top: 1px solid var(--card-edge); border-bottom: 1px solid var(--card-edge); }
.row { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 76px; align-items: center; }
.row--flip .row-text { order: 2; }
.row--flip .row-art { order: 1; }
.row-art { display: flex; justify-content: center; align-items: center; position: relative; min-width: 0; }

.bullets { display: flex; flex-direction: column; gap: 22px; margin-top: 34px; }
.bullet { display: flex; gap: 15px; align-items: flex-start; }
.bullet-ico {
    width: 38px; height: 38px; min-width: 38px; border-radius: 11px;
    background: var(--gold-wash); border: 1px solid var(--gold-hair);
    display: flex; align-items: center; justify-content: center; color: var(--gold-ink);
}
.bullet-ico svg { width: 17px; height: 17px; }
.bullet h4 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-bottom: 3px; letter-spacing: 0; }
.bullet p { font-size: 14.5px; color: var(--ink-muted); line-height: 1.6; }

/* ======================================================================
   APP UI KIT — the recreated interfaces.
   These are not screenshots. Every surface below is the app's own
   component vocabulary rebuilt in markup: cream canvas, floating cards,
   gold tracked eyebrows, hairline rules, New York serif Scripture.
   ====================================================================== */

.art-stage { position: relative; width: 100%; max-width: 460px; }
.art-stage::before {
    content: ''; position: absolute; inset: -14% -10%;
    background: radial-gradient(ellipse at 50% 40%, var(--gold-wash) 0%, transparent 68%);
    pointer-events: none;
}

/* --- Bare app surface (used for most feature art) --- */
.surface {
    background: var(--surface); border-radius: var(--r-card);
    box-shadow: var(--lift-prominent);
    border: 1px solid var(--card-edge);
    overflow: hidden; position: relative; z-index: 2; width: 100%;
}
.surface--canvas { background: var(--cream); }

/* --- Hero: two layered app surfaces, no device frame. The reader sits
       back; the verse sheet floats over its lower-right corner, which is
       how the moment actually reads in the app. Declared after .surface
       so these widths win. --- */
.art-stage--hero { max-width: 580px; padding-bottom: 132px; }
.surface.hero-reader { width: 78%; }
.surface.hero-sheet {
    position: absolute; right: 0; bottom: 0; width: 76%; z-index: 4;
    box-shadow: var(--lift-hero);
}

/* --- App chrome --- */
.app-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; gap: 10px;
}
.app-bar-title { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.pill-group {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface); border-radius: var(--r-full);
    padding: 6px 10px; box-shadow: var(--lift-subtle); color: var(--gold-ink);
}
.pill-group svg { width: 16px; height: 16px; }
.circle-btn {
    width: 30px; height: 30px; border-radius: 50%; background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-ink); box-shadow: var(--lift-subtle); flex-shrink: 0;
}
.circle-btn svg { width: 15px; height: 15px; }
.medallion {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: 0 2px 6px rgba(168,128,28,0.3);
}
.medallion .key-mark { width: 16px; height: 16px; }

/* --- Scripture typography --- */
.scripture {
    font-family: var(--serif); font-size: 15.5px; line-height: 1.62;
    color: var(--ink); padding: 4px 20px 0;
}
.scripture p { margin-bottom: 11px; }
.vnum { font-size: 9.5px; font-weight: 700; color: var(--gold); vertical-align: super; margin-right: 2px; font-family: var(--sans); }
.sec-head { font-family: var(--serif); font-weight: 700; font-size: 17px; margin: 16px 0 3px; }
.xref { font-family: var(--serif); font-style: italic; font-size: 12.5px; color: var(--terra); margin-bottom: 9px; display: flex; gap: 5px; align-items: baseline; }
.xref svg { width: 11px; height: 11px; flex-shrink: 0; transform: translateY(1px); }
.hl-verse { background: var(--hl-green); border-radius: 7px; padding: 3px 7px; margin: 0 -7px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* --- Verse action sheet (the app's core moment) --- */
.action-sheet { padding: 12px 0 4px; position: relative; }
.grabber { width: 34px; height: 4px; border-radius: 2px; background: var(--ink-ghost); margin: 0 auto 12px; opacity: .7; }
.sheet-ref { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--gold-ink); text-transform: uppercase; margin-bottom: 12px; }

.understand {
    display: flex; align-items: center; gap: 12px; margin: 0 16px;
    background: linear-gradient(135deg, #D1A857, #A88038);
    border-radius: 18px; padding: 12px 14px;
    box-shadow: 0 8px 18px rgba(140,102,46,0.26), inset 0 1px 0 rgba(255,255,255,0.2);
}
.understand-med {
    width: 38px; height: 38px; min-width: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center;
    color: var(--gold-deep);
}
.understand-med .key-mark { width: 20px; height: 20px; }
.understand h5 { font-family: var(--serif); font-size: 15.5px; font-weight: 700; color: #fff; letter-spacing: -0.01em; line-height: 1.2; }
.understand p { font-family: var(--serif); font-style: italic; font-size: 11.5px; color: rgba(255,255,255,0.88); line-height: 1.35; margin-top: 2px; }
.understand .arrow { margin-left: auto; color: rgba(255,255,255,0.9); display: flex; }
.understand .arrow svg { width: 15px; height: 15px; }

.chip-group { padding: 0 16px; margin-top: 14px; }
.chip-eyebrow { font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--ink-faint); margin-bottom: 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px; border-radius: var(--r-full);
    background: var(--surface); border: 1px solid var(--card-edge);
    font-size: 12.5px; font-weight: 500; color: var(--ink-soft);
    box-shadow: var(--lift-subtle);
}
.chip svg { width: 13px; height: 13px; color: var(--gold-ink); }
.chip--active { background: var(--gold-wash); border-color: var(--gold-hair); color: var(--gold-ink); }
.chip--ghost { background: transparent; box-shadow: none; border-color: var(--gold-hair); color: var(--gold-ink); }

/* --- Editorial insight sections (Word Study / Go Deeper) --- */
.specimen { padding: 26px 24px 0; }
.specimen-word { font-family: var(--serif); font-size: clamp(38px, 5.4vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.ref-pill {
    display: inline-block; margin-top: 13px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold-ink); background: var(--gold-wash);
    border: 1px solid var(--gold-hair); border-radius: var(--r-full); padding: 5px 11px;
}
.ed-section { padding: 24px 24px 0; }
.ed-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; color: var(--gold-ink); }
.ed-rule { height: 1px; background: var(--gold-hair); margin: 8px 0 11px; }
.ed-body { font-family: var(--serif); font-size: 14.5px; line-height: 1.62; color: var(--ink); }
.ed-body b { font-weight: 700; }

/* --- Ask bar --- */
.askbar { display: flex; align-items: center; gap: 9px; padding: 14px 16px 16px; }
.askbar-input {
    flex: 1; display: flex; align-items: center; gap: 9px;
    background: var(--surface); border: 1px solid var(--card-edge);
    border-radius: var(--r-full); padding: 10px 15px;
    font-size: 13px; color: var(--ink-faint); box-shadow: var(--lift-subtle);
}
.askbar-input svg { width: 14px; height: 14px; color: var(--gold); }
.askbar-send {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: 0 3px 8px rgba(168,128,28,0.28);
}
.askbar-send svg { width: 15px; height: 15px; }

/* --- Today's Light devotional cards --- */
.light-stack { position: relative; width: 100%; max-width: 340px; margin: 0 auto; padding: 18px 0 8px; }
.light-chrome { text-align: center; margin-bottom: 28px; }
.light-chrome b { display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--gold-ink); }
.light-chrome i { display: block; font-style: normal; font-size: 11px; color: var(--ink-faint); margin-top: 2px; }
.light-cards { position: relative; }
.light-card {
    background: var(--surface); border-radius: var(--r-xl);
    box-shadow: var(--lift-prominent); border: 1px solid var(--card-edge);
    padding: 26px 26px 24px; text-align: center;
}
.light-card--front { position: relative; z-index: 2; padding-top: 0; overflow: hidden; }
.light-card--behind {
    position: absolute; left: 50%; top: 0; width: 92%;
    transform: translateX(-50%) translateY(-15px) scale(0.94);
    opacity: .55; z-index: 0; height: 58px; overflow: hidden;
}
.light-card--behind2 {
    position: absolute; left: 50%; top: 0; width: 84%;
    transform: translateX(-50%) translateY(-29px) scale(0.88);
    opacity: .35; z-index: 0; height: 58px; overflow: hidden;
}
/* The devotional's art piece, full-bleed across the head of the card.
   Cropped past the blank arch at the foot of the fresco. */
.light-art {
    margin: 0 -26px 20px; aspect-ratio: 2.9 / 1;
    overflow: hidden; position: relative; background: var(--parchment);
}
.light-art img {
    width: 100%; height: 100%; display: block;
    object-fit: cover; object-position: center 40%;
}
.light-art::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    box-shadow: inset 0 -20px 24px -16px var(--surface);
}
.light-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 0.24em; color: var(--gold-ink); }
.light-rule { width: 40px; height: 1px; background: var(--gold-hair); margin: 13px auto 18px; }
.light-body { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.62; color: var(--ink); }
.light-ref { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--gold-ink); margin-top: 16px; }
.light-credit { font-size: 10px; font-style: italic; color: var(--ink-faint); margin-top: 18px; }
.light-nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 24px; }
.light-dots { display: flex; gap: 6px; }
.light-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-ghost); display: block; }
.light-dots i.on { background: var(--gold); }
.light-check {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: 0 6px 16px rgba(168,128,28,0.3);
}
.light-check svg { width: 18px; height: 18px; }
.light-back { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); box-shadow: var(--lift-subtle); display: flex; align-items: center; justify-content: center; color: var(--gold-ink); }
.light-back svg { width: 15px; height: 15px; }

/* ===================== DARK APP SURFACES ======================
   Prayer Maker and Selah are dark rooms inside the app. These sections
   keep their own fixed palette in both site themes — same as the app.
   ============================================================== */
.night { background: #0C0C0C; color: #F5F0EB; position: relative; overflow: hidden; }
.night::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(222,187,110,0.10) 0%, transparent 62%);
}
.night .eyebrow { color: #DEBB6E; }
.night .eyebrow::before { background: rgba(222,187,110,0.4); }
.night .lede { color: rgba(245,240,235,0.6); }
.night .bullet-ico { background: rgba(222,187,110,0.10); border-color: rgba(222,187,110,0.25); color: #DEBB6E; }
.night .bullet p { color: rgba(245,240,235,0.55); }
.night h2 em { color: #DEBB6E; }
.night .surface {
    background: #1C1C1E; border-color: rgba(255,255,255,0.08);
    box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}
.night .surface--canvas { background: #131313; }
.night .art-stage::before { background: radial-gradient(ellipse at 50% 40%, rgba(222,187,110,0.13) 0%, transparent 66%); }

/* --- Prayer Maker --- */
.pm { padding: 26px 24px 28px; text-align: center; }
.pm-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 0.26em; color: #DEBB6E; }
.pm-rule { width: 34px; height: 1px; background: rgba(222,187,110,0.35); margin: 12px auto 20px; }
.pm-lines { display: flex; flex-direction: column; gap: 9px; text-align: left; }
.pm-line {
    font-family: var(--serif); font-size: 14px; line-height: 1.5; color: rgba(245,240,235,0.9);
    background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 13px; padding: 11px 14px; display: flex; gap: 9px; align-items: flex-start;
}
.pm-line span.tag { font-family: var(--sans); font-size: 8.5px; font-weight: 700; letter-spacing: 0.14em; color: #DEBB6E; padding-top: 3px; flex-shrink: 0; }
.pm-line--pinned { border-color: rgba(222,187,110,0.3); background: rgba(222,187,110,0.07); }
.wave { display: flex; align-items: center; justify-content: center; gap: 3.5px; height: 44px; margin: 24px 0 14px; }
.wave i { width: 3px; border-radius: 2px; background: linear-gradient(to top, rgba(222,187,110,0.35), #DEBB6E); display: block; animation: breathe 1.5s ease-in-out infinite; }
@keyframes breathe { 0%,100% { height: 22%; opacity:.55 } 50% { height: 100%; opacity: 1 } }
.pm-status { font-size: 12px; color: rgba(245,240,235,0.5); letter-spacing: 0.02em; }
.pm-stop {
    width: 56px; height: 56px; border-radius: 50%; margin: 18px auto 0;
    background: linear-gradient(135deg, #DEBB6E, #9A7B3C);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 8px rgba(222,187,110,0.08), 0 10px 26px rgba(0,0,0,0.5);
}
.pm-stop i { width: 18px; height: 18px; border-radius: 4px; background: #0C0C0C; display: block; }

/* --- Selah recap --- */
.selah-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; }
.selah-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #DEBB6E; }
.selah-brand svg { width: 17px; height: 17px; }
.recap-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-lg); padding: 15px 16px; margin: 0 18px 11px;
}
.recap-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #F5F0EB; margin-bottom: 11px; }
.recap-title svg { width: 14px; height: 14px; color: #DEBB6E; }
.recap-title.terra svg { color: #D4956F; }
.quote-bar { display: flex; gap: 13px; }
.quote-bar::before { content: ''; width: 3px; border-radius: 2px; background: linear-gradient(to bottom, #DEBB6E, rgba(222,187,110,0.2)); flex-shrink: 0; }
.quote-bar.terra::before { background: #D4956F; }
.quote-bar p { font-family: var(--serif); font-size: 13.5px; line-height: 1.6; color: rgba(245,240,235,0.86); }
.moment { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; }
.moment time { font-size: 11.5px; font-weight: 600; color: #DEBB6E; font-variant-numeric: tabular-nums; width: 38px; flex-shrink: 0; }
.moment span { font-size: 13px; color: rgba(245,240,235,0.82); }
.moment--on time { color: #D4956F; }
.moment--on span { font-weight: 600; color: #F5F0EB; }
.verse-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.verse-chip { font-size: 11.5px; font-weight: 500; color: #DEBB6E; border: 1px solid rgba(222,187,110,0.28); border-radius: var(--r-full); padding: 5px 11px; }

/* --- Every Word --- */
.ew-head { padding: 22px 22px 0; }
.ew-day { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.ew-sub { font-size: 12.5px; color: var(--ink-muted); margin-top: 3px; }
.ew-streak {
    display: inline-flex; align-items: center; gap: 5px; float: right;
    background: var(--gold-wash); border: 1px solid var(--gold-hair); border-radius: var(--r-full);
    padding: 5px 11px; font-size: 12.5px; font-weight: 700; color: var(--gold-ink);
}
.ew-streak svg { width: 13px; height: 13px; }
.ew-track { height: 5px; border-radius: 3px; background: var(--gold-light); margin: 18px 22px 8px; overflow: hidden; }
.ew-track i { display: block; height: 100%; width: 18%; border-radius: 3px; background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep)); }
.ew-meta { padding: 0 22px 16px; font-size: 11.5px; color: var(--ink-faint); }
.stream {
    display: flex; align-items: center; gap: 12px; margin: 0 18px 8px;
    background: var(--surface-2); border: 1px solid var(--card-edge); border-radius: var(--r-md);
    padding: 12px 14px; box-shadow: var(--lift-subtle);
}
.stream-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--gold-wash); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stream-ico svg { width: 15px; height: 15px; }
.stream h6 { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--ink-faint); text-transform: uppercase; }
.stream p { font-family: var(--serif); font-size: 14.5px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.stream .tick { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-ghost); flex-shrink: 0; }
.stream .tick--done { border: none; background: var(--sage); display: flex; align-items: center; justify-content: center; color: #fff; }
.stream .tick--done svg { width: 11px; height: 11px; }

/* --- Eve chat --- */
.eve-head { display: flex; align-items: center; gap: 11px; padding: 18px 20px 14px; }
.eve-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: var(--gold-wash); border: 1px solid var(--gold-hair);
    display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.eve-avatar svg { width: 18px; height: 18px; }
.eve-head h5 { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.eve-head p { font-size: 12px; color: var(--ink-muted); }
.msgs { padding: 4px 18px 8px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 11px 14px; font-size: 13.5px; line-height: 1.55; border-radius: 17px; }
.msg--me { align-self: flex-end; background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: #fff; border-bottom-right-radius: 6px; }
.msg--eve { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--card-edge); color: var(--ink); border-bottom-left-radius: 6px; font-family: var(--serif); font-size: 14px; box-shadow: var(--lift-subtle); }
.msg--eve cite { display: block; font-family: var(--sans); font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--gold-ink); margin-top: 8px; }
.eve-actions { display: flex; gap: 8px; padding: 6px 18px 0; flex-wrap: wrap; }
.voice-orb {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: 0 0 0 7px var(--gold-wash), 0 8px 20px rgba(168,128,28,0.28);
}
.voice-orb svg { width: 19px; height: 19px; }

/* --- Family tree --- */
.tree { position: relative; padding: 22px 16px 24px; }
.tree-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 34px; position: relative; z-index: 2; flex-wrap: wrap; }
.tree-row:last-child { margin-bottom: 10px; }
/* Org-chart connectors: a spine between generations, a drop into each node */
.tree-row + .tree-row::before {
    content: ''; position: absolute; left: 16%; right: 16%; top: -17px;
    height: 1px; background: var(--ink-ghost); opacity: .6;
}
.tree-row + .tree-row::after {
    content: ''; position: absolute; left: 50%; top: -34px;
    width: 1px; height: 17px; background: var(--ink-ghost); opacity: .6;
}
.node {
    background: var(--surface-2); border-radius: 9px; padding: 6px 11px;
    border: 1.5px solid var(--ink-ghost); text-align: center; box-shadow: var(--lift-subtle);
    position: relative;
}
.tree-row + .tree-row .node::before {
    content: ''; position: absolute; left: 50%; top: -17px;
    width: 1px; height: 17px; background: var(--ink-ghost); opacity: .6;
}
.node b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.node i { display: block; font-style: normal; font-size: 8.5px; color: var(--ink-faint); margin-top: 1px; }
.node--gold { border-color: var(--gold); }
.node--sage { border-color: var(--sage); }
.node--terra { border-color: var(--terra); }
.tree-sheet {
    margin: 0 10px; background: var(--surface); border-radius: 20px 20px 0 0;
    padding: 14px 18px 20px; box-shadow: 0 -14px 34px rgba(31,27,23,0.12);
    border: 1px solid var(--card-edge); border-bottom: none;
}
.tree-sheet h5 { font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.tree-sheet .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 11px; }
.tag-pill { font-size: 10.5px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-full); background: var(--gold-wash); color: var(--gold-ink); border: 1px solid var(--gold-hair); }
.tree-sheet p { font-family: var(--serif); font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }

/* ========================= PROOF STRIP ========================= */
.proof { padding: 74px 32px; position: relative; }
.proof::before, .proof::after {
    content: ''; position: absolute; left: 12%; right: 12%; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-hair), transparent);
}
.proof::before { top: 0; } .proof::after { bottom: 0; }
.proof-grid { max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.proof-item { text-align: center; }
.stars { display: flex; justify-content: center; gap: 3px; margin-bottom: 15px; }
.stars svg { width: 15px; height: 15px; fill: var(--gold); }
.proof-text { font-family: var(--serif); font-size: clamp(18px, 2vw, 21px); font-style: italic; line-height: 1.5; color: var(--ink-soft); margin-bottom: 13px; }
.proof-src { font-size: 11px; font-weight: 700; color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.18em; }

/* ========================== MORE GRID ========================== */
.grid-head { text-align: center; max-width: 620px; margin: 0 auto 64px; }
.grid-head .lede { margin: 16px auto 0; }
.cards { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    background: var(--surface); border-radius: var(--r-card); padding: 30px 26px;
    border: 1px solid var(--card-edge); box-shadow: var(--lift-subtle);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--lift-prominent); border-color: var(--gold-hair); }
.card-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-wash); border: 1px solid var(--gold-hair); display: flex; align-items: center; justify-content: center; color: var(--gold-ink); margin-bottom: 18px; }
.card-ico svg { width: 20px; height: 20px; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-muted); line-height: 1.62; }

/* =========================== STORY =========================== */
.story-inner { max-width: 700px; margin: 0 auto; }
.story-head { text-align: center; margin-bottom: 42px; }
.story-photo { width: 100%; max-width: 460px; margin: 0 auto 44px; display: block; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--card-edge); box-shadow: var(--lift-medium); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-body { font-size: 17px; line-height: 1.85; color: var(--ink-muted); }
.story-body p { margin-bottom: 24px; }
.story-body p:last-child { margin-bottom: 0; }
.story-body strong { color: var(--ink); font-weight: 600; }
.story-body em { color: var(--gold-ink); font-style: normal; font-weight: 500; }
.story-close { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--gold-hair); text-align: center; font-family: var(--serif); font-size: clamp(19px, 2.4vw, 23px); font-style: italic; color: var(--ink-soft); line-height: 1.5; }

/* ============================= CTA ============================= */
.cta { padding: 140px 32px 150px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, var(--gold-wash) 0%, transparent 62%); pointer-events: none; }
.cta-inner { max-width: 660px; margin: 0 auto; position: relative; z-index: 2; }
.cta h2 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; margin-bottom: 22px; }
.cta .lede { margin: 0 auto 38px; }
.cta-key { width: 44px; height: 44px; color: var(--gold); margin: 0 auto 26px; display: block; opacity: .9; }

/* =========================== FOOTER =========================== */
footer { padding: 68px 32px 44px; background: #16130F; color: #F5F0EB; }
@media (prefers-color-scheme: dark) { footer { background: #08080A; border-top: 1px solid rgba(255,255,255,0.07); } }
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 72px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo { display: flex; align-items: center; gap: 9px; }
.footer-logo .key-mark { width: 24px; height: 24px; color: #DEBB6E; }
.footer-logo span { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.footer-brand p { color: rgba(245,240,235,0.45); font-size: 14px; line-height: 1.65; margin-top: 14px; max-width: 290px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.footer-nav h4 { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 18px; color: rgba(245,240,235,0.35); }
.footer-nav a { display: block; color: rgba(245,240,235,0.6); text-decoration: none; font-size: 14px; margin-bottom: 11px; transition: color .2s ease; }
.footer-nav a:hover { color: #DEBB6E; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; }
.footer-copy { color: rgba(245,240,235,0.3); font-size: 13px; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: rgba(245,240,235,0.3); text-decoration: none; font-size: 13px; transition: color .2s ease; }
.footer-legal a:hover { color: #DEBB6E; }

/* ========================== REVEAL ========================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s } .d2 { transition-delay: .16s } .d3 { transition-delay: .24s }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .wave i { animation: none; height: 60%; }
    html { scroll-behavior: auto; }
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1040px) {
    .row { grid-template-columns: 1fr; gap: 52px; }
    .row--flip .row-text, .row--flip .row-art { order: unset; }
    .row-text { text-align: center; }
    .row-text .eyebrow { justify-content: center; }
    .lede { margin-left: auto; margin-right: auto; }
    .bullets { align-items: center; }
    .bullet { max-width: 400px; width: 100%; text-align: left; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; gap: 44px; }
    .proof-grid { grid-template-columns: 1fr; gap: 42px; }
    .hero-inner { grid-template-columns: 1fr !important; gap: 54px; }
    .hero-text { text-align: center; }
    .hero-text .eyebrow, .hero-badge { justify-content: center; }
    .hero-actions { justify-content: center; }
    /* App surfaces must never inherit the centred copy alignment */
    .row-art, .surface { text-align: left; }
}
@media (max-width: 760px) {
    nav { padding: 14px 20px; } nav.scrolled { padding: 10px 20px; }
    .hamburger { display: flex; }
    .mobile-overlay { display: block; pointer-events: none; }
    .mobile-overlay.active { pointer-events: auto; }
    .nav-links {
        position: fixed; top: 0; right: -300px; width: 292px; height: 100vh;
        background: var(--surface); flex-direction: column; align-items: flex-start;
        padding: 78px 26px 32px; gap: 0; box-shadow: -8px 0 40px rgba(0,0,0,0.14);
        transition: right .35s var(--ease); z-index: 101;
    }
    .nav-links.active { right: 0; }
    .nav-link { display: block; font-size: 16px; padding: 15px 0; width: 100%; border-bottom: 1px solid var(--card-edge); }
    .nav-links .nav-cta { margin-top: 20px; padding: 13px 26px; text-align: center; width: 100%; }
    .section { padding: 86px 20px; }
    .cta { padding: 96px 20px 104px; }
    .proof { padding: 58px 20px; }
    .cards { grid-template-columns: 1fr; }
    .footer-nav { grid-template-columns: 1fr; gap: 26px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
/* Below ~620px the two hero surfaces stop overlapping and simply stack */
@media (max-width: 620px) {
    .art-stage--hero { padding-bottom: 0; }
    .surface.hero-reader { width: 100%; }
    .surface.hero-sheet { position: static; width: 100%; margin-top: 16px; box-shadow: var(--lift-prominent); }
}
@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-gold, .btn-quiet { width: 100%; justify-content: center; }
    .specimen { padding: 22px 18px 0; }
    .ed-section { padding: 20px 18px 0; }
}

/* ── The download button must survive the mobile menu ─────────────────────
   On small screens .nav-links slides off canvas, taking the CTA inside it
   with it. This second one lives in the bar itself and only appears there. */
.nav-cta--mobile { display: none; }

@media (max-width: 760px) {
    .nav-cta--mobile {
        display: inline-flex; align-items: center;
        /* beats the drawer rule above, which stretches its CTA to the panel */
        width: auto; margin-top: 0;
        margin-left: auto; margin-right: 14px;
        padding: 9px 18px; font-size: 13px; white-space: nowrap;
    }
    /* the one inside the drawer would otherwise be a second Download */
    .nav-links .nav-cta { margin-top: 24px; }
}
@media (max-width: 380px) {
    .nav-cta--mobile { padding: 8px 14px; font-size: 12.5px; margin-right: 10px; }
    .logo span { font-size: 19px; }
}

/* The hero's quiet links to the library — the reason someone can start
   reading without opening the menu. */
.hero-pills a { font-size: 13px; padding: 7px 14px; }
@media (max-width: 760px) {
    .hero-actions .btn-gold, .hero-actions .btn-quiet { flex: 1 1 100%; justify-content: center; }
    .hero-pills { margin-top: 16px; }
}
