/* The test drive's own pages (sign in, terms, start here) in the same system as the app: bone ground, ink type,
   hairlines, one volt action, Fraunces for display and Inter for everything else. Tokens match app.css. */
:root {
  --bg: #f4f3ee; --surface: #fbfaf7; --surface-2: #eceae3; --fg: #0a0a09; --muted: #6f6a5f; --faint: #8e887a;
  --line: rgb(10 10 9 / 0.1); --line-strong: rgb(10 10 9 / 0.22); --accent: #ceff00; --accent-fg: #0a0a09;
  --danger: #b3261e; --ok: #2f6b2f;
  --sans: Inter, ui-sans-serif, system-ui, sans-serif; --serif: Fraunces, ui-serif, Georgia, serif; --mono: ui-monospace, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a09; --surface: #141412; --surface-2: #1d1d1a; --fg: #f4f3ee; --muted: #aaa498;
    --line: rgb(244 243 238 / 0.1); --line-strong: rgb(244 243 238 / 0.24); --danger: #ff8a80; --ok: #9ccc8a;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a09; --surface: #141412; --surface-2: #1d1d1a; --fg: #f4f3ee; --muted: #aaa498;
  --line: rgb(244 243 238 / 0.1); --line-strong: rgb(244 243 238 / 0.24); --danger: #ff8a80; --ok: #9ccc8a;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.6 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-fg); }
a { color: inherit; }

.p-top { display: flex; align-items: baseline; gap: 8px; padding: 24px max(16px, env(safe-area-inset-left, 0px)) 0; max-width: 808px; margin: 0 auto; }
.wordmark { font: 400 20px/28px var(--serif); letter-spacing: -0.025em; }
.wordmark-label { font: 600 11px/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
main { max-width: 808px; margin: 0 auto; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 72px max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 20px; }
main.narrow { max-width: 440px; }
h1 { font: 400 clamp(32px, 6vw, 44px)/1.08 var(--serif); letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h2 { font: 400 26px/1.2 var(--serif); letter-spacing: -0.015em; margin: 20px 0 0; }
h3 { font: 600 15px/1.4 var(--sans); margin: 8px 0 0; }
p { margin: 0; max-width: 65ch; }
.lede { color: var(--muted); font-size: 16px; }
.muted { color: var(--muted); }
.eyebrow { font: 600 11px/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
code { font: 13px var(--mono); background: var(--surface-2); border-radius: 4px; padding: 1px 5px; }
ul, ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
ol.steps { list-style: none; padding: 0; gap: 10px; }
ol.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 14px 56px; position: relative; }
ol.steps li b.n { position: absolute; left: 18px; top: 14px; width: 24px; height: 24px; border-radius: 9999px; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font: 600 12px var(--sans); }

form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.field, input:not([type=checkbox]) { font: inherit; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--fg); width: 100%; }
input:focus { outline: 2px solid var(--fg); outline-offset: 1px; }
.tick { flex-direction: row; gap: 10px; align-items: flex-start; font-weight: 400; }
.tick input { margin-top: 5px; accent-color: var(--fg); }
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border: 1px solid var(--accent); border-radius: 9999px; background: var(--accent); color: var(--accent-fg); font: 600 15px var(--sans);
  text-decoration: none; cursor: pointer; align-self: flex-start; }
.btn:hover, button:hover { filter: brightness(.95); }
.btn.quiet { background: transparent; border-color: var(--line-strong); color: var(--fg); }

.terms { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px 16px; max-height: 55vh; overflow: auto; }
.terms h2 { font-size: 22px; } .terms h3 { margin-top: 14px; } .terms p { margin-top: 6px; }
.notice { border-radius: 10px; padding: 12px 16px; font-weight: 500; max-width: none; }
.notice.bad { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.notice.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details ol { margin-top: 10px; }
