/* AQW brand tokens: AQW Brand Guidelines v1.0, section 13 */
:root {
  --aqw-yellow: #FED101;        /* Signal Yellow: surfaces, buttons, highlight bars. Never text on light. */
  --aqw-yellow-hover: #E5BC00;
  --aqw-charcoal: #202020;      /* primary text, logo */
  --aqw-charcoal-hover: #3A3A3A;
  --aqw-graphite: #4A4A48;      /* body text on white */
  --aqw-stone: #6E6D68;         /* captions, labels, meta */
  --aqw-mist: #E6E4DC;          /* rules and borders */
  --aqw-paper: #F7F6F1;         /* panels and soft backgrounds */
  --aqw-tint: #FFF3B3;          /* highlight fills */
  --aqw-white: #FFFFFF;
  --aqw-green: #2E7D4F;         /* status only */
  --aqw-red: #B83A12;           /* status only */
  --aqw-radius: 2px;
  --aqw-font-display: 'Inter Display', 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --aqw-font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --border-strong: #8F8D86;     /* input/card outlines: 3:1 against white for non-text contrast */
  --focus: 0 0 0 2px var(--aqw-white), 0 0 0 4px var(--aqw-charcoal);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--aqw-font-body);
  font-optical-sizing: auto;
  color: var(--aqw-charcoal);
  background: var(--aqw-paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--aqw-radius); }

/* ---------- progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 6px; background: var(--aqw-mist); z-index: 10; }
.progress__bar {
  height: 100%; width: 0; background: var(--aqw-yellow);
  box-shadow: inset 0 -1px 0 rgba(32, 32, 32, .12);
  transition: width .45s cubic-bezier(.2, .8, .2, 1);
}

/* ---------- header / footer ---------- */
.site-header {
  display: flex; align-items: center; min-height: 76px; padding: 14px 32px 0;
  border-bottom: 1px solid var(--aqw-mist); background: var(--aqw-white);
}
/* Logo mark: master artwork, used as supplied (guidelines s.03). Min 16px on screen. */
.brand { display: inline-flex; align-items: center; text-decoration: none; border-radius: var(--aqw-radius); }
.brand__mark { display: block; width: 44px; height: 44px; }

.site-footer {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 28px 16px 32px; font-size: 13px; color: var(--aqw-stone);
}
.site-footer a, .linklike { color: var(--aqw-stone); text-decoration: underline; text-underline-offset: 2px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.linklike:hover, .site-footer a:hover { color: var(--aqw-charcoal); }

/* ---------- stage ---------- */
.stage {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 16px 24px;
  text-align: center;
}
.screen { animation: enter .38s cubic-bezier(.2, .8, .2, 1) both; }
.screen.no-anim { animation: none; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  .progress__bar { transition: none; }
}

/* Section tag + tracked label (guidelines s.06): yellow tag carries the number, label in Stone */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--aqw-stone);
}
.eyebrow__tag {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px;
  background: var(--aqw-yellow); color: var(--aqw-charcoal);
  font-size: 14px; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.headline {
  margin: 0 auto; max-width: 960px;
  font-family: var(--aqw-font-display);
  font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em;
  text-wrap: balance;
}
.headline:focus, .headline:focus-visible { outline: none; box-shadow: none; }
/* Highlight bar: yellow behind the lower half of the key words. One per headline. */
.hl {
  color: inherit; background: linear-gradient(transparent 58%, var(--aqw-yellow) 58%, var(--aqw-yellow) 92%, transparent 92%);
  padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.sub { margin: 18px auto 0; font-size: 19px; line-height: 1.5; color: var(--aqw-graphite); max-width: 640px; }

/* ---------- answer grids ---------- */
.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  max-width: 1000px; margin: 44px auto 0; text-align: left;
}
@media (max-width: 720px) {
  .stage { padding-top: 36px; }
  .grid { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
  .sub { font-size: 17px; }
  .site-header { padding: 10px 16px 0; min-height: 64px; }
  .brand__mark { width: 40px; height: 40px; }
}

/* multi-select check cards (start screen) */
.check {
  position: relative; display: flex; align-items: center; gap: 16px;
  min-height: 76px; padding: 14px 20px;
  background: var(--aqw-white); border: 1.5px solid var(--aqw-mist); border-radius: var(--aqw-radius);
  cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s;
}
.check:hover { border-color: var(--aqw-charcoal); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check:has(input:focus-visible) { box-shadow: var(--focus); }
.check__icon { flex: none; width: 28px; height: 28px; color: var(--aqw-charcoal); }
.check__icon svg { width: 28px; height: 28px; display: block; }
.check__key {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border: 1.5px solid var(--aqw-charcoal); border-radius: var(--aqw-radius);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) { .check__key { display: none; } }
.check__label { flex: 1; font-size: 19px; font-weight: 500; color: var(--aqw-charcoal); }
.check__box {
  flex: none; width: 26px; height: 26px; border-radius: var(--aqw-radius); border: 1.5px solid var(--border-strong);
  background: var(--aqw-white); display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.check__box svg { width: 16px; height: 16px; color: var(--aqw-charcoal); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.check.is-checked { border-color: var(--aqw-charcoal); background: var(--aqw-tint); }
.check.is-checked .check__box { background: var(--aqw-yellow); border-color: var(--aqw-charcoal); }
.check.is-checked .check__box svg { opacity: 1; transform: none; }

/* single-select answer buttons: primary component, yellow with charcoal label */
.answer {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 76px; padding: 16px 24px;
  background: var(--aqw-yellow); color: var(--aqw-charcoal); border: 0; border-radius: var(--aqw-radius);
  font: inherit; font-size: 20px; font-weight: 600; text-align: left; letter-spacing: -.005em;
  cursor: pointer; transition: background .15s;
}
.answer:hover { background: var(--aqw-yellow-hover); }
.answer:active { background: var(--aqw-yellow-hover); }
.answer__key {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border: 1.5px solid var(--aqw-charcoal); border-radius: var(--aqw-radius);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) { .answer { font-size: 18px; min-height: 64px; } .answer__key { display: none; } }

/* ---------- buttons (guidelines s.12) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 40px;
  background: var(--aqw-yellow); color: var(--aqw-charcoal); border: 0; border-radius: var(--aqw-radius);
  font: inherit; font-size: 20px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.btn:hover, .btn:active { background: var(--aqw-yellow-hover); }
.btn[disabled] { opacity: .75; cursor: progress; }
.btn--small { min-height: 44px; padding: 0 22px; font-size: 16px; }
.btn--ghost {
  background: var(--aqw-white); color: var(--aqw-charcoal); border: 1.5px solid var(--aqw-charcoal);
  min-height: 44px; padding: 0 22px; font-size: 16px;
}
.btn--ghost:hover { background: var(--aqw-paper); }
.actions { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

.back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; margin-top: 28px;
  background: none; border: 0; color: var(--aqw-stone); font: inherit; font-size: 16px; font-weight: 500; cursor: pointer;
  border-radius: var(--aqw-radius);
}
.back:hover { color: var(--aqw-charcoal); }
.back svg { width: 18px; height: 18px; }

.error { color: var(--aqw-red); font-size: 15px; font-weight: 500; margin: 0; }
.error:empty { display: none; }
.banner-error {
  max-width: 600px; margin: 0 auto 16px; padding: 12px 16px; border-radius: var(--aqw-radius);
  background: #FBEDE7; border-left: 3px solid var(--aqw-red); color: var(--aqw-red); font-weight: 500; font-size: 15px; text-align: left;
}

/* ---------- lead form ---------- */
.form { max-width: 600px; margin: 44px auto 0; text-align: left; }
.field { margin-bottom: 14px; }
.field__wrap { position: relative; }
.field__icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; color: var(--aqw-stone); pointer-events: none;
}
.field__icon svg { display: block; }
.field input {
  width: 100%; height: 62px; padding: 0 18px 0 52px;
  border: 1.5px solid var(--border-strong); border-radius: var(--aqw-radius); background: var(--aqw-white);
  font: inherit; font-size: 18px; color: var(--aqw-charcoal); transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--aqw-stone); }
.field input:hover { border-color: var(--aqw-charcoal); }
.field input:focus { outline: none; border-color: var(--aqw-charcoal); box-shadow: 0 0 0 1px var(--aqw-charcoal), 0 0 0 5px var(--aqw-tint); }
.field.has-error input { border-color: var(--aqw-red); }
.field .error { margin-top: 6px; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 4px; cursor: pointer; }
.consent input {
  flex: none; appearance: none; -webkit-appearance: none; margin: 0;
  width: 24px; height: 24px; border: 1.5px solid var(--border-strong); border-radius: var(--aqw-radius); background: var(--aqw-white); cursor: pointer;
  display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.consent input::after {
  content: ""; width: 11px; height: 6px; border: solid var(--aqw-charcoal); border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px); opacity: 0;
}
.consent input:checked { background: var(--aqw-yellow); border-color: var(--aqw-charcoal); }
.consent input:checked::after { opacity: 1; }
.consent input:focus-visible { box-shadow: var(--focus); }
.consent span { font-size: 15.5px; line-height: 1.5; color: var(--aqw-graphite); }
.consent a { color: var(--aqw-charcoal); text-underline-offset: 2px; }
.consent-wrap.has-error input { border-color: var(--aqw-red); }
.consent-wrap .error { margin: 4px 0 0 36px; }
.form .actions { margin-top: 26px; }
.form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.spinner { width: 20px; height: 20px; border: 2px solid rgba(32,32,32,.25); border-top-color: var(--aqw-charcoal); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- done ---------- */
.done-icon {
  width: 64px; height: 64px; margin: 0 auto 24px;
  display: grid; place-items: center; background: var(--aqw-yellow); color: var(--aqw-charcoal);
}
.done-icon svg { width: 32px; height: 32px; }
.calendar {
  margin: 32px auto 0; max-width: 1000px; background: var(--aqw-white); border: 1px solid var(--aqw-mist);
  border-radius: var(--aqw-radius); overflow: hidden;
}
.calendar iframe { display: block; width: 100%; height: 720px; border: 0; }
.calendar-missing { margin-top: 24px; }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 16px; max-width: 440px; margin-left: auto;
  padding: 20px 22px; background: var(--aqw-white); border: 1px solid var(--aqw-mist); border-top: 3px solid var(--aqw-yellow);
  border-radius: var(--aqw-radius); box-shadow: 0 10px 40px rgba(32, 32, 32, .14); text-align: left;
}
.cookie__title { margin: 0 0 4px; font-weight: 600; font-size: 16px; }
.cookie__text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--aqw-graphite); }
.cookie__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

.noscript { font-size: 18px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
