/* On Air palette: one red signal, cool grays at rest, teal = strength, amber = the thing to work on.
   Layout: a hero with the six-rung ladder, then bands; the quiz is one centered card; results lead with tier + radar. */
:root {
  --bg: #f3f5f8; --surface: #ffffff; --sunk: #e9edf2; --ink: #0f141b; --muted: #5a6474; --faint: #8a93a2; --line: #dde2ea;
  --red: #e0263b; --red-soft: #fde8eb; --teal: #1f8a78; --teal-soft: #ddf1ed; --amber: #b7740f; --amber-soft: #faefd9;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 1px 2px #0f141b0d, 0 12px 32px -18px #0f141b40;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #0b0e13; --surface: #141920; --sunk: #1b222b; --ink: #ecf0f5; --muted: #a0a9b7; --faint: #6f7886; --line: #252d38;
  --red: #ff4d5e; --red-soft: #3a151b; --teal: #3cc2a9; --teal-soft: #10302a; --amber: #e6a640; --amber-soft: #34270f;
  --shadow: 0 1px 0 #ffffff0a inset, 0 16px 40px -22px #000;
  color-scheme: dark; } }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: var(--display); letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 700 12.5px var(--body); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.lede { font-size: 19.5px; color: var(--muted); max-width: 52ch; }
.band { padding-block: 56px; }
.section-lede { color: var(--muted); max-width: 62ch; margin: 10px 0 26px; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px max(16px, calc((100% - 1120px) / 2)); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px var(--display); text-decoration: none; letter-spacing: -.02em; }
.mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.mark i { width: 6px; border-radius: 2px; background: var(--faint); }
.mark i:nth-child(1) { height: 9px; } .mark i:nth-child(2) { height: 15px; background: var(--muted); } .mark i:nth-child(3) { height: 22px; background: var(--red); }
.top-links { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.top-links a { text-decoration: none; color: var(--muted); }
.top-links a:hover { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.link { background: none; border: 0; padding: 4px 0; color: var(--muted); font-weight: 600; cursor: pointer; }
.link:hover { color: var(--ink); }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; padding-block: 48px 40px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); line-height: .98; font-weight: 800; letter-spacing: -.035em; margin: 14px 0 20px; }
.hero h1 em { font-style: normal; color: var(--red); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.cta-row .btn { min-height: 56px; padding: 0 30px; font-size: 18px; }
.ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ladder li { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 14px; padding: 13px 18px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); margin-left: calc((6 - var(--l, 1)) * 0px); }
.ladder li b { font: 800 18px var(--display); }
.ladder li span { color: var(--muted); font-size: 14.5px; }
.ladder li[data-l="6"] { border-color: var(--red); background: linear-gradient(90deg, var(--red-soft), var(--surface) 70%); }
.ladder li[data-l="5"] { margin-right: 12px; } .ladder li[data-l="4"] { margin-right: 24px; } .ladder li[data-l="3"] { margin-right: 36px; }
.ladder li[data-l="2"] { margin-right: 48px; } .ladder li[data-l="1"] { margin-right: 60px; opacity: .85; }
.dim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dim { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.dim-n { font: 700 13px var(--body); color: var(--red); letter-spacing: .06em; }
.dim h3 { font-size: 21px; }
.dim p { color: var(--muted); font-size: 15.5px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); }
.steps h3 { font-size: 20px; margin: 10px 0 6px; }
.steps p { color: var(--muted); font-size: 15.5px; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; }
.teams { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: center; background: var(--ink); color: var(--bg); border-radius: 28px; padding: 44px; margin-bottom: 40px; }
.teams .eyebrow { color: #c3cad5; }
.teams h2 { margin: 8px 0 12px; }
.teams p { color: #c9d0da; }
.teams .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.teams .small { margin-top: 10px; color: #aeb6c2; }
@media (prefers-color-scheme: dark) { .teams { background: var(--surface); color: var(--ink); border: 1px solid var(--line); } .teams p { color: var(--muted); } }
.foot { padding-block: 26px 40px; color: var(--faint); font-size: 13.5px; border-top: 1px solid var(--line); }

/* quiz */
.quiz { max-width: 760px; padding-block: 24px 80px; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.progress { height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden; margin: 10px 0 34px; }
.progress span { display: block; height: 100%; background: var(--red); border-radius: 99px; transition: width .3s ease; }
.q-dim { font: 700 13px var(--body); text-transform: uppercase; letter-spacing: .09em; color: var(--red); }
.q-text { font-size: clamp(25px, 3.4vw, 34px); line-height: 1.18; margin: 10px 0 8px; font-weight: 800; }
.q-text:focus { outline: none; }
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.opt { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line);
  background: var(--surface); cursor: pointer; font-size: 16.5px; line-height: 1.4; transition: border-color .12s ease, background .12s ease; }
.opt:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.opt .key { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--sunk); font-size: 13px; font-weight: 700; color: var(--muted); }
.opt .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line); }
.opt[aria-pressed="true"] { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, var(--surface)); }
.opt[aria-pressed="true"] .key { background: var(--ink); color: var(--bg); }
.opt[aria-pressed="true"] .box { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--surface); }
.opt.none { border-style: dashed; color: var(--muted); }
.quiz-foot { display: flex; justify-content: flex-end; margin-top: 26px; }

/* result */
.result-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; padding-block: 40px 8px; }
.tier-name { font-size: clamp(44px, 7vw, 84px); line-height: 1; font-weight: 800; letter-spacing: -.04em; margin: 12px 0 16px; display: flex; flex-direction: column; }
.tier-name #r-level { font-size: .32em; letter-spacing: 0; color: var(--red); font-family: var(--body); font-weight: 700; }
.result-copy > p#r-about { color: var(--muted); margin-top: 14px; max-width: 58ch; }
.score-line { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.score-big { font: 800 52px var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.radar-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 14px; }
#r-radar { width: 100%; height: auto; display: block; overflow: visible; }
#r-radar .rg { fill: none; stroke: var(--line); stroke-width: 1; }
#r-radar .ax { stroke: var(--line); stroke-width: 1; }
#r-radar .shape { fill: color-mix(in srgb, var(--red) 18%, transparent); stroke: var(--red); stroke-width: 2.5; stroke-linejoin: round; }
#r-radar .pt { fill: var(--surface); stroke: var(--red); stroke-width: 2.5; }
#r-radar .lab { font: 600 12.5px var(--body); fill: var(--muted); }
#r-radar .labv { font-weight: 800; fill: var(--ink); }
.shared-note { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px 28px; border-radius: 20px; background: var(--red-soft); }
.shared-note p { font-size: 19px; }

.ladder-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 36px; }
.rung { padding: 12px 10px; border-radius: 12px; background: var(--sunk); display: flex; flex-direction: column; gap: 2px; color: var(--faint); }
.rung span { font-size: 12px; font-weight: 700; }
.rung b { font: 800 15px var(--display); }
.rung.past { background: var(--teal-soft); color: var(--teal); }
.rung.here { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px var(--red); transform: translateY(-3px); }

.focus { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: stretch; }
.focus-card { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--amber); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.focus-card h2 { margin: 8px 0 12px; }
.move { font-size: 18px; }
.mini { font: 700 13px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 8px; }
.res { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.res li { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: var(--sunk); }
.res a { font-weight: 700; text-decoration: none; }
.res a:hover { color: var(--red); text-decoration: underline; }
.res span { font-size: 13.5px; color: var(--muted); }
.res em { font-style: normal; color: var(--amber); font-weight: 700; }
.bars { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.barrow { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 12px; font-size: 15px; }
.bl { font-weight: 600; }
.bv { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.track { height: 10px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.track span { display: block; height: 100%; border-radius: 99px; background: var(--teal); }
.barrow.focus .track span { background: var(--amber); }
.barrow.focus .bl { color: var(--amber); }
.sub-h { margin: 44px 0 16px; font-size: 26px; }
.moves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.move-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }

.share { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 32px; align-items: center; margin-top: 56px; padding: 32px; border-radius: 26px; background: var(--sunk); }
.share h2 { margin-bottom: 8px; }
.share p { color: var(--muted); }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 10px; }
#s-card { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); background: #fff; }

.upsell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.report, .email { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.report { border-color: var(--ink); }
.report h2, .email h2 { font-size: 25px; }
.email p { color: var(--muted); }
.ticks { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal-soft); box-shadow: inset 0 0 0 5px var(--teal); }
.report .btn { align-self: flex-start; margin-top: auto; }
.email label { font-weight: 700; font-size: 14px; margin-top: 4px; }
.email-row { display: flex; gap: 8px; }
.email-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.email-row input:focus { border-color: var(--ink); outline: none; }
.retake { text-align: center; margin-top: 36px; }

@media (max-width: 900px) {
  .hero, .result-hero, .focus, .share, .teams { grid-template-columns: minmax(0, 1fr); }
  .dim-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder li { margin-right: 0 !important; }
  .teams { padding: 30px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top-links { display: none; }
  .dim-grid, .steps, .moves, .upsell { grid-template-columns: minmax(0, 1fr); }
  .ladder-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ladder li { grid-template-columns: 1fr; gap: 0; }
  .email-row { flex-direction: column; }
  .share { padding: 22px; }
}

/* optional "about you" step, consent, percentile, privacy */
.ctx-fields { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 22px; }
.ctx-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.ctx-field select { min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 500 16px var(--body); }
.ctx-field select:focus { border-color: var(--ink); outline: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--sunk); font-size: 14.5px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.consent a { color: var(--ink); font-weight: 600; }
#ctx-step .quiz-foot { justify-content: space-between; }
.pct { margin-top: 12px; display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: 15px; }
.privacy { border-top: 1px solid var(--line); }
.privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.privacy h3 { font-size: 18px; margin-bottom: 6px; }
.privacy p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: minmax(0, 1fr); } }

/* parts, written task, self-vs-tested gap */
.part-note { margin: 4px 0 6px; padding: 12px 16px; border-radius: 14px; background: var(--sunk); color: var(--muted); font-size: 15px; }
.write { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.write textarea { width: 100%; min-height: 190px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 16px/1.5 var(--body); resize: vertical; }
.write textarea:focus { border-color: var(--ink); outline: none; }
.w-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.w-actions { display: flex; gap: 14px; align-items: center; }
.w-result { padding: 16px 18px; border-radius: 16px; background: var(--teal-soft); display: flex; flex-direction: column; gap: 6px; }
.w-score b { font: 800 22px var(--display); color: var(--teal); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gap { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gap li { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); font-size: 15.5px; color: var(--muted); }
.gap b { color: var(--ink); }

/* ask your AI */
.observe { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px; margin: 0 0 40px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.observe-copy { display: flex; flex-direction: column; gap: 10px; }
.observe-copy h2 { margin-top: 2px; }
.observe-copy > p:not(.eyebrow):not(.small) { color: var(--muted); }
.observe-paste { display: flex; flex-direction: column; gap: 10px; }
.observe-paste label { font-weight: 700; font-size: 14.5px; }
.observe-paste textarea { width: 100%; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 14px/1.45 ui-monospace, Consolas, monospace; resize: vertical; }
.observe-paste textarea:focus { border-color: var(--ink); outline: none; }
.obs-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.o-prompt { max-height: 320px; overflow: auto; white-space: pre-wrap; margin: 4px 0 0; padding: 14px; border-radius: 14px; background: var(--sunk); font: 12.5px/1.5 ui-monospace, Consolas, monospace; color: var(--muted); }
.o-compare { border-radius: 16px; background: var(--sunk); padding: 14px 16px; }
.o-compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.o-compare th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 4px 6px; }
.o-compare td { padding: 6px; border-top: 1px solid var(--line); }
.o-compare td:not(:first-child), .o-compare th:not(:first-child) { text-align: right; }
.o-up { color: var(--teal); font-weight: 800; } .o-down { color: var(--amber); font-weight: 800; }
.o-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .observe { grid-template-columns: minmax(0, 1fr); padding: 22px; } }

/* letter of recommendation + learning plan */
.letter { grid-column: 1 / -1; padding: 26px 30px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.letter-body { font: 17px/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif; white-space: pre-wrap; max-width: 68ch; }
.plan-head { margin: 8px 0 14px; }
.plan-head h2 { margin-top: 6px; }
.ai-advice { margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; background: var(--teal-soft); color: var(--ink); font-size: 15.5px; }
.ai-advice b { color: var(--teal); }
.lessons { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lessons li { padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line); }
.lessons b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.lessons span { color: var(--muted); font-size: 14.5px; }
.lessons-h { font: 700 13px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--amber); margin: 18px 0 0; }
