/* ==========================================================================
   Dinesh AI Academy Juniors — Design System
   Sister theme of the main academy: same type scale, pill buttons and section
   grammar, but a warm light canvas with violet / sky / coral / sun accents.
   ========================================================================== */

:root {
  /* Canvas */
  --bg:          #FFFBF5;
  --bg-alt:      #F5F1FF;
  --surface:     #FFFFFF;
  --surface-2:   #FAF7FF;

  /* Ink (deep indigo instead of black — softer on young eyes) */
  --ink:         #1E1B3A;
  --ink-soft:    #34305A;
  --ink-muted:   #595676;
  --ink-faint:   #6F6C8C;

  --line:        rgba(30, 27, 58, 0.10);
  --line-strong: rgba(30, 27, 58, 0.18);

  /* Brand accents */
  --violet:      #6C4DF6;
  --violet-deep: #5033DB;
  --violet-soft: #EEEAFE;
  --sky:         #1E88E5;
  --sky-soft:    #E2F1FD;
  --coral:       #FF7A59;
  --coral-ink:   #C2410C;
  --coral-soft:  #FFEDE6;
  --sun:         #FFC23C;
  --sun-ink:     #8A5A00;
  --sun-soft:    #FFF4D6;
  --mint:        #12B48E;
  --mint-ink:    #067A5F;
  --mint-soft:   #DFF6EF;

  /* Night sections & footer — nods to the main academy's navy */
  --night:       #17123D;
  --night-2:     #221A55;
  --night-ink:   #EDEBFF;
  --night-muted: #B9B4E0;
  --night-line:  rgba(237, 235, 255, 0.12);

  --gradient-brand: linear-gradient(135deg, #6C4DF6 0%, #3F6FF2 100%);
  --gradient-text:  linear-gradient(100deg, #6C4DF6 0%, #1E88E5 100%);
  --gradient-kids:  linear-gradient(135deg, #FF7A59 0%, #FFC23C 100%);
  --gradient-teens: linear-gradient(135deg, #6C4DF6 0%, #1E88E5 100%);
  --gradient-hero:  radial-gradient(60% 70% at 85% 10%, rgba(108, 77, 246, 0.14), transparent 70%),
                    radial-gradient(50% 60% at 5% 90%, rgba(255, 194, 60, 0.18), transparent 70%),
                    radial-gradient(40% 50% at 50% 50%, rgba(30, 136, 229, 0.06), transparent 70%);

  --shadow-sm:   0 1px 2px rgba(30, 27, 58, 0.05), 0 2px 8px -2px rgba(30, 27, 58, 0.06);
  --shadow-card: 0 1px 2px rgba(30, 27, 58, 0.04), 0 14px 34px -16px rgba(60, 40, 160, 0.25);
  --shadow-pop:  0 24px 60px -24px rgba(108, 77, 246, 0.50);

  /* Typography */
  --font-head:   "Space Grotesk", "Sora", sans-serif;
  --font-body:   "Nunito", "Inter", system-ui, sans-serif;
  --font-script: "Caveat", "Dancing Script", cursive;

  /* Layout */
  --container: 1200px;
  --container-narrow: 860px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --nav-height: 80px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 480ms cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* Night mode — follows the system unless the visitor picks one. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100C2B; --bg-alt: #151038; --surface: #1B1545; --surface-2: #211A52;
    --ink: #F3F1FF; --ink-soft: #DEDAF7; --ink-muted: #B3AED6; --ink-faint: #928DBB;
    --line: rgba(222, 218, 247, 0.12); --line-strong: rgba(222, 218, 247, 0.22);
    --violet: #8F78FF; --violet-deep: #7B62FF; --violet-soft: rgba(143, 120, 255, 0.16);
    --sky: #4FB0FF; --sky-soft: rgba(79, 176, 255, 0.14);
    --coral-ink: #FF9C80; --coral-soft: rgba(255, 122, 89, 0.15);
    --sun-ink: #FFD57A; --sun-soft: rgba(255, 194, 60, 0.14);
    --mint-ink: #5FE0BD; --mint-soft: rgba(18, 180, 142, 0.16);
    --night: #0B0822; --night-2: #151038;
    --gradient-text: linear-gradient(100deg, #A996FF 0%, #5DB8FF 100%);
    --gradient-hero: radial-gradient(60% 70% at 85% 10%, rgba(143, 120, 255, 0.20), transparent 70%),
                     radial-gradient(50% 60% at 5% 90%, rgba(255, 194, 60, 0.08), transparent 70%);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -16px rgba(0, 0, 0, 0.6);
    --shadow-pop: 0 24px 60px -24px rgba(143, 120, 255, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #100C2B; --bg-alt: #151038; --surface: #1B1545; --surface-2: #211A52;
  --ink: #F3F1FF; --ink-soft: #DEDAF7; --ink-muted: #B3AED6; --ink-faint: #928DBB;
  --line: rgba(222, 218, 247, 0.12); --line-strong: rgba(222, 218, 247, 0.22);
  --violet: #8F78FF; --violet-deep: #7B62FF; --violet-soft: rgba(143, 120, 255, 0.16);
  --sky: #4FB0FF; --sky-soft: rgba(79, 176, 255, 0.14);
  --coral-ink: #FF9C80; --coral-soft: rgba(255, 122, 89, 0.15);
  --sun-ink: #FFD57A; --sun-soft: rgba(255, 194, 60, 0.14);
  --mint-ink: #5FE0BD; --mint-soft: rgba(18, 180, 142, 0.16);
  --night: #0B0822; --night-2: #151038;
  --gradient-text: linear-gradient(100deg, #A996FF 0%, #5DB8FF 100%);
  --gradient-hero: radial-gradient(60% 70% at 85% 10%, rgba(143, 120, 255, 0.20), transparent 70%),
                   radial-gradient(50% 60% at 5% 90%, rgba(255, 194, 60, 0.08), transparent 70%);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -16px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 24px 60px -24px rgba(143, 120, 255, 0.45);
  color-scheme: dark;
}

/* ---------------------------------- Reset --------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* clip, not hidden: hidden would make <body> a scroll container and break the sticky navbar */
  transition: background-color var(--transition), color var(--transition);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.015em;
  font-weight: 700;
}
p { margin: 0; }
strong { color: var(--ink); }

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

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--violet); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm);
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; }

.i { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------- Layout --------------------------------- */

.container, .container-narrow { width: 100%; margin: 0 auto; padding: 0 24px; }
.container { max-width: var(--container); }
.container-narrow { max-width: var(--container-narrow); }

.section { position: relative; padding: 104px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--night {
  background: var(--night);
  color: var(--night-muted);
  --ink: var(--night-ink); --ink-soft: var(--night-ink); --ink-muted: var(--night-muted); --line: var(--night-line);
  overflow: hidden;
}
.section--night::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 90% 0%, rgba(108, 77, 246, 0.35), transparent 70%),
              radial-gradient(40% 50% at 0% 100%, rgba(30, 136, 229, 0.22), transparent 70%);
}
.section--night > * { position: relative; }

.section-head { max-width: 720px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--gradient-brand); border-radius: 3px; }
.section--night .eyebrow { color: #B7A8FF; }
.center .eyebrow { justify-content: center; }

.section-title { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 18px; }
.section-subtitle { font-size: 18px; color: var(--ink-muted); max-width: 640px; }
.center .section-subtitle { margin: 0 auto; }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section--night .text-gradient { background: linear-gradient(100deg, #B7A8FF, #7CC4FF); -webkit-background-clip: text; background-clip: text; }

/* Hand-drawn underline for the one word that matters */
.scribble { position: relative; white-space: nowrap; display: inline-block; isolation: isolate; }
.scribble::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.16em; height: 0.34em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 40 4, 80 4, 110 10 S 170 16, 197 6' fill='none' stroke='%23FF7A59' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}

.script-note { font-family: var(--font-script); font-size: 24px; color: var(--coral-ink); line-height: 1.1; }

/* ---------------------------------- Buttons --------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  padding: 15px 30px; border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn .i { font-size: 18px; transition: transform var(--transition); }
.btn:hover .i-arrow { transform: translateX(3px); }

.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 12px 28px -12px rgba(80, 51, 219, 0.7), inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(80, 51, 219, 0.75), inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }
.section--night .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.section--night .btn-secondary:hover { border-color: #fff; color: #fff; }

.btn-sun { background: var(--sun); color: #2A1E00; box-shadow: 0 12px 28px -12px rgba(255, 170, 0, 0.7), inset 0 -3px 0 rgba(0, 0, 0, 0.1); }
.btn-sun:hover { transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .btn-row { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--violet); }
.link-arrow .i { transition: transform var(--transition); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------------------------------- Chips / badges --------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: var(--violet-deep); background: var(--violet-soft);
  padding: 8px 16px; border-radius: var(--radius-pill);
}
:root[data-theme="dark"] .badge { color: #CFC4FF; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(18, 180, 142, 0.2); animation: pulse 2.4s infinite; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--ink-muted); border: 1px solid var(--line);
  white-space: nowrap;
}
.chip-kids   { background: var(--coral-soft); color: var(--coral-ink); border-color: transparent; }
.chip-teens  { background: var(--violet-soft); color: var(--violet-deep); border-color: transparent; }
.chip-sun    { background: var(--sun-soft); color: var(--sun-ink); border-color: transparent; }
.chip-mint   { background: var(--mint-soft); color: var(--mint-ink); border-color: transparent; }
.chip-sky    { background: var(--sky-soft); color: var(--sky); border-color: transparent; }
:root[data-theme="dark"] .chip-teens { color: #CFC4FF; }

@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(18, 180, 142, 0.2); } 50% { box-shadow: 0 0 0 7px rgba(18, 180, 142, 0.05); } }

/* ---------------------------------- Navbar --------------------------------- */

.navbar {
  position: sticky; top: 0; z-index: 500;
  height: var(--nav-height); display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.navbar.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: var(--shadow-sm); }

.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 46px; height: 46px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; color: var(--ink); }
.brand-name .brand-accent { color: var(--violet); }
.brand-juniors {
  font-family: var(--font-script); font-weight: 700; font-size: 27px; line-height: 0.9; margin-top: 1px;
  background: var(--gradient-kids); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-family: var(--font-head); font-size: 15px; font-weight: 600;
  color: var(--ink-muted); position: relative; padding: 8px 0; white-space: nowrap;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 3px;
  background: var(--gradient-kids); border-radius: 3px;
}
.nav-links .ext { font-size: 11px; opacity: 0.6; }
.nav-links a.nav-mobile-only { display: none; }

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

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  transition: transform var(--transition), border-color var(--transition);
}
.theme-toggle:hover { transform: rotate(-12deg); border-color: var(--violet); }
.theme-toggle .i { font-size: 19px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 50%;
}
.nav-toggle span { display: block; height: 2px; width: 18px; margin: 0 auto; background: var(--ink); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Thin bar linking back to the professional academy */
.topbar {
  background: var(--night); color: var(--night-muted);
  font-size: 13px; text-align: center; padding: 8px 16px;
}
.topbar strong, .topbar a { color: #fff; font-weight: 700; }
.topbar a:hover { text-decoration: underline; }

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

.hero { position: relative; padding: 72px 0 110px; background: var(--gradient-hero); overflow: hidden; }
.hero-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--line-strong) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 30%, transparent 80%);
  opacity: 0.55;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.03em; margin: 22px 0 22px; }
.hero-title .line { display: block; }
/* Search phrase inside the H1 — small, so the design still leads with Think. Create. Build. */
.hero-kicker {
  display: block; margin-bottom: 14px;
  font-family: var(--font-body); font-size: clamp(16px, 1.5vw, 19px); font-weight: 800;
  letter-spacing: 0.01em; line-height: 1.3; color: var(--ink-muted);
}
.hero-title .w-think  { color: var(--violet); }
.hero-title .w-create { color: var(--coral); }
.hero-title .w-build  { color: var(--sky); }
.hero-sub { font-size: 19px; color: var(--ink-muted); max-width: 560px; margin-bottom: 32px; }
.hero-tracks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-tracks a {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--ink);
  transition: transform var(--transition), border-color var(--transition);
}
.hero-tracks a:hover { transform: translateY(-2px); border-color: var(--violet); }
.hero-tracks .ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 17px; }
.hero-tracks .ico.kids { background: var(--gradient-kids); }
.hero-tracks .ico.teens { background: var(--gradient-teens); }
.hero-tracks small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 12.5px; color: var(--ink-faint); line-height: 1.2; }

.trust-line { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px; }
.trust-line span { font-size: 14px; font-weight: 600; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 8px; }
.trust-line .i { color: var(--mint); font-size: 17px; stroke-width: 2.6; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 540px; margin-left: auto; width: 100%; }
.hero-visual .blob {
  position: absolute; inset: 6%;
  background: var(--gradient-teens); opacity: 0.12;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  animation: morph 14s ease-in-out infinite;
}
.hero-visual > svg.buddy { position: relative; width: 100%; height: 100%; }
.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 14px; box-shadow: var(--shadow-card);
  font-family: var(--font-head); font-size: 13.5px; font-weight: 700; color: var(--ink);
  animation: bob 6s ease-in-out infinite;
}
.float-card small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--ink-faint); }
.float-card .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; }
.float-card.fc-1 { top: 8%; left: -4%; }
.float-card.fc-2 { top: 44%; right: -6%; animation-delay: -2s; }
.float-card.fc-3 { bottom: 6%; left: 2%; animation-delay: -4s; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; }
  50% { border-radius: 58% 42% 45% 55% / 42% 58% 42% 58%; }
}
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
.twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 3s ease-in-out infinite; }
.twinkle.d2 { animation-delay: -1s; }
.twinkle.d3 { animation-delay: -2s; }
.blink { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.wave-arm { transform-box: fill-box; transform-origin: 10% 90%; animation: wave 3.2s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(6deg); } 90% { transform: rotate(-8deg); } }

/* Inner page hero */
.page-hero { position: relative; padding: 76px 0 84px; background: var(--gradient-hero); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero-inner { position: relative; z-index: 1; max-width: 800px; }
.page-hero.center .page-hero-inner { margin: 0 auto; text-align: center; }
.page-hero .section-title { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.025em; }
.page-hero .section-subtitle { font-size: 19px; }
.page-hero .btn-row { margin-top: 30px; }
.page-hero .shape { position: absolute; pointer-events: none; opacity: 0.9; }
.page-hero .shape-1 { width: 90px; right: 8%; top: 18%; color: var(--sun); animation: bob 7s ease-in-out infinite; }
.page-hero .shape-2 { width: 54px; right: 20%; bottom: 14%; color: var(--coral); animation: bob 8s ease-in-out infinite -3s; }
.page-hero .shape-3 { width: 38px; left: 4%; bottom: 18%; color: var(--violet); animation: bob 6s ease-in-out infinite -1s; }

/* ---------------------------------- Cards & grids --------------------------------- */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform var(--transition-slow), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--ink-muted); font-size: 16px; }
.section--night .card { background: rgba(255, 255, 255, 0.04); border-color: var(--night-line); box-shadow: none; }
.section--night .card:hover { border-color: rgba(183, 168, 255, 0.4); }

.icon-tile {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; font-size: 26px; margin-bottom: 20px;
  background: var(--violet-soft); color: var(--violet);
}
.icon-tile.coral { background: var(--coral-soft); color: var(--coral-ink); }
.icon-tile.sun   { background: var(--sun-soft); color: var(--sun-ink); }
.icon-tile.mint  { background: var(--mint-soft); color: var(--mint-ink); }
.icon-tile.sky   { background: var(--sky-soft); color: var(--sky); }
.section--night .icon-tile { background: rgba(183, 168, 255, 0.14); color: #CFC4FF; }

/* Method: THINK → UNDERSTAND → CREATE → BUILD */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.method-step { position: relative; text-align: center; padding: 34px 22px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.method-step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -17px; width: 14px; height: 14px; z-index: 2;
  border-top: 3px solid var(--line-strong); border-right: 3px solid var(--line-strong);
  transform: translateY(-50%) rotate(45deg);
}
.method-num { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--ink-faint); }
.method-word { font-family: var(--font-head); font-size: 26px; font-weight: 700; letter-spacing: 0.02em; margin: 8px 0 10px; }
.method-step:nth-child(1) .method-word { color: var(--violet); }
.method-step:nth-child(2) .method-word { color: var(--sky); }
.method-step:nth-child(3) .method-word { color: var(--coral); }
.method-step:nth-child(4) .method-word { color: var(--mint); }
.method-step p { font-size: 15.5px; color: var(--ink-muted); }
.method-note { text-align: center; margin-top: 34px; }

/* Two tracks */
.track-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); padding: 44px 40px 40px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 18px;
}
.track-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; }
.track-card.kids::before  { background: var(--gradient-kids); }
.track-card.teens::before { background: var(--gradient-teens); }
.track-card .track-glow { position: absolute; width: 280px; height: 280px; right: -90px; top: -90px; border-radius: 50%; opacity: 0.16; pointer-events: none; }
.track-card.kids .track-glow  { background: var(--gradient-kids); }
.track-card.teens .track-glow { background: var(--gradient-teens); }
.track-head { display: flex; align-items: center; gap: 16px; }
.track-emblem { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; font-size: 30px; flex-shrink: 0; }
.track-card.kids .track-emblem  { background: var(--gradient-kids); box-shadow: 0 12px 24px -10px rgba(255, 122, 89, 0.7); }
.track-card.teens .track-emblem { background: var(--gradient-teens); box-shadow: 0 12px 24px -10px rgba(108, 77, 246, 0.7); }
.track-card h3 { font-size: 30px; }
.track-age { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink-faint); }
.track-card .lead { font-size: 18px; color: var(--ink-soft); font-weight: 600; }
.track-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.track-level { padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.track-level b { display: block; font-family: var(--font-head); color: var(--ink); font-size: 16px; }
.track-level span { font-size: 14px; color: var(--ink-muted); }

.tick-list { display: flex; flex-direction: column; gap: 10px; }
.tick-list li { position: relative; padding-left: 32px; color: var(--ink-muted); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312B48E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") no-repeat center / 14px;
}
.tick-list.cross li::before {
  background: var(--coral-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF7A59' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") no-repeat center / 13px;
}
.tick-list strong { color: var(--ink); }
.tick-list a { color: var(--violet); font-weight: 700; text-decoration: underline; }

/* Level journey */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.levels::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 4px; z-index: 0;
  background-image: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%);
  background-size: 14px 4px;
}
.level-card {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 0 24px 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform var(--transition-slow), box-shadow var(--transition);
}
.level-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.level-badge {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 0 18px;
  display: grid; place-items: center; font-size: 30px; color: #fff;
  border: 5px solid var(--bg); transform: translateY(0); margin-top: 0;
  box-shadow: var(--shadow-card);
}
.level-card .level-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.level-card .level-top .chip { margin-top: 22px; }
.level-card.l1 .level-badge { background: linear-gradient(135deg, #FFC23C, #FF9F1C); }
.level-card.l2 .level-badge { background: linear-gradient(135deg, #FF7A59, #FF5C8A); }
.level-card.l3 .level-badge { background: linear-gradient(135deg, #8F78FF, #6C4DF6); }
.level-card.l4 .level-badge { background: linear-gradient(135deg, #1E88E5, #12B48E); }
.level-kicker { font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.level-card h3 { font-size: 24px; margin: 4px 0 4px; }
.level-age { font-weight: 700; color: var(--ink-muted); font-size: 15px; margin-bottom: 12px; }
.level-card p { font-size: 15.5px; color: var(--ink-muted); }
.level-make { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.level-make-label { display: block; font-family: var(--font-head); font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); margin: 16px 0 6px; }
.level-make strong { font-size: 15.5px; }

/* Detailed level rows (Programs page) */
.level-row {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.level-row + .level-row { margin-top: 28px; }
.level-row-side { padding: 36px 32px; color: #fff; display: flex; flex-direction: column; gap: 12px; }
.level-row-side h3 { color: #fff; font-size: 32px; }
.level-row-side .level-kicker { color: rgba(255, 255, 255, 0.85); }
.level-row-side .age { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.level-row-side p { color: rgba(255, 255, 255, 0.92); font-size: 15.5px; }
.level-row-side .status { align-self: flex-start; margin-top: auto; background: rgba(255, 255, 255, 0.2); color: #fff; padding: 6px 14px; border-radius: var(--radius-pill); font-family: var(--font-head); font-size: 13px; font-weight: 700; }
.level-row.l1 .level-row-side { background: linear-gradient(160deg, #F5A300, #FF7A1A); }
.level-row.l2 .level-row-side { background: linear-gradient(160deg, #F25C3B, #E43F7A); }
.level-row.l3 .level-row-side { background: linear-gradient(160deg, #7B5CFF, #5033DB); }
.level-row.l4 .level-row-side { background: linear-gradient(160deg, #1E78D8, #0E9C7A); }
.level-row-main { padding: 36px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.level-row-main h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.level-row-main .tick-list li { font-size: 15.5px; }
.level-row-main .full { grid-column: 1 / -1; }
.ai-mode { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.ai-mode .i { font-size: 22px; color: var(--violet); margin-top: 2px; }
.ai-mode p { font-size: 15px; color: var(--ink-muted); }

/* Project gallery */
.project-card { display: flex; flex-direction: column; gap: 6px; }
.project-card .project-art {
  height: 150px; border-radius: 16px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 56px; position: relative; overflow: hidden;
}
.project-card .project-art .i { stroke-width: 1.6; }
.project-card .project-art::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.4px, transparent 1.4px);
  background-size: 16px 16px; opacity: 0.6;
}
.art-sun   { background: linear-gradient(135deg, #FFE08A, #FFC23C); color: #7A4B00; }
.art-coral { background: linear-gradient(135deg, #FFB199, #FF7A59); color: #7A1F05; }
.art-violet{ background: linear-gradient(135deg, #BFB0FF, #8F78FF); color: #2A1690; }
.art-sky   { background: linear-gradient(135deg, #9ED0FF, #4FA6F2); color: #0B3A73; }
.art-mint  { background: linear-gradient(135deg, #9EEBD6, #3CCBA5); color: #064E3C; }
.art-pink  { background: linear-gradient(135deg, #FFC1DA, #FF7FB2); color: #7A0E3F; }
.project-card .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.project-card h3 { font-size: 19px; margin-bottom: 4px; }
.project-card p { font-size: 15px; }

/* Safety pillars (night section) */
.safety-grid .card h3 { font-size: 19px; }
.safety-grid .card p { font-size: 15.5px; }
.safety-stamp {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 40px;
  padding: 12px 20px; border-radius: var(--radius-pill);
  background: rgba(18, 180, 142, 0.14); color: #7EF0CF; font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
}

/* Split feature block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.feature-panel {
  position: relative; border-radius: var(--radius-lg); padding: 36px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.feature-panel .row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px dashed var(--line-strong); }
.feature-panel .row:last-child { border-bottom: 0; padding-bottom: 0; }
.feature-panel .row:first-child { padding-top: 0; }
.feature-panel .row .icon-tile { margin: 0; width: 46px; height: 46px; font-size: 22px; border-radius: 14px; flex-shrink: 0; }
.feature-panel .row h4 { font-size: 17px; margin-bottom: 4px; }
.feature-panel .row p { font-size: 15px; color: var(--ink-muted); }

/* Chat demo — "think with AI, don't copy" */
.chat-demo { display: flex; flex-direction: column; gap: 12px; }
.chat-demo .who { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.bubble { max-width: 88%; padding: 14px 18px; border-radius: 20px; font-size: 15.5px; line-height: 1.55; }
.bubble.kid { align-self: flex-end; background: var(--gradient-brand); color: #fff; border-bottom-right-radius: 6px; }
.bubble.kid .who { color: rgba(255, 255, 255, 0.8); }
.bubble.ai { align-self: flex-start; background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.coach { align-self: center; max-width: 100%; background: var(--sun-soft); color: var(--sun-ink); border-radius: 14px; font-size: 14px; font-weight: 700; text-align: center; }

/* Pathway */
.pathway { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.path-step { position: relative; padding: 0 18px; text-align: center; }
.path-step::before {
  content: ""; position: absolute; top: 27px; left: 50%; width: 100%; height: 3px;
  background: var(--line-strong);
}
.path-step:last-child::before { display: none; }
.path-dot {
  position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 18px;
  background: var(--surface); border: 3px solid var(--line-strong); color: var(--ink-muted);
}
.path-step.is-here .path-dot { background: var(--gradient-kids); border-color: transparent; color: #fff; box-shadow: 0 0 0 8px var(--coral-soft); }
.path-step h4 { font-size: 18px; margin-bottom: 6px; }
.path-step p { font-size: 14.5px; color: var(--ink-muted); }
.path-step .here { display: inline-block; margin-top: 10px; }

/* Numbered steps (how it works) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px; margin-bottom: 18px;
  font-family: var(--font-head); font-weight: 700; font-size: 19px; color: #fff; background: var(--gradient-brand);
  box-shadow: 0 10px 20px -10px rgba(80, 51, 219, 0.7);
}
.step:nth-child(2)::before { background: linear-gradient(135deg, #1E88E5, #12B48E); }
.step:nth-child(3)::before { background: var(--gradient-kids); }
.step:nth-child(4)::before { background: linear-gradient(135deg, #FF5C8A, #FF7A59); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-muted); }

/* Info table (schools alignment, AI use by age) */
.info-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.info-table th, .info-table td { text-align: left; padding: 18px 22px; vertical-align: top; font-size: 15.5px; }
.info-table thead th { background: var(--surface-2); font-family: var(--font-head); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.info-table tbody tr + tr td { border-top: 1px solid var(--line); }
.info-table td:first-child { font-family: var(--font-head); font-weight: 700; color: var(--ink); width: 30%; }
.info-table td { color: var(--ink-muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); }

/* Data we collect / never collect */
.data-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.data-col { padding: 30px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); }
.data-col h3 { font-size: 19px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.data-col.yes h3 .i { color: var(--mint); }
.data-col.no h3 .i { color: var(--coral); }

/* Stat-free proof strip */
.proof-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 22px 28px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.proof-strip span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--ink-soft); }
.proof-strip .i { color: var(--violet); font-size: 18px; }

/* ---------------------------------- Accordion --------------------------------- */

.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition); }
.accordion-item.is-open { border-color: color-mix(in srgb, var(--violet) 45%, transparent); box-shadow: var(--shadow-card); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: transparent; border: 0; color: var(--ink);
  font-family: var(--font-head); font-size: 17px; font-weight: 700; text-align: left; padding: 22px 26px;
}
.accordion-trigger .plus { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--violet-soft); position: relative; transition: transform var(--transition), background var(--transition); }
.accordion-trigger .plus::before, .accordion-trigger .plus::after { content: ""; position: absolute; background: var(--violet); top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 2px; }
.accordion-trigger .plus::before { width: 12px; height: 2.5px; }
.accordion-trigger .plus::after { width: 2.5px; height: 12px; transition: opacity var(--transition); }
.accordion-item.is-open .plus { transform: rotate(180deg); }
.accordion-item.is-open .plus::after { opacity: 0; }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.accordion-panel-inner { padding: 0 26px 24px; color: var(--ink-muted); font-size: 16px; }
.accordion-panel-inner p + p { margin-top: 10px; }
.accordion-panel-inner a { color: var(--violet); font-weight: 700; }

/* ---------------------------------- CTA banner --------------------------------- */

.cta-banner {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--radius-lg); padding: 76px 48px;
  background: linear-gradient(140deg, #5033DB 0%, #6C4DF6 45%, #1E88E5 100%);
  color: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-pop);
}
.cta-banner::before, .cta-banner::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cta-banner::before { width: 340px; height: 340px; left: -120px; bottom: -160px; background: rgba(255, 194, 60, 0.35); filter: blur(10px); }
.cta-banner::after { width: 260px; height: 260px; right: -80px; top: -120px; background: rgba(255, 122, 89, 0.35); filter: blur(10px); }
.cta-banner-inner { position: relative; z-index: 1; max-width: 660px; margin: 0 auto; }
.cta-banner h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
.cta-banner p { font-size: 18px; margin-bottom: 32px; }
.cta-banner .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.cta-banner .btn-secondary:hover { border-color: #fff; color: #fff; }
.cta-banner .fine { margin: 18px 0 0; font-size: 14px; opacity: 0.85; }
.cta-banner .spark { position: absolute; color: #FFE08A; width: 28px; z-index: 1; }
.cta-banner .spark.s1 { left: 9%; top: 22%; }
.cta-banner .spark.s2 { right: 12%; bottom: 20%; width: 20px; }

/* ---------------------------------- Forms --------------------------------- */

.form-shell { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 32px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-card); }
.form-card h2 { font-size: 26px; margin-bottom: 6px; }
.form-card > p.lede { color: var(--ink-muted); margin-bottom: 28px; }
.form-legend {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet); margin: 28px 0 16px; padding-top: 24px; border-top: 1px dashed var(--line-strong);
}
.form-legend:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.form-legend .num { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--violet-soft); font-size: 13px; letter-spacing: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.form-group label .opt { font-family: var(--font-body); font-weight: 600; color: var(--ink-faint); font-size: 13px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--ink); font-family: var(--font-body); font-size: 16px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group input:hover, .form-group textarea:hover, .form-group select:hover { border-color: var(--line-strong); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--violet); background: var(--surface); box-shadow: 0 0 0 4px var(--violet-soft); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-hint { display: block; font-size: 13.5px; color: var(--ink-faint); margin-top: 6px; }

.check { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 2px solid var(--line); margin-bottom: 12px; cursor: pointer; transition: border-color var(--transition); }
.check:hover { border-color: var(--line-strong); }
.check input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 24px; height: 24px; margin: 1px 0 0; border-radius: 8px; border: 2px solid var(--line-strong); background: var(--surface); cursor: pointer; transition: background var(--transition), border-color var(--transition); }
.check input:checked { background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") no-repeat center / 15px; border-color: var(--violet); }
.check input:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.check span { font-size: 15px; color: var(--ink-muted); line-height: 1.55; }
.check span strong { color: var(--ink); }
.check a { color: var(--violet); font-weight: 700; text-decoration: underline; }
.check.is-required span strong::after { content: " *"; color: var(--coral); }

.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 18px; border-radius: var(--radius-pill); border: 2px solid var(--line);
  background: var(--bg); font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--ink-muted);
  transition: all var(--transition);
}
.seg label span small { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; color: var(--ink-faint); }
.seg input:checked + span { border-color: var(--violet); background: var(--violet-soft); color: var(--violet-deep); }
:root[data-theme="dark"] .seg input:checked + span { color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }

.form-note { font-size: 13.5px; color: var(--ink-faint); margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }
.form-note .i { color: var(--mint); font-size: 16px; margin-top: 3px; }
.form-success, .form-error { display: none; border-radius: var(--radius-sm); padding: 16px 20px; font-size: 15.5px; margin-top: 20px; }
.form-success { background: var(--mint-soft); border: 2px solid rgba(18, 180, 142, 0.35); color: var(--mint-ink); font-weight: 600; }
.form-error { background: var(--coral-soft); border: 2px solid rgba(255, 122, 89, 0.4); color: var(--coral-ink); font-weight: 600; }
.form-success.is-visible, .form-error.is-visible { display: block; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea, .check.has-error { border-color: var(--coral); }
.field-error { display: block; color: var(--coral-ink); font-size: 13.5px; font-weight: 600; margin-top: 6px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.aside-card + .aside-card { margin-top: 20px; }
.aside-card h3 { font-size: 19px; margin-bottom: 16px; }
.aside-card .tick-list li { font-size: 15px; }
.aside-card.warm { background: var(--sun-soft); border-color: transparent; }
.aside-card.warm h3, .aside-card.warm p { color: var(--sun-ink); }
.mini-steps { counter-reset: ms; display: flex; flex-direction: column; gap: 14px; }
.mini-steps li { counter-increment: ms; display: flex; gap: 12px; font-size: 15px; color: var(--ink-muted); }
.mini-steps li::before { content: counter(ms); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); font-family: var(--font-head); font-weight: 700; font-size: 13px; }

.contact-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line-strong); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon-tile { width: 42px; height: 42px; font-size: 20px; border-radius: 12px; margin: 0; }
.contact-item h4 { font-size: 15px; margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: 15px; color: var(--ink-muted); }
.contact-item a:hover { color: var(--violet); }

/* Consent confirmation result */
.notice-card { max-width: 640px; margin: 0 auto; text-align: center; padding: 56px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.notice-card .icon-tile { width: 76px; height: 76px; font-size: 38px; border-radius: 24px; margin: 0 auto 22px; }
.notice-card h2 { font-size: 30px; margin-bottom: 12px; }
.notice-card p { color: var(--ink-muted); margin-bottom: 26px; }
.notice-card .btn-row { justify-content: center; }

/* ---------------------------------- Legal / prose --------------------------------- */

.legal-content { font-size: 17px; }
.legal-content h2 { font-size: 24px; margin: 44px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 19px; margin: 28px 0 10px; }
.legal-content p, .legal-content li { color: var(--ink-muted); margin-bottom: 14px; }
.legal-content ul, .legal-content ol { padding-left: 22px; list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--violet); font-weight: 700; text-decoration: underline; }
.legal-updated { display: inline-block; color: var(--ink-faint); font-size: 14.5px; margin-bottom: 36px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line); }
.legal-callout { padding: 20px 24px; border-radius: var(--radius-md); background: var(--violet-soft); color: var(--ink-soft); margin: 0 0 28px; }
.legal-callout p { color: var(--ink-soft); margin: 0; }
.legal-content .info-table td:first-child { width: 34%; }

.daj-prose > * + * { margin-top: 1em; }

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

.site-footer {
  position: relative; background: var(--night); color: var(--night-muted);
  padding: 80px 0 30px; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, #FFC23C, #FF7A59, #6C4DF6, #1E88E5, #12B48E);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 52px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name .brand-accent { color: #B7A8FF; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-tagline { color: var(--night-muted); font-size: 15.5px; margin-bottom: 20px; max-width: 320px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.footer-badges span { font-family: var(--font-head); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--night-line); color: #DCD8FF; display: inline-flex; gap: 6px; align-items: center; }
.footer-badges .i { color: #7EF0CF; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--night-muted); font-size: 15px; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--night-line); display: flex; align-items: center; justify-content: center; color: var(--night-muted); transition: color var(--transition), border-color var(--transition), transform var(--transition), background var(--transition); }
.social-row a svg { width: 17px; height: 17px; fill: currentColor; }
.social-row a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.footer-parent {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 26px; margin-bottom: 36px; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--night-line);
}
.footer-parent p { color: var(--night-muted); font-size: 15px; }
.footer-parent strong { color: #fff; }
.footer-parent .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.footer-parent .btn-secondary:hover { border-color: #fff; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; border-top: 1px solid var(--night-line); font-size: 13.5px; color: var(--night-muted); }

/* ---------------------------------- Floating actions --------------------------------- */

.mobile-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 490; display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.whatsapp-float {
  position: fixed; right: 22px; bottom: 28px; z-index: 485;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------------------------------- Upcoming batches --------------------------------- */

.batch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 380px)); justify-content: center; gap: 24px; }
.batch-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  padding: 30px 28px 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform var(--transition-slow), box-shadow var(--transition);
}
.batch-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; }
.batch-card.l1::before { background: linear-gradient(90deg, #FFC23C, #FF9F1C); }
.batch-card.l2::before { background: linear-gradient(90deg, #FF7A59, #FF5C8A); }
.batch-card.l3::before { background: linear-gradient(90deg, #8F78FF, #6C4DF6); }
.batch-card.l4::before { background: linear-gradient(90deg, #1E88E5, #12B48E); }
.batch-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }
.batch-card.is-full { opacity: 0.78; }
.batch-top { display: flex; align-items: flex-start; gap: 14px; }
.batch-badge { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 24px; }
.l1 .batch-badge { background: linear-gradient(135deg, #FFC23C, #FF9F1C); }
.l2 .batch-badge { background: linear-gradient(135deg, #FF7A59, #FF5C8A); }
.l3 .batch-badge { background: linear-gradient(135deg, #8F78FF, #6C4DF6); }
.l4 .batch-badge { background: linear-gradient(135deg, #1E88E5, #12B48E); }
.batch-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.batch-card h3 { font-size: 21px; line-height: 1.25; margin-top: 4px; }
.batch-when { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--violet); }
.batch-when .i { font-size: 17px; flex: none; }
.batch-summary { color: var(--ink-muted); font-size: 15.5px; }
.batch-foot { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line-strong); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.batch-price { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--ink); line-height: 1.1; }
.batch-price del { font-size: 16px; color: var(--ink-faint); margin-right: 4px; }
.batch-price ins { text-decoration: none; }
.batch-price small { display: block; font-family: var(--font-body); font-size: 12.5px; font-weight: 700; color: var(--ink-faint); margin-top: 2px; }
.batch-foot .btn { padding: 13px 22px; }
.batch-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; text-align: center; color: var(--mint-ink); font-weight: 700; font-size: 15px; }
.batch-note .i { color: var(--mint); font-size: 18px; flex: none; }
.batch-empty { max-width: 640px; margin: 0 auto; text-align: center; padding: 48px 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.batch-empty .icon-tile { margin: 0 auto 18px; width: 64px; height: 64px; font-size: 30px; }
.batch-empty h3 { font-size: 24px; margin-bottom: 8px; }
.batch-empty p { color: var(--ink-muted); margin-bottom: 22px; }
.batch-empty .btn-row { justify-content: center; }
@media (max-width: 680px) {
  .batch-grid { grid-template-columns: 1fr; }
  .batch-card { padding: 26px 20px 22px; }
  .batch-foot .btn { width: 100%; }
}

/* ---------------------------------- Reveal on scroll --------------------------------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1140px) {
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    height: calc(100vh - var(--nav-height)); height: calc(100dvh - var(--nav-height));
    background: var(--bg); flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px; padding: 24px; overflow-y: auto;
    transform: translateX(100%); opacity: 0; visibility: hidden;
    transition: transform var(--transition-slow), opacity var(--transition-slow), visibility var(--transition-slow);
  }
  .admin-bar .nav-links { top: calc(var(--nav-height) + 32px); }
  .nav-links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 16px 6px; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--violet); }
  .nav-links a.nav-mobile-only { display: block; color: var(--violet); }
  .nav-toggle { display: flex; }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .levels::before { display: none; }
  .level-row { grid-template-columns: 1fr; }
  .form-shell { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .hero { padding: 48px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { max-width: 400px; margin: 8px auto 0; }
  .float-card.fc-1 { left: 0; }
  .float-card.fc-2 { right: 0; }
  .grid-4, .method, .steps { grid-template-columns: repeat(2, 1fr); }
  .method-step:not(:last-child)::after { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .pathway { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .path-step:nth-child(2)::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero .shape { display: none; }
}

@media (max-width: 1040px) {
  .navbar-actions .btn-sm { display: none; }
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 78px; }
  .section { padding: 76px 0; }
  .whatsapp-float { right: 16px; bottom: 98px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 25px; height: 25px; }
}

@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .container, .container-narrow { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .method, .steps, .levels, .track-levels, .data-cols, .pathway { grid-template-columns: 1fr; }
  .path-step::before { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card, .track-card { padding: 30px 22px; }
  .level-row-main { grid-template-columns: 1fr; padding: 28px 22px; }
  .level-row-side { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-banner { padding: 52px 22px; }
  .brand-name { font-size: 11.5px; }
  .brand-juniors { font-size: 24px; }
  .brand-mark { width: 40px; height: 40px; }
  .topbar { font-size: 12.5px; }
  .float-card { font-size: 12px; padding: 8px 10px; }
  .float-card .ico { width: 28px; height: 28px; font-size: 15px; }
  .float-card.fc-2 { display: none; }
  .info-table th, .info-table td { padding: 14px 16px; font-size: 14.5px; }
  .proof-strip { border-radius: var(--radius-md); justify-content: flex-start; }
  .btn-lg { padding: 16px 26px; }
  .hero .btn-row .btn { width: 100%; }
}
