@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/lora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/lora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 600; font-style: italic; font-display: swap; src: url("/fonts/lora-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* Layout: one calm reading column, one question per screen; the report reads like an instrument readout (score, scale with band edges, then the one thing to do). Adapt Labs design system tokens (rgccarter/Adapt-Labs-Design), square corners, no traffic-light colours. */
:root {
  --bg: #f2f2f2;
  --surface: #ffffff;
  --ink: #081b33;        /* navy: headings, primary button */
  --text: #374659;
  --muted: #6e7b8c;
  --line: #dadde2;
  --wash: #e4e7eb;
  --accent: #f56e00;     /* orange: shapes, rules, focus; never body text on light */
  --blue: #2c6bc1;
  --on-primary: #f2f5fa;
  --primary: #081b33;
  --logo-tile: #ffffff;
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081b33; --surface: #12294a; --ink: #f2f5fa; --text: #c9d4e3; --muted: #8ca3c4;
    --line: #1c3354; --wash: #0e2240; --accent: #f56e00; --blue: #5b8fd6;
    --on-primary: #081b33; --primary: #f56e00; --logo-tile: #f2f2f2; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081b33; --surface: #12294a; --ink: #f2f5fa; --text: #c9d4e3; --muted: #8ca3c4;
  --line: #1c3354; --wash: #0e2240; --accent: #f56e00; --blue: #5b8fd6;
  --on-primary: #081b33; --primary: #f56e00; --logo-tile: #f2f2f2; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 20px 48px;
}
.wrap { max-width: 660px; margin: 0 auto; display: grid; gap: 22px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 600; text-wrap: balance; margin: 0; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.65rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
.lead { font-size: 1.08rem; color: var(--text); max-width: 60ch; }
.small { font-size: 0.9rem; color: var(--muted); }
.mono { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { background: var(--logo-tile); padding: 8px 10px; display: inline-flex; line-height: 0; }
.logo img { width: 104px; height: auto; display: block; }

/* eyebrow: orange square + uppercase label (design system) */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--accent); flex: none; }

.panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 4vw, 28px); display: grid; gap: 16px; min-width: 0; }
.rule { height: 3px; width: 48px; background: var(--accent); }

/* buttons */
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { font-family: var(--font-body); font-size: 1rem; font-weight: 600; border-radius: 0; cursor: pointer; padding: 12px 20px; border: 2px solid var(--primary); background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 6px 0; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
button:focus-visible, select:focus-visible, .opt:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ic { width: 18px; height: 18px; flex: none; }

/* progress */
.progress { display: grid; gap: 8px; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.segs { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; }
.seg { height: 6px; background: var(--wash); border: 1px solid var(--line); }
.seg.done { background: var(--ink); border-color: var(--ink); }
.seg.now { background: var(--accent); border-color: var(--accent); }

/* options */
.opts { display: grid; gap: 8px; }
.opt { width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; cursor: pointer; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; }
.opt:hover { border-color: var(--ink); }
.opt .n { font-family: var(--font-data); font-size: 0.95rem; color: var(--ink); width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg); }
.opt.between { padding-block: 7px; color: var(--muted); font-size: 0.92rem; }
.opt.between .n { height: 24px; font-size: 0.85rem; }
.opt[aria-pressed="true"] { border: 2px solid var(--ink); background: var(--wash); padding: 11px 13px; }
.opt.between[aria-pressed="true"] { padding-block: 6px; }
.opt[aria-pressed="true"] .n { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.opt.idk { grid-template-columns: 22px 1fr; color: var(--ink); font-weight: 500; }
/* single-choice options carry a radio marker so they read as selectable */
.opt.idk::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); box-sizing: border-box; }
.opt.idk:hover::before { border-color: var(--ink); }
.opt.idk[aria-pressed="true"]::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 4px, transparent 4.5px); }
.opt, .pill { border-color: color-mix(in srgb, var(--muted) 45%, var(--line)); }
.sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.sep::before, .sep::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.q2 { font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.opt.offer { align-items: start; }
.opt.offer::before { margin-top: 3px; }
.choose { font-size: 0.85rem; color: var(--muted); margin-top: -10px; }
.offer-what { display: block; margin-top: 4px; font-weight: 400; color: var(--text); font-size: 0.92rem; line-height: 1.5; }
.qtext { font-family: var(--font-display); font-size: clamp(1.3rem, 3.6vw, 1.6rem); color: var(--ink); font-weight: 600; line-height: 1.3; text-wrap: balance; }

/* keep your result: email field and opt-in boxes */
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; cursor: pointer; color: var(--text); }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); cursor: pointer; }
input[type="email"] { font: inherit; color: var(--text); background: var(--surface); border: 1px solid color-mix(in srgb, var(--muted) 45%, var(--line)); border-radius: 0; padding: 10px 12px; width: 100%; }
input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* profile form */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.field .req { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; width: 100%; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font: inherit; font-size: 0.95rem; padding: 8px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 0; cursor: pointer; }
.pill[aria-pressed="true"] { border: 2px solid var(--ink); background: var(--wash); padding: 7px 13px; color: var(--ink); font-weight: 500; }
.err { color: var(--ink); font-weight: 600; font-size: 0.9rem; display: flex; gap: 8px; align-items: center; }
.err::before { content: ""; width: 9px; height: 9px; background: var(--accent); flex: none; }

/* report */
.score { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.score .num { font-family: var(--font-data); font-size: clamp(2.8rem, 9vw, 3.8rem); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.score .of { font-family: var(--font-data); color: var(--muted); font-size: 1.1rem; }
.score .band { font-family: var(--font-display); font-size: clamp(1.6rem, 4.5vw, 2rem); color: var(--ink); font-weight: 600; }
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 76px 1fr 112px; gap: 12px; align-items: center; }
.bar-name { font-weight: 600; color: var(--ink); }
.bar-track { position: relative; height: 14px; background: var(--wash); border: 1px solid var(--line); }
.bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--blue); }
.bar-row.focus .bar-fill { background: var(--accent); }
.bar-track .tick { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--muted); opacity: 0.6; }
.bar-track.empty { background: repeating-linear-gradient(135deg, var(--wash) 0 6px, transparent 6px 12px); }
.bar-val { font-size: 0.9rem; text-align: right; color: var(--text); white-space: nowrap; }
.bar-val .mono { color: var(--ink); }
.scale { display: grid; grid-template-columns: 76px 1fr 112px; gap: 12px; }
.scale-track { position: relative; height: 34px; font-size: 0.72rem; color: var(--muted); }
.scale-track span { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--font-data); }
.scale-track em { position: absolute; top: 16px; font-style: normal; font-size: 0.72rem; letter-spacing: 0.04em; transform: translateX(-50%); white-space: nowrap; }
.callout { border-top: 3px solid var(--accent); }
.note { background: var(--wash); border: 1px solid var(--line); padding: 14px 16px; }
.watch { display: grid; gap: 4px; }
.watch .title { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.1rem; }
details { border: 1px solid var(--line); background: var(--surface); padding: 12px 16px; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details .grid { display: grid; gap: 6px; margin-top: 10px; font-size: 0.92rem; }
.foot { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

@media (max-width: 480px) {
  .bar-row, .scale { grid-template-columns: 62px 1fr 92px; gap: 8px; }
  .scale-track em { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .screen { animation: rise 220ms ease-out; }
  @keyframes rise { from { transform: translateY(6px); } to { transform: none; } }
  .bar-fill { transition: width 500ms ease-out; }
}

/* live-site additions */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-top: max(20px, env(safe-area-inset-top, 0px)); }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.logo-link { display: inline-flex; }
.foot a { color: var(--muted); }
.foot p { margin: 0 0 6px; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.ok { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 600; }
.ok::before { content: ""; width: 9px; height: 9px; margin-top: 8px; background: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.watch a.title { text-decoration: underline; text-decoration-thickness: 1px; }
noscript p { background: var(--surface); border: 1px solid var(--line); padding: 16px; }
a.btn { text-decoration: none; }
