/* ============================================================
   Kindlewood Tutoring — Design System v2  ("Clean Academic")
   Light, warm-neutral foundation · Navy as primary brand
   Warm orange used sparingly as accent · Lexend + Source Sans 3
   Tasteful motion: cross-page View Transitions + scroll reveals
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Brand */
  --navy:          #1E3A8A;
  --navy-600:      #24357e;
  --navy-700:      #1b2f6e;
  --navy-900:      #101a3d;
  --accent:        #E07B39;   /* muted, warm orange — used sparingly */
  --accent-strong: #C9631F;
  --accent-soft:   rgba(224,123,57,.10);
  --green:         #0F9D6E;

  /* Neutrals — warm, paper-like light foundation */
  --paper:         #FAF9F6;   /* page background */
  --paper-2:       #F4F2EC;   /* alt band */
  --surface:       #FFFFFF;
  --ink:           #17203A;   /* headings / primary text */
  --ink-2:         #4C566E;   /* body */
  --ink-3:         #7A8294;   /* muted / captions */
  --line:          #E9E7DF;   /* warm hairline */
  --line-2:        #DEDBD1;

  /* Shadows — soft, low, professional */
  --shadow-xs: 0 1px 2px rgba(20,28,50,.05);
  --shadow-sm: 0 2px 8px rgba(20,28,50,.06);
  --shadow-md: 0 8px 24px rgba(20,28,50,.08);
  --shadow-lg: 0 20px 48px rgba(20,28,50,.12);
  --shadow-navy: 0 12px 30px rgba(30,58,138,.18);

  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 100px;

  --container: 1200px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: 160ms var(--ease);
  --t: 240ms var(--ease);
  --t-slow: 440ms var(--ease-out);

  --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-head: 'Lexend', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

/* ── Cross-page transitions (MPA View Transitions) ─────────── */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-fade-out 220ms var(--ease) both;
}
::view-transition-new(root) {
  animation: vt-fade-in 360ms var(--ease-out) both;
}
@keyframes vt-fade-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-fade-in { from { opacity: 0; transform: translateY(10px); } }

/* keep the header steady across navigations */
.navbar { view-transition-name: site-nav; }

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-2);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.022em;
  margin: 0;
  font-weight: 600;
}

p { margin: 0; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--navy); color: #fff; }

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

/* ── Layout helpers ────────────────────────────────────────── */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--accent);
}
.eyebrow.center-line { justify-content: center; }

.h-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.8vw, 3rem);
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.1;
  margin: 1rem 0 .95rem;
}
.lede {
  font-size: 1.075rem; color: var(--ink-2);
  max-width: 46ch; line-height: 1.7;
}
.center .lede, .lede.center { margin-left: auto; margin-right: auto; }

.accent-text { color: var(--accent-strong); }

/* underline flourish used sparingly on key words */
.mark {
  position: relative; white-space: nowrap;
  color: var(--navy);
}
.mark svg {
  position: absolute; left: 0; bottom: -.18em;
  width: 100%; height: .26em; overflow: visible;
}
.mark svg path {
  stroke: var(--accent); stroke-width: 6; fill: none; stroke-linecap: round;
  stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: draw 900ms 350ms var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--navy); color: #fff;
  box-shadow: var(--shadow-navy);
}
.btn-primary:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(30,58,138,.26); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 24px rgba(224,123,57,.24);
}
.btn-accent:hover { background: var(--accent-strong); transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-lg { padding: .95rem 1.9rem; font-size: 1.02rem; }

.btn-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 500; color: var(--navy);
}
.btn-link svg { transition: transform var(--t); }
.btn-link:hover svg { transform: translateX(4px); }

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,246,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.navbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
  background: rgba(250,249,246,.92);
}
.nav-container {
  max-width: var(--container); margin: 0 auto;
  padding: 0 1.5rem; height: 72px;
  display: flex; align-items: center; gap: 1rem;
}

.nav-logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-logo svg { transition: transform var(--t); }
.nav-logo:hover svg { transform: rotate(-4deg) scale(1.04); }
.nav-logo-text {
  font-family: var(--font-head); font-weight: 600; font-size: 1.12rem;
  color: var(--ink); white-space: nowrap; letter-spacing: -.01em;
}
.nav-logo-text em { font-style: normal; color: var(--navy); }

.nav-links { display: flex; align-items: center; gap: .1rem; margin-left: .25rem; }
.nav-links > a, .nav-calc-btn {
  font-family: var(--font-head); font-size: .92rem; font-weight: 450;
  color: var(--ink-2); padding: .5rem .68rem; border-radius: 9px; white-space: nowrap;
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .3rem;
  transition: color var(--t), background var(--t);
}
.nav-links > a:hover, .nav-calc-btn:hover { color: var(--navy); background: rgba(30,58,138,.06); }
.nav-links > a.active { color: var(--navy); font-weight: 600; }

.nav-calc { position: relative; }
.nav-calc-btn .chevron { width: 15px; height: 15px; transition: transform var(--t); }
.nav-calc-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.nav-calc-dropdown, .lang-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .4rem; min-width: 210px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  z-index: 200;
}
.nav-calc-dropdown.open, .lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-calc-dropdown a, .lang-dropdown button {
  display: block; width: 100%; text-align: left;
  padding: .55rem .75rem; border-radius: 9px; font-size: .9rem;
  color: var(--ink-2); background: none; border: none; cursor: pointer;
  font-family: var(--font-body); transition: background var(--t), color var(--t);
}
.nav-calc-dropdown a:hover, .lang-dropdown button:hover { background: var(--paper-2); color: var(--navy); }
.lang-dropdown { right: 0; left: auto; min-width: 190px; max-height: 340px; overflow-y: auto; }
.lang-dropdown button.current { color: var(--navy); font-weight: 600; }
.lang-divider { border: none; border-top: 1px solid var(--line); margin: .35rem .25rem; }

.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav-actions .btn { white-space: nowrap; flex-shrink: 0; }
.lang-selector { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-head); font-size: .88rem; font-weight: 450;
  color: var(--ink-2); background: none; border: 1px solid var(--line-2);
  padding: .5rem .75rem; border-radius: var(--radius-pill); cursor: pointer;
  transition: border-color var(--t), color var(--t);
}
.lang-btn:hover { border-color: var(--navy); color: var(--navy); }
.lang-btn .chevron { width: 14px; height: 14px; }

.nav-phone {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-size: .9rem; font-weight: 500;
  color: var(--ink-2); padding: .5rem .5rem; white-space: nowrap; flex-shrink: 0;
  transition: color var(--t);
}
@media (max-width: 1320px) { .nav-phone { display: none; } }
.nav-phone:hover { color: var(--navy); }

.mobile-menu-btn {
  display: none; background: none; border: 1px solid var(--line-2);
  border-radius: 10px; padding: .5rem; cursor: pointer; color: var(--ink);
}

.mobile-menu {
  display: none; flex-direction: column; gap: .15rem;
  padding: 1rem 1.5rem 1.5rem;
  background: #fff; border-bottom: 1px solid var(--line);
}
.mobile-menu.open {
  display: flex;
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu > a, .mobile-submenu-link {
  font-family: var(--font-head); font-size: 1rem; color: var(--ink);
  padding: .7rem .5rem; border-radius: 10px; transition: background var(--t);
}
.mobile-menu > a:hover { background: var(--paper-2); }
.mobile-menu > a.active { color: var(--navy); font-weight: 600; }
.mobile-submenu-link { padding-left: 1.5rem; color: var(--ink-2); font-size: .95rem; }
.mobile-menu-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: .5rem; margin: 0; font-weight: 600; }
.mobile-menu-divider { border: none; border-top: 1px solid var(--line); margin: .5rem 0; }
.mobile-lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.mobile-lang-btn { text-align: left; padding: .5rem; border: none; background: none; font-family: var(--font-body); font-size: .88rem; color: var(--ink-2); border-radius: 8px; cursor: pointer; }
.mobile-lang-btn:hover { background: var(--paper-2); }

/* ── HERO ──────────────────────────────────────────────────── */
.hero { position: relative; overflow: clip; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: clip; }
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.hero-glow.a { width: 520px; height: 520px; top: -180px; right: -80px; background: radial-gradient(circle, rgba(30,58,138,.16), transparent 70%); }
.hero-glow.b { width: 420px; height: 420px; bottom: -160px; left: -120px; background: radial-gradient(circle, rgba(224,123,57,.12), transparent 70%); }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 0%, transparent 75%);
  opacity: .5;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-rating {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: .4rem .85rem .4rem .5rem;
  box-shadow: var(--shadow-xs); font-size: .85rem; font-weight: 500; color: var(--ink-2);
  margin-bottom: 1.5rem;
}
.hero-rating .stars { color: var(--accent); letter-spacing: .04em; }
.hero-rating .avatars { display: inline-flex; }
.hero-rating .avatars span {
  width: 22px; height: 22px; border-radius: 50%; margin-left: -7px;
  border: 2px solid #fff; background: var(--navy);
  display: inline-grid; place-items: center; color: #fff; font-size: .6rem; font-weight: 700;
}
.hero-rating .avatars span:first-child { margin-left: 0; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  letter-spacing: -.02em; line-height: 1.04; color: var(--ink);
  margin-bottom: 1.25rem;
}
.hero h1 .mark { color: var(--navy); }
.hero-sub { font-size: 1.1rem; color: var(--ink-2); line-height: 1.7; margin-bottom: 1.75rem; max-width: 30rem; }

.hero-points { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; }
.hero-points li { display: flex; align-items: center; gap: .6rem; font-size: .96rem; color: var(--ink); font-weight: 450; }
.hero-points svg { flex-shrink: 0; color: var(--green); }

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* hero visual — real social proof (testimonial + credentials) */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 460px; padding: 0 .5rem; }

.proof-backdrop {
  position: absolute; z-index: 0; width: 118%; height: 108%;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 90% at 80% 15%, rgba(30,58,138,.10), transparent 60%),
    radial-gradient(90% 80% at 15% 85%, rgba(224,123,57,.08), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.proof-card {
  position: relative; z-index: 2; width: min(100%, 400px);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 2rem 1.75rem 1.6rem;
}
.proof-quotemark {
  position: absolute; top: -18px; left: 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 4.5rem; line-height: 1;
  color: var(--navy); opacity: .14;
}
.proof-stars { color: var(--accent); font-size: 1.05rem; letter-spacing: .08em; margin-bottom: .9rem; }
.proof-card blockquote {
  margin: 0 0 1.4rem; font-family: var(--font-display); font-weight: 400;
  font-size: 1.16rem; line-height: 1.5; color: var(--ink); letter-spacing: -.01em;
}
.proof-card figcaption { display: flex; align-items: center; gap: .7rem; }
.proof-avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--navy), #2c4aa8); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .9rem; }
.proof-name { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .95rem; }
.proof-role { display: block; font-size: .83rem; color: var(--ink-3); }
.proof-verified { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; color: var(--green); background: rgba(15,157,110,.1); padding: .3rem .6rem; border-radius: var(--radius-pill); }

.proof-chip {
  position: absolute; z-index: 3;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: .7rem .95rem;
  display: flex; align-items: center; gap: .65rem; font-size: .85rem; color: var(--ink);
}
.proof-chip .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.proof-chip strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.proof-chip small { display: block; font-size: .72rem; color: var(--ink-3); }
.proof-chip.top { top: 6px; right: -10px; }
.proof-chip.bottom { bottom: 20px; left: -18px; }

/* subtle float, disabled under reduced-motion via base rule */
.float { animation: float 7s ease-in-out infinite; }
.float-2 { animation: float 9s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ── Inner page hero (About / Pricing / Contact / Notes / Calc) ── */
.page-hero {
  position: relative; overflow: clip; text-align: center;
  padding: clamp(3.25rem, 6vw, 5rem) 0 clamp(2.75rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.02em; line-height: 1.06;
  color: var(--ink); margin: 1rem 0 1rem;
}
.page-hero p.lede { margin-left: auto; margin-right: auto; }

/* ── Generic responsive card grids ─────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

/* stat card (mini) */
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.25rem; text-align: center; transition: transform var(--t), box-shadow var(--t); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.stat-card .n { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; color: var(--navy); letter-spacing: -.02em; }
.stat-card .n .s { font-size: .6em; }
.stat-card .l { font-size: .88rem; color: var(--ink-3); margin-top: .5rem; }

/* feature row card (icon + heading + text) */
.feature-card { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; transition: transform var(--t), box-shadow var(--t); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.feature-card h3 { font-family: var(--font-head); font-size: 1.08rem; font-weight: 600; margin-bottom: .45rem; }
.feature-card p { font-size: .93rem; color: var(--ink-2); line-height: 1.65; }

/* soft-icon card (emoji / icon on top) */
.icon-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; transition: transform var(--t), box-shadow var(--t); }
.icon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.icon-card .emoji { font-size: 1.9rem; margin-bottom: .8rem; }
.icon-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }
.icon-card p { font-size: .93rem; color: var(--ink-2); line-height: 1.65; }

.prose-narrow { max-width: 42rem; }
.prose-narrow p { font-size: 1.05rem; line-height: 1.8; color: var(--ink-2); }
.prose-narrow p + p { margin-top: 1.2rem; }
.prose-narrow em { font-style: italic; color: var(--ink); }

/* ── Pricing: format toggle ────────────────────────────────── */
.price-toggle { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px; gap: 4px; }
.price-toggle-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-size: .92rem; font-weight: 500; color: var(--ink-2);
  background: transparent; border: none; cursor: pointer;
  padding: .55rem 1.3rem; border-radius: var(--radius-pill);
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.price-toggle-btn.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-xs); }
.price-note-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 500; color: var(--ink-2);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: .35rem .9rem; margin-top: 1rem;
}

/* ── Pricing cards ─────────────────────────────────────────── */
.price-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.9rem; position: relative;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.featured { border-color: var(--navy); box-shadow: var(--shadow-navy); }
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-family: var(--font-head); font-size: .72rem; font-weight: 600;
  padding: .25rem .8rem; border-radius: var(--radius-pill); white-space: nowrap;
}
.price-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; margin: .5rem 0 .3rem; }
.price-card .desc { color: var(--ink-2); font-size: .93rem; margin-bottom: 1.25rem; }
.price-display { display: flex; align-items: baseline; gap: .15rem; }
.price-from { font-size: .9rem; color: var(--ink-3); margin-right: .1rem; }
.price-amount { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--navy); letter-spacing: -.02em; }
.price-unit { font-size: 1rem; color: var(--ink-3); }
.price-range { font-size: .82rem; color: var(--accent-strong); margin-top: .3rem; min-height: 1em; }
.price-divider { border: none; border-top: 1px solid var(--line); margin: 1.25rem 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .65rem; }
.checklist li { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.checklist .check { flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; color: var(--green); }
.price-card .btn { margin-top: auto; width: 100%; }

/* ── Group pricing table ───────────────────────────────────── */
.price-table { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.price-table-head { display: grid; grid-template-columns: 1.4fr 1fr 1fr; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .04em; }
.price-table-head > div { padding: .95rem 1.25rem; display: flex; align-items: center; gap: .4rem; }
.price-table-head > div + div { border-left: 1px solid rgba(255,255,255,.15); justify-content: center; }
.price-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-top: 1px solid var(--line); background: var(--surface); }
.price-row:nth-child(even) { background: var(--paper); }
.price-row > div { padding: 1.1rem 1.25rem; }
.price-row > div + div { border-left: 1px solid var(--line); text-align: center; display: flex; align-items: center; justify-content: center; gap: .3rem; }
.price-row .lvl { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .95rem; }
.price-row .lvl small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-3); font-size: .8rem; }
.price-row .v { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.price-row .per { font-size: .8rem; color: var(--ink-3); }

/* ── Package cards ─────────────────────────────────────────── */
.package-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1rem; text-align: center; transition: transform var(--t), box-shadow var(--t); }
.package-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.package-card.featured { border-color: var(--accent); }
.package-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-family: var(--font-head); font-size: .68rem; font-weight: 600; padding: .2rem .7rem; border-radius: var(--radius-pill); white-space: nowrap; }
.package-hours { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--navy); line-height: 1; }
.package-label { font-size: .85rem; color: var(--ink-3); margin: .25rem 0 .8rem; }
.package-save { display: inline-block; font-family: var(--font-head); font-size: .78rem; font-weight: 600; color: var(--green); background: rgba(15,157,110,.1); padding: .28rem .7rem; border-radius: var(--radius-pill); }

/* ── FAQ accordion ─────────────────────────────────────────── */
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--t); }
.faq-item.open { border-color: var(--line-2); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; background: none; border: none; cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--ink); }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink-3); transition: transform var(--t); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--navy); }
.faq-a { max-height: 0; overflow: hidden; padding: 0 1.3rem; color: var(--ink-2); font-size: .93rem; line-height: 1.7; transition: max-height var(--t-slow), padding var(--t-slow); }
.faq-item.open .faq-a { max-height: 600px; padding: 0 1.3rem 1.2rem; }

/* highlight strip (free-consult reminder etc.) */
.notice-strip { background: rgba(15,157,110,.07); border-top: 1px solid rgba(15,157,110,.18); border-bottom: 1px solid rgba(15,157,110,.18); padding: .9rem 1.5rem; }
.notice-strip .inner { max-width: var(--container); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem; text-align: center; }
.notice-strip span.msg { font-weight: 500; color: #0b6b4c; font-size: .92rem; }

/* ── Notes shop ────────────────────────────────────────────── */
.subject-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .5rem; }
.subject-head svg { flex-shrink: 0; }
.subject-nav-wrap { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.subject-nav-label { text-align: center; font-family: var(--font-head); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.subject-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.subject-nav-pill { display: flex; align-items: center; gap: .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .55rem 1.15rem .55rem .6rem; box-shadow: var(--shadow-xs); transition: transform var(--t), border-color var(--t), box-shadow var(--t); }
.subject-nav-pill:hover { transform: translateY(-2px); border-color: var(--navy); box-shadow: var(--shadow-sm); }
.snp-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(30,58,138,.09); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.snp-text { display: flex; flex-direction: column; line-height: 1.25; }
.snp-name { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); }
.snp-sub { font-size: .75rem; font-weight: 500; color: var(--green); }

.note-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.9rem; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.note-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.note-card.featured { border-color: var(--accent); }
.note-badge { position: absolute; top: 1.15rem; right: 1.15rem; font-family: var(--font-head); font-size: .66rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .7rem; border-radius: var(--radius-pill); }
.note-badge.ready { background: rgba(15,157,110,.12); color: var(--green); }
.note-badge.save { background: var(--accent-soft); color: var(--accent-strong); }
.note-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; margin-bottom: .4rem; }
.note-card .desc { color: var(--ink-2); font-size: .93rem; margin-bottom: 1.1rem; }
.note-price { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--navy); letter-spacing: -.02em; }
.note-price-old { font-size: 1rem; color: var(--ink-3); text-decoration: line-through; margin-left: .45rem; }
.note-included { font-family: var(--font-head); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: .7rem; }
.note-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: auto; }
.instant-note { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .8rem; color: var(--ink-3); text-align: center; line-height: 1.3; }
.instant-note svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }
.buy-ico { width: 18px; height: 18px; }
.btn-whatsapp { background: #fff; color: var(--navy); border-color: var(--line-2); }
.btn-whatsapp:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-whatsapp svg { color: #25D366; }
/* Keep Payhip buy buttons on-brand & full width even after payhip.js restyles */
a.payhip-buy-button.btn-primary, a.payhip-buy-button.payhip-styled-button {
  width: 100%; background: var(--navy) !important; color: #fff !important; border: none !important;
  border-radius: var(--radius-pill) !important; font-family: var(--font-head) !important; font-weight: 500 !important;
  box-shadow: var(--shadow-navy) !important; text-shadow: none !important; min-height: 46px;
}
a.payhip-buy-button.btn-primary:hover, a.payhip-buy-button.payhip-styled-button:hover { background: var(--navy-700) !important; transform: translateY(-2px); }
.note-card.featured a.payhip-buy-button.btn-primary { background: var(--accent) !important; box-shadow: 0 10px 24px rgba(224,123,57,.24) !important; }
.note-card.featured a.payhip-buy-button.btn-primary:hover { background: var(--accent-strong) !important; }

/* ── ATAR / Study-Score calculator ─────────────────────────── */
.atar-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: start; max-width: 980px; margin: 0 auto; }
.atar-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.atar-results-panel { border-radius: var(--radius-lg); color: #fff; position: sticky; top: 90px; background: linear-gradient(160deg, var(--navy-900), var(--navy-600)); box-shadow: var(--shadow-lg); }

.atar-row { display: flex; gap: .65rem; align-items: center; }
.atar-row-select, .atar-subject-combo { position: relative; flex: 1; min-width: 0; }
.atar-row-score { display: flex; align-items: center; gap: .6rem; width: 190px; flex-shrink: 0; }
.atar-row-remove { flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; transition: color var(--t), border-color var(--t); }
.atar-row-remove:hover { color: #DC2626; border-color: #FCA5A5; }

.atar-slider, .atar-score-slider { flex: 1; min-width: 0; accent-color: var(--navy); height: 4px; }
.atar-score-input { width: 64px; text-align: center; padding: .5rem .3rem; }

.atar-subject-dropdown { position: absolute; top: calc(100% + 5px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 240px; overflow-y: auto; z-index: 30; padding: .35rem; }
.atar-subject-dropdown[hidden] { display: none; }
.atar-subject-option { padding: .55rem .7rem; border-radius: 8px; font-size: .9rem; cursor: pointer; color: var(--ink-2); }
.atar-subject-option:hover, .atar-subject-option.highlighted { background: var(--paper-2); color: var(--navy); }
.atar-subject-empty { padding: .6rem .7rem; font-size: .88rem; color: var(--ink-3); }

.breakdown-row { display: flex; align-items: center; justify-content: space-between; font-size: .84rem; padding: .3rem 0; color: #CBD5E1; }
.breakdown-row .bd-name { color: #E2E8F0; }
.breakdown-row .bd-val { font-family: var(--font-head); font-weight: 600; color: #fff; }

/* Study-score rows */
.score-row { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.15rem; background: var(--surface); }
.score-row-label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.score-row-name { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); }
.score-row-weight { font-size: .74rem; font-weight: 600; color: var(--navy); background: rgba(30,58,138,.08); padding: .2rem .55rem; border-radius: var(--radius-pill); white-space: nowrap; }
.score-mode-toggle { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px; gap: 2px; margin-bottom: .85rem; }
.score-mode-btn { font-family: var(--font-head); font-size: .78rem; font-weight: 500; color: var(--ink-2); background: none; border: none; padding: .35rem .8rem; border-radius: var(--radius-pill); cursor: pointer; transition: background var(--t), color var(--t); }
.score-mode-btn.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-xs); }
.score-mode-panel[hidden] { display: none; }
.score-row-inputs { display: flex; align-items: flex-end; gap: .7rem; flex-wrap: wrap; }
.score-row-inputs .form-input { width: 100px; }
.score-row-of { font-size: .85rem; color: var(--ink-3); padding-bottom: .6rem; }
.score-row-hint { font-size: .78rem; color: var(--ink-3); margin-top: .55rem; }
.score-row-pct { font-size: .82rem; color: var(--accent-strong); margin-top: .55rem; font-weight: 500; }

@media (max-width: 820px) {
  .atar-layout { grid-template-columns: 1fr; }
  .atar-results-panel { position: static; }
}
@media (max-width: 480px) {
  .atar-row { flex-wrap: wrap; }
  .atar-row-score { width: 100%; }
}

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; }
.form-label { font-family: var(--font-head); font-weight: 500; font-size: .88rem; color: var(--ink); margin-bottom: .45rem; }
.form-label .req { color: var(--accent-strong); }
.form-input, .form-select, .form-textarea {
  width: 100%; font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px;
  padding: .7rem .9rem; transition: border-color var(--t), box-shadow var(--t);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-3); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,138,.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select-wrap { position: relative; }
.form-select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer; }
.form-select-wrap::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.form-error { color: #DC2626; font-size: .8rem; margin-top: .35rem; }
.info-row { display: flex; align-items: flex-start; gap: 1rem; }
.info-ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.info-row .t { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .15rem; }
.next-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.next-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; }
.next-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); line-height: 1.55; }
.next-num { width: 24px; height: 24px; flex-shrink: 0; background: var(--navy); color: #fff; border-radius: 50%; font-family: var(--font-head); font-size: .74rem; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success-check { width: 80px; height: 80px; background: rgba(15,157,110,.1); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.5rem; }

/* ── Trust marquee ─────────────────────────────────────────── */
.marquee-band { padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.marquee-label { text-align: center; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; font-family: var(--font-head); font-weight: 600; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 1rem; padding-right: 1rem; animation: scroll-x 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.subject-pill {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1.1rem; border-radius: var(--radius-pill);
  background: var(--paper); border: 1px solid var(--line);
  font-family: var(--font-head); font-size: .9rem; font-weight: 450; color: var(--ink-2); white-space: nowrap;
}
.subject-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }

/* ── Stats ─────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--surface); padding: 2rem 1.5rem; text-align: center; }
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--navy); letter-spacing: -.02em; line-height: 1; }
.stat-num .suffix { color: var(--accent); }
.stat-label { margin-top: .55rem; font-size: .9rem; color: var(--ink-3); }

/* ── Cards / generic ───────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }

/* ── Compare (Not all tutoring is equal) ───────────────────── */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }
.compare-col { border-radius: var(--radius-lg); padding: 1.9rem; border: 1px solid var(--line); }
.compare-col.them { background: var(--surface); }
.compare-col.us { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--shadow-navy); }
.compare-col h3 { font-size: 1.2rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.compare-col.us h3 { color: #fff; }
.compare-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.compare-list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .96rem; }
.compare-col.them li { color: var(--ink-2); }
.compare-col.us li { color: rgba(255,255,255,.9); }
.compare-list svg { flex-shrink: 0; margin-top: 2px; }
.compare-col.them .x { color: var(--ink-3); }
.compare-col.us .check { color: #6ee7b7; }

/* ── How it works ──────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; position: relative; }
.step { position: relative; padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform var(--t), box-shadow var(--t); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 1.1rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .55rem; }
.step p { font-size: .95rem; color: var(--ink-2); }

/* ── Subjects ──────────────────────────────────────────────── */
.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 3rem; }
.subject-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.9rem; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.subject-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.subject-kicker { font-family: var(--font-head); font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--navy); }
.subject-card h3 { font-size: 1.35rem; margin: .5rem 0 .9rem; }
.subject-card p { font-size: .95rem; color: var(--ink-2); margin-bottom: 1.25rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { font-size: .82rem; padding: .35rem .75rem; border-radius: var(--radius-pill); background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }

/* ── Testimonials ──────────────────────────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.testi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; transition: transform var(--t), box-shadow var(--t); }
.testi:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi .stars { color: var(--accent); font-size: .95rem; letter-spacing: .05em; margin-bottom: .9rem; }
.testi blockquote { margin: 0 0 1.25rem; font-size: 1rem; color: var(--ink); line-height: 1.65; }
.testi-person { display: flex; align-items: center; gap: .7rem; margin-top: auto; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .9rem; }
.testi-name { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .92rem; }
.testi-meta { font-size: .82rem; color: var(--ink-3); }

/* ── Referral / feature band ───────────────────────────────── */
.feature-band { background: var(--paper-2); border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.reward-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); text-align: center; }
.reward-amount { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.5rem, 6vw, 3.5rem); color: var(--navy); line-height: 1; }
.reward-amount .cur { color: var(--accent); }

/* ── CTA band ──────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-900), var(--navy) 60%, var(--navy-600)); border-radius: var(--radius-xl); padding: clamp(3rem, 6vw, 5rem) 1.5rem; text-align: center; }
.cta-band::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(224,123,57,.25), transparent 70%); top: -220px; right: -120px; }
.cta-band h2 { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.015em; margin-bottom: 1rem; position: relative; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 34rem; margin: 0 auto 2rem; position: relative; }
.cta-band .hero-cta { justify-content: center; position: relative; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 4rem 0 2rem; margin-top: 2rem; }
.footer-grid { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand-text { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.footer-brand-text em { font-style: normal; color: var(--navy); }
.footer-desc { font-size: .92rem; color: var(--ink-2); max-width: 30ch; margin-top: .9rem; }
.footer-heading { font-family: var(--font-head); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a, .footer-links li { font-size: .92rem; color: var(--ink-2); transition: color var(--t); }
.footer-links a:hover { color: var(--navy); }
.footer-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-3); transition: color var(--t), border-color var(--t), transform var(--t); }
.footer-social a:hover { color: var(--navy); border-color: var(--navy); transform: translateY(-2px); }
.footer-bottom { max-width: var(--container); margin: 2.5rem auto 0; padding: 1.5rem 1.5rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .86rem; color: var(--ink-3); }
/* prevent long tokens (e.g. email) from forcing footer wider than the phone */
.footer-grid > div { min-width: 0; }
.footer-desc, .footer-links a, .footer-links li, .site-footer a[href^="mailto"], .site-footer a[href^="tel"] { overflow-wrap: anywhere; }

/* ── Scroll reveal ─────────────────────────────────────────── */
/* Hidden state only applies once JS is confirmed (html.js), so a
   no-JS / slow-JS load never leaves content permanently invisible. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.visible { opacity: 1; transform: none; }
/* legacy hook kept so old inline JS still animates */
.js .fade-up { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .fade-up.visible { opacity: 1; transform: none; }
.stagger.visible > * { animation: rise .6s var(--ease-out) both; }
.stagger.visible > *:nth-child(2) { animation-delay: .08s; }
.stagger.visible > *:nth-child(3) { animation-delay: .16s; }
.stagger.visible > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ── Floating WhatsApp ─────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: grid; place-items: center; box-shadow: 0 6px 22px rgba(37,211,102,.4);
  transition: transform var(--t), box-shadow var(--t);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 28px rgba(37,211,102,.5); }

/* ── Google Translate: hide its injected UI (we use our own selector) ── */
#google_translate_element { display: none !important; }
.goog-te-banner-frame, .goog-te-banner-frame.skiptranslate { display: none !important; }
.goog-tooltip, .goog-tooltip:hover, #goog-gt-tt { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ── Skip link ─────────────────────────────────────────────── */
.skip-link { position: absolute; top: -100%; left: 1rem; z-index: 9999; background: var(--navy); color: #fff; padding: .55rem 1.2rem; border-radius: 0 0 12px 12px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 0; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; order: -1; }
  .hero-copy { max-width: none; }
  .feature-band { grid-template-columns: 1fr; }
  .split-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 820px) {
  .nav-links, .nav-phone, .lang-selector { display: none; }
  .nav-actions > .btn { display: none; }   /* CTA lives in the mobile menu on phones */
  .mobile-menu-btn { display: inline-flex; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps, .testi-grid { grid-template-columns: 1fr; }
  .subject-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .feature-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
}
@media (max-width: 620px) {
  .form-two { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .price-table { min-width: 480px; }
@media (max-width: 560px) {
  .wrap { padding: 0 1.15rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .nav-logo-text { font-size: 1.02rem; }
  /* keep the hero social-proof graphic inside the screen */
  .hero-visual { padding: 0; min-height: auto; }
  .proof-backdrop { width: 100%; height: 100%; }
  .proof-chip.top { right: 0; }
  .proof-chip.bottom { left: 0; }
}

/* ════════════════════════════════════════════════════════════
   PLAYFUL LAYER v3  —  multi-colour accents, mascot, motion
   Added on top of v2; scoped to new classes so other pages are
   unaffected. Homepage opts in via these classes.
   ════════════════════════════════════════════════════════════ */
:root {
  /* Bright, friendly accent family (used freely on the homepage) */
  --c-green:  #16A34A;  --c-green-bg:  #E4F8EC;
  --c-blue:   #2563EB;  --c-blue-bg:   #E4EDFF;
  --c-violet: #7C3AED;  --c-violet-bg: #EFE7FE;
  --c-coral:  #F26B4E;  --c-coral-bg:  #FFE9E1;
  --c-amber:  #F59E0B;  --c-amber-bg:  #FEF1D6;
  --c-pink:   #EC4899;  --c-pink-bg:   #FCE4F1;
  --c-teal:   #0EA5A5;  --c-teal-bg:   #DDF6F5;
}

/* ── Coloured / gradient text helpers ──────────────────────── */
.t-green  { color: var(--c-green); }
.t-blue   { color: var(--c-blue); }
.t-violet { color: var(--c-violet); }
.t-coral  { color: var(--c-coral); }
.t-amber  { color: var(--c-amber); }
.t-pink   { color: var(--c-pink); }
.grad-text {
  background: linear-gradient(100deg, var(--c-blue), var(--c-violet) 45%, var(--c-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Sparkles (twinkling stars) ────────────────────────────── */
.sparkle { position: absolute; pointer-events: none; z-index: 3; color: var(--c-amber);
  animation: twinkle 2.8s ease-in-out infinite; transform-origin: center; }
.sparkle.s2 { color: var(--c-violet); animation-delay: .6s; animation-duration: 3.4s; }
.sparkle.s3 { color: var(--c-pink);   animation-delay: 1.2s; animation-duration: 2.4s; }
.sparkle.s4 { color: var(--c-blue);   animation-delay: 1.8s; animation-duration: 3.1s; }
.sparkle.s5 { color: var(--c-green);  animation-delay: .3s;  animation-duration: 2.9s; }
@keyframes twinkle {
  0%, 100% { transform: scale(.55) rotate(0deg);   opacity: .35; }
  50%      { transform: scale(1)   rotate(90deg);  opacity: 1; }
}

/* ── Word-cycling headline word ────────────────────────────── */
.word-cycle {
  display: inline-block; position: relative; white-space: nowrap;
  transition: color .28s var(--ease);
}
.word-cycle .wc-word {
  display: inline-block;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.word-cycle.swapping .wc-word { opacity: 0; transform: translateY(-.28em); }
.word-cycle .wc-underline {
  position: absolute; left: 0; right: 0; bottom: -.14em; height: .22em;
  border-radius: 100px; background: currentColor; opacity: .28;
}
.word-cycle .wc-caret {
  display: inline-block; width: .06em; height: 1em; margin-left: .04em;
  background: currentColor; border-radius: 2px; vertical-align: -.08em;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

/* ── Floating decorative blobs (soft colour behind sections) ── */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0; pointer-events: none; opacity: .55; }
.blob.float-slow { animation: blob-drift 16s ease-in-out infinite; }
@keyframes blob-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(18px,-22px) scale(1.06); }
  66%     { transform: translate(-14px,12px) scale(.96); }
}

/* ── Mascot (book buddy) ───────────────────────────────────── */
.mascot { position: relative; z-index: 2; width: clamp(150px, 20vw, 210px); }
.mascot.bob { animation: bob 5s ease-in-out infinite; }
.mascot.bob-2 { animation: bob 6.5s ease-in-out infinite reverse; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }

/* mascot idle: blinking eyes + a periodic wave */
.m-eye { transform-box: fill-box; transform-origin: center; animation: m-blink 5s ease-in-out infinite; }
@keyframes m-blink { 0%,90%,100% { transform: scaleY(1); } 94% { transform: scaleY(.12); } }
.m-arm { transform-box: fill-box; transform-origin: left bottom; animation: m-wave 5s ease-in-out infinite; }
@keyframes m-wave {
  0%,55%,100% { transform: rotate(0deg); }
  62%,82% { transform: rotate(15deg); }
  72% { transform: rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) { .m-eye, .m-arm { animation: none !important; } }

/* ── Colour chips floating around the hero scene ───────────── */
.play-chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: .5rem .85rem; box-shadow: var(--shadow-md);
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--ink);
  white-space: nowrap;
}
.play-chip .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: .82rem; }

/* ── Coloured icon tiles (feature/step/subject icons) ──────── */
.ic-green  { background: var(--c-green-bg);  color: var(--c-green); }
.ic-blue   { background: var(--c-blue-bg);   color: var(--c-blue); }
.ic-violet { background: var(--c-violet-bg); color: var(--c-violet); }
.ic-coral  { background: var(--c-coral-bg);  color: var(--c-coral); }
.ic-amber  { background: var(--c-amber-bg);  color: var(--c-amber); }
.ic-pink   { background: var(--c-pink-bg);   color: var(--c-pink); }
.ic-teal   { background: var(--c-teal-bg);   color: var(--c-teal); }

/* ── Soft-tinted section backgrounds (section rhythm) ──────── */
.tint { position: relative; }
.tint > .wrap { position: relative; z-index: 1; }
.tint-blue   { background: linear-gradient(180deg, #F4F8FF, #FFFFFF); }
.tint-mint   { background: linear-gradient(180deg, #F0FBF5, #FFFFFF); }
.tint-peach  { background: linear-gradient(180deg, #FFF6F2, #FFFFFF); }
.tint-lav    { background: linear-gradient(180deg, #F8F5FF, #FFFFFF); }
.tint-amber  { background: linear-gradient(180deg, #FFFBEF, #FFFFFF); }
/* colourful hairline between stacked sections */
.edge-top    { border-top: 1px solid var(--line); }
.edge-bottom { border-bottom: 1px solid var(--line); }

/* colourful eyebrow: pill instead of dash-line */
.eyebrow.pill {
  background: var(--c-blue-bg); color: var(--c-blue);
  padding: .4rem .85rem; border-radius: 100px; letter-spacing: .06em;
}
.eyebrow.pill::before { display: none; }
.eyebrow.pill.green  { background: var(--c-green-bg);  color: var(--c-green); }
.eyebrow.pill.violet { background: var(--c-violet-bg); color: var(--c-violet); }
.eyebrow.pill.coral  { background: var(--c-coral-bg);  color: var(--c-coral); }
.eyebrow.pill.amber  { background: var(--c-amber-bg);  color: var(--c-amber); }
.eyebrow.pill.pink   { background: var(--c-pink-bg);   color: var(--c-pink); }

/* make step numbers colourful & varied */
.steps .step:nth-child(1) .step-num { background: var(--c-blue-bg);   color: var(--c-blue); }
.steps .step:nth-child(2) .step-num { background: var(--c-violet-bg); color: var(--c-violet); }
.steps .step:nth-child(3) .step-num { background: var(--c-green-bg);  color: var(--c-green); }
/* colourful top-border accent on cards in playful sections */
.step, .subject-card, .testi { position: relative; overflow: hidden; }
.pop-top::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--pop, var(--c-blue)); opacity: 0; transition: opacity var(--t);
}
.pop-top:hover::before { opacity: 1; }

/* subject cards get rotating accent colours */
.subject-grid .subject-card:nth-child(1) { --pop: var(--c-blue); }
.subject-grid .subject-card:nth-child(2) { --pop: var(--c-violet); }

/* playful subject pills in marquee — rotate the dot colour */
.subject-pill:nth-child(5n+1)::before { background: var(--c-blue); opacity: .9; }
.subject-pill:nth-child(5n+2)::before { background: var(--c-green); opacity: .9; }
.subject-pill:nth-child(5n+3)::before { background: var(--c-violet); opacity: .9; }
.subject-pill:nth-child(5n+4)::before { background: var(--c-coral); opacity: .9; }
.subject-pill:nth-child(5n+5)::before { background: var(--c-pink); opacity: .9; }

/* stats: colourful numbers */
.stats.playful .stat:nth-child(1) .stat-num { color: var(--c-blue); }
.stats.playful .stat:nth-child(2) .stat-num { color: var(--c-violet); }
.stats.playful .stat:nth-child(3) .stat-num { color: var(--c-coral); }
.stats.playful .stat:nth-child(4) .stat-num { color: var(--c-green); }
.stats.playful .stat-num .suffix { color: inherit; opacity: .7; }

@media (max-width: 980px) {
  .play-chip { font-size: .8rem; }
  .mascot { width: clamp(120px, 34vw, 170px); }
}
@media (prefers-reduced-motion: reduce) {
  .sparkle, .mascot.bob, .mascot.bob-2, .blob.float-slow, .word-cycle .wc-caret, .spk-inline { animation: none !important; }
}

/* ── Playful hero specifics ────────────────────────────────── */
.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;
}
.play-hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.play-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.1rem); }
.play-hero .word-cycle { line-height: 1; }
.spk-inline { display: inline-block; vertical-align: .1em; animation: twinkle 3s ease-in-out infinite; }

.hero-points li { gap: .65rem; }
.hp-ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }

.hero-visual.play-scene { min-height: 460px; overflow: visible; }
.hero-visual.play-scene .mascot { filter: drop-shadow(0 24px 40px rgba(30,58,138,.22)); }

@media (max-width: 980px) {
  .hero-visual.play-scene { min-height: 360px; margin-bottom: .5rem; }
}
@media (max-width: 560px) {
  .hero-visual.play-scene { min-height: 300px; }
  .play-chip { font-size: .74rem; padding: .4rem .65rem; }
  .play-chip .dot { width: 22px; height: 22px; }
  .play-hero h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
}

/* ── Inner-page heroes: colour + motion (applies to all sub-pages) ── */
.page-hero .hero-glow { opacity: .6; }
.page-hero .hero-glow.a {
  width: 480px; height: 480px; top: -180px; right: -60px;
  background: radial-gradient(circle, rgba(37,99,235,.18), transparent 70%);
  animation: blob-drift 18s ease-in-out infinite;
}
.page-hero .hero-glow.b {
  width: 400px; height: 400px; bottom: -160px; left: -100px;
  background: radial-gradient(circle, rgba(124,58,237,.16), transparent 70%);
  animation: blob-drift 22s ease-in-out infinite reverse;
}
/* twinkling stars around the page title */
.page-hero::before, .page-hero::after {
  content: "✦"; position: absolute; z-index: 0; pointer-events: none;
  line-height: 1; animation: twinkle 3s ease-in-out infinite;
}
.page-hero::before { left: 9%;  top: 30%; font-size: 26px; color: var(--c-amber); }
.page-hero::after  { right: 11%; top: 40%; font-size: 20px; color: var(--c-violet); animation-duration: 3.6s; animation-delay: .8s; }
/* page-hero eyebrow becomes a colour pill by default (perl pass may override colour) */
.page-hero .eyebrow:not(.pill) { background: var(--c-blue-bg); color: var(--c-blue); padding: .4rem .9rem; border-radius: 100px; }
.page-hero .eyebrow:not(.pill)::before { display: none; }

/* ── Reels / short-video gallery ───────────────────────────── */
.reels-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.75rem; }
.reel-card {
  position: relative; display: block; width: 100%; padding: 0; margin: 0;
  aspect-ratio: 9 / 16; border: none; cursor: pointer; background: #0f1a3d;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform var(--t), box-shadow var(--t);
}
.reel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.reel-card:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.reel-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-card::after { /* subtle gradient for tag legibility */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,26,61,.15) 0%, transparent 22%, transparent 62%, rgba(15,26,61,.55) 100%);
}
.reel-play {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.94);
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  transition: transform var(--t), background var(--t);
}
.reel-play::before {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-left: 17px solid var(--navy); border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.reel-card:hover .reel-play { transform: scale(1.09); }
.reel-tag {
  position: absolute; left: .7rem; bottom: .7rem; z-index: 2;
  background: rgba(15,26,61,.72); color: #fff; font-family: var(--font-head);
  font-weight: 600; font-size: .74rem; padding: .3rem .7rem; border-radius: 100px;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.reel-video { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; background: #000; border: none; }
@media (max-width: 900px) { .reels-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; } }
@media (max-width: 420px) { .reels-grid { gap: .6rem; } }

/* small waving mascot above the reels "follow" CTA */
.reels-mascot { width: 84px; height: auto; margin: 0 auto .75rem; display: block;
  filter: drop-shadow(0 12px 18px rgba(30,58,138,.18)); animation: bob 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .reels-mascot { animation: none !important; } }

/* celebrating mascot on the contact form success state */
.success-mascot-wrap { position: relative; width: 168px; margin: 0 auto 1.4rem; }
.success-mascot { width: 138px; height: auto; margin: 0 auto; display: block;
  filter: drop-shadow(0 14px 22px rgba(30,58,138,.20)); animation: bob 4s ease-in-out infinite; }
.success-mascot-wrap .sparkle { position: absolute; }
@media (prefers-reduced-motion: reduce) { .success-mascot { animation: none !important; } }

/* small animated mascot for the About page hero */
.page-hero-mascot {
  width: clamp(88px, 12vw, 124px); height: auto; margin: 0 auto .5rem; display: block;
  position: relative; z-index: 1;
  filter: drop-shadow(0 14px 22px rgba(30,58,138,.20));
  animation: bob 5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .page-hero-mascot { animation: none !important; } }

/* Card top-accent for inner pages that opt in (no overflow clip, badge-safe) */
.card-pop { position: relative; }
.card-pop::after {
  content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 0; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--pop, var(--c-blue)); transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.card-pop:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .page-hero::before, .page-hero::after, .page-hero .hero-glow { animation: none !important; }
}
