:root {
  color-scheme: light;
  --navy: oklch(31% 0.11 258);
  --blue: oklch(48% 0.19 258);
  --cyan: oklch(75% 0.13 213);
  --paper: oklch(99% 0.006 245);
  --mist: oklch(96% 0.018 245);
  --line: oklch(89% 0.025 245);
  --muted: oklch(55% 0.055 255);
  --cream: oklch(97% 0.035 82);
  --amber: oklch(56% 0.14 63);
  --error: oklch(55% 0.19 25);
  --shadow: 0 24px 70px color-mix(in oklch, var(--navy) 12%, transparent);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--navy); background: radial-gradient(circle at 90% 5%, color-mix(in oklch, var(--cyan) 15%, transparent), transparent 28rem), var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.survey-header { position: sticky; top: 0; z-index: 10; max-width: 820px; margin: 0 auto; padding: 14px 24px 10px; background: color-mix(in oklch, var(--paper) 94%, transparent); backdrop-filter: blur(12px); }
.header-row, .progress-meta, .actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { width: 92px; height: auto; display: block; }
.timer { min-width: 118px; padding: 7px 13px 6px; display: flex; align-items: flex-start; justify-content: center; gap: 5px; border: 1px solid color-mix(in oklch,var(--cyan) 36%,var(--line)); border-radius: 18px; color: var(--navy); background: linear-gradient(145deg,rgba(255,255,255,.96),rgba(225,246,255,.82)); font-weight: 850; text-align: center; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 0 white,0 10px 28px color-mix(in oklch,var(--navy) 9%,transparent); }
.time-unit { display:flex; flex-direction:column; align-items:center; }
.time-digits { display:flex; gap:1px; height:21px; overflow:hidden; }
.time-digits i { min-width:11px; font-size:19px; line-height:21px; font-style:normal; animation: digit-in 320ms cubic-bezier(.2,.8,.2,1); }
.timer b { font-size:18px; line-height:20px; opacity:.28; }
.timer small { margin-top:2px; color:var(--muted); font-size:7px; letter-spacing:.12em; }
.progress-meta { margin-top: 9px; color: var(--muted); font-size: 12px; font-weight: 700; }
.progress-track { height: 8px; margin-top: 7px; overflow: hidden; border: 1px solid color-mix(in oklch, var(--line) 90%, var(--navy)); border-radius: 3px; padding: 1px; background: var(--mist); box-shadow: inset 0 1px 2px color-mix(in oklch, var(--navy) 10%, transparent); }
.progress-track span { display: block; height: 100%; width: 0; transform-origin: left; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width 420ms cubic-bezier(.16,1,.3,1); }

.shell { width: min(100% - 32px, 760px); min-height: calc(100vh - 120px); margin: 0 auto; padding: clamp(28px, 5vw, 64px) 0 56px; outline: none; }
.screen { transform-origin: 50% 20%; animation: enter 620ms cubic-bezier(.16,1,.3,1) both; }
.screen.leaving { pointer-events: none; animation: leave 280ms cubic-bezier(.7,0,.84,0) both; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin: 0; max-width: 700px; font-size: clamp(40px, 8vw, 68px); line-height: .99; }
h2 { margin: 0; max-width: 680px; font-size: clamp(31px, 6vw, 48px); line-height: 1.04; }
.lede { max-width: 650px; margin: 20px 0 0; color: color-mix(in oklch, var(--navy) 76%, var(--paper)); font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 26px 0 0; color: var(--muted); font-size: 14px; }
.facts strong { color: var(--navy); }
.intro-panel { margin-top: 36px; padding: clamp(24px, 4vw, 36px); border-radius: 28px 28px 28px 8px; background: linear-gradient(125deg, var(--navy), var(--blue) 60%, color-mix(in oklch, var(--cyan) 74%, var(--blue))); color: var(--paper); box-shadow: var(--shadow); }
.intro-panel h1, .intro-panel .lede { color: inherit; }
.intro-panel .eyebrow { color: color-mix(in oklch, var(--cyan) 76%, var(--paper)); }
.intro-panel .facts { color: color-mix(in oklch, var(--paper) 78%, transparent); }
.intro-panel .facts strong { color: var(--paper); }

.question { margin-top: 34px; }
.question-title { margin: 0; max-width: 690px; font-size: clamp(25px, 4vw, 34px); line-height: 1.16; font-weight: 760; letter-spacing: -.025em; }
.hint { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.choices { display: grid; gap: 10px; margin-top: 24px; }
.choices.scale { grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.choices.scale .choice { min-height:58px; justify-content:center; padding:10px 4px; }
.choices.scale .choice-mark { display:none; }
.choices.scale .choice-text { font-size:20px; font-weight:850; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in oklch, var(--mist) 76%, var(--paper)); color: var(--navy); cursor: pointer; transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease; }
.choice:hover { transform: translateY(-1px); border-color: color-mix(in oklch, var(--blue) 48%, var(--line)); background: var(--paper); box-shadow: 0 8px 24px color-mix(in oklch, var(--navy) 7%, transparent); }
.choice:has(input:focus-visible) { outline: 3px solid color-mix(in oklch, var(--cyan) 45%, transparent); outline-offset: 2px; }
.choice:has(input:checked) { border-color: var(--blue); background: color-mix(in oklch, var(--blue) 8%, var(--paper)); box-shadow: inset 0 0 0 1px var(--blue); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-mark { flex: 0 0 auto; width: 21px; height: 21px; border: 2px solid var(--blue); border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.choice[data-kind="checkbox"] .choice-mark { border-radius: 5px; }
.choice input:checked + .choice-mark::after { content: ""; width: 9px; height: 9px; border-radius: inherit; background: var(--blue); }
.choice-text { font-size: 16px; line-height: 1.35; font-weight: 620; }

.offer { margin-top: 26px; padding: 22px; border: 1px solid color-mix(in oklch, var(--amber) 48%, var(--line)); border-radius: 18px; background: var(--cream); }
.offer-label { margin: 0 0 6px; color: var(--amber); font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.offer p:last-child { margin: 0; line-height: 1.5; }
.offer strong { color: var(--amber); }

.fields { display: grid; gap: 18px; margin-top: 24px; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 750; }
.field input { width: 100%; height: 52px; border: 2px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--mist); color: var(--navy); outline: none; transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease; }
.field input:focus { border-color: var(--blue); background: var(--paper); box-shadow: 0 0 0 4px color-mix(in oklch, var(--cyan) 22%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.consent { align-items: flex-start; min-height: auto; }
.consent .choice-text { font-size: 14px; font-weight: 520; }
.consent a { color: var(--blue); }
.error { min-height: 20px; margin: 12px 0 0; color: var(--error); font-size: 13px; font-weight: 700; }

.actions { margin-top: 32px; }
.button { --btn-bg:#1558bc; --btn-text:#fff; --btn-fill-bg:#fff; --btn-fill-text:#1558bc; --icon:42px; --edge:6px; position:relative; isolation:isolate; display:inline-flex; align-items:center; justify-content:center; overflow:hidden; min-height:54px; padding:0 66px 0 24px; border:1px solid var(--btn-bg); border-radius:999px; background:var(--btn-bg); color:var(--btn-text); box-shadow:0 14px 32px color-mix(in oklch,var(--blue) 22%,transparent); font-weight:820; line-height:1; white-space:nowrap; cursor:pointer; -webkit-tap-highlight-color:transparent; transition:transform 180ms ease,box-shadow 250ms ease,opacity 120ms ease; }
.button-label { position:relative; z-index:1; }
.button-fill { position:absolute; z-index:2; top:var(--edge); right:var(--edge); bottom:var(--edge); width:var(--icon); border-radius:999px; background:var(--btn-fill-bg); transition:inset 450ms cubic-bezier(.785,.135,.15,.86),width 450ms cubic-bezier(.785,.135,.15,.86); }
.button-fill-label { position:absolute; inset:0; z-index:2; display:flex; align-items:center; padding:0 66px 0 24px; color:var(--btn-fill-text); clip-path:inset(var(--edge) var(--edge) var(--edge) calc(100% - var(--edge) - var(--icon)) round 999px); transition:clip-path 450ms cubic-bezier(.785,.135,.15,.86); }
.button-arrow { position:absolute; z-index:3; top:50%; right:var(--edge); width:var(--icon); height:var(--icon); overflow:hidden; border-radius:50%; color:var(--btn-fill-text); transform:translateY(-50%); }
.arrow { position:absolute; inset:0; display:grid; place-items:center; transition:transform 450ms cubic-bezier(.785,.135,.15,.86); }
.arrow svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.arrow-in { transform:translateX(-120%) scale(0); }
.arrow-out { transform:translateX(0) scale(1); }
.button:hover .button-fill,.button[data-pressed="true"] .button-fill { inset:0; width:100%; }
.button:hover .button-fill-label,.button[data-pressed="true"] .button-fill-label { clip-path:inset(0 round 999px); }
.button:hover .arrow-in,.button[data-pressed="true"] .arrow-in { transform:translateX(0) scale(1); }
.button:hover .arrow-out,.button[data-pressed="true"] .arrow-out { transform:translateX(120%) scale(0); }
.button:hover { transform:translateY(-2px); box-shadow:0 18px 38px color-mix(in oklch,var(--blue) 28%,transparent); }
.button:active { transform:scale(.975); }
.button:focus-visible { outline:3px solid var(--cyan); outline-offset:3px; }
.button-primary { margin-left:auto; }
.button-secondary { --btn-bg:#fff; --btn-text:#1558bc; --btn-fill-bg:#1558bc; --btn-fill-text:#fff; box-shadow:0 12px 28px color-mix(in oklch,var(--navy) 10%,transparent); }
.quiet { display:flex; margin:22px auto 0; }
.button[disabled] { cursor: wait; opacity: .58; }
.privacy-note { margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.thank-you { text-align: center; padding-top: clamp(32px, 10vw, 96px); }
.check { width: 68px; height: 68px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: var(--paper); font-size: 34px; box-shadow: var(--shadow); }
.thank-you .lede { margin-inline: auto; }
.thank-you .intro-panel { text-align: left; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
@keyframes enter { from { opacity: 0; filter: blur(7px); transform: translate3d(0,18px,0) scale(.985); } to { opacity: 1; filter: blur(0); transform: translate3d(0,0,0) scale(1); } }
@keyframes leave { to { opacity: 0; filter: blur(5px); transform: translate3d(-18px,0,0) scale(.99); } }
@keyframes digit-in { from { opacity:0; filter:blur(5px); transform:translateY(-55%); } to { opacity:1; filter:blur(0); transform:translateY(0); } }
@media (min-width: 720px) { .choices.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fields.two-col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .survey-header { padding: 10px 16px 9px; } .shell { width: min(100% - 28px, 760px); min-height: calc(100dvh - 96px); padding-top: 22px; } .intro-panel { margin-top: 8px; border-radius: 22px 22px 22px 7px; } .logo { width: 78px; } .timer { min-width: 88px; font-size: 18px; } h2 { font-size: clamp(30px, 8.5vw, 39px); } .choice { min-height: 62px; } .choice-text { font-size: 16px; } .button { --icon:42px; min-height:54px; padding:0 62px 0 20px; font-size:14px; } .button-fill-label { padding:0 62px 0 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
