/*
  Design tokens mirror SkyTonight/Features/Shared/LookUpDesign.swift and
  Shared/Theme/AppTheme.swift 1:1 — the website and the app share one palette,
  one type voice, one rhythm of motion. If those values change in the app,
  these should change with them.
*/

:root {
  /* Sky gradient — SkyBackgroundStyle.onboarding ("rich clear-midnight,
     matches Tonight tab's clear-sky feel") */
  --sky-top: #0c1428;
  --sky-mid: #080e1c;
  --sky-bottom: #04060f;

  /* Text */
  --text-primary: #dce1fb;
  --text-secondary: #c6c6cd;

  /* Verdict palette — LookUpDesign.verdictAccent — low-chroma by design,
     calm enough to deliver any reading, good or poor, in the same voice */
  --verdict-go: #7fb87a;
  --verdict-soon: #d6c07a;
  --verdict-maybe: #c9905b;
  --verdict-not: #9a6e6e;

  --accent: #e2e8f0;

  --max-width: 720px;
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                            */
/* ---------------------------------------------------------------------- */

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

html {
  color-scheme: dark;
  /* On the document element so the gradient spans the full scrollable
     height, not just one viewport — `background-attachment: fixed` is
     unreliable on mobile Safari and was leaving a hard seam below the fold. */
  background: var(--sky-bottom);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 32%, var(--sky-bottom) 75%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------------------------------------------------------------------- */
/* Starfield — sparse, low-opacity, static. No canvas, no script.         */
/* ---------------------------------------------------------------------- */

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(220, 225, 251, 0.55) 0, transparent 100%),
    radial-gradient(1px 1px at 28% 64%, rgba(220, 225, 251, 0.35) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 41% 32%, rgba(220, 225, 251, 0.45) 0, transparent 100%),
    radial-gradient(1px 1px at 58% 8%, rgba(220, 225, 251, 0.30) 0, transparent 100%),
    radial-gradient(1px 1px at 67% 78%, rgba(220, 225, 251, 0.40) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 77% 22%, rgba(220, 225, 251, 0.50) 0, transparent 100%),
    radial-gradient(1px 1px at 85% 52%, rgba(220, 225, 251, 0.30) 0, transparent 100%),
    radial-gradient(1px 1px at 93% 88%, rgba(220, 225, 251, 0.40) 0, transparent 100%),
    radial-gradient(1px 1px at 8% 84%, rgba(220, 225, 251, 0.30) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 92%, rgba(220, 225, 251, 0.35) 0, transparent 100%),
    radial-gradient(1px 1px at 50% 50%, rgba(220, 225, 251, 0.25) 0, transparent 100%),
    radial-gradient(1px 1px at 22% 40%, rgba(220, 225, 251, 0.30) 0, transparent 100%);
  opacity: 0.6;
}

/* ---------------------------------------------------------------------- */
/* Motion — one gesture, used once. Mirrors BreathingDotView exactly:     */
/* 5.5s ease-in-out, opacity 0.85 → 1.0, scale 1.0 → 1.18.                */
/* ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .breathing-dot {
    animation: breathe 5.5s ease-in-out infinite alternate;
  }
}

@keyframes breathe {
  from {
    opacity: 0.85;
    transform: scale(1.0);
  }
  to {
    opacity: 1.0;
    transform: scale(1.18);
  }
}

.breathing-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--verdict-go);
  box-shadow: 0 0 16px 2px rgba(127, 184, 122, 0.45);
}

/* ---------------------------------------------------------------------- */
/* Layout                                                                  */
/* ---------------------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
}

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.hero {
  /* Short of full viewport height on purpose — the top hairline of "What
     it tells you" should peek into view at first load. The page reveals
     its own continuation; nobody needs to be told to scroll. */
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.wordmark {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  opacity: 0.92;
}

.headline {
  font-size: clamp(40px, 9vw, 64px);
  font-weight: 100;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
}

.subline {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  max-width: 36ch;
}

/* ---------------------------------------------------------------------- */
/* The "arriving on the App Store" element — a fact, stated plainly. No   */
/* fill, no border, no button shape: it isn't tappable, so it shouldn't   */
/* look like it is. Color borrows --verdict-soon — the app's own word for */
/* "worth waiting for, opens later" — the same meaning this status carries,*/
/* in the same low-chroma voice as .verdict-word.soon.                    */
/* ---------------------------------------------------------------------- */

.store-status {
  display: inline-block;
  margin-top: 4px;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--verdict-soon);
}

/* Quiet, secondary — sits beneath the status capsule without competing
   with it. One field, one button, one line of confirmation. */
.notify-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  width: 100%;
}

.notify-label {
  display: block;
  max-width: 34ch;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: -0.005em;
  line-height: 1.5;
  color: var(--text-secondary);
  opacity: 0.8;
}

.notify-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 360px;
}

.notify-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: -0.005em;
}

.notify-input::placeholder {
  color: rgba(220, 225, 251, 0.34);
}

.notify-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.09);
}

.notify-submit {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}

/* Sage halo on hover — the same hue and glow language as .breathing-dot
   (var(--verdict-go), box-shadow 0 0 16px rgba(127, 184, 122, 0.45)).
   This is the page's one "go" action, so it borrows the "go" glow. */
.notify-submit:hover:not(:disabled) {
  background: rgba(127, 184, 122, 0.12);
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 18px 2px rgba(127, 184, 122, 0.22);
}

.notify-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Hidden from sighted users via CSS, removed from the tab order, and
   marked aria-hidden in the markup — bots tend to fill every field they
   can see in markup, real people never reach this one. */
.notify-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.notify-status {
  min-height: 1.4em;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  opacity: 0.7;
}

.notify-status.is-success {
  color: var(--verdict-go);
  opacity: 0.9;
}

.notify-status.is-error {
  color: var(--verdict-not);
  opacity: 0.9;
}

/* ---------------------------------------------------------------------- */
/* Verdict list — the product explained through its own four words.       */
/* ---------------------------------------------------------------------- */

.verdicts {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-label {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 28px;
}

.verdict-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.10);
}

.verdict-row:last-child {
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.10);
}

.verdict-word {
  flex: 0 0 auto;
  width: 9.5ch;
  font-size: 21px;
  font-weight: 200;
  letter-spacing: -0.02em;
}

.verdict-word.go { color: var(--verdict-go); }
.verdict-word.soon { color: var(--verdict-soon); }
.verdict-word.maybe { color: var(--verdict-maybe); }
.verdict-word.not { color: var(--verdict-not); }

.verdict-copy {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
}

/* ---------------------------------------------------------------------- */
/* "What it watches for"                                                  */
/* ---------------------------------------------------------------------- */

.watches {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* Same row grammar as .verdict-row — word, then a one-line description,
   baseline-aligned, hairline dividers. "What it tells you" and "What it
   watches for" should read as one instrument with two gauges, not two
   different drafts wearing the same label. Plain text-primary, not the
   verdict palette — these aren't verdicts, and that color carries meaning
   elsewhere that shouldn't be diluted here. */
.watch-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.10);
}

.watch-row:last-child {
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.10);
}

.watch-word {
  flex: 0 0 auto;
  width: 11ch;
  font-size: 21px;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.watch-copy {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
}

/* The section's one moment of warmth, kept — now a coda beneath the
   instrument rows rather than the whole of the section. */
.watches-close {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 52ch;
}

/* ---------------------------------------------------------------------- */
/* FAQ — plain question/answer pairs, phrased the way people actually ask. */
/* Same hairline-row grammar as .verdict-row / .watch-row, stacked instead */
/* of baseline-paired (answers run long; a fixed-width word column would   */
/* force awkward wraps).                                                   */
/* ---------------------------------------------------------------------- */

.faq {
  padding-top: 96px;
  padding-bottom: 96px;
}

.faq-item {
  padding: 22px 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.10);
}

.faq-item:last-child {
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.10);
}

.faq-q {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.faq-a {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  max-width: 56ch;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

footer {
  padding-top: 40px;
  padding-bottom: 64px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

footer a {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.8;
}

footer a:hover {
  opacity: 1;
  color: var(--text-primary);
}

.footer-meta {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.30);
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------- */
/* Privacy page — same world, plainer posture                             */
/* ---------------------------------------------------------------------- */

.legal {
  padding-top: 96px;
  padding-bottom: 96px;
}

.legal h1 {
  font-size: clamp(32px, 7vw, 44px);
  font-weight: 100;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.legal .updated {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal p,
.legal li {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal ul {
  margin: 12px 0 12px 1.2em;
}

.legal li {
  margin-bottom: 8px;
}

.legal .back {
  display: inline-block;
  margin-bottom: 56px;
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.8;
}

.legal .back:hover {
  opacity: 1;
}

.legal mark {
  background: rgba(214, 192, 122, 0.16);
  color: var(--verdict-soon);
  border-radius: 4px;
  padding: 0 5px;
  font-style: normal;
}

/* ---------------------------------------------------------------------- */
/* Small screens                                                           */
/* ---------------------------------------------------------------------- */

@media (max-width: 480px) {
  .verdict-row,
  .watch-row {
    flex-direction: column;
    gap: 6px;
  }
  .verdict-word,
  .watch-word {
    width: auto;
  }
}
