/* Fördercheck v2 — navy + warm paper, Bricolage numbers, flat and sharp controls (2px), real coin + piggy cut-outs.
   Motion: numbers count, coins drop, stacks grow, the piggy bank fills and breaks. Works with reduced motion too. */
@font-face { font-family: 'Bricolage'; src: url('/fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --navy: #001F4E;
  --navy-2: #002A66;
  --blue: #003781;
  --sky: #A9C9F1;
  --paper: #F6F2EA;
  --white: #FFFFFF;
  --ink: #0E1A2B;
  --ink-2: #2C3646;
  --muted: #5E6674;
  --gold: #E9C46A;
  --line: rgba(14, 26, 43, .13);
  --line-2: rgba(14, 26, 43, .30);
  --wline: rgba(255, 255, 255, .22);
  --err: #A4262C;
  --pad: 20px;
  --display: 'Bricolage', 'Arial Narrow', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

html { -webkit-text-size-adjust: 100%; background: var(--navy); }
html.lock, html.lock body { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 18px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.has-sticky { padding-bottom: 78px; }
main { flex: 1; }
a { color: var(--blue); }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 88%; letter-spacing: -.02em; line-height: 1.02; }
h2:focus { outline: none; }
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--blue); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

/* header (navy, white logo) */
.brand { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px max(var(--pad), calc(50% - 260px)) 13px; background: var(--navy); }
.brand img { height: 20px; width: auto; display: block; filter: brightness(0) invert(1); }
.brand span { font-size: 12px; line-height: 1.25; color: var(--sky); padding-left: 12px; border-left: 1px solid var(--wline); }

/* buttons: flat, sharp, label left + arrow right */
.cta {
  appearance: none; border: 0; cursor: pointer; width: 100%; min-height: 60px; padding: 0 20px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--blue); color: var(--white); border-radius: 2px; font: inherit; font-size: 18px; font-weight: 700;
  -webkit-tap-highlight-color: transparent; transition: transform .12s;
}
.cta b { font-weight: 400; font-size: 22px; transition: transform .25s var(--ease); }
.cta:active { transform: scale(.985); }
.cta:active b { transform: translateX(6px); }
.cta.big { min-height: 64px; font-size: 19px; }
.cta.light { background: var(--white); color: var(--navy); }
.cta.ready b { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 55%, 100% { transform: none; } 28% { transform: translateX(7px); } }
.cta:disabled { cursor: default; }
.cta.busy::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 40%; background: rgba(255, 255, 255, .85); animation: busy 1s linear infinite; }
@keyframes busy { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.cta:focus-visible, .opt:focus-visible, .kids button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 1 · hero */
.hero { background: var(--navy); color: var(--white); padding: 18px 0 0; }
.hero .eyebrow { color: var(--sky); animation: rise .5s var(--ease) both; }
.hero h1 { font-size: 34px; text-wrap: balance; animation: rise .6s var(--ease) .06s both; }
.hero .sub { margin: 10px 0 0; color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 1.4; }
.hero .sub:empty { display: none; }

.vid { max-width: 560px; margin: 14px auto 0; animation: rise .7s var(--ease) .12s both; }
.vid-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vid-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-frame.ph { background: radial-gradient(120% 90% at 30% 20%, #0B4AA8 0%, #002A66 45%, #00143A 100%); display: grid; place-items: center; }
.ph-in { text-align: center; color: var(--white); }
.ph-in p { margin: 10px 0 2px; font-family: var(--display); font-weight: 700; font-size: 19px; }
.ph-in small { color: var(--sky); font-size: 13px; }
.ph-play { display: block; width: 52px; height: 52px; margin: 0 auto; border: 2px solid var(--white); position: relative; animation: breathe 2.4s ease-in-out infinite; }
.ph-play::after { content: ""; position: absolute; left: 20px; top: 14px; border-left: 16px solid var(--white); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.vid-sound {
  position: absolute; left: 10px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 7px;
  appearance: none; border: 0; border-radius: 2px; padding: 7px 11px; background: var(--white); color: var(--navy);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
/* the real video's controls sit in a bar under the frame, so they never cover the burned-in subtitles */
.vid-ctrl { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 12px 4px; }
.vid-ctrl .vid-sound { position: static; padding: 10px 16px; font-size: 17px; min-height: 44px; box-shadow: 0 0 0 2px var(--white); }
.vid-ctrl .vid-sound span { font-size: 17px; }
.vid-sound svg { width: 18px; height: 18px; }
.vid-sound span { font-size: 14px; }
.vid-sound:not(.on) { animation: hint 2.6s ease-in-out 1.5s infinite; }
@keyframes hint { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-3px); } 90% { transform: none; } }
.vid-pause {
  position: static; display: flex; align-items: center; gap: 9px;
  appearance: none; border: 0; border-radius: 2px; padding: 9px 16px; background: var(--navy); color: var(--white); box-shadow: 0 0 0 2px var(--white);
  font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; min-height: 44px;
}
.vid-pause i { width: 14px; height: 16px; border-left: 5px solid currentColor; border-right: 5px solid currentColor; box-sizing: border-box; }
.vid-pause.paused i { width: 0; height: 0; border-right: 0; border-left: 14px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.vid-pause[hidden] { display: none; }
.vid-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.vid-bar i { display: block; height: 100%; width: 0; background: var(--white); }
.vid-bar .ph-run { animation: run 60s linear infinite; }
@keyframes run { from { width: 0; } to { width: 100%; } }
.vid-end { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 20, 58, .55); }
.vid-end button { appearance: none; border: 0; border-radius: 2px; padding: 14px 20px; font: inherit; font-weight: 700; background: var(--white); color: var(--navy); cursor: pointer; }

/* 2 · the two numbers */
.facts { background: var(--navy-2); color: var(--white); padding: 30px 0 34px; overflow: hidden; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; }
.fact { padding: 0 14px 0 0; }
.fact + .fact { padding: 0 0 0 16px; border-left: 1px solid var(--wline); }
.fact-img { display: block; height: 92px; width: auto; margin-bottom: 12px; opacity: 0; }
.fact-k { margin: 0; font-size: 14px; color: var(--sky); }
.fact-k s { text-decoration-thickness: 2px; text-decoration-color: rgba(233, 196, 106, .9); }
.fact-n { margin: 2px 0 4px; font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 54px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact-l { margin: 0; font-size: 15px; line-height: 1.3; color: rgba(255, 255, 255, .85); }
.facts.on .coin { animation: coin-in 1.1s var(--ease) both; }
.facts.on .piggy { animation: pig-in .9s var(--spring) .35s both; }
@keyframes coin-in { 0% { opacity: 0; transform: translateY(-90px) rotateY(0deg); } 60% { opacity: 1; transform: translateY(6px) rotateY(540deg); } 100% { opacity: 1; transform: none; } }
@keyframes pig-in { 0% { opacity: 0; transform: translateY(30px) scale(.5); } 100% { opacity: 1; transform: none; } }

/* 3 · calculator */
.calc { padding: 36px 0 34px; }
.calc h2 { font-size: 36px; margin-bottom: 18px; }
.stage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.slot { position: relative; height: 270px; overflow: hidden; border-bottom: 2px solid var(--ink); }
.slot::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 120px; height: 18px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(14, 26, 43, .28), transparent); }
.stack { position: absolute; left: 50%; bottom: 0; width: 96px; height: auto; transform: translate(-50%, var(--y, 100%)); transition: transform .55s var(--ease); }
.calc.pre .stack { transform: translate(-50%, 100%); }
.drop { position: absolute; left: 50%; width: 96px; height: auto; z-index: 2; pointer-events: none; }
.col-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; text-align: center; }
.col-labels p { margin: 0; }
.col-labels span { display: block; font-size: 14px; color: var(--muted); }
.col-labels b { display: block; font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 34px; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.col-labels small { font-size: 13px; color: var(--muted); }
.col-labels .state b { color: var(--blue); }

.ctrl { margin: 20px 0 14px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 2px; }
.ctrl-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 16px; color: var(--ink-2); }
.ctrl-head output { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--blue); font-variant-numeric: tabular-nums; }
.ctrl-head + .kids { margin-top: 8px; }
.range { --p: 44%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 4px 0 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.range:focus { outline: none; }
.range::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(var(--blue), var(--blue)) left / var(--p) 100% no-repeat, rgba(14, 26, 43, .18); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 36px; margin-top: -16px; background: var(--blue); border: 0; border-radius: 2px; box-shadow: inset 0 0 0 7px var(--blue), inset 0 0 0 9px rgba(255, 255, 255, .7); }
.range::-moz-range-track { height: 4px; background: rgba(14, 26, 43, .18); }
.range::-moz-range-progress { height: 4px; background: var(--blue); }
.range::-moz-range-thumb { width: 22px; height: 36px; background: var(--blue); border: 0; border-radius: 2px; }
.range-scale { display: flex; justify-content: space-between; margin: -4px 0 14px; font-size: 13px; color: var(--muted); }
.kids { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.kids button {
  appearance: none; min-height: 52px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--white);
  font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .12s;
}
.kids button:active { transform: scale(.95); }
.kids-hint { margin: 10px 0 0; font-size: 14px; color: var(--blue); }
.kids-hint[hidden] { display: none; }
.kids button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.sum { margin: 0 0 16px; font-size: 17px; color: var(--ink-2); text-align: center; }
.sum b { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); }
.fine { margin: 14px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }

/* 4 · year */
.year { background: var(--navy); color: var(--white); padding: 38px 0 40px; }
.year .eyebrow { color: var(--gold); font-family: var(--display); font-weight: 800; font-size: 18px; }
.year h2 { font-size: 38px; margin-bottom: 8px; }
.year .sub { margin: 0 0 20px; color: rgba(255, 255, 255, .82); font-size: 17px; }
.months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.months li { position: relative; height: 70px; border: 1px solid var(--wline); border-radius: 2px; overflow: hidden; transition: background-color .3s, border-color .3s; transition-delay: calc(.3s + var(--i) * .11s + .38s); }
.months span { position: absolute; left: 8px; top: 6px; font-size: 13px; color: var(--sky); }
.months img { position: absolute; left: 50%; bottom: 7px; width: 34px; height: auto; transform: translate(-50%, -90px); opacity: 0; }
.months em { position: absolute; right: 6px; top: 6px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--navy); background: var(--gold); padding: 1px 5px; border-radius: 2px; }
.months li:first-child { border-color: var(--gold); }
.year.on .months li { background: rgba(255, 255, 255, .07); }
.year.on .months img { animation: month-coin .5s cubic-bezier(.5, 0, .75, 1.4) both; animation-delay: calc(.3s + var(--i) * .11s); }
@keyframes month-coin { 0% { opacity: 0; transform: translate(-50%, -90px) rotate(-30deg); } 30% { opacity: 1; } 100% { opacity: 1; transform: translate(-50%, 0) rotate(0); } }
.year-sum { margin: 20px 0 0; font-size: 18px; color: rgba(255, 255, 255, .9); }
.year-sum span { display: block; font-size: 15px; color: var(--sky); }
.year-sum b { font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 5 · trust */
.trust { padding: 34px 0 30px; }
.trust h2 { font-size: 34px; margin-bottom: 8px; }
.trust > .wrap > p { margin: 0 0 12px; color: var(--ink-2); }
.places { list-style: none; margin: 0 0 14px; padding: 0; }
.places li { padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; display: flex; justify-content: space-between; }
.places li::after { content: "Allianz vor Ort"; font-weight: 400; font-size: 14px; color: var(--muted); }
.badge { margin: 0; font-size: 13px; color: var(--muted); }


/* footer */
.foot { border-top: 1px solid var(--line); padding: 18px 0 calc(22px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); background: var(--paper); }
.foot p { margin: 0 0 10px; }
.foot strong { color: var(--ink-2); font-weight: 600; }
.foot .links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a, .foot button { color: var(--muted); font: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* sticky next step */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 10px max(var(--pad), calc(50% - 260px)) calc(10px + env(safe-area-inset-bottom));
  background: var(--navy); color: var(--white); border-top: 1px solid var(--wline); animation: up .35s var(--ease) both; transition: transform .2s;
}
.sticky.away { transform: translateY(110%); }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.sticky p { flex: 1; margin: 0; line-height: 1.2; }
.sticky small { display: block; font-size: 12px; color: var(--sky); }
.sticky b { font-family: var(--display); font-weight: 800; font-size: 19px; }
.sticky .cta { width: auto; min-height: 50px; padding: 0 18px; gap: 14px; background: var(--white); color: var(--navy); }
/* scrolled away from the questions: the bar becomes the way back */
.sticky.back .cta { background: var(--gold); color: var(--navy); }
.sticky.back .cta b { animation: bob-up 1.4s ease-in-out infinite; }
@keyframes bob-up { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
.opts.nudge .opt { animation: nudge-opt .5s var(--ease) both; animation-delay: calc(var(--i, 0) * .05s); }
@keyframes nudge-opt { 0%, 100% { transform: none; } 40% { transform: translateX(6px); } }

/* the questions (inline, right under the video) */
.quiz { background: var(--paper); padding: 0 0 30px; scroll-margin-top: 0; }
.quiz-prog { height: 4px; background: rgba(14, 26, 43, .12); }
.quiz-prog i { display: block; height: 100%; width: 5%; background: var(--blue); transition: width .5s var(--ease); }
.quiz-top { display: flex; align-items: center; min-height: 34px; padding-top: 2px; }
.quiz-back { appearance: none; background: none; border: 0; padding: 8px 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--blue); cursor: pointer; }
.quiz-step { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quiz-body { min-height: 0; }
/* "see more" under the answers */
.more { appearance: none; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 22px auto 0; padding: 8px 18px; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--blue); cursor: pointer; }
.more i { font-style: normal; font-size: 24px; line-height: 1; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: none; } 50% { transform: translateY(6px); } }

.fq { padding-top: 4px; animation: in-fwd .38s var(--ease) both; }
.fq.back { animation-name: in-back; }
@keyframes in-fwd { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes in-back { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
.fq-k { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--blue); }
.fq h2, .fcontact h2 { font-size: 26px; margin-bottom: 14px; text-wrap: balance; }
.opts { display: grid; gap: 10px; }
.opt {
  appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; padding: 14px 18px; width: 100%; font-size: 18px; font-weight: 600;
  background: linear-gradient(var(--blue), var(--blue)) left center / 0% 100% no-repeat, var(--white);
  border: 1px solid var(--line-2); border-radius: 2px; -webkit-tap-highlight-color: transparent;
  transition: background-size .28s var(--ease), color .14s .07s, border-color .15s, transform .12s;
  animation: rise .4s var(--ease) both; animation-delay: calc(.08s + var(--i, 0) * .05s);
}
.opt small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 1px; transition: color .14s .07s; }
.opt b { font-weight: 400; font-size: 22px; color: var(--blue); transition: transform .25s var(--ease), color .14s .07s; }
.opt:active { transform: scale(.985); }
.opt[aria-pressed="true"] { background-size: 100% 100%; border-color: var(--blue); color: var(--white); }
.opt[aria-pressed="true"] small, .opt[aria-pressed="true"] b { color: var(--white); }
.opt[aria-pressed="true"] b { transform: translateX(6px); }

/* piggy bank */
.pig-scene { padding: 0; text-align: center; animation: rise .35s var(--ease) both; }
.pig-wrap { position: relative; width: 190px; aspect-ratio: 260 / 256; margin: 120px auto 16px; }
.pig { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.pig-coin { position: absolute; z-index: 0; left: 47%; top: 4%; width: 66px; height: auto; transform: translate(-50%, -230px); }
.pig-count { margin: 0; font-size: 16px; color: var(--muted); }
.pig-count b { display: block; margin-top: 4px; font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pig-msg { margin: 18px auto 0; max-width: 320px; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; color: var(--blue); animation: rise .45s var(--ease) .25s both; }
.shard { position: absolute; inset: 0; z-index: 2; background: url('/img/piggy.webp') center / 100% 100% no-repeat; }
.cracks { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; }
.cracks path { fill: none; stroke: #00112E; stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: bevel; stroke-dasharray: 80; animation: crack .3s ease-out both; }
.cracks path:nth-child(2) { animation-delay: .08s; } .cracks path:nth-child(3) { animation-delay: .14s; } .cracks path:nth-child(4) { animation-delay: .2s; }
@keyframes crack { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
.rain { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.rain img { position: absolute; height: auto; will-change: transform; }

/* reveal + contact */
.reveal { margin: 4px 0 0; padding: 22px 20px 24px; background: var(--navy); color: var(--white); border-radius: 2px; animation: pop .5s var(--spring) both; }
.rv-k { margin: 0 0 6px; font-size: 17px; color: var(--sky); }
.rv-n { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; line-height: 1; }
.rv-n strong { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 76px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rv-n span { font-family: var(--display); font-weight: 700; font-size: 24px; }
.rv-l { margin: 8px 0 0; font-size: 16px; color: rgba(255, 255, 255, .85); }
.rv-sum { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--wline); font-size: 16px; }
.rv-sum b { font-family: var(--display); font-weight: 800; font-size: 22px; }
.fcontact { padding-top: 26px; animation: rise .5s var(--ease) .5s both; }
.fsub { margin: -8px 0 16px; color: var(--ink-2); }
.fnote { margin: -6px 0 14px; font-size: 15px; font-weight: 600; color: var(--blue); }
.fnote::before { content: "✓ "; }
.field { position: relative; display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 15px; color: var(--ink-2); margin-bottom: 5px; }
.field input { width: 100%; height: 56px; padding: 0 42px 0 14px; font: inherit; font-size: 18px; color: var(--ink); background: var(--white); border: 1px solid var(--line-2); border-radius: 2px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.field.ok::after { content: ""; position: absolute; right: 16px; bottom: 23px; width: 12px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); animation: tick-in .25s var(--ease) both; }
@keyframes tick-in { from { opacity: 0; transform: rotate(-45deg) scale(.4); } to { opacity: 1; transform: rotate(-45deg) scale(1); } }
.field input[aria-invalid="true"], .check input[aria-invalid="true"] { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 16px; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--blue); }
.err { margin: 0 0 12px; color: var(--err); font-size: 15px; font-weight: 600; }

/* thanks */
.thanks { padding-top: 8px; }
.okmark { display: block; width: 64px; height: 64px; margin: 0 0 18px; animation: pop .45s var(--spring) both; }
.okmark path { stroke-dasharray: 40; animation: draw .55s var(--ease) .3s both; }
@keyframes draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
.thanks h2 { font-size: 40px; margin-bottom: 10px; }
.thanks > p { margin: 0 0 10px; color: var(--ink-2); }
.th-n { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next { list-style: none; margin: 20px 0 22px; padding: 0; }
.next li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 0 0 18px; animation: rise .45s var(--ease) both; animation-delay: calc(.5s + var(--i, 0) * .12s); }
.next li b { display: grid; place-items: center; width: 34px; height: 34px; background: var(--white); border: 1px solid var(--blue); color: var(--blue); font-size: 15px; border-radius: 2px; }
.next li:first-child b { background: var(--blue); color: var(--white); }
.next li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 2px; width: 1px; background: var(--line-2); }
.next li span { padding-top: 5px; font-weight: 600; }
.next li small { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }

/* cookie bar */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--white); border-top: 1px solid var(--line-2); padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink-2); animation: rise .4s var(--ease) .8s both; }
.cookie p { max-width: 520px; margin: 0 auto 12px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 520px; margin: 0 auto; }
.cookie-actions button { appearance: none; font: inherit; font-weight: 700; min-height: 48px; background: var(--white); color: var(--blue); border: 1px solid var(--blue); border-radius: 2px; cursor: pointer; }

/* legal pages */
.legal { padding: 26px 0 10px; }
.legal h1 { font-size: 34px; margin-bottom: 18px; }
.legal h2 { font-family: inherit; font-stretch: 100%; font-size: 18px; font-weight: 700; margin: 26px 0 8px; letter-spacing: 0; line-height: 1.3; }
.legal p, .legal li { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.legal p { margin: 0 0 10px; }
.legal ul { padding-left: 18px; margin: 0 0 10px; }
.legal a { word-break: break-word; }
.legal .back-link { display: inline-block; margin-bottom: 14px; font-size: 15px; color: var(--muted); }
.progress { display: none; }

/* test index */
.testindex { padding-top: 40px; }
.testindex h1 { font-size: 40px; }
.testindex ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.testindex a { display: flex; justify-content: space-between; padding: 16px; background: var(--white); border: 1px solid var(--line-2); border-radius: 2px; text-decoration: none; color: var(--ink); font-weight: 600; }
.testindex a span { color: var(--muted); font-weight: 400; }
.count { margin: 0 0 6px; font-size: 13px; color: var(--muted); }

@media (min-width: 720px) {
  .hero h1 { font-size: 54px; }
  .vid { margin-left: auto; margin-right: auto; padding: 0 var(--pad); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .fact-img, .months img { opacity: 1; transform: none; }
}
