/* ElektroKid website: "sticker playground" look with a live circuit hero.
   Hand-written, no build step, nothing loaded from other servers.
   Colours follow lib/app/theme/app_colors.dart. */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/AtkinsonHyperlegibleNext-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #fff6e5;
  --dots: #e9d9b6;
  --text: #102a43;
  --muted: #486581;
  --card: #ffffff;
  --line: #102a43;
  --shadow: #102a43;
  --soft-line: #eadfc4;
  --blue-text: #1565c0;
  --link: #1565c0;
  --yellow: #ffc93c;
  --orange: #f59e0b;
  --peach: #ffdccb;
  --sky: #cfe5ff;
  --mint: #c6eed8;
  --lilac: #e4dafb;
  --lemon: #ffefb0;
  --volty-wire: #102a43;

  --font-head: "Nunito", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 28px;
  --max: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1b2a;
    --dots: #22364d;
    --text: #f1f5f9;
    --muted: #a9b8c9;
    --card: #18283b;
    --line: #a9b8c9;
    --shadow: #060b12;
    --soft-line: #2a3d55;
    --blue-text: #64b5f6;
    --link: #64b5f6;
    --peach: #43271f;
    --sky: #17324f;
    --mint: #173d31;
    --lilac: #2c2547;
    --lemon: #3b3216;
    --volty-wire: #a9b8c9;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, var(--dots) 1.5px, transparent 0);
  background-size: 28px 28px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 3px;
}

:focus-visible {
  outline: 4px solid #1e7be0;
  outline-offset: 4px;
  border-radius: 10px;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-weight: 900;
  font-size: clamp(2.9rem, 6.4vw, 5.2rem);
  letter-spacing: -0.025em;
  line-height: 1;
}

h2 {
  font-weight: 900;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  letter-spacing: -0.015em;
}

h3 {
  font-weight: 900;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
}

p {
  margin: 0 0 1em;
}

.blue {
  color: var(--blue-text);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--yellow);
  color: #102a43;
  font-family: var(--font-head);
  font-weight: 800;
  padding: 10px 18px;
  border: 3px solid #102a43;
  border-radius: 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- Stickers and buttons ---------- */

.sticker {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--shadow);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3em 0.85em;
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text);
}

.mark {
  display: inline-block;
  padding: 0 0.14em 0.06em;
  background: var(--yellow);
  color: #102a43;
  border: 3px solid #102a43;
  border-radius: 0.2em;
  box-shadow: 5px 5px 0 #102a43;
  transform: rotate(-1.5deg);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--card);
  color: var(--text);
  border: 3px solid var(--line);
  border-radius: 999px;
  padding: 0.4em 1em;
  box-shadow: 4px 4px 0 var(--shadow);
  transform: rotate(-2deg);
  margin: 0 0 1.4rem;
}

.tag svg {
  width: 1.2em;
  height: 1.2em;
  color: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0.55em 1.3em;
  border: 3px solid #102a43;
  border-radius: 16px;
  box-shadow: 5px 5px 0 #102a43;
  background: var(--yellow);
  color: #102a43;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn svg {
  width: 1.2em;
  height: 1.2em;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #102a43;
}

.btn:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 #102a43;
}

/* ---------- Wordmark: the "o" is an LED ---------- */

.brand {
  display: inline-flex;
  align-items: flex-start;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* The name with a circuit trace under it: a solder pad, electrons on the
   way, then the trace turns up to a twinkle (the app's logo). */
.brand .word {
  position: relative;
  padding: 0 0 0.42em 0.28em;
}

.brand .word::before {
  content: "";
  position: absolute;
  left: 0.1em;
  right: -1px;
  bottom: 0.122em;
  height: 0.075em;
  border-radius: 0.04em;
  background: currentColor;
}

.brand .word::after {
  content: "";
  position: absolute;
  left: 0.5em;
  right: 0.35em;
  bottom: 0.11em;
  height: 0.1em;
  background: radial-gradient(circle, var(--yellow) 0.045em, transparent 0.05em)
    0 50% / 25% 100% repeat-x;
}

.brand .pad {
  position: absolute;
  left: 0;
  bottom: 0.08em;
  width: 0.17em;
  height: 0.17em;
  border: 0.06em solid currentColor;
  border-radius: 50%;
  background: var(--yellow);
  box-sizing: border-box;
}

.brand .kid {
  color: var(--blue-text);
}

.brand .spark {
  width: 0.64em;
  height: 1.42em;
  margin-left: -1px;
  overflow: visible;
}

.brand .spark .trace,
.brand .spark .star {
  stroke: currentColor;
}

.brand .spark .shadow {
  fill: currentColor;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 84px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav a {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.4em 0.75em;
  border-radius: 999px;
  border: 3px solid transparent;
}

.nav a:hover {
  border-color: var(--line);
  background: var(--card);
}

.nav .lang svg {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.17em;
  margin-right: 0.3em;
}

.nav .btn {
  margin-left: 0.6rem;
  min-height: 46px;
  padding: 0.4em 1.1em;
  border-radius: 14px;
  border: 3px solid #102a43;
  color: #102a43;
}

.nav .btn:hover {
  background: var(--yellow);
  border-color: #102a43;
}

@media (max-width: 900px) {
  .nav .section-link {
    display: none;
  }
}

@media (max-width: 460px) {
  .brand {
    font-size: 1.55rem;
  }

  .nav .btn {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(20px, 4vw, 56px) 0 clamp(64px, 8vw, 100px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
}

.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  max-width: 34em;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 1.8rem 0 1.2rem;
}

/* Placeholders until the owner adds Apple's and Google's official badges. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  min-height: 62px;
  padding: 0.5em 1.2em 0.5em 0.9em;
  background: #102a43;
  color: #ffffff;
  border: 3px dashed #ffc93c;
  border-radius: 16px;
  box-shadow: 5px 5px 0 rgba(16, 42, 67, 0.3);
  font-family: var(--font-head);
  line-height: 1.15;
}

.store-badge svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.store-badge small {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  opacity: 0.85;
}

.store-badge strong {
  display: block;
  font-weight: 900;
  font-size: 1.2rem;
}

.note {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- The live circuit ---------- */

.lab-wrap {
  position: relative;
}

.lab {
  position: relative;
  padding: 24px 24px 18px;
  background: var(--card);
}

.lab-kicker {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-text);
  margin: 0;
  text-align: center;
}

.circuit {
  position: relative;
  aspect-ratio: 560 / 400;
}

.circuit > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.circuit .glass {
  fill: #fdfaf2;
  transition: fill 0.25s ease;
}

.circuit .filament {
  stroke: #9aa5b1;
  transition: stroke 0.25s ease;
}

.circuit .glow,
.circuit .rays,
.circuit .flow {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.circuit .flow {
  stroke-dasharray: 3 21;
}

.is-on .glass {
  fill: #ffe27a;
}

.is-on .filament {
  stroke: #f59e0b;
}

.is-on .glow,
.is-on .rays,
.is-on .flow {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .is-on .flow {
    animation: flow 0.8s linear infinite;
  }

  .is-on .glow {
    animation: pulse 2.4s ease-in-out infinite;
    transform-origin: 280px 70px;
    transform-box: view-box;
  }
}

@keyframes flow {
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* The switch is a real button over the gap in the bottom wire. */
.switch {
  position: absolute;
  left: 39.3%;
  top: 64.5%;
  width: 21.4%;
  height: 24%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 18px;
  -webkit-tap-highlight-color: transparent;
}

.switch svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.switch .lever {
  transform-origin: 18px 62px;
  transform-box: view-box;
  transform: rotate(-34deg);
  transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.6, 1);
}

.switch[aria-pressed="true"] .lever {
  transform: rotate(0deg);
}

.switch .base {
  fill: #ffffff;
  stroke: #102a43;
}

.switch:hover .base {
  fill: #fff3c4;
}

.switch .hint {
  fill: #1565c0;
  transition: opacity 0.2s ease;
}

.switch[aria-pressed="true"] .hint {
  opacity: 0;
}

.lab-status {
  min-height: 1.6em;
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  text-align: center;
  color: var(--text);
}

.lab-volty {
  position: absolute;
  right: -40px;
  bottom: -46px;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.lab-volty .volty {
  width: 100%;
}

.lab-volty .cheer,
.is-on .lab-volty .calm {
  display: none;
}

.is-on .lab-volty .cheer {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .is-on .lab-volty .cheer {
    animation: hop 0.55s ease-out;
  }
}

/* Without the script the circuit shows its lit state and the switch rests. */
html:not(.js) .switch {
  pointer-events: none;
}

.hero-sticker {
  position: absolute;
  z-index: 3;
  top: -24px;
  left: -16px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.05rem;
  background: var(--mint);
  color: var(--text);
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 0.35em 0.8em;
  box-shadow: 4px 4px 0 var(--shadow);
  transform: rotate(-6deg);
}

/* "Made in Germany", stamped on the hero circuit's top-right corner. */
.made-in-stamp {
  pointer-events: none;
}

/* On the hero circuit's top-right corner. */
.made-in-stamp.at-hero {
  position: absolute;
  z-index: 3;
  top: -46px;
  right: -34px;
  width: 136px;
  height: 136px;
  transform: rotate(-8deg);
}

/* On the corner of the parents' quote ("We collect nothing"). */
.quote blockquote {
  position: relative;
  padding-right: 4.6em;
}

.made-in-stamp.at-quote {
  position: absolute;
  top: -44px;
  right: -30px;
  width: 104px;
  height: 104px;
  transform: rotate(9deg);
}

/* Beside the store badges in the last section. */
.made-in-stamp.at-final {
  align-self: center;
  width: 104px;
  height: 104px;
  margin-left: 6px;
  transform: rotate(-6deg);
}

.made-in-stamp .shade {
  fill: var(--shadow);
}

.made-in-stamp .face {
  fill: var(--card);
}

.made-in-stamp .ink-line {
  fill: none;
  stroke: var(--line);
}

.made-in-stamp .ink-text {
  fill: var(--text);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 3px;
}

.made-in-stamp .star {
  fill: var(--text);
}

@media (max-width: 980px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .lab-wrap {
    max-width: 600px;
    width: calc(100% - 20px);
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .lab {
    padding: 16px 12px 12px;
  }

  .lab-volty {
    width: 96px;
    right: -18px;
    bottom: -40px;
  }

  .hero-sticker {
    left: -8px;
    font-size: 0.95rem;
  }

  .made-in-stamp.at-hero {
    top: -40px;
    right: -6px;
    width: 108px;
    height: 108px;
  }

  .quote blockquote {
    padding-right: 3.4em;
  }

  .made-in-stamp.at-quote {
    top: -40px;
    right: -10px;
    width: 84px;
    height: 84px;
  }

  .made-in-stamp.at-final {
    width: 92px;
    height: 92px;
  }

  .lab-status {
    font-size: 1.08rem;
    padding-right: 56px;
  }
}

/* ---------- Volty ---------- */

.volty .wire {
  stroke: var(--volty-wire);
}

.volty .wire-fill {
  fill: var(--volty-wire);
}

@media (prefers-reduced-motion: no-preference) {
  .volty .eyes {
    animation: blink 5s infinite;
    transform-origin: 100px 100px;
    transform-box: view-box;
  }

  .volty .spark {
    animation: twinkle 2.2s ease-in-out infinite;
    transform-origin: 100px 58px;
    transform-box: view-box;
  }

  .volty .sparkles path {
    animation: twinkle 1.8s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
  }

  .volty .sparkles path:nth-child(2) {
    animation-delay: 0.5s;
  }

  .volty .sparkles path:nth-child(3) {
    animation-delay: 1s;
  }

  .float {
    animation: bob 2.6s ease-in-out infinite;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes hop {
  0% {
    transform: translateY(0) rotate(0);
  }
  40% {
    transform: translateY(-22px) rotate(-6deg);
  }
  70% {
    transform: translateY(-8px) rotate(4deg);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}

@keyframes blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(1) rotate(0);
  }
  50% {
    transform: scale(1.25) rotate(20deg);
  }
}

/* ---------- Promise strip ---------- */

.strip {
  background: #102a43;
  color: #ffffff;
  transform: rotate(-1deg);
  margin: 0 -24px;
  box-shadow: 0 6px 0 #ffc93c;
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
  list-style: none;
  margin: 0 auto;
  padding: 18px calc(var(--gutter) + 24px);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.strip svg {
  width: 1.3em;
  height: 1.3em;
  color: #ffc93c;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}

.section-head {
  max-width: 860px;
  margin: 0 0 clamp(32px, 4vw, 52px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--muted);
  margin: 0;
}

/* ---------- Story: a glowing trace through the three paths ---------- */

.story {
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
}

.story::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  bottom: 40px;
  width: 10px;
  margin-left: -5px;
  border-radius: 5px;
  background: linear-gradient(#ffd54f, #f59e0b 70%, rgba(245, 158, 11, 0.15));
  box-shadow: 0 0 22px rgba(255, 200, 60, 0.9);
}

.story::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: #fff3b0;
  box-shadow: 0 0 18px 8px rgba(255, 213, 79, 0.95);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .story::after {
    animation: spark-run 4.5s ease-in-out infinite;
  }
}

@keyframes spark-run {
  0% {
    top: -30px;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 60px);
    opacity: 0;
  }
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 120px;
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.step:last-child {
  margin-bottom: 0;
}

.step .dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #102a43;
  border: 4px solid #102a43;
  box-shadow: 0 0 0 8px rgba(255, 200, 60, 0.35), 0 0 30px rgba(255, 200, 60, 0.9);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.35rem;
  z-index: 1;
}

.step-card {
  padding: 30px;
}

.step-card.peach {
  background: var(--peach);
}

.step-card.sky {
  background: var(--sky);
}

.step-card.mint {
  background: var(--mint);
}

.step-card .age {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3em;
}

.step-card h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

.step-card p {
  font-size: 1.12rem;
}

.step-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-card li {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.15em 0.75em;
}

.step .shot {
  justify-self: center;
}

.step.flip .step-card {
  order: 2;
}

.phone {
  position: relative;
  width: 270px;
  aspect-ratio: 390 / 844;
  padding: 9px;
  background: #102a43;
  border: 3px solid #102a43;
  border-radius: 42px;
  box-shadow: 10px 10px 0 rgba(16, 42, 67, 0.85);
}

.phone::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  width: 70px;
  height: 19px;
  margin-left: -35px;
  background: #102a43;
  border-radius: 999px;
  z-index: 2;
}

.phone img {
  width: 100%;
  height: 100%;
  padding-top: 12%;
  border-radius: 33px;
  object-fit: cover;
  object-position: top;
  background: #fff8e7;
}

.step:nth-child(odd) .phone {
  transform: rotate(3deg);
}

.step:nth-child(even) .phone {
  transform: rotate(-3deg);
}

@media (max-width: 820px) {
  .story::before,
  .story::after {
    left: 26px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 66px;
  }

  .step .dot {
    left: 26px;
    top: 34px;
  }

  .step.flip .step-card {
    order: 0;
  }

  .step .shot {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .phone {
    width: 220px;
    border-radius: 36px;
    padding: 7px;
  }

  .phone img {
    border-radius: 28px;
  }

  .phone::before {
    width: 56px;
    height: 15px;
    top: 15px;
    margin-left: -28px;
  }

  .step {
    padding-left: 56px;
  }

  .step-card {
    padding: 22px;
  }
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, auto);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tile {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.tile h3 {
  margin-bottom: 0.35em;
}

.tile p {
  font-size: 1.06rem;
  margin: 0;
}

.tile .num {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 4.6rem;
  line-height: 1;
  margin-bottom: 0.12em;
}

.tile .label {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6em;
}

.tile.big {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--sky);
  min-height: 460px;
}

.tile.big .copy {
  position: relative;
  z-index: 1;
  max-width: 52%;
}

.tile.big .phone {
  position: absolute;
  right: 30px;
  top: 40px;
  width: 230px;
  transform: rotate(-5deg);
}

.tile.wide {
  grid-column: span 2;
}

.t-peach {
  background: var(--peach);
}

.t-mint {
  background: var(--mint);
}

.t-lilac {
  background: var(--lilac);
}

.t-lemon {
  background: var(--lemon);
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--card);
  border: 3px solid var(--line);
  margin-bottom: 14px;
}

.tile-icon svg {
  width: 30px;
  height: 30px;
  color: var(--text);
}

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .tile.big,
  .tile.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .tile.big {
    min-height: 0;
    padding-bottom: 290px;
  }

  .tile.big .copy {
    max-width: none;
  }

  .tile.big .phone {
    top: auto;
    width: 200px;
    right: 50%;
    margin-right: -100px;
    bottom: -180px;
  }
}

/* ---------- Lesson road ---------- */

.road {
  display: grid;
  gap: 30px;
  padding: clamp(22px, 4vw, 40px);
}

.road-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.road-row h3 {
  margin: 0.3em 0 0;
  font-size: 1.4rem;
}

.road-row h3 small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--muted);
}

.road ol {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.road li {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
}

.road li span {
  display: inline-block;
  padding: 0.3em 0.85em;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--stop, var(--card));
  box-shadow: 3px 3px 0 var(--shadow);
}

.road .explorer {
  --stop: var(--peach);
}

.road .engineer {
  --stop: var(--sky);
}

.road .master {
  --stop: var(--mint);
}

.road .goal span {
  background: var(--yellow);
  color: #102a43;
  border-color: #102a43;
}

@media (max-width: 700px) {
  .road-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .road li {
    font-size: 0.92rem;
  }

  .road li span {
    border-width: 2px;
  }
}

/* ---------- Feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 28px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.card {
  padding: 26px 24px 24px;
}

.card h3 {
  font-size: 1.35rem;
}

.card p {
  margin: 0;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--tint, var(--sky));
  border: 3px solid var(--line);
  margin-bottom: 14px;
}

.card-icon svg {
  width: 30px;
  height: 30px;
  color: var(--text);
}

.tint-peach {
  --tint: var(--peach);
}

.tint-sky {
  --tint: var(--sky);
}

.tint-mint {
  --tint: var(--mint);
}

.tint-lilac {
  --tint: var(--lilac);
}

.tint-lemon {
  --tint: var(--lemon);
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Make it yours ---------- */

.split {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: center;
}

.split .phone {
  transform: rotate(-3deg);
}

.tick-list {
  list-style: none;
  padding: 0;
  margin: 1.2em 0 0;
  display: grid;
  gap: 16px;
}

.tick-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.tick-list .dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 3px solid var(--line);
  background: var(--tint, var(--lemon));
  box-shadow: 3px 3px 0 var(--shadow);
}

.tick-list .dot svg {
  width: 22px;
  height: 22px;
  color: var(--text);
}

.tick-list strong {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.15rem;
  display: block;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split .phone {
    margin-inline: auto;
  }
}

/* ---------- Grown-ups ---------- */

.parents {
  background: #102a43;
  color: #f1f5f9;
}

.parents .section-head p {
  color: #c9d5e3;
}

.parents a {
  color: #ffc93c;
}

.parents .card {
  background: #18283b;
  color: #f1f5f9;
  border-color: #a9b8c9;
  box-shadow: 7px 7px 0 #060b12;
}

.parents .card p {
  color: #dbe4ee;
}

.parents .card-icon {
  background: #ffc93c;
  border-color: #102a43;
}

.parents .card-icon svg {
  color: #102a43;
}

.quote {
  max-width: 860px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.quote .volty {
  width: 120px;
}

.quote blockquote {
  margin: 0;
  padding: 1em 1.3em;
  background: #ffffff;
  color: #102a43;
  border: 3px solid #102a43;
  border-radius: 24px;
  box-shadow: 7px 7px 0 #ffc93c;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.35;
}

.quote blockquote p {
  margin: 0;
}

.parents .volty .wire {
  stroke: #a9b8c9;
}

.parents .volty .wire-fill {
  fill: #a9b8c9;
}

.parents .more {
  text-align: center;
  margin: 40px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
}

.parents .more svg {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.18em;
}

@media (max-width: 560px) {
  .quote {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.faq details {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--shadow);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: 20px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: #102a43;
  border: 3px solid #102a43;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding: 0 22px 18px;
}

.faq details p:last-child {
  margin-bottom: 0;
}

/* ---------- Final call ---------- */

.final {
  background: var(--yellow);
  color: #102a43;
  border-top: 3px solid #102a43;
}

.final .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 70px);
}

.final .volty {
  width: clamp(150px, 20vw, 230px);
}

.final .volty .wire {
  stroke: #102a43;
}

.final .volty .wire-fill {
  fill: #102a43;
}

.final h2 {
  color: #102a43;
}

.final p {
  font-size: 1.2rem;
  max-width: 34em;
}

.final .store-row {
  margin-bottom: 0;
}

.final .store-badge {
  box-shadow: 5px 5px 0 #102a43;
}

@media (max-width: 700px) {
  .final .wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .final .store-row {
    justify-content: center;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: #102a43;
  color: #dbe4ee;
  padding: 48px 0 40px;
  font-size: 1rem;
}

.site-footer a {
  color: #ffffff;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px 48px;
}

.site-footer .brand {
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.site-footer .brand .kid {
  color: #64b5f6;
}



.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
}

.site-footer .note {
  color: #c9d5e3;
  font-family: var(--font-body);
  font-weight: 400;
}


.site-footer .fine {
  grid-column: 1 / -1;
  border-top: 2px solid #2a3d55;
  padding-top: 20px;
  font-size: 0.92rem;
  color: #a9b8c9;
  margin: 0;
}

@media (max-width: 700px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Text pages (privacy, legal notice, 404) ---------- */

.page {
  padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 8vw, 110px);
}

.doc {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
}

.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.doc h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-top: 1.6em;
}

.doc address {
  font-style: normal;
}

.doc .stamp {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--muted);
}

.doc hr {
  border: 0;
  border-top: 3px dashed var(--soft-line);
  margin: 2.4em 0;
}

.owner {
  background: var(--lemon);
  color: var(--text);
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 0 0.35em;
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 3px solid var(--line);
  border-radius: 20px;
  box-shadow: 5px 5px 0 var(--shadow);
  background: var(--mint);
  margin: 0 0 1.6em;
}

.callout svg {
  width: 40px;
  height: 40px;
}

.callout p {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.12rem;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
}

.toc a {
  text-decoration: none;
}

.not-found {
  text-align: center;
}

.not-found .volty {
  width: 190px;
  margin: 0 auto 10px;
}

.not-found .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 1.6em;
}

/* ---------- Gentle reveal on scroll (where supported) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 40px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .strip,
  .final,
  .skip-link {
    display: none;
  }

  body {
    background: #ffffff;
  }
}

/* Help and feedback: the four steps to a report, and the example report. */
.steps {
  margin: 1.2em 0 1.4em;
}

.steps svg {
  width: 100%;
  height: auto;
  display: block;
}

.steps .step-box {
  fill: var(--card);
  stroke: var(--line);
  stroke-width: 3;
}

.steps .step-shadow {
  fill: var(--shadow);
}

.steps .step-arrow {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps text {
  fill: var(--text);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
}

.steps .step-number {
  fill: var(--blue-text);
  font-size: 17px;
}

pre.example {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--card);
  color: var(--text);
  border: 3px solid var(--line);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--shadow);
  padding: 16px 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* "Made in Germany" beside "No ads, no accounts, no tracking. Just a lab." */
.tagline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
}

.made-in-stamp.at-head {
  flex: none;
  width: 92px;
  height: 92px;
  transform: rotate(-8deg);
}

/* "Found a bug or a problem?" in the parents' section. */
.report-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 860px;
  margin: 44px auto 0;
  padding: clamp(18px, 3vw, 28px);
  /* Fixed colours: the parents' section is navy in light and dark mode. */
  background: #ffefb0;
  color: #102a43;
  border: 3px solid #102a43;
  border-radius: 24px;
  box-shadow: 6px 6px 0 #060b12;
}

.report-box h3 {
  margin: 0 0 0.4em;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
}

.report-box p {
  margin: 0 0 0.7em;
}

.report-box p:last-child {
  margin-bottom: 0;
  font-family: var(--font-head);
  font-weight: 800;
}

.parents .report-box a {
  color: #0d47a1;
}

.report-icon {
  width: 44px;
  height: 44px;
}

@media (max-width: 560px) {
  .report-box {
    grid-template-columns: 1fr;
  }

  .made-in-stamp.at-head {
    width: 76px;
    height: 76px;
  }
}

/* The hero's stamp lights up with the bulb: when the switch closes the
   loop (#lab gets .is-on), the stamp's face warms up and it glows, and it
   goes calm again when the loop opens. Without the script the circuit is
   lit, so the stamp glows too. */
.made-in-stamp.at-hero {
  transition: filter 0.4s ease;
}

.made-in-stamp.at-hero .face {
  transition: fill 0.4s ease;
}

.is-on .made-in-stamp.at-hero {
  filter: drop-shadow(0 0 8px rgba(255, 201, 60, 0.95))
    drop-shadow(0 0 22px rgba(255, 201, 60, 0.6));
}

.is-on .made-in-stamp.at-hero .face {
  fill: #fff3c4;
}

/* On the warm face the ink stays dark, in dark mode too. */
.is-on .made-in-stamp.at-hero .ink-line {
  stroke: #102a43;
}

.is-on .made-in-stamp.at-hero .ink-text,
.is-on .made-in-stamp.at-hero .star {
  fill: #102a43;
}

@media (prefers-reduced-motion: no-preference) {
  .is-on .made-in-stamp.at-hero {
    animation: stamp-glow 2.4s ease-in-out infinite;
  }
}

@keyframes stamp-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 201, 60, 0.95))
      drop-shadow(0 0 22px rgba(255, 201, 60, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(255, 201, 60, 1))
      drop-shadow(0 0 34px rgba(255, 201, 60, 0.75));
  }
}

/* The safety line under the store badges: dark text on a light panel, the
   same in light and dark mode (the band is always yellow), so it reads
   clearly (contrast about 13:1). */
.final .safety-note {
  color: #102a43;
  background: #fff8e1;
  border: 2px solid #102a43;
  border-left-width: 8px;
  border-radius: 14px;
  padding: 12px 16px;
  margin-top: 20px;
  max-width: 40em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
}

.final .safety-note a {
  color: #0d47a1;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
