/* ==========================================================================
   Twain English Experience — Modern Landing Page
   Design system: purple brand scale + fluid type + mobile-first
   ========================================================================== */

:root {
  /* Brand color scale */
  --purple-950: #1e0530;
  --purple-900: #300947;
  --purple-800: #3f1663;
  --purple-700: #512c89;
  --purple-600: #6b3fb0;
  --violet-500: #be6efb;
  --violet-400: #cf92fc;
  --violet-300: #e0b6fd;
  --orchid-400: #dc8cdb;

  /* Semantic tokens */
  --brand: var(--purple-700);
  --accent: var(--violet-500);
  --grad-brand: linear-gradient(135deg, var(--purple-700) 0%, var(--violet-500) 100%);
  --grad-soft: linear-gradient(180deg, #faf7ff 0%, #ffffff 100%);

  --ink: #241333;
  --ink-soft: #5c4d6b;
  --ink-mute: #8b7d99;
  --on-brand: #ffffff;

  --bg: #ffffff;
  --bg-soft: #faf7ff;
  --bg-tint: #f4edfe;
  --line: #ece2fb;

  --shadow-sm: 0 1px 2px rgba(48, 9, 71, 0.06), 0 2px 8px rgba(48, 9, 71, 0.06);
  --shadow-md: 0 4px 12px rgba(48, 9, 71, 0.08), 0 12px 32px rgba(48, 9, 71, 0.1);
  --shadow-lg: 0 8px 24px rgba(48, 9, 71, 0.12), 0 24px 64px rgba(48, 9, 71, 0.14);
  --shadow-brand: 0 8px 24px rgba(81, 44, 137, 0.35);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --text-hero: clamp(2.1rem, 1.5rem + 3vw, 3.75rem);

  --container: 1180px;
  --header-h: 76px;

  /* Typography: Oxygen (principal) / Roboto (secundária) */
  --font-display: "Oxygen", "Segoe UI", system-ui, sans-serif;
  --font-body: "Roboto", "Segoe UI", system-ui, sans-serif;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
ul { padding: 0; margin: 0; list-style: none; }

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

::selection { background: var(--violet-300); color: var(--purple-900); }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

section { position: relative; }

.section-pad { padding-block: clamp(4rem, 8vw, 7rem); }

/* ---------- Reusable heading block ---------- */

.section-head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-600);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-head h2 { font-size: var(--text-2xl); }
.section-head p { color: var(--ink-soft); font-size: var(--text-lg); margin-bottom: 0; }

/* UI elements use the primary font (Oxygen) */
.nav-links a,
.eyebrow,
.tab-btn,
.course-tag,
.hero-badge,
.hero-chip,
.stat-card strong {
  font-family: var(--font-display);
}

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background-color 0.25s ease;
  will-change: transform;
}

.btn-primary {
  background: var(--grad-brand);
  color: var(--on-brand);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 34px rgba(81, 44, 137, 0.45); }
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-ghost {
  background: transparent;
  color: var(--purple-700);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--violet-500); transform: translateY(-3px); }

.btn-light {
  background: #fff;
  color: var(--purple-700);
  box-shadow: var(--shadow-md);
}
.btn-light:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lg); }

.btn .wa-ico { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.site-header.is-scrolled {
  --header-h: 64px;
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(48, 9, 71, 0.07);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* Header logo image — fluid width, never overflows the nav */
.logo .logo-img {
  width: clamp(120px, 16vw, 180px);
  height: auto;
}

/* Text-based logo lockup (footer white version) */
.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.logo .logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  letter-spacing: 0.04em;
  color: var(--purple-700);
}
.logo .logo-word em {
  font-style: normal;
  color: var(--violet-500);
}
.logo .logo-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.52rem, 0.8vw, 0.62rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--violet-500);
  margin-top: 4px;
}
.logo.logo-light .logo-word { color: #fff; }
.logo.logo-light .logo-sub { color: var(--violet-300); }

.nav-links { display: flex; align-items: center; gap: clamp(0.25rem, 1.5vw, 1rem); }

.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: var(--purple-700); background: var(--bg-tint); }
.nav-links a.active { color: var(--purple-700); background: var(--bg-tint); }

.nav-links a.nav-cta,
.nav-links a.nav-cta:hover {
  color: var(--on-brand);
  background: var(--grad-brand);
}
.nav-cta { padding: 0.6rem 1.25rem; font-size: var(--text-sm); }

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--purple-700);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

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

.hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(190, 110, 251, 0.16), transparent 60%),
    radial-gradient(700px 420px at -10% 40%, rgba(220, 140, 219, 0.14), transparent 60%),
    var(--grad-soft);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-700);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.hero h1 { font-size: var(--text-hero); margin-bottom: 1rem; }
.hero-sub { font-size: var(--text-lg); color: var(--ink-soft); max-width: 34rem; margin-bottom: 1.75rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.5rem; }

.hero-proof {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.hero-proof .stars { color: #f5a623; letter-spacing: 2px; font-size: 1rem; }

.hero-figure { position: relative; }
.hero-figure > img {
  width: min(100%, 520px);
  margin-inline: auto;
  filter: drop-shadow(0 24px 48px rgba(81, 44, 137, 0.22));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.6rem 0.9rem;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--purple-800);
}
.hero-chip .emoji { font-size: 1.25rem; }
.hero-chip.chip-1 { top: 12%; left: -2%; animation: float 7s ease-in-out infinite 0.5s; }
.hero-chip.chip-2 { bottom: 14%; right: -2%; animation: float 8s ease-in-out infinite 1s; }

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card strong {
  display: block;
  font-size: var(--text-xl);
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-card span { font-size: var(--text-sm); color: var(--ink-soft); }

/* ---------- Benefits ---------- */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.benefit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}
.benefit-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--violet-300); }
.benefit-card:hover::after { transform: scaleX(1); }

.benefit-card .icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--bg-tint);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: transform 0.35s var(--ease-spring);
}
.benefit-card:hover .icon { transform: scale(1.1) rotate(-4deg); }
.benefit-card .icon img { width: 30px; }

.benefit-card h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: 0.35rem; }
.benefit-card p { font-size: var(--text-sm); color: var(--ink-soft); margin: 0; }

/* ---------- How it works ---------- */

.how { background: var(--bg-soft); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.75rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-brand);
}

.step-card h3 { font-size: var(--text-lg); }
.step-card p { font-size: var(--text-sm); color: var(--ink-soft); margin: 0; }

/* ---------- Method ---------- */

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.method-quote {
  background: var(--grad-brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.method-quote::before {
  content: "“";
  position: absolute;
  top: -1.5rem;
  right: 1rem;
  font-size: 12rem;
  font-weight: 700;
  opacity: 0.14;
  line-height: 1;
}
.method-quote blockquote { margin: 0; font-size: var(--text-xl); font-weight: 700; line-height: 1.3; }
.method-quote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; opacity: 0.85; font-size: var(--text-sm); }

.method-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.method-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: var(--text-base);
  color: var(--ink-soft);
}
.method-list li strong { color: var(--ink); }
.method-check {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--purple-700);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Courses (tabs) ---------- */

.courses { background: var(--bg-soft); }

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tab-btn {
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.tab-btn:hover { border-color: var(--violet-400); color: var(--purple-700); }
.tab-btn[aria-selected="true"] {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp 0.5s var(--ease-out); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.course-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.course-card .course-img img {
  border-radius: var(--radius-md);
  margin-inline: auto;
  box-shadow: var(--shadow-md);
}

.course-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-700);
  background: var(--bg-tint);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.course-card h3 { font-size: var(--text-xl); }
.course-card p { color: var(--ink-soft); }

.course-feats { display: grid; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.course-feats li { display: flex; gap: 0.6rem; align-items: baseline; font-size: var(--text-sm); color: var(--ink-soft); }
.course-feats li::before { content: "✓"; color: var(--violet-500); font-weight: 700; }

/* ---------- Testimonials ---------- */

.testi-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.5rem) / 3);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.5rem;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }

.testi-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.testi-card .stars { color: #f5a623; letter-spacing: 2px; }
.testi-card blockquote { margin: 0; font-size: var(--text-base); color: var(--ink); flex: 1; }

.testi-who { display: flex; align-items: center; gap: 0.85rem; }
.testi-avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
}
.testi-who strong { display: block; font-size: var(--text-sm); }
.testi-who span { font-size: var(--text-xs); color: var(--ink-mute); }

.testi-controls { display: flex; justify-content: center; gap: 0.75rem; }
.testi-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--purple-700);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}
.testi-btn:hover { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin-inline: auto; display: grid; gap: 0.85rem; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] { border-color: var(--violet-400); box-shadow: var(--shadow-sm); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--purple-700); }

.faq-item summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--purple-700);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.3s var(--ease-out), background 0.3s ease, color 0.3s ease;
}
.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  background: var(--grad-brand);
  color: #fff;
}

.faq-item .faq-body { padding: 0 1.4rem 1.25rem; color: var(--ink-soft); font-size: var(--text-sm); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */

.cta-final .cta-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-900) 0%, var(--purple-700) 55%, var(--violet-500) 130%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-panel::before,
.cta-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.35;
  pointer-events: none;
}
.cta-panel::before { width: 320px; height: 320px; background: var(--violet-500); top: -160px; left: -120px; }
.cta-panel::after { width: 260px; height: 260px; background: var(--orchid-400); bottom: -140px; right: -90px; }

.cta-panel h2 { font-size: var(--text-2xl); position: relative; z-index: 1; }
.cta-panel p { font-size: var(--text-lg); opacity: 0.9; max-width: 34rem; margin-inline: auto; position: relative; z-index: 1; }
.cta-panel .btn { position: relative; z-index: 1; margin-top: 0.75rem; }

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

.site-footer {
  background: var(--purple-950);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  margin-top: clamp(4rem, 8vw, 7rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .logo { margin-bottom: 1.25rem; }
.footer-brand p { font-size: var(--text-sm); max-width: 30rem; }

.site-footer h4 { color: #fff; font-size: var(--text-base); margin-bottom: 1rem; }
.footer-links { display: grid; gap: 0.6rem; }
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-links a:hover { color: var(--violet-300); padding-left: 4px; }

.social-row { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-row a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
}
.social-row a:hover { background: var(--grad-brand); transform: translateY(-3px); box-shadow: var(--shadow-brand); }
.social-row svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Motion preferences ---------- */

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

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

@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-track { grid-auto-columns: calc((100% - 1.25rem) / 2); }
}

@media (max-width: 860px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease, visibility 0.3s;
  }
  .nav-links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a { padding: 0.85rem 1rem; font-size: var(--text-base); }
  .nav-links .nav-cta { margin-top: 0.5rem; text-align: center; justify-content: center; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-proof { justify-content: center; }
  .hero-figure { order: -1; }
  .hero-figure > img { width: min(78%, 380px); }

  /* Smaller chips pinned to the corners so they never cover the photo */
  .hero-chip {
    font-size: 0.66rem;
    padding: 0.4rem 0.6rem;
    gap: 0.4rem;
    border-radius: var(--radius-sm);
  }
  .hero-chip .emoji { font-size: 0.9rem; }
  .hero-chip.chip-1 { top: -2%; left: 0; }
  .hero-chip.chip-2 { bottom: -2%; right: 0; }

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

  .course-card { grid-template-columns: 1fr; }
  .course-card .course-img { max-width: 340px; margin-inline: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; gap: 0.75rem; }
  .stat-card { display: flex; align-items: baseline; gap: 0.75rem; padding: 1rem 1.25rem; }
  .stat-card strong { font-size: var(--text-lg); }

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

  .testi-track { grid-auto-columns: 88%; }

  .hero-ctas .btn { width: 100%; }
  .cta-panel .btn { width: 100%; }

  .tabs-nav { gap: 0.4rem; }
  .tab-btn { padding: 0.6rem 1.1rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
}
