/* The assess site: the quiz, the results and the plan page. This file stands alone.
   Mockups: design/2026-11-14-mockups/Assessment.dc.html and Plan.dc.html. */
:root { --page:#F6F5F1; --card:#fff; --ink:#14233B; --muted:#45526A; --muted2:#55627A; --accent:#2B5C9E; --accent-press:#1E4474; --line:#DEDBD2; --line2:#C9C5BA; --field:#B9B4A7; --track:#E7E4DC; --red:#9A2B1E; --mono:'DM Mono',ui-monospace,monospace; }
* { box-sizing:border-box; }
body { margin:0; background:var(--page); color:var(--ink); font-family:'DM Sans',system-ui,sans-serif; font-size:18px; line-height:1.55; -webkit-font-smoothing:antialiased; display:flex; flex-direction:column; min-height:100vh; }
h1,h2,p { margin:0; }
h1,h2 { text-wrap:balance; }
a { color:var(--accent); }
a:hover { color:var(--accent-press); }
[hidden] { display:none!important; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

header.site { border-bottom:1px solid var(--line); }
header.site .in { max-width:1120px; margin:0 auto; padding:18px 32px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); font-weight:700; font-size:20px; }
.brand:hover { color:var(--ink); }
.mark { width:34px; height:24px; display:block; }
header.site nav { display:flex; flex-wrap:wrap; align-items:center; gap:4px 28px; font-size:16px; font-weight:500; }
header.site nav a { color:var(--ink); text-decoration:none; padding:12px 0; }
header.site nav a:hover { text-decoration:underline; text-underline-offset:6px; }
header.site nav a.on { text-decoration:underline; text-underline-offset:6px; }

main { flex:1; width:100%; margin:0 auto; }
main.narrow { max-width:760px; padding:72px 32px 96px; }
main.plan { max-width:820px; padding:64px 32px 96px; display:flex; flex-direction:column; gap:40px; }
footer.site { border-top:1px solid var(--line); }
footer.site .in { max-width:1120px; margin:0 auto; padding:24px 32px; display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; font-size:15px; color:var(--muted2); }
footer.site .links { display:flex; gap:20px; }
footer.site a { color:var(--muted2); }

.stack { display:flex; flex-direction:column; gap:24px; }
.stack.tight { gap:12px; }
.stack.small-gap { gap:14px; }
.stack.wide-gap { gap:28px; }
.row { display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
.row.tight { gap:8px 20px; }
.split { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.eyebrow { font-family:var(--mono); font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); }
h1.big { font-size:clamp(34px,5vw,52px); line-height:1.08; font-weight:700; letter-spacing:-.02em; }
h1.mid { font-size:clamp(30px,4.4vw,44px); line-height:1.1; font-weight:700; }
.lead { font-size:20px; color:var(--muted); }
.muted { color:var(--muted); font-size:17px; }
.muted.body { font-size:inherit; }
.muted strong { color:var(--ink); }
.note { font-size:15px; color:var(--muted2); }
.intro .note { font-size:16px; }
.error { color:var(--red); font-size:15px; font-weight:500; }
.flash { margin:0 0 28px; padding:14px 18px; border-radius:10px; background:var(--card); border:1px solid var(--line); font-size:16px; }
.flash.alert { border-color:var(--red); color:var(--red); }

.btn { display:inline-flex; align-items:center; justify-content:center; min-height:50px; padding:12px 24px; border-radius:8px; border:1px solid transparent; font:inherit; font-weight:600; text-decoration:none; cursor:pointer; }
.btn-lg { min-height:52px; padding:12px 28px; }
.btn-primary { background:var(--accent); color:#fff; }
.btn-primary:hover { background:var(--accent-press); color:#fff; }
.btn-ghost { background:var(--card); color:var(--ink); border-color:var(--line2); }
.btn-ghost:hover { border-color:var(--muted2); color:var(--ink); }
.link { min-height:44px; padding:0 4px; background:transparent; border:0; font:inherit; font-size:16px; color:var(--muted); text-decoration:underline; cursor:pointer; }
.link.blue { color:var(--accent); }
form.button_to { display:inline-flex; }

/* The quiz. With JavaScript the form has the class "stepped" and shows one question at a time. */
.quiz { display:flex; flex-direction:column; gap:56px; }
.progress-line { display:flex; justify-content:space-between; gap:16px; font-family:var(--mono); font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted2); }
.track { height:8px; background:var(--track); border-radius:4px; }
.track span { display:block; height:100%; background:var(--accent); border-radius:4px; }
.track.thin { height:6px; }
.question { font-size:clamp(26px,3.6vw,36px); line-height:1.2; font-weight:700; }
.question:focus { outline:0; }
.options { display:flex; flex-direction:column; gap:12px; }
.option { position:relative; display:block; background:var(--card); border:1px solid var(--line2); border-radius:10px; font-size:17px; cursor:pointer; }
.option span { display:flex; align-items:center; min-height:56px; padding:12px 20px; }
.option input { position:absolute; opacity:0; width:1px; height:1px; }
.option:hover { border-color:var(--muted2); }
.option:has(input:checked) { border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); }
.option:has(input:focus-visible) { outline:2px solid var(--accent); outline-offset:2px; }
.step-nav { display:flex; justify-content:space-between; }
.quiz:not(.stepped) .step-nav { display:none; }

.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:28px; }
.card.stack { gap:20px; }
.card.stack.small-gap { gap:12px; }
.card-title { font-size:22px; font-weight:700; line-height:1.2; }
.card.dark { background:var(--ink); border-color:var(--ink); color:#fff; display:flex; flex-direction:column; gap:8px; }
.card.dark .eyebrow { color:#A9C4E6; }
.card.dark .title { font-size:24px; font-weight:700; line-height:1.2; }
main.plan .card.dark .title { font-size:26px; }
.card.dark .text { color:#C8D3E3; }
.score { display:flex; flex-direction:column; gap:6px; }
.score .top { display:flex; justify-content:space-between; gap:12px; }
.score .name { font-weight:600; }
.grade { font-family:var(--mono); font-weight:500; }
.split .grade { font-size:15px; text-transform:uppercase; }

label { font-size:15px; font-weight:600; }
label .optional { font-weight:400; color:var(--muted2); }
input[type=email],textarea { font:inherit; font-size:16px; padding:0 14px; border:1px solid var(--field); border-radius:8px; background:#fff; color:var(--ink); }
input[type=email] { flex:1 1 260px; height:50px; min-width:0; }
textarea { width:100%; padding:12px 14px; resize:vertical; }
input[aria-invalid=true] { border-color:var(--red); }

/* The plan page. */
main.plan .card.stack { gap:16px; }
.chips { display:flex; flex-wrap:wrap; gap:12px; }
.chip { flex:1 1 150px; background:var(--page); border-radius:10px; padding:10px 12px 10px 16px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.grade-ring.small { width:36px; height:36px; border-width:2px; box-shadow:0 0 0 3px rgba(43,92,158,.14); font-size:17px; }
.overall { display:flex; align-items:center; gap:12px; }
.overall .label { font-family:var(--mono); font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted2); }
h2.area { font-size:28px; line-height:1.2; }
/* An area's heading, with its grade in a ringed circle at the right end of the row. */
.area-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.grade-ring { flex:none; display:flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:50%; background:var(--card); border:3px solid var(--accent); box-shadow:0 0 0 4px rgba(43,92,158,.14); font-size:24px; font-weight:700; line-height:1; color:var(--ink); }
.todos { margin:0; padding-left:22px; font-size:17px; display:flex; flex-direction:column; gap:8px; }
.next-steps { margin:0; padding:0; list-style:none; counter-reset:step; display:flex; flex-direction:column; gap:16px; }
.next-steps li { counter-increment:step; position:relative; padding-left:48px; }
.next-steps li::before { content:counter(step); position:absolute; left:0; top:0; width:32px; height:32px; border-radius:50%; background:var(--accent); color:#fff; font-weight:700; font-size:16px; display:flex; align-items:center; justify-content:center; }
.next-steps .title { font-weight:600; }
section[id] { scroll-margin-top:24px; }
.week { display:flex; flex-direction:column; gap:4px; }
.week .label { font-family:var(--mono); font-size:13px; text-transform:uppercase; color:var(--accent); }
.week .title { font-weight:600; }

@media (max-width:600px) {
  body { font-size:17px; }
  header.site .in { padding:14px 20px; }
  header.site nav { gap:0 20px; font-size:15px; }
  main.narrow { padding:40px 20px 64px; }
  main.plan { padding:40px 20px 64px; gap:32px; }
  .card { padding:22px 20px; }
  footer.site .in { padding:20px; }
}
@media (prefers-reduced-motion:reduce) {
  * { transition:none!important; animation:none!important; }
}
