/* flows/v1/onboarding.css — LAT-2225 first-run onboarding wizard (/onboarding page).
 *
 * SELF-CONTAINED ON PURPOSE. This page renders no shell and no legacy
 * components, so it does not import the account v2 cascade; that keeps the
 * module removable (cut out = nothing else changes) and immune to layer-order
 * accidents. Token VALUES mirror css/account/v2/tokens/primitives.css
 * (--p-*); if the palette moves, update both (grep marker: LAT-2225-tokens).
 * The account app is light-only today; this page follows it.
 */
:root {
  --onb-ground: #f8fafc;        /* --p-canvas */
  --onb-card: #ffffff;          /* white surface */
  --onb-ink: #0f172a;           /* --p-ink */
  --onb-body: #334155;          /* --p-body */
  --onb-muted: #64748b;         /* --p-muted */
  --onb-line: #e2e8f0;          /* --p-border */
  --onb-accent: #c65000;        /* --p-accent */
  --onb-accent-hover: #a84400;  /* --p-accent-hover */
  --onb-accent-soft: #fff7ed;   /* --p-accent-soft */
  --onb-track: rgba(15, 23, 42, 0.08);
  --onb-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 4px 6px -1px rgba(0, 0, 0, 0.06);
  --onb-r: 16px;
  --onb-r-sm: 8px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--onb-ground);
  color: var(--onb-ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* (step bar lives in css/flows/v1/chrome.css — shared flow chrome) */

/* screens */
.onb-screen { display: none; min-height: 100vh; padding: 84px 24px 48px; flex-direction: column; align-items: center; justify-content: center; }
.onb-screen.on { display: flex; }
.onb-wrap { width: 100%; max-width: 980px; }
.onb-center { display: flex; align-items: center; justify-content: center; }

h1 { font-size: clamp(23px, 3.2vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }
.onb-sub { color: var(--onb-body); font-size: 15px; margin: 0 0 24px; max-width: 58ch; }
.onb-sub b { color: var(--onb-ink); font-weight: 500; }

.onb-spin { width: 26px; height: 26px; border: 3px solid var(--onb-line); border-top-color: var(--onb-accent); border-radius: 50%; animation: onbspin 800ms linear infinite; }
@keyframes onbspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .onb-spin { animation: none; } }

/* audience toggle */
.onb-aud { display: inline-flex; border: 1px solid var(--onb-line); border-radius: var(--onb-r-sm); background: var(--onb-card); padding: 4px; margin-bottom: 22px; }
.onb-aud button { border: none; background: transparent; color: var(--onb-muted); font-family: inherit; font-size: 14px; font-weight: 600; padding: 8px 20px; border-radius: 6px; cursor: pointer; }
.onb-aud button.on { background: var(--onb-accent); color: #fff; }
.onb-aud button:focus-visible { outline: 2px solid var(--onb-accent); outline-offset: 2px; }

/* plan cards */
.onb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.onb-plan { background: var(--onb-card); border: 1.5px solid var(--onb-line); border-radius: var(--onb-r); padding: 20px; cursor: pointer; position: relative; box-shadow: var(--onb-shadow); transition: border-color 120ms, transform 120ms; display: flex; flex-direction: column; gap: 6px; }
.onb-plan:hover { border-color: var(--onb-accent); transform: translateY(-2px); }
.onb-plan.sel { border-color: var(--onb-accent); outline: 2px solid var(--onb-accent-soft); }
.onb-plan:focus-visible { outline: 2px solid var(--onb-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .onb-plan { transition: none; } .onb-plan:hover { transform: none; } }
.onb-plan-tag { position: absolute; top: -10px; left: 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; background: var(--onb-accent); color: #fff; border-radius: 20px; padding: 2px 10px; }
.onb-plan-name { font-weight: 600; font-size: 17px; }
.onb-plan-price { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.onb-plan-price small { font-size: 13px; font-weight: 500; color: var(--onb-muted); letter-spacing: 0; }
.onb-plan ul { margin: 4px 0 0; padding: 0 0 0 16px; font-size: 13px; color: var(--onb-muted); line-height: 1.55; }
.onb-plan-note { font-size: 12.5px; color: var(--onb-accent); font-weight: 600; margin-top: auto; padding-top: 8px; }
.onb-guarantee { margin-top: 16px; font-size: 13px; color: var(--onb-muted); text-align: center; }

/* survey pills: two columns max, one on narrow (operator, 2026-08-13) */
.onb-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 720px; }
@media (max-width: 560px) { .onb-pills { grid-template-columns: 1fr; } }
.onb-pill { display: flex; align-items: center; gap: 10px; background: var(--onb-card); border: 1.5px solid var(--onb-line); border-radius: var(--onb-r-sm); padding: 14px 18px; cursor: pointer; font-weight: 500; font-size: 14.5px; transition: border-color 120ms, background 120ms; }
.onb-pill:hover { border-color: var(--onb-accent); }
.onb-pill.sel { border-color: var(--onb-accent); background: var(--onb-accent-soft); }
.onb-pill:focus-visible { outline: 2px solid var(--onb-accent); outline-offset: 2px; }
.onb-pill .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--onb-muted); flex-shrink: 0; }
.onb-pill.sel .dot { border-color: var(--onb-accent); background: var(--onb-accent); }

/* nav */
.onb-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.onb-btn { border: none; border-radius: var(--onb-r-sm); padding: 12px 28px; font-size: 14.5px; font-weight: 600; cursor: pointer; font-family: inherit; background: var(--onb-accent); color: #fff; }
.onb-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.onb-btn:hover { background: var(--onb-accent-hover); }
.onb-btn:focus-visible { outline: 2px solid var(--onb-ink); outline-offset: 2px; }
.onb-ghost { background: transparent; color: var(--onb-muted); }
.onb-ghost:hover { background: transparent; color: var(--onb-ink); }
