/* ═══════════════════════════════════════════════════════════════════════════
   Landing page — Easy Laws Academy
   ═══════════════════════════════════════════════════════════════════════════
   Ported from the "ELA Landing Page and Packages" layout-optimization handoff.
   The prototype carried every value as an inline style; the numbers here are
   its numbers. Two things are worth knowing before editing:

   1. The type system is direction-scoped. Arabic is not the Latin layout
      flipped: it swaps the family, drops all tracking and opens the leading.
      Everything reads those choices off the [dir] variables below, so no rule
      further down needs to know which language it is in.

   2. Motion is opt-out everywhere. Each animation has a reduced-motion
      counterpart at the bottom of this file.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────────────────── */

.ela {
  --ela-ink: #14375a;
  --ela-body: #1f2430;
  --ela-heading: #141821;
  --ela-secondary: #5a6472;
  --ela-muted: #7b8492;
  --ela-border: #e9edf2;
  --ela-border-card: #e3e8ef;
  --ela-link: #1f5fd8;
  --ela-gold: #e8bc4e;
  --ela-gold-ink: #8a6716;
  --ela-gold-tint: #fbf1d9;
  --ela-gold-eyebrow: #b08529;
  --ela-accent-blue: #3f74c4;
  --ela-surface: #f7f9fb;

  --ela-shell: 1180px;
  --ela-gutter: clamp(16px, 4vw, 34px);
  --ela-section-y: clamp(44px, 7vw, 80px);

  --hero-art-basis: 420px;
  --hero-art-min-h: 340px;
  --hero-art-top: calc(-1 * clamp(40px, 7vw, 84px));
  --hero-art-bottom: calc(-1 * clamp(44px, 7vw, 88px));
  --hero-art-pos: 56% 46%;

  --nav-links: flex;
  --nav-burger: none;
  --nav-wrap: wrap;
  --logo-w: clamp(118px, 14vw, 148px);
  --lang-display: flex;

  font-family: var(--ui-font);
  color: var(--ela-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* The two breakpoints the design works to: 1000px tightens the hero art,
   780px goes single-column and hands the nav to the burger. */
@media (max-width: 1000px) {
  .ela { --hero-art-basis: 340px; --hero-art-min-h: 300px; }
}
@media (max-width: 780px) {
  .ela {
    --hero-art-basis: 100%;
    --hero-art-min-h: 360px;
    --hero-art-top: 0px;
    --hero-art-pos: 50% 42%;
    --nav-links: none;
    --nav-burger: inline-flex;
    --nav-wrap: nowrap;
    --logo-w: 116px;
    --lang-display: none;
  }
}

/* ── The direction-scoped type system ────────────────────────────────────── */

.ela[dir="ltr"] {
  --ui-font: 'Inter', 'Cairo', system-ui, sans-serif;
  --accent-font: 'Newsreader', Georgia, serif;
  --accent-style: italic;
  --accent-weight: 500;
  --track: .18em;
  --track-sm: .12em;
  --track-xs: .1em;
  --h-track: -.02em;
  --h1-track: -.025em;
  --h-lh: 1.18;
  --h1-lh: 1.12;
  --body-lh: 1.7;
  --hero-flip: scaleX(-1);
  --hero-mask: linear-gradient(to left, transparent 0%, rgba(0,0,0,.6) 3.3%, #000 7%);
}

.ela[dir="rtl"] {
  --ui-font: 'Cairo', system-ui, sans-serif;
  --accent-font: 'Cairo', system-ui, sans-serif;
  --accent-style: normal;
  --accent-weight: 800;
  --track: 0;
  --track-sm: 0;
  --track-xs: 0;
  --h-track: 0;
  --h1-track: 0;
  --h-lh: 1.45;
  --h1-lh: 1.35;
  --body-lh: 1.9;
  --hero-flip: scaleX(1);
  --hero-mask: linear-gradient(to left, transparent 0%, rgba(0,0,0,.6) 3.3%, #000 7%);
}

/* The public pages are full-bleed: the hero, the stats band and the footer all
   run edge to edge, so the browser's default body margin has to go or they sit
   inside an 8px white frame. */
html:has(> body.ela) { margin: 0; padding: 0; }
body.ela { margin: 0; padding: 0; }

.ela *, .ela *::before, .ela *::after { box-sizing: border-box; }
/* The link colour is a floor, not a ceiling. :where() holds it at zero
   specificity so any component below can set its own colour with a single
   class - otherwise ".ela a" (0,1,1) outranks ".ela-cta-gold" (0,1,0) and
   every button that is an <a> comes out link-blue. The prototype got this for
   free: its buttons carried inline styles, which always win. */
.ela a { text-decoration: none; }
:where(.ela a) { color: var(--ela-link); }
:where(.ela a:hover) { color: #2455c9; }
/* The paragraph reset is a floor too (#129). As ".ela p" (0,1,1) it beat every
   single-class rule on a <p>, so the design's spacing under the hero body, the
   package blurb and the testimonial quotes was set and never applied. */
:where(.ela p) { margin: 0; }

/* Package and course names are Arabic in both languages, so they are set in
   Cairo even when the page is running in English. */
.ela-arabic-name { font-family: 'Cairo', system-ui, sans-serif; }

.ela .ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ── Shared furniture ────────────────────────────────────────────────────── */

.ela-shell {
  max-width: var(--ela-shell);
  margin: 0 auto;
  padding: var(--ela-section-y) var(--ela-gutter);
}

.ela-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: var(--track);
  color: var(--ela-gold-eyebrow);
  margin-bottom: 14px;
}

.ela-h2 {
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800;
  letter-spacing: var(--h-track);
  line-height: var(--h-lh);
  color: var(--ela-heading);
  margin: 0 0 14px;
  text-wrap: pretty;
}

/* The one phrase per heading that carries the accent face. */
.ela-accent {
  font-family: var(--accent-font);
  font-style: var(--accent-style);
  font-weight: var(--accent-weight);
  color: var(--ela-accent-blue);
}

.ela-lede {
  font-size: 16px;
  line-height: var(--body-lh);
  color: var(--ela-secondary);
}

.ela-section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 42px); }

.ela-icon-box {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.ela-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--track-xs);
  padding: 3px 9px;
  border-radius: 99px;
  background: #fdf5e4;
  border: 1px solid #f0e0bd;
  color: #96701c;
  white-space: nowrap;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.ela-header {
  background: #fff;
  border-bottom: 1px solid var(--ela-border);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: none;
  transition: box-shadow .24s ease;
}
.ela-header.is-stuck { box-shadow: 0 6px 20px rgba(15,30,50,.08); }

.ela-header-bar {
  max-width: var(--ela-shell);
  margin: 0 auto;
  padding: clamp(12px, 1.6vw, 16px) var(--ela-gutter);
  min-height: 76px;
  display: flex;
  flex-wrap: var(--nav-wrap);
  align-items: center;
  gap: 12px clamp(12px, 3vw, 30px);
}

.ela-burger {
  display: var(--nav-burger);
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #dde3ea;
  background: #fff;
  color: #3b4250;
  flex: none;
  cursor: pointer;
  padding: 0;
}
.ela-burger:hover { background: #f2f5f9; color: var(--ela-body); }

.ela-logo-link { flex: 1 1 0; min-width: 0; display: flex; justify-content: flex-start; }
.ela-logo { width: var(--logo-w); height: auto; display: block; }

.ela-nav {
  flex: 0 0 auto;
  display: var(--nav-links);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px clamp(12px, 2.4vw, 28px);
  min-width: 0;
}
.ela-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ela-secondary);
  white-space: nowrap;
}
.ela-nav a:hover { color: var(--ela-body); }
.ela-nav a[aria-current="page"] { color: var(--ela-body); }

.ela-header-end {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  align-self: center;
  justify-content: flex-end;
  gap: 12px;
}

.ela-lang { display: var(--lang-display); align-items: center; gap: 2px; font-size: 13px; font-weight: 700; }
.ela-lang a { padding: 5px 9px; border-radius: 7px; background: transparent; color: #9aa2ae; }
.ela-lang a.is-on { background: var(--ela-gold-tint); color: var(--ela-gold-ink); }
.ela-lang .ela-lang-en { font-family: 'Inter', sans-serif; }
.ela-lang .ela-lang-ar { font-family: 'Cairo', sans-serif; }

.ela-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 clamp(14px, 2vw, 20px);
  border-radius: 10px;
  background: var(--ela-ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
}
.ela-login:hover { background: #0f2b47; color: #fff; }

.ela-drawer { border-top: 1px solid var(--ela-border); background: #fff; padding: 8px var(--ela-gutter) 16px; }
.ela-drawer a.ela-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 2px;
  border-bottom: 1px solid #f0f3f7;
  font-size: 16px;
  font-weight: 600;
  color: var(--ela-body);
}
.ela-drawer-lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 2px 4px; }
.ela-drawer-lang-label { font-size: 13.5px; font-weight: 600; color: var(--ela-muted); }
.ela-drawer-lang-track { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 99px; background: #f2f5f9; }
.ela-drawer-lang-track a { padding: 7px 14px; border-radius: 99px; color: var(--ela-secondary); font-size: 13px; font-weight: 700; }
.ela-drawer-lang-track a.is-on { background: var(--ela-ink); color: #fff; }
.ela-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  margin-top: 14px;
  border-radius: 10px;
  background: var(--ela-ink);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
}
.ela-drawer-cta:hover { background: #0f2b47; color: #fff; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.ela-hero {
  background: linear-gradient(140deg, #17415f 0%, #2d5f85 55%, #4a80a3 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

/* Aurora wash: two big blurred blobs drifting over the gradient. It should
   read as barely-perceptible movement, not a lava lamp. */
.ela-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ela-aurora span { position: absolute; border-radius: 50%; display: block; }
.ela-aurora-a {
  width: 62%;
  padding-bottom: 62%;
  top: -18%;
  left: -10%;
  background: radial-gradient(circle, rgba(120,190,255,.34), transparent 66%);
  filter: blur(46px);
  animation: elaAuroraA 21s ease-in-out infinite;
}
.ela-aurora-b {
  width: 56%;
  padding-bottom: 56%;
  bottom: -24%;
  right: -6%;
  background: radial-gradient(circle, rgba(232,184,74,.3), transparent 66%);
  filter: blur(52px);
  animation: elaAuroraB 27s ease-in-out infinite;
}

.ela-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--ela-shell);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 84px) var(--ela-gutter) clamp(44px, 7vw, 88px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.ela-hero-copy { flex: 2 1 330px; min-width: 0; max-width: 640px; }

.ela-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  line-height: 1.5;
  border-radius: 99px;
  background: rgba(232,184,74,.16);
  border: 1px solid rgba(232,184,74,.42);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: var(--track-xs);
  color: #f0cd7a;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.ela-hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: var(--h1-track);
  line-height: var(--h1-lh);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.ela-hero h1 .ela-accent { color: #f0cd7a; }

.ela-hero-body {
  font-size: clamp(15.5px, 1.8vw, 18px);
  line-height: var(--body-lh);
  color: rgba(255,255,255,.84);
  margin: 0 0 clamp(26px, 4vw, 34px);
  max-width: 56ch;
  text-wrap: pretty;
}

.ela-hero-ctas { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }

.ela-cta-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  padding: 0 26px;
  border-radius: 11px;
  background: var(--ela-gold);
  color: #2a1e05;
  font-size: 16.5px;
  font-weight: 700;
  white-space: nowrap;
}
.ela-cta-gold:hover { filter: brightness(1.06); color: #2a1e05; }

.ela-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  padding: 0 24px;
  border-radius: 11px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.26);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.ela-cta-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

.ela-cta-navy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  border-radius: 11px;
  background: var(--ela-ink);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
}
.ela-cta-navy:hover { background: #0f2b47; color: #fff; }

/* The illustration bleeds past the section edges and fades out on its inner
   side, so the gradient carries the copy rather than a hard image edge. */
.ela-hero-art {
  flex: 1 1 var(--hero-art-basis);
  min-width: 0;
  align-self: stretch;
  position: relative;
  min-height: var(--hero-art-min-h);
  margin-inline-end: calc(-1 * clamp(10px, 3vw, 48px));
  margin-top: var(--hero-art-top);
  margin-bottom: var(--hero-art-bottom);
}
.ela-hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-art-pos);
  display: block;
  transform: var(--hero-flip);
  pointer-events: none;
  -webkit-mask-image: var(--hero-mask);
  mask-image: var(--hero-mask);
}

/* ── Section reveals ─────────────────────────────────────────────────────── */

.ela-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1);
}
.ela-reveal.is-in { opacity: 1; transform: none; }

/* ── How it works ────────────────────────────────────────────────────────── */

.ela-how { background: var(--ela-surface); border-bottom: 1px solid var(--ela-border); }

.ela-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }

.ela-step {
  background: #fff;
  border: 1px solid var(--ela-border-card);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 26px);
  display: flex;
  flex-direction: column;
}
.ela-step-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ela-step-top .ela-icon-box { width: 42px; height: 42px; }
.ela-step-n { font-family: 'Newsreader', Georgia, serif; font-size: 34px; font-weight: 500; color: var(--ela-border-card); line-height: 1; }
.ela-step h3 { font-size: 17px; font-weight: 700; color: var(--ela-heading); margin: 0 0 8px; }
.ela-step p { font-size: 14px; line-height: var(--body-lh); color: var(--ela-secondary); text-wrap: pretty; }

/* ── Packages ────────────────────────────────────────────────────────────── */

.ela-packages {
  background: var(--ela-surface);
  border-top: 1px solid var(--ela-border);
  border-bottom: 1px solid var(--ela-border);
}
.ela-packages .ela-section-head { margin-bottom: clamp(26px, 4vw, 38px); }

/* Card mode — two to four packages. Three is the production case and gets
   equal stretched columns; two and four are capped and centred so a pair of
   cards doesn't stretch to half the page each. Everything collapses to one
   column under 780px through the minmax floor. */
.ela-pkg-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(290px, 400px)); justify-content: center; }
.ela-pkg-grid.is-three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); justify-content: stretch; }

.ela-pkg-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--ela-border-card);
  border-radius: 18px;
  padding: clamp(18px, 2.4vw, 24px);
  box-shadow: 0 1px 2px rgba(15,30,50,.04);
  transition: transform .25s cubic-bezier(.2,.6,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.ela-pkg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15,30,50,.12);
  border-color: #cdd8e6;
}

.ela-pkg-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 16px; }
.ela-pkg-name { display: block; font-size: 18px; font-weight: 800; color: var(--ela-heading); line-height: 1.45; }
.ela-pkg-bar { display: block; font-size: 12.5px; color: var(--ela-muted); margin-top: 3px; }

.ela-pkg-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 16px; }
.ela-pkg-price-label { font-size: 9.5px; font-weight: 700; letter-spacing: var(--track-sm); color: #8a929e; white-space: nowrap; }
.ela-pkg-price-value { font-size: 20px; font-weight: 800; letter-spacing: var(--h-track); color: var(--ela-heading); white-space: nowrap; }
.ela-pkg-price-per { font-size: 12.5px; color: #8a929e; white-space: nowrap; }

.ela-pkg-label {
  border-top: 1px solid #eef1f6;
  padding-top: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--track-sm);
  color: #6b7280;
  margin-bottom: 12px;
}
.ela-pkg-courses { display: flex; flex-direction: column; gap: 10px; }
.ela-pkg-course { display: flex; align-items: center; gap: 10px; }
.ela-pkg-course .ms { flex: none; font-size: 18px; }
.ela-pkg-course span:last-child { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: #3b4250; line-height: 1.5; }
.ela-pkg-more { font-size: 13px; font-weight: 700; color: var(--ela-accent-blue); margin-top: 12px; }
.ela-pkg-foot { margin-top: auto; padding-top: 20px; }

/* The course list is the one part of a package the CMS cannot fill yet —
   packages carry no content scope. Until they do, say so plainly rather
   than showing an empty card. */
.ela-pending {
  border: 1px dashed #c8d0da;
  border-radius: 12px;
  padding: 16px;
  background: var(--ela-surface);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ela-muted);
  text-wrap: pretty;
}
.ela-pending-block {
  border: 1px dashed #c8d0da;
  border-radius: 14px;
  padding: clamp(22px, 3.4vw, 32px);
  text-align: center;
  background: var(--ela-surface);
}
.ela-pending-block .ms { font-size: 28px; color: #a3adba; display: block; margin-bottom: 10px; }
.ela-pending-title { font-size: 15px; font-weight: 700; color: #3b4250; margin-bottom: 5px; }
.ela-pending-body { font-size: 13.5px; color: var(--ela-muted); }

/* What every package includes — the feature list under the card grid. */
.ela-includes {
  margin-top: clamp(20px, 3vw, 28px);
  background: #fff;
  border: 1.5px solid var(--ela-border-card);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 26px);
}
.ela-includes-label { font-size: 11.5px; font-weight: 700; letter-spacing: var(--track-sm); color: #6b7280; margin-bottom: 16px; }
.ela-includes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 13px 26px; }
.ela-check { display: flex; gap: 11px; align-items: flex-start; }
.ela-check .ms { flex: none; font-size: 19px; color: #1e9e63; margin-top: 1px; }
.ela-check span:last-child { font-size: 14.5px; line-height: 1.6; color: #3b4250; text-wrap: pretty; }

/* Single mode — one package, so the period choice moves onto the card and
   the price follows the selection. The card takes the section's width, with
   what every period includes beside the choice (#109, the client's design);
   on a narrow screen the two stack. The grid follows the page's direction, so
   the Arabic page mirrors it. */
.ela-pkg-single { background: #fff; border: 1.5px solid var(--ela-border-card); border-radius: 18px; overflow: hidden; }
.ela-pkg-single-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: clamp(18px, 2.6vw, 24px); }
.ela-pkg-single-head .ela-icon-box { width: 46px; height: 46px; border-radius: 13px; }
.ela-pkg-single-name { display: block; font-size: clamp(17px, 2.2vw, 20px); font-weight: 800; color: var(--ela-heading); line-height: 1.45; }
.ela-pkg-single-meta { display: block; font-size: 13px; color: var(--ela-muted); margin-top: 3px; }
.ela-pkg-single-body { border-top: 1px solid #eef1f6; padding: clamp(20px, 3vw, 32px); background: #fbfcfe; }
.ela-pkg-single-body.has-includes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
/* No feature list: the choice alone, at the width it reads best at. */
.ela-pkg-single-body:not(.has-includes) .ela-pkg-single-choose { max-width: 560px; margin-inline: auto; }
.ela-pkg-single-label { font-size: 11.5px; font-weight: 700; letter-spacing: var(--track-sm); color: #6b7280; margin-bottom: 12px; }
.ela-checks { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 860px) {
  .ela-pkg-single-body.has-includes { grid-template-columns: minmax(0, 1fr); }
}
.ela-pkg-single-foot { border-top: 1px solid #eef1f6; padding: clamp(20px, 3vw, 28px); background: #fff; }

.ela-periods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.ela-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 18px;
  border: 1.5px solid var(--ela-border-card);
  border-radius: 14px;
  background: #fff;
  width: 100%;
  text-align: start;
  cursor: pointer;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s cubic-bezier(.2,.6,.2,1);
}
.ela-period:hover { border-color: #9fb8e0; box-shadow: 0 8px 20px rgba(15,30,50,.09); transform: translateY(-2px); }
.ela-period.is-on { border-color: var(--ela-link); background: #f2f7ff; }
.ela-period-mark {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c4cad3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ela-period-mark .ms { font-size: 13px; color: #fff; opacity: 0; }
.ela-period.is-on .ela-period-mark { border-color: var(--ela-link); background: var(--ela-link); }
.ela-period.is-on .ela-period-mark .ms { opacity: 1; }
.ela-period-main { flex: 1 1 150px; min-width: 0; }
.ela-period-term-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ela-period-term { font-size: 15.5px; font-weight: 700; color: var(--ela-heading); white-space: nowrap; }
.ela-period-per { display: block; font-size: 12.5px; color: var(--ela-muted); margin-top: 2px; }
.ela-period-money { flex: none; text-align: end; margin-inline-start: auto; }
.ela-period-price { display: block; font-size: 18px; font-weight: 800; color: var(--ela-heading); white-space: nowrap; }
.ela-period-save { display: block; font-size: 12px; color: #1b7a4e; white-space: nowrap; margin-top: 2px; }
.ela-period-save.is-flat { color: #8a929e; }

.ela-chosen { background: #fff; border: 1px solid var(--ela-border-card); border-radius: 14px; padding: 18px 20px; }
.ela-chosen-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ela-chosen-term { font-size: 14.5px; color: var(--ela-secondary); }
.ela-chosen-price { font-size: 26px; font-weight: 800; letter-spacing: var(--h-track); color: var(--ela-heading); white-space: nowrap; }
.ela-chosen-detail { font-size: 13px; color: var(--ela-muted); margin-bottom: 16px; }

/* ── About ───────────────────────────────────────────────────────────────── */

.ela-about { background: #fff; }
.ela-split { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 56px); align-items: flex-start; }
.ela-about-copy { flex: 1 1 340px; min-width: 0; }
.ela-about-copy .ela-h2 { margin-bottom: 16px; }
.ela-about-copy .ela-lede { margin-bottom: 22px; text-wrap: pretty; }
.ela-inline-link { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; font-size: 15px; font-weight: 700; color: var(--ela-link); }

.ela-pillars { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ela-pillar {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--ela-surface);
  border: 1px solid var(--ela-border-card);
  border-radius: 16px;
  padding: clamp(18px, 2.6vw, 24px);
  transition: border-color .2s ease, background .2s ease;
}
.ela-pillar:hover { border-color: #c6d3e8; background: #fff; }
.ela-pillar .ela-icon-box { width: 46px; height: 46px; border-radius: 13px; }
.ela-pillar-title { display: block; font-size: 17px; font-weight: 700; color: var(--ela-heading); margin-bottom: 7px; }
.ela-pillar-body { display: block; font-size: 14.5px; line-height: var(--body-lh); color: var(--ela-secondary); text-wrap: pretty; }

/* ── Mission, vision, goal ───────────────────────────────────────────────── */

.ela-mvg { background: var(--ela-surface); border-top: 1px solid var(--ela-border); }
.ela-mvg .ela-section-head { max-width: 660px; margin-bottom: clamp(24px, 3.6vw, 34px); }
.ela-mvg .ela-h2 { margin: 0; }
.ela-mvg-card { background: #fff; border: 1px solid var(--ela-border-card); border-radius: 18px; overflow: hidden; }
.ela-mvg-tabs { display: flex; flex-wrap: wrap; gap: 0 clamp(18px, 3vw, 34px); padding: 0 clamp(20px, 3.4vw, 34px); border-bottom: 1px solid #eef1f6; }
.ela-mvg-tab {
  padding: 18px 2px 16px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2.5px solid transparent;
  background: none;
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ela-muted);
  white-space: nowrap;
  cursor: pointer;
}
.ela-mvg-tab.is-on { border-bottom-color: var(--ela-ink); color: var(--ela-heading); }
.ela-mvg-body {
  font-size: 16.5px;
  line-height: 1.75;
  color: #3b4250;
  padding: clamp(24px, 3.6vw, 36px) clamp(20px, 3.4vw, 34px);
  max-width: 74ch;
  text-wrap: pretty;
}

/* ── Stats ───────────────────────────────────────────────────────────────── */

.ela-stats { background: linear-gradient(140deg, #17415f 0%, #2d5f85 60%, #4a80a3 100%); color: #fff; }
.ela-stats .ela-shell { padding-top: clamp(38px, 6vw, 64px); padding-bottom: clamp(38px, 6vw, 64px); }
.ela-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.ela-stat-value {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 8px;
  color: #f0cd7a;
}
.ela-stat-label { font-size: 14.5px; color: rgba(255,255,255,.82); }

/* ── Inside the platform ─────────────────────────────────────────────────── */

.ela-inside { background: var(--ela-surface); border-top: 1px solid var(--ela-border); }
.ela-inside .ela-section-head { max-width: 660px; margin-bottom: clamp(26px, 4vw, 38px); }
.ela-inside-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.ela-feature {
  background: #fff;
  border: 1px solid var(--ela-border-card);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ela-feature:hover { border-color: #c6d3e8; box-shadow: 0 8px 24px rgba(20,30,50,.06); }
.ela-feature-top { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.ela-feature-top .ela-tag { margin-inline-start: auto; padding: 4px 9px; }
.ela-feature h3 { font-size: 17.5px; font-weight: 700; color: var(--ela-heading); margin: 0 0 9px; }
.ela-feature p { font-size: 14.5px; line-height: var(--body-lh); color: var(--ela-secondary); text-wrap: pretty; }

/* ── Why you'll love learning here ───────────────────────────────────────── */

.ela-love { background: #fff; }
.ela-love .ela-section-head { max-width: 620px; margin-bottom: clamp(26px, 4vw, 38px); }
.ela-love .ela-h2 { margin: 0; }
.ela-love-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.ela-love-card { border: 1px solid var(--ela-border-card); border-radius: 18px; padding: clamp(22px, 3.2vw, 30px); background: var(--ela-surface); }
.ela-love-card .ela-icon-box { width: 46px; height: 46px; border-radius: 13px; background: #fff; border: 1px solid var(--ela-border-card); margin-bottom: 18px; }
.ela-love-card h3 { font-size: 20px; font-weight: 700; color: var(--ela-heading); margin: 0 0 10px; }
.ela-love-card p { font-size: 15px; line-height: var(--body-lh); color: var(--ela-secondary); text-wrap: pretty; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.ela-faq { background: var(--ela-surface); border-top: 1px solid var(--ela-border); }
.ela-faq-copy { flex: 1 1 300px; min-width: 0; }
.ela-faq-copy .ela-h2 { font-size: clamp(26px, 4.2vw, 38px); }
.ela-faq-note { font-size: 15.5px; line-height: var(--body-lh); color: var(--ela-secondary); }
.ela-faq-list { flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ela-faq-item { background: #fff; border: 1px solid var(--ela-border-card); border-radius: 14px; overflow: hidden; }
.ela-faq-item.is-open { border-color: #c6d3e8; }
.ela-faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: none;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.ela-faq-n { flex: none; font-family: 'Newsreader', Georgia, serif; font-size: 19px; font-weight: 500; color: var(--ela-gold-eyebrow); min-width: 18px; }
.ela-faq-q-text { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 700; color: var(--ela-heading); line-height: 1.5; }
.ela-faq-chevron { font-size: 22px; color: #8a929e; flex: none; transform: rotate(0deg); transition: transform .3s cubic-bezier(.4,0,.2,1); }
.ela-faq-item.is-open .ela-faq-chevron { transform: rotate(180deg); }
.ela-faq-a { padding: 0 20px 20px; padding-inline-start: 54px; font-size: 14.5px; line-height: 1.75; color: var(--ela-secondary); text-wrap: pretty; }

/* ── Testimonials ────────────────────────────────────────────────────────── */

.ela-testi { background: #fff; border-top: 1px solid var(--ela-border); }
.ela-testi .ela-section-head { max-width: 620px; margin-bottom: clamp(24px, 4vw, 34px); }
.ela-testi .ela-h2 { font-size: clamp(26px, 4.2vw, 38px); margin: 0; }
.ela-testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.ela-testi-card {
  background: var(--ela-surface);
  border: 1px solid var(--ela-border-card);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 26px);
  display: flex;
  flex-direction: column;
}
.ela-testi-card > .ms { font-size: 26px; color: #c4cad3; margin-bottom: 12px; }
.ela-testi-quote { font-size: 15px; line-height: 1.75; color: var(--ela-secondary); margin: 0 0 20px; flex: 1; text-wrap: pretty; }
.ela-testi-who { display: flex; align-items: center; gap: 12px; }
.ela-testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ela-border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
}
.ela-testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ela-testi-avatar .ms { font-size: 20px; color: #8a929e; }
.ela-testi-name { display: block; font-size: 14.5px; font-weight: 700; color: #3b4250; }
.ela-testi-role { display: block; font-size: 12.5px; color: #8a929e; margin-top: 2px; }

/* ── Related links ───────────────────────────────────────────────────────── */

.ela-related { background: var(--ela-surface); border-top: 1px solid var(--ela-border); }
.ela-related .ela-shell { padding-bottom: clamp(44px, 7vw, 72px); }
.ela-related h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 800;
  letter-spacing: var(--h-track);
  line-height: 1.2;
  color: var(--ela-heading);
  margin: 0 0 clamp(24px, 4vw, 32px);
  max-width: 30ch;
  text-wrap: pretty;
}
.ela-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.ela-partner { background: #fff; border: 1px solid var(--ela-border-card); border-radius: 16px; padding: clamp(20px, 3vw, 26px); display: flex; flex-direction: column; }
.ela-partner-logo { height: 48px; display: flex; align-items: center; margin-bottom: 18px; }
.ela-partner-logo img { max-height: 48px; max-width: 165px; width: auto; height: auto; display: block; }
.ela-partner p { font-size: 14.5px; line-height: var(--body-lh); color: var(--ela-secondary); margin: 0 0 18px; flex: 1; text-wrap: pretty; }
.ela-partner a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ela-link); align-self: flex-start; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.ela-footer { background: var(--ela-ink); color: #fff; }
.ela-footer .ela-shell { padding: clamp(40px, 6vw, 64px) var(--ela-gutter) clamp(24px, 3vw, 32px); }
.ela-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  align-items: flex-start;
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.ela-footer-brand { flex: 2 1 300px; min-width: 0; }
.ela-footer-brand img { width: 176px; height: auto; display: block; margin-bottom: 18px; }
.ela-footer-tagline { font-size: 15px; line-height: var(--body-lh); color: rgba(255,255,255,.76); max-width: 34ch; }
.ela-footer-col { flex: 1 1 180px; min-width: 0; }
.ela-footer-col.is-contact { flex: 1 1 220px; }
.ela-footer-label { font-size: 11.5px; font-weight: 700; letter-spacing: var(--track-sm); color: rgba(255,255,255,.6); margin-bottom: 16px; }
.ela-footer-links { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.ela-footer-links a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14.5px; color: rgba(255,255,255,.82); }
.ela-footer-links a:hover { color: #fff; }
.ela-footer-contact { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.ela-footer-contact a { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: rgba(255,255,255,.82); }
.ela-footer-contact a:hover { color: #fff; }
.ela-copyright { padding-top: clamp(18px, 2.5vw, 24px); font-size: 13.5px; color: rgba(255,255,255,.6); }

/* ── Floating enroll pill ────────────────────────────────────────────────── */

/* Hidden until the hero is off screen. It must be visibility:hidden and
   pointer-events:none while hidden, not just transparent, or it swallows
   clicks over the hero. inset-inline-end puts it bottom-left in Arabic. */
.ela-pinned {
  position: fixed;
  inset-inline-end: clamp(14px, 2.5vw, 28px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  padding: 0 24px;
  border-radius: 99px;
  background: var(--ela-gold);
  color: #2a1e05;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(15,30,50,.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .24s ease, transform .24s ease;
}
.ela-pinned.is-shown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.ela-pinned:hover { filter: brightness(1.06); color: #2a1e05; }

/* ── Motion ──────────────────────────────────────────────────────────────── */

@keyframes elaAuroraA {
  0%   { transform: translate3d(-8%, -7%, 0) scale(.95); }
  50%  { transform: translate3d(20%, 12%, 0) scale(1.15); }
  100% { transform: translate3d(-8%, -7%, 0) scale(.95); }
}
@keyframes elaAuroraB {
  0%   { transform: translate3d(9%, 10%, 0) scale(1.12); }
  50%  { transform: translate3d(-18%, -11%, 0) scale(.92); }
  100% { transform: translate3d(9%, 10%, 0) scale(1.12); }
}
@keyframes elaRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.ela-rise { animation: elaRise .6s cubic-bezier(.2,.6,.2,1) both; }
.ela-rise-1 { animation-delay: 60ms; }
.ela-rise-2 { animation-delay: 130ms; }
.ela-rise-3 { animation-delay: 200ms; }
.ela-rise-4 { animation-delay: 270ms; }
.ela-hero-art > span { position: absolute; inset: 0; display: block; animation: elaRise .75s cubic-bezier(.2,.6,.2,1) both; animation-delay: 40ms; }

@media (prefers-reduced-motion: reduce) {
  .ela-rise,
  .ela-hero-art > span { animation: none; opacity: 1; transform: none; }
  .ela-aurora-a,
  .ela-aurora-b { animation: none; }
  .ela-reveal { opacity: 1; transform: none; transition: none; }
  .ela-header,
  .ela-pinned,
  .ela-period,
  .ela-pkg-card,
  .ela-feature,
  .ela-pillar,
  .ela-faq-chevron { transition: none; }
  .ela-pkg-card:hover,
  .ela-period:hover { transform: none; }
}

/* ── Icon tints ──────────────────────────────────────────────────────────── */

/* The six category tints the design cycles through. Each pairs a wash for the
   icon box with the ink for the glyph inside it. */
.ela-tint-1 { background: #eaf0fe; } .ela-ink-1 { color: #3762c4; }
.ela-tint-2 { background: #eaf6f0; } .ela-ink-2 { color: #2f8a63; }
.ela-tint-3 { background: #fdf3e3; } .ela-ink-3 { color: #b0812a; }
.ela-tint-4 { background: #f4edfa; } .ela-ink-4 { color: #7a52ab; }
.ela-tint-5 { background: #fdeeec; } .ela-ink-5 { color: #c4564a; }
.ela-tint-6 { background: #eef0fb; } .ela-ink-6 { color: #5a5fc0; }

/* ═══════════════════════════════════════════════════════════════════════════
   Package detail page
   ═══════════════════════════════════════════════════════════════════════════
   Everything above is shared with the landing page: the tokens, the
   direction-scoped type system, the header, the footer and the period rows.
   Only what is particular to this page lives below.
   ═══════════════════════════════════════════════════════════════════════════ */

.ela.is-package { background: var(--ela-surface); }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.ela-pkg-hero { background: linear-gradient(140deg, #17415f 0%, #2d5f85 58%, #4a80a3 100%); color: #fff; }
.ela-pkg-hero-inner {
  max-width: var(--ela-shell);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 28px) var(--ela-gutter) clamp(36px, 6vw, 64px);
}

.ela-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255,255,255,.72);
  margin-bottom: clamp(22px, 4vw, 34px);
}
.ela-crumbs a { color: rgba(255,255,255,.72); }
.ela-crumbs a:hover { color: #fff; }
.ela-crumbs .ms { font-size: 16px; color: rgba(255,255,255,.4); }
.ela-crumbs-here { color: #fff; font-weight: 600; }

.ela-pkg-hero-split { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 52px); align-items: flex-start; }
.ela-pkg-hero-copy { flex: 3 1 380px; min-width: 0; }

.ela-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 5px 13px;
  border-radius: 99px;
  background: rgba(232,184,74,.16);
  border: 1px solid rgba(232,184,74,.42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--track);
  line-height: 1.5;
  color: #f0cd7a;
  margin-bottom: 18px;
  white-space: nowrap;
}

.ela-pkg-hero h1 {
  font-family: 'Cairo', system-ui, sans-serif;
  font-size: clamp(28px, 5.4vw, 48px);
  font-weight: 800;
  line-height: 1.32;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.ela-pkg-blurb {
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: var(--body-lh);
  color: rgba(255,255,255,.84);
  margin: 0 0 clamp(22px, 3.5vw, 30px);
  max-width: 56ch;
  text-wrap: pretty;
}
/* The blurb is the admin's rich text (#128): paragraphs, lists, bold. */
.ela-pkg-blurb p + p,
.ela-pkg-blurb p + ul, .ela-pkg-blurb p + ol,
.ela-pkg-blurb ul + p, .ela-pkg-blurb ol + p { margin-top: .6em; }
.ela-pkg-blurb ul, .ela-pkg-blurb ol { margin: 0; padding-inline-start: 1.3em; }
.ela-pkg-blurb strong, .ela-pkg-blurb b { color: #fff; }

.ela-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ela-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border-radius: 99px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 13.5px;
  white-space: nowrap;
}
.ela-chip .ms { font-size: 17px; color: #f0cd7a; }

/* The buy card lifts off the gradient and carries the whole decision: period,
   price and the one CTA. */
.ela-buy {
  flex: 1 1 290px;
  min-width: 0;
  max-width: 390px;
  background: #fff;
  border-radius: 18px;
  padding: clamp(20px, 3vw, 26px);
  color: var(--ela-body);
  box-shadow: 0 18px 44px rgba(10,25,45,.22);
}
.ela-buy-label { font-size: 11.5px; font-weight: 700; letter-spacing: var(--track-sm); color: #6b7280; margin-bottom: 12px; }
.ela-buy .ela-periods { gap: 9px; margin-bottom: 18px; }
.ela-buy .ela-period { padding: 14px 16px; border-radius: 13px; gap: 10px 14px; }
.ela-buy .ela-period:hover { box-shadow: none; transform: none; }
.ela-buy .ela-period-mark { width: 19px; height: 19px; }
.ela-buy .ela-period-mark .ms { font-size: 12px; }
.ela-buy .ela-period-term { font-size: 15px; }
.ela-buy .ela-period-per { font-size: 12px; }
.ela-buy .ela-period-price { font-size: 17px; }
.ela-buy .ela-period-save { font-size: 11.5px; }
.ela-buy .ela-cta-navy { height: 52px; font-size: 16px; margin-bottom: 12px; }
.ela-buy-detail { font-size: 12.5px; line-height: 1.6; color: var(--ela-muted); text-align: center; }

/* ── Page body ───────────────────────────────────────────────────────────── */

.ela-pkg-body {
  max-width: var(--ela-shell);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 52px) var(--ela-gutter) 80px;
}

/* ── Test your knowledge ─────────────────────────────────────────────────── */

.ela-tyk {
  background: linear-gradient(140deg, #101f33 0%, #16324f 100%);
  border-radius: 18px;
  padding: clamp(22px, 3.4vw, 32px);
  color: #fff;
  margin-bottom: clamp(22px, 3.5vw, 32px);
}
.ela-tyk-split { display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 44px); align-items: flex-start; }
.ela-tyk-copy { flex: 2 1 320px; min-width: 0; }
.ela-tyk-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: var(--track);
  color: var(--ela-gold);
  margin-bottom: 12px;
  white-space: nowrap;
}
.ela-tyk h2 {
  font-size: clamp(22px, 3.2vw, 31px);
  font-weight: 800;
  letter-spacing: var(--h-track);
  line-height: var(--h-lh);
  margin: 0 0 12px;
  text-wrap: pretty;
}
.ela-tyk h2 .ela-accent { color: #f0cd7a; }
.ela-tyk-blurb { font-size: 14.5px; line-height: var(--body-lh); color: rgba(255,255,255,.8); max-width: 54ch; text-wrap: pretty; }
.ela-tyk-points { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ela-tyk-point {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  padding: 15px 16px;
}
.ela-tyk-point .ms { font-size: 20px; color: #f0cd7a; flex: none; margin-top: 1px; }
.ela-tyk-point-title { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.ela-tyk-point-body { display: block; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.72); text-wrap: pretty; }

.ela-tyk-tests { margin-top: clamp(22px, 3.4vw, 30px); padding-top: clamp(20px, 3vw, 26px); border-top: 1px solid rgba(255,255,255,.16); }
.ela-tyk-tests-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 14px;
}
.ela-tyk-tests-label { font-size: 11.5px; font-weight: 700; letter-spacing: var(--track-sm); color: rgba(255,255,255,.7); }
.ela-tyk-tests-count { font-size: 12.5px; color: rgba(255,255,255,.55); white-space: nowrap; }
.ela-tyk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.ela-tyk-test {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
}
.ela-tyk-test > .ms { font-size: 19px; flex: none; color: rgba(255,255,255,.45); }
.ela-tyk-test.is-ready > .ms { color: #f0cd7a; }
.ela-tyk-test-title { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.ela-tyk-test-meta { display: block; font-size: 12px; color: rgba(255,255,255,.66); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Table of contents ───────────────────────────────────────────────────── */

.ela-toc { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 28px); align-items: flex-start; }
.ela-toc-main { flex: 3 1 420px; min-width: 0; }
.ela-toc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 18px;
}
.ela-toc-head h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  letter-spacing: var(--h-track);
  line-height: var(--h-lh);
  color: var(--ela-heading);
  margin: 0 0 8px;
}
.ela-toc-intro { font-size: 14.5px; line-height: var(--body-lh); color: var(--ela-secondary); }
.ela-free-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 15px;
  border-radius: 99px;
  background: #e7f6ee;
  border: 1px solid #c4e6d5;
  font-size: 13px;
  font-weight: 700;
  color: #1b7a4e;
  white-space: nowrap;
}

.ela-courses { display: flex; flex-direction: column; gap: 10px; }
.ela-course { background: #fff; border: 1.5px solid var(--ela-border-card); border-radius: 16px; overflow: hidden; }
.ela-course.is-open { border-color: #c6d3e8; }
.ela-course-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  padding: clamp(14px, 2.2vw, 20px);
  border: 0;
  background: none;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.ela-course-head .ela-icon-box { width: 42px; height: 42px; }
.ela-course-main { flex: 1 1 200px; min-width: 0; }
.ela-course-title { display: block; font-size: clamp(16px, 2vw, 19px); font-weight: 700; color: var(--ela-heading); line-height: 1.5; }
.ela-course-meta { display: block; font-size: 12.5px; color: var(--ela-muted); margin-top: 3px; }
.ela-course-end { flex: none; margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.ela-course-free {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: var(--track-xs);
  padding: 4px 10px;
  border-radius: 99px;
  background: #e7f6ee;
  color: #1b7a4e;
  white-space: nowrap;
}
.ela-course-toggle { font-size: 23px; color: #8a929e; }
.ela-course-body { border-top: 1px solid #eef1f6; background: #fbfcfe; padding: clamp(14px, 2.2vw, 20px); }

.ela-chapters { display: flex; flex-direction: column; gap: 8px; }
.ela-chapter { border: 1px solid #e8ecf2; border-radius: 13px; background: #fff; overflow: hidden; }
.ela-chapter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
  padding: 12px 15px;
  border: 0;
  background: none;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.ela-chapter-n {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f2f5f9;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ela-chapter-title { flex: 1 1 180px; min-width: 0; font-size: 15px; font-weight: 600; color: var(--ela-body); line-height: 1.5; }
.ela-chapter-end { flex: none; margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.ela-chapter-count { font-size: 12.5px; color: var(--ela-muted); white-space: nowrap; }
.ela-chapter-toggle { font-size: 20px; color: #b6bdc8; }
.ela-chapter-body { border-top: 1px solid #f0f3f7; padding: 6px 15px 12px; }

.ela-lesson {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f4f6f9;
}
.ela-lesson:last-child { border-bottom: 0; }
.ela-lesson > .ms { font-size: 18px; flex: none; color: #b6bdc8; }
.ela-lesson-title { flex: 1 1 160px; min-width: 0; font-size: 14px; color: var(--ela-muted); }
.ela-lesson.is-free > .ms { color: #1b7a4e; }
.ela-lesson.is-free .ela-lesson-title { color: var(--ela-body); }
.ela-lesson.is-quiz > .ms { color: var(--ela-gold-eyebrow); }
.ela-lesson.is-quiz .ela-lesson-title { color: #3b4250; }
.ela-lesson-end { flex: none; margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.ela-lesson-free {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--track-xs);
  padding: 3px 9px;
  border-radius: 99px;
  background: #e7f6ee;
  color: #1b7a4e;
  white-space: nowrap;
}
.ela-lesson-try { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ela-link); white-space: nowrap; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */

.ela-toc-side { flex: 1 1 280px; min-width: 0; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.ela-side-card { background: #fff; border: 1px solid var(--ela-border-card); border-radius: 16px; padding: 22px 24px; }
.ela-side-label { font-size: 11.5px; font-weight: 700; letter-spacing: var(--track-sm); color: #6b7280; margin-bottom: 14px; }
.ela-side-card .ela-check .ms { font-size: 18px; }
.ela-side-card .ela-check span:last-child { font-size: 14px; }
.ela-side-list { display: flex; flex-direction: column; gap: 12px; }

.ela-try-card { background: #f3faf6; border: 1px solid #c4e6d5; border-radius: 16px; padding: 22px 24px; }
.ela-try-card > .ms { font-size: 24px; color: #1b7a4e; display: block; margin-bottom: 12px; }
.ela-try-card h3 { font-size: 16.5px; font-weight: 700; color: #14663f; margin: 0 0 8px; }
.ela-try-card p { font-size: 14px; line-height: var(--body-lh); color: #1f6647; margin: 0 0 16px; text-wrap: pretty; }
.ela-try-card a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #14663f; }

.ela-glance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #eef1f6;
  font-size: 14px;
}
.ela-glance-row:last-child { border-bottom: 0; }
.ela-glance-key { color: #6b7280; }
.ela-glance-value { font-weight: 700; color: var(--ela-body); white-space: nowrap; }

/* ── Closing band ────────────────────────────────────────────────────────── */

.ela-ready { background: var(--ela-ink); color: #fff; }
.ela-ready-inner {
  max-width: var(--ela-shell);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 48px) var(--ela-gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
}
.ela-ready-copy { flex: 2 1 340px; min-width: 0; }
.ela-ready-copy h2 {
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: var(--h-track);
  line-height: 1.35;
  margin: 0 0 8px;
}
.ela-ready-copy p { font-size: 14.5px; line-height: var(--body-lh); color: rgba(255,255,255,.76); }
.ela-ready .ela-cta-gold { flex: none; margin-inline-start: auto; }
