/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  /* Brand — deep navy + teal */
  --brand-950: #0a1628;
  --brand-900: #0f2040;
  --brand-800: #152b54;
  --brand-700: #1a3566;
  --brand-600: #2563eb;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --coral: #ff6b4a;

  /* Neutrals */
  --ink: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Legacy aliases (inline styles in templates) */
  --forest-900: var(--brand-950);
  --forest-700: var(--brand-800);
  --green: var(--teal-500);
  --green-light: var(--teal-50);
  --lime: var(--teal-400);
  --gold: var(--amber-400);
  --gold-deep: var(--coral);
  --gray-700: var(--slate-700);
  --gray-500: var(--slate-500);
  --gray-100: var(--slate-100);
  --gray-50: var(--slate-50);

  /* Layout */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-tight: 0 24px 48px -12px rgba(10, 22, 40, 0.2);
  --shadow-soft: 0 4px 24px -4px rgba(10, 22, 40, 0.08);
  --shadow-card:
    0 1px 3px rgba(10, 22, 40, 0.06), 0 8px 24px -8px rgba(10, 22, 40, 0.1);
  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;

  /* Gradients */
  --gradient-hero: linear-gradient(
    145deg,
    #0a1628 0%,
    #152b54 42%,
    #0d4f6e 78%,
    #0d9488 100%
  );
  --gradient-accent: linear-gradient(
    125deg,
    var(--amber-400) 0%,
    var(--coral) 100%
  );
  --gradient-teal: linear-gradient(120deg, var(--teal-600), var(--teal-500));
  --aurora: var(--gradient-hero);
}

/* ── Base ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  position: relative;
  z-index: 2;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.15;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-600);
}
section {
  position: relative;
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn:hover::after {
  left: 130%;
}
.btn-primary {
  background: var(--gradient-accent);
  color: #3d1800;
  box-shadow: 0 12px 28px -8px rgba(255, 107, 74, 0.45);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.12);
}
.btn-dark {
  background: var(--brand-800);
  color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(21, 43, 84, 0.45);
}
.btn-dark:hover {
  background: var(--brand-700);
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--slate-300);
  color: var(--teal-600);
}
.btn-ghost:hover {
  background: var(--teal-50);
  border-color: var(--teal-500);
}

/* ── Aurora / gradient sections ────────────────────────────────── */
.aurora {
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: auroraShift 18s ease-in-out infinite;
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 15% 40%,
      rgba(20, 184, 166, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 40% at 85% 15%,
      rgba(37, 99, 235, 0.12) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 40% 35% at 70% 85%,
      rgba(251, 191, 36, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 1;
}
@keyframes auroraShift {
  0% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
  100% {
    background-position: 0% 40%;
  }
}
.hero-sponsor-band,
.impact-schools-band {
  position: relative;
}
.hero-sponsor-band .hero,
.hero-sponsor-band .sponsor-strip,
.impact-schools-band .section-pad,
.impact-schools-band .sponsor-strip {
  overflow: visible;
}
.aurora .eyebrow {
  color: var(--amber-400);
}
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: 1;
  animation: blobDrift 14s ease-in-out infinite;
}
@keyframes blobDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -16px) scale(1.05);
  }
}

/* ── Section headings ──────────────────────────────────────────── */
.sec-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}
.sec-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  margin: 14px 0 16px;
}
.sec-head p {
  color: var(--slate-500);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
}
.underline {
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-teal);
  margin: 0 auto 20px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in .underline {
  transform: scaleX(1);
}

/* ── Navigation ────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.25s ease;
}
nav.scrolled {
  box-shadow: var(--shadow-soft);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--brand-900);
  flex-shrink: 0;
}
.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li {
  margin: 0;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-teal);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a:hover {
  color: var(--brand-800);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.nav-login {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
  padding: 10px 16px;
  border-radius: 100px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.nav-login:hover {
  background: var(--slate-100);
  color: var(--brand-900);
}
.nav-register {
  background: var(--gradient-teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  box-shadow: 0 4px 14px -4px rgba(13, 148, 136, 0.5);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.nav-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(13, 148, 136, 0.55);
}
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--brand-900);
  font-size: 22px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.mobile-nav-toggle:hover {
  background: var(--slate-100);
}

/* ── Mobile Navigation ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 24px -8px rgba(10, 22, 40, 0.12);
    z-index: 10;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  }
  .nav-links li:last-child > a {
    border-bottom: none;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex !important;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links .mobile-nav-cta {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }
  .nav-links .mobile-nav-cta .nav-login,
  .nav-links .mobile-nav-cta .nav-register {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  nav .wrap {
    position: relative;
  }
  .mobile-nav-toggle {
    display: flex !important;
    position: absolute;
    right: clamp(16px, 4vw, 20px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }
  .logo {
    font-size: 16px;
  }
  .logo-mark {
    width: 30px;
    height: 30px;
  }
}

/* Hide mobile CTA on desktop */
.mobile-nav-cta {
  display: none;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 6vw, 80px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-400);
  box-shadow: 0 0 8px var(--amber-400);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: white;
}
.hero h1 .accent {
  background: linear-gradient(125deg, var(--amber-400), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.sub {
  font-size: clamp(16px, 1.8vw, 18px);
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-stats .stat span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
  display: block;
}

/* Hero path visual */
.path-visual {
  position: relative;
  height: 460px;
}
.path-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.node-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.35);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 172px;
  animation: float 5.5s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.node-card .ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  font-size: 14px;
}
.node-card .txt b {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 700;
}
.node-card .txt span {
  font-size: 10.5px;
  color: var(--slate-500);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.badge-dot {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.4);
}

/* ── Sponsors ──────────────────────────────────────────────────── */
.sponsor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.sponsor-head h3 {
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  margin-top: 8px;
  max-width: 520px;
  line-height: 1.3;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  margin-bottom: 44px;
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: scrollMarquee 28s linear infinite;
}
@keyframes scrollMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.sponsor-badge {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 100px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 60px;
}
.sponsor-badge img {
  max-width: 100px;
  /* max-height: 50px; */
  object-fit: contain;
  width: auto;
  height: auto;
}
.sponsor-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}
.sponsor-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sponsor-tile {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
  backdrop-filter: blur(4px);
}
.sponsor-tile:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}
.stile-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--amber-400);
  font-size: 13px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.sponsor-tile h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.sponsor-tile p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

/* ── White content sections ───────────────────────────────────── */
.section-pad {
  padding: clamp(72px, 9vw, 112px) 0;
}
.section-pad.alt {
  background: var(--slate-50);
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(15, 23, 42, 0.04) 1px,
    transparent 0
  );
  background-size: 28px 28px;
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.feat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -16px rgba(10, 22, 40, 0.14);
  border-color: rgba(20, 184, 166, 0.25);
}
.feat-card.persona {
  border-top: 3px solid var(--teal-500);
  display: block !important;
}
.feat-card .ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.feat-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feat-card p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.6;
}

/* ── Persona tabs ──────────────────────────────────────────────── */
.persona-tabs {
  margin-top: 20px;
}
.tab-buttons {
  position: relative;
  display: inline-flex;
  gap: 4px;
  background: var(--slate-100);
  border-radius: 100px;
  padding: 5px;
  margin: 0 auto 44px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft);
}
/* Override WordPress / admin bar button styles on persona tabs */
.persona-tabs .tab-buttons button.tab-btn,
.persona-tabs .tab-buttons .tab-btn {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 2;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 12px 26px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--slate-700) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease;
  line-height: 1.2;
}
.persona-tabs .tab-buttons .tab-btn:hover:not(.active) {
  color: var(--brand-800) !important;
  background: transparent !important;
}
.persona-tabs .tab-buttons .tab-btn.active,
.persona-tabs .tab-buttons button.tab-btn.active {
  color: var(--white) !important;
  background: transparent !important;
}
.persona-tabs .tab-buttons .tab-btn .tab-ic {
  color: inherit;
}
.tab-ic {
  font-size: 14px;
  line-height: 1;
}
.tab-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: 130px;
  background: var(--gradient-teal);
  border-radius: 100px;
  z-index: 1;
  box-shadow: 0 4px 16px -4px rgba(13, 148, 136, 0.45);
  transition:
    transform 0.4s cubic-bezier(0.65, 0, 0.35, 1),
    width 0.3s ease;
  pointer-events: none;
}
.tab-stage {
  position: relative;
  min-height: 350px;
}
.tab-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  animation: panelIn 0.45s ease;
}
.tab-panel.active {
  display: grid;
}
@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.stage-copy h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 14px 0 12px;
}
.stage-copy p {
  color: var(--slate-500);
  font-size: 15px;
  margin-bottom: 18px;
  line-height: 1.65;
}
.stage-copy ul {
  list-style: none;
}
.stage-copy li {
  font-size: 14px;
  color: var(--slate-700);
  padding: 7px 0 7px 26px;
  position: relative;
}
.stage-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--gradient-teal);
}
.stage-visual {
  display: flex;
  justify-content: center;
}
.sol-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.sol-tag-student {
  background: var(--teal-50);
  color: var(--brand-800);
}
.sol-tag-teacher {
  background: #fef3c7;
  color: #92400e;
}
.sol-tag-parent {
  background: var(--teal-50);
  color: var(--brand-800);
}
.sol-tag-school {
  background: rgba(255, 255, 255, 0.16);
  color: var(--amber-400);
}

/* ── How-to guide chips (cards only) & archive layout ─────────── */
.guide-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.guide-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.2;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.guide-chip--role-student,
.guide-chip--role-parent {
  background: var(--teal-50);
  color: var(--brand-800);
}
.guide-chip--role-teacher {
  background: #fef3c7;
  color: #92400e;
}
.guide-chip--role-school,
.guide-chip--role-default {
  background: rgba(21, 43, 84, 0.06);
  color: var(--brand-800);
  border-color: rgba(21, 43, 84, 0.1);
}
.guide-chip--category {
  background: var(--slate-100);
  color: var(--slate-700);
}

/* Archive filters — text links, not pills */
.howto-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.howto-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
}
.howto-filters-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
  min-width: 72px;
}
.howto-filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  align-items: center;
}
.howto-filter-link {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate-700);
  padding: 4px 10px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.howto-filter-link:hover {
  color: var(--teal-600);
}
.howto-filter-link.is-active {
  color: var(--brand-800);
  font-weight: 700;
  border-bottom-color: var(--teal-500);
}

/* Role groups — section title + rule, not pills */
.howto-role-group {
  margin-bottom: 56px;
  padding-top: 8px;
}
.howto-role-group + .howto-role-group {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 40px;
}
.howto-role-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(13, 148, 136, 0.25);
}
.howto-role-group-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.howto-role-group-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal-600);
  white-space: nowrap;
  flex-shrink: 0;
}
.howto-role-group-link:hover {
  color: var(--brand-800);
}
@media (max-width: 640px) {
  .howto-filters-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .howto-role-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

.card-grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.plus-callout {
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    var(--brand-950) 0%,
    var(--brand-800) 100%
  );
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-tight);
}
.plus-callout h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}
.plus-callout p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 520px;
  line-height: 1.55;
}
.plus-callout .btn-primary {
  flex-shrink: 0;
}

/* Phone mockup */
.phone {
  width: 240px;
  height: 480px;
  background: var(--ink);
  border-radius: 36px;
  padding: 11px;
  margin: 0 auto;
  box-shadow: var(--shadow-tight);
  border: 2px solid rgba(255, 255, 255, 0.08);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--teal-50), #ffffff);
  overflow: hidden;
  padding: 20px 16px;
}
/* Embedded Next.js widgets */
.km-widget {
  position: relative;
  width: 100%;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(
    145deg,
    rgba(20, 184, 166, 0.45),
    rgba(21, 43, 84, 0.2) 55%,
    rgba(251, 191, 36, 0.35)
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 0 0 1px rgba(15, 23, 42, 0.05),
    0 12px 32px -16px rgba(10, 22, 40, 0.22),
    0 4px 16px -8px rgba(20, 184, 166, 0.15);
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease;
}
.km-widget::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(248, 250, 252, 0.98) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.km-widget--accent-teal {
  background: linear-gradient(
    145deg,
    rgba(20, 184, 166, 0.55),
    rgba(13, 148, 136, 0.25) 50%,
    rgba(21, 43, 84, 0.18)
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 0 0 1px rgba(20, 184, 166, 0.12),
    0 12px 32px -16px rgba(10, 22, 40, 0.22),
    0 4px 20px -8px rgba(20, 184, 166, 0.22);
}
.km-widget--accent-navy {
  background: linear-gradient(
    145deg,
    rgba(21, 43, 84, 0.35),
    rgba(15, 32, 64, 0.2) 55%,
    rgba(20, 184, 166, 0.2)
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 0 0 1px rgba(21, 43, 84, 0.1),
    0 12px 32px -16px rgba(10, 22, 40, 0.28),
    0 4px 16px -8px rgba(21, 43, 84, 0.15);
}
.km-widget--accent-amber {
  background: linear-gradient(
    145deg,
    rgba(251, 191, 36, 0.5),
    rgba(245, 158, 11, 0.25) 50%,
    rgba(20, 184, 166, 0.2)
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 0 0 1px rgba(245, 158, 11, 0.15),
    0 12px 32px -16px rgba(10, 22, 40, 0.22),
    0 4px 20px -8px rgba(251, 191, 36, 0.2);
}
.km-widget-active,
.km-widget:focus-within {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 0 0 2px rgba(20, 184, 166, 0.35),
    0 16px 40px -12px rgba(10, 22, 40, 0.28),
    0 8px 24px -8px rgba(20, 184, 166, 0.28);
}
.km-widget-chrome {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 8px;
}
.km-widget-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-800);
}
.km-widget-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
  animation: km-live-pulse 2s ease-in-out infinite;
}
.km-widget--accent-amber .km-widget-badge-dot {
  background: var(--amber-400);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}
.km-widget--accent-navy .km-widget-badge-dot {
  background: var(--brand-800);
  box-shadow: 0 0 0 3px rgba(21, 43, 84, 0.15);
}
.km-widget-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-500);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.km-widget--accent-teal .km-widget-type {
  color: var(--teal-600);
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.15);
}
.km-widget--accent-amber .km-widget-type {
  color: #b45309;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.25);
}
.km-widget--accent-navy .km-widget-type {
  color: var(--brand-800);
  background: rgba(21, 43, 84, 0.06);
  border-color: rgba(21, 43, 84, 0.1);
}
.km-widget-body {
  position: relative;
  z-index: 1;
  margin: 0 8px 8px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 24px -12px rgba(10, 22, 40, 0.18);
}
.km-widget-frame {
  width: 100%;
  border: 0;
  display: block;
  background: transparent;
  border-radius: 16px;
  transition: height 0.2s ease;
  position: relative;
  z-index: 1;
}
/* Immersive quiz/arena embeds stay at the shortcode height — no auto-grow. */
.km-widget--quiz .km-widget-frame,
.km-widget--arena .km-widget-frame,
.km-widget--student .km-widget-frame,
.km-widget--teacher .km-widget-frame,
.km-widget--parent .km-widget-frame {
  height: 520px !important;
  max-height: 520px;
  min-height: 420px;
}
.km-widget--quiz .km-widget-body,
.km-widget--arena .km-widget-body,
.km-widget--student .km-widget-body,
.km-widget--teacher .km-widget-body,
.km-widget--parent .km-widget-body {
  overflow: hidden;
}
.km-widget-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.km-widget-hint-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(
    125deg,
    rgba(21, 43, 84, 0.92),
    rgba(13, 148, 136, 0.88)
  );
  box-shadow:
    0 4px 16px -4px rgba(10, 22, 40, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  white-space: nowrap;
}
.km-widget--accent-amber .km-widget-hint-text {
  background: linear-gradient(
    125deg,
    rgba(21, 43, 84, 0.9),
    rgba(180, 83, 9, 0.88)
  );
}
.km-widget-hint--pulse .km-widget-hint-text {
  animation: km-hint-pulse 2.4s ease-in-out infinite;
}
.km-widget-hint-dismissed,
.km-widget-active .km-widget-hint,
.km-widget:focus-within .km-widget-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}
@keyframes km-live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}
@keyframes km-hint-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 4px 16px -4px rgba(10, 22, 40, 0.45),
      0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  }
  50% {
    transform: scale(1.04);
    box-shadow:
      0 6px 22px -4px rgba(20, 184, 166, 0.45),
      0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  }
}

/* Card wrapper for persona-tab embeds (fills the stage-visual column). */
.stage-visual {
  width: 100%;
}
.embed-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 6px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.embed-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 20px 48px -20px rgba(10, 22, 40, 0.22),
    0 8px 24px -12px rgba(20, 184, 166, 0.18);
}
.embed-card .km-widget {
  box-shadow: none;
  background: transparent;
  padding: 0;
}
.embed-card .km-widget::before {
  display: none;
}
.embed-card .km-widget-frame {
  width: 100%;
  min-height: 360px;
  border-radius: 14px;
}
.embed-card .km-widget--quiz .km-widget-frame,
.embed-card .km-widget--arena .km-widget-frame,
.embed-card .km-widget--student .km-widget-frame,
.embed-card .km-widget--teacher .km-widget-frame,
.embed-card .km-widget--parent .km-widget-frame {
  height: 520px !important;
  max-height: 520px;
  min-height: 420px;
}
.embed-card-wide {
  max-width: 520px;
}
.widget-lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.widget-showcase-lessons {
  margin-top: 32px;
}
.widget-showcase {
  margin-top: 48px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(20, 184, 166, 0.12);
  background: linear-gradient(
    165deg,
    rgba(20, 184, 166, 0.08),
    #ffffff 42%,
    rgba(251, 191, 36, 0.04)
  );
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.widget-showcase:hover {
  border-color: rgba(20, 184, 166, 0.22);
  box-shadow:
    0 20px 48px -24px rgba(10, 22, 40, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 8px 32px -12px rgba(20, 184, 166, 0.15);
}
.widget-showcase-head {
  margin-bottom: 20px;
  max-width: 560px;
}
.widget-showcase-head h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 8px 0 10px;
}
.widget-showcase-head p {
  color: var(--slate-500);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.km-widget-frame.showcase-embed {
  min-height: 480px;
  border-radius: 16px;
}
.widget-showcase > .km-widget {
  border-radius: 22px;
}

/* ── Modal trigger (poster card that opens the embed in a dialog) ── */
.km-widget--modal {
  padding: 2px;
}
.km-widget-trigger {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
  font: inherit;
  color: inherit;
}
.km-widget-trigger .km-widget-chrome {
  padding: 12px 16px 10px;
}
.km-widget-trigger-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 8px 8px;
  padding: 26px 22px;
  min-height: 150px;
  border-radius: 16px;
  background:
    radial-gradient(
      120% 120% at 12% 0%,
      rgba(20, 184, 166, 0.14),
      transparent 55%
    ),
    linear-gradient(150deg, rgba(21, 43, 84, 0.96), rgba(13, 148, 136, 0.9));
  color: var(--white);
  overflow: hidden;
}
.km-widget--accent-amber .km-widget-trigger-body {
  background:
    radial-gradient(
      120% 120% at 12% 0%,
      rgba(251, 191, 36, 0.22),
      transparent 55%
    ),
    linear-gradient(150deg, rgba(21, 43, 84, 0.96), rgba(180, 83, 9, 0.9));
}
.km-widget--accent-navy .km-widget-trigger-body {
  background:
    radial-gradient(
      120% 120% at 12% 0%,
      rgba(20, 184, 166, 0.16),
      transparent 55%
    ),
    linear-gradient(150deg, rgba(15, 32, 64, 0.98), rgba(21, 43, 84, 0.92));
}
.km-widget-play {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: var(--brand-800);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 8px 24px -8px rgba(0, 0, 0, 0.5),
    0 0 0 0 rgba(255, 255, 255, 0.5);
  /* padding-left:4px; */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: km-play-pulse 2.6s ease-in-out infinite;
}
.km-widget--accent-amber .km-widget-play {
  color: #b45309;
}
.km-widget-trigger-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.km-widget-trigger-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--white);
}
.km-widget-trigger-hint {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
}
.km-widget-trigger:hover .km-widget-play,
.km-widget-trigger:focus-visible .km-widget-play {
  transform: scale(1.08);
  box-shadow:
    0 10px 30px -8px rgba(0, 0, 0, 0.55),
    0 0 0 8px rgba(255, 255, 255, 0.14);
}
.km-widget-trigger:focus-visible {
  outline: none;
}
.km-widget--modal:focus-within {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 0 0 2px rgba(20, 184, 166, 0.4),
    0 16px 40px -12px rgba(10, 22, 40, 0.28);
}
.embed-card-trigger {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.embed-card-trigger:hover {
  transform: none;
  box-shadow: none;
  border: 0;
}
/* Full-bleed modal triggers inside the showcase panels (tournament, etc.). */
.widget-showcase > .embed-card,
.widget-showcase > .embed-card-trigger {
  max-width: none;
  width: 100%;
  margin: 0;
}
@keyframes km-play-pulse {
  0%,
  100% {
    box-shadow:
      0 8px 24px -8px rgba(0, 0, 0, 0.5),
      0 0 0 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow:
      0 8px 24px -8px rgba(0, 0, 0, 0.5),
      0 0 0 10px rgba(255, 255, 255, 0);
  }
}

/* ── Modal dialog ─────────────────────────────────────────────── */
body.km-modal-lock {
  overflow: hidden;
}
.km-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.km-modal[hidden] {
  display: none;
}
.km-modal.km-modal-open {
  opacity: 1;
  visibility: visible;
}
.km-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.km-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100vw - 24px));
  max-width: none;
  height: min(90vh, calc(100vh - 24px));
  max-height: none;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  border-radius: 16px;
  padding: 3px;
  background: linear-gradient(
    145deg,
    rgba(20, 184, 166, 0.55),
    rgba(21, 43, 84, 0.25) 55%,
    rgba(251, 191, 36, 0.4)
  );
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.98);
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.3s ease,
    height 0.3s ease;
  overflow: hidden;
}

.km-modal.km-modal-open .km-modal-dialog {
  transform: translateY(0) scale(1);
}
.km-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  overflow: visible;
}
.km-modal-head .km-widget-badge {
  color: var(--white);
}
.km-modal-head .km-widget-badge-dot {
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}
.km-modal-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.km-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(90deg);
}
.km-modal-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 6px 6px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
}
.km-modal-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 0;
  display: block;
  flex: 1 1 auto;
}
@media (max-width: 560px) {
  .km-modal {
    padding: 8px;
  }
  .km-modal-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    border-radius: 12px;
  }
  .km-widget-trigger-body {
    padding: 22px 16px;
    min-height: 132px;
  }
  .km-widget-play {
    width: 52px;
    height: 52px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .km-widget-play {
    animation: none;
  }
  .km-modal-dialog {
    transition: none;
  }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.floating-whatsapp a {
  display: block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 50%;
}

.floating-whatsapp a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.floating-whatsapp svg {
  display: block;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
  }

  .floating-whatsapp svg {
    width: 50px;
    height: 50px;
  }
}
.phone-screen .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.phone-screen .pill {
  height: 9px;
  border-radius: 5px;
  background: #cceae6;
}
.phone-card {
  background: var(--white);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px -6px rgba(10, 22, 40, 0.1);
}
.dash {
  width: 240px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-card);
  padding: 20px;
}
.bar-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
  margin: 14px 0;
}
.bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
}

/* Quiz */
.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.quiz-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.coin-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  transition: transform 0.2s ease;
}
.coin-pill.bump {
  transform: scale(1.15);
}
.coin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-400);
}
.quiz-q {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.45;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.quiz-opt {
  text-align: left;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--slate-100);
  background: var(--white);
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}
.quiz-opt:hover {
  border-color: var(--teal-500);
  background: var(--teal-50);
}
.quiz-opt.correct {
  background: var(--teal-50);
  border-color: var(--teal-500);
  color: var(--brand-800);
}
.quiz-opt.wrong {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}
.quiz-opt:disabled {
  cursor: default;
}
.quiz-feedback {
  font-size: 12px;
  color: var(--slate-500);
  min-height: 16px;
}

/* Teacher roster */
.roster {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.roster-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-700);
}
.rbar {
  height: 8px;
  background: var(--slate-100);
  border-radius: 5px;
  overflow: hidden;
}
.rfill {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  background: var(--gradient-teal);
  transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Parent ring */
.ring-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
#ringFill {
  transition: stroke-dashoffset 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feed {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feed-row {
  font-size: 12.5px;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Problem section ───────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.problem-grid h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  margin: 14px 0 20px;
  line-height: 1.2;
}
.problem-grid p.lead {
  color: var(--slate-500);
  font-size: 16px;
  line-height: 1.7;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(10, 22, 40, 0.12);
}
.stat-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-800);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-card span {
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.5;
}

/* ── Solution rows ─────────────────────────────────────────────── */
.sol-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.sol-row:last-child {
  margin-bottom: 0;
}
.sol-row.rev .sol-text {
  order: 2;
}
.sol-row.rev .sol-visual {
  order: 1;
}
.sol-text h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  margin-bottom: 14px;
}
.sol-text p {
  color: var(--slate-500);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.65;
}
.sol-text ul {
  list-style: none;
}
.sol-text li {
  font-size: 14.5px;
  color: var(--slate-700);
  padding: 8px 0 8px 28px;
  position: relative;
}
.sol-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: var(--gradient-teal);
}
.sol-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ── Impact (aurora) ───────────────────────────────────────────── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.impact-stats {
  backdrop-filter: blur(4px);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.impact-stats b {
  background: linear-gradient(135deg, var(--amber-400), #fff);
  -webkit-background-clip: text !important;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.impact-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.impact-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}
.impact-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--amber-400), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.impact-card span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

/* ── Schools (aurora) ────────────────────────────────────────────── */
.schools-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.schools-inner h2 {
  color: var(--white);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  margin: 14px 0 18px;
  max-width: 480px;
}
.schools-inner p.lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 460px;
  line-height: 1.65;
}
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.benefit {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  backdrop-filter: blur(4px);
}
.benefit:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}
.benefit .n {
  color: var(--amber-400);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  margin-right: 6px;
}

/* ── Testimonials ──────────────────────────────────────────────── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.testi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -16px rgba(10, 22, 40, 0.12);
  border-color: rgba(20, 184, 166, 0.2);
}
.stars {
  color: var(--amber-400);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testi-card p.quote {
  font-size: 15px;
  color: var(--slate-700);
  margin-bottom: 22px;
  line-height: 1.65;
  font-style: italic;
}
.testi-who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-teal);
  flex-shrink: 0;
}
.testi-who b {
  font-size: 14px;
  display: block;
  font-weight: 700;
}
.testi-who span {
  font-size: 12.5px;
  color: var(--slate-500);
}

/* ── Final CTA ─────────────────────────────────────────────────── */
.final {
  text-align: center;
}
.final h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--white);
  line-height: 1.15;
}
.final-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  background: var(--brand-950);
  color: rgba(255, 255, 255, 0.6);
  padding: 72px 0 32px;
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(20, 184, 166, 0.4),
    rgba(251, 191, 36, 0.3),
    transparent
  );
}
footer .logo {
  color: var(--white);
  margin-bottom: 16px;
}
.foot-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 280px;
  line-height: 1.65;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-col-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}
.foot-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  padding: 7px 0;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.foot-col a:hover {
  color: var(--amber-400);
  transform: translateX(2px);
}
.foot-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
}
.foot-bottom {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.3);
}
.foot-legal-inline {
  display: flex;
  gap: 20px;
  font-size: 12.5px;
}
.foot-legal-inline a {
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease;
}
.foot-legal-inline a:hover {
  color: var(--white);
}

/* ── Articles ──────────────────────────────────────────────────── */
.articles-hero {
  padding: 80px 0 52px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.article-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(10, 22, 40, 0.14);
  border-color: rgba(20, 184, 166, 0.2);
}
.article-card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--teal-50), var(--slate-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.article-card-body {
  padding: 24px 26px 28px;
}
.article-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.article-card-meta .tag-news {
  color: var(--brand-800);
  background: var(--teal-50);
  padding: 4px 12px;
  border-radius: 100px;
}
.article-card-meta .tag-howto {
  color: #92400e;
  background: #fef3c7;
  padding: 4px 12px;
  border-radius: 100px;
}
.article-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}
.article-card p {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 16px;
  line-height: 1.55;
}
.article-card .read-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal-600);
}
.article-card .read-more:hover {
  color: var(--brand-800);
}
.single-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: var(--slate-500);
}
.single-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.related-articles {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--slate-100);
}
.related-articles h3 {
  font-size: 20px;
  margin-bottom: 24px;
}

/* ── Legal / article pages ─────────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 64px 0 72px;
}
.breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}
.breadcrumb a:hover {
  color: var(--white);
}
.page-hero h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.12;
  color: var(--white);
}
.page-hero p.sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  max-width: 640px;
  line-height: 1.65;
}
.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 20px;
  backdrop-filter: blur(4px);
}
.article-section {
  padding: 80px 0 120px;
  background: var(--white);
}
.article-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
}
.toc-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 16px;
}
.toc a {
  display: block;
  font-size: 13.5px;
  color: var(--slate-700);
  padding: 8px 0 8px 16px;
  border-left: 2px solid var(--slate-100);
  transition: all 0.15s ease;
}
.toc a:hover {
  color: var(--brand-800);
  border-left-color: var(--teal-500);
}
.article {
  max-width: 720px;
}
.article .lede {
  font-size: 17px;
  color: var(--slate-700);
  margin-bottom: 8px;
  line-height: 1.65;
}
.article h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 48px 0 16px;
  padding-top: 8px;
}
.article h2:first-child {
  margin-top: 0;
}
.article h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--brand-800);
}
.article p {
  font-size: 15px;
  color: var(--slate-700);
  margin-bottom: 16px;
  line-height: 1.7;
}
.article ul,
.article ol {
  margin: 0 0 18px 20px;
  color: var(--slate-700);
  font-size: 15px;
  line-height: 1.7;
}
.article strong {
  color: var(--ink);
}
.callout {
  background: var(--teal-50);
  border-left: 3px solid var(--teal-500);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--brand-800);
  line-height: 1.6;
}
.callout.blue {
  background: #fef3c7;
  border-left-color: var(--amber-500);
  color: #92400e;
}
.mini-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 14px;
}
.mini-table th {
  background: var(--slate-50);
  text-align: left;
  font-weight: 700;
  padding: 12px 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--ink);
}
.mini-table td {
  padding: 12px 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--slate-700);
}
.contact-card {
  background: var(--slate-50);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 40px;
}
.contact-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-card p {
  font-size: 14px;
  color: var(--slate-500);
  margin: 0;
}

/* ── Subpage blocks ──────────────────────────────────────────────── */
.block {
  padding: 96px 0;
}
.block.alt {
  background: var(--slate-50);
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(15, 23, 42, 0.04) 1px,
    transparent 0
  );
  background-size: 28px 28px;
}
.block .sec-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.block .sec-head h2 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 800;
  margin: 14px 0 14px;
}
.block .sec-head p {
  color: var(--slate-500);
  font-size: 16px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ph-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.ph-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(10, 22, 40, 0.12);
  border-color: rgba(20, 184, 166, 0.2);
}
.ph-card .ic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--brand-800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
}
.ph-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.ph-card p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.55;
}
.placeholder-note {
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 13.5px;
  color: #92400e;
  margin-bottom: 40px;
}
.subpage-content .article {
  max-width: 720px;
  margin: 0 auto;
}
.pagination {
  margin-top: 52px;
  text-align: center;
}
.pagination .nav-links {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination a,
.pagination span {
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 14px;
  transition: background 0.2s ease;
}
.pagination .current {
  background: var(--brand-800);
  color: var(--white);
  border-color: var(--brand-800);
}
.custom-logo-link img,
.logo-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* ── Responsive ────────────────────────────────────────────────── */

/* Tablet & below: stack the hero and turn the decorative floating
   path visual into a clean, self-arranging card layout so nothing
   overlaps the copy at any width. */
@media only screen and (max-width: 1280px) {
  .km-modal.km-modal-open .km-modal-dialog {
    width: min(1200px, calc(100vw - 24px));
  }
}

@media only screen and (max-width: 1024px) {
  .km-modal.km-modal-open .km-modal-dialog {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
  }
}

@media (max-width: 992px) {
  .hero {
    padding-top: clamp(56px, 8vw, 88px);
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero p.sub {
    max-width: 560px;
  }
  .hero-stats {
    gap: 28px 40px;
  }

  /* Rebuild the hero visual as static cards (no absolute offsets) */
  .path-visual {
    height: auto;
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    max-width: 520px;
  }
  .path-svg,
  .badge-dot {
    display: none;
  }
  .path-visual .node-card {
    position: static;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    animation: none;
    transform: none;
  }
}

@media only screen and (max-width: 768px) {
  .km-modal.km-modal-open .km-modal-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }
}

@media (max-width: 860px) {
  .problem-grid,
  .sol-row,
  .schools-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .card-grid-3,
  .impact-grid,
  .testi-grid,
  .card-grid,
  .articles-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tab-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tab-buttons {
    flex-wrap: wrap;
    left: 0;
    transform: none;
    width: 100%;
    justify-content: center;
  }
  .tab-indicator {
    display: none;
  }
  .persona-tabs .tab-buttons .tab-btn.active {
    background: var(--gradient-teal) !important;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    margin-bottom: 32px;
  }
  .page-hero h1 {
    font-size: 28px;
  }
  .sponsor-tiles {
    grid-template-columns: 1fr;
  }
  .sponsor-head {
    flex-direction: column;
    align-items: flex-start;
  }
  /* Reversed solution rows should read text-first when stacked */
  .sol-row.rev .sol-text,
  .sol-row.rev .sol-visual {
    order: 0;
  }
  nav .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    padding: 24px clamp(20px, 4vw, 48px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    gap: 4px;
    box-shadow: var(--shadow-soft);
  }
  nav .nav-links.open a {
    padding: 12px 0;
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .path-visual {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .plus-callout {
    flex-direction: column;
    align-items: flex-start;
  }
  .plus-callout .btn {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .wrap {
    padding: 0 20px;
  }
  .card-grid-3,
  .impact-grid,
  .testi-grid,
  .card-grid,
  .articles-grid,
  .stat-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 20px 32px;
  }
  .final-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .final-btns .btn {
    width: 100%;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .foot-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-pad {
    padding: 64px 0;
  }
  .block {
    padding: 64px 0;
  }
}

@media only screen and (max-width: 425px) {
  .km-modal.km-modal-open .km-modal-dialog {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    border-radius: 10px;
  }
}

/* Theater chrome for open embed modals */
.km-modal.km-modal-open {
  padding: 12px;
}
.km-modal.km-modal-open .km-modal-backdrop {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.km-modal.km-modal-open .km-modal-dialog {
  width: min(1400px, calc(100vw - 24px));
  height: min(92vh, calc(100vh - 24px));
  /* height: min(78vh, calc(100vh - 24px)); */
  max-width: none;
  max-height: none;
  border-radius: 12px;
  overflow: hidden;
}
.km-modal.km-modal-open .km-modal-body {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
  margin: 0 3px 3px;
  padding: 0;
}
.km-modal.km-modal-open .km-modal-frame {
  width: 100%;
  height: 100% !important;
  min-height: 0;
  max-height: none;
  border: 0;
  margin: 0;
  display: block;
  border-radius: 0 0 10px 10px;
}

/* ── Contact Form 7 ───────────────────────────────────────────── */
.contact-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}
.wpcf7-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-card);
}
.wpcf7-form-control-wrap {
  margin-bottom: 24px;
  display: block;
}
.wpcf7-form-control-wrap label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--slate-700);
  margin-bottom: 8px;
}
.wpcf7-form-control-wrap .required {
  color: var(--coral);
}
.wpcf7-form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--slate-50);
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7-form-control:focus {
  outline: none;
  border-color: var(--teal-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.wpcf7-form-control::placeholder {
  color: var(--slate-500);
}
.wpcf7-textarea {
  resize: vertical;
  min-height: 140px;
}
.wpcf7-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.wpcf7-submit {
  margin-top: 32px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  background: var(--gradient-accent);
  color: #3d1800;
  box-shadow: 0 12px 28px -8px rgba(255, 107, 74, 0.45);
}
.wpcf7-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.wpcf7-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.wpcf7-submit:hover::after {
  left: 130%;
}
.wpcf7-response-output {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}
.wpcf7-mail-sent-ok {
  background: var(--teal-50);
  color: var(--brand-800);
  border: 1px solid rgba(20, 184, 166, 0.3);
}
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.wpcf7-not-valid-tip {
  color: var(--coral);
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

@media (max-width: 640px) {
  .wpcf7-form {
    padding: 28px 20px;
  }
}

/* ── Sponsor CF7 form (two-column layout) ─────────────────────── */
.contact-form-wrapper:has(.sponsor-form),
.sponsor-form {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.sponsor-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.sponsor-form .form-group {
  margin-bottom: 20px;
  min-width: 0;
}

.sponsor-form .form-row .form-group {
  margin-bottom: 0;
}

.sponsor-form .form-group-full {
  width: 100%;
}

.sponsor-form label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--slate-700);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.sponsor-form .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 0;
}

.sponsor-form input.wpcf7-form-control,
.sponsor-form select.wpcf7-form-control,
.sponsor-form textarea.wpcf7-form-control {
  width: 100%;
  box-sizing: border-box;
}

.sponsor-form textarea.wpcf7-form-control {
  min-height: 120px;
  resize: vertical;
}

.sponsor-form .wpcf7-not-valid {
  border-color: var(--coral) !important;
  background: #fff7f5;
}

.sponsor-form .wpcf7-acceptance {
  margin: 0;
}

.sponsor-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.sponsor-form .wpcf7-acceptance .wpcf7-list-item-label,
.sponsor-form .form-group-full:has(.wpcf7-acceptance) {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
  line-height: 1.5;
}

.sponsor-form .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 10px 0 0;
  vertical-align: middle;
  accent-color: var(--teal-600);
  cursor: pointer;
  -webkit-appearance: auto;
  appearance: auto;
}

.sponsor-form .wpcf7-submit {
  width: 100%;
  margin-top: 8px;
}

.sponsor-form .cf-turnstile,
.sponsor-form iframe[src*="challenges.cloudflare"] {
  margin-top: 4px;
}

@media (max-width: 767px) {
  .sponsor-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .sponsor-form .form-row .form-group {
    margin-bottom: 20px;
  }
}
