/* Consumer landing pages. One system, a brand colour per page (--brand set on <html>). */
:root {
  --paper: #ffffff;
  --ink: #17202b;
  --muted: #56616f;
  --line: #d6dde5;
  --wash: color-mix(in srgb, var(--brand) 7%, #ffffff);
  --brand-ink: color-mix(in srgb, var(--brand) 82%, #000000);
  --ok: #157f3d;
  --err: #b42318;
  --r: 12px;
  --measure: 34rem;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 11%, #fff) 0, #fff 460px) no-repeat, var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.55 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--brand-ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, #ffffff); outline-offset: 2px; }
.wrap { width: min(100% - 32px, var(--measure)); margin-inline: auto; }

/* Top bar: a thin band of brand colour that doubles as the progress bar */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.wordmark { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.wordmark .mark { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; font-size: .95rem; }
.top .safe { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.progress { height: 5px; background: var(--wash); }
.progress span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .35s ease; }

/* Industry badge above the quiz */
.chiprow { padding-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem; box-shadow: 0 8px 18px -10px var(--brand); }
.top { background: rgba(255,255,255,.75); backdrop-filter: blur(8px); }

/* The quiz is the hero */
.quiz { padding: 16px 0 40px; min-height: 62vh; }
.quiz h1, .question, .how h2, .faq h2, .done h1 { font-family: 'Bricolage Grotesque', 'Atkinson Hyperlegible', sans-serif; }
.wordmark { white-space: nowrap; }
.quiz h1 { font-size: clamp(1.9rem, 6.4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 12px; }
.promise { color: var(--muted); margin: 0 0 26px; max-width: 32rem; }
.step-count { color: var(--brand-ink); font-weight: 700; margin: 0 0 6px; font-size: .95rem; }
.question { font-size: clamp(1.45rem, 5vw, 1.85rem); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 20px; font-weight: 700; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  padding: 16px 18px; min-height: 58px; text-align: left; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: var(--r);
}
.choice small { font-weight: 400; color: var(--muted); font-size: .95rem; }
.choice:hover { border-color: var(--brand); }
.choice[aria-pressed="true"], .choice:active { border-color: var(--brand); background: var(--wash); }
.choices.two { grid-template-columns: 1fr 1fr; }

.back { margin-top: 18px; background: none; border: 0; padding: 8px 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; }
.field input {
  font: inherit; font-size: 1.125rem; padding: 14px 14px; border: 2px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); width: 100%;
}
.field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field .help { color: var(--muted); font-size: .9rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: var(--err); font-weight: 700; margin: 4px 0 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; margin: 8px 0 18px; padding: 14px; background: #f6f8fa; border-radius: var(--r); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }
.consent p { margin: 0; font-size: .84rem; line-height: 1.5; color: #3b4652; }

.go {
  width: 100%; min-height: 60px; padding: 16px 20px; border: 0; border-radius: var(--r); cursor: pointer;
  font: inherit; font-size: 1.15rem; font-weight: 700; color: #fff; background: var(--brand);
}
.go:hover { background: var(--brand-ink); }
.go[disabled] { opacity: .65; cursor: progress; }
.fine { color: var(--muted); font-size: .85rem; margin-top: 10px; }

.done { text-align: left; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 12%, #fff); display: grid; place-items: center; margin-bottom: 16px; }
.done .tick svg { width: 30px; height: 30px; }
.note { padding: 14px 16px; border-left: 4px solid var(--brand); background: var(--wash); border-radius: 0 var(--r) var(--r) 0; margin: 18px 0; }

/* Click to call */
.talk { margin-top: 22px; padding: 16px; border-radius: var(--r); background: #fff; border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, #fff); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.talk p { margin: 0; font-weight: 700; }
.call { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; text-decoration: none; font-weight: 700; border-radius: 999px; min-height: 48px; padding: 8px 18px; background: var(--brand); color: #fff; max-width: 100%; }
.call span { white-space: nowrap; }
@media (max-width: 560px) { .talk { flex-direction: column; align-items: stretch; } .talk .call { width: 100%; border-radius: 16px; } }
.call:hover { background: var(--brand-ink); }
.call .num { font-weight: 400; opacity: .9; white-space: nowrap; }
.talk-top { margin: -8px 0 28px; }
.talk-inline { border-style: solid; border-color: var(--line); background: #f8fafc; }
.call-inline { background: #fff; color: var(--brand-ink); border: 2px solid var(--brand); }
.call-inline:hover { background: var(--wash); color: var(--brand-ink); }

/* Below the quiz */
.how, .faq { padding: 36px 0; border-top: 1px solid var(--line); }
.how h2, .faq h2 { font-size: 1.35rem; margin: 0 0 16px; }
.how ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
.how li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; counter-increment: s; }
.how li::before { content: counter(s); width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand-ink); font-weight: 700; display: grid; place-items: center; }
.how li b { display: block; }
.how li span { color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand-ink); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; color: var(--muted); }

footer { background: #f4f6f8; padding: 28px 0 104px; color: #4a5562; font-size: .82rem; line-height: 1.55; }
footer p { margin: 0 0 10px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0; font-size: .9rem; }
footer .disclaimer { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (min-width: 720px) { .chiprow { padding-top: 40px; } .quiz { padding-top: 20px; } }

/* Legal pages share this sheet */
.legal { padding: 32px 0 56px; }
.legal h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 8px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal p, .legal li { color: #2c3642; }
