:root {
  --ink: #15164b;
  --ink-soft: #4d5578;
  --ink-faint: #747c9b;
  --canvas: #f8faff;
  --canvas-alt: #eef6ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-soft: rgba(246, 248, 255, 0.86);
  --line: rgba(91, 95, 239, 0.14);
  --line-strong: rgba(91, 95, 239, 0.25);
  --indigo: #5b5fef;
  --indigo-dark: #293fc8;
  --sky: #71c8ff;
  --lavender: #cfcbff;
  --mint: #76e6c4;
  --mint-dark: #159c7d;
  --coral: #ff7b74;
  --amber: #f3a526;
  --danger: #b52e4b;
  --shadow-sm: 0 10px 35px rgba(38, 51, 127, 0.08);
  --shadow-md: 0 24px 70px rgba(38, 51, 127, 0.14);
  --shadow-lg: 0 38px 110px rgba(54, 62, 165, 0.2);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-height: 86px;
}

html[data-theme="night"] {
  --ink: #f5f6ff;
  --ink-soft: #c6cbed;
  --ink-faint: #9ca5cf;
  --canvas: #10122d;
  --canvas-alt: #171a3d;
  --surface: rgba(29, 33, 75, 0.84);
  --surface-solid: #1b1f49;
  --surface-soft: rgba(23, 27, 64, 0.88);
  --line: rgba(184, 190, 255, 0.16);
  --line-strong: rgba(184, 190, 255, 0.3);
  --indigo: #8589ff;
  --indigo-dark: #6a75ff;
  --sky: #81d1ff;
  --lavender: #b9b6ff;
  --mint: #7ce9ca;
  --mint-dark: #57d4b2;
  --coral: #ff8c85;
  --amber: #ffbd5c;
  --danger: #ff7f9c;
  --shadow-sm: 0 12px 38px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 28px 78px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 42px 120px rgba(0, 0, 0, 0.36);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(207, 203, 255, 0.22), transparent 31rem),
    radial-gradient(circle at 92% 18%, rgba(113, 200, 255, 0.18), transparent 34rem),
    linear-gradient(180deg, var(--canvas) 0%, var(--canvas-alt) 48%, var(--canvas) 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: #fff;
  background: var(--indigo);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 4px;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 35rem;
  height: 35rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.15;
}

.page-glow-one {
  top: 12rem;
  left: -20rem;
  background: var(--lavender);
}

.page-glow-two {
  top: 62rem;
  right: -18rem;
  background: var(--sky);
}

.section-shell {
  width: min(100% - 104px, 1390px);
  margin-inline: auto;
}

.section {
  padding-block: 116px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  backdrop-filter: blur(24px) saturate(160%);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 35px rgba(42, 54, 133, 0.06);
}

.header-inner {
  display: flex;
  width: min(100% - 72px, 1450px);
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
}

.brand-arch {
  position: absolute;
  left: 4px;
  bottom: 7px;
  width: 36px;
  height: 32px;
  border: 9px solid var(--indigo);
  border-bottom: 0;
  border-radius: 30px 30px 5px 5px;
  transform: rotate(2deg);
  filter: drop-shadow(0 6px 8px rgba(91, 95, 239, 0.22));
}

.brand-spark {
  position: absolute;
  top: -1px;
  right: -1px;
  color: var(--coral);
  font-size: 22px;
  line-height: 1;
  animation: sparkle 3.8s ease-in-out infinite;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  letter-spacing: -0.035em;
  font-size: 21px;
  font-weight: 800;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--indigo-dark);
  letter-spacing: 0.015em;
  font-size: 11px;
  font-weight: 700;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 38px);
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 12px 1px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--indigo);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.desktop-nav a:hover {
  color: var(--ink);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(44, 57, 142, 0.06);
  cursor: pointer;
  transition:
    transform 180ms var(--ease),
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="night"] .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="night"] .theme-toggle .icon-sun {
  display: block;
}

.menu-toggle {
  display: none;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms var(--ease);
}

.menu-toggle span + span {
  margin-top: 5px;
}

.mobile-nav {
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
}

.mobile-nav a {
  display: block;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
}

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

.mobile-nav .button {
  width: 100%;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
  transition: transform 180ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover svg:last-child {
  transform: translateX(3px);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #233ec8 0%, #5969ff 75%, #757cff 100%);
  box-shadow:
    0 14px 32px rgba(64, 78, 225, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button-primary:hover {
  box-shadow:
    0 19px 42px rgba(64, 78, 225, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--indigo-dark);
  background: var(--surface);
  box-shadow: 0 9px 26px rgba(44, 57, 142, 0.06);
}

.button-secondary:hover {
  border-color: var(--indigo);
  box-shadow: var(--shadow-sm);
}

.button-ghost {
  border-color: var(--line);
  color: var(--indigo-dark);
  background: var(--surface);
}

.button-light {
  color: #20246d;
  background: #fff;
  box-shadow: 0 18px 45px rgba(19, 25, 103, 0.25);
}

.button-danger {
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, var(--surface-solid));
}

.button-danger:hover {
  border-color: var(--danger);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--danger) 18%, transparent);
}

.button-large {
  min-height: 62px;
  padding: 16px 24px;
  border-radius: 19px;
  font-size: 16px;
}

.button-small {
  min-height: 46px;
  padding: 10px 17px;
  border-radius: 15px;
  font-size: 14px;
}

.button-spark {
  display: grid;
  width: 31px;
  height: 31px;
  margin-left: -10px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--indigo);
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.hero {
  display: grid;
  min-height: min(820px, calc(100svh - var(--header-height)));
  grid-template-columns: minmax(0, 0.93fr) minmax(560px, 1.07fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 76px);
  padding-block: 62px 72px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--indigo-dark);
  letter-spacing: 0.085em;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--indigo);
  letter-spacing: 0;
  box-shadow: 0 7px 18px rgba(91, 95, 239, 0.24);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.hero h1 {
  max-width: 680px;
  margin: 22px 0 25px;
  letter-spacing: -0.055em;
  font-size: clamp(48px, 5.1vw, 78px);
  font-weight: 850;
  line-height: 0.99;
}

.hero-lede {
  max-width: 630px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.trust-note svg {
  width: 22px;
  height: 22px;
  color: var(--indigo);
}

.hero-visual {
  position: relative;
  min-height: 630px;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 54px;
  object-fit: cover;
  object-position: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 35px 80px rgba(81, 95, 195, 0.12);
  transition: filter 350ms ease;
}

html[data-theme="night"] .hero-backdrop {
  filter: brightness(0.56) saturate(0.82) hue-rotate(6deg);
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  inset: 4% 8% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 143, 255, 0.14), transparent 68%);
  content: "";
  filter: blur(20px);
}

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 255, 0.8)),
    rgba(255, 255, 255, 0.8);
  box-shadow:
    0 35px 90px rgba(42, 53, 146, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(150%);
}

html[data-theme="night"] .glass-card {
  border-color: rgba(195, 199, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(37, 42, 91, 0.95), rgba(23, 27, 64, 0.87)),
    rgba(29, 33, 75, 0.9);
}

.snapshot-card {
  --rx: 0deg;
  --ry: 0deg;
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 6%;
  width: min(510px, 80%);
  padding: 28px;
  border-radius: 34px;
  transform: translateY(-50%) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 260ms var(--ease);
}

.snapshot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.card-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--indigo-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snapshot-head h2 {
  margin: 0;
  letter-spacing: -0.035em;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.2;
}

.snapshot-head p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.round-action {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--indigo-dark);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    transform 180ms var(--ease),
    border-color 180ms ease;
}

.round-action:hover {
  border-color: var(--indigo);
  transform: translateX(3px);
}

.round-action svg {
  width: 21px;
  height: 21px;
}

.snapshot-list {
  display: grid;
  gap: 9px;
}

.snapshot-row {
  display: grid;
  width: 100%;
  min-height: 78px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 21px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(39, 52, 137, 0.07);
  cursor: pointer;
  text-align: left;
  transition:
    transform 180ms var(--ease),
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.snapshot-row:hover {
  border-color: var(--line-strong);
  box-shadow: 0 13px 30px rgba(39, 52, 137, 0.12);
  transform: translateY(-2px);
}

.category-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 8px 18px rgba(50, 63, 154, 0.1);
}

.category-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.6;
}

.literacy-icon {
  color: #6252d5;
  background: linear-gradient(145deg, #ece9ff, #cfc7ff);
}

.numbers-icon {
  color: #128e73;
  background: linear-gradient(145deg, #dffcf3, #9de8d1);
}

.social-icon {
  color: #af6803;
  background: linear-gradient(145deg, #fff2d9, #ffd188);
}

.motor-icon {
  color: #277ad0;
  background: linear-gradient(145deg, #e0f2ff, #9fd4ff);
}

.snapshot-copy {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.snapshot-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.snapshot-label strong {
  font-size: 15px;
}

.snapshot-label small {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-dots {
  display: flex;
  gap: 7px;
}

.progress-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink-faint) 18%, transparent);
  transition:
    background 280ms ease,
    transform 280ms var(--ease);
}

.progress-dots i.is-filled {
  background: var(--dot-color, var(--indigo));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--dot-color, var(--indigo)) 38%, transparent);
  transform: scale(1.08);
}

.mini-ring {
  --value: 0;
  --ring-color: var(--indigo);
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--value) * 1%), color-mix(in srgb, var(--ink-faint) 12%, transparent) 0);
  transition: background 500ms var(--ease);
}

.mini-ring::before {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-solid);
  content: "";
}

.mini-ring span {
  position: relative;
  z-index: 1;
  font-size: 9px;
  font-weight: 900;
}

.ring-literacy {
  --ring-color: #8a74e8;
}

.ring-numbers {
  --ring-color: #3cc6a3;
}

.ring-social {
  --ring-color: #f0a32c;
}

.ring-motor {
  --ring-color: #559eea;
}

.snapshot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 17px;
  color: var(--ink-faint);
  font-size: 11px;
}

.snapshot-foot > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.snapshot-foot i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-dark);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--mint) 22%, transparent);
}

.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border: 0;
  color: var(--indigo-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.text-button span {
  transition: transform 180ms var(--ease);
}

.text-button:hover span {
  transform: translateX(4px);
}

.floating-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  min-width: 128px;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 17px;
  color: #2a337b;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.floating-chip span {
  color: var(--indigo-dark);
  font-size: 15px;
  font-weight: 900;
}

.floating-chip small {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
}

.chip-one {
  top: 17%;
  left: 3%;
  animation: float-a 6.5s ease-in-out infinite;
}

.chip-two {
  right: 2%;
  bottom: 8%;
  animation: float-b 7.5s ease-in-out infinite;
}

html[data-theme="night"] .floating-chip {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(27, 31, 73, 0.9);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
  padding: 21px 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.trust-strip article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
  padding-inline: 25px;
}

.trust-strip article + article {
  border-left: 1px solid var(--line);
}

.strip-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 900;
}

.heart-icon {
  color: #d94c66;
  background: #ffe7ed;
}

.clock-icon {
  color: #4670cf;
  background: #e8efff;
}

.shield-icon {
  color: #16836c;
  background: #e2f8f1;
}

.trust-strip div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.trust-strip strong {
  letter-spacing: -0.01em;
  font-size: 14px;
}

.trust-strip small {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.section-heading h2,
.safety-card h2,
.final-cta h2 {
  margin: 14px 0 18px;
  letter-spacing: -0.045em;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.05;
}

.section-heading p,
.section-heading-split > p {
  max-width: 690px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.section-heading-split {
  display: grid;
  max-width: none;
  grid-template-columns: 1.1fr 0.7fr;
  align-items: end;
  gap: 50px;
}

.section-heading-split h2 {
  margin-bottom: 0;
}

.app-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 94% 0%, rgba(113, 200, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 8% 100%, rgba(207, 203, 255, 0.2), transparent 25rem),
    var(--surface);
  box-shadow: var(--shadow-md);
}

.app-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 37px 40px 30px;
}

.panel-kicker,
.detail-label,
.filter-label {
  display: block;
  margin-bottom: 5px;
  color: var(--indigo-dark);
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.app-panel h3 {
  margin: 0 0 6px;
  letter-spacing: -0.03em;
  font-size: 27px;
}

.app-panel-top p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.age-picker {
  display: inline-flex;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-soft);
}

.age-picker button {
  min-width: 75px;
  min-height: 42px;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease);
}

.age-picker button:hover {
  color: var(--ink);
}

.age-picker button.is-selected {
  color: #fff;
  background: var(--indigo);
  box-shadow: 0 8px 19px rgba(91, 95, 239, 0.25);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(440px, 0.9fr);
  gap: 22px;
  padding: 0 40px 32px;
}

.focus-card {
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}

.focus-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.focus-card-head > span:last-child {
  display: flex;
  flex-direction: column;
}

.focus-card-head small {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.focus-card-head strong {
  letter-spacing: -0.02em;
  font-size: 20px;
}

.focus-orb {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: var(--indigo);
  background: linear-gradient(145deg, #eeedff, #d2d0ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.focus-card p {
  max-width: 580px;
  margin: 18px 0 21px;
  color: var(--ink-soft);
  font-size: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-grid article {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 21px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-solid);
  text-align: center;
}

.stat-grid article:nth-child(1) {
  background: color-mix(in srgb, var(--lavender) 24%, var(--surface-solid));
}

.stat-grid article:nth-child(2) {
  background: color-mix(in srgb, var(--mint) 20%, var(--surface-solid));
}

.stat-grid article:nth-child(3) {
  background: color-mix(in srgb, var(--sky) 18%, var(--surface-solid));
}

.stat-value {
  margin-bottom: 4px;
  letter-spacing: -0.05em;
  font-size: 39px;
  font-weight: 900;
  line-height: 1;
}

.stat-grid strong {
  font-size: 11px;
  line-height: 1.25;
}

.stat-grid small {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.3;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.steps-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 40px;
}

.steps-list li + li {
  border-left: 1px solid var(--line);
}

.steps-list > li > span {
  color: var(--indigo);
  font-size: 22px;
  font-weight: 900;
}

.steps-list div {
  display: flex;
  flex-direction: column;
}

.steps-list strong {
  font-size: 14px;
}

.steps-list small {
  color: var(--ink-faint);
  font-size: 11px;
}

.activities-section {
  position: relative;
}

.activity-workbench {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(300px, 0.38fr) minmax(0, 0.62fr);
  border: 1px solid var(--line);
  border-radius: 38px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.filter-panel {
  padding: 38px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 0% 100%, rgba(118, 230, 196, 0.2), transparent 24rem),
    var(--surface-soft);
}

.filter-group + .filter-group {
  margin-top: 30px;
}

.filter-label {
  margin-bottom: 12px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-soft);
  background: var(--surface-solid);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition:
    transform 180ms var(--ease),
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  border-color: var(--indigo);
  color: #fff;
  background: var(--indigo);
  box-shadow: 0 8px 20px rgba(91, 95, 239, 0.2);
}

.generator-button {
  width: 100%;
  margin-top: 36px;
}

.filter-note {
  margin: 15px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
  text-align: center;
}

.activity-card {
  position: relative;
  padding: 43px clamp(34px, 4vw, 64px);
  background:
    radial-gradient(circle at 95% 0%, rgba(207, 203, 255, 0.22), transparent 22rem),
    var(--surface-solid);
}

.activity-card::after {
  position: absolute;
  top: 30px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.9) 0 8%, transparent 9%),
    linear-gradient(145deg, var(--lavender), var(--indigo));
  box-shadow: 0 16px 35px rgba(91, 95, 239, 0.22);
  content: "";
  opacity: 0.82;
  transform: rotate(12deg);
}

.activity-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.activity-category,
.activity-time {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.activity-category {
  color: #5140bc;
  background: #ebe8ff;
}

.activity-time {
  color: var(--ink-soft);
  background: var(--surface-soft);
}

.activity-time svg {
  width: 15px;
  height: 15px;
}

.activity-card h3 {
  max-width: calc(100% - 68px);
  margin: 20px 0 10px;
  letter-spacing: -0.045em;
  font-size: clamp(33px, 3.5vw, 49px);
  line-height: 1;
}

.activity-card > p {
  max-width: 670px;
  margin-bottom: 29px;
  color: var(--ink-soft);
  font-size: 17px;
}

.activity-details {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 30px;
  padding: 25px 0;
  border-block: 1px solid var(--line);
}

.activity-details p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.activity-details ol {
  display: grid;
  gap: 9px;
  margin: 4px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 14px;
}

.activity-details li::marker {
  color: var(--indigo);
  font-weight: 900;
}

.activity-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 23px 0;
  padding: 15px 17px;
  border-radius: 17px;
  color: color-mix(in srgb, var(--ink) 88%, var(--indigo));
  background: color-mix(in srgb, var(--mint) 17%, var(--surface-solid));
}

.activity-tip > span {
  color: #dc4f67;
}

.activity-tip p {
  margin: 0;
  font-size: 13px;
}

.activity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: flex-start;
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 29px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms ease;
}

.tool-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.tool-card-blue {
  background:
    radial-gradient(circle at 100% 0%, rgba(113, 200, 255, 0.25), transparent 17rem),
    var(--surface-solid);
}

.tool-card-mint {
  background:
    radial-gradient(circle at 100% 0%, rgba(118, 230, 196, 0.26), transparent 17rem),
    var(--surface-solid);
}

.tool-card-coral {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 123, 116, 0.2), transparent 17rem),
    var(--surface-solid);
}

.tool-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 19px;
  color: var(--indigo-dark);
  background: var(--surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.tool-icon svg {
  width: 28px;
  height: 28px;
}

.tool-card h3 {
  margin-bottom: 11px;
  letter-spacing: -0.03em;
  font-size: 23px;
  line-height: 1.15;
}

.tool-card p {
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 14px;
}

.tool-card .text-button {
  margin-top: auto;
}

.safety-section {
  padding-top: 20px;
}

.safety-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 34px;
  padding: clamp(34px, 5vw, 68px);
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 0% 100%, rgba(118, 230, 196, 0.21), transparent 25rem),
    radial-gradient(circle at 100% 0%, rgba(113, 200, 255, 0.16), transparent 23rem),
    var(--surface);
  box-shadow: var(--shadow-md);
}

.safety-mark {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border-radius: 26px;
  color: #187e69;
  background: linear-gradient(145deg, #e5faf4, #bdeedc);
  box-shadow: 0 17px 38px rgba(40, 160, 128, 0.18);
}

.safety-mark svg {
  width: 41px;
  height: 41px;
}

.safety-card h2 {
  margin-bottom: 19px;
}

.safety-card p {
  max-width: 850px;
  margin-bottom: 13px;
  color: var(--ink-soft);
  font-size: 16px;
}

.safety-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 27px;
}

.final-cta {
  position: relative;
  overflow: hidden;
  margin-bottom: 105px;
  padding: clamp(58px, 7vw, 90px);
  border-radius: 42px;
  color: #fff;
  background:
    radial-gradient(circle at 9% 20%, rgba(113, 200, 255, 0.42), transparent 22rem),
    radial-gradient(circle at 92% 90%, rgba(118, 230, 196, 0.23), transparent 20rem),
    linear-gradient(135deg, #1a2d9c, #5961ed 62%, #7075f4);
  box-shadow: 0 34px 85px rgba(55, 65, 181, 0.28);
  text-align: center;
}

.final-cta .eyebrow {
  color: #dbe9ff;
}

.final-cta h2 {
  max-width: 800px;
  margin-inline: auto;
}

.final-cta p {
  max-width: 650px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-orb-one {
  top: -55px;
  left: 6%;
  width: 120px;
  height: 120px;
  border: 24px solid rgba(255, 255, 255, 0.09);
  animation: float-a 8s ease-in-out infinite;
}

.cta-orb-two {
  right: 7%;
  bottom: -45px;
  width: 105px;
  height: 105px;
  background: rgba(118, 230, 196, 0.17);
  filter: blur(1px);
  animation: float-b 7s ease-in-out infinite;
}

.site-footer {
  padding: 74px 0 max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.9fr 1fr;
  gap: 48px;
}

.brand-footer {
  margin-bottom: 18px;
}

.footer-brand > p {
  max-width: 390px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.adult-note {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 700;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-column strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.footer-column a,
.footer-column span {
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--indigo-dark);
}

.footer-contact {
  margin: 0;
  font-style: normal;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 55px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 11px;
}

dialog {
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(13, 17, 54, 0.54);
  backdrop-filter: blur(10px);
}

.app-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(880px, calc(100dvh - 28px));
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
}

.app-dialog[open] {
  animation: dialog-in 330ms var(--ease) both;
}

.dialog-shell {
  padding: clamp(24px, 4vw, 39px);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--indigo-dark);
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.dialog-head h2 {
  margin: 0;
  letter-spacing: -0.035em;
  font-size: 29px;
  line-height: 1.15;
}

.dialog-close {
  flex: 0 0 auto;
}

.dialog-progress {
  overflow: hidden;
  height: 7px;
  margin-top: 27px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ink-faint) 13%, transparent);
}

.dialog-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--indigo), var(--sky), var(--mint));
  box-shadow: 0 2px 12px rgba(91, 95, 239, 0.3);
  transition: width 450ms var(--ease);
}

.dialog-status {
  display: flex;
  justify-content: space-between;
  margin: 7px 0 0;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 800;
}

.checkin-stage {
  padding-top: 28px;
}

.stage-orb {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 20px;
  color: var(--indigo);
  background: linear-gradient(145deg, #efefff, #cfd2ff);
  box-shadow: 0 14px 30px rgba(91, 95, 239, 0.18);
  font-size: 25px;
}

.checkin-stage h3 {
  margin-bottom: 10px;
  letter-spacing: -0.035em;
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.15;
}

.checkin-stage > p {
  margin-bottom: 25px;
  color: var(--ink-soft);
}

.dialog-age-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.dialog-age-fieldset legend {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
}

.age-picker-large {
  width: 100%;
}

.age-picker-large button {
  min-height: 50px;
  flex: 1;
}

.privacy-inline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--mint) 13%, var(--surface-soft));
  font-size: 12px;
}

.privacy-inline svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: var(--mint-dark);
}

.dialog-primary {
  width: 100%;
  margin-top: 23px;
}

.question-category {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #4e42b8;
  background: #ebe9ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkin-stage#checkin-question h3 {
  margin-top: 19px;
}

.answer-grid {
  display: grid;
  gap: 10px;
}

.answer-grid button {
  display: grid;
  min-height: 75px;
  grid-template-columns: auto 1fr;
  column-gap: 13px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface-soft);
  cursor: pointer;
  text-align: left;
  transition:
    transform 180ms var(--ease),
    border-color 180ms ease,
    background 180ms ease;
}

.answer-grid button:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.answer-grid button.is-selected {
  border-color: var(--indigo);
  background: color-mix(in srgb, var(--indigo) 9%, var(--surface-solid));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--indigo) 28%, transparent);
}

.answer-dot {
  display: grid;
  width: 25px;
  height: 25px;
  grid-row: 1 / 3;
  place-items: center;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.is-selected .answer-dot {
  border: 7px solid var(--indigo);
}

.answer-grid strong {
  align-self: end;
  font-size: 14px;
}

.answer-grid small {
  align-self: start;
  color: var(--ink-faint);
  font-size: 10px;
}

.dialog-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 27px;
}

.celebration-mark {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 21px;
  place-items: center;
  border-radius: 27px;
  color: var(--indigo);
  background: linear-gradient(145deg, #f0efff, #c8d7ff);
  box-shadow: 0 17px 40px rgba(91, 95, 239, 0.2);
  font-size: 31px;
}

.checkin-result {
  text-align: center;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 25px 0;
}

.result-summary article {
  padding: 13px 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}

.result-summary strong {
  display: block;
  font-size: 19px;
}

.result-summary small {
  color: var(--ink-faint);
  font-size: 8px;
  text-transform: uppercase;
}

.result-focus {
  padding: 18px;
  border-radius: 19px;
  background: color-mix(in srgb, var(--mint) 15%, var(--surface-solid));
  text-align: left;
}

.result-focus small {
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.result-focus strong {
  display: block;
  margin: 4px 0;
  font-size: 18px;
}

.result-focus p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.data-illustration {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 28px 0 20px;
  place-items: center;
  border-radius: 24px;
  color: #167b67;
  background: linear-gradient(145deg, #e2faf3, #b6eedc);
  font-size: 27px;
  font-weight: 900;
}

.data-dialog h3 {
  margin-bottom: 8px;
  font-size: 25px;
}

.data-dialog p {
  color: var(--ink-soft);
  font-size: 14px;
}

.data-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 22px 0;
}

.data-summary div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.data-summary span {
  display: block;
  color: var(--ink-faint);
  font-size: 9px;
  text-transform: uppercase;
}

.data-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fine-print {
  margin: 17px 0 0;
  font-size: 10px !important;
}

.confirm-dialog {
  width: min(500px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
}

.confirm-dialog > div {
  padding: 31px;
}

.warning-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 17px;
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, var(--surface-solid));
  font-size: 21px;
  font-weight: 900;
}

.confirm-dialog h2 {
  margin-bottom: 9px;
  letter-spacing: -0.035em;
  font-size: 27px;
}

.confirm-dialog p {
  color: var(--ink-soft);
  font-size: 13px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
}

.toast {
  position: fixed;
  z-index: 1000;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  max-width: min(390px, calc(100% - 36px));
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition:
    opacity 220ms ease,
    transform 220ms var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.confetti-layer {
  position: fixed;
  z-index: 999;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 9px;
  height: 14px;
  border-radius: 3px;
  background: var(--piece-color);
  animation: confetti-pop 900ms var(--ease) forwards;
}

.print-checklist {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 720ms var(--ease),
    transform 720ms var(--ease);
}

.reveal-late {
  transition-delay: 140ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal pages */
.legal-body {
  background:
    radial-gradient(circle at 90% 8%, rgba(113, 200, 255, 0.18), transparent 28rem),
    var(--canvas);
}

.legal-header {
  position: static;
}

.legal-main {
  padding: 68px 0 110px;
}

.legal-hero {
  max-width: 850px;
  margin-bottom: 45px;
}

.legal-hero h1 {
  margin: 13px 0 17px;
  letter-spacing: -0.05em;
  font-size: clamp(44px, 6vw, 70px);
  line-height: 1;
}

.legal-hero p {
  color: var(--ink-soft);
  font-size: 18px;
}

.legal-updated {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-faint);
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  align-items: start;
  gap: 48px;
}

.legal-content {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}

.legal-content section + section {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 13px;
  letter-spacing: -0.025em;
  font-size: 25px;
  line-height: 1.25;
}

.legal-content h3 {
  margin: 24px 0 9px;
  font-size: 17px;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 15px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a {
  color: var(--indigo-dark);
  font-weight: 700;
}

.legal-callout {
  margin: 27px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: color-mix(in srgb, var(--mint) 12%, var(--surface-soft));
}

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

.legal-toc {
  position: sticky;
  top: 110px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.legal-toc strong {
  display: block;
  margin-bottom: 11px;
  font-size: 12px;
}

.legal-toc a {
  display: block;
  padding: 7px 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--indigo-dark);
}

.contact-block {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-soft);
  font-style: normal;
}

.contact-block a {
  display: inline-block;
  margin-top: 5px;
}

.error-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 30px;
}

.error-card {
  width: min(660px, 100%);
  padding: clamp(34px, 7vw, 70px);
  border: 1px solid var(--line);
  border-radius: 38px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.error-code {
  color: var(--indigo);
  letter-spacing: -0.06em;
  font-size: clamp(80px, 18vw, 150px);
  font-weight: 900;
  line-height: 0.9;
}

.error-card h1 {
  margin: 21px 0 11px;
  font-size: 34px;
}

.error-card p {
  margin-bottom: 26px;
  color: var(--ink-soft);
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.72;
    transform: rotate(0deg) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: rotate(12deg) scale(1.08);
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, -9px, 0) rotate(1deg);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(1deg);
  }
  50% {
    transform: translate3d(0, 8px, 0) rotate(-1deg);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes confetti-pop {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r));
  }
}

@media (max-width: 1180px) {
  .section-shell {
    width: min(100% - 64px, 1120px);
  }

  .desktop-nav {
    gap: 18px;
  }

  .hero {
    grid-template-columns: minmax(0, 0.86fr) minmax(470px, 1.14fr);
  }

  .hero-visual {
    min-height: 590px;
  }

  .snapshot-card {
    right: 4%;
    width: min(480px, 88%);
  }

  .floating-chip {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .focus-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 20px;
  }

  .focus-card-head,
  .focus-card p {
    grid-column: 1;
  }

  .focus-card .button {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .footer-grid {
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 28px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 76px;
  }

  .header-inner {
    width: min(100% - 40px, 920px);
  }

  .desktop-nav,
  .desktop-checkin {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .site-header.is-menu-open .menu-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .site-header.is-menu-open .menu-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 55px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero h1 {
    max-width: 800px;
  }

  .hero-visual {
    min-height: 650px;
  }

  .snapshot-card {
    right: 50%;
    width: min(520px, calc(100% - 60px));
    transform: translate(50%, -50%) rotateX(var(--rx)) rotateY(var(--ry));
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip article {
    padding: 17px 10px;
  }

  .trust-strip article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .trust-strip small {
    white-space: normal;
  }

  .section-heading-split {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .activity-workbench {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tool-card:last-child {
    grid-column: 1 / -1;
    min-height: 260px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  .section-shell {
    width: min(100% - 32px, 720px);
  }

  .section {
    padding-block: 84px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-arch {
    width: 31px;
    height: 28px;
    border-width: 8px;
  }

  .brand-spark {
    font-size: 18px;
  }

  .theme-toggle,
  .menu-toggle {
    width: 43px;
    height: 43px;
  }

  .hero {
    min-height: auto;
    padding-block: 42px 45px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 68px);
    line-height: 0.98;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 590px;
  }

  .hero-backdrop {
    border-radius: 34px;
    object-position: 61% center;
  }

  .snapshot-card {
    width: calc(100% - 26px);
    padding: 19px;
    border-radius: 27px;
  }

  .snapshot-row {
    min-height: 70px;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
  }

  .category-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .category-icon svg {
    width: 24px;
    height: 24px;
  }

  .snapshot-label small {
    display: none;
  }

  .progress-dots {
    gap: 5px;
  }

  .progress-dots i {
    width: 7px;
    height: 7px;
  }

  .mini-ring {
    width: 42px;
    height: 42px;
  }

  .mini-ring::before {
    width: 32px;
    height: 32px;
  }

  .trust-strip {
    padding: 14px 20px;
  }

  .section-heading h2,
  .safety-card h2,
  .final-cta h2 {
    font-size: clamp(36px, 10vw, 49px);
  }

  .app-panel-top {
    align-items: flex-start;
    flex-direction: column;
    padding: 29px 24px 24px;
  }

  .age-picker {
    width: 100%;
  }

  .age-picker button {
    flex: 1;
  }

  .dashboard-grid {
    padding: 0 24px 24px;
  }

  .focus-card {
    display: block;
    padding: 24px;
  }

  .focus-card .button {
    width: 100%;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid article {
    min-height: 100px;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }

  .steps-list li {
    padding: 20px 25px;
  }

  .steps-list li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .filter-panel,
  .activity-card {
    padding: 28px 23px;
  }

  .activity-card::after {
    top: 25px;
    right: 22px;
    width: 47px;
    height: 47px;
  }

  .activity-details {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .activity-actions {
    flex-direction: column;
  }

  .activity-actions .button {
    width: 100%;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card:last-child {
    grid-column: auto;
  }

  .tool-card {
    min-height: 280px;
  }

  .safety-card {
    grid-template-columns: 1fr;
  }

  .safety-mark {
    width: 67px;
    height: 67px;
    border-radius: 21px;
  }

  .final-cta {
    width: calc(100% - 32px);
    margin-bottom: 70px;
    padding: 58px 24px;
    border-radius: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-summary {
    grid-template-columns: 1fr 1fr;
  }

  .data-summary {
    grid-template-columns: 1fr;
  }

  .data-actions,
  .confirm-actions {
    flex-direction: column;
  }

  .data-actions .button,
  .confirm-actions .button {
    width: 100%;
  }

  .legal-main {
    padding-top: 45px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    grid-row: 1;
  }
}

@media (max-width: 460px) {
  .header-inner {
    width: calc(100% - 24px);
    gap: 8px;
  }

  .brand {
    gap: 7px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .trust-note {
    align-items: flex-start;
    font-size: 12px;
  }

  .hero-visual {
    min-height: 545px;
  }

  .snapshot-card {
    padding: 16px;
  }

  .snapshot-head {
    margin-bottom: 13px;
  }

  .snapshot-head h2 {
    font-size: 21px;
  }

  .snapshot-head p,
  .card-kicker,
  .round-action {
    display: none;
  }

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

  .mini-ring {
    display: none;
  }

  .snapshot-foot {
    justify-content: center;
  }

  .snapshot-foot .text-button {
    display: none;
  }

  .trust-strip article {
    align-items: flex-start;
  }

  .section-heading p {
    font-size: 16px;
  }

  .activity-card h3 {
    font-size: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-contact {
    grid-column: auto;
  }

  .dialog-shell {
    padding: 21px;
  }

  .answer-grid button {
    min-height: 70px;
  }

  .dialog-nav {
    flex-direction: column-reverse;
  }

  .dialog-nav .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .button,
  .icon-button,
  .snapshot-row,
  .filter-chip,
  .answer-grid button {
    border: 1px solid ButtonText;
  }

  .progress-dots i,
  .mini-ring {
    forced-color-adjust: none;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.55in;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  body > * {
    display: none !important;
  }

  body.is-printing .print-checklist {
    display: block !important;
  }

  .print-checklist {
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 11pt;
  }

  .print-checklist header {
    padding-bottom: 14px;
    border-bottom: 2px solid #000;
  }

  .print-checklist header > span {
    font-size: 10pt;
    font-weight: 700;
  }

  .print-checklist h1 {
    margin: 5px 0 8px;
    font-size: 22pt;
    line-height: 1.1;
  }

  .print-checklist header p {
    margin: 0;
    font-size: 9pt;
  }

  .print-category {
    break-inside: avoid;
    margin-top: 20px;
  }

  .print-category h2 {
    margin: 0 0 8px;
    font-size: 14pt;
  }

  .print-category label {
    display: flex;
    gap: 9px;
    margin: 7px 0;
    line-height: 1.35;
  }

  .print-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border: 1.5px solid #000;
  }

  .print-checklist footer {
    margin-top: 25px;
    break-inside: avoid;
  }

  .print-lines {
    height: 24px;
    border-bottom: 1px solid #777;
  }

  .print-checklist footer small {
    display: block;
    margin-top: 18px;
    font-size: 8pt;
  }
}
