/* ==========================================================================
   L.B. English Co. — Global stylesheet
   1. Design tokens
   2. Reset & base
   3. Accessibility utilities
   4. Ambient background
   5. Buttons, chips, badges
   6. Header / tabbed navigation / mobile drawer
   7. Layout: sections, headings, grids
   8. Glass cards & feature components
   9. Tabs component (programmes)
   10. Steps, stats, teacher, testimonials, pricing
   11. FAQ accordion, CTA band, forms
   12. Footer
   13. Motion & reveal
   14. Responsive
   15. Shared programme-page components (ESL / IELTS / SAT)
   16. Shared closing-page components (tools / teacher / pricing / contact)
   17. Members' forum (community)
   18. Tailoring loop (landing)
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* --- Type ------------------------------------------------------------ */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
    Palatino, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Fluid type scale: clamp(min, ideal, max) — 320px -> 1440px viewport */
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.1rem, 1.03rem + 0.36vw, 1.32rem);
  --step-2: clamp(1.3rem, 1.16rem + 0.66vw, 1.75rem);
  --step-3: clamp(1.56rem, 1.3rem + 1.24vw, 2.4rem);
  --step-4: clamp(1.9rem, 1.42rem + 2.3vw, 3.3rem);
  --step-5: clamp(2.3rem, 1.45rem + 4vw, 4.5rem);

  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-body: 1.68;
  --tracking-tight: -0.022em;
  --tracking-wide: 0.14em;

  /* --- Space (4px base rhythm) ---------------------------------------- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  --section-y: clamp(3.5rem, 2rem + 4.5vw, 6rem);
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --container: 1200px;
  --container-narrow: 780px;

  /* --- Radius ---------------------------------------------------------- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* --- Motion ---------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 0.68, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.32, 0.5, 1);
  --t-fast: 140ms;
  --t-mid: 260ms;
  --t-slow: 520ms;

  /* --- Glass / blur ---------------------------------------------------- */
  --blur-sm: 10px;
  --blur-md: 18px;
  --blur-lg: 30px;

  --z-header: 100;
  --z-drawer: 200;
  --z-skip: 300;
}

/* ------------------------------------------------------------------
   THEME 1 · AURORA — dark, cool teal → cyan. The default.
   `data-theme` picks the palette; `data-scheme` (dark|light), set by the
   same script, drives the handful of rules that only care about light vs
   dark. Every theme declares a complete palette, so nothing is inherited
   from another theme.
   ------------------------------------------------------------------ */
:root,
:root[data-theme="aurora"] {
  color-scheme: dark;

  --bg: #06101f;
  --bg-deep: #030812;

  --glass-1: rgba(16, 36, 66, 0.38);
  --glass-2: rgba(22, 48, 86, 0.52);
  --glass-3: rgba(32, 66, 114, 0.68);
  --glass-header: rgba(5, 13, 26, 0.76);

  --line: rgba(125, 198, 255, 0.15);
  --line-strong: rgba(125, 218, 255, 0.28);
  --line-hair: rgba(125, 198, 255, 0.09);

  --text: #f3f7fd;
  --text-soft: #cedcf0;
  --text-muted: #98aecb;

  /* Primary accent family: luminous turquoise → sapphire sky */
  --accent-100: #dcfff8;
  --accent-200: #99f8e8;
  --accent: #3be6cb;
  --accent-strong: #18cbb4;
  --accent-deep: #0d9284;
  --accent-solid: #35e2c7;
  --on-accent: #02201d;
  --accent-glow: rgba(59, 230, 203, 0.34);

  /* Secondary warm brand accent: bridge gold → amber */
  --gold: #f6bd4b;
  --gold-200: #ffe194;
  --gold-soft: rgba(246, 189, 75, 0.15);
  --gold-line: rgba(246, 189, 75, 0.38);
  --grad-gold: linear-gradient(135deg, #ffe396 0%, #f6bd4b 50%, #e5961f 100%);
  --grad-hero: linear-gradient(130deg, #9efbe9 0%, #3be6cb 45%, #ffd978 100%);

  --grad-accent: linear-gradient(135deg, #8ef8e7 0%, #36e2c8 45%, #2697ea 100%);
  --grad-surface: linear-gradient(
    150deg,
    rgba(36, 78, 136, 0.28) 0%,
    rgba(13, 29, 54, 0.42) 48%,
    rgba(22, 54, 94, 0.34) 100%
  );
  --grad-panel: linear-gradient(
    160deg,
    rgba(26, 56, 98, 0.62),
    rgba(10, 23, 44, 0.54)
  );

  --shadow-sm: 0 4px 14px rgba(1, 6, 15, 0.42);
  --shadow-md: 0 20px 48px -20px rgba(1, 6, 15, 0.8);
  --shadow-lg: 0 42px 92px -38px rgba(1, 6, 15, 0.92);
  --shadow-glow: 0 24px 70px -30px rgba(59, 230, 203, 0.58);

  --orb-1: rgba(59, 230, 203, 0.25);
  --orb-2: rgba(38, 142, 238, 0.25);
  --orb-3: rgba(246, 189, 75, 0.16);
  --ambient-art-blend: screen;
  --ambient-art-filter: saturate(1);
  --aurora-art-opacity: 0.32;
  --motivational-art-opacity: 0.42;
  --landmark-opacity: 0.4;
  --noise-opacity: 0.032;
}

/* THEME 3 · DAYLIGHT — light, sunlit sky paper + sapphire teal + gold - */
:root[data-theme="daylight"] {
  color-scheme: light;

  --bg: #f4f8fd;
  --bg-deep: #e9f2fc;

  --glass-1: rgba(255, 255, 255, 0.58);
  --glass-2: rgba(255, 255, 255, 0.74);
  --glass-3: rgba(255, 255, 255, 0.9);
  --glass-header: rgba(247, 251, 255, 0.84);

  --line: rgba(14, 48, 86, 0.13);
  --line-strong: rgba(14, 48, 86, 0.24);
  --line-hair: rgba(14, 48, 86, 0.08);

  --text: #091a2e;
  --text-soft: #213852;
  --text-muted: #4a627d;

  --accent-100: #064e46;
  --accent-200: #086c62;
  --accent: #097c70;
  --accent-strong: #07665c;
  --accent-deep: #054d46;
  --accent-solid: #097a6e;
  --on-accent: #ffffff;
  --accent-glow: rgba(9, 124, 112, 0.24);

  --gold: #c47a0c;
  --gold-200: #9a5d04;
  --gold-soft: rgba(235, 160, 38, 0.15);
  --gold-line: rgba(212, 136, 18, 0.36);
  --grad-gold: linear-gradient(135deg, #f7bf4f 0%, #e09119 55%, #c47308 100%);
  --grad-hero: linear-gradient(130deg, #0b8779 0%, #1463b8 55%, #c47a0c 100%);

  --grad-accent: linear-gradient(135deg, #0fa392 0%, #097c70 50%, #1565b8 100%);
  --grad-surface: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.66) 0%,
    rgba(242, 248, 255, 0.46) 55%,
    rgba(255, 255, 255, 0.58) 100%
  );
  --grad-panel: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.74),
    rgba(240, 247, 255, 0.5)
  );

  --shadow-sm: 0 3px 10px rgba(12, 40, 76, 0.08);
  --shadow-md: 0 18px 42px -22px rgba(12, 40, 76, 0.26);
  --shadow-lg: 0 40px 80px -42px rgba(12, 40, 76, 0.38);
  --shadow-glow: 0 26px 60px -32px rgba(9, 124, 112, 0.38);

  --orb-1: rgba(15, 163, 146, 0.24);
  --orb-2: rgba(34, 124, 214, 0.22);
  --orb-3: rgba(240, 174, 54, 0.2);
  --ambient-art-blend: multiply;
  --ambient-art-filter: saturate(0.9) brightness(1.08);
  --aurora-art-opacity: 0.16;
  --motivational-art-opacity: 0.26;
  --landmark-opacity: 0.48;
  --noise-opacity: 0.018;
}

/* THEME 2 · OBSIDIAN — dark, royal midnight + indigo + gold ----------- */
:root[data-theme="obsidian"] {
  color-scheme: dark;

  --bg: #080915;
  --bg-deep: #04050c;

  --glass-1: rgba(25, 27, 56, 0.36);
  --glass-2: rgba(34, 37, 74, 0.5);
  --glass-3: rgba(46, 50, 96, 0.66);
  --glass-header: rgba(8, 9, 20, 0.74);

  --line: rgba(165, 158, 255, 0.14);
  --line-strong: rgba(165, 158, 255, 0.26);
  --line-hair: rgba(165, 158, 255, 0.08);

  --text: #f3f4fb;
  --text-soft: #cfd2e8;
  --text-muted: #9da3c2;

  /* Primary accent family: electric indigo → sky */
  --accent-100: #e8e4ff;
  --accent-200: #cabfff;
  --accent: #9182f8;
  --accent-strong: #7360ec;
  --accent-deep: #5441cc;
  --accent-solid: #8e7ff7;
  --on-accent: #090620;
  --accent-glow: rgba(145, 130, 248, 0.34);

  --gold: #f6bd4b;
  --gold-200: #ffe194;
  --gold-soft: rgba(246, 189, 75, 0.15);
  --gold-line: rgba(246, 189, 75, 0.36);
  --grad-gold: linear-gradient(135deg, #ffe396 0%, #f6bd4b 50%, #e5961f 100%);
  --grad-hero: linear-gradient(130deg, #d0c6ff 0%, #9182f8 48%, #ffd978 100%);

  --grad-accent: linear-gradient(135deg, #cabfff 0%, #8e7ff7 48%, #4ea1f7 100%);
  --grad-surface: linear-gradient(
    150deg,
    rgba(56, 52, 112, 0.26) 0%,
    rgba(18, 20, 44, 0.4) 45%,
    rgba(32, 36, 76, 0.32) 100%
  );
  --grad-panel: linear-gradient(160deg, rgba(36, 38, 78, 0.62), rgba(14, 16, 36, 0.54));

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.38);
  --shadow-md: 0 18px 44px -22px rgba(0, 0, 0, 0.78);
  --shadow-lg: 0 42px 90px -40px rgba(0, 0, 0, 0.92);
  --shadow-glow: 0 24px 70px -34px rgba(145, 130, 248, 0.56);

  --orb-1: rgba(145, 130, 248, 0.25);
  --orb-2: rgba(78, 136, 247, 0.22);
  --orb-3: rgba(246, 189, 75, 0.15);
  --ambient-art-blend: screen;
  --ambient-art-filter: hue-rotate(14deg) saturate(1.08);
  --aurora-art-opacity: 0.28;
  --motivational-art-opacity: 0.38;
  --landmark-opacity: 0.4;
  --noise-opacity: 0.035;
}

/* THEME 4 · PARCHMENT — light warm, editorial cream + cobalt + gold --- */
:root[data-theme="parchment"] {
  color-scheme: light;

  --bg: #fcf8f1;
  --bg-deep: #f5eee2;

  --glass-1: rgba(255, 255, 255, 0.54);
  --glass-2: rgba(255, 255, 255, 0.7);
  --glass-3: rgba(255, 255, 255, 0.88);
  --glass-header: rgba(253, 250, 244, 0.82);

  --line: rgba(34, 42, 62, 0.13);
  --line-strong: rgba(34, 42, 62, 0.24);
  --line-hair: rgba(34, 42, 62, 0.08);

  --text: #141b29;
  --text-soft: #2e3748;
  --text-muted: #5b6372;

  /* Primary accent family: royal cobalt blue */
  --accent-100: #11437b;
  --accent-200: #15589f;
  --accent: #1864b8;
  --accent-strong: #125196;
  --accent-deep: #0d3d73;
  --accent-solid: #1864b8;
  --on-accent: #ffffff;
  --accent-glow: rgba(24, 100, 184, 0.24);

  --gold: #c2780a;
  --gold-200: #995c03;
  --gold-soft: rgba(232, 158, 36, 0.16);
  --gold-line: rgba(208, 134, 18, 0.36);
  --grad-gold: linear-gradient(135deg, #f7bf4f 0%, #e09119 55%, #c47308 100%);
  --grad-hero: linear-gradient(130deg, #1864b8 0%, #0d8578 52%, #c2780a 100%);

  --grad-accent: linear-gradient(135deg, #2982dc 0%, #1864b8 52%, #0e7a78 100%);
  --grad-surface: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.64) 0%,
    rgba(255, 250, 242, 0.44) 55%,
    rgba(255, 255, 255, 0.56) 100%
  );
  --grad-panel: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(252, 246, 236, 0.48));

  --shadow-sm: 0 2px 8px rgba(56, 44, 22, 0.09);
  --shadow-md: 0 18px 40px -24px rgba(56, 44, 22, 0.28);
  --shadow-lg: 0 40px 80px -44px rgba(56, 44, 22, 0.38);
  --shadow-glow: 0 26px 60px -34px rgba(24, 100, 184, 0.4);

  --orb-1: rgba(24, 100, 184, 0.22);
  --orb-2: rgba(218, 156, 48, 0.2);
  --orb-3: rgba(15, 148, 136, 0.14);
  --ambient-art-blend: multiply;
  --ambient-art-filter: hue-rotate(-5deg) saturate(0.84) brightness(1.08);
  --aurora-art-opacity: 0.14;
  --motivational-art-opacity: 0.23;
  --landmark-opacity: 0.47;
  --noise-opacity: 0.018;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--t-mid) linear, color var(--t-mid) linear;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-200);
}

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

h1,
h2,
h3,
h4 {
  font-weight: 640;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

/* ==========================================================================
   3. ACCESSIBILITY UTILITIES
   ========================================================================== */

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

.skip-link {
  position: fixed;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: var(--z-skip);
  padding: var(--sp-3) var(--sp-5);
  background: var(--accent-solid);
  color: var(--on-accent);
  font-weight: 640;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  translate: 0 -180%;
  transition: translate var(--t-mid) var(--ease-out);
}

.skip-link:focus-visible {
  translate: 0 0;
  color: var(--on-accent);
}

/* ==========================================================================
   4. AMBIENT BACKGROUND
   ========================================================================== */

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(48rem 40rem at 12% -6%, var(--orb-1), transparent 62%),
    radial-gradient(42rem 36rem at 92% 4%, var(--orb-2), transparent 60%),
    radial-gradient(46rem 42rem at 50% 108%, var(--orb-3), transparent 66%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.bg-aurora::before,
.bg-aurora::after {
  content: "";
  position: absolute;
  inset: -22%;
  pointer-events: none;
  will-change: transform;
}

.bg-aurora::before {
  background-image:
    url("../images/ambient-aurora-overlay.webp"),
    radial-gradient(42rem 34rem at 18% 24%, var(--orb-1), transparent 70%),
    radial-gradient(38rem 32rem at 78% 68%, var(--orb-2), transparent 72%);
  background-size: cover, auto, auto;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: var(--ambient-art-blend, screen);
  filter: var(--ambient-art-filter, none);
  opacity: var(--aurora-art-opacity, 0.32);
  transition: opacity 900ms var(--ease-out), filter 900ms var(--ease-out);
  animation: aurora-drift-a 38s ease-in-out infinite alternate;
}

.bg-aurora::after {
  background-image:
    url("../images/motivational-bridge-overlay.webp"),
    radial-gradient(34rem 28rem at 82% 18%, var(--orb-3), transparent 72%),
    radial-gradient(36rem 32rem at 36% 82%, var(--orb-1), transparent 72%);
  background-size: 100% auto, auto, auto;
  background-position: center, center, center;
  background-repeat: no-repeat;
  mix-blend-mode: var(--ambient-art-blend, screen);
  filter: var(--ambient-art-filter, none);
  opacity: var(--motivational-art-opacity, 0.38);
  transition: opacity 900ms var(--ease-out), filter 900ms var(--ease-out);
  animation: aurora-drift-b 52s ease-in-out infinite alternate;
}

/* A slow city-to-city journey sits above the ambient art and below every
   page surface. Each scene fades in, rests, then fades into the next. */
.bg-landmarks {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-landmarks__slide {
  position: absolute;
  inset: -2%;
  background-repeat: no-repeat;
  background-position: center 54%;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  animation: landmark-crossfade 32s ease-in-out infinite;
  will-change: opacity, transform;
}

.bg-landmarks__slide:nth-child(1) { animation-delay: 0s; }
.bg-landmarks__slide:nth-child(2) { animation-delay: -24s; }
.bg-landmarks__slide:nth-child(3) { animation-delay: -16s; }
.bg-landmarks__slide:nth-child(4) { animation-delay: -8s; }

.bg-landmarks__slide--new-york { background-position: center 58%; }
.bg-landmarks__slide--london { background-position: 78% 54%; }
.bg-landmarks__slide--golden-gate { background-position: 43% 55%; }
.bg-landmarks__slide--sydney { background-position: center 55%; }

@keyframes landmark-crossfade {
  0% { opacity: 0; transform: scale(1.02); }
  6.25% { opacity: var(--landmark-opacity, 0.4); transform: scale(1.035); }
  25% { opacity: var(--landmark-opacity, 0.4); transform: scale(1.055); }
  31.25%, 100% { opacity: 0; transform: scale(1.065); }
}

@keyframes landmark-reduced-cycle {
  0%, 24.999% { opacity: var(--landmark-opacity, 0.4); transform: none; }
  25%, 100% { opacity: 0; transform: none; }
}

@media (max-width: 640px) {
  .bg-aurora::after {
    background-size: 160% auto, auto, auto;
    background-position: 50% 64%, center, center;
  }

  .bg-landmarks__slide--london { background-position: 82% center; }
  .bg-landmarks__slide--golden-gate { background-position: 35% center; }
  .bg-landmarks__slide--sydney { background-position: 35% center; }
}

@keyframes aurora-drift-a {
  0% { transform: translate3d(-2.5%, -1%, 0) scale(1); }
  50% { transform: translate3d(1.5%, 1%, 0) scale(1.035); }
  100% { transform: translate3d(-0.5%, 2%, 0) scale(1.015); }
}

@keyframes aurora-drift-b {
  0% { transform: translate3d(2%, -1.5%, 0) scale(1.02); }
  50% { transform: translate3d(-1%, 1.5%, 0) scale(1); }
  100% { transform: translate3d(1.5%, -0.5%, 0) scale(1.04); }
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   5. BUTTONS, CHIPS, BADGES
   ========================================================================== */

.btn {
  --btn-bg: var(--glass-2);
  --btn-fg: var(--text);
  --btn-line: var(--line);
  display: inline-flex;
  gap: var(--sp-2);
  align-items: center;
  justify-content: center;
  padding: 0.78em 1.5em;
  min-height: 44px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step--1);
  font-weight: 640;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--btn-line);
  border-radius: var(--r-pill);
  backdrop-filter: blur(var(--blur-md)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(150%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-mid) var(--ease-out), background-color var(--t-mid) ease,
    color var(--t-mid) ease, border-color var(--t-mid) ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--accent-solid);
  --btn-fg: var(--on-accent);
  --btn-line: transparent;
  background-image: var(--grad-accent);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.btn--primary:hover {
  box-shadow: 0 30px 74px -32px var(--accent-glow), var(--shadow-md);
  color: var(--on-accent);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-line: var(--line-strong);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}

.btn--ghost:hover {
  --btn-bg: var(--glass-2);
}

.btn--lg {
  padding: 0.95em 1.9em;
  font-size: var(--step-0);
  min-height: 52px;
}

.btn--sm {
  padding: 0.5em 1.05em;
  min-height: 38px;
  font-size: 0.8rem;
}

.btn--block {
  width: 100%;
}

.btn__icon {
  flex: none;
  width: 1.05em;
  height: 1.05em;
}

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

.chip {
  display: inline-flex;
  gap: var(--sp-2);
  align-items: center;
  padding: 0.42em 0.9em;
  background: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--step--1);
  font-weight: 560;
  color: var(--text-soft);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}

.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.eyebrow {
  display: inline-flex;
  gap: var(--sp-2);
  align-items: center;
  margin-bottom: var(--sp-4);
  padding: 0.4em 0.95em 0.4em 0.55em;
  background: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-soft);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}

/* ==========================================================================
   6. HEADER / TABBED NAVIGATION
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 210;
  width: 100%;
  height: 2px;
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll-progress, 0));
  background: var(--grad-accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: transparent;
  transition: background-color var(--t-mid) ease, border-color var(--t-mid) ease,
    backdrop-filter var(--t-mid) ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: var(--glass-header);
  border-bottom-color: var(--line-hair);
  backdrop-filter: blur(var(--blur-lg)) saturate(170%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(170%);
}

.site-header.is-menu-open {
  z-index: calc(var(--z-drawer) + 1);
  background: var(--glass-header);
  border-bottom-color: var(--line-hair);
  backdrop-filter: blur(var(--blur-lg)) saturate(170%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(170%);
}

.site-header__inner {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--sp-3) var(--gutter);
}

/* --- Brand ------------------------------------------------------------- */
.brand {
  display: inline-flex;
  gap: var(--sp-3);
  align-items: center;
  color: var(--text);
  text-decoration: none;
  flex: none;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  position: relative;
  display: block;
  flex: none;
  width: 46px;
  height: 46px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 4px 10px rgba(1, 11, 24, 0.18));
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
}

.brand__name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.brand__tag {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Desktop nav ------------------------------------------------------- */
.nav {
  position: relative;
  display: flex;
  padding: 5px;
  background: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  backdrop-filter: blur(var(--blur-md)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(160%);
}

.nav__list {
  display: flex;
  gap: 2px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav__glider {
  position: absolute;
  top: 5px;
  left: 0;
  z-index: 0;
  height: calc(100% - 10px);
  width: var(--glider-w, 0px);
  background: var(--glass-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), var(--shadow-sm);
  transform: translateX(var(--glider-x, 0px));
  transition: transform var(--t-mid) var(--ease-spring), width var(--t-mid) var(--ease-out),
    opacity var(--t-fast) linear;
  pointer-events: none;
  opacity: 0;
}

.nav__glider.is-ready {
  opacity: 1;
}

.nav__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 0.4em;
  align-items: center;
  padding: 0.52em 0.9em;
  color: var(--text-soft);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: color var(--t-fast) ease;
}

.nav__trigger {
  list-style: none;
  cursor: pointer;
}

.nav__trigger::-webkit-details-marker {
  display: none;
}

.nav__chevron {
  width: 12px;
  height: 12px;
  flex: none;
  opacity: 0.7;
  transition: transform var(--t-fast) ease;
}

.nav-menu {
  position: relative;
}

.nav-menu[open] .nav__chevron,
.drawer__details[open] .drawer__chevron {
  transform: rotate(180deg);
}

.nav-menu__panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  z-index: 2;
  display: grid;
  min-width: 250px;
  gap: 4px;
  padding: 8px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(var(--blur-lg)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(150%);
}

.nav-menu__link {
  display: grid;
  gap: 3px;
  padding: 0.75rem 0.85rem;
  color: var(--text);
  font-size: var(--step--1);
  font-weight: 680;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.nav-menu__link:hover,
.nav-menu__link:focus-visible {
  background: var(--glass-2);
  border-color: var(--line);
}

.nav-menu__link[aria-current="page"] {
  background: var(--glass-3);
  border-color: var(--line-strong);
}

.nav-menu__note {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link[aria-current="page"],
.nav__trigger[data-current="page"] {
  color: var(--text);
  font-weight: 660;
}

.nav__link[aria-current="page"]::after,
.nav__trigger[data-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  translate: -50% 0;
}

.header__actions {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  flex: none;
}

.locale-switch {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  gap: 0.38rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.72rem;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.locale-switch:hover,
.locale-switch:focus-visible {
  color: var(--text);
  background: var(--glass-2);
  border-color: var(--line-strong);
}

.locale-switch__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--glass-1);
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease,
    transform var(--t-fast) var(--ease-out);
}

.icon-btn:hover {
  color: var(--text);
  background: var(--glass-2);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

/* --- Theme picker (4 palettes) --------------------------------------- */
.theme-picker {
  position: relative;
}

.theme-picker__btn[aria-expanded="true"] {
  color: var(--text);
  background: var(--glass-2);
}

.theme-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: var(--z-drawer);
  width: 232px;
  padding: var(--sp-2);
  background: var(--glass-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  transform-origin: top right;
  animation: theme-menu-in var(--t-mid) var(--ease-out) both;
}

.theme-menu[hidden] {
  display: none;
}

@keyframes theme-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}

.theme-menu__title {
  margin: var(--sp-2) var(--sp-3) var(--sp-1);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.theme-menu__item {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  font: inherit;
  font-size: var(--step--1);
  color: var(--text-soft);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}

.theme-menu__item:hover {
  color: var(--text);
  background: var(--glass-1);
}

.theme-menu__item[aria-checked="true"] {
  color: var(--text);
  background: var(--glass-2);
  border-color: var(--line);
}

.theme-menu__swatches {
  display: flex;
  flex: none;
}

.theme-menu__swatches i {
  display: block;
  width: 15px;
  height: 15px;
  background: var(--a);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.theme-menu__swatches i + i {
  margin-left: -6px;
  background: var(--b);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18), 0 0 0 1.5px var(--glass-3);
}

.theme-menu__label {
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.25;
}

.theme-menu__label small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.theme-menu__check {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: 0;
  color: var(--accent);
}

.theme-menu__item[aria-checked="true"] .theme-menu__check {
  opacity: 1;
}

/* --- Mobile menu toggle ------------------------------------------------ */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.menu-toggle__bar {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t-mid) var(--ease-out), opacity var(--t-fast) linear;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile drawer ----------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: calc(72px + var(--sp-5)) var(--gutter) var(--sp-7);
  background: color-mix(in srgb, var(--bg-deep) 82%, transparent);
  backdrop-filter: blur(var(--blur-lg)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(150%);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mid) ease, visibility var(--t-mid) linear;
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.drawer__details {
  display: grid;
  gap: 6px;
}

.drawer__group-trigger {
  width: 100%;
  list-style: none;
  cursor: pointer;
}

.drawer__group-trigger::-webkit-details-marker {
  display: none;
}

.drawer__chevron {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text-muted);
  transition: transform var(--t-fast) ease;
}

.drawer__sublist {
  display: grid;
  gap: 6px;
  padding: 0 0 2px 14px;
  margin: 0;
  list-style: none;
}

.drawer__link {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  justify-content: flex-start;
  padding: var(--sp-4) var(--sp-4);
  color: var(--text-soft);
  font-size: var(--step-2);
  font-weight: 620;
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
  background: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  opacity: 0;
  translate: 0 14px;
}

.drawer__sublink {
  padding: 0.75rem 0.9rem;
  font-size: var(--step-0);
  letter-spacing: 0;
  background: var(--glass-1);
  border-radius: var(--r-sm);
}

.drawer__label {
  flex: 1;
}

.drawer.is-open .drawer__link,
.drawer.is-open .drawer__group-trigger {
  opacity: 1;
  translate: 0 0;
  transition: opacity var(--t-slow) var(--ease-out), translate var(--t-slow) var(--ease-out),
    background-color var(--t-fast) ease;
}

.drawer__link:nth-child(1) { transition-delay: 40ms; }
.drawer__link:nth-child(2) { transition-delay: 80ms; }
.drawer__link:nth-child(3) { transition-delay: 120ms; }
.drawer__link:nth-child(4) { transition-delay: 160ms; }
.drawer__link:nth-child(5) { transition-delay: 200ms; }
.drawer__link:nth-child(6) { transition-delay: 240ms; }
.drawer__link:nth-child(7) { transition-delay: 280ms; }
.drawer__link:nth-child(8) { transition-delay: 320ms; }
.drawer__link:nth-child(9) { transition-delay: 360ms; }

.drawer__link[aria-current="page"] {
  color: var(--text);
  background: var(--glass-3);
  border-color: var(--line-strong);
}

/* Only the trailing hint is small caps; the label stays page-title sized. */
.drawer__link > span:not(.drawer__label) {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.drawer__label {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
}

/* ==========================================================================
   7. LAYOUT: SECTIONS, HEADINGS, GRIDS
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.62);
}

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.4rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__title {
  font-size: var(--step-4);
  font-weight: 660;
}

.section__lead {
  margin-top: var(--sp-4);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.65rem);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  border: 0;
}

/* ==========================================================================
   8. GLASS CARDS & FEATURES
   ========================================================================== */

.card {
  position: relative;
  padding: clamp(1.35rem, 0.9rem + 1.2vw, 2rem);
  background-image: var(--grad-surface);
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(var(--blur-md)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(150%);
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease-out), border-color var(--t-mid) ease,
    box-shadow var(--t-mid) var(--ease-out);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  opacity: 0.7;
}

.card--hover:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.card--accent {
  background-image: linear-gradient(
      150deg,
      var(--accent-glow),
      transparent 58%
    ),
    var(--grad-surface);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--sp-4);
  color: var(--accent);
  background: var(--glass-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__title {
  margin-bottom: var(--sp-2);
  font-size: var(--step-1);
  font-weight: 660;
}

.card__text {
  color: var(--text-muted);
  font-size: var(--step--1);
}

.card__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.feature-list {
  display: grid;
  gap: var(--sp-3);
  padding: 0;
  margin: var(--sp-5) 0 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.feature-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 0.63em;
  width: 6px;
  height: 3px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  rotate: -45deg;
}

/* --- Level rail (CEFR) ------------------------------------------------- */
.levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: var(--sp-5);
}

.level {
  padding: var(--sp-4);
  background: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
}

.level__code {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.level__label {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   9. TABS COMPONENT
   ========================================================================== */

.tabs {
  position: relative;
}

.tabs__list {
  display: flex;
  gap: 0.4rem;
  padding: 0.45rem;
  margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  background: color-mix(in srgb, var(--glass-1) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  border-radius: var(--r-pill);
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(var(--blur-md)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(150%);
}

.tabs__list::-webkit-scrollbar { display: none; }

.tabs__list--inline {
  margin-bottom: var(--sp-5);
  border-radius: var(--r-pill);
}

.tab {
  position: relative;
  flex: 1 1 0;
  display: inline-flex;
  min-height: 3.15rem;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  color: var(--text-soft);
  font-size: var(--step--1);
  font-weight: 640;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-fast) ease, background-color var(--t-mid) ease,
    border-color var(--t-mid) ease, box-shadow var(--t-mid) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}

.tab:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--glass-2) 72%, transparent);
  border-color: color-mix(in srgb, var(--line-strong) 60%, transparent);
  transform: translateY(-1px);
}

.tab[aria-selected="true"] {
  color: var(--text);
  background: linear-gradient(
    135deg,
    var(--glass-3),
    color-mix(in srgb, var(--accent) 8%, var(--glass-2))
  );
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line-strong));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 5px 16px color-mix(in srgb, var(--accent-glow) 48%, transparent);
}

.tab__index {
  display: inline-grid;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--glass-1));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 50%;
  transition: color var(--t-mid) ease, background-color var(--t-mid) ease,
    border-color var(--t-mid) ease;
}

.tab[aria-selected="true"] .tab__index {
  color: var(--on-accent);
  background: var(--accent-solid);
  border-color: var(--accent-solid);
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel.is-entering {
  animation: panel-in var(--t-slow) var(--ease-out) both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.panel-shell {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  padding: clamp(1.5rem, 1rem + 2vw, 2.6rem);
  border-radius: var(--r-xl);
}

/* Compact, translucent ESL overview keeps the landmark scene visible. */
.panel-shell--esl {
  background-color: transparent;
  padding: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
  background-image: linear-gradient(
    145deg,
    color-mix(in srgb, var(--glass-2) 68%, transparent),
    color-mix(in srgb, var(--glass-1) 48%, transparent)
  );
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.panel-shell--esl .panel-shell__title {
  max-width: 20ch;
}

.panel-shell--esl .feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.1rem;
  margin-top: 1rem;
}

.panel-shell--esl .feature-list li {
  padding-left: 1.4rem;
}

.panel-shell--esl .feature-list li::before {
  width: 12px;
  height: 12px;
}

.panel-shell--esl .feature-list li::after {
  left: 3.5px;
  top: 0.61em;
  width: 5px;
}

.panel-shell--esl .actions {
  margin-top: 1.1rem;
}

.panel-shell--esl .stack {
  align-content: start;
  gap: 0.55rem;
}

.panel-shell--esl .mini-stat {
  padding: 0.75rem 0.9rem;
  background: color-mix(in srgb, var(--glass-1) 58%, transparent);
}

.panel-shell--esl .levels {
  margin-top: 0.35rem;
}

.panel-shell--esl .level {
  padding: 0.65rem 0.45rem;
  background: color-mix(in srgb, var(--glass-1) 52%, transparent);
}

.panel-shell__title {
  font-size: var(--step-3);
  margin-bottom: var(--sp-3);
}

.panel-shell__text {
  color: var(--text-soft);
}

.stack {
  display: grid;
  gap: var(--sp-3);
}

.mini-stat {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4);
  background: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--step--1);
}

.mini-stat__label {
  color: var(--text-muted);
}

.mini-stat__value {
  font-weight: 660;
  color: var(--text);
}

/* ==========================================================================
   10. HERO, STATS, STEPS, TEACHER, TESTIMONIALS, PRICING
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.25rem + 5vw, 5.5rem)
    clamp(2.75rem, 1.5rem + 4vw, 4.75rem);
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}

.hero__title {
  font-size: var(--step-5);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
}

.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  background-image: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 54ch;
  margin-top: var(--sp-5);
  font-size: var(--step-1);
  line-height: 1.62;
  color: var(--text-muted);
}

.hero__cta {
  margin-top: var(--sp-6);
}

.hero__note {
  margin-top: var(--sp-5);
  font-size: var(--step--1);
  color: var(--text-muted);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

/* --- Hero glass card --------------------------------------------------- */
.hero__visual {
  position: relative;
  display: grid;
  gap: 0.85rem;
}

.hero__float-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero__float {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 1rem;
  background: var(--glass-3);
  border: 1px solid var(--line-strong);
  border-left: 3.5px solid var(--accent);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(var(--blur-md)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(160%);
  font-size: 0.82rem;
  font-weight: 660;
  color: var(--text);
}

.hero__float--gold {
  border-left-color: var(--gold, var(--accent));
}

.hero__float small {
  display: block;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent-200);
}

:root[data-scheme="light"] .hero__float small {
  color: var(--accent-strong);
}

.hero__float--gold small {
  color: var(--gold-200, var(--accent-200));
}

:root[data-scheme="light"] .hero__float--gold small {
  color: var(--gold, #b36b00);
}

/* --- Cosmic backdrop (hero only) ----------------------------------------
   The "somewhere else" quality comes from depth and light rather than from
   novelty graphics: a star field, a receding horizon grid, two slow orbits
   and a horizon glow. It is confined to .hero, sits behind the copy at
   z-index -1, is aria-hidden, and every animation stops under
   prefers-reduced-motion. Opacities are kept low so the lead and note text
   keep their contrast — verified, not guessed. */
.hero {
  isolation: isolate;
}

.hero__cosmos {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero__cosmos > * {
  position: absolute;
}

.cosmos__stars {
  inset: -8% -4% 0;
  opacity: 0.62;
  background-image:
    radial-gradient(1.5px 1.5px at 17% 22%, rgba(255, 255, 255, 0.9), transparent 100%),
    radial-gradient(1.2px 1.2px at 71% 15%, rgba(255, 255, 255, 0.7), transparent 100%),
    radial-gradient(1.7px 1.7px at 43% 61%, rgba(255, 255, 255, 0.6), transparent 100%),
    radial-gradient(1.2px 1.2px at 87% 47%, rgba(255, 255, 255, 0.75), transparent 100%),
    radial-gradient(1.1px 1.1px at 8% 71%, rgba(255, 255, 255, 0.6), transparent 100%),
    radial-gradient(1.6px 1.6px at 61% 83%, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(1px 1px at 33% 11%, rgba(255, 255, 255, 0.65), transparent 100%),
    radial-gradient(1.4px 1.4px at 93% 74%, rgba(255, 255, 255, 0.55), transparent 100%),
    radial-gradient(1.1px 1.1px at 27% 44%, rgba(255, 255, 255, 0.45), transparent 100%),
    radial-gradient(1.3px 1.3px at 54% 33%, rgba(255, 255, 255, 0.5), transparent 100%);
  animation: cosmos-breathe 9s ease-in-out infinite;
}

.cosmos__grid {
  left: -28%;
  right: -28%;
  bottom: -6%;
  height: 62%;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(90deg, var(--line-hair) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(0deg, var(--line-hair) 0 1px, transparent 1px 74px);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent 76%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent 76%);
  transform: perspective(620px) rotateX(64deg);
  transform-origin: bottom center;
}

.cosmos__orbit {
  top: 50%;
  left: 68%;
  aspect-ratio: 1;
  border: 1px dashed var(--line);
  border-radius: 50%;
  translate: -50% -50%;
  opacity: 0.5;
}

.cosmos__orbit::after {
  content: "";
  position: absolute;
  top: -3.5px;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--accent-glow);
}

.cosmos__orbit--1 {
  width: min(44rem, 86%);
  animation: cosmos-spin 96s linear infinite;
}

.cosmos__orbit--2 {
  width: min(66rem, 128%);
  opacity: 0.34;
  animation: cosmos-spin 150s linear infinite reverse;
}

.cosmos__orbit--2::after {
  width: 5px;
  height: 5px;
  top: -2.5px;
  opacity: 0.8;
}

.cosmos__glow {
  left: 50%;
  bottom: -46%;
  width: min(96rem, 150%);
  aspect-ratio: 2.4 / 1;
  opacity: 0.4;
  background: radial-gradient(50% 50% at 50% 50%, var(--accent-glow), transparent 70%);
  filter: blur(38px);
  translate: -50% 0;
}

.cosmos__streak {
  top: 14%;
  left: -30%;
  width: 26%;
  height: 1.5px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent-200), transparent);
  border-radius: var(--r-pill);
  rotate: 14deg;
  animation: cosmos-streak 17s ease-in infinite;
  animation-delay: 3.5s;
}

@keyframes cosmos-spin {
  to { rotate: 360deg; }
}

@keyframes cosmos-breathe {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.7; }
}

@keyframes cosmos-streak {
  0% { opacity: 0; transform: translateX(0); }
  6% { opacity: 0.75; }
  26% { opacity: 0; transform: translateX(560%); }
  100% { opacity: 0; transform: translateX(560%); }
}

/* The static fallback must be a clean page, not a stray line sitting in
   the corner — so the streak's resting state is invisible. */
@media (prefers-reduced-motion: reduce) {
  .bg-landmarks__slide {
    animation-name: landmark-reduced-cycle;
    animation-duration: 32s;
    animation-timing-function: linear;
    transform: none;
    will-change: opacity;
  }

  .cosmos__stars,
  .cosmos__orbit {
    animation: none;
  }

  .cosmos__streak {
    animation: none;
    opacity: 0;
  }
}

.lesson-card {
  padding: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.lesson-card__head {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.lesson-card__id {
  font-size: var(--step--1);
  font-weight: 660;
}

.lesson-card__id small {
  display: block;
  font-weight: 560;
  color: var(--text-muted);
}

.lesson-card__body {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.drill {
  padding: var(--sp-4);
  background: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.drill__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.drill__prompt {
  margin-top: var(--sp-2);
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--text);
}

.meter {
  height: 8px;
  margin-top: var(--sp-3);
  background: color-mix(in srgb, var(--line-strong) 45%, var(--glass-1));
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.meter__fill {
  display: block;
  height: 100%;
  width: var(--v, 60%);
  background-image: var(--grad-accent);
  border-radius: var(--r-pill);
  box-shadow: 0 0 12px var(--accent-glow);
}

.meter__fill--gold {
  background-image: var(--grad-gold, var(--grad-accent));
}

.bars {
  display: grid;
  gap: 0.85rem;
}

.bar-row {
  display: grid;
  gap: 6px;
  font-size: var(--step--1);
}

.bar-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-soft);
  font-weight: 560;
}

.bar-row__head b {
  color: var(--accent-200);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

:root[data-scheme="light"] .bar-row__head b {
  color: var(--accent-strong);
}

/* --- Stats ------------------------------------------------------------- */
.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  padding: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat {
  padding: clamp(1.3rem, 1rem + 1vw, 2rem);
  background-color: var(--glass-header);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  text-align: center;
}

.stat__value {
  display: block;
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.03em;
  background-image: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Steps ------------------------------------------------------------- */
.steps {
  display: grid;
  gap: clamp(1rem, 0.5rem + 1.6vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  min-height: 100%;
  padding: 2rem 1.1rem 1.25rem;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--glass-2) 68%, transparent),
    color-mix(in srgb, var(--glass-1) 58%, transparent)
  );
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  counter-increment: step;
  transition: transform var(--t-mid) var(--ease-out), border-color var(--t-mid) ease,
    box-shadow var(--t-mid) var(--ease-out);
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.step::before {
  content: "0" counter(step);
  position: absolute;
  top: 0.68rem;
  left: 1.1rem;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.9;
}

.step::after {
  content: "";
  position: absolute;
  top: 1.48rem;
  left: 3.8rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.step__title {
  margin-bottom: var(--sp-2);
  font-size: var(--step-1);
  font-weight: 650;
}

.step__text {
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* --- Teacher ----------------------------------------------------------- */
.teacher {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background-image: linear-gradient(
    135deg,
    color-mix(in srgb, var(--glass-3) 48%, transparent),
    color-mix(in srgb, var(--glass-1) 32%, transparent)
  );
  border-radius: var(--r-xl);
  backdrop-filter: blur(4px) saturate(122%);
  -webkit-backdrop-filter: blur(4px) saturate(122%);
}

.teacher > div {
  width: 100%;
  max-width: 78ch;
  margin-inline: auto;
}

.quote {
  position: relative;
  margin-block: var(--sp-5);
  padding-left: var(--sp-5);
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
  border-left: 2px solid var(--accent);
}

.creds {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: 0;
  margin: var(--sp-5) 0 0;
  list-style: none;
}

.cred {
  display: inline-flex;
  gap: var(--sp-2);
  align-items: center;
  padding: 0.45em 0.9em;
  background: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.76rem;
  font-weight: 620;
  color: var(--text-soft);
}

.cred svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex: none;
}

.timeline {
  display: grid;
  gap: var(--sp-4);
  padding: 0;
  margin: var(--sp-5) 0 0;
  list-style: none;
}

.timeline li {
  display: grid;
  gap: 2px;
  padding-left: var(--sp-5);
  border-left: 1px solid var(--line-strong);
  font-size: var(--step--1);
}

.timeline b {
  font-weight: 650;
}

.timeline span {
  color: var(--text-muted);
}

/* --- Testimonials ------------------------------------------------------ */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  height: 100%;
}

.testimonial__text {
  flex: 1;
  font-size: var(--step-0);
  color: var(--text-soft);
}

.testimonial__meta {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--on-accent);
  background-image: var(--grad-accent);
  border-radius: 50%;
}

.testimonial__name {
  font-size: var(--step--1);
  font-weight: 650;
  line-height: 1.3;
}

.testimonial__role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
}

.stars svg {
  width: 15px;
  height: 15px;
}

/* --- Pricing ----------------------------------------------------------- */
.price-grid {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 272px), 1fr));
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--r-xl);
}

.price-card--featured {
  background-image: linear-gradient(160deg, var(--accent-glow), transparent 55%),
    var(--grad-surface);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.price-card__head {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  justify-content: space-between;
}

.price-card__name {
  font-size: var(--step-1);
  font-weight: 660;
}

.ribbon {
  padding: 0.32em 0.75em;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--on-accent);
  background-image: var(--grad-accent);
  border-radius: var(--r-pill);
}

.price-card__amount {
  display: flex;
  gap: var(--sp-2);
  align-items: baseline;
  margin-top: var(--sp-5);
}

.price-card__amount b {
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.price-card__amount span {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.price-card__desc {
  margin-top: var(--sp-4);
  font-size: var(--step--1);
  color: var(--text-muted);
}

.price-card__cta {
  margin-top: auto;
  padding-top: var(--sp-6);
}

.price-card__note {
  margin-top: var(--sp-4);
  font-size: 0.76rem;
  text-align: center;
  color: var(--text-muted);
}

/* ==========================================================================
   11. FAQ, CTA BAND, FORMS
   ========================================================================== */

.faq {
  display: grid;
  gap: var(--sp-3);
}

.faq__item {
  border-radius: var(--r-md);
  overflow: hidden;
}

.faq__q {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: clamp(1rem, 0.8rem + 0.6vw, 1.4rem) clamp(1.1rem, 0.9rem + 0.6vw, 1.6rem);
  color: var(--text);
  font-size: var(--step-0);
  font-weight: 620;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.faq__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--glass-2);
  border: 1px solid var(--line-strong);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1.5px;
  background: var(--accent);
  translate: -50% -50%;
  transition: rotate var(--t-mid) var(--ease-out), opacity var(--t-fast) linear;
}

.faq__icon::after {
  rotate: 90deg;
}

.faq__q[aria-expanded="true"] .faq__icon::after {
  rotate: 0deg;
  opacity: 0;
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-mid) var(--ease-out);
}

.faq__a > div {
  overflow: hidden;
}

.faq__q[aria-expanded="true"] + .faq__a {
  grid-template-rows: 1fr;
}

.faq__a p {
  padding: 0 clamp(1.1rem, 0.9rem + 0.6vw, 1.6rem) clamp(1.1rem, 0.9rem + 0.6vw, 1.6rem);
  font-size: var(--step--1);
  color: var(--text-muted);
}

.cta-band {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  padding: clamp(1.75rem, 1.2rem + 3vw, 3.5rem);
  border-radius: var(--r-xl);
  background-image: linear-gradient(140deg, var(--accent-glow), transparent 58%),
    var(--grad-surface);
  box-shadow: var(--shadow-lg);
}

.form {
  display: grid;
  gap: var(--sp-4);
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 0.8rem;
  font-weight: 640;
  color: var(--text-soft);
}

.field__hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.field__control {
  width: 100%;
  padding: 0.82em 1em;
  color: var(--text);
  background: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}

.field__control::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.field__control:hover {
  border-color: var(--line-strong);
}

.field__control:focus {
  border-color: var(--accent);
  background: var(--glass-2);
}

select.field__control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}

textarea.field__control {
  min-height: 128px;
  resize: vertical;
}

.field.is-invalid .field__control {
  border-color: #ff8f7a;
}

.field__error {
  display: none;
  font-size: 0.74rem;
  font-weight: 600;
  color: #ff9d8b;
}

.field.is-invalid .field__error {
  display: block;
}

:root[data-scheme="light"] .field__error,
:root[data-scheme="light"] .field.is-invalid .field__control {
  color: #a4281a;
  border-color: #c0392b;
}

.form__note {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* The form's real outcome panel is .handoff, in section 16. */

/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.site-footer {
  margin-top: var(--section-y);
  background: var(--glass-header);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(var(--blur-lg)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(150%);
}

.footer__grid {
  display: grid;
  gap: clamp(1.75rem, 1rem + 2.5vw, 3.5rem);
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.footer__about p {
  max-width: 38ch;
  margin-top: var(--sp-4);
  font-size: var(--step--1);
  color: var(--text-muted);
}

.footer__title {
  margin-bottom: var(--sp-4);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__list {
  display: grid;
  gap: var(--sp-3);
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: var(--step--1);
}

.footer__list a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}

.footer__list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.socials {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line-hair);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer__legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ==========================================================================
   13. MOTION & REVEAL
   ========================================================================== */

/* Scoped to .js so the content is never hidden when JavaScript is unavailable:
   the inline head script swaps .no-js for .js before first paint. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .bg-landmarks__slide {
    animation-duration: 32s !important;
    animation-iteration-count: infinite !important;
    animation-timing-function: linear;
  }

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

  .step:hover {
    transform: none;
  }

  .bg-aurora::before,
  .bg-aurora::after {
    animation: none;
    transform: none;
    will-change: auto;
  }
}

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__inner,
  .split,
  .panel-shell,
  .teacher,
  .cta-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__float--b {
    left: 6%;
  }
}

@media (max-width: 1180px) {
  .nav__link {
    padding: 0.5em 0.72em;
    font-size: 0.82rem;
  }

  .brand__tag {
    display: none;
  }
}

@media (max-width: 1040px) {
  .header__actions .btn--primary {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav,
  .header__actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .footer__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  }
}

@media (max-width: 1100px) {
  .site-header {
    background: var(--glass-header);
    border-bottom-color: var(--line-hair);
    backdrop-filter: blur(var(--blur-lg)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(150%);
  }
}

/* Turkish labels run longer: the full nav needs ~1270px (and ~1440px with the
   tagline). Collapse to the drawer up to 1280px and keep the tagline for wide
   screens only; the matching JS breakpoint is in site.js. */
@media (max-width: 1280px) {
  html[lang="tr"] .nav {
    display: none;
  }

  html[lang="tr"] .menu-toggle {
    display: flex;
  }
}

html[lang="tr"] .brand__tag {
  display: none;
}

@media (min-width: 1440px) {
  html[lang="tr"] .brand__tag {
    display: block;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    gap: 0.5rem;
    padding: 0.55rem clamp(0.75rem, 3.5vw, 1.2rem);
  }

  .brand {
    min-width: 0;
    gap: 0.5rem;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .brand__name {
    font-size: 0.94rem;
    white-space: nowrap;
  }

  .header__actions {
    gap: 0.375rem;
  }

  .locale-switch {
    width: auto;
    min-width: 40px;
    padding-inline: 0.55rem;
  }

  .header__actions .icon-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .drawer {
    padding-top: calc(64px + var(--sp-4));
  }

  .drawer__link {
    padding: 0.8rem 0.9rem;
  }
}

@media (max-width: 560px) {
  .locale-switch {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding-inline: 0;
  }

  .locale-switch__label {
    display: none;
  }

  .drawer__link:not(.drawer__group-trigger) {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
  }

  .drawer__group-trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: var(--sp-3);
    row-gap: 0.22rem;
  }

  .drawer__group-trigger .drawer__label {
    grid-column: 1;
    grid-row: 1;
  }

  .drawer__group-trigger > span:not(.drawer__label) {
    grid-column: 1;
    grid-row: 2;
  }

  .drawer__group-trigger .drawer__chevron {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

@media (max-width: 360px) {
  .site-header__inner {
    gap: 0.35rem;
    padding-inline: 0.65rem;
  }

  .brand {
    gap: 0.4rem;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__name {
    font-size: 0.84rem;
  }

  .header__actions {
    gap: 0.25rem;
  }

  .locale-switch,
  .header__actions .icon-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .locale-switch {
    padding-inline: 0;
  }

  .header__actions .icon-btn svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 660px) {
  .panel-shell--esl .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Stack the programme tabs so no option hides behind a horizontal scroll. */
  .tabs__list {
    flex-direction: column;
    overflow-x: visible;
    border-radius: var(--r-lg);
  }

  .tab {
    justify-content: flex-start;
    padding: var(--sp-4) var(--sp-4);
    border-radius: var(--r-md);
    white-space: normal;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .locale-switch {
    width: 42px;
    padding-inline: 0;
  }

  .locale-switch__label {
    display: none;
  }

  .levels {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__float {
    font-size: 0.72rem;
  }

  .hero__float--a {
    top: -12px;
    right: -8px;
  }

  .hero__float--b {
    left: -8px;
  }

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

  .step::after {
    display: none;
  }

  .footer__bottom {
    justify-content: flex-start;
  }
}

@media print {
  .site-header,
  .drawer,
  .subnav,
  .bg-aurora,
  .bg-noise,
  .scroll-progress {
    display: none !important;
  }

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

/* ==========================================================================
   15. SHARED PROGRAMME-PAGE COMPONENTS (ESL / IELTS / SAT)
   Used by the three programme pages; added here rather than forked so the
   whole design system stays in one place.
   ========================================================================== */

/* --- Page hero (smaller than the home hero, single column) -------------- */
.page-hero {
  padding-block: clamp(2.5rem, 1rem + 6vw, 5rem) clamp(1.75rem, 1rem + 3vw, 3rem);
}

.page-hero__inner {
  max-width: 74ch;
}

.page-hero h1 {
  font-size: var(--step-4);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -0.028em;
}

.page-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  background-image: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero__lead {
  max-width: 62ch;
  margin-top: var(--sp-5);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-muted);
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

/* --- Sticky on-this-page tab strip ------------------------------------- */

/* Set by JS once the sticky offsets are measured, so an in-page anchor jump
   clears both the header and the subnav instead of hiding under them. */
.has-subnav {
  scroll-padding-top: calc(var(--header-h, 76px) + var(--subnav-h, 0px) + 20px);
}

/* A reading rail, not a second navigation. One quiet line of section links
   that scrolls sideways instead of wrapping into a block of pills, with the
   current section marked by a baseline rule. */
.subnav {
  position: sticky;
  top: var(--header-h, 76px);
  z-index: 80;
  background: var(--glass-header);
  border-bottom: 1px solid var(--line-hair);
  backdrop-filter: blur(var(--blur-lg)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(160%);
}

.subnav > .container {
  display: flex;
  gap: var(--sp-3);
  align-items: stretch;
  min-height: 54px;
}

.subnav__label {
  display: inline-flex;
  flex: none;
  gap: 0.55rem;
  align-items: center;
  align-self: stretch;
  padding-right: clamp(0.75rem, 2vw, 1.25rem);
  margin-right: 0.15rem;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  border-right: 1px solid var(--line-hair);
}

.subnav__label::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}

.subnav__list {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: clamp(0.9rem, 1.9vw, 1.9rem);
  align-items: stretch;
  min-width: 0;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  list-style: none;
}

.subnav__list::-webkit-scrollbar {
  display: none;
}

/* Edge fades appear only when the rail actually has more to show. */
.subnav.is-scrollable.can-scroll-right .subnav__list {
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
}

.subnav.is-scrollable.can-scroll-left .subnav__list {
  mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
}

.subnav.is-scrollable.can-scroll-left:not(.can-scroll-right) .subnav__list {
  mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 100%);
}

/* The link fills its list item so the baseline marker lands on the bar's
   own edge instead of floating halfway up it. */
.subnav__list > li {
  display: flex;
  flex: none;
}

.subnav__link {
  position: relative;
  display: inline-flex;
  flex: 1 1 auto;
  gap: 0.45em;
  align-items: center;
  padding: 0.2rem 0.05rem;
  color: var(--text-muted);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: -0.006em;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: color var(--t-fast) ease;
}

/* The current section is drawn on the bar's own baseline, so the active
   state reads as an underline rather than a floating button. */
.subnav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background-image: var(--grad-accent);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left center;
  transition: opacity var(--t-mid) ease, transform var(--t-mid) var(--ease-out);
}

/* Section icons follow the link's own colour, so the active and hover states
   tint them without a separate rule. */
.subnav__icon {
  width: 14px;
  height: 14px;
  flex: none;
  opacity: 0.6;
  transition: opacity var(--t-fast) ease;
}

.subnav__link:hover {
  color: var(--text);
  text-decoration: none;
}

.subnav__link:hover .subnav__icon {
  opacity: 1;
}

.subnav__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.subnav__link[aria-current] {
  color: var(--text);
}

.subnav__link[aria-current]::after {
  opacity: 1;
  transform: scaleX(1);
}

.subnav__link[aria-current] .subnav__icon {
  color: var(--accent);
  opacity: 1;
}

/* --- Long-form prose --------------------------------------------------- */
.prose {
  max-width: 70ch;
}

.prose > * + * {
  margin-top: var(--sp-4);
}

.prose p,
.prose li {
  color: var(--text-soft);
}

.prose h2 {
  margin-top: var(--sp-7);
  font-size: var(--step-3);
}

.prose h3 {
  margin-top: var(--sp-6);
  font-size: var(--step-2);
}

.prose h4 {
  margin-top: var(--sp-5);
  font-size: var(--step-1);
}

.prose ul,
.prose ol {
  display: grid;
  gap: var(--sp-3);
  padding-left: 1.35rem;
}

.prose li::marker {
  color: var(--accent);
  font-weight: 700;
}

.prose strong {
  color: var(--text);
  font-weight: 660;
}

.prose > :first-child {
  margin-top: 0;
}

/* --- Callout ----------------------------------------------------------- */
.callout {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: auto minmax(0, 1fr);
  padding: var(--sp-5);
  background-image: linear-gradient(120deg, var(--accent-glow), transparent 60%),
    var(--grad-surface);
  background-color: transparent;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
}

.callout__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--accent);
  background: var(--glass-2);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
}

.callout__icon svg {
  width: 17px;
  height: 17px;
}

.callout__title {
  font-size: var(--step-0);
  font-weight: 660;
}

.callout p {
  font-size: var(--step--1);
  color: var(--text-soft);
}

.callout p + p {
  margin-top: var(--sp-3);
}

/* --- Data table (scrolls inside its own frame, never the page) ---------- */
.table-wrap {
  overflow-x: auto;
  background-color: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
}

.table-wrap:focus-visible {
  outline-offset: -3px;
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.data-table--wide {
  min-width: 780px;
}

/* On phones the table scrolls sideways; size the caption to the visible
   width and pin it left so it wraps instead of running off the screen. */
.table-wrap {
  container-type: inline-size;
}

.data-table caption {
  box-sizing: border-box;
  width: 100cqw;
  position: sticky;
  left: 0;
  padding: var(--sp-4) var(--sp-5) 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-hair);
}

.data-table thead th {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody th {
  color: var(--text);
  font-weight: 640;
}

.data-table tbody td {
  color: var(--text-soft);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background-color: var(--glass-1);
}

.data-table__mark {
  color: var(--accent);
  font-weight: 660;
  white-space: nowrap;
}

/* --- Plan / lesson run-through (week, minute or step badge) ------------ */
.plan {
  display: grid;
  gap: var(--sp-3);
  padding: 0;
  margin: 0;
  list-style: none;
}

.plan__item {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 104px minmax(0, 1fr);
  padding: var(--sp-4) var(--sp-5);
  background-color: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.plan__badge {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan__title {
  margin-bottom: 4px;
  font-size: var(--step-0);
  font-weight: 650;
}

.plan__text {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.plan--tight .plan__item {
  grid-template-columns: 84px minmax(0, 1fr);
  padding: var(--sp-3) var(--sp-4);
}

/* --- Scale rail (IELTS bands, SAT score bands) ------------------------- */
.scale {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background-color: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.scale__step {
  flex: 1 1 92px;
  padding: var(--sp-3) var(--sp-2);
  text-align: center;
  background-color: var(--glass-1);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
}

.scale__step--target {
  background-image: var(--grad-accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-glow);
}

.scale__value {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.scale__label {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.86;
}

/* --- Two-column checklist and flipped split --------------------------- */
.feature-list--two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

@media (min-width: 1081px) {
  .split--flip > :first-child {
    order: 2;
  }

  .split--flip > :last-child {
    order: 1;
  }
}

/* --- Programme-page responsive tweaks --------------------------------- */
@media (max-width: 900px) {
  /* Sticky offsets get cramped under a short viewport; let it scroll away. */
  .subnav {
    position: static;
  }

  .subnav > .container {
    min-height: 46px;
  }

  /* "Bu sayfada" is a label, not navigation; on a phone the links carry it. */
  .subnav__label {
    display: none;
  }

  .subnav__list {
    gap: 1.15rem;
  }

  .subnav__link {
    padding-block: 0.2rem;
  }
}

@media (max-width: 560px) {
  .plan__item,
  .plan--tight .plan__item {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-2);
  }

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

  .data-table {
    min-width: 560px;
  }

  .data-table th,
  .data-table td {
    padding: 0.7rem 0.95rem;
  }
}

/* ==========================================================================
   16. SHARED CLOSING-PAGE COMPONENTS (tools / teacher / pricing / contact)
   Same rules as section 15: appended here, no tokens redefined and no
   page-level overrides, so the whole system stays in one place.
   ========================================================================== */

/* --- Form outcome handoff ---------------------------------------------
   Used after a successful submit. The form composes a real message; this
   panel hands it to the visitor's own email client, with a copyable draft
   as the fallback. It never claims anything has been sent.            */
.handoff {
  display: none;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background-image: linear-gradient(140deg, var(--accent-glow), transparent 62%),
    var(--grad-surface);
  background-color: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
}

.handoff.is-visible {
  display: grid;
}

.handoff__title {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  font-size: var(--step-0);
  font-weight: 660;
}

.handoff__title svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.handoff__text {
  font-size: var(--step--1);
  color: var(--text-soft);
}

.handoff__draft {
  width: 100%;
  min-height: 170px;
  padding: var(--sp-4);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.65;
  background-color: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  resize: vertical;
}

.handoff__draft:focus {
  border-color: var(--accent);
}

/* --- Two fields side by side on wider screens -------------------------- */
.form__row {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

/* --- "Not included" list, same geometry as .feature-list ------------- */
.feature-list--no li::before {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.feature-list--no li::after {
  top: 0.62em;
  left: 3.5px;
  width: 7px;
  height: 1.5px;
  background: var(--text-muted);
  border: 0;
  rotate: 0deg;
}

/* --- Before / after writing sample ------------------------------------ */
.sample {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background-color: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.sample__row {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
  background-color: var(--glass-header);
}

.sample__tag {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sample__text {
  font-size: var(--step--1);
  color: var(--text-soft);
}

.sample__row--fix .sample__tag {
  color: var(--accent);
}

.sample__row--fix .sample__text {
  color: var(--text);
}

.sample__note {
  padding: var(--sp-3) var(--sp-5) var(--sp-4);
  color: var(--text-muted);
  font-size: 0.76rem;
  background-color: var(--glass-header);
  border-top: 1px dashed var(--line-strong);
}

@media (min-width: 661px) {
  .sample__row {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: baseline;
  }
}

/* --- Emphasised table column (the recommended package) ---------------- */
.data-table__featured {
  background-color: var(--glass-2);
  color: var(--text);
  font-weight: 640;
}

.data-table thead th.data-table__featured {
  color: var(--accent);
}

/* --- Contact channel --------------------------------------------------- */
.channel {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.channel__label {
  display: block;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.channel__value {
  font-size: var(--step-0);
  font-weight: 640;
  color: var(--text);
  overflow-wrap: anywhere;
}

.channel__value a {
  color: var(--text);
  text-decoration-color: var(--line-strong);
}

.channel__value a:hover {
  color: var(--accent);
}

/* --- Note under a price, quieter than body text ----------------------- */
.price-note {
  margin-top: var(--sp-4);
  color: var(--text-muted);
  font-size: 0.76rem;
}

@media print {
  .handoff__draft {
    border: 1px solid #999;
  }
}

/* ==========================================================================

   17. MEMBERS' FORUM (community)

   Structure only. Thread rows, the composer and the tiers are rendered as a
   designed empty/gated state because this site has no backend: nothing here
   invents members, posts, reply counts or activity.

   ========================================================================== */

/* --- Status banner ------------------------------------------------------ */
.forum-status {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  background: var(--glass-2);
  border: 1px solid var(--accent);
  border-left-width: 4px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-glow);
}

.forum-status__icon {
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--accent);
  background: var(--glass-3);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.forum-status__icon svg {
  width: 18px;
  height: 18px;
}

.forum-status__title {
  margin: 0 0 0.15rem;
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--text);
}

.forum-status p {
  margin: 0;
  font-size: var(--step--1);
  color: var(--text-soft);
}

/* --- Category grid ------------------------------------------------------ */
.forum-cats {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.forum-cat {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.forum-cat__head {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}

.forum-cat__icon {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--grad-accent);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}

.forum-cat__icon svg {
  width: 20px;
  height: 20px;
  color: var(--on-accent);
}

.forum-cat__title {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.forum-cat__text {
  margin: var(--sp-3) 0 0;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.forum-cat__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: 0;
  margin: var(--sp-4) 0 0;
  list-style: none;
}

.forum-cat__meta li {
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

/* --- Thread list + empty state ----------------------------------------- */
.thread-frame {
  overflow: hidden;
  background: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.thread-head {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--glass-2);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr 120px 90px;
}

.thread-row {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line-hair);
  grid-template-columns: 1fr 120px 90px;
}

.thread-row:last-child {
  border-bottom: 0;
}

.thread-row__title {
  margin: 0;
  font-size: var(--step-0);
  font-weight: 650;
  color: var(--text);
}

.thread-row__meta {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.thread-row__cell {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.empty-state {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  flex-direction: column;
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--accent);
  background: var(--glass-2);
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.empty-state__icon svg {
  width: 24px;
  height: 24px;
}

.empty-state__title {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--text);
}

.empty-state__text {
  max-width: 52ch;
  margin: 0;
  font-size: var(--step--1);
  color: var(--text-soft);
}

/* --- Composer (gated) --------------------------------------------------- */
.composer {
  padding: var(--sp-5);
  background: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.composer__row {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.composer .field__control:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.composer__gate {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--step--1);
  color: var(--text-soft);
  background: var(--glass-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
}

.composer__gate svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

/* --- Subscription tiers ------------------------------------------------- */
.tier-grid {
  display: grid;
  gap: var(--sp-5);
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tier--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.tier__flag {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  padding: 0.2rem 0.75rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--grad-accent);
  border-radius: var(--r-pill);
  translate: -50% 0;
}

.tier__name {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--text);
}

.tier__price {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
  margin: var(--sp-3) 0 0;
  font-size: var(--step-3);
  font-weight: 750;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.tier__price small {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-muted);
}

.tier__note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tier__list {
  display: grid;
  gap: var(--sp-3);
  padding: 0;
  margin: var(--sp-5) 0 0;
  list-style: none;
}

.tier__list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.tier__list svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

.tier__list li.is-excluded {
  color: var(--text-muted);
}

.tier__list li.is-excluded svg {
  color: var(--text-muted);
  opacity: 0.7;
}

.tier .btn {
  margin-top: auto;
}

.tier__cta {
  margin-top: var(--sp-5);
}

/* --- House rules -------------------------------------------------------- */
.rules {
  display: grid;
  gap: var(--sp-4);
  padding: 0;
  margin: 0;
  counter-reset: rule;
  list-style: none;
}

.rules li {
  display: grid;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4);
  background: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  grid-template-columns: 40px 1fr;
}

.rules li::before {
  counter-increment: rule;
  content: counter(rule, decimal-leading-zero);
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.rules h3 {
  margin: 0 0 0.25rem;
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--text);
}

.rules p {
  margin: 0;
  font-size: var(--step--1);
  color: var(--text-soft);
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .thread-head {
    display: none;
  }

  .thread-row {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  .thread-row__cell::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: var(--text-muted);
  }

  .forum-status {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .rules li {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================

   18. TAILORING LOOP (landing)

   Six stages that feed one another for a single learner. The component only
   states what each stage produces and what it feeds next — it does not
   claim outcomes or times that have not been confirmed.

   ========================================================================== */

.tailor-flow {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: stage;
}

.tailor-step {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sp-5);
  background: var(--glass-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--t-mid) ease, transform var(--t-mid) var(--ease-out);
}

.tailor-step:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.tailor-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--sp-5) * -1 - 9px);
  width: 18px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.7;
}

.tailor-step:nth-child(3n)::after,
.tailor-step:last-child::after {
  display: none;
}

.tailor-step__head {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  margin-bottom: var(--sp-4);
}

.tailor-step__num {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--glass-2);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  counter-increment: stage;
}

.tailor-step__num::before {
  content: counter(stage, decimal-leading-zero);
}

.tailor-step__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  color: var(--accent);
  background: var(--grad-accent);
  border-radius: var(--r-sm);
}

.tailor-step__icon svg {
  width: 17px;
  height: 17px;
  color: var(--on-accent);
}

.tailor-step__title {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.tailor-step__makes,
.tailor-step__feeds {
  margin: 0;
  font-size: var(--step--1);
  line-height: var(--leading-body);
}

.tailor-step__makes {
  color: var(--text-soft);
}

.tailor-step__feeds {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  color: var(--text-muted);
  border-top: 1px solid var(--line-hair);
}

.tailor-step__feeds b {
  flex: none;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.tailor-note {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
}

.tailor-note__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  color: var(--accent);
  background: var(--glass-3);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.tailor-note__icon svg {
  width: 18px;
  height: 18px;
}

.tailor-note__title {
  margin: 0 0 0.2rem;
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--text);
}

.tailor-note p {
  margin: 0;
  font-size: var(--step--1);
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .tailor-step::after {
    display: none;
  }

  .tailor-step {
    border-left: 3px solid var(--accent);
  }
}

/* ==========================================================================
   19. BRAND COLOR ENHANCEMENTS & FREE PLACEMENT TESTS SHOWCASE
   ========================================================================== */

/* Luminous gradient italics across heroes, section headings, and CTA bands */
.hero h1 em,
.page-hero h1 em,
.section-head h2 em,
.cta-band h2 em {
  background: var(--grad-hero, var(--grad-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Warm gold accents on featured ribbons, badges, and eyebrows */
.ribbon,
.price-card--featured .ribbon {
  background: var(--grad-gold, var(--grad-accent));
  color: #1c1202;
  font-weight: 800;
  box-shadow: 0 8px 24px -8px rgba(246, 189, 75, 0.55);
}

.eyebrow {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 14%, var(--glass-2)),
    color-mix(in srgb, var(--gold, var(--accent)) 10%, var(--glass-1))
  );
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  color: var(--text);
}

.chip--gold {
  background: var(--gold-soft, rgba(246, 189, 75, 0.15));
  border-color: var(--gold-line, rgba(246, 189, 75, 0.38));
  color: var(--gold-200, var(--text));
}

:root[data-scheme="light"] .chip--gold {
  color: var(--gold, #b36b00);
}

.chip--gold .chip__dot {
  background: var(--gold, #f6bd4b);
  box-shadow: 0 0 0 4px rgba(246, 189, 75, 0.25);
}

.chip--ielts {
  background: color-mix(in srgb, #dc2626 10%, var(--glass-1));
  border-color: color-mix(in srgb, #dc2626 34%, var(--line-strong));
  color: #b42318;
}

:root[data-scheme="dark"] .chip--ielts {
  color: #fecaca;
}

.chip--ielts .chip__dot {
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18);
}

:root[data-scheme="dark"] .chip--ielts .chip__dot {
  background: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.2);
}

/* Free Placement Tests Showcase (Landing & Programme Pages) */
.placement-showcase {
  position: relative;
}

.placement-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.placement-promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  background: var(--grad-surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-out),
    box-shadow var(--t-mid) var(--ease-out);
}

.placement-promo-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--promo-grad, var(--grad-accent));
}

.placement-promo-card--esl {
  --promo-accent: #2dd4bf;
  --promo-grad: linear-gradient(90deg, #34d399 0%, #14b8a6 55%, #0ea5e9 100%);
}

.placement-promo-card--ielts {
  --promo-accent: #f6bd4b;
  --promo-grad: linear-gradient(90deg, #38bdf8 0%, #3b82f6 45%, #f6bd4b 100%);
  border-color: color-mix(in srgb, var(--gold, #f6bd4b) 42%, var(--line-strong));
}

.placement-promo-card--sat {
  --promo-accent: #818cf8;
  --promo-grad: linear-gradient(90deg, #60a5fa 0%, #818cf8 52%, #f59e0b 100%);
}

.placement-promo-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.placement-promo-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.placement-promo-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.72rem;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 16%, var(--glass-2));
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  color: var(--accent-200);
}

:root[data-scheme="light"] .placement-promo-card__badge {
  color: var(--accent-strong);
}

.placement-promo-card--ielts .placement-promo-card__badge {
  background: var(--gold-soft, rgba(246, 189, 75, 0.16));
  border-color: var(--gold-line, rgba(246, 189, 75, 0.4));
  color: var(--gold-200, #ffe194);
}

:root[data-scheme="light"] .placement-promo-card--ielts .placement-promo-card__badge {
  color: var(--gold, #b36b00);
}

.placement-promo-card__free {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.placement-promo-card__title {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.placement-promo-card__sub {
  margin: 0 0 var(--sp-4);
  font-size: var(--step--1);
  color: var(--text-soft);
  line-height: var(--leading-body);
}

.placement-promo-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-5);
  display: grid;
  gap: 0.5rem;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.placement-promo-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.placement-promo-card__list li::before {
  content: "✓";
  flex: none;
  font-weight: 800;
  color: var(--accent);
}

.placement-promo-card--ielts .placement-promo-card__list li::before {
  color: var(--gold, var(--accent));
}

.placement-promo-card__cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

@media (max-width: 960px) {
  .placement-showcase__grid {
    grid-template-columns: 1fr;
  }
}

/* Hero Bulleted Value List */
.hero__bullets {
  list-style: none;
  padding: clamp(0.7rem, 1.3vw, 0.95rem) clamp(0.8rem, 1.7vw, 1.15rem);
  margin: var(--sp-4) 0 var(--sp-5);
  display: grid;
  gap: 0.65rem;
  max-width: 62ch;
  background: color-mix(in srgb, var(--glass-2) 52%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px) saturate(135%);
  -webkit-backdrop-filter: blur(8px) saturate(135%);
  color: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
}

.hero__bullets li {
  position: relative;
  padding-left: 1.45rem;
}

.hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.58em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.hero__bullets strong {
  color: var(--text);
  font-weight: 700;
}

/* Keep the lead and booking action in the first viewport on compact screens. */
@media (max-width: 1080px) {
  .hero {
    padding-block: clamp(2rem, 1rem + 3vw, 3.25rem)
      clamp(2.5rem, 1.25rem + 3vw, 4rem);
  }

  .hero__bullets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1rem, 3vw, 2rem);
    row-gap: 0.8rem;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .hero__bullets {
    grid-template-columns: 1fr;
  }
}

/* Let the example progress bars tell their story as the preview arrives. */
.js .hero__visual .meter__fill {
  width: 0;
  transition: width 1s var(--ease-out);
}

.js .hero__visual.is-visible .meter__fill {
  width: var(--v, 60%);
}

.js .hero__visual.is-visible .bars .bar-row:nth-child(2) .meter__fill {
  transition-delay: 120ms;
}

.js .hero__visual.is-visible .bars .bar-row:nth-child(3) .meter__fill {
  transition-delay: 240ms;
}

@media (max-width: 520px) {
  .hero__float-row {
    grid-template-columns: 1fr;
  }
}

/* A clearer reading rhythm across the landing and programme pages. */
.section__head {
  max-width: 66ch;
  margin-bottom: clamp(1.75rem, 1rem + 2.4vw, 2.85rem);
}

.section__title {
  max-width: 24ch;
  line-height: 1.12;
  text-wrap: balance;
}

.section__head--center .section__title {
  margin-inline: auto;
}

.section__lead {
  max-width: 64ch;
  margin-top: clamp(0.85rem, 1vw, 1rem);
  color: var(--text-soft);
  line-height: 1.65;
}

.hero__inner {
  align-items: start;
  column-gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.hero__title {
  max-width: 22ch;
  font-size: clamp(2.55rem, 1.5rem + 3vw, 3.8rem);
  text-wrap: balance;
}

.hero__bullets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 1.5rem);
  row-gap: 0.25rem;
  max-width: none;
}

.hero__copy {
  display: flex;
  flex-direction: column;
}

.hero__copy > .eyebrow {
  order: 0;
  align-self: flex-start;
}

.hero__copy > .hero__title {
  order: 1;
}

.hero__copy > .hero__lead {
  order: 2;
  margin-top: var(--sp-4);
}

.hero__copy > .hero__cta {
  order: 3;
  align-self: flex-start;
  margin-top: var(--sp-5);
}

.hero__copy > .cta-note {
  order: 4;
}

.hero__bullets li {
  padding: 0.8rem 0 0.25rem 1.15rem;
  border-top: 1px solid var(--line);
}

.hero__bullets li::before {
  top: 1.12rem;
  left: 0.1rem;
  width: 0.42rem;
  height: 0.42rem;
}

.hero__bullets strong {
  display: block;
  margin-bottom: 0.18rem;
  line-height: 1.35;
}

.hero__note {
  max-width: 58ch;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  line-height: 1.6;
  background: color-mix(in srgb, var(--glass-2) 58%, transparent);
  border: 1px solid color-mix(in srgb, var(--line-strong) 54%, transparent);
  border-radius: var(--r-md);
  box-shadow: 0 7px 18px rgba(4, 16, 34, 0.08);
  backdrop-filter: blur(4px) saturate(115%);
  -webkit-backdrop-filter: blur(4px) saturate(115%);
}

.page-hero {
  padding-block: clamp(2.25rem, 1rem + 4.5vw, 4.25rem)
    clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.page-hero h1 {
  max-width: 22ch;
  text-wrap: balance;
}

.page-hero__lead {
  color: var(--text-soft);
}

@media (max-width: 640px) {
  .hero__bullets {
    grid-template-columns: 1fr;
    row-gap: 0.1rem;
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(2.2rem, 8vw, 2.8rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
  }

  .section__title {
    max-width: 20ch;
  }

  .hero__visual .hero__float-row {
    display: none;
  }

  .lesson-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .lesson-card__head > .chip {
    white-space: nowrap;
  }

  .hero__chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .hero__chips .chip {
    padding: 0.38rem 0.55rem;
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .hero__cta .btn--lg {
    gap: 0.6rem;
    padding-inline: 0.75rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__copy {
    display: contents;
  }

  .hero__visual {
    order: 7;
    margin-top: 0.25rem;
  }
}

/* Programme selector: sharper editorial type and calmer control geometry. */
#programmes .section__head {
  max-width: 43rem;
}

#programmes .section__head .section__title {
  max-width: 40ch;
  font-size: clamp(2rem, 3vw, 3.1rem);
  letter-spacing: -0.035em;
}

#programmes .section__head .section__lead {
  max-width: 58ch;
  margin-inline: auto;
  color: var(--text-soft);
  line-height: 1.7;
  text-wrap: pretty;
}

#programmes .tabs__list {
  border-radius: var(--r-lg);
}

#programmes .tab {
  min-height: 3.35rem;
  border-radius: var(--r-md);
}

#programmes .tab[aria-selected="true"] {
  font-weight: 700;
}

#programmes .panel-shell--esl {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}

#programmes .panel-shell--esl .panel-shell__title {
  max-width: 18ch;
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

#programmes .panel-shell--esl .panel-shell__text {
  max-width: 64ch;
  line-height: 1.7;
}

#programmes .panel-shell--esl .feature-list li {
  line-height: 1.55;
}

#programmes .panel-shell--esl .mini-stat,
#programmes .panel-shell--esl .level {
  border-radius: var(--r-sm);
}

#programmes .panel-shell--esl .mini-stat__value,
#programmes .panel-shell--esl .level__code {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  #programmes .section__head {
    margin-bottom: 1.5rem;
  }

  #programmes .section__head .section__lead {
    font-size: var(--step-0);
    line-height: 1.55;
  }
}

/* Homepage FAQ: a compact editorial split that keeps the landmark backdrop in view. */
.faq-section {
  position: relative;
  isolation: isolate;
}

.faq-section__layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.8fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

.faq-section__head {
  max-width: none;
  margin: 0;
  text-align: left;
}

.faq-section__head .section__title {
  max-width: 12ch;
  margin-inline: 0;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  text-wrap: balance;
}

.faq-section__head::after {
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 1.25rem;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: var(--r-pill);
}

.faq-section__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.8rem clamp(0.75rem, 1.5vw, 1.25rem);
}

.faq-section__grid .faq__item {
  align-self: start;
  padding: 0;
  overflow: visible;
  background: color-mix(in srgb, var(--glass-3) 42%, transparent);
  border: 1px solid color-mix(in srgb, var(--line-strong) 82%, transparent);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px) saturate(128%);
  -webkit-backdrop-filter: blur(8px) saturate(128%);
  transition: background-color var(--t-mid) ease, border-color var(--t-mid) ease,
    box-shadow var(--t-mid) var(--ease-out);
}

.faq-section__grid .faq__q {
  min-height: 4.15rem;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  font-size: var(--step--1);
  line-height: 1.4;
  text-wrap: balance;
}

.faq-section__grid .faq__q:hover {
  background: color-mix(in srgb, var(--glass-2) 38%, transparent);
  border-radius: inherit;
}

.faq-section__grid .faq__icon {
  width: 26px;
  height: 26px;
  background: color-mix(in srgb, var(--glass-1) 70%, transparent);
}

.faq-section__grid .faq__q[aria-expanded="true"] .faq__icon {
  background: color-mix(in srgb, var(--accent) 18%, var(--glass-2));
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line-strong));
}

.faq-section__grid .faq__a p {
  padding: 0 1rem 1rem;
  color: var(--text-soft);
  font-size: var(--step--1);
  line-height: 1.6;
}

.faq-section__grid .faq__item:focus-within {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line-strong));
  box-shadow: var(--shadow-md), 0 0 0 3px color-mix(in srgb, var(--accent-glow) 48%, transparent);
}

@media (max-width: 900px) {
  .faq-section__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2rem);
  }

  .faq-section__head .section__title {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .faq-section__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .faq-section__grid .faq__q {
    min-height: 3.8rem;
    padding-inline: 0.85rem;
  }

  .faq-section__grid .faq__a p {
    padding-inline: 0.85rem;
  }
}

/* ==========================================================================
   TRUST & READABILITY PASS
   Photo/ambient art stays behind the hero only; every inner section reads on
   a solid page colour. Cards inside them drop the translucent blur.
   ========================================================================== */
main > .section,
main > .section--tight {
  position: relative;
  background-color: var(--bg);
}

main > .section .card,
main > .section--tight .card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: var(--bg-deep);
}

main section[id] {
  scroll-margin-top: 7rem;
}

.cta-note,
.pay-note,
.preview-tag {
  font-size: var(--step--1);
  color: var(--text-soft);
}

.cta-note {
  margin-top: var(--sp-3);
}

.pay-note {
  max-width: 70ch;
  margin: var(--sp-5) auto 0;
  text-align: center;
}

.preview-tag {
  text-align: center;
  font-style: italic;
}

/* Phones: promise + CTA first; the sample dashboard follows without the extra chips. */
@media (max-width: 900px) {
  .hero__float-row {
    display: none;
  }
}

/* ==========================================================================
   20. HIERARCHY REDESIGN
   One dominant idea per section. One primary action per decision point.
   The city remains atmosphere at the edge of the hero, never the message.
   ========================================================================== */

/* --- Hero: promise first, proof second, atmosphere last ----------------- */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--bg) 96%, transparent) 38%,
      color-mix(in srgb, var(--bg) 64%, transparent) 64%,
      color-mix(in srgb, var(--bg) 12%, transparent) 100%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 94%, transparent) 0%,
      transparent 24%,
      transparent 72%,
      var(--bg) 100%);
}

.hero__cosmos {
  opacity: 0.45;
}

.hero__float-row {
  display: none;
}

.hero__title {
  max-width: 24ch;
  font-size: clamp(2.7rem, 1.9rem + 2.6vw, 3.9rem);
  letter-spacing: -0.045em;
}

.hero__copy > .hero__lead {
  max-width: 46ch;
  color: var(--text-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}

.hero__cta {
  gap: 0.75rem 1.25rem;
}

.hero__cta .btn--primary {
  padding: 0.98em 1.8em;
  font-size: 1rem;
}

/* The second route stays available but stops shouting over the trial. */
.hero__alt .btn--ghost {
  padding-inline: 0.2rem;
  color: var(--text);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero__alt .btn--ghost:hover {
  color: var(--accent-200);
  background: transparent;
}

.hero .preview-tag {
  margin-bottom: 0.5rem;
}

.hero .lesson-card {
  max-width: 470px;
  margin-inline: auto;
  box-shadow: var(--shadow-md);
}

/* --- Section rhythm: editorial heads, quieter kickers, deeper chapters -- */
main > .section,
main > .section--tight {
  padding-block: clamp(4rem, 3rem + 3.5vw, 7rem);
}

main > .section--tight {
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  background-color: var(--bg-deep);
  border-block: 1px solid var(--line-hair);
}

main #placement-tests,
main #pricing {
  background-color: var(--bg-deep);
  border-block: 1px solid var(--line-hair);
}

main > .section > .container > .section__head,
main > .section--tight > .container > .section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.25rem, 3vw, 3.5rem);
  align-items: end;
  max-width: none;
  margin-bottom: clamp(2.25rem, 2rem + 2vw, 3.5rem);
  text-align: left;
}

main > .section > .container > .section__head > .eyebrow,
main > .section--tight > .container > .section__head > .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -0.4rem;
  padding: 0;
  color: var(--accent);
  background: none;
  border: 0;
  border-radius: 0;
}

main > .section > .container > .section__head > .eyebrow::before,
main > .section--tight > .container > .section__head > .eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  margin-right: 0.65rem;
  vertical-align: middle;
  background: currentColor;
}

main > .section > .container > .section__head > .eyebrow .chip__dot,
main > .section--tight > .container > .section__head > .eyebrow .chip__dot {
  display: none;
}

main > .section > .container > .section__head > .section__title,
main > .section--tight > .container > .section__head > .section__title {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.35rem);
}

main > .section > .container > .section__head > .section__lead,
main > .section--tight > .container > .section__head > .section__lead {
  max-width: 48ch;
  margin: 0 0 0.35rem;
}

main #programmes .section__head,
main #pricing .section__head {
  max-width: none;
  text-align: left;
}

main #programmes .section__head .section__lead,
main #pricing .section__head .section__lead {
  margin-inline: 0;
}

main #programmes .section__head .section__title,
main #pricing .section__head .section__title {
  max-width: 22ch;
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.35rem);
}

.stats {
  background: var(--line-hair);
  border-radius: 0;
}

.stat {
  background-color: transparent;
}

.stat__value {
  font-size: var(--step-4);
}

/* --- Card hierarchy: information reads as a list, not a wall of boxes ---- */
main > .section .grid--3 > .card--hover,
main > .section .grid--4 > .card--hover {
  padding: 1.5rem 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

main > .section .grid--3 > .card--hover::before,
main > .section .grid--4 > .card--hover::before {
  display: none;
}

main > .section .grid--3 > .card--hover:hover,
main > .section .grid--4 > .card--hover:hover {
  border-color: var(--line-strong);
  box-shadow: none;
  transform: none;
}

main > .section .card__icon {
  width: auto;
  height: auto;
  margin-bottom: 0.75rem;
  color: var(--accent);
  background: none;
  border: 0;
  box-shadow: none;
}

main > .section .card__icon svg {
  width: 24px;
  height: 24px;
}

/* --- Pricing: one recommended plan, two quieter comparisons ------------ */
main > .section .price-card:not(.price-card--featured) {
  background-image: none;
  background-color: transparent;
  border-color: var(--line-hair);
  box-shadow: none;
}

.price-card--featured {
  position: relative;
  z-index: 2;
  transform: translateY(-10px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65), var(--shadow-glow);
}

.price-card__amount b {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.price-card:not(.price-card--featured) .price-card__cta .btn {
  color: var(--text);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* --- Trust and final conversion: fewer competing voices ---------------- */
.teacher__title {
  font-size: var(--step-4);
}

main > .section .cta-band {
  background-color: var(--bg-deep);
  background-image: radial-gradient(120% 100% at 0% 0%, var(--accent-glow), transparent 58%);
  border: 1px solid var(--line-strong);
}

.cta-band__title {
  font-size: var(--step-4);
}

@media (max-width: 1080px) {
  main > .section > .container > .section__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  main > .section > .container > .section__head > .section__lead {
    max-width: 62ch;
  }

  .hero__title {
    max-width: 100%;
  }

  .price-card--featured {
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero::before {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 96%, transparent) 0%,
      color-mix(in srgb, var(--bg) 78%, transparent) 48%,
      var(--bg) 100%);
  }

  .hero__title {
    font-size: clamp(2.35rem, 9vw, 3rem);
  }

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

  .hero__cta .btn--primary {
    width: 100%;
  }

  main > .section > .container > .section__head > .section__title,
main #programmes .section__head .section__title,
main #pricing .section__head .section__title {
    font-size: var(--step-3);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bg-paused .bg-aurora::before,
.bg-paused .bg-aurora::after,
.bg-paused .bg-landmarks__slide {
  animation-play-state: paused;
}

/* Stacked hero rhythm: with the copy flattened into the grid, the grid gap used to
   space every item equally. Zero it and let margins group promise, action, preview. */
@media (max-width: 1080px) {
  .hero__inner {
    row-gap: 0;
  }

  .hero__copy > .hero__title {
    margin-top: var(--sp-4);
  }

  .hero__copy > .hero__lead {
    margin-top: var(--sp-4);
  }

  .hero__copy > .hero__cta {
    margin-top: var(--sp-6);
  }

  .hero__copy > .cta-note {
    margin-top: var(--sp-3);
  }

  .hero__visual {
    margin-top: var(--sp-7);
  }
}

/* Trust row: four plain facts under the hero action. */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-5);
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-row li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero__copy > .hero__alt {
  order: 5;
  align-self: flex-start;
  margin-top: var(--sp-3);
}

.hero__copy > .trust-row {
  order: 6;
}

/* Results: only rendered once the owner removes `hidden` after getting permission. */
.proof-card {
  display: grid;
  gap: var(--sp-3);
  max-width: 44rem;
  margin-inline: auto;
}

.proof-card__score {
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.proof-card__weeks,
.proof-card__who {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.proof-card__quote {
  font-size: var(--step-1);
  line-height: 1.55;
}

/* Sticky booking bar: phones only, appears after the hero, under the consent banner (z 420). */
.sticky-cta {
  position: fixed;
  inset-inline: var(--sp-4);
  bottom: max(var(--sp-4), env(safe-area-inset-bottom));
  z-index: 400;
  display: block;
  min-height: 2.75rem;
  padding: 0.8rem 1rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font-weight: 600;
  color: var(--on-accent);
  background-image: var(--grad-accent);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transform: translateY(150%);
  visibility: hidden;
}

.sticky-cta.is-on {
  transform: none;
  visibility: visible;
}

@media (prefers-reduced-motion: no-preference) {
  .sticky-cta {
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 320ms;
  }

  .sticky-cta.is-on {
    transition-delay: 0s;
  }
}

@media (min-width: 901px) {
  .sticky-cta {
    display: none;
  }
}

/* Section rhythm: hairline between blocks; the two decision sections sit a shade deeper. */
main > .section + .section {
  border-top: 1px solid var(--line);
}

main > #pricing,
main > #book {
  background-color: var(--bg-deep);
}

/* Phones: the trust row reads as a tidy 2x2 grid, not a ragged wrap. */
@media (max-width: 640px) {
  .trust-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3) var(--sp-4);
  }

  .hero__copy > .hero__alt {
    margin-top: var(--sp-4);
  }
}

/* Wide screens: tighter top padding and a snug secondary link keep the trust row in the first viewport. */
@media (min-width: 1081px) {
  .hero__copy {
    padding-block: clamp(2rem, 1rem + 2vw, 3rem) clamp(2rem, 1rem + 2vw, 3rem);
  }

  .hero__alt .btn--lg {
    min-height: 0;
    padding-block: 0.35rem;
  }
}

/* Home pricing: breathing room above the CTA; on phones tighten the table so every column fits. */
main > #pricing .table-wrap + .actions {
  margin-top: var(--sp-6);
}

@media (max-width: 640px) {
  main > #pricing .data-table {
    min-width: 0;
  }

  main > #pricing .data-table th,
  main > #pricing .data-table td {
    padding-inline: 0.25rem;
    font-size: 0.78rem;
  }

  main > #pricing .data-table thead th {
    letter-spacing: 0;
    font-size: 0.62rem;
    white-space: normal;
  }

  main > #pricing .data-table th[scope="row"] {
    min-width: 6.2rem;
  }
}

/* Price cards: single price on top, package prices directly under it. */
.price-card__packs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-4);
  margin-top: var(--sp-3);
  font-size: var(--step--1);
  color: var(--text-soft);
}

.price-card__packs b {
  margin-left: 0.25em;
  color: var(--text);
  font-weight: 700;
}

.price-card__amount--alt {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.price-card__amount--alt b {
  font-size: var(--step-3);
}

/* Four lesson formats: a balanced 2x2 on larger screens instead of three plus an orphan. */
@media (min-width: 720px) {
  #formats .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
