/* ============================================================================
   ElevenReady marketing site — brand layer (Academic Trust palette).
   Self-contained: loads on top of the template's Bootstrap grid + Font Awesome.
   Used by the rebranded ElevenReady pages (index, how-it-works, pricing,
   for-tutors, about, contact). Navy-forward, warm, trustworthy.
   ============================================================================ */

:root {
  --navy: #1E3A8A;
  --navy-dark: #15296B;
  --sky: #0EA5E9;
  --gold: #F59E0B;
  --ink: #0F172A;
  --slate: #475569;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #F8FAFC;
  --bg-soft: #EEF2FB;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
  --success: #10B981;
}

* { box-sizing: border-box; }

body.er {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  color: var(--slate);
  background: var(--white);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.er h1, .er h2, .er h3, .er h4 { font-family: 'Lexend', 'Poppins', sans-serif; color: var(--ink); font-weight: 700; line-height: 1.15; }
.er h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.er h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.er a { color: var(--navy); text-decoration: none; }
.er a:hover { color: var(--sky); }
.er-container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.er-section { padding: 84px 0; }
.er-section--tight { padding: 56px 0; }
.er-bg-soft { background: var(--bg); }
.er-center { text-align: center; }
.er-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--sky); margin: 0 0 .6rem; }
.er-lead { font-size: 1.15rem; color: var(--slate); max-width: 60ch; }
.er-center .er-lead { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.er-btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1rem;
  padding: .8rem 1.6rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; }
.er-btn:hover { transform: translateY(-2px); }
.er-btn--primary { background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px rgba(245,158,11,.35); }
.er-btn--primary:hover { color: var(--ink); box-shadow: 0 12px 26px rgba(245,158,11,.45); }
.er-btn--navy { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(30,58,138,.28); }
.er-btn--navy:hover { background: var(--navy-dark); color: #fff; box-shadow: 0 12px 26px rgba(30,58,138,.38); }
.er-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.er-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.er-btn--outline { background: #fff; color: var(--navy); border-color: var(--line); }
.er-btn--outline:hover { border-color: var(--navy); color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .er-btn:hover { transform: none; } }

/* ---- Navbar ---- */
.er-nav { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.er-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.er-brand { display: inline-flex; align-items: center; gap: .55rem; font-family: 'Lexend','Poppins',sans-serif;
  font-weight: 800; font-size: 1.45rem; color: var(--navy); }
.er-brand:hover { color: var(--navy); }
.er-brand__bot { width: 38px; height: 38px; display: inline-grid; place-items: center; flex: 0 0 38px; }
.er-brand__bot img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 10px; }
/* Header wordmark logo (transparent PNG, trimmed tight). */
.er-brand__logo { height: 42px; width: auto; display: block; }
@media (max-width: 480px) { .er-brand__logo { height: 36px; } }

/* Contact form status message (success / error after submit) */
.er-form-status { margin: .85rem 0 0; padding: .7rem .85rem; border-radius: 12px; font-size: .9rem; font-weight: 600; }
.er-form-status.is-ok { background: rgba(16,160,90,.12); border: 1px solid rgba(16,160,90,.3); color: #0a6b3e; }
.er-form-status.is-err { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #b42318; }
.er-brand b { color: var(--gold); }
.er-nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.er-nav__links a { color: var(--ink); font-weight: 500; }
.er-nav__links a:hover { color: var(--navy); }
.er-nav__cta { display: flex; align-items: center; gap: .9rem; }
.er-nav__login { font-weight: 600; color: var(--navy); }
.er-nav__toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); }
/* "More" dropdown — groups About / Blog / News / Contact to de-clutter the bar. */
.er-nav__item--menu { position: relative; }
.er-nav__more { display: inline-flex; align-items: center; gap: .35rem; padding: 0; background: none; border: 0;
  font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; }
.er-nav__more:hover, .er-nav__item--menu:hover .er-nav__more,
.er-nav__more[aria-expanded="true"] { color: var(--navy); }
.er-nav__caret { font-size: .7rem; line-height: 1; transition: transform .18s ease; }
.er-nav__item--menu:hover .er-nav__caret,
.er-nav__more[aria-expanded="true"] .er-nav__caret { transform: rotate(180deg); }
.er-nav__menu { position: absolute; top: calc(100% + 16px); right: 0; min-width: 188px; list-style: none; margin: 0;
  padding: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.er-nav__menu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; } /* hover bridge */
.er-nav__menu li { margin: 0; }
.er-nav__menu a { display: block; padding: .55rem .75rem; border-radius: 9px; font-weight: 500; color: var(--ink); }
.er-nav__menu a:hover { background: rgba(30,58,138,.06); color: var(--navy); }
.er-nav__item--menu:hover .er-nav__menu,
.er-nav__item--menu:focus-within .er-nav__menu,
.er-nav__more[aria-expanded="true"] + .er-nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* "Log in" sits at the end of the links list; on desktop it needs a touch more separation from "More". */
.er-nav__item--auth { margin-left: -.4rem; }

@media (max-width: 991px) {
  /* The whole links list (Log in included) collapses into the hamburger panel. */
  .er-nav__links { display: none; }
  .er-nav__toggle { display: block; }
  .er-nav--open .er-nav__links { display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 74px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1rem; gap: 0;
    /* A long menu on a short phone must scroll rather than run off the screen. */
    max-height: calc(100dvh - 74px); overflow-y: auto; box-shadow: var(--shadow-sm); }
  /* Comfortable thumb targets (WCAG 2.2 AA 2.5.8 needs 24px; 48px is the usable size). */
  .er-nav--open .er-nav__links > li > a,
  .er-nav--open .er-nav__menu a { display: flex; align-items: center; min-height: 48px; padding: .25rem 0;
    border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .er-nav--open .er-nav__links > li:last-child > a { border-bottom: 0; }
  /* On mobile the bar is already a vertical list — flatten the dropdown into it (no hover/click needed). */
  .er-nav--open .er-nav__more { display: none; }
  .er-nav--open .er-nav__menu { position: static; opacity: 1; visibility: visible; transform: none;
    display: flex; flex-direction: column; gap: 0; min-width: 0; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .er-nav--open .er-nav__menu::before { display: none; }
  .er-nav--open .er-nav__menu a { border-radius: 0; }
  /* Log in reads as an action, not another nav row — it's what a returning parent came for. */
  .er-nav__item--auth { margin: .8rem 0 0; }
  .er-nav--open .er-nav__item--auth a { justify-content: center; border: 2px solid var(--navy);
    border-radius: 999px; padding: .55rem 1.2rem; font-weight: 700; }
}

/* ---- Hero ---- */
.er-hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(14,165,233,.35), transparent 60%),
  linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%); color: #fff; padding: 60px 0 5px; overflow: hidden; }
.er-hero h1 { color: #fff; }
.er-hero p { color: rgba(255,255,255,.85); font-size: 1.2rem; max-width: 34ch; }
.er-hero__row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.er-hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.er-hero__note { margin-top: 1.1rem; font-size: .92rem; color: rgba(255,255,255,.75); }
.er-hero__art { position: relative; display: grid; place-items: center; }
/* Soft glow behind the illustration so the right column reads as intentional, not empty navy. */
.er-hero__art::before { content: ""; position: absolute; width: 92%; aspect-ratio: 1 / 1; max-width: 640px;
  background: radial-gradient(circle, rgba(14,165,233,.45), transparent 62%); filter: blur(8px); z-index: 0; }
.er-hero__illus { position: relative; z-index: 1; width: 100%; height: auto; max-width: 640px; display: block;
  border-radius: 22px; box-shadow: 0 30px 60px rgba(8, 20, 60, .5); }
.er-hero__caption { position: relative; z-index: 1; text-align: center; color: rgba(255,255,255,.82);
  font-size: .98rem; margin: 1.1rem auto 0; max-width: 42ch; }
.er-hero__proof { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem; margin-top: .9rem; }
.er-hero__proof span { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .4rem .85rem; font-size: .82rem;
  font-weight: 600; color: rgba(255,255,255,.92); }
.er-hero__proof span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.er-hero__card { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); border-radius: 24px;
  padding: 28px; width: 100%; max-width: 380px; box-shadow: var(--shadow); }
.er-hero__bot { font-size: 4.5rem; text-align: center; }
.er-hero__bar { background: rgba(255,255,255,.16); border-radius: 999px; height: 12px; margin: 10px 0; overflow: hidden; }
.er-hero__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #fde68a); }
.er-pill { display: inline-block; background: rgba(255,255,255,.15); border-radius: 999px; padding: .35rem .9rem;
  font-size: .85rem; font-weight: 600; margin: .2rem; }
@media (max-width: 860px) { .er-hero__row { grid-template-columns: 1fr; } .er-hero p { max-width: none; } }

/* ---- Trust bar ---- */
.er-trust { padding: 28px 0; border-bottom: 1px solid var(--line); }
.er-trust__label { text-align: center; color: var(--muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.er-trust__row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; }
.er-trust__row span { font-weight: 600; color: var(--ink); opacity: .8; }

/* ---- Feature / card grid ---- */
.er-grid { display: grid; gap: 24px; }
.er-grid--3 { grid-template-columns: repeat(3, 1fr); }
.er-grid--4 { grid-template-columns: repeat(4, 1fr); }
.er-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .er-grid--3, .er-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .er-grid--2, .er-grid--3, .er-grid--4 { grid-template-columns: 1fr; } }
.er-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.er-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(14,165,233,.4); }
.er-card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(30,58,138,.12), rgba(14,165,233,.16)); color: var(--navy); margin-bottom: 18px; }
.er-card__icon svg { width: 26px; height: 26px; }
.er-card h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.er-card p { margin: 0; color: var(--slate); }
@media (prefers-reduced-motion: reduce) { .er-card:hover { transform: none; } }

/* ---- Steps ---- */
.er-steps { counter-reset: step; }
.er-step__num { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid;
  place-items: center; font-weight: 700; font-family: 'Lexend',sans-serif; margin-bottom: 14px; }

/* ---- Split section ---- */
.er-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.er-split--rev .er-split__media { order: 2; }
.er-split__media { background: var(--bg-soft); border-radius: 24px; padding: 36px; text-align: center; font-size: 5rem; }
.er-split__media img, .er-split__media svg { width: min(240px, 70%); height: auto; display: block; margin: 0 auto; }
/* Photo variant: full-bleed editorial photography instead of a padded illustration tile. */
.er-split__media--photo { padding: 0; background: none; font-size: 0; }
.er-split__media--photo img { width: 100%; max-width: none; border-radius: 24px; box-shadow: var(--shadow-sm); }
.er-split ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.er-split li { padding-left: 2.1rem; position: relative; margin-bottom: .7rem; }
.er-split li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 1.4rem; height: 1.4rem;
  display: inline-grid; place-items: center; border-radius: 50%; font-size: .75rem; font-weight: 800;
  background: rgba(16,185,129,.14); color: var(--success); }
@media (max-width: 860px) { .er-split { grid-template-columns: 1fr; } .er-split--rev .er-split__media { order: 0; } }

/* ---- Pricing ---- */
.er-price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.er-price--4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.er-price--4 .er-plan { padding: 24px; }
@media (max-width: 1100px) { .er-price--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .er-price { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .er-price--4 { grid-template-columns: 1fr; } }
.er-plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease; }
.er-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.er-plan--featured { border: 2px solid var(--navy); box-shadow: var(--shadow); position: relative; }
@media (min-width: 901px) { .er-plan--featured { transform: scale(1.04); } .er-plan--featured:hover { transform: scale(1.04) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .er-plan:hover, .er-plan--featured, .er-plan--featured:hover { transform: none; } }
.er-plan__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--ink);
  font-weight: 700; font-size: .8rem; padding: .25rem .9rem; border-radius: 999px; }
.er-plan h3 { font-size: 1.25rem; margin: 0 0 .3rem; }
.er-plan__price { font-family: 'Lexend',sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--ink); }
.er-plan__price small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.er-plan ul { list-style: none; padding: 0; margin: 1.2rem 0; flex: 1; }
.er-plan li { padding-left: 2.1rem; position: relative; margin-bottom: .7rem; }
.er-plan li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 1.4rem; height: 1.4rem;
  display: inline-grid; place-items: center; border-radius: 50%; font-size: .75rem; font-weight: 800;
  background: rgba(16,185,129,.14); color: var(--success); }
.er-plan .er-btn { width: 100%; justify-content: center; }

/* ---- CTA band ---- */
.er-cta { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; border-radius: 28px; padding: 56px; text-align: center; }
.er-cta h2 { color: #fff; }
.er-cta p { color: rgba(255,255,255,.85); max-width: 56ch; margin: .6rem auto 1.6rem; }

/* ---- FAQ ---- */
.er-faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-bottom: 14px; }
.er-faq__item h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.er-faq__item p { margin: 0; }

/* ---- Page banner (inner pages) ---- */
.er-banner { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; padding: 64px 0; text-align: center; }
.er-banner h1 { color: #fff; }
.er-banner p { color: rgba(255,255,255,.85); margin: .5rem auto 0; max-width: 60ch; }
/* On the dark navy hero, the breadcrumb + chips need light treatment — their default light-background
   colours (var(--muted)/navy/green) are near-invisible on navy. */
.er-banner .er-crumbs,
.er-banner .er-crumbs a,
.er-banner .er-crumbs span { color: rgba(255,255,255,.8); }
.er-banner .er-crumbs a:hover { color: #fff; }
.er-banner .er-chips { justify-content: center; }
.er-banner .er-chip { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.32); }
.er-banner .er-chip--primary { background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.45); }
.er-banner .er-chip--rating { background: rgba(140,231,180,.18); color: #b9f3d2; border-color: rgba(140,231,180,.5); }
.er-banner .er-school__loc,
.er-banner .er-school__verified { color: rgba(255,255,255,.8); }

/* ---- Forms ---- */
.er-field { display: block; margin-bottom: 16px; }
.er-field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.er-field input, .er-field textarea, .er-field select { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); }
.er-field input:focus, .er-field textarea:focus, .er-field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,138,.18); }

/* ---- Footer ---- */
.er-footer { background: var(--ink); color: #CBD5E1; padding: 64px 0 28px; }
.er-footer a { color: #CBD5E1; }
.er-footer a:hover { color: #fff; }
.er-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .er-footer__grid { grid-template-columns: 1fr 1fr; } }
.er-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 1rem; }
.er-footer ul { list-style: none; padding: 0; margin: 0; }
.er-footer li { margin-bottom: .6rem; }
.er-footer__brand { font-family: 'Lexend',sans-serif; font-weight: 800; font-size: 1.4rem; color: #fff; }
.er-footer__brand b { color: var(--gold); }
/* Glowing wordmark logo (dark-background PNG) on the dark footer — `screen` blend drops its near-black
   backdrop so only the lit text shows, with no visible box seam. */
.er-footer__logo { width: 220px; max-width: 75%; height: auto; display: block; margin: -8px 0 0 -6px; mix-blend-mode: screen; }
.er-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .9rem; color: #94A3B8; }
.er-mt-2 { margin-top: 2rem; }
.er-section-head { max-width: 640px; margin: 0 auto 48px; }

/* ---- Legal / prose pages ---- */
.er-legal { max-width: 820px; margin: 0 auto; }
.er-legal__updated { color: var(--muted); font-size: .9rem; margin: 0 0 1.5rem; }
.er-legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
.er-legal h3 { font-size: 1.32rem; margin: 2rem 0 .55rem; color: var(--ink); }
.er-legal h4 { font-size: 1.06rem; margin: 1.3rem 0 .35rem; color: var(--ink); }
.er-legal p { margin: 0 0 1rem; line-height: 1.7; }
.er-legal ul { padding-left: 1.3rem; margin: 0 0 1rem; }
.er-legal li { margin-bottom: .5rem; }
.er-legal a { color: var(--navy); text-decoration: underline; }
.er-legal a:hover { color: var(--sky); }
.er-legal hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.er-legal .er-legal__placeholder { background: #FEF3C7; border-radius: 4px; padding: 0 .25rem; }

/* ---- Product screenshot ---- */
.er-shot-frame { background: linear-gradient(135deg, var(--bg-soft), #ffffff); border: 1px solid var(--line);
  border-radius: 26px; padding: 18px; box-shadow: var(--shadow); max-width: 920px; margin: 0 auto; }
.er-shot-figure { margin: 0; }
.er-shot { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.er-shot-cap { text-align: center; color: var(--muted); font-size: .9rem; margin: 14px 0 0; }

/* ---- Hero mascot ---- */
.er-hero__robbie { width: 150px; height: 150px; display: block; margin: 0 auto 8px; filter: drop-shadow(0 12px 26px rgba(0,0,0,.28)); }

/* ---- Stats band ---- */
.er-stats { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; border-radius: 28px; padding: 44px; }
.er-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 700px) { .er-stats__grid { grid-template-columns: repeat(2, 1fr); } }
.er-stats__num { font-family: 'Lexend', sans-serif; font-size: 2.3rem; font-weight: 800; color: #fff; }
.er-stats__label { color: rgba(255,255,255,.82); font-size: .95rem; }

/* ---- Comparison ---- */
.er-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .er-compare { grid-template-columns: 1fr; } }
.er-compare__col { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.er-compare__col--win { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.er-compare h3 { margin: 0 0 1rem; }
.er-compare ul { list-style: none; padding: 0; margin: 0; }
.er-compare li { padding-left: 1.9rem; position: relative; margin-bottom: .65rem; }
.er-compare__no li::before { content: "\2715"; position: absolute; left: 0; color: #94A3B8; font-weight: 800; }
.er-compare__yes li::before { content: "\2713"; position: absolute; left: 0; color: var(--sky); font-weight: 800; }

/* ---- FAQ accordion ---- */
.er-faq2 { max-width: 760px; margin: 0 auto; }
.er-faq2 details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; margin-bottom: 14px; }
.er-faq2 summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.er-faq2 summary::-webkit-details-marker { display: none; }
.er-faq2 summary::after { content: "+"; color: var(--navy); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.er-faq2 details[open] summary::after { content: "\2013"; }
.er-faq2 details p { margin: 0 0 18px; color: var(--slate); }

/* ---- Promise / trust cards (factual, not fabricated reviews) ---- */
.er-promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .er-promise { grid-template-columns: 1fr; } }
.er-promise__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.er-promise__card .er-card__icon { margin-bottom: 14px; }
.er-promise__q { font-size: 1.05rem; color: var(--ink); font-weight: 600; margin: 0 0 .5rem; }

/* ---- Review fixes ---- */
/* Critical: button text must beat the global `.er a` link colour (higher specificity, no !important). */
.er a.er-btn--navy, .er a.er-btn--ghost, .er a.er-btn--navy:hover, .er a.er-btn--ghost:hover { color: #fff; }
.er a.er-btn--primary, .er a.er-btn--primary:hover { color: var(--ink); }
.er a.er-btn--outline, .er a.er-btn--outline:hover { color: var(--navy); }

/* Skip-to-content link (visible on focus only). */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--navy); color: #fff;
  padding: .7rem 1.1rem; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; color: #fff; }

/* Footer column titles (non-heading, avoids the h2→h4 skip). */
.er-footer .er-foot-h { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 1rem; }

/* Hero trust points wrap as two distinct items. */
.er-hero__note { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.er-hero__note span { display: inline-flex; align-items: center; background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .42rem .85rem;
  font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.92); }

/* Comparison columns equal height. */
.er-compare { align-items: stretch; }
.er-compare__col { height: 100%; }

/* Pricing badge stays on one line, contained. */
.er-plan__tag { white-space: nowrap; }

/* FAQ: hide native disclosure marker across browsers (Safari/Firefox ::marker). */
.er-faq2 summary { list-style: none; }
.er-faq2 summary::marker { content: ""; }

/* ===== School finder + school pages ===== */
.er-crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.er-crumbs a { color: var(--muted); text-decoration: none; }
.er-crumbs a:hover { text-decoration: underline; }

/* School search — one unified bar (postcode · name · button) + a row of pill filters below. */
.er-search { margin-bottom: 20px; }
.er-search__bar { display: flex; align-items: stretch; background: #fff; border: 1.5px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-sm); padding: 6px; transition: border-color .15s ease, box-shadow .15s ease; }
.er-search__bar:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(30,58,138,.12), var(--shadow-sm); }
.er-search__cell { display: flex; align-items: center; gap: 10px; padding: 0 16px; flex: 1 1 auto; min-width: 0; }
.er-search__cell--postcode { flex: 0 1 230px; }
.er-search__cell + .er-search__cell { border-left: 1px solid var(--line); }
.er-search__cell svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.er-search__cell input { border: 0; background: transparent; font: inherit; font-size: .96rem; color: var(--ink);
  width: 100%; height: 46px; outline: none; }
.er-search__cell input::placeholder { color: #94A3B8; text-transform: none; }
.er-search__btn { flex: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .95rem;
  color: var(--ink); background: var(--gold); border-radius: 999px; padding: 0 28px; height: 46px;
  transition: transform .12s ease, box-shadow .12s ease; }
.er-search__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(245,158,11,.35); }
.er-search__btn:focus-visible { outline: 3px solid rgba(30,58,138,.5); outline-offset: 2px; }
.er-search__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.er-search__select { position: relative; }
.er-search__select select { appearance: none; -webkit-appearance: none; font: inherit; font-size: .88rem; font-weight: 600;
  color: var(--slate); background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0 36px 0 16px; height: 44px; cursor: pointer; max-width: 220px;
  transition: border-color .15s ease, color .15s ease; }
.er-search__select::after { content: ""; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.er-search__select select:hover { border-color: #B6C3DB; }
.er-search__select select:focus { outline: 3px solid rgba(56,132,255,.35); border-color: var(--sky); }
.er-search__select.is-active select { border-color: var(--navy); color: var(--navy); background: rgba(30,58,138,.06); }
.er-search__clear { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600;
  color: var(--muted); text-decoration: none; padding: 0 14px; height: 44px; border-radius: 999px; }
.er-search__clear:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
@media (max-width: 700px) {
  .er-search__bar { flex-direction: column; border-radius: 22px; padding: 8px; }
  .er-search__cell { padding: 0 10px; }
  .er-search__cell--postcode { flex: 1 1 auto; }
  .er-search__cell + .er-search__cell { border-left: 0; border-top: 1px solid var(--line); }
  .er-search__btn { width: 100%; height: 48px; margin-top: 4px; }
  .er-search__select { flex: 1 1 46%; }
  .er-search__select select { width: 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .er-search__bar, .er-search__btn, .er-search__select select { transition: none; }
  .er-search__btn:hover { transform: none; }
}
.er-results-count { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
/* Live results block (school-finder.js swaps it as the parent types) — dim while a fetch is in flight. */
.er-results { transition: opacity .15s ease; }
.er-results.is-loading { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .er-results { transition: none; } }

.er-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0; }
.er-chip { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }
.er-chip--primary { background: rgba(56,132,255,.12); border-color: rgba(56,132,255,.3); color: var(--navy); }
.er-chip--rating { background: rgba(16,160,90,.12); border-color: rgba(16,160,90,.3); color: #0a6b3e; }

.er-school-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.er-school-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,32,64,.1); }
.er-school-card h3 { margin: 0 0 .25rem; color: var(--navy); }
.er-school-card__loc { color: var(--muted); font-size: .88rem; margin: 0; }
.er-school-card__more { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--sky); }

.er-school__loc { color: var(--muted); margin: .2rem 0 .6rem; }
.er-school__verified { color: var(--muted); font-size: .85rem; margin: .4rem 0 0; }
.er-school__grid { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
.er-school__main h2 { margin: 1.6rem 0 .6rem; }
.er-school__main h2:first-child { margin-top: 0; }
.er-spec { width: 100%; border-collapse: collapse; }
.er-spec th, .er-spec td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.er-spec th { width: 38%; color: var(--muted); font-weight: 600; }
.er-note { background: var(--bg-soft); border-left: 3px solid var(--sky); padding: 12px 14px; border-radius: 8px; margin: 12px 0 0; font-size: .92rem; }
.er-muted { color: var(--muted); }
.er-card--sticky { position: sticky; top: 92px; }
.er-card--cta { margin-top: 18px; background: var(--navy); color: #fff; }
.er-card--cta h2, .er-card--cta h3, .er-card--cta p, .er-card--cta li { color: #fff; }
.er-card--cta h2 a, .er-card--cta h3 a, .er-card--cta p a { color: #fff; text-decoration: underline; }
.er-btn--block { display: block; width: 100%; text-align: center; margin-top: 10px; }

/* Free mock-paper download tiles (per-school "mock tests" SEO page) — reuses the site card tokens so it
   matches the school pages (border/shadow/radius/hover-lift), not a bolted-on look. */
.er-papers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.er-paper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.er-paper:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(14,165,233,.4); }
.er-paper__subj { margin: 0 0 .4rem; font-size: 1.15rem; }
.er-paper__meta { color: var(--slate); font-size: .92rem; margin: 0 0 1rem; flex: 1 1 auto; }
/* Download buttons sit in narrow tiles — must WRAP (the global .er-btn is nowrap) and hug the card bottom. */
.er-paper .er-btn { margin-top: auto; white-space: normal; text-align: center; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { .er-paper:hover { transform: none; } }
/* v30: subject-coloured paper tiles — icon badge, eyebrow + bold subject title (the H3 keeps the full
   "{School} 11+ {Subject} practice paper" keyword), fact chips, and a dashed "locked" upsell tile. */
.er-papers-band { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; margin-top: 1.2rem; }
.er-papers-band .er-papers { margin-top: 1rem; }
.er-papers-band__intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.er-papers-band__intro p { margin: 0; max-width: 60ch; color: var(--slate); }
.er-paper { position: relative; padding: 20px 20px 18px; border-top: 4px solid var(--paper-accent, var(--navy)); }
.er-paper__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4rem; background: var(--paper-tint, #EEF2FB); margin-bottom: 12px; }
.er-paper__subj { margin: 0 0 6px; font-size: 1.08rem; line-height: 1.3; }
.er-paper__eyebrow { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin-bottom: 3px; }
.er-paper__meta { font-size: .9rem; margin: 0 0 12px; }
.er-paper__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.er-paper__facts li { font-size: .74rem; font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--slate); }
.er-paper__sub { font-size: .78rem; color: var(--slate); text-align: center; margin: 8px 0 0; }
.er-paper--maths { --paper-accent: #2563EB; --paper-tint: #DBEAFE; }
.er-paper--english { --paper-accent: #F59E0B; --paper-tint: #FEF3C7; }
.er-paper--verbal-reasoning { --paper-accent: #0EA5E9; --paper-tint: #E0F2FE; }
.er-paper--non-verbal-reasoning { --paper-accent: #7C3AED; --paper-tint: #EDE9FE; }
.er-paper--wider-curriculum { --paper-accent: #16A34A; --paper-tint: #DCFCE7; }
.er-paper--writing { --paper-accent: #DB2777; --paper-tint: #FCE7F3; }
.er-paper--locked { --paper-accent: var(--navy); border-style: dashed; background: #fff; }
.er-paper--locked .er-paper__icon { background: #EEF2FB; }
.er-paper--locked .er-btn { white-space: normal; }
/* Download progress: the click fetches the PDF (a cold function + render can take a few seconds), so the
   button shows a spinner + is disabled until it lands — no silent wait, no double-submits. */
.er-btn.is-loading { pointer-events: none; opacity: .95; }
.er-spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff; border-radius: 50%; animation: er-spin .6s linear infinite; vertical-align: -.15em; }
@keyframes er-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .er-spinner { animation: none; } }
/* Accessible FAQ disclosures — long-tail keyword coverage + FAQ rich result */
.er-faq { border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1.05rem; margin: .6rem 0 0; background: var(--bg-soft); }
.er-faq > summary { cursor: pointer; font-weight: 600; }
.er-faq[open] > summary { margin-bottom: .5rem; }
.er-faq p { margin: 0; font-size: .92rem; color: var(--slate); }

/* On-page table of contents (jump links) — richer, guide-style page */
.er-toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin-top: 1.4rem; }
.er-toc__title { margin: 0 0 .5rem; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); }
.er-toc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .25rem .9rem; }
.er-toc a { font-weight: 600; }
/* "How to prepare" numbered steps */
.er-prep { margin: 1rem 0 0; padding-left: 1.2rem; max-width: 66ch; }
.er-prep li { margin-bottom: .7rem; line-height: 1.55; }
.er-prep li::marker { color: var(--navy); font-weight: 700; }
/* Checklist inside the paid CTA card */
.er-ticks { list-style: none; margin: .4rem 0 1rem; padding: 0; }
.er-ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; line-height: 1.5; }
.er-ticks li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--gold); }
/* Honest trust strip (verifiable claims only — no fabricated reviews) */
.er-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.er-trust__item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.er-trust__item strong { display: block; margin-bottom: .25rem; color: var(--navy); }
.er-trust__item span { color: var(--slate); font-size: .9rem; }

@media (max-width: 820px) {
  .er-school__grid { grid-template-columns: 1fr; }
  .er-card--sticky { position: static; }
}

/* ---- Process flow (How it works): numbered nodes, green completion checks, connectors ---- */
.er-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.er-flow__step { position: relative; text-align: center; padding: 0 4px; }
.er-flow__node { position: relative; z-index: 2; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-family: 'Lexend','Poppins',sans-serif; font-weight: 800; font-size: 1.5rem;
  color: #fff; background: linear-gradient(135deg, var(--navy), var(--sky)); box-shadow: 0 12px 24px -10px rgba(14,165,233,.6); }
.er-flow__check { position: absolute; right: -3px; bottom: -3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--success); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700;
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(16,185,129,.5); }
/* horizontal connector to the next node (sits behind the opaque nodes) */
.er-flow__step:not(:last-child)::after { content: ""; position: absolute; top: 31px; left: 50%; width: calc(100% + 28px);
  height: 3px; border-radius: 3px; z-index: 1; background: linear-gradient(90deg, var(--sky), rgba(14,165,233,.22)); }
.er-flow__title { font-size: 1.12rem; margin: 0 0 .4rem; }
.er-flow__desc { margin: 0; color: var(--slate); font-size: .95rem; line-height: 1.55; }
@media (max-width: 860px) {
  .er-flow { grid-template-columns: 1fr; gap: 0; max-width: 480px; margin: 0 auto; }
  .er-flow__step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; text-align: left; padding: 0 0 30px; }
  .er-flow__node { margin: 0; grid-row: span 2; }
  .er-flow__title { align-self: center; }
  .er-flow__desc { grid-column: 2; }
  /* vertical connector down the rail */
  .er-flow__step:not(:last-child)::after { top: 64px; left: 31px; width: 3px; height: calc(100% - 64px);
    background: linear-gradient(180deg, var(--sky), rgba(14,165,233,.22)); }
}
@media (prefers-reduced-motion: reduce) { .er-flow__node { box-shadow: 0 6px 14px -6px rgba(14,165,233,.5); } }

/* ===== A11y polish (audit 2026-06): touch targets + visible focus on card links ===== */
/* Mobile hamburger: a comfortable 48px touch target (was a bare 1.5rem glyph). */
.er-nav__toggle { min-width: 48px; min-height: 48px; padding: .5rem; border-radius: 10px; }
.er-nav__toggle:active, .er-nav--open .er-nav__toggle { background: rgba(30, 58, 138, .08); color: var(--navy); }
/* "More" menu button: enlarge the hit area without shifting the nav layout. */
.er-nav__more { padding: .55rem .4rem; margin: -.55rem -.4rem; min-height: 44px; }
/* Card title links strip text-decoration inline — restore an affordance on hover/keyboard focus. */
.er-card h3 a:hover, .er-card h3 a:focus-visible { text-decoration: underline; }

/* ---- Hero accent helpers (replace one-off inline colours) ---- */
.er-eyebrow--sky { color: #7DD3FC; } /* light sky for legibility on the navy hero */
.er-accent-gold { color: var(--gold); }

/* ---- Home blog/news cards ---- */
.er-card--blog { display: flex; flex-direction: column; }
.er-card--blog__img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.er-card--blog__date { color: var(--muted); font-size: .85rem; margin: 0 0 .3rem; }
.er-card--blog h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.er-card--blog h3 a { color: inherit; text-decoration: none; }
.er-card--blog h3 a:hover, .er-card--blog h3 a:focus-visible { text-decoration: underline; }
.er-card--blog__excerpt { flex: 1; font-size: .95rem; }
.er-card--blog__more { align-self: flex-start; margin-top: 8px; }

/* ---- Keyboard focus (WCAG 2.2 AA): every interactive element gets a visible ring ---- */
.er-btn:focus-visible,
.er-nav__toggle:focus-visible,
.er-nav__more:focus-visible,
.er-faq2 summary:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 6px;
}
.er-faq2 summary:focus-visible { background: rgba(14, 165, 233, .06); }

/* ============================================================================
   Mobile optimisation (audit 2026-08-14, measured at 320/375px)
   Three things this layer fixes:
   1. Article bodies are admin/AI-authored HTML — a table or wide image in a post
      used to widen the whole document (measured 478px inside a 342px viewport),
      giving every page a horizontal scroll. Guard the content, don't police the
      authors.
   2. Touch targets: footer + nav links measured 23px tall, under the WCAG 2.2 AA
      2.5.8 minimum of 24px.
   3. Desktop section rhythm (84px band padding, 56px CTA insets) costs most of a
      phone screen before any content shows.
   ============================================================================ */

/* --- 1. Author-supplied article content can never break the page --- */
.er-legal img { max-width: 100%; height: auto; border-radius: 12px; }
.er-legal iframe, .er-legal video { max-width: 100%; }
/* Long unbroken strings (URLs pasted into a post) wrap instead of pushing the page wide. */
.er-legal p, .er-legal li, .er-legal h1, .er-legal h2, .er-legal h3 { overflow-wrap: break-word; }
/* A wide table scrolls inside its own box — the page itself stays put. */
.er-legal table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse;
  -webkit-overflow-scrolling: touch; }
.er-legal th, .er-legal td { padding: 9px 14px; border: 1px solid var(--line); text-align: left; }
.er-legal th { background: var(--paper-2, #f6f8fb); font-weight: 700; white-space: nowrap; }
.er-legal table { margin: 0 0 1.2rem; }
.er-legal blockquote { margin: 1.2rem 0; padding: .6rem 0 .6rem 1.1rem; border-left: 3px solid var(--sky);
  color: var(--slate); font-style: italic; }
.er-legal pre { overflow-x: auto; max-width: 100%; }

@media (max-width: 640px) {
  /* --- 2. Touch targets --- */
  /* Footer nav links: 23px → 44px, without changing the desktop rhythm. */
  .er-footer li { margin-bottom: 0; }
  .er-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
  /* The contact email is its own paragraph, so it's a standalone target, not an inline one. */
  .er-footer__grid p a { display: inline-flex; align-items: center; min-height: 44px; }
  /* Breadcrumbs are a row of links rather than a sentence, so the 2.5.8 inline exception doesn't
     cover them — 19px → 32px (clears the 24px minimum without bloating the header). */
  .er-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  /* Rows/lists of links (page TOC, "more schools") are not inline sentence links — 23px → 44px. */
  .er-toc a, .er-linklist a { display: inline-flex; align-items: center; min-height: 44px; }

  /* --- 3. Vertical rhythm: give phone screens back to the content --- */
  .er-section { padding: 52px 0; }
  .er-section--tight { padding: 36px 0; }
  .er-banner { padding: 40px 0; }
  .er-hero { padding: 36px 0 5px; }
  .er-cta { padding: 34px 22px; border-radius: 22px; }
  .er-stats { padding: 30px 20px; border-radius: 22px; }
  .er-card, .er-plan, .er-compare__col, .er-promise__card { padding: 22px; }
  .er-hero__card { padding: 22px; }
  .er-section-head { margin-bottom: 32px; }
  .er-footer { padding: 44px 0 24px; }
  .er-footer__grid { gap: 26px; }
  .er-split__media { padding: 24px; }
  .er-faq2 details { padding: 2px 18px; }
  /* Full-width CTAs read as buttons, not links, on a phone. */
  .er-hero__cta .er-btn, .er-cta .er-btn { width: 100%; justify-content: center; }
  .er-hero__cta { gap: .7rem; }
}

@media (max-width: 420px) {
  /* Single-column footer: two columns of links get very narrow on small phones. */
  .er-footer__grid { grid-template-columns: 1fr; }
  /* Keep the header CTA from crowding the logo + hamburger on the narrowest phones. */
  .er-nav__trial { padding: .62rem 1rem; font-size: .92rem; }
}

/* ============================================================================
   Brand polish layer (2026-08-14) — the finishing details that separate a
   designed product from a template: tightened display type, a signature accent,
   a visible "you are here" in the nav, and consistent micro-signals
   (selection, scrollbar, smooth anchors). Content and layout are untouched.
   ============================================================================ */

/* ---- Type finishing ---- */
.er h1, .er h2 { letter-spacing: -0.02em; text-wrap: balance; }
.er h3, .er h4 { letter-spacing: -0.01em; }
.er-stats__num { font-variant-numeric: tabular-nums; }

/* ---- Micro-signals ---- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; /* anchors clear the sticky nav */ }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
::selection { background: rgba(14, 165, 233, 0.25); }
* { scrollbar-width: thin; scrollbar-color: rgba(100, 116, 139, 0.45) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.35);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(100, 116, 139, 0.55); }

/* ---- Brand signature: a gold→sky hairline along the very top of the site ---- */
.er-nav::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sky));
}

/* ---- Nav: underline-grow hover + a clear current-page state (desktop bar) ---- */
@media (min-width: 992px) {
  .er-nav__links > li > a:not(.er-nav__login) { position: relative; padding-block: 0.35rem; }
  .er-nav__links > li > a:not(.er-nav__login)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--sky);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
  }
  .er-nav__links > li > a:not(.er-nav__login):hover::after,
  .er-nav__links > li > a.is-current::after { transform: scaleX(1); }
  .er-nav__links > li > a.is-current { color: var(--navy); font-weight: 600; }
}
/* In the mobile panel the rows are full-width — an underline reads wrong, so mark
   the current page with weight + colour instead. */
@media (max-width: 991px) {
  .er-nav--open .er-nav__links a.is-current { color: var(--navy); font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) { .er-nav__links > li > a::after { transition: none; } }

/* ---- Buttons: a press acknowledges the click ---- */
.er-btn:active { transform: translateY(0) scale(0.99); }

/* ---- Trust bar: designed chips instead of faded words ---- */
.er-trust__row span {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  opacity: 1;
}

/* ---- Footer: micro-cap column titles + settled link hovers ---- */
.er-footer .er-foot-h {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94A3B8;
}
.er-footer a { transition: color 0.14s ease; }

/* ============================================================================
   Mobile header fix (2026-08-16) — at 375px the "Start free trial" pill wrapped
   onto two lines and ballooned into a tall orange blob crowding the logo. Pills
   never wrap, and on phones the whole header row is budgeted to fit 320px:
   smaller logo + compact pill + tighter gaps, with the brand allowed to shrink.
   ============================================================================ */
/* ONLY the header pill must never wrap (that's what ballooned). A GLOBAL `.er-btn { nowrap }` was the
   2026-09-05 mobile audit's root cause: any long-labelled button ("Email me these dates — free alerts for
   <school>") refused to wrap and forced the layout viewport to 499–588px on phones, so /school-alerts and
   every school page rendered zoomed-out. Desktop keeps single-line pills; phones let buttons wrap. */
.er-nav__trial { white-space: nowrap; }
@media (min-width: 641px) { .er-btn { white-space: nowrap; } }

@media (max-width: 640px) {
  .er-btn { white-space: normal; text-align: center; }
  .er-nav__inner { gap: 0.5rem; }
  .er-nav__cta { gap: 0.4rem; }
  .er-brand { flex-shrink: 1; min-width: 0; }
  /* Budget-based, not a guess: viewport minus the pill (~127px) + hamburger (44px) + gaps + container
     padding. A vw-only cap still collided at 375px (logo 158px + pill + burger > 375). */
  /* Both axes capped: width from the row budget, height so a roomy 500-640px viewport can't inflate
     the logo past the bar. Aspect ratio stays intact (only max-constraints + auto). */
  .er-brand__logo { max-width: calc(100vw - 254px); max-height: 36px; width: auto; height: auto; }
  /* 44px tap targets for the header controls — VERTICAL padding only, so the 320px width budget above holds. */
  .er-brand { min-height: 44px; }
  .er-nav__trial { padding: 0.5rem 0.9rem; font-size: 0.85rem; min-height: 44px; }
  .er-nav__toggle { min-width: 44px; min-height: 44px; font-size: 1.35rem; }
  /* The hero paragraph read as a 9-line wall on a phone — slightly smaller with a
     calmer measure keeps it scannable without cutting copy. */
  .er-hero p { font-size: 1.02rem; line-height: 1.65; }
  .er-eyebrow { font-size: 0.72rem; letter-spacing: 0.1em; }
}

/* Narrowest phones: compact the pill + burger a touch more so the logo keeps a readable size. */
@media (max-width: 400px) {
  .er-nav__trial { padding: 0.45rem 0.75rem; font-size: 0.8rem; }
  .er-nav__toggle { min-width: 40px; }
  .er-brand__logo { max-width: calc(100vw - 226px); }
}

/* Cookie consent banner (consent.js) — bottom sheet, above content, never wider than the viewport. */
.er-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.er-consent__inner { max-width: 960px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 14px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.er-consent__text { margin: 0; flex: 1 1 320px; font-size: .95rem; line-height: 1.5; color: var(--ink); }
.er-consent__text a { text-decoration: underline; }
.er-consent__actions { display: flex; gap: 8px; flex: 0 1 auto; flex-wrap: wrap; }
.er-consent__btn { min-height: 44px; padding: .6rem 1rem; font-size: .92rem; white-space: normal; }
.er-consent__btn--secondary { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.er-consent__btn--secondary:hover { background: #EFF6FF; }
@media (max-width: 640px) {
  .er-consent__actions { width: 100%; }
  .er-consent__btn { flex: 1 1 48%; }
}

/* ---- Per-school "how to prepare" guide (2026-09-28) ---- */
.er-btn-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.er-prep__facts { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.4rem 0; }
.er-prep__facts dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.er-prep__facts dt { font-weight: 700; color: var(--slate); }
.er-prep__facts dd { margin: 0; }
.er-prep__sources { font-size: .9rem; color: var(--muted); }
.er-prep__sources li { margin-bottom: .35rem; overflow-wrap: anywhere; }
.er-prep__cta { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.6rem 0; }
@media (max-width: 640px) { .er-prep__facts dl { grid-template-columns: 1fr; gap: .15rem; } .er-prep__facts dd { margin-bottom: .5rem; } }
