/* Learn2Forecast landing — L00.
 * One stylesheet, first-party, no @import and no webfont: every byte on this
 * page comes from our own origin (AD-04, PLAN §12.3).
 * Contrast targets: body text >= 12:1, muted text >= 7:1, controls >= 4.5:1.
 */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --surface: #f4f6f9;
  --border: #c9d2dc;
  --text: #10151c;          /* 18.7:1 on --bg */
  --muted: #414d5c;         /* 8.9:1 on --bg */
  --accent: #0a4a70;        /* 8.1:1 on --bg */
  --accent-text: #ffffff;
  --focus: #0a4a70;
  --ok: #17512c;            /* 8.4:1 on --bg */
  --error: #8a1420;         /* 8.3:1 on --bg */
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161c24;
    --border: #303a46;
    --text: #e9eef5;        /* 15.6:1 on --bg */
    --muted: #adbac7;       /* 8.6:1 on --bg */
    --accent: #8fd0ff;      /* 10.4:1 on --bg */
    --accent-text: #06121c;
    --focus: #8fd0ff;
    --ok: #7ddba0;
    --error: #ffa8a8;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  padding: 0 1.25rem 4rem;
}

/* --- pitch variants (assets/pitch.js sets data-pitch on <html>) ----------- */
.v { display: none; }
html[data-pitch="a"] .v-a { display: block; }
html[data-pitch="b"] .v-b { display: block; }

/* --- skip link ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.6rem 1rem;
  border-radius: 0 0 6px 0;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* --- layout -------------------------------------------------------------- */
.site-head, main, .site-foot {
  max-width: var(--measure);
  margin-inline: auto;
}

.site-head { padding: 2rem 0 0.5rem; }

.wordmark {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.0625rem;
}
.wordmark-num { color: var(--accent); }

main { padding-top: 1.5rem; }

section + section { margin-top: 2.5rem; }

h1 {
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

h2 {
  font-size: 1.0625rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

p { margin: 0 0 1rem; }

.lede {
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 0;
}

/* --- signup -------------------------------------------------------------- */
.signup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.field { margin-bottom: 1rem; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input[type="email"] {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  min-height: 2.75rem;
}

input[type="email"]:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.help {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

button {
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-text);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.7rem 1.25rem;
  min-height: 2.75rem;
  cursor: pointer;
  transition: filter 120ms ease-in-out;
}
button:hover:not(:disabled) { filter: brightness(1.12); }
button:disabled { opacity: 0.7; cursor: progress; }

.status {
  margin: 0.85rem 0 0;
  min-height: 1.65rem;
  font-size: 0.9375rem;
}
.status[data-kind="ok"] { color: var(--ok); font-weight: 600; }
.status[data-kind="error"] { color: var(--error); font-weight: 600; }
.status[data-kind="pending"] { color: var(--muted); }

.privacy-line {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
}

/* --- footer -------------------------------------------------------------- */
.site-foot {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-bottom: 0.75rem;
}
.small { margin: 0; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

/* --- long-form pages (privacy, bot, 404) --------------------------------- */
.prose h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
.prose h2 {
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  font-size: 1.125rem;
  margin-top: 2rem;
}
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose dt { font-weight: 600; margin-top: 0.9rem; }
.prose dd { margin: 0.15rem 0 0; color: var(--muted); }
.updated { color: var(--muted); font-size: 0.9375rem; }

/* --- motion -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* The Play CTA — W30-CP2.
 *
 * Styled from the same tokens as the waitlist button (`--accent` /
 * `--accent-text`, both carrying their measured contrast ratios at the top of
 * this file in both colour schemes) rather than from new colours, so the one
 * accessible pair the page already proves is the one this uses too. It is an
 * anchor and not a button because it navigates; the shared `a:focus-visible`
 * rule above gives it the same focus ring as everything else (PLAN G14). */
.cta-row {
  margin: 1.6rem 0 0;
}

.cta {
  display: inline-block;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 8px;
  padding: 0.7rem 2.25rem;
  min-height: 2.75rem;
  line-height: 1.4rem;
  text-decoration: none;
  transition: filter 120ms ease-in-out;
}

.cta:hover {
  filter: brightness(1.12);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}
