/* Shared by every page. Brand colours arrive as CSS variables from brand.js (brand.config.js), with the same
   values here as a fallback so the first paint is already on-brand. */
:root {
  --grad-start: #232E57;
  --grad-end: #4B5A9C;
  --primary: #33437F;
  --primary-hover: #2A3870;
  --accent: #E6B85C;
  --ink: #0E1A33;
  --muted: #3D4A63;
  --page: #F4F7FC;
  --line: #D9E3F2;
  --track: #EBF0F8;
  --selected: #EEF3FB;
  --error: #B42318;
  --head: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--page); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Inter's display optical size (= Inter Display) for headings. */
h1, h2, .head { font-family: var(--head); font-optical-sizing: auto; font-variation-settings: "opsz" 32; }
a { color: var(--primary); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hero: diagonal gradient over the top ~45% of the screen. */
.hero {
  background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-end) 100%);
  min-height: 45vh; min-height: 45svh; color: #fff;
  padding: 18px 16px 120px;
}
.hero-in { max-width: 1120px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo img { display: block; height: 40px; width: auto; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-height: 48px; }
.pill {
  background: var(--accent); color: var(--ink); border-radius: 999px; padding: 7px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; white-space: nowrap;
}
.headline { margin: 40px auto 0; max-width: 640px; text-align: center; font-size: clamp(40px, 11vw, 64px); line-height: 1.02; letter-spacing: -0.035em; }
.headline .l { display: block; font-weight: 300; }
.headline .b { display: block; font-weight: 700; }

/* Quiz card, overlapping the bottom of the gradient. */
main { padding: 0 16px; }
.card {
  position: relative; margin: -96px auto 0; max-width: 600px; background: #fff; border-radius: 28px;
  box-shadow: 0 20px 50px rgba(14, 26, 51, .12); padding: 28px 22px 26px;
}
.lead-text { margin: 0 0 22px; font-size: 20px; line-height: 1.45; color: var(--ink); text-align: center; text-wrap: balance; }
.eyebrow { margin: 0; color: var(--primary); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.back {
  background: none; border: 0; color: var(--primary); font-weight: 600; font-size: 16px; cursor: pointer;
  min-height: 48px; min-width: 48px; padding: 0 0 0 12px; display: inline-flex; align-items: center; gap: 4px;
}
.bar { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; margin: 4px 0 22px; }
.bar > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .35s cubic-bezier(.16, 1, .3, 1); }
.question { margin: 0 0 20px; font-size: clamp(26px, 6.6vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answers.one-col { grid-template-columns: 1fr; }
.answers:not(.one-col) .answer:last-child:nth-child(odd) { grid-column: 1 / -1; }
.answer {
  min-height: 64px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: #fff;
  color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.answer:hover { border-color: #B9C8E3; }
/* 3px selected border without the text moving: 2px border + 1px inset ring. */
.answer[aria-pressed="true"] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--selected); }

.btn {
  width: 100%; min-height: 60px; border: 0; border-radius: 999px; background: var(--primary); color: #fff;
  font-size: clamp(16px, 4.6vw, 19px); font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; line-height: 1.25;
  text-decoration: none; padding: 10px 20px; transition: background .15s;
}
.btn:hover { background: var(--primary-hover); }
.btn[disabled] { opacity: .7; cursor: default; }
.btn .arrow { font-size: 1.1em; line-height: 1; }

/* Contact step */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 16px; }
.field input {
  min-height: 56px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--line); font: inherit; font-size: 18px; color: var(--ink); background: #fff;
}
.field input:focus { outline: none; border-color: var(--primary); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-size: 15px; margin: 0; }
.consent {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--selected);
  border: 2px solid transparent; cursor: pointer; margin: 4px 0 6px; font-size: 15px; line-height: 1.5;
}
.consent.invalid { border-color: var(--error); }
.consent input { width: 24px; height: 24px; margin: 0; flex-shrink: 0; accent-color: var(--primary); cursor: pointer; }
.form-actions { margin-top: 18px; }

/* Ticks row under the card */
.ticks { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin: 24px auto 0; padding: 0; max-width: 600px; }
.ticks li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
.tick { width: 22px; height: 22px; border-radius: 999px; background: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

footer.small { max-width: 600px; margin: 0 auto; padding: 36px 16px 120px; font-size: 13px; line-height: 1.55; color: var(--muted); text-align: center; }
footer.small p { margin: 0 0 8px; }
footer.small a { color: var(--muted); display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; }

/* Cookie choice: a slim bar at the bottom (not a pop-up; the page stays usable behind it). */
.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(14, 26, 51, .08); padding: 12px 16px;
}
.cookiebar-in { max-width: 600px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.cookiebar p { margin: 0; flex: 1 1 260px; }
.cookiebar .choices { display: flex; gap: 8px; }
.cookiebar button { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--primary); font-weight: 600; cursor: pointer; background: #fff; color: var(--primary); }
.cookiebar button.yes { background: var(--primary); color: #fff; }

.preview-badge { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 30; background: var(--error); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 0 0 8px 8px; }

/* Thank-you */
.done { text-align: center; }
.done-icon { width: 72px; height: 72px; border-radius: 999px; background: var(--primary); margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.done h1 { margin: 0 0 12px; font-size: clamp(30px, 8vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.done h1 .l { font-weight: 300; } .done h1 .b { font-weight: 700; }
.done p { margin: 0 0 22px; font-size: 18px; color: var(--muted); }

/* Privacy */
.doc { max-width: 720px; margin: -96px auto 0; background: #fff; border-radius: 28px; box-shadow: 0 20px 50px rgba(14, 26, 51, .12); padding: 32px 22px; position: relative; }
.doc h1 { margin: 0 0 6px; font-size: 34px; letter-spacing: -0.03em; }
.doc h2 { margin: 28px 0 8px; font-size: 21px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ink); font-size: 16px; }
.doc .meta { color: var(--muted); font-size: 14px; }
.hero.short { min-height: 0; padding-bottom: 120px; }

@media (min-width: 768px) {
  .hero { padding: 24px 32px 140px; }
  .headline { margin-top: 56px; }
  .card { padding: 36px 40px 34px; margin-top: -110px; }
  .pill { font-size: 12px; padding: 8px 14px; }
  .doc { padding: 44px 48px; }
}
@media (max-width: 360px) {
  .logo img { height: 34px; }
  .pill { font-size: 10px; padding: 6px 10px; letter-spacing: .5px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
