/* ==========================================================================
   Dreams Come True — marketing site
   Design language: «Dawn Paper» (mirrors the app's src/design/tokens.ts).
   Deliberately dark-only, like the v1 app: the room at 6am. The page warms
   from night-plum toward a dawn glow as you scroll — the brand read literally.
   Zero dependencies; system serif speaks for the dream, sans for the chrome.
   ========================================================================== */

/* ---------- Tokens (source of truth: app repo src/design/tokens.ts) ------ */
:root {
  --bg: #1a1418;
  --surface: #241b22;
  --raised: #2e222b;
  --ink: #f2e9de;
  --ink-subdued: #c9a29a;
  --accent: #e08d79;
  --honey: #d9a05b;
  --on-accent: #241014;
  --hairline: rgba(224, 141, 121, 0.22);
  --glow: rgba(224, 141, 121, 0.16);
  --trend: #7a6bb0;
  --trend-point: #b7a9ff;
  /* Mood valence scale (app CHART.valence, dusk tones — never alarm colors) */
  --v-n2: #7a2b48;
  --v-n1: #845c86;
  --v-0: #6c6486;
  --v-p1: #4a7b78;
  --v-p2: #c9a45c;

  --serif: 'New York', ui-serif, 'Iowan Old Style', 'Palatino Nova', Palatino,
    'Book Antiqua', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;

  --radius-card: 18px;
  --radius-control: 16px;
  --radius-chip: 10px;

  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
  --gentle: 300ms;
  --drift: 450ms;

  --container: 1080px;
  --pad: clamp(20px, 4vw, 32px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
.serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.14;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.3;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink-subdued);
  max-width: 38em;
  text-wrap: pretty;
}

.prose {
  color: var(--ink-subdued);
  max-width: 62ch;
  text-wrap: pretty;
}

.prose strong,
.lede strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section {
  padding: clamp(4.2rem, 9vw, 7.5rem) 0;
  position: relative;
}

.section-head {
  max-width: 620px;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}

.section-head .lede {
  margin-top: 1rem;
}

.center {
  text-align: center;
}

.center .section-head,
.center .lede {
  margin-left: auto;
  margin-right: auto;
}

/* Two-column feature rows (text + phone) */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .split.flip > .split-media {
    order: -1;
  }
}

/* ---------- Buttons + CTA ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  min-height: 52px;
  padding: 0.85em 1.7em;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform var(--gentle) var(--ease),
    box-shadow var(--gentle) var(--ease),
    background var(--gentle) var(--ease);
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 6px 30px rgba(224, 141, 121, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(224, 141, 121, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

/* "Coming soon" state — honest, calm, not a fake button */
.cta-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.85em 1.6em;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-control);
  color: var(--ink-subdued);
  font-weight: 500;
}

.cta-soon .moon {
  color: var(--accent);
}

/* Microcopy under any CTA */
.cta-note {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-subdued);
}

.cta-note .sep {
  opacity: 0.45;
  margin: 0 0.45em;
}

/* Waitlist form */
.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 460px;
}

.center .waitlist {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.waitlist input[type='email'] {
  flex: 1 1 220px;
  min-height: 52px;
  padding: 0 1.1em;
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
}

.waitlist input[type='email']::placeholder {
  color: var(--ink-subdued);
  opacity: 0.75;
}

.waitlist input[type='email']:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Honeypot — visually gone, present for bots */
.waitlist .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-msg {
  flex-basis: 100%;
  font-size: 0.92rem;
  margin-top: 4px;
  color: var(--ink-subdued);
}

.waitlist-msg.ok {
  color: var(--honey);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 20, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(224, 141, 121, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--serif);
  font-size: 1.14rem;
  color: var(--ink);
  white-space: nowrap;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark .moon {
  color: var(--accent);
  font-size: 1.05em;
}

.nav-links {
  display: none;
  gap: 1.6rem;
  align-items: center;
}

.nav-links a {
  color: var(--ink-subdued);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }
}

.nav .btn {
  min-height: 42px;
  padding: 0.5em 1.15em;
  font-size: 0.92rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: clip;
}

/* Night sky: faint paper-dust stars, then the dawn glow low on the horizon */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(242, 233, 222, 0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 12%, rgba(242, 233, 222, 0.28) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 26%, rgba(242, 233, 222, 0.22) 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 8%, rgba(242, 233, 222, 0.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 34%, rgba(242, 233, 222, 0.2) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 42%, rgba(242, 233, 222, 0.18) 50%, transparent 51%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 42% at 50% 118%, rgba(217, 160, 91, 0.16), transparent 70%),
    radial-gradient(85% 55% at 50% 115%, rgba(224, 141, 121, 0.2), transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.6rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 880px) {
  .hero-inner {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

.hero h1 {
  margin: 0.9rem 0 1.15rem;
}

.hero .lede {
  margin-bottom: 2rem;
}

.hero-media {
  display: flex;
  justify-content: center;
  position: relative;
}

/* The breathing crescent behind the phone (app's Breathing moment) */
.crescent {
  position: absolute;
  top: -34px;
  right: 8%;
  font-size: 64px;
  line-height: 1;
  color: var(--ink);
  opacity: 0.9;
  text-shadow: 0 0 34px rgba(224, 141, 121, 0.45);
  animation: breathe 4.5s var(--ease) infinite alternate;
  z-index: 2;
}

@keyframes breathe {
  from {
    transform: scale(1);
    opacity: 0.75;
  }

  to {
    transform: scale(1.07);
    opacity: 1;
  }
}

/* ---------- Phone mockup ---------- */
.phone {
  width: min(330px, 82vw);
  aspect-ratio: 9 / 19;
  background: var(--bg);
  border: 9px solid #100b0e;
  border-radius: 46px;
  box-shadow:
    0 0 0 1px rgba(242, 233, 222, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(224, 141, 121, 0.12);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.phone::before {
  /* Dynamic island */
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 24px;
  background: #100b0e;
  border-radius: 999px;
  z-index: 3;
}

.phone-screen {
  position: absolute;
  inset: 0;
  padding: 52px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
}

.phone-screen .s-eyebrow {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.phone-screen .s-title {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
  color: var(--ink);
}

.phone-screen .s-sub {
  color: var(--ink-subdued);
  font-size: 12px;
}

.phone-screen .s-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 14px;
}

.phone-screen .s-prose {
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ink);
}

.phone-screen .s-symbol {
  display: flex;
  gap: 9px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(224, 141, 121, 0.12);
}

.phone-screen .s-symbol:last-child {
  border-bottom: none;
}

.phone-screen .s-glyph {
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
}

.phone-screen .s-symbol b {
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
}

.phone-screen .s-symbol span {
  color: var(--ink-subdued);
  font-size: 11px;
}

.phone-screen .s-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--raised);
  border-radius: 9px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--ink-subdued);
}

.phone-screen .s-chip b {
  color: var(--ink);
}

/* Capture screen: live waveform */
.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
  justify-content: center;
}

.wave i {
  width: 4px;
  border-radius: 999px;
  background: var(--accent);
  height: 30%;
  animation: wave 1.3s ease-in-out infinite;
}

.wave i:nth-child(2n) {
  animation-delay: 0.15s;
  height: 65%;
}

.wave i:nth-child(3n) {
  animation-delay: 0.3s;
  height: 90%;
}

.wave i:nth-child(5n) {
  animation-delay: 0.45s;
  height: 50%;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.55);
  }

  50% {
    transform: scaleY(1);
  }
}

.rec-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7a2b48;
  margin-right: 6px;
  animation: breathe 1.4s ease-in-out infinite alternate;
}

/* Patterns screen bits */
.trend-svg {
  width: 100%;
  height: auto;
}

.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal i {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 8.5px;
  color: rgba(242, 233, 222, 0.4);
}

.cal i.n2 {
  background: var(--v-n2);
  color: #fff;
}

.cal i.n1 {
  background: var(--v-n1);
  color: #fff;
}

.cal i.v0 {
  background: var(--v-0);
  color: #fff;
}

.cal i.p1 {
  background: var(--v-p1);
  color: #fff;
}

.cal i.p2 {
  background: var(--v-p2);
  color: #2b1a24;
}

/* ---------- Steps (how it works) ---------- */
.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  counter-reset: step;
}

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

.step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 26px 24px 24px;
  position: relative;
}

.step .glyph {
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--ink-subdued);
  font-size: 0.97rem;
}

.step::after {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-subdued);
  opacity: 0.55;
}

/* ---------- Honesty / boundary card ---------- */
.boundary {
  margin-top: 2.2rem;
  background: linear-gradient(180deg, var(--surface), rgba(36, 27, 34, 0.4));
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  max-width: 640px;
}

.boundary h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.boundary p {
  color: var(--ink-subdued);
  font-size: 0.97rem;
}

/* ---------- Proof grid (privacy) ---------- */
.proof-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.proof {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 26px;
}

.proof .glyph {
  color: var(--accent);
  font-size: 22px;
  display: block;
  margin-bottom: 12px;
}

.proof h3 {
  font-size: 1.16rem;
  margin-bottom: 8px;
}

.proof p {
  color: var(--ink-subdued);
  font-size: 0.96rem;
}

/* ---------- Delights grid ---------- */
.delights {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .delights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 940px) {
  .delights {
    grid-template-columns: repeat(4, 1fr);
  }
}

.delight {
  background: var(--surface);
  border: 1px solid rgba(224, 141, 121, 0.14);
  border-radius: var(--radius-card);
  padding: 20px;
}

.delight .glyph {
  color: var(--honey);
  font-size: 19px;
  display: block;
  margin-bottom: 10px;
}

.delight h3 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 650;
  margin-bottom: 5px;
}

.delight p {
  color: var(--ink-subdued);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---------- Dream cards fan ---------- */
.card-fan {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(-60px, -4vw, -30px);
  padding: 2.5rem 0 1rem;
  flex-wrap: nowrap;
}

.dream-card {
  --card-bg: var(--surface);
  --card-accent: var(--accent);
  --card-ink: var(--ink);
  width: clamp(150px, 17vw, 200px);
  aspect-ratio: 9 / 16;
  background: var(--card-bg);
  color: var(--card-ink);
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  transition: transform var(--drift) var(--ease);
  flex-shrink: 0;
}

.dream-card:nth-child(1) {
  transform: rotate(-7deg) translateY(16px);
}

.dream-card:nth-child(2) {
  transform: rotate(-3deg) translateY(4px);
}

.dream-card:nth-child(3) {
  transform: rotate(0deg) translateY(0) scale(1.04);
  z-index: 2;
}

.dream-card:nth-child(4) {
  transform: rotate(3.5deg) translateY(6px);
}

.dream-card:nth-child(5) {
  transform: rotate(7.5deg) translateY(18px);
}

.dream-card:hover {
  transform: rotate(0) translateY(-8px) scale(1.06);
  z-index: 3;
}

.dream-card .dc-glyphs {
  font-size: 15px;
  letter-spacing: 0.35em;
  color: var(--card-accent);
}

.dream-card .dc-title {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.25;
  margin-top: auto;
}

.dream-card.sans .dc-title {
  font-family: var(--sans);
  font-weight: 650;
}

.dream-card .dc-line {
  font-size: 10.5px;
  line-height: 1.5;
  opacity: 0.78;
  margin-top: 7px;
}

.dream-card .dc-mark {
  font-size: 7.5px;
  letter-spacing: 0.06em;
  opacity: 0.5;
  margin-top: 14px;
}

@media (max-width: 719px) {
  .card-fan {
    flex-wrap: wrap;
    gap: 16px;
  }

  .dream-card {
    width: 150px;
  }

  .dream-card:nth-child(n) {
    transform: none;
  }
}

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: stretch;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 760px) {
  .pricing {
    grid-template-columns: 1fr 1.08fr;
  }
}

.plan {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.plan.pro {
  background: linear-gradient(170deg, var(--raised), var(--surface) 65%);
  border-color: rgba(224, 141, 121, 0.45);
  box-shadow: 0 20px 70px rgba(224, 141, 121, 0.08);
}

.plan .plan-name {
  font-family: var(--serif);
  font-size: 1.35rem;
}

.plan .plan-price {
  margin: 10px 0 4px;
  font-size: 2rem;
  font-family: var(--serif);
}

.plan .plan-price small {
  font-size: 0.95rem;
  font-family: var(--sans);
  color: var(--ink-subdued);
}

.plan .plan-sub {
  color: var(--ink-subdued);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.plan ul {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-bottom: 22px;
}

.plan li {
  padding-left: 1.5em;
  position: relative;
  font-size: 0.96rem;
  color: var(--ink-subdued);
}

.plan li strong {
  color: var(--ink);
  font-weight: 600;
}

.plan li::before {
  content: '✧';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.plan.free li::before {
  content: '☾';
  color: var(--honey);
}

.plan .btn,
.plan .cta-soon {
  margin-top: auto;
  justify-content: center;
  width: 100%;
}

.plan-foot {
  text-align: center;
  color: var(--ink-subdued);
  font-size: 0.88rem;
  margin-top: 1.6rem;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '☾';
  color: var(--accent);
  transition: transform var(--gentle) var(--ease);
  flex-shrink: 0;
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq .faq-body {
  padding: 0 24px 22px;
  color: var(--ink-subdued);
  font-size: 0.97rem;
}

.faq .faq-body a {
  color: var(--accent);
}

/* ---------- Final CTA (dawn arrives) ---------- */
.finale {
  position: relative;
  overflow: clip;
  padding: clamp(5rem, 12vw, 9rem) 0;
  text-align: center;
}

.finale::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 34% at 50% 112%, rgba(217, 160, 91, 0.35), transparent 72%),
    radial-gradient(75% 52% at 50% 110%, rgba(224, 141, 121, 0.34), transparent 75%),
    radial-gradient(100% 70% at 50% 120%, rgba(122, 107, 176, 0.12), transparent 80%);
  pointer-events: none;
}

.finale .container {
  position: relative;
  z-index: 1;
}

.finale h2 {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  margin-bottom: 1rem;
}

.finale .lede {
  margin: 0 auto 2.2rem;
}

.finale .moon-big {
  font-size: 44px;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(224, 141, 121, 0.5);
  display: block;
  margin-bottom: 1.6rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(224, 141, 121, 0.12);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subdued);
  margin-bottom: 0.9rem;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer a {
  color: var(--ink-subdued);
}

.footer a:hover {
  color: var(--ink);
}

.footer .wordmark {
  margin-bottom: 0.7rem;
}

.footer .tagline {
  color: var(--ink-subdued);
  max-width: 30ch;
}

.disclaimer {
  color: var(--ink-subdued);
  font-size: 0.84rem;
  line-height: 1.6;
  max-width: 70ch;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(224, 141, 121, 0.1);
  opacity: 0.92;
}

.copyright {
  margin-top: 1.2rem;
  color: var(--ink-subdued);
  font-size: 0.84rem;
  opacity: 0.8;
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: rgba(26, 20, 24, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(224, 141, 121, 0.16);
  transform: translateY(110%);
  transition: transform var(--gentle) var(--ease);
}

.mobile-cta.show {
  transform: translateY(0);
}

.mobile-cta .btn,
.mobile-cta .cta-soon {
  width: 100%;
  justify-content: center;
}

@media (min-width: 720px) {
  .mobile-cta {
    display: none;
  }
}

/* ---------- FadeUp on scroll (app's signature entrance) ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--drift) var(--ease),
    transform var(--drift) var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Legal / prose pages ---------- */
.page {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}

.page-prose {
  max-width: 720px;
}

.page-prose h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.6rem;
}

.page-prose .updated {
  color: var(--ink-subdued);
  font-size: 0.9rem;
  margin-bottom: 2.4rem;
}

.page-prose h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 0.8rem;
}

.page-prose p,
.page-prose li {
  color: var(--ink-subdued);
  margin-bottom: 0.9rem;
}

.page-prose strong {
  color: var(--ink);
}

.page-prose ul,
.page-prose ol {
  padding-left: 1.4em;
  margin-bottom: 1rem;
}

.page-prose .callout {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 1.6rem 0;
}

.page-prose .callout p {
  margin-bottom: 0;
}

/* Crisis resources — larger targets, immediate clarity */
.resource-list {
  display: grid;
  gap: 14px;
  margin: 1.8rem 0;
  max-width: 560px;
}

.resource {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 22px 24px;
}

.resource h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 12px;
}

.resource .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resource .actions .btn {
  min-height: 48px;
  font-size: 0.98rem;
}

/* Print (legal pages) — readable on paper */
@media print {
  body {
    background: #fff;
    color: #2b1a24;
  }

  .nav,
  .footer,
  .mobile-cta {
    display: none;
  }

  .page-prose p,
  .page-prose li,
  .page-prose .updated {
    color: #3d2f37;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .crescent,
  .wave i,
  .rec-dot {
    animation: none;
  }

  .btn,
  .dream-card,
  .mobile-cta {
    transition: none;
  }
}
