/* She Affirms home — "Chapter One". Night plum and dawn blush, DM Serif with
   EB Garamond gold italics, real app captures. Legal pages keep style.css. */

:root {
  --night: #1b1024;
  --night-2: #2b1838;
  --plum: #3d2050;
  --ink: #241430;
  --ink-soft: #5b4766;
  --muted: #7d6a83;
  --dawn: #fbefe7;
  --blush: #f5e2e2;
  --cream: #fbf6ef;
  --paper: #fffaf4;
  --line: rgba(36, 20, 48, 0.12);
  --gold: #e2bd7a;
  --gold-deep: #a07a3a;
  --rose: #8d4b6d;
  --on-night: #fbf3ea;
  --on-night-soft: rgba(251, 243, 234, 0.72);
  --serif: "DM Serif Display", Georgia, serif;
  --italic: "EB Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 28px;
  --shadow: 0 40px 80px -30px rgba(43, 18, 56, 0.45);
  --wrap: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

/* ── Moods ─────────────────────────────────────────── */
.night { position: relative; background: radial-gradient(120% 70% at 80% 10%, #4a2558 0%, transparent 60%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: var(--on-night); overflow: hidden; }
.dawn { background: linear-gradient(180deg, #f3e3ee 0%, var(--dawn) 55%, #f8e6dc 100%); }
.blush { background: linear-gradient(180deg, var(--blush) 0%, #f1dcdf 100%); }
.cream { background: var(--cream); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }

/* ── Type ──────────────────────────────────────────── */
.display { font: 400 clamp(44px, 6.4vw, 84px)/1.02 var(--serif); letter-spacing: -0.01em; }
.display em { font: italic 400 1.14em/0.95 var(--italic); color: var(--gold-deep); letter-spacing: -0.005em; }
.night .display em { color: var(--gold); }
.display-md { font-size: clamp(38px, 4.6vw, 60px); }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--on-night-soft); max-width: 34em; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--rose); margin-bottom: 22px; }
.night .eyebrow { color: var(--gold); }
.chapter-no { font: 500 17px/1 var(--italic); letter-spacing: 0; }
.eyebrow-spark { width: 11px; height: 11px; color: currentColor; flex: none; }
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-desc { margin-top: 22px; font-size: 18px; color: var(--ink-soft); max-width: 36em; }
.section-head.center .section-desc { margin-left: auto; margin-right: auto; }

/* ── Buttons ───────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; border: 1px solid transparent; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-block { width: 100%; padding: 17px 20px; }
.btn-gold, .btn-primary { background: linear-gradient(180deg, #f0d39b 0%, var(--gold) 100%); color: #2a1633; box-shadow: 0 10px 30px -10px rgba(226, 189, 122, .7); }
.btn-gold:hover, .btn-primary:hover { box-shadow: 0 16px 36px -12px rgba(226, 189, 122, .85); }
.btn-line { border-color: rgba(251, 243, 234, .35); color: var(--on-night); }
.btn-line:hover { border-color: var(--on-night); }
.btn-line-dark { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-line-dark:hover { border-color: var(--ink); }
.btn-icon { width: 17px; height: 20px; margin-top: -3px; }

/* ── Nav ───────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s ease, box-shadow .3s ease; }
.nav.scrolled { background: rgba(27, 16, 36, .82); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 32px; color: var(--on-night); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 22px/1 var(--serif); letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand em { font: italic 400 1.12em/1 var(--italic); color: var(--gold); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--on-night-soft); transition: color .2s; }
.nav-links a:hover { color: var(--on-night); }
.nav-controls { display: flex; align-items: center; gap: 12px; }
.lang-switcher { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; background: none; border: 1px solid rgba(251, 243, 234, .22); border-radius: 999px; padding: 9px 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--on-night); cursor: pointer; }
.lang-dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .18s ease; }
.lang-dropdown.open { opacity: 1; visibility: visible; transform: none; }
.lang-option { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: none; font-size: 14px; color: var(--ink); cursor: pointer; }
.lang-option:hover, .lang-option.active { background: var(--blush); }

/* ── Phone ─────────────────────────────────────────── */
.phone { position: relative; width: 300px; aspect-ratio: 660 / 1434; padding: 9px; border-radius: 52px; background: linear-gradient(145deg, #3a2a44, #120a18 60%); box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .08); flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 44px; }

/* ── Hero ──────────────────────────────────────────── */
.hero { padding: 150px 0 120px; }
.hero-backdrop { position: absolute; inset: -10%; background: url("img/story/flower.jpg") 70% 30% / cover; filter: blur(80px) saturate(1.4); opacity: .2; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(46px, 5.2vw, 76px); }
.hero-copy .lede { margin-top: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--on-night-soft); letter-spacing: .02em; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 780px; padding-top: 10px; }
.phone-hero { width: 320px; z-index: 2; }
.hero-cards { position: absolute; inset: 0; }
.hero-card { position: absolute; width: 190px; border-radius: 22px; border: 8px solid var(--paper); box-shadow: var(--shadow); }
.hero-card-a { left: -10%; top: 30%; transform: rotate(-9deg); }
.hero-card-b { right: -10%; top: 6%; transform: rotate(8deg); }
.float-note { position: absolute; z-index: 3; border-radius: 20px; background: rgba(255, 250, 244, .94); color: var(--ink); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.float-wish { left: -18%; top: 4%; max-width: 240px; padding: 16px 20px; display: grid; gap: 6px; transform: rotate(-2deg); }
.float-label { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
.float-text { font: italic 400 20px/1.25 var(--italic); }
.float-len { left: 50%; bottom: 0; transform: translateX(-50%); padding: 12px 18px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.float-spark { width: 14px; height: 14px; color: var(--gold-deep); }

/* ── Ribbon ────────────────────────────────────────── */
.ribbon { background: var(--night); color: var(--on-night); overflow: hidden; border-top: 1px solid rgba(226, 189, 122, .25); border-bottom: 1px solid rgba(226, 189, 122, .25); }
.ribbon-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 22px 0; animation: ribbon 60s linear infinite; }
.ribbon-track span { font: italic 400 22px/1 var(--italic); white-space: nowrap; }
.ribbon-track svg { width: 12px; height: 12px; color: var(--gold); flex: none; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ── How ───────────────────────────────────────────── */
.how { padding: 130px 0; }
.chapters { display: grid; gap: 40px; grid-template-columns: repeat(3, 1fr); counter-reset: chapter; }
.chapter { display: flex; flex-direction: column; gap: 36px; }
.chapter-copy { min-height: 230px; }
.chapter .phone { width: 100%; max-width: 300px; }
.chapter-num { display: block; font: italic 400 46px/1 var(--italic); color: var(--gold-deep); margin-bottom: 12px; }
.chapter h3 { font: 400 30px/1.1 var(--serif); margin-bottom: 12px; }
.chapter p { color: var(--ink-soft); font-size: 16.5px; }

/* ── Listen ────────────────────────────────────────── */
.listen { padding: 150px 0; text-align: center; }
.listen-backdrop { position: absolute; inset: -10%; background: url("img/story/flower.jpg") center 35% / cover; filter: blur(50px) saturate(1.3); opacity: .22; }
.listen-inner { position: relative; max-width: 940px; }
.listen .eyebrow { justify-content: center; }
.story-line { font: 400 clamp(32px, 4.4vw, 56px)/1.18 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.listen-player { display: flex; align-items: center; gap: 16px; max-width: 460px; margin: 56px auto 0; font-size: 13px; color: var(--on-night-soft); font-variant-numeric: tabular-nums; }
.listen-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(251, 243, 234, .22); overflow: hidden; }
.listen-bar span { display: block; width: 18%; height: 100%; background: var(--on-night); animation: listen 18s linear infinite; }
@keyframes listen { from { width: 18%; } to { width: 34%; } }
.listen-cite { margin-top: 22px; font: italic 400 19px/1.4 var(--italic); color: var(--on-night-soft); }

/* ── Stories gallery ───────────────────────────────── */
.stories { padding: 130px 0 110px; }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: start; }
.story-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night); box-shadow: 0 30px 60px -30px rgba(60, 20, 60, .55); transition: transform .35s ease; }
.story-card:nth-child(even) { margin-top: 48px; }
.story-card:hover { transform: translateY(-6px) rotate(-.5deg); }
.story-card img { width: 100%; aspect-ratio: 530 / 740; object-fit: cover; }
.story-card figcaption { position: absolute; inset: auto 0 0; padding: 60px 18px 18px; background: linear-gradient(180deg, transparent, rgba(20, 10, 26, .82)); color: #fff; font: italic 400 18px/1.25 var(--italic); }
.ai-note { margin-top: 44px; font-size: 13.5px; color: var(--muted); text-align: center; }
.ai-note a { color: var(--rose); }

/* ── Board + ritual ────────────────────────────────── */
.pair { padding: 130px 0; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 40px 0; border-radius: 40px; overflow: hidden; background: linear-gradient(180deg, var(--paper) 0%, #f7ece6 100%); box-shadow: 0 1px 0 var(--line), 0 40px 80px -60px rgba(60, 20, 60, .5); }
.feature-copy { order: -1; max-width: 480px; }
.feature .eyebrow { justify-content: center; }
.feature .phone { width: 290px; margin: 48px 0 -120px; }
.feature-copy p:last-child { margin-top: 18px; color: var(--ink-soft); }

/* ── Pricing ───────────────────────────────────────── */
.pricing { padding: 130px 0; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 24px; align-items: start; }
.plan { position: relative; padding: 40px 34px 34px; border-radius: 32px; background: var(--paper); border: 1px solid var(--line); }
.plan-featured { background: linear-gradient(180deg, var(--night) 0%, var(--plum) 100%); color: var(--on-night); border-color: transparent; box-shadow: var(--shadow); }
.plan-ribbon { position: absolute; top: -13px; left: 34px; padding: 7px 14px; border-radius: 999px; background: var(--gold); color: #2a1633; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.plan-name { font: italic 400 28px/1 var(--italic); }
.plan-featured .plan-name { color: var(--gold); }
.plan-price { margin-top: 18px; font: 400 54px/1 var(--serif); }
.plan-price small { font: 400 16px/1 var(--sans); margin-left: 6px; opacity: .7; }
.plan-tag { margin-top: 12px; font-size: 15px; opacity: .75; }
.plan-list { display: grid; gap: 12px; margin: 30px 0 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.plan-featured .plan-list { border-color: rgba(251, 243, 234, .14); }
.plan-list li { display: flex; gap: 12px; font-size: 15.5px; }
.plan-list li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 7px; background: var(--gold-deep); clip-path: path("M5 0C5 3.6 3.6 5 0 5c3.6 0 5 1.4 5 5 0-3.6 1.4-5 5-5C6.4 5 5 3.6 5 0Z"); }
.plan-featured .plan-list li::before { background: var(--gold); }
.pricing-foot { margin-top: 36px; text-align: center; font-size: 14px; color: var(--muted); }

/* ── FAQ ───────────────────────────────────────────── */
.faq { padding: 130px 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { position: relative; width: 100%; text-align: left; padding: 26px 48px 26px 0; background: none; border: 0; cursor: pointer; font: 400 23px/1.3 var(--serif); }
.faq-question::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 300 28px/1 var(--sans); color: var(--gold-deep); transition: transform .25s ease; }
.faq-item.open .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer-inner { padding: 0 0 28px; color: var(--ink-soft); max-width: 40em; }
.faq-answer-inner a { color: var(--rose); }

/* ── Final ─────────────────────────────────────────── */
.final { padding: 160px 0; text-align: center; }
.final-backdrop { position: absolute; inset: -10%; background: url("img/story/paris.jpg") center 30% / cover; filter: blur(70px) saturate(1.4); opacity: .2; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final .eyebrow { justify-content: center; }
.final .lede { margin: 26px auto 40px; }

/* ── Footer ────────────────────────────────────────── */
.footer { background: var(--night); color: var(--on-night-soft); padding: 80px 0 40px; font-size: 14.5px; }
.footer .brand { color: var(--on-night); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(251, 243, 234, .1); }
.footer-tagline { margin-top: 14px; font: italic 400 18px/1.4 var(--italic); }
.footer-heading { margin-bottom: 14px; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.footer-links { display: grid; gap: 9px; }
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--on-night); }
.footer-copyright { margin-top: 28px; font-size: 13px; opacity: .7; }

/* ── Sticky CTA + modal ────────────────────────────── */
.sticky-cta { position: fixed; inset: auto 12px 12px; z-index: 40; }
.sticky-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-radius: 22px; background: rgba(27, 16, 36, .92); color: var(--on-night); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.sticky-cta-text { display: grid; font-size: 13px; line-height: 1.3; }
.sticky-cta-text strong { font: 400 17px/1.2 var(--serif); }
.sticky-cta-text span { color: var(--on-night-soft); }
body.has-sticky-cta { padding-bottom: 88px; }
.dl-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.dl-modal[hidden] { display: none; }
.dl-modal-backdrop { position: absolute; inset: 0; background: rgba(20, 10, 26, .6); backdrop-filter: blur(6px); }
.dl-modal-card { position: relative; width: min(420px, 100%); padding: 40px 32px 32px; border-radius: 32px; background: var(--paper); text-align: center; box-shadow: var(--shadow); }
.dl-modal-close { position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.dl-modal-icon { font-size: 34px; }
.dl-modal-title { margin-top: 12px; font: 400 28px/1.15 var(--serif); }
.dl-modal-body { margin-top: 12px; color: var(--ink-soft); }
.dl-modal-actions { margin-top: 24px; display: flex; justify-content: center; }
.dl-modal-actions .btn { padding: 14px 26px; }

/* ── Reveal on scroll ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.animate-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-track, .listen-bar span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero .eyebrow, .hero-cta { justify-content: center; }
  .hero-visual { min-height: 760px; max-width: 520px; margin: 0 auto; width: 100%; }
  .float-wish { left: -4%; }
  .pair-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .story-card:nth-child(even) { margin-top: 0; }
  .story-card:nth-child(n+4) { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-controls { margin-left: auto; }
  .chapters { grid-template-columns: 1fr; gap: 72px; }
  .chapter { flex-direction: row; align-items: center; gap: 28px; }
  .chapter-copy { min-height: 0; }
  .chapter .phone { width: 220px; }
  .chapter:nth-child(even) { flex-direction: row-reverse; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: minmax(0, 420px); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-inner { padding: 12px 16px; gap: 12px; }
  .nav .btn-sm { display: none; }
  .hero { padding: 116px 0 80px; }
  .hero-cta .btn { width: 100%; }
  .hero-visual { min-height: 600px; }
  .phone-hero { width: 250px; border-radius: 42px; padding: 7px; }
  .phone-hero img { border-radius: 36px; }
  .hero-card { width: 128px; border-width: 6px; border-radius: 16px; }
  .hero-card-a { left: -2%; }
  .hero-card-b { right: -2%; }
  .float-wish { left: -2%; top: auto; bottom: 14%; max-width: 200px; padding: 12px 16px; }
  .float-text { font-size: 17px; }
  .float-len { display: none; }
  .ribbon-track span { font-size: 19px; }
  .how, .stories, .pair, .pricing, .faq { padding: 96px 0; }
  .listen, .final { padding: 110px 0; }
  .section-head { margin-bottom: 44px; }
  .chapter, .chapter:nth-child(even) { flex-direction: column; align-items: flex-start; }
  .chapter .phone { width: 72%; max-width: 280px; align-self: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .story-card:nth-child(n+4) { display: block; }
  .story-card:nth-child(3) { grid-column: span 2; }
  .story-card:nth-child(3) img { aspect-ratio: 4 / 3; }
  .story-card figcaption { font-size: 16px; padding: 40px 14px 14px; }
  .feature { padding: 44px 22px 0; }
  .feature .phone { width: 240px; margin: 36px 0 -90px; }
  .plan { padding: 36px 24px 26px; }
  .faq-question { font-size: 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
