/* specs/frontend-design.md tokens, system-font stack only — this is still
   the first (or second) click on a referral link, possibly on a phone with
   a bad connection, so it stays off the admin console's self-hosted
   webfonts even though this page is now Flask-served like everything
   else. Raw hex, not core/src/core/static/base.css's `var(--ink)` etc.:
   loading that stylesheet here would pull in the Plex font-face
   declarations this page deliberately avoids. */
:root {
  --paper: #F5F6F7;
  --ink: #14181C;
  --ink-muted: #5B6570;
  --line: #D5D9DC;
  --attention: #C77A22;
  --good: #2F6B4F;
  --cta-ink: #fff;
  --cta-hover: #B06D1D;
  color-scheme: light dark;
}

/* Same dark mapping as base.css's [data-theme="dark"] block — this page
   has no login-gated theme *preference* to read (it's pre-login), so it
   only ever follows the OS setting, never an explicit per-user toggle. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1B1F23;
    --ink: #EDEFF1;
    --ink-muted: #9AA4AD;
    --line: #33393E;
    --attention: #D98A3D;
    --good: #4C8A6C;
    --cta-hover: #C67A35;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

header, main, footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 24px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 0 0 24px;
  color: var(--ink);
}

/* Fallback brand mark (no logo uploaded yet) — colored through the same
   custom properties as everything else on the page, not hardcoded hex in
   the SVG markup itself, so it follows dark mode too. */
.brand-mark-bg { fill: var(--ink); }
.brand-mark-line { stroke: var(--ink-muted); }
.brand-mark-dot-past { fill: var(--paper); }
.brand-mark-dot-current { fill: var(--attention); }
.brand-mark-dot-future { fill: none; stroke: var(--paper); }

h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 700;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin: 0 0 16px;
}

p { margin: 0 0 16px; }

.cta { margin-top: 24px; }

.cta-link {
  display: inline-block;
  background: var(--attention);
  color: var(--cta-ink);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 600;
}
.cta-link:hover, .cta-link:focus-visible { background: var(--cta-hover); }
.cta-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

main section + section { margin-top: 24px; }

/* Three-tick stage rail — rendered by the real shared macro
   (core/src/core/templates/_stage_rail.html's stage_rail_three), same
   markup/class contract as the admin console and intake confirmation, just
   styled here with the system-font fallback instead of Plex. "Submit"
   filled, "talk" and "build" unfilled — this page describes the process,
   doesn't claim a position in it. */
.stage-rail-three { margin-bottom: 16px; max-width: 16rem; }
.stage-rail-three .stage-rail-track { display: flex; align-items: center; }
.stage-rail-three .stage-rail-tick { flex: 1 1 auto; height: 1px; background: var(--line); }
.stage-rail-three .stage-rail-tick:first-child { flex: 0 0 0; }
.stage-rail-three .stage-rail-dot {
  flex: none; width: 10px; height: 10px; border-radius: 4px;
  background: var(--paper); border: 1px solid var(--line);
}
.stage-rail-three .stage-rail-dot-current,
.stage-rail-three .stage-rail-dot-past { background: var(--ink); border-color: var(--ink); }
.stage-rail-three .stage-rail-endpoints {
  display: flex; justify-content: space-between; margin-top: 8px; margin-bottom: 0;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 0.8125rem; color: var(--ink-muted);
}
.stage-rail-three .stage-rail-label-current { color: var(--ink); font-weight: 600; }

ol { padding-left: 1.25rem; margin: 0 0 16px; }
ol li { margin-bottom: 8px; }

footer {
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
footer a { color: inherit; }

a:focus-visible { outline: 2px solid var(--attention); outline-offset: 2px; }

/* 2.5rem wraps to five short lines on a 390px phone; step down so the
   headline and the call to action share the first screen. */
@media (max-width: 600px) {
  h1 { font-size: 1.875rem; }
  header, main, footer { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
