:root {
    --bg: #f5f1ec;
    --bg-card: #faf9f6;
    --bg-white: #ffffff;
    --bg-dark: #2b303b;
    --bg-dark-warm: #2d3a4a;
    --text: #1a1612;
    --text-muted: #6b6480;
    --text-subtle: #929aac;
    --accent: #a88bc2;
    --accent-dark: #8b6fa8;
    --accent-soft: rgba(168, 139, 194, 0.14);
    --accent-soft-strong: rgba(168, 139, 194, 0.32);
    --border: #e8dfd5;
    --border-soft: rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

section { padding: 120px 0; }


.serif { font-family: Georgia, 'Times New Roman', serif; font-weight: 300; }
.italic-accent { font-style: italic; color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

a { color: inherit; text-decoration: none; }


/* ───── NAV ───── */
nav {
    position: fixed; top: 28px; left: 0; right: 0;
    background: rgba(245, 241, 236, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
}
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo {
    font-family: 'Spectral', 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: 22px; letter-spacing: -0.5px;
    color: var(--text);
}
.logo .i { color: var(--accent); font-style: italic; font-weight: 600; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
    font-size: 13px; font-weight: 300;
    opacity: 0.7; transition: opacity 0.2s;
    padding: 8px 0;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
    background: var(--accent-soft-strong);
    color: var(--text) !important;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px; font-weight: 500;
    transition: background 0.2s;
    border: none;
}
.nav-cta:hover { background: rgba(168, 139, 194, 0.5); }
@media (max-width: 768px) {
    .nav-links { display: none; }
}

/* ───── HERO ───── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 160px 0 80px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        500px circle at var(--spotlight-x, 80%) calc(var(--spotlight-y, 30%) + var(--parallax-y, 0px)),
        var(--accent-soft) 0%,
        transparent 65%
    );
    pointer-events: none;
    transition: background 200ms ease-out;
    z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
    .hero::before { transition: none; }
}
.hero-content { max-width: 620px; position: relative; z-index: 2; }
.hero h1 {
    font-family: Georgia, serif; font-weight: 300;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.05; letter-spacing: -0.02em;
    margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.hero-sub {
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 300; opacity: 0.78;
    margin-bottom: 36px; max-width: 480px;
    line-height: 1.5;
}
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    background: var(--accent-soft-strong);
    color: var(--text);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px; font-weight: 500;
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 14px rgba(168, 139, 194, 0.20);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover {
    background: rgba(168, 139, 194, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 8px 24px rgba(168, 139, 194, 0.30);
}
.beta-note {
    font-size: 12px; color: var(--text-muted);
    margin-top: 14px; opacity: 0.7;
}
.beta-badge {
    display: inline-block;
    font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent-dark);
    background: var(--accent-soft);
    padding: 4px 12px; border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid var(--accent-soft-strong);
}

/* ───── REVIEW STRIP (PLACEHOLDER) ───── */
.manifesto p.lead {
    font-family: Georgia, serif; font-weight: 300; font-style: italic;
    font-size: 22px; line-height: 1.5;
    color: var(--text); opacity: 1;
    margin-bottom: 32px;
}
.manifesto .highlight {
    background: var(--accent-soft-strong);
    padding: 0 4px;
    border-radius: 2px;
}

/* ───── 9 FORMS ───── */
.forms { background: var(--bg-card); text-align: center; }
.forms-arc {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
    margin: 60px auto 32px;
    max-width: 1100px;
    padding: 0 8px;
}
@media (max-width: 900px) {
    .forms-arc { grid-template-columns: repeat(3, 1fr); }
}
.form-cell {
    padding: 24px 8px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    color: inherit;
}
.form-cell:focus { outline: none; }
.form-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-cell.is-active {
    border-color: var(--accent-dark);
    background: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 139, 194, 0.15);
}
.form-detail {
    max-width: 560px; margin: 32px auto 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    text-align: left;
}
.form-detail-name {
    font-family: Georgia, serif; font-weight: 400; font-style: italic;
    font-size: 22px;
    color: var(--accent-dark);
    margin-bottom: 12px;
}
.form-detail-text {
    font-size: 15px; line-height: 1.65;
    color: var(--text);
    margin: 0;
}
.form-cell:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 139, 194, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
/* is-current removed, selection handled by .is-active set by JS */
.form-num {
    font-size: 10px; opacity: 0.5;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.form-name {
    font-family: Georgia, serif; font-weight: 400;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 8px;
}
.form-quote {
    font-size: 11px; line-height: 1.4;
    color: var(--text-muted);
    font-style: italic;
}
.forms-caption {
    max-width: 580px; margin: 0 auto;
    font-size: 15px; color: var(--text-muted);
    line-height: 1.6;
}

/* ───── FEATURES ───── */
.features { background: var(--bg); text-align: center; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto; margin-right: auto;
}
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 32px;
    text-align: left;
    transition: all 0.3s;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    border-color: var(--accent-soft-strong);
}
.feature-tag {
    display: inline-block;
    font-size: 10px; letter-spacing: 1.5px;
    text-transform: uppercase; font-weight: 500;
    padding: 4px 12px; border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    margin-bottom: 16px;
}
.feature-card h3 {
    font-family: Georgia, serif; font-weight: 400;
    font-size: 22px;
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 14px; line-height: 1.65;
    color: var(--text-muted);
}

/* ───── STUDIO 56, CATEGORIES GRID ───── */
.audience { background: var(--bg-card); text-align: center; }
.categories-intro {
    max-width: 580px; margin: 24px auto 56px;
    color: var(--text-muted);
    font-size: 16px; line-height: 1.65;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1100px; margin: 0 auto;
    text-align: left;
}
@media (max-width: 900px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .categories-grid { grid-template-columns: 1fr; } }
.category-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 22px 20px;
    transition: all 0.25s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--cat-color, var(--accent));
    opacity: 0.7;
}
.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
}
.category-icon {
    width: 22px; height: 22px;
    color: var(--cat-color, var(--accent));
    margin-bottom: 12px;
    opacity: 0.85;
}
.category-card h4 {
    font-family: Georgia, serif; font-weight: 400;
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--text);
}
.category-card p {
    font-size: 13px; line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

/* ───── PRIVACY ───── */
.privacy { background: var(--bg-dark-warm); color: #f5f1ec; }
.privacy .section-eyebrow { color: rgba(245, 241, 236, 0.4); }
.privacy .section-title { color: #f5f1ec; text-align: center; }
.privacy .lead {
    text-align: center;
    max-width: 620px; margin: 0 auto 60px;
    font-family: Georgia, serif; font-weight: 300; font-style: italic;
    font-size: 19px; line-height: 1.6;
    color: rgba(245, 241, 236, 0.78);
}
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px; margin: 0 auto;
}
@media (max-width: 768px) { .privacy-grid { grid-template-columns: 1fr; } }
.privacy-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 28px;
}
.privacy-card h3 {
    font-size: 15px; font-weight: 500;
    margin-bottom: 10px; color: #f5f1ec;
}
.privacy-card p {
    font-size: 13px; line-height: 1.65;
    color: rgba(245, 241, 236, 0.55);
}
.privacy-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}
.privacy-icon svg { width: 20px; height: 20px; }
.privacy-link {
    text-align: center; margin-top: 40px;
    font-size: 13px;
    color: rgba(245, 241, 236, 0.5);
}
.privacy-link a {
    color: var(--accent);
    border-bottom: 1px solid rgba(168, 139, 194, 0.3);
}

/* ───── FINAL CTA ───── */
.final-cta {
    background: #e8dfd5;
    color: var(--text);
    text-align: center;
    padding: 140px 0 60px;
    position: relative; overflow: hidden;
    border-top: 1px solid rgba(0,0,0,0.04);
}
.final-cta::before {
    content: '';
    position: absolute;
    bottom: -100px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(168, 139, 194, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.final-cta h2 {
    font-family: Georgia, serif; font-weight: 300;
    font-size: clamp(36px, 6vw, 60px);
    line-height: 1.1;
    margin-bottom: 16px;
    position: relative;
}
.final-cta h2 em { font-style: italic; color: var(--accent-dark); font-weight: 300; }
.final-cta-sub {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 460px;
    margin-left: auto; margin-right: auto;
    line-height: 1.6;
    position: relative;
}
.final-cta .btn-primary { position: relative; }

footer {
    margin-top: 100px;
    padding: 30px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
}


/* ───── REVIEWS, scrolling carousel ───── */
.reviews {
    padding: 60px 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    overflow: hidden;
    background: var(--bg-card);
}
.reviews-track {
    display: flex; gap: 48px;
    animation: scroll-reviews 90s linear infinite;
    width: max-content;
}
@keyframes scroll-reviews {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.review-item {
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 300;
    max-width: 560px;
}
.stars { color: var(--accent); letter-spacing: 1px; flex-shrink: 0; }
.review-text { color: var(--text); opacity: 0.85; font-style: italic; }
.review-name { color: var(--text-muted); font-size: 12px; flex-shrink: 0; white-space: nowrap; }

/* ───── PERSONAS GRID, clickable archetypes (mirrors 9 forms) ───── */
.personas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 1100px; margin: 48px auto 0;
}
@media (max-width: 900px) { .personas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .personas-grid { grid-template-columns: 1fr; } }
.persona-cell {
    padding: 22px 16px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.persona-icon {
    width: 22px; height: 22px;
    color: var(--accent-dark);
    opacity: 0.85;
    margin-bottom: 4px;
}
.persona-cell:focus { outline: none; }
.persona-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.persona-cell:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 139, 194, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.persona-cell.is-active {
    border-color: var(--accent-dark);
    background: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 139, 194, 0.15);
}
.persona-name {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 6px;
}
.persona-belief {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}
.persona-detail {
    max-width: 560px; margin: 32px auto 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    text-align: left;
}
.persona-detail-name {
    font-family: Georgia, serif; font-weight: 400; font-style: italic;
    font-size: 22px;
    color: var(--accent-dark);
    margin-bottom: 12px;
}
.persona-detail-text {
    font-size: 15px; line-height: 1.65;
    color: var(--text);
    margin: 0;
}

/* ───── AUDIENCE TABS, restored, sits ABOVE Studio 56 grid ───── */
.audience-intro {
    background: var(--bg);
    text-align: center;
    padding: 120px 0 60px;
}
.audience-tabs {
    display: flex; gap: 4px;
    justify-content: center; flex-wrap: wrap;
    margin: 40px auto 50px;
    max-width: 760px;
}
.audience-tab {
    padding: 10px 22px;
    border: none; background: transparent;
    font-size: 13px; font-weight: 400;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: inherit;
}
.audience-tab:hover { color: var(--text); }
.audience-tab.active {
    background: var(--accent-soft-strong);
    color: var(--text);
}
.audience-content {
    max-width: 680px; margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 50px 50px 42px;
    text-align: left;
    min-height: 240px;
}
.audience-content h3 {
    font-family: Georgia, serif; font-weight: 300; font-style: italic;
    font-size: 24px;
    color: var(--accent-dark);
    margin-bottom: 24px;
}
.audience-slide-text {
    font-family: Georgia, serif; font-weight: 300;
    font-size: 18px; line-height: 1.6;
    color: var(--text);
}
.audience-slide-text p { margin-bottom: 16px; }
.audience-slide-text p:last-child {
    color: var(--accent-dark);
    font-weight: 400;
    margin-bottom: 0;
}
.audience-more {
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ───── HERO SPOTLIGHT, extended to other sections ───── */
.has-spotlight { position: relative; overflow: hidden; }
.has-spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        450px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
        var(--accent-soft) 0%,
        transparent 60%
    );
    pointer-events: none;
    transition: background 250ms ease-out;
    opacity: 0.65;
    z-index: 0;
}
.has-spotlight > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
    .has-spotlight::before { transition: none; }
}

/* ── Sign-in link in nav (added for Pass 5) ──────────────────────────
   Sits left of the .nav-cta button. Inherits .nav-links a styling for
   color/opacity transitions; this rule only handles the spacing tweak
   so the link doesn't collide with the CTA button. */
.nav-link-auth {
    color: #b8b3c9;
    font-size: 14px;
    text-decoration: none;
    margin-right: 24px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.nav-link-auth:hover { opacity: 1; }
@media (max-width: 768px) {
    .nav-link-auth { margin-right: 14px; }
}

/* ════════════════════════════════════════════════════════════
   TWO-COLUMN GRID SECTIONS  (added 2026-06-06)
   Replaces the inline style="display:grid; grid-template-columns:
   1fr 1.2fr; gap: 80px; align-items: center" that previously sat
   on two .container blocks in Landing.cshtml ("Growth requires
   memory" + the second narrative-with-constellation section).
   Inline styles had no media query so on iPhone Safari the columns
   collapsed into a very narrow text strip beside the SVG. Matches
   the existing pattern used by .features-grid / .privacy-grid:
   stack to a single column at the 768px breakpoint.
   ════════════════════════════════════════════════════════════ */

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 768px) {
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Footer legal links (ship 54) — Privacy Policy + Terms & Conditions,
   anonymous routes required by Apple/Google store review. */
.footer-legal {
    /* Neutralize the global `nav { position:fixed; top:28px; ... }` rule
       (line ~41) that styles the landing's top bar by bare element —
       class specificity wins, so this block renders in-flow in the
       footer whether the markup is <nav> or <div role="navigation">. */
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    z-index: auto;
    padding: 0;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
}
.footer-legal a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    opacity: .75;
    transition: opacity .15s ease;
}
.footer-legal a:hover { opacity: 1; }
