/* AI Pulse Check. A standalone page: it cannot import the site stylesheet, so
   the values below are copied from the site system by hand. House rules are the
   same here as there: flat surfaces, chamfered plates, tick rules, cut-corner
   buttons, nothing rounded, nothing blurred, nothing that glows.
   quiz.js and results-email.js render into these class names; do not rename. */
:root {
  color-scheme: dark;
  --bg: #0A1628;
  --bg-2: #0C1B30;
  --plate: #102339;
  --line: #1E3A5C;
  --line-soft: #16304d;
  --line-hi: #2B5788;
  --control: #5A7BA3;
  --ink: #EAF1FA;
  --muted: #9DB2C9;
  --muted-2: #B7C7DB;
  --cyan: #36D1E0;
  --cyan-hi: #7FE9F4;
  --cyan-soft: rgba(54, 209, 224, 0.12);
  --cyan-bd: rgba(54, 209, 224, 0.40);
  --wash: #0F2C3E;
  --red: #E5484D;
  --red-hover: #F05257;
  --red-text: #FF8086;
  --ok: #3FE0A0;
  --warn: #F0C674;
  --on-accent: #04121f;
  --focus: #7FE9F4;
  --display: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --page: 1200px;
  --col: 680px;
  --gutter: 24px;
  --cut: 14px;
  --bcut: 10px;
  --travel: cubic-bezier(0.645, 0.045, 0.355, 1);
  --arrive: cubic-bezier(0.16, 1, 0.3, 1);
  --ticks: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* The consent bar is fixed to the bottom edge until a choice is made. Its
   measured height is kept clear, so focus never lands underneath it. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-bottom: calc(var(--mp-consent-h, 0px) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-140%);
}
a.skip:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Page frame: header seam, working column, footer on a tick rule ---- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 2px; }
.topbar-fill { display: block; width: 0; height: 100%; background: var(--cyan); transition: width 280ms var(--travel); }

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.top { flex: none; border-bottom: 1px solid var(--line-soft); }
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  height: 71px;
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { display: block; flex: none; width: auto; height: 40px; }
.brand-name { display: block; }
.bn { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; }
.bs { display: block; margin-top: 4px; font-family: var(--display); font-size: 0.75rem; font-weight: 600; line-height: 1; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.top-back {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted-2);
  font-family: var(--display);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
}
.top-back::before { content: "\2190"; content: "\2190" / ""; font-family: var(--body); font-weight: 400; letter-spacing: 0; color: var(--cyan); transition: transform 180ms var(--travel); }
.top-back::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left center; transition: transform 180ms var(--travel); }
.top-back:hover { color: var(--ink); }
.top-back:hover::before { transform: translateX(-3px); }
.top-back:hover::after { transform: scaleX(1); }

.wrap {
  flex: 1 0 auto;
  width: min(var(--col), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(28px, 6vh, 64px) 0 48px;
}
/* The explainer under the start screen (index.html .about-check): what the check covers, for a
   reader or an engine that has not started it. Gone once quiz.js takes .is-intro off #wrap. */
.about-check { width: min(var(--col), calc(100% - 2 * var(--gutter))); margin: 0 auto 48px; }
.about-check h2 { font-size: clamp(1.35rem, 1vw + 1rem, 1.6rem); margin: 0 0 12px; }
.about-check h2:not(:first-child) { margin-top: 28px; }
.about-check p { margin: 0 0 16px; max-width: 62ch; line-height: 1.55; color: var(--muted-2); }
.wrap:not(.is-intro) ~ .about-check { display: none; }
/* resume-gate.js: a returning visitor goes straight to their saved question, so the static start
   screen stays out of the way until quiz.js renders; and with JavaScript off the static Start
   button would do nothing, so it is not shown (the <noscript> card says what to do instead). */
.pc-resume #panel, .pc-resume .about-check { display: none; }
html:not(.pc-js) #startBtn { display: none; }

.wrap.is-intro {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 32px;
  /* The header is 72px and the footer block, top margin included, is 159px at
     desktop, so the start screen fills exactly one viewport. */
  min-height: calc(100vh - 72px - 159px);
  min-height: calc(100dvh - 72px - 159px);
}

.foot {
  flex: none;
  position: relative;
  margin-top: 40px;
  padding: 34px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.5;
}
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--ticks); }
.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 48px;
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}
.foot p { margin: 0 0 6px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted-2); text-underline-offset: 0.2em; }
.foot a:hover { color: var(--cyan); }
.foot .legal { grid-column: 2; grid-row: 1 / span 2; justify-self: end; max-width: 54ch; }

/* ---- Progress: one segment per question (the page is seven questions long) ---- */
.progress { margin: 0 0 20px; }
.progress-label {
  display: block;
  margin-bottom: 9px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D7E4F3;
}
.track { position: relative; height: 6px; background: var(--line); overflow: hidden; }
.track > span { display: block; width: 0; height: 100%; background: var(--cyan); transition: width 280ms var(--travel); }
.track::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Seven segments with six 3px gaps between them. The period is the same one
     quiz.js uses for the fill, so the fill always stops on a segment edge. */
  background: repeating-linear-gradient(90deg, transparent 0 calc((100% + 3px) / 7 - 3px), var(--bg) calc((100% + 3px) / 7 - 3px) calc((100% + 3px) / 7));
}

/* ---- Type ---- */
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
h1, h2, h3, legend {
  margin: 0 0 0.5em;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 2.6vw + 1.25rem, 3.2rem); line-height: 1.07; }
h2 { font-size: clamp(1.7rem, 1.6vw + 1.15rem, 2.2rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1em; }
.lede { margin: 0 0 20px; max-width: 58ch; font-size: 1.14rem; line-height: 1.55; color: var(--muted-2); }
.hint, .muted { margin: 0 0 16px; color: var(--muted-2); font-size: 16px; }
.fine, .legal { color: #D7E4F3; font-size: 14px; line-height: 1.5; }
a { color: var(--cyan); text-underline-offset: 0.2em; }
a:hover { color: var(--cyan-hi); }

/* ---- Start screen ---- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  width: 100%;
}
.intro-copy .fine { max-width: 58ch; margin: 0; }
/* The first line of the start screen is the page badge, with the same tick the
   site's page heads carry. */
.intro-copy > .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 0.84rem; letter-spacing: 0.2em; }
.intro-copy > .eyebrow::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--cyan); clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 100%, 0 100%); }
.points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 26px; color: var(--ink); }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border: 1px solid var(--cyan);
  background: linear-gradient(135deg, transparent 50%, var(--cyan) 50%);
}

/* Plates: a one-pixel line with two corners cut and the top-right one lit. */
.card, .intro-card { position: relative; isolation: isolate; padding: clamp(22px, 2.4vw, 32px); }
.card::before, .intro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(225deg, var(--cyan) 0 18px, var(--line) 0);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.card::after, .intro-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--plate);
  clip-path: polygon(0 0, calc(100% - var(--cut) + 0.6px) 0, 100% calc(var(--cut) - 0.6px), 100% 100%, calc(var(--cut) - 0.6px) 100%, 0 calc(100% - var(--cut) + 0.6px));
}
.card > :last-child, .intro-card > :last-child { margin-bottom: 0; }
.card-note::before { background: linear-gradient(225deg, var(--cyan) 0 18px, var(--cyan-bd) 0); }
.card-note::after { background: var(--wash); }
.card-note .lede { color: var(--ink); }

/* The three tiers as one scale: a name over each band, a tick rule under it. */
.tier-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 6px 0 8px; }
.tier-chip { display: block; font-family: var(--display); font-size: 1.06rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.14em; text-transform: uppercase; }
.tier-chip-early { color: var(--warn); }
.tier-chip-building { color: var(--cyan); }
.tier-chip-ready { color: var(--ok); }
.tier-scale { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; height: 8px; margin: 0 0 26px; }
.tier-scale::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% + 5px); height: 6px; background: var(--ticks); }
.tier-scale span { display: block; }
.tier-scale span:nth-child(1) { background: var(--warn); }
.tier-scale span:nth-child(2) { background: var(--cyan); }
.tier-scale span:nth-child(3) { background: var(--ok); }
.intro-card .muted { margin-bottom: 22px; }

.rise { animation: rise 420ms var(--arrive) both; }
@keyframes rise {
  from { transform: translateY(12px); }
}

/* ---- Quiet controls ---- */
.back, .btn-quiet {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: -12px 0 10px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted-2);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.back::before { content: "\2190"; content: "\2190" / ""; font-family: var(--body); font-weight: 400; letter-spacing: 0; color: var(--cyan); transition: transform 180ms var(--travel); }
.back:hover, .btn-quiet:hover { color: var(--ink); }
.back:hover::before { transform: translateX(-3px); }
.back:disabled { opacity: 0.45; cursor: default; }
.skip-q {
  position: static;
  transform: none;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 12px auto 0;
  min-height: 44px;
  padding: 10px 16px;
  background: transparent;
  border: 0;
  color: var(--muted-2);
  font-family: var(--body);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.skip-q:hover { color: var(--ink); }
.restart {
  display: block;
  margin: 10px auto 0;
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  color: var(--muted-2);
  font-family: var(--body);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.restart:hover { color: var(--ink); }

/* ---- A question ---- */
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
legend { display: block; width: 100%; max-width: 100%; padding: 0; float: none; white-space: normal; margin-bottom: 8px; font-size: clamp(1.55rem, 1.4vw + 1.15rem, 2.05rem); line-height: 1.12; }

.choices { display: grid; gap: 8px; margin: 18px 0 4px; }
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 180ms linear, border-color 180ms linear;
  -webkit-tap-highlight-color: transparent;
  scroll-margin: 10px 0;
}
.choice input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 14px;
  height: 14px;
  margin: 0 4px;
  background: var(--bg);
  border: 1px solid var(--control);
  border-radius: 0;
  transform: rotate(45deg);
  cursor: pointer;
}
.choice input:checked { background: var(--cyan); border-color: var(--cyan); box-shadow: inset 0 0 0 3px var(--bg); }
@media (hover: hover) {
  .choice:hover:not(.is-selected):not(:has(input:checked)) { background: rgba(234, 241, 250, 0.05); }
}
.choice.is-selected, .choice:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); box-shadow: inset 3px 0 0 var(--cyan); }

.actions { display: grid; gap: 8px; margin-top: 8px; }
.card .btn-primary,
.intro-card .btn-primary { width: 100%; }

/* ---- Buttons: the site's cut-corner shape, drawn in two layers ---- */
.btn {
  --btn-bg: var(--plate);
  --btn-line: var(--cyan-bd);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 180ms linear, transform 90ms linear;
}
.btn::before, .btn::after { content: ""; position: absolute; z-index: -1; }
.btn::before {
  inset: 0;
  background: var(--btn-line);
  clip-path: polygon(0 0, calc(100% - var(--bcut)) 0, 100% var(--bcut), 100% 100%, var(--bcut) 100%, 0 calc(100% - var(--bcut)));
}
.btn::after {
  inset: 1px;
  background: var(--btn-bg);
  clip-path: polygon(0 0, calc(100% - var(--bcut) + 0.6px) 0, 100% calc(var(--bcut) - 0.6px), 100% 100%, calc(var(--bcut) - 0.6px) 100%, 0 calc(100% - var(--bcut) + 0.6px));
  transition: background-color 180ms linear;
}
.btn:hover { --btn-bg: var(--wash); --btn-line: var(--cyan); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: var(--red); --btn-line: var(--red); color: var(--on-accent); font-weight: 700; }
.btn-primary:hover { --btn-bg: var(--red-hover); --btn-line: var(--red-hover); color: var(--on-accent); }
.btn-secondary { --btn-line: var(--cyan-bd); }
/* Switched off: redrawn, not faded, so the label keeps its contrast. */
.btn[disabled]:not([aria-busy="true"]),
.btn[aria-disabled="true"]:not([aria-busy="true"]) {
  --btn-bg: var(--bg);
  --btn-line: repeating-linear-gradient(135deg, var(--control) 0 4px, transparent 4px 8px);
  color: var(--muted-2);
  transform: none;
  cursor: not-allowed;
}
/* Working: the button keeps its full look and a short tick runs along its
   lower edge. results-email.js holds the width while the label reads Sending. */
.btn[aria-busy="true"] { opacity: 1; transform: none; cursor: progress; }
.btn[aria-busy="true"]::after { background: linear-gradient(currentColor, currentColor) 14px calc(100% - 6px) / 18px 2px no-repeat var(--btn-bg); }
@media (prefers-reduced-motion: no-preference) {
  .btn[aria-busy="true"]::after { animation: btn-busy 900ms var(--travel) infinite alternate; }
}
@keyframes btn-busy {
  to { background-position: calc(100% - 14px) calc(100% - 6px); }
}
.btn-quiet { letter-spacing: 0.14em; }

/* ---- The result: tier, score, a ruled meter, three priorities ---- */
.tier { margin: 0 0 6px; font-size: clamp(2.5rem, 4.4vw + 1rem, 3.9rem); line-height: 0.98; letter-spacing: 0.02em; text-transform: uppercase; }
.tier-early { color: var(--warn); }
.tier-building { color: var(--cyan); }
.tier-ready { color: var(--ok); }
.score {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #EAF1FA;
}
.score > span:first-child { font-size: 3.5rem; font-weight: 700; letter-spacing: 0; }
.score-of { color: var(--muted-2); }
.meter { position: relative; height: 8px; margin: 0 0 34px; background: var(--line); }
.meter > span { display: block; height: 100%; background: var(--cyan); }
.meter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  height: 6px;
  border-right: 1px solid var(--control);
  background: repeating-linear-gradient(90deg, var(--control) 0 1px, transparent 1px 10%);
}
.tier-early ~ .meter > span { background: var(--warn); }
.tier-ready ~ .meter > span { background: var(--ok); }
.for { margin: 22px 0 0; padding-bottom: 14px; color: var(--ink); font-weight: 600; }

.priorities { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--line); }
.priorities li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.priorities .n { font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1.05; letter-spacing: 0.04em; color: var(--cyan); }
.priorities .n::before { content: "0"; }
.priorities h3 { margin: 0 0 4px; }
.priorities p { margin: 0; color: var(--muted-2); font-size: 16px; }

/* ---- Forms ---- */
.contact-head { margin-bottom: 22px; }
.contact-head .lede { margin-bottom: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 22px; }
.field label, .score-email label {
  display: block;
  margin: 0 0 7px;
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.field input, .score-email input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--control);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.4;
}
.field input:hover, .score-email input:hover { border-color: var(--cyan); }
.field input:focus, .score-email input:focus { border-color: var(--cyan); }
.opt-tag { color: var(--muted); font-weight: 500; letter-spacing: 0.06em; text-transform: none; }
.score-email { margin: 0 0 24px; padding: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.score-email .fine { margin: 10px 0 14px; }
.score-email .field-msg { margin-bottom: 0; }
.field-msg { margin: 7px 0 0; color: var(--red-text); font-size: 0.9rem; line-height: 1.45; }
/* Not an error: an address sent earlier went through while the field holds another. */
.field-msg.is-sent { color: var(--muted-2); }
.field input[aria-invalid="true"], .score-email input[aria-invalid="true"] { border-color: var(--red-text); }
#resultsForm > .fine, .card > .fine { margin: 12px 0 0; }
/* The Next button and its key hint, shown once an arrow key has chosen. */
#stepForm > .btn, #stepForm > .fine { margin: 12px 0 0; }
/* Whatever checked an option, the step offers a button that stores it. The
   script shows Next itself; this covers a radio checked behind its back.
   Not while the step is already on its way to the next one. */
#stepForm:not(.is-leaving):has(input[name="answer"]:checked) > #nextBtn[hidden] { display: inline-flex !important; }

.stack { display: grid; gap: 12px; margin-top: 22px; }
.stack .btn { width: 100%; }

.keep-error { margin: 16px 0 0; padding: 12px 14px; background: rgba(229, 72, 77, 0.08); border: 1px solid var(--red); box-shadow: inset 3px 0 0 var(--red); color: var(--ink); }
.keep-error p { margin: 0; }
/* The mail link is a 44px target; the negative margin stops it pushing the lines of the sentence apart. */
.keep-error a.msg-link { margin: -12px 0; }
.msg-link { display: inline-block; min-height: 44px; padding: 10px 0; }

.done-mark { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 0 18px; border: 1px solid var(--ok); color: var(--ok); }
.done-mark svg { display: block; width: 24px; height: 24px; }

/* ---- Focus ---- */
:focus:not(:focus-visible) { outline: none; }
#stepTitle:focus,
#stepTitle:focus-visible,
#contactTitle:focus,
#contactTitle:focus-visible {
  outline: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.choice:has(:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.choice input:focus-visible { outline: none; }

/* Short phones: the start control is the first thing in the intro, under the
   header, so the consent bar cannot cover it on first paint. */
.book-ask { margin: 0 0 20px; padding: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.book-ask h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.3; }
.book-ask .btn-primary { width: 100%; }
.quiz-calendar { margin-top: 12px; }
@media (max-height: 640px) {
  .intro-card .tier-row,
  .intro-card .tier-scale,
  .intro-card .muted { display: none; }
  .wrap.is-intro { padding-top: 8px; }
}
@media (max-height: 740px) {
  .intro { display: flex; flex-direction: column; gap: 16px; }
  .intro-card { order: -1; display: flex; flex-direction: column; }
  #startBtn { order: -1; width: 100%; margin: 0 0 12px; }
}

@media (max-width: 800px) {
  .intro { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .intro-card { padding: 16px; }
  .intro-card .muted { margin-bottom: 12px; }
  .wrap { padding: 24px 0 40px; }
  .wrap.is-intro { justify-content: flex-start; padding-block: 28px 16px; }
  .choice, .btn-primary, .btn-secondary, .actions .btn-quiet { width: 100%; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot .legal { grid-column: auto; grid-row: auto; justify-self: start; margin-top: 8px; }
  .score > span:first-child { font-size: 3rem; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
}

@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .choice { padding: 12px; gap: 10px; min-height: 56px; }
  .bn { font-size: 1.12rem; }
  /* The way back stays on one line; the brand gives up a little tracking to make room. */
  .top-in { gap: 10px; }
  .brand { gap: 8px; }
  .bs { letter-spacing: 0.2em; }
  .top-back { font-size: 0.86rem; letter-spacing: 0.06em; white-space: nowrap; }
  /* Three tier names share one row: set tighter so Building and Ready keep a gap. */
  .tier-chip { font-size: 0.9rem; letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
