/* ============================================================
   Perdisco marketing site — a white page carrying the app's
   "Nocturne" screens. The page chrome runs on the light tokens
   below; the same token names are re-declared on .phone (see
   THE PHONE) so everything inside a device frame keeps the
   app's dark petrol palette and reads as a screenshot.
   ============================================================ */

:root {
  /* Ground */
  --ground: #FFFFFF;
  --ground-deep: #0B2E36;

  /* Text */
  --ink: #0C2E36;
  --ink-soft: #2E5058;
  --muted: #4C6D74;
  --muted-dim: #6E8C93;
  --label: #547880;

  /* Accents — darkened from the app's values to clear 4.5:1 on white */
  --magenta: #9C1E5D;
  --magenta-on-fill: #FBEFF4;
  --champagne: #8A6728;
  --champagne-bright: #8A6420;
  --aqua: #2E8F98;
  --rose: #BE4671;
  --lilac: #7458C4;

  /* Fills & rules */
  --panel: rgba(12, 46, 54, 0.04);
  --panel-strong: rgba(12, 46, 54, 0.065);
  --panel-active: rgba(12, 46, 54, 0.09);
  --hairline: rgba(12, 46, 54, 0.12);
  --quote-fill: rgba(227, 192, 141, 0.16);
  --quote-border: rgba(154, 116, 48, 0.28);
  --outline: rgba(12, 46, 54, 0.16);
  --glyph: #0C2E36;

  /* Depth for panels sitting on white */
  --lift: 0 1px 2px rgba(12, 46, 54, 0.04), 0 12px 28px -18px rgba(12, 46, 54, 0.22);
  --lift-hover: 0 2px 4px rgba(12, 46, 54, 0.05), 0 20px 40px -20px rgba(12, 46, 54, 0.28);

  --serif: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", "Avenir Next", system-ui, sans-serif;

  --page-pad: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* Fixed wash layer behind everything (a fixed pseudo-element paints
   reliably where background-attachment: fixed does not). Kept faint —
   the page should read as white, with the device frames as the ink. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 110% 62% at 8% 0%, rgba(127, 211, 217, 0.13), transparent 68%),
    radial-gradient(ellipse 80% 46% at 100% 22%, rgba(156, 30, 93, 0.05), transparent 70%),
    radial-gradient(ellipse 90% 55% at 0% 80%, rgba(227, 192, 141, 0.16), transparent 72%),
    linear-gradient(180deg, #FFFFFF 0%, #FBFDFD 60%, #F4F9F9 100%);
}

::selection { background: rgba(227, 192, 141, 0.4); color: var(--ink); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 60;
  background: var(--champagne); color: var(--ground-deep);
  font-family: var(--sans); font-size: 13px; padding: 10px 16px; border-radius: 12px;
}
.skip:focus { left: 8px; }

/* ---------- shared type ---------- */

.eyebrow {
  display: flex; align-items: flex-start; gap: 9px;
  color: var(--label);
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 2.6px; text-transform: uppercase;
}
.eyebrow .dot { margin-top: 4px; }

.dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block;
}
.dot-aqua { background: var(--aqua); }
.dot-champagne { background: var(--champagne); }
.dot-rose { background: var(--rose); }
.dot-lilac { background: var(--lilac); }
.dot-magenta { background: #B03469; }

h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 6.4vw, 78px);
  line-height: 1.04; letter-spacing: -0.022em;
  margin: 22px 0 24px;
}
h1 em, h2 em { font-style: italic; color: var(--champagne-bright); }

h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(31px, 3.8vw, 46px);
  line-height: 1.12; letter-spacing: -0.015em;
  margin: 18px 0 18px;
}

.lede, .section-lede, .feature-body {
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.65;
  max-width: 56ch;
}

a { color: var(--champagne); }

/* ---------- buttons ---------- */

.btn {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  min-height: 54px; padding: 0 26px;
  border: 0; border-radius: 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn-magenta { background: var(--magenta); color: var(--magenta-on-fill); }
.btn-magenta:hover { filter: brightness(1.18); }
.btn:active { transform: scale(0.985); opacity: 0.9; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 13px; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--page-pad);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--hairline);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { border-radius: 8px; }
.brand-name {
  font-family: var(--serif); font-size: 23px; color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-period { color: var(--champagne); }

.nav-links { display: flex; gap: clamp(16px, 3vw, 34px); }
.nav-links a {
  color: var(--ink-soft); text-decoration: none;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.2px;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); border-color: var(--quote-border); }

/* ---------- hero ---------- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  align-items: center; gap: clamp(32px, 5vw, 80px);
  padding: clamp(56px, 8vh, 110px) var(--page-pad) clamp(64px, 9vh, 120px);
  max-width: 1280px; margin: 0 auto;
}

.hero-phone { display: flex; justify-content: center; }

/* ---------- waitlist form ---------- */

.waitlist-form {
  margin-top: 34px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px; max-width: 520px;
}

.waitlist-form input {
  min-height: 54px; padding: 0 18px;
  background: #FFFFFF;
  border: 1px solid var(--outline);
  border-radius: 14px;
  color: var(--ink);
  font-family: var(--serif); font-size: 16.5px;
  box-shadow: var(--lift);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.waitlist-form input::placeholder { color: var(--muted-dim); }
.waitlist-form input:focus {
  outline: none; border-color: var(--champagne);
  box-shadow: var(--lift), 0 0 0 3px rgba(154, 116, 48, 0.16);
}
.waitlist-form input[aria-invalid="true"] { border-color: var(--rose); }

.form-note, .form-status {
  grid-column: 1 / -1;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.4px;
  color: var(--label);
}
.form-status { display: none; }
.form-status.error { display: block; color: var(--rose); }
.form-status.success {
  display: block; color: var(--champagne-bright);
  font-family: var(--serif); font-size: 16px; font-style: italic; letter-spacing: 0;
}
.waitlist-form.is-done input, .waitlist-form.is-done .btn, .waitlist-form.is-done .form-note { display: none; }

/* ============================================================
   THE PHONE — a faithful miniature of the app's screens.
   The app is dark, so the frame carries its own palette: these
   re-declared tokens inherit down to every element inside the
   device, leaving the light page tokens untouched outside it.
   ============================================================ */

.phone {
  /* Nocturne, ported from the app's src/theme.ts */
  --ground: #06424D;
  --ground-deep: #06232B;
  --ink: #EAF6F5;
  --ink-soft: #C9E3E4;
  --muted: #A8C7C9;
  --muted-dim: #8FB4B8;
  --label: #79A3A9;
  --champagne: #E3C08D;
  --champagne-bright: #F4E2C4;
  --aqua: #7FD3D9;
  --rose: #D96A96;
  --lilac: #B9A2E8;
  --panel: rgba(234, 246, 245, 0.07);
  --panel-strong: rgba(234, 246, 245, 0.1);
  --panel-active: rgba(234, 246, 245, 0.12);
  --hairline: rgba(227, 192, 141, 0.2);
  --quote-fill: rgba(227, 192, 141, 0.12);
  --quote-border: rgba(227, 192, 141, 0.3);
  --outline: rgba(234, 246, 245, 0.24);
  --glyph: #DCEEEE;

  width: min(340px, 86vw);
  aspect-ratio: 340 / 706;
  border-radius: 54px;
  padding: 10px;
  background: linear-gradient(160deg, #0d3a42, #041e24);
  border: 1px solid rgba(234, 246, 245, 0.16);
  box-shadow:
    0 2px 6px rgba(6, 35, 43, 0.10),
    0 18px 36px -18px rgba(6, 35, 43, 0.38),
    0 54px 90px -40px rgba(6, 35, 43, 0.55);
  flex: none;
}

/* a soft petrol halo so the dark frame reads as lit, not pasted on */
.hero-phone, .feature-phone { position: relative; }
.hero-phone::before, .feature-phone::before {
  content: "";
  position: absolute; z-index: -1;
  inset: -12% -6%;
  background: radial-gradient(ellipse at center, rgba(127, 211, 217, 0.20), transparent 66%);
}

.screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 44px;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--ground);
}

/* the Nocturne washes, per Wash.tsx */
.wash-feed {
  background:
    radial-gradient(ellipse 110% 62% at 8% 0%, rgba(127, 211, 217, 0.20), transparent 70%),
    radial-gradient(ellipse 90% 55% at 100% 100%, rgba(156, 30, 93, 0.44), transparent 72%),
    var(--ground);
}
.wash-elab {
  background:
    radial-gradient(ellipse 110% 62% at 8% 0%, rgba(127, 211, 217, 0.20), transparent 70%),
    radial-gradient(ellipse 90% 55% at 100% 100%, rgba(156, 30, 93, 0.36), transparent 72%),
    var(--ground);
}
.wash-learn {
  background:
    radial-gradient(ellipse 110% 62% at 8% 0%, rgba(227, 192, 141, 0.18), transparent 70%),
    radial-gradient(ellipse 95% 55% at 100% 100%, rgba(156, 30, 93, 0.34), transparent 72%),
    var(--ground);
}

.statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px 6px;
  color: var(--ink);
}
.sb-time { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.3px; }
.sb-glyphs { display: inline-flex; color: var(--ink); }

.home-indicator {
  position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 4px; border-radius: 2px;
  background: rgba(234, 246, 245, 0.35);
}

/* --- type badges (TypeBadge.tsx) --- */

.type-badge {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-weight: 500;
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  white-space: nowrap;
}
.type-badge .type-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.type-fact { color: var(--aqua); }        .type-fact .type-dot { background: var(--aqua); }
.type-opinion { color: var(--lilac); }    .type-opinion .type-dot { background: var(--lilac); }
.type-forecast { color: var(--champagne);}.type-forecast .type-dot { background: var(--champagne); }
.type-model { color: var(--rose); }       .type-model .type-dot { background: var(--rose); }

.bg-aqua { background: var(--aqua); } .bg-rose { background: var(--rose); }
.bg-champagne { background: var(--champagne); } .bg-lilac { background: var(--lilac); }

/* --- feed screen --- */

.feed-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 12px 22px 0;
}
.feed-quote-text {
  color: var(--ink); font-family: var(--serif); font-style: italic;
  font-size: 13.5px; line-height: 1.35; letter-spacing: -0.005em;
}
.feed-quote-meta {
  display: flex; align-items: center; gap: 6px;
  margin-top: 5px;
  color: var(--label); font-family: var(--sans);
  font-size: 8px; letter-spacing: 1.7px; text-transform: uppercase;
}
.feed-search {
  flex: none; width: 30px; height: 30px; border-radius: 10px;
  background: var(--panel-strong);
  display: grid; place-items: center; color: var(--ink-soft);
}

.feed-pager { position: relative; flex: 1; min-height: 0; }
.feed-page {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding-bottom: 64px; /* keep the card centred above the attribution row */
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}
.feed-page.is-active { opacity: 1; transform: none; }

.insight-card {
  margin: 0 16px;
  padding: 22px 20px 20px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(234, 246, 245, 0.12);
}
.insight-text {
  color: var(--ink); font-family: var(--serif);
  font-size: 22.5px; line-height: 1.22; letter-spacing: -0.012em;
  margin-top: 13px;
}
.context-rule { width: 16px; height: 1px; background: rgba(234, 246, 245, 0.3); margin: 15px 0 9px; }
.insight-context { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.attribution {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px 16px;
  position: absolute; left: 0; right: 0; bottom: 0;
}
.attr-copy { flex: 1; min-width: 0; }
.attr-kind {
  color: var(--label); font-family: var(--sans);
  font-size: 8px; letter-spacing: 1.6px; text-transform: uppercase;
}
.attr-title {
  color: var(--ink); font-family: var(--serif); font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.save-btn {
  flex: none; width: 37px; height: 37px; border-radius: 12px;
  border: 1px solid var(--outline);
  display: grid; place-items: center; color: var(--glyph);
}

.tabbar {
  display: flex; justify-content: space-around; align-items: center;
  padding: 9px 16px 20px;
  border-top: 1px solid var(--hairline);
}
.tab {
  font-family: var(--sans); font-size: 10.5px; font-weight: 500;
  color: var(--label);
  padding: 8px 12px; border-radius: 11px;
}
.tab.active { color: var(--ink); font-weight: 600; background: var(--panel-active); }

/* --- elaboration screen --- */

.elab-top { display: flex; align-items: center; gap: 10px; padding: 12px 20px 14px; }
.chip-back {
  flex: none; width: 30px; height: 30px; border-radius: 10px;
  background: var(--panel-strong); display: grid; place-items: center; color: var(--ink-soft);
}
.elab-scroll { padding: 4px 22px; overflow: hidden; flex: 1; }
.elab-statement {
  color: var(--ink); font-family: var(--serif);
  font-size: 21px; line-height: 1.24; letter-spacing: -0.012em;
  margin: 12px 0 10px;
}
.elab-body { color: var(--muted); font-size: 12.5px; line-height: 1.58; }
.quote-block {
  margin-top: 14px; padding: 12px 14px;
  background: var(--quote-fill);
  border: 1px solid var(--quote-border);
  border-radius: 16px;
}
.quote-label {
  color: var(--champagne); font-family: var(--sans);
  font-size: 8px; letter-spacing: 1.8px; text-transform: uppercase;
}
.quote-text {
  color: var(--ink-soft); font-family: var(--serif); font-style: italic;
  font-size: 13px; line-height: 1.45; margin-top: 6px;
}
.supporting {
  display: flex; align-items: center; gap: 7px;
  margin-top: 12px; padding: 9px 12px;
  border: 1px solid var(--outline); border-radius: 12px;
  color: var(--ink-soft); font-family: var(--sans); font-size: 10px; letter-spacing: 0.4px;
}
.supporting svg { color: var(--champagne); flex: none; }
.comment {
  margin-top: 12px; padding: 11px 14px;
  background: var(--panel); border: 1px solid var(--outline); border-radius: 14px;
}
.comment-meta {
  color: var(--label); font-family: var(--sans);
  font-size: 8px; letter-spacing: 1.6px; text-transform: uppercase;
}
.comment-text { color: var(--ink-soft); font-size: 12px; line-height: 1.5; margin-top: 4px; }

/* --- learn screen --- */

.micro-eyebrow {
  color: var(--label); font-family: var(--sans);
  font-size: 8px; letter-spacing: 1.9px; text-transform: uppercase;
}
.learn-head { padding: 12px 22px 0; }
.learn-title { color: var(--ink); font-family: var(--serif); font-size: 24px; margin-top: 5px; }
.learn-sub { color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 4px; }

.stats {
  display: flex; align-items: center;
  margin: 16px 22px 0; padding: 14px 8px;
  border-radius: 18px;
  background: var(--panel); border: 1px solid var(--hairline);
}
.stat { flex: 1; text-align: center; }
.stat-value { color: var(--champagne-bright); font-family: var(--serif); font-size: 24px; line-height: 1; }
.stat-label {
  color: var(--label); font-family: var(--sans);
  font-size: 7.5px; letter-spacing: 1.6px; text-transform: uppercase; margin-top: 5px;
}
.stat-divider { width: 1px; height: 26px; background: var(--hairline); }

.cloud-wrap { padding: 18px 22px 0; flex: 1; }
.cloud { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.cloud-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--outline);
  color: var(--ink-soft); font-family: var(--serif); font-size: 12px;
}
.cloud-chip .type-dot { width: 6px; height: 6px; border-radius: 50%; }
.chip-md { font-size: 13.5px; padding: 8px 14px; }
.chip-lg { font-size: 15.5px; padding: 9px 16px; color: var(--ink); }

.learn-cta {
  margin: 0 22px 14px;
  min-height: 46px; border-radius: 14px;
  background: var(--magenta); color: var(--magenta-on-fill);
  font-family: var(--sans); font-weight: 600; font-size: 12.5px;
  display: flex; align-items: center; justify-content: center;
}

/* --- practice screens --- */

.journey-head { padding: 10px 22px 0; }
.journey-progress { display: flex; gap: 5px; }
.jp { height: 3px; flex: 1; border-radius: 2px; background: var(--panel-active); }
.jp.done { background: var(--champagne); opacity: 0.55; }
.jp.active { background: var(--champagne); }
.journey-count {
  margin-top: 8px;
  color: var(--label); font-family: var(--sans);
  font-size: 8px; letter-spacing: 1.8px; text-transform: uppercase;
}

.mode-eyebrow {
  display: block;
  font-family: var(--sans); font-weight: 500;
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
}
.mode-flash { color: var(--champagne); }
.mode-quiz { color: var(--aqua); }

.flashcard {
  position: relative;
  margin: auto 16px; padding: 0;
  border: 0; background: none; cursor: pointer;
  text-align: left; font: inherit;
  perspective: 900px;
  flex: 1; display: block; max-height: 420px;
}
.flash-front, .flash-back {
  position: absolute; inset: 12% 0;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 24px 20px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(234, 246, 245, 0.12);
  backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.4, 0.1, 0.2, 1);
}
.flash-back { transform: rotateY(180deg); background: rgba(227, 192, 141, 0.10); border-color: var(--quote-border); }
.flashcard.is-flipped .flash-front { transform: rotateY(-180deg); }
.flashcard.is-flipped .flash-back { transform: rotateY(0); }
.flash-prompt, .flash-answer {
  color: var(--ink); font-family: var(--serif);
  font-size: 18.5px; line-height: 1.3; letter-spacing: -0.008em;
}
.flash-prompt b { font-weight: 600; color: var(--champagne-bright); }
.flash-hint {
  color: var(--label); font-family: var(--sans);
  font-size: 9px; letter-spacing: 1.8px; text-transform: uppercase;
}
.flash-grade { display: flex; gap: 8px; }
.grade-no, .grade-yes {
  flex: 1; text-align: center;
  padding: 10px 0; border-radius: 12px;
  font-family: var(--sans); font-weight: 600; font-size: 11px;
}
.grade-no { border: 1px solid var(--outline); color: var(--ink-soft); }
.grade-yes { background: var(--magenta); color: var(--magenta-on-fill); }

.quiz { padding: 16px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; justify-content: center; }
.quiz-question {
  color: var(--ink); font-family: var(--serif);
  font-size: 17px; line-height: 1.3; letter-spacing: -0.008em;
  margin-bottom: 4px;
}
.quiz-option {
  padding: 11px 14px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--outline);
  color: var(--ink-soft); font-family: var(--serif); font-size: 12.5px; line-height: 1.35;
}
.quiz-option.correct {
  background: rgba(127, 211, 217, 0.16);
  border-color: var(--aqua); color: var(--ink);
}
.quiz-explain {
  margin-top: 6px;
  color: var(--muted); font-size: 11.5px; line-height: 1.5; font-style: italic;
}

/* ============================================================
   SECTIONS
   ============================================================ */

section { position: relative; }

.section-head { max-width: 760px; }
.section-head .section-lede { margin-top: 4px; }

/* --- features --- */

.features {
  border-top: 1px solid var(--hairline);
  padding: clamp(30px, 6vh, 70px) var(--page-pad);
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column; gap: clamp(70px, 12vh, 150px);
}

.feature-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 5vw, 90px);
}
.row-flip .feature-copy { order: 2; }
.row-flip .feature-phone { order: 1; }

.feature-phone { display: flex; justify-content: center; }

.check-list {
  list-style: none; margin-top: 26px;
  display: flex; flex-direction: column; gap: 13px;
}
.check-list li {
  display: flex; align-items: baseline; gap: 12px;
  color: var(--ink-soft); font-size: 16.5px;
}
.check-list .dot { transform: translateY(-1px); }

.feature-hint {
  margin-top: 22px;
  color: var(--champagne); font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
}

/* the two practice phones fanned together */
.phones-fan { align-items: center; }
.phones-fan .phone { width: min(300px, 80vw); }
.phones-fan .phone:first-child { position: relative; z-index: 2; transform: rotate(-3.5deg); }
.phones-fan .phone-back {
  margin-left: -44px;
  transform: rotate(4deg) translateY(20px) scale(0.94);
  z-index: 1;
}

/* --- why not AI --- */

.why {
  border-top: 1px solid var(--hairline);
  padding: clamp(64px, 10vh, 130px) var(--page-pad);
  max-width: 1280px; margin: 0 auto;
}

/* the "find your edge" banner: champagne-lit, like the app's quote block */
.why-edge {
  margin-top: 44px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  background: var(--quote-fill);
  border: 1px solid var(--quote-border);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.micro-label {
  color: var(--champagne); font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 2.6px; text-transform: uppercase;
}
.why-edge-title {
  margin-top: 12px;
  color: var(--ink); font-family: var(--serif);
  font-size: clamp(26px, 2.9vw, 34px);
  line-height: 1.15; letter-spacing: -0.014em;
}
.why-edge-body {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 17.5px); line-height: 1.7;
}

.why-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-top: 14px;
}
.why-card {
  padding: 26px 24px;
  border-radius: 24px;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  box-shadow: var(--lift);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--lift-hover); }
.why-title {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--ink); font-family: var(--serif);
  font-size: 20px; letter-spacing: -0.01em;
}
.why-title .dot { width: 8px; height: 8px; transform: translateY(-2px); flex: none; }
.why-desc {
  margin-top: 10px;
  color: var(--muted); font-size: 15.5px; line-height: 1.6;
}

.why-kicker {
  margin: 52px auto 0; max-width: 40ch;
  text-align: center;
  color: var(--ink-soft); font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4;
}
.why-kicker em { font-style: italic; color: var(--champagne-bright); }

/* --- interlude --- */

.interlude {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(80px, 13vh, 150px) var(--page-pad);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(127, 211, 217, 0.10), transparent 70%),
    rgba(227, 192, 141, 0.07);
}
.interlude blockquote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(24px, 3.2vw, 38px); line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 30ch; margin: 0 auto;
  color: var(--ink);
}
.interlude cite {
  display: block; margin-top: 22px;
  color: var(--label); font-family: var(--sans); font-style: normal;
  font-size: 11px; font-weight: 500; letter-spacing: 2.4px; text-transform: uppercase;
}

/* --- waitlist --- */

.waitlist {
  border-top: 1px solid var(--hairline);
  padding: clamp(70px, 11vh, 140px) var(--page-pad);
}
.waitlist-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.waitlist-inner .eyebrow { justify-content: center; }
.waitlist-inner .section-lede { margin: 0 auto; }

.waitlist-form-wide { margin: 34px auto 0; }

.waitlist-points {
  list-style: none; margin-top: 40px;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  width: fit-content; margin-inline: auto;
}
.waitlist-points li {
  display: flex; align-items: baseline; gap: 11px;
  color: var(--muted); font-size: 15.5px;
}

/* --- footer --- */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 44px var(--page-pad) 54px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px;
  max-width: 1280px; margin: 0 auto;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-name { font-size: 19px; }
.footer-tag { color: var(--label); font-family: var(--sans); font-size: 12px; margin-top: 1px; }
.footer-links { display: flex; gap: 22px; margin-left: auto; }
.footer-links a {
  color: var(--ink-soft); text-decoration: none;
  font-family: var(--sans); font-size: 13px;
}
.footer-links a:hover { color: var(--champagne); }
.footer-fine {
  flex-basis: 100%;
  color: var(--label); font-family: var(--sans); font-size: 12px;
}
.footer-latin { color: var(--muted-dim); }
.footer-latin i { font-family: var(--serif); }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feed-page { transition: none; }
  .flash-front, .flash-back { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .why-edge { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-copy { text-align: left; }
  .feature-row { grid-template-columns: 1fr; }
  .row-flip .feature-copy { order: 1; }
  .row-flip .feature-phone { order: 2; }
  .phones-fan { flex-direction: column; gap: 26px; }
  .phones-fan .phone-back {
    margin-left: 0;
    transform: rotate(3deg) scale(0.98);
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .waitlist-form { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-links { margin-left: 0; }
}
