/* ============================================================
   Spoken English Pro — spokenenglishpro.com
   Design system: warm paper base, navy ink, ruby crimson accent
   Self-hosted fonts: zero 3rd-party render blocking; font-display: swap */

/* Plus Jakarta Sans (Variable 300..800) - Latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-v12-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Plus Jakarta Sans (Variable 300..800) - Latin Ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-v12-latin-ext-variable.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Libre Baskerville Regular 400 - Latin */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/libre-baskerville-v24-latin-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Libre Baskerville Italic 400 - Latin */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/libre-baskerville-v24-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Libre Baskerville Bold 700 - Latin */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/libre-baskerville-v24-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Surfaces */
  --paper:      #FFFDF7;
  --sand:       #F4F0E6;
  --sand-deep:  #EDE7D9;
  --navy:       #0F1424;
  --navy-soft:  #1A2135;

  /* Ink */
  --ink:        #14192B;
  --ink-soft:   #414962;
  --muted:      #6B7185;
  --on-dark:    #F7F5EF;
  --on-dark-dim: rgba(247,245,239,.62);

  /* Accents */
  --crimson:     #E11D48;
  --crimson-dk:  #BE123C;
  --crimson-tint:#FDECEF;
  --gold:        #F5C842;
  --green:       #1F9D55;
  --whatsapp:    #25D366;

  /* Lines & shadow */
  --line:      #E7E2D6;
  --line-dark: rgba(247,245,239,.14);
  --shadow-sm: 0 2px 10px rgba(20,25,43,.05);
  --shadow-md: 0 10px 30px rgba(20,25,43,.08);
  --shadow-lg: 0 24px 60px rgba(20,25,43,.14);

  /* Type */
  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans:  'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Geometry */
  --container: 1180px;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --section:   92px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: var(--section) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--tight { padding: 64px 0; }

/* Defer layout and rendering computations for below-the-fold content */
.section:not(:first-of-type),
.faq,
.cta-band,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Type ---------- */
.overline {
  font-size: 11px; font-weight: 700; letter-spacing: 2.6px;
  text-transform: uppercase; color: var(--crimson);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.overline::before { content: ''; width: 26px; height: 2px; background: var(--crimson); border-radius: 2px; }
.section--dark .overline { color: var(--gold); }
.section--dark .overline::before { background: var(--gold); }
.overline--center { justify-content: center; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.16; letter-spacing: -.01em; text-rendering: optimizeLegibility; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(27px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 23px); line-height: 1.3; }
h4 { font-size: 17px; line-height: 1.35; }
.em-gold  { color: var(--gold); font-style: italic; font-weight: 400; }
.em-crimson { color: var(--crimson); font-style: italic; font-weight: 400; }

.lead { font-size: 17px; color: var(--ink-soft); line-height: 1.8; max-width: 62ch; }
.section--dark .lead { color: var(--on-dark-dim); }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .lead { margin-left: auto; margin-right: auto; }
.sec-head h2 + .lead { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: 10px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: .1px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap; backface-visibility: hidden; will-change: transform;
}
.btn i { font-size: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--crimson); color: #fff; box-shadow: 0 8px 22px rgba(225,29,72,.28); }
.btn--primary:hover { background: var(--crimson-dk); box-shadow: 0 14px 32px rgba(225,29,72,.34); }
.btn--dark { background: var(--navy); color: var(--on-dark); }
.btn--dark:hover { background: var(--navy-soft); }
.btn--ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-dark { border-color: rgba(247,245,239,.28); color: var(--on-dark); background: rgba(255,255,255,.04); }
.btn--on-dark:hover { background: rgba(255,255,255,.1); border-color: rgba(247,245,239,.5); }
.btn--wa { background: var(--whatsapp); color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,.26); }
.btn--wa:hover { background: #1eb85a; }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,253,247,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
/* gap: 0 so the nav's margin-left:auto pushes it hard right, sitting tight
   against the CTA buttons instead of floating in the middle of the header. */
.header-inner { display: flex; align-items: center; gap: 0; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand-name { font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: -.2px; line-height: 1.1; }
.brand-name span { display: block; font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--crimson); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-soft); transition: color .16s, background .16s; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--sand); }
.nav a.is-active { color: var(--crimson); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: 8px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; color: var(--ink); font-size: 22px;
  align-items: center; justify-content: center; margin-left: auto;
}

/* ---------- Announcement strip ---------- */
.topbar { background: var(--navy); color: var(--on-dark-dim); font-size: 12.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.topbar strong { color: var(--gold); font-weight: 600; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; transition: color .16s; }
.topbar-links a:hover { color: var(--on-dark); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; width: 620px; height: 620px; right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(225,29,72,.30), transparent 62%); pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding: 84px 28px 92px; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 24px; }
.em-underline { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.hero .lead { font-size: 17.5px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 100px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line-dark);
  font-size: 12.5px; font-weight: 500; color: rgba(247,245,239,.88);
}
.chip i { color: var(--gold); font-size: 15px; }

/* Pain quote card (carried over from the original flyer) */
.pain-card {
  background: var(--crimson); border-radius: var(--radius-lg); padding: 34px 34px 32px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.pain-card .quote-mark {
  position: absolute; top: 8px; left: 16px; font-family: var(--serif); font-size: 120px;
  color: rgba(255,255,255,.10); line-height: .82; user-select: none; pointer-events: none;
}
.pain-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2.8px; text-transform: uppercase;
  color: rgba(255,255,255,.66); display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.pain-label::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.24); }
.pain-hindi {
  font-family: var(--serif); font-style: italic; font-size: 20px; color: #fff; line-height: 1.6;
  background: rgba(255,255,255,.12); border-left: 4px solid #fff; border-radius: 8px;
  padding: 18px 20px; margin-bottom: 16px; position: relative; z-index: 2;
}
.pain-english { font-size: 13.5px; font-style: italic; color: rgba(255,255,255,.72); line-height: 1.75; position: relative; z-index: 2; }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: var(--on-dark); padding: 68px 0 72px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -240px;
  background: radial-gradient(circle, rgba(225,29,72,.26), transparent 62%); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { margin-top: 16px; }
.crumbs { font-size: 12.5px; color: var(--on-dark-dim); margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { opacity: .5; margin: 0 7px; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  backface-visibility: hidden;
}
.card--hover { will-change: transform; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #DCD5C4; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--crimson-tint); color: var(--crimson);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.card h3, .card h4 { margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.72; }
.card .tick { margin-top: 8px; }

.card--dark { background: rgba(255,255,255,.045); border-color: var(--line-dark); box-shadow: none; }
.card--dark p { color: var(--on-dark-dim); }
.card--dark .card-icon { background: rgba(245,200,66,.14); color: var(--gold); }

/* ---------- Numbered steps ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--crimson-tint); color: var(--crimson);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.section--dark .step { border-color: var(--line-dark); }
.section--dark .step-num { background: rgba(245,200,66,.14); color: var(--gold); }
.step p { font-size: 14.5px; color: var(--ink-soft); margin-top: 5px; }
.section--dark .step p { color: var(--on-dark-dim); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.section--dark .stat { background: rgba(255,255,255,.05); border-color: var(--line-dark); }
.stat-num { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--crimson); line-height: 1; }
.section--dark .stat-num { color: var(--gold); }
.stat-label { font-size: 11.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); margin-top: 8px; font-weight: 600; }
.section--dark .stat-label { color: var(--on-dark-dim); }

/* ---------- Course cards ---------- */
.course-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
  backface-visibility: hidden; will-change: transform;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-head { padding: 26px 26px 22px; color: #fff; position: relative; overflow: hidden; }
.course-head.is-beginner { background: linear-gradient(150deg, #1A2135, #0F1424); }
.course-head.is-intermediate { background: linear-gradient(150deg, #E11D48, #9F1239); }
.course-head.is-app { background: linear-gradient(150deg, #2A1533, #0F1424); }
.level-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: #fff;
}
.is-beginner .level-badge { background: rgba(245,200,66,.18); border-color: rgba(245,200,66,.36); color: var(--gold); }
.course-head h3 { color: #fff; margin-bottom: 8px; }
.course-head p { font-size: 13.5px; color: rgba(255,255,255,.72); line-height: 1.6; }
.course-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.fact-list { display: flex; flex-direction: column; gap: 11px; }
.fact { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.fact i { color: var(--crimson); font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.course-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.price { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.price small { display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: .4px; margin-top: 4px; }

/* ---------- Feature list with ticks ---------- */
.ticks { display: grid; gap: 12px; }
.tick { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.tick i { color: var(--green); font-size: 19px; flex-shrink: 0; margin-top: 1px; }
.section--dark .tick { color: var(--on-dark-dim); }
.section--dark .tick i { color: #4ADE80; }

/* ---------- Language chips ---------- */
.lang-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-pill {
  display: inline-flex; align-items: baseline; gap: 9px;
  padding: 11px 18px; border-radius: 100px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
}
.lang-pill:hover { transform: translateY(-2px); border-color: var(--crimson); }
.lang-native { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.lang-name { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.section--dark .lang-pill { background: rgba(255,255,255,.06); border-color: var(--line-dark); box-shadow: none; }
.section--dark .lang-pill:hover { border-color: rgba(245,200,66,.5); }
.section--dark .lang-native { color: var(--on-dark); }
.section--dark .lang-name { color: var(--on-dark-dim); }
.lang-pill--muted { background: transparent; border-style: dashed; box-shadow: none; }

/* ---------- Phone mockup ---------- */
.phone {
  width: 268px; margin: 0 auto; background: #05070E; border-radius: 34px; padding: 11px;
  border: 1px solid rgba(247,245,239,.16); box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.phone-screen { background: radial-gradient(circle at 50% 0%, #1A2238, #0A0F1D 74%); border-radius: 25px; overflow: hidden; padding: 18px 15px 20px; }
.phone-bar { display: flex; align-items: center; justify-content: space-between; font-size: 9.5px; color: rgba(247,245,239,.5); margin-bottom: 14px; }
.phone-lesson { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 9px; }
.phone-sentence { font-size: 15.5px; line-height: 1.62; color: rgba(247,245,239,.42); margin-bottom: 18px; font-weight: 500; }
.phone-sentence b { color: #4ADE80; font-weight: 600; text-shadow: 0 0 14px rgba(74,222,128,.5); }
.phone-mic {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--crimson); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 30px; box-shadow: 0 0 0 8px rgba(225,29,72,.18), 0 0 30px rgba(225,29,72,.45);
  animation: pulse 2.4s ease-in-out infinite; transform: translateZ(0); will-change: box-shadow;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(225,29,72,.18), 0 0 30px rgba(225,29,72,.42); }
  50%      { box-shadow: 0 0 0 16px rgba(225,29,72,.06), 0 0 42px rgba(225,29,72,.6); }
}
.phone-feedback { background: rgba(255,255,255,.06); border: 1px solid rgba(247,245,239,.12); border-radius: 12px; padding: 12px 13px; font-size: 11.5px; color: rgba(247,245,239,.72); line-height: 1.6; }
.phone-feedback strong { color: var(--gold); display: block; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 5px; }
.phone-score { display: flex; gap: 8px; margin-top: 12px; }
.phone-score div { flex: 1; text-align: center; background: rgba(255,255,255,.06); border-radius: 9px; padding: 8px 4px; font-size: 9px; color: rgba(247,245,239,.5); letter-spacing: .6px; text-transform: uppercase; }
.phone-score b { display: block; font-family: var(--serif); font-size: 16px; color: #fff; margin-bottom: 1px; }

/* ---------- Trainer ---------- */
.trainer-card { background: var(--navy); color: var(--on-dark); border-radius: var(--radius-lg); padding: 32px; }
.trainer-top { 
  display: flex; 
  align-items: center; 
  gap: 18px; 
  margin-bottom: 24px; 
}
.trainer-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trainer-avatar,
img.trainer-avatar { 
  width: 78px; 
  height: 78px; 
  border-radius: 50%; 
  border: 3px solid var(--crimson); 
  overflow: hidden; 
  position: relative; 
  flex-shrink: 0; 
  background: #1A2135;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(circle, white 100%, black 100%);
  isolation: isolate;
  display: block;
}
.trainer-avatar img { 
  width: 78px; 
  height: 78px; 
  max-width: 78px;
  max-height: 78px;
  border-radius: 50%;
  object-fit: cover; 
  object-position: center; 
  display: block; 
}
.trainer-avatar-fallback {
  width: 78px; height: 78px; border-radius: 50%; border: 3px solid var(--crimson); flex-shrink: 0;
  background: linear-gradient(150deg, #1A2135, #0F1424); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 27px; font-weight: 700;
}
.trainer-name { font-family: var(--serif); font-size: 22px; font-weight: 700; color: #fff; line-height: 1.2; }
.trainer-role { font-size: 11px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--gold); margin-top: 6px; line-height: 1.3; }
.trainer-bio { font-size: 14px; color: var(--on-dark-dim); line-height: 1.85; border-left: 3px solid var(--crimson); padding-left: 16px; margin-bottom: 22px; }
.trainer-bio p + p { margin-top: 13px; }
.trainer-bio strong { color: var(--on-dark); font-weight: 600; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; }
.cred {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 100px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line-dark); font-size: 12px; color: rgba(247,245,239,.8);
}
.cred i { color: var(--gold); font-size: 14px; }
.note-strip {
  display: flex; gap: 13px; align-items: flex-start; margin-top: 20px;
  background: rgba(245,200,66,.08); border: 1px solid rgba(245,200,66,.22);
  border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--on-dark-dim); line-height: 1.65;
}
.note-strip i { color: var(--gold); font-size: 21px; flex-shrink: 0; }
.note-strip a { color: var(--gold); font-weight: 600; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
table.compare th, table.compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
table.compare thead th { background: var(--sand); font-family: var(--serif); font-size: 15px; }
table.compare tbody th { font-weight: 600; color: var(--ink); }
table.compare td { color: var(--ink-soft); }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 0; }
table.compare .yes { color: var(--green); font-weight: 600; }
table.compare .no { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 21px 44px 21px 0; position: relative;
  font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 10px; top: 15px;
  font-size: 27px; font-weight: 300; color: var(--crimson); transition: transform .22s ease; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 44px 22px 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; }
.faq .faq-body p + p { margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #E11D48 0%, #9F1239 100%); color: #fff; }
.cta-band .container { padding-top: 66px; padding-bottom: 66px; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 17ch; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 15.5px; margin-top: 12px; max-width: 46ch; }
.cta-band .btn--ghost { background: #fff; border-color: #fff; color: var(--crimson); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.9); }
.cta-band .btn--on-dark { border-color: rgba(255,255,255,.5); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 400px; gap: 44px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 15px; color: var(--ink); background: #fff; transition: border-color .16s, box-shadow .16s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(225,29,72,.12);
}
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.contact-line { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line i { font-size: 21px; color: var(--crimson); flex-shrink: 0; margin-top: 2px; }
.contact-line .k { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-line .v { font-size: 15.5px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.contact-line .v a:hover { color: var(--crimson); }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 25px; margin: 42px 0 14px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p, .prose li { font-size: 15.5px; color: var(--ink-soft); line-height: 1.85; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--crimson); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-dim); padding: 62px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand img { width: 38px; height: 38px; border-radius: 9px; }
.footer-brand .brand-name { color: #fff; }
.site-footer p { font-size: 14px; line-height: 1.75; max-width: 34ch; }
.footer-col h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: #fff; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; padding: 6px 0; transition: color .16s; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07);
  border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--on-dark-dim); transition: all .16s;
}
.footer-social a:hover { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding: 22px 0 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}
.footer-bottom-links { display: flex; align-items: center; gap: 22px; }
.footer-bottom a:hover { color: var(--gold); }
.btn-footer-sitemap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  color: var(--on-dark-dim);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.16s ease;
}
.btn-footer-sitemap:hover {
  background: var(--gold);
  color: #0f1424 !important;
  border-color: var(--gold);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 10px 28px rgba(37,211,102,.42); transition: transform .18s;
}
.wa-float:hover { transform: scale(1.07); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; will-change: auto; }
  html { scroll-behavior: auto; }
  .phone-mic { animation: none; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section: 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 28px 68px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px 28px 84px; box-shadow: var(--shadow-md);
  }
  .site-header.is-open .nav a { padding: 13px 12px; font-size: 16px; border-radius: 10px; }
  .site-header.is-open .header-cta {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 100%; margin-top: 0;
    background: transparent; padding: 0 28px 22px; gap: 10px; z-index: 2;
    transform: translateY(-84px);
  }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .topbar-links { display: none; }
  .topbar .container { justify-content: center; text-align: center; }
}

@media (max-width: 680px) {
  :root { --section: 58px; --radius-lg: 18px; }
  .container { padding: 0 18px; }
  body { font-size: 15.5px; }
  h1 { font-size: 31px; }
  .hero-inner { padding: 44px 18px 52px; gap: 32px; }
  .hero .lead, .lead { font-size: 15.5px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 10px; }
  .stat-num { font-size: 27px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .header-cta .btn, .site-header.is-open .header-cta .btn { width: 100%; }
  .site-header.is-open .nav { padding: 14px 18px 84px; }
  .site-header.is-open .header-cta { padding: 0 18px 22px; }
  .pain-card { padding: 26px 22px; }
  .pain-hindi { font-size: 16.5px; padding: 15px 16px; }
  .pain-english { font-size: 12.5px; }
  .card { padding: 22px; }
  .course-head, .course-body { padding-left: 20px; padding-right: 20px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; padding-top: 48px; padding-bottom: 48px; }
  .cta-band .btn-row { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 34px; }
  .site-footer p { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-links { flex-wrap: wrap; gap: 16px; }
  .trainer-card { padding: 24px 20px; }
  .faq summary { font-size: 15.5px; padding-right: 38px; }
  .wa-float { width: 50px; height: 50px; font-size: 26px; right: 14px; bottom: 14px; }
}

/* ============================================================
   CEFR Speaking Assessment Interface Styles
   ============================================================ */
.cefr-app-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.cefr-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.progress-track {
  flex: 1;
  height: 8px;
  background: var(--sand-deep);
  border-radius: 100px;
  overflow: hidden;
  margin-right: 16px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), #f97316);
  width: 0%;
  border-radius: 100px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-box {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.audio-recorder-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 20px;
  background: var(--paper);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.btn-mic-record {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: none;
  background: var(--crimson);
  color: #fff;
  font-size: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.35);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
}

.btn-mic-record:hover {
  transform: scale(1.05);
  background: var(--crimson-dk);
}

.btn-mic-record.is-recording {
  background: #dc2626;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.waveform-canvas {
  width: 100%;
  max-width: 320px;
  height: 48px;
  border-radius: 8px;
}

.timer-badge {
  font-family: monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  background: var(--sand);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
}

.transcript-area {
  width: 100%;
  min-height: 100px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s;
}

.transcript-area:focus {
  border-color: var(--crimson);
  outline: none;
}

/* Scorecard styles */
.score-badge-huge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  width: 110px;
  height: 110px;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(15, 20, 36, 0.25);
  border: 3px solid var(--gold);
}

.metric-bar-wrap {
  margin-bottom: 18px;
}

.metric-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.metric-bar-track {
  height: 10px;
  background: var(--sand-deep);
  border-radius: 100px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.8s ease-out;
}

.metric-bar-fill--fluency { background: #3b82f6; }
.metric-bar-fill--grammar { background: #8b5cf6; }
.metric-bar-fill--vocab   { background: #10b981; }
.metric-bar-fill--pronun  { background: #f59e0b; }

.feedback-box {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
}

.feedback-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.feedback-box li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feedback-box li i {
  margin-top: 3px;
  font-size: 17px;
  flex-shrink: 0;
}

.pulse-loader {
  display: inline-block;
  width: 64px;
  height: 64px;
  border: 4px solid var(--sand-deep);
  border-radius: 50%;
  border-top-color: var(--crimson);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
  .cefr-app-card { padding: 22px 16px; }
  .question-box { padding: 18px 14px; }
  .score-badge-huge { width: 84px; height: 84px; font-size: 36px; border-radius: 20px; }
}
