/* Landing — visual language mirrored from the iOS app.
   Verdict palette (Palette.fallback), iOS semantic surfaces, theme-aware light/dark.
   Copy-led centered hero; no product name, no app-UI mockup — teased by copy only. */

:root {
  /* Verdict palette — light-mode hexes */
  --hit: #34C759;
  --near: #FF9500;
  --missed: #FF3B30;
  /* Semantic surfaces (iOS light) */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F2F2F7;
  --fill-tertiary: rgba(120, 120, 128, 0.12);
  --ink: #000000;
  --ink-2: rgba(60, 60, 67, 0.6);
  --ink-3: rgba(60, 60, 67, 0.3);
  --hairline: rgba(60, 60, 67, 0.18);
  --btn-fill: #000000;
  --btn-text: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --hit: #30D158;
    --near: #FF9F0A;
    --missed: #FF453A;
    --bg: #000000;
    --surface: #1C1C1E;
    --surface-2: #2C2C2E;
    --fill-tertiary: rgba(118, 118, 128, 0.24);
    --ink: #FFFFFF;
    --ink-2: rgba(235, 235, 245, 0.6);
    --ink-3: rgba(235, 235, 245, 0.3);
    --hairline: rgba(84, 84, 88, 0.6);
    --btn-fill: #FFFFFF;
    --btn-text: #000000;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); }
.page {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.35;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 26px; flex: 1; display: flex; flex-direction: column; }

/* ---------- HERO (centered, copy-led) ---------- */
.hero {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 72px 0 56px;
}
.tagline { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; }
.subhead { font-size: 18px; color: var(--ink-2); margin-top: 20px; max-width: 42ch; }

/* Tracked-metric pills with real (Lucide) stroke icons */
.metrics { display: flex; gap: 9px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.metric {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); border-radius: 11px; padding: 9px 15px;
  font-size: 15px; font-weight: 600;
}
.metric svg { width: 18px; height: 18px; color: var(--ink); }

/* Daily verdict badges (theme-aware colours via CSS vars) */
.verdicts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.vchip { font-size: 13px; font-weight: 600; padding: 5px 13px; border-radius: 999px; }
.vchip-hit { background: color-mix(in srgb, var(--hit) 15%, transparent); color: var(--hit); }
.vchip-near { background: color-mix(in srgb, var(--near) 15%, transparent); color: var(--near); }
.vchip-missed { background: color-mix(in srgb, var(--missed) 15%, transparent); color: var(--missed); }

/* ---------- WAITLIST FORM ---------- */
.form-card { margin-top: 34px; width: 100%; max-width: 460px; }
.field-row { display: flex; gap: 10px; }
.email-field {
  flex: 1; min-width: 0; height: 50px; border: none; border-radius: 14px;
  background: var(--fill-tertiary); color: var(--ink);
  padding: 0 16px; font-size: 16px; font-family: inherit; outline: none;
  transition: box-shadow 0.15s ease;
}
.email-field::placeholder { color: var(--ink-3); }
.email-field:focus { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.btn-primary {
  height: 50px; border: none; border-radius: 14px; cursor: pointer;
  background: var(--btn-fill); color: var(--btn-text);
  font-size: 16px; font-weight: 600; font-family: inherit;
  padding: 0 22px; white-space: nowrap; transition: opacity 0.15s ease;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:active { opacity: 0.7; }
.btn-primary:disabled { opacity: 0.55; cursor: default; }
/* Honeypot — visually removed, still focusable-off for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note, .form-success, .form-error {
  font-size: 12.5px; margin-top: 12px; display: flex; align-items: center; gap: 6px;
  justify-content: center; text-align: left;
}
.form-note { color: var(--ink-2); }
.form-note svg { width: 13px; height: 13px; flex: none; }
.form-success { color: var(--hit); font-size: 15px; font-weight: 600; display: none; }
.form-success svg { width: 18px; height: 18px; flex: none; }
.form-error { color: var(--missed); font-weight: 600; display: none; }
/* State toggles set by main.js on the form element */
.form-card.is-done [data-note], .form-card.is-done .field-row { display: none; }
.form-card.is-done [data-success] { display: flex; }
.form-card.has-error [data-error] { display: flex; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--hairline); padding: 26px 0 40px;
  text-align: center; font-size: 13px; color: var(--ink-2);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .tagline { font-size: 34px; }
  .field-row { flex-direction: column; }
  /* In a column, flex:1 would hijack the vertical axis and collapse the input's
     height to its content (~19px); pin it back so height:50px is honored. */
  .email-field { flex: none; }
  .btn-primary { width: 100%; }
}
