/*
 * Done & Fun — public website styles (ADR 0157).
 * Colours are the app tokens of the "Light for work" look (ADR 0147): Dawn (parent, light) for the page,
 * Night with fireflies (child) for the film and the kids' band. Fonts are self-hosted OFL files.
 */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/assets/fonts/atkinson-hyperlegible-next-400.woff2?v=1ea1fe2458') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/assets/fonts/atkinson-hyperlegible-next-700.woff2?v=b99466d1cf') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque-700.woff2?v=a004accff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque-800.woff2?v=3cae725e62') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito-900.woff2?v=2b98ac89f9') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Caveat';
  src: url('/assets/fonts/caveat-600-latin.woff2?v=d51e228301') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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: 'Caveat';
  src: url('/assets/fonts/caveat-600-latin-ext.woff2?v=ec90c36c3d') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  color-scheme: light;
  /* Dawn (light) */
  --surface: #f6f1fb;
  --surface-raised: #ffffff;
  --surface-sunken: #ece6f7;
  --sky-top: #ffe6d6;
  --sky-middle: #f6eefb;
  --sky-bottom: #eef0fb;
  --ink: #1b1838;
  --ink-muted: #4a4570;
  --border: #837da8;
  --border-subtle: #e2dcef;
  --primary: #2c2468;
  --on-primary: #fff4d6;
  --primary-text: #4a37c9;
  --primary-tint: #ece8ff;
  --glow: #e8a200;
  --glow-soft: #ffe7b0;
  --success: #0a7a52;
  --success-tint: #ddf6ea;
  --parent: #5d46d9;
  --parent-tint: #ece8ff;
  --attention: #8f5300;
  --attention-tint: #fff0d6;
  --focus: #5d46d9;
  --brand-ink: #16233f;
  --brand-pen: #2848a8;
  --accent-rose: #b02d72;
  --accent-rose-tint: #fde4f1;
  --accent-amber: #8a5a00;
  --accent-amber-tint: #fff1cc;
  --accent-mint: #0a7a60;
  --accent-mint-tint: #d9f6ec;
  --accent-violet: #5d46d9;
  --accent-violet-tint: #ece8ff;
  /* Night (child) */
  --night-top: #1e2a66;
  --night-middle: #0d1538;
  --night-bottom: #070b1f;
  --night-raised: #18214c;
  --night-ink: #f1f3fd;
  --night-ink-muted: #c0c8e8;
  --night-border: #2a3670;
  --night-primary: #ffc94d;
  --night-on-primary: #1d1533;
  --night-glow: #ffd66b;
  --night-focus: #ffe48a;
  --night-brand-ink: #eef1f8;
  --night-brand-pen: #8fb0ff;

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', ui-sans-serif, system-ui, sans-serif;
  --font-mark: 'Nunito', ui-rounded, system-ui, sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;

  --radius: 20px;
  --radius-lg: 28px;
  --gutter: 16px;
  --max: 1160px;
  --shadow: 0 18px 40px -22px rgba(44, 36, 104, 0.35);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary-text);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--on-primary);
}

/* ---------- wordmark (ADR 0077: Nunito 900, "&" in pen colour, never on a coloured rectangle) ---------- */
.wordmark {
  font-family: var(--font-mark);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--brand-ink);
  text-decoration: none;
  font-size: 1.55rem;
  line-height: 1;
  white-space: nowrap;
}

.wordmark .amp {
  color: var(--brand-pen);
}

.night .wordmark {
  color: var(--night-brand-ink);
}

.night .wordmark .amp {
  color: var(--night-brand-pen);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
}

.site-nav a:hover {
  background: var(--surface-sunken);
  color: var(--ink);
}

/* The section the reader is in: a tinted pill and a bar under the word, so it is not told by colour alone. */
.site-nav a[aria-current='location'] {
  position: relative;
  background: var(--surface-sunken);
  color: var(--primary);
}

.site-nav a[aria-current='location']::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
}

.menu-button {
  display: none;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-raised);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.header-cta {
  flex: none;
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  border: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.button:active {
  transform: scale(0.97);
}

.button-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 10px 24px -12px rgba(44, 36, 104, 0.7);
}

.button-primary:hover {
  color: var(--on-primary);
  box-shadow:
    0 0 0 4px var(--glow-soft),
    0 12px 28px -12px rgba(44, 36, 104, 0.8);
}

.button-quiet {
  background: var(--surface-raised);
  color: var(--ink);
  border: 1.5px solid var(--border-subtle);
}

.button-quiet:hover {
  color: var(--ink);
  border-color: var(--border);
}

.night .button-primary {
  background: linear-gradient(180deg, #ffeaa6 0%, var(--night-primary) 55%, #ffad3b 100%);
  color: var(--night-on-primary);
  box-shadow:
    0 0 0 1px rgba(255, 214, 107, 0.4),
    0 12px 30px -10px rgba(255, 180, 60, 0.6);
}

.night .button-primary:hover {
  color: var(--night-on-primary);
}

.button-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.98rem;
}

/* ---------- sections ---------- */
section {
  scroll-margin-top: 72px;
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 46rem;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.15rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-text);
}

.night .eyebrow {
  color: var(--night-glow);
}

.muted {
  color: var(--ink-muted);
}

.small {
  font-size: 0.95rem;
}

.button-ghost,
.night .button-ghost {
  background: transparent;
  color: var(--night-ink);
  border: 1.5px solid rgba(241, 243, 253, 0.35);
}

.button-ghost:hover,
.night .button-ghost:hover {
  color: var(--night-ink);
  border-color: var(--night-glow);
}

.lead {
  font-size: 1.2rem;
  max-width: 36rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 20px;
}

/* ---------- Night bands with fireflies (child look, ADR 0147) ---------- */
.night {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color-scheme: dark;
  color: var(--night-ink);
  background: radial-gradient(
    120% 70% at 50% -10%,
    var(--night-top) 0%,
    var(--night-middle) 45%,
    var(--night-bottom) 100%
  );
}

.night a {
  color: var(--night-glow);
}

.night :focus-visible {
  outline-color: var(--night-focus);
}

.night .muted,
.night .section-head p {
  color: var(--night-ink-muted);
}

.night::before {
  content: '';
  position: absolute;
  inset: -30% -30% 40%;
  z-index: -1;
  background:
    radial-gradient(40% 40% at 25% 40%, rgba(154, 132, 255, 0.2), transparent 70%),
    radial-gradient(35% 35% at 78% 30%, rgba(41, 198, 220, 0.14), transparent 70%);
}

.fireflies {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.fireflies span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #fffbe6 0 12%,
    rgba(255, 228, 138, 0.95) 22%,
    rgba(255, 200, 60, 0.35) 42%,
    rgba(255, 194, 31, 0) 70%
  );
  opacity: 0.75;
  animation:
    drift var(--d, 14s) ease-in-out infinite alternate,
    blink var(--b, 5s) ease-in-out infinite;
}

.fireflies span.star {
  width: 2px;
  height: 2px;
  background: #fff6d8;
  opacity: 0.5;
  animation: twinkle var(--b, 4s) ease-in-out infinite;
}

.fireflies span:nth-child(1) {
  left: 6%;
  top: 14%;
  --d: 13s;
  --b: 5s;
}

.fireflies span:nth-child(2) {
  left: 22%;
  top: 72%;
  --d: 17s;
  --b: 6s;
}

.fireflies span:nth-child(3) {
  left: 44%;
  top: 8%;
  --d: 15s;
  --b: 4.5s;
}

.fireflies span:nth-child(4) {
  left: 58%;
  top: 88%;
  --d: 19s;
  --b: 7s;
}

.fireflies span:nth-child(5) {
  left: 80%;
  top: 20%;
  --d: 14s;
  --b: 5.5s;
}

.fireflies span:nth-child(6) {
  left: 92%;
  top: 64%;
  --d: 16s;
  --b: 6.5s;
}

.fireflies span:nth-child(7) {
  left: 36%;
  top: 46%;
  --d: 18s;
  --b: 5s;
}

.fireflies span:nth-child(8) {
  left: 12%;
  top: 34%;
  --b: 4s;
}

.fireflies span:nth-child(9) {
  left: 30%;
  top: 18%;
  --b: 5s;
}

.fireflies span:nth-child(10) {
  left: 52%;
  top: 30%;
  --b: 3.5s;
}

.fireflies span:nth-child(11) {
  left: 70%;
  top: 8%;
  --b: 4.5s;
}

.fireflies span:nth-child(12) {
  left: 86%;
  top: 42%;
  --b: 5.5s;
}

.fireflies span:nth-child(13) {
  left: 64%;
  top: 56%;
  --b: 4s;
}

.fireflies span:nth-child(14) {
  left: 18%;
  top: 90%;
  --b: 6s;
}

.fireflies span:nth-child(15) {
  left: 96%;
  top: 90%;
  --b: 3.8s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(18px, -14px);
  }
  100% {
    transform: translate(-12px, 10px);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.8;
  }
}

.lantern {
  position: relative;
  width: 120px;
  margin: 0 0 18px;
}

.lantern::before {
  content: '';
  position: absolute;
  inset: -28%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 236, 170, 0.85) 0%,
    rgba(255, 214, 107, 0.38) 36%,
    rgba(255, 200, 90, 0) 70%
  );
  animation: breathe 6s ease-in-out infinite;
  z-index: -1;
}

.lantern img {
  width: 120px;
  height: 120px;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* ---------- hero ---------- */
.hero {
  padding: 36px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  grid-template-areas:
    'head scene'
    'cta scene'
    'body scene';
  grid-template-rows: auto auto 1fr;
  column-gap: 56px;
  align-items: start;
}

.hero-head {
  grid-area: head;
}

.hero-cta {
  grid-area: cta;
}

.hero-cta .actions {
  margin: 6px 0 10px;
}

.hero-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--night-ink-muted);
}

.hero-body {
  grid-area: body;
}

.scene {
  grid-area: scene;
}

.hero-kicker {
  max-width: 30rem;
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--night-glow);
  color: var(--night-ink-muted);
  font-size: 1.12rem;
  line-height: 1.5;
}

.hero h1 {
  color: var(--night-ink);
  font-size: clamp(2.4rem, 5.4vw, 4.3rem);
  line-height: 1.04;
  margin-bottom: 0.2em;
}

.hero .lead {
  color: var(--night-ink);
}

.hero .lead strong {
  color: var(--night-glow);
}

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--night-ink-muted);
  font-size: 0.98rem;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--night-glow);
  box-shadow: 0 0 10px 2px rgba(255, 214, 107, 0.6);
}

/* ---------- the animated scene: notebook page + phone ---------- */
.scene {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.scene-stage {
  position: relative;
  aspect-ratio: 1 / 1.13;
  container-type: inline-size;
}

.scene-art {
  position: absolute;
  inset: 0;
  transition: opacity 0.35s ease;
}

.is-resetting .scene-art {
  opacity: 0;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 280px;
  padding: 8px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2a3156, #0b0f22 60%, #20264a);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 34px 60px -30px rgba(20, 16, 60, 0.75);
}

.phone-real {
  container-type: inline-size;
}

.phone-real .screen {
  background: #0d1538;
}

.shot-still {
  position: absolute;
  top: 10cqw;
  left: 0;
  width: 100%;
  height: auto;
}

.scene-phone {
  position: absolute;
  right: 0;
  top: 0;
  width: 53%;
  container-type: inline-size;
  max-width: none;
  padding: 1.6%;
  border-radius: 13% / 6.2%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 70px -30px rgba(0, 0, 0, 0.8),
    0 0 80px -20px rgba(255, 200, 90, 0.35);
}

.screen {
  position: relative;
  aspect-ratio: 9 / 19;
  border-radius: 11% / 5.2%;
  overflow: hidden;
  background: radial-gradient(130% 60% at 50% 0%, #1e2a66 0%, #0d1538 55%, #070b1f 100%);
  color: var(--night-ink);
  font-family: var(--font-body);
  font-size: 5.2cqw;
  line-height: 1.3;
}

.screen p {
  margin: 0;
}

.sb {
  position: absolute;
  inset: 0 0 auto;
  height: 10cqw;
  padding: 0 7cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78em;
  font-weight: 700;
  z-index: 4;
}

.sb-notch {
  width: 30cqw;
  height: 6.4cqw;
  border-radius: 99px;
  background: #000;
}

.sb-bat {
  width: 6cqw;
  height: 3cqw;
  border-radius: 1cqw;
  border: 1.5px solid currentColor;
}

.shots {
  position: absolute;
  top: 10cqw;
  left: 0;
  width: 100%;
  aspect-ratio: 600 / 1169;
}

.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6%);
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1),
    visibility 0s linear 0.4s;
}

[data-screen='earn'] .shot-earn,
[data-screen='task'] .shot-task,
[data-screen='passed'] .shot-passed,
[data-screen='spend'] .shot-spend,
[data-screen='parent'] .shot-parent {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1),
    visibility 0s;
}

@keyframes scan {
  0% {
    opacity: 0;
    transform: translateY(-20%);
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(460%);
  }
}

/* Glow rings over real parts of the screens: the maths tile, the balance, then the spend button. */
.shot-mark {
  position: absolute;
  border-radius: 99px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mark-subject {
  left: 52%;
  width: 43.4%;
  top: 19.2%;
  height: 16.4%;
  border-radius: 6cqw;
  box-shadow:
    0 0 0 1.2cqw rgba(255, 214, 107, 0.6),
    0 0 8cqw 1.5cqw rgba(255, 214, 107, 0.5);
}

.mark-balance {
  left: 17%;
  width: 66%;
  top: 90.6%;
  height: 4.4%;
  box-shadow:
    0 0 0 1.2cqw rgba(255, 214, 107, 0.5),
    0 0 6cqw 1cqw rgba(255, 214, 107, 0.45);
}

.mark-spend {
  left: 3.5%;
  width: 93%;
  top: 89.6%;
  height: 8.2%;
  border-radius: 6cqw;
  box-shadow:
    0 0 0 1.2cqw rgba(255, 255, 255, 0.55),
    0 0 7cqw 1cqw rgba(255, 214, 107, 0.55);
}

[data-step='1'] .mark-subject,
.s6[data-screen='passed'] .mark-balance,
[data-screen='spend'] .mark-spend {
  opacity: 1;
}

[data-step='1']:not(.is-static) .mark-subject,
[data-screen='spend']:not(.is-static) .mark-spend {
  animation: tap-pulse 1.2s ease-out infinite;
}

@keyframes tap-pulse {
  0% {
    transform: scale(0.97);
  }
  60% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(0.97);
  }
}

.flash {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.is-flashing .flash {
  animation: flash 0.45s ease-out;
}

@keyframes flash {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
  }
}

.stamp {
  position: absolute;
  padding: 0.18em 0.5em;
  border-radius: 0.3em;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: rotate(-11deg) scale(2.2);
  transition:
    opacity 0.18s ease,
    transform 0.38s cubic-bezier(0.2, 1.5, 0.4, 1);
}

.s5 .stamp {
  opacity: 1;
  transform: rotate(-11deg) scale(1);
}

.ff-formation {
  position: absolute;
  left: 2%;
  top: 24%;
  z-index: 5;
  width: 36%;
  aspect-ratio: 17 / 7;
  pointer-events: none;
}

.ff-formation .ffd {
  width: 2.2cqw;
  height: 2.2cqw;
  margin: -1.1cqw 0 0 -1.1cqw;
}

.no-anim,
.no-anim * {
  transition: none !important;
  animation: none !important;
}

.ffd {
  position: absolute;
  width: 3.6cqw;
  height: 3.6cqw;
  margin: -1.8cqw 0 0 -1.8cqw;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #fffbe6 0 22%,
    rgba(255, 228, 138, 0.95) 38%,
    rgba(255, 200, 60, 0.3) 62%,
    rgba(255, 194, 31, 0) 75%
  );
  opacity: 0;
  transform: translate(var(--sx, 0), var(--sy, 0)) scale(0.3);
  transition:
    transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) var(--d, 0s),
    opacity 0.5s ease var(--d, 0s);
}

.s5 .ffd {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.s6 .ffd {
  opacity: 0;
  transform: translate(var(--fx, 0), var(--fy, -120px)) scale(0.25);
  transition:
    transform 0.6s cubic-bezier(0.5, 0, 0.7, 0.4) var(--d2, 0s),
    opacity 0.2s ease calc(var(--d2, 0s) + 0.45s);
}

.is-static.s6 .ffd {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.plus-label {
  display: none;
}

.no-js .plus-label {
  position: absolute;
  left: 8%;
  top: 22%;
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.4em;
  color: var(--night-glow);
}

.no-js .ff-formation {
  display: none;
}

/* the notebook page beside the phone */
.paper {
  --big-x: 26cqw;
  --big-y: -25cqw;
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 2;
  width: 48%;
  border-radius: 6px;
  transform: rotate(-6deg);
  box-shadow:
    0 22px 40px -18px rgba(0, 0, 0, 0.7),
    0 2px 0 rgba(0, 0, 0, 0.08);
  transition:
    transform 0.8s cubic-bezier(0.2, 0.8, 0.3, 1),
    opacity 0.45s ease;
}

/* Steps 0–1: the child is still choosing a subject; step 8 is the parent's phone. The page is not there. */
[data-step='0'] .paper,
[data-step='1'] .paper,
[data-step='8'] .paper {
  opacity: 0;
  transform: translate(-8cqw, 6cqw) rotate(-10deg);
}

/* Steps 3–4: the page comes close, as the phone's camera sees it; the phone steps back. */
[data-step='3'] .paper,
[data-step='4'] .paper {
  z-index: 6;
  transform: translate(var(--big-x), var(--big-y)) rotate(-2deg) scale(1.8);
}

.scene-phone {
  transition:
    opacity 0.5s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.3, 1);
}

[data-step='3'] .scene-phone,
[data-step='4'] .scene-phone {
  opacity: 0.22;
  transform: translateX(6%) scale(0.94);
}

/* The camera's frame and the light that reads the page. */
.cam-corner {
  position: absolute;
  z-index: 3;
  width: 12%;
  height: 17%;
  border: 0 solid #fff;
  opacity: 0;
  transform: scale(1.25);
  transition:
    opacity 0.3s ease,
    transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
  pointer-events: none;
}

.cam-tl {
  left: -4%;
  top: -6%;
  border-width: 1.6px 0 0 1.6px;
  border-radius: 4px 0 0 0;
}

.cam-tr {
  right: -4%;
  top: -6%;
  border-width: 1.6px 1.6px 0 0;
  border-radius: 0 4px 0 0;
}

.cam-bl {
  left: -4%;
  bottom: -6%;
  border-width: 0 0 1.6px 1.6px;
  border-radius: 0 0 0 4px;
}

.cam-br {
  right: -4%;
  bottom: -6%;
  border-width: 0 1.6px 1.6px 0;
  border-radius: 0 0 4px 0;
}

[data-step='4'] .cam-corner {
  opacity: 0.95;
  transform: none;
}

.paper-scan {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: 22%;
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    rgba(255, 214, 107, 0),
    rgba(255, 214, 107, 0.28) 60%,
    rgba(255, 236, 170, 0.75) 94%,
    rgba(255, 214, 107, 0)
  );
  opacity: 0;
  pointer-events: none;
}

[data-step='4'] .paper-scan {
  animation: sweep 1.3s ease-in-out 0.35s infinite;
}

@keyframes sweep {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(355%);
  }
}

.is-flashing .paper {
  animation: page-flash 0.5s ease-out;
}

@keyframes page-flash {
  0% {
    filter: brightness(1);
  }
  15% {
    filter: brightness(1.7);
  }
  100% {
    filter: brightness(1);
  }
}

/* What the phone checks, ticked one after another. */
.checks {
  position: absolute;
  left: 0;
  right: 0;
  top: 84cqw;
  z-index: 7;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2.4cqw;
  pointer-events: none;
}

.checks li {
  display: inline-flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 1.4cqw 3cqw 1.4cqw 2cqw;
  border-radius: 99px;
  background: #123a3a;
  color: #7af3bd;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: max(0.8rem, 3.6cqw);
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.checks li::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: #7af3bd;
  color: #06261a;
  font-size: 0.8em;
}

[data-step='4'] .checks li {
  opacity: 1;
  transform: none;
}

[data-step='4'] .checks li:nth-child(1) {
  transition-delay: 0.7s;
}

[data-step='4'] .checks li:nth-child(2) {
  transition-delay: 1.1s;
}

[data-step='4'] .checks li:nth-child(3) {
  transition-delay: 1.5s;
}

.paper-svg,
.toy-svg {
  display: block;
  width: 100%;
  height: auto;
}

.paper-bg {
  fill: #fdfbf4;
}

.paper-lines path {
  stroke: #c9d6f2;
  stroke-width: 1;
  fill: none;
}

.paper-margin {
  stroke: #f3a4a4;
  stroke-width: 1.2;
  fill: none;
}

.hw path,
.hw-static path {
  fill: none;
  stroke: var(--brand-pen);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.hw-c,
.hw-static path:nth-child(-n + 4) {
  stroke-width: 1.7;
}

.hw path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition:
    stroke-dashoffset 0.16s linear var(--d, 0s),
    opacity 0s linear var(--d, 0s);
}

.s2 .hw .hw-c,
.s3 .hw .hw-w,
.hw.is-written path {
  stroke-dashoffset: 0;
  opacity: 1;
}

.paper-stamp {
  left: 46%;
  top: 60%;
  font-size: clamp(0.8rem, 2.6vw, 1.15rem);
  color: #0a7a52;
  background: rgba(221, 246, 234, 0.88);
  box-shadow: 0 0 0 2px #0a7a52;
}

/* Zeszycik reacting to each step */

.mascot-bubble {
  position: absolute;
  left: 62%;
  bottom: 92%;
  padding: 6px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transform-origin: left bottom;
  transition:
    opacity 0.2s ease,
    transform 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
  pointer-events: none;
}

.is-talking .mascot-bubble {
  opacity: 1;
  transform: none;
}

.spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #fffbe6 0 20%,
    rgba(255, 214, 107, 0.9) 40%,
    rgba(255, 194, 31, 0) 72%
  );
  pointer-events: none;
  animation: spark 0.9s ease-out forwards;
}

@keyframes spark {
  0% {
    transform: translate(0, 0) scale(0.4);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(1);
    opacity: 0;
  }
}

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

/* The chips wrap into rows; the pause button stays beside them. */
.scene-controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.scene-steps {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 26rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.scene-steps button,
.scene-pause {
  white-space: nowrap;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--night-border);
  background: rgba(24, 33, 76, 0.75);
  color: var(--night-ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.scene-steps button[aria-current='step'] {
  background: var(--night-primary);
  border-color: var(--night-primary);
  color: var(--night-on-primary);
}

.scene-pause {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 40px;
  padding: 0;
  background: transparent;
}

.pause-icon {
  width: 12px;
  height: 14px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.scene-pause.is-paused .pause-icon {
  width: 0;
  height: 0;
  border-right: 0;
  border-left: 13px solid currentColor;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
}

.no-js .scene-controls {
  display: none;
}

.scene-caption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--night-ink-muted);
}

/* ---------- details (film description, FAQ, needs) ---------- */
details {
  border-radius: 16px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

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

summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(225deg) translate(-3px, -3px);
}

.details-body {
  padding: 0 18px 16px;
}

.details-body > :last-child {
  margin-bottom: 0;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-top: 10px;
}

.night figcaption {
  color: var(--night-ink-muted);
}

/* ---------- the promo films (one right after the hero): a rounded 9:16 card, not a phone ---------- */
.film-band {
  padding: 24px 0 80px;
  background: linear-gradient(
    180deg,
    var(--night-bottom) 0%,
    var(--night-middle) 45%,
    var(--night-bottom) 100%
  );
}

/* The glows sit lower than in the hero, so the night runs on without a seam. */
.film-band::before {
  inset: 10% -30% -10%;
}

.film-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'head'
    'player'
    'about';
  gap: 28px;
}

.film-head {
  grid-area: head;
  max-width: 34rem;
}

.film-head h2 {
  color: var(--night-ink);
}

.film-line {
  margin: 0;
  color: var(--night-ink-muted);
  font-size: 1.15rem;
}

.film-player {
  grid-area: player;
  justify-self: center;
  /* Never taller than the screen: the whole film stays in view with its controls. */
  width: min(100%, max(240px, min(360px, calc((100vh - 150px) * 9 / 16))));
}

@supports (height: 100svh) {
  .film-player {
    width: min(100%, max(240px, min(360px, calc((100svh - 150px) * 9 / 16))));
  }
}

.film-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--night-bottom);
  border: 1px solid var(--night-border);
  box-shadow:
    0 30px 70px -30px rgba(0, 0, 0, 0.85),
    0 24px 90px -34px rgba(255, 200, 90, 0.5);
}

.film-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--night-bottom);
}

/* The whole poster is the play button; the pill says what happens. */
.film-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px 10%;
  border: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 31, 0.6) 100%);
  color: var(--night-on-primary);
  font: inherit;
  cursor: pointer;
}

.film-play[hidden] {
  display: none;
}

.film-play:focus-visible {
  outline: 3px solid var(--night-focus);
  outline-offset: -6px;
  border-radius: var(--radius-lg);
}

.film-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffeaa6 0%, var(--night-primary) 55%, #ffad3b 100%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
  box-shadow: 0 0 34px -6px rgba(255, 200, 90, 0.8);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.film-play:hover .film-play-pill {
  transform: scale(1.04);
  box-shadow: 0 0 44px -4px rgba(255, 200, 90, 0.95);
}

.film-play-pill svg {
  width: 26px;
  height: 26px;
}

.film-versions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.film-versions[hidden] {
  display: none;
}

.film-versions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(241, 243, 253, 0.35);
  background: transparent;
  color: var(--night-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.film-versions button:hover {
  border-color: var(--night-glow);
}

/* The chosen version: a dot as well as the colour, so the state is not told by colour alone. */
.film-versions button[aria-pressed='true'] {
  background: var(--night-raised);
  border-color: var(--night-glow);
  color: var(--night-glow);
}

.film-versions button[aria-pressed='true']::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.film-error {
  margin: 12px 0 0;
  text-align: center;
  color: var(--night-ink-muted);
  font-size: 0.95rem;
}

.film-about {
  grid-area: about;
  max-width: 34rem;
}

.film-band details {
  background: color-mix(in srgb, var(--night-raised) 72%, transparent);
  border-color: var(--night-border);
  color: var(--night-ink);
}

.film-about ol,
.film-about ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
  font-size: 0.95rem;
}

.film-about li + li {
  margin-top: 6px;
}

/* While the film plays, the fireflies around it rest. */
.film-band.is-playing .fireflies span {
  animation-play-state: paused;
}

@media (min-width: 900px) {
  .film-band {
    padding: 64px 0 96px;
  }

  .film-grid {
    grid-template-columns: auto minmax(0, 34rem);
    grid-template-areas:
      'player .'
      'player head'
      'player about'
      'player .';
    grid-template-rows: 1fr auto auto 1fr;
    justify-content: center;
    column-gap: 72px;
    row-gap: 24px;
  }

  .film-player {
    align-self: start;
    width: max(240px, min(360px, calc((100vh - 150px) * 9 / 16)));
  }

  @supports (height: 100svh) {
    .film-player {
      width: max(240px, min(360px, calc((100svh - 150px) * 9 / 16)));
    }
  }
}

/* The second film ("Światło za pracę"): upright on a phone, the wide cut on a computer. */
.film-light {
  padding-top: 72px;
}

@media (min-width: 900px) {
  .film-light .film-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'head'
      'player'
      'about';
    grid-template-rows: none;
    justify-items: center;
    row-gap: 28px;
  }

  .film-light .film-head {
    max-width: 40rem;
    text-align: center;
  }

  .film-light .film-player {
    width: min(100%, 960px, calc((100vh - 150px) * 16 / 9));
  }

  @supports (height: 100svh) {
    .film-light .film-player {
      width: min(100%, 960px, calc((100svh - 150px) * 16 / 9));
    }
  }

  .film-light .film-frame {
    aspect-ratio: 16 / 9;
  }

  .film-light .film-about {
    width: 100%;
    max-width: 40rem;
  }
}

/* ---------- before → after evening ---------- */
.evening {
  background: linear-gradient(
    180deg,
    var(--sky-top) 0%,
    var(--sky-middle) 45%,
    var(--surface) 100%
  );
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.qa {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
}

.qa-q {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--ink);
}

.qa-q::before {
  content: '?';
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--parent-tint);
  color: var(--parent);
  font-size: 0.95rem;
}

.qa-a {
  margin: 0;
  padding-left: 36px;
  color: var(--ink);
}

/* ---------- kids ---------- */
.kids-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 590px);
  gap: 56px;
  align-items: center;
}

.kids h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

.kids-intro {
  margin: 0;
  font-size: 1.15rem;
  color: var(--night-ink-muted);
  max-width: 34rem;
}

/* The breath after "kolejna aplikacja od rodziców", then the turn. */
.kids-turn {
  margin: 1.4em 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--night-glow);
  text-shadow: 0 0 24px rgba(255, 214, 107, 0.4);
}

/* Who this part is for, said by Zeszycik. */
.kids-hello {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0 14px;
}

.kids-hello img {
  flex: none;
  width: 56px;
  height: 56px;
}

.kids-hello-bubble {
  position: relative;
  padding: 8px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--night-raised);
  border: 1px solid var(--night-border);
  color: var(--night-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
}

.kid-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kid-points li {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--night-raised) 72%, transparent);
  border: 1px solid var(--night-border);
}

.kid-points h3 {
  margin-bottom: 4px;
  font-size: 1.12rem;
  color: var(--night-glow);
}

.kid-points p {
  margin: 0;
  color: var(--night-ink);
  font-size: 0.98rem;
}

.toy {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #25307a 0%, #18214c 55%, #121a40 100%);
  border: 1px solid var(--night-border);
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.8),
    0 0 90px -30px rgba(255, 200, 90, 0.35);
}

.toy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.toy-balance small {
  display: block;
  color: var(--night-ink-muted);
  font-size: 0.92rem;
}

.toy-balance b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 3.4rem);
  line-height: 1.05;
  color: var(--night-ink);
  transition: color 0.3s ease;
}

.toy-balance b .unit {
  font-size: 0.45em;
}

.toy-balance.is-bumped b {
  color: var(--night-glow);
  animation: bump 0.45s cubic-bezier(0.2, 1.5, 0.4, 1);
}

@keyframes bump {
  40% {
    transform: scale(1.12);
  }
}

.toy-balance b {
  transform-origin: left center;
}

.toy-mascot {
  width: 88px;
  height: auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 107, 0.45), transparent 68%);
}

.toy-paper {
  position: relative;
  border-radius: 8px;
  transform: rotate(-1.5deg);
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.7);
}

.toy-stamp {
  right: 6%;
  bottom: 10%;
  font-size: 1.1rem;
  color: #0a7a52;
  background: rgba(221, 246, 234, 0.9);
  box-shadow: 0 0 0 2px #0a7a52;
}

.toy.is-passed .toy-stamp {
  opacity: 1;
  transform: rotate(-11deg) scale(1);
}

.toy-ff {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.toy-formation {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  aspect-ratio: 17 / 7;
  transform: translate(-50%, -50%);
}

.toy-ff .ffd {
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
}

.toy-ff.is-formed .ffd {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.toy-ff.is-flying .ffd {
  opacity: 0;
  transform: translate(var(--fx, 0), var(--fy, -120px)) scale(0.25);
  transition:
    transform 0.6s cubic-bezier(0.5, 0, 0.7, 0.4) var(--d2, 0s),
    opacity 0.2s ease calc(var(--d2, 0s) + 0.45s);
}

.toy-task {
  margin: 16px 0 12px;
  color: var(--night-ink-muted);
  font-size: 0.98rem;
}

.toy-button {
  width: 100%;
}

.no-js .toy-button,
.no-js .toy-note {
  display: none;
}

.toy-note {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--night-ink-muted);
}

.kids-cta {
  margin: 36px 0 0;
  text-align: center;
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  position: relative;
  padding: 22px 24px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow);
}

.step img {
  width: 88px;
  height: 88px;
  margin-bottom: 6px;
}

.step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.step p {
  margin-bottom: 0;
}

.rule-note {
  margin: 20px 0 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--attention-tint);
  color: var(--ink);
  max-width: 46rem;
}

/* ---------- subjects ---------- */

.subjects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.subject {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--tint);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.subject h3 {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.subject h3::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 60%);
  flex: none;
}

.subject p {
  margin-bottom: 0;
}

.subject-polish {
  --accent: var(--accent-rose);
  --tint: var(--accent-rose-tint);
}

.subject-maths {
  --accent: var(--accent-amber);
  --tint: var(--accent-amber-tint);
}

.subject-science {
  --accent: var(--accent-mint);
  --tint: var(--accent-mint-tint);
}

.subject-english {
  --accent: var(--accent-violet);
  --tint: var(--accent-violet-tint);
}

/* ---------- parents: cards with a cropped phone (bento grid) ---------- */

/* ---------- parents ---------- */

.needs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  counter-reset: need;
}

.needs li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  counter-increment: need;
}

.needs li::before {
  content: counter(need);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--parent-tint);
  color: var(--parent);
  font-family: var(--font-display);
  font-weight: 800;
}

.needs li p {
  margin: 0;
}

.needs .need-title {
  font-weight: 700;
}

.needs-block .source-note {
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* ---------- privacy ---------- */
.sunken {
  background: var(--surface-sunken);
}

.privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.privacy-list li {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
}

.privacy-list h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.privacy-list p {
  margin: 0;
  font-size: 0.98rem;
}

.after-list {
  margin-top: 22px;
}

/* ---------- invitation ---------- */

/* ---------- blocking and permissions ---------- */

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.faq-list {
  max-width: 50rem;
}

/* ---------- contact / about ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.about-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
}

.about-card dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
}

.about-card dt {
  font-weight: 700;
}

.about-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* ---------- investors summary card (investor page only) ---------- */
.investors-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
}

.investors-summary .investors-copy h2 {
  margin-top: 4px;
}

.investors-copy p {
  color: var(--ink-muted);
}

.investors-stats {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.investors-stats li {
  display: grid;
  gap: 2px;
  padding-left: 16px;
  border-left: 3px solid var(--border-subtle);
}

.investors-stats strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
}

.investors-stats span {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

@media (max-width: 760px) {
  .investors-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
  }
}

/* ---------- the child's own card colours (ADR 0157 point 55) ---------- */
.kids-card-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
  gap: 40px;
  align-items: center;
  margin-top: 56px;
  padding: 32px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--night-border);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 32, 72, 0.22), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(108, 40, 255, 0.28), transparent 60%),
    var(--night-raised);
}

.kids-card-kicker {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night-glow);
}

.kids-card-copy h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  color: var(--night-ink);
}

.kids-card-copy p {
  margin: 0;
  max-width: 30rem;
  font-size: 1.1rem;
  color: var(--night-ink-muted);
}

.kids-card-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  align-items: start;
}

.kids-card-tiles li {
  display: grid;
  gap: 8px;
  margin: 0;
}

.kids-card-tiles img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--night-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* The minutes card is cut to its own edges: its rounded corners are the tile's corners. */
.kids-card-tiles img.tile-card {
  border: 0;
  border-radius: 28px;
}

.kids-card-tiles img.tile-panel {
  border: 0;
  border-radius: 22px;
}

.kids-card-tiles img.tile-plain {
  border: 0;
}

.kids-card-tiles span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--night-ink-muted);
}

.kids-card-shot {
  margin: 0;
}

@media (max-width: 760px) {
  .kids-card-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }

  .kids-card-shot {
    max-width: 260px;
    margin: 0 auto;
  }

  .kids-card-tiles {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .kids-card-tiles li:first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- footer ---------- */
.site-footer {
  padding: 40px 0 48px;
  background: var(--surface-sunken);
  font-size: 0.98rem;
}

.site-footer .wrap {
  display: grid;
  gap: 18px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 700;
}

.footer-owner {
  color: var(--ink-muted);
  margin: 0;
}

.hero .hero-overline {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--night-glow);
  text-shadow: 0 0 24px rgba(255, 214, 107, 0.45);
}

.slogan {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.3;
  margin: 0 0 8px;
  max-width: 30rem;
  color: var(--night-ink);
}

/* The slogan sits under the headline: smaller and quieter than it (ADR 0157 point 53). */
.hero .slogan {
  margin-bottom: 18px;
  max-width: 34rem;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.25;
  color: var(--night-ink-muted);
}

.hero .hero-lead {
  max-width: 32rem;
  margin: 0 0 4px;
  font-size: 1.08rem;
  line-height: 1.5;
}

/* The SolidLogic logo is made for a black background, so it always sits on one. */
.developer-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: #0b1220;
}

.developer-logo {
  display: block;
  width: auto;
  height: 28px;
}

.footer-developer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ink-muted);
}

.footer-developer .developer-logo {
  height: 24px;
}

/* The facts card is shorter than the message card next to it: centre it vertically. */
.about-card-facts {
  display: flex;
  align-items: center;
}

.about-card-facts dl {
  align-items: center;
  row-gap: 12px;
}

.hero-body {
  padding-top: 22px;
}

.scene-says {
  margin: 16px 0 0;
  min-height: 1.4em;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--night-glow);
}

/* ---------- evening: before (grey) and after (warm light) ---------- */
.before-after {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: stretch;
}

.ba {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.ba p {
  margin: 0;
}

.ba-before {
  align-self: start;
  background: #e4e1ec;
  color: #4a4864;
}

.ba-after {
  background:
    radial-gradient(90% 70% at 80% 0%, rgba(255, 214, 107, 0.55), transparent 60%),
    linear-gradient(170deg, #fff3e3 0%, #ffe7cf 45%, #fff8ee 100%);
  border: 1px solid #ffd9a8;
  box-shadow:
    0 0 0 8px rgba(255, 220, 160, 0.35),
    0 30px 60px -28px rgba(214, 140, 40, 0.55);
  color: var(--ink);
}

.ba-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 14px !important;
}

.ba-before .ba-label {
  color: #4a4864;
}

.talk {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.talk li {
  max-width: 88%;
  padding: 9px 14px;
  border-radius: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.talk-kid {
  justify-self: start;
  border-bottom-left-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.talk-parent {
  justify-self: end;
  border-bottom-right-radius: 6px;
  background: #cfcade;
  color: var(--ink);
}

.talk-glow {
  background: #fff;
  box-shadow: 0 0 0 2px #ffc94d;
}

.ba-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.ba-paper {
  position: relative;
  transform: rotate(-3deg);
  border-radius: 8px;
  box-shadow: 0 14px 26px -14px rgba(120, 70, 10, 0.55);
}

.ba-paper svg {
  display: block;
  width: 100%;
  height: auto;
}

.ba-stamp {
  right: 4%;
  bottom: -8%;
  font-size: clamp(0.8rem, 2.4vw, 1rem);
  color: #0a7a52;
  background: rgba(221, 246, 234, 0.92);
  box-shadow: 0 0 0 2px #0a7a52;
  opacity: 1;
  transform: rotate(-11deg);
}

.ba-plus {
  position: absolute;
  right: 4px;
  top: -22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: #b86f00;
  text-shadow: 0 0 18px rgba(255, 200, 80, 0.9);
}

.ba-mascot {
  width: 128px;
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(180, 110, 0, 0.3));
}

.tea {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px !important;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.15;
  color: #6a3d00;
}

.mug {
  flex: none;
  width: 58px;
  height: 58px;
  overflow: visible;
}

.mug-body {
  fill: #fff;
  stroke: #6a3d00;
  stroke-width: 2.5;
}

.mug-handle {
  fill: none;
  stroke: #6a3d00;
  stroke-width: 2.5;
}

.mug-plate {
  fill: rgba(106, 61, 0, 0.15);
}

.steam {
  fill: none;
  stroke: #c98a2b;
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.7;
  animation: steam 3s ease-in-out infinite;
}

.s-2 {
  animation-delay: 0.6s;
}

.s-3 {
  animation-delay: 1.2s;
}

@keyframes steam {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  40% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.evening-rule {
  margin: 28px 0 6px;
  text-align: center;
  font-size: 1.12rem;
  color: var(--ink-muted);
}

.evening-line {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.15;
  color: var(--primary);
}

/* ---------- how it works (compact, tied to the hero loop) ---------- */
.how .section-head {
  margin-bottom: 24px;
}

.more {
  margin-top: 18px;
}

.more ul {
  margin: 0;
  padding-left: 1.2em;
}

.how .muted {
  margin: 16px 0 0;
}

/* ---------- kids: copy, toy and one real screen ---------- */
.kids-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: end;
}

.kids-shot .phone {
  padding: 6px;
  border-radius: 30px;
}

.toy-mascot-button {
  position: relative;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
}

.toy-mascot-button .mascot-bubble {
  left: auto;
  right: 70%;
  bottom: 86%;
  border-radius: 14px 14px 4px 14px;
  transform-origin: right bottom;
}

/* ---------- parents: four benefits with clean visuals, one real phone ---------- */
.parents-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 36px;
  align-items: start;
}

.parents-shot {
  position: sticky;
  top: 96px;
}

.benefits {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.benefit {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow);
}

.benefit h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.benefit p {
  margin-bottom: 0;
}

.benefit .qa {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 0;
}

.benefit .qa-q {
  font-size: 1.02rem;
}

.benefit .qa-a {
  font-size: 0.97rem;
}

.benefit-visual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 112px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--parent-tint);
}

.bv-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-raised);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
}

.bv-pill-glow {
  background: var(--primary);
  color: var(--on-primary);
}

.bv-arrow {
  width: 22px;
  height: 2px;
  background: var(--primary);
  position: relative;
}

.bv-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  border-left: 7px solid var(--primary);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.bv-chip {
  flex-basis: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--success);
}

.bv-chip::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success-tint);
}

.bv-btn {
  padding: 7px 12px;
  border-radius: 12px;
  background: var(--surface-raised);
  font-weight: 700;
  font-size: 0.95rem;
}

.bv-btn-main {
  background: var(--primary);
  color: var(--on-primary);
}

.bv-work {
  flex-wrap: nowrap;
  gap: 12px;
}

.bv-photo {
  flex: 1 1 0;
  min-width: 0;
}

.bv-photo svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 16px -10px rgba(44, 36, 104, 0.6);
}

.bv-photo figcaption {
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}

.bv-lock {
  gap: 8px;
}

.bv-app {
  position: relative;
  padding: 10px 14px 10px 36px;
  border-radius: 14px;
  background: var(--surface-raised);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.bv-app::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 50%;
  width: 12px;
  height: 9px;
  margin-top: -2px;
  border-radius: 2px;
  background: var(--ink-muted);
}

.bv-app::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 50%;
  width: 8px;
  height: 7px;
  margin-top: -8px;
  border: 2px solid var(--ink-muted);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.bv-lock-label {
  flex-basis: 100%;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-text);
}

/* ---------- permissions ---------- */
.perm-rows {
  display: grid;
  gap: 14px;
  max-width: 52rem;
}

.perm-row {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
}

.perm-head {
  margin: 0;
}

.perm-row .more {
  margin-top: 10px;
  background: var(--surface);
}

.perm-row dt {
  font-weight: 700;
  margin-top: 10px;
}

.perm-row dd {
  margin: 2px 0 0;
  color: var(--ink-muted);
}

/* ---------- invitation extras ---------- */

.invite .mug-body {
  fill: #fff7e6;
  stroke: var(--night-glow);
}

.invite .mug-handle {
  stroke: var(--night-glow);
}

.invite .mug-plate {
  fill: rgba(255, 214, 107, 0.25);
}

.invite .steam {
  stroke: #ffe7a8;
}

/* ---------- invitation: the evening as the headline, dawn breaking into the night ---------- */
.invite {
  padding: 96px 0 88px;
  text-align: center;
}

.dawn {
  position: absolute;
  left: 50%;
  top: 34%;
  z-index: -1;
  width: 150%;
  max-width: 1500px;
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 214, 160, 0.55) 0%,
    rgba(255, 170, 110, 0.28) 40%,
    rgba(120, 90, 200, 0.12) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.invite-inner {
  position: relative;
  max-width: 54rem;
}

.invite-art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 18px;
}

.invite-mascot {
  width: 112px;
  height: auto;
  filter: drop-shadow(0 0 26px rgba(255, 214, 107, 0.55));
}

.invite-art .mug {
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
}

.invite-eyebrow {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--night-ink-muted);
}

.invite h2 {
  max-width: 46rem;
  margin: 0 auto 18px;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  color: var(--night-glow);
  text-shadow: 0 0 34px rgba(255, 214, 107, 0.45);
}

.invite-sub {
  margin: 0 auto 10px;
  font-size: 1.2rem;
  color: var(--night-ink);
}

.invite .slogan {
  margin: 0 auto 30px;
}

.invite-action {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.invite-button {
  position: relative;
  min-height: 64px;
  padding: 0 40px;
  font-size: 1.3rem;
  border-radius: 20px;
  transition:
    transform 0.15s ease,
    box-shadow 0.6s ease;
}

.night .invite-button.is-lit {
  box-shadow:
    0 0 0 1px rgba(255, 214, 107, 0.5),
    0 0 60px 6px rgba(255, 200, 90, 0.55),
    0 14px 36px -10px rgba(255, 180, 60, 0.7);
}

.invite-calm {
  max-width: 30rem;
  margin: 0;
  font-weight: 700;
  color: var(--night-ink);
}

.invite-who {
  margin: 0;
  color: var(--night-ink-muted);
}

.invite-next {
  margin: 40px auto 0;
  text-align: left;
}

.invite-next h3 {
  margin-bottom: 12px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--night-ink-muted);
}

.invite-next ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  counter-reset: next;
}

.invite-next li {
  position: relative;
  padding: 12px 14px 12px 50px;
  border-radius: var(--radius);
  background: rgba(24, 33, 76, 0.55);
  font-size: 0.95rem;
  color: var(--night-ink-muted);
  counter-increment: next;
}

.invite-next li::before {
  content: counter(next);
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 201, 77, 0.2);
  color: var(--night-glow);
  font-family: var(--font-display);
  font-weight: 800;
}

.invite .fine-print {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--night-ink-muted);
}

/* fireflies that drift together into the button's glow */
.gather {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.gather i {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #fffbe6 0 18%,
    rgba(255, 228, 138, 0.95) 32%,
    rgba(255, 200, 60, 0.3) 58%,
    rgba(255, 194, 31, 0) 74%
  );
  opacity: 0.8;
  transform: translate(0, 0);
  transition: transform var(--t, 2.4s) cubic-bezier(0.45, 0.05, 0.25, 1) var(--d, 0s);
  animation: blink var(--b, 4s) ease-in-out infinite;
}

.gather.is-gathered i {
  transform: translate(var(--gx, 0), var(--gy, 0));
}

.invite-inner > *:not(.invite-action) {
  position: relative;
  z-index: 0;
}

.invite-action {
  position: relative;
  z-index: 2;
}

/* benefits as rows: picture on the left, words on the right */
.benefit {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  column-gap: 26px;
  align-items: start;
}

.benefit > * {
  grid-column: 2;
}

.benefit > .benefit-visual {
  grid-column: 1;
  grid-row: 1 / span 4;
  align-self: stretch;
  align-content: center;
  margin-bottom: 0;
}

/* ---------- the page warms toward the ending ---------- */
#privacy {
  background: linear-gradient(180deg, var(--surface-sunken) 0%, #f7e7e4 60%, #fbe6d6 100%);
}

/* ---------- small additions ---------- */
.kids-idea {
  max-width: 34rem;
  margin: 14px auto 0;
  text-align: center;
  color: var(--night-ink-muted);
}

.kids-idea b {
  color: var(--night-glow);
}

.benefit .bv-decide {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.quiet {
  margin-top: 14px !important;
  font-style: normal;
  color: #6a3d00;
}

.tea-cold {
  color: #55536c;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.mug-cold .mug-body {
  fill: #f1eff6;
  stroke: #77748f;
}

.mug-cold .mug-handle {
  stroke: #77748f;
}

.mug-cold .mug-plate {
  fill: rgba(85, 83, 108, 0.15);
}

/* ---------- the desk story (Jak to działa): sticky scene, beats scroll past ---------- */
.story .section-head {
  margin-bottom: 8px;
}

.story h2 {
  color: var(--night-ink);
}

.story .wrap {
  max-width: 1320px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 0.75fr);
  gap: 40px;
  align-items: start;
}

.story-stage {
  position: sticky;
  top: max(84px, calc(50vh - 22vw));
  z-index: 2;
}

.desk {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  container-type: inline-size;
  background: linear-gradient(180deg, #0c1233 0%, #121a45 38%, #1a1840 40%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.desk-window {
  position: absolute;
  right: 6cqw;
  top: 4cqw;
  width: 26cqw;
  height: 20cqw;
  border-radius: 1.5cqw;
  border: 0.8cqw solid #2a2f5e;
  background:
    radial-gradient(1.2cqw 1.2cqw at 30% 30%, #fff6d8 40%, transparent 60%),
    radial-gradient(0.8cqw 0.8cqw at 70% 55%, #fff6d8 40%, transparent 60%),
    radial-gradient(0.6cqw 0.6cqw at 52% 20%, #fff6d8 40%, transparent 60%),
    radial-gradient(6cqw 6cqw at 80% 25%, #fff3c4 0 35%, rgba(255, 243, 196, 0) 60%),
    linear-gradient(180deg, #0a1030, #1a2462);
}

.desk-window::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 0.8cqw;
  margin-left: -0.4cqw;
  background: #2a2f5e;
}

.desk-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  bottom: 0;
  background:
    radial-gradient(52cqw 26cqw at 40% 48%, rgba(255, 200, 120, 0.7), rgba(255, 190, 110, 0) 72%),
    repeating-linear-gradient(178deg, rgba(0, 0, 0, 0.06) 0 0.6cqw, transparent 0.6cqw 2.2cqw),
    linear-gradient(180deg, #6b4428 0%, #4a2d19 60%, #3a2213 100%);
  box-shadow: inset 0 0.6cqw 0 rgba(255, 220, 170, 0.25);
}

.lamp {
  position: absolute;
  left: 3cqw;
  top: 4cqw;
  z-index: 3;
  width: 20cqw;
  height: auto;
  overflow: visible;
}

.lamp-arm {
  fill: none;
  stroke: #2c2f55;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lamp-base {
  fill: #2c2f55;
}

.lamp-shade {
  fill: #ffc94d;
  stroke: #b8860b;
  stroke-width: 1.5;
}

.lamp-bulb {
  fill: #fff7d6;
  filter: drop-shadow(0 0 6px #ffe08a);
}

.light-cone {
  position: absolute;
  left: -6cqw;
  top: 2cqw;
  z-index: 1;
  width: 86cqw;
  height: 76cqw;
  background:
    radial-gradient(18cqw 14cqw at 22% 14%, rgba(255, 236, 180, 0.65), rgba(255, 220, 140, 0) 70%),
    radial-gradient(
      60% 55% at 46% 62%,
      rgba(255, 196, 110, 0.38),
      rgba(255, 180, 90, 0.12) 55%,
      rgba(255, 170, 80, 0) 75%
    );
  pointer-events: none;
}

.desk-paper {
  position: absolute;
  left: 12cqw;
  top: 35cqw;
  z-index: 2;
  width: 56cqw;
  border-radius: 0.8cqw;
  transform: rotate(-4deg);
  box-shadow: 0 2cqw 3cqw -1.5cqw rgba(30, 15, 0, 0.7);
}

.desk-paper svg {
  display: block;
  width: 100%;
  height: auto;
}

.desk .paper-bg {
  fill: #fff6e2;
}

.desk-paper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    80% 90% at 30% 20%,
    rgba(255, 210, 130, 0.28),
    rgba(255, 200, 120, 0) 70%
  );
  pointer-events: none;
}

.b1 .hw .hw-c,
.b2 .hw .hw-w {
  stroke-dashoffset: 0;
  opacity: 1;
}

.story.night {
  overflow: clip;
}

.desk-stamp {
  left: 50%;
  top: 62%;
  font-size: 3.4cqw;
  color: #0a7a52;
  background: rgba(221, 246, 234, 0.9);
  box-shadow: 0 0 0 0.35cqw #0a7a52;
}

.b4 .desk-stamp {
  opacity: 1;
  transform: rotate(-11deg) scale(1);
}

.pen {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 26cqw;
  height: auto;
  transform-origin: 0 50%;
  transform: translate(62cqw, 70cqw) rotate(-28deg);
  transition: transform 0.6s cubic-bezier(0.3, 0.8, 0.3, 1);
  filter: drop-shadow(0 1cqw 0.8cqw rgba(0, 0, 0, 0.45));
}

.pen-tip {
  fill: #c9d2e6;
}

.pen-body {
  fill: var(--brand-pen);
}

.pen-clip {
  fill: #c9d2e6;
}

.pen-cap {
  fill: #1d3480;
}

.b1 .pen {
  transform: translate(60cqw, 39cqw) rotate(-38deg);
}

.b2 .pen {
  animation: pen-write 1.3s linear forwards;
}

.b3 .pen {
  animation: none;
  transform: translate(64cqw, 69cqw) rotate(-20deg);
}

@keyframes pen-write {
  0% {
    transform: translate(16cqw, 56cqw) rotate(-38deg);
  }
  100% {
    transform: translate(63cqw, 53cqw) rotate(-38deg);
  }
}

.desk-phone {
  position: absolute;
  left: 71cqw;
  top: 30cqw;
  z-index: 4;
  width: 23cqw;
  padding: 0.8cqw;
  border-radius: 3.4cqw;
  background: linear-gradient(145deg, #2a3156, #0b0f22 60%, #20264a);
  transform: rotate(6deg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2.5cqw 4cqw -1.5cqw rgba(0, 0, 0, 0.8);
  container-type: inline-size;
}

.dp-screen {
  position: relative;
  aspect-ratio: 600 / 1169;
  border-radius: 2.6cqw;
  overflow: hidden;
  background: #0d1538;
}

.dp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
}

[data-screen='task'] .dp-task,
[data-screen='check'] .dp-task,
[data-screen='passed'] .dp-passed,
[data-screen='spend'] .dp-spend {
  opacity: 1;
}

.dp-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18%;
  background: linear-gradient(
    180deg,
    rgba(255, 214, 107, 0),
    rgba(255, 240, 190, 0.55) 90%,
    rgba(255, 214, 107, 0)
  );
  opacity: 0;
  pointer-events: none;
}

[data-screen='check'] .dp-scan {
  animation: scan 1.1s ease-in-out infinite;
}

/* The target the fireflies fly into: the balance line of the "Zaliczone" screen. */
.dp-bal {
  position: absolute;
  left: 17%;
  width: 66%;
  top: 90.6%;
  height: 4.4%;
  border-radius: 99px;
  opacity: 0;
  box-shadow:
    0 0 0 3cqw rgba(255, 214, 107, 0.5),
    0 0 12cqw 2cqw rgba(255, 214, 107, 0.5);
  transition: opacity 0.3s ease;
}

.dp-bal.is-up {
  opacity: 1;
}

.dm {
  position: absolute;
  left: 2cqw;
  bottom: 1cqw;
  z-index: 4;
  width: 17cqw;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

[data-mood='pisze'] .dm-pisze,
[data-mood='czekam'] .dm-czekam,
[data-mood='gotowe'] .dm-gotowe,
[data-mood='mrug'] .dm-mrug {
  opacity: 1;
}

.desk-ff {
  position: absolute;
  left: 18cqw;
  top: 13cqw;
  z-index: 5;
  width: 40cqw;
  aspect-ratio: 17 / 7;
  pointer-events: none;
}

.desk-ff .ffd {
  width: 2.8cqw;
  height: 2.8cqw;
  margin: -1.4cqw 0 0 -1.4cqw;
}

.desk-ff.is-formed .ffd {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.desk-ff.is-flying .ffd {
  opacity: 0;
  transform: translate(var(--fx, 0), var(--fy, 0)) scale(0.35);
  transition:
    transform 0.95s cubic-bezier(0.45, 0, 0.6, 0.5) var(--d2, 0s),
    opacity 0.25s ease calc(var(--d2, 0s) + 0.8s);
}

.desk-flash {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.desk.is-flashing .desk-flash {
  animation: flash 0.5s ease-out;
}

.story-beats {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  border-left: 2px solid rgba(255, 214, 107, 0.18);
}

.beat {
  position: relative;
}

.beat::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--night-border);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.beat.is-active::before {
  background: var(--night-glow);
  box-shadow: 0 0 14px 3px rgba(255, 214, 107, 0.6);
}

.beat {
  display: flex;
  align-items: center;
  min-height: 62vh;
}

.beat p {
  margin: 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(24, 33, 76, 0.72);
  border: 1px solid var(--night-border);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  color: var(--night-ink);
  opacity: 0.45;
  transition:
    opacity 0.3s ease,
    border-color 0.3s ease;
}

.beat.is-active p {
  opacity: 1;
  border-color: var(--night-glow);
}

.beat:first-child {
  min-height: 52vh;
}

.beat:last-child {
  min-height: 70vh;
}

.story .more {
  margin-top: 0;
  background: rgba(24, 33, 76, 0.7);
  border-color: var(--night-border);
  color: var(--night-ink);
}

/* frames for viewers who prefer less motion (built by the script) */
.story-frames {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.story-frames figure .desk {
  border-radius: var(--radius);
}

.story-frames figcaption {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--night-ink);
}

.story-grid.is-static {
  display: block;
}

.story-grid.is-static .story-stage {
  position: static;
}

.story-grid.is-static .beat,
.story-grid.is-static .story-stage > .desk {
  display: none;
}

/* ---------- subjects as torn notebook strips ---------- */
.strips {
  gap: 22px 18px;
  align-items: start;
}

.strips .strip {
  position: relative;
  padding: 26px 18px 30px 30px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 18px, var(--accent) 18px 19.5px, transparent 19.5px),
    repeating-linear-gradient(#fdfbf4 0 27px, #c9d6f2 27px 28px);
  box-shadow: 0 14px 22px -14px rgba(44, 36, 104, 0.45);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% /
    12px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
}

.strips .strip:nth-child(odd) {
  transform: rotate(-1.4deg);
}

.strips .strip:nth-child(even) {
  transform: rotate(1.2deg);
}

.strips .strip-tag {
  position: absolute;
  left: 26px;
  top: -2px;
  margin: 0;
  padding: 3px 12px;
  background: color-mix(in srgb, var(--accent) 22%, #fff);
  color: var(--accent);
  font-size: 0.98rem !important;
  border-radius: 2px;
  transform: rotate(-2deg);
}

.strips .strip-tag::before {
  display: none;
}

.strips .strip-hand {
  margin: 16px 0 6px !important;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 28px;
  color: var(--brand-pen);
}

.strips .strip-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 28px;
  color: var(--ink-muted);
}

/* ---------- parents: progress, what else, what parents need (all open, no folding) ---------- */
.block-title {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.progress-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 36px;
  align-items: center;
  margin-top: 36px;
  padding: 30px 32px 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface-raised) 30%, var(--parent-tint) 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow);
}

.progress-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.progress-copy p {
  max-width: 34rem;
}

.progress-subjects {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-subjects li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 0.95rem;
}

.progress-subjects li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, var(--primary-text));
}

.ps-maths {
  --dot: #e8a200;
}

.ps-polish {
  --dot: var(--accent-rose);
}

.ps-science {
  --dot: var(--accent-mint);
}

.ps-english {
  --dot: var(--accent-violet);
}

/* A small echo of the app's week bars (light look): the newest week in the full colour. */
.progress-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 280px;
  height: 64px;
  margin-bottom: 14px;
}

.progress-bars i {
  flex: 1;
  border-radius: 5px;
  background: #d8d0f0;
}

.progress-bars i:nth-child(1) {
  height: 43%;
}
.progress-bars i:nth-child(2) {
  height: 57%;
}
.progress-bars i:nth-child(3) {
  height: 29%;
}
.progress-bars i:nth-child(4) {
  height: 71%;
}
.progress-bars i:nth-child(5) {
  height: 86%;
}
.progress-bars i:nth-child(6) {
  height: 57%;
}
.progress-bars i:nth-child(7) {
  height: 100%;
}

.progress-bars .now {
  height: 71%;
  background: var(--primary-text);
}

.progress-note {
  margin: 0;
  font-weight: 700;
  color: var(--ink-muted);
}

/* The phone rises from the bottom edge of the card: its top half shows the weekly view. */
.progress-shot {
  align-self: end;
  height: 400px;
  margin: 0;
  overflow: hidden;
}

.progress-copy {
  padding-bottom: 30px;
}

.progress-shot .phone {
  padding: 6px;
  border-radius: 34px;
}

.parents-shot figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.can-block,
.needs-block {
  margin-top: 44px;
}

.can-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.can {
  padding: 16px 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
}

.can h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.can p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--ink-muted);
}

.can-visual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 8px;
  min-height: 96px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 16px;
  background: var(--parent-tint);
}

.cv-timer,
.cv-until,
.cv-add,
.cv-task,
.cv-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-raised);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.cv-timer b {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
}

.cv-pause-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(93, 70, 217, 0.18);
}

.cv-pause-btn i {
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--on-primary);
}

.cv-back,
.cv-always,
.cv-phones {
  flex-basis: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.cv-back,
.cv-always {
  color: var(--success);
}

.cv-phones {
  color: var(--ink-muted);
}

/* An open padlock drawn with two boxes. */
.cv-lock {
  position: relative;
  width: 30px;
  height: 36px;
}

.cv-lock::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 22px;
  border-radius: 6px;
  background: var(--primary);
}

.cv-lock::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 0;
  width: 18px;
  height: 18px;
  border: 4px solid var(--primary);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.cv-until {
  background: var(--primary);
  color: var(--on-primary);
}

.cv-app::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--success);
}

.cv-usage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  gap: 6px;
}

.cv-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.cv-row i {
  height: 9px;
  border-radius: 5px;
  background: var(--primary-text);
}

.cv-row b {
  text-align: right;
  color: var(--ink);
}

.cv-row .cv-w2 {
  width: 60%;
}

.cv-row .cv-w3 {
  width: 20%;
}

.cv-assign {
  flex-direction: column;
}

/* The child's grade: a wide card under the others, a small grade list and the child's note side by side. */
.can-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.can-wide .can-visual {
  margin-bottom: 0;
}

.cv-grade {
  flex-wrap: nowrap;
  gap: 14px;
  padding: 16px;
}

.cvg-shot {
  flex: 0 0 auto;
  width: 170px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(22, 35, 63, 0.18);
}

.cvg-note {
  display: grid;
  gap: 4px;
  max-width: 230px;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-raised);
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--ink-muted);
}

.cvg-note b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.cv-add {
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
}

.cv-task {
  border-radius: 12px;
  font-family: var(--font-display);
}

.cv-person {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -12px;
  border-radius: 50%;
  border: 2px solid var(--parent-tint);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink);
}

.cv-person:first-child {
  margin-left: 0;
}

.cv-person:nth-child(1) {
  background: var(--accent-amber-tint);
}
.cv-person:nth-child(2) {
  background: var(--accent-rose-tint);
}
.cv-person:nth-child(3) {
  background: var(--accent-mint-tint);
}
.cv-person:nth-child(4) {
  background: #ffffff;
}
.cv-person:nth-child(5) {
  background: #ddd6fb;
}

.cv-family {
  gap: 0;
  row-gap: 8px;
}

.needs-block {
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
}

/* ---------- privacy: the cloud is the parents' choice ---------- */
.privacy-list .privacy-cloud {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-tint) 100%);
  border-color: #d3cbf3;
}

.privacy-cloud > * {
  grid-column: 2;
}

.privacy-cloud .cloud-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 56px;
  height: auto;
}

.cloud-icon path {
  fill: var(--parent-tint);
  stroke: var(--parent);
  stroke-width: 3;
  stroke-linejoin: round;
}

.cloud-icon .cloud-check {
  fill: none;
  stroke: var(--success);
  stroke-width: 4;
  stroke-linecap: round;
}

.privacy-cloud p {
  max-width: 52rem;
}

/* ---------- invitation: the thank-you for testers ---------- */
.invite-thanks {
  max-width: 30rem;
  margin: 0;
  color: var(--night-glow);
  font-weight: 700;
}

/* ---------- what we plan next ---------- */
.plans {
  background: #fbe6d6;
}

.plans .section-head p {
  color: #5a4060;
}

.plans-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  padding: 22px 22px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(176, 45, 114, 0.12);
}

.plan h3 {
  margin-bottom: 4px;
}

.plan p {
  margin: 0;
  color: var(--ink-muted);
}

.plan-art {
  width: 96px;
  height: 72px;
  margin-bottom: 12px;
}

.plan-art .pa-line,
.plan-art .pa-soft {
  fill: none;
  stroke: var(--plan, var(--parent));
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-art .pa-soft {
  stroke-width: 3;
  opacity: 0.4;
}

.plan-art .pa-fill {
  fill: var(--plan, var(--parent));
}

.plan-art .pa-fill-soft {
  fill: var(--plan-tint, var(--parent-tint));
}

.plan-move {
  --plan: var(--accent-mint);
  --plan-tint: var(--accent-mint-tint);
}

.plan-science {
  --plan: var(--accent-violet);
  --plan-tint: var(--accent-violet-tint);
}

.plan-home {
  --plan: var(--accent-rose);
  --plan-tint: var(--accent-rose-tint);
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .parents-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .parents-shot {
    position: static;
    width: min(260px, 100%);
    margin: 8px auto 0;
  }
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 20px 30px -20px rgba(27, 24, 56, 0.4);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 8px var(--gutter) 16px;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .no-js .site-nav {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    background: none;
    order: 3;
    width: 100%;
  }

  .no-js .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 0 8px;
  }

  .no-js .site-header .wrap {
    flex-wrap: wrap;
  }

  .no-js .menu-button {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      'head'
      'cta'
      'scene'
      'body';
  }

  .scene {
    margin-top: 28px;
  }

  .benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .story-stage {
    top: 70px;
    padding-bottom: 8px;
    background: linear-gradient(180deg, var(--night-middle) 85%, rgba(13, 21, 56, 0));
  }

  .story-beats {
    padding-left: 0;
    border-left: 0;
  }

  .beat::before {
    display: none;
  }

  .beat,
  .beat:first-child {
    min-height: 27vh;
    justify-content: center;
  }

  .beat:last-child {
    min-height: 36vh;
  }

  .strips {
    gap: 14px;
  }

  .strips .strip {
    padding: 22px 14px 22px 28px;
  }

  .strips .strip-hand {
    margin-top: 12px !important;
    font-size: 1.45rem;
  }

  .story-frames {
    grid-template-columns: minmax(0, 1fr);
  }

  .kids-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .subjects,
  .privacy-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toy {
    width: 100%;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .hero {
    padding: 20px 0 40px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero .hero-overline {
    font-size: 1.7rem;
    margin-bottom: 8px;
  }

  .slogan {
    font-size: 1.1rem;
  }

  .hero .slogan {
    margin-bottom: 12px;
    font-size: 1.2rem;
  }

  .hero .hero-lead {
    font-size: 0.98rem;
  }

  .hero-kicker {
    font-size: 0.98rem;
    margin-bottom: 8px;
  }

  .hero-note {
    font-size: 0.88rem;
  }

  .scene {
    max-width: 340px;
  }

  .scene-stage {
    aspect-ratio: 1 / 1.16;
  }

  .scene-phone {
    width: 58%;
  }

  .paper {
    --big-y: -15cqw;
    top: 40%;
    width: 48%;
  }

  .lead {
    font-size: 1.05rem;
  }

  .before-after,
  .benefits,
  .permissions,
  .about,
  .kid-points,
  .privacy-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ba {
    padding: 22px 18px;
  }

  .ba-visual {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .ba-mascot {
    width: 96px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    padding: 14px 16px;
  }

  .step img {
    width: 56px;
    height: 56px;
    grid-row: span 2;
    margin: 0;
  }

  .step h3 {
    margin-bottom: 2px;
  }

  .kid-points {
    gap: 8px;
  }

  .kid-points li {
    padding: 12px 14px;
  }

  .kids-side {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
  }

  .kids-shot figcaption {
    font-size: 0.8rem;
  }

  .toy {
    padding: 16px;
  }

  .benefit {
    display: block;
    padding: 18px;
  }

  .benefit > .benefit-visual {
    margin-bottom: 12px;
  }

  .benefit-visual {
    min-height: 0;
  }

  .invite {
    padding: 36px 0 48px;
  }

  .invite h2 {
    font-size: 1.95rem;
    margin-bottom: 12px;
  }

  .invite-art {
    margin-bottom: 10px;
  }

  .invite-mascot {
    width: 84px;
  }

  .invite-art .mug {
    width: 48px;
    height: 48px;
  }

  .invite-sub {
    font-size: 1.05rem;
  }

  .invite .slogan {
    margin-bottom: 20px;
  }

  .invite-button {
    width: 100%;
    min-height: 58px;
    padding: 0 16px;
    font-size: 1.15rem;
  }

  .invite-next ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .toc ol {
    columns: 1;
  }
  .hero-cta .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .hero-cta .button-primary {
    width: 100%;
  }

  .hero-secondary {
    min-height: 40px;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 0.95rem;
  }

  .scene-says {
    margin-top: 10px;
    font-size: 1.05rem;
  }

  .scene-controls {
    margin-top: 10px;
  }

  .scene-caption {
    font-size: 0.8rem;
  }

  .hero-facts {
    font-size: 0.9rem;
  }

  .talk {
    margin-bottom: 12px;
  }

  .evening-rule {
    margin-top: 20px;
    font-size: 1rem;
  }

  .tea {
    margin-top: 12px !important;
  }

  .mug {
    width: 46px;
    height: 46px;
  }

  .step p {
    font-size: 0.95rem;
  }

  .kid-points {
    gap: 0;
  }

  .kid-points li,
  .kid-points li:last-child {
    padding: 12px 0;
    border-radius: 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--night-border);
  }

  .kid-points h3 {
    font-size: 1.05rem;
  }

  .kid-points p {
    font-size: 0.95rem;
  }

  .kids-intro {
    font-size: 1.02rem;
  }

  .kids-cta {
    margin-top: 24px;
  }

  .subjects {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .subject {
    padding: 12px 16px;
    border-radius: var(--radius);
  }

  .subject h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }

  .subject p {
    font-size: 0.95rem;
  }

  .rule-note {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .benefits {
    gap: 12px;
  }

  .benefit-visual {
    padding: 12px;
    margin-bottom: 12px;
  }

  .bv-decide {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .bv-btn {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .benefit h3 {
    font-size: 1.15rem;
  }

  .benefit p,
  .benefit .qa-a {
    font-size: 0.95rem;
  }

  .privacy-list {
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
  }

  .privacy-list li {
    border: 0;
    border-radius: 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .privacy-list li:last-child {
    border-bottom: 0;
  }

  .privacy-list h3 {
    font-size: 1.02rem;
    margin-bottom: 2px;
  }

  .privacy-list p {
    font-size: 0.93rem;
  }

  .perm-rows {
    gap: 10px;
  }

  .perm-row {
    padding: 14px 16px;
  }

  .perm-head {
    font-size: 0.95rem;
  }

  summary {
    min-height: 46px;
    padding: 10px 16px;
    font-size: 1rem;
  }

  .about {
    gap: 12px;
  }

  .about-card {
    padding: 16px 18px;
  }

  .about-card dl {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 2px 12px;
    font-size: 0.95rem;
  }

  .about-card dd {
    margin-bottom: 0;
  }

  .about-card h3 {
    font-size: 1.1rem;
  }

  .about-card p {
    font-size: 0.95rem;
  }

  .site-footer {
    padding: 28px 0 36px;
  }

  .section {
    padding: 40px 0;
  }

  h2,
  .kids h2 {
    font-size: 1.75rem;
  }

  .section-head p {
    font-size: 1.02rem;
  }

  .section-head .eyebrow {
    margin-bottom: 6px;
  }

  .more {
    margin-top: 12px;
  }

  .evening-line {
    font-size: 1.4rem;
  }

  .bv-rule {
    display: none;
  }

  .about-card .button {
    display: none;
  }

  .about-card p {
    margin-bottom: 0;
  }

  .hero-facts {
    display: none;
  }

  .scene-controls {
    gap: 6px;
  }

  .scene-steps {
    gap: 4px;
  }

  .scene-steps button {
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.8rem;
  }

  .scene-pause {
    min-height: 36px;
    width: 36px;
    flex: none;
  }

  .toy-mascot {
    width: 72px;
  }

  .bv-pill {
    padding: 6px 10px;
    font-size: 0.92rem;
  }

  .bv-app {
    padding: 8px 10px 8px 32px;
    font-size: 0.85rem;
  }

  .bv-app::before {
    left: 11px;
  }

  .bv-app::after {
    left: 13px;
  }
}

@media (max-width: 420px) {
  .site-header .wrap {
    gap: 8px;
  }

  .header-cta {
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .menu-button {
    padding: 0 10px;
  }

  .wordmark {
    font-size: 1.3rem;
  }

  .brand img {
    display: none;
  }

  .scene-steps button {
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .qa-a {
    padding-left: 0;
  }

  .kids-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .kids-shot {
    width: min(240px, 100%);
    margin: 0 auto;
  }
}

/* New open blocks of the parents' part, the cloud and the plans on smaller screens. */
@media (max-width: 960px) {
  .can-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progress-feature {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 24px;
  }

  .progress-shot {
    height: 360px;
  }
}

@media (max-width: 720px) {
  .progress-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 24px;
    padding: 20px 18px 0;
  }

  .progress-copy {
    padding-bottom: 0;
  }

  .progress-shot {
    width: min(230px, 100%);
    height: 330px;
    margin: 0 auto;
  }

  .progress-subjects li {
    font-size: 0.88rem;
    padding: 5px 10px;
  }

  .can-block,
  .needs-block {
    margin-top: 32px;
  }

  .can-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .can {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 10px 14px 10px 10px;
  }

  .can-visual {
    grid-row: 1 / span 2;
    align-self: stretch;
    min-height: 92px;
    margin: 0;
    padding: 8px 6px;
    gap: 5px;
  }

  .can h4 {
    align-self: end;
    font-size: 1.02rem;
  }

  .can p {
    align-self: start;
    font-size: 0.9rem;
  }

  .cv-timer,
  .cv-until,
  .cv-add,
  .cv-task,
  .cv-app {
    padding: 4px 8px;
    font-size: 0.74rem;
    gap: 4px;
  }

  .cv-timer b {
    font-size: 0.95rem;
  }

  .cv-pause-btn {
    width: 28px;
    height: 28px;
    box-shadow: 0 0 0 3px rgba(93, 70, 217, 0.18);
  }

  .cv-pause-btn i {
    width: 3px;
    height: 10px;
  }

  .cv-back,
  .cv-always,
  .cv-phones {
    font-size: 0.7rem;
  }

  .cv-apps {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 3px;
  }

  .cv-apps .cv-always {
    flex-basis: auto;
  }

  .can-wide {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
    padding: 10px 14px 14px 10px;
  }

  .can-wide .can-visual {
    grid-row: auto;
    padding: 12px 8px;
    gap: 8px;
  }

  .cvg-shot {
    width: 118px;
    border-radius: 12px;
  }

  .cvg-note {
    font-size: 0.74rem;
    padding: 8px 10px;
  }

  .cvg-note b {
    font-size: 0.92rem;
  }

  .can-wide .can-text h4 {
    margin-bottom: 4px;
  }

  .cv-lock {
    transform: scale(0.8);
  }

  .cv-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 5px;
    font-size: 0.68rem;
  }

  .cv-row b {
    display: none;
  }

  .cv-person {
    width: 24px;
    height: 24px;
    margin-left: -9px;
    font-size: 0.68rem;
  }

  .needs {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .needs-block {
    padding: 20px 16px;
  }

  .plans-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .plan {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 14px 16px;
  }

  .plan-art {
    grid-row: 1 / span 2;
    width: 76px;
    height: 57px;
    margin: 0;
  }

  .plan h3 {
    align-self: end;
    font-size: 1.1rem;
  }

  .plan p {
    align-self: start;
    font-size: 0.95rem;
  }

  .privacy-list .privacy-cloud {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
  }

  .privacy-cloud .cloud-icon {
    width: 40px;
  }

  .kids-hello img {
    width: 44px;
    height: 44px;
  }

  .kids-hello-bubble {
    font-size: 0.95rem;
  }

  .kids-turn {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .scene,
  .film-player,
  .fireflies,
  .menu-button {
    display: none !important;
  }

  .night {
    background: none;
    color: #000;
  }
}

/* ---------- document pages (policy, delete account, investors) ---------- */
.doc {
  padding: 48px 0 72px;
  background: linear-gradient(
    180deg,
    var(--sky-top) 0,
    var(--sky-middle) 260px,
    var(--surface) 520px
  );
}

.doc .wrap {
  max-width: 48rem;
}

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

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

.doc h3 {
  margin-top: 1.2em;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.4em;
}

.doc .meta {
  color: var(--ink-muted);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 0.98rem;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.doc th {
  background: var(--surface-sunken);
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.2em;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-raised);
}

.table-scroll table {
  margin: 0;
}

.callout {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  margin: 0 0 1.2em;
}

.callout > :last-child {
  margin-bottom: 0;
}

.toc {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  margin: 0 0 2em;
}

.toc ol {
  margin: 0;
  columns: 2;
  column-gap: 32px;
}

.steps-list {
  counter-reset: item;
  list-style: none;
  padding: 0 !important;
}

.steps-list > li {
  position: relative;
  padding-left: 48px;
  min-height: 36px;
  margin-bottom: 14px;
  counter-increment: item;
}

.steps-list > li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: 800;
}

.push-right {
  margin-left: auto;
}

/* Tables become stacked cards on narrow screens; each cell shows its column name. */
@media (max-width: 600px) {
  .table-scroll {
    border: 0;
    background: none;
    overflow: visible;
  }

  .table-scroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .table-scroll tr {
    display: block;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
  }

  .table-scroll td {
    display: block;
    padding: 4px 0;
    border: 0;
  }

  .table-scroll td:not(:first-child)::before {
    content: attr(data-label) ': ';
    font-weight: 700;
    color: var(--ink-muted);
  }
}

.investors-summary {
  margin: 28px 0 36px;
}
