/* ============================================================
   DigiKids Vračar — Design System
   Playful & vibrant. Mobile-first. Vanilla CSS, no framework.
   ============================================================ */

/* -------- Tokens -------- */
:root {
  /* Brand palette */
  --c-coral: #FF6B4A;
  --c-coral-deep: #E8472A;
  --c-coral-soft: #FFE4DC;

  --c-purple: #8B5CF6;
  --c-purple-deep: #6D28D9;
  --c-purple-soft: #EDE4FE;

  --c-mint: #06D6A0;
  --c-mint-deep: #04A77B;
  --c-mint-soft: #D6F7EC;

  --c-yellow: #FFD166;
  --c-yellow-deep: #F0AB1F;
  --c-yellow-soft: #FFF3D6;

  --c-pink: #FF8FB1;
  --c-blue: #3B82F6;

  /* Neutrals */
  --c-ink: #1A1B4B;
  --c-ink-2: #3D3E6E;
  --c-ink-3: #6E6F94;
  --c-line: #E6E5F1;
  --c-bg: #FFFAF3;
  --c-bg-2: #FFFFFF;
  --c-bg-3: #FFF1E6;

  /* Semantic */
  --c-text: var(--c-ink);
  --c-text-soft: var(--c-ink-2);
  --c-text-muted: var(--c-ink-3);

  /* Typography — fonts chosen for excellent Serbian Latin diacritic rendering (ć, č, š, ž, đ).
     Nunito for display (rounded/friendly like Fredoka but proper Serbian glyphs).
     Inter for body (industry-standard, perfect Latin Extended on Windows + macOS). */
  --font-display: 'Nunito', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --fs-h1: clamp(2.25rem, 1rem + 5vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 0.9rem + 3.4vw, 3rem);
  --fs-h3: clamp(1.35rem, 0.9rem + 1.8vw, 2rem);
  --fs-h4: clamp(1.125rem, 0.95rem + 0.8vw, 1.4rem);
  --fs-lg: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;

  /* Spacing scale (rem) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Radius — generous, playful */
  --r-sm: 0.5rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --r-2xl: 2.5rem;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 27, 75, 0.06), 0 1px 3px rgba(26, 27, 75, 0.05);
  --shadow-md: 0 4px 12px rgba(26, 27, 75, 0.08), 0 2px 4px rgba(26, 27, 75, 0.04);
  --shadow-lg: 0 12px 32px rgba(26, 27, 75, 0.12), 0 4px 8px rgba(26, 27, 75, 0.06);
  --shadow-pop: 0 16px 40px rgba(255, 107, 74, 0.25);
  --shadow-pop-purple: 0 16px 40px rgba(139, 92, 246, 0.25);

  /* Transitions */
  --t-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 320ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-narrow: 60rem;
  --container-base: 76rem;
  --container-wide: 88rem;
  --section-py: clamp(3rem, 6vw, 6rem);

  --nav-h: 76px;
}

@font-face { font-family: 'Nunito'; font-display: swap; }
@font-face { font-family: 'Inter'; font-display: swap; }

/* Apply OpenType features that improve Serbian Latin rendering */
body { font-feature-settings: "kern" 1, "liga" 1, "calt" 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--c-coral-deep); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-coral); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  margin: 0 0 var(--s-4);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); font-weight: 600; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 500; }
p { margin: 0 0 var(--s-4); line-height: var(--lh-relaxed); }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25rem; }
strong { font-weight: 700; color: var(--c-ink); }

::selection { background: var(--c-yellow); color: var(--c-ink); }

:focus-visible {
  outline: 3px solid var(--c-purple);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* -------- Layout primitives -------- */
.container { width: 100%; max-width: var(--container-base); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container.narrow { max-width: var(--container-narrow); }
.container.wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-py); position: relative; }
.section + .section { padding-top: 0; }
.section.tinted { background: var(--c-bg-3); }
.section.coral { background: var(--c-coral-soft); }
.section.purple { background: var(--c-purple-soft); }
.section.mint { background: var(--c-mint-soft); }
.section.dark { background: var(--c-ink); color: white; }
.section.dark h1, .section.dark h2, .section.dark h3 { color: white; }

.center { text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  background: var(--c-coral-soft);
  color: var(--c-coral-deep);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-4);
}
.eyebrow.purple { background: var(--c-purple-soft); color: var(--c-purple-deep); }
.eyebrow.mint { background: var(--c-mint-soft); color: var(--c-mint-deep); }
.eyebrow.yellow { background: var(--c-yellow-soft); color: var(--c-yellow-deep); }

.lead { font-size: var(--fs-lg); color: var(--c-text-soft); max-width: 42rem; }
.lead.center { margin-inline: auto; }

.section-head { text-align: center; max-width: 50rem; margin: 0 auto var(--s-7); }
.section-head .lead { margin-inline: auto; }

/* Grids */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }

.flex { display: flex; gap: var(--s-4); }
.flex.center { align-items: center; justify-content: center; }
.flex.wrap { flex-wrap: wrap; }
.flex.col { flex-direction: column; }
.flex.between { justify-content: space-between; align-items: center; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.95rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-base);
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform var(--t-bounce), box-shadow var(--t-base), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-coral);
  color: white;
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover { background: var(--c-coral-deep); color: white; box-shadow: 0 20px 48px rgba(255, 107, 74, 0.35); }

.btn-secondary {
  background: var(--c-ink);
  color: white;
}
.btn-secondary:hover { background: var(--c-ink-2); color: white; }

.btn-purple {
  background: var(--c-purple);
  color: white;
  box-shadow: var(--shadow-pop-purple);
}
.btn-purple:hover { background: var(--c-purple-deep); color: white; }

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn-ghost:hover { background: var(--c-ink); color: white; }

.btn-soft {
  background: white;
  color: var(--c-ink);
  border-color: var(--c-line);
  box-shadow: var(--shadow-sm);
}
.btn-soft:hover { border-color: var(--c-coral); color: var(--c-coral-deep); }

.btn-lg { padding: 1.15rem 2rem; font-size: var(--fs-lg); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: var(--fs-sm); }

/* -------- Header / Nav -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header.scrolled { border-bottom-color: var(--c-line); background: rgba(255, 250, 243, 0.95); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: var(--s-5);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--c-ink);
  letter-spacing: -0.02em;
}
.nav-brand:hover { color: var(--c-coral-deep); }
.nav-brand .logo-mark { height: 44px; width: auto; flex-shrink: 0; max-width: 180px; }
/* Hide the redundant "DigiKids" wordmark — the logo image already carries the brand. Keep only the "Vračar" location pill. */
.nav-brand > span { font-size: 0; line-height: 1; }
.nav-brand small {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--c-coral-deep);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-body);
  background: var(--c-coral-soft);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  display: inline-block;
}
.site-footer .nav-brand small { background: rgba(255,209,102,0.16); color: var(--c-yellow); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  color: var(--c-ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-links a:hover, .nav-links a.active { background: var(--c-coral-soft); color: var(--c-coral-deep); }

.nav-actions { display: flex; align-items: center; gap: var(--s-3); }

/* Lang switcher */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  transition: border-color var(--t-fast);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: var(--c-coral); }
.lang-switch[open] summary { border-color: var(--c-coral); }
.lang-switch ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--s-2);
  margin: 0;
  list-style: none;
  min-width: 11rem;
  box-shadow: var(--shadow-lg);
  z-index: 60;
}
.lang-switch li a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  color: var(--c-ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.lang-switch li a:hover { background: var(--c-coral-soft); color: var(--c-coral-deep); }
.lang-switch li a.current { background: var(--c-coral-soft); color: var(--c-coral-deep); font-weight: 700; }
.lang-flag { width: 1.4rem; height: 1rem; flex-shrink: 0; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); object-fit: cover; vertical-align: middle; }
.lang-switch summary .lang-flag, .lang-switch li a .lang-flag { display: inline-block; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: white;
  border: 1px solid var(--c-line);
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--c-ink);
  margin: 4px auto;
  border-radius: 2px;
  transition: transform var(--t-base);
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    padding: var(--s-5);
    gap: var(--s-2);
    border-bottom: 1px solid var(--c-line);
    transform: translateY(-110%);
    transition: transform var(--t-base);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: var(--s-3) var(--s-4); font-size: 1.05rem; }
  .nav-brand small { display: none; }
}

/* ============================================================
   Mobile header overhaul (≤720px)
   The default nav has 4 elements (logo + lang switch + CTA + hamburger)
   that don't all fit at 390px. Strategy: keep logo + hamburger only.
   Lang switcher moves into the mobile menu, CTA relies on sticky bar.
   ============================================================ */
@media (max-width: 720px) {
  :root { --nav-h: 64px; }

  .site-header { background: rgba(255, 250, 243, 0.96); }
  .nav { gap: 8px; }

  /* Logo — strictly capped so it never overflows */
  .nav-brand { gap: 8px; min-width: 0; flex-shrink: 1; }
  .nav-brand .logo-mark { height: 36px; max-width: 96px; width: auto; }
  .nav-brand > span,
  .nav-brand small { display: none !important; }

  /* Lang switcher — moves into mobile menu, hidden from header */
  .site-header .nav-actions > .lang-switch { display: none; }

  /* "Probni čas" header CTA — hidden, sticky bottom CTA replaces it */
  .site-header .nav-actions > .btn-primary,
  .site-header .nav-actions > .btn { display: none; }

  /* Nav actions — only hamburger on mobile */
  .nav-actions { gap: 0; flex-shrink: 0; margin-left: auto; }
  .nav-toggle { width: 44px; height: 44px; }

  /* Mobile menu — full-screen overlay style with lang switcher inside */
  .nav-links {
    top: 64px;
    padding: 16px 20px 24px;
    gap: 4px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.08);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav-links a.active { background: var(--c-coral-soft); color: var(--c-coral-deep); }

  /* JS-injected mobile-only CTA + lang section inside hamburger menu */
  .mobile-extra {
    list-style: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--c-line);
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }
  .mobile-cta-link {
    display: block !important;
    background: var(--c-coral) !important;
    color: white !important;
    padding: 14px 18px !important;
    border-radius: var(--r-pill) !important;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-pop);
  }
  .mobile-cta-link:hover { background: var(--c-coral-deep) !important; color: white !important; }
  .mobile-lang-list {
    display: flex; gap: 6px;
    background: var(--c-bg-3);
    padding: 4px;
    border-radius: var(--r-pill);
  }
  .mobile-lang-list li { list-style: none; flex: 1; }
  .mobile-lang-list a {
    display: flex !important;
    align-items: center; justify-content: center; gap: 6px;
    padding: 8px 6px !important;
    font-size: 0.85rem !important;
    border-radius: 999px !important;
    color: var(--c-text-soft) !important;
    background: transparent !important;
    font-weight: 600;
  }
  .mobile-lang-list a.current {
    background: white !important;
    color: var(--c-coral-deep) !important;
    box-shadow: var(--shadow-sm);
  }
  .mobile-lang-list .lang-flag { width: 1.1rem; height: 0.8rem; }
}

/* Hide mobile-extra on desktop */
@media (min-width: 721px) {
  .mobile-extra { display: none !important; }
}

/* -------- Hero -------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .accent { color: var(--c-coral); position: relative; display: inline-block; }
.hero h1 .accent::after {
  content: '';
  position: absolute;
  left: -4%; right: -4%; bottom: 0.05em; height: 0.32em;
  background: var(--c-yellow);
  z-index: -1;
  border-radius: var(--r-pill);
  transform: skewX(-6deg);
}
.hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }
.hero-trust {
  margin-top: var(--s-7);
  display: flex; flex-wrap: wrap; gap: var(--s-5);
}
.hero-trust-item { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--c-text-soft); font-weight: 600; }
.hero-trust-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-mint); }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 36rem;
  margin-inline: auto;
}

/* Floating decorative blobs */
.blob {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  filter: blur(0px);
  opacity: 0.85;
  animation: float 9s ease-in-out infinite;
}
.blob.b1 { width: 28%; top: -5%; left: -8%; animation-delay: 0s; }
.blob.b2 { width: 22%; bottom: -8%; right: -6%; animation-delay: -3s; }
.blob.b3 { width: 16%; top: 35%; right: -5%; animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(2%, -3%) rotate(6deg); }
}

/* -------- Cards -------- */
.card {
  background: white;
  border-radius: var(--r-xl);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
  background: var(--c-coral-soft);
  color: var(--c-coral-deep);
}
.card-icon svg { width: 30px; height: 30px; }
.card.purple .card-icon { background: var(--c-purple-soft); color: var(--c-purple-deep); }
.card.mint .card-icon { background: var(--c-mint-soft); color: var(--c-mint-deep); }
.card.yellow .card-icon { background: var(--c-yellow-soft); color: var(--c-yellow-deep); }

.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--c-text-soft); }

/* Program card variant */
.program-card {
  background: white;
  border-radius: var(--r-xl);
  padding: var(--s-6);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  box-shadow: var(--shadow-sm);
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--belt-color, var(--c-coral)); }
.program-card .belt {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--belt-color, var(--c-coral-deep));
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.program-card .belt::before {
  content: ''; width: 24px; height: 6px; border-radius: 4px; background: var(--belt-color, var(--c-coral));
}
.program-card h3 { margin-bottom: var(--s-2); }
.program-card .age {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-muted);
}
.program-card p { color: var(--c-text-soft); }
.program-card .tech-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; padding-top: var(--s-3); }
.program-card .tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  background: var(--c-bg-3);
  color: var(--c-text-soft);
  border: 1px solid var(--c-line);
}

/* Belt color modifiers */
.belt-pink { --belt-color: var(--c-pink); }
.belt-yellow { --belt-color: var(--c-yellow-deep); }
.belt-orange { --belt-color: var(--c-coral); }
.belt-green { --belt-color: var(--c-mint-deep); }
.belt-blue { --belt-color: var(--c-blue); }
.belt-purple { --belt-color: var(--c-purple); }
.belt-red { --belt-color: var(--c-coral-deep); }
.belt-brown { --belt-color: #92522A; }
.belt-black { --belt-color: var(--c-ink); }

/* Stat */
.stat {
  text-align: center;
  padding: var(--s-5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 7.5rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--c-coral-deep);
  margin-bottom: var(--s-2);
}
.stat.purple .stat-num { color: var(--c-purple-deep); }
.stat.mint .stat-num { color: var(--c-mint-deep); }
.stat.yellow .stat-num { color: var(--c-yellow-deep); }
.stat-label { font-weight: 600; color: var(--c-text-soft); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; }

/* Testimonial */
.testimonial {
  background: white;
  border-radius: var(--r-xl);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 12px; left: 20px;
  font-family: serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--c-coral-soft);
  font-weight: 700;
}
.testimonial blockquote {
  margin: 0 0 var(--s-4);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--c-text);
  position: relative;
  z-index: 1;
}
.testimonial cite {
  display: flex; align-items: center; gap: var(--s-3);
  font-style: normal;
  font-weight: 600;
  color: var(--c-text-soft);
  font-size: var(--fs-sm);
}
.testimonial .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-purple-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-purple-deep);
  font-size: 1.1rem;
}

/* FAQ accordion */
.faq { display: flex; flex-direction: column; gap: var(--s-3); }
.faq-item {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  padding: 0;
  overflow: hidden;
  transition: border-color var(--t-base);
}
.faq-item[open] { border-color: var(--c-coral); box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--s-5) var(--s-5);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  color: var(--c-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-coral-soft);
  color: var(--c-coral-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--t-base), background var(--t-fast);
}
.faq-item[open] summary::after { content: '−'; transform: rotate(180deg); background: var(--c-coral); color: white; }
.faq-item .faq-body { padding: 0 var(--s-5) var(--s-5); color: var(--c-text-soft); line-height: var(--lh-relaxed); }
.faq-item .faq-body p { margin: 0; }

/* -------- Forms -------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field.full { grid-column: 1 / -1; }
.field label {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
}
.field input, .field textarea, .field select {
  padding: 0.85rem 1rem;
  background: white;
  border: 2px solid var(--c-line);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--c-ink);
  transition: border-color var(--t-fast), background var(--t-fast);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--c-coral);
  background: var(--c-coral-soft);
}
.field-help { font-size: var(--fs-xs); color: var(--c-text-muted); }

/* -------- Footer -------- */
.site-footer {
  background: var(--c-ink);
  color: rgba(255,255,255,0.85);
  padding: var(--s-9) 0 var(--s-6);
  position: relative;
}
.site-footer h4 { color: white; font-family: var(--font-display); font-weight: 600; margin-bottom: var(--s-4); font-size: 1.1rem; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: white; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); margin-bottom: var(--s-7); }
@media (max-width: 720px) { .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: rgba(255,255,255,0.65); margin-top: var(--s-4); max-width: 28rem; font-size: var(--fs-sm); }
.footer-brand .nav-brand { color: white; }
.footer-brand .nav-brand:hover { color: var(--c-coral); }
.footer-brand .nav-brand small { color: var(--c-yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
}
.footer-bottom .socials { display: flex; gap: var(--s-3); }
.footer-bottom .socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}
.footer-bottom .socials a:hover { background: var(--c-coral); }

/* -------- Decorative section dividers -------- */
.divider-wave {
  display: block;
  width: 100%;
  height: clamp(40px, 8vw, 80px);
  fill: var(--c-bg);
}

/* -------- Misc utilities -------- */
.sticker {
  display: inline-block;
  padding: var(--s-2) var(--s-4);
  background: var(--c-yellow);
  color: var(--c-ink);
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: var(--fs-sm);
  transform: rotate(-3deg);
  box-shadow: var(--shadow-sm);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-pill);
  background: var(--c-bg-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-soft);
}

/* Scroll-reveal — IntersectionObserver toggles .visible. Fallback animation auto-reveals
   after 1.4s in case JS or the observer is slow / blocked, so content never stays hidden. */
@keyframes auto-reveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  animation: auto-reveal 0.6s 1.4s forwards;
}
.reveal.visible { opacity: 1; transform: translateY(0); animation: none; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--c-ink);
  color: white;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-md);
  z-index: 100;
}
.skip-link:focus { top: 8px; color: white; }

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

/* 404 */
.page-404 { min-height: 100vh; display: flex; align-items: center; padding: var(--s-7) 0; }
.error-block { text-align: center; padding: var(--s-7) 0; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 10rem); font-weight: 700; line-height: 1; color: var(--c-coral); }

/* -------- Sticky mobile CTA -------- */
.mobile-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 40;
  display: none;
  background: var(--c-coral);
  color: white;
  padding: 0.95rem 1.4rem;
  border-radius: var(--r-pill);
  box-shadow: 0 12px 32px rgba(255, 107, 74, 0.35);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  text-decoration: none;
}
.mobile-cta:hover { color: white; background: var(--c-coral-deep); }
@media (max-width: 720px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 80px; }
}

/* -------- Trust badges -------- */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: linear-gradient(180deg, transparent, var(--c-bg-3));
}
@media (max-width: 720px) {
  .trust-strip { padding: var(--s-4) 0; }
  .trust-badge { font-size: 0.78rem; gap: var(--s-2); }
  .trust-badge svg { width: 22px; height: 22px; }
}

/* -------- Screen-level chip (program cards) -------- */
.screen-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  background: var(--c-mint-soft);
  color: var(--c-mint-deep);
}
.screen-chip.tablet { background: var(--c-yellow-soft); color: var(--c-yellow-deep); }
.screen-chip.laptop { background: var(--c-blue); color: white; }
.screen-chip.hardware { background: var(--c-purple-soft); color: var(--c-purple-deep); }
.screen-chip svg { width: 14px; height: 14px; }

/* -------- Proof card (trust signals) -------- */
.proof-card {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
  text-decoration: none; color: inherit;
  transition: border-color var(--t-base), transform var(--t-base);
}
.proof-card:hover { border-color: var(--c-coral); transform: translateY(-2px); color: inherit; }
.proof-card .proof-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--c-coral-deep); line-height: 1; }
.proof-card .proof-label { color: var(--c-text-soft); font-size: 0.95rem; }
.proof-card.purple .proof-num { color: var(--c-purple-deep); }
.proof-card.mint .proof-num { color: var(--c-mint-deep); }
.proof-card.yellow .proof-num { color: var(--c-yellow-deep); }

/* -------- Before-after progress timeline -------- */
.progress-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: var(--s-4);
  position: relative;
}
.progress-step {
  background: white;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  position: relative;
  border-top: 4px solid var(--c-coral);
  box-shadow: var(--shadow-sm);
}
.progress-step:nth-child(2) { border-top-color: var(--c-yellow-deep); }
.progress-step:nth-child(3) { border-top-color: var(--c-mint-deep); }
.progress-step:nth-child(4) { border-top-color: var(--c-purple); }
.progress-step .step-time { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--c-coral-deep); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--s-2); }
.progress-step:nth-child(2) .step-time { color: var(--c-yellow-deep); }
.progress-step:nth-child(3) .step-time { color: var(--c-mint-deep); }
.progress-step:nth-child(4) .step-time { color: var(--c-purple-deep); }
.progress-step h4 { font-size: 1.05rem; margin-bottom: var(--s-2); }
.progress-step p { font-size: 0.92rem; color: var(--c-text-soft); margin: 0; }

/* -------- Reassurance chips (hero) -------- */
.reassurance-row {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  margin-top: var(--s-5);
}
.reassurance-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text-soft);
  box-shadow: var(--shadow-sm);
}
.reassurance-chip svg { width: 16px; height: 16px; color: var(--c-mint-deep); flex-shrink: 0; }

/* -------- Filter chips (blog categories) -------- */
.filter-row {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  justify-content: center;
  margin-bottom: var(--s-6);
}
.filter-chip {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: white;
  border: 1px solid var(--c-line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--c-text-soft);
  cursor: pointer;
  transition: all var(--t-fast);
}
.filter-chip:hover, .filter-chip.active {
  background: var(--c-coral);
  color: white;
  border-color: var(--c-coral);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* -------- Visually hidden (a11y for honeypot) -------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------- Video gallery -------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: var(--s-5);
}
.video-card {
  background: var(--c-ink);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.video-card img.poster { object-position: center 35%; }
.video-card.landscape { aspect-ratio: 3 / 4; }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-card video,
.video-card img.poster {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.video-card .play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  pointer-events: none;
  transition: transform var(--t-base);
}
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); }
.video-card .play-btn::before {
  content: '';
  width: 0; height: 0;
  border-left: 22px solid var(--c-coral);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}
.video-card.playing .play-btn { display: none; }
.video-card .vc-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s-4) var(--s-5);
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 20%, transparent);
  color: white;
  pointer-events: none;
}
.video-card .vc-meta .vc-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.video-card .vc-meta h3 {
  font-size: 1.05rem;
  margin: 0;
  color: white;
  font-weight: 600;
  line-height: 1.3;
}
.video-card.playing .vc-meta { opacity: 0; transition: opacity 200ms; }

/* -------- Reading progress bar (for blog posts) -------- */
.reading-progress {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-coral), var(--c-yellow-deep));
  width: 0%;
  z-index: 49;
  transition: width 50ms linear;
  pointer-events: none;
}
.trust-badge {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  font-weight: 600;
  white-space: nowrap;
}
.trust-badge svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--c-coral-deep); }
.trust-badge.purple svg { color: var(--c-purple-deep); }
.trust-badge.mint svg { color: var(--c-mint-deep); }
.trust-badge.yellow svg { color: var(--c-yellow-deep); }

/* -------- Belt progression timeline -------- */
.belt-timeline {
  position: relative;
  margin: var(--s-7) 0 var(--s-9);
  padding: var(--s-6) var(--s-5) var(--s-5);
  background: white;
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.belt-track {
  position: relative;
  height: 280px;
  min-width: 760px;
  margin: 0 auto;
}
.belt-axis {
  position: absolute;
  left: 0; right: 0;
  bottom: 60px;
  height: 8px;
  background: linear-gradient(90deg,
    #FF8FB1 0%, #FF8FB1 16%,
    #FFD166 16%, #FFD166 30%,
    #FF6B4A 30%, #FF6B4A 38%,
    #06D6A0 38%, #06D6A0 46%,
    #3B82F6 46%, #3B82F6 60%,
    #8B5CF6 60%, #8B5CF6 70%,
    #E8472A 70%, #E8472A 78%,
    #92522A 78%, #92522A 86%,
    #1A1B4B 86%, #1A1B4B 100%);
  border-radius: 4px;
}
.belt-marker {
  position: absolute;
  bottom: 78px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer;
  z-index: 2;
}
.belt-marker .dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--belt-color, var(--c-coral));
  border: 4px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform var(--t-base);
}
.belt-marker:hover .dot, .belt-marker:focus .dot { transform: scale(1.45); }
.belt-marker .label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--belt-color, var(--c-coral-deep));
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: white;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}
.belt-marker.up { bottom: 78px; }
.belt-marker.up .label { order: -1; margin-bottom: 4px; }
.belt-marker.down { bottom: auto; top: 178px; }
.belt-marker.down .label { margin-top: 4px; }
.belt-axis-labels {
  position: absolute;
  left: 0; right: 0;
  bottom: 32px;
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-text-muted);
  font-family: var(--font-display);
}
.belt-axis-tick { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.belt-axis-tick::before {
  content: ''; width: 2px; height: 10px; background: var(--c-line); margin-bottom: 4px;
}

.belt-tooltip {
  display: none;
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(100% + 12px);
  background: var(--c-ink); color: white;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: var(--shadow-md);
  z-index: 5;
  pointer-events: none;
}
.belt-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--c-ink);
}
.belt-tooltip strong { display: block; color: var(--c-yellow); font-family: var(--font-display); font-size: 0.9rem; margin-bottom: 2px; }
.belt-marker:hover .belt-tooltip, .belt-marker:focus .belt-tooltip { display: block; }

/* -------- Newsletter signup -------- */
.newsletter {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  margin-bottom: var(--s-6);
}
.newsletter h4 { color: white; margin-bottom: var(--s-2); }
.newsletter p { color: rgba(255,255,255,0.7); font-size: var(--fs-sm); margin-bottom: var(--s-3); }
.newsletter form { display: flex; gap: var(--s-2); }
.newsletter input {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: white;
  font-size: var(--fs-sm);
}
.newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter input:focus { outline: none; border-color: var(--c-coral); background: rgba(255,255,255,0.1); }
.newsletter button {
  padding: 0.7rem 1.3rem;
  border-radius: var(--r-pill);
  background: var(--c-coral);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast);
}
.newsletter button:hover { background: var(--c-coral-deep); }

/* -------- Program finder quiz -------- */
.quiz {
  background: linear-gradient(135deg, #fff 0%, var(--c-bg-3) 100%);
  border-radius: var(--r-2xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.quiz-progress {
  display: flex; gap: 6px;
  margin-bottom: var(--s-5);
}
.quiz-progress span {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--c-line);
  transition: background var(--t-base);
}
.quiz-progress span.active { background: var(--c-coral); }
.quiz-progress span.done { background: var(--c-mint); }
.quiz-step { display: none; animation: quiz-fade 320ms ease both; }
.quiz-step.active { display: block; }
@keyframes quiz-fade {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.quiz-step h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--s-2);
}
.quiz-step .q-sub { color: var(--c-text-soft); margin-bottom: var(--s-5); font-size: var(--fs-base); }
.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: var(--s-3);
}
.quiz-option {
  background: white;
  border: 2px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--c-ink);
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
}
.quiz-option:hover, .quiz-option.selected {
  border-color: var(--c-coral);
  background: var(--c-coral-soft);
  color: var(--c-coral-deep);
  transform: translateX(4px);
}
.quiz-option .emoji { font-size: 1.6rem; line-height: 1; }
.quiz-slider {
  width: 100%;
  margin: var(--s-4) 0;
}
.quiz-slider-value {
  text-align: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--c-coral-deep);
  line-height: 1;
  margin-bottom: var(--s-3);
}
.quiz-slider-value small { font-size: 1rem; color: var(--c-text-muted); display: block; margin-top: 4px; font-weight: 500; }

.quiz-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--s-6);
  gap: var(--s-3);
}
.quiz-back {
  background: none; border: 0; cursor: pointer;
  color: var(--c-text-muted); font-weight: 600; font-size: var(--fs-sm);
  padding: var(--s-2) var(--s-3);
}
.quiz-back:hover { color: var(--c-coral-deep); }
.quiz-back:disabled { opacity: 0; pointer-events: none; }

.quiz-result {
  display: none;
  text-align: center;
  animation: quiz-pop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.quiz-result.shown { display: block; }
@keyframes quiz-pop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.quiz-result .result-emoji { font-size: 4rem; line-height: 1; margin-bottom: var(--s-4); display: block; }
.quiz-result h3 {
  font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem);
  margin-bottom: var(--s-3);
}
.quiz-result .result-tag {
  display: inline-block;
  padding: var(--s-2) var(--s-4);
  background: var(--c-coral-soft);
  color: var(--c-coral-deep);
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-bottom: var(--s-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.quiz-result p { max-width: 36rem; margin: 0 auto var(--s-5); color: var(--c-text-soft); font-size: var(--fs-lg); line-height: var(--lh-relaxed); }
.quiz-result .actions { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; }
.quiz-result .restart { color: var(--c-text-muted); margin-top: var(--s-5); font-size: var(--fs-sm); display: inline-block; }

/* -------- Confetti for form-success -------- */
@keyframes confetti-fall {
  0% { transform: translateY(-20vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(120vh) rotate(720deg); opacity: 0; }
}
.confetti-piece {
  position: fixed; top: 0; width: 10px; height: 14px;
  z-index: 99;
  animation: confetti-fall linear forwards;
  pointer-events: none;
}

/* ============================================================
   Mobile responsive — comprehensive overrides for ≤720 / ≤480
   ============================================================ */

@media (max-width: 720px) {
  /* Container — tighter horizontal padding so cards don't feel cramped */
  .container { padding-inline: 16px; }
  .section { padding-block: clamp(2rem, 8vw, 3.5rem); }
  body { padding-bottom: 80px; /* room for sticky CTA */ }

  /* --- Hero --- */
  .hero { padding-block: 24px; }
  .hero-grid { gap: 24px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); margin-bottom: 12px; line-height: 1.05; }
  .hero .lead { font-size: 1rem; line-height: 1.55; }
  .hero-cta { flex-direction: column; gap: 10px; margin-top: 24px; }
  .hero-cta .btn { width: 100%; padding: 14px 20px; font-size: 1rem; }
  .hero-trust { margin-top: 28px; gap: 10px 16px; }
  .hero-trust-item { font-size: 0.85rem; }
  /* Hero illustration — never bigger than 60vw, capped, never crowds text */
  .hero-art { max-width: 280px; margin: 0 auto; aspect-ratio: 1/1; }

  /* Section heads */
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.15; }
  .section-head .lead { font-size: 0.98rem; }
  .eyebrow { font-size: 0.72rem; }

  /* Stats — 2x2 grid on phones (force, regardless of auto-fit) */
  .grid.grid-4 { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .stat { padding: 16px 8px; }
  .stat-num { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .stat-label { font-size: 0.68rem; line-height: 1.3; }

  /* Other auto-fit grids — single column */
  .grid.grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .grid.grid-2 { grid-template-columns: 1fr; gap: 16px; }

  /* Cards — smaller padding */
  .card { padding: 20px; }
  .card h3 { font-size: 1.1rem; margin-bottom: 8px; }
  .card p { font-size: 0.95rem; }
  .card .card-icon { width: 44px; height: 44px; margin-bottom: 12px; }
  .card .card-icon svg { width: 22px; height: 22px; }

  /* Trust badges */
  .trust-strip { padding: 16px 0; }
  .trust-badge { font-size: 0.78rem; gap: 8px; }
  .trust-badge svg { width: 22px; height: 22px; }

  /* Testimonials */
  .testimonial { padding: 20px; }
  .testimonial blockquote { font-size: 0.98rem; }
  .testimonial::before { font-size: 3.5rem; top: 6px; left: 12px; }

  /* FAQ */
  .faq-item summary { padding: 16px 18px; font-size: 0.98rem; gap: 12px; }
  .faq-item summary::after { width: 28px; height: 28px; font-size: 1.1rem; }
  .faq-item .faq-body { padding: 0 18px 18px; font-size: 0.95rem; line-height: 1.6; }

  /* Program cards */
  .program-card { padding: 20px; }
  .program-card h3 { font-size: 1.15rem; }
  .program-card .belt { font-size: 0.7rem; }
  .program-card .age { font-size: 0.85rem; }

  /* --- Belt progression timeline — restructure to vertical list on mobile --- */
  .belt-timeline { padding: 16px; overflow-x: visible; }
  .belt-track { min-width: 0; height: auto; padding: 16px 0 0; }
  .belt-axis, .belt-axis-labels { display: none; }
  .belt-marker {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    top: auto !important;
    transform: none !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px;
    background: white;
    border-left: 4px solid var(--belt-color);
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
  }
  .belt-marker .dot { width: 12px; height: 12px; border-width: 2px; flex-shrink: 0; }
  .belt-marker .label { box-shadow: none; padding: 0; background: transparent; font-size: 0.85rem; flex: 1; text-align: left; }
  .belt-marker.up .label, .belt-marker.down .label { order: 0; margin: 0; }
  .belt-marker .belt-tooltip { display: none !important; }

  /* Comparison table — convert to stacked rows */
  .compare-table-wrap { padding: 12px !important; }
  .compare-table-wrap table thead { display: none; }
  .compare-table-wrap table tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .compare-table-wrap table tbody tr:last-child { border-bottom: 0; }
  .compare-table-wrap table td { display: block; padding: 4px 0 !important; border: 0 !important; text-align: left !important; }
  .compare-table-wrap table td:nth-child(1) { font-family: var(--font-display); font-weight: 700; color: var(--c-ink); font-size: 1rem; margin-bottom: 6px; }
  .compare-table-wrap table td:nth-child(2)::before { content: '✓ DigiKids: '; color: var(--c-coral-deep); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
  .compare-table-wrap table td:nth-child(3)::before { content: '○ Obična: '; color: var(--c-text-muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
  .compare-table-wrap table td:nth-child(2), .compare-table-wrap table td:nth-child(3) { font-size: 0.9rem; padding: 2px 0 !important; }

  /* Photo strip on home — 2 columns, hide last 2 on phone */
  .home-photos-strip { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .home-photos-strip > a:nth-child(n+5) { display: none; }

  /* Birthday hero photos — keep as 3-column compact grid */
  .rb-hero-photos { gap: 6px !important; }
  .rb-hero-photos img { aspect-ratio: 3/4; border-radius: 8px; }
  .rb-hero-photos img:nth-child(2) { transform: translateY(4px) rotate(-1deg) !important; }
  .rb-hero-photos img:nth-child(1) { transform: rotate(-1.5deg) !important; }
  .rb-hero-photos img:nth-child(3) { transform: rotate(1deg) !important; }

  /* Theme grid (rodjendani) — single column with nice spacing */
  .theme-grid { grid-template-columns: 1fr !important; gap: 16px; }

  /* Timeline (rodjendani 4 steps) — single column on phones */
  .timeline { grid-template-columns: 1fr; gap: 18px; }
  .timeline::before { display: none; }

  /* Belt timeline section — unify */
  .program-card { gap: 12px; }

  /* Footer */
  .site-footer { padding: 40px 0 24px; }
  .footer-brand p { font-size: 0.88rem; }
  .footer-bottom { font-size: 0.78rem; }

  /* Form grid — single column */
  .form-grid { grid-template-columns: 1fr !important; gap: 14px; }

  /* Lang switch summary smaller */
  .lang-switch summary { padding: 6px 12px; font-size: 0.85rem; }

  /* Nav brand size */
  .nav-brand .logo-mark { height: 36px; }

  /* Mobile CTA bar — slightly slimmer */
  .mobile-cta { padding: 13px 18px; font-size: 0.95rem; left: 8px; right: 8px; bottom: 8px; }
}

/* Tighter still on small phones */
@media (max-width: 480px) {
  .container { padding-inline: 14px; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.5rem); }
  .hero-art { max-width: 240px; }
  .section-head h2 { font-size: clamp(1.4rem, 7.5vw, 1.8rem); }
  .stat-num { font-size: 1.6rem; }

  /* Stats stay 2x2 even at smallest */
  .grid.grid-4 { grid-template-columns: 1fr 1fr !important; gap: 8px; }

  /* Hero trust items wrap better */
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Card padding tighter */
  .card { padding: 18px; }

  /* Section padding */
  .section { padding-block: clamp(1.75rem, 7vw, 3rem); }
}

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