/* =========================================================
   Robinson Tuition - design system
   Navy + royal blue + white (matches brand logo)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --ink: #0c1d40;
  --ink-2: #12294f;
  --ink-3: #1d3a66;
  --accent: #2f6be0;
  --accent-2: #5a8cf0;
  --accent-soft: #e8f0fd;

  /* Neutrals */
  --paper: #ffffff;
  --cream: #f2f6fc;
  --cream-2: #e9f0fa;
  --text: #14202e;
  --text-soft: #51637a;
  --line: #e2e8f1;
  --line-cool: #e4ebf4;

  /* Effects */
  --ring: rgba(47, 107, 224, 0.40);
  --shadow-sm: 0 1px 2px rgba(12, 29, 64, 0.06), 0 2px 8px rgba(12, 29, 64, 0.05);
  --shadow: 0 10px 30px -12px rgba(12, 29, 64, 0.18);
  --shadow-lg: 0 30px 60px -22px rgba(12, 29, 64, 0.30);

  /* Radii */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Layout */
  --container: 1180px;
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --gap: clamp(1rem, 2.4vw, 1.75rem);

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --h1: clamp(2.35rem, 5.2vw, 4rem);
  --h2: clamp(1.85rem, 3.6vw, 2.85rem);
  --h3: clamp(1.2rem, 2vw, 1.55rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); font-variant-ligatures: none; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  z-index: 200; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section--ink {
  background: var(--ink);
  background-image: radial-gradient(120% 90% at 80% -10%, #173a63 0%, transparent 55%),
                    radial-gradient(90% 80% at 0% 110%, #12294f 0%, transparent 50%);
  color: #e9eef4;
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--accent); border-radius: 2px; }
.section--ink .eyebrow { color: var(--accent-2); }
.section--ink .eyebrow::before { background: var(--accent-2); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-title { font-size: var(--h2); margin-top: 0.7rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-soft); margin-top: 0.9rem; }
.section--ink .lead { color: #b9c6d6; }

.text-accent { color: var(--accent); }
.muted { color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.98rem; line-height: 1;
  padding: 0.95rem 1.5rem; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; }

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--accent-2), var(--accent));
  --btn-fg: #ffffff; --btn-bd: transparent;
  box-shadow: 0 8px 20px -8px rgba(47, 107, 224, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(47, 107, 224, 0.65); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn-ghost:hover { --btn-bd: var(--accent); --btn-fg: var(--accent); }
.section--ink .btn-ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.3); }
.section--ink .btn-ghost:hover { --btn-bd: #fff; --btn-fg: #fff; }

.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }

.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.9rem; }
.btn-lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, border-color 0.25s, background 0.25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); }
.brand-mark { width: 40px; height: 40px; flex: none; border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand-name { font-size: 1.22rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; line-height: 1; }
.brand-name span { color: var(--accent); }

.nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 0.35rem; }
.nav-list a:not(.btn) {
  display: inline-block; padding: 0.55rem 0.8rem; border-radius: var(--r-sm);
  font-size: 0.95rem; font-weight: 500; color: var(--ink-2); transition: background 0.18s, color 0.18s;
}
.nav-list a:not(.btn):hover { background: var(--cream); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--accent); }
.nav-cta { margin-left: 0.4rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
.site-header.is-open .nav-toggle span { background: transparent; }
.site-header.is-open .nav-toggle span::before { transform: rotate(45deg); }
.site-header.is-open .nav-toggle span::after { transform: rotate(-45deg) translateY(-1.5px) translateX(1px); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 0.8rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  }
  .site-header.is-open .nav-list { transform: none; opacity: 1; pointer-events: auto; }
  .nav-list a:not(.btn) { padding: 0.85rem 0.6rem; font-size: 1.05rem; }
  .nav-cta { margin: 0.5rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 88% 8%, rgba(47, 107, 224, 0.12) 0%, transparent 60%),
    radial-gradient(50% 50% at 6% 96%, rgba(29, 58, 102, 0.08) 0%, transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: var(--h1); margin-top: 1rem; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.9rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; color: var(--text-soft); }
.hero-trust svg { width: 1.05rem; height: 1.05rem; color: var(--accent); flex: none; }

/* Hero card */
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: clamp(1.4rem, 2.5vw, 1.9rem);
}
.hero-card-top { display: flex; align-items: center; gap: 0.9rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.hero-card-badge {
  width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink-3), var(--ink)); color: var(--accent-2);
}
.hero-card-badge svg { width: 26px; height: 26px; }
.hero-card-top strong { display: block; font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); }
.hero-card-top span { font-size: 0.86rem; color: var(--text-soft); }
.hero-card ul { margin-top: 1.1rem; display: grid; gap: 0.85rem; }
.hero-card li { display: flex; gap: 0.7rem; font-size: 0.96rem; }
.hero-card li svg { width: 1.3rem; height: 1.3rem; color: var(--accent); flex: none; margin-top: 1px; }
.hero-card li b { color: var(--ink); }

/* ---------- Trusted strip ---------- */
.trusted { border-block: 1px solid var(--line); background: #fff; }
.trusted-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2.4rem; justify-content: space-between; padding-block: 1.5rem; }
.trusted-label { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; }
.trusted-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; flex: 1; justify-content: space-evenly; }
.school-chip {
  display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; color: var(--ink-2);
  font-size: 0.98rem; opacity: 0.85;
}
.school-chip svg { width: 1.3rem; height: 1.3rem; color: var(--accent); flex: none; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem); box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; height: 100%;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.card-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--h3); margin-bottom: 0.5rem; }
.card p { color: var(--text-soft); font-size: 0.98rem; }

/* Subject card */
.subject-card { display: flex; flex-direction: column; }
.subject-card .levels { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.9rem 0 1rem; }
.pill {
  display: inline-block; padding: 0.3rem 0.7rem; border-radius: var(--r-pill);
  background: var(--cream); border: 1px solid var(--line); font-size: 0.78rem; font-weight: 600; color: var(--ink-2);
}
.subject-card .card-link { margin-top: auto; }
.card-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--accent); font-size: 0.95rem; }
.card-link svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.card-link:hover svg { transform: translateX(3px); }

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; gap: var(--gap); }
.steps.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps.grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps.grid-4 { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 0.5rem; }
.step-num {
  counter-increment: step; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  background: var(--ink); color: var(--accent-2); margin-bottom: 1rem;
}
.step-num::before { content: counter(step); }
.step h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-soft); font-size: 0.96rem; }
.section--ink .step p { color: #b9c6d6; }
.section--ink .step-num { background: var(--accent); color: #fff; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); color: var(--accent-2); line-height: 1; }
.stat span { display: block; margin-top: 0.5rem; font-size: 0.95rem; color: #b9c6d6; }

/* ---------- Feature list (split section) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.checklist { display: grid; gap: 1rem; margin-top: 1.6rem; }
.checklist li { display: flex; gap: 0.8rem; }
.checklist svg { width: 1.5rem; height: 1.5rem; color: var(--accent); flex: none; margin-top: 1px; }
.checklist b { display: block; color: var(--ink); }
.checklist span { color: var(--text-soft); font-size: 0.96rem; }
.section--ink .checklist b { color: #fff; }
.section--ink .checklist span { color: #b9c6d6; }

.media-card {
  background: linear-gradient(160deg, var(--ink-3), var(--ink)); color: #fff;
  border-radius: var(--r-lg); padding: clamp(1.8rem, 3vw, 2.6rem); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.media-card::after { content: ""; position: absolute; inset: auto -30% -40% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(90, 140, 240, 0.28), transparent 70%); }
.media-card .eyebrow { color: var(--accent-2); }
.media-card .eyebrow::before { background: var(--accent-2); }
.media-card blockquote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.35; margin-top: 1rem; position: relative; z-index: 1; }
.media-card cite { display: block; margin-top: 1.2rem; font-style: normal; font-size: 0.95rem; color: #c7d3e0; }
.media-card cite b { color: #fff; display: block; font-style: normal; }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem); box-shadow: var(--shadow-sm); height: 100%;
  display: flex; flex-direction: column;
}
.quote .stars { display: flex; gap: 0.15rem; color: var(--accent); margin-bottom: 0.9rem; }
.quote .stars svg { width: 1.1rem; height: 1.1rem; }
.quote p { font-size: 1.02rem; color: var(--text); }
.quote footer { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 0.8rem; }
.quote .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--accent-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; flex: none; }
.quote footer b { display: block; color: var(--ink); font-size: 0.95rem; }
.quote footer span { font-size: 0.85rem; color: var(--text-soft); }

/* ---------- Team ---------- */
.team-card { text-align: left; }
.team-avatar {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--accent-2);
  background: linear-gradient(150deg, var(--ink-3), var(--ink)); margin-bottom: 1rem;
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 0.15rem; }
.team-role { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.7rem; }
.team-card p { font-size: 0.94rem; color: var(--text-soft); }
.team-quals { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* ---------- Accordion / FAQ ---------- */
.faq { max-width: 52rem; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--ink);
}
.faq-q .icon { width: 1.4rem; height: 1.4rem; flex: none; position: relative; transition: transform 0.25s; }
.faq-q .icon::before, .faq-q .icon::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--accent); border-radius: 2px; }
.faq-q .icon::before { width: 100%; height: 2px; }
.faq-q .icon::after { width: 2px; height: 100%; transition: transform 0.25s; }
.faq-item[open] .faq-q .icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--text-soft); }
.faq-a p + p { margin-top: 0.7rem; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .section-title { font-size: clamp(2rem, 4vw, 3rem); }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: clamp(1.6rem, 3vw, 2.6rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem; border: 1.5px solid var(--line-cool); border-radius: var(--r-sm);
  background: #fff; font-size: 1rem; transition: border-color 0.18s, box-shadow 0.18s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.field-hint { font-size: 0.82rem; color: var(--text-soft); }
.form-hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { margin-top: 1.2rem; font-size: 0.86rem; color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c6d6; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name span { color: var(--accent-2); }
.footer-brand p { margin-top: 1rem; font-size: 0.95rem; max-width: 28rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #fff; transition: background 0.2s, transform 0.2s;
}
.footer-social a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 1.2rem; height: 1.2rem; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.95rem; color: #b9c6d6; transition: color 0.18s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  margin-top: clamp(2.2rem, 4vw, 3.2rem); padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-items: center; justify-content: space-between;
  font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--accent-2); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

/* ---------- Misc ---------- */
.page-hero { background: var(--cream); position: relative; overflow: hidden; padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 90% 0%, rgba(47, 107, 224, 0.12), transparent 60%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-top: 0.8rem; }
.page-hero .lead { max-width: 44rem; }
.breadcrumb { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 0.4rem; }
.breadcrumb a:hover { color: var(--accent); }

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.2rem 0 0.8rem; }
.prose h3 { font-size: 1.25rem; margin: 1.6rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; color: var(--text); }
.prose ul { display: grid; gap: 0.55rem; margin: 0 0 1.2rem; }
.prose ul li { position: relative; padding-left: 1.6rem; color: var(--text); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
@media (max-width: 820px) { .policy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .policy-grid { grid-template-columns: 1fr; } }
.policy-item { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); font-weight: 500; font-size: 0.96rem; }
.policy-item svg { width: 1.3rem; height: 1.3rem; color: var(--accent); flex: none; }

.callout { display: flex; gap: 1rem; padding: 1.3rem 1.5rem; border-radius: var(--r); background: var(--accent-soft); border: 1px solid #c9dbf8; }
.callout svg { width: 1.5rem; height: 1.5rem; color: var(--accent); flex: none; margin-top: 2px; }
.callout b { color: var(--ink); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card-hover:hover { transform: none; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.flex-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hide-mobile { } @media (max-width: 620px) { .hide-mobile { display: none; } }

/* ---------- Anchor offset under sticky header ---------- */
:where(section[id], [id].section, .page-hero) { scroll-margin-top: 92px; }

/* ---------- Exam boards strip ---------- */
.boards { background: #fff; border-bottom: 1px solid var(--line); }
.boards-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 1.5rem; padding-block: 1.15rem; }
.boards-label { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; }
.boards-list { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; }
.board-chip { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.02rem; padding: 0.15rem 0.85rem; border-radius: var(--r-pill); background: var(--accent-soft); }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  padding: 0.7rem clamp(1rem, 4vw, 1.2rem) calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 22px -12px rgba(12, 29, 64, 0.3);
  transform: translateY(120%); transition: transform 0.3s ease;
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { width: 100%; }
@media (max-width: 720px) {
  .mobile-cta { display: block; }
  body.has-cta-bar { padding-bottom: 78px; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 1.5rem); bottom: clamp(1rem, 3vw, 1.5rem); z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s, color 0.2s, border-color 0.2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.to-top svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 720px) { .to-top { bottom: 90px; } }
@media (prefers-reduced-motion: reduce) { .mobile-cta, .to-top { transition: none; } }

/* ---------- Google reviews widget ---------- */
.greviews { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(1.4rem, 2.6vw, 2rem); max-width: 1040px; margin-inline: auto; }
.greviews-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.greviews-head .g-logo { width: 40px; height: 40px; flex: none; }
.greviews-headtext { margin-right: auto; }
.greviews-title { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.greviews-rate { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.05rem; }
.greviews-rate b { font-size: 1.55rem; font-family: var(--font-display); color: var(--ink); line-height: 1; }
.greviews-count { font-size: 0.85rem; color: var(--text-soft); margin-top: 0.15rem; }
.gstars { color: #fbbc04; letter-spacing: 1px; line-height: 1; }
.greviews-rate .gstars { font-size: 1.15rem; }
.greviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 1.4rem; }
@media (max-width: 880px) { .greviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .greviews-grid { grid-template-columns: 1fr; } }
.greview { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.greview header { display: flex; align-items: center; gap: 0.7rem; }
.gavatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 1.05rem; }
.greview header > div { margin-right: auto; }
.greview header b { display: block; font-size: 0.95rem; color: var(--ink); }
.greview header > div span { font-size: 0.8rem; color: var(--text-soft); }
.greview header .g-mini { width: 18px; height: 18px; flex: none; }
.greview .gstars { margin: 0.7rem 0 0.55rem; font-size: 1rem; }
.greview p { font-size: 0.92rem; color: var(--text); line-height: 1.55; }
.greviews-foot { text-align: center; margin-top: 1.4rem; }

/* ---------- 5-column grid (subjects incl. Oxbridge) ---------- */
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-5 { grid-template-columns: 1fr; } }

/* ---------- Depth / 3D layering ---------- */
/* faint grid behind the homepage hero (adds depth) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(12, 29, 64, 0.075) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(12, 29, 64, 0.075) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(72% 64% at 50% 38%, #000 0%, transparent 76%);
          mask-image: radial-gradient(72% 64% at 50% 38%, #000 0%, transparent 76%);
}

/* soft floating accent shapes (injected by JS into hero + cream sections) */
.has-fx { position: relative; }
.has-fx > .container { position: relative; z-index: 1; }
.fx-layer { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.fx-blob {
  position: absolute; border-radius: 50%; opacity: 0.55; will-change: transform;
  background: radial-gradient(circle at 50% 50%, rgba(90, 140, 240, 0.42) 0%, rgba(47, 107, 224, 0.12) 45%, transparent 72%);
}
.fx-blob.b1 { width: 380px; height: 380px; top: -130px; right: -90px; }
.fx-blob.b2 { width: 320px; height: 320px; bottom: -150px; left: -100px; background: radial-gradient(circle at 32% 30%, rgba(23, 58, 99, 0.42), transparent 70%); }
.hero .fx-blob { opacity: 0.65; }
.section--cream .fx-blob { opacity: 0.5; }

/* lifted hero card + smooth pointer-tilt */
.hero-card { box-shadow: 0 34px 70px -26px rgba(12, 29, 64, 0.38), 0 10px 24px -14px rgba(12, 29, 64, 0.22); }
.hero-card, .subject-card { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, border-color 0.2s; transform-style: preserve-3d; }

@media (max-width: 700px) {
  .hero::before { background-size: 36px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-layer, .hero::before { display: none; }
  .hero-card, .subject-card { transition: none; }
}

/* ---------- Premium hero: animated mesh-gradient + floating 3D shapes ---------- */
.hero::after { display: none; } /* mesh replaces the old static glows */

.hero-mesh {
  position: absolute; inset: -12% -6%; z-index: 0; pointer-events: none;
  transform: translate3d(calc(var(--mx, 0) * 12px), calc(var(--my, 0) * 12px), 0);
  transition: transform 0.4s ease-out;
}
.mesh-blob { position: absolute; border-radius: 50%; will-change: transform; }
.mesh-blob.m1 { width: 44vw; height: 44vw; top: -14%; left: -6%; background: radial-gradient(circle at 50% 50%, rgba(47, 107, 224, 0.42), transparent 66%); animation: meshA 19s ease-in-out infinite alternate; }
.mesh-blob.m2 { width: 40vw; height: 40vw; top: -10%; right: -8%; background: radial-gradient(circle at 50% 50%, rgba(90, 140, 240, 0.40), transparent 66%); animation: meshB 23s ease-in-out infinite alternate; }
.mesh-blob.m3 { width: 38vw; height: 38vw; bottom: -20%; left: 26%; background: radial-gradient(circle at 50% 50%, rgba(23, 58, 99, 0.32), transparent 66%); animation: meshC 27s ease-in-out infinite alternate; }
@keyframes meshA { to { transform: translate3d(7%, 6%, 0) scale(1.15); } }
@keyframes meshB { to { transform: translate3d(-6%, 5%, 0) scale(0.92); } }
@keyframes meshC { to { transform: translate3d(5%, -7%, 0) scale(1.12); } }

.hero-3d {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; perspective: 1000px;
  transform: translate3d(calc(var(--mx, 0) * -26px), calc(var(--my, 0) * -26px), 0);
  transition: transform 0.3s ease-out;
}
.shape { position: absolute; will-change: transform; }
.shape.ring { width: 132px; height: 132px; border-radius: 50%; border: 2px solid rgba(47, 107, 224, 0.28); top: 15%; right: 30%; animation: floatY 9s ease-in-out infinite alternate; }
.shape.ring2 { width: 74px; height: 74px; border-radius: 50%; border: 2px solid rgba(90, 140, 240, 0.26); bottom: 18%; left: 6%; animation: floatY 11s ease-in-out infinite alternate; }
.shape.dot { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #6f9bf4, #2f6be0); box-shadow: 0 10px 26px rgba(47, 107, 224, 0.45); top: 31%; left: 12%; animation: floatY 7s ease-in-out infinite alternate; }
.shape.pill { width: 90px; height: 30px; border-radius: 999px; border: 2px solid rgba(47, 107, 224, 0.2); top: 72%; right: 13%; animation: floatPill 10s ease-in-out infinite alternate; }
@keyframes floatY { to { transform: translateY(-20px); } }
@keyframes floatPill { from { transform: rotate(-18deg); } to { transform: rotate(-18deg) translateY(-20px); } }

/* deeper layered tilt — inner panels sit at different depths on hover */
.hero-card-top { transform: translateZ(28px); }
.hero-card > ul { transform: translateZ(15px); }

@media (max-width: 720px) { .hero-3d { display: none; } .mesh-blob { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  .mesh-blob, .shape { animation: none; }
  .hero-mesh, .hero-3d { transform: none; }
}

/* ---------- Checkbox grid (tidy + tappable, esp. on mobile) ---------- */
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; margin-top: 0.4rem; }
.check-grid label {
  display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.95rem;
  padding: 0.7rem 0.85rem; border: 1.5px solid var(--line-cool); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.check-grid label:hover { border-color: var(--accent); background: var(--accent-soft); }
.check-grid input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex: none; }
@media (max-width: 600px) { .check-grid { grid-template-columns: 1fr; } }

/* form validation message */
.form-err { color: #c0392b; font-size: 0.85rem; font-weight: 600; margin-top: 0.5rem; }

/* tidier logo on small screens */
@media (max-width: 430px) {
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .header-inner { height: 64px; }
}

/* ---------- Centered, persuasive hero ---------- */
.hero-center { max-width: 800px; margin-inline: auto; text-align: center; padding-block: clamp(4rem, 10vw, 7.5rem); position: relative; z-index: 1; }
.hero-center h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-top: 1.1rem; }
.hero-center .lead { margin-inline: auto; max-width: 40rem; }
.hero-center .hero-actions { margin-top: 2rem; justify-content: center; }
.hero-microtrust { margin-top: 1.6rem; font-size: 0.92rem; color: var(--text-soft); font-weight: 500; }
.rt-stars { color: #f5a623; letter-spacing: 1px; }
