
:root {
  --flame: #E85D3A;
  --flame-light: #F2816A;
  --flame-dark: #C94A2B;
  --flame-ink: #C0432A; /* darker flame for small text on light backgrounds — WCAG AA (~4.7:1 on cream) */
  --sun: #F5A623;
  --sun-light: #FFD080;
  --ocean: #1A7A6D;
  --ocean-light: #2BA696;
  --ocean-dark: #14605A;
  --ink: #141E2B;
  --ink-mid: #2B3A4E;
  --ink-soft: #5A6B7F;
  --ink-muted: #68727F;
  --sand: #FBF6F0;
  --sand-dark: #F0E8DC;
  --sand-mid: #E8DFD2;
  --white: #FFFFFF;
  --mint: #48BB78;
  --rose: #E53E3E;
  --star: #F6AD55;
  --gold: #F5A623;
  --grey: #5A6B7F;
  --violet: #805AD5;
  --shadow-xs: 0 1px 2px rgba(20,30,43,0.05);
  --shadow-sm: 0 2px 8px rgba(20,30,43,0.07);
  --shadow-md: 0 4px 20px rgba(20,30,43,0.10);
  --shadow-lg: 0 12px 40px rgba(20,30,43,0.13);
  --shadow-xl: 0 24px 60px rgba(20,30,43,0.16);
  --r: 12px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --font: 'DM Sans', sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:'DM Sans',sans-serif;background:var(--sand);color:var(--ink);line-height:1.6;overflow-x:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
h1,h2,h3,.serif{font-family:'Fraunces',serif;font-weight:400;}
input,select,textarea,button{font-family:'DM Sans',sans-serif;}

/* SCROLLBAR */
::-webkit-scrollbar{width:6px;}
::-webkit-scrollbar-track{background:transparent;}
::-webkit-scrollbar-thumb{background:var(--sand-dark);border-radius:3px;}

/* ━━ SCROLL REVEAL ━━ */
.reveal,.reveal-left,.reveal-right,.reveal-scale{opacity:0;transition:opacity 0.45s ease-out,transform 0.45s ease-out;will-change:opacity,transform;}
.reveal{transform:translate3d(0,30px,0);}
.reveal-left{transform:translate3d(-30px,0,0);}
.reveal-right{transform:translate3d(30px,0,0);}
.reveal-scale{transform:scale(0.95);}
.reveal-up{opacity:0;transform:translate3d(0,30px,0);transition:opacity 0.45s ease,transform 0.45s ease;}
.reveal-up:nth-child(1){transition-delay:0s;}
.reveal-up:nth-child(2){transition-delay:0.04s;}
.reveal-up:nth-child(3){transition-delay:0.08s;}
.reveal-up:nth-child(4){transition-delay:0.12s;}
.reveal-up:nth-child(5){transition-delay:0.16s;}
.reveal-up:nth-child(6){transition-delay:0.2s;}
.reveal.visible,.reveal-left.visible,.reveal-right.visible,.reveal-scale.visible,.reveal-up.visible{opacity:1;transform:translate3d(0,0,0) scale(1);}
@media(prefers-reduced-motion:reduce){.reveal,.reveal-left,.reveal-right,.reveal-scale,.reveal-up{opacity:1!important;transform:none!important;transition:none!important;}}
/* Stagger — each child delays slightly */
.stagger .reveal:nth-child(1){transition-delay:0s;}
.stagger .reveal:nth-child(2){transition-delay:0.08s;}
.stagger .reveal:nth-child(3){transition-delay:0.16s;}
.stagger .reveal:nth-child(4){transition-delay:0.24s;}
.stagger .reveal:nth-child(5){transition-delay:0.32s;}
.stagger .reveal:nth-child(6){transition-delay:0.4s;}
/* Hero entrance */
.hero-inner h1{opacity:0;transform:translate3d(0,20px,0);animation:heroIn 0.6s ease-out 0.1s forwards;will-change:opacity,transform;}
.hero-sub{opacity:0;transform:translate3d(0,20px,0);animation:heroIn 0.6s ease-out 0.25s forwards;will-change:opacity,transform;}
.search-bar{opacity:0;transform:translate3d(0,20px,0);animation:heroIn 0.6s ease-out 0.4s forwards;will-change:opacity,transform;}
.hero-stats{opacity:0;transform:translate3d(0,20px,0);animation:heroIn 0.6s ease-out 0.55s forwards;will-change:opacity,transform;}
@keyframes heroIn{to{opacity:1;transform:translate3d(0,0,0);}}

/* ━━ NAV ━━ */
nav{position:fixed;top:12px;left:16px;right:16px;z-index:100;background:rgba(251,246,240,0.70);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid rgba(20,30,43,0.06);border-radius:18px;height:60px;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 24px rgba(20,30,43,0.05);transition:background .28s ease,box-shadow .28s ease,top .28s ease;will-change:transform;}
nav.nav-solid{background:rgba(251,246,240,0.97);box-shadow:0 10px 34px rgba(20,30,43,0.14);top:8px;}
.nav-inner{width:100%;max-width:1200px;padding:0 clamp(16px,4vw,40px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;}
.logo{justify-self:start;font-family:'Fraunces',serif;font-size:1.45rem;color:var(--flame);cursor:pointer;font-weight:600;letter-spacing:-0.5px;transition:opacity .2s;}
.logo:hover{opacity:0.8;}
.logo span{color:var(--ink);}
.nav-mid{display:flex;gap:4px;align-items:center;justify-content:center;}
.nav-link{padding:7px 16px;border-radius:8px;font-size:0.84rem;font-weight:500;color:var(--ink-soft);cursor:pointer;border:none;background:none;transition:all .2s;}
.nav-link:hover{color:var(--ink);background:rgba(20,30,43,0.04);}
.nav-link.active{color:var(--flame-ink);background:rgba(232,93,58,0.07);}
.nav-right{display:flex;gap:6px;align-items:center;justify-content:flex-end;}
.btn{padding:8px 20px;border-radius:100px;font-size:0.85rem;font-weight:600;cursor:pointer;border:none;transition:all .25s;display:inline-flex;align-items:center;gap:6px;}
.btn:active{transform:scale(0.97);}
.btn-ghost{background:none;color:var(--flame-ink);border:1.5px solid var(--flame);}
.btn-ghost:hover{background:var(--flame);color:#fff;}
/* Blocked conversation. The block is enforced by trg_message_block_enforce on public.messages
   (migration 0175); this is only how it reads. The copy deliberately states that nothing has been
   deleted - the thread is the evidence of why the block exists. */
.sn-blocked{padding:12px 16px;border-top:1px solid rgba(20,30,43,0.08);background:var(--sand);font-size:0.82rem;color:var(--ink-soft);line-height:1.5;}
.sn-blocked strong{color:var(--ink);}
.sn-blocked p{margin:8px 0 0;}
.btn-primary{background:var(--flame);color:#fff;box-shadow:0 2px 8px rgba(232,93,58,0.2);}
.btn-primary:hover{background:var(--flame-dark);transform:translateY(-1px);box-shadow:0 4px 16px rgba(232,93,58,0.3);}
.btn-ocean{background:var(--ocean);color:#fff;box-shadow:0 2px 8px rgba(26,122,109,0.2);}
.btn-ocean:hover{background:var(--ocean-dark);transform:translateY(-1px);box-shadow:0 4px 16px rgba(26,122,109,0.3);}
.btn-lg{padding:13px 28px;font-size:0.95rem;border-radius:10px;}
.btn-full{width:100%;justify-content:center;padding:13px;border-radius:100px;font-size:0.95rem;}
.btn-icon{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0;}

/* ━━ PAGES ━━ */
.page{display:none;padding-top:64px;min-height:100vh;}
.page.active{display:block;animation:fadeUp .6s cubic-bezier(0.25,0.46,0.45,0.94);}
@keyframes fadeUp{from{opacity:0;transform:translateY(12px);}to{opacity:1;transform:none;}}

/* ━━ HERO ━━ */
/* THE HERO RUNS TO THE TOP OF THE PAGE and the bar floats over it, restored 20 Oct 2026 at the
   owner's request. The shared header is sticky and therefore occupies a row of layout before
   main; this negative margin pulls the hero back up under it so the gradient starts at y=0 and
   the bar sits on top. 82px is the bar's own height plus its 12px inset, measured.
   The 120px of top padding already in this rule is what keeps the headline clear of the bar - it
   was written for exactly this overlay before the shared header replaced it, and is why nothing
   else has to move. */
#p-home .hero{margin-top:-82px;}
@media(max-width:560px){ #p-home .hero{margin-top:-74px;} }
.hero{position:relative;padding:120px clamp(16px,4vw,40px) 140px;background:linear-gradient(145deg,var(--ink) 0%,#1F3044 30%,#2A1B3D 60%,var(--flame-dark) 100%);background-size:300% 300%;animation:heroGradient 12s ease infinite;overflow:hidden;}
@keyframes heroGradient{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.hero::before{content:'';position:absolute;top:-40%;right:-15%;width:700px;height:700px;background:radial-gradient(circle,rgba(232,93,58,0.25) 0%,transparent 70%);border-radius:50%;animation:heroPulse 8s ease-in-out infinite;}
.hero::after{content:'';position:absolute;bottom:-25%;left:-8%;width:500px;height:500px;background:radial-gradient(circle,rgba(245,166,35,0.15) 0%,transparent 70%);border-radius:50%;animation:heroPulse 10s ease-in-out infinite reverse;}
@keyframes heroPulse{0%{transform:scale(1);opacity:0.6}50%{transform:scale(1.15);opacity:1}100%{transform:scale(1);opacity:0.6}}
@keyframes heroFloat{0%{transform:translateY(0) rotate(0deg)}50%{transform:translateY(-20px) rotate(5deg)}100%{transform:translateY(0) rotate(0deg)}}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(232,93,58,0.4)}70%{box-shadow:0 0 0 8px rgba(232,93,58,0)}100%{box-shadow:0 0 0 0 rgba(232,93,58,0)}}
@keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}
.skeleton{background:linear-gradient(90deg,rgba(20,30,43,0.06) 25%,rgba(20,30,43,0.1) 50%,rgba(20,30,43,0.06) 75%);background-size:800px 100%;animation:shimmer 1.5s infinite;border-radius:8px;}
.skel-card{background:#fff;border-radius:var(--r-lg);padding:20px;box-shadow:var(--shadow-xs);}
.skel-line{height:14px;margin-bottom:10px;border-radius:6px;}
.skel-circle{border-radius:50%;}
.skel-block{border-radius:10px;}
.faq-item{background:#fff;border-radius:12px;overflow:hidden;border:1px solid rgba(20,30,43,0.06);transition:all .2s;}
.faq-item:hover{border-color:rgba(232,93,58,0.15);}
.faq-q{padding:18px 22px;font-weight:600;font-size:0.95rem;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;user-select:none;transition:color .2s;}
.faq-q:hover{color:var(--flame-ink);}
.faq-icon{font-size:1.2rem;color:var(--flame-ink);transition:transform .3s;flex-shrink:0;}
.faq-a{padding:0 22px;max-height:0;overflow:hidden;transition:max-height .3s ease,padding .3s ease;font-size:0.9rem;color:var(--ink-soft);line-height:1.7;}
.faq-item.open .faq-a{max-height:500px;padding:0 22px 20px;}
.faq-item.open .faq-icon{transform:rotate(45deg);}
.hero-inner{position:relative;z-index:10;max-width:640px;margin:0 auto;text-align:center;}
.hero h1{font-size:clamp(1.3rem,4.8vw,3.5rem);color:#fff;line-height:1.12;margin-bottom:24px;font-weight:300;}
.hero h1 em{color:var(--sun-light);font-style:italic;font-weight:400;}
.hero-sub{font-size:1.22rem;color:rgba(255,255,255,0.6);margin-bottom:48px;font-weight:300;max-width:540px;margin-left:auto;margin-right:auto;line-height:1.7;}
.search-bar{background:#fff;border-radius:16px;padding:8px;display:flex;gap:6px;box-shadow:var(--shadow-xl);max-width:640px;margin:0 auto;position:relative;z-index:20;}
.search-bar input{font-size:1rem;padding:14px 18px;}
.search-bar select{font-size:0.95rem;padding:14px 12px;}
.search-bar button{font-size:0.95rem;padding:14px 28px;}
.search-bar input,.search-bar select{border:none;padding:13px 16px;font-size:0.9rem;background:var(--sand);border-radius:9px;outline:none;flex:1;color:var(--ink);}
.search-bar select{flex:0.55;cursor:pointer;color:var(--ink-soft);}
.search-bar button{background:var(--flame);color:#fff;border:none;padding:13px 24px;border-radius:9px;font-weight:600;font-size:0.9rem;cursor:pointer;transition:all .25s;white-space:nowrap;}
.search-bar button:hover{background:var(--flame-dark);}
.hero-stats{display:flex;justify-content:center;gap:clamp(28px,6vw,60px);margin-top:56px;position:relative;z-index:1;}
.hero-stat-n{font-family:'Fraunces',serif;font-size:2.2rem;color:var(--sun-light);}
.hero-stat-l{font-size:0.88rem;}
.hero-stat-l{font-size:0.78rem;color:rgba(255,255,255,0.45);font-weight:300;}

/* ━━ SECTIONS ━━ */
.section{padding:70px clamp(16px,4vw,40px);max-width:1160px;margin:0 auto;}
/* ── 1.4 Nav wrapping between ~1024px and ~1150px ─────────────────────────────────────────────
   Audit 8 Sep 2026: header buttons broke onto two lines ("LOG / IN", "GET / MATCHED / →") from
   roughly 1024px to 1150px — iPad landscape and smaller MacBook windows. Confirmed broken at
   1060px, fine at 1221px. Labels must never wrap; the intermediate step tightens spacing before
   the existing mobile collapse takes over. */
.nav-right .btn,.sn-hdr-cta,.nav-link{white-space:nowrap;}
@media(min-width:861px) and (max-width:1180px){
  .nav-mid{gap:14px;}
  .nav-link{font-size:.88rem;letter-spacing:0;}
  .nav-right .btn{padding-left:14px;padding-right:14px;font-size:.86rem;}
}

/* ── Full-bleed dark band ─────────────────────────────────────────────────────────────────────
   Same gradient as the hero AI matcher. Scoped ENTIRELY to .sn-band — nothing here touches body or
   .section, so no other page or SPA view can inherit it. (Setting this on <body> is what turned
   every view dark on 8 Sep; it is not a global background for that reason.)

   Full bleed via a ::before layer that extends to the viewport edges, because .section is a centred
   1160px column and a background on it would render as a narrow strip. Content is lifted with
   z-index:1 rather than pushing the layer to z-index:-1, which would depend on the ancestor stacking
   context and is the fragile version of this trick. body already has overflow-x:hidden, so the
   100vw layer cannot create a horizontal scrollbar. */
.sn-band{position:relative;color:#fff;padding-top:clamp(48px,6vw,84px);padding-bottom:clamp(48px,6vw,84px);margin-top:clamp(28px,4vw,56px);margin-bottom:clamp(28px,4vw,56px);}
.sn-band::before{content:"";position:absolute;top:0;bottom:0;left:calc(50% - 50vw);width:100vw;
  background:linear-gradient(158deg,#33204d 0%,#232f59 44%,#15203a 100%);}
.sn-band > *{position:relative;z-index:1;}
/* ── .sn-band--hero: the ACTUAL hero treatment ────────────────────────────────────────────────
   The comment above claimed this band already used "the same gradient as the hero AI matcher".
   It did not: the band was a static 158deg purple-navy, while the hero is a 145deg gradient sized
   at 300% and animated over 12s. This modifier applies the real thing — same stops, same easing,
   same duration — so the two read as one surface rather than two similar dark blues.
   Opt-in per band, so no other dark section changes. */
.sn-band--hero::before{
  background:linear-gradient(145deg,var(--ink) 0%,#1F3044 30%,#2A1B3D 60%,var(--flame-dark) 100%);
  background-size:300% 300%;
  animation:heroGradient 12s ease infinite;
}
/* Floating shapes, matching the hero's. Confined to a full-bleed layer with overflow:hidden so a
   shape cannot spill sideways and create a horizontal scrollbar, and pointer-events:none so it can
   never intercept a click on the CTA. Beats `.sn-band > *` on specificity to sit BEHIND content.
   (A stray `}` sat here until 16 Nov 2026. The CSS parser drops a stray brace together with the
   NEXT rule, which used to be .sn-safe-lede; once the safeguarding CSS below was removed, the next
   rule became the one under this comment and the glow blobs scrolled the homepage sideways.) */
/* Safeguarding band (.sn-safe-*) CSS removed 16 Nov 2026 with its markup; see the note in #p-home. */
.sn-band > .sn-deco{position:absolute;top:0;bottom:0;left:calc(50% - 50vw);width:100vw;
  overflow:hidden;pointer-events:none;z-index:0;}
.sn-deco i{position:absolute;display:block;}
/* ── Drifting glow blobs: the hero's living background, extended to every dark band so the whole
   page reads as one animated surface (Oct 2026). Blurred radial gradients that slowly drift on a
   transform-only (GPU-composited) animation. They live inside the existing .sn-deco layer
   (z-index:0, pointer-events:none, overflow:hidden), so they never touch content or clicks, and
   the reduced-motion block below (`.sn-deco{display:none}`) freezes them for free. Separate <b>
   tag from the geometric-shape <i>, so the two decorations style independently. */
.sn-band .sn-deco b{position:absolute;display:block;border-radius:50%;filter:blur(56px);}
.sn-band .sn-deco b.g1{width:46vw;height:44vw;left:-10vw;top:-20vw;background:radial-gradient(circle,rgba(139,92,246,.28),transparent 62%);animation:snGlow1 24s ease-in-out infinite alternate;}
.sn-band .sn-deco b.g2{width:44vw;height:42vw;right:-12vw;bottom:-20vw;background:radial-gradient(circle,rgba(92,195,178,.20),transparent 62%);animation:snGlow2 28s ease-in-out infinite alternate;}
@keyframes snGlow1{to{transform:translate(12vw,10vh) scale(1.25)}}
@keyframes snGlow2{to{transform:translate(-10vw,-8vh) scale(1.2)}}
.sn-band h2,.sn-band h3{color:#fff;}
.sn-band .eyebrow{color:#F6C177;}
.sn-band p{color:rgba(255,255,255,.78);}
.sn-band .sig-i{color:#F6C177;}
/* The .sn-band .hiw-num / .hiw-step / .hiw-cta overrides were removed 22 Sep 2026: how-it-works
   is no longer a band, so they matched nothing. Restore all three together if it ever goes back
   on navy — the numerals are flame on cream and would be unreadable there.
   `.sn-band .subj-card` went the same day: the subject grid became .subj-pill, which draws its own
   border against the band instead of having one imposed from up here. */
.sn-band .section-head a{background:#fff;color:var(--flame-ink)!important;
  border-radius:100px;padding:11px 22px;font-weight:700;text-decoration:none;
  display:inline-flex;align-items:center;}
/* ── Social proof (family audience) ──────────────────────────────────────────────────────────
   Designed to be correct at a count of ONE. A fixed grid stretches a single card across the full
   width and makes a small honest count look like a mistake; centred flex with a capped card width
   makes one read as deliberate and reflows to 2/4/8 with no redesign.
   min-height reserves space so revealing the section cannot cause layout shift (CLS). */
.sn-proof{padding-top:8px;padding-bottom:40px;}
.sn-proof{position:relative;}
/* A hairline ::before used to sit here, tying the proof to the stats band above. It was removed
   22 Sep 2026 when the proof became a full-bleed navy band: an element has ONE ::before, and this
   rule came after .sn-band::before in the cascade, so keeping it would have silently replaced the
   band's background with a 1px line — the section would have rendered with no background at all.
   The tint now does the tying the hairline was there for. */

/* ── .sn-proof as a navy band ────────────────────────────────────────────────────────────────
   These rules exist because .sn-proof is declared AFTER .sn-band in this stylesheet, so its
   padding wins on source order alone; and because the cards come from partials/testimonials.html,
   which is shared with /become-a-tutor and must keep emitting white cards there. Everything below
   is scoped to .sn-band so nothing here can reach the partial's other callers. */
.sn-band.sn-proof{padding-top:clamp(48px,6vw,84px);padding-bottom:clamp(48px,6vw,84px);}
/* .sn-band p sets white text on every <p> inside the band. .sn-quote-body IS a <p>, and it sits on
   a white card — without this the quotes would be white on white, i.e. the proof section would
   render as blank cards. Lower specificity than .sn-band p, hence the compound selector. */
.sn-band .sn-quote-body{color:var(--ink);}
.sn-band .sn-quote cite,.sn-band .sn-quote-src{color:var(--grey);}
.sn-band .sn-quote-about,.sn-band .sn-quote-when{color:var(--ink-muted);}
.sn-band .sn-quote-more{color:var(--flame-ink);}
.sn-band .sn-trustbar-label{color:rgba(255,255,255,.62);}
.sn-band .sn-proof-note,.sn-band .sn-dbs-note{color:rgba(255,255,255,.72);}
/* .sn-proof-grid and every .sn-quote* rule now live in partials/testimonials.html, alongside the
   component that emits them — /become-a-tutor renders the same cards and used to carry a second,
   divergent stylesheet for them. What stays here is this SECTION's chrome (the divider, the
   trustbar, the note), which is the homepage's and nowhere else's. */
.sn-trustbar{text-align:center;margin-bottom:26px;}
.sn-proof-note{max-width:620px;margin:8px auto 0;font-size:.86rem;color:var(--ink-soft);line-height:1.6;}
.sn-dbs-note{margin-top:12px;font-size:.82rem;color:var(--ink-soft);}
.sn-trustbar-label{font-size:.78rem;text-transform:uppercase;letter-spacing:1.5px;color:var(--grey);font-weight:600;margin-bottom:14px;}
.sn-trustbar-logos{display:flex;justify-content:center;gap:clamp(14px,3vw,32px);align-items:center;flex-wrap:wrap;}
.sn-trustchip{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;background:#fff;border-radius:10px;text-decoration:none;box-shadow:0 1px 4px rgba(0,0,0,.04);transition:transform .2s,box-shadow .2s;}
.sn-trustchip span{font-weight:600;font-size:.88rem;color:var(--ink);}
.sn-trustchip:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.08);}
.sn-trustchip:focus-visible{outline:3px solid var(--flame);outline-offset:3px;}
@media(prefers-reduced-motion:reduce){.sn-trustchip{transition:none;}}
/* ━━ TRUSTPILOT NAVY BAND ━━ */
.tpb-band{width:100vw;position:relative;left:50%;margin-left:-50vw;background:linear-gradient(155deg,#141E2B 0%,#1b2940 60%,#16313c 100%);overflow:hidden;padding:76px clamp(16px,4vw,40px) 84px;}
.tpb-band::before{content:'';position:absolute;top:-180px;right:-120px;width:480px;height:480px;border-radius:50%;background:radial-gradient(circle,rgba(232,93,58,0.35),transparent 70%);animation:tpbGlow1 16s ease-in-out infinite alternate;}
.tpb-band::after{content:'';position:absolute;bottom:-200px;left:-140px;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(0,182,122,0.20),transparent 70%);animation:tpbGlow2 19s ease-in-out infinite alternate;}
.tpb-inner{max-width:1080px;margin:0 auto;position:relative;z-index:1;}
.tpb-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:38px;flex-wrap:wrap;gap:16px;}
.tpb-head h2{font-family:'Fraunces',Georgia,serif;font-size:clamp(1.7rem,3.4vw,2.4rem);color:#fff;letter-spacing:-0.5px;line-height:1.15;}
.tpb-head h2 span{color:var(--gold);font-style:italic;}
.tpb-rating{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,0.12);backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,0.2);padding:12px 18px;border-radius:14px;}
.tpb-rating b{color:#fff;font-size:0.95rem;line-height:1.25;}
.tpb-rating small{display:block;color:rgba(255,255,255,0.7);font-size:0.72rem;font-weight:400;}
.tpb-stars{display:inline-flex;gap:3px;}
.tpb-stars i{background:#00B67A;width:24px;height:24px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-style:normal;}
.tpb-stars i svg{display:block;}
.tpb-layout{columns:2;column-gap:24px;}
@keyframes tpbGlow1{from{transform:translate(0,0) scale(1);}to{transform:translate(-60px,44px) scale(1.18);}}
@keyframes tpbGlow2{from{transform:translate(0,0) scale(1);}to{transform:translate(72px,-50px) scale(1.15);}}
@keyframes tpbCardIn{from{opacity:0;transform:translateY(34px) scale(0.96);}to{opacity:1;transform:translateY(0) scale(1);}}
@keyframes tpbStarPop{0%{transform:scale(0);}60%{transform:scale(1.3);}100%{transform:scale(1);}}
.tpb-layout .tpb-mini.visible{animation:tpbCardIn .65s cubic-bezier(.22,.9,.36,1) backwards;}
.tpb-layout .tpb-mini.visible:nth-of-type(2){animation-delay:.12s;}
.tpb-layout .tpb-mini.visible:nth-of-type(3){animation-delay:.24s;}
.tpb-layout .tpb-mini.visible:nth-of-type(4){animation-delay:.36s;}
.tpb-layout .tpb-mini.visible .tpb-stars i{animation:tpbStarPop .45s cubic-bezier(.34,1.56,.64,1) backwards;}
.tpb-layout .tpb-mini.visible .tpb-stars i:nth-child(1){animation-delay:.35s;}
.tpb-layout .tpb-mini.visible .tpb-stars i:nth-child(2){animation-delay:.43s;}
.tpb-layout .tpb-mini.visible .tpb-stars i:nth-child(3){animation-delay:.51s;}
.tpb-layout .tpb-mini.visible .tpb-stars i:nth-child(4){animation-delay:.59s;}
.tpb-layout .tpb-mini.visible .tpb-stars i:nth-child(5){animation-delay:.67s;}
@media (prefers-reduced-motion:reduce){.tpb-band::before,.tpb-band::after,.tpb-layout .tpb-mini.visible,.tpb-layout .tpb-mini.visible .tpb-stars i{animation:none;}}
.tpb-who{display:flex;align-items:center;gap:12px;margin-top:24px;}
.tpb-av{border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0;}
.tpb-who b{display:block;color:var(--ink);font-size:0.95rem;}
.tpb-who span{font-size:0.76rem;color:var(--grey);}
.tpb-mini{background:rgba(255,255,255,0.10);backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,0.18);border-radius:16px;padding:24px;break-inside:avoid;margin-bottom:24px;position:relative;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;}
.tpb-mini::after{content:'\201D';position:absolute;top:-34px;right:10px;font-family:'Fraunces',Georgia,serif;font-size:7.5rem;line-height:1;color:rgba(255,255,255,0.07);pointer-events:none;}
.tpb-mini.visible:hover{transform:translateY(-6px);border-color:rgba(255,255,255,0.34);box-shadow:0 18px 44px rgba(0,0,0,0.35);}
.tpb-mini .tpb-stars i{width:18px;height:18px;}
.tpb-mini h4{font-family:'Fraunces',Georgia,serif;color:#fff;font-size:1.02rem;margin:10px 0 6px;}
.tpb-mini p{color:rgba(255,255,255,0.78);font-size:0.84rem;line-height:1.6;}
.tpb-mini .tpb-who{margin-top:14px;}
.tpb-mini .tpb-av{width:32px;height:32px;font-size:0.74rem;}
.tpb-mini .tpb-who b{color:#fff;font-size:0.82rem;}
.tpb-mini .tpb-who span{color:rgba(255,255,255,0.55);font-size:0.68rem;}
.tpb-cta{text-align:center;margin-top:38px;}
.tpb-cta a{display:inline-flex;align-items:center;gap:9px;background:var(--flame);color:#fff;font-weight:700;font-size:0.9rem;padding:14px 28px;border-radius:12px;text-decoration:none;box-shadow:0 10px 30px rgba(232,93,58,0.4);transition:transform 0.2s,box-shadow 0.2s;}
.tpb-cta a:hover{transform:translateY(-2px);box-shadow:0 14px 36px rgba(232,93,58,0.5);}
@media(max-width:860px){.tpb-layout{columns:1;}.tpb-head{flex-direction:column;align-items:flex-start;}}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:36px;}
.section-head h2{font-size:1.8rem;}
.section-head a{color:var(--flame-ink);font-weight:500;cursor:pointer;font-size:0.88rem;text-decoration:none;transition:opacity .2s;}
.section-head a:hover{opacity:0.7;}

/* ━━ FILTERS ━━ */
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px;}

/* ── /browse FILTER BAR, REBUILT 26 OCTOBER 2026 ───────────────────────────────────────────────
   Was an inline `display:flex;flex-wrap:wrap` holding a flex:1 search box and four selects, each
   padded 10px/14px - so the controls came out ~40px tall, below the 44px touch target, the search
   placeholder truncated at every width, and because five items wrapped by content width the last
   select ("Any Verification") was repeatedly left alone on its own row.
   A grid fixes the orphaning deterministically rather than hoping the widths work out:
     >=1000px  search gets 2fr, the four selects 1fr each, one row.
     600-999   search spans the full width, the selects sit 2x2 - four items, two rows, no orphan.
     <600      one column, every control full width.
   `outline:none` was also removed from all SIX controls. (The first pass said five and missed
   #browsePrice, which another pass caught - the same off-by-one as the grid columns above.) It was
   in each inline style attribute,
   which suppressed the focus ring for keyboard users on the only page whose entire purpose is
   filtering. :focus-visible now draws the ring from the dark focus token. */
.bfilters{background:#fff;border-radius:14px;padding:18px 22px;box-shadow:0 1px 4px rgba(0,0,0,0.06);
  margin-bottom:24px;display:grid;gap:12px;align-items:center;
  /* SEARCH ON ITS OWN ROW, five selects beneath it. Measured 28 Oct 2026: with the search sharing
     the row at 2fr, each select got ~151px, of which ~79px is usable once padding and the dropdown
     arrow are taken out - and "Any Verification" needs 103px, "All Categories" 90px. So the labels
     were clipped at EVERY width from 1000px up, and widening the viewport did not help because the
     bar is inside a max-width:1100px column: 1280px clipped exactly as much as 1100px did.
     Fitting 103px of text in six shared columns would need a ~1225px container, which does not
     exist here. Giving the five selects the full width instead makes each ~203px, ~157px usable.
     The cost is one extra row on desktop; the alternative is truncated words in the only controls
     on the page, and shortening the labels would mean editing wording to fit a layout. */
  grid-template-columns:repeat(5,minmax(0,1fr));}
.bfilters-search{grid-column:1 / -1;}
.bfilters-search{position:relative;min-width:0;}
.bfilters input[type="text"],.bfilters select{min-height:44px;box-sizing:border-box;width:100%;min-width:0;}
.bfilters input[type="text"]:focus-visible,.bfilters select:focus-visible{
  outline:2px solid var(--focus-ring-dark,#141E2B);outline-offset:2px;}
@media(max-width:999px){
  /* THREE columns, not two. Five selects in a two-column grid is 2+2+1 and orphans the last one;
     in three it is 3+2, and a row of two is a pair rather than a stray. */
  .bfilters{grid-template-columns:repeat(3,minmax(0,1fr));}
  .bfilters-search{grid-column:1 / -1;}
}
@media(max-width:799px){
  .bfilters{grid-template-columns:repeat(2,minmax(0,1fr));}
  /* At two columns the five selects would orphan again, so the LAST one spans the full width
     deliberately - a full-width control reads as intentional, a half-width one stranded beside
     empty space does not. */
  .bfilters select:last-of-type{grid-column:1 / -1;}
}
@media(max-width:599px){
  .bfilters{grid-template-columns:1fr;padding:16px;}
  .bfilters-search{grid-column:auto;}
  .bfilters select:last-of-type{grid-column:auto;}
}
.chip{padding:7px 16px;border-radius:50px;border:1.5px solid var(--sand-dark);background:#fff;font-size:0.82rem;font-weight:500;color:var(--ink-soft);cursor:pointer;transition:all .2s;}
.chip:hover,.chip.on{border-color:var(--flame-ink);color:var(--flame-ink);background:rgba(232,93,58,0.04);}

/* ━━ TUTOR CARDS ━━ */
.t-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:22px;}
.t-card{background:#fff;border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow-xs);transition:transform .25s ease-out,box-shadow .25s ease-out;cursor:pointer;border:1px solid rgba(20,30,43,0.04);}
.t-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-4px);border-color:transparent;}
.t-card:hover .t-avatar{transform:scale(1.06);}

/* Horizontal tutor card (homepage) */
/* Preply-style tutor card: photo fills the whole top, name overlaid */
.th-card{background:#fff;border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow-sm);transition:transform .22s ease-out,box-shadow .22s ease-out;cursor:pointer;border:1px solid rgba(20,30,43,0.05);display:flex;flex-direction:column;height:100%;}
.th-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-4px);border-color:transparent;}
.th-card .th-photo{position:relative;width:100%;aspect-ratio:4/5;overflow:hidden;}
.th-card .th-ini{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:'Fraunces',serif;font-size:3.4rem;font-weight:600;color:rgba(255,255,255,0.92);}
.th-card .th-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 28%;display:block;transition:transform .45s ease-out;}
.th-card:hover .th-img{transform:scale(1.05);}
.th-card .th-scrim{position:absolute;left:0;right:0;bottom:0;padding:40px 16px 14px;background:linear-gradient(to top,rgba(10,14,22,0.82),rgba(10,14,22,0.15) 70%,transparent);z-index:2;}
.th-card .th-oname{color:#fff;font-family:'Fraunces',serif;font-size:1.3rem;font-weight:600;line-height:1.1;}
.th-card .th-osub{color:rgba(255,255,255,0.88);font-size:0.8rem;margin-top:3px;}
.th-card .th-badges-ov{position:absolute;top:12px;left:12px;display:flex;gap:6px;flex-wrap:wrap;z-index:2;}
.th-card .th-badges-ov .dbs{background:rgba(255,255,255,0.94);color:var(--ocean);font-weight:700;font-size:0.68rem;padding:5px 10px;border-radius:20px;box-shadow:0 2px 8px rgba(0,0,0,0.18);display:inline-flex;align-items:center;gap:5px;cursor:help;}
/* Sized in em so the icon tracks the 0.68rem badge text rather than sitting at a fixed 14px,
   which at this size reads as an icon with a caption instead of a labelled badge. */
.th-card .th-badges-ov .dbs .sn-i{width:1.05em;height:1.05em;flex:none;}
/* Founding Tutor (migration 0131). Navy outline, flame dot, no icon and no emoji. Deliberately
   quieter than .dbs — that badge is a safeguarding claim carrying a tick, this one is a join date,
   and the two must not read as the same weight of assurance. The dot is a sized empty span rather
   than a character so a screen reader announces "Founding Tutor" and nothing else. */
.sn-founding{background:rgba(255,255,255,0.94);color:var(--ink);font-weight:600;font-size:0.66rem;padding:4px 10px;border-radius:20px;border:1px solid var(--ink);display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}
.sn-founding-dot{width:5px;height:5px;border-radius:50%;background:var(--flame);flex:none;}
.th-card .th-body{padding:15px 18px 18px;display:flex;flex-direction:column;flex:1;gap:12px;}
.th-card .th-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.th-card .th-rate{display:flex;align-items:center;gap:5px;font-weight:700;font-size:0.92rem;color:var(--ink);}
.th-card .th-rate .star{color:var(--gold);}
.th-card .th-tag{font-size:0.72rem;color:var(--ink-soft);background:var(--sand);padding:4px 11px;border-radius:20px;font-weight:500;}
.th-card .th-foot{display:flex;justify-content:space-between;align-items:center;margin-top:auto;}
/* Next free slot (item 14). Hidden while empty so a card with no slot is unchanged, flex gap included. */
.sn-next{display:inline-flex;align-items:center;gap:5px;font-size:0.76rem;font-weight:500;color:var(--ink-soft);line-height:1.3;}
.sn-next:empty{display:none;}
.sn-next .sn-i{width:14px;height:14px;flex:none;color:var(--ink-soft);}
.sn-next--tp{font-size:0.95rem;}
.sn-next--tp .sn-i{width:17px;height:17px;}
.th-card .th-price{font-family:'Fraunces',serif;font-size:1.25rem;font-weight:600;}
.th-card .th-price span{font-size:0.75rem;color:var(--ink-muted);font-weight:400;font-family:var(--font);}
.th-card .th-btn{background:transparent;color:var(--flame-ink);border:1.5px solid var(--flame);padding:9px 22px;border-radius:24px;font-size:0.82rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:all 0.2s;white-space:nowrap;}
.th-card .th-btn:hover{background:var(--flame);color:#fff;}
/* Free intro as the card's primary action (19 Nov 2026). #C0432A, the profile's .tp-cta--primary,
   not --flame: white on #E85D3A is ~3.2:1 and fails AA at this size; on #C0432A it is ~5:1. */
.th-card .th-btn.th-btn--intro{background:#C0432A;border-color:#C0432A;color:#fff;}
.th-card .th-btn.th-btn--intro:hover{background:#A5381F;border-color:#A5381F;color:#fff;}
/* Cards as links (16 Nov 2026). The photo block IS the profile link (a.th-photo) and "View & book"
   is a second, pointer-only <a> to the same URL; neither nests a control. See snTutorLinkClick(). */
.th-card a.th-photo{display:block;color:inherit;text-decoration:none;}
.th-card a.th-photo:focus-visible{outline:3px solid var(--flame);outline-offset:-3px;border-radius:var(--r-lg) var(--r-lg) 0 0;}
.th-card a.th-btn{display:inline-block;text-decoration:none;line-height:1.2;}
/* The DBS tier, moved from the photo corner into the facts row under the name. Same two pills as
   before (tick / shield), now on white; the absent tier is muted text with no pill. #146055, not
   --ocean: axe measured --ocean on this tint at 4.43:1, under AA; #146055 is the shop band's teal. */
.th-card .th-row .dbs{display:inline-flex;align-items:center;gap:5px;font-size:0.72rem;font-weight:700;color:#146055;background:rgba(26,122,109,0.10);padding:4px 10px;border-radius:20px;}
.th-card .th-row .dbs .sn-i{width:1.05em;height:1.05em;flex:none;}
.th-card .th-row .dbs.dbs-none{background:none;padding:4px 0;font-weight:500 !important;}
/* Two cards across a 390px phone (the homepage three) left "View & book" hanging out of the card. */
@media(max-width:480px){.th-card .th-foot{flex-wrap:wrap;gap:8px;}.th-card .th-btn{padding:8px 16px;}}
.t-card-top{height:180px;display:flex;align-items:center;justify-content:center;position:relative;}
.t-avatar{width:80px;height:80px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:1.8rem;font-family:'Fraunces',serif;box-shadow:var(--shadow-md);transition:transform .25s ease-out;}
.t-badge{position:absolute;top:12px;right:12px;background:var(--sun);color:#fff;padding:3px 10px;border-radius:50px;font-size:0.7rem;font-weight:700;}
.t-online{position:absolute;bottom:-5px;left:50%;transform:translateX(-50%);background:var(--mint);color:#fff;padding:2px 12px;border-radius:50px;font-size:0.68rem;font-weight:600;}
.t-card-body{padding:20px 22px 22px;}
.t-name{font-family:'Fraunces',serif;font-size:1.15rem;margin-bottom:3px;}
.t-subj{font-size:0.82rem;color:var(--ink-muted);margin-bottom:10px;}
.t-stars{display:flex;align-items:center;gap:5px;font-size:0.84rem;margin-bottom:12px;}
.t-stars .s{color:var(--star);letter-spacing:1.5px;}
.t-stars .c{color:var(--ink-muted);font-size:0.78rem;}
.t-tags{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:14px;}
.tag{padding:3px 9px;background:var(--sand);border-radius:5px;font-size:0.72rem;color:var(--ink-soft);font-weight:500;}
.t-foot{display:flex;justify-content:space-between;align-items:center;padding-top:12px;border-top:1px solid var(--sand-dark);}
.t-price{font-size:1.2rem;font-weight:700;}
.t-price span{font-size:0.75rem;font-weight:400;color:var(--ink-muted);}
/* Richer browse-card extras */
.t-card-top{height:150px;}
.t-photo-badge{position:absolute;bottom:12px;left:12px;background:rgba(255,255,255,0.95);color:#2F855A;padding:4px 10px;border-radius:50px;font-size:0.68rem;font-weight:700;box-shadow:0 2px 6px rgba(0,0,0,0.12);display:flex;align-items:center;gap:4px;}
.t-rating-row{display:flex;align-items:center;gap:7px;margin-bottom:11px;}
.t-rating-pill{display:inline-flex;align-items:center;gap:5px;background:rgba(245,166,35,0.12);padding:3px 9px;border-radius:7px;}
.t-rating-pill .star{color:var(--gold);font-size:0.82rem;}
.t-rating-pill .val{font-weight:700;font-size:0.82rem;}
.t-rating-pill .cnt{font-size:0.7rem;color:var(--ink-muted);}
.t-rating-new{font-size:0.7rem;color:var(--ink-muted);background:var(--sand);padding:3px 9px;border-radius:7px;font-weight:600;}
.t-vbadges{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px;min-height:0;}
.t-vbadge{display:inline-flex;align-items:center;gap:3px;padding:3px 8px;border-radius:50px;font-size:0.66rem;font-weight:600;}
.t-spec{padding:3px 9px;background:rgba(232,93,58,0.1);color:var(--flame-ink);border-radius:6px;font-size:0.7rem;font-weight:600;}
.t-card:hover .t-card-top img,.t-card:hover .t-card-top .t-avatar{transform:scale(1.05);}
.t-card-top img,.t-card-top .t-avatar{transition:transform .3s ease-out;}

/* ━━ HOW IT WORKS ━━ */
.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.how-card{background:#fff;border-radius:var(--r-lg);padding:32px 24px;text-align:center;box-shadow:var(--shadow-xs);position:relative;overflow:hidden;transition:all .3s ease;}
.how-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);}
.how-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;}
.how-card:nth-child(1)::before{background:var(--flame);}
.how-card:nth-child(2)::before{background:var(--sun);}
.how-card:nth-child(3)::before{background:var(--ocean);}
.how-num{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;margin:0 auto 14px;font-size:1.4rem;}
.how-card:nth-child(1) .how-num{background:rgba(232,93,58,0.1);color:var(--flame-ink);}
.how-card:nth-child(2) .how-num{background:rgba(245,166,35,0.1);color:var(--sun);}
.how-card:nth-child(3) .how-num{background:rgba(26,122,109,0.1);color:var(--ocean);}
.how-card h3{font-size:1.1rem;margin-bottom:8px;}
.how-card p{font-size:0.84rem;color:var(--ink-muted);line-height:1.6;}

/* ━━ CTA BANNER ━━ */
.cta{background:linear-gradient(135deg,var(--flame-dark),var(--flame),var(--sun));border-radius:var(--r-xl);padding:64px 44px;text-align:center;color:#fff;max-width:1080px;margin:0 auto 60px;position:relative;overflow:hidden;}
.cta::before{content:'';position:absolute;top:-35%;right:-8%;width:350px;height:350px;background:radial-gradient(circle,rgba(255,255,255,0.1) 0%,transparent 70%);border-radius:50%;}
.cta::after{content:'';position:absolute;bottom:-30%;left:-10%;width:300px;height:300px;background:radial-gradient(circle,rgba(255,255,255,0.06) 0%,transparent 70%);border-radius:50%;}
.cta h2{font-size:2rem;margin-bottom:12px;position:relative;}
.cta p{opacity:0.9;font-weight:300;margin-bottom:28px;position:relative;max-width:460px;margin-left:auto;margin-right:auto;line-height:1.7;}
.cta-btn{padding:14px 34px;background:#fff;color:var(--flame-dark);border:none;border-radius:100px;font-weight:700;font-size:0.95rem;cursor:pointer;transition:all .25s;position:relative;}
.cta-btn:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);}

/* ━━ MODAL ━━ */
.overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(20,30,43,0.45);backdrop-filter:blur(5px);z-index:1100;justify-content:center;align-items:center;padding:16px;}
/* z-index 1100, was 200 (16 Nov 2026). The shared header (partials/header.html, .sn-hdr) is sticky at
   z-index 1000, so every .overlay modal opened UNDER it: the booking modal's title and close button
   sat behind the header on mobile and desktop alike (booking-dropoff-2026-11.md, F2). 1100 clears the
   header and stays below the toast (4000), the confirm dialogs (4001), the consent banner (9999) and
   the header's own menu (10050). The local preview hides this because the header is only injected at
   build time. */
.overlay.show{display:flex;}
.modal{background:#fff;border-radius:var(--r-lg);width:100%;max-width:540px;max-height:90vh;overflow-y:auto;box-shadow:var(--shadow-xl);animation:modalPop .3s ease;}
@keyframes modalPop{from{opacity:0;transform:translateY(16px) scale(0.97);}to{opacity:1;transform:none;}}
.modal-head{padding:24px 28px 0;display:flex;justify-content:space-between;align-items:flex-start;}
.modal-head h2{font-size:1.35rem;}
.modal-x{width:32px;height:32px;border-radius:50%;border:none;background:var(--sand);font-size:1.1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--ink-soft);transition:all .2s;}
.modal-x:hover{background:var(--sand-dark);color:var(--ink);}
.modal-body{padding:20px 28px 28px;}

/* ━━ FORMS ━━ */
.fg{margin-bottom:18px;}
.fl{display:block;font-size:0.82rem;font-weight:600;color:var(--ink-mid);margin-bottom:6px;}
.fi,.fs,.ft{width:100%;padding:12px 15px;border:1.5px solid var(--sand-dark);border-radius:9px;font-size:0.88rem;color:var(--ink);background:#fff;outline:none;transition:all .25s ease;}
.fi:focus,.fs:focus,.ft:focus{border-color:var(--flame-ink);box-shadow:0 0 0 3px rgba(232,93,58,0.08);background:var(--white);}
.fi::placeholder{color:var(--ink-muted);}
.ft{resize:vertical;min-height:80px;line-height:1.6;}
.fg-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}

/* ━━ TIME SLOTS ━━ */
.slots{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;}
/* font-family:inherit and width:100% are needed now these are real <button>s — a button does not
   inherit the page font, and without the width it shrinks out of the grid cell. focus-visible gives
   keyboard users a ring; previously these were divs and could not be focused at all. */
.slot{padding:9px;text-align:center;border:1.5px solid var(--sand-dark);border-radius:7px;font-size:0.82rem;font-weight:500;cursor:pointer;transition:all .2s;background:#fff;color:var(--ink-soft);font-family:inherit;width:100%;}
.slot:hover{border-color:var(--flame-ink);color:var(--flame-ink);}
.slot:focus-visible{outline:2px solid var(--flame-ink);outline-offset:2px;}
.slot.sel{border-color:var(--flame-ink);background:var(--flame);color:#fff;}
.slot.off{opacity:0.3;cursor:not-allowed;text-decoration:line-through;}
/* Booking modal (16 Nov 2026). Times are grouped into morning / afternoon / evening so a tutor with
   a full day is three short rows rather than thirteen full-width buttons on a phone, and the submit
   lives in .bk-foot, which is pinned to the bottom of the modal on small screens. */
.bk-sg+.bk-sg{margin-top:10px;}
.bk-sg-h{font-size:0.74rem;font-weight:600;letter-spacing:0.04em;text-transform:uppercase;color:var(--ink-muted);margin:0 0 6px;}
.bk-none{font-size:0.85rem;color:var(--ink-muted);padding:8px 0;line-height:1.5;}
.bk-next{background:none;border:none;padding:0;font:inherit;font-weight:600;color:var(--flame-ink);text-decoration:underline;cursor:pointer;}
.bk-date-hint{font-weight:400;color:var(--ink-muted);}
.bk-foot{margin-top:14px;}
.bk-foot .btn{margin-top:0;}
.bk-acct{font-size:0.78rem;color:var(--ink-muted);line-height:1.45;margin:8px 0 0;text-align:center;}
.bk-err{font-size:0.82rem;color:var(--flame-ink);font-weight:500;line-height:1.4;margin:0 0 8px;text-align:center;}
.bk-err:empty{display:none;}
/* Inline email-code step (16 Nov 2026): replaces the footer while a logged-out parent confirms their
   email. In normal flow, not sticky: on a phone the sticky footer would otherwise grow to cover the form. */
.bk-acct-box{margin-top:16px;padding:16px;border:1.5px solid var(--sand-dark);border-radius:var(--r);background:#fff;scroll-margin-top:12px;}
.bk-acct-h{font-family:'Fraunces',serif;font-weight:600;font-size:1.08rem;margin:0 0 6px;color:var(--ink);outline:none;}
.bk-acct-p{font-size:0.86rem;color:var(--ink-soft);line-height:1.5;margin:0 0 10px;}
.bk-acct-sum{font-size:0.82rem;color:var(--ink-soft);background:var(--sand);border-radius:9px;padding:8px 12px;margin:0 0 14px;line-height:1.45;}
.bk-acct-hint{display:block;font-size:0.76rem;color:var(--ink-muted);margin-top:5px;}
.bk-acct-terms{align-items:flex-start;font-size:0.84rem;padding:4px 0 10px;}
.bk-acct-terms input{margin-top:3px;flex:0 0 auto;width:18px;height:18px;}
.bk-acct-links{font-size:0.84rem;text-align:center;margin:12px 0 0;color:var(--ink-muted);}
.bk-acct-links .bk-next:disabled{color:var(--ink-muted);text-decoration:none;cursor:default;font-weight:500;}
.bk-ts{margin:4px 0 10px;min-height:0;}
.bk-acct-box .bk-err{text-align:left;}
.bk-code{font-size:1.4rem!important;letter-spacing:0.35em;text-align:center;font-variant-numeric:tabular-nums;padding:12px 10px;}
@media(max-width:768px){ #bkAcct .fi,#bkAcct .fs{font-size:16px;} .bk-acct-box{padding:14px;margin-bottom:20px;} }
/* A toast fired while the booking modal is open goes to the top of the screen, not the bottom, so
   it never sits on the submit button (it used to: "Please pick an available time slot" was drawn
   over the very button it was about). The toast wrapper sets bottom inline, hence !important. */
body:has(#bookOverlay.show) #snToastWrap{bottom:auto!important;top:16px;}
/* The cookie banner (z-index 9999) would otherwise cover the booking modal's sticky submit button for a
   first-time visitor. While the booking modal is open the banner steps aside; it returns, unanswered, the
   moment the modal closes. No consent is set or assumed by this. */
body:has(#bookOverlay.show) #cookieBanner{display:none!important;}
@media(max-width:768px){
  #bookOverlay{padding:10px;}
  #bookOverlay .modal{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);}
  #bookModal .modal-head{padding:18px 20px 0;}
  #bookModal .modal-body{padding:16px 20px 24px;}
  #bookModal .modal-body.bk-body{padding-bottom:0;}
  #bookModal .bk-info{margin-bottom:14px;}
  #bkSlots .slots{grid-template-columns:repeat(4,1fr);gap:6px;}
  #bkSlots .slot{padding:10px 2px;font-size:0.84rem;}
  .bk-foot{position:sticky;bottom:0;z-index:2;background:#fff;margin:14px -20px 0;padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--sand-dark);box-shadow:0 -10px 18px -14px rgba(20,30,43,0.35);}
}

/* ━━ BOOKING INFO ━━ */
.bk-info{display:flex;gap:14px;align-items:center;padding:14px;background:var(--sand);border-radius:var(--r);margin-bottom:20px;}
.bk-av{width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-family:'Fraunces',serif;font-size:1.2rem;}
.bk-name{font-weight:600;font-size:0.98rem;}
.bk-sub{font-size:0.82rem;color:var(--ink-muted);}
.bk-summary{background:var(--sand);border-radius:var(--r);padding:18px;margin-top:20px;}
.bk-row{display:flex;justify-content:space-between;padding:5px 0;font-size:0.87rem;color:var(--ink-soft);}
.bk-row.total{border-top:1.5px solid var(--sand-dark);margin-top:6px;padding-top:10px;font-weight:700;color:var(--ink);font-size:1rem;}

/* ━━ SUCCESS ━━ */
.success{text-align:center;padding:36px 16px;}
.success-ico{width:72px;height:72px;border-radius:50%;background:rgba(72,187,120,0.1);display:flex;align-items:center;justify-content:center;margin:0 auto 18px;font-size:2.2rem;}
.success h3{font-size:1.3rem;margin-bottom:6px;}
.success p{color:var(--ink-muted);font-size:0.9rem;}

/* ━━ DASHBOARD ━━ */
.dash{display:grid;grid-template-columns:260px 1fr;min-height:calc(100vh - 64px);}
.dash-side{background:var(--ink);padding:28px 18px;position:sticky;top:64px;height:calc(100vh - 64px);overflow-y:auto;align-self:start;}
.dash-u{text-align:center;padding-bottom:20px;border-bottom:1px solid rgba(255,255,255,0.08);margin-bottom:20px;}
.dash-u-av{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.6rem;font-family:'Fraunces',serif;margin:0 auto 10px;}
.dash-u-name{color:#fff;font-weight:600;font-size:0.98rem;}
.dash-u-role{color:var(--ink-muted);font-size:0.78rem;}
.dash-nav{display:flex;flex-direction:column;gap:3px;}
.dash-ni{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:9px;color:rgba(255,255,255,0.5);font-size:0.85rem;font-weight:500;cursor:pointer;transition:all .2s;border:none;background:none;width:100%;text-align:left;}
.dash-ni:hover{background:rgba(255,255,255,0.06);color:#fff;}
.dash-ni.on{background:rgba(232,93,58,0.18);color:var(--flame-light);}
/* Nav icons (22 Nov 2026, owner decision: no emoji in the product UI). site-tokens.css paints every
   .dash-side .sn-i white; here the icon follows its own label instead, so an inactive item is as dim as
   its text and the active one takes the same flame tint. */
.dash-nav .dash-ni .sn-i{width:1.05em;height:1.05em;color:currentColor;}
.dash-main{padding:28px clamp(16px,3vw,28px);}
.dash-head{margin-bottom:26px;}
.dash-head h2{font-size:1.6rem;margin-bottom:3px;}
.dash-head p{color:var(--ink-muted);font-size:0.9rem;}

.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin-bottom:28px;}
.stat{background:#fff;border-radius:var(--r);padding:22px;box-shadow:var(--shadow-xs);border:1px solid rgba(20,30,43,0.03);transition:all .2s;}
.stat:hover{box-shadow:var(--shadow-sm);}
.stat-l{font-size:0.76rem;color:var(--ink-muted);font-weight:500;margin-bottom:6px;text-transform:uppercase;letter-spacing:0.3px;}
.stat-v{font-family:'Fraunces',serif;font-size:1.6rem;}
.stat-c{font-size:0.74rem;font-weight:600;margin-top:3px;}
.stat-c.up{color:var(--mint);}

.upcoming{background:#fff;border-radius:var(--r-lg);box-shadow:var(--shadow-xs);overflow:hidden;border:1px solid rgba(20,30,43,0.03);}
.upcoming-h{padding:18px 22px;border-bottom:1px solid var(--sand-dark);font-family:'Fraunces',serif;font-size:1.08rem;}
.sess{display:flex;align-items:center;gap:14px;padding:16px 22px;border-bottom:1px solid var(--sand);transition:all .2s;cursor:pointer;}
.sess:hover{background:var(--sand);padding-left:26px;}
.sess:last-child{border-bottom:none;}
.sess-d{width:50px;height:50px;background:var(--sand);border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0;}
.sess-dd{font-weight:700;font-size:1rem;color:var(--flame-ink);}
.sess-dm{font-size:0.66rem;color:var(--ink-muted);font-weight:500;text-transform:uppercase;}
.sess-info{flex:1;}
.sess-n{font-weight:600;font-size:0.9rem;}
.sess-s{font-size:0.78rem;color:var(--ink-muted);}
.sess-time{font-size:0.82rem;color:var(--ink-soft);font-weight:500;text-align:right;}
.sess-st{padding:3px 10px;border-radius:50px;font-size:0.68rem;font-weight:600;display:inline-block;margin-top:4px;}
.sess-st.ok{background:rgba(72,187,120,0.1);color:var(--mint);}
.sess-st.pen{background:rgba(245,166,35,0.1);color:var(--sun);}

/* ━━ MESSAGES ━━ */
.msg-layout{display:grid;grid-template-columns:280px 1fr;height:calc(100vh - 64px);background:#fff;border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow-sm);}
.msg-list{border-right:1px solid var(--sand-dark);overflow-y:auto;}
.msg-list-head{padding:18px 20px;border-bottom:1px solid var(--sand-dark);font-family:'Fraunces',serif;font-size:1.1rem;}
.msg-item{display:flex;gap:12px;padding:14px 20px;cursor:pointer;transition:background .2s;border-bottom:1px solid var(--sand);}
.msg-item:hover,.msg-item.on{background:rgba(232,93,58,0.05);}
.msg-av{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:'Fraunces',serif;color:#fff;font-size:1rem;flex-shrink:0;}
.msg-meta{flex:1;min-width:0;}
.msg-meta-name{font-weight:600;font-size:0.88rem;}
.msg-meta-last{font-size:0.78rem;color:var(--ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.msg-meta-time{font-size:0.68rem;color:var(--ink-muted);text-align:right;}
.msg-unread{min-width:18px;height:18px;border-radius:9px;background:var(--flame);color:#fff;font-size:0.68rem;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 6px;margin-left:auto;box-shadow:0 2px 6px rgba(232,93,58,0.3);}
.msg-status{font-size:0.65rem;color:var(--ink-muted);margin-top:3px;display:flex;align-items:center;gap:3px;}
.msg-status.seen{color:var(--ocean);}
.bubble.me{padding-bottom:18px;}
.msg-chat{display:flex;flex-direction:column;height:100%;}
.msg-chat-head{padding:16px 22px;border-bottom:1px solid var(--sand-dark);display:flex;align-items:center;gap:12px;}
.msg-chat-name{font-weight:600;font-size:0.95rem;}
.msg-chat-sub{font-size:0.78rem;color:var(--ink-muted);}
.msg-chat-body{flex:1;overflow-y:auto;padding:20px 22px;display:flex;flex-direction:column;gap:10px;}
.bubble{max-width:75%;padding:10px 14px;border-radius:14px;font-size:0.88rem;line-height:1.5;}
.bubble.them{background:var(--sand);border-bottom-left-radius:4px;align-self:flex-start;}
.bubble.me{background:var(--flame);color:#fff;border-bottom-right-radius:4px;align-self:flex-end;}
.bubble-time{font-size:0.66rem;color:var(--ink-muted);margin-top:2px;}
.bubble.me .bubble-time{color:rgba(255,255,255,0.6);}
.msg-chat-input{padding:14px 22px;border-top:1px solid var(--sand-dark);display:flex;gap:8px;}
.msg-chat-input input{flex:1;padding:10px 14px;border:1.5px solid var(--sand-dark);border-radius:9px;font-size:0.88rem;outline:none;}
.msg-chat-input input:focus{border-color:var(--flame-ink);}

/* ━━ BECOME TUTOR PAGE ━━ */
.bt-hero{background:linear-gradient(145deg,var(--ocean-dark),var(--ocean) 60%,var(--ocean-light));padding:70px clamp(16px,4vw,40px) 80px;text-align:center;color:#fff;position:relative;overflow:hidden;}
.bt-hero::before{content:'';position:absolute;top:-30%;right:-10%;width:500px;height:500px;background:radial-gradient(circle,rgba(255,255,255,0.08) 0%,transparent 70%);border-radius:50%;}
.bt-hero h1{font-size:clamp(2rem,4.5vw,3rem);font-weight:300;margin-bottom:14px;position:relative;}
.bt-hero h1 em{color:var(--sun-light);font-weight:400;}
.bt-hero p{opacity:0.75;font-weight:300;font-size:1.05rem;max-width:500px;margin:0 auto 30px;position:relative;}
.bt-stats{display:flex;justify-content:center;gap:clamp(20px,4vw,50px);margin-top:40px;position:relative;}
.bt-stat-n{font-family:'Fraunces',serif;font-size:1.6rem;color:var(--sun-light);}
.bt-stat-l{font-size:0.76rem;color:rgba(255,255,255,0.5);}

.bt-benefits{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;padding:50px clamp(16px,4vw,40px);max-width:1100px;margin:0 auto;}
.bt-ben{background:#fff;border-radius:var(--r-lg);padding:28px 24px;box-shadow:var(--shadow-xs);text-align:center;}
.bt-ben-ico{font-size:2rem;margin-bottom:12px;}
.bt-ben h2,.bt-ben h3{font-size:1rem;margin-bottom:6px;font-weight:400;}
.bt-ben p{font-size:0.82rem;color:var(--ink-muted);line-height:1.6;}

/* ━━ ONBOARDING STEPS ━━ */
.ob-wrap{max-width:600px;margin:0 auto;padding:40px clamp(16px,4vw,40px) 60px;}
.ob-progress{display:flex;gap:4px;margin-bottom:32px;}
.ob-step{flex:1;height:4px;border-radius:2px;background:var(--sand-dark);transition:background .3s;}
.ob-step.done{background:var(--ocean);}
.ob-step.current{background:var(--flame);}
.ob-card{background:#fff;border-radius:var(--r-lg);padding:32px 28px;box-shadow:var(--shadow-sm);}
.ob-card h2{font-size:1.4rem;margin-bottom:6px;}
.ob-card .ob-desc{font-size:0.88rem;color:var(--ink-muted);margin-bottom:24px;}
.ob-actions{display:flex;gap:10px;margin-top:24px;}
.ob-actions .btn{flex:1;justify-content:center;}
.ob-check{display:flex;align-items:center;gap:10px;padding:10px 0;font-size:0.88rem;}
.ob-check input[type=checkbox]{width:18px;height:18px;accent-color:var(--flame-ink);}

/* ━━ SIGN UP PAGE ━━ */
.signup-split{display:grid;grid-template-columns:1fr 1fr;min-height:calc(100vh - 64px);}
.signup-left{background:linear-gradient(160deg,var(--ink),var(--ink-mid));display:flex;align-items:center;justify-content:center;padding:40px;color:#fff;}
.signup-left-inner{max-width:380px;}
.signup-left h2{font-size:2rem;margin-bottom:14px;line-height:1.2;}
.signup-left p{opacity:0.6;font-size:0.95rem;line-height:1.7;margin-bottom:20px;}
.signup-left .feat{display:flex;gap:10px;margin-bottom:12px;font-size:0.88rem;align-items:flex-start;}
.signup-left .feat-ico{color:var(--sun-light);font-size:1.1rem;flex-shrink:0;margin-top:2px;}
/* min-width:0 is the whole fix (26 Oct 2026). .signup-right is a GRID ITEM, and a grid item's
   default min-width is auto, so it refuses to shrink below its content's min-content width. The
   form inside is width:100%;max-width:380px, which in that situation resolved to 380 rather than
   to the column - so the panel measured 420px wide (380 + one side of its 40px padding) inside a
   320px viewport and the whole document scrolled sideways at both 320 and 390. Measured before:
   scrollWidth 420 vs innerWidth 320. Neither the form's max-width nor the padding was at fault;
   the item simply never agreed to be narrow. box-sizing keeps the padding inside the new bound. */
.signup-right{display:flex;align-items:center;justify-content:center;padding:40px;min-width:0;box-sizing:border-box;}
.signup-split>*{min-width:0;}

/* The LAST 16px of sideways scroll on /signup, and it is not our CSS. #tsStudent hosts the
   Cloudflare Turnstile widget, whose iframe has a fixed intrinsic width of 300px. At a 320px
   viewport the form's content box is 248px (320 - 2x16 panel padding - 2x20 form padding), so the
   widget pushed the document to 336px. Nothing in the subtree is "too wide" relative to its
   parent, which is why an element-by-element sweep found no culprit and only a scrollWidth
   comparison located it.
   Turnstile does offer a 130px compact size, but selecting it is a change to the auth widget's
   configuration and auth is frozen - so the host box contains the overflow instead. The widget
   scrolls within its own 248px box; the page does not. */
#tsStudent,#tsTutor{max-width:100%;overflow-x:auto;}
.signup-form{width:100%;max-width:380px;}
.signup-form h2{font-size:1.5rem;margin-bottom:4px;}
.signup-form .sub{font-size:0.88rem;color:var(--ink-muted);margin-bottom:24px;}
.signup-tabs{display:flex;gap:4px;margin-bottom:22px;background:var(--sand);border-radius:9px;padding:3px;}
/* Log in view only: the form comes first. #snMain already starts below the header, so .page's 64px
   top padding was a second clearance, and the full-height centred column pushed the form ~330px down
   on desktop, with the button under the cookie banner. */
#p-login{padding-top:0;min-height:0;}
#p-login .signup-split{min-height:0;}
#p-login .signup-right{align-items:flex-start;padding-top:32px;}
.signup-tab{flex:1;padding:9px;text-align:center;border-radius:7px;font-size:0.84rem;font-weight:600;cursor:pointer;transition:all .2s;border:none;background:none;color:var(--ink-soft);}
.signup-tab.on{background:#fff;color:var(--flame-ink);box-shadow:var(--shadow-xs);}
.divider{display:flex;align-items:center;gap:12px;margin:18px 0;font-size:0.78rem;color:var(--ink-muted);}
.divider::before,.divider::after{content:'';flex:1;height:1px;background:var(--sand-dark);}
.social-btn{width:100%;padding:11px;border:1.5px solid var(--sand-dark);border-radius:9px;font-size:0.88rem;font-weight:500;cursor:pointer;background:#fff;color:var(--ink);transition:all .2s;margin-bottom:8px;display:flex;align-items:center;justify-content:center;gap:8px;}
.social-btn:hover{border-color:var(--ink-muted);}

/* ━━ STRIPE BOX ━━ */
.stripe-box{border:1.5px solid #635BFF;border-radius:var(--r);padding:18px;background:#FAFAFE;margin-top:8px;}
.stripe-box-head{display:flex;align-items:center;gap:8px;margin-bottom:14px;font-size:0.85rem;font-weight:600;color:#635BFF;}
.stripe-badge{background:#635BFF;color:#fff;padding:2px 8px;border-radius:4px;font-size:0.7rem;font-weight:700;}

/* ━━ FOOTER ━━ */
/* === sn-footer-inset ════════════════════════════════════════════════════════════════════════
   Component 6 of the front-end brief was "make the footer a rounded card inset from the
   viewport, clip the glows". MOST OF IT ALREADY EXISTED: .ft-island below is already a 32px
   rounded card with overflow:hidden, the ftGlowA/ftGlowB blobs are already ::before/::after
   inside it and already clipped, and body is already --sand so the card edge shows on all four
   sides. Measured before touching anything: 16px gap left and right, 16-28px below, radius 32px,
   overflow hidden.

   What was actually wrong is the only thing changed here: the side inset was a flat 16px while
   every section above it uses --sn-gutter, so on a wide screen the footer card hugged the window
   more tightly than the content it sits under. It now uses the same token and lines up.

   Radius stays 32px rather than dropping to --r-xl (28px). The brief named --r-xl, but 32px is
   the value this card already had and 4px smaller is not an improvement - it is a change for the
   sake of matching a token that was written from the outside.

   NOT VERIFIABLE HERE: the brief asks that the bottom margin survive iOS Safari's dynamic
   toolbar. There is no iOS device in this environment; the margin is a normal block margin on a
   static element rather than anything vh-based, so it has no reason to collapse, but it has not
   been seen on hardware. */
footer#globalFooter{background:transparent;color:rgba(255,255,255,0.6);
  padding:8px var(--sn-gutter) clamp(16px,3vw,28px);}
.ft-island{position:relative;overflow:hidden;border-radius:32px;background:linear-gradient(158deg,#22304f 0%,#182643 48%,#141E2B 100%);padding:clamp(40px,5vw,60px) clamp(24px,4vw,54px) clamp(26px,3vw,34px);box-shadow:0 30px 80px rgba(20,30,43,0.28);}
.ft-island::before{content:'';position:absolute;top:-150px;right:-110px;width:430px;height:430px;border-radius:50%;background:radial-gradient(circle,rgba(232,93,58,0.28),transparent 68%);pointer-events:none;animation:ftGlowA 20s ease-in-out infinite alternate;}
.ft-island::after{content:'';position:absolute;bottom:-170px;left:-130px;width:470px;height:470px;border-radius:50%;background:radial-gradient(circle,rgba(26,122,109,0.22),transparent 70%);pointer-events:none;animation:ftGlowB 26s ease-in-out infinite alternate;}
@keyframes ftGlowA{from{transform:translate(0,0);}to{transform:translate(-38px,28px);}}
@keyframes ftGlowB{from{transform:translate(0,0);}to{transform:translate(38px,-22px);}}
.ft-inner{position:relative;z-index:1;max-width:1200px;margin:0 auto;}
.ft-email{display:inline-block;margin-top:16px;color:#fff;font-size:0.95rem;font-weight:600;text-decoration:none;border-bottom:1px solid rgba(255,255,255,0.3);padding-bottom:2px;transition:color .2s,border-color .2s;}
.ft-email:hover{color:var(--flame-light);border-color:var(--flame-light);}
/* newsletter atop the island */
.ft-news{text-align:center;max-width:600px;margin:0 auto clamp(30px,4vw,42px);padding-bottom:clamp(28px,3vw,36px);border-bottom:1px solid rgba(255,255,255,0.10);}
.ft-news h3{font-family:'Fraunces',serif;font-size:1.5rem;color:#fff;margin-bottom:6px;}
.ft-news p.sub{color:rgba(255,255,255,0.5);font-size:0.9rem;margin-bottom:20px;}
.ft-news-form{display:flex;gap:8px;max-width:440px;margin:0 auto;}
.ft-news-form input{flex:1;padding:14px 18px;border:1px solid rgba(255,255,255,0.15);border-radius:12px;background:rgba(255,255,255,0.08);color:#fff;font-size:0.9rem;font-family:var(--font);outline:none;transition:border-color .2s;}
.ft-news-form input:focus{border-color:var(--flame);}
.ft-news-form button{background:var(--flame);color:#fff;border:none;padding:14px 24px;border-radius:12px;font-size:0.9rem;font-weight:600;cursor:pointer;font-family:var(--font);white-space:nowrap;transition:background .2s,transform .2s;}
.ft-news-form button:hover{background:#D04E2E;transform:translateY(-1px);}
.ft-fine{font-size:0.78rem;color:rgba(255,255,255,0.62);margin-top:12px;}
/* main row: brand left, dropdown groups right */
.ft-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:clamp(30px,5vw,64px);align-items:start;margin-bottom:28px;}
.ft-brand-section{}
.ft-brand{font-family:'Fraunces',serif;font-size:1.5rem;color:var(--flame-light);margin-bottom:8px;}
.ft-brand span{color:rgba(255,255,255,0.8);}
.ft-desc{font-size:0.86rem;line-height:1.7;max-width:300px;color:rgba(255,255,255,0.55);}
.ft-socials{display:flex;gap:10px;margin-top:20px;}
.ft-social{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,0.08);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,0.55);text-decoration:none;transition:all .25s;cursor:pointer;border:1px solid rgba(255,255,255,0.08);}
.ft-social:hover{background:var(--flame);color:#fff;border-color:var(--flame-ink);transform:translateY(-2px);}
.ft-groups{display:flex;flex-direction:column;}
.ft-group{border-top:1px solid rgba(255,255,255,0.10);}
.ft-group:first-child{border-top:none;}
.ft-group>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:15px 0;color:#fff;font-size:0.78rem;font-weight:600;text-transform:uppercase;letter-spacing:1.1px;}
.ft-group>summary::-webkit-details-marker{display:none;}
.ft-group>summary::after{content:'+';font-size:1.35rem;line-height:1;color:var(--flame-light);font-weight:300;transition:transform .25s ease;flex-shrink:0;margin-left:12px;}
.ft-group[open]>summary::after{transform:rotate(45deg);}
.ft-group-links{padding:0 0 18px;display:grid;gap:11px;}
.ft-group-links a{font-size:0.86rem;line-height:1.4;color:rgba(255,255,255,0.55);text-decoration:none;cursor:pointer;transition:color .2s,transform .2s;width:fit-content;}
.ft-group-links a:hover{color:var(--flame-light);transform:translateX(2px);}
/* The Trustpilot link is the one footer link that carries an icon. inline-flex rather than a
   leading glyph so the icon sits on the text baseline at any zoom; if the sprite fails to
   inject, the link still reads "Review us on Trustpilot" and nothing is lost. */
.ft-review-link{display:inline-flex!important;align-items:center;gap:6px;}
.ft-review-link .sn-i{width:14px;height:14px;flex:none;}
.ft-bottom{padding-top:22px;border-top:1px solid rgba(255,255,255,0.10);font-size:0.76rem;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;}
.ft-bottom-links{display:flex;gap:16px;align-items:center;flex-wrap:wrap;}
/* The Cookie settings control is a <button>, not an <a href="#">. It performs an action rather than
   navigating, and the hrefless-anchor pattern is what broke this site's crawlability once already
   (see scripts/verify-crawl.mjs). Styling it alongside the anchors keeps it visually a footer link
   without putting a dead target into the internal link graph. */
.ft-bottom-links a,.ft-bottom-links button{color:rgba(255,255,255,0.4);text-decoration:none;font-size:0.76rem;cursor:pointer;transition:color .2s;}
.ft-bottom-links button{background:none;border:none;padding:0;font-family:inherit;line-height:inherit;}
.ft-bottom-links a:hover,.ft-bottom-links button:hover{color:rgba(255,255,255,0.7);}
@media(prefers-reduced-motion:reduce){.ft-island::before,.ft-island::after{animation:none;}}

/* ━━ TUTOR TABS ━━ */
.tutor-tab{display:none;}
.tutor-tab.active{display:block;animation:fadeUp .3s ease;}

/* ── Session agreements ─────────────────────────────────────────────────────────────────────
   The grade pickers are buttons rather than a <select> on purpose: the whole point of this
   screen is that a tutor and a parent look at it together and SEE that 4 -> 7 on foundation is
   off the end of the scale. A dropdown hides that; nine buttons with the unreachable ones
   visibly struck through make it obvious before anyone has to say it out loud. */
.agr-card{background:#fff;border:1px solid var(--sand-dark);border-radius:16px;padding:22px;margin-bottom:16px;}
.agr-lbl{font-size:0.8rem;font-weight:600;color:var(--ink);text-transform:uppercase;letter-spacing:.04em;margin:0 0 8px;}
.agr-hint{font-size:0.78rem;color:var(--ink-muted);margin:5px 0 0;line-height:1.5;}
.agr-grades{display:flex;gap:6px;flex-wrap:wrap;}
.agr-g{width:44px;height:44px;border-radius:11px;border:1.5px solid var(--sand-dark);background:#fff;
  font-weight:700;font-size:1rem;font-family:var(--font);color:var(--ink);cursor:pointer;
  transition:transform .12s ease,background .15s ease,border-color .15s ease;}
.agr-g:hover{transform:translateY(-2px);}
.agr-g.on{background:var(--flame-ink,#C0432A);border-color:var(--flame-ink,#C0432A);color:#fff;}
.agr-g.blocked{opacity:.32;text-decoration:line-through;cursor:not-allowed;transform:none;}
.agr-seg{display:inline-flex;border:1.5px solid var(--sand-dark);border-radius:11px;overflow:hidden;}
.agr-seg button{border:none;background:#fff;padding:11px 20px;font-weight:600;font-size:0.9rem;
  font-family:var(--font);color:var(--ink);cursor:pointer;}
.agr-seg button.on{background:var(--ink);color:#fff;}
.agr-verdict{display:flex;gap:12px;align-items:flex-start;border-radius:13px;padding:14px 16px;margin:18px 0 4px;
  font-size:0.9rem;line-height:1.55;border:1.5px solid;}
.agr-verdict .ic{font-size:1.15rem;line-height:1;flex:none;margin-top:1px;}
.agr-verdict .ic .sn-i{color:currentColor;}
.agr-ok{background:rgba(26,122,109,.07);border-color:rgba(26,122,109,.35);color:#12594f;}
.agr-warn{background:rgba(192,67,42,.06);border-color:rgba(192,67,42,.4);color:#8f3220;}
.agr-jump{display:flex;align-items:center;gap:14px;margin:6px 0 2px;}
.agr-jump-bar{flex:1;height:8px;border-radius:99px;background:var(--sand-dark);overflow:hidden;}
.agr-jump-fill{height:100%;border-radius:99px;transition:width .25s ease,background .25s ease;}
.agr-chip{display:inline-block;padding:3px 11px;border-radius:20px;font-size:0.72rem;font-weight:700;}
.agr-chip-draft{background:rgba(20,30,43,.07);color:var(--ink-muted);}
.agr-chip-part{background:rgba(245,166,35,.16);color:#8a5a00;}
.agr-chip-live{background:rgba(26,122,109,.13);color:#12594f;}
.agr-sum{display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,1fr));gap:12px;margin:14px 0;}
.agr-sum div{background:var(--sand);border-radius:11px;padding:11px 13px;}
.agr-sum .k{font-size:0.7rem;text-transform:uppercase;letter-spacing:.04em;color:var(--ink-muted);font-weight:600;}
.agr-sum .v{font-family:'Fraunces',Georgia,serif;font-size:1.25rem;color:var(--ink);margin-top:3px;}
@media(max-width:600px){ .agr-g{width:40px;height:40px;} .agr-card{padding:17px;} }
.student-tab{display:none;}
.student-tab.active{display:block;animation:fadeUp .3s ease;}
.ai-spin{display:inline-block;animation:spin 1s linear infinite;}
@keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}

/* ━━ TUTOR PROFILE ━━ REDESIGNED 16 NOV 2026 (owner: "profile pic looks a bit zoomed and messy").
   Built to the owner-approved reference set (profile-redesign/reference/ref-1..4): an open page on
   sand with ONE box - the booking panel - a portrait hero, and numbered sections divided by
   hairlines. ONE block for the whole view. The profile's rules used to live in three places (here,
   a phone override in the RESPONSIVE block, and a "wider layout" block ~600 lines down that won on
   document order); the cascade fights between them clipped the price on phones in October. Nothing
   else styles .tp-* except the bio clamp block, left where scripts/check-bio-clamp.mjs reads it.

   THE PHOTO. A fixed 4:5 frame (5:4 on a phone so the name stays above the fold), cover-cropped with
   the face kept in the upper third. The zoom was never this CSS: see snImg() for the transform bug
   that served a 300px-wide centre strip of every photo. tpPhotoFit() narrows the frame for the few
   sources smaller than it, so a 120px upload is never blown up to 440px.

   The new buttons use .tp-cta, not .btn: site-tokens.css repaints .btn and .btn-ghost solid orange
   at a specificity the page cannot see from here, which is how "Message" became a second filled
   orange button on the built site. Focus rings come from the token layer's global :focus-visible. */
#p-tutor-profile{--tp-hair:#E9E1D6;--tp-fill:#F1E7DA;--tp-shadow:0 12px 32px rgba(20,30,43,0.08);}
/* The trail is a div with role=navigation, not a <nav>: this file styles the bare nav element as the
   fixed site header (line ~268), so a <nav> here is pulled out of the page and parked under it. */
.tp-hero{padding:24px clamp(16px,8.3vw,120px) 0;max-width:1440px;margin:0 auto;box-sizing:border-box;color:var(--ink);}
.tp-trail{font-size:0.9rem;color:var(--ink-soft);margin:0 0 52px;}
.tp-hero .tp-trail a{color:var(--ink-soft);text-decoration:none;}
.tp-hero .tp-trail a:hover{color:var(--ink);text-decoration:underline;}
.tp-trail .tp-trail-sep{margin:0 8px;color:var(--ink-muted);}
.tp-top{display:grid;grid-template-columns:420px minmax(0,1fr);gap:56px;align-items:start;margin-bottom:72px;}
.tp-photo-col{min-width:0;}
.tp-photo{position:relative;width:100%;aspect-ratio:4/5;border-radius:20px;overflow:hidden;background:var(--tp-fill);box-shadow:var(--tp-shadow);margin:0 auto;}
.tp-av{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:50% 28%;}
/* No photo: an intentional monogram, not an error state. */
.tp-av-ini{display:flex;align-items:center;justify-content:center;background:var(--tp-fill);color:var(--ink);font-family:'Fraunces',serif;font-size:7.5rem;font-weight:700;letter-spacing:-2px;}
.tp-caption{font-size:0.94rem;color:var(--ink-soft);margin:14px 4px 0;text-align:center;}
.tp-info{min-width:0;padding-top:16px;}
.tp-eyebrow{font-family:'Fraunces',serif;font-weight:600;font-size:1.625rem;line-height:1.2;color:var(--flame);margin:0 0 12px;}
.tp-name{font-family:'Fraunces',serif;font-weight:700;font-size:4.5rem;line-height:1.05;letter-spacing:-1.5px;color:var(--ink);margin:0;overflow-wrap:anywhere;}
.tp-headline{font-size:1.5rem;line-height:1.4;color:var(--ink-soft);margin:18px 0 0;max-width:34ch;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
/* Every item carries its rule on the left; the list is pulled left by padding+rule inside a clipping
   wrapper, so whichever item starts a line - the first, or one that wrapped on a phone - shows none. */
.tp-facts-wrap{overflow:hidden;margin-top:40px;}
.tp-facts{display:flex;flex-wrap:wrap;align-items:center;margin:0 0 0 -29px;padding:0;list-style:none;font-size:1.125rem;color:var(--ink);}
.tp-facts li{display:flex;align-items:center;min-height:32px;padding:0 28px;border-left:1px solid var(--tp-hair);max-width:22ch;}
.tp-facts li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tp-trust{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;margin-top:32px;font-size:1.05rem;color:var(--ink);}
.tp-dbs{display:inline-flex;align-items:center;gap:9px;cursor:help;}
.tp-dbs .tp-tick{width:22px;height:22px;flex:none;color:var(--ocean);}
.tp-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 16px;border:1px solid var(--tp-hair);background:var(--sand);border-radius:999px;font-size:0.95rem;color:var(--ink);line-height:1.3;}
.tp-chip .sn-i{width:14px;height:14px;flex:none;}
.tp-chip .sn-founding-dot{width:6px;height:6px;border-radius:50%;background:var(--flame);flex:none;}
.tp-chip--rated{display:inline-block;}
.tp-chip--rated .sn-i{color:var(--star);vertical-align:-2px;margin-right:4px;}
.tp-acts{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:40px;}
.tp-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:56px;padding:0 24px;border-radius:14px;font-family:var(--font);font-size:1.125rem;font-weight:600;cursor:pointer;border:1.5px solid transparent;transition:background .2s,border-color .2s,color .2s;box-sizing:border-box;line-height:1.2;text-align:center;}
.tp-cta--primary{background:#C0432A;color:#fff;border-color:#C0432A;box-shadow:0 4px 14px rgba(192,67,42,0.18);}
.tp-cta--primary:hover{background:#A5381F;border-color:#A5381F;}
.tp-cta--secondary{background:transparent;color:var(--ink);border-color:var(--ink);}
.tp-cta--secondary:hover{background:rgba(20,30,43,0.04);}
.tp-cta:active{transform:scale(0.98);}
.tp-link{display:inline-flex;align-items:center;min-height:44px;padding:0;background:none;border:0;font:inherit;font-size:1.05rem;color:var(--ink);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px;cursor:pointer;}
.tp-link:hover{color:#A5381F;}
.tp-hprice{display:flex;flex-direction:column;padding-left:24px;margin-left:4px;border-left:1px solid var(--tp-hair);line-height:1.15;}
.tp-from{font-size:0.94rem;color:var(--ink-soft);}
.tp-from-price{font-family:'Fraunces',serif;font-weight:700;font-size:2.5rem;color:var(--ink);letter-spacing:-0.5px;}
.tp-per{font-size:0.94rem;color:var(--ink-soft);}
.tp-note{max-width:560px;margin-top:32px;background:#fff;border:1px solid var(--tp-hair);border-radius:14px;padding:16px 20px;}
.tp-note b{display:block;font-size:1rem;color:var(--ink);}
.tp-note span{display:block;font-size:0.9rem;color:var(--ink-soft);margin-top:4px;line-height:1.55;}
.tp-mlink{display:none;}

.tp-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,4fr);gap:72px;align-items:start;}
.tp-main{min-width:0;counter-reset:tpsec;}
.tp-side{position:sticky;top:100px;align-self:start;min-width:0;}
/* Numbered in render order by a counter, so a section with no data (or SEN detail that arrives
   later) is never a gap in the sequence: [hidden] sections are display:none and do not count. */
.tp-sec{counter-increment:tpsec;border-top:1px solid var(--tp-hair);padding:48px 0 56px;}
.tp-sec>h2{font-family:'Fraunces',serif;font-weight:700;font-size:2rem;line-height:1.2;color:var(--ink);margin:0 0 20px;letter-spacing:-0.5px;display:flex;align-items:baseline;flex-wrap:wrap;gap:0 16px;}
.tp-sec>h2::before{content:counter(tpsec,decimal-leading-zero);content:counter(tpsec,decimal-leading-zero) / "";color:var(--flame);font-weight:600;font-size:0.85em;}
/* The planner capture (19 Nov 2026) is an aside, not a numbered profile section. */
.tp-lite{counter-increment:none;}
.tp-lite>h2::before{content:none;}
.tp-lite .sn-lite-note,.tp-lite .sn-lite-msg{font-size:0.86rem;}
/* site-tokens.css stacks .sn-lite-row in a column under 420px, where the input's flex-basis of
   200px becomes its HEIGHT. Basis auto keeps it one line tall in both directions. */
.tp-lite .sn-lite input[type=email]{flex:1 1 auto;}
.tp-sec p,.tp-prose{font-size:1.0625rem;line-height:1.7;color:var(--ink);max-width:68ch;}
.tp-sec p+p{margin-top:14px;}
.tp-sec h3{font-family:var(--font);font-size:1.0625rem;font-weight:700;color:var(--ink);margin:28px 0 8px;}
.tp-sec .tp-tags{display:flex;flex-wrap:wrap;gap:8px;}
.tp-sec .tag{padding:6px 14px;border:1px solid var(--tp-hair);background:var(--sand);border-radius:999px;font-size:0.9rem;color:var(--ink);}
/* loadTutorScope() paints card-shaped blocks; inside a section they are sub-sections, not cards. */
.tp-sec .tp-section{background:none;box-shadow:none;border:0;padding:0;margin:0;}
.tp-sec .tp-section h3{margin-top:28px;}
.tp-src{font-size:0.88rem;color:var(--ink-soft);line-height:1.55;max-width:68ch;margin:12px 0 0;}
.tp-sec .tp-src{font-size:0.88rem;color:var(--ink-soft);}
/* 0196: the self-declared IGCSE / learner-support block. Its own small label, no tick, no badge colour. */
.tp-sd-label{font-size:0.78rem;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:var(--ink-soft);margin:0 0 4px;}
.tp-sd-list{margin:0;padding-left:1.2em;line-height:1.7;}
.sn-sd-check{display:flex;align-items:flex-start;gap:10px;font-size:0.88rem;color:var(--ink);margin:6px 0;cursor:pointer;min-height:24px;}
.sn-sd-check input{width:18px;height:18px;margin-top:1px;flex:0 0 auto;accent-color:var(--flame-ink);}
.tp-detail-row{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid var(--tp-hair);font-size:0.95rem;align-items:flex-start;flex-wrap:wrap;}
.tp-detail-row:last-child{border-bottom:0;}
.tp-detail-row .label{color:var(--ink-soft);flex-shrink:0;min-width:110px;}
.tp-detail-row span:last-child{text-align:right;line-height:1.55;flex:1;min-width:0;color:var(--ink);font-weight:600;}
.tp-quals .tp-detail-row{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;padding:14px 0;font-size:1.0625rem;}
.tp-quals .tp-detail-row .label{color:var(--ink);font-weight:600;}
.tp-quals .tp-detail-row span:last-child{text-align:left;font-weight:400;}
.tp-quals .tp-detail-row strong{font-weight:600;}
.tp-week{border-collapse:separate;border-spacing:0 10px;margin-top:4px;}
.tp-week th{font-weight:600;font-size:0.98rem;color:var(--ink);text-align:center;padding:0 6px;}
.tp-week thead th{padding-bottom:2px;}
.tp-week tbody th{text-align:left;padding:0 28px 0 0;font-weight:500;}
.tp-week td{text-align:center;padding:0 6px;}
.tp-cell{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;border:1px solid var(--tp-hair);box-sizing:border-box;vertical-align:middle;}
.tp-cell--on{background:var(--tp-fill);border-color:var(--tp-fill);color:var(--ink);}
.tp-cell svg{width:20px;height:20px;}
.tp-review{padding:20px 0;border-bottom:1px solid var(--tp-hair);max-width:68ch;}
.tp-review:last-of-type{border-bottom:0;}
.tp-review-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;}
.tp-review-name{font-weight:600;font-size:1rem;color:var(--ink);}
.tp-review-date{font-size:0.85rem;color:var(--ink-soft);white-space:nowrap;}
.tp-review-stars{color:var(--star);font-size:0.95rem;letter-spacing:1px;margin-bottom:6px;}
.tp-review-text{font-size:1rem;color:var(--ink);line-height:1.65;}
.tp-count{font-family:var(--font);font-size:0.85rem;font-weight:500;letter-spacing:0;color:var(--ink-soft);background:#fff;border:1px solid var(--tp-hair);padding:4px 12px;border-radius:999px;}
.tp-more{display:inline-flex;align-items:center;min-height:48px;margin-top:16px;padding:0 24px;background:transparent;border:1.5px solid var(--ink);border-radius:14px;font:inherit;font-size:1rem;font-weight:600;color:var(--ink);cursor:pointer;}
.tp-more:hover{background:rgba(20,30,43,0.04);}
/* The one box on the page. */
.tp-book{background:#fff;border-radius:20px;box-shadow:var(--tp-shadow);padding:32px;margin-top:2px;}
.tp-price-big{font-family:'Fraunces',serif;font-weight:700;font-size:3rem;line-height:1.05;letter-spacing:-1px;color:var(--ink);margin:4px 0 8px;}
.tp-price-big span{font-family:var(--font);font-size:1.125rem;font-weight:400;letter-spacing:0;color:var(--ink-soft);}
.tp-split{font-size:0.875rem;color:var(--ink-soft);line-height:1.55;}
.tp-book .tp-cta{width:100%;margin-top:10px;}
.tp-book .tp-cta-first{margin-top:24px;}
.tp-book .tp-link{display:flex;justify-content:center;margin:10px auto 0;}
.tp-book .tp-note{margin:18px 0 6px;}
.tp-book-facts{margin-top:18px;border-top:1px solid var(--tp-hair);}
.tp-back{padding:8px 0 72px;}
.tp-mbar{display:none;}

@media(max-width:1180px){
  .tp-top{grid-template-columns:360px minmax(0,1fr);gap:48px;}
  .tp-name{font-size:3.6rem;}
  .tp-grid{gap:48px;}
}
@media(max-width:960px){
  .tp-top{grid-template-columns:300px minmax(0,1fr);gap:36px;}
  .tp-name{font-size:3rem;}
  .tp-headline{font-size:1.25rem;}
  .tp-grid{grid-template-columns:minmax(0,1fr) 300px;gap:36px;}
}
@media(max-width:768px){
  /* .page carries 64px of top padding for the fixed header; on a phone the header pill ends ~60px
     down, so the photo can start right under it. */
  #p-tutor-profile.page{padding-top:0;}
  .tp-hero{padding:8px 20px 0;}
  .tp-trail{display:none;}
  .tp-top{grid-template-columns:minmax(0,1fr);gap:22px;margin-bottom:8px;}
  .tp-photo{aspect-ratio:5/4;border-radius:18px;}
  .tp-av-ini{font-size:5rem;}
  .tp-caption{text-align:left;margin-top:10px;font-size:0.88rem;}
  .tp-info{padding-top:0;}
  .tp-eyebrow{font-size:1.125rem;color:var(--flame-ink);margin-bottom:6px;}
  .tp-name{font-size:2.25rem;letter-spacing:-0.8px;}
  .tp-headline{font-size:1.0625rem;margin-top:10px;max-width:none;}
  .tp-facts-wrap{margin-top:20px;}
  .tp-facts{margin-left:-17px;font-size:1rem;row-gap:8px;}
  .tp-facts li{padding:0 16px;max-width:100%;min-height:28px;}
  .tp-photo{margin:0;}
  .tp-trust{margin-top:18px;gap:10px 16px;font-size:0.98rem;}
  .tp-chip{font-size:0.9rem;}
  .tp-acts{display:none;}
  .tp-mlink{display:block;margin-top:6px;}
  .tp-note{margin-top:18px;}
  .tp-grid{grid-template-columns:minmax(0,1fr);gap:0;}
  .tp-side{position:static;}
  .tp-sec{padding:28px 0 32px;}
  .tp-sec>h2{font-size:1.5rem;margin-bottom:12px;gap:0 12px;}
  .tp-sec p,.tp-prose{font-size:1rem;}
  .tp-quals .tp-detail-row{grid-template-columns:minmax(0,1fr);gap:2px;font-size:1rem;}
  .tp-week{width:100%;border-spacing:0 8px;}
  .tp-week tbody th{padding-right:8px;font-size:0.9rem;}
  .tp-week thead th{font-size:0.85rem;padding:0 2px;}
  .tp-week td{padding:0 2px;}
  .tp-cell{width:100%;max-width:44px;height:36px;border-radius:8px;}
  .tp-cell svg{width:16px;height:16px;}
  /* The panel keeps the price, the fee split and the facts on a phone; its buttons are the sticky
     bar's job there, so they are hidden rather than offered twice. */
  .tp-book{padding:22px;margin:8px 0 28px;}
  .tp-book .tp-cta,.tp-book .tp-link{display:none;}
  .tp-price-big{font-size:2.3rem;overflow-wrap:break-word;}
  .tp-price-big span{white-space:nowrap;}
  .tp-detail-row{gap:2px 10px;}
  .tp-detail-row .label{flex:0 0 auto;}
  .tp-back{padding-bottom:32px;}
  .tp-mbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:150;align-items:center;justify-content:space-between;gap:12px;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:#fff;box-shadow:0 -8px 28px rgba(20,30,43,0.10);}
  .tp-mbar-left{min-width:0;line-height:1.2;}
  .tp-mbar-left .tp-link{min-height:32px;font-size:0.9rem;}
  .tp-mbar-price{font-size:0.95rem;color:var(--ink);white-space:nowrap;}
  .tp-mbar-price strong{font-family:'Fraunces',serif;font-weight:700;font-size:1.25rem;}
  .tp-mbar-state{font-size:0.9rem;color:var(--ink);font-weight:600;}
  .tp-mbar .tp-cta{min-height:48px;padding:0 22px;font-size:1rem;flex:0 0 auto;border-radius:12px;}
  /* Room for the bar, and no second floating CTA on top of it. */
  body:has(#p-tutor-profile.active .tp-mbar){padding-bottom:calc(80px + env(safe-area-inset-bottom,0px));}
  body:has(#p-tutor-profile.active) #stickyCTA{display:none!important;}
}
@media(max-width:380px){
  .tp-detail-row{flex-direction:column;}
  .tp-name{font-size:2rem;}
  .tp-mbar .tp-cta{padding:0 16px;}
}
@media(prefers-reduced-motion:reduce){ .tp-cta,.tp-cta:active{transition:none;transform:none;} }

/* ━━ RESPONSIVE ━━ */
@media(max-width:768px){
  .nav-mid{display:none!important;}
  .nav-right .btn-ghost,.nav-right .btn-primary{display:none!important;}
  #menuToggle{display:flex!important;}
  .hero{padding:88px 20px 70px;}
  .hero h1{line-height:1.15;}
  .hero-sub{font-size:0.95rem;margin-bottom:28px;}
  .hero-stats{gap:20px;flex-wrap:wrap;justify-content:center;}
  .hero-stat-n{font-size:1.4rem;}
  .search-bar{flex-direction:column;gap:6px;padding:8px;}
  .search-bar select{flex:1;}
  .search-bar button{width:100%;padding:14px;font-size:0.95rem;}
  .section{padding:40px 16px;}
  .section-head{flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:24px;}
  .section-head h2{font-size:1.4rem;}
  .how-grid{grid-template-columns:1fr;gap:16px;}
  .how-card{padding:24px 20px;}
  .t-grid{grid-template-columns:1fr;gap:16px;}
  .th-card{flex-direction:column;}
  .th-card .th-left{width:100%;height:80px;}
  .th-card .th-avatar,.th-card .th-avatar-ini{width:56px;height:56px;}
  .t-card .t-card-body{padding:16px;}
  .t-foot{flex-direction:column;gap:10px;align-items:stretch;}
  .t-foot .btn{width:100%;text-align:center;padding:12px;}
  .dash{grid-template-columns:1fr!important;}
  .dash-side{position:fixed;bottom:0;left:0;right:0;top:auto;height:auto;padding:8px 12px;display:flex!important;flex-direction:row;z-index:99;border-top:1px solid rgba(255,255,255,0.1);overflow-x:auto;gap:0;}
  .dash-u{display:none!important;}
  .dash-nav{flex-direction:row!important;gap:0!important;width:100%;}
  .dash-ni{font-size:0.7rem!important;padding:8px 10px!important;white-space:nowrap;flex-shrink:0;text-align:center;border-radius:8px!important;}
  .dash-main{padding:16px!important;padding-bottom:80px!important;}
  .msg-layout{grid-template-columns:1fr!important;}
  .ft-top{grid-template-columns:1fr;gap:28px;}
  .ft-brand-section{flex:0 0 auto;}
  .ft-bottom{flex-direction:column;gap:10px;text-align:center;}
  .cta{padding:36px 20px;margin:0 16px 40px;border-radius:var(--r-lg);}
  .cta h2{font-size:1.35rem;margin-bottom:8px;}
  .cta p{font-size:0.88rem;margin-bottom:20px;}
  .cta-btn{padding:14px 28px;font-size:0.9rem;width:100%;text-align:center;}
  [style*="grid-template-columns:repeat(3,1fr)"]{grid-template-columns:repeat(2,1fr)!important;}
  .signup-split{grid-template-columns:1fr;}
  .signup-left{display:none;}
  .signup-form{padding:28px 20px;}
  .signup-right{padding:24px 16px;}
  /* Log in only: the form sits at the top and is tightened so it clears the cookie banner on a phone. */
  #p-login .signup-right{padding:12px 16px 24px;}
  #p-login .signup-form{padding:8px 4px;}
  #p-login .signup-form .sub{margin-bottom:12px;}
  #p-login .signup-tabs{margin-bottom:12px;}
  #p-login .fg{margin-bottom:10px;}
  .btn-full{padding:14px!important;font-size:0.95rem!important;}
  .social-btn{padding:12px!important;font-size:0.88rem!important;}
  .bt-benefits{grid-template-columns:1fr;}
  .slots{grid-template-columns:repeat(2,1fr);}
  .ob-actions{flex-direction:column;gap:10px;}
  .ob-actions .btn{width:100%;text-align:center;padding:14px!important;}
  .overlay .book-card{width:95%;max-width:420px;margin:0 auto;max-height:90vh;overflow-y:auto;}
  .stats{grid-template-columns:1fr 1fr;gap:10px;}
  .stat{padding:16px 14px;}
  .upcoming{margin:0 0 16px;}
  #mobileMenu{padding:16px 20px;}
  #mobileMenu .btn{width:100%;text-align:center;margin-bottom:8px;padding:12px!important;}
}
@media(max-width:420px){
  .hero h1{margin-bottom:16px;}
  .hero-stats{gap:14px;}
  .hero-stat-n{font-size:1.2rem;}
  .t-grid{grid-template-columns:1fr;}
  .slots{grid-template-columns:1fr;}
  .stats{grid-template-columns:1fr;}
  .dash-ni{font-size:0.65rem!important;padding:6px 8px!important;}
}

/* ═══════════════ DESKTOP LAYOUT + MOTION UPGRADE ═══════════════
   Additive & min-width so the mobile base layout is untouched. */

/* Sticky-nav offset for scrolled/anchored sections (fixed nav = 64px) */
html{scroll-padding-top:76px;}
.section,.tpb-band,[id^="p-"],#trustpilotSection{scroll-margin-top:76px;}

/* Wider desktop container + stronger section rhythm on desktop */
.section{max-width:1280px;}
@media(min-width:1024px){
  .section{padding-top:60px;padding-bottom:60px;}   /* tighter rhythm — less blank space */
  .section-head{margin-bottom:32px;}
}

/* ── Hero: two columns at >=1024; identical stack below (display:contents wrappers) ── */
.hg-a,.hg-form,.hg-c{display:contents;}
    /* hg-c is display:contents, so each child becomes a grid item in its own right. With two
       children they currently fall into column 1 by luck of auto-placement; a third would land
       in column 2 under the matcher. Pin them to the left column so the layout cannot drift
       as content is added. */
    .hg-c > *{grid-column:1;}
@media(min-width:1024px){
  .hero{min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding-top:96px;padding-bottom:64px;}
  .hero-inner{max-width:var(--sn-container,1320px);width:100%;display:grid;grid-template-columns:minmax(0,43fr) minmax(0,57fr);column-gap:clamp(36px,4vw,56px);align-items:center;text-align:left;}
  .hg-form #getMatched{padding:28px 30px!important;max-width:none!important;border-radius:20px!important;}
  .hg-form #getMatched .lead-f{padding:12px 14px;font-size:0.92rem;}
  .hg-form #getMatched > div:first-of-type{font-size:1.2rem!important;margin-bottom:16px!important;}
  .hg-a,.hg-c{display:block;grid-column:1;}
  .hg-a{grid-row:1;}
  .hg-c{grid-row:2;margin-top:24px;}
  .hg-form{display:block;grid-column:2;grid-row:1 / span 2;align-self:center;justify-self:stretch;}
  .hero h1{font-size:clamp(1.9rem,3vw,2.5rem);line-height:1.12;}  /* fits "Find a tutor you can trust" on one line */
  .hero-inner h1 span:first-child{white-space:nowrap;}            /* keep the phrase together */
  .hero-inner .hero-sub{margin-left:0;margin-right:0;max-width:32rem;}
  .hg-c > div{justify-content:flex-start !important;text-align:left !important;}
}

/* ── Featured tutors: responsive card grid (Preply-style card design defined above) ── */
.th-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch;}
@media(max-width:1279px){.th-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:767px){.th-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}}
/* Homepage featured three on phones (16 Nov 2026): one row that scrolls sideways, each card ~80% of
   the screen with the next one peeking in, instead of two 170px-wide columns that wrapped every fact
   onto its own line and pushed "View & book" out of the card. All three cards stay in the DOM and on
   screen, in the same order; only the homepage strip does this (#tutorGrid), /browse is untouched. */
@media(max-width:600px){
  #tutorGrid.th-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:80%;gap:12px;
    overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
    margin-left:calc(clamp(16px,4vw,40px) * -1);margin-right:calc(clamp(16px,4vw,40px) * -1);
    padding:4px clamp(16px,4vw,40px) 14px;scroll-padding-inline:clamp(16px,4vw,40px);}
  #tutorGrid > .th-card{scroll-snap-align:start;}
  #tutorGrid > .th-card:hover{transform:none;}
}

/* ── "How it works" as a contained navy band for visual rhythm ── */
.how-band{background:linear-gradient(150deg,#141E2B 0%,#1F3044 55%,#1a1330 100%);border-radius:28px;padding:44px clamp(20px,4vw,52px);position:relative;overflow:hidden;}
.how-band::before{content:'';position:absolute;top:-120px;right:-90px;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(232,93,58,0.18),transparent 70%);pointer-events:none;}
.how-band::after{content:'';position:absolute;bottom:-140px;left:-100px;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,rgba(26,122,109,0.16),transparent 70%);pointer-events:none;}
.how-band .section-head{position:relative;z-index:1;justify-content:center;text-align:center;margin-bottom:28px;}
.how-band .section-head h2{color:#fff;}
.how-band .how-grid{position:relative;z-index:1;}
@media(max-width:767px){.how-band{border-radius:20px;padding:32px 18px;}}

/* ── Eyebrow labels + signature-italic headings ── */
.eyebrow{display:inline-flex;align-items:center;gap:7px;font-family:var(--font);font-size:0.7rem;font-weight:700;letter-spacing:0.16em;text-transform:uppercase;color:var(--ocean);margin-bottom:11px;}
.eyebrow::before{content:'\21B3';font-size:0.92rem;line-height:1;opacity:0.9;}
.how-band .eyebrow,.tpb-head .eyebrow{color:var(--ocean-light);}

/* ── Stats band (bold figures, dividers) ── */
.stats-band{margin-bottom:clamp(10px,2vw,24px);}
/* Was align-items:end. The right column (paragraph + CTA) is taller than the left (eyebrow + h2),
   so bottom-aligning pushed the HEADING down and left the paragraph floating above it. Now both
   columns start at the top, and the paragraph is offset by exactly the eyebrow's height so its
   first line sits level with the h2, not with the "Why Sessioned" kicker above it. */
.stats-top{display:grid;grid-template-columns:1.05fr 0.95fr;gap:clamp(24px,4vw,64px);align-items:start;margin-bottom:clamp(30px,4vw,48px);}
.stats-intro{padding-top:calc(0.7rem * 1.6 + 11px + 4px);}
.stats-top h2{font-size:clamp(1.9rem,3.4vw,2.75rem);line-height:1.08;margin-top:4px;}
.stats-intro p{color:var(--ink-soft);font-size:1rem;line-height:1.7;margin-bottom:18px;}
.stats-cta{display:inline-flex;align-items:center;gap:8px;background:var(--flame);color:#fff;border-radius:100px;padding:12px 24px;font-weight:700;font-size:0.92rem;cursor:pointer;transition:transform .2s,box-shadow .2s;box-shadow:0 8px 22px rgba(232,93,58,0.28);}
.stats-cta:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(232,93,58,0.36);}
.stats-figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));}
/* A stat baked to empty collapses instead of showing a blank cell. bake-platform-stats writes ''
   for a count of zero (the DBS figure is the one that can reach it), so hiding is driven by the
   data and no hand-written branch can disagree with it. */
#socialProofBar .stats-fig:has(.num:empty){display:none;}
    /* auto-fit, not repeat(5,1fr). The band was hardcoded to five columns; when the "Avg Rating"
       and "Reviews" cells were removed (they could only ever render "—") the remaining three
       bunched into the left 60% with two empty columns. auto-fit means the band stays balanced at
       whatever count it holds, including when a cell is reinstated. */
    .stats-fig:first-child{border-left:0;}
.stats-fig{padding:6px clamp(14px,2.2vw,30px);border-left:1px solid var(--sand-dark);}
.stats-fig:first-child{border-left:none;padding-left:0;}
.stats-fig .num{display:block;font-family:'Fraunces',serif;font-weight:600;font-size:clamp(2.1rem,4.4vw,3.4rem);line-height:1;letter-spacing:-0.01em;}
.stats-fig .lbl{font-size:0.82rem;color:var(--ink-soft);margin-top:9px;}
@media(max-width:860px){
  .stats-top{grid-template-columns:1fr;align-items:start;gap:16px;margin-bottom:26px;}
  /* Single column here, so the desktop offset that lines the paragraph up with the h2 would just
     be a stray gap under the heading. */
  .stats-intro{padding-top:0;}
  .stats-figures{grid-template-columns:repeat(3,1fr);gap:24px 0;}
  .stats-fig{border-left:1px solid var(--sand-dark);}
  .stats-fig:nth-child(3n+1){border-left:none;padding-left:0;}
  .stats-fig .num{font-size:clamp(1.7rem,7vw,2.2rem);}
}
@media(max-width:430px){
  .stats-figures{grid-template-columns:repeat(2,1fr);}
  .stats-fig:nth-child(n){border-left:1px solid var(--sand-dark);}
  .stats-fig:nth-child(2n+1){border-left:none;padding-left:0;}
}

/* Homepage height pass, phones only (16 Nov 2026). The featured-tutor category chips stay one row
   that scrolls sideways instead of wrapping to three rows; the three platform figures sit three
   across instead of two-and-one. Same elements, same order, nothing hidden. */
@media(max-width:600px){
  #p-home #filterBar{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
    margin-left:calc(clamp(16px,4vw,40px) * -1);margin-right:calc(clamp(16px,4vw,40px) * -1);
    padding:2px clamp(16px,4vw,40px) 6px;scrollbar-width:none;}
  #p-home #filterBar::-webkit-scrollbar{display:none;}
  #p-home #filterBar > *{flex:none;}
}
@media(max-width:430px){
  .sn-home-proof .stats-figures{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;}
  .sn-home-proof .stats-fig{padding:4px 10px;}
  .sn-home-proof .stats-fig:nth-child(n){border-left:1px solid var(--sand-dark);}
  .sn-home-proof .stats-fig:first-child{border-left:none;padding-left:0;}
  .sn-home-proof .stats-fig .num{font-size:1.6rem;}
  .sn-home-proof .stats-fig .lbl{font-size:0.76rem;margin-top:6px;}
}
/* The figures and the external-review line under the homepage's featured tutors (moved there
   16 Nov 2026). Spacing only; .stats-figures and .sn-vproof keep their own rules. */
.sn-home-proof{margin-top:clamp(36px,5vw,56px);}
.sn-home-proof .sn-vproof{margin-top:clamp(20px,3vw,28px);}
/* ── How it works (numbered two-column) ── */
.hiw{display:grid;grid-template-columns:minmax(0,0.82fr) minmax(0,1.18fr);gap:clamp(36px,5vw,84px);align-items:start;}
.hiw-left{position:sticky;top:100px;}
.hiw-left h2{font-size:clamp(2rem,3.6vw,3rem);line-height:1.06;margin:6px 0 16px;}
.hiw-left p{color:var(--ink-soft);font-size:1rem;line-height:1.7;max-width:34ch;margin-bottom:26px;}
.hiw-cta{display:inline-flex;align-items:center;gap:8px;background:var(--flame);color:#fff;border-radius:100px;padding:13px 26px;font-weight:700;font-size:0.95rem;cursor:pointer;transition:transform .2s,box-shadow .2s;box-shadow:0 8px 22px rgba(232,93,58,0.28);}
.hiw-cta:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(232,93,58,0.36);}
/* Steps are white cards on cream (22 Sep 2026). They were hairline-separated rows on a navy
   band; the band moved to the proof section above so the two stopped competing, and rows on
   cream with no rule between them read as one undifferentiated column. The card is the
   separator. */
.hiw-steps{display:grid;gap:clamp(12px,1.4vw,16px);}
.hiw-step{display:grid;grid-template-columns:auto 1fr;gap:clamp(16px,2vw,24px);padding:clamp(20px,2.4vw,28px);background:#fff;border-radius:16px;box-shadow:0 1px 4px rgba(20,30,43,.05);align-items:start;}
/* The icon square. Teal outline on a teal tint — the brand's icon rule — sized in rem so it
   tracks the text when the visitor zooms. flex:none because the grid column is auto-width and a
   long heading would otherwise squeeze it. */
.hiw-ico{width:52px;height:52px;flex:none;border-radius:13px;background:rgba(26,122,109,.10);border:1px solid rgba(26,122,109,.22);display:flex;align-items:center;justify-content:center;}
.hiw-ico .sn-i{width:24px;height:24px;color:var(--ocean);}
/* The numeral is now type, not a filled disc: flame, Fraunces, sitting above the heading like an
   eyebrow. tabular-nums keeps 01–05 the same width so the headings start on one line. */
.hiw-num{font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:0.82rem;letter-spacing:0.14em;color:var(--flame-ink);font-variant-numeric:tabular-nums;margin-bottom:6px;}
.hiw-step h3{font-size:clamp(1.25rem,2vw,1.6rem);font-weight:600;line-height:1.12;margin-bottom:6px;letter-spacing:-0.01em;}
.hiw-step p{color:var(--ink-soft);font-size:0.95rem;line-height:1.62;max-width:52ch;}
@media(max-width:860px){.hiw{grid-template-columns:1fr;gap:24px;}.hiw-left{position:static;}.hiw-step{gap:14px;padding:18px;}.hiw-step h3{font-size:1.2rem;}.hiw-ico{width:44px;height:44px;border-radius:11px;}.hiw-ico .sn-i{width:21px;height:21px;}}
/* Phones (16 Nov 2026, homepage height pass): the five steps read as one list rather than five
   padded cards. Same markup and words; the icon shrinks and the card padding goes, which takes the
   section from ~1,270px to well under 1,000 at 390px wide. */
@media(max-width:620px){.hiw-steps{gap:8px;}.hiw-step{padding:14px 16px;gap:12px;border-radius:12px;}.hiw-ico{width:36px;height:36px;border-radius:10px;}.hiw-ico .sn-i{width:18px;height:18px;}.hiw-num{margin-bottom:2px;}.hiw-step h3{font-size:1.08rem;margin-bottom:4px;}.hiw-step p{font-size:0.9rem;line-height:1.55;}.hiw-left p{margin-bottom:18px;}}

/* ── Teach with Sessioned band ── */
.teach-wrap{padding:clamp(52px,7vw,72px) 16px;}
.teach-band{position:relative;overflow:hidden;background:linear-gradient(158deg,#22304f 0%,#182643 48%,#141E2B 100%);border-radius:28px;padding:clamp(32px,5vw,56px) clamp(24px,4vw,48px);box-shadow:0 24px 60px rgba(20,30,43,0.28);}
.teach-band::before{content:'';position:absolute;top:-150px;right:-110px;width:440px;height:440px;border-radius:50%;background:radial-gradient(circle,rgba(232,93,58,0.30),transparent 66%);pointer-events:none;animation:ftGlowA 20s ease-in-out infinite alternate;}
.teach-band::after{content:'';position:absolute;bottom:-170px;left:-120px;width:470px;height:470px;border-radius:50%;background:radial-gradient(circle,rgba(26,122,109,0.22),transparent 70%);pointer-events:none;animation:ftGlowB 26s ease-in-out infinite alternate;}
.teach-inner{position:relative;z-index:1;max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1.4fr 0.6fr;gap:clamp(24px,4vw,44px);align-items:center;}
.teach-eyebrow{display:inline-block;background:rgba(255,255,255,0.22);color:#fff;font-size:0.72rem;font-weight:700;letter-spacing:0.07em;text-transform:uppercase;padding:6px 14px;border-radius:100px;margin-bottom:16px;backdrop-filter:blur(4px);}
.teach-main{position:relative;z-index:1;}
.teach-main h2{font-family:'Fraunces',Georgia,serif;color:#fff;font-size:clamp(1.8rem,3.4vw,2.5rem);line-height:1.1;margin-bottom:12px;letter-spacing:-0.01em;}
.teach-main>p{color:rgba(255,255,255,0.95);font-size:1.02rem;line-height:1.65;max-width:560px;margin:0 0 24px;}
.teach-figs{display:flex;flex-wrap:wrap;}
.teach-fig{padding:2px clamp(16px,2vw,26px);border-left:1px solid rgba(255,255,255,0.30);}
.teach-fig:first-child{border-left:none;padding-left:0;}
.teach-fig b{display:block;font-family:'Fraunces',serif;color:#fff;font-size:1.45rem;font-weight:600;line-height:1;}
.teach-fig span{display:block;font-size:0.74rem;color:rgba(255,255,255,0.85);margin-top:6px;}
.teach-cta{position:relative;z-index:1;justify-self:end;background:#fff;color:var(--flame-ink);padding:16px 32px;font-size:1.02rem;font-weight:700;border-radius:100px;box-shadow:0 10px 28px rgba(0,0,0,0.18);white-space:nowrap;cursor:pointer;transition:transform .2s,box-shadow .2s;border:none;}
.teach-cta:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(0,0,0,0.26);}
.teach-referral{display:inline-flex;align-items:center;gap:11px;margin-top:22px;background:rgba(245,166,35,0.14);border:1px solid rgba(245,166,35,0.32);color:rgba(255,255,255,0.92);border-radius:14px;padding:12px 18px;font-size:0.9rem;line-height:1.5;text-decoration:none;cursor:pointer;transition:background .2s,border-color .2s;max-width:560px;}
.teach-referral b{color:var(--sun);font-weight:700;}
.teach-referral:hover{background:rgba(245,166,35,0.20);border-color:rgba(245,166,35,0.46);}
@media(max-width:820px){.teach-inner{grid-template-columns:1fr;gap:22px;}.teach-cta{justify-self:start;}}

/* Platform grid (.plat*) CSS removed 16 Nov 2026 with its markup; see the note in #p-home. */
/* === sn-stage ═══════════════════════════════════════════════════════════════════════════════
   Two columns: a swapping panel on the left, four level rows on the right. Rows are a real
   tablist - buttons, aria-selected, roving tabindex, arrows and Home/End - and hover is layered on
   top of that rather than being the only way in. Below 900px the hover model is dropped entirely
   and the same markup becomes a tap-to-expand accordion with the panel above the list, which is
   why the panel is first in source order.

   Panel art is inline SVG, not <img>: there is no owned photography for these four audiences, and
   inlining removes the preload-or-flash problem the brief flags rather than solving it. */
.sn-stage{display:grid;grid-template-columns:40% 60%;gap:var(--sn-6);align-items:start;}
.sn-stage-panel{position:relative;background:var(--white);border:1px solid rgba(20,30,43,.07);
  border-radius:var(--r-lg);padding:var(--sn-5);box-shadow:var(--shadow-sm);}
.sn-stage-art{display:block;width:100%;height:auto;border-radius:var(--r);background:var(--sand);
  border:1px solid rgba(20,30,43,.05);margin-bottom:var(--sn-4);}
.sn-stage-body{transition:opacity 260ms ease,transform 260ms ease;}
.sn-stage-panel.is-swapping .sn-stage-body{opacity:0;transform:translate3d(0,6px,0);}
.sn-stage-label{font-size:.76rem;text-transform:uppercase;letter-spacing:1.4px;font-weight:600;
  color:var(--ocean);margin-bottom:6px;}
.sn-stage-body h3{font-family:Fraunces,Georgia,serif;font-size:1.3rem;color:var(--ink);margin-bottom:7px;}
.sn-stage-body p{font-size:.9rem;line-height:1.6;color:var(--ink-soft);margin-bottom:var(--sn-3);}
.sn-stage-link{font-size:.88rem;font-weight:600;color:var(--flame-ink);text-decoration:none;
  border-bottom:1px solid rgba(192,67,42,.35);padding-bottom:1px;}
.sn-stage-link:hover{color:var(--brand-orange-hover);}
.sn-stage-list{display:flex;flex-direction:column;}
.sn-stage-row{display:flex;align-items:baseline;gap:var(--sn-4);width:100%;text-align:left;
  background:none;border:0;border-top:1px solid var(--sand-mid);padding:var(--sn-5) var(--sn-2);
  cursor:pointer;font-family:Fraunces,Georgia,serif;
  font-size:clamp(26px,3.4vw,44px);line-height:1.1;
  color:color-mix(in srgb, var(--ink) 22%, transparent);
  transition:color 260ms ease;}
.sn-stage-row:last-child{border-bottom:1px solid var(--sand-mid);}
.sn-stage-row[aria-selected="true"]{color:var(--ink);}
.sn-stage-row:focus-visible{outline:2px solid var(--focus-ring-dark);outline-offset:3px;border-radius:var(--r-sm);}
.sn-stage-i{font-family:var(--font),'DM Sans',sans-serif;font-size:.8rem;font-weight:600;
  letter-spacing:.06em;flex-shrink:0;width:3.4em;color:inherit;}
/* No color-mix fallback needed for the row colour - a browser without it falls back to the
   inherited ink, which is legible, just less obviously inactive. */
@supports not (color: color-mix(in srgb, red 50%, transparent)){
  .sn-stage-row{color:var(--ink-muted);}
}
@media(max-width:900px){
  .sn-stage{grid-template-columns:1fr;gap:var(--sn-5);}
  .sn-stage-row{font-size:clamp(22px,6vw,30px);padding:var(--sn-4) var(--sn-2);}
}
@media(prefers-reduced-motion:reduce){
  .sn-stage-body,.sn-stage-row{transition:none;}
  .sn-stage-panel.is-swapping .sn-stage-body{opacity:1;transform:none;}
}
/* === /sn-stage ══════════════════════════════════════════════════════════════════════════════ */
/* === sn-hw ══════════════════════════════════════════════════════════════════════════════════
   Hero subheadline word reveal. ADDITIVE BY CONSTRUCTION, which is the whole design here: this is
   above the fold on the primary conversion page, so the paragraph is plain HTML, fully visible,
   with no opacity:0 anywhere in its default state. The split happens in JS afterwards; if that JS
   never runs, never loads, or throws, the sentence is simply there.

   Spans only get opacity:0 once JS has added .sn-hw-on to the paragraph, so the invisible state
   cannot exist without the animation that undoes it.

   Stagger is one custom property, --sn-hw-i, consumed in a calc - not 38 rules and not 38
   setTimeouts. The per-word delay is computed in JS so the tail cannot drag past ~900ms however
   long the sentence gets. */
.sn-hw-on .sn-hw{display:inline-block;opacity:0;transform:translate3d(0,6px,0);
  color:color-mix(in srgb, var(--flame-light) 70%, transparent);
  animation:snWordIn 420ms cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay:calc(var(--sn-hw-i,0) * var(--sn-hw-step,26ms));}
@keyframes snWordIn{to{opacity:1;transform:translate3d(0,0,0);color:inherit;}}
@supports not (color: color-mix(in srgb, red 50%, transparent)){
  .sn-hw-on .sn-hw{color:var(--flame-light);}
}
@media(prefers-reduced-motion:reduce){
  /* Belt and braces: the JS does not split at all under reduced motion, so these spans never
     exist. Kept so that a page which somehow has them still renders finished. */
  .sn-hw-on .sn-hw{opacity:1;transform:none;color:inherit;animation:none;}
}
/* === /sn-hw ═════════════════════════════════════════════════════════════════════════════════ */
/* sn-ribbon and motion-control CSS removed 16 Nov 2026 with the ribbons; see the note in #p-home. */
/* sn-bento CSS removed 16 Nov 2026 with the platform grid it styled; see the note in #p-home. */
.feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.feat-card{background:#fff;border:1px solid rgba(20,30,43,0.06);border-radius:18px;padding:22px;display:flex;align-items:flex-start;gap:15px;box-shadow:0 1px 3px rgba(0,0,0,0.04);transition:transform .28s ease,box-shadow .28s ease,border-color .28s;}
.feat-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(20,30,43,0.10);border-color:rgba(232,93,58,0.25);}
/* One icon treatment for all nine, matching .hiw-ico: teal glyph on a teal tint. It used to be a
   three-colour rotation driven by :nth-child(3n+…), which only produced a pattern at the 3-column
   breakpoint — below 900px the grid is 2-up and below 560px it is 1-up, so the colours landed
   arbitrarily and the "rhythm" read as a mistake. The glyphs were all brand orange regardless of
   which tint they sat on, so no card's icon matched its own chip at any width. */
.feat-ic{flex-shrink:0;width:46px;height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.3rem;background:rgba(26,122,109,0.10);border:1px solid rgba(26,122,109,0.20);}
.feat-ic .sn-i{color:var(--ocean);}
.feat-card h4{font-size:0.97rem;font-weight:600;color:var(--ink);margin-bottom:3px;}
.feat-card p{font-size:0.82rem;color:var(--ink-muted);line-height:1.5;}
@media(max-width:900px){.feat-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:560px){.feat-grid{grid-template-columns:1fr;}}

/* ── "Got an idea?" band ── */

/* ── Section 10 · "Ready to find the right tutor?" — the single CTA band ──────────────────────
   Full-bleed flame. One heading, one line, ONE button, which goes to the hero matcher.

   THE SECOND ENQUIRY FORM THAT LIVED HERE IS GONE (22 Sep 2026). The overhaul brief gated its
   removal on proving the hero matcher reaches the founder equivalently. It does, and always did:
   NEITHER form ever emailed anybody. Both did one `POST /rest/v1/leads`; the email comes from
   `notify-new-lead`, an AFTER INSERT trigger on public.leads — FOR EACH ROW, no WHEN clause, so
   it fires for every lead whichever form produced it. `notify-new-lead-sms` (→ sms-alert) is the
   same shape. The hero path is strictly RICHER: it also runs the matcher and stamps the suggested
   tutors onto the lead via link_recent_lead_to_match, so the alert arrives with tutors attached.
   Evidence the removal costs nothing: 88 leads in the table, every one `hero_get_matched`, none
   `ready_contact_form` — 47 of them in the four weeks this form is provably live. No
   evt:ready_submit and no evt:ready_failed has ever been recorded either.

   COLOUR IS NOT A FREE CHOICE HERE. The old band ran --flame-dark → --flame → --sun, and white
   text on it measured 4.67:1 at the darkest stop, 3.47:1 on --flame and 2.03:1 on --sun — legible
   for the first third of the gradient and a smear after that. So the gradient is now bounded
   ABOVE by --flame-dark: #C94A2B is the lightest flame that white clears AA body contrast on
   (4.67:1), and every stop here is that or darker. The vignette is BLACK rather than the old white
   glow, because a white glow at even 6% lifted the worst stop to 4.26:1 and broke it again.
   Same rule for the text: NO translucent white anywhere on this band. rgba(255,255,255,.92) is
   4.21:1 and rgba(255,255,255,.80) is 3.54:1, so hierarchy comes from size and weight instead.
   scripts/check-band-contrast.mjs measures every one of these against the lightest stop. */
.rf-wrap{position:relative;padding:clamp(56px,7vw,84px) 0;margin:clamp(28px,4vw,56px) 0;}
.rf-wrap::before{content:"";position:absolute;top:0;bottom:0;left:calc(50% - 50vw);width:100vw;
  background:radial-gradient(120% 100% at 88% 108%,rgba(0,0,0,0.22),transparent 62%),
             linear-gradient(135deg,#9C2F1A 0%,var(--flame-ink) 42%,var(--flame-dark) 100%);
  pointer-events:none;}
.rf-inner{position:relative;z-index:1;max-width:760px;margin:0 auto;padding:0 clamp(16px,4vw,40px);text-align:center;}
.rf-inner .eyebrow{color:#fff;}
.rf-inner h2{font-family:'Fraunces',Georgia,serif;color:#fff;font-size:clamp(2.1rem,4.4vw,3.2rem);line-height:1.05;margin:8px 0 14px;letter-spacing:-0.01em;}
/* 3.74:1 on the lightest stop. The h2 is never below 33.6px, so AA large text (3:1) is the bar
   this has to clear — not 4.5:1. If the heading is ever shrunk below 24px, change this too. */
.rf-inner h2 .sig-i{color:#FFE2B8;}
.rf-lede{color:#fff;font-size:1.05rem;line-height:1.65;max-width:46ch;margin:0 auto;}
.rf-cta{display:inline-flex;align-items:center;gap:10px;margin-top:26px;background:#fff;color:var(--flame-ink);
  text-decoration:none;border-radius:100px;padding:16px 36px;font-weight:700;font-size:1.02rem;
  box-shadow:0 10px 28px rgba(0,0,0,0.22);transition:transform .2s ease,box-shadow .2s ease;}
.rf-cta:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(0,0,0,0.30);}
.rf-cta:focus-visible{outline:3px solid #fff;outline-offset:4px;}
.rf-founder{display:inline-flex;align-items:center;gap:12px;margin-top:30px;text-align:left;}
/* Solid white chip, not the old rgba(255,255,255,.22): a white letter on that tint measured
   3.29:1 against this band. Same pairing as the button, so the two read as one family. */
.rf-founder .rf-av{width:42px;height:42px;border-radius:50%;background:#fff;color:var(--flame-ink);display:flex;align-items:center;justify-content:center;font-weight:700;font-family:'Fraunces',serif;flex-shrink:0;}
/* The founder's face, for when /founder.jpg exists. Additive on purpose: a later rule at the
   same specificity, so the .rf-av declaration above is untouched. The letter stays BEHIND the
   photo as the failure state, the same arrangement as .th-ini behind .th-img on a tutor card -
   onerror removes the <img> and the chip falls back to "A" rather than to a hole. 20% from the
   top because a 4:5 portrait centred in a 42px circle crops the forehead.
   THE <img> IS NOT IN THE MARKUP YET. /founder.jpg has not been supplied, and shipping the tag
   first would put a 404 on the homepage's highest-value band for no gain. The one-line markup
   change is in docs/about-page-inputs-needed.md item 1, to apply the day the file lands. */
.rf-founder .rf-av{position:relative;overflow:hidden;}
.rf-founder .rf-av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 20%;}
.rf-founder b{display:block;color:#fff;font-size:0.95rem;}
.rf-founder span{display:block;color:#fff;font-size:0.8rem;font-weight:400;}
@media(max-width:560px){.rf-cta{width:100%;justify-content:center;}}
@media(prefers-reduced-motion:reduce){.rf-cta{transition:none;}.rf-cta:hover{transform:none;}}
h2 .sig-i{font-style:italic;font-weight:400;}


/* Bio clamp with a Read more. The bio runs past 2,000 characters on real profiles, which on a
   phone is most of the page before anything actionable. Collapsed to roughly nine lines; the
   control is a real <button> so it is reachable by keyboard, and the expanded state is driven by a
   class rather than inline style so prefers-reduced-motion has nothing to fight. */
.tp-bio-wrap{position:relative;}
/* THE CLAMP IS PHONE-ONLY, and it has to be gated by the same breakpoint as its control.
   This rule sat OUTSIDE the media query below while the "Read more" button and the .is-open
   expansion sat inside it. So above 768px every long bio was clamped to nine lines, given an
   ellipsis by the clamp, and had no button and no way to expand: Aaryan Panchal's 1,406-character
   bio ended mid-sentence on desktop at "...has the potential to…" with nothing to click. The
   stored text is complete and ends cleanly; the truncation was entirely this rule. A clamp without
   its control is just data loss with a nice ellipsis. */
.tp-bio-more{display:none;}
@media(max-width:768px){
  .tp-bio-more{display:inline-flex;align-items:center;min-height:44px;padding:0 2px;margin-top:4px;
    background:none;border:0;font:inherit;font-weight:600;color:var(--flame-ink);cursor:pointer;text-decoration:underline;}
  .tp-bio-clamp{display:-webkit-box;-webkit-line-clamp:9;-webkit-box-orient:vertical;overflow:hidden;}
  .tp-bio-wrap.is-open .tp-bio-clamp{-webkit-line-clamp:unset;display:block;}
}

/* ── Animated mesh-gradient hero (brand colours) ── */
#p-home{padding-top:0!important;}   /* let the mesh run to the very top, behind the header */
.hero{background:linear-gradient(158deg,#33204d 0%,#232f59 44%,#15203a 100%)!important;animation:none!important;}
.hero::before,.hero::after{content:'';position:absolute;border-radius:50%;filter:blur(58px);pointer-events:none;z-index:0;}
.hero::before{width:96vw;height:80vw;left:-16vw;top:-34vw;background:radial-gradient(circle,rgba(232,93,58,0.66),transparent 60%);animation:meshA 20s ease-in-out infinite alternate;}
.hero::after{width:82vw;height:78vw;right:-16vw;top:-20vw;background:radial-gradient(circle,rgba(43,166,150,0.55),transparent 60%);animation:meshB 26s ease-in-out infinite alternate;}
.hero-inner{position:relative;z-index:10;}
@keyframes meshA{0%{transform:translate(0,0) scale(1);}100%{transform:translate(22vw,12vh) scale(1.25);}}
@keyframes meshB{0%{transform:translate(0,0) scale(1);}100%{transform:translate(-16vw,-10vh) scale(1.2);}}
/* ── Frosted see-through header; hides on scroll-down, returns on scroll-up ── */
nav{background:rgba(20,30,43,0.55)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;border-color:rgba(255,255,255,0.12)!important;transition:background .28s ease,box-shadow .28s ease,top .28s ease,transform .4s ease!important;}
nav.nav-solid{background:rgba(20,30,43,0.9)!important;box-shadow:0 10px 34px rgba(20,30,43,0.28)!important;}
nav.nav-hidden{transform:translateY(-150%)!important;}
/* 1.5 Header auto-hide artefacts (audit 8 Sep 2026). The bar is already a fixed-height element
   moved with transform, so there is no reflow — but `top` was animating alongside it on a
   different duration, which is what made the buttons look vertically clipped mid-transition.
   Animate transform only, and raise the backdrop so page text never reads through it. */
nav{transition:background .28s ease,box-shadow .28s ease,transform .32s cubic-bezier(.4,0,.2,1)!important;}
nav:not(.hero-mode){background:rgba(251,246,240,0.94)!important;}
nav.nav-solid:not(.hero-mode){background:rgba(251,246,240,0.985)!important;}
@media(prefers-reduced-motion:reduce){nav{transition:none!important;}.nav-hidden{transform:none!important;}}
nav.hero-mode{background:rgba(20,30,43,0.10)!important;box-shadow:none!important;}
/* white, uppercase nav buttons — logo excluded */
/* SCOPED TO .hero-mode ON 20 Oct 2026. These three were written for the homepage's own
   transparent nav sitting over the dark hero, where white uppercase links are right. The shared
   header from partials/header.html contains a <nav>, so an unscoped `nav .nav-link` matched it on
   every page state and painted the links white on a cream bar — invisible. */
nav.hero-mode .nav-link{color:rgba(255,255,255,0.9)!important;text-transform:uppercase;letter-spacing:0.06em;font-size:0.76rem;}
nav.hero-mode .nav-link:hover{color:#fff!important;}
nav.hero-mode .logo span{color:#fff!important;}
nav .btn-ghost{color:#fff!important;border-color:rgba(255,255,255,0.5)!important;text-transform:uppercase;letter-spacing:0.05em;}
nav .btn-primary{text-transform:uppercase;letter-spacing:0.05em;}

/* ── Sticky mobile CTA — conversion one tap away on phones ── */
#stickyCTA{position:fixed;left:12px;right:12px;bottom:12px;z-index:95;display:none;transform:translateY(160%);transition:transform .32s ease;}
#stickyCTA.show{transform:translateY(0);}
#stickyCTA button{width:100%;background:var(--flame);color:#fff;border:none;border-radius:100px;padding:15px;font-size:1rem;font-weight:700;font-family:var(--font);box-shadow:0 10px 30px rgba(232,93,58,0.45);cursor:pointer;letter-spacing:0.01em;}
@media(max-width:768px){
  #stickyCTA{display:block;}
  /* Reserve scroll space so the fixed bar can never cover the last row of content or the
     footer links at 390px. Applied only while the bar is actually out, so there is no dead
     gap under the footer when it is hidden. (.dash-main already reserves its own 80px for
     the dashboard's fixed bottom nav.) */
  body.sn-cta-space{padding-bottom:84px;}
}
@media(prefers-reduced-motion:reduce){ #stickyCTA{transition:none;} }

/* Hero motion — the hero ran SEVEN infinite animations with no reduced-motion guard: a 12s
   background gradient shift, two pulses and four floating shapes, all looping forever. Continuous
   background movement behind the primary conversion form is exactly the pattern that triggers
   vestibular symptoms, and none of the three existing reduced-motion blocks covered it.
   heroIn sets opacity:0 as its starting state, so `animation:none` alone would leave the hero
   INVISIBLE — opacity and transform must be restored explicitly, not just the animation removed. */
@media(prefers-reduced-motion:reduce){
  .hero,.sn-band--hero::before{ animation:none !important; background-size:100% 100% !important; }
  .hero *,.sn-deco i{ animation:none !important; }
  .sn-deco{ display:none !important; }
  .hero-inner h1,
  .hero [class*="heroIn"],
  .hero-inner .hero-sub,
  .hg-a > *, .hg-c > *{ opacity:1 !important; transform:none !important; }
}

/* ── Process ("how it works" steps) — sticky left, numbered right ── */
.proc-sec{display:grid;grid-template-columns:minmax(0,0.9fr) minmax(0,1.15fr);gap:clamp(32px,5vw,72px);align-items:start;}
.proc-left{position:sticky;top:100px;}
.proc-left h2{font-size:clamp(1.8rem,3vw,2.4rem);line-height:1.12;margin:4px 0 14px;}
.proc-left p{color:var(--ink-soft);font-size:0.98rem;line-height:1.7;max-width:34ch;margin-bottom:22px;}
.proc-cta{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--flame-ink);cursor:pointer;font-size:1rem;}
.proc-step{display:flex;gap:20px;padding:26px 0;border-top:1px solid var(--sand-dark);align-items:flex-start;}
.proc-step:first-child{border-top:none;padding-top:4px;}
.proc-num{flex-shrink:0;width:46px;height:46px;border-radius:50%;background:rgba(245,166,35,0.16);color:#B27A09;font-family:'Fraunces',serif;font-weight:600;display:flex;align-items:center;justify-content:center;font-size:0.98rem;}
.proc-step h3{font-size:1.16rem;margin-bottom:5px;}
.proc-step p{color:var(--ink-soft);font-size:0.92rem;line-height:1.65;}
@media(max-width:860px){.proc-sec{grid-template-columns:1fr;gap:26px;}.proc-left{position:static;}}

/* ── Home FAQ — sticky left title + accessible <details> accordion ── */
.hfaq-sec{display:grid;grid-template-columns:minmax(0,0.72fr) minmax(0,1.28fr);gap:clamp(32px,5vw,72px);align-items:start;}
.hfaq-left{position:sticky;top:100px;}
.hfaq-left h2{font-size:clamp(2rem,4vw,3rem);line-height:1.05;margin-bottom:14px;}
.hfaq-left p{color:var(--ink-soft);font-size:0.96rem;line-height:1.7;max-width:30ch;margin-bottom:20px;}
.hfaq-item{border-top:1px solid var(--sand-dark);}
/* Each item rules off its own top, so the last question had nothing under it and the column just
   stopped. One rule on the list closes the set. */
.hfaq-list{border-bottom:1px solid var(--sand-dark);}
.hfaq-item summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 0;font-size:1.08rem;font-weight:600;color:var(--ink);}
/* An explicit ring, because `list-style:none` + a custom ::after marker is exactly the pattern
   that tempts someone into adding `outline:none` here later. Stated, it has to be deleted on
   purpose rather than tidied away. */
.hfaq-item summary:focus-visible{outline:2px solid var(--flame-ink);outline-offset:3px;border-radius:6px;}
.hfaq-item summary::-webkit-details-marker{display:none;}
.hfaq-item summary::after{content:'+';font-size:1.7rem;line-height:1;color:var(--flame-ink);font-weight:300;transition:transform .25s ease;flex-shrink:0;}
.hfaq-item[open] summary::after{transform:rotate(45deg);}
.hfaq-a{padding:0 0 22px;color:var(--ink-soft);font-size:0.95rem;line-height:1.75;max-width:62ch;}
@media(max-width:860px){.hfaq-sec{grid-template-columns:1fr;gap:22px;}.hfaq-left{position:static;}}

/* ── Testimonials: even out the 5-card masonry ── */
@media(min-width:861px){ .tpb-layout{column-fill:balance;} }

/* ── Motion: restrained (16–24px / ~450ms ease-out) + reduced-motion-safe ── */
.reveal,.reveal-left,.reveal-right,.reveal-scale,.reveal-up{transition:opacity .45s ease-out,transform .45s ease-out;}
.reveal{transform:translate3d(0,20px,0);}
.reveal-up{transform:translate3d(0,20px,0);}
#getMatched{opacity:0;transform:translate3d(0,18px,0);animation:heroIn .45s ease-out .28s forwards;will-change:opacity,transform;}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-delay:0ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important;}
  .reveal,.reveal-left,.reveal-right,.reveal-scale,.reveal-up{opacity:1!important;transform:none!important;}
  #getMatched{opacity:1!important;transform:none!important;}
}

/* §2.5 — each SPA view now leads with its own h1 instead of starting at h2. Previously only
   #p-home had one, and it sits in a display:none view whenever you are anywhere else, so every
   other view exposed no top-level heading at all. These mirror the existing h2 rules so promoting
   the tag changes semantics without changing a single pixel. */
.sn-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;}
.dash-head h1{font-size:1.6rem;margin-bottom:3px;font-family:'Fraunces',serif;font-weight:400;}
.signup-left h1{font-size:2rem;margin-bottom:14px;line-height:1.2;font-family:'Fraunces',serif;font-weight:400;}
.signup-form h1{font-size:1.5rem;margin-bottom:4px;font-family:'Fraunces',serif;font-weight:400;}
.section-head h1{font-size:1.8rem;font-family:'Fraunces',serif;font-weight:400;}
@media(max-width:768px){ .section-head h1{font-size:1.4rem;} }

/* ── Revision tools band ─────────────────────────────────────────────────────────────────────
   REBUILT 18 Sep 2026, on the owner's request. What was wrong: the paid door and the free one
   were stacked in the same left-hand column — heading, paragraph, ghost button, then the email
   capture — with the cover marooned in a second column beside all four. Two products in one
   text block reads as one bunched block, and the free one, which is the cheapest way to find out
   whether the method suits you, was the last thing on the page you reached.
   Now: one shared heading, then two cards — the PAID planner first, the FREE version beside it —
   on the site's own white-card pattern (see .t-card / .th-card: #fff, --r-lg, --shadow-xs,
   hairline border, lift on hover). No new styling system; the same four values.

   THE ORIGINAL CONSTRAINT, and exactly what survives of it. This band was written to be the
   quietest on the homepage and to "lose an attention contest with the get-matched form". Two
   cards are louder than one paragraph, so part of that is now deliberately traded away. What is
   kept, and what you should restore first if the matcher ever starts losing conversions: no
   flame-filled button anywhere in the band (the paid CTA is still ghost; the only filled button
   is the free form's teal submit, which was already live), no gradient, no reveal animation, no
   autoplay, and the band still sits BELOW Browse tutors and never above it.

   CONTRAST — now measured on TWO grounds, which is the trap in moving text onto cards. The
   heading block still sits on --sand-dark #F0E8DC, where the site's default text colours land at
   4.27 (teal eyebrow), 4.49 (--ink-soft) and 4.24 (--flame-ink) — all under 4.5:1, the middle one
   by a hundredth. So the three written-out replacements stay exactly as they were: 6.10, 5.83,
   5.43. Inside the cards the ground is #fff, which is lighter than the sand, so those same three
   only improve (7.1, 7.1, 6.7) and are reused rather than re-picked. The one colour that does NOT
   survive the move is .sn-lite-note's own --ink-muted #6B7A8B: 5.81 on the sand, 4.39 on white —
   a fail at 0.78rem. It is overridden inside the card below. Anything else moved onto these cards
   must be re-checked against #fff, not assumed safe because it passed on the sand. */
.sn-shopband{background:var(--sand-dark);border-top:1px solid rgba(20,30,43,.10);border-bottom:1px solid rgba(20,30,43,.10);margin-top:var(--sn-sec-y-tight,48px);}
.sn-shopband-in{max-width:var(--sn-container,1320px);margin:0 auto;padding:clamp(40px,5vw,64px) var(--sn-gutter,24px);}
.sn-shopband-head{margin:0 0 clamp(24px,3vw,36px);}
.sn-shopband .eyebrow{margin-bottom:10px;color:#146055;}
.sn-shopband h2{font-family:'Fraunces',serif;font-weight:400;font-size:clamp(1.5rem,3vw,2rem);line-height:1.2;color:var(--ink);margin:0 0 10px;}
/* Scoped to the head, NOT `.sn-shopband p`. The old rule was unscoped and reached into the
   capture form, which is why .sn-shopband-price needed !important to win its own margin back. */
.sn-shopband-head p{color:#4A5A6B;font-size:0.98rem;line-height:1.6;max-width:52ch;margin:0;}

/* minmax(0,1fr), not 1fr: the paid card holds an image, and a bare 1fr track refuses to shrink
   below its content's intrinsic width, so the grid overflows the gutter on a narrow viewport. */
.sn-shopband-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2vw,24px);align-items:stretch;}

/* TWO COLUMNS INSIDE EACH CARD — text left, cover right. Restructured 18 Sep 2026: the covers were
   capped at 170px and sat top-left with the rest of the card empty beside them.

   THREE THINGS HERE ARE LOAD-BEARING AND LOOK DELETABLE.

   1. `align-content:stretch`. The card is a stretched grid item, so it is as tall as its taller
      neighbour — but a grid's single auto row sits at the TOP of that height by default, and the
      spare space would fall below both columns where nothing can use it. Stretch hands that space
      to the row, which is what gives .sn-sbcard-foot's margin-top:auto something to push against.
      Without it the two cards' buttons stop lining up.

   2. Named areas rather than `order`. The art stays FIRST in source, as it already was, and is
      *placed* into column two. So the one-column layout at the bottom of this sheet needs no
      reordering: the DOM order is the order a phone reads and the order a screen reader hears.

   3. `min-width:0` on the body. It holds a flex row (the email field and its button) inside a
      grid track; without it the track refuses to go below the form's intrinsic width and the
      card overflows its own padding.

   THE GAP IS PADDING ON THE BODY, NOT `column-gap`, and that is not a style preference. 55% + 45%
   resolve against the content box and already sum to it, so ANY column-gap is added on top and the
   grid overflows by exactly that much — silently, because the overflow is smaller than the card's
   own padding, so it eats the cover's right margin instead of bursting the card. Measured before
   the fix: tracks 287 + 235 + 20 gap = 542 inside a 524 content box, leaving the cover 10px from
   the card edge instead of 28. Putting the space inside the left track keeps the split exact. */
.sn-sbcard{position:relative;display:grid;grid-template-columns:55% 45%;grid-template-areas:"body art";column-gap:0;align-content:stretch;background:#fff;border:1px solid rgba(20,30,43,.05);border-radius:var(--r-lg);box-shadow:var(--shadow-xs);padding:clamp(20px,2.4vw,28px);transition:transform .22s ease-out,box-shadow .22s ease-out;}
.sn-sbcard:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);}
.sn-sbcard-body{grid-area:body;display:flex;flex-direction:column;min-width:0;padding-right:clamp(14px,1.6vw,20px);}
.sn-sbcard-tag{align-self:flex-start;font-size:0.7rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:20px;margin:0 0 14px;}
.sn-sbcard-paid .sn-sbcard-tag{color:#A5381F;background:rgba(232,93,58,.10);}   /* 5.92 on the tint */
.sn-sbcard-free .sn-sbcard-tag{color:#146055;background:rgba(26,122,109,.10);}  /* 6.43 on the tint */
/* Centred, not top-aligned. The cover is now the tallest thing in the card and drives its height,
   so the free card's shorter text column would otherwise leave the cover floating above a gap. */
.sn-sbcard-art{grid-area:art;display:block;align-self:center;margin:0;min-width:0;}
.sn-sbcard-art img{display:block;width:100%;height:auto;border-radius:4px;transform:rotate(-4deg);transform-origin:center bottom;box-shadow:0 2px 6px rgba(20,30,43,.06),0 16px 40px rgba(20,30,43,.08);transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s cubic-bezier(.2,.8,.2,1);}
/* Both cards, not just the paid one — each now carries its own cover, and the two are exported at
   the same 360×509 from the same trim shot, so they tilt and lift identically. The lite cover is a
   navy ground; the same soft ink shadow reads on it because the card behind is white. */
.sn-sbcard:hover .sn-sbcard-art img{transform:rotate(0deg) translateY(-4px);box-shadow:0 2px 4px rgba(20,30,43,.08),0 24px 48px rgba(20,30,43,.16);}
.sn-sbcard-title{font-family:'Fraunces',serif;font-weight:400;font-size:1.18rem;line-height:1.25;color:var(--ink);margin:0 0 8px;}
.sn-sbcard-title a{color:inherit;text-decoration:none;}
/* Stretched link: the whole PAID card is one click target. Only the paid card — the free card
   contains a form, and covering an email field with a link would make it unusable. The ghost
   button below is lifted back above this overlay with z-index so it stays independently
   clickable and keeps its own focus ring. */
.sn-sbcard-paid .sn-sbcard-title a::after{content:'';position:absolute;inset:0;}
.sn-sbcard-blurb{color:#4A5A6B;font-size:0.92rem;line-height:1.6;margin:0 0 14px;}
.sn-sbcard-list{list-style:none;margin:0 0 18px;padding:0;}
/* A drawn dash, not a ✓ glyph: several screen readers announce "check mark" on every row, and
   the <ul> already carries the list semantics without it. */
.sn-sbcard-list li{position:relative;padding-left:18px;color:#4A5A6B;font-size:0.9rem;line-height:1.55;margin:0 0 6px;}
.sn-sbcard-list li::before{content:'';position:absolute;left:0;top:.66em;width:9px;height:2px;border-radius:1px;background:#1A7A6D;}
/* Pins the call to action to the bottom of both cards, so the two CTAs sit on one line even
   though the paid card is taller by the height of a cover. */
.sn-sbcard-foot{margin-top:auto;}

/* ── ONE CARD IN THIS BAND CARRIES NO ARTWORK (22 Sep 2026) ────────────────────────────────────
   That is a fact about the product, not a gap someone forgot to fill. The A-level free download is
   the FOUR-PAGE PREVIEW, and the preview edition is built with `cover:false` (see the `preview`
   entry in products/a-level-revision/scripts/build.mjs), so there is no cover page to photograph.
   The only other A-level thumbnail available is aplanner-lite-cover.png — the navy cover of the
   thirteen-page LITE edition, which is a different file and one this card does not hand over.
   Showing it here would be a picture of something you do not get, which is the same error as
   quoting a price the checkout will not honour.

   DELETE THIS RULE the day that card becomes the lite capture form. It gets the lite cover then,
   because then it is actually delivering the lite edition. Until then the body takes the card. */
.sn-sbcard-plain{grid-template-columns:1fr;grid-template-areas:"body";}
.sn-sbcard-plain .sn-sbcard-body{padding-right:0;}   /* it was the column gap; there is no column */
/* Teal, not the flame the paid cards use: the two colours are how this band says paid or free
   without writing the word, and the free card's own tag is already set in this teal (#146055,
   6.43 on its tint and better than that on the card's white). A ghost BUTTON here would read as
   a checkout; this is a link to a file. */
.sn-sbcard-golink{display:inline-block;font-size:0.92rem;color:#146055;text-decoration:none;border-bottom:1px solid rgba(20,96,85,.32);padding-bottom:1px;}
.sn-sbcard-golink:hover{border-bottom-color:currentColor;}
/* background:none ADDED 26 Oct 2026. axe-core measured this button at 1.28:1 — #A5381F text on a
   #C0432A background, i.e. dark flame on flame, effectively invisible. Three rules each won half
   the argument: .btn-ghost (index.html, 0,1,0) asks for a transparent background; site-tokens.css's
   .btn (also 0,1,0 but injected AFTER every page's own <style>) overrode it to a solid
   --brand-orange-strong fill; and this rule (0,2,0) then won the colour. So the band set a ghost's
   text colour on a button the global layer had quietly made solid.
   Restoring the transparency here, at the specificity that already wins, rather than repainting the
   text: the card behind it is #fff and #A5381F on white is 6.59:1 by this repo's own measurements.
   Layout is untouched — background paints nothing — and the border and padding are unchanged, so it
   still reads as the ghost button the design intends. */
.sn-shopband .btn-ghost{position:relative;z-index:1;padding:11px 24px;font-size:0.92rem;color:#A5381F;background:none;}
/* Tight to the button beneath it — the two are one block, and the only gap in this column is the
   one above the pair. Still quiet: this band must not out-shout the get-matched form. */
.sn-shopband-price{font-size:0.95rem;color:#4A5A6B;margin:0 0 10px;}
/* Fixed box before the catalogue fetch lands, so the card cannot reflow under it. */
.sn-shopband-skel{display:inline-block;width:8ch;height:.9em;border-radius:3px;background:currentColor;opacity:.22;vertical-align:-.08em;}
/* ONE ROW, NO WRAP, inside a column that is now roughly 300px. The shared partial gives the input
   `flex:1 1 200px` and lets the row wrap, which is right on /shop and /planner where the form has
   the full measure; here it wrapped the button onto its own line. Basis 0 instead, so the input
   takes whatever is left after the button rather than demanding 200px first. The partial's own
   ≤420px rule still turns the row vertical on a phone, and it wins because it sets a property
   this rule does not touch. */
.sn-sbcard .sn-lite-row{max-width:none;flex-wrap:nowrap;}
.sn-sbcard .sn-lite input[type=email]{flex:1 1 0;}
/* Above the field, not below it — see the markup comment on the free card. */
.sn-sbcard .sn-lite-note{color:#4A5A6B;margin:0 0 8px;}  /* CONTRAST note above — #6B7A8B is 4.39 on #fff */
.sn-shopband-more{margin:clamp(20px,2.5vw,28px) 0 0;font-size:0.92rem;}
.sn-shopband-more a{color:#A5381F;text-decoration:none;border-bottom:1px solid rgba(165,56,31,.32);padding-bottom:1px;}
.sn-shopband-more a:hover{border-bottom-color:currentColor;}
/* 860, not 768: the free card's email input has a 200px flex basis and its submit is a long
   label, so the row wraps to two lines well before the cards themselves get narrow enough to
   look broken. Stacking early is cheaper than a wrapped form on every mid-size tablet. */
@media(max-width:860px){
  .sn-shopband-grid{grid-template-columns:1fr;}
}
/* 600, NOT 860. Between the two the cards are already stacked and therefore full-width, so the
   text/cover split still has room and still reads better than a 200px cover marooned on a wide
   card. Below 600 the split itself is what breaks, and the card goes to one column.
   `margin-top:auto` on the foot is left alone here: with the body's height driven by its own
   content there is no spare space for it to absorb, so it quietly does nothing. */
@media(max-width:600px){
  .sn-sbcard{grid-template-columns:1fr;grid-template-areas:"art" "body";row-gap:16px;}
  .sn-sbcard-body{padding-right:0;}   /* it was the column gap; there is no column now */
  .sn-sbcard-art{align-self:start;}
  .sn-sbcard-art img{max-width:200px;}
}
/* PHONES ONLY, 16 Nov 2026 (homepage height pass): the four cards become one swipeable row instead
   of a 3,159px stack. Nothing is hidden or reordered - all four cards, every link, the lite form
   and its notice stay in the DOM and on screen, in source order, one swipe apart; the next card
   peeks in at the edge so the row reads as scrollable. The cover shrinks to a thumbnail. The page
   itself never scrolls sideways: the row bleeds to the gutter edge and scrolls inside itself. */
@media(max-width:600px){
  .sn-shopband-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:86%;gap:12px;
    overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
    margin:0 calc(var(--sn-gutter,24px) * -1);padding:4px var(--sn-gutter,24px) 14px;scroll-padding-inline:var(--sn-gutter,24px);align-items:stretch;}
  .sn-sbcard{scroll-snap-align:start;padding:18px;}
  .sn-sbcard:hover{transform:none;}
  /* The cover sits in the card's top-right corner beside the tag and title, not on a row of its own. */
  .sn-sbcard{grid-template-areas:"body";grid-template-columns:1fr;grid-template-rows:1fr;}
  .sn-sbcard-art{position:absolute;top:16px;right:16px;width:58px;}
  .sn-sbcard-art img{max-width:58px;transform:rotate(-3deg);}
  .sn-sbcard-paid .sn-sbcard-body,.sn-sbcard-free:not(.sn-sbcard-plain) .sn-sbcard-body{padding-right:0;}
  .sn-sbcard-paid .sn-sbcard-tag,.sn-sbcard-paid .sn-sbcard-title,
  .sn-sbcard-free:not(.sn-sbcard-plain) .sn-sbcard-tag,.sn-sbcard-free:not(.sn-sbcard-plain) .sn-sbcard-title{margin-right:70px;}
  .sn-sbcard-tag{margin-bottom:10px;}
  .sn-sbcard .sn-lite-row{flex-wrap:wrap;}
  .sn-sbcard .sn-lite-row button{flex:1 1 100%;}
}
@media(prefers-reduced-motion:reduce){
  .sn-sbcard,.sn-sbcard-art img{transition:none;}
  .sn-sbcard:hover{transform:none;box-shadow:var(--shadow-xs);}
  .sn-sbcard:hover .sn-sbcard-art img{transform:rotate(-4deg);}
}


/* ─────────────────────────────────────────────────────────────────────────────────────────────
   Sessioned — shared token + accessibility layer
   Injected into every page at build time by scripts/inject-partials.mjs. Do not paste this into
   individual pages: the whole point is that it exists once.

   WHY THIS FILE EXISTS. The 8 Sep 2026 audit found brand orange #E85D3A carrying white text at
   3.47:1 (WCAG AA needs 4.5:1) on every primary CTA site-wide, and only TWO :focus-visible rules
   across all six stylesheets. Both are one-line fixes that had to land in 46 separate files,
   because there is no shared stylesheet. This is that shared stylesheet.
   ───────────────────────────────────────────────────────────────────────────────────────────── */

:root{
  /* Decorative fill / large display text only. Never white text on this. */
  --brand-orange: #E85D3A;
  /* Any surface carrying white text. White on #C0432A ≈ 5.2:1 — passes AA for all sizes.
     Already in-palette: 11 pages use it as --flame-ink today.
     The literal moved to --btn-primary-bg (item 11c, bottom of this file) on 26 Oct 2026: it was
     written out twice, here and as --nl-flame-btn, and two copies of one fill is how a fill drifts.
     This name is UNCHANGED and still read by seven pages plus consent.html, header.html and
     scripts/build-revision-hubs.mjs — it just resolves through the single source now. */
  --brand-orange-strong: var(--btn-primary-bg);
  --brand-orange-hover: #A5381F;
  /* Focus ring tokens — one for cream surfaces, one for the navy/gradient sections.

     --focus-ring-dark WAS #C0432A, the button fill, which made the ring read as a second CTA
     sitting on top of the one you had just tabbed to. Set to navy #141E2B on 26 Oct 2026 per
     docs/revision-design-spec.md section 1 ("3px solid navy, 3px offset"), which is also what the
     `.nl-focusable`/`.nl-btn`/`.nl-chip`/`.nl-field` rules at the bottom of this file already use
     via --nl-navy. So this is a CONSOLIDATION, not a new colour: the site now has ONE dark focus
     ring and it is the same value the new-look layer was always going to use.

     Non-text contrast (WCAG 1.4.11, 3:1) rather than 4.5:1, because a ring is not text. #141E2B
     measures about 15:1 on cream #FBF6F0, 14:1 on sand #F3ECE1 and 15.9:1 on white — far better
     than the #C0432A it replaces (4.8:1 / 4.4:1 / 5.2:1). The light ring is unchanged and still
     handles the dark bands, where navy would vanish.

     Two rules in index.html (.sn-stage-row:focus-visible, .sn-motion-btn:focus-visible) read this
     token too; both move to navy with it, which is the intended single ring. */
  --focus-ring-dark: #141E2B;
  --focus-ring-light: #FFD9A0;

  /* ── 2.2 Muted text contrast ──────────────────────────────────────────────────────────────
     #8A97A8 measured 2.97:1 on white and 2.76:1 on --sand; AA needs 4.5:1. Note the audit tied
     this to "12px text", but WCAG's large-text allowance only starts at 24px regular / 18.66px
     bold — so every one of these needs 4.5:1 whatever its size. The colour is the fix; the size
     is a separate legibility question.
     #68727F keeps the original hue (214deg) and saturation exactly, so the palette is unchanged
     in character, and stays lighter than --ink-soft so the soft > muted hierarchy still reads.
     Measured: 4.88:1 on white, 4.54:1 on --sand. */
  --ink-muted: #68727F;
}

/* ── 2.1 Primary CTA contrast ────────────────────────────────────────────────────────────────
   Changes the FILL, not the text. A text-shadow would not fix the measured ratio. */
.btn-primary,
.sn-hdr-cta,
.stats-cta,
.hiw-cta,
.rf-submit,
.teach-cta,
/* The sticky mobile CTA was missed by the 8 Sep sweep because it is an ID selector, not one of
   the .btn-* classes — it hardcoded var(--flame) at 3.47:1. It sits on the highest-traffic
   surface we have (78% of sessions land on a phone), so it was the worst one to leave failing. */
#stickyCTA button,
button.btn-primary,
a.btn-primary{
  background: var(--brand-orange-strong) !important;
  color: #fff !important;
}
/* ── 2.1b The white-text fills 2.1 did not name ──────────────────────────────────────────────
   Measured 19 Oct 2026: 53 elements across 22 pages still carried white text on --flame at
   3.47:1, because 2.1 above lists CTA classes by name and these are not among them. Biggest by
   far is the consent banner's "Accept All", which appears on every page; it is an inline style,
   so it is fixed in partials/consent.html itself, and contact.html's bare `button` selector is
   fixed in that page, because a bare `button` rule here would repaint every button on the site.

   DELIBERATELY NOT !important, unlike 2.1. This block is injected after every page's own <style>
   (verified in the build output: sn-site-tokens is the last stylesheet in <head> on every page),
   so at equal specificity it already wins. Staying un-important is what lets the variants keep
   working: `.btn.ocean` and `.btn-ghost` are 0,2,0 against `.btn`'s 0,1,0 and still override, so
   the ocean button stays ocean and the ghost button stays a ghost. An !important here would flood
   all three into the same orange, which is the mistake the regression note below records.

   Only SOLID fills that carry white text are listed. Decorative uses of --flame — the founding
   dot, unread markers, the sent-message bubble, the selected slot, .pe-mark, section rules and
   the italic words in a headline — are left exactly as they are.

   AND NOR ARE TRANSLUCENT TINTS, which is the trap here. `.chip.on`, `.dash-ni.on` and `a.dash-ni`
   are rgba(232,93,58,0.04/0.18) washes behind --flame-ink or --flame-light text, not white on
   orange. They were in the first draft of this rule because the detector that found the 53
   buttons compared the rgb components and ignored the alpha channel, so a 4% wash looked
   identical to a solid fill. Repainting them would have turned a subtle selected state into a
   solid dark-orange block with white text — a design change nobody asked for. If you extend this
   list, check the alpha. */
.btn,
.btn.flame,
.idea-cta,
.ft-news-form button{
  background: var(--brand-orange-strong);
  color: #fff;
}
/* Hover has to clear 4.5:1 too, and two of these set their own hover to a lighter orange
   (#D04E2E is 4.09:1 with white — a fail that only appears under the pointer). --brand-orange-hover
   #A5381F is 6.59:1. */
.btn:hover,
.btn.flame:hover,
.idea-cta:hover,
.ft-news-form button:hover{
  background: var(--brand-orange-hover);
  color: #fff;
}

/* ── REGRESSION FIX, 11 Sep 2026 — the "How Sessioned Works" button rendered as a blank orange box.
   Cause was this very file. Inside a dark band the design inverts the CTA: index.html carries
   `.sn-band .hiw-cta{background:#fff;color:var(--flame-ink)!important}`. The rule above then added
   `background: var(--brand-orange-strong)!important` at LOWER specificity (0,1,0 vs 0,2,0) — but
   `!important` beat the band's un-important background, while the band's `!important` colour beat
   ours on specificity. Net result: orange text on an orange background, i.e. an invisible label.
   Restoring the inversion explicitly, at matching specificity. #C0432A on white is 5.15:1, so the
   button is now both visible AND accessible — the original 3.47:1 problem does not come back. */
.sn-band .hiw-cta,
.sn-band .section-head a,
.sn-band .stats-cta{
  background: #fff !important;
  color: var(--brand-orange-strong) !important;
}
.sn-band .hiw-cta:hover,
.sn-band .section-head a:hover,
.sn-band .stats-cta:hover{
  background: #FFF4EE !important;
  color: var(--brand-orange-hover) !important;
}

.btn-primary:hover,
.sn-hdr-cta:hover,
.stats-cta:hover,
.rf-submit:hover,
button.btn-primary:hover,
a.btn-primary:hover{
  background: var(--brand-orange-hover) !important;
}

/* ── 2.3 Global keyboard focus ───────────────────────────────────────────────────────────────
   Previously only .sn-trustchip and .sn-quote-more had any visible focus state, so a keyboard
   user could not see where they were anywhere else on the site. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible{
  outline: 3px solid var(--focus-ring-dark);
  outline-offset: 2px;
  border-radius: inherit;
}
/* On dark sections the dark ring would disappear, so flip it. */
.sn-band :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.hero :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.sn-ftr :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
footer :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible{
  outline-color: var(--focus-ring-light);
}

/* ── 3.1 Icons ───────────────────────────────────────────────────────────────────────────────
   Sized in em, so an icon inherits whatever font-size the emoji it replaced was using — that is
   what makes the swap layout-neutral. currentColor means it also inherits the text colour, which
   emoji never could. */
.sn-i{
  width:1em; height:1em;
  display:inline-block; vertical-align:-0.125em;
  flex:none; fill:none;
  /* An emoji is a multi-colour picture and is visible on any background. These inherit colour, so
     without a default they take the surrounding text colour and can read as accidental — or vanish
     where the text colour matches the surface. Brand orange makes them deliberate. */
  color: var(--brand-orange-strong);
}
/* Flip to white anywhere the surface is dark or solid brand. */
.sn-band .sn-i, .hero .sn-i, footer .sn-i, .sn-ftr .sn-i,
.how-band .sn-i, .teach-main .sn-i, .rf-left .sn-i, .dash-side .sn-i{ color:#fff; }

/* ── Verified-review strip ────────────────────────────────────────────────────────────────────
   Deliberately reads as a sourced citation, not as a platform score: the stars are decorative,
   the number is stated once, and the origin is in the sentence beside it. */
.sn-vproof{
  grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:baseline;
  justify-content:center; gap:6px 10px; margin-top:18px; padding-top:16px;
  border-top:1px solid rgba(20,30,43,0.08); text-align:center;
}
.sn-vproof-stars{ color:var(--gold,#F5A623); font-size:1.05rem; letter-spacing:1px; }
.sn-vproof-score{ font-family:'Fraunces',Georgia,serif; font-size:1.35rem; font-weight:600; line-height:1; }
/* ── .sn-vproof-txt CONTRAST, darkened 26 Oct 2026 ─────────────────────────────────────────────
   It was --ink-soft (#5A6B7F). MEASURED, not assumed: the strip now lives in the tutor-cards band
   and the painted background is resolved by walking the ancestor chain —
   span.sn-vproof-txt and div.sn-vproof are both rgba(0,0,0,0), div.sts-inner is too, and the first
   solid fill is section.sn-tutorstrip at rgb(251,246,240) = cream #FBF6F0. There is NO gradient
   anywhere in that chain, so the ratio is a straight two-colour comparison and axe agrees with it.

       before  #5A6B7F on #FBF6F0  = 5.08:1   at 13.76px (0.82rem/13.1px under 600px)
       after   #4A5360 on #FBF6F0  = 7.24:1   same sizes

   So the old value PASSED AA — which is why the contrast gate was green on it and why this is a
   legibility fix rather than a violation fix. At 13-14px, 5.08:1 is the lightest text in a strip
   whose whole job is to be read, and the strip's own note calls the number the evidence.

   #4A5360 IS NOT A NEW COLOUR. It is --nl-ink-muted, board 01's muted ink, already in this file
   and already chosen for exactly this reason once before: see the .sn-lite-note block below, where
   it was picked because it clears AA on all six surfaces this site paints text on (worst case
   6.14:1 on deep tint #EDE3D6). Reusing it keeps the site to one muted ink instead of three.
   --ink-soft itself is left alone: it is read by dozens of rules on surfaces nobody has measured,
   and moving the token would repaint text nobody asked about. The one rule that was too light is
   the one that changes. */
.sn-vproof-txt{ font-size:0.86rem; color:var(--nl-ink-muted,#4A5360); max-width:52ch; }
.sn-vproof-txt a{ color:var(--brand-orange-strong); font-weight:600; white-space:nowrap; }
@media(max-width:600px){ .sn-vproof{ margin-top:14px; } .sn-vproof-txt{ font-size:0.82rem; } }

/* ── 2.5 Prose links, and the review stars ───────────────────────────────────────────────────
   Added 19 Oct 2026 from a measurement, not an eyeball: every page was rendered in Chromium and
   each text node's computed colour compared with its real background.

   LINKS. Around twenty static pages carry `a{color:var(--flame)}` in their own inline <style> —
   #E85D3A, which is 3.23:1 on cream and 2.95:1 on sand against the 4.5:1 AA needs. It is the same
   defect in twenty files, which is exactly what this layer is for: one rule here instead of
   twenty edits and a twenty-first page that gets forgotten.

   --brand-orange-hover (#A5381F), not --brand-orange-strong (#C0432A). #C0432A was picked by
   measuring against cream, where it is 4.79:1 and passes — but half these pages set prose on sand
   #F3ECE1, where it is 4.39:1 and fails. #A5381F is 6.14:1 on cream, 5.62:1 on sand and 6.59:1 on
   white, so it passes on every surface the site actually uses. Same reasoning, and the same
   value, as --flame-ink inside the .sn-pe scope.

   SCOPED TO UNCLASSED PROSE LINKS. `a:not([class])` deliberately leaves alone every link that
   carries a class — buttons, nav items, the footer's links on navy, and above all the wordmark,
   which is a logotype and exempt from contrast requirements under WCAG 1.4.3. Recolouring it
   would fork the brand across 55 pages to move a score; see the note at 2.4 above, where exactly
   that was done once and reverted. */
main a:not([class]),
article a:not([class]),
.wrap a:not([class]),
a.sn-ctx{
  color: var(--brand-orange-hover);
}

/* STARS. --gold #F5A623 is 1.89:1 on cream, 1.73:1 on sand. These are decorative — every place
   they appear states the score as text beside them, which is why the review strip's own note
   calls them decorative — so the criterion is 1.4.11 non-text contrast at 3:1, not 4.5:1.
   #A86F00 keeps the amber hue and measures 3.96:1 on cream, 3.62:1 on sand and 4.25:1 on white,
   clearing 3:1 on every surface with room to spare. It is set as a token override so the three
   places stars are drawn — the verified-review strip, the testimonial cards and the tutor-card
   rating — all move together rather than drifting into three golds. */
:root{ --gold: #A86F00; }
.sn-vproof-stars, .sn-quote-stars{ color: var(--gold); }

/* ── 2.4 Footer link targets ──────────────────────────────────────────────────────────────────
   Found 18 Sep 2026 while auditing /shop and /planner. Not introduced by that restyle — it is in
   the sn-ftr block that is copy-pasted into 49 pages, so it has been failing on every page of the
   site since that block was written. Fixed here once rather than swept through 49 files.

   .sn-ftr-nav a had no vertical padding, so each link was a 34×18px target against the 24×24
   minimum. Padding raises them to 28px; the matching line-height keeps stacked rows from
   overlapping once the nav wraps on a phone, which is the failure mode a bare padding bump would
   have introduced. .sn-ftr-copy gets the same treatment — Lighthouse only named /faq, but the
   copy row's links are smaller still and fail for the identical reason.

   ── THE WORDMARK IS NOT IN THIS SECTION, AND MUST NOT BE ────────────────────────────────────
   For a few hours on 18 Sep it was: .sn-hdr-logo was recoloured to --brand-orange-strong to clear
   a Lighthouse color-contrast failure (#E85D3A on cream is 3.23:1). That was wrong on the rule and
   wrong on the asset. WCAG 1.4.3 exempts logotypes outright — "text that is part of a logo or
   brand name has no minimum contrast requirement" — so there was no failure to fix. axe-core
   cannot tell a wordmark from a paragraph and flags it anyway; that is a limitation of the tool,
   not a defect in the page, and it is the one color-contrast node on /shop and /planner that is
   correct to leave red.

   The Sessioned wordmark is locked: "Session" in #E85D3A, "ed" in navy, never recoloured. It is
   live across the site, the ads and Trustpilot, so a CSS override here would silently fork the
   brand on 55 pages to move a score. Logos are exempt; body links are not — that distinction is
   the whole of the rule, and --flame-ink stays darkened for everything that is actually text. */
.sn-ftr-nav{ line-height:2.1; }
.sn-ftr-copy{ line-height:1.9; }
.sn-ftr-nav a,
.sn-ftr-copy a{ display:inline-block; padding:5px 0; }

/* Screen-reader-only helper, for text equivalents of star ratings and icon-only controls. */
.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;
}


/* ═══ SECTION RHYTHM SYSTEM ═════════════════════════════════════════════════════════════════
   Phase 2's real prerequisite. Discovery found no spacing system at all: container max-widths
   of 1000/1080/1100/1200/1280px used interchangeably, breakpoints at 560/767/768/820/860/900px,
   and exactly ONE dark band against three plain sections — so there is no alternating rhythm to
   build on, only ad-hoc values.

   These are DEFINITIONS ONLY. Nothing on the site uses them yet, so this commit cannot change a
   single pixel. Phase 2 adopts them section by section, which keeps each section independently
   revertible instead of one large restyle that has to be accepted or rejected whole.
   ═══════════════════════════════════════════════════════════════════════════════════════════ */
:root{
  /* Container. Brief asks for 1280–1440; 1320 sits mid-range and is a clean 3x440 for the
     three-column tutor grid. --sn-measure caps BODY COPY at ~70ch inside that wider shell, so
     widening the container does not produce unreadable line lengths. */
  --sn-container: 1320px;
  --sn-gutter: clamp(20px, 5vw, 48px);
  --sn-measure: 68ch;

  /* Vertical rhythm. Fluid so sections breathe on desktop without swallowing a phone screen. */
  --sn-sec-y:  clamp(56px, 8vw, 128px);
  --sn-sec-y-tight: clamp(36px, 5vw, 72px);

  /* Spacing scale — 4px base. Replaces the ad-hoc 6/8/9/10/11/12/14/16/18px values in use. */
  --sn-1: 4px;  --sn-2: 8px;   --sn-3: 12px;  --sn-4: 16px;
  --sn-5: 24px; --sn-6: 32px;  --sn-7: 48px;  --sn-8: 64px;

  --sn-ground-light: #FBF6F0;   /* cream */
  --sn-ground-dark:  #141E2B;   /* navy  */
}

/* One section primitive. --sn-sec-bg is set by the modifier so a section never hardcodes a
   colour, which is what makes "no two adjacent sections share a background" checkable. */
.sn-sec{
  padding-block: var(--sn-sec-y);
  background: var(--sn-sec-bg, transparent);
  color: var(--sn-sec-fg, inherit);
}
.sn-sec--cream{ --sn-sec-bg: var(--sn-ground-light); --sn-sec-fg: var(--ink, #141E2B); }
.sn-sec--navy { --sn-sec-bg: var(--sn-ground-dark);  --sn-sec-fg: #EDE7DD; }
.sn-sec--tight{ padding-block: var(--sn-sec-y-tight); }

/* Full-bleed background with a contained child — the founder band and stats row both need this,
   and it avoids the horizontal-scroll bug that 100vw causes when a scrollbar is present. */
.sn-sec > .sn-in{
  max-width: var(--sn-container);
  margin-inline: auto;
  padding-inline: var(--sn-gutter);
}
.sn-measure{ max-width: var(--sn-measure); }

/* Icons inherit the band's foreground, so a section flip cannot leave an invisible icon —
   the exact failure that made the subject-card icons white-on-cream earlier this week. */
.sn-sec--navy  .sn-i{ color: var(--mint, #5CC3B2); }
.sn-sec--cream .sn-i{ color: var(--teal, #1A7A6D); }

@media (prefers-reduced-motion: reduce){
  .sn-sec [class*="reveal"]{ animation: none !important; opacity: 1 !important; transform: none !important; }
}


/* ═══ METRIC-MATCHED FONT FALLBACKS ═════════════════════════════════════════════════════════
   Fonts load with display=swap, so the first paint uses Georgia/Arial and then every line of
   text re-flows when Playfair and DM Sans arrive. On /planner that reflow WAS the Cumulative
   Layout Shift: four consecutive Lighthouse runs measured 0.0545, 0.0241, 0.0241, 0.0240 — the
   0.0545 being the cold-cache run, which is the only run a first-time visitor ever gets, and
   which is over the 0.05 gate. Averaging the warm runs and calling it passed would have been
   measuring the wrong visitor.

   These two faces are the standard fix: a fallback whose metrics are forced to match the real
   font, so the swap changes the letterforms and moves nothing. Measured in Chrome at 100px on
   the actual built page, not taken from a table:

     Playfair Display  width 3736.2  ascent 108  descent 25   (line box 133)
     Georgia           width 3657.53 ascent  92  descent 22   (line box 114)
     DM Sans           width 3817.11 ascent  99  descent 31   (line box 130)
     Arial             width 3677.98 ascent  91  descent 21   (line box 115)

   size-adjust is the width ratio. The ascent/descent overrides are the real font's metrics
   DIVIDED by that ratio, because size-adjust scales them again afterwards — get that division
   the wrong way round and the line box is out by the square of the ratio. line-gap-override is
   0% because in both real fonts ascent+descent already equals the line box exactly.

   The limitation, stated rather than hidden: local() means this only works where Georgia and
   Arial exist. On Android neither does, the @font-face fails to load, and the stack falls
   through to the unadjusted generic — no worse than before, just not better. */
@font-face{
  font-family:'Playfair Fallback';
  src:local('Georgia'), local('Times New Roman');
  size-adjust:102.15%; ascent-override:105.72%; descent-override:24.47%; line-gap-override:0%;
}
@font-face{
  font-family:'DM Sans Fallback';
  src:local('Arial'), local('Helvetica');
  size-adjust:103.78%; ascent-override:95.39%; descent-override:29.87%; line-gap-override:0%;
}


/* ═══ PREMIUM EDITORIAL LAYER ════════════════════════════════════════════════════════════════
   The token set for /shop, /planner and the homepage revision-tools band. Added here rather than
   in a new stylesheet because this file IS the site's shared CSS — a second one would recreate
   the exact duplication the header of this file exists to complain about.

   SCOPED TO .sn-pe, NOT :root, and that is not fussiness. This file is injected LAST in <head>,
   so it outranks every page's own inline <style>. Three of these names — --sand, --line, --flame
   — already mean something different in the 47 pages that declare their own :root, and --sand in
   particular is the page background of the entire site. Putting --sand:#F3ECE1 on :root here
   would silently repaint every page on sessioned.co.uk. The scope class is what makes this layer
   additive instead of a site-wide restyle nobody asked for.

   ── The flame, and why there are two of them ──────────────────────────────────────────────────
   The brief specifies --flame #E85D3A for buttons and for the italic words in the h1. Measured
   against --cream that is 3.23:1, and white on it is 3.47:1 — both below the 4.5:1 the same brief
   sets as a gate, and 3.47:1 is the precise failure the 8 Sep audit logged at the top of this
   file. So the token splits the way the rest of the site already splits it:
     --flame      #E85D3A  decorative fills only — tick dots, callout markers, rules, the quote
                           glyph, the shadow glow. Never carries text.
     --flame-ink  #A5381F  anything a word sits on or is set in.

   WHY --flame-ink IS #A5381F AND NOT #C0432A. It was #C0432A, chosen by measuring it against
   --cream, where it is 4.79:1 and passes. That measurement was on the wrong background. Half
   these pages set text on --sand #F3ECE1, not --cream #FBF6F0, and on sand #C0432A is 4.39:1
   — a fail, and exactly the case the brief told me to check. Lighthouse found it on eleven
   nodes: .pe-eyebrow, .pe-link, the four exam-board links, two mailtos and /account/downloads.
   The fix is one token rather than eleven overrides, because an override list is a list you can
   forget to add the twelfth item to. #A5381F is 6.14:1 on cream, 5.62:1 on sand, and white on
   it is 6.59:1, so it passes on every surface these pages actually use. Hover goes to #8A2E18
   (7.20:1 on sand) to keep the darkening legible. Cream is not sand: check the real background.
   ───────────────────────────────────────────────────────────────────────────────────────────── */
.sn-pe{
  --cream:#FBF6F0;  --sand:#F3ECE1;  --line:#E3DACD;  --line2:#C9BFB1;
  --navy:#141E2B;   --navy2:#1F2B3B; --ink2:#3D4652;  --mute:#CFD6DE;
  --flame:#E85D3A;  --flame2:#D9512F;
  --flame-ink:#A5381F; --flame-ink-hover:#8A2E18;
  --teal:#1A7A6D;

  --shadow-1:0 1px 2px rgba(20,30,43,.06), 0 8px 24px rgba(20,30,43,.08);
  --shadow-2:0 2px 6px rgba(20,30,43,.06), 0 16px 40px rgba(20,30,43,.08);
  --shadow-3:0 2px 4px rgba(20,30,43,.08), 0 24px 48px rgba(20,30,43,.16);
  --shadow-hero:0 1px 2px rgba(20,30,43,.12), 0 12px 24px rgba(20,30,43,.12), 0 40px 80px rgba(20,30,43,.28);
  --shadow-flame:0 8px 20px rgba(232,93,58,.35);

  --ease:cubic-bezier(.2,.8,.2,1);
  --dur:350ms;  --dur-slow:600ms;
  --radius:10px; --radius-lg:18px; --radius-xl:24px;
  --measure:62ch;
}

/* ── Arrival ─────────────────────────────────────────────────────────────────────────────────
   The only JS-driven motion on these pages. .pe-rise starts displaced; an IntersectionObserver
   adds .is-in once. NO opacity:0 in the resting state — if the observer never runs (JS off, old
   browser, script error) the content is already visible and only the transform is missing. A
   reveal pattern that hides content first is a reveal pattern that can hide it permanently. */
.sn-pe .pe-rise{ transform:translateY(16px); opacity:.001; transition:transform var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease); }
.sn-pe .pe-rise.is-in{ transform:none; opacity:1; }
.sn-pe.no-js .pe-rise{ transform:none; opacity:1; }

/* Focus, per the brief: 2px, offset 3px. Beats the :where() rule above on specificity, which is
   deliberate — that one is the site-wide floor, this is the shop pages' own. */
.sn-pe :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
  outline:2px solid var(--flame-ink); outline-offset:3px; border-radius:4px;
}

/* ── prefers-reduced-motion ──────────────────────────────────────────────────────────────────
   Everything stops, and every element is shown in its FINAL state — including .pe-rise, which
   would otherwise sit 16px low forever with its transition disabled. */
@media (prefers-reduced-motion: reduce){
  .sn-pe *, .sn-pe *::before, .sn-pe *::after{
    animation-duration:1ms !important; animation-iteration-count:1 !important;
    transition-duration:1ms !important; scroll-behavior:auto !important;
  }
  .sn-pe .pe-rise{ transform:none !important; opacity:1 !important; }
}

/* ── Free-planner capture (shop-lite) ─────────────────────────────────────────────────────────
   One form, three pages: the free card on /shop, the lite button on /planner, and the homepage
   band. Styled HERE rather than three times inline because this layer is injected into every
   built page and is the only shared stylesheet the site has — and because the three pages carry
   two different token sets. /shop and /planner are inside .sn-pe; the homepage is not. So every
   value below falls back to a literal, and nothing depends on a token that only one of them has.

   NOT scoped to .sn-pe for that exact reason. */
.sn-lite{ margin:0; }
.sn-lite-row{ display:flex; flex-wrap:wrap; gap:8px; align-items:stretch; max-width:420px; }
.sn-lite input[type=email]{
  flex:1 1 200px; min-width:0; padding:11px 14px; font:inherit; font-size:0.94rem;
  color:var(--ink,#141E2B); background:#fff;
  border:1px solid var(--line,rgba(20,30,43,.18)); border-radius:8px;
}
.sn-lite input[type=email]::placeholder{ color:var(--ink-muted,#6B7A8B); opacity:1; }
.sn-lite button{
  flex:0 0 auto; padding:11px 20px; font:inherit; font-size:0.92rem; font-weight:600;
  color:#fff; background:var(--teal,#1A7A6D); border:1px solid transparent; border-radius:8px;
  cursor:pointer; min-height:44px;
}
.sn-lite button:hover{ filter:brightness(.94); }
.sn-lite button[disabled]{ opacity:.6; cursor:progress; }
/* The reply line. Height is NOT reserved: these sit at the bottom of a card and an always-present
   empty line would push the card taller for everyone to serve the one moment after a submit. */
.sn-lite-msg{ font-size:0.86rem; line-height:1.5; margin:10px 0 0; }
.sn-lite-msg:empty{ display:none; }
.sn-lite-msg.is-ok{ color:var(--teal-ink,#146055); font-weight:600; }
.sn-lite-msg.is-err{ color:var(--flame-ink,#A5381F); }
/* ── .sn-lite-note CONTRAST, corrected 25 Oct 2026 ─────────────────────────────────────────────
   --ink-muted (#68727F) was chosen in the 8 Sep audit against WHITE and --sand, where it measures
   4.88:1 and 4.54:1 and passes. This note does not only sit on those. Measured on every surface it
   actually lands on across the seventeen pages that carry it:

       cream     #FBF6F0  4.54   pass
       card      #FFFCF8  4.77   pass
       sand      #F3ECE1  4.16   FAIL
       tint      #F3EADF  4.10   FAIL
       deep tint #EDE3D6  3.85   FAIL
       white     #ffffff  4.88   pass

   So it failed AA on three of the six, and the audit did not catch it because it never measured
   those three. #4A5360 — board 01's muted ink — passes all six, worst case 6.14:1 on deep tint.

   SCOPED TO THIS RULE, NOT APPLIED TO --ink-muted. The token is read by other components whose
   surfaces were measured and do pass; moving it would repaint text nobody asked about and make
   the before/after unreadable. The one rule that fails is the one that changes.

   index.html's `.sn-sbcard .sn-lite-note` override is deliberately left alone: it is darker still
   (#4A5A6B), already passes, and carries its own note explaining why it exists. */
.sn-lite-note{ font-size:0.78rem; color:#4A5360; margin:8px 0 0; }
.sn-lite-note a{ color:inherit; }
/* The newsletter opt-in tick (22 Sept 2026). Sits between the row and the note. Never `checked` —
   a pre-ticked consent box is not consent, and scripts/check-consent-ticks.mjs fails on one. */
.sn-lite-tick{ display:flex; align-items:flex-start; gap:8px; margin:10px 0 0; font-size:0.82rem;
  line-height:1.5; color:var(--ink-soft,#4A5867); cursor:pointer; max-width:420px; }
.sn-lite-tick input[type=checkbox]{ width:16px; height:16px; flex:0 0 auto; margin:2px 0 0;
  accent-color:var(--flame,#E85D3A); }
@media (max-width:420px){
  .sn-lite-row{ flex-direction:column; }
  .sn-lite button{ width:100%; }
}

/* ═══ MOTION + HERO SYSTEM (16 Oct 2026) ══════════════════════════════════════════════════════
   Carries the homepage's visual language onto the static pages: an animated dark page-hero, the
   italic-highlighter accent, a cream/dark card rhythm and scroll-reveal. SELF-CONTAINED by design
   — every component here uses its own class and literal/dark values, so adopting it on a page is
   additive (add the markup + classes) and never reaches the page's own :root tokens. That is the
   opposite trade-off from .sn-pe above, and deliberate: these go on 50 content pages that each
   carry their own inline styles, and a token override would silently repaint them. Reduced-motion
   and no-JS both resolve to "everything shown, nothing moving" — a reveal that hides first is a
   reveal that can hide forever. Nothing here is scoped to .sn-pe, so any page can opt in.
   ───────────────────────────────────────────────────────────────────────────────────────────── */

/* ── Scroll-reveal. Visible by DEFAULT. The inline bootstrap adds .sn-anim to <html> only when JS
   is present AND motion is allowed — the only state that hides-then-reveals. JS off, no observer,
   or reduced-motion: the .sn-anim rule never applies and content is simply shown. */
.sn-anim .sn-reveal{ opacity:.001; transform:translateY(20px);
  transition:opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.sn-anim .sn-reveal.is-in{ opacity:1; transform:none; }
.sn-reveal.d1{transition-delay:.06s}.sn-reveal.d2{transition-delay:.12s}.sn-reveal.d3{transition-delay:.18s}
.sn-reveal.d4{transition-delay:.24s}.sn-reveal.d5{transition-delay:.30s}.sn-reveal.d6{transition-delay:.36s}

/* ── Italic-highlighter accent for a word in an h1/h2 (replaces the flat .hl colour swap). The
   underline stroke draws once; on a dark hero it is flame-tinted, on cream it is the amber wash. */
.sn-hl{ font-family:'Fraunces',Georgia,serif; font-style:italic; font-weight:500;
  color:var(--flame-ink,#A5381F); position:relative; white-space:nowrap; }
.sn-hl::after{ content:''; position:absolute; left:-4%; right:-4%; bottom:.04em; height:.36em;
  background:rgba(246,193,119,.5); border-radius:4px; z-index:-1;
  transform:scaleX(0); transform-origin:left; animation:snHlDraw .85s cubic-bezier(.2,.8,.2,1) .45s forwards; }
.sn-phero .sn-hl{ color:#F2816A; }
.sn-phero .sn-hl::after{ background:rgba(242,129,106,.32); }
@keyframes snHlDraw{ to{ transform:scaleX(1); } }

/* ── Animated dark page-hero. Mirrors the homepage hero: a dark gradient, two drifting blurred
   glow blobs and slow-drifting serif words, all behind the content (z-index) and pointer-safe. */
.sn-phero{ position:relative; overflow:hidden; color:#fff;
  background:linear-gradient(145deg,#141E2B 0%,#1F3044 30%,#2A1B3D 60%,#4A2040 100%);
  padding:clamp(30px,5vw,58px) clamp(16px,4vw,40px) clamp(52px,7vw,84px); }
.sn-phero > *{ position:relative; z-index:2; }
.sn-phero .sn-glow{ position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.sn-phero .sn-glow b{ position:absolute; display:block; border-radius:50%; filter:blur(58px); }
.sn-phero .sn-glow b:nth-child(1){ width:50vw; height:48vw; left:-12vw; top:-22vw;
  background:radial-gradient(circle,rgba(139,92,246,.40),transparent 62%); animation:snG1 24s ease-in-out infinite alternate; }
.sn-phero .sn-glow b:nth-child(2){ width:46vw; height:44vw; right:-12vw; bottom:-20vw;
  background:radial-gradient(circle,rgba(92,195,178,.30),transparent 62%); animation:snG2 28s ease-in-out infinite alternate; }
@keyframes snG1{ to{ transform:translate(12vw,10vh) scale(1.25); } }
@keyframes snG2{ to{ transform:translate(-10vw,-8vh) scale(1.2); } }
.sn-phero .sn-drift{ position:absolute; inset:0; z-index:1; pointer-events:none; overflow:hidden; }
.sn-phero .sn-drift span{ position:absolute; font-family:'Fraunces',Georgia,serif; font-style:italic;
  color:rgba(255,255,255,.055); white-space:nowrap; }
.sn-phero .sn-drift span:nth-child(1){ font-size:2.8rem; top:16%; left:-30%; animation:snDr 42s linear infinite; }
.sn-phero .sn-drift span:nth-child(2){ font-size:1.9rem; top:46%; left:-26%; animation:snDr 54s linear infinite 7s; }
.sn-phero .sn-drift span:nth-child(3){ font-size:2.5rem; top:70%; left:-30%; animation:snDr 48s linear infinite 20s; }
@keyframes snDr{ to{ transform:translateX(150vw); } }
.sn-phero .sn-ph-in{ max-width:1080px; margin:0 auto; }
.sn-phero .sn-eyebrow{ font-size:.72rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#5CC3B2; margin-bottom:12px; }
.sn-phero h1{ font-family:'Fraunces',Georgia,serif; font-weight:600; letter-spacing:-.015em; line-height:1.07;
  font-size:clamp(32px,5vw,56px); max-width:15ch; margin:0 0 15px; color:#fff; }
.sn-phero .sn-ph-sub{ color:rgba(255,255,255,.76); font-size:clamp(1rem,1.6vw,1.12rem); max-width:46ch; margin:0 0 24px; line-height:1.6; }

/* ── Pill chips (trust row). */
.sn-chips{ display:flex; flex-wrap:wrap; gap:9px; margin:0 0 26px; }
.sn-chip{ display:inline-flex; align-items:center; gap:6px; font-size:.78rem; font-weight:500;
  padding:7px 13px; border-radius:100px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); color:#fff; }

/* ── Feature card grid (e.g. "what this subject covers"), replaces a bullet list. */
.sn-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:36px 0 0; }
@media(max-width:840px){ .sn-cards{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:520px){ .sn-cards{ grid-template-columns:1fr; } }
.sn-card{ background:#fff; border:1px solid rgba(20,30,43,.06); border-radius:18px; padding:24px;
  box-shadow:0 10px 30px rgba(20,30,43,.05); transition:transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s cubic-bezier(.2,.8,.2,1); }
.sn-card:hover{ transform:translateY(-4px); box-shadow:0 18px 44px rgba(20,30,43,.1); }
.sn-card .sn-card-ic{ width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  font-family:'Fraunces',Georgia,serif; font-size:1.3rem; background:rgba(26,122,109,.1); color:#1A7A6D; margin-bottom:14px; }
.sn-card h3{ font-family:'Fraunces',Georgia,serif; font-weight:600; font-size:1.14rem; margin:0 0 7px; color:var(--ink,#141E2B); }
.sn-card p{ color:var(--ink-soft,#5A6B7F); font-size:.92rem; line-height:1.55; margin:0; }

@media (prefers-reduced-motion:reduce){
  .sn-anim .sn-reveal{ opacity:1 !important; transform:none !important; }
  .sn-phero .sn-glow b, .sn-phero .sn-drift span{ animation:none !important; }
  .sn-phero .sn-drift{ display:none; }
  .sn-hl::after{ animation:none !important; transform:scaleX(1) !important; }
  .sn-card{ transition:none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   NEW-LOOK LAYER — board 01 of the "Sessioned Revision" design canvas.
   Added 25 Oct 2026, Stage 0 of the staged rebuild. See docs/revision-design-spec.md section 1,
   which is the transcription of that board.

   EVERYTHING BELOW IS INERT ON PURPOSE AND STAGE 0 PROVES IT. Custom properties change nothing
   until something reads them, and every rule is namespaced `.nl-`, which no page in this repo uses
   — checked across all 83 pages and the partials before the namespace was chosen. So this file can
   ship in the same bundle as the current design without moving a pixel, which is the point: the
   tokens land first, the stages that consume them land one at a time, and a visual diff between
   stages measures the restyle rather than the plumbing. scripts/shoot-pages.mjs --compare is the
   evidence, not an assertion.

   ONE DELIBERATE DISAGREEMENT WITH THE BOARD. Board 01 gives muted text as #4A5360 (about 7:1 on
   cream). The live site's --ink-muted is #68727F, chosen in the 8 September 2026 accessibility
   audit documented at the top of this file, where it replaced #8A97A8 and was picked to keep the
   original hue and saturation while clearing AA (4.88:1 on white, 4.54:1 on --sand). The build
   brief says the live site wins when the two disagree, so --ink-muted is UNCHANGED and the board's
   value is available separately as --nl-ink-muted for new-look components. Both pass AA; the
   board's is the darker of the two. Do not quietly merge them.
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */

:root{
  /* Grounds and surfaces */
  --nl-cream:        #FBF6F0;   /* page ground, never pure white */
  --nl-card:         #FFFCF8;   /* fill of every bordered card on cream */
  --nl-tint:         #F3EADF;   /* notices, pull-quote bands, university-pack covers */
  --nl-tint-deep:    #EDE3D6;   /* progress troughs, inner hairlines, row separators */
  --nl-tint-input:   #F7EFE5;   /* the "add a row" strip inside tables */

  /* Ink */
  --nl-navy:         #141E2B;   /* text and rules, about 15:1 on cream */
  --nl-ink-muted:    #4A5360;   /* board 01's muted text, about 7:1 — see the note above */

  /* Lines */
  --nl-line:         #D9CFC0;   /* grid lines and borders */
  --nl-line-hair:    #EDE3D6;   /* 1px separators inside tables and lists, lighter than --nl-line */

  /* Accents. The split matters: #E85D3A is a FILL and a display-type colour and must never carry
     white text (3.47:1, the exact fault the 8 Sep audit found). #C0432A is the button fill that
     does (about 5.2:1). #A5381F is the text-link colour on cream (6.1:1). */
  --nl-flame:        #E85D3A;   /* large headline words, today markers, deadlines — never white on it */
  --nl-flame-btn:    var(--btn-primary-bg);   /* every button fill, with white text — see item 11c */
  --nl-flame-link:   #A5381F;   /* text links on cream */
  --nl-flame-hover:  #7E2A16;   /* a:hover on every board */
  --nl-teal:         #1A7A6D;   /* progress, ticks and trust cues only */
  --nl-mint:         #5CC3B2;   /* fills behind navy text, never as text */

  /* Touch targets. 44px is the FLOOR, not the universal value — board 09's caption says "44 pixel
     targets" while the boards use 48px for buttons and form fields and 52px for the two
     highest-intent actions (email capture, Buy now). Named so a component picks one deliberately. */
  --nl-tap:          44px;
  --nl-tap-btn:      var(--btn-min-h);   /* the 48px primary-action floor — see item 11c */
  --nl-tap-intent:   52px;

  /* Phone gutter and focus ring */
  --nl-gutter:       16px;
  --nl-focus:        3px;
}

/* ── Focus. One ring, stated once. 3px solid navy with 3px offset, per board 01. ─────────────── */
.nl-focusable:focus-visible{ outline:var(--nl-focus) solid var(--nl-navy); outline-offset:var(--nl-focus); }

/* ── Buttons ──────────────────────────────────────────────────────────────────────────────────
   White text only ever sits on --nl-flame-btn. A ghost button borrows the navy. */
/* border-radius reads --btn-pill (999px). It was a literal 10px, which contradicted the spec's
   "999px pills — all buttons, chips, filter tabs" at section 1 line 124. Corrected IN PLACE rather
   than overridden from the item-11 block below, so .nl-btn--intent's 52px min-height still wins on
   document order — a later `.nl-btn{min-height:...}` rule would have silently beaten it. Inert
   either way: the `.nl-` namespace is used by no page in the repo (re-checked before this edit). */
.nl-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:var(--nl-tap-btn); padding:0 20px; border-radius:var(--btn-pill); border:1px solid transparent;
  font:500 16px/1.2 'DM Sans',system-ui,sans-serif; text-decoration:none; cursor:pointer; }
.nl-btn--primary{ background:var(--nl-flame-btn); color:#fff; }
.nl-btn--primary:hover{ background:var(--nl-flame-hover); color:#fff; }
.nl-btn--ghost{ background:transparent; color:var(--nl-navy); border-color:var(--nl-line); }
.nl-btn--ghost:hover{ border-color:var(--nl-navy); }
.nl-btn--intent{ min-height:var(--nl-tap-intent); font-size:17px; }
.nl-btn:focus-visible{ outline:var(--nl-focus) solid var(--nl-navy); outline-offset:var(--nl-focus); }

/* ── Chips. The 44px floor case: filter and level selectors. ─────────────────────────────────── */
.nl-chips{ display:flex; gap:8px; overflow-x:auto; -webkit-overflow-scrolling:touch;
  scrollbar-width:none; padding-bottom:2px; }
.nl-chips::-webkit-scrollbar{ display:none; }
/* The label size and colour read the shared level-chip tokens (item 11d below); the radius reads
   --btn-pill. Bound in the shorthand here rather than overridden later, so there is one place the
   chip's label is described. min-height stays --nl-tap: 44px is the spec's figure for a filter
   chip (line 294), deliberately not the 48px button floor. */
.nl-chip{ flex:0 0 auto; display:inline-flex; align-items:center; min-height:var(--nl-tap);
  padding:0 16px; border-radius:var(--btn-pill); border:1px solid var(--nl-line); background:var(--nl-card);
  color:var(--chip-label-ink); font:500 var(--chip-label-size)/1 'DM Sans',system-ui,sans-serif; text-decoration:none; }
.nl-chip[aria-pressed="true"],.nl-chip[aria-current="true"]{ background:var(--nl-navy); color:var(--nl-cream); border-color:var(--nl-navy); }
.nl-chip:focus-visible{ outline:var(--nl-focus) solid var(--nl-navy); outline-offset:var(--nl-focus); }

/* ── Cards, and the product card as a variant of one ─────────────────────────────────────────── */
.nl-card{ background:var(--nl-card); border:1px solid var(--nl-line); border-radius:18px;
  padding:24px; display:flex; flex-direction:column; gap:12px; }
.nl-card__eyebrow{ font:700 12px/1 'DM Sans',system-ui,sans-serif; letter-spacing:2px;
  text-transform:uppercase; color:var(--nl-ink-muted); margin:0; }
.nl-card__price{ font:600 24px/1.1 'Playfair Display',Georgia,serif; color:var(--nl-navy); }
/* CTA pinned to the bottom so cards of unequal copy length line their buttons up. */
.nl-card__cta{ margin-top:auto; }

/* ── Printables grid. Three up, collapsing to two then one, with the phone gutter honoured. ──── */
.nl-grid3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
@media (max-width:900px){ .nl-grid3{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px){ .nl-grid3{ grid-template-columns:minmax(0,1fr); gap:16px; } }
.nl-grid2{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
@media (max-width:620px){ .nl-grid2{ grid-template-columns:minmax(0,1fr); gap:16px; } }

/* ── Bundle card. A full-width card on phone; the saving line is rendered by the page only when
      the catalogue supplied BOTH prices, never computed here and never typed. ─────────────────── */
.nl-bundle{ border-color:var(--nl-navy); }
.nl-bundle__saving{ color:var(--nl-teal); font-weight:500; }

/* ── Breadcrumb ───────────────────────────────────────────────────────────────────────────────── */
.nl-crumb{ font:400 14px/1.4 'DM Sans',system-ui,sans-serif; color:var(--nl-ink-muted); }
.nl-crumb a{ color:var(--nl-flame-link); }
.nl-crumb a:hover{ color:var(--nl-flame-hover); }

/* ── Sticky buy bar. Phone only.
      THE PAGE MUST ADD BOTTOM PADDING of --nl-buybar-h, or this covers the consumer-rights notice
      and the footer — which is the one thing the build brief calls out about it. The height is a
      token so the padding and the bar cannot drift apart.
      If the price cannot be read the page renders NO button rather than a dead one; there is no
      disabled state here on purpose. ─────────────────────────────────────────────────────────── */
:root{ --nl-buybar-h:72px; }
.nl-buybar{ position:fixed; left:0; right:0; bottom:0; z-index:40;
  min-height:var(--nl-buybar-h); display:flex; align-items:center; gap:12px;
  padding:10px var(--nl-gutter); padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));
  background:var(--nl-card); border-top:1px solid var(--nl-line); }
.nl-buybar__price{ font:600 20px/1 'Playfair Display',Georgia,serif; color:var(--nl-navy); }
.nl-buybar__cta{ margin-left:auto; }
@media (min-width:901px){ .nl-buybar{ display:none; } }

/* ── Form fields. 16px minimum or iOS zooms the page on focus. ───────────────────────────────── */
.nl-field{ display:flex; flex-direction:column; gap:6px; }
.nl-field label{ font:500 15px/1.2 'DM Sans',system-ui,sans-serif; color:var(--nl-navy); }
.nl-field input,.nl-field select,.nl-field textarea{
  min-height:var(--nl-tap-btn); padding:10px 12px; border:1px solid var(--nl-line); border-radius:10px;
  background:#fff; color:var(--nl-navy); font:400 16px/1.3 'DM Sans',system-ui,sans-serif; }
.nl-field input:focus-visible,.nl-field select:focus-visible,.nl-field textarea:focus-visible{
  outline:var(--nl-focus) solid var(--nl-navy); outline-offset:var(--nl-focus); }

/* ── FAQ accordion. Styling only; the page owns aria-expanded and the open/close behaviour. ───── */
.nl-faq{ border-top:1px solid var(--nl-line-hair); }
.nl-faq__q{ width:100%; min-height:var(--nl-tap); display:flex; align-items:center; gap:12px;
  padding:14px 0; background:none; border:0; text-align:left; cursor:pointer;
  font:500 17px/1.3 'DM Sans',system-ui,sans-serif; color:var(--nl-navy); }
.nl-faq__q:focus-visible{ outline:var(--nl-focus) solid var(--nl-navy); outline-offset:var(--nl-focus); }
.nl-faq__a{ padding:0 0 16px; color:var(--nl-ink-muted); font-size:16px; line-height:1.6; }

/* ── Matcher band and notice block ───────────────────────────────────────────────────────────── */
.nl-band{ background:var(--nl-navy); color:var(--nl-cream); }
.nl-band a{ color:var(--nl-mint); }
.nl-notice{ background:var(--nl-tint); border:1px solid var(--nl-line); border-radius:12px;
  padding:16px; color:var(--nl-navy); font-size:15px; line-height:1.6; }

/* ── Motion. The boards' hover lift, switched off for anyone who asked for less motion. ──────── */
@media (prefers-reduced-motion:no-preference){
  .nl-card{ transition:transform .18s ease, box-shadow .18s ease; }
  .nl-card--lift:hover{ transform:translateY(-6px); box-shadow:0 10px 28px rgba(20,30,43,.10); }
}


/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   ITEM 11 — ONE VALUE PER DECISION (26 Oct 2026)

   Everything below is consolidation, not new design. Each of these four values was already spelled
   out two or three times in this file under different names, and the duplicates had started to
   drift apart — which is the same failure the header of this file was written about, only inside
   one file instead of across forty-six. The authority for every value is
   docs/revision-design-spec.md: the card at section 1 lines 263/265/267/314 (`border:1px solid
   #D9CFC0; background:#FFFCF8`), the pill at line 124 ("999px pills — all buttons, chips, filter
   tabs") and line 157 (primary `#C0432A`, `border-radius:999px`, `min-height:48px`), and the
   selection chip at line 167 (15px label, navy).

   THE OLD NAMES ARE KEPT AND NOT ONE IS RENAMED. --brand-orange-strong is read by seven pages
   (index, contact, revision, revision-free/gcse/a-level/university), partials/consent.html,
   partials/header.html and scripts/build-revision-hubs.mjs; --brand-orange-hover by eight. They
   now RESOLVE THROUGH the single source instead of carrying their own copy of the literal, so
   every one of those readers keeps working unchanged and there is still exactly one place to
   change the fill. Nothing in this block renames or removes a token any page references by name.
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */
:root{
  /* (c) ONE primary-button fill. Was written out twice as #C0432A — once as --brand-orange-strong
     at the top of this file (8 Sep audit) and once as --nl-flame-btn in the new-look layer. Same
     colour, two sources of truth; both now point here. White on it is about 5.2:1, which is the
     whole reason the value is #C0432A and not the brand's #E85D3A (3.47:1).

     The HOVER is deliberately NOT consolidated and that is a finding, not an oversight: this file
     carries --brand-orange-hover #A5381F (6.59:1 on white) and --nl-flame-hover #7E2A16, and they
     are genuinely two different colours, not a drifted duplicate — #7E2A16 is board 01's a:hover
     for text links, #A5381F is the button hover. Collapsing them is a design decision for the
     owner, so they are left alone and reported. */
  --btn-primary-bg: #C0432A;

  /* (c) ONE pill radius and ONE min-height for primary actions. The spec says 999px for every
     button, chip and filter tab, and a 48px floor for buttons and form fields. --nl-tap-btn was
     already 48px and now reads this; --nl-tap and --nl-tap-intent stay separate because 44px and
     52px are deliberately different targets (see their own note above), not duplicates of this. */
  --btn-pill: 999px;
  --btn-min-h: 48px;

  /* (b) ONE card surface and ONE card border — the brand card. Points at the board-01 tokens
     rather than repeating their literals, so #FFFCF8 / #D9CFC0 still appear exactly once each. */
  --card-surface: var(--nl-card);
  --card-border:  var(--nl-line);

  /* (d) ONE level-chip label size and colour. Spec line 167: 15px label, navy. This was written
     three times over — `font:500 15px/1` in .nl-chip below, and `font-size:15px; color:var(--navy)`
     in seven revision pages' own .rv-chip. All of them now resolve here. */
  --chip-label-size: 15px;
  --chip-label-ink:  var(--nl-navy);
}

/* ── (b) THE LEGACY CARDS, REPOINTED AT THE BRAND CARD ────────────────────────────────────────
   .th-card's and .sn-bento-card's own CSS lives in index.html (around lines 458 and 1292 on
   26 Oct 2026 — that file was being edited by others the same day, so SEARCH for the selector
   rather than trusting the number), which this agent does not own — and neither rule reads a
   token: .th-card hardcodes `background:#fff` with
   `border:1px solid rgba(20,30,43,0.05)`, and .sn-bento-card uses `var(--white)` with
   `rgba(20,30,43,.06)`. So there was no legacy token to repoint; the repoint has to be a rule.

   IT WORKS WITHOUT !important AND WITHOUT EDITING index.html, for the reason section 2.1b records:
   this file is injected as the LAST stylesheet in <head> on every built page, so at equal
   specificity (0,1,0 against 0,1,0) it already wins on document order. Verified in the build
   output, not assumed.

   :not(.sn-bento--dark) IS LOAD-BEARING. `.sn-bento--dark{background:var(--sn-ground-dark)}` is
   also (0,1,0) and is declared EARLIER, so a bare `.sn-bento-card` rule here would have won
   against it and repainted the two dark bento tiles on the homepage (sn-bento--c and --e) cream.
   That is a regression, not a token change, and this is the selector that prevents it.

   .th-card:hover{border-color:transparent} is (0,2,0) and still wins, so the hover state keeps
   dissolving the border into the shadow exactly as it did. Only the resting state moves. */
.th-card,
.sn-bento-card:not(.sn-bento--dark){
  background: var(--card-surface);
  border-color: var(--card-border);
}

/* ── THE MOTION PAUSE CONTROL'S TARGET SIZE ───────────────────────────────────────────────────
   .sn-motion-btn is the WCAG 2.2.2 pause control for the review marquee and both logo ribbons —
   all three scroll indefinitely and this single button is the required mechanism (index.html:1245
   explains why it is one control for three tracks). Measured at 1280 on the built homepage:

       before  getBoundingClientRect() = 62.52 x 21.52 px
       after   getBoundingClientRect() = 62.52 x 44.00 px

   21.52px fails WCAG 2.5.8 Target Size (Minimum, 24x24) outright, never mind the 44x44 the owner
   asked for. The cause is padding:4px 11px on an 11.52px label — index.html:1249.

   ITS CSS LIVES IN index.html, WHICH THIS AGENT DOES NOT OWN, so the floor is applied from here
   instead, the same way the legacy cards above are. That works for the reason section 2.1b records:
   this file is the last stylesheet in <head>, so at equal specificity (0,1,0) it wins on order.
   The equivalent one-line edit to index.html:1249 is in the report if you would rather it lived
   with the rest of the button.

   TWO THINGS THIS DELIBERATELY DOES NOT DO.
   1. It does not set `display`. index.html:1258 has
      `@media(prefers-reduced-motion:reduce){ .sn-motion-btn{display:none} }` — correct, because
      with motion reduced there is no animation to pause. A `display:inline-flex` here would be
      injected later and would resurrect the button for those users as a control over nothing.
   2. It does not touch the hover-pause rule, and it does not reintroduce :focus-within. That was
      removed on purpose (index.html:1240): the control now sits inside .sn-marq, so focusing it
      held the track paused through :focus-within and "Play" appeared not to work.

   min-width is set as well as min-height so the floor still holds if the label is ever shortened
   to an icon; at the current "Pause"/"Play" labels the button is already 62.52px wide, so today
   min-width changes nothing. align-items:center is already on the base rule, so the taller box
   keeps the label optically centred rather than top-aligned. */
.sn-motion-btn{
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}

/* ── (d) The live level chips, reading the single source ──────────────────────────────────────
   .rv-chip is the live level chip — the All / GCSE / A-level / University filter on the seven
   revision tool pages. All seven declare it identically (`font-size:15px; color:var(--navy)` with
   `--navy:#141E2B`), so binding it to the tokens is VALUE-NEUTRAL: measured identical before and
   after. The selected state `.rv-chip[aria-pressed="true"]` is (0,2,0) and still wins, so a
   selected chip stays navy-filled with cream text.

   .nl-chip is bound at its own rule above rather than here, because its label is set with the
   `font:` shorthand and a longhand override arriving later would be a second place to look.

   Worth knowing if those seven pages are edited later: because this rule is injected last, it now
   owns the chip's resting label size and colour. Changing `font-size` in revision-*.html alone
   would no longer take effect — the token is the place to change it. */
.rv-chip{
  font-size: var(--chip-label-size);
  color: var(--chip-label-ink);
}



/* The card. Moved verbatim out of index.html so there is one stylesheet for one component.
   Every custom property carries a literal fallback: /become-a-tutor defines --flame, --ink and
   --sun and nothing else, so an unguarded var(--gold) there renders the stars in the inherited
   text colour and quietly stops them reading as stars. */
.sn-proof-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;min-height:196px;}
.sn-quote{flex:1 1 320px;max-width:520px;background:#fff;border-radius:14px;padding:24px;box-shadow:0 1px 4px rgba(0,0,0,.04);margin:0;text-align:left;}
.sn-quote{transition:transform .25s ease,box-shadow .25s ease;}
.sn-quote:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(20,30,43,.10);}
.sn-quote-src{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:.72rem;color:var(--grey,#5A6B7F);font-weight:500;}
.sn-quote-stars{color:var(--gold,#F5A623);font-size:.9rem;margin-bottom:8px;}
.sn-quote-body{font-size:.92rem;color:var(--ink,#141E2B);font-style:italic;line-height:1.65;margin:0 0 10px;}
.sn-quote cite{display:block;font-size:.78rem;color:var(--grey,#5A6B7F);font-weight:600;font-style:normal;}
.sn-quote-about{display:block;font-weight:400;color:var(--ink-muted,#68727F);margin-top:2px;}
.sn-quote-when{font-weight:400;color:var(--ink-muted,#68727F);}
.sn-quote-more{background:none;border:none;padding:0;margin-top:6px;font:inherit;font-size:.8rem;font-weight:600;color:var(--flame-ink,#A5381F);cursor:pointer;text-decoration:underline;}
.sn-quote-more:focus-visible{outline:3px solid var(--flame,#E85D3A);outline-offset:2px;}
/* Stagger the cards in. Uses the host page's existing .reveal-up mechanism; only the delay is new,
   so there is one animation system per page, not two. */
.sn-proof-grid .reveal-up{transition-delay:calc(var(--i,0) * 90ms);}
@media(prefers-reduced-motion:reduce){
  .sn-quote,.sn-quote:hover{transition:none;transform:none;}
  .sn-proof-grid .reveal-up{transition-delay:0ms !important;}
}
@media(max-width:560px){.sn-proof-grid{min-height:240px;}.sn-quote{flex:1 1 100%;}}

.sn-hdr{position:sticky;top:0;z-index:1000;background:rgba(251,246,240,.92);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid rgba(20,30,43,.10);}.sn-hdr-in{max-width:1100px;margin:0 auto;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;}.sn-hdr-logo{font-family:'Fraunces','Playfair Display',serif;font-size:1.4rem;font-weight:700;text-decoration:none;color:#E85D3A;white-space:nowrap;}.sn-hdr-logo span{color:#141E2B;}.sn-hdr-nav{display:flex;align-items:center;gap:20px;}.sn-hdr-nav a{color:#141E2B;text-decoration:none;font-weight:500;font-size:.94rem;font-family:'DM Sans',system-ui,sans-serif;}.sn-hdr-nav a:hover{color:#E85D3A;}.sn-hdr-cta{background:#E85D3A;color:#fff!important;padding:9px 18px;border-radius:100px;font-weight:600;white-space:nowrap;}.sn-hdr-cta:hover{filter:brightness(.96);}@media(max-width:640px){.sn-hdr-in{padding:10px 16px;}}

/* Skip link. Off-screen until focused, then pinned top-left above the sticky header. */
.sn-skip{position:absolute;left:-9999px;top:0;z-index:2000;background:var(--brand-orange-strong,#C0432A);color:#fff;
  padding:10px 16px;border-radius:0 0 8px 0;font:600 .95rem/1.2 'DM Sans',system-ui,sans-serif;text-decoration:none;}
.sn-skip:focus{left:0;}
.sn-hdr-in{position:relative;}
.sn-hdr-login{color:var(--ink,#141E2B);text-decoration:none;font-weight:500;font-size:.94rem;
  font-family:'DM Sans',system-ui,sans-serif;white-space:nowrap;padding:6px 2px;}
.sn-hdr-login:hover{color:var(--brand-orange-hover,#A5381F);}
.nav-right{display:flex;align-items:center;gap:14px;}

/* The button. 44x44 minimum is the requirement, not the aspiration. */
/* flex-direction:column is load-bearing. Without it the three bars become flex items in a ROW and
   the icon renders as a dash and an underscore side by side, which is what the first build did. */
.sn-hdr-burger{display:none;width:44px;height:44px;flex-direction:column;align-items:center;justify-content:center;
  background:none;border:1px solid rgba(20,30,43,.18);border-radius:10px;cursor:pointer;padding:0;color:var(--ink,#141E2B);}
.sn-hdr-burger:hover{background:rgba(20,30,43,.04);}
.sn-hdr-burger .sn-burger-bar{display:block;width:20px;height:2px;background:currentColor;border-radius:2px;
  transition:transform .18s ease,opacity .18s ease;}
.sn-hdr-burger .sn-burger-bar+.sn-burger-bar{margin-top:5px;}
.sn-hdr-burger[aria-expanded="true"] .sn-burger-bar:nth-child(1){transform:translateY(7px) rotate(45deg);}
.sn-hdr-burger[aria-expanded="true"] .sn-burger-bar:nth-child(2){opacity:0;}
.sn-hdr-burger[aria-expanded="true"] .sn-burger-bar:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* The panel. Opened by removing [hidden]; closed state is the HTML attribute, so with JS off the
   panel is simply absent and the nav links below remain reachable in the footer. */
/* Above the consent banner (z-index 9999 in partials/consent.html). The menu is a modal the
   visitor just opened; on a first visit the banner otherwise sits on top of it and covers the
   links. Verified in a browser - the first build had exactly that. */
.sn-menu{position:fixed;left:0;right:0;top:0;bottom:0;z-index:10050;background:rgba(20,30,43,.45);}
.sn-menu[hidden]{display:none;}
/* FULL SCREEN, per board 17's note — it was a 360px drawer. On a 390px phone a drawer leaves a
   30px strip of page showing down one side, which reads as a mis-sized overlay rather than a
   deliberate one, and it is the strip people tap by accident while reaching for a link. */
.sn-menu-panel{position:absolute;inset:0;width:100%;height:100%;overflow-y:auto;
  background:var(--sand,#FBF6F0);padding:14px 16px calc(28px + env(safe-area-inset-bottom,0px));
  display:flex;flex-direction:column;gap:2px;}
.sn-menu-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
.sn-menu-close{width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:none;
  border:1px solid rgba(20,30,43,.18);border-radius:10px;cursor:pointer;font-size:1.1rem;line-height:1;color:var(--ink,#141E2B);}
/* `:not(.sn-hdr-logo)` IS THE WHOLE POINT, AND IT IS A FIX, NOT A TIDY-UP. This rule used to read
   `.sn-menu a`, which is 0,1,1 and therefore BEAT `.sn-hdr-logo` (0,1,0) on the wordmark sitting in
   the panel head. Measured 26 Oct 2026 at 390px on the built bundle: the menu wordmark computed to
   `color:rgb(20,30,43)` and `font-weight:500` in DM Sans — i.e. the word "Session" rendered NAVY and
   un-bold, in the body face, while the identical markup in the bar above it rendered flame Fraunces
   700. The locked mark was being repainted by a list-item rule that did not know it was there.
   Excluding the logo from the match restores the live component with nothing competing: flame
   "Session" from `.sn-hdr-logo`, navy "ed" from `.sn-hdr-logo span`, weight 700 from the one source
   that owns it. NOTE the weight is NOT re-declared here, deliberately —
   scripts/check-wordmark-weight.mjs fails if a second source sets it, and the right way to get the
   wordmark's weight is to stop overriding it, not to restate it.
   Knock-on, handled below: the base row rule is now 0,2,1, so `.sn-menu .sn-menu-cta` (0,2,0) would
   have started LOSING colour and justification to it. The CTA selectors carry `a` too. */
.sn-menu a:not(.sn-hdr-logo),.sn-menu .sn-menu-acc-btn{display:flex;align-items:center;min-height:44px;padding:10px 12px;border-radius:9px;
  color:var(--ink,#141E2B);text-decoration:none;font:500 1rem/1.3 'DM Sans',system-ui,sans-serif;}
.sn-menu a:not(.sn-hdr-logo):hover,.sn-menu .sn-menu-acc-btn:hover{background:rgba(20,30,43,.05);}
/* A PILL, like the bar's own CTA. `.sn-hdr-cta` is `border-radius:100px`; this was inheriting the
   9px of a nav row, so the one control the panel exists to offer read as another list item with a
   fill. min-height is restated rather than inherited from the row rule above: a pill whose height
   depends on a selector it no longer necessarily matches is a 44px floor by luck. */
.sn-menu a.sn-menu-cta{justify-content:center;background:var(--brand-orange-strong,#C0432A);color:#fff;font-weight:600;
  margin:10px 0 4px;border-radius:100px;min-height:44px;}
.sn-menu a.sn-menu-cta:hover{background:var(--brand-orange-hover,#A5381F);}
/* The wordmark is a tap target as well as a mark — it is the panel's route home. 44px without
   touching the colours or the weight, which belong to .sn-hdr-logo and to nothing else. */
.sn-menu-head .sn-hdr-logo{display:inline-flex;align-items:center;min-height:44px;}
.sn-menu-sep{border:0;border-top:1px solid rgba(20,30,43,.12);margin:10px 0 6px;}
/* Accordion for sub-menus. Built now, unused until a section needs one. */
.sn-menu-acc-btn{width:100%;background:none;border:0;cursor:pointer;justify-content:space-between;text-align:left;}
.sn-menu-acc-btn::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg);margin-right:6px;transition:transform .18s ease;}
.sn-menu-acc-btn[aria-expanded="true"]::after{transform:rotate(-135deg);}
.sn-menu-acc-panel{padding-left:10px;}
.sn-menu-acc-panel[hidden]{display:none;}
@media(prefers-reduced-motion:reduce){
  .sn-hdr-burger .sn-burger-bar,.sn-menu-acc-btn::after{transition:none;}
}
body.sn-menu-open{overflow:hidden;}

/* THE ROW OWNS ITS OWN SPACING, for both vocabularies, at 0,2,1 specificity so order cannot
   decide it. index.html styles every link with `.nav-link{padding:7px 16px}` and the static pages
   style none, so one `gap` cannot serve both: with the host page's 32px of per-link padding added
   on top of gap:20px, the seven links measured 778px against the 1060px the 1100px-wide row has
   to give, and the header pushed the homepage 190px wide at 960px and 126px at 1024px. The 8 Sep
   intermediate tightening at index.html:211 could not save it — `.sn-hdr-nav{gap:20px}` is
   injected after that media query and wins on equal specificity. Setting padding AND gap here
   means the row measures the same whichever page it lands on, and the 901-1180px band keeps the
   tightening that the 8 Sep audit asked for. Measured after: 585px on index.html, 637px on a
   static page, zero overflow at all 16 widths from 320 to 1680. */
.sn-hdr .sn-hdr-nav{gap:2px;}
.sn-hdr .sn-hdr-nav a{padding:7px 11px;border-radius:8px;}
/* The CTA has been rendering with the browser's default link underline through its label since the
   shared header shipped: `.sn-hdr-cta` sets a background, a colour and a radius but never turned
   the underline off, and `.sn-hdr-login` next to it does. A pill button with an underline inside
   it reads as a mistake on every page. */
.sn-hdr .sn-hdr-cta{text-decoration:none;}
/* ── 44px, MEASURED NOT ASSUMED ────────────────────────────────────────────────────────────────
   Both boards and the build brief put the floor at 44px. Measured at 390 and 320 before this:
     Get matched  122x33  — `padding:9px 18px` on an inline <a>, so its height was whatever the
                            line box came to. 33px, at every width, on all 83 pages.
     menu button   40x44 at 320px — .sn-hdr-burger sets width:44px but it is a flex item in a row
                            that runs out of space, so it shrank 4px. A declared width is a
                            starting size, not a floor, until flex-shrink is turned off.
   Neither is a layout change for its own sake: they are the two controls the phone header exists
   to offer, and they were the two under the floor. */
.sn-hdr .sn-hdr-cta{display:inline-flex;align-items:center;justify-content:center;min-height:44px;}
.sn-hdr .sn-hdr-login{display:inline-flex;align-items:center;min-height:44px;}
.sn-hdr-burger{flex:none;}
/* THE ORIGINAL BAR, restored 20 Oct 2026 at the owner's request after a navy gradient version.
   This is index.html's own pre-shared-header treatment, verbatim: translucent cream over a 16px
   backdrop blur, a hairline ink border and a soft shadow. Over the dark hero the .hero-mode
   variant below drops the fill to almost nothing so the hero shows straight through the bar.

   @supports: without backdrop-filter the translucent fill would show the page scrolling through
   it as a smear, so an unsupporting browser gets an opaque cream instead. Safari needs the
   -webkit- prefix and has it. */
.sn-hdr{background:rgba(251,246,240,.70);border-bottom:none;
  backdrop-filter:blur(16px) saturate(140%);-webkit-backdrop-filter:blur(16px) saturate(140%);
  top:12px;margin:12px 16px 0;border-radius:18px;border:1px solid rgba(20,30,43,.06);
  box-shadow:0 6px 24px rgba(20,30,43,.05);
  transition:background .28s ease,box-shadow .28s ease,transform .22s ease;}
@supports not ((backdrop-filter:blur(2px)) or (-webkit-backdrop-filter:blur(2px))){
  .sn-hdr{background:rgba(251,246,240,.97);}
}
/* Scrolled past the hero: the fill firms up so links stay legible over whatever is behind. */
.sn-hdr.sn-hdr-solid{background:rgba(251,246,240,.97);box-shadow:0 10px 34px rgba(20,30,43,.14);}
/* OVER THE HERO: all but transparent, with the hero's own light-on-dark treatment. This is what
   `nav.hero-mode` used to do before the shared header replaced index.html's bar; the rules moved
   here with it so the one header can wear both states. */
.sn-hdr.sn-hdr-hero{background:rgba(20,30,43,.10);box-shadow:none;border-color:rgba(255,255,255,.14);}
.sn-hdr.sn-hdr-hero .sn-hdr-logo{color:var(--flame,#E85D3A);}
/* Cream, not #fff: the locked wordmark is "ed" in cream #EDE7DD when it sits on navy. */
.sn-hdr.sn-hdr-hero .sn-hdr-logo span{color:var(--cream,#EDE7DD);}
.sn-hdr.sn-hdr-hero .sn-hdr-nav a,.sn-hdr.sn-hdr-hero .sn-hdr-login{color:rgba(255,255,255,.90);}
.sn-hdr.sn-hdr-hero .sn-hdr-nav a:hover,.sn-hdr.sn-hdr-hero .sn-hdr-login:hover{color:#fff;}
.sn-hdr.sn-hdr-hero .sn-hdr-burger{color:#fff;border-color:rgba(255,255,255,.28);}

/* FULL-WIDTH ROW, three columns: logo hard left, links centred, Log in + CTA hard right.
   The base rule centres a 1100px box, which left the logo and the CTA floating in from the page
   edges on a wide screen. A `1fr auto 1fr` grid is what centres the links on the PAGE rather than
   on whatever is left between the other two groups, so adding a nav link no longer shifts them
   off-centre. Only above the 900px breakpoint: below it the nav is display:none and the row is
   logo + CTA + burger, which the base flex rule already lays out correctly.

   MEASURED LIMIT, 901-992px: the nav sits left of true centre in that 91px band - about 43px of
   visual shift at 901, 15px at 960, nil from 992 up. A `1fr` track is `minmax(auto,1fr)`, so the
   right track cannot shrink below `.nav-right`'s min-content width (~192px) and the two tracks
   stop being equal. True centring needs 2x192 + 518 (the links) + 32 (gaps) + 54 (gutters) =
   988px, which is why 992 is where it comes right. It is NOT fixable with `minmax(0,1fr)`: that
   does equalise the tracks, but `.nav-right` then overflows its track leftwards and overlaps the
   last nav link by ~28px at 901. Centred-and-overlapping is worse than slightly-left-and-clear,
   so this stays. Closing the band for real means shrinking the CTA by ~44px, which is a copy
   change, not a CSS one. Gutters are symmetric to the pixel at every width >= 901. */
@media(min-width:901px){
  .sn-hdr .sn-hdr-in{max-width:none;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
    gap:16px;padding-left:clamp(20px,3vw,40px);padding-right:clamp(20px,3vw,40px);}
  .sn-hdr .sn-hdr-logo{justify-self:start;}
  .sn-hdr .sn-hdr-nav{justify-content:center;}
  .sn-hdr .nav-right{justify-self:end;}
}
@media(min-width:901px) and (max-width:1180px){
  .sn-hdr .sn-hdr-nav{gap:0;}
  .sn-hdr .sn-hdr-nav a{padding:7px 8px;font-size:.88rem;letter-spacing:0;}
  .sn-hdr .sn-hdr-cta{padding:8px 14px;font-size:.88rem;}
  .sn-hdr .sn-hdr-login{font-size:.88rem;}
}

/* No room for a ninth link below 1260px: see the HOME EDUCATION note in the markup below. Measured
   20 Nov 2026: 901-1100 wraps and overflows the homepage, 1181-1240 still wraps on static pages
   (the band rule above restores .94rem type at 1181), 1260 and up is clear. */
@media(min-width:901px) and (max-width:1259px){
  .sn-hdr .sn-hdr-nav a.sn-nav-wide{display:none;}
}
@media(max-width:900px){
  .sn-hdr-nav{display:none!important;}
  .nav-right .sn-hdr-login{display:none;}
  .sn-hdr-burger{display:flex;}
}
/* Below 420px the row is logo + CTA + button, and at 320 that came to 364px against a 320px
   viewport - 44px of horizontal overflow on every static page. The CTA stays (it is the one thing
   the header exists to offer) and gives up padding instead; the row's own gutter comes down with
   it. Measured after: 0 overflow at 320. */
@media(max-width:420px){
  .sn-hdr-in{gap:8px;padding-left:12px;padding-right:12px;}
  .sn-hdr-cta{padding:8px 12px;font-size:.8rem;}
  .sn-hdr-logo{font-size:1.2rem;}
}
@media(min-width:901px){
  .sn-menu{display:none!important;}
}


      #p-home .hero{min-height:92vh;}
      #p-home .hero h1{font-size:clamp(30px,4.6vw,54px)!important;line-height:1.08;}
      /* the title span carries an inline white-space:nowrap meant for a smaller one-line title; at
         this larger size it overflows its grid column and slides UNDER the matcher ("trust" gets
         covered), so override it to wrap at EVERY width. Size steps down further on phones. */
      #p-home .hero h1 span{white-space:normal!important;}
      @media(max-width:620px){#p-home .hero h1{font-size:clamp(27px,7.6vw,38px)!important;}}
      #p-home .hero h1 em{position:relative;}
      #p-home .hero h1 em::after{content:'';position:absolute;left:-3%;right:-3%;bottom:.02em;height:.4em;background:rgba(242,129,106,.3);border-radius:4px;z-index:-1;transform:scaleX(0);transform-origin:left;animation:hlDraw .9s cubic-bezier(.23,1,.32,1) .6s forwards;}
      @keyframes hlDraw{to{transform:scaleX(1)}}
      #p-home .hero .hglow{position:absolute;border-radius:50%;filter:blur(60px);pointer-events:none;z-index:0;}
      #p-home .hero .hglow.v{width:48vw;height:46vw;left:26vw;bottom:-24vw;background:radial-gradient(circle,rgba(139,92,246,.4),transparent 62%);animation:hgV 26s ease-in-out infinite alternate;}
      #p-home .hero .hglow.am{width:40vw;height:40vw;right:12vw;bottom:-18vw;background:radial-gradient(circle,rgba(245,166,35,.2),transparent 64%);animation:hgAm 30s ease-in-out infinite alternate;}
      @keyframes hgV{to{transform:translate(10vw,-12vh) scale(1.3)}}@keyframes hgAm{to{transform:translate(-10vw,-8vh) scale(1.25)}}
      #p-home .hero .hsubjects{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;}
      #p-home .hero .hsubjects span{position:absolute;font-family:'Fraunces',serif;font-style:italic;color:rgba(255,255,255,.06);white-space:nowrap;font-weight:500;}
      #p-home .hero .hsubjects span:nth-child(1){font-size:2.6rem;top:14%;left:-25%;animation:hslide 34s linear infinite;}
      #p-home .hero .hsubjects span:nth-child(2){font-size:1.7rem;top:30%;left:-25%;animation:hslide 44s linear infinite 5s;}
      #p-home .hero .hsubjects span:nth-child(3){font-size:3.1rem;top:46%;left:-30%;animation:hslide 52s linear infinite 3s;}
      #p-home .hero .hsubjects span:nth-child(4){font-size:2rem;top:60%;left:-25%;animation:hslide 40s linear infinite 9s;}
      #p-home .hero .hsubjects span:nth-child(5){font-size:2.4rem;top:74%;left:-30%;animation:hslide 60s linear infinite 14s;}
      #p-home .hero .hsubjects span:nth-child(6){font-size:1.6rem;top:22%;left:-25%;animation:hslide 48s linear infinite 20s;}
      #p-home .hero .hsubjects span:nth-child(7){font-size:2.2rem;top:52%;left:-28%;animation:hslide 38s linear infinite 26s;}
      #p-home .hero .hsubjects span:nth-child(8){font-size:1.9rem;top:86%;left:-25%;animation:hslide 56s linear infinite 11s;}
      #p-home .hero .hsubjects span:nth-child(9){font-size:2.7rem;top:38%;left:-30%;animation:hslide 64s linear infinite 32s;}
      #p-home .hero .hsubjects span:nth-child(10){font-size:1.5rem;top:68%;left:-22%;animation:hslide 42s linear infinite 17s;}
      @keyframes hslide{to{transform:translateX(145vw)}}
      #p-home .hero .htut{position:absolute;z-index:6;width:228px;background:#fff;border-radius:16px;padding:11px;box-shadow:0 20px 50px rgba(10,14,30,.42);display:flex;gap:10px;align-items:center;opacity:0;}
      #p-home .hero .htut.show{opacity:1;transition:opacity .6s cubic-bezier(.23,1,.32,1);}
      #p-home .hero #htutA{left:3%;bottom:11%;animation:hfloat 6.5s ease-in-out infinite;}
      #p-home .hero #htutB{right:4%;bottom:21%;animation:hfloat 7.5s ease-in-out .8s infinite;}
      @keyframes hfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
      #p-home .hero .htut img{width:50px;height:50px;border-radius:12px;object-fit:cover;object-position:50% 28%;flex:none;background:#2A1B3D;}
      #p-home .hero .htut .tcn{font-weight:700;font-size:.86rem;color:#141E2B;display:flex;align-items:center;gap:5px;flex-wrap:wrap;}
      #p-home .hero .htut .tcd{font-size:.56rem;font-weight:700;padding:2px 6px;border-radius:20px;}
      #p-home .hero .htut .tcd.v{color:#1A7A6D;background:rgba(43,166,150,.12);}
      #p-home .hero .htut .tcd.o{color:#8a6d00;background:rgba(245,166,35,.16);}
      #p-home .hero .htut .tcs{font-size:.69rem;color:#5A6B7F;margin:2px 0 4px;}
      #p-home .hero .htut .tcr{font-size:.69rem;color:#141E2B;}#p-home .hero .htut .tcr .st{color:#F5A623;}
      @media(max-width:1080px){#p-home .hero .htut{display:none;}}
      #p-home .hero .hscroll{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);z-index:8;color:rgba(255,255,255,.5);animation:hbob 2s ease-in-out infinite;}
      #p-home .hero .hscroll svg{width:26px;height:26px;}
      @keyframes hbob{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,8px)}}
      @media(prefers-reduced-motion:reduce){#p-home .hero .hglow,#p-home .hero .hsubjects span,#p-home .hero .htut,#p-home .hero .hscroll{animation:none!important;}#p-home .hero .hsubjects{display:none;}#p-home .hero h1 em::after{animation:none;transform:scaleX(1);}}
    

        .lead-l{display:block;font-size:0.72rem;font-weight:600;color:var(--ink-soft);margin-bottom:3px;letter-spacing:0.01em;}
        .lead-f{width:100%;box-sizing:border-box;padding:9px 10px;border:1.5px solid var(--sand-dark);border-radius:9px;font-family:var(--font);font-size:0.88rem;background:#fff;color:var(--ink);}
        /* outline:none REMOVED 26 Oct 2026. At (0,2,0) it beat the shared :focus-visible ring at (0,1,0),
   so document order could not save it: a focused field reported focus-visible true, a computed
   outline-color, and outline-style:none. It governed 10 controls on the get-matched form - the
   one form the whole funnel depends on. The border-colour cue stays; it is now in addition to a
   real focus ring rather than instead of one. */
.lead-f:focus{border-color:var(--flame-ink);}
        .trust-pill{font-size:0.8rem;font-weight:600;color:#fff;background:rgba(255,255,255,0.12);border:1px solid rgba(255,255,255,0.22);padding:6px 12px;border-radius:20px;display:inline-flex;align-items:center;gap:6px;}
        /* Mint on navy, per the brand's icon rule. flex:none stops the tick shrinking when a pill
           wraps to two lines on narrow screens. If the sprite fails to inject the icon renders
           nothing and the pill still reads as a complete sentence — the claim never depends on it. */
        .trust-pill .sn-i{width:14px;height:14px;flex:none;color:#5CC3B2;}
        @media(max-width:560px){#getMatchedGrid,#gmRow2,#matchMore>div{grid-template-columns:1fr !important;}}
        .gm-more{margin-top:10px;}
        .gm-more>summary{display:inline-flex;align-items:center;gap:6px;min-height:32px;cursor:pointer;list-style:none;font-size:0.84rem;font-weight:600;color:var(--flame-ink);border-radius:6px;}
        .gm-more>summary::-webkit-details-marker{display:none;}
        .gm-more>summary span{font-weight:400;color:var(--ink-muted);}
        .gm-more>summary::before{content:'+';display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;border:1.5px solid currentColor;font-size:0.8rem;line-height:1;}
        .gm-more[open]>summary::before{content:'\2212';}
      

    .sn-home-offer{padding:0 clamp(16px,4vw,40px);}
    /* No :empty{display:none} here: a display:none element never intersects, so the observer that starts the fetch would never fire. Empty, this div is 0px tall anyway (horizontal padding only). */
    .sn-ho-in{max-width:1120px;margin:22px auto 0;display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;background:#fff;border:1px solid var(--tp-hair,#E9E1D6);border-radius:14px;padding:13px 18px;}
    .sn-ho-txt{margin:0;flex:1 1 420px;font-size:0.92rem;line-height:1.5;color:var(--ink-soft);}
    .sn-ho-txt strong:first-child{color:var(--ink);font-family:'Fraunces',serif;font-weight:600;}
    .sn-ho-link{flex:none;display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1.5px solid var(--ink);border-radius:999px;color:var(--ink);font-weight:600;font-size:0.88rem;text-decoration:none;}
    @media(hover:hover){.sn-ho-link:hover{background:var(--ink);color:#fff;}}
  

      .sn-why{padding:clamp(40px,6vw,72px) clamp(16px,4vw,40px);}
      .sn-why-in{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:28px 56px;align-items:start;}
      @media(max-width:860px){.sn-why-in{grid-template-columns:1fr;}}
      .sn-why h2{font-family:'Fraunces',serif;font-weight:600;font-size:clamp(26px,3.2vw,38px);line-height:1.15;letter-spacing:-.01em;color:var(--ink);margin:0;}
      .sn-why-lede{color:var(--ink-soft);font-size:0.98rem;line-height:1.6;margin:12px 0 0;max-width:36ch;}
      .sn-why-free{display:flex;align-items:flex-start;gap:8px;margin-top:18px;font-size:0.92rem;line-height:1.5;color:var(--ink-soft);max-width:36ch;}
      .sn-why-free:empty{display:none;}
      .sn-why-free .sn-i{width:18px;height:18px;flex:none;margin-top:2px;color:var(--ink-soft);}
      .sn-why-free strong{color:var(--ink);}
      .sn-why-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--tp-hair,#E9E1D6);}
      @media(max-width:620px){.sn-why-list{grid-template-columns:1fr;}}
      .sn-why-list li{padding:22px 24px 22px 0;border-bottom:1px solid var(--tp-hair,#E9E1D6);}
      @media(max-width:620px){.sn-why-list li{padding:16px 0;}}
      @media(min-width:621px){.sn-why-list li:nth-child(odd){border-right:1px solid var(--tp-hair,#E9E1D6);}.sn-why-list li:nth-child(even){padding-left:24px;padding-right:0;}}
      .sn-why-list h3{font-family:'Fraunces',serif;font-weight:600;font-size:1.14rem;line-height:1.3;color:var(--ink);margin:0 0 6px;}
      .sn-why-list p{margin:0;font-size:0.93rem;line-height:1.6;color:var(--ink-soft);}
      .sn-why-list a{color:var(--flame-ink);font-weight:600;text-decoration:none;white-space:nowrap;}
      .sn-why-list a:hover{text-decoration:underline;text-underline-offset:3px;}
      .sn-why-links{margin:18px 0 0;font-size:0.93rem;}
      .sn-why-links a{color:var(--flame-ink);font-weight:600;text-decoration:none;}
      .sn-why-links a:hover{text-decoration:underline;text-underline-offset:3px;}
      .sn-why-tp{margin-top:14px;}
    

    /* ── Subject pills ───────────────────────────────────────────────────────────────────────────
       Teal-outline pills on the navy band (22 Sep 2026). These were cream cards until today, which
       put eight light rectangles on a dark band and made the section read as a tray sitting on the
       page rather than part of it. The old rules admitted the conflict in a comment: the shared
       `.sn-band .sn-i{color:#fff}` made the icons invisible on a pale chip, so the card needed an
       override to force them back to flame. Pills on the band need no such correction — the band's
       own colours are the pill's colours.
       Every href is unchanged. There are eight, and /11-plus, /resits and the five subject pages
       are load-bearing internal links: scripts/check-link-graph.mjs counts them. */
    .subj-intro{margin:-6px 0 20px;font-size:0.98rem;max-width:640px;}
    .subj-grid{display:flex;flex-wrap:wrap;gap:12px;}
    /* The <a> IS the pill. The card version needed a stretched ::after to make the whole card
       clickable; a pill has no such gap between the link and its box, so that trick is gone and
       with it the z-index stack it needed. */
    .subj-pill{display:inline-flex;align-items:center;gap:10px;padding:11px 18px 11px 13px;
      border:1px solid rgba(43,166,150,.40);border-radius:100px;background:rgba(26,122,109,.16);
      color:#fff;font-weight:600;font-size:0.97rem;line-height:1.2;text-decoration:none;
      transition:background .22s ease,border-color .22s ease,transform .22s cubic-bezier(.4,0,.2,1);}
    /* --ocean-light, not --ocean: #1A7A6D on this surface is 2.1:1 and reads as a smudge. #2BA696
       is 4.8:1, which clears AA for body text — not required of a decorative icon, but the margin
       is the point. The icon sits directly on the pill with NO tinted chip behind it: a chip put a
       second teal wash under the glyph and dropped it to 3.76:1, passing WCAG's 3:1 non-text rule
       and nothing more. Keep it bare. */
    .subj-pill .subj-ico{display:inline-flex;align-items:center;justify-content:center;flex:none;}
    .subj-pill .subj-ico .sn-i{width:16px;height:16px;color:var(--ocean-light);}
    .subj-pill .subj-arrow{display:inline-flex;color:var(--ocean-light);
      opacity:0;transform:translateX(-5px);transition:opacity .22s ease,transform .22s ease;}
    .subj-pill .subj-arrow .sn-i{width:14px;height:14px;}
    .subj-pill:hover,.subj-pill:focus-visible{background:rgba(43,166,150,.30);border-color:var(--ocean-light);transform:translateY(-2px);}
    .subj-pill:hover .subj-arrow,.subj-pill:focus-visible .subj-arrow{opacity:1;transform:translateX(0);}
    /* The arrow is the only hover affordance, so keyboard users get it permanently rather than
       never — same reasoning as the card version it replaces. */
    @media(prefers-reduced-motion:reduce){
      .subj-pill,.subj-pill .subj-arrow{transition:none;}
      .subj-pill:hover,.subj-pill:focus-visible{transform:none;}
      .subj-arrow{opacity:1;transform:none;}
    }
    

  .sn-learn{text-align:left;}
  .sn-learn-in{background:var(--card,#fff);border:1px solid rgba(20,30,43,.10);border-radius:20px;padding:clamp(24px,4vw,40px);max-width:860px;}
  .sn-learn h2{margin:0 0 10px;}
  .sn-learn p{margin:0 0 18px;max-width:640px;font-size:1.02rem;}
  .sn-learn-cta{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;border-radius:100px;
    background:var(--brand-orange-strong,#C0432A);color:#fff;font-weight:600;text-decoration:none;}
  .sn-learn-cta:hover{background:var(--brand-orange-hover,#A5381F);color:#fff;}
  .sn-learn-cta:focus-visible{outline:3px solid var(--focus-ring-dark,#141E2B);outline-offset:3px;}
  
@keyframes matchSpin{to{transform:rotate(360deg);}}
.sn-ftr{background:#141E2B;color:#EDE7DD;margin-top:24px;padding:0;text-align:left;}.sn-ftr-in{max-width:1100px;margin:0 auto;padding:32px 20px 20px;}.sn-ftr-logo{font-family:'Fraunces','Playfair Display',serif;font-size:1.25rem;font-weight:600;color:#E85D3A;text-decoration:none;}.sn-ftr-logo span{color:#EDE7DD;}.sn-ftr-nav{margin-top:10px;font-size:.9rem;display:flex;flex-wrap:wrap;gap:0 18px;}.sn-ftr-nav a{color:#EDE7DD;text-decoration:none;display:inline-flex;align-items:center;min-height:44px;}.sn-ftr a:hover{color:#E85D3A;}.sn-ftr-copy{margin:10px 0 0;font-size:.86rem;opacity:.85;color:#EDE7DD;}.sn-ftr-copy a{color:#EDE7DD;text-decoration:none;}.sn-ftr-desc{margin:8px 0 0;font-size:.9rem;opacity:.85;color:#EDE7DD;max-width:52ch;}.sn-ftr-socials{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;}.sn-ftr-social{color:#EDE7DD;text-decoration:none;display:inline-flex;align-items:center;min-height:44px;}.sn-ftr-socials .sn-ftr-dot{display:inline-flex;align-items:center;min-height:44px;}.sn-ftr-contact{white-space:nowrap;}.sn-ftr-email{color:#EDE7DD;text-decoration:none;}.sn-ftr-reg{opacity:.72;line-height:1.55;}.sn-ftr-sep{border:0;border-top:1px solid rgba(237,231,221,.18);margin:14px 0 0;}@media(max-width:620px){.sn-ftr-in{padding:28px 16px 18px;}.sn-ftr-nav{gap:0 14px;}}@media(max-width:520px){.sn-ftr-contact{display:block;}.sn-ftr-contact .sn-ftr-dot{display:none;}}