/* Aletheon landing — tokens ported from web/app/globals.css (the product's own
   design system). The page should read as the briefing cover the product
   pages continue. Slate ladder is the WCAG-AA-measured set from Session 17.
   Mono note: the product's mono has always been the system stack ("Instrument
   Mono" does not exist on Google Fonts) — same stack here, zero font bytes. */

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/bebas-neue-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/libre-baskerville-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/libre-baskerville-latin-italic.woff2') format('woff2');
}

:root {
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'Libre Baskerville', serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', Menlo, Consolas, monospace;

  --bg: #060708;
  --s1: #0a0c0f;
  --s2: #0e1014;
  --s3: #141720;
  --border: #181e28;
  --border2: #1f2836;

  --text: #c8d4e0;
  --muted: #76879a;
  --soft: #8a9eb1;
  --dim: #9caebf;

  --gold: #c49a3c;
  --gold-bg: #18130a;
  --gold-dim: #4a3a12;
  --gold-soft: #e8c060;

  --amber: #b87830;
  --amber-bg: #140e06;

  --col: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

main { max-width: var(--col); margin: 0 auto; padding: 0 20px 40px; }

/* ── accessibility ── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--s2); color: var(--gold); border: 1px solid var(--gold-dim);
  border-radius: 3px; padding: 8px 14px; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { left: 8px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

.serif { font-family: var(--font-serif); }

/* ── hero ── */
.hero { padding: 64px 0 36px; }
.topline { display: flex; align-items: baseline; gap: 12px; margin-bottom: 44px; }
.wordmark { font-family: var(--font-display); font-size: 28px; letter-spacing: .14em; color: var(--gold); }
.crumb { font-size: 11px; letter-spacing: .1em; color: var(--muted); }

.h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 6vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
}
.subhead {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.8;
  max-width: 56ch;
  margin-bottom: 30px;
}

/* ── signup form ── */
.signup { max-width: 480px; }
.signup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.email-input {
  flex: 1; min-width: 220px;
  background: var(--s2); border: 1px solid var(--border2); border-radius: 3px;
  padding: 11px 14px; font: inherit; font-size: 13px; color: var(--text);
}
.email-input::placeholder { color: var(--muted); }
.email-input:focus { border-color: var(--gold-dim); outline-offset: 0; }
.cta {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  background: var(--gold-bg); color: var(--gold);
  border: 1px solid var(--gold-dim); border-radius: 3px;
  padding: 11px 20px; cursor: pointer; white-space: nowrap;
}
.cta:hover { color: var(--gold-soft); border-color: var(--gold); }
.cta:disabled { opacity: .5; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { min-height: 65px; margin-top: 10px; }  /* reserve space — no layout shift */
.form-status { font-size: 12px; margin-top: 8px; min-height: 1.4em; color: var(--soft); }
.form-status.ok { color: var(--gold-soft); }
.form-status.err { color: #d45858; }
.micro { font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }

/* ── etymology strip ── */
.etym {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 14px 0; margin: 28px 0 8px;
}
.etym p { font-size: 12px; letter-spacing: .06em; color: var(--gold); opacity: .82; }

/* ── sections ── */
.section { padding: 40px 0 8px; }
.section-label {
  font-size: 11px; font-weight: 400; letter-spacing: .35em;
  color: var(--gold); margin-bottom: 22px;
}
.section-intro { font-size: 13.5px; color: var(--dim); line-height: 1.8; margin-bottom: 24px; max-width: 56ch; }

/* problem grid */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.problem {
  background: var(--s1); border: 1px solid var(--border); border-radius: 4px;
  padding: 16px 18px;
}
.problem-k { font-size: 10px; font-weight: 400; letter-spacing: .22em; color: var(--soft); margin-bottom: 8px; }
.problem p { font-size: 12.5px; color: var(--dim); line-height: 1.7; }
@media (max-width: 620px) { .problem-grid { grid-template-columns: 1fr; } }

/* receipts */
.receipt { margin-bottom: 30px; }
.receipt img {
  border: 1px solid var(--border2); border-radius: 4px;
  width: 100%;
}
.receipt figcaption {
  font-size: 11.5px; color: var(--soft); letter-spacing: .03em;
  padding: 10px 2px 0; line-height: 1.7;
}

/* steps */
.steps { list-style: none; }
.steps li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.step-k { font-size: 11px; letter-spacing: .22em; color: var(--gold); white-space: nowrap; min-width: 140px; }
.step-v { font-size: 12.5px; color: var(--dim); line-height: 1.7; }
@media (max-width: 520px) { .steps li { flex-direction: column; gap: 4px; } }

/* pattern memory */
.pattern {
  font-size: 14.5px; color: var(--text); line-height: 1.9; max-width: 58ch;
  border-left: 2px solid var(--gold); padding-left: 18px;
}

/* built in the open */
.open-block {
  background: var(--s1); border: 1px solid var(--border2); border-left: 2px solid var(--amber);
  border-radius: 0 4px 4px 0; padding: 18px 20px;
  font-size: 12.5px; color: var(--dim); line-height: 1.8; max-width: 60ch;
}
.tba {
  display: inline-block; font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--amber); background: var(--amber-bg); border: 1px solid #3a2a0a;
  padding: 1px 6px; border-radius: 2px; vertical-align: middle;
}

/* the ask */
.ask { padding-bottom: 30px; }
.ask-line { font-size: 14px; color: var(--text); line-height: 1.8; margin-bottom: 24px; }

/* footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: 11px; color: var(--muted);
}
.footer a { color: var(--soft); text-decoration: none; }
.footer a:hover { color: var(--gold-soft); }
.foot-sep { color: var(--border2); }

/* ── no-JS thanks page (rendered by the Worker) ── */
.thanks-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.thanks-wrap { max-width: 480px; padding: 20px; text-align: left; }
.thanks-title { font-family: var(--font-serif); font-size: 26px; color: var(--text); margin: 18px 0 12px; }
.thanks-text { font-size: 13px; color: var(--dim); line-height: 1.8; margin-bottom: 18px; }
.thanks-back a { color: var(--gold); font-size: 12px; letter-spacing: .08em; text-decoration: none; }

/* ── privacy page ── */
.privacy-body h1 { font-family: var(--font-serif); font-size: 26px; margin: 26px 0 18px; }
.privacy-body h2 { font-size: 12px; letter-spacing: .25em; color: var(--gold); font-weight: 400; margin: 26px 0 10px; }
.privacy-body p { font-size: 12.5px; color: var(--dim); line-height: 1.8; margin-bottom: 12px; max-width: 62ch; }
