/* IELTSNex — live-platform parity layer.
   Loaded last on the homepage so it wins over reference.css and home-practice.css.
   Every value here was measured in Chromium on https://ieltsly.ai/bd
   (December 4, 2026) in BOTH light and dark themes. */

/* ============================================================
   LIGHT palette — measured on the live page
   page #f8f6f5 · ink #29242b · muted #706570 · line rgba(78,50,48,.11)
   paper rgba(255,253,251,.44) / solid #fffdfc · glass white gradient
   ============================================================ */
:root {
  --lp-heading-weight: 500;
  --lp-heading-tracking: -.03em;
  --lp-section-y: 88px;
  --lp-band-grad: linear-gradient(110deg, #c64232 5%, #9e3b36 55%, #593440);

  /* live light tokens */
  --lp-page: #f8f6f5;
  --lp-ink: #29242b;
  --lp-muted: #706570;
  --lp-line: rgba(78, 50, 48, .11);
  --lp-paper: #fffdfc;
  --lp-surface: #fffdfc;
  --lp-shadow-sm: 0 1px 2px rgba(41, 36, 43, .05), 0 8px 24px rgba(41, 36, 43, .04);
  --lp-glass-bg: rgba(255, 253, 251, .44);
  --lp-soft-fill: rgba(110, 53, 73, .016);
  --lp-tab-active: #92503e;
  --lp-header-bg: rgba(255, 253, 251, .79);
  --lp-header-line: rgba(123, 82, 74, .106);
  --lp-halo: radial-gradient(at 50% 60%, rgba(241, 207, 196, .61), rgba(0, 0, 0, 0) 62%);
  --lp-accent-on-dark: #e7b7a2;
}

/* ============================================================
   DARK palette — measured on the live page
   page #09090c · ink #f4f1ef · muted #a5a1a8 · line rgba(255,255,255,.08)
   glass #1e1b1f → #101012 · halo rgba(89,31,36,.3)
   ============================================================ */
:root[data-theme="dark"],
html[data-theme="dark"] {
  --canvas: #09090c;
  --ink: #f4f1ef;
  --muted: #a5a1a8;
  --line: rgba(255, 255, 255, .08);
  --soft: #15141a;
  --paper: #131216;
  --red: #f4736b;
  --halo: rgba(89, 31, 36, .3);

  --lp-page: #09090c;
  --lp-ink: #f4f1ef;
  --lp-muted: #a5a1a8;
  --lp-line: rgba(255, 255, 255, .08);
  --lp-paper: #131216;
  --lp-surface: #131216;
  --lp-shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --lp-glass-bg: rgba(255, 255, 255, .016);
  --lp-soft-fill: rgba(255, 255, 255, .016);
  --lp-tab-active: #e7b7a2;
  --lp-header-bg: rgba(23, 20, 23, .65);
  --lp-header-line: rgba(255, 255, 255, .08);
  --lp-halo: radial-gradient(at 50% 60%, rgba(89, 31, 36, .3), rgba(0, 0, 0, 0) 62%);
  --lp-accent-on-dark: #e7b7a2;
}

/* The homepage paints its background on the document, not just body. */
body { background: var(--lp-page); }
:root[data-theme="dark"] body { background: var(--lp-page); }

/* Live hero halo behind the opening section. */
.hero::before {
  background: var(--lp-halo);
  border-color: var(--lp-line);
  box-shadow: none;
}

/* ---------- Pill badge above the hero heading ---------- */
.hero-category.ref-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 8px 14px;
  min-height: 38px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  background: var(--lp-glass-bg);
  color: var(--lp-muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -.48px;
  line-height: 19.5px;
  text-transform: none;
}
.hero-category.ref-badge > span:first-child { color: #bd7918; }

/* ---------- Hero heading ---------- */
.hero h1 {
  font-size: clamp(2.5rem, 4.93vw, 3.97rem);
  font-weight: var(--lp-heading-weight);
  line-height: 1.1;
  letter-spacing: var(--lp-heading-tracking);
  text-align: center;
  margin: 24px auto 20px;
  color: var(--lp-ink);
  text-wrap: balance;
}
.hero h1 em,
.hero h1 .hero-accent {
  font-family: inherit;
  font-style: normal;
  font-weight: var(--lp-heading-weight);
  letter-spacing: var(--lp-heading-tracking);
  white-space: normal;
}
:root:not([data-theme=dark]) .hero h1 .hero-accent,
:root:not([data-theme=dark]) .hero h1 em {
  color: transparent;
  background: var(--lp-band-grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root[data-theme=dark] .hero h1 :is(em, .hero-accent) {
  color: var(--lp-ink);
  -webkit-text-fill-color: currentColor;
  background: none;
}

/* ---------- Hero lede & spacing ---------- */
.hero .hero-lede {
  max-width: 76ch;
  margin-inline: auto;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.03em;
  text-align: center;
  color: var(--lp-muted);
}
.hero .hero-actions { margin-top: 28px; }
.hero .hero-notes { margin-top: 13px; color: var(--lp-muted); }
.hero .hero-photo { margin-top: 28px; width: min(100%, 760px); }
.hero.skill-strip, .hero .skill-strip { margin-top: 24px; }
.hero { padding-top: clamp(56px, 4.6vw, 62px); }

/* ---------- Buttons ---------- */
.hero .create-account {
  border-radius: 14px;
  min-height: 48px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.45px;
  line-height: 22.5px;
  background: linear-gradient(#f74b49, #dd282f);
  border: 1px solid rgba(255, 140, 122, .4);
  color: #fff;
  box-shadow: none;
}
.hero .create-account:hover { background: linear-gradient(#ef4544, #d4232b); }
.hero .try-demo {
  border-radius: 14px;
  min-height: 48px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.45px;
  border: 1px solid var(--lp-line);
  background: transparent;
  color: var(--lp-ink);
}
:root:not([data-theme=dark]) .hero .try-demo { color: #67494b; }
.hero .try-demo:hover { border-color: color-mix(in srgb, var(--lp-muted) 40%, transparent); }

/* ---------- Section headings ---------- */
.explore .section-kicker,
.plan-guide .plan-eyebrow {
  color: var(--lp-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -.33px;
  text-transform: none;
}
.explore .explore-heading h2,
.plan-guide .plan-intro h2 {
  font-size: clamp(2rem, 3.8vw, 3.08rem);
  font-weight: var(--lp-heading-weight);
  line-height: 1.2;
  letter-spacing: var(--lp-heading-tracking);
  color: var(--lp-ink);
}
.explore .explore-heading h2 em,
.plan-guide .plan-intro h2 em {
  font-family: inherit;
  font-style: normal;
  font-weight: var(--lp-heading-weight);
}
:root:not([data-theme=dark]) :is(.explore .explore-heading h2 em,
                                 .plan-guide .plan-intro h2 em) {
  color: transparent;
  background: var(--lp-band-grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root[data-theme="dark"] :is(.explore .explore-heading h2 em,
                             .plan-guide .plan-intro h2 em) {
  color: var(--lp-accent-on-dark);
  -webkit-text-fill-color: currentColor;
  background: none;
}

/* ---------- Segmented tab pills ---------- */
.explore-tabs {
  display: flex;
  gap: 4px;
  margin: 32px auto 16px;
  padding: 6px;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  background: var(--lp-soft-fill);
  overflow-x: auto;
}
.explore-tabs button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--lp-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.explore-tabs button[aria-selected=true] {
  background: var(--lp-paper);
  border-color: var(--lp-line);
  color: var(--lp-tab-active);
}
:root[data-theme="dark"] .explore-tabs button[aria-selected=true] {
  background: #15141a;
  color: var(--lp-accent-on-dark);
}
.explore-tabs button:hover:not([aria-selected=true]) { color: var(--lp-ink); }

/* ---------- Header ---------- */
.site-header .bar {
  background: var(--lp-header-bg);
  border-color: var(--lp-header-line);
}

/* ---------- Section rhythm ---------- */
.explore { padding-block: var(--lp-section-y); }

/* ---------- Selected-state controls ----------
   Live dark uses a raised near-black chip (#15141a) with a warm label,
   not an inverted light pill. */
:root[data-theme="dark"] :is(.track-switch, .mode-tabs) [aria-pressed="true"],
:root[data-theme="dark"] :is(.track-switch, .mode-tabs) [aria-selected="true"],
:root[data-theme="dark"] #explore-screen .tour-modes [aria-pressed="true"],
:root[data-theme="dark"] .tour-modes [aria-pressed="true"],
:root[data-theme="dark"] .q-nav button[aria-pressed="true"] {
  background: #15141a;
  border-color: rgba(255, 255, 255, .08);
  color: var(--lp-accent-on-dark);
}
:root[data-theme="dark"] #explore-screen .tour-modes [aria-pressed="false"] {
  background: transparent;
  color: var(--lp-muted);
}
:root[data-theme="dark"] :is(.track-switch, .mode-tabs) [aria-pressed="true"]:hover,
:root[data-theme="dark"] :is(.track-switch, .mode-tabs) [aria-selected="true"]:hover {
  background: #15141a;
}
:root[data-theme="dark"] .tour-modes button:hover:not([aria-pressed="true"]) {
  background: rgba(255, 255, 255, .04);
  color: var(--lp-ink);
}

/* Reading-drill excerpt is a warm paper card in light; dark needs a
   matching low-luminance surface instead of #fff6e7. */
:root[data-theme="dark"] .drill-excerpt {
  background: #241d21;
  border-left-color: #8a6a55;
  color: #f0e4dc;
}

/* Speaker card caption sits on the portrait image, which is light in
   light mode but dark in dark mode. */
:root[data-theme="dark"] .ref-speaker > div { color: var(--lp-ink); }

/* ---------- Heading tiers measured on the live page ----------
   49.25px: tour, journey, modes, drills, partners, rewriter, skills, streaks, abroad
   41.47px: feedback, stories, comparison, pricing
   46.66px: library, FAQ      51.84px: closing */
:is(#learner-stories, #comparison, #pricing) h2,
#line-feedback h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.59rem);
}
#free-lessons h2 { font-size: clamp(2rem, 3.55vw, 2.87rem); }
#faq h2 { font-size: clamp(1.9rem, 3.6vw, 2.92rem); }
#start-learning h2 { font-size: clamp(2rem, 4vw, 3.24rem); }

/* Section rhythm from the live page: 88px standard, 72px band sections,
   80px for stories and FAQ. */
:is(#explore, #practice-modes, #question-types, #line-feedback,
   #speaking-partners, #rewriter, #free-lessons, #skills, #streaks,
   #study-abroad, #learner-stories, #comparison, #pricing) {
  padding-block: 88px;
}
:is(#skills, #streaks, #study-abroad, #comparison, #pricing) {
  padding-block: 72px;
}
:is(#learner-stories, #faq) { padding-block: 80px; }
#start-learning { padding-block: 30px 0; }

/* ============================================================
   Study-plan section. In the live light theme it is a normal
   light panel; in dark it becomes the glass card on near-black.
   ============================================================ */
:root:not([data-theme=dark]) .plan-guide {
  --guide-night: #f8f6f5;
  --guide-pink: #c64232;
  --guide-rule: rgba(78, 50, 48, .11);
  background: var(--lp-page);
  color: var(--lp-ink);
}
:root:not([data-theme=dark]) .plan-guide .plan-intro h2 { color: var(--lp-ink); }
:root:not([data-theme=dark]) .plan-guide .plan-eyebrow { color: var(--lp-muted); }
:root:not([data-theme=dark]) .plan-guide .plan-intro > p { color: var(--lp-muted); }
:root:not([data-theme=dark]) .plan-guide .plan-tabs button { color: var(--lp-muted); }
:root:not([data-theme=dark]) .plan-guide .plan-tabs button[aria-selected=true] {
  color: var(--lp-ink);
  border-color: var(--lp-tab-active);
}
:root:not([data-theme=dark]) .plan-guide .plan-spread {
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  box-shadow: 0 12px 44px rgba(85, 51, 54, .035);
}

:root[data-theme="dark"] .plan-guide {
  --guide-night: transparent;
  --guide-pink: var(--lp-accent-on-dark);
  --guide-rule: var(--lp-line);
  background: transparent;
  color: var(--lp-ink);
}
:root[data-theme="dark"] .plan-guide .plan-eyebrow { color: var(--lp-muted); }
:root[data-theme="dark"] .plan-guide .plan-intro > p { color: var(--lp-muted); }
:root[data-theme="dark"] .plan-guide .plan-intro h2 { color: var(--lp-ink); }
:root[data-theme="dark"] .plan-guide .plan-tabs button { color: var(--lp-muted); }
:root[data-theme="dark"] .plan-guide .plan-tabs button[aria-selected=true] {
  color: var(--lp-ink);
  border-color: var(--lp-accent-on-dark);
}
:root[data-theme="dark"] .plan-guide .plan-spread {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .067), rgba(0, 0, 0, 0) 36%),
    linear-gradient(170deg, rgba(30, 27, 31, .88), rgba(16, 15, 17, .95));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(1.85rem, 6.6vw, 2.6rem); margin: 20px auto 16px; }
  .hero-category.ref-badge { font-size: 12px; padding: 6px 12px; min-height: 32px; }
  .explore .explore-heading h2,
  .plan-guide .plan-intro h2 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .explore-tabs { margin: 22px auto 12px; padding: 4px; border-radius: 13px; }
  .explore-tabs button { padding: 8px 12px; font-size: 12px; min-height: 40px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 28px; line-height: 1.15; }
}

/* Bengali headings need a taller line box and looser tracking. */
html[lang="bn"] .hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.3;
  letter-spacing: -.01em;
}
html[lang="bn"] .hero h1 :is(em, .hero-accent) { letter-spacing: inherit; }
html[lang="bn"] .hero .hero-lede { line-height: 1.7; letter-spacing: 0; }
html[lang="bn"] .explore .explore-heading h2,
html[lang="bn"] .plan-guide .plan-intro h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.35;
  letter-spacing: -.005em;
}
html[lang="bn"] .explore .section-kicker,
html[lang="bn"] .plan-guide .plan-eyebrow { letter-spacing: 0; }

@media (max-width: 420px) {
  html[lang="bn"] .hero h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .create-account:hover,
  .hero .try-demo:hover { transition: none; }
}


/* ============================================================
   Footer — live column structure
   ============================================================ */
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand > p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; max-width: 30ch; }
.footer-brand .ref-social { margin-top: 16px; }
.footer-made { margin-top: 18px !important; font-size: .82rem !important; }
.footer-col h3 { margin: 0 0 12px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.footer-col .footer-subhead { margin-top: 22px; }
.footer-col .foot-link,
.footer-col .ref-link { display: block; padding: 5px 0; color: var(--muted); font-size: .88rem; }
.footer-col .foot-link:hover,
.footer-col .ref-link:hover { color: var(--ink); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-trademark { margin: 14px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.6; max-width: 78ch; }

/* Hero rating badge */
.hero-rating { color: #b8791c; font-weight: 600; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}


/* ── Bug fixes from the deep audit ── */
/* The live hero shows only the four skill links, without a strip heading. */
.skill-strip h2,
.hero .skill-strip h2 { display: none; }
.skill-strip { justify-content: center; gap: clamp(20px, 4vw, 48px); }
.skill-choices { display: flex; justify-content: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.skill-button { flex-direction: row; gap: 8px; border-left: 0; font-size: 13px; font-weight: 500; }
.skill-button svg { width: 18px; height: 18px; }

/* Rating badge must never wrap awkwardly. */
.hero-category.ref-badge { white-space: nowrap; }
.hero-rating { white-space: nowrap; }
@media (max-width: 380px) {
  .hero-category.ref-badge { font-size: 11px; padding: 5px 10px; gap: 6px; }
}


/* ── Layout measure parity ──
   Live: every section shares a 1140px measure and an 800px centred heading
   block, with content stacked underneath. */
:root { --lp-measure: 1140px; --lp-heading-measure: 800px; }

main > section,
main > div > section,
.home-inner,
.nx-wrap,
.plan-inner,
.drill-wrap,
.ref-inner,
.mode-wrap,
.learning-inner,
.stories-inner {
  width: min(var(--lp-measure), calc(100% - 32px)) !important;
  max-width: var(--lp-measure) !important;
  margin-inline: auto !important;
}

/* Section headings sit in a centred, 800px-wide block. */
.home-heading,
.explore-heading,
.ref-intro,
.plan-intro,
.drill-head {
  width: min(var(--lp-heading-measure), 100%) !important;
  max-width: var(--lp-heading-measure) !important;
  margin-inline: auto !important;
  text-align: center !important;
  display: block !important;
  grid-template-columns: none !important;
}

.home-heading > p,
.explore-heading > p,
.ref-intro > p,
.plan-intro > p,
.drill-head > p {
  max-width: 62ch !important;
  margin-inline: auto !important;
  text-align: center !important;
}

.home-kicker,
.section-kicker,
.nx-kicker,
.plan-eyebrow,
.drill-kicker {
  display: block !important;
  text-align: center !important;
  margin-inline: auto !important;
}

/* Card grids fall back to the live two-column rhythm. */
.home-two,
.home-card,
.compare-layout,
.ref-pair {
  max-width: 100%;
}

@media (max-width: 900px) {
  :root { --lp-measure: 100%; --lp-heading-measure: 100%; }
  .home-heading,
  .explore-heading,
  .ref-intro,
  .plan-intro,
  .drill-head { text-align: start !important; }
  .home-heading > p,
  .explore-heading > p,
  .ref-intro > p,
  .plan-intro > p,
  .drill-head > p,
  .home-kicker,
  .section-kicker,
  .nx-kicker,
  .plan-eyebrow,
  .drill-kicker { text-align: start !important; margin-inline: 0 !important; }
}


/* ── Dark contrast fixes ── */
:root[data-theme="dark"] .ref-play,
:root[data-theme="dark"] .ref-play span,
:root[data-theme="dark"] .ref-play svg {
  color: var(--lp-accent-on-dark);
  fill: currentColor;
}
:root[data-theme="dark"] .ref-play { border-color: rgba(255, 255, 255, .18); }

/* Any hard-coded dark brand red used on a dark surface. */
:root[data-theme="dark"] .ref-speaker :is(a, button, span, strong) { color: inherit; }
:root[data-theme="dark"] .ref-speaker :is(a, button) {
  color: var(--lp-accent-on-dark);
}

/* Keep small caps labels legible on the dark card. */
:root[data-theme="dark"] .ref-speaker small { color: var(--lp-muted); }


/* ── Rewriter and tutor media layout ──
   Live: 587px screenshot beside 489px copy, not a full-width banner. */
#rewriter .ref-pair:has(.ref-manual) {
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  gap: 32px;
  align-items: start;
}
#rewriter .ref-pair:has(.ref-manual) > .rewriter-side { order: -1; }
#rewriter .ref-pair:has(.ref-manual) .home-media {
  margin: 0;
  max-width: 587px;
}
#rewriter .ref-pair:has(.ref-manual) .home-media img {
  aspect-ratio: 587 / 400;
  object-fit: cover;
  object-position: top left;
}
#rewriter .ref-pair:has(.ref-manual) .ref-manual { min-width: 0; }

/* Tutor card sits in its own full-width support row on the live page. */
#ai-tutor .home-media.tutor-side {
  margin: 0 0 22px;
  max-width: 552px;
}
#ai-tutor .home-media.tutor-side img {
  aspect-ratio: 552 / 270;
  object-fit: cover;
  object-position: top center;
}

/* The injected video demo is not part of the live section. */
#rewriter .writing-film { display: none; }

@media (max-width: 860px) {
  #rewriter .ref-pair:has(.ref-manual) { grid-template-columns: minmax(0, 1fr); }
  #rewriter .ref-pair:has(.ref-manual) > .rewriter-side { order: 0; }
  #rewriter .ref-pair:has(.ref-manual) .home-media { max-width: none; }
}


/* ── Speaking partner media grid ── */
#speaking-partners .ref-speaker {
  display: grid !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-rows: auto;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}
/* The video is inserted dynamically, so place the two cells explicitly. */
#speaking-partners .ref-speaker > video,
#speaking-partners .ref-speaker > figure.home-media,
#speaking-partners .ref-speaker > .home-media { grid-column: 1; grid-row: 1; }
#speaking-partners .ref-speaker > div:not(.home-media) {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
#speaking-partners .ref-speaker > .home-media,
#speaking-partners .ref-speaker > figure { margin: 0; max-width: 100%; }
#speaking-partners .ref-speaker video,
#speaking-partners .ref-speaker img { max-width: 100%; height: auto; }

@media (max-width: 860px) {
  #speaking-partners .ref-speaker { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  #speaking-partners .ref-speaker > div:not(.home-media) { grid-column: 1; grid-row: 2; }
}

/* A scrollable tab strip must never widen the page. */
.explore-tabs { max-width: 100%; }


/* ── Dark tab and excerpt legibility ── */
/* Segmented labels inside the tour/mode pickers keep the light ink colour. */
:root[data-theme="dark"] :is(.tour-modes, .mode-tabs, .track-switch, .nx-choices,
                             .explore-tabs, .ldf-tabs) button:not([aria-pressed="true"]):not([aria-selected="true"]),
:root[data-theme="dark"] :is(.tour-modes, .track-switch) [aria-pressed="false"] {
  color: var(--lp-muted);
}
:root[data-theme="dark"] .tour-modes button,
:root[data-theme="dark"] .mode-tabs button,
:root[data-theme="dark"] .track-switch button {
  color: var(--lp-muted);
}
:root[data-theme="dark"] .tour-modes [aria-pressed="true"],
:root[data-theme="dark"] .mode-tabs [aria-selected="true"],
:root[data-theme="dark"] .track-switch [aria-pressed="true"] {
  color: var(--lp-accent-on-dark);
}

/* Reading excerpt card heading. */
:root[data-theme="dark"] .excerpt-title,
:root[data-theme="dark"] .drill-excerpt :is(h1, h2, h3, h4, strong, span, p) {
  color: #f0e4dc;
}
:root[data-theme="dark"] .drill-excerpt { color: #f0e4dc; }


/* ── Surface and card parity ── */
:root {
  --lp-card-grad: linear-gradient(140deg, rgba(255,255,255,.867), rgba(255,255,255,.44) 45%, rgba(255,249,246,.78));
  --lp-card-border: rgba(103, 64, 66, .125);
  --lp-card-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px rgba(255,255,255,.6),
                    0 22px 65px -32px rgba(121,76,66,.18);
}
:root[data-theme="dark"] {
  --lp-card-grad: linear-gradient(145deg, rgba(255,255,255,.067), rgba(0,0,0,0) 36%),
                  linear-gradient(170deg, rgba(30,27,31,.88), rgba(16,15,19,.94));
  --lp-card-border: rgba(255, 255, 255, .12);
  --lp-card-shadow: inset 0 1px 1px rgba(255,255,255,.13),
                    inset 0 -1px 1px rgba(255,255,255,.024),
                    0 24px 64px -30px rgba(0,0,0,.7);
}

/* Every content card uses the live glass surface. */
:is(.home-card, .plan-spread, .home-media, .hp-report, .training-card,
    .skill-card, .compare-panel, .plan-card, .story-card, .price-card,
    .faq-list details, .home-strip, .type-box) {
  background: var(--lp-card-grad) !important;
  border: 1px solid var(--lp-card-border) !important;
  border-radius: 24px !important;
  box-shadow: var(--lp-card-shadow) !important;
  backdrop-filter: blur(14px);
}

/* Inner rows keep the tighter live radius. */
.faq-list details,
.nx-choice,
.hp-report-row { border-radius: 10px !important; }

/* Grid rhythm measured on the live page. */
:is(.home-two, .home-card > .home-media, .streak-grid, .plan-grid,
    .lesson-grid, .ref-pair, .compare-layout) { gap: 32px !important; }
.home-two { gap: 32px !important; }
.compare-layout { gap: 20px !important; }
.home-two { column-gap: 32px !important; row-gap: 32px !important; }

/* Heading scale exactly as measured. */
:is(.home-heading, .explore-heading, .ref-intro, .plan-intro, .drill-head) h2 {
  font-size: clamp(2rem, 3.9vw, 3.078rem) !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
}
:is(.home-heading, .explore-heading, .ref-intro, .plan-intro, .drill-head) > p:not(.home-kicker):not(.section-kicker):not(.nx-kicker):not(.plan-eyebrow):not(.drill-kicker) {
  font-size: 17px !important;
  line-height: 1.65 !important;
  color: var(--lp-muted) !important;
  max-width: 62ch !important;
}
:is(.home-heading, .explore-heading, .ref-intro, .plan-intro, .drill-head) :is(.home-kicker, .section-kicker, .nx-kicker, .plan-eyebrow, .drill-kicker),
.home-kicker, .section-kicker, .nx-kicker, .plan-eyebrow, .drill-kicker {
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--lp-muted) !important;
  line-height: 1.7 !important;
  margin: 0 0 10px !important;
}
/* Lead paragraphs get the live 17px, but kickers must not. */
:is(.home-heading, .explore-heading, .ref-intro, .plan-intro, .drill-head) :is(.home-kicker, .section-kicker, .nx-kicker, .plan-eyebrow, .drill-kicker) {
  font-size: 11px !important;
}
/* Card inner padding measured on the live page. */
:is(.home-card, .plan-card, .story-card, .price-card) { padding: 24px !important; }
@media (max-width: 900px) {
  :is(.home-card, .plan-card, .story-card, .price-card) { padding: 18px !important; }
}

/* Heading block height matches the live 245–275px rhythm. */
:is(.home-heading, .explore-heading, .ref-intro, .plan-intro, .drill-head) {
  margin-bottom: 40px !important;
}

@media (max-width: 900px) {
  :is(.home-heading, .explore-heading, .ref-intro, .plan-intro, .drill-head) h2 {
    font-size: clamp(1.7rem, 6.2vw, 2.2rem) !important;
    line-height: 1.28 !important;
  }
  :is(.home-heading, .explore-heading, .ref-intro, .plan-intro, .drill-head) > p,
  :is(.home-heading, .explore-heading, .ref-intro, .plan-intro, .drill-head) p { font-size: 16px !important; }
  :is(.home-heading, .explore-heading, .ref-intro, .plan-intro, .drill-head) { margin-bottom: 24px !important; }
}


/* ── Journey chapters ── */
.journey-intro { padding: 88px 0 24px; }
.ch-grid-intro { grid-template-columns: 800px; justify-content: center; }

.ch { padding: 72px 0; }
.ch-tinted { background: color-mix(in srgb, var(--lp-soft-fill) 55%, transparent); }

.ch-grid {
  display: grid;
  grid-template-columns: minmax(0, 454px) minmax(0, 614px);
  gap: 72px;
  align-items: center;
  width: min(var(--lp-measure), calc(100% - 32px));
  margin-inline: auto;
}

.ch-copy { min-width: 0; }
.ch-copy-intro { text-align: center; max-width: 800px; margin-inline: auto; }

.ch-kicker {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--lp-muted);
  margin-bottom: 12px;
}

.ch-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lp-muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.ch-label > span:first-child {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--lp-line);
  border-radius: 50%;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--lp-tab-active);
}

.ch-copy h2,
.ch-copy-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.2vw, 2.59rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--lp-ink);
}
.ch-copy h2 em,
.ch-copy-intro h2 em {
  display: block;
  font-style: normal;
  font-weight: 500;
}
:root:not([data-theme="dark"]) :is(.ch-copy h2 em, .ch-copy-intro h2 em) {
  color: transparent;
  background: var(--lp-band-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root[data-theme="dark"] :is(.ch-copy h2 em, .ch-copy-intro h2 em) {
  color: var(--lp-accent-on-dark);
}

.ch-copy > p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 55ch;
}

.ch-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ch-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--lp-ink);
}
.ch-list svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--lp-tab-active);
}

.ch-next {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 12px 16px;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  background: var(--lp-glass-bg);
  color: var(--lp-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.ch-next:hover { border-color: var(--lp-tab-active); }
.ch-next-label {
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--lp-soft-fill);
  color: var(--lp-muted);
  font-size: 11px;
  white-space: nowrap;
}

.ch-art { margin: 0; }
.ch-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* The old stacked-card markup is replaced, but guard any stragglers. */
.plan-spread, .plan-guide { display: none !important; }

@media (max-width: 900px) {
  .journey-intro { padding: 56px 0 16px; }
  .ch { padding: 44px 0; }
  .ch-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .ch-grid-intro { grid-template-columns: minmax(0, 1fr); }
  .ch-copy-intro { text-align: start; }
  .ch-copy > p { font-size: 16px; }
  .ch-copy h2, .ch-copy-intro h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
}

/* ── Library, targeted practice and results grids ── */
/* Live library: 608px media | 468px guide, 64px gap. */
#free-lessons .ref-pair.ref-library {
  display: grid;
  grid-template-columns: minmax(0, 608px) minmax(0, 468px);
  gap: 64px;
  align-items: start;
}
#free-lessons .ref-pair.ref-library > * { min-width: 0; }
#free-lessons .ref-topics {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  width: 100%;
}
#free-lessons .ref-topics nav,
#free-lessons .ref-topics .ref-modules { min-width: 0; }

/* Live targeted practice: 698px drills | 410px word card, 32px gap. */
#question-types .drill-spread {
  display: grid;
  grid-template-columns: minmax(0, 698px) minmax(0, 410px);
  gap: 32px;
  align-items: start;
}
#question-types .drill-spread > * { min-width: 0; }

/* Results: one full-width mockup card with a toolbar above it. */
#line-feedback .nx-group { width: 100%; }

@media (max-width: 720px) {
  #free-lessons .ref-pair.ref-library,
  #question-types .drill-spread {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  #free-lessons .ref-topics { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* ── Editorial heading variant ── */
:is(#line-feedback, #free-lessons, #comparison) :is(.ref-intro, .home-heading) {
  display: grid !important;
  grid-template-columns: minmax(0, 576px) minmax(0, 500px);
  gap: 64px;
  align-items: start;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  text-align: start !important;
}
:is(#line-feedback, #free-lessons, #comparison) :is(.ref-intro, .home-heading) > .ed-copy,
.ed-copy { min-width: 0; }
/* The intro paragraph is a sibling of the heading group on the live page. */
:is(#line-feedback, #free-lessons, #comparison) :is(.ref-intro, .home-heading) > p,
:is(#line-feedback, #free-lessons, #comparison) :is(.ref-intro, .home-heading) > .home-library-lead {
  display: block;
  margin: 0 !important;
  max-width: 52ch !important;
  text-align: start !important;
  align-self: end;
  grid-column: 2;
}
:is(#line-feedback, #free-lessons, #comparison) :is(.ref-intro, .home-heading) > .home-library-lead > p,
:is(#line-feedback, #free-lessons, #comparison) :is(.ref-intro, .home-heading) > p {
  font-size: 17px !important;
  line-height: 1.65 !important;
  color: var(--lp-muted) !important;
}
:is(.ed-copy) { grid-column: 1; }
:is(#line-feedback, #free-lessons, #comparison) :is(.ref-intro, .home-heading) h2 {
  text-align: start !important;
  margin: 0 !important;
  font-size: clamp(1.85rem, 3.2vw, 2.59rem) !important;
}
:is(#line-feedback, #free-lessons, #comparison) :is(.home-kicker, .nx-kicker) {
  text-align: start !important;
  margin-inline: 0 !important;
}

/* library and comparison hide the kicker in the live header */
#free-lessons .nx-kicker { display: none !important; }

@media (max-width: 900px) {
  :is(#line-feedback, #free-lessons, #comparison) :is(.ref-intro, .home-heading) {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  :is(#line-feedback, #free-lessons, #comparison) :is(.ref-intro, .home-heading) > p {
    align-self: start;
    max-width: 100% !important;
  }
}

/* ── University wall ── */
.sa { padding: 88px 0; }
.sa-inner {
  width: min(var(--lp-measure), calc(100% - 32px));
  margin-inline: auto;
}
.sa-head {
  width: min(800px, 100%);
  margin: 0 auto 40px;
  text-align: center;
}
.sa-kicker {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--lp-muted);
  margin-bottom: 12px;
}
.sa-head h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.9vw, 3.078rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--lp-ink);
}
.sa-head h2 em {
  display: block;
  font-style: normal;
  color: transparent;
  background: var(--lp-band-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root[data-theme="dark"] .sa-head h2 em {
  color: var(--lp-accent-on-dark);
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, var(--lp-accent-on-dark), var(--lp-accent-on-dark));
  -webkit-background-clip: text;
  background-clip: text;
}
.sa-head p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--lp-muted);
  max-width: 62ch;
  margin-inline: auto;
}

.uni-panel {
  background: var(--lp-card-grad);
  border: 1px solid var(--lp-card-border);
  border-radius: 24px;
  box-shadow: var(--lp-card-shadow);
  backdrop-filter: blur(14px);
  padding: 24px;
}
.uni-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-muted);
}
.uni-label svg { width: 18px; height: 18px; color: var(--lp-tab-active); flex: none; }

.uni-wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.uni-wall li {
  display: grid;
  place-items: center;
  min-height: 78px;
  padding: 14px 12px;
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  background: var(--lp-glass-bg);
}
.uni-wall img {
  display: block;
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .92;
}
:root[data-theme="dark"] .uni-wall li { background: rgba(255, 255, 255, .028); }
:root[data-theme="dark"] .uni-wall img { filter: brightness(1.8) contrast(1.05); }

.uni-source {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--lp-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.uni-source a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--lp-tab-active);
  text-decoration: none;
}
.uni-source a:hover { text-decoration: underline; }
.uni-source svg { width: 11px; height: 11px; }

@media (max-width: 900px) {
  .sa { padding: 56px 0; }
  .sa-head { text-align: start; margin-bottom: 26px; }
  .sa-head p { margin-inline: 0; font-size: 16px; }
  .sa-head h2 { font-size: clamp(1.7rem, 6.2vw, 2.2rem); }
  .uni-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .uni-panel { padding: 18px; }
}
@media (max-width: 560px) {
  .uni-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uni-wall li { min-height: 64px; padding: 10px 8px; }
  .uni-wall img { max-height: 30px; }
}

/* ── Partner voice buttons ── */
.voice-row { margin-top: 12px; }
.voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--lp-line);
  border-radius: 99px;
  background: var(--lp-glass-bg);
  color: var(--lp-ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.voice-btn:hover { border-color: var(--lp-tab-active); }
.voice-btn svg { width: 17px; height: 17px; color: var(--lp-tab-active); flex: none; }
.voice-btn[aria-pressed="true"] {
  border-color: var(--lp-tab-active);
  color: var(--lp-tab-active);
}
:root[data-theme="dark"] .voice-btn[aria-pressed="true"] { color: var(--lp-accent-on-dark); }
.voice-row audio { display: none; }
/* Writer task tabs keep a light surface in dark mode. */
:root[data-theme="dark"] #rewriter [aria-pressed="true"],
:root[data-theme="dark"] #rewriter [aria-selected="true"],
:root[data-theme="dark"] #rewriter .nx-choices button[aria-pressed="true"] {
  background: #15141a !important;
  color: var(--lp-accent-on-dark) !important;
  border-color: rgba(255, 255, 255, .08) !important;
}

/* ── Partner cards and demo player ── */
#speaking-partners .nx-partners {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

#speaking-partners .nx-partners > article {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 24px !important;
  background: var(--lp-card-grad) !important;
  border: 1px solid var(--lp-card-border) !important;
  box-shadow: var(--lp-card-shadow) !important;
}

#speaking-partners .nx-partners > article > img,
#speaking-partners .nx-partners > article .voice-portrait {
  order: -1;
  width: 100% !important;
  height: 240px !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  margin: 0 !important;
  border-radius: 0 !important;
}

#speaking-partners .nx-partners > article > div {
  padding: 20px 22px 22px !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
#speaking-partners .nx-partners h3 {
  margin: 0 !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: var(--lp-ink) !important;
}
#speaking-partners .nx-partners p {
  margin: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: var(--lp-muted) !important;
}
#speaking-partners .nx-partners details { margin-top: 6px; }
#speaking-partners .nx-partners summary { font-size: 13px; color: var(--lp-tab-active); }

/* Demo player: full measure with a 16:9 screen. */
#speaking-partners .ref-speaker {
  display: block !important;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--lp-card-border);
  background: var(--lp-card-grad);
  box-shadow: var(--lp-card-shadow);
  padding: 0;
}
#speaking-partners .ref-speaker > video,
#speaking-partners .ref-speaker video {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}
#speaking-partners .ref-speaker > .home-media,
#speaking-partners .ref-speaker > figure { margin: 0 !important; }
#speaking-partners .ref-speaker > div:not(.home-media) { display: none; }

/* The "Meet Mohona" copy now lives above the player. */
#speaking-partners .ref-player-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
#speaking-partners .ref-player-title h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  color: var(--lp-ink);
}

@media (max-width: 900px) {
  #speaking-partners .nx-partners { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
  #speaking-partners .nx-partners > article > img { height: 170px !important; }
  #speaking-partners .nx-partners > article > div { padding: 16px !important; }
}
@media (max-width: 560px) {
  #speaking-partners .nx-partners { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ── Streaks layout ── */
#streaks .home-two.streak-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: start;
}
#streaks .home-two.streak-grid > * {
  min-width: 0;
  padding: 18px !important;
  border-radius: 20px;
  background: var(--lp-card-grad);
  border: 1px solid var(--lp-card-border);
  box-shadow: var(--lp-card-shadow);
}
#streaks .home-two.streak-grid h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-ink);
}
#streaks .home-two.streak-grid p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--lp-muted);
}

/* The league table is the tallest element; cap it to the live proportion. */
#streaks .home-two.streak-grid :is(ol, ul, table) { margin: 0; }
#streaks .home-two.streak-grid li { padding-block: 7px; }

/* The trailing panels collapse into one compact note row. */
#streaks .ref-tail.ref-progress,
#streaks .home-strip,
#streaks .hp-report { margin-top: 20px !important; }
#streaks .home-strip { padding: 16px 18px !important; }

@media (max-width: 760px) {
  #streaks .home-two.streak-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ── Journey chapter geometry fix ── */
@media (max-width: 700px) {
  .ch-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; }
}

.ch-grid {
  grid-template-columns: minmax(0, 454px) minmax(0, 614px);
  align-items: stretch;
}
.ch-copy { align-self: center; }
.ch-art {
  align-self: stretch;
  display: flex;
  align-items: center;
}
.ch-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1536 / 1024;
  object-fit: cover;
}
/* Match the live 72px section padding exactly. */
.ch { padding-block: 72px; }
.journey-intro { padding-block: 88px 24px; }

/* ── Streaks block trim ── */
/* The live page folds these into the single progress note. */
#streaks .hp-report,
#streaks .ref-tail.ref-progress { display: none !important; }

/* Progress note styling from the live .ldp-progress-note (106px tall). */
#streaks .home-strip {
  margin-top: 24px !important;
  padding: 20px 24px !important;
  border-radius: 24px !important;
  background: var(--lp-card-grad) !important;
  border: 1px solid var(--lp-card-border) !important;
  box-shadow: var(--lp-card-shadow) !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
#streaks .home-strip strong { font-size: 15px; }
#streaks .home-strip small,
#streaks .home-strip p { font-size: 13px; color: var(--lp-muted); margin: 0; }
#streaks .home-strip a {
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-tab-active);
  text-decoration: none;
  white-space: nowrap;
}
#streaks .home-strip a:hover { text-decoration: underline; }

/* Keep the grid at the live 24px gutter and tighter rows. */
#streaks .home-two.streak-grid { gap: 24px !important; }
#streaks .home-two.streak-grid > * { padding: 20px !important; }

/* Streak grid children flow two-up, as on the live page. */
#streaks .streak-grid > div {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 20px !important;
  align-content: start;
}
#streaks .streak-grid > div > .home-feature { margin: 0 !important; }
#streaks .streak-grid > div > .ref-fold {
  grid-column: 1 / -1;
  margin: 0 !important;
}
@media (max-width: 760px) {
  #streaks .streak-grid > div { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ── Mock test section balance ── */
#practice-modes .mode-wrap {
  display: block;
}
#practice-modes .mode-heading {
  width: min(800px, 100%) !important;
  max-width: 800px !important;
  margin-inline: auto !important;
  text-align: center !important;
  margin-bottom: 32px !important;
}
#practice-modes .mode-heading h2 {
  font-size: clamp(2rem, 3.9vw, 3.078rem) !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  text-align: center !important;
  margin: 0 0 14px !important;
}
#practice-modes .mode-heading p {
  text-align: center !important;
  margin-inline: auto !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  color: var(--lp-muted) !important;
  max-width: 62ch !important;
}
#practice-modes .mode-heading :is(.mode-kicker, small) {
  text-align: center !important;
  display: block !important;
  margin-inline: auto !important;
}

/* The live section keeps exactly one disclosure open at a time. */
#practice-modes .mode-pair > details + details { margin-top: 12px; }
#practice-modes .mode-pair details > div { padding-top: 12px; }

/* Tighten the stacked blocks so their combined height matches the live block. */
#practice-modes .mode-tabs,
#practice-modes .mode-pair,
#practice-modes .mode-guide,
#practice-modes .mode-track,
#practice-modes .mode-footnote { margin-top: 16px !important; }
#practice-modes .mode-pair { gap: 20px !important; }

/* The screen previews in each mode card are capped to the live proportion. */
#practice-modes .mode-card .home-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 900px) {
  #practice-modes .mode-heading { text-align: start !important; margin-bottom: 22px !important; }
  #practice-modes .mode-heading h2,
  #practice-modes .mode-heading p { text-align: start !important; }
}
/* Rewriter task pills: force the dark chip in every state. */
:root[data-theme="dark"] #rewriter button:not([disabled]),
:root[data-theme="dark"] #rewriter button[aria-pressed="true"],
:root[data-theme="dark"] #rewriter button[aria-pressed="false"],
:root[data-theme="dark"] #rewriter .nx-choices button,
:root[data-theme="dark"] #rewriter details button {
  background: #15141a !important;
  background-image: none !important;
  color: var(--lp-accent-on-dark) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
}
:root[data-theme="dark"] #rewriter button[aria-pressed="false"] {
  color: var(--lp-muted) !important;
  background: rgba(255, 255, 255, .03) !important;
}
/* Rewriter task pills: highest-specificity dark override. */
:root[data-theme="dark"] #rewriter #rewrite-practice .nx-choices button,
:root[data-theme="dark"] #rewriter .nx-group .nx-choices button,
:root[data-theme="dark"] #rewrite-practice .nx-choices button {
  background: #15141a !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  color: var(--lp-muted) !important;
}
:root[data-theme="dark"] #rewriter #rewrite-practice .nx-choices button[aria-pressed="true"],
:root[data-theme="dark"] #rewrite-practice .nx-choices button[aria-pressed="true"] {
  color: var(--lp-accent-on-dark) !important;
  border-color: rgba(231, 183, 162, .38) !important;
}

/* ── Chapter extras ── */
.ch-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}
.ch-inputs > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--lp-line);
  border-radius: 8px;
  background: var(--lp-glass-bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-ink);
}
.ch-inputs svg { width: 15px; height: 15px; color: var(--lp-tab-active); flex: none; }

.ch-note {
  margin: 14px 0 0 !important;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--lp-muted);
}

.ch-steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.ch-steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.ch-steps li > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lp-soft-fill);
  color: var(--lp-tab-active);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ch-steps strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-ink);
  margin-bottom: 3px;
}
.ch-steps p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--lp-muted);
}
/* Timer chips and rewriter task pills in dark. */
:root[data-theme="dark"] #practice-modes .mode-timer,
:root[data-theme="dark"] #practice-modes .mode-timer * {
  background: #15141a !important;
  background-image: none !important;
  color: var(--lp-accent-on-dark) !important;
  border-color: rgba(255, 255, 255, .1) !important;
}
:root[data-theme="dark"] #practice-modes .mode-timer {
  border: 1px solid rgba(255, 255, 255, .1) !important;
}

/* Rewriter task pills sit inside a collapsed disclosure; cover every level. */
:root[data-theme="dark"] #rewriter button,
:root[data-theme="dark"] #rewriter button *,
:root[data-theme="dark"] #rewrite-practice button,
:root[data-theme="dark"] #rewrite-practice button * {
  background-image: none !important;
}
:root[data-theme="dark"] #rewriter .nx-choices button,
:root[data-theme="dark"] #rewrite-practice .nx-choices button {
  background-color: #15141a !important;
  color: var(--lp-muted) !important;
  border-color: rgba(255, 255, 255, .08) !important;
}
:root[data-theme="dark"] #rewriter .nx-choices button[aria-pressed="true"],
:root[data-theme="dark"] #rewrite-practice .nx-choices button[aria-pressed="true"] {
  color: var(--lp-accent-on-dark) !important;
  border-color: rgba(231, 183, 162, .4) !important;
}

/* ── Journey intro must be one centred column ── */
.journey-intro .ch-grid.ch-grid-intro {
  display: block !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: min(var(--lp-measure), calc(100% - 32px)) !important;
  max-width: var(--lp-measure) !important;
  margin-inline: auto !important;
}
.journey-intro .ch-copy.ch-copy-intro {
  width: min(800px, 100%) !important;
  max-width: 800px !important;
  margin-inline: auto !important;
  text-align: center !important;
}
.journey-intro .ch-copy.ch-copy-intro > p {
  margin-inline: auto !important;
  max-width: 62ch !important;
  text-align: center !important;
}
.journey-intro .ch-kicker {
  text-align: center !important;
  margin-inline: auto !important;
}

@media (max-width: 900px) {
  .journey-intro .ch-copy.ch-copy-intro { text-align: start !important; }
  .journey-intro .ch-copy.ch-copy-intro > p,
  .journey-intro .ch-kicker { text-align: start !important; margin-inline: 0 !important; }
}

/* ── Journey heading scale ── */
:is(.ch-copy, .ch-copy-intro) h2 {
  font-size: clamp(2rem, 2.9vw, 2.59rem) !important;
  line-height: 1.35 !important;
  letter-spacing: -.02em !important;
  margin: 0 0 14px !important;
}
.journey-intro .ch-kicker {
  display: block;
  font-size: 11px !important;
  line-height: 1.7 !important;
  margin-bottom: 12px !important;
}
:is(.ch-copy, .ch-copy-intro) > p {
  font-size: 17px !important;
  line-height: 1.65 !important;
}

@media (max-width: 900px) {
  :is(.ch-copy, .ch-copy-intro) h2 { font-size: clamp(1.6rem, 6.4vw, 2.1rem) !important; }
}

/* ── Dark chip mask ── */
/* The runtime rebuilds these controls, so mask the surface as well as
   recolouring it. */
:root[data-theme="dark"] #practice-modes .mode-timer,
:root[data-theme="dark"] #rewriter .nx-choices button {
  position: relative;
  isolation: isolate;
  color: var(--lp-muted) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
}
:root[data-theme="dark"] #practice-modes .mode-timer::before,
:root[data-theme="dark"] #rewriter .nx-choices button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #15141a;
  pointer-events: none;
}
:root[data-theme="dark"] #rewriter .nx-choices button[aria-pressed="true"] {
  color: var(--lp-accent-on-dark) !important;
  border-color: rgba(231, 183, 162, .4) !important;
}
:root[data-theme="dark"] #practice-modes .mode-timer :is(span, svg, small, strong, b) {
  color: inherit !important;
}

/* ── Deterministic dark chips ── */
:root[data-theme="dark"] #practice-modes .mode-timer,
:root[data-theme="dark"] #rewriter .nx-choices button,
:root[data-theme="dark"] #rewrite-practice .nx-choices button {
  background-color: #15141a !important;
  background-image: none !important;
  color: var(--lp-muted) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
}
:root[data-theme="dark"] #practice-modes .mode-timer::before,
:root[data-theme="dark"] #rewriter .nx-choices button::before,
:root[data-theme="dark"] #rewrite-practice .nx-choices button::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  background-color: #15141a !important;
  background-image: none !important;
  pointer-events: none;
}
:root[data-theme="dark"] #practice-modes .mode-timer > *,
:root[data-theme="dark"] #rewriter .nx-choices button > *,
:root[data-theme="dark"] #rewrite-practice .nx-choices button > * {
  position: relative;
  z-index: 1;
}
:root[data-theme="dark"] #rewriter .nx-choices button[aria-pressed="true"],
:root[data-theme="dark"] #rewrite-practice .nx-choices button[aria-pressed="true"] {
  color: var(--lp-accent-on-dark) !important;
  border-color: rgba(231, 183, 162, .4) !important;
}
:root[data-theme="dark"] #practice-modes .mode-timer::after {
  z-index: auto;
}

/* ── No transition on dark chips ── */
:root[data-theme="dark"] #practice-modes .mode-timer,
:root[data-theme="dark"] #rewriter .nx-choices button,
:root[data-theme="dark"] #rewrite-practice .nx-choices button {
  transition: none !important;
}

/* ── Writing feedback mockup ── */
#line-feedback .fb-head { margin-bottom: 32px !important; }

.fb-mockup {
  background: var(--lp-card-grad);
  border: 1px solid var(--lp-card-border);
  border-radius: 24px;
  box-shadow: var(--lp-card-shadow);
  overflow: hidden;
}

.fb-mock-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--lp-line);
}
.fb-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--lp-soft-fill);
  color: var(--lp-muted);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 8px;
}
.fb-mock-header h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--lp-ink);
}
.fb-mock-header p { margin: 0; font-size: 13px; color: var(--lp-muted); }
.fb-score-box { text-align: right; }
.fb-score-box > span:first-child {
  display: block;
  font-size: 11px;
  color: var(--lp-muted);
  margin-bottom: 2px;
}
.fb-score-box strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--lp-ink);
}
.fb-score-box strong .hero-accent {
  background: var(--lp-band-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fb-score-box strong small { font-size: 13px; color: var(--lp-muted); font-weight: 400; }
.fb-score-caption { display: block; font-size: 11px; color: var(--lp-muted); margin-top: 2px; }

.fb-assessment { padding: 22px 26px; border-bottom: 1px solid var(--lp-line); }
.fb-assessment-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.fb-assessment-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-ink);
}
.fb-assessment-head span { font-size: 12px; color: var(--lp-muted); }
.fb-assessment dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.fb-assessment dl > div {
  padding: 14px 16px;
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  background: var(--lp-glass-bg);
}
.fb-assessment dt {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--lp-ink);
  margin-bottom: 4px;
}
.fb-score {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  color: var(--lp-ink);
}
.fb-score span { font-size: 12px; color: var(--lp-muted); font-weight: 400; }
.fb-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--lp-muted); }

.fb-body {
  display: grid;
  grid-template-columns: minmax(0, 557px) minmax(0, 372px);
  gap: 32px;
  padding: 26px;
  align-items: start;
}

.fb-question {
  padding: 16px 18px;
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  background: var(--lp-glass-bg);
  margin-bottom: 18px;
}
.fb-question > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin-bottom: 8px;
}
.fb-question > span svg { width: 14px; height: 14px; }
.fb-question p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--lp-ink); }
.fb-question-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--lp-tab-active);
  text-decoration: none;
}
.fb-question-source:hover { text-decoration: underline; }
.fb-question-source svg { width: 12px; height: 12px; }

.fb-response-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.fb-response-head h4 { margin: 0; font-size: 15px; font-weight: 600; color: var(--lp-ink); }
.fb-response-head span { font-size: 12px; color: var(--lp-muted); }

.fb-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 11.5px;
  color: var(--lp-muted);
}
.fb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fb-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.fb-legend [data-mark="red"] i { background: #d05a4c; }
.fb-legend [data-mark="yellow"] i { background: #d7a53c; }
.fb-legend [data-mark="green"] i { background: #4e8c62; }

.fb-lines { font-size: 14.5px; line-height: 1.75; color: var(--lp-ink); }
.fb-line {
  display: inline;
  cursor: pointer;
  border-radius: 4px;
  padding: 1px 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.fb-line mark {
  background: rgba(78, 140, 98, .16);
  color: inherit;
  border-bottom: 2px solid rgba(78, 140, 98, .5);
  padding: 1px 2px;
  border-radius: 3px;
}
.fb-line[data-mark="yellow"] mark { background: rgba(215, 165, 60, .18); border-bottom-color: rgba(215, 165, 60, .6); }
.fb-line[data-mark="red"] mark { background: rgba(208, 90, 76, .16); border-bottom-color: rgba(208, 90, 76, .6); }
.fb-line:hover { background: var(--lp-soft-fill); }

.fb-aside { min-width: 0; }
.fb-card {
  padding: 16px 18px;
  border: 1px solid var(--lp-line);
  border-left: 3px solid #4e8c62;
  border-radius: 14px;
  background: var(--lp-glass-bg);
}
.fb-location {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin-bottom: 8px;
}
.fb-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #4e8c62;
  margin-bottom: 8px;
}
.fb-status svg { width: 16px; height: 16px; }
.fb-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--lp-ink); }
.fb-card p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--lp-muted); }
.fb-revision {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--lp-line);
}
.fb-revision > span {
  display: block;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin-bottom: 6px;
}
.fb-revision p { color: var(--lp-ink); }

.fb-note-line {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--lp-muted);
  max-width: 92ch;
}

@media (max-width: 980px) {
  .fb-body { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .fb-assessment dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .fb-mock-header { flex-direction: column; }
  .fb-score-box { text-align: left; }
  .fb-assessment dl { grid-template-columns: minmax(0, 1fr); }
}

/* ── Mock test section ── */
#practice-modes .mode-wrap {
  width: min(var(--lp-measure), calc(100% - 32px)) !important;
  max-width: var(--lp-measure) !important;
  margin-inline: auto !important;
}
.mt-head {
  width: min(800px, 100%);
  margin: 0 auto 40px;
  text-align: center;
}
.mt-chapter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lp-muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.mt-chapter > span:first-child {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--lp-line);
  border-radius: 50%;
  font-size: 12px;
  color: var(--lp-tab-active);
}
.mt-head h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.9vw, 3.078rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--lp-ink);
}
.mt-head h2 em {
  display: block;
  font-style: normal;
  color: transparent;
  background: var(--lp-band-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mt-head > p {
  margin: 0 auto;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--lp-muted);
}

.mt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.mt-card {
  padding: 22px;
  border: 1px solid var(--lp-card-border);
  border-radius: 24px;
  background: var(--lp-card-grad);
  box-shadow: var(--lp-card-shadow);
  min-width: 0;
}
.mt-title { margin-bottom: 16px; }
.mt-title > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin-bottom: 8px;
}
.mt-title > span svg { width: 19px; height: 19px; color: var(--lp-tab-active); }
.mt-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--lp-ink);
}
.mt-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--lp-muted); }

.mt-window {
  margin: 0;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--lp-paper);
}
.mt-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--lp-line);
  font-size: 11.5px;
  color: var(--lp-muted);
}
.mt-dots { display: inline-flex; gap: 4px; }
.mt-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-line); }
.mt-action { margin-left: auto; display: inline-flex; }
.mt-action button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--lp-muted);
}
.mt-action button:hover { background: var(--lp-soft-fill); color: var(--lp-ink); }
.mt-action svg { width: 15px; height: 15px; }
.mt-image { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.mt-image img {
  display: block;
  width: 100%;
  aspect-ratio: var(--mt-ratio, 16 / 9);
  object-fit: cover;
  object-position: top left;
}

.mt-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.mt-formats {
  display: grid;
  grid-template-columns: minmax(0, 537px) minmax(0, 489px);
  gap: 48px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--lp-card-border);
  border-radius: 24px;
  background: var(--lp-card-grad);
  box-shadow: var(--lp-card-shadow);
  margin-bottom: 24px;
}
.mt-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin-bottom: 10px;
}
.mt-formats h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--lp-ink);
}
.mt-formats h3 em {
  font-style: normal;
  color: transparent;
  background: var(--lp-band-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mt-formats p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--lp-muted); }

.mt-fine-print {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--lp-muted);
  max-width: 92ch;
}

@media (max-width: 900px) {
  .mt-head { text-align: start; }
  .mt-grid, .mt-choices { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mt-formats { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 18px; }
  .mt-head h2 { font-size: clamp(1.7rem, 6.2vw, 2.2rem); }
}

/* ── Testimonial grid ── */
/* The live testimonial grid: four 457px columns with a 16px gap. */
.st-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 24px;
}
.st-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px !important;
  border: 1px solid var(--lp-card-border) !important;
  border-radius: 20px !important;
  background: var(--lp-card-grad) !important;
  box-shadow: var(--lp-card-shadow) !important;
  min-width: 0;
}
.st-card.is-featured { border-color: rgba(198, 66, 50, .32); }
.st-stars {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-muted);
}
.st-stars span { color: #c8912f; letter-spacing: .06em; }
.st-card .st-quote {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: var(--lp-ink) !important;
}
.st-card p {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: var(--lp-muted) !important;
}
.st-card small {
  margin-top: auto;
  padding-top: 8px;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--lp-tab-active);
}

@media (max-width: 1100px) {
  .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 820px) {
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 540px) {
  .st-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ── Library shelf ── */
#free-lessons .ref-topics {
  display: grid !important;
  grid-template-columns: 224px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: center;
  width: 100%;
}
.lib-shelf-label { min-width: 0; }
.lib-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin-bottom: 4px;
}
.lib-shelf-label p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--lp-ink);
}
.lib-module-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}
.lib-module-links .ref-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-ink);
  text-decoration: none;
}
.lib-module-links .ref-link:hover { color: var(--lp-tab-active); }

@media (max-width: 760px) {
  #free-lessons .ref-topics { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
}

/* ── Streaks progress note ── */
.sc-note {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--lp-card-border);
  border-radius: 24px;
  background: var(--lp-card-grad);
  box-shadow: var(--lp-card-shadow);
  margin-top: 24px;
}
.sc-note > svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--lp-tab-active);
}
.sc-note > div { flex: 1; min-width: 0; }
.sc-note h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-ink);
}
.sc-note p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--lp-muted); }
.sc-note-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--lp-tab-active);
  text-decoration: none;
  white-space: nowrap;
}
.sc-note-link:hover { text-decoration: underline; }
.sc-note-link svg { width: 16px; height: 16px; }

@media (max-width: 700px) {
  .sc-note { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px; }
}

/* ── Header parity ── */
.site-header .bar {
  gap: 20px;
  padding: 10px 14px 10px 24px;
  max-width: min(1140px, calc(100% - 32px)) !important;
}
.site-header .bar > nav { gap: 4px !important; }

/* The live header shows the wordmark image, not a text logo. */
.site-header .brand {
  gap: 12px;
  width: 94px;
  height: 29px;
  flex: none;
  margin-inline: 0 !important;
}
/* Branding stays IELTSNex on every page: the local wordmark is used, and the
   live raster logo is never shown. */
.site-header .brand img { display: none !important; }
.site-header .brand span { display: inline; }

/* Group triggers: Practice / AI tools / Learn. */
.site-header .bar > nav button.navbtn {
  padding-inline: 12px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.03em;
  color: var(--lp-muted);
}
.site-header .bar > nav button.navbtn:hover { color: var(--lp-ink); background: var(--lp-soft-fill); }

/* Plain links: Pricing / About. */
.site-header .bar > nav a.navbtn {
  padding-inline: 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -.03em;
  color: var(--lp-ink);
  gap: 6px;
}
.site-header .bar > nav a.navbtn:hover { background: var(--lp-soft-fill); }

/* Right-hand actions. */
.site-header .tools { gap: 12px !important; }
.site-header .tools .primary {
  min-height: 49px !important;
  padding: 12px 22px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: -.03em !important;
  border-radius: 11px !important;
  box-shadow: none !important;
  border-color: rgba(255, 140, 122, .4) !important;
}
.site-header .tools .login {
  font-size: 14px;
  font-weight: 400;
  color: #6b5e6a;
  padding: 0;
}
.site-header .tools .tool { border-radius: 12px !important; }
.site-header [data-theme-button] {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: rgba(110, 53, 73, .016) !important;
  border-color: rgba(78, 50, 48, .094) !important;
  color: #92503e !important;
}

/* The live header shows the language name, not a glyph. */
.navigation-language-icon {
  font-size: 13px !important;
  color: var(--lp-ink) !important;
}

@media (max-width: 900px) {
  .site-header .bar { padding: 8px 12px 8px 16px; }
  .site-header .brand { width: auto; height: auto; }
  .site-header .brand img { width: 78px; height: 24px; }
}

/* ── Header fit ── */
@media (max-width: 1180px) {
  .site-header .bar { gap: 12px; }
  .site-header .tools { gap: 8px !important; }
  .site-header .bar > nav { gap: 0 !important; }
  .site-header .bar > nav button.navbtn { padding-inline: 8px; }
  .site-header .bar > nav a.navbtn { padding-inline: 8px; }
  .site-header .tools .primary { padding-inline: 16px !important; }
  .navigation-region .tool { min-width: 56px; }
}

@media (max-width: 980px) {
  .site-header .bar > nav a.navbtn { padding-inline: 6px; }
  .site-header .tools .login { display: none; }
  .site-header .tools .primary { min-height: 44px !important; padding: 10px 14px !important; font-size: 14px !important; }
  .site-header .brand img { width: 80px; height: 25px; }
}

@media (max-width: 840px) {
  .site-header .bar { gap: 8px; }
  .site-header .tools .primary { display: none; }
  .site-header .bar > nav { display: none; }
}

/* ── Marketing header collapse ── */
@media (max-width: 840px) {
  :is([data-marketing-page], [data-about-page], [data-pricing-page]) .bar > nav {
    display: none !important;
  }
  :is([data-marketing-page], [data-about-page], [data-pricing-page]) .brand img {
    width: 80px !important;
    height: 25px !important;
  }
  :is([data-marketing-page], [data-about-page], [data-pricing-page]) .tools .primary {
    display: none !important;
  }
}

/* ── Pricing free band and guarantee note ── */
.pricing-free-band {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 26px;
  border: 1px solid var(--lp-card-border);
  border-radius: 24px;
  background: var(--lp-card-grad);
  box-shadow: var(--lp-card-shadow);
  margin-bottom: 28px;
}
.pricing-free-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--lp-soft-fill);
  color: var(--lp-tab-active);
}
.pricing-free-icon svg { width: 24px; height: 24px; }
.pricing-free-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin-bottom: 6px;
}
.pricing-free-copy h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--lp-ink);
}
.pricing-free-copy p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--lp-muted); }
.pricing-free-action {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pricing-free-action > span { font-size: 13px; color: var(--lp-muted); white-space: nowrap; }
.pricing-free-action strong { font-size: 22px; font-weight: 600; color: var(--lp-ink); }
.pricing-free-action a.secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--lp-line);
  border-radius: 11px;
  background: transparent;
  color: var(--lp-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.pricing-free-action a.secondary:hover { border-color: var(--lp-tab-active); }
.pricing-free-action a.secondary svg { width: 16px; height: 16px; }

.pricing-guarantee-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  border: 1px solid var(--lp-card-border);
  border-radius: 24px;
  background: var(--lp-card-grad);
  box-shadow: var(--lp-card-shadow);
  margin-bottom: 28px;
}
.pricing-guarantee-note > svg { color: var(--lp-tab-active); }
.pricing-guarantee-note h2 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 500;
  color: var(--lp-ink);
}
.pricing-guarantee-note p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--lp-muted); }
.pricing-guarantee-note .pricing-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--lp-tab-active);
  text-decoration: none;
  white-space: nowrap;
}
.pricing-guarantee-note .pricing-text-link:hover { text-decoration: underline; }
.pricing-guarantee-note .pricing-text-link svg { width: 16px; height: 16px; }

@media (max-width: 820px) {
  .pricing-free-band { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .pricing-free-action { grid-column: 1 / -1; justify-content: flex-start; }
  .pricing-guarantee-note { grid-template-columns: 24px minmax(0, 1fr); gap: 14px; }
  .pricing-guarantee-note .pricing-text-link { grid-column: 1 / -1; }
}

/* ── Scroll reveal (homepage only — other pages have no reveal script) ── */
body[data-reveal-page] main > section,
.home-heading,
.plan-spread,
.home-card,
.st-card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s cubic-bezier(.16, 1, .3, 1),
              transform .5s cubic-bezier(.16, 1, .3, 1);
}
main > section.home-revealed,
.home-heading.home-revealed,
.plan-spread.home-revealed,
.home-card.home-revealed,
.st-card.home-revealed {
  opacity: 1;
  transform: none;
}

/* Stagger the cards inside a grid. */
.home-two .home-card:nth-child(2),
.st-grid .st-card:nth-child(2) { transition-delay: .06s; }
.home-two .home-card:nth-child(3),
.st-grid .st-card:nth-child(3) { transition-delay: .12s; }
.st-grid .st-card:nth-child(4) { transition-delay: .06s; }
.st-grid .st-card:nth-child(5) { transition-delay: .12s; }
.st-grid .st-card:nth-child(6) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  main > section,
  .home-heading,
  .plan-spread,
  .home-card,
  .st-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Pricing hero ── */
.pricing-hero {
  padding: 96px 0 48px;
  text-align: center;
}
.pricing-hero-inner {
  width: min(var(--lp-measure), calc(100% - 32px));
  margin-inline: auto;
}
.pricing-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--lp-ink);
  text-wrap: balance;
}
.pricing-hero h1 em {
  font-style: normal;
  color: transparent;
  background: var(--lp-band-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root[data-theme="dark"] .pricing-hero h1 em {
  color: var(--lp-accent-on-dark);
  background: linear-gradient(90deg, var(--lp-accent-on-dark), var(--lp-accent-on-dark));
  -webkit-background-clip: text;
  background-clip: text;
}
.pricing-hero-lead {
  margin: 0 auto;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--lp-muted);
}

@media (max-width: 900px) {
  .pricing-hero { padding: 56px 0 32px; text-align: start; }
  .pricing-hero h1 { font-size: clamp(1.8rem, 6.4vw, 2.4rem); }
  .pricing-hero-lead { margin-inline: 0; font-size: 16px; }
}

/* ── Testimonial profile line ── */
.st-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--lp-line);
}
.st-profile i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--lp-soft-fill);
  color: var(--lp-tab-active);
  font-size: .72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .02em;
}
.st-profile > div { min-width: 0; }
.st-profile b {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--lp-ink);
  line-height: 1.3;
}
.st-profile small {
  display: block;
  font-size: .72rem;
  color: var(--lp-muted);
  line-height: 1.3;
}

/* ── Testimonial grid measure ──
   The live section uses the site's 1140px measure, giving 457px cards in a
   four-column grid. */
/* The live testimonial section uses the full 1140px measure with no extra
   inner padding, so the four cards land on 273px each. */
#learner-stories {
  max-width: 1140px !important;
  width: min(1140px, calc(100% - 32px)) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}
#learner-stories .home-inner {
  max-width: none !important;
  width: 100% !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}
#learner-stories .st-grid {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}

/* ── Closing panel ── */
.closing-band {
  width: min(var(--lp-measure), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 64px;
}
.closing-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 640px;
  margin-inline: auto;
  padding: 80px 32px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .067), rgba(0, 0, 0, 0) 36%),
    linear-gradient(170deg, rgba(30, 27, 31, .88), rgba(16, 15, 19, .94));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .13);
  text-align: center;
}
.closing-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(at 50% 100%, rgba(189, 70, 53, .18), rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}
.closing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #e7b7a2;
}
.closing-eyebrow > span:first-child { display: inline-grid; place-items: center; }
.closing-eyebrow svg { width: 18px; height: 18px; }
.closing-panel h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #fff;
}
.closing-panel h2 em {
  display: inline;
  font-style: normal;
  color: transparent;
  background: var(--lp-band-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.closing-panel > p {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.65;
  color: #a1a1aa;
}
.closing-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 11px;
  background: linear-gradient(#f74b49, #dd282f);
  border: 1px solid rgba(255, 140, 122, .4);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.closing-cta:hover { filter: brightness(.94); }
.closing-cta svg { width: 17px; height: 17px; }
.closing-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #a1a1aa;
}
.closing-note svg { width: 14px; height: 14px; color: #4e8c62; }

@media (max-width: 900px) {
  .closing-panel { padding: 56px 20px; }
}

/* ── Closing panel: match the live 452px height ── */
.closing-band { padding: 0 0 48px; }
.closing-panel {
  max-width: 640px;
  padding: 56px 32px;
  gap: 16px;
}
.closing-panel h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.closing-panel > p { font-size: 14.5px; }

/* ── Testimonial card: the live card is 380px tall ── */
.st-card {
  gap: 8px;
  padding: 20px !important;
}
.st-card .st-quote {
  font-size: 15px !important;
  font-weight: 500;
  line-height: 1.45 !important;
}
.st-card p:not(.st-quote) {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
}
.st-card small {
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.st-profile { padding-top: 12px; }

/* ── Feedback mockup sizing ──
   Live: the mockup header is 204px, the assessment grid 261px and the body
   1213px, giving a 1679px card. */
#line-feedback .fb-mock-header { padding: 22px 26px; gap: 24px; }
#line-feedback .fb-mock-header h3 { font-size: 20px; }
#line-feedback .fb-assessment { padding: 22px 26px; }
#line-feedback .fb-body { padding: 26px; gap: 32px; }
#line-feedback .fb-question { padding: 18px 20px; margin-bottom: 20px; }
#line-feedback .fb-lines { font-size: 15px; line-height: 1.8; }
#line-feedback .fb-card { padding: 18px 20px; }
#line-feedback .fb-card h3 { font-size: 15.5px; }
#line-feedback .fb-card p { font-size: 13.5px; }
/* ── Testimonial cards: live structure ──
   Live: a 223px heading, a four-column 273px grid and a 44px footer line.
   Each card carries a rating, a quote title, a quote body, a focus tag and
   a profile row with initials, name, city and a band chip. */
#learner-stories .st-head {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}
#learner-stories .st-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.02em;
  color: var(--lp-ink);
}
#learner-stories .st-head h2 em {
  font-style: normal;
  color: transparent;
  background: var(--lp-band-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#learner-stories .st-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--lp-muted);
}

#learner-stories .st-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px !important;
  border: 1px solid var(--lp-line);
  border-radius: 20px;
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-sm);
}
#learner-stories .st-card.is-featured {
  border-color: rgba(189, 70, 53, .32);
  background: var(--lp-surface-strong);
}
#learner-stories .st-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--lp-ink);
}
#learner-stories .st-stars > span[aria-hidden] {
  letter-spacing: 1px;
  color: #e0a33c;
}
#learner-stories .st-stars strong { font-weight: 600; }
#learner-stories .st-card blockquote {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#learner-stories .st-quote {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--lp-ink);
}
#learner-stories .st-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--lp-muted);
}
#learner-stories .st-focus {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  background: var(--lp-soft-fill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--lp-tab-active);
}
#learner-stories .st-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--lp-line);
}
#learner-stories .st-profile > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--lp-soft-fill);
  color: var(--lp-tab-active);
  font-size: .72rem;
  font-style: normal;
  font-weight: 700;
}
#learner-stories .st-person { min-width: 0; flex: 1; }
#learner-stories .st-person strong {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--lp-ink);
  line-height: 1.3;
}
#learner-stories .st-person small {
  display: block;
  font-size: .72rem;
  color: var(--lp-muted);
  line-height: 1.3;
}
#learner-stories .st-band {
  display: grid;
  place-items: center;
  min-width: 40px;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(78, 140, 98, .34);
  background: rgba(78, 140, 98, .12);
  color: #4e8c62;
}
#learner-stories .st-band strong { font-size: .82rem; font-weight: 700; }

#learner-stories .st-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
#learner-stories .st-foot p {
  margin: 0;
  font-size: 14px;
  color: var(--lp-muted);
}
#learner-stories .st-foot-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-tab-active);
  text-decoration: none;
}
#learner-stories .st-foot-link svg { width: 15px; height: 15px; }
/* ── Feedback preview: live structure ──
   Live: a Writing/Speaking toolbar, a 204px mock header, a 261px assessment
   grid and a body with the question, a 14-line passage and a feedback card
   that carries the line number, criterion, status, improved version and
   the reason. */
#line-feedback .fb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
#line-feedback .fb-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#line-feedback .fb-switch button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  background: transparent;
  color: var(--lp-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
#line-feedback .fb-switch button.is-active {
  border-color: var(--lp-tab-active);
  background: var(--lp-soft-fill);
  color: var(--lp-ink);
}
#line-feedback .fb-switch svg { width: 16px; height: 16px; }
#line-feedback .fb-toolbar > p {
  margin: 0;
  font-size: 13.5px;
  color: var(--lp-muted);
}

#line-feedback .fb-mock-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--lp-line);
}
#line-feedback .fb-badge {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--lp-muted);
}
#line-feedback .fb-mock-header h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  color: var(--lp-ink);
}
#line-feedback .fb-mock-header p {
  margin: 0;
  font-size: 13px;
  color: var(--lp-muted);
}
#line-feedback .fb-score-box {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}
#line-feedback .fb-score-box > span:first-child {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--lp-muted);
}
#line-feedback .fb-score-box strong {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--lp-ink);
}
#line-feedback .fb-score-box strong small {
  font-size: 15px;
  font-weight: 500;
  color: var(--lp-muted);
}
#line-feedback .fb-score-caption { font-size: 11.5px; color: var(--lp-muted); }

#line-feedback .fb-assessment {
  padding: 22px 26px;
  border-bottom: 1px solid var(--lp-line);
}
#line-feedback .fb-assessment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
#line-feedback .fb-assessment-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-ink);
}
#line-feedback .fb-assessment-head span { font-size: 12.5px; color: var(--lp-muted); }
#line-feedback .fb-assessment dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
#line-feedback .fb-assessment dl > div {
  padding: 14px;
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  background: var(--lp-soft-fill);
}
#line-feedback .fb-assessment dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-ink);
}
#line-feedback .fb-assessment .fb-score {
  margin: 4px 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--lp-tab-active);
}
#line-feedback .fb-assessment .fb-score span {
  font-size: 12px;
  font-weight: 500;
  color: var(--lp-muted);
}
#line-feedback .fb-assessment .fb-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--lp-muted);
}

#line-feedback .fb-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 28px;
  padding: 26px;
}
#line-feedback .fb-question {
  padding: 18px 20px;
  margin-bottom: 22px;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  background: var(--lp-soft-fill);
}
#line-feedback .fb-question > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--lp-muted);
}
#line-feedback .fb-question svg { width: 14px; height: 14px; }
#line-feedback .fb-question p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--lp-ink);
}
#line-feedback .fb-question-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--lp-tab-active);
  text-decoration: none;
}
#line-feedback .fb-question-source svg { width: 12px; height: 12px; }

#line-feedback .fb-response-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
#line-feedback .fb-response-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-ink);
}
#line-feedback .fb-response-head span { font-size: 12.5px; color: var(--lp-muted); }
#line-feedback .fb-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
#line-feedback .fb-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--lp-muted);
}
#line-feedback .fb-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(78, 140, 98, .5);
}
#line-feedback .fb-legend [data-mark="yellow"] i { background: rgba(215, 165, 60, .5); }
#line-feedback .fb-legend [data-mark="red"] i { background: rgba(208, 90, 76, .5); }

#line-feedback .fb-lines {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--lp-ink);
}
#line-feedback .fb-lines p { margin: 0 0 16px; }
#line-feedback .fb-lines p:last-child { margin-bottom: 0; }
#line-feedback .fb-line {
  border-radius: 6px;
  cursor: pointer;
}
#line-feedback .fb-line mark {
  background: rgba(78, 140, 98, .16);
  border-bottom: 2px solid rgba(78, 140, 98, .55);
  border-radius: 3px;
  padding: 0 2px;
}
#line-feedback .fb-line[data-mark="yellow"] mark {
  background: rgba(215, 165, 60, .18);
  border-bottom-color: rgba(215, 165, 60, .6);
}
#line-feedback .fb-line[data-mark="red"] mark {
  background: rgba(208, 90, 76, .16);
  border-bottom-color: rgba(208, 90, 76, .6);
}
#line-feedback .fb-line:hover { background: var(--lp-soft-fill); }

#line-feedback .fb-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  background: var(--lp-surface);
}
#line-feedback .fb-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--lp-muted);
}
#line-feedback .fb-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4e8c62;
}
#line-feedback .fb-status svg { width: 16px; height: 16px; }
#line-feedback .fb-card h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--lp-ink);
}
#line-feedback .fb-card > p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--lp-muted);
}
#line-feedback .fb-revision {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(78, 140, 98, .28);
  background: rgba(78, 140, 98, .08);
}
#line-feedback .fb-revision > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #4e8c62;
}
#line-feedback .fb-revision svg { width: 14px; height: 14px; }
#line-feedback .fb-revision > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--lp-ink);
}
#line-feedback .fb-revision-reason {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(78, 140, 98, .2);
}
#line-feedback .fb-revision-reason > span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--lp-muted);
}
#line-feedback .fb-revision-reason p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--lp-muted);
}
#line-feedback .fb-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--lp-muted);
}
#line-feedback .fb-hint svg { width: 14px; height: 14px; }
#line-feedback .fb-note-line {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--lp-muted);
}

@media (max-width: 900px) {
  #line-feedback .fb-body { grid-template-columns: minmax(0, 1fr); }
  #line-feedback .fb-assessment dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #line-feedback .fb-assessment dl { grid-template-columns: minmax(0, 1fr); }
}
/* ── Feedback preview: live measurements ──
   Live: 117px heading, 204px mock header, 261px assessment and a 1085px
   body with a 14-line passage. */
#line-feedback .fb-head {
  max-width: 931px;
  margin-bottom: 22px;
}
#line-feedback .fb-head .ed-copy { max-width: 520px; }
#line-feedback .fb-head h2 {
  font-size: 34px;
  line-height: 1.2;
}
#line-feedback .fb-head > p {
  max-width: 420px;
  font-size: 14.5px;
  line-height: 1.6;
}
#line-feedback .fb-mock-header {
  padding: 30px 30px;
  align-items: center;
}
#line-feedback .fb-mock-header h3 { font-size: 22px; }
#line-feedback .fb-mock-header p { font-size: 13.5px; }
#line-feedback .fb-score-box strong { font-size: 34px; }
#line-feedback .fb-score-box > span:first-child { font-size: 11px; }

#line-feedback .fb-assessment { padding: 26px 30px; }
#line-feedback .fb-assessment dl > div { padding: 18px; }
#line-feedback .fb-assessment dt { font-size: 13px; }
#line-feedback .fb-assessment .fb-score { font-size: 20px; }
#line-feedback .fb-assessment .fb-note { font-size: 12.5px; }

#line-feedback .fb-body { padding: 30px; gap: 32px; }
#line-feedback .fb-question { padding: 22px 24px; }
#line-feedback .fb-question p { font-size: 15px; }
#line-feedback .fb-lines { font-size: 15px; line-height: 2; }
#line-feedback .fb-lines p { margin-bottom: 20px; }
#line-feedback .fb-card { padding: 22px; }
/* ── Streaks section: live structure ──
   Live: a 200px heading, then a 700px two-column layout with the reward
   list on the left and a media window on the right, then a 125px glass
   progress note. */
#streaks .home-heading {
  max-width: 800px;
  margin: 0 0 40px;
  text-align: left;
}
#streaks .home-heading h2 { font-size: 34px; line-height: 1.2; }
#streaks .home-heading > p { font-size: 14.5px; line-height: 1.6; }
#streaks .streak-layout {
  display: grid;
  grid-template-columns: 396px 416px;
  justify-content: space-between;
  gap: 32px;
  align-items: start;
}
#streaks .streak-list {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
#streaks .streak-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
#streaks .streak-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--lp-line);
  background: var(--lp-soft-fill);
  color: var(--lp-tab-active);
}
#streaks .streak-icon svg { width: 16px; height: 16px; }
#streaks .streak-kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--lp-muted);
}
#streaks .streak-list h3 {
  margin: 4px 0 6px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--lp-ink);
}
#streaks .streak-list p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--lp-muted);
}
#streaks .streak-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-tab-active);
  text-decoration: none;
}
#streaks .streak-link svg { width: 16px; height: 16px; }

#streaks .streak-media { display: grid; gap: 12px; }
#streaks .streak-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--lp-muted);
}
#streaks .streak-caption svg { width: 12px; height: 12px; }
#streaks .streak-window {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--lp-line);
  border-radius: 20px;
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-sm);
}
#streaks .streak-window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--lp-line);
  font-size: 12.5px;
  color: var(--lp-muted);
}
#streaks .streak-dots { display: inline-flex; gap: 5px; }
#streaks .streak-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lp-line);
}
#streaks .streak-window img {
  display: block;
  width: 100%;
  height: auto;
}
#streaks .streak-window figcaption {
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--lp-muted);
}
#streaks .streak-media-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--lp-muted);
}

#streaks .streak-note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px solid var(--lp-line);
  border-radius: 20px;
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-sm);
}
#streaks .streak-note > svg { width: 24px; height: 24px; color: var(--lp-tab-active); }
#streaks .streak-note h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--lp-ink);
}
#streaks .streak-note p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--lp-muted);
}
#streaks .streak-note-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-tab-active);
  text-decoration: none;
  white-space: nowrap;
}
#streaks .streak-note-link svg { width: 16px; height: 16px; }

#streaks .home-strip { margin-top: 20px; }

@media (max-width: 900px) {
  #streaks .streak-layout { grid-template-columns: minmax(0, 1fr); }
  #streaks .streak-note { grid-template-columns: 24px minmax(0, 1fr); }
  #streaks .streak-note-link { grid-column: 2; }
}
/* ── Practice modes: live measurements ── */
#practice-modes .mt-head {
  max-width: 800px;
  margin-bottom: 24px;
}
#practice-modes .mt-head h2 { font-size: 34px; line-height: 1.2; }
#practice-modes .mt-head > p { font-size: 14.5px; line-height: 1.6; }
#practice-modes .mt-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 31px;
}
#practice-modes .mt-card { min-height: 597px; }
#practice-modes .mt-title { min-height: 150px; }
#practice-modes .mt-choices { margin-top: 28px; }
#practice-modes .mt-formats { margin-top: 28px; }
#practice-modes .mt-fine-print {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.5;
}
/* ── Question types: live measurements ── */
#question-types .drill-head {
  max-width: 800px;
  margin-bottom: 30px;
}
#question-types .drill-head h2 { font-size: 34px; line-height: 1.2; }
#question-types .drill-head > p { font-size: 14.5px; line-height: 1.6; }
#question-types .drill-spread {
  grid-template-columns: minmax(0, 1fr) 386px;
  gap: 32px;
  align-items: start;
}
#question-types .drill-library { align-self: start; }
#question-types .drill-tabs { min-height: 58px; }
#question-types .drill-tabs > * { min-height: 44px; }
#question-types .drill-panels { min-height: 0; }
#question-types .drill-library > .home-media { display: none; }
#question-types .drill-gloss {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}
#question-types .drill-gloss .home-media { order: 4; }
#question-types .drill-gloss .home-media img { max-height: 260px; object-fit: cover; }
#question-types .drill-gloss h3 { font-size: 19px; }
#question-types .drill-gloss > p { font-size: 14px; line-height: 1.6; }
/* ── Practice-mode chooser (live details) ──
   Live shows this as a collapsed 58px row that opens into the two mode
   selection screenshots. */
#practice-modes .mt-choices {
  margin-top: 26px;
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-sm);
}
#practice-modes .mt-choices > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 16px 20px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-ink);
  list-style: none;
}
#practice-modes .mt-choices > summary::-webkit-details-marker { display: none; }
#practice-modes .mt-choices > summary::marker { content: ""; }
#practice-modes .mt-choices > summary svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--lp-muted);
  transition: transform .18s ease;
}
#practice-modes .mt-choices[open] > summary svg { transform: rotate(180deg); }
#practice-modes .mt-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 4px 20px 20px;
}
@media (max-width: 760px) {
  #practice-modes .mt-choice-grid { grid-template-columns: minmax(0, 1fr); }
}
/* ── Rewriter: live measurements ── */
#rewriter .ref-intro {
  max-width: 800px;
  margin-bottom: 30px;
}
#rewriter .ref-intro h2 { font-size: 34px; line-height: 1.2; }
#rewriter .ref-intro > p { font-size: 14.5px; line-height: 1.6; }
#rewriter .ref-pair {
  grid-template-columns: 486px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
#rewriter .ref-manual { padding-top: 6px; }
#rewriter .ref-manual h3 { font-size: 19px; }
#rewriter .ref-manual p { font-size: 14px; line-height: 1.65; }
#rewriter .ref-tutor {
  grid-template-columns: minmax(0, 1fr) 552px;
  gap: 32px;
  align-items: center;
  margin-top: 28px;
}
#rewriter .ref-tutor .home-media { max-height: 269px; overflow: hidden; }
/* ── Footer: live measurements ──
   Live: 931px inner measure, a 260px brand column beside three 152px link
   columns, a 93px bottom bar and an 82px trademark disclaimer. */
#site-footer {
  border-top: 1px solid var(--lp-line);
  background: var(--lp-surface);
}
#site-footer .home-inner {
  max-width: 1140px;
  margin-inline: auto;
  padding: 48px 0 32px;
}
#site-footer .footer-grid {
  display: grid;
  grid-template-columns: 260px 152px 152px 217px;
  justify-content: space-between;
  gap: 32px;
  align-items: start;
}
#site-footer .footer-brand { max-width: 260px; }
#site-footer .footer-brand p {
  margin: 12px 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--lp-muted);
}
#site-footer .footer-col h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--lp-ink);
}
#site-footer .footer-col .foot-link {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--lp-muted);
  text-decoration: none;
}
#site-footer .footer-col .foot-link:hover { color: var(--lp-tab-active); }
#site-footer .footer-made {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--lp-muted);
}
#site-footer .footer-col .primary,
#site-footer .footer-col .home-button {
  display: inline-flex;
  margin: 10px 0 18px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
}
#site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--lp-line);
}
#site-footer .footer-bottom > div:first-child {
  display: grid;
  gap: 3px;
  font-size: 12.5px;
  color: var(--lp-muted);
}
#site-footer .footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
}
#site-footer .footer-legal a {
  color: var(--lp-muted);
  text-decoration: none;
}
#site-footer .footer-legal a:hover { color: var(--lp-tab-active); }
#site-footer .footer-legal span { color: var(--lp-muted); }

@media (max-width: 980px) {
  #site-footer .home-inner { padding-inline: 16px; }
  #site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}
@media (max-width: 620px) {
  #site-footer .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
/* ── Live type scale ── */
:root {
  --lp-type-h1: 49px;
  --lp-type-h2: 38px;
  --lp-type-h3: 18px;
  --lp-type-kicker: 11px;
  --lp-type-lede: 17px;
  --lp-type-body: 14px;
  --lp-type-quote: 24px;
  --lp-type-small: 13px;
  --lp-track: -.03em;
}

/* Section headings across every homepage band. */
:is(#explore, #streaks, #question-types, #rewriter, #learner-stories,
    #free-lessons, #skills, #study-abroad, #comparison, #pricing, #faq,
    #your-journey, #diagnostic, #study-plan, #daily-practice,
    #practice-modes, #line-feedback, #speaking-partners) :is(h2) {
  font-size: var(--lp-type-h2) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: var(--lp-track) !important;
}

/* Kickers share one size. */
#homepage :is(.home-kicker, .drill-kicker, .nx-kicker, .mt-kicker, .cmp-kicker),
#explore .home-kicker,
#streaks .home-kicker,
#question-types .drill-kicker,
#rewriter .nx-kicker,
#learner-stories .home-kicker,
#free-lessons .home-kicker,
#skills .home-kicker,
#study-abroad .home-kicker,
#comparison .cmp-kicker,
#pricing .home-kicker,
#faq .home-kicker,
#line-feedback .nx-kicker,
#line-feedback .fb-badge,
#line-feedback .fb-location,
#line-feedback .fb-score-box > span:first-child {
  font-size: var(--lp-type-kicker) !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  letter-spacing: var(--lp-track) !important;
}
#streaks .home-kicker,
#explore .home-kicker,
#learner-stories .home-kicker,
#free-lessons .home-kicker,
#skills .home-kicker,
#study-abroad .home-kicker,
#pricing .home-kicker,
#faq .home-kicker {
  font-size: var(--lp-type-kicker) !important;
}

/* The lede under a section heading. */
:is(#explore, #streaks, #question-types, #rewriter, #learner-stories,
    #free-lessons, #skills, #study-abroad, #comparison, #pricing, #faq,
    #line-feedback) .home-heading > p:not(.home-kicker),
:is(#question-types, #rewriter) :is(.drill-head, .ref-intro) > p:not(.drill-kicker) {
  font-size: var(--lp-type-lede) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: -.03em !important;
}

/* Card titles and list copy. */
:is(#streaks, #question-types, #rewriter, #explore, #skills) :is(h3) {
  font-size: var(--lp-type-h3) !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  letter-spacing: -.03em !important;
}

/* Testimonial typography. */
#learner-stories .st-quote {
  font-size: var(--lp-type-quote) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: -.03em !important;
}
#learner-stories .st-body {
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: -.03em !important;
}

/* Feedback card copy. */
#line-feedback .fb-card h3 {
  font-size: 24px !important;
  font-weight: 550 !important;
  line-height: 1.3 !important;
  letter-spacing: -.02em !important;
}
#line-feedback .fb-lines { font-size: 16px !important; line-height: 1.9 !important; }

/* Footer links. */
#site-footer .footer-col .foot-link {
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: -.03em !important;
}
/* ── Mobile overflow fixes ── */

/* The explore tab strip is a horizontal scroller on small screens. */
@media (max-width: 900px) {
  #explore .explore-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  #explore .explore-tabs::-webkit-scrollbar { display: none; }
  #explore .explore-tabs > * { flex: 0 0 auto; }
}

/* The question-types spread collapses to one column below 900px. */
@media (max-width: 900px) {
  #question-types .drill-spread { grid-template-columns: minmax(0, 1fr); }
  #question-types .drill-gloss { width: auto; max-width: 100%; }
}

/* The streaks media column is desktop-only. */
@media (max-width: 900px) {
  #streaks .streak-layout { grid-template-columns: minmax(0, 1fr); }
  #streaks .streak-window { max-width: 100%; }
}

/* The rewriter media column is desktop-only. */
@media (max-width: 900px) {
  #rewriter .ref-pair,
  #rewriter .ref-tutor { grid-template-columns: minmax(0, 1fr); }
}

/* The feedback body is desktop-only. */
@media (max-width: 900px) {
  #line-feedback .fb-body { grid-template-columns: minmax(0, 1fr); }
}

/* The testimonial grid is four columns on desktop, two on tablet, one on phone. */
@media (max-width: 900px) {
  #learner-stories .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 620px) {
  #learner-stories .st-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
/* ── Testimonial card internals (live) ──
   Live: 20px rating, 72px quote title, 96px quote body, 37px focus chip,
   58px profile row inside a 380px card. */
#learner-stories .st-card {
  gap: 10px !important;
  margin: 0 !important;
  padding: 20px !important;
}
#learner-stories .st-card blockquote {
  gap: 0 !important;
  margin: 0 !important;
}
#learner-stories .st-card .st-quote {
  margin: 0 !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: -.03em !important;
  color: var(--lp-ink);
}
#learner-stories .st-card .st-body {
  margin: 4px 0 0 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: -.03em !important;
  color: var(--lp-muted);
}
#learner-stories .st-card .st-stars {
  height: 20px;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}
#learner-stories .st-card .st-focus {
  height: 37px;
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 12px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}
#learner-stories .st-card .st-profile {
  height: 58px;
  margin: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
#learner-stories .st-card .st-person strong { font-size: 16px !important; }
#learner-stories .st-card .st-person small { font-size: 13px !important; }

/* Keep the closing line light. */
#learner-stories .st-foot p {
  font-size: 14px !important;
  line-height: 1.5 !important;
  letter-spacing: -.01em !important;
}
/* ── AI tool bands (live structure) ──
   Live #features: a centred 800px heading, then a 486px media window beside
   a 405px numbered copy column, then a tutor card with 380px copy and a
   437px window. Live #speaking-partner: a centred heading, a 931px demo
   player, then a six-card partner grid.
   All figures sit inside the site's 1140px measure with a 931px inner. */

.aix-band {
  width: min(1316px, calc(100% - 32px));
  margin-inline: auto;
  padding: 40px 0 24px;
}
.aix-inner {
  max-width: 931px;
  margin-inline: auto;
}
.aix-head {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}
.aix-kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--lp-muted);
}
.aix-head h2,
.aix-head h1 {
  margin: 0 0 14px;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--lp-ink);
}
.aix-head h2 em,
.aix-head h1 em {  font-style: normal;
  color: transparent;
  background: var(--lp-band-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.aix-head p {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.03em;
  color: var(--lp-muted);
}

/* Media window */
.aix-window {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-sm);
}
.aix-window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--lp-line);
  font-size: 12.5px;
  color: var(--lp-muted);
}
.aix-dots { display: inline-flex; gap: 5px; flex: none; }
.aix-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lp-line);
}
.aix-window img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
}
.aix-window-wide img { max-height: 300px; }
.aix-window figcaption {
  padding: 13px 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--lp-muted);
}

/* Writer band */
.aix-writer-layout {
  display: grid;
  grid-template-columns: 486px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.aix-writer-copy { display: grid; gap: 22px; align-content: start; }
.aix-mode-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--lp-muted);
}
.aix-mode h3,
.aix-writer-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.03em;
  color: var(--lp-ink);
}
.aix-mode p,
.aix-writer-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -.03em;
  color: var(--lp-muted);
}
.aix-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: start;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-tab-active);
  text-decoration: none;
}
.aix-text-link svg { width: 16px; height: 16px; }

/* Tutor card */
.aix-tutor-wrap { margin-top: 28px; }
.aix-tutor-card {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--lp-line);
  border-radius: 20px;
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-sm);
}
.aix-tutor-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.03em;
  color: var(--lp-ink);
}
.aix-tutor-copy p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -.03em;
  color: var(--lp-muted);
}

/* Speaking partner band */
.aix-partner-demo {
  margin: 0 0 32px;
}
.aix-partner-demo-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.aix-partner-demo-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--lp-ink);
}
.aix-partner-demo-head p {
  margin: 0;
  font-size: 14px;
  color: var(--lp-muted);
}
.aix-partner-player {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lp-line);
  border-radius: 20px;
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-sm);
}
.aix-partner-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 24px;
  padding: 26px;
}
.aix-partner-label {
  display: block;
  margin-bottom: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--lp-muted);
}
.aix-partner-screen strong {
  display: block;
  margin-bottom: 18px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.03em;
  color: var(--lp-ink);
}
.aix-partner-watch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 11px;
  background: linear-gradient(#f74b49, #dd282f);
  border: 1px solid rgba(255, 140, 122, .4);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.aix-partner-watch small { opacity: .85; }
.aix-partner-screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}
.aix-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.aix-partner-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--lp-line);
  border-radius: 20px;
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-sm);
}
.aix-portrait { position: relative; }
.aix-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.aix-portrait span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(12, 12, 14, .72);
  color: #f4f1ef;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
}
.aix-partner-body { padding: 16px 18px 20px; }
.aix-partner-tag {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--lp-muted);
}
.aix-partner-body h3 {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--lp-ink);
}
.aix-partner-body strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-tab-active);
}
.aix-partner-body p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: -.02em;
  color: var(--lp-muted);
}
.aix-voice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--lp-line);
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--lp-ink);
  cursor: pointer;
}
.aix-voice[aria-pressed="true"] {
  border-color: var(--lp-tab-active);
  color: var(--lp-tab-active);
}
.aix-partner-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.aix-partner-bottom span { font-size: 13px; color: var(--lp-muted); }
.aix-partner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 11px;
  background: linear-gradient(#f74b49, #dd282f);
  border: 1px solid rgba(255, 140, 122, .4);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

/* Tutor page bands */
.aix-tutor-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.aix-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.aix-stat {
  padding: 20px;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  background: var(--lp-surface);
}
.aix-stat h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--lp-ink);
}
.aix-stat p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--lp-muted); }

@media (max-width: 980px) {
  .aix-writer-layout,
  .aix-tutor-card,
  .aix-tutor-layout,
  .aix-partner-screen { grid-template-columns: minmax(0, 1fr); }
  .aix-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aix-stats { grid-template-columns: minmax(0, 1fr); }
  .aix-window img { max-height: 320px; }
}
@media (max-width: 620px) {
  .aix-partner-grid { grid-template-columns: minmax(0, 1fr); }
  .aix-head h2,
  .aix-head h1 { font-size: 30px; }
  .aix-head p { font-size: 16px; }
}
/* ── AI hero copy ── */
.aix-hero { padding-block: 48px 8px; }
.aix-hero-copy { max-width: 760px; }
.aix-display {
  margin: 0 0 14px;
  font-size: 49px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--lp-ink);
}
.aix-display em {
  font-style: normal;
  color: transparent;
  background: var(--lp-band-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.aix-lede {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.03em;
  color: var(--lp-muted);
}
.aix-window-bare { margin-bottom: 24px; }

@media (max-width: 760px) {
  .aix-display { font-size: 34px; }
  .aix-hero { padding-block: 32px 8px; }
}
/* ── Speaking partner band: live measurements ── */
.aix-partner-band .aix-head { margin-bottom: 32px; }
.aix-partner-band .aix-head h2 { font-size: 38px; }

/* Demo: a 931px player with a 300px screen, not a full-bleed poster. */
.aix-partner-demo { margin-bottom: 28px; }
.aix-partner-player { overflow: hidden; }
.aix-partner-screen {
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  padding: 24px 26px;
}
.aix-partner-screen strong { font-size: 24px; margin-bottom: 16px; }
.aix-partner-screen img {
  width: 260px;
  height: 260px;
  aspect-ratio: auto;
  border-radius: 14px;
}

/* Cards: a 4:3 portrait that cannot grow, then a fixed body. */
.aix-partner-grid { gap: 14px; }
.aix-partner-card {
  grid-template-rows: 168px auto;
  align-content: start;
}
.aix-portrait { overflow: hidden; }
.aix-portrait img {
  width: 100%;
  height: 168px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 22%;
}
.aix-portrait span { left: 10px; bottom: 10px; }
.aix-partner-body { padding: 14px 16px 18px; }
.aix-partner-body h3 { font-size: 17px; }
.aix-partner-body p { font-size: 13px; margin-bottom: 12px; }
.aix-voice { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.aix-partner-bottom { margin-top: 20px; }

@media (max-width: 980px) {
  .aix-partner-screen { grid-template-columns: minmax(0, 1fr); }
  .aix-partner-screen img { width: 100%; height: 240px; }
}
/* ── AI screenshots: show the full capture ──
   The dashboard captures are 3024x1592 and 3024x1480. A fixed max-height with
   object-fit: cover clipped the interface, so the window now sizes to the
   image and the image keeps its own aspect ratio. */
.aix-window img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: var(--lp-soft-fill);
}
.aix-window-wide img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
/* Keep the writer window the same height as the live 363px figure. */
.aix-writer-media .aix-window img { max-height: 320px; object-fit: cover; object-position: top; }
@media (max-width: 980px) {
  .aix-writer-media .aix-window img { max-height: none; object-fit: contain; }
}
/* ── Mihu card: live proportions ──
   Live: a 380px copy column beside a 437px window inside a 330px card. */
.aix-tutor-card {
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 32px;
  padding: 22px;
}
.aix-tutor-card .aix-window img {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  object-position: top left;
}
.aix-tutor-card .aix-window figcaption {
  padding: 10px 14px;
  font-size: 12px;
}
@media (max-width: 980px) {
  .aix-tutor-card { grid-template-columns: minmax(0, 1fr); }
  .aix-tutor-card .aix-window img { max-height: none; object-fit: contain; }
}
/* ── AI window sizing: final overrides ── */
.aix-band .aix-writer-media .aix-window img {
  max-height: 320px;
  height: 320px;
  object-fit: cover;
  object-position: top center;
}
.aix-band .aix-tutor-card .aix-window img {
  max-height: 214px;
  height: 214px;
  object-fit: cover;
  object-position: top left;
}
.aix-band .aix-tutor-card {
  padding: 22px;
  gap: 32px;
}
@media (max-width: 980px) {
  .aix-band .aix-writer-media .aix-window img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .aix-band .aix-tutor-card .aix-window img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}
/* ── Live chapter bands (practice pages) ──
   Live #diagnostic, #study-plan and #daily-practice are two-column chapters:
   a 931px inner with a ~560px copy column and a ~430px art or figure. */
.chk-band {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
  padding: 56px 0 40px;
}
.chk-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 72px;
  align-items: center;
}
.chk-head { max-width: 560px; }
.chk-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--lp-muted);
}
.chk-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--lp-line);
  background: var(--lp-soft-fill);
  font-size: 10px;
  font-weight: 700;
}
.chk-head h1,
.chk-head h2 {
  margin: 0 0 16px;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--lp-ink);
}
.chk-head h1 em,
.chk-head h2 em {
  font-style: normal;
  color: transparent;
  background: var(--lp-band-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.chk-head > p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -.02em;
  color: var(--lp-muted);
}
.chk-list {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.chk-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--lp-ink);
}
.chk-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(78, 140, 98, .5);
  background: rgba(78, 140, 98, .16);
}
.chk-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid #4e8c62;
  border-bottom: 1.5px solid #4e8c62;
  transform: rotate(-45deg);
}
.chk-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-tab-active);
  text-decoration: none;
}
.chk-next > span:first-child { font-weight: 600; }
.chk-next svg { width: 15px; height: 15px; }
.chk-art {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--lp-line);
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-sm);
}
.chk-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* Numbered step list used by the daily-practice chapter. */
.chk-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.chk-steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0 12px;
  align-items: start;
  counter-increment: step;
}
.chk-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--lp-line);
  background: var(--lp-soft-fill);
  font-size: 11px;
  font-weight: 700;
  color: var(--lp-tab-active);
  grid-column: 1;
  grid-row: 1 / span 2;
}
.chk-steps strong {
  grid-column: 2;
  display: block;
  margin-bottom: 3px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--lp-ink);
}
.chk-steps span {
  grid-column: 2;
  display: block;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--lp-muted);
}

/* The working form sits under the band on its own surface. */
.chk-band + section,
.chk-band + form {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .chk-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .chk-head { max-width: none; }
  .chk-head h1,
  .chk-head h2 { font-size: 34px; }
  .chk-art { max-width: 480px; }
}
/* ── Practice-mode cards (live) ── */
.chk-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 24px;
}
.chk-mode {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-sm);
}
.chk-mode-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--lp-muted);
}
.chk-mode h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--lp-ink);
}
.chk-mode > p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--lp-muted);
}
.chk-mode .chk-list { margin: 6px 0 0; gap: 8px; }
.chk-mode .chk-list li { font-size: 13px; }

.chk-aside { display: grid; gap: 18px; align-content: start; }
.chk-formats {
  padding: 20px;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  background: var(--lp-soft-fill);
}
.chk-formats h3 {
  margin: 6px 0 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.02em;
  color: var(--lp-ink);
}
.chk-formats p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--lp-muted);
}
.chk-fine {
  max-width: 931px;
  margin: 22px auto 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--lp-muted);
}

.chk-band-live {
  border-bottom: 1px solid var(--lp-line);
  margin-bottom: 8px;
}

.chk-check { padding-top: 8px; }
.chk-check-title {
  margin: 0 auto 20px;
  max-width: 931px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--lp-ink);
}

@media (max-width: 980px) {
  .chk-modes { grid-template-columns: minmax(0, 1fr); }
}
/* ── Speaking-partner band (live) ── */
.sp-band-inner {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
  padding: 56px 0 48px;
}
.chk-head-centre {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}
.chk-head-centre .chk-kicker {
  justify-content: center;
  margin-bottom: 14px;
}
.chk-head-centre > p { margin-bottom: 0; }
.sp-band-live .aix-partner-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sp-band-live .aix-partner-bottom { margin-top: 26px; }

@media (max-width: 980px) {
  .sp-band-inner { padding: 40px 0 36px; }
  .chk-head-centre { margin-bottom: 26px; }
  .sp-band-live .aix-partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .sp-band-live .aix-partner-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ── Targeted-practice band (live) ── */
.chk-tp-inner {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
  padding: 64px 0 56px;
}
.chk-tp-head { max-width: 760px; margin-bottom: 34px; }
.chk-tp-head h2 {
  margin: 12px 0 14px;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--lp-ink);
}
.chk-tp-head h2 em {
  font-style: normal;
  color: transparent;
  background: var(--lp-band-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.chk-tp-head > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -.02em;
  color: var(--lp-muted);
}

.chk-tp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 24px;
  align-items: start;
}
.chk-tp-gallery { display: grid; gap: 14px; }
.chk-tp-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  background: var(--lp-soft-fill);
  width: fit-content;
}
.chk-tp-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 7px 13px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--lp-muted);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.chk-tp-tabs button[aria-pressed="true"] {
  background: var(--lp-surface);
  color: var(--lp-ink);
  box-shadow: var(--lp-shadow-sm);
}
.chk-tp-tabs button:focus-visible {
  outline: 2px solid var(--lp-tab-active);
  outline-offset: 2px;
}
.chk-tp-panes { display: grid; }

.chk-window {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-sm);
}
.chk-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--lp-line);
  background: var(--lp-soft-fill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--lp-muted);
}
.chk-dots { display: inline-flex; gap: 4px; }
.chk-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-line);
}
.chk-window img {
  display: block;
  width: 100%;
  height: auto;
}
.chk-window figcaption {
  padding: 10px 12px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--lp-muted);
}

.chk-tp-note {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--lp-line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--lp-muted);
}

.chk-tp-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-sm);
}
.chk-tp-card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--lp-ink);
}
.chk-tp-card > p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--lp-muted);
}
.chk-tp-card .chk-window { margin-top: 4px; }
.chk-tp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--lp-tab-active);
  text-decoration: none;
}
.chk-tp-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}

@media (max-width: 980px) {
  .chk-tp-inner { padding: 44px 0 40px; }
  .chk-tp-head h2 { font-size: 31px; }
  .chk-tp-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
/* ── AI hero heading size (after the h1 semantics fix) ── */
[data-ai-feature-page] main .aix-head h1,
[data-ai-feature-page] main .aix-head h2,
#rewriter-main .rewrite-hero .aix-head h1,
#rewriter-main .rewrite-hero .aix-head h2,
#partner-main .rewrite-hero .aix-head h1,
#partner-main .rewrite-hero .aix-head h2 {
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.2;
}
@media (max-width: 980px) {
  [data-ai-feature-page] main .aix-head h1,
  [data-ai-feature-page] main .aix-head h2,
  #rewriter-main .rewrite-hero .aix-head h1,
  #rewriter-main .rewrite-hero .aix-head h2,
  #partner-main .rewrite-hero .aix-head h1,
  #partner-main .rewrite-hero .aix-head h2 {
    font-size: 30px;
  }
}
