/* ==========================================================================
   Pooja Shah · ABA & Behaviour Support London
   Design system: calm, modern, warm. One stylesheet, no framework.
   ========================================================================== */

:root {
  --ink: #14213d;
  --ink-2: #394461;
  --muted: #5a6479;
  --line: #e8e4de;
  --line-2: #f0ece6;
  --bg: #ffffff;
  --warm: #fbf7f2;
  --teal: #1b6764;
  --teal-dark: #134f4d;
  --teal-50: #e8f3f1;
  --teal-100: #d3e9e5;
  --coral: #e4674f;
  --coral-ink: #b2432d;
  --coral-50: #fdeee8;
  --sky-50: #ebf2fb;
  --lilac-50: #f2eefb;
  --sun-50: #fff6dc;
  --night: #132238;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .05), 0 12px 32px -12px rgba(20, 33, 61, .14);
  --shadow-lg: 0 2px 4px rgba(20, 33, 61, .04), 0 30px 60px -20px rgba(20, 33, 61, .22);
  --shell: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.25rem); letter-spacing: -.045em; line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); letter-spacing: -.04em; line-height: 1.06; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
p { margin: 0 0 1.1em; }
.accent { font-family: var(--serif); font-weight: 600; color: var(--coral-ink); letter-spacing: -.035em; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.bg-warm { background: var(--warm); }
.bg-teal { background: var(--teal-50); }
.bg-night { background: var(--night); color: #c9d2e3; }
.bg-night h2, .bg-night h3 { color: #fff; }

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 1.1rem; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--coral); }
.bg-night .eyebrow { color: #8fd3c9; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

.section-head { display: grid; gap: 1.5rem 4rem; grid-template-columns: 1fr; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section-head > :last-child { margin-bottom: 0; }
.section-head h2 { margin-bottom: 0; }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1.1fr 1fr; align-items: end; } .section-head.split p { margin: 0; } }
.section-head.center { text-align: center; justify-items: center; max-width: 760px; margin-inline: auto; }

/* ── Buttons ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .8rem 1.35rem; border-radius: var(--radius-sm); border: 1.5px solid var(--teal); background: var(--teal); color: #fff; font: 700 1rem/1.2 var(--sans); text-decoration: none; letter-spacing: -.005em; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; cursor: pointer; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(27, 103, 100, .7); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #cfd6d9; }
.btn-ghost:hover { background: #fff; color: var(--teal-dark); border-color: var(--teal); box-shadow: none; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--teal-50); border-color: var(--teal-50); color: var(--ink); }
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-line-light:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; box-shadow: none; }
.btn-sm { min-height: 42px; padding: .55rem 1rem; font-size: .95rem; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--teal); text-decoration: none; }
.text-link svg { width: 17px; height: 17px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }
.text-link:hover { color: var(--teal-dark); text-decoration: underline; }

/* ── Header ──────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line-2); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-logo { width: 48px; height: 48px; flex: none; }
.site-footer .brand-logo { width: 56px; height: 56px; }
.brand strong { display: block; font-size: 1.12rem; letter-spacing: -.03em; line-height: 1.1; }
.brand small { display: block; font-size: .74rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.main-nav { display: flex; align-items: center; gap: .15rem; }
.main-nav > a, .nav-drop > button { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 10px; color: var(--ink); font: 500 .98rem/1.2 var(--sans); text-decoration: none; background: none; border: 0; cursor: pointer; }
.main-nav > a:hover, .nav-drop > button:hover, .main-nav > a[aria-current="page"] { background: var(--warm); color: var(--ink); }
.main-nav > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--coral); border-radius: 10px 10px 4px 4px; }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 15px; height: 15px; transition: transform .2s; }
.nav-drop > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.drop-panel { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 620px; padding: .7rem; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.drop-panel[hidden] { display: none; }
.drop-panel a { display: grid; grid-template-columns: 38px 1fr; gap: .15rem .8rem; padding: .75rem; border-radius: 12px; text-decoration: none; color: var(--ink); }
.drop-panel a:hover { background: var(--warm); }
.drop-panel .ico { grid-row: span 2; width: 38px; height: 38px; }
.drop-panel strong { font-size: .97rem; letter-spacing: -.01em; }
.drop-panel small { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.drop-panel .drop-all { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; background: var(--teal-50); margin-top: .3rem; font-weight: 700; color: var(--teal-dark); font-size: .93rem; }
.header-cta { flex: none; }
.menu-toggle { display: none; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 700 .95rem var(--sans); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }

.mobile-cta { display: none !important; }
.drop-panel .drop-all svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .75rem var(--gutter) 1.5rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(20, 33, 61, .3); max-height: calc(100vh - 76px); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-drop > button { padding: .9rem .4rem; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--line-2); width: 100%; justify-content: space-between; }
  .main-nav > a[aria-current="page"] { box-shadow: none; color: var(--teal); }
  .drop-panel { position: static; transform: none; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: .3rem 0 .6rem; }
  .drop-panel a { padding: .6rem .4rem; }
  .mobile-cta { display: flex !important; margin-top: 1rem; }
}

/* ── Icons ───────────────────────────────────────────── */
.ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--teal-50); color: var(--teal); flex: none; }
.ico svg { width: 22px; height: 22px; }
.ico.coral { background: var(--coral-50); color: var(--coral-ink); }
.ico.sky { background: var(--sky-50); color: #2f5f9e; }
.ico.wa { background: #e7f8ee; color: #25D366; }
.ico.lilac { background: var(--lilac-50); color: #5b4a9b; }
.ico.sun { background: var(--sun-50); color: #8a6412; }

/* ── Home hero ───────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 7vw, 6rem); background: radial-gradient(1100px 520px at 88% 12%, var(--coral-50), transparent 62%), radial-gradient(900px 600px at 0% 100%, var(--teal-50), transparent 60%), var(--warm); }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { max-width: 36rem; margin-bottom: 2rem; }
.cred-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; padding: .45rem .9rem .45rem .5rem; margin-bottom: 1.6rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--ink); box-shadow: 0 1px 2px rgba(20,33,61,.04); }
.cred-chip b { background: var(--teal); color: #fff; font-size: .74rem; letter-spacing: .06em; padding: .2rem .55rem; border-radius: 999px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2.2rem; padding: 0; list-style: none; font-size: .93rem; color: var(--ink-2); }
.hero-proof li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

.hero-visual { position: relative; max-width: 520px; margin-inline: auto; width: 100%; padding: 0 0 2.2rem 2.2rem; }
.hero-photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--teal-100); box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.float-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.float-where { left: 0; bottom: 0; padding: .75rem 1rem .75rem .75rem; display: flex; align-items: center; gap: .65rem; }
.float-where strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.2; }
.float-where small { color: var(--muted); font-size: .8rem; }
.float-where .ico { width: 40px; height: 40px; border-radius: 10px; }
.float-cred { right: -12px; top: 24px; padding: .7rem .9rem; display: flex; align-items: center; gap: .6rem; }
.float-cred strong { display: block; color: var(--ink); font-size: .93rem; line-height: 1.2; }
.float-cred small { color: var(--muted); font-size: .78rem; }
.float-cred .ico { width: 38px; height: 38px; border-radius: 10px; }
@media (max-width: 520px) { .hero-visual { padding: 0 0 2.5rem .6rem; } .float-cred { right: -4px; top: 14px; } }

.mini-label { font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.goal-row { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; align-items: center; margin-top: .75rem; }
.goal-row span { font-size: .86rem; font-weight: 600; color: var(--ink); }
.goal-row em { font-style: normal; font-size: .76rem; color: var(--muted); }
.bar { grid-column: 1 / -1; height: 7px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #3fa39b); }
.bar.coral i { background: linear-gradient(90deg, var(--coral), #f09a7e); }

/* ── Audience band ───────────────────────────────────── */
.band { border-block: 1px solid var(--line); background: #fff; }
.band ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.4rem; list-style: none; margin-block: 0; padding: 1.15rem 0; }
.band li { display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); }
.band li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

/* ── Cards and grids ─────────────────────────────────── */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.cards > * { flex: 1 1 300px; max-width: 390px; }
.cards.two > * { flex-basis: 420px; max-width: 580px; }
.cards.four > * { flex-basis: 240px; max-width: 290px; }
.card { position: relative; display: flex; flex-direction: column; padding: 1.7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, transform .2s; }
.card h3 { margin: 1.1rem 0 .55rem; }
.card p { font-size: .98rem; color: var(--muted); }
.card > :last-child { margin-bottom: 0; }
.card .text-link { margin-top: auto; padding-top: .4rem; }
a.card { text-decoration: none; color: inherit; }
.card.link:hover, a.card:hover { border-color: #c9dcd8; box-shadow: var(--shadow); transform: translateY(-2px); }
.card.link .text-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-kicker { font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--coral-ink); }
.card.tint-coral { background: var(--coral-50); border-color: transparent; }
.card.tint-teal { background: var(--teal-50); border-color: transparent; }
.card.tint-sky { background: var(--sky-50); border-color: transparent; }
.card.tint-lilac { background: var(--lilac-50); border-color: transparent; }
.card.tint-sun { background: var(--sun-50); border-color: transparent; }
.card[class*="tint-"] p { color: var(--ink-2); }

/* Concern chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.chips li { padding: .55rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .95rem; font-weight: 500; color: var(--ink); }
.center .chips { justify-content: center; }

/* Split layouts */
.split { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-left { grid-template-columns: 1.15fr .85fr; } .split.wide-right { grid-template-columns: .85fr 1.15fr; } .split.top { align-items: start; } }
.photo-frame { position: relative; border-radius: 26px; overflow: hidden; background: var(--teal-100); box-shadow: var(--shadow); aspect-ratio: 4 / 4.4; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

/* Stats / credentials */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 2rem; }
.stat { padding: 1.15rem 1.2rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.stat strong { display: block; font-size: 1.55rem; letter-spacing: -.04em; color: var(--ink); line-height: 1.1; }
.stat span { display: block; font-size: .87rem; color: var(--muted); line-height: 1.4; margin-top: .3rem; }
.bg-warm .stat { background: #fff; }

/* ── Method stepper ──────────────────────────────────── */
.steps { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { position: relative; padding: 1.4rem 1.3rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--coral-ink); margin-bottom: .9rem; }
.steps li::after { content: ""; position: absolute; left: 1.3rem; right: 1.3rem; top: 2.65rem; height: 2px; background: linear-gradient(90deg, var(--teal) var(--p, 20%), var(--line-2) 0); border-radius: 2px; }
.steps li:nth-child(2) { --p: 40%; } .steps li:nth-child(3) { --p: 60%; } .steps li:nth-child(4) { --p: 80%; } .steps li:nth-child(5) { --p: 100%; }
.steps strong { display: block; color: var(--ink); font-size: 1.12rem; letter-spacing: -.02em; margin-bottom: .45rem; }
.steps p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ── Progress panel (illustrative) ───────────────────── */
.progress-panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.pp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line-2); }
.pp-head strong { color: var(--ink); font-size: .98rem; }
.pp-pill { font-size: .72rem; font-weight: 700; color: var(--teal-dark); background: var(--teal-50); padding: .25rem .6rem; border-radius: 99px; }
.pp-body { display: grid; gap: 1.3rem; padding: 1.3rem; }
@media (min-width: 560px) { .pp-body { grid-template-columns: 1.2fr .8fr; } }
.pp-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: .5rem; }
.pp-chart { height: 64px; margin-top: .9rem; }
.pp-chart i { flex: 1; border-radius: 5px 5px 2px 2px; background: rgba(255, 255, 255, .28); }
.pp-chart i:nth-last-child(-n+4) { background: #fff; }
.pp-kpi { border-radius: 16px; padding: 1.1rem; background: var(--teal); color: #e2f2ef; }
.pp-kpi strong { display: block; font-size: 2.2rem; color: #fff; letter-spacing: -.04em; line-height: 1; margin: .35rem 0; }
.pp-kpi .mini-label { color: #bfe0da; }
.pp-foot { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.3rem; background: var(--warm); font-size: .85rem; color: var(--ink-2); }
.pp-foot svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.caption { font-size: .8rem; color: var(--muted); margin-top: .8rem; }
.checks { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .75rem; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; align-items: start; }
.checks svg { width: 22px; height: 22px; color: var(--teal); margin-top: .12rem; }
.checks.two { grid-template-columns: 1fr; }
@media (min-width: 640px) { .checks.two { grid-template-columns: 1fr 1fr; } }

/* ── Testimonials ────────────────────────────────────── */
.quote { display: flex; flex-direction: column; padding: 1.8rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.quote blockquote { margin: 0 0 1.4rem; font-size: 1.04rem; line-height: 1.65; color: var(--ink); }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--serif); font-size: 3.4rem; line-height: .7; color: var(--coral); margin-bottom: .4rem; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: .75rem; font-size: .92rem; }
.quote figcaption b { display: block; color: var(--ink); }
.quote figcaption span { color: var(--muted); font-size: .85rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-dark); font-weight: 700; font-size: .9rem; flex: none; }
.disclosure { max-width: 760px; margin: 2rem auto 0; font-size: .84rem; color: var(--muted); text-align: center; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
.faq details[open] { border-color: #c9dcd8; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.15rem 1.35rem; cursor: pointer; font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .answer { padding: 0 1.35rem 1.25rem; color: var(--ink-2); }
.faq .answer > :last-child { margin-bottom: 0; }

/* ── Page hero (inner pages) ─────────────────────────── */
.page-hero { padding-block: clamp(2.2rem, 5vw, 3.8rem) clamp(3rem, 6vw, 4.8rem); background: radial-gradient(900px 420px at 95% 0%, var(--coral-50), transparent 60%), var(--warm); border-bottom: 1px solid var(--line-2); }
.page-hero-grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 960px) { .page-hero-grid.has-aside { grid-template-columns: 1.35fr .65fr; } }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); max-width: 18ch; }
.page-hero .lead { max-width: 40rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0 0 2rem; padding: 0; list-style: none; font-size: .88rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .45rem; color: #b9bfca; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal); text-decoration: underline; }
.aside-card { padding: 1.4rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.aside-card h2 { font-size: 1rem; letter-spacing: -.01em; margin-bottom: .8rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .94rem; }
.aside-card li { display: grid; grid-template-columns: 20px 1fr; gap: .6rem; }
.aside-card li svg { width: 18px; height: 18px; color: var(--teal); margin-top: .2rem; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.6rem; font-size: .9rem; color: var(--muted); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.byline b { color: var(--ink); }

/* ── Article / prose layout ──────────────────────────── */
.article-grid { display: grid; gap: 3rem; }
@media (min-width: 1040px) { .article-grid { grid-template-columns: 250px minmax(0, 760px); justify-content: center; gap: 4.5rem; } }
.toc { align-self: start; }
@media (min-width: 1040px) { .toc { position: sticky; top: 104px; } }
.toc h2 { font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); font-size: .92rem; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--teal); border-left-color: var(--teal); }
@media (max-width: 1039px) { .toc { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: var(--warm); } .toc ol { border: 0; } .toc a { padding-left: 0; } }
.prose { font-size: 1.075rem; }
.prose > * + h2 { margin-top: 2.6em; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); }
.prose h3 { font-size: 1.22rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--teal); }
.prose .intro { font-size: 1.22rem; line-height: 1.6; color: var(--ink); }
.answer-first { padding: 1.1rem 1.3rem; border-left: 3px solid var(--teal); background: var(--teal-50); border-radius: 0 14px 14px 0; color: var(--ink); }
.callout { margin: 2rem 0; padding: 1.4rem 1.5rem; border-radius: 18px; background: var(--warm); border: 1px solid var(--line); }
.callout.coral { background: var(--coral-50); border-color: #f6d3c7; }
.callout.teal { background: var(--teal-50); border-color: var(--teal-100); }
.callout > strong:first-child, .callout h3 { display: block; color: var(--ink); font-size: 1.05rem; margin: 0 0 .4rem; }
.callout > :last-child { margin-bottom: 0; }
.example { margin: 1.4rem 0; padding: 1.1rem 1.3rem; border-radius: 14px; border: 1px dashed #c7cfd6; background: #fff; font-size: .98rem; }
.example.good { border-color: #9fcfc6; background: #f5fbfa; }
.example.weak { border-color: #efb9a8; background: #fffaf8; }
.example b { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .3rem; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
th, td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
thead th { background: var(--warm); color: var(--ink); font-size: .85rem; letter-spacing: .02em; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { color: var(--ink); font-weight: 700; }
.timeline { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: .5rem; }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 1rem; padding: .8rem 1rem; border-radius: 12px; background: var(--warm); }
.timeline b { color: var(--teal-dark); }
.sources { font-size: .93rem; }
.sources li { margin-bottom: .4rem; }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 1.2rem; margin-top: 3rem; padding: 1.5rem; border-radius: 20px; background: var(--warm); border: 1px solid var(--line); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.author-box strong { color: var(--ink); display: block; margin-bottom: .3rem; }
.author-box p { font-size: .95rem; margin-bottom: .5rem; }
@media (max-width: 480px) { .author-box { grid-template-columns: 1fr; } }

/* ── Directory & glossary ────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.filters label { display: grid; gap: .3rem; font-size: .8rem; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; flex: 1 1 180px; }
.filters input, .filters select { min-height: 46px; padding: .6rem .8rem; border: 1px solid #cfd5dc; border-radius: 10px; background: #fff; font: 400 1rem var(--sans); color: var(--ink); width: 100%; }
.result-count { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.school-list { display: grid; gap: 1rem; }
.school { padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.school h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.school .meta { font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.tag { font-size: .76rem; font-weight: 700; padding: .25rem .6rem; border-radius: 99px; background: var(--line-2); color: var(--ink-2); }
.tag.led { background: var(--teal-50); color: var(--teal-dark); }
.tag.informed { background: var(--sky-50); color: #2f5f9e; }
.tag.state { background: var(--sun-50); color: #7a5a10; }
.tag.indep { background: var(--lilac-50); color: #54438f; }
.tag.ofsted { background: var(--coral-50); color: var(--coral-ink); }
.school p { font-size: .96rem; margin-bottom: .8rem; }
.school dl { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: .9rem; margin: 0; }
.school dt { font-weight: 700; color: var(--ink); }
.school dd { margin: 0 0 0 .3rem; }
.school dl div { display: flex; }
.glossary-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.6rem; }
.glossary-nav a { min-width: 36px; text-align: center; padding: .35rem .5rem; border-radius: 8px; background: var(--warm); text-decoration: none; font-weight: 700; font-size: .9rem; }
.glossary dl { margin: 0; }
.term { padding: 1.1rem 0; border-bottom: 1px solid var(--line-2); }
.term dt { font-weight: 700; color: var(--ink); font-size: 1.08rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; }
.term dt small { font-weight: 500; color: var(--muted); font-size: .9rem; }
.term dd { margin: .35rem 0 0; }
.letter { font-size: 1.6rem; margin: 2rem 0 .2rem; color: var(--coral-ink); }

/* ── Contact ─────────────────────────────────────────── */
.contact-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.contact-grid > * { flex: 1 1 250px; max-width: 340px; }
.contact-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card h2 { font-size: 1.2rem; margin: .8rem 0 0; }
.contact-card p { font-size: .95rem; color: var(--muted); margin: 0 0 .6rem; }
.contact-card a.big { font-weight: 700; font-size: 1.02rem; overflow-wrap: normal; margin-top: auto; }
.contact-card.primary { background: var(--teal); border-color: var(--teal); color: #d7ece8; }
.contact-card.primary h2 { color: #fff; }
.contact-card.primary p { color: #cfe6e1; }
.contact-card.primary .ico { background: rgba(255,255,255,.14); color: #fff; }

/* ── CTA band ────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(2.4rem, 6vw, 4.5rem); background: radial-gradient(700px 360px at 100% 0%, rgba(228,103,79,.28), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(63,163,155,.28), transparent 60%), var(--night); color: #c9d2e3; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr .7fr; } }
.cta-band h2 { color: #fff; margin-bottom: .7rem; }
.cta-band p { margin: 0; max-width: 36rem; }
.cta-band .actions { justify-content: flex-start; }
@media (min-width: 900px) { .cta-band .actions { justify-content: flex-end; } }
.cta-contacts { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.4rem; font-size: .93rem; }
.cta-contacts a { color: #fff; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-block: 4rem 2rem; background: var(--warm); border-top: 1px solid var(--line); font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; } }
.footer-grid h2 { font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-grid a { display: block; color: var(--ink-2); text-decoration: none; padding: .22rem 0; }
.footer-grid a:hover { color: var(--teal); text-decoration: underline; }
.footer-about p { max-width: 22rem; color: var(--muted); margin-top: 1rem; }
.footer-creds { display: flex; gap: 1rem; align-items: center; margin-top: 1.2rem; }
.footer-creds img { height: 40px; width: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-note { max-width: 62rem; margin-top: 2.5rem; font-size: .85rem; color: var(--muted); }
.footer-note a { color: inherit; text-decoration: underline; }
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 0; }
.social svg { width: 18px; height: 18px; }

/* ── Utilities ───────────────────────────────────────── */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
@media print { .site-header, .site-footer, .cta-band, .toc { display: none; } }

/* ── Additions: grids, editorial rows ────────────────── */
.quote { margin: 0; }
.grid-2 { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-2 .card h3 { margin-top: .9rem; }
.footer-grid a.brand { display: inline-flex; }
.rows { display: grid; column-gap: 3.5rem; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .rows { grid-template-columns: 1fr 1fr; } }
.row { display: grid; grid-template-columns: 46px 1fr 24px; gap: 1.1rem; align-items: start; padding: 1.5rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background .2s; }
.row:hover { background: rgba(255,255,255,.6); color: inherit; }
.row strong { display: block; color: var(--ink); font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: .25rem; }
.row span.txt { color: var(--muted); font-size: .97rem; line-height: 1.55; }
.row > svg { width: 22px; height: 22px; color: var(--teal); margin-top: .7rem; transition: transform .2s; }
.row:hover > svg { transform: translateX(4px); }
.row:hover strong { color: var(--teal-dark); }
.steps.plain li { padding-top: 2.1rem; }
.steps.plain li::before { display: none; }
.steps.plain li::after { top: 1.2rem; }
.steps.plain strong { color: var(--coral-ink); }
/* Grid children must be allowed to shrink so tables scroll inside their wrapper. */
.article-grid > *, .split > *, .page-hero-grid > *, .hero-grid > * { min-width: 0; }
.school dd, .school dt { overflow-wrap: anywhere; }
@media (max-width: 440px) {
  .site-header .brand small { display: none; }
  .site-header .brand strong { font-size: 1rem; white-space: nowrap; }
  .site-header .brand-logo { width: 42px; height: 42px; }
  .cred-chip { border-radius: 14px; font-size: .84rem; }
  .actions .btn { flex: 1 1 100%; }
}
@media (max-width: 370px) {
  .menu-toggle span { display: none; }
  .menu-toggle { padding: .5rem .7rem; }
  .site-header .brand strong { font-size: .95rem; }
  .header-inner { gap: .75rem; }
}
/* Tinted cards: white icon tile so the icon box stays visible. */
.card[class*="tint-"] .ico { background: #fff; }
/* Arrows never shrink when a link wraps onto two lines. */
.text-link svg, .btn svg { flex: none; }
/* Four-up rows: every card the same width, including a shorter last row. */
.cards.four > * { max-width: calc((100% - 3 * 1.25rem) / 4); }
@media (max-width: 1100px) { .cards.four > * { max-width: calc((100% - 1.25rem) / 2); flex-basis: 280px; } }
@media (max-width: 620px) { .cards.four > * { max-width: 100%; } }
/* In cards, let the arrow follow the last word when a link wraps. */
.card .text-link { display: block; }
.card .text-link svg { display: inline-block; vertical-align: -3px; margin-left: .35rem; }

/* ── Playful accents from the logo palette (coral, sky, lime, sun) ───── */
:root {
  --c-coral: #e4674f; --c-coral-50: #fdeee8; --c-coral-line: #f7cfc3; --c-coral-ink: #a53d28;
  --c-sky: #2ba6dc;   --c-sky-50: #e7f5fc;   --c-sky-line: #bfe3f4;   --c-sky-ink: #1d6a8f;
  --c-lime: #9cc23a;  --c-lime-50: #f1f7df;  --c-lime-line: #d9e9ad;  --c-lime-ink: #4f6a12;
  --c-sun: #f6c630;   --c-sun-50: #fff7d9;   --c-sun-line: #f5e19a;   --c-sun-ink: #7a5a05;
  --c-lilac: #8a72d1; --c-lilac-50: #f2eefb; --c-lilac-line: #dcd2f3; --c-lilac-ink: #52408f;
  --c-teal: #2d9c90;  --c-teal-50: #e6f4f1;  --c-teal-line: #c4e4de;  --c-teal-ink: #1b6764;
}
.chips li, .stat, .steps li, .band li { --c: var(--c-coral); --c50: var(--c-coral-50); --cl: var(--c-coral-line); --ci: var(--c-coral-ink); }
.chips li:nth-child(6n+2), .stat:nth-child(4n+2), .steps li:nth-child(5n+2), .band li:nth-child(5n+2) { --c: var(--c-sky); --c50: var(--c-sky-50); --cl: var(--c-sky-line); --ci: var(--c-sky-ink); }
.chips li:nth-child(6n+3), .stat:nth-child(4n+3), .steps li:nth-child(5n+3), .band li:nth-child(5n+3) { --c: var(--c-lime); --c50: var(--c-lime-50); --cl: var(--c-lime-line); --ci: var(--c-lime-ink); }
.chips li:nth-child(6n+4), .stat:nth-child(4n+4), .steps li:nth-child(5n+4), .band li:nth-child(5n+4) { --c: var(--c-sun); --c50: var(--c-sun-50); --cl: var(--c-sun-line); --ci: var(--c-sun-ink); }
.chips li:nth-child(6n+5), .steps li:nth-child(5n+5), .band li:nth-child(5n+5) { --c: var(--c-lilac); --c50: var(--c-lilac-50); --cl: var(--c-lilac-line); --ci: var(--c-lilac-ink); }
.chips li:nth-child(6n+6) { --c: var(--c-teal); --c50: var(--c-teal-50); --cl: var(--c-teal-line); --ci: var(--c-teal-ink); }

/* Concern chips: soft tint, coloured dot */
.chips li { display: inline-flex; align-items: center; gap: .5rem; background: var(--c50); border-color: var(--cl); transition: transform .2s; }
.chips li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.chips li:hover { transform: translateY(-2px); }

/* Credential stats: 2 x 2, each with its own colour */
.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { position: relative; overflow: hidden; background: var(--c50) !important; border-color: var(--cl); padding-top: 1.35rem; }
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--c); }
.stat strong { color: var(--ci); }
.stat span { color: var(--ink-2); }

/* Method steps: each step number and progress line in its own colour */
.steps li::before { color: var(--ci); }
.steps li::after { background: linear-gradient(90deg, var(--c) var(--p, 20%), var(--line-2) 0); }
.steps.plain strong { color: var(--ci); }

/* Audience strip: multicolour dots */
.band li::before { background: var(--c); width: 8px; height: 8px; }
/* Steps: coloured top bar and round number badge */
.steps li { overflow: hidden; }
.steps li::after { left: 0; right: 0; top: 0; height: 5px; border-radius: 0; background: var(--c); }
.steps li::before { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: .9rem; background: var(--c50); border: 2px solid var(--cl); color: var(--ci); font-size: .78rem; letter-spacing: 0; }
.steps li { padding-top: 1.5rem; }
.steps.plain li { padding-top: 1.6rem; }
.steps.plain li::after { top: 0; }

/* ── EHCP league table and trend chart ───────────────── */
.table-search { width: 100%; max-width: 360px; min-height: 46px; margin: .4rem 0 .2rem; padding: .6rem .9rem; border: 1px solid #cfd5dc; border-radius: 10px; font: 400 1rem var(--sans); color: var(--ink); }
.league { min-width: 720px; font-variant-numeric: tabular-nums; }
.league thead th { cursor: pointer; user-select: none; white-space: nowrap; }
.league thead th[data-sort]::after { content: " ↕"; color: #aab2bd; font-weight: 400; }
.league thead th[aria-sort="ascending"]::after { content: " ↑"; color: var(--teal); }
.league thead th[aria-sort="descending"]::after { content: " ↓"; color: var(--teal); }
.league td, .league tbody th { white-space: nowrap; }
.league tbody tr:target { background: var(--sun-50); }
.league tbody tr:hover { background: var(--warm); }
.bar-cell { display: inline-flex; align-items: center; gap: .6rem; }
.bar-track { width: 110px; height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar-track i { display: block; height: 100%; background: #2a9d8f; border-radius: 0 4px 4px 0; }
.league .up { color: #1b6764; }
.league .down { color: var(--coral-ink); }
.league tfoot tr.avg > * { background: var(--warm); font-weight: 700; border-top: 1px solid var(--line); }
.trend { margin: 1.4rem 0 2.5rem; }
.trend-legend { display: flex; gap: 1.2rem; font-size: .9rem; color: var(--ink-2); margin-bottom: .4rem; }
.trend-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: .4rem; }
.trend-wrap { position: relative; }
.trend svg { width: 100%; height: auto; display: block; overflow: visible; }
.trend .grid { stroke: var(--line-2); stroke-width: 1; }
.trend .axis { fill: var(--muted); font: 500 11px var(--sans); }
.trend .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend .dot { stroke: #fff; stroke-width: 2; }
.trend .lbl { fill: var(--ink); font: 700 12px var(--sans); }
.trend .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.trend .hit { fill: transparent; cursor: crosshair; }
.trend-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .82rem; line-height: 1.45; padding: .45rem .65rem; border-radius: 8px; pointer-events: none; white-space: nowrap; }
.trend-tip b { display: block; }
.trend-table { margin-top: .8rem; font-size: .92rem; }
.trend-table summary { cursor: pointer; color: var(--teal); font-weight: 700; }

.wide-article { max-width: 1040px; margin-inline: auto; }
.wide-article .prose, .wide-article > p { max-width: 780px; }
.trend svg { overflow: hidden; }
.league { min-width: 860px; }
.example { overflow-wrap: anywhere; }
.league thead th { white-space: normal; vertical-align: bottom; line-height: 1.3; }
.league { min-width: 760px; }
.league .bar-track { width: 90px; }

/* Numbered references */
sup.ref { font-size: .7em; line-height: 0; margin-left: .1em; }
sup.ref a { text-decoration: none; font-weight: 700; }
sup.ref a:hover { text-decoration: underline; }
.refs { font-size: .93rem; padding-left: 1.5rem; }
.refs li { margin-bottom: .55rem; overflow-wrap: anywhere; }
.refs li:target { background: var(--sun-50); border-radius: 6px; }
.trend .break { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; }

/* Landscape photo with a small caption (Meet Pooja) */
.photo-figure { margin: 0; }
.photo-frame.landscape { aspect-ratio: 1280 / 714; }
.photo-frame.landscape img { object-position: 50% 50%; }
.photo-figure figcaption { margin-top: .6rem; font-size: .8rem; color: var(--muted); }
