/* A Star Tuition – Ilford Tutors
   Brand palette: navy #1D315C + gold #F1D077 + white (from logo/flyers)
   TODO: Confirm DBS check wording before publishing any claim.
*/

:root {
  /* Brand from logo/flyers: navy + gold + white */
  --navy: #1D315C;
  --navy-dark: #142240;
  --navy-mid: #2A4578;
  --gold: #F1D077;
  --gold-dark: #D4B05A;
  --lavender: #F4F6F8; /* legacy name → light neutral only */
  --cream: #FFFFFF;
  --off-white: #F4F6F8;
  --slate: #1D315C; /* alias to navy — not SmartX steel blue */
  --slate-deep: #142240;
  --text: #1A1F2E;
  --muted: #5A6478;
  --border: #E2E6EF;
  --success: #1B7A4E;
  --whatsapp: #25D366;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(29, 49, 92, 0.10);
  --shadow-lg: 0 18px 48px rgba(29, 49, 92, 0.14);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 1200px;
  --header-h: 84px;
  --mobile-bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--mobile-bar-h);
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-mid); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: 5rem 0; }
.section--tight { padding: 2.5rem 0; }
.section--cream { background: var(--off-white); }
.section--off { background: var(--off-white); }
.section--navy { background: var(--navy); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--navy-mid); margin: 0 0 0.75rem;
}
.section--navy .eyebrow { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.75rem;
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); } /* ~60px desktop */
h2 { font-size: clamp(1.85rem, 4vw, 3rem); } /* ~48px desktop */
h3 { font-size: 1.35rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }
.section--navy .lead { color: rgba(255,255,255,0.85); }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 1rem;
}
.logo-link {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--navy); flex-shrink: 0;
}
.logo-link img {
  width: 44px; height: 44px; border-radius: 10px;
  object-fit: cover;
}
@media (min-width: 768px) {
  .logo-link img { width: 60px; height: 60px; border-radius: 12px; }
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.15; }
@media (min-width: 768px) {
  .logo-text { font-size: 1.35rem; }
}
.logo-text span { display: block; font-family: var(--font); font-weight: 500; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }
@media (min-width: 768px) {
  .logo-text span { font-size: 0.78rem; }
}

.nav { display: none; align-items: center; gap: 0.15rem; }
.nav a {
  text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.92rem;
  padding: 0.45rem 0.7rem; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--off-white); color: var(--navy); }
.nav-cta { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none !important; }
}

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; cursor: pointer; color: var(--navy);
}
.menu-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem 1.25rem; box-shadow: var(--shadow);
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; text-decoration: none; color: var(--text); font-weight: 500;
  padding: 0.75rem 0.85rem; border-radius: 8px;
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--off-white); color: var(--navy); }
.mobile-nav .btn { width: 100%; margin-top: 0.5rem; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  font-family: var(--font); font-weight: 600; font-size: 0.95rem;
  padding: 0.75rem 1.25rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(29,49,92,0.25); }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy-dark); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  font-weight: 700;
}
.btn-whatsapp:hover { background: #1EBE5A; color: #fff; }
.btn-whatsapp::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
}
.btn-sm.btn-whatsapp::before { width: 18px; height: 18px; }
.btn-lg.btn-whatsapp::before { width: 22px; height: 22px; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: #fff;
  padding: 3rem 0 3.5rem;
}
.hero-grid {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}
.rating-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 0.4rem 0.85rem 0.4rem 0.5rem; box-shadow: var(--shadow);
  font-size: 0.875rem; font-weight: 600; color: var(--navy); text-decoration: none;
  margin-bottom: 1.25rem;
}
.rating-badge:hover { color: var(--navy); }
.stars { color: #F5B800; letter-spacing: 1px; font-size: 0.95rem; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { margin-bottom: 1.5rem; }
.hero-card {
  background: #fff; border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  padding: 1.5rem; overflow: hidden;
}
.hero-card .photo-ph {
  aspect-ratio: 4/3; border-radius: var(--radius); margin-bottom: 1rem;
}
.hero-meta { display: grid; gap: 0.65rem; }
.hero-meta-item {
  display: flex; gap: 0.65rem; align-items: flex-start;
  font-size: 0.92rem; color: var(--muted);
}
.hero-meta-item strong { color: var(--navy); display: block; font-size: 0.95rem; }
.icon-dot {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  background: var(--off-white); color: var(--navy); display: grid; place-items: center;
  font-size: 1rem;
}

/* Trust strip */
.trust-strip {
  background: var(--navy); color: #fff; padding: 1.25rem 0;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  text-align: center;
}
@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-item strong {
  display: block; font-family: var(--font-display); font-size: 1.35rem;
  color: var(--gold); font-weight: 700;
}
.trust-item span { font-size: 0.85rem; opacity: 0.85; }

/* Cards */
.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) {
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid--subjects { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 2px 8px rgba(29,49,92,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-top: 0; }
.price-card { text-align: center; position: relative; }
.price-card.featured {
  border-color: var(--navy); box-shadow: var(--shadow);
  background: #fff;
}
.price-card .tag {
  position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.price-amount {
  font-family: var(--font-display); font-size: 2.75rem; font-weight: 700;
  color: var(--navy); line-height: 1; margin: 0.5rem 0 0.25rem;
}
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--muted); font-family: var(--font); }
.price-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.price-list { list-style: none; padding: 0; margin: 0 0 1.5rem; text-align: left; }
.price-list li {
  padding: 0.4rem 0 0.4rem 1.5rem; position: relative; font-size: 0.92rem; color: var(--muted);
}
.price-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700;
}

/* Subjects */
.subject-chip {
  display: flex; flex-direction: column; gap: 0.35rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.1rem 1.15rem; text-decoration: none; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.subject-chip:hover { border-color: var(--navy-mid); box-shadow: var(--shadow); color: inherit; }
.subject-chip strong { color: var(--navy); font-size: 1.05rem; }
.subject-chip span { font-size: 0.85rem; color: var(--muted); }
.subject-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--off-white);
  display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 0.35rem;
}

/* Tutor cards */
.tutor-card { padding: 0; overflow: hidden; }
.tutor-card .photo-ph { aspect-ratio: 1; border-radius: 0; }
.tutor-body { padding: 1.25rem 1.35rem 1.5rem; }
.tutor-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0; }
.tag-pill {
  font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.65rem;
  border-radius: 999px; background: var(--off-white); color: var(--navy-mid);
}
.tag-pill--gold { background: rgba(241,208,119,0.35); color: var(--navy-dark); }

/* How it works */
.steps {
  display: grid; gap: 1.25rem; counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font-weight: 700;
  font-family: var(--font-display); margin-bottom: 0.85rem;
}

/* Reviews */
.review-card { display: flex; flex-direction: column; gap: 0.75rem; }
.review-stars { color: #F5B800; letter-spacing: 1px; }
.review-placeholder-label {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted); background: var(--off-white);
  border: 1px dashed var(--border); padding: 0.25rem 0.55rem; border-radius: 6px;
  margin-bottom: 0.35rem;
}
.review-text { font-style: italic; color: var(--muted); flex: 1; margin: 0; }
.review-author {
  font-weight: 700; color: var(--navy); font-size: 1.15rem; font-style: normal;
  font-family: var(--font-display); margin: 0 0 0.15rem; line-height: 1.2;
}
.review-head {
  display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.75rem;
}
.review-head-text { min-width: 0; flex: 1; }
.review-head .review-card-meta { margin-bottom: 0; }
.review-avatar {
  flex-shrink: 0;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--gold); color: var(--navy-dark);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; font-family: var(--font-display);
  box-shadow: 0 2px 8px rgba(29,49,92,0.12);
}
.review-slide-top--named strong,
.review-slide-top strong {
  font-family: var(--font-display);
  font-size: 1.15rem !important;
  font-weight: 700;
  color: var(--navy);
}
.review-slide-top .review-avatar {
  width: 2.75rem; height: 2.75rem; font-size: 1.1rem;
}

/* Photo placeholders */
.photo-ph {
  background: linear-gradient(135deg, #E8ECF4 0%, #D5DCE8 100%);
  border: 1px dashed #A8B4C8;
  display: grid; place-items: center; text-align: center;
  color: var(--navy-mid); font-size: 0.85rem; font-weight: 600;
  padding: 1rem; min-height: 140px;
}
.photo-ph small { display: block; font-weight: 500; opacity: 0.75; margin-top: 0.25rem; font-size: 0.75rem; }

/* Map / hours */
.split-grid {
  display: grid; gap: 1.5rem;
}
@media (min-width: 800px) { .split-grid { grid-template-columns: 1.2fr 0.8fr; align-items: stretch; } }
.map-embed {
  border: 0; border-radius: var(--radius); width: 100%; min-height: 320px;
  box-shadow: var(--shadow); background: var(--off-white);
}
.hours-card dt { font-weight: 700; color: var(--navy); margin-top: 0.75rem; }
.hours-card dt:first-child { margin-top: 0; }
.hours-card dd { margin: 0.15rem 0 0; color: var(--muted); }

/* CTA band */
.cta-band {
  text-align: center; padding: 3.5rem 0;
  background: var(--navy);
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,0.85); margin-inline: auto; margin-bottom: 1.5rem; }

/* Forms */
.form {
  display: grid; gap: 1rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.35rem; }
.req { color: #C0392B; }
input, select, textarea {
  width: 100%; font: inherit; padding: 0.7rem 0.85rem;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--navy-mid); box-shadow: 0 0 0 3px rgba(29,49,92,0.12);
}
textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.checkbox-group label {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; color: var(--text);
  cursor: pointer;
}
.checkbox-group input { width: auto; }

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; max-width: 760px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1rem 1.15rem; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--navy-mid); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 1.15rem 1.15rem; color: var(--muted); }
.todo-box {
  border: 2px dashed #C9A227; background: #FFF8E1; color: #6B5600;
  padding: 0.85rem 1rem; border-radius: 10px; font-size: 0.9rem; margin-top: 0.75rem;
}
.todo-box strong { display: block; margin-bottom: 0.25rem; }

/* Page hero (inner pages) — navy brand band */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 4px solid var(--gold);
  color: #fff;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,0.88); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero a { color: var(--gold); }


/* Footer */
.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.8); padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.85rem; }
.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-brand { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.75rem; }
.footer-brand img { width: 44px; height: 44px; border-radius: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  font-size: 0.82rem; opacity: 0.75;
}

/* Sticky mobile bar */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-bar .btn { width: 100%; }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.gap-sm { gap: 0.5rem; }
.stack { display: grid; gap: 1rem; }
.draft-banner {
  background: #FFF3CD; color: #664D03; text-align: center; font-size: 0.85rem;
  padding: 0.5rem 1rem; border-bottom: 1px solid #FFE69C;
}


/* Progress + parent tools */
.progress-card { position: relative; }
.progress-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--navy-mid); background: var(--lavender);
  padding: 0.25rem 0.55rem; border-radius: 999px; margin-bottom: 0.75rem;
}
.tools-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .tools-grid { grid-template-columns: 1fr 1fr; }
}
.tool-card h3 { margin-top: 0; }
.tool-source { font-size: 0.8rem; color: var(--muted); margin: 0.75rem 0 1rem; }
.pass-chart { display: grid; gap: 0.75rem; margin: 1rem 0; }
.pass-bar-row { display: grid; grid-template-columns: 4.5rem 1fr 3.2rem; gap: 0.6rem; align-items: center; }
.pass-label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.pass-track { height: 12px; background: var(--border); border-radius: 999px; overflow: hidden; }
.pass-fill { height: 100%; border-radius: 999px; }
.pass-fill--ok { background: var(--success); }
.pass-fill--miss { background: var(--navy-mid); }
.pass-pct { font-size: 0.85rem; font-weight: 700; color: var(--navy); text-align: right; }
.countdown {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0;
}
.count-unit {
  flex: 1 1 5rem; min-width: 4.5rem; text-align: center;
  background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.85rem 0.5rem;
}
.count-num { display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.count-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.mini-form { display: grid; gap: 0.65rem; margin: 1rem 0; }
.mini-form label { margin-bottom: 0; }
.finder-result {
  margin-top: 0.75rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm);
  background: var(--cream); border: 1px solid var(--border); color: var(--text);
}
.finder-result strong { color: var(--navy); }
.savings-compare {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
  margin: 0.75rem 0 0.5rem;
}
.savings-compare > div {
  background: var(--off-white); border-radius: var(--radius-sm); padding: 0.75rem;
  border: 1px solid var(--border);
}
.savings-compare .price-amount { margin: 0.25rem 0 0; }
input[type="range"] {
  width: 100%; accent-color: var(--navy); margin: 0.5rem 0 0.25rem;
}

/* ——— Calm homepage v2 ——— */
.hero--calm {
  background: #fff;
  padding: 3.5rem 0 3rem;
  overflow: visible;
}
.hero--calm::before { display: none; }
.hero-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}
.hero-simple { max-width: 40rem; }
.hero-simple h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.hero-simple .lead {
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
  max-width: 36rem;
}
.hero-aside {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}
.hero-brand-panel {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
}
.hero-brand-panel img {
  width: min(240px, 62%);
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.hero-brand-panel .brand-name {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.2;
}
.hero-brand-panel .brand-meta {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.cred-line {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-weight: 500;
}
.cred-line a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}
.cred-line a:hover { border-bottom-color: var(--gold); }
.cred-sep { margin: 0 0.45rem; opacity: 0.55; }

.narrow-block { max-width: 40rem; }
.narrow-block .lead { margin-bottom: 1.75rem; }
.narrow-block h2 { margin-bottom: 0.85rem; }

/* Generous section spacing */
.hero--calm + .section,
main > .section { padding: 5.5rem 0; }

.subject-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.subject-list li {
  border-bottom: 1px solid var(--border);
}
.subject-list a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s;
}
.subject-list a:hover { color: var(--navy); }
.subject-list strong {
  color: var(--navy);
  font-weight: 600;
  margin-right: 0.25rem;
}

.calm-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: calmstep;
  display: grid;
  gap: 1.75rem;
}
.calm-steps li {
  counter-increment: calmstep;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.calm-steps li::before {
  content: counter(calmstep);
  flex: 0 0 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.45;
}
.calm-steps strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.calm-steps span {
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
}

.pass-chart--calm {
  margin: 1.5rem 0 0.5rem;
  max-width: 28rem;
}
.exam-line {
  font-size: 0.95rem;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.exam-line [data-unit] {
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.review-quote {
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
}
.review-quote p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.45;
  margin: 0 0 0.5rem;
  font-style: italic;
}
.review-quote footer {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
}

.cta-final {
  background: var(--navy);
  color: #fff;
  padding: 5rem 0 !important;
}
.cta-final h2 { color: #fff; }
.cta-final .lead { color: rgba(255,255,255,0.82); }
.cta-final a:not(.btn) { color: var(--gold); }
.cta-final .contact-brief {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.98rem;
}
.cta-final .contact-brief p { margin: 0 0 0.75rem; }
.cta-final .muted { color: rgba(255,255,255,0.65); }

/* button hover motion defined in Motion section */

/* Pricing tools section */
.tools-section-intro { max-width: 40rem; margin-bottom: 2rem; }


/* ——— Stats band (homepage) ——— */
.stats-band {
  position: relative;
  padding: 2.5rem 0 0;
  background: #fff;
}
.stats-band::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: var(--navy-dark);
  z-index: 0;
}
.stats-band .container { position: relative; z-index: 1; }
.stats-kicker {
  text-align: center;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 1.75rem;
}
.stats-panel {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 2.5rem 1.75rem 2.75rem;
  box-shadow: 0 16px 40px rgba(30, 51, 72, 0.18);
  margin-bottom: 0;
}
@media (min-width: 720px) {
  .stats-panel { padding: 2.25rem 2.5rem 2.5rem; }
}
.stats-panel-title {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold);
  margin: 0 0 1.75rem;
  letter-spacing: 0.01em;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.25rem;
  text-align: center;
}
@media (min-width: 800px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}
.stat-item { min-width: 0; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.5vw, 3.5rem);
  line-height: 1.1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-label {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.05rem; /* ~17-18px, near SmartX 20px */
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  max-width: 11rem;
  margin-inline: auto;
}
.stats-band-spacer {
  height: 3.5rem;
  background: var(--navy-dark);
}


/* Google rating badge */
.google-rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}
.google-rating:hover { color: var(--navy); }
.google-g {
  width: 20px; height: 20px; flex-shrink: 0; display: block;
}
.google-score { font-weight: 700; color: var(--text); }
.google-stars {
  color: #F4B400;
  letter-spacing: 1px;
  font-size: 0.95rem;
  line-height: 1;
}
.google-count { color: var(--muted); font-weight: 500; }
.google-rating--lg { font-size: 1.05rem; gap: 0.5rem 0.65rem; }
.google-rating--lg .google-g { width: 22px; height: 22px; }
.google-rating--lg .google-stars { font-size: 1.1rem; }
.cred-line .google-rating { margin-right: 0.15rem; }
.reviews-badge-wrap { margin-bottom: 1.5rem; }
.stat-item .google-inline {
  display: inline-flex; align-items: center; gap: 0.35rem; justify-content: center;
}
.stat-item .google-g { width: 16px; height: 16px; }

/* How it works visual cards */
.how-visual {
  max-width: none;
}
.how-visual .lead { max-width: 40rem; }
.steps-visual {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.5rem;
  counter-reset: howstep;
  position: relative;
}
@media (min-width: 880px) {
  .steps-visual {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
  .steps-visual::before {
    content: "";
    position: absolute;
    top: 38%;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--slate), var(--border));
    z-index: 0;
    opacity: 0.7;
  }
}
.step-card {
  counter-increment: howstep;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(30, 51, 72, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.step-card-media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--off-white);
}
.step-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.step-num {
  position: absolute;
  left: 0.85rem; bottom: 0.85rem;
  width: 3.1rem; height: 3.1rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(30,51,72,0.25);
}
.step-card-body { padding: 1.15rem 1.25rem 1.35rem; }
.step-card-body h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}
.step-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}


/* ——— Motion (respects prefers-reduced-motion) ——— */
.site-header {
  transition: box-shadow 0.35s ease, height 0.35s ease, background 0.35s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(30, 51, 72, 0.10);
  height: 72px;
}
@media (min-width: 768px) {
  .site-header.is-scrolled .logo-link img { width: 52px; height: 52px; }
}

.nav a {
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.7rem; right: 0.7rem; bottom: 0.25rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  border-radius: 2px;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.btn {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 51, 72, 0.14);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

/* Progressive enhancement: only hide when JS marks ready */
.js-ready .reveal-hero > * {
  opacity: 0;
  transform: translateY(18px);
}
.js-ready .reveal-hero.is-ready > *:nth-child(1) { transition: opacity 0.55s ease-out, transform 0.55s ease-out; transition-delay: 0.05s; }
.js-ready .reveal-hero.is-ready > *:nth-child(2) { transition: opacity 0.55s ease-out, transform 0.55s ease-out; transition-delay: 0.14s; }
.js-ready .reveal-hero.is-ready > *:nth-child(3) { transition: opacity 0.55s ease-out, transform 0.55s ease-out; transition-delay: 0.22s; }
.js-ready .reveal-hero.is-ready > *:nth-child(4) { transition: opacity 0.55s ease-out, transform 0.55s ease-out; transition-delay: 0.30s; }
.js-ready .reveal-hero.is-ready > *:nth-child(5) { transition: opacity 0.55s ease-out, transform 0.55s ease-out; transition-delay: 0.38s; }
.js-ready .reveal-hero.is-ready > * {
  opacity: 1;
  transform: none;
}

.js-ready .reveal-hero-panel {
  opacity: 0;
  transform: scale(0.96) translateY(12px);
}
.js-ready .reveal-hero-panel.is-ready {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
  transition-delay: 0.2s;
}
.js-ready .reveal-hero-panel.is-ready img {
  animation: logoFloat 5.5s ease-in-out 0.9s infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.js-ready .reveal-up {
  opacity: 0;
  transform: translateY(20px);
}
.js-ready .reveal-up.is-inview {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-ready .step-card {
  opacity: 0;
  transform: translateY(18px);
}
.js-ready .step-card.is-inview {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease-out, transform 0.55s ease-out, box-shadow 0.25s ease;
}
.js-ready .step-card:nth-child(1).is-inview { transition-delay: 0.05s; }
.js-ready .step-card:nth-child(2).is-inview { transition-delay: 0.15s; }
.js-ready .step-card:nth-child(3).is-inview { transition-delay: 0.25s; }

/* Chart bars animate width when in view */
.pass-fill {
  transform-origin: left center;
  transition: none;
}
.js-ready .pass-chart:not(.is-inview) .pass-fill {
  width: 0 !important;
}
.js-ready .pass-chart.is-inview .pass-fill {
  transition: width 0.7s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal-hero > *,
  .js-ready .reveal-hero-panel,
  .js-ready .reveal-up,
  .js-ready .step-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .js-ready .reveal-hero-panel.is-ready img { animation: none !important; }
  .js-ready .pass-chart:not(.is-inview) .pass-fill { width: auto; }
  .js-ready .pass-chart.is-inview .pass-fill { transition: none; }
  .btn:hover, .btn-whatsapp:hover { transform: none; }
  .nav a::after { transition: none; }
  .site-header { transition: none; }
}

/* ——— Clean header actions ——— */
.header-actions {
  display: flex; align-items: center; gap: 0.65rem; margin-left: auto;
}
.header-trial { display: none; }
@media (min-width: 640px) {
  .header-trial { display: inline-flex; }
}
@media (max-width: 479px) {
  .header-wa .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .header-wa { width: 44px; height: 44px; padding: 0; border-radius: 999px; }
  .header-wa::before { margin: 0; }
}
.menu-toggle {
  display: inline-flex !important;
  width: 48px; height: 48px;
  border: none; background: transparent; cursor: pointer; color: var(--navy);
}
.menu-toggle .icon-burger { width: 28px; height: 28px; }
.nav { display: none !important; } /* desktop also uses overlay menu */
.nav-cta { display: none !important; }

/* Full-screen navy menu */
.site-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy);
  color: #fff;
  display: flex; flex-direction: column;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.site-menu.is-open {
  opacity: 1; transform: none; pointer-events: auto;
}
.site-menu[hidden] { display: none; }
.site-menu.is-open[hidden] { display: flex; }
.site-menu-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-menu-logo img { width: 48px; height: 48px; border-radius: 10px; }
.site-menu-close {
  background: transparent; border: none; color: #fff; cursor: pointer;
  width: 48px; height: 48px; display: grid; place-items: center;
}
.site-menu-nav {
  flex: 1; overflow: auto; padding: 0;
}
.site-menu-nav > a,
.menu-group-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  padding: 1.15rem 1.5rem;
  min-height: 56px;
  font-size: 1.15rem; font-weight: 500; color: #fff;
  text-decoration: none; background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  cursor: pointer; font-family: var(--font);
}
.site-menu-nav > a:hover,
.menu-group-toggle:hover { background: rgba(255,255,255,0.06); color: #fff; }
.menu-group-panel {
  background: rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.menu-group-panel a {
  display: block; padding: 0.9rem 1.5rem 0.9rem 2rem;
  color: rgba(255,255,255,0.9); text-decoration: none; font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.menu-group-panel a:last-child { border-bottom: none; }
.menu-group-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-group-toggle svg { transition: transform 0.25s ease; }
.site-menu-foot {
  padding: 1.25rem 1.5rem 1.75rem;
  display: grid; gap: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.menu-phone { color: var(--gold); text-align: center; text-decoration: none; font-weight: 600; }
body.menu-open { overflow: hidden; }

/* How it works: video + timeline */
.how-split {
  display: grid; gap: 2.5rem; margin-top: 1.75rem;
}
@media (min-width: 900px) {
  .how-split { grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr); gap: 3rem; align-items: start; }
}
.video-slot {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px;
  background: var(--navy); overflow: hidden;
  display: grid; place-items: center; color: #fff;
}
.video-slot-logo {
  width: 96px; height: 96px; border-radius: 18px; opacity: 0.95;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.video-play {
  position: absolute; width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85); background: rgba(255,255,255,0.12);
  color: #fff; display: grid; place-items: center; cursor: default;
}
.video-slot-label {
  position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center;
  font-size: 0.95rem; color: rgba(255,255,255,0.85);
}
.video-caption { margin: 0.75rem 0 0; font-size: 0.95rem; }
.how-structure-label {
  font-size: 1.05rem; font-weight: 600; color: var(--navy); margin: 0 0 1.5rem;
}
.how-timeline {
  list-style: none; margin: 0; padding: 0; position: relative;
}
.how-timeline::before {
  content: ""; position: absolute; left: 1.35rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px; background: var(--border);
}
.how-step {
  display: grid; grid-template-columns: 2.8rem 1fr; gap: 1rem 1.25rem;
  margin-bottom: 2rem; position: relative;
}
.how-step-num {
  width: 2.8rem; height: 2.8rem; border-radius: 10px;
  background: var(--navy); color: var(--gold);
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  display: grid; place-items: center; position: relative; z-index: 1;
}
.how-step-body h3 {
  font-size: clamp(1.35rem, 2.5vw, 2rem); margin: 0.15rem 0 0.45rem;
}
.how-step-body p { margin: 0 0 0.5rem; color: var(--muted); }
.how-bullets {
  margin: 0.35rem 0 0; padding-left: 1.1rem; color: var(--muted);
}
.how-bullets li { margin: 0.2rem 0; }
.js-ready .reveal-step {
  opacity: 0; transform: translateY(16px);
}
.js-ready .reveal-step.is-inview {
  opacity: 1; transform: none;
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.js-ready .reveal-step:nth-child(1).is-inview { transition-delay: 0.05s; }
.js-ready .reveal-step:nth-child(2).is-inview { transition-delay: 0.15s; }
.js-ready .reveal-step:nth-child(3).is-inview { transition-delay: 0.25s; }

/* Our Tutors flip band */
.tutors-band {
  background: var(--navy); color: #fff; padding: 4.5rem 0;
}
.tutors-band-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem;
}
.tutors-band h2 { color: #fff; margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.tutors-band-logo { width: 64px; height: 64px; border-radius: 12px; }
.flip-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 900px) {
  .flip-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}
.flip-card {
  appearance: none; -webkit-appearance: none; border: 0; margin: 0;
  padding: 0; cursor: pointer; display: block;
  width: 100%; height: 280px; min-height: 280px;
  background: transparent; perspective: 1200px;
  border-radius: 16px; color: inherit; font: inherit; text-align: inherit;
}
.flip-inner {
  position: relative; display: block;
  width: 100%; height: 100%; min-height: 280px;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
  border-radius: 16px;
}
.flip-card.is-flipped .flip-inner,
.flip-card:focus-visible .flip-inner,
.flip-card:focus-within .flip-inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-inner { transform: rotateY(180deg); }
}
.flip-front, .flip-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 16px; background: #fff; color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem 1.25rem; text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  box-sizing: border-box;
}
.flip-back {
  transform: rotateY(180deg);
  background: var(--navy-dark);
  color: #fff;
  border-top-color: var(--gold);
}
.flip-icon {
  width: 64px; height: 64px; margin-bottom: 0.75rem;
  color: var(--navy);
  background: rgba(241, 208, 119, 0.35);
  border-radius: 50%;
  padding: 12px;
  box-sizing: border-box;
}
.flip-back .flip-back-text { color: rgba(255,255,255,0.9); }
.flip-word {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.25;
  color: var(--navy);
}
.flip-back-text { font-size: 0.98rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 899px) {
  .flip-card, .flip-inner { height: 240px; min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: opacity 0.35s ease; transform: none !important; }
  .flip-back { opacity: 0; transform: none; pointer-events: none; }
  .flip-card.is-flipped .flip-front,
  .flip-card:focus-within .flip-front { opacity: 0; }
  .flip-card.is-flipped .flip-back,
  .flip-card:focus-within .flip-back { opacity: 1; pointer-events: auto; }
}

/* Education level tabs */
.level-tabs {
  display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0 1.25rem;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.level-tab {
  flex: 0 0 auto; border: none; cursor: pointer; font-family: var(--font);
  font-weight: 600; font-size: 0.98rem;
  padding: 0.65rem 1.15rem; border-radius: 999px;
  background: transparent; color: var(--text);
}
.level-tab.is-active {
  background: var(--navy); color: #fff;
}
.level-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.level-cards {
  display: grid; gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .level-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .level-cards { grid-template-columns: repeat(3, 1fr); }
}
.level-card {
  background: var(--navy); color: #fff; border-radius: 16px;
  padding: 1.5rem 1.35rem 1.35rem; min-height: 200px;
  display: flex; flex-direction: column;
}
.level-card h3 {
  color: #fff; font-size: clamp(1.25rem, 2vw, 1.55rem); margin: 0 0 1rem;
}
.level-meta { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.level-format { margin: 0.35rem 0 1.25rem; color: #fff; font-size: 0.98rem; }
.btn-learn {
  margin-top: auto; align-self: flex-start;
  background: #fff; color: var(--navy); border: none;
  padding: 0.55rem 1rem; border-radius: 8px; font-weight: 600;
  text-decoration: none; font-size: 0.9rem;
}
.btn-learn:hover { background: var(--gold); color: var(--navy-dark); }

/* Reviews Google-style */
.reviews-layout {
  display: grid; gap: 2rem;
}
@media (min-width: 880px) {
  .reviews-layout { grid-template-columns: 220px 1fr; align-items: start; gap: 2.5rem; }
}
.reviews-excellent {
  font-size: 1.75rem; font-weight: 700; color: var(--navy); margin: 0 0 0.35rem;
  font-family: var(--font-display);
}
.reviews-stars { font-size: 1.35rem; margin: 0 0 0.35rem; color: #F4B400; }
.reviews-based { margin: 0 0 0.75rem; color: var(--muted); }
.reviews-google-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  text-decoration: none; color: var(--navy); font-weight: 600;
}
.reviews-carousel { position: relative; min-width: 0; }
.reviews-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch;
}
.review-slide {
  flex: 0 0 min(320px, 85%); scroll-snap-align: start;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 1.15rem; box-shadow: 0 2px 10px rgba(29,49,92,0.04);
}
.review-slide-top {
  display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.5rem;
}
.review-slide-top > div { flex: 1; min-width: 0; }
.review-slide-top strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.review-date { display: block; font-size: 0.8rem; color: var(--muted); }
.review-avatar {
  flex-shrink: 0;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--gold); color: var(--navy-dark);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; font-family: var(--font-display);
}
.review-clamp {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; color: var(--muted); margin: 0.35rem 0 0; font-size: 0.95rem;
}
.reviews-nav { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.reviews-arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--navy); font-size: 1.4rem; cursor: pointer;
}
.reviews-arrow:hover { background: var(--navy); color: #fff; }

/* Light footer */
.site-footer--light {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  border-top: 3px solid var(--gold);
}
.site-footer--light h4 { color: #fff; }
.site-footer--light a { color: rgba(255,255,255,0.85); }
.site-footer--light a:hover { color: var(--gold); }
.site-footer--light .footer-tagline,
.site-footer--light .muted { color: rgba(255,255,255,0.7); }
.footer-logo-link img { width: 88px; height: 88px; border-radius: 14px; }
.footer-tagline { margin: 0.75rem 0 0; max-width: 16rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-wa { color: var(--whatsapp) !important; font-weight: 600; }
.footer-quick {
  display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center;
  margin: 2rem 0 1.25rem;
}
.footer-social { display: flex; gap: 0.75rem; justify-content: center; margin: 1.5rem 0; }
.footer-social.is-hidden { display: none; }
.social-btn {
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; text-decoration: none; font-weight: 700; font-size: 0.75rem;
}
.footer-bottom--light {
  border-top: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); opacity: 1;
}
.back-top { font-weight: 600; color: var(--gold) !important; }


/* Success story video */
.video-slot--story { padding: 0; }
.story-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: var(--navy); z-index: 1;
}
.video-poster-fallback {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; align-content: center; gap: 0.75rem;
  background: var(--navy); color: #fff; pointer-events: none;
}
.video-slot--story.has-video .video-poster-fallback { display: none; }
.video-slot--story .video-play {
  position: static; pointer-events: none;
}
.msg-icon { width: 22px; height: 22px; flex-shrink: 0; }
.review-card-meta {
  display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.35rem;
}
.review-source { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.review-more {
  margin-top: 0.5rem; background: none; border: none; color: var(--navy);
  font-weight: 600; cursor: pointer; padding: 0; font-family: var(--font); font-size: 0.9rem;
}
.review-slide.is-expanded .review-clamp {
  display: block; -webkit-line-clamp: unset; overflow: visible;
}


/* Results strip from real reviews */
.results-strip { padding-top: 3rem; padding-bottom: 2rem; }
.results-strip-title { margin-bottom: 0.35rem; }
.results-strip-note { margin: 0 0 1.25rem; }
.results-pills {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.65rem;
}
.results-pills a {
  display: inline-flex; align-items: center;
  padding: 0.55rem 1rem; border-radius: 999px;
  background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
}
.results-pills a:hover { background: var(--navy-mid); color: var(--gold); }


/* Watch our tutors teach */
.watch-teach {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 860px) {
  .watch-teach {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.75rem;
  }
}
.watch-teach-copy .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.watch-teach-copy h2 { margin: 0 0 0.65rem; }
.watch-teach-copy .lead { margin: 0 0 1.25rem; max-width: 34ch; }
.watch-teach-media { margin: 0; }
.watch-teach-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 36px rgba(29, 49, 92, 0.12);
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 180px;
}
.watch-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  z-index: 1;
}
.watch-teach-cap {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
}
@media (max-width: 859px) {
  .watch-teach-copy .lead { max-width: none; }
}


/* Hussain success story — portrait phone frame */
.how-video-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.story-phone {
  width: min(100%, 320px);
  margin-inline: auto;
}
.video-slot--portrait {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  min-height: 420px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(29, 49, 92, 0.18);
  border: 3px solid var(--navy);
  background: #000;
  overflow: hidden;
}
.video-slot--portrait .story-video,
.story-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  background: #000;
  z-index: 2;
}
.how-video-col .video-caption {
  text-align: center;
  max-width: 36ch;
  margin-top: 0.85rem;
  line-height: 1.45;
}
@media (max-width: 899px) {
  .story-phone { width: min(100%, 280px); }
}


/* Brand colour accents */
.card {
  border-top: 3px solid transparent;
}
.card--accent,
.card-grid > .card {
  border-top: 3px solid var(--gold);
}
.card-icon {
  display: inline-flex;
  color: var(--navy);
  margin-bottom: 0.65rem;
}
.card-icon svg { display: block; }
.section h2 {
  position: relative;
}
.section > .container > h2::after,
.section .center::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 0.65rem;
}
.section .center::after { margin-inline: auto; }
.tag-pill {
  background: rgba(29, 49, 92, 0.08);
}
.tag-pill--gold {
  background: rgba(241, 208, 119, 0.55);
  color: var(--navy-dark);
  font-weight: 600;
}
.level-card {
  border-top: 3px solid var(--gold);
}
.section--navy-band {
  background: var(--navy);
  color: #fff;
}
.section--navy-band h2 { color: #fff; }
.section--navy-band .lead { color: rgba(255,255,255,0.85); }


/* GCSE Maths donut */
.pass-donut-wrap {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin: 1.5rem 0 1rem;
}
@media (min-width: 700px) {
  .pass-donut-wrap {
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
  }
}
.pass-donut {
  position: relative;
  width: 220px;
  height: 220px;
  margin-inline: auto;
}
.pass-donut-svg { display: block; width: 100%; height: 100%; }
.donut-track { stroke: var(--border); }
.donut-seg { stroke-linecap: butt; transition: stroke-dashoffset 1.1s ease; }
.donut-seg--pass { stroke: var(--gold); }
.donut-seg--fail { stroke: var(--navy); }
.pass-donut-centre {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center;
  pointer-events: none;
}
.pass-donut-pct {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1;
}
.pass-donut-label {
  font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-top: 0.25rem;
}
.pass-legend {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.75rem;
}
.pass-legend li {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 1.05rem; color: var(--text);
}
.swatch {
  width: 1.1rem; height: 1.1rem; border-radius: 4px; flex-shrink: 0;
}
.swatch--pass { background: var(--gold); }
.swatch--fail { background: var(--navy); }

/* Real-time exam countdown tiles */
.exam-countdown {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  border: 1px solid rgba(241,208,119,0.35);
  box-shadow: var(--shadow);
}
.exam-countdown-label {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 650;
  color: #fff;
}
.exam-countdown-label strong { color: var(--gold); }
.exam-countdown-sub { margin: 0 0 1.15rem; color: rgba(255,255,255,0.75) !important; font-size: 0.95rem; }
.countdown-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.countdown-tile {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(241,208,119,0.35);
  border-radius: 12px;
  padding: 0.85rem 0.4rem;
  text-align: center;
}
.countdown-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.countdown-unit {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}
@media (max-width: 480px) {
  .countdown-tiles { gap: 0.4rem; }
  .countdown-tile { padding: 0.65rem 0.25rem; }
}


/* Trust badge (11+ / SEND) */
.trust-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(241, 208, 119, 0.35);
  color: var(--navy-dark);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}
.trust-badge-mark { color: var(--navy); font-size: 0.95rem; }


/* Branded tutor visual panels (no photos) */
.tutor-visual {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  height: 100%;
  background: linear-gradient(155deg, #1D315C 0%, #142240 55%, #0f1a30 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem 1.35rem;
  text-align: center;
  border-right: 1px solid rgba(241,208,119,0.25);
}
.tutor-visual--compact { min-height: 220px; border-right: 0; border-radius: 12px; margin-bottom: 0.85rem; }
.tutor-visual-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.14;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(241,208,119,0.9) 1px, transparent 0);
  background-size: 18px 18px;
}
.tutor-visual-mono {
  position: relative; z-index: 2;
  width: 8.125rem; height: 8.125rem; /* ~130px mobile */
  border-radius: 50%;
  background: rgba(241,208,119,0.18);
  border: 3px solid var(--gold);
  display: grid; place-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.tutor-visual-mono span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
}
.tutor-visual--ahmed .tutor-visual-mono { border-radius: 50%; }
.tutor-visual--ammad .tutor-visual-mono { border-radius: 18px; }
.tutor-visual--ali .tutor-visual-mono {
  border-radius: 50% 50% 50% 12%;
}
.tutor-visual--asma .tutor-visual-mono {
  border-radius: 12px;
  background: rgba(241,208,119,0.28);
}
.tutor-visual-role {
  position: relative; z-index: 2;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  max-width: 16ch;
  line-height: 1.35;
}
.tutor-visual-chip {
  position: relative; z-index: 2;
  margin-top: 0.85rem;
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(241,208,119,0.22);
  border: 1px solid rgba(241,208,119,0.45);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
}
.tv-float {
  position: absolute; z-index: 1;
  color: rgba(241,208,119,0.55);
  width: 1.75rem; height: 1.75rem;
  animation: tv-float 5.5s ease-in-out infinite;
}
.tv-float .tv-icon { width: 100%; height: 100%; display: block; }
.tv-float--1 { top: 12%; left: 10%; animation-delay: 0s; }
.tv-float--2 { top: 18%; right: 12%; animation-delay: 0.8s; color: rgba(255,255,255,0.35); }
.tv-float--3 { bottom: 18%; left: 14%; animation-delay: 1.4s; color: rgba(255,255,255,0.4); }
.tv-float--4 { bottom: 14%; right: 12%; animation-delay: 2s; }
@keyframes tv-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .tv-float { animation: none; }
}
@media (min-width: 800px) {
  .tutor-visual { min-height: 360px; }
  .tutor-visual-mono {
    width: 11.5rem; height: 11.5rem; /* ~184px desktop */
  }
  .tutor-visual--compact { min-height: 260px; }
  .tutor-visual--compact .tutor-visual-mono,
  .tutor-visual--compact .tutor-visual-mono--avatar {
    width: 8.75rem; height: 8.75rem; /* ~140px */
  }
}

/* Room collage */
.room-collage { margin: 0 0 1rem; }
.room-collage-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.9fr;
  gap: 0.55rem;
  border-radius: 16px;
  padding: 0.55rem;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
}
.room-collage-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #0f1a30;
}
.room-collage-grid img:nth-child(2) { height: 160px; }
@media (max-width: 700px) {
  .room-collage-grid { grid-template-columns: 1fr 1fr; }
  .room-collage-grid img:last-child { grid-column: 1 / -1; height: 140px; }
}
.room-collage-cap {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}
.room-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--gold);
  margin-bottom: 0.75rem;
}
.room-home {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 900px) {
  .room-home { grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; }
}
.room-home-copy .lead { max-width: 36ch; }
.room-collage--home .room-collage-grid img { height: 180px; }
@media (max-width: 700px) {
  .room-collage--home .room-collage-grid img { height: 130px; }
}

/* Reveal failsafe — never leave content faded */
.js-ready .reveal-up,
.js-ready .reveal-step,
.js-ready .step-card {
  animation: reveal-failsafe 0s linear 2s forwards;
}
@keyframes reveal-failsafe {
  to { opacity: 1; transform: none; }
}
.js-ready .reveal-up.is-inview,
.js-ready .reveal-step.is-inview,
.js-ready .step-card.is-inview {
  animation: none;
}


/* Memoji-style avatar in gold ring */
.tutor-visual-mono--avatar {
  overflow: hidden;
  padding: 0;
  background: #1D315C;
  border: 4px solid var(--gold);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 0 5px rgba(241,208,119,0.2);
  animation: tv-float 4.5s ease-in-out infinite;
}
.tutor-visual-mono--avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.tutor-visual--compact .tutor-visual-mono--avatar {
  width: 7.5rem; height: 7.5rem; /* ~120px default; desktop override above */
}

.form-helper { margin: 0.65rem 0 0; font-size: 0.9rem; }
.btn .wa-icon { margin-right: 0.4rem; vertical-align: -3px; }


/* Exit-intent offer popup */
.exit-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20, 34, 64, 0.62);
  display: grid; place-items: center;
  padding: 1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.exit-overlay.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.exit-modal {
  position: relative;
  width: min(100%, 420px);
  background: #fff;
  color: var(--text);
  border-radius: 18px;
  border-top: 5px solid var(--gold);
  box-shadow: 0 24px 60px rgba(20, 34, 64, 0.35);
  padding: 1.6rem 1.4rem 1.35rem;
  transform: translateY(12px) scale(0.96);
  transition: transform 0.3s ease;
  max-height: min(92vh, 640px);
  overflow: auto;
}
.exit-overlay.is-open .exit-modal { transform: none; }
.exit-close {
  position: absolute; top: 0.65rem; right: 0.7rem;
  width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%;
  background: var(--off-white); color: var(--navy);
  font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.exit-close:hover { background: var(--navy); color: #fff; }
.exit-logo {
  display: block; width: 52px; height: 52px; border-radius: 12px;
  margin: 0 auto 0.75rem;
}
.exit-badge {
  display: inline-block;
  margin: 0 auto 0.65rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.exit-modal-head { text-align: center; }
.exit-modal h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  margin: 0 0 0.45rem;
  color: var(--navy);
}
.exit-sub {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}
.exit-form { display: grid; gap: 0.7rem; }
.exit-form label {
  display: grid; gap: 0.3rem;
  font-size: 0.88rem; font-weight: 600; color: var(--navy);
}
.exit-form input {
  font: inherit; padding: 0.65rem 0.75rem;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff;
}
.exit-form input:focus {
  outline: 3px solid rgba(241,208,119,0.55); outline-offset: 1px;
  border-color: var(--navy);
}
.exit-actions { display: grid; gap: 0.55rem; margin-top: 0.35rem; }
.exit-actions .btn { width: 100%; justify-content: center; }
.exit-dismiss {
  display: block; text-align: center;
  background: none; border: 0; color: var(--muted);
  font: inherit; font-size: 0.9rem; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  padding: 0.35rem;
}
.exit-dismiss:hover { color: var(--navy); }
.exit-fine {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
body.exit-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .exit-overlay, .exit-modal { transition: none; }
}


/* DBS trust chip */
.dbs-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.65rem 0 0;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(241, 208, 119, 0.35);
  border: 1px solid rgba(241, 208, 119, 0.75);
  color: var(--navy-dark);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}
.dbs-shield { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--navy); }
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
}
.hero-trust-row .google-rating { margin: 0; }
.hero-trust-row .dbs-chip { margin: 0; }
.page-hero .dbs-chip {
  background: rgba(241, 208, 119, 0.28);
  color: #fff;
  border-color: rgba(241, 208, 119, 0.55);
}
.page-hero .dbs-shield { color: var(--gold); }


/* 11+ timetable cards */
.timetable-grid { gap: 1.25rem; }
.timetable-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(29, 49, 92, 0.12);
  box-shadow: 0 8px 24px rgba(29, 49, 92, 0.06);
}
.timetable-card .timetable-day {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.timetable-card .timetable-time {
  margin: 0.2rem 0 0.65rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 650;
  color: var(--navy);
  line-height: 1.15;
}
.timetable-card .timetable-subjects {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--navy);
}
.timetable-meta {
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
  color: var(--muted, #5a6475);
  flex: 1;
}
.timetable-meta li { margin: 0.2rem 0; }
.timetable-card .btn { align-self: flex-start; margin-top: auto; }
.timetable-card--compact { padding: 1.1rem 1.15rem; }

/* Facebook footer social */
.footer-social { display: flex; gap: 0.75rem; justify-content: center; margin: 1.5rem 0; }
.social-btn--facebook {
  background: #1877F2;
}
.social-btn--facebook:hover { filter: brightness(1.08); }
.social-icon { display: block; }


/* ——— Progress tracker (example RAG + past papers) ——— */
.ptrack {
  --rag-red: #E5484D;
  --rag-amber: #F5A524;
  --rag-green: #2E9E5B;
  background: #fff;
  border: 1px solid rgba(29,49,92,0.12);
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 12px 36px rgba(29,49,92,0.07);
}
.ptrack--compact { padding: 1.15rem 1rem 1.25rem; }
.ptrack-banner {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(241,208,119,0.35);
  border: 1px solid rgba(241,208,119,0.7);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.ptrack-head {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.1rem;
}
@media (min-width: 720px) {
  .ptrack-head { grid-template-columns: 1fr auto; gap: 1.75rem; }
}
.ptrack-head .eyebrow { margin-bottom: 0.35rem; }
.ptrack-head h1, .ptrack-head h2 { margin: 0 0 0.5rem; color: var(--navy); }
.ptrack-caption { margin: 0; color: var(--muted, #5a6475); max-width: 40rem; line-height: 1.55; }
.ptrack-ring-wrap {
  position: relative;
  width: 118px; height: 118px;
  margin-inline: auto;
}
.ptrack-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ptrack-ring-track {
  fill: none; stroke: rgba(29,49,92,0.12); stroke-width: 10;
}
.ptrack-ring-fill {
  fill: none; stroke: var(--gold, #F1D077); stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.9s ease;
}
.ptrack-ring-centre {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center;
  pointer-events: none;
}
.ptrack-ring-pct {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem; font-weight: 700; color: var(--navy); line-height: 1;
}
.ptrack-ring-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted, #5a6475); margin-top: 0.2rem;
}
.ptrack-tabs {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  border-bottom: 1px solid rgba(29,49,92,0.12);
  margin-bottom: 1rem; padding-bottom: 0.15rem;
}
.ptrack-tab {
  appearance: none; border: 0; background: transparent;
  font: inherit; font-weight: 650; font-size: 0.92rem;
  color: var(--muted, #5a6475);
  padding: 0.55rem 0.9rem; border-radius: 999px;
  cursor: pointer;
}
.ptrack-tab.is-active {
  background: var(--navy); color: #fff;
}
.ptrack-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ptrack-hint { font-size: 0.88rem; margin: 0 0 0.85rem; }
.rag-key {
  display: inline-block; font-weight: 700; font-size: 0.78rem;
  padding: 0.1rem 0.45rem; border-radius: 999px; color: #fff;
}
.rag-key--red { background: var(--rag-red); }
.rag-key--amber { background: var(--rag-amber); color: #1a1a1a; }
.rag-key--green { background: var(--rag-green); }
.ptrack-bands { display: grid; gap: 0.65rem; }
.ptrack-band {
  border: 1px solid rgba(29,49,92,0.1);
  border-radius: 12px;
  background: #fbfbfd;
  overflow: hidden;
}
.ptrack-band-summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title meta" "bar bar";
  gap: 0.35rem 0.75rem;
  align-items: center;
  cursor: pointer;
  padding: 0.75rem 0.9rem;
  font-weight: 650;
  color: var(--navy);
}
.ptrack-band-summary::-webkit-details-marker { display: none; }
.ptrack-band-title { grid-area: title; }
.ptrack-band-meta { grid-area: meta; font-size: 0.8rem; font-weight: 600; color: var(--muted, #5a6475); }
.ptrack-band-bar {
  grid-area: bar; height: 7px; border-radius: 999px;
  background: rgba(29,49,92,0.1); overflow: hidden;
}
.ptrack-band-fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--rag-green), #3ecf7a);
  transition: width 0.35s ease;
}
.ptrack-topics {
  list-style: none; margin: 0; padding: 0.15rem 0.55rem 0.65rem;
  display: grid; gap: 0.35rem;
}
@media (min-width: 700px) {
  .ptrack-topics { grid-template-columns: 1fr 1fr; }
}
.ptrack--compact .ptrack-topics { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .ptrack--compact .ptrack-topics { grid-template-columns: 1fr 1fr; }
}
.ptrack-topic {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  text-align: left;
  appearance: none;
  border: 1px solid rgba(29,49,92,0.1);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.ptrack-topic:hover { border-color: rgba(29,49,92,0.28); box-shadow: 0 4px 14px rgba(29,49,92,0.08); }
.ptrack-topic:active { transform: scale(0.99); }
.ptrack-topic-dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}
.ptrack-topic-name { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.ptrack-topic-state { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.ptrack-topic.rag--red { color: var(--rag-red); }
.ptrack-topic.rag--amber { color: var(--rag-amber); }
.ptrack-topic.rag--green { color: var(--rag-green); }
.ptrack-topic.rag--red .ptrack-topic-state { color: var(--rag-red); }
.ptrack-topic.rag--amber .ptrack-topic-state { color: #b76b00; }
.ptrack-topic.rag--green .ptrack-topic-state { color: var(--rag-green); }

.ptrack-chart-wrap {
  background: linear-gradient(180deg, #f7f8fc 0%, #fff 100%);
  border: 1px solid rgba(29,49,92,0.1);
  border-radius: 14px;
  padding: 0.5rem 0.35rem 0.25rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}
.ptrack-chart { width: 100%; min-width: 520px; height: auto; display: block; }
.ptrack-grid { stroke: rgba(29,49,92,0.1); stroke-width: 1; }
.ptrack-axis { fill: #6b7385; font-size: 11px; font-family: inherit; }
.ptrack-axis--x { font-size: 10px; }
.ptrack-area { fill: rgba(241,208,119,0.28); }
.ptrack-line {
  fill: none; stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round;
}
.ptrack-dot { fill: var(--gold); stroke: var(--navy); stroke-width: 2; }
.ptrack-point-label {
  fill: var(--navy); font-size: 11px; font-weight: 700; font-family: inherit;
}
.ptrack-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(29,49,92,0.1); }
.ptrack-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px;
}
.ptrack-table th {
  background: var(--navy); color: #fff; text-align: left;
  padding: 0.7rem 0.75rem; font-weight: 650;
}
.ptrack-table td {
  padding: 0.6rem 0.75rem; border-bottom: 1px solid rgba(29,49,92,0.08);
}
.ptrack-table tr:nth-child(even) td { background: #f7f8fc; }
.ptrack-grade {
  display: inline-grid; place-items: center;
  min-width: 1.75rem; height: 1.75rem; padding: 0 0.35rem;
  border-radius: 999px; background: rgba(241,208,119,0.45);
  color: var(--navy); font-weight: 800; font-family: Fraunces, Georgia, serif;
}
.ptrack-more { margin: 1.1rem 0 0; }
.section--progress { background: #f4f5f9; }
.progress-page-lead { max-width: 40rem; }

@supports not (background: color-mix(in srgb, red 20%, transparent)) {
  .ptrack-topic-dot { box-shadow: 0 0 0 3px rgba(29,49,92,0.12); }
}
