@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/nunito-latin-600-normal.45f437de32.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/nunito-latin-ext-600-normal.a7ba5f4fa4.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:800;src:url(/fonts/nunito-latin-800-normal.2363d3ed03.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:800;src:url(/fonts/nunito-latin-ext-800-normal.39f54b55b8.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:900;src:url(/fonts/nunito-latin-900-normal.9ca32f5d83.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:900;src:url(/fonts/nunito-latin-ext-900-normal.f7e97aafcd.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
/* Kids Maths site. Palette from the app's Theme.swift (see content.mjs palette). */
:root {
  --ink: #292e4d;
  --muted: #555a74; /* palette muted #80859e darkened to pass WCAG AA on paper and sky */
  --card: #ffffff;
  --paper: #fff7e6;
  --sky-bg: #ebf5ff;
  --sky: #4d9ef2;
  --teal: #21a89e;
  --violet: #8c61d9;
  --pink: #f26b9e;
  --orange: #fa9933;
  --green: #5cbf52;
  --red: #eb544d;
  --brown: #9e6b47;
  --plum: #b359b3;
  --mint: #40b380;
  --coral: #f58066;
  --indigo: #595ccc;
  --gold: #ffc726;
  --good: #4dbf66;
  --good-ink: #2b7a3c;
  --bad-ink: #c23a33;
  --frame: #23263a;
  --max: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 28px;
  color-scheme: light;
}
.lang-lt {
  --bg: var(--paper);
  --tint: var(--sky-bg);
  --lip: #eedcb8;
  --dot: #ddd2bc;
  --line: #eadfc8;
}
.lang-en {
  --bg: var(--sky-bg);
  --tint: var(--paper);
  --lip: #c9daee;
  --dot: #c5d3e4;
  --line: #d5e2f1;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { font-weight: 900; line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); }
h3 { font-size: 1.35rem; font-weight: 800; }
h4 { font-size: 1.1rem; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
section { scroll-margin-top: 96px; }

/* Header: sticky, on a translucent page tint (the tint fades in on scroll where scroll timelines exist) */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--lip) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-size: 1.35rem; flex-shrink: 0; }
.brand-icon img { width: 44px; height: 44px; border-radius: 22.4%; box-shadow: 0 4px 0 var(--lip); }
.nav { margin-left: auto; min-width: 0; }
.nav ul { display: flex; gap: 6px; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 800; color: var(--muted); white-space: nowrap; }
.nav a:hover { background: var(--card); color: var(--ink); }
.lang-switch {
  flex-shrink: 0; text-decoration: none; font-weight: 900; background: var(--card); padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 5px 0 var(--lip); transition: transform .12s, box-shadow .12s;
}
.home .lang-switch, .privacy .lang-switch { margin-left: 0; }
.privacy .lang-switch { margin-left: auto; }
.lang-switch:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--lip); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(64px, 8vw, 120px); }
.hero-text { display: grid; gap: 26px; }
.hero h1 { max-width: 15ch; }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px;
  background: rgba(77, 191, 102, .14); color: var(--good-ink); font-weight: 800; font-size: 1rem; cursor: default; user-select: none;
}
.status-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(77, 191, 102, .22); }
.status-note { color: var(--muted); font-size: 1rem; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: 1rem; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.tick { width: 18px; height: 18px; color: var(--good); flex-shrink: 0; }
.hero-visual { position: relative; padding-bottom: 15%; }

/* Hero stage: the island video, the iPad overlapping its lower left, the owl at the iPad's lower right */
.stage-wrap { position: relative; width: 82%; margin-left: auto; }
.stage {
  position: relative; aspect-ratio: 1; border-radius: 40px; overflow: hidden; background: #4fb3f6;
  box-shadow: 0 10px 0 rgba(41, 46, 77, .12); isolation: isolate;
}
.stage-still, .stage-still img, .stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-video { display: block; }
.hero-ipad { position: absolute; left: -22%; bottom: -17%; width: 68%; padding: 2%; z-index: 2; box-shadow: 0 10px 0 rgba(41, 46, 77, .16); }
.screens { position: relative; }
.screen.extra { display: none; position: absolute; inset: 0; opacity: 0; }
.screen.extra img { height: 100%; }

/* iPad frame */
.ipad { background: var(--frame); padding: 2.4%; border-radius: clamp(14px, 3.4vw, 46px); box-shadow: 0 10px 0 rgba(41, 46, 77, .12); }
.ipad img { border-radius: clamp(6px, 1.5vw, 20px); width: 100%; }
.ipad-sm { padding: 3%; border-radius: clamp(12px, 2vw, 24px); box-shadow: 0 6px 0 rgba(41, 46, 77, .1); }
.ipad-sm img { border-radius: clamp(5px, .9vw, 11px); }

/* Owl standing just right of the iPad's lower corner, its bubble over the stage */
.owl-spot { position: absolute; left: 45%; bottom: -17%; width: 19%; z-index: 3; }
.owl { width: 100%; }
.owl img { width: 100%; filter: drop-shadow(0 6px 0 rgba(41, 46, 77, .12)); }
.bubble {
  position: absolute; left: 62%; bottom: 88%; width: max-content; max-width: 230px; transform-origin: 12px 100%;
  background: var(--card); padding: 12px 16px; border-radius: 20px 20px 20px 6px;
  font-weight: 800; font-size: .98rem; line-height: 1.3; box-shadow: 0 5px 0 var(--lip);
}

/* Section heads */
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 820px; }

/* Play: zigzag steps joined by a dotted path */
.play { padding-bottom: clamp(64px, 8vw, 120px); }
.steps { --tx: 40%; --gap: 6%; --bx: 30px; }
.step { display: grid; grid-template-columns: var(--tx) calc(100% - var(--tx) - var(--gap)); column-gap: var(--gap); align-items: stretch; }
.step.flip { grid-template-columns: calc(100% - var(--tx) - var(--gap)) var(--tx); }
.step.flip .step-text { order: 2; }
.step-text { display: flex; flex-direction: column; }
.step-body { display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: start; padding-block: 8px; }
.step-body h3 { margin-bottom: 8px; padding-top: 12px; }
.step-body p { color: var(--muted); }
.step-shot { padding-block: 12px; }
.rail { flex: 1; min-height: 20px; width: 60px; background: radial-gradient(circle, var(--dot) 0 4.5px, transparent 5px) center top / 12px 20px no-repeat space; }
.rail.none { visibility: hidden; }
.num {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff; font-weight: 900; font-size: 1.6rem;
  border: 5px solid var(--card); position: relative;
}
.num-1 { background: var(--sky); box-shadow: 0 6px 0 #3a7fc7; }
.num-2 { background: var(--orange); box-shadow: 0 6px 0 #d27b1f; }
.num-3 { background: var(--green); box-shadow: 0 6px 0 #439a3b; }
.conn-li { height: 56px; }
.connector { position: relative; height: 100%; }
.connector .seg { position: absolute; }
.connector .a, .connector .c { width: 12px; height: calc(50% + 6px); background: radial-gradient(circle, var(--dot) 0 4.5px, transparent 5px) center top / 12px 20px no-repeat space; }
.connector .b { height: 12px; top: calc(50% - 6px); background: radial-gradient(circle, var(--dot) 0 4.5px, transparent 5px) left center / 20px 12px space no-repeat; }
.connector.to-right .a { left: calc(var(--bx) - 6px); top: 0; }
.connector.to-right .b { left: calc(var(--bx) - 10px); width: calc(100% - var(--tx) + 20px); }
.connector.to-right .c { left: calc(100% - var(--tx) + var(--bx) - 6px); top: calc(50% - 6px); }
.connector.to-left .a { left: calc(100% - var(--tx) + var(--bx) - 6px); top: 0; }
.connector.to-left .b { left: calc(var(--bx) - 10px); width: calc(100% - var(--tx) + 20px); }
.connector.to-left .c { left: calc(var(--bx) - 6px); top: calc(50% - 6px); }

/* Why: white band */
.why { background: var(--card); padding-block: clamp(56px, 7vw, 104px); margin-bottom: clamp(64px, 8vw, 120px); box-shadow: 0 -8px 0 var(--lip) inset; }
.why-band { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.why-figure { margin: 0; }
.why-figure figcaption { margin-top: 22px; font-size: 1.05rem; color: var(--muted); max-width: 60ch; padding-left: 16px; border-left: 4px solid var(--good); }
.why-text { display: grid; gap: 22px; }

/* The copy's own example, drawn: 1 + 2 = 12 struck through, then 3 (end state is the static picture) */
.sum-demo {
  display: flex; align-items: center; gap: .45em; width: max-content; max-width: 100%;
  background: var(--bg); border-radius: 24px; padding: 14px 26px; box-shadow: 0 6px 0 var(--lip);
  font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; font-variant-numeric: tabular-nums;
}
.sum-demo .op { color: var(--muted); }
.sum-demo .wrong { position: relative; color: var(--bad-ink); padding-inline: .08em; }
.sum-demo .strike { position: absolute; left: -10%; right: -10%; top: 50%; height: .14em; margin-top: -.07em; border-radius: 99px; background: var(--red); transform: rotate(-12deg); transform-origin: left center; }
.sum-demo .right {
  display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; margin-left: .15em;
  background: var(--good); color: #fff; box-shadow: 0 5px 0 #389a4f;
}
.struck { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; color: var(--bad-ink); }
.points { display: grid; gap: 22px; margin-top: 6px; }
.points li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.points .num { width: 48px; height: 48px; font-size: 1.3rem; border-width: 4px; }
.points h3 { padding-top: 8px; margin-bottom: 4px; }
.points p { color: var(--muted); }
.num-why-1 { background: var(--red); box-shadow: 0 5px 0 #b93a34; }
.num-why-2 { background: var(--sky); box-shadow: 0 5px 0 #3a7fc7; }
.num-why-3 { background: var(--good); box-shadow: 0 5px 0 #389a4f; }

/* Inside */
.inside { padding-bottom: clamp(64px, 8vw, 120px); }
.block-intro { display: grid; gap: 10px; align-content: start; }
.block-intro p { color: var(--muted); }
.maths-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 2px dashed var(--line); margin-bottom: clamp(48px, 6vw, 80px); }
.chip-groups { display: grid; gap: 28px; }
.chip-group h4 { margin-bottom: 14px; color: var(--muted); font-size: 1rem; text-transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 10px; background: var(--card); padding: 8px 16px 8px 12px; border-radius: 999px; font-weight: 800; font-size: 1rem; box-shadow: 0 4px 0 var(--lip); }
.chip-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.c-indigo { background: var(--indigo); } .c-sky { background: var(--sky); } .c-teal { background: var(--teal); }
.c-violet { background: var(--violet); } .c-pink { background: var(--pink); } .c-orange { background: var(--orange); }
.c-green { background: var(--green); } .c-red { background: var(--red); } .c-brown { background: var(--brown); }
.c-plum { background: var(--plum); } .c-mint { background: var(--mint); } .c-coral { background: var(--coral); }
.logic-block { display: grid; gap: 32px; }
.logic-block .block-intro { max-width: 760px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px clamp(24px, 3vw, 44px); }
.gallery h4 { margin-top: 18px; }
.gallery p { margin-top: 4px; color: var(--muted); font-size: 1rem; }
.gallery-note { color: var(--muted); font-size: .95rem; }

/* Who */
.who { padding-bottom: clamp(64px, 8vw, 120px); }
.who-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: 36px; }
.who-grid > div:first-child { display: grid; gap: 14px; }
.langs { display: grid; gap: 8px; }
.langs p { color: var(--muted); }
.years { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.year { display: grid; gap: 2px; padding: 18px 16px; border-radius: 22px; min-height: 92px; align-content: center; }
.year-name { font-weight: 900; font-size: 1.2rem; }
.year-age { font-size: .95rem; }
.year.ready { background: var(--card); box-shadow: 0 7px 0 var(--good); }
.year.ready .year-age { color: var(--muted); }
.year.soon { border: 2px dashed #9fa3b8; color: var(--muted); }

/* Parents */
.parents { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: clamp(64px, 8vw, 120px); }
.parents-text { display: grid; gap: 16px; }
.rows { margin: 12px 0 0; }
.rows > div { display: grid; grid-template-columns: minmax(150px, 0.36fr) 1fr; gap: 6px 24px; padding-block: 16px; border-top: 2px solid var(--line); }
.rows > div:last-child { border-bottom: 2px solid var(--line); }
.rows dt { font-weight: 900; }
.rows dd { margin: 0; color: var(--muted); }

/* Status */
.status { padding-bottom: clamp(64px, 8vw, 104px); }
.status-box { background: var(--tint); border-radius: var(--radius); padding: clamp(28px, 4vw, 52px); display: grid; gap: 12px; }
.status-box h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.status-box p { max-width: 70ch; }
.status-box .coming { color: var(--muted); }

/* Footer */
.site-footer { background: var(--card); padding-block: 44px 52px; border-top: 6px solid var(--lip); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1.3fr); gap: 32px 56px; align-items: start; }
.footer-about { display: grid; gap: 6px; }
.footer-name { font-weight: 900; font-size: 1.25rem; }
.footer-muted { color: var(--muted); }
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-weight: 800; }
.footer-h { font-size: 1rem; font-weight: 900; margin-bottom: 10px; }
.placeholder { border: 2px dashed var(--red); background: rgba(235, 84, 77, .06); color: var(--bad-ink); border-radius: 14px; padding: 12px 16px; font-weight: 800; font-size: .95rem; }

/* Privacy */
.policy { padding-block: clamp(24px, 4vw, 56px) clamp(64px, 8vw, 104px); }
.policy-inner { max-width: 75ch; }
.policy .back { margin-bottom: 22px; }
.policy .back a { font-weight: 800; }
.policy h1 { margin-bottom: 10px; }
.policy .updated { color: var(--muted); margin-bottom: 36px; }
.policy section { padding-block: 22px; border-top: 2px solid var(--line); display: grid; gap: 12px; }
.policy h2 { font-size: 1.5rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: 14px; overflow: hidden; font-size: 1rem; }
th, td { text-align: left; padding: 12px 16px; }
th { font-weight: 900; background: var(--tint); }
td { color: var(--muted); }

/* Narrower screens */
@media (max-width: 1100px) {
  .nav { display: none; }
  .lang-switch, .home .lang-switch { margin-left: auto; }
  .years { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-imprint { grid-column: 1 / -1; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .bubble { max-width: 168px; font-size: .88rem; padding: 10px 13px; }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero, .why-band, .parents, .who-grid, .maths-block { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { padding-bottom: 18%; }
  .stage-wrap { width: 78%; }
  .hero-ipad { left: -26%; width: 74%; }
  .owl-spot { left: 46%; width: 20%; }
  .steps { --tx: 100%; --gap: 0%; }
  .step, .step.flip { grid-template-columns: minmax(0, 1fr); }
  .step.flip .step-text { order: 0; }
  .steps { --slide: 12px; } /* stays inside the 16 px gutter, so the slide never widens the page */
  .rail { display: none; }
  .conn-li { height: 40px; }
  .connector .a, .connector .b, .connector .c { display: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parents-shot { order: 2; }
  .why-figure { order: 2; }
}
@media (max-width: 560px) {
    .brand { font-size: 1.15rem; }
  .brand-icon img { width: 38px; height: 38px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .years { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rows > div { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .bubble { font-size: .8rem; padding: 8px 11px; max-width: 124px; left: auto; right: -112%; border-radius: 16px 16px 6px 16px; transform-origin: 85% 100%; }
  .stage { border-radius: 28px; }
  .stage-wrap { width: 84%; }
  .hero-ipad { left: -19%; width: 72%; bottom: -20%; }
  .owl-spot { left: 51%; bottom: -21%; width: 21%; }
  .hero-visual { padding-bottom: 22%; }
  .header-inner { padding-block: 12px; gap: 12px; }
  .sum-demo { padding: 12px 20px; }
  .step-body { grid-template-columns: 48px 1fr; gap: 14px; }
  .step-body .num { width: 48px; height: 48px; font-size: 1.3rem; border-width: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  /* The video is hidden (and paused by the inline script); its first frame shows instead. */
  .stage-video { display: none; }
}

/* ---------- Motion: everything below runs only when the visitor has not asked for reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero iPad: the hero shot, then the three play steps, 4 s each, crossfaded, 16 s loop. */
  .screen.extra { display: block; animation: screen-cycle 16s linear infinite backwards; }
  .screen.s1 { animation-delay: 4s; }
  .screen.s2 { animation-delay: 8s; }
  .screen.s3 { animation-delay: 12s; }

  /* Owl: slow idle bob; the bubble pops in once. */
  .owl img { animation: owl-bob 3s ease-in-out infinite; }
  .bubble { animation: bubble-pop .6s cubic-bezier(.34, 1.56, .64, 1) .5s backwards; }

  /* Status: the testing dot breathes. */
  .status-pill .dot { animation: dot-pulse 2.4s ease-in-out infinite; }

  /* Press feel (the app's ChunkyStyle): lift on hover/focus, sink and shrink the lip when pressed. */
  .lang-switch { transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s cubic-bezier(.34, 1.56, .64, 1); }
  .lang-switch:hover, .lang-switch:focus-visible { transform: translateY(-2px); box-shadow: 0 7px 0 var(--lip); }
  .lang-switch:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--lip); transition-duration: .06s; }
  .nav a { transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s, background-color .15s; }
  .nav a:hover, .nav a:focus-visible { transform: translateY(-2px); box-shadow: 0 4px 0 var(--lip); }
  .nav a:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--lip); transition-duration: .06s; }
  /* Not links: a hover lift only, no pointer. */
  .chips li, .year.ready, .num { transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s cubic-bezier(.34, 1.56, .64, 1); }
  .chips li:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--lip); }
  .year.ready:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--good); }
  .year.soon { transition: transform .22s cubic-bezier(.34, 1.56, .64, 1); }
  .year.soon:hover { transform: translateY(-2px); }
  .num:hover { transform: translateY(-2px); }

  /* Wrong answer demo: 12 appears, gets struck, 3 pops in; 6 s loop. */
  .sum-demo .strike { animation: strike-draw 6s cubic-bezier(.65, 0, .35, 1) infinite; }
  .sum-demo .right { animation: right-pop 6s linear infinite; }
  .sum-demo .wrong { animation: wrong-dim 6s linear infinite; }
}

/* Scroll-driven reveals: only where the browser has view timelines; elsewhere everything is simply there. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header { animation: header-tint linear both; animation-timeline: scroll(root); animation-range: 0 120px; }

    /* Dotted path: each rail and connector segment draws itself in order. */
    .rail:not(.none) { animation: draw-down linear both; animation-timeline: view(); animation-range: entry 30% cover 40%; }
    .connector { view-timeline-name: --conn; }
    .connector .a { animation: draw-down linear both; animation-timeline: --conn; animation-range: entry 40% cover 35%; }
    .connector.to-right .b { animation: draw-right linear both; animation-timeline: --conn; animation-range: cover 35% cover 45%; }
    .connector.to-left .b { animation: draw-left linear both; animation-timeline: --conn; animation-range: cover 35% cover 45%; }
    .connector .c { animation: draw-down linear both; animation-timeline: --conn; animation-range: cover 45% cover 55%; }

    /* Step screenshots slide 24 px in from their own side. */
    .step-shot { animation: slide-from-right ease-out both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .step.flip .step-shot { animation-name: slide-from-left; }

    /* Topic chips pop with a small stagger, year tiles and logic cards rise in sequence. */
    .chips li { animation: chip-pop linear both; animation-timeline: view(); animation-range: entry calc(var(--i, 0) * 6%) entry calc(60% + var(--i, 0) * 6%); }
    .years li, .gallery li { animation: rise linear both; animation-timeline: view(); animation-range: entry calc(var(--i, 0) * 6%) entry calc(70% + var(--i, 0) * 4%); }
    .chips li:nth-child(6n+2), .years li:nth-child(2), .gallery li:nth-child(3n+2) { --i: 1; }
    .chips li:nth-child(6n+3), .years li:nth-child(3), .gallery li:nth-child(3n+3) { --i: 2; }
    .chips li:nth-child(6n+4), .years li:nth-child(4) { --i: 3; }
    .chips li:nth-child(6n+5), .years li:nth-child(5) { --i: 4; }
    .chips li:nth-child(6n+6), .years li:nth-child(6) { --i: 5; }
    .years li:nth-child(7) { --i: 6; }
  }
}

@keyframes screen-cycle { 0% { opacity: 0; } 3.75% { opacity: 1; } 25% { opacity: 1; } 28.75% { opacity: 0; } 100% { opacity: 0; } }
@keyframes owl-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes bubble-pop { 0% { opacity: 0; transform: scale(.55); } 100% { opacity: 1; transform: scale(1); } }
@keyframes dot-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(77, 191, 102, .25); } 50% { box-shadow: 0 0 0 7px rgba(77, 191, 102, .08); } }
@keyframes strike-draw { 0%, 18% { transform: rotate(-12deg) scaleX(0); } 30%, 88% { transform: rotate(-12deg) scaleX(1); } 96%, 100% { transform: rotate(-12deg) scaleX(0); } }
@keyframes wrong-dim { 0%, 30% { opacity: 1; } 40%, 88% { opacity: .55; } 96%, 100% { opacity: 1; } }
@keyframes right-pop {
  0%, 36% { opacity: 0; transform: scale(.3); }
  42% { opacity: 1; transform: scale(1.18); }
  47%, 88% { opacity: 1; transform: scale(1); }
  94%, 100% { opacity: 0; transform: scale(.3); }
}
@keyframes header-tint { from { background-color: transparent; box-shadow: 0 2px 0 transparent; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@keyframes draw-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes draw-right { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes draw-left { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes slide-from-right { from { opacity: .35; transform: translateX(var(--slide, 24px)); } to { opacity: 1; transform: none; } }
@keyframes slide-from-left { from { opacity: .35; transform: translateX(calc(-1 * var(--slide, 24px))); } to { opacity: 1; transform: none; } }
/* Reveals animate translate/scale, not transform, so the hover lift (transform) still works afterwards. */
@keyframes chip-pop { 0% { opacity: 0; scale: .6; } 70% { opacity: 1; scale: 1.06; } 100% { opacity: 1; scale: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: none; } }

.imprint { line-height: 1.5; margin: 0; }
.imprint a { color: inherit; }
