/* Landing page only. App palette tokens (checked against the app theme),
   Flighty style grammar: light announcement panel up top, dark control
   room below, pill controls, 16/20px cards, whisper shadows. */
:root {
  /* App dark palette. Names mirror mobile/src/lib/theme.tsx DARK_COLORS. */
  --bg: #141613; --surface: #1D201C; --surface2: #292D27; --ink: #F5F5EF; --ink-muted: #C7CCC2;
  --muted: #A0A79A; --muted-deep: #8F9888; --line: #343A30; --accent: #F5B942; --accent2: #B5ABDC;
  --accent3: #91B9D5; --gain: #82CBA4; --loss: #F19B8E;
  /* Light panel (app light theme). */
  --l-bg: #FFFFFF; --l-bg2: #F7F7F2; --l-surface: #FFFFFF; --l-surface2: #ECEEE6; --l-ink: #20231F;
  --l-ink-muted: #4E574A; --l-muted: #616B5B; --l-line: #E3E6DC;
  /* Deep control-room layer. */
  --deep: #0C0D0B;
  --gutter: clamp(20px, 4vw, 48px); --section-space: clamp(64px, 7vw, 96px); --max: 1200px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow-whisper: 0 1px 1px rgba(20,22,19,.02), 0 2px 2px rgba(20,22,19,.02), 0 4px 4px rgba(20,22,19,.02), 0 8px 8px rgba(20,22,19,.02), 0 16px 16px rgba(20,22,19,.02), 0 32px 32px rgba(20,22,19,.02);
  --shadow-whisper-dark: 0 0 0 1px rgba(255,255,255,.04), 0 2px 2px rgba(0,0,0,.02), 0 8px 8px rgba(0,0,0,.02), 0 24px 24px rgba(0,0,0,.02);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--l-bg); color: var(--l-ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -48px; padding: 8px 16px; border-radius: 999px; background: var(--l-ink); color: var(--l-bg); z-index: 20; }
.skip-link:focus { top: 16px; }

/* ── Type scale (Flighty: 56 / 32 / 22 / 17 / 15 / 13 / 12) ─────────── */
h1 { font-size: clamp(38px, 5.4vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -1.4px; }
h1 span { color: var(--l-muted); }
h2 { font-size: clamp(28px, 3.2vw, 32px); font-weight: 600; line-height: 1.1; letter-spacing: -.8px; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -.17px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--l-muted); }
.dark .eyebrow { color: var(--muted); }
.centered { text-align: center; }
.eyebrow.centered { display: block; }

/* ── Buttons: pills, one chromatic accent per surface ─────────────────── */
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 24px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; line-height: 1; border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease; }
.button:active { transform: translateY(1px); }
.button-small { min-height: 36px; padding: 8px 16px; font-size: 14px; }
.button-primary { background: var(--accent); color: #141613; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.button-primary:hover { background: #F9C556; }
.button-ghost { background: transparent; color: var(--l-ink); border-color: var(--l-line); font-weight: 500; }
.button-ghost:hover { background: var(--l-bg2); }
.dark .button-ghost { color: var(--ink); border-color: rgba(255,255,255,.16); }
.dark .button-ghost:hover { background: rgba(255,255,255,.06); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ── Floating nav pill ─────────────────────────────────────────────────── */
.site-header { position: sticky; top: 12px; z-index: 10; display: flex; justify-content: center; padding: 0 var(--gutter); pointer-events: none; }
.nav-pill { pointer-events: auto; display: flex; align-items: center; gap: 8px; width: min(100%, 880px); padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border: 1px solid rgba(20,22,19,.06); box-shadow: var(--shadow-whisper); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.2px; text-decoration: none; }
.brand { white-space: nowrap; flex-shrink: 0; }
.brand img { flex-shrink: 0; object-fit: contain; }
.hero-newspaper { width: clamp(160px, 22vw, 240px); height: auto; }
.desktop-nav { display: flex; gap: 4px; margin-left: auto; }
.desktop-nav a { padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--l-ink); }
.desktop-nav a:hover { background: var(--l-bg2); }
.header-cta { margin-left: 4px; }
.mobile-menu { display: none; position: relative; margin-left: auto; }
.mobile-menu summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] summary { background: var(--l-bg2); }
.mobile-menu nav { position: absolute; right: 0; top: 48px; display: grid; min-width: 220px; padding: 8px; border-radius: 20px; background: #fff; border: 1px solid var(--l-line); box-shadow: var(--shadow-whisper); }
.mobile-menu nav a { padding: 12px 14px; border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 500; }
.mobile-menu nav a:hover { background: var(--l-bg2); }
@media (max-width: 760px) { .desktop-nav, .header-cta { display: none; } .mobile-menu { display: block; } .nav-pill { padding-left: 12px; } }

/* ── Hero: the white information panel ─────────────────────────────────── */
.hero { padding: 72px 0 0; background: linear-gradient(180deg, #fff 0%, var(--l-bg2) 100%); }
.hero-inner { text-align: center; display: grid; justify-items: center; gap: 20px; }
.hero-copy { max-width: 520px; font-size: 17px; font-weight: 500; letter-spacing: -.17px; color: var(--l-ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.availability { font-size: 13px; color: var(--l-muted); }

/* One focal phone with two complete, readable feature previews. */
.device-scene { position: relative; margin-top: 56px; padding-bottom: 32px; display: grid; grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr); align-items: end; gap: clamp(24px, 4vw, 56px); max-width: 1120px; }
.hero-device { position: relative; width: 300px; grid-column: 2; grid-row: 1; z-index: 3; }
.iphone-frame { border-radius: 44px; padding: 10px; background: #0f110e; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, var(--shadow-whisper), 0 40px 60px rgba(20,22,19,.12); }
.iphone-display { position: relative; border-radius: 36px; overflow: hidden; background: var(--bg); }
.iphone-top { position: relative; height: 42px; display: flex; justify-content: center; align-items: flex-start; padding-top: 8px; }
.iphone-island { width: 96px; height: 26px; border-radius: 999px; background: #000; }
.iphone-bottom { position: relative; height: 20px; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 6px; }
.iphone-bottom span { width: 110px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.7); }
.feature-screen figcaption, .hero-device figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
/* The hero screen tours itself. It was a nested scroll region first
   (trapped the wheel, hijacked touch), then a translateY keyframe on
   the full-height image — which on iPhone is a ~11,000px composited
   layer at 3x, past Safari's texture limit, so the screen rendered
   black. Now the image is sized to the screen and object-position pans
   it: the layer is the 390×750 box, page scroll is never taken, and it
   pauses under the cursor. */
.app-preview { aspect-ratio: 390 / 750; overflow: hidden; background: #0d0f0c; }
.app-preview img { width: 100%; height: 100%; max-width: none; display: block; object-fit: cover; object-position: 50% 0%; animation: app-tour 48s ease-in-out infinite alternate; animation-delay: 1.5s; }
.hero-device:hover .app-preview img { animation-play-state: paused; }
@keyframes app-tour {
  0% { object-position: 50% 0%; }
  8% { object-position: 50% 0%; }
  100% { object-position: 50% 100%; }
}
/* The two side screens are the same device at 80%: same frame, same
   island, same corner radii, bottom-aligned with the hero phone so the
   three read as one row. Straight, no tilt, no overlap. */
.device-fragment { min-width: 0; width: 240px; justify-self: center; }
.device-fragment figcaption { margin-bottom: 16px; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: -.3px; color: var(--l-ink-muted); }
.side-frame { border-radius: 36px; padding: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, var(--shadow-whisper), 0 28px 44px rgba(20,22,19,.10); }
.side-frame .iphone-display { border-radius: 29px; }
.side-frame .iphone-top { height: 34px; padding-top: 6px; }
.side-frame .iphone-island { width: 78px; height: 21px; }
.side-frame .iphone-bottom { height: 16px; }
.side-screen { aspect-ratio: 390 / 600; overflow: hidden; background: #0d0f0c; }
.side-screen img { width: 100%; max-width: none; display: block; }
.fragment-market { grid-column: 1; grid-row: 1; }
.fragment-market .side-screen img { transform: translateY(-9%); }
.fragment-collection { grid-column: 3; grid-row: 1; }
.fragment-collection .side-screen img { transform: translateY(-3%); }
.capture-note { padding: 24px 0 72px; text-align: center; font-size: 12px; color: var(--l-muted); }
@media (max-width: 960px) {
  .device-scene { grid-template-columns: minmax(0, 1fr) 260px minmax(0, 1fr); gap: 20px; }
  .hero-device { width: 260px; }
  .device-fragment { width: 200px; }
  .device-fragment figcaption { font-size: 15px; }
}
@media (max-width: 760px) {
  .hero { padding-top: 48px; }
  .device-scene { margin-top: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 32px; align-items: start; }
  .hero-device { width: min(100%, 280px); margin: 0 auto; grid-column: 1 / -1; grid-row: 1; }
  .device-fragment { width: 100%; max-width: 200px; }
  .device-fragment figcaption { margin-bottom: 12px; font-size: 15px; }
  .fragment-market { grid-column: 1; grid-row: 2; }
  .fragment-collection { grid-column: 2; grid-row: 2; }
}


/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: var(--section-space) 0; }
.section.dark { background: var(--bg); color: var(--ink); }
/* The control room rises over the information panel: rounded top edge,
   no gradient smear. The light pricing panel does the same over the dark. */
#charts { border-radius: 40px 40px 0 0; margin-top: -40px; position: relative; }
#pricing { border-radius: 40px 40px 0 0; margin-top: -40px; position: relative; background: var(--l-bg); }
.sources { padding-bottom: calc(var(--section-space) + 40px); }
.section.dark.deep { background: var(--deep); }
.section-heading { display: grid; gap: 16px; }
.section-heading p { max-width: 520px; font-size: 17px; color: var(--l-ink-muted); }
.dark .section-heading p { color: var(--ink-muted); }
.section-heading .eyebrow { max-width: none; }
.section-heading.centered { justify-items: center; }
.secondary-copy { font-size: 15px; color: var(--l-muted); }
.dark .secondary-copy { color: var(--muted); }
.data-note { margin-top: 32px; font-size: 13px; color: var(--muted); }

/* Feature narrative: one column, floating cards. */
.feature-stack { display: grid; gap: 10px; max-width: 720px; margin: 40px auto 0; }
.feature-card { display: flex; gap: 16px; padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-whisper-dark); }
.feature-card p { margin-top: 4px; font-size: 15px; color: var(--ink-muted); }
.feature-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(245,185,66,.12); color: var(--accent); }

.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-split .section-heading { max-width: 460px; }
.feature-screen { width: clamp(240px, 26vw, 300px); margin-inline: auto; }
.community-split .feature-screen { order: 0; }
.small-features { display: grid; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.small-features p { font-size: 15px; }
@media (max-width: 860px) { .feature-split { grid-template-columns: 1fr; gap: 40px; } .community-split .feature-screen { order: 1; } }

/* Source grid, the press-logo pattern: monochrome marks on deep cards. */
.source-grid { list-style: none; padding: 0; margin: 28px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.source-grid li { display: flex; align-items: center; justify-content: center; min-height: 88px; padding: 24px 12px; border-radius: 16px; background: var(--bg); border: 1px solid rgba(255,255,255,.08); font-size: 15px; font-weight: 600; letter-spacing: -.2px; color: rgba(255,255,255,.62); text-align: center; }
@media (max-width: 860px) { .source-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .source-grid { grid-template-columns: repeat(2, 1fr); } }

/* Pricing (light). */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.price-card { position: relative; display: grid; gap: 12px; padding: 24px; border-radius: 20px; background: var(--l-surface); border: 1px solid var(--l-line); box-shadow: var(--shadow-whisper); }
.price-card h3 { font-size: 22px; font-weight: 500; letter-spacing: -.55px; }
.plan-description { font-size: 15px; color: var(--l-muted); }
.price { font-variant-numeric: tabular-nums; font-size: 40px; font-weight: 700; letter-spacing: -1.2px; line-height: 1; padding: 8px 0 16px; border-bottom: 1px solid var(--l-line); }
.price span { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--l-muted); }
.price-card ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--l-ink-muted); }
.price-card li { padding-left: 22px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--l-muted); font-size: 13px; top: 2px; }
.price-card .button { justify-content: center; margin-top: 8px; }
.featured-plan { border-color: rgba(245,185,66,.55); box-shadow: var(--shadow-whisper), 0 0 0 4px rgba(245,185,66,.08); }
.plan-tag { position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #141613; font-size: 12px; font-weight: 600; }
.pricing-note { margin-top: 24px; text-align: center; font-size: 13px; color: var(--l-muted); }
.pricing-note a { color: inherit; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }

/* FAQ (light). */
.faq { background: var(--l-bg2); }
.faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq-layout .section-heading { align-content: start; }
.faq-list details { border-top: 1px solid var(--l-line); }
.faq-list details:last-child { border-bottom: 1px solid var(--l-line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-size: 17px; font-weight: 600; letter-spacing: -.17px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-weight: 400; color: var(--l-muted); transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { padding: 0 0 20px; max-width: 600px; font-size: 15px; color: var(--l-ink-muted); }
.faq-list p a { color: inherit; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; gap: 24px; } }

/* Download moment: dark card, the single amber CTA. */
.download-section { padding-bottom: var(--section-space); }
.download-card { display: grid; justify-items: center; gap: 14px; padding: 56px 24px; border-radius: 24px; background: var(--deep); color: var(--ink); text-align: center; box-shadow: var(--shadow-whisper-dark); }
.download-card .eyebrow { color: var(--muted); }
.download-card p { font-size: 17px; color: var(--ink-muted); }
.download-card img { border-radius: 16px; }
.launch-label { margin-top: 8px; cursor: default; }
.download-card .availability { color: var(--muted); }

/* Footer (dark). */
.site-footer { background: var(--deep); color: var(--ink); padding: 40px 0 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a { font-size: 13px; text-decoration: none; color: var(--ink-muted); }
.site-footer nav a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; font-size: 13px; color: var(--muted); }
.legal-note { margin-top: 16px; max-width: 720px; font-size: 12px; line-height: 1.5; color: var(--muted-deep); }

/* ── Document pages: privacy, terms, guidelines, support, 404 ─────────── */
.doc-page { background: var(--l-bg2); }
.doc { max-width: 720px; padding: 56px 0 96px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 44px); letter-spacing: -1.1px; }
.doc .updated { margin-top: 12px; font-size: 13px; color: var(--l-muted); }
.doc h2 { margin-top: 48px; font-size: 22px; font-weight: 600; letter-spacing: -.55px; line-height: 1.3; }
.doc h3 { margin-top: 28px; font-size: 17px; }
.doc p, .doc li { margin-top: 12px; font-size: 15px; color: var(--l-ink-muted); }
.doc h1 + p, .doc .updated + p { margin-top: 24px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-top: 8px; }
.doc a { color: var(--l-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.doc strong { color: var(--l-ink); font-weight: 600; }
.doc .callout { margin-top: 24px; padding: 16px 20px; border-radius: 16px; background: var(--l-surface); border: 1px solid var(--l-line); border-left: 3px solid var(--accent); box-shadow: var(--shadow-whisper); }
.doc .callout p { margin-top: 6px; }
.doc table { width: 100%; margin-top: 16px; border-collapse: separate; border-spacing: 0; font-size: 14px; border: 1px solid var(--l-line); border-radius: 12px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--l-line); color: var(--l-ink-muted); vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { color: var(--l-ink); font-weight: 600; background: var(--l-surface2); }
.doc .fine-print { font-size: 12px; color: var(--l-muted); }
.not-found { text-align: center; padding-top: 96px; }
.not-found h1 { margin-top: 12px; }
.not-found p { max-width: 420px; margin-inline: auto; }
.not-found .button { margin-top: 12px; }
