/* ==========================================================================
   THEME v2: built on five rules (Nate Herk, "I Studied 10,000 AI Websites")
   1. Mirror test      first screen = who it's for, what they get, one next step
   2. Highlighter rule ONE accent colour (amber), only on what you want clicked.
                       60% background (paper) / 30% structure (ink, navy, cards) / 10% accent
   3. Front/middle/back back = soft static shapes, middle = content, front = the one CTA (lifted)
   4. Motion with a job one thing moves per screen, text never waits, there is an off switch
   5. Free sample     class finder, 5R cycle demo, forgetting-curve chart
   Loaded AFTER style.css. Delete the <link> to theme.css to go back to the old look.
   ========================================================================== */

:root{
  /* 60% background */
  --page:#dfeaff; --cream:#f1f0ea; --paper:#ffffff;
  /* 30% structure */
  --navy:#12172b; --navy-ink:#0c1020; --ink:#14171f; --ink-soft:#566074;
  --line:rgba(20,23,31,.10); --hair:rgba(20,23,31,.09); --card:rgba(255,255,255,.82);
  /* 10% accent: the ONLY colour allowed to draw the eye. Buttons and links only. */
  --accent:#FFC21A; --accent-ink:#14171f;
  /* old colour variables are neutralised so nothing else shouts */
  --yellow:#e4e8f1; --yellow-deep:#566074;
  --sage:#566074; --sage-soft:#ecebe5; --sage-soft-2:#e3e2da;
  --radius:26px;
}
html{ background:var(--page); }
body{ background:var(--page); color:var(--ink); }

/* ---------- BACK LAYER: soft, static shapes (no animation, no parallax) ---------- */
body::before{
  content:""; position:fixed; inset:0; z-index:-2; pointer-events:none;
  background:
    radial-gradient(60vmax 44vmax at 8% -10%, rgba(255,255,255,.7), transparent 66%),
    radial-gradient(54vmax 44vmax at 104% 104%, rgba(110,150,235,.20), transparent 66%);
}
body::after{ display:none; }

/* ---------- TYPE: plain ink, no coloured words ---------- */
h1,h2,h3,h4{ font-family:var(--display); letter-spacing:-.03em; color:var(--ink); }
main section h2{ font-size:clamp(34px,4.8vw,60px); line-height:1.04; letter-spacing:-.04em; font-weight:800; }
.acc{ color:inherit; background:none; -webkit-background-clip:border-box; background-clip:border-box; }
.eyebrow{
  display:inline-flex; align-items:center; gap:9px; background:rgba(255,255,255,.8); border:1px solid var(--hair);
  border-radius:14px; padding:7px 14px; color:var(--ink-soft); letter-spacing:.1em; font-family:var(--mono);
}
.eyebrow::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--ink); flex:none; }
section{ padding:112px 0; }
/* small labels: neutral, never coloured */
.t-tag, .igcse-level, .res-meta, .demo-kicker, .finder-trail, .pillar-icon, .igcse-icon, .t-badge{ color:var(--ink-soft); }

/* ---------- NAV ---------- */
.site-header{ background:rgba(223,234,255,.82); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-bottom:1px solid var(--hair); }
.logo, .logo span{ color:var(--ink); }
.nav-links a{ color:var(--ink-soft); }
.nav-links a:hover{ color:var(--ink); }
.nav-links a.active{ color:var(--ink); border-bottom:2px solid var(--ink); }
@media (max-width:1000px){ .nav-links{ background:rgba(255,255,255,.97); border-bottom:1px solid var(--hair); } }

/* ---------- BUTTONS: the accent lives here, and in links ---------- */
.btn{ border-radius:999px; }
.btn-primary{
  background:var(--accent); color:var(--accent-ink); border-color:transparent; font-weight:700;
  box-shadow:0 12px 26px -10px rgba(168,118,0,.65);            /* FRONT layer: the one lifted thing */
}
.btn-primary:hover{ background:#ffcd45; box-shadow:0 16px 30px -10px rgba(168,118,0,.75); transform:translateY(-2px); }
.btn-ghost{ border-color:rgba(20,23,31,.3); color:var(--ink); background:transparent; box-shadow:none; }
.btn-ghost:hover{ background:var(--ink); color:#fff; }
.btn-outline-light{ border-color:rgba(255,255,255,.5); color:#fff; }
/* links: ink text, accent underline */
.igcse-link, .prog-link, .dock-change, .room a, .footer-col a:hover, .fiver-try a{
  text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:3px; text-underline-offset:4px;
}
.footer-col a:hover, .footer-social a:hover{ color:#fff; }

/* ---------- MIDDLE LAYER: cards are flat, hairline only (nothing lifted by default) ---------- */
.stat, .pillar, .t-card, .prog-card, .igcse-card, .res-card, .lib-empty, .tt-table-wrap, .tt-igcse, .founder-card,
.mode-tab:not(.active), .about-visual .about-logo, .materials-empty{
  background:var(--card); border:1px solid var(--hair); border-radius:var(--radius); box-shadow:none;
}
.contact-card{ background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); box-shadow:none; }
.pillar{ padding:28px 26px; }
.prog-card, .igcse-card, .t-card{ border-radius:22px; }
.about-visual .about-logo{ padding:26px; max-width:260px; }
.tt-table-wrap{ overflow:hidden; }
.res-thumb.s-science, .res-thumb.s-biology, .res-thumb.s-chemistry, .res-thumb.s-combined-science{ background:linear-gradient(135deg,#eceef4,#dadeea); }
.res-glyph svg{ color:rgba(20,23,31,.3); }
.prog-card:hover, .igcse-card:hover, .res-card:hover{ border-color:rgba(20,23,31,.28); box-shadow:none; }
/* neutral tags/badges */
.prog-tag{ background:#fff; border:1px solid var(--hair); color:var(--ink-soft); }
.res-new{ background:var(--ink); color:#fff; }
.t-badge{ background:var(--ink); color:#fff; }
.igcse-pill{ background:var(--navy-ink); } .igcse-pill strong{ color:#fff; }
.fact-badge, .about .fact-badge{ background:rgba(255,255,255,.8); border:1px solid var(--hair); }

/* ---------- FRONT LAYER: only the main tools and the main CTA get a lift ---------- */
.forget, .finder-card, .demo-card{
  background:#fff; border:1px solid var(--hair); border-radius:30px;
  box-shadow:0 34px 60px -38px rgba(20,25,80,.5);
}

/* ---------- HEADS: left-aligned editorial ---------- */
.why-head, .fiver-head, .prog-head, .lib-head, .sec-head{ text-align:left; margin-left:0; margin-right:0; max-width:760px; }
.why-head h2, .fiver-head h2, .prog-head h2, .lib-head h2, .sec-head h2{ margin-top:16px; }
.fiver-head p, .prog-head p, .sec-head p:not(.eyebrow){ font-size:18px; color:var(--ink-soft); max-width:52ch; margin-top:16px; }
.sec-head{ margin-bottom:40px; }
.mode-tabs{ justify-content:flex-start; }
.mode-note, .fiver-try, .fiver-loop{ text-align:left; }
.fiver-try p{ margin-left:0; }

/* ---------- HERO: mirror test ---------- */
.hero{ position:relative; z-index:2; overflow:visible; padding-top:60px; padding-bottom:70px; }
.hero h1{ font-size:clamp(36px,4.7vw,62px); line-height:1.02; letter-spacing:-.045em; font-weight:800; max-width:16ch; }
.hero-sub{ font-size:18.5px; color:var(--ink-soft); max-width:46ch; }
.hero-ctas{ margin-bottom:12px; }
.hero-micro{ font-size:14.5px; color:var(--ink-soft); margin-bottom:26px; max-width:46ch; }
.hero-teacher img{ border-color:#fff; }
.hero-doodles{ display:none; }

/* EDGE BREAK: the chart card hangs into the next section (desktop) */
@media (min-width:961px){
  .hero{ padding-bottom:24px; }
  .hero .forget{ position:relative; z-index:3; top:150px; }
  .hero + .stats{ padding-top:100px; }
  .hero + .stats .sec-head{ max-width:520px; }
}

/* ---------- FINDER: two columns on desktop ---------- */
.finder .container{ display:grid; grid-template-columns:.85fr 1.15fr; gap:56px; align-items:start; }
.finder-head{ text-align:left; margin:0; position:sticky; top:110px; }
.finder-head h2{ margin-top:16px; }
.finder-card{ margin:0; max-width:none; }
@media (max-width:960px){ .finder .container{ grid-template-columns:1fr; gap:30px; } .finder-head{ position:static; } }

/* ---------- STATS ---------- */
.stats{ padding:40px 0 70px; }
.stat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.stat{ padding:30px 26px 28px; }
.stat b{ display:block; font-family:var(--display); font-weight:800; font-size:clamp(56px,6.4vw,92px); line-height:.95; letter-spacing:-.06em; color:var(--ink); }
.stat i{ font-style:normal; font-weight:700; display:block; margin:14px 0 6px; font-size:17px; color:var(--ink); }
.stat p{ color:var(--ink-soft); font-size:14.5px; line-height:1.55; }
.stat-tags{ display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.stat-tags span{ background:rgba(255,255,255,.7); border:1px solid var(--hair); border-radius:999px; padding:8px 16px; font-size:13.5px; font-weight:600; color:var(--ink-soft); }
@media (max-width:960px){ .stat-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:480px){ .stat-grid{ gap:12px; } .stat{ padding:22px 18px; } .stat i{ font-size:15px; } }

/* ---------- ROOMS: one structure colour, no rainbow ---------- */
.rooms-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.room{
  position:relative; overflow:hidden; isolation:isolate; border-radius:30px; padding:30px 28px; min-height:380px;
  display:flex; flex-direction:column; color:#fff; background:var(--navy-ink);
}
.room::after{
  content:attr(data-n); position:absolute; right:14px; top:-24px; z-index:-1; font-family:var(--display); font-weight:800;
  font-size:190px; line-height:1; letter-spacing:-.08em; color:rgba(255,255,255,.07);
}
.room-tag{ font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:#d9d7cf; }
.room svg{ width:64px; height:64px; margin:26px 0 auto; color:#fff; }
.room h3{ font-size:28px; color:#fff; margin:30px 0 10px; letter-spacing:-.03em; }
.room p{ color:rgba(255,255,255,.82); font-size:16px; line-height:1.55; }
.room a{ margin-top:20px; font-weight:700; color:#fff; }
@media (max-width:960px){ .rooms-grid{ grid-template-columns:1fr; } .room{ min-height:290px; } }

/* ---------- 5R, IGCSE, PROGRAMMES ---------- */
.igcse{ background:transparent; border:0; }
.igcse-body h2{ max-width:16ch; }
.t-tag{ font-family:var(--mono); }

/* ---------- DARK PANELS: flat navy, same single accent ---------- */
.mid-cta{ background:transparent; padding:20px 0 60px; }
.mid-cta .container{ background:var(--navy-ink); border-radius:36px; padding:78px 36px; max-width:calc(var(--container) - 56px); }
.mid-cta h2{ color:#fff; font-size:clamp(32px,4.4vw,56px); letter-spacing:-.04em; }
.mid-cta p{ color:rgba(255,255,255,.8); font-size:18px; }
.contact{ background:var(--navy-ink); }
.contact h2{ color:#fff; }
.site-footer{ background:var(--navy-ink); }
.mid-cta .eyebrow, .contact .eyebrow, .lib-request .eyebrow{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.2); color:#d9d7cf; }
.mid-cta .eyebrow::before, .contact .eyebrow::before, .lib-request .eyebrow::before{ background:#d9d7cf; }
.bootcamp-pulse{ background:#fff; } .bootcamp-pulse::after{ display:none; }
.dock-btn, .dock .btn-primary, .bootcamp-board .btn-primary, .res-cta .btn-primary, .demo-cta .btn-primary, .lib-request .btn-primary{
  background:var(--accent); color:var(--accent-ink);
}

/* ---------- CHART: ink and grey, no highlight colours ---------- */
.forget-svg .rev{ fill:var(--ink); stroke:#fff; }
.forget-svg .rev-t{ fill:var(--ink); }

/* ---------- ABOUT ---------- */
.about-grid{ grid-template-columns:.8fr 1.2fr; gap:64px; align-items:start; }
.about-lead{ font-size:clamp(28px,3.6vw,44px); line-height:1.1; letter-spacing:-.04em; font-weight:800; color:var(--ink); margin-bottom:26px; }
.about-body p{ font-size:17px; }
.about-quote{ background:var(--navy-ink); border-radius:24px; }
.about-quote::before{ color:rgba(255,255,255,.45); }
.founder-card{ padding:24px; margin-top:26px; }
@media (max-width:900px){ .about-grid{ grid-template-columns:1fr; gap:36px; } .about-visual{ align-items:flex-start; } }

/* ---------- OTHER PAGES ---------- */
.timetable-hero{ padding:84px 0 40px; }
.timetable-hero h1{ font-size:clamp(40px,6vw,76px); line-height:1.02; letter-spacing:-.045em; font-weight:800; }
.cred-strip{ background:transparent; border-top:1px solid var(--hair); border-bottom:1px solid var(--hair); color:var(--ink-soft); }
.cred-strip span{ color:var(--ink-soft); }
.tt-table thead th{ background:var(--navy-ink); }
.tt-table tr:nth-child(even) td{ background:rgba(20,23,31,.035); }
.tt-table td{ background:transparent; }
.tt-section{ padding-top:60px; }
.library, .demo{ padding:84px 0; }

/* ---------- MOTION WITH A JOB ---------- */
/* Rule: text never waits. Everything is readable the instant it appears. */
.reveal{ opacity:1 !important; transform:none !important; transition:none !important; animation:none !important; }
/* the only things that move: the chart in the hero, and things that respond to a tap or click */
.dock{ transform:none; transition:opacity .25s ease; }
.dock:not(.show){ opacity:0; pointer-events:none; }
.stat:hover, .room:hover, .pillar:hover{ transform:none; }
/* off switch */
.motion-toggle{
  font:inherit; font-size:13px; cursor:pointer; color:rgba(255,255,255,.75); background:transparent;
  border:1px solid rgba(255,255,255,.3); border-radius:999px; padding:6px 14px; margin-left:10px;
}
.motion-toggle:hover{ color:#fff; border-color:#fff; }
.motion-toggle[aria-pressed="true"]{ background:#fff; color:var(--navy-ink); border-color:#fff; }
html[data-motion="off"], html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after{
  animation:none !important; transition:none !important; scroll-behavior:auto !important;
}
html[data-motion="off"] .forget .c-once, html[data-motion="off"] .forget .c-5r{ stroke-dasharray:none !important; stroke-dashoffset:0 !important; }
html[data-motion="off"] .forget .area, html[data-motion="off"] .forget .rev, html[data-motion="off"] .forget .rev-t{ opacity:1 !important; }

@media (max-width:640px){
  section{ padding:76px 0; }
  .hero{ padding-top:44px; }
  .mid-cta .container{ padding:54px 22px; border-radius:28px; }
  .room{ padding:26px 22px; }
}

/* ==========================================================================
   LIGHT CREAM BACKGROUND: back to the original look (warm off-white with a faint dot grid)
   ========================================================================== */
:root{ --page:#f5f4ef; --cream:#f1f0ea; --sage-soft:#ecebe5; --sage-soft-2:#e3e2da; }
html{ background:#f5f4ef; }
body{ background:#f5f4ef; }
body::before{
  background:
    radial-gradient(rgba(20,23,31,.085) 1.2px, transparent 1.6px) 0 0 / 24px 24px,
    radial-gradient(60vmax 44vmax at 104% -6%, rgba(20,23,31,.055), transparent 66%),
    radial-gradient(60vmax 44vmax at 0% 106%, rgba(255,255,255,.75), transparent 66%);
}
.site-header{ background:rgba(245,244,239,.88); }


/* ==========================================================================
   MAKE IT BETTER: the class finder now lives in the hero (first screen),
   and the forgetting-curve chart moved to its own section just below.
   ========================================================================== */
.hero-grid{ align-items:start; }
.hero-finder{ position:relative; z-index:3; }
.hero-finder-cap{
  font-family:var(--mono); font-size:12.5px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--ink-soft); margin:0 0 12px 6px;
}
.hero-finder .finder-card{
  margin:0; max-width:none; background:#fff;
  box-shadow:0 30px 60px -34px rgba(20,23,31,.35), 0 0 0 1px rgba(20,23,31,.06);
}
@media (min-width:961px){
  .hero{ padding-bottom:70px; }
  .hero + .stats{ padding-top:40px; }
  .hero-ctas .hero-scroll{ display:none; }   /* the finder is already on screen, so the scroll-to-finder button is redundant; the scorecard button stays */
  .hero-finder{ margin-top:22px; }
}
@media (max-width:960px){
  .hero-finder{ margin-top:34px; }
}
.memory .forget{ margin:0; max-width:none; }
.hero-finder{ scroll-margin-top:92px; }


/* ==========================================================================
   MAKE IT BETTER (round 2): finder above the fold on phones.
   On a phone the first screen used to be text only, with the finder a scroll away.
   Now the order is: label, headline, one-line pitch, FINDER, then the supporting lines.
   ========================================================================== */
@media (max-width:960px){
  .hero{ padding-top:28px; padding-bottom:40px; }
  .hero-grid{ display:flex; flex-direction:column; gap:0; }
  .hero-grid > div:first-child{ display:contents; }
  .hero-grid .eyebrow{ order:1; align-self:flex-start; }
  .hero-grid h1{ order:2; font-size:clamp(28px,8vw,40px); line-height:1.04; margin:14px 0 12px; max-width:none; }
  .hero-grid .hero-sub{ order:3; font-size:16px; line-height:1.5; margin:0 0 18px; }
  .hero-grid .hero-finder{ order:4; margin-top:0; }
  .hero-grid .hero-ctas .hero-scroll{ display:none; }
  .hero-grid .hero-ctas{ order:5; margin:18px 0 0; }   /* scorecard button sits right under the finder; the scroll-to-finder button stays hidden */
  .hero-grid .hero-micro{ order:6; margin:12px 0 18px; }
  .hero-grid .hero-teacher{ order:7; }
  .hero-finder-cap{ margin-bottom:10px; }
}

/* ==========================================================================
   MAKE IT BETTER (round 3): timetable filter, one-tap WhatsApp per class, phone class cards
   ========================================================================== */

.tt-filter{ display:flex; flex-wrap:wrap; gap:10px; margin:0 0 14px; }
.tt-chip{
  font:inherit; font-size:14px; font-weight:700; cursor:pointer; padding:9px 18px; border-radius:999px;
  background:#fff; color:var(--ink); border:1px solid rgba(20,23,31,.18);
  transition:background .2s ease, color .2s ease;
}
.tt-chip:hover{ border-color:rgba(20,23,31,.5); }
.tt-chip[aria-pressed="true"]{ background:#14171f; color:#fff; border-color:#14171f; }
.tt-count{ font-size:14px; color:var(--ink-soft); margin:0 0 14px 4px; }
.tt-table tr[hidden]{ display:none; }
.tt-ask{ font-weight:700; font-size:14px; color:#14171f; text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:3px; text-underline-offset:4px; white-space:nowrap; }
.tt-ask:hover{ background:rgba(255,194,26,.25); }
.tt-cards{ display:none; }

@media (max-width:720px){
  .tt-js .tt-table-wrap{ display:none; }       /* without JS the table stays, so nothing is lost */
  .tt-js .tt-cards{ display:grid; gap:14px; }
  .tt-card{
    --ink:#14171f; --ink-soft:#566074;
    background:#fff; color:#14171f; border-radius:22px; padding:20px 20px 18px; border:1px solid rgba(20,23,31,.09);
  }
  .tt-card[hidden]{ display:none; }
  .tt-card-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
  .tt-card-title{ font-size:19px; color:#14171f; letter-spacing:-.02em; }
  .tt-card-stream{ flex:none; font-family:var(--mono); font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#566074; background:#efeee8; border-radius:999px; padding:5px 11px; }
  .tt-card-day{ margin:14px 0 0; font-family:var(--display); font-weight:800; font-size:28px; letter-spacing:-.04em; line-height:1.05; color:#14171f; }
  .tt-card-time{ margin:4px 0 0; font-size:18px; font-weight:600; color:#14171f; }
  .tt-card-mode{ margin:6px 0 16px; font-size:14px; color:#566074; }
  .tt-card-btn{ width:100%; justify-content:center; }
}

/* ==========================================================================
   FROM THE DANIEL PRIESTLEY TRANSCRIPTS: free revision check (lead magnet), honest seat counts, wins section
   ========================================================================== */
.memory-cta{ margin-top:22px; }
.chk-card{ max-width:760px; margin:0 auto; }
.chk-bar{ height:6px; border-radius:999px; background:#e6e4dc; margin:0 0 20px; overflow:hidden; }
.chk-bar i{ display:block; height:100%; width:0; background:var(--accent); border-radius:999px; transition:width .35s ease; }
.chk-why{ margin:-8px 0 20px; font-size:15px; color:#566074; max-width:60ch; }
.chk-ans{ align-items:center; text-align:center; padding:18px 8px; }
.chk-score{ background:#141d5c; color:#fff; border-radius:22px; padding:26px 26px 24px; }
.chk-score-label{ font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:#c3c8d8; margin:0; }
.chk-score-num{ font-family:var(--display); font-weight:800; font-size:clamp(54px,9vw,76px); line-height:1; letter-spacing:-.04em; margin:6px 0 4px; color:#fff; }
.chk-score-num span{ font-size:.38em; color:#c3c8d8; letter-spacing:0; }
.chk-score h4{ font-size:clamp(22px,3.4vw,28px); color:#fff; margin:6px 0 8px; }
.chk-score-line{ margin:0; color:#d6dbec; font-size:16px; }
.chk-sub{ font-size:18px; margin:26px 0 10px; color:#14171f; }
.chk-gaps{ list-style:none; margin:0 0 6px; padding:0; display:grid; gap:10px; }
.chk-gaps li{ background:#efeee8; border-radius:16px; padding:14px 16px; display:grid; gap:4px; }
.chk-gaps li strong{ color:#14171f; font-size:16px; }
.chk-gaps li span{ color:#566074; font-size:14.5px; }
.chk-again{ display:inline; margin-left:4px; }
.chk .finder-actions{ margin-top:22px; }

/* honest scarcity (only shows when you fill in site-config.js) */
.finder-seat, .tt-seat{ display:inline-block; margin:12px 0 0; font-family:var(--mono); font-size:12.5px; font-weight:700; letter-spacing:.04em; padding:6px 12px; border-radius:999px; background:rgba(255,255,255,.14); color:#fff; }
.finder-seat.is-few{ background:#ffc21a; color:#14171f; }
.finder-seat.is-full{ background:#fff; color:#14171f; }
.tt-seat{ background:#efeee8; color:#14171f; margin:0 10px 0 0; }
.tt-seat.is-few{ background:#ffc21a; }
.tt-seat.is-full{ background:#14171f; color:#fff; }
.tt-ask-cell{ white-space:nowrap; }
.tt-card .tt-seat{ margin:-6px 0 14px; }

/* wins */
.wins{ padding:70px 0; }
.wins[hidden]{ display:none; }
.wins-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; margin-top:28px; }
.win-card{ --ink:#14171f; --ink-soft:#566074; margin:0; background:#fff; color:#14171f; border-radius:22px; padding:24px; display:flex; flex-direction:column; gap:12px; }
.win-card blockquote{ margin:0; font-size:17px; line-height:1.5; color:#14171f; }
.win-result{ margin:0; font-family:var(--mono); font-weight:700; font-size:13px; letter-spacing:.04em; color:#14171f; background:#fff3cc; border-radius:999px; padding:6px 12px; align-self:flex-start; }
.win-card figcaption{ font-size:14px; color:#566074; margin-top:auto; }

/* ==========================================================================
   FROM THE KPI SCORECARD + WORKSHOP PAGES (Key Person of Influence): 5R scorecard profile, how-it-works, trial landing page
   ========================================================================== */
.chk-profile{ display:grid; gap:12px; margin:0 0 6px; }
.chk-row{ background:#f2f1ec; border-radius:16px; padding:12px 16px 10px; }
.chk-row-head{ display:flex; justify-content:space-between; gap:12px; align-items:baseline; }
.chk-row-head strong{ font-family:var(--display); font-size:17px; color:#14171f; }
.chk-row-head span{ font-family:var(--mono); font-size:12.5px; font-weight:700; color:#566074; letter-spacing:.04em; }
.chk-track{ height:10px; border-radius:999px; background:#e2e0d8; margin:8px 0 6px; overflow:hidden; }
.chk-track i{ display:block; height:100%; border-radius:999px; }
.chk-fill-strong{ background:#1f9d62; } .chk-fill-mid{ background:#ffc21a; } .chk-fill-low{ background:#e0574f; }
.chk-row-step{ margin:0; font-size:13px; color:#566074; }
.chk-keep{ margin:20px 0 0; color:#14171f; font-size:16px; }
.chk-extra{ display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin-top:14px; }
.chk-link{ font-weight:700; color:#14171f; text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:3px; text-underline-offset:4px; }
.chk-classes{ margin-top:6px; }
.chk-classes-lead{ margin:0 0 14px; color:#566074; font-size:15.5px; max-width:62ch; }
.chk-class-list{ display:grid; gap:12px; }
.chk-class{ display:flex; align-items:center; justify-content:space-between; gap:16px; background:#fff; border:1.5px solid #14171f; border-radius:18px; padding:16px 18px; }
.chk-class-info{ min-width:0; }
.chk-class h5{ margin:0; font-family:var(--display); font-size:18px; letter-spacing:-.02em; color:#14171f; }
.chk-class-when{ margin:3px 0 0; font-size:14.5px; color:#566074; }
.chk-class .tt-seat{ margin:8px 0 0; }
.chk-class .btn{ flex:none; }
@media (max-width:620px){ .chk-class{ flex-direction:column; align-items:stretch; } .chk-class .btn{ justify-content:center; text-align:center; } }
.chk-how{ padding:60px 0 20px; }
.chk-how h2{ margin:10px 0 28px; }
.chk-how-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.chk-how-item{ background:#fff; color:#14171f; border-radius:22px; padding:24px; }
.chk-how-item h3{ color:#14171f; font-size:20px; margin:12px 0 8px; }
.chk-how-item p{ margin:0; color:#566074; font-size:15.5px; }
.chk-how-n{ display:inline-grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#14171f; color:#fff; font-family:var(--mono); font-weight:700; }
.chk-bottom{ margin-top:28px; }

.trial{ padding:56px 0 70px; }
.trial-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:start; }
.trial-copy h1{ margin:14px 0 14px; font-size:clamp(34px,5vw,60px); line-height:1.04; letter-spacing:-.04em; }
.trial-h2{ font-size:22px !important; margin:30px 0 14px; }
.trial-checks{ list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.trial-checks li{ position:relative; padding-left:38px; color:var(--ink-soft); font-size:16.5px; line-height:1.5; }
.trial-checks li strong{ color:var(--ink); }
.trial-checks li::before{ content:"✓"; position:absolute; left:0; top:1px; width:26px; height:26px; border-radius:50%; background:var(--accent); color:#14171f; font-weight:800; display:grid; place-items:center; font-size:15px; }
.trial-teacher{ display:flex; gap:16px; align-items:center; margin-top:32px; padding:16px 18px; border:1px solid rgba(20,23,31,.10); border-radius:20px; background:#fff; }
.trial-teacher img{ width:72px; height:72px; border-radius:50%; object-fit:cover; border:3px solid #fff; flex:none; }
.trial-teacher-name{ margin:0; font-weight:700; color:var(--ink); }
.trial-teacher-line{ margin:2px 0 0; font-size:14.5px; color:var(--ink-soft); }
.trial-form{ --ink:#14171f; --ink-soft:#566074; background:#fff; color:#14171f; border-radius:28px; padding:30px 28px 26px; box-shadow:0 30px 60px -34px rgba(20,23,31,.35), 0 0 0 1px rgba(20,23,31,.06); position:sticky; top:96px; }
.trial-form h2{ color:#14171f; font-size:30px; margin:6px 0 20px; letter-spacing:-.03em; }
.field{ margin:0 0 16px; }
.field label{ display:block; font-weight:700; font-size:14.5px; margin-bottom:6px; color:#14171f; }
.field label span{ font-weight:500; color:#566074; }
.field input, .field select, .field textarea{ width:100%; font:inherit; font-size:16px; color:#14171f; background:#fff; border:1.5px solid #d6d3ca; border-radius:14px; padding:12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:3px solid rgba(255,194,26,.6); border-color:#14171f; }
.field-hint{ margin:8px 0 0; font-family:var(--mono); font-size:12.5px; font-weight:700; color:#14171f; background:#efeee8; display:inline-block; padding:6px 12px; border-radius:999px; }
.field-hint.is-few{ background:#ffc21a; } .field-hint.is-full{ background:#14171f; color:#fff; }
.field-error{ margin:0 0 14px; color:#b3261e; font-weight:700; font-size:14.5px; }
.trial-submit{ width:100%; justify-content:center; }
@media (max-width:960px){
  .trial-grid{ grid-template-columns:1fr; gap:30px; }
  .trial-grid{ display:flex; flex-direction:column; }
  .trial-form{ position:static; order:1; }
  .trial-copy{ display:contents; }
  .trial-copy > *{ order:0; }
  .trial-copy > .trial-h2, .trial-copy > .trial-checks, .trial-copy > .trial-teacher{ order:2; }
}
.chk-print-only{ display:none; }
@media print{
  .timetable-hero{ display:none !important; }
  .chk-print-only{ display:block; }
  .chk-print-head{ border-bottom:2px solid #000; padding-bottom:10px; margin-bottom:14px; }
  .chk-print-head p, .chk-print-foot p{ margin:4px 0; color:#000; }
  .chk-print-brand{ font-family:var(--display); font-size:24px; font-weight:800; letter-spacing:-.02em; }
  .chk-print-name{ margin-top:14px !important; }
  .chk-print-foot{ border-top:2px solid #000; margin-top:18px; padding-top:10px; font-size:14px; }
  .chk-print-fine{ font-size:12px; }
}
@media print{
  .site-header, .site-footer, .timetable-hero, .chk-how, .chk-bar, .finder-top, .finder-actions, .chk-extra, .finder-fine, .dock, .finder-opts, .chk-why, .chk-classes{ display:none !important; }
  .chk-card{ box-shadow:none !important; border:none !important; max-width:none !important; }
  .chk-score{ background:#fff !important; color:#000 !important; border:2px solid #000; }
  .chk-score *{ color:#000 !important; }
  .finder-q{ display:none !important; }
}

.field-hint[hidden], .field-error[hidden]{ display:none; }

.hero-finder{ scroll-margin-top:92px; }
.field-hint[hidden], .field-error[hidden]{ display:none; }
.win-card, .chk-how-item{ border:1px solid rgba(20,23,31,.08); }


/* ==========================================================================
   MAKE IT BETTER (round 4): slim one-row action bar on phones.
   The long home page (about 16,000px on a phone) used to have a three-line panel with a full-width
   button covering the bottom of the screen. Now it is one compact row: what to do, and the button.
   ========================================================================== */
@media (max-width:560px){
  .dock{ padding:0 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .dock-inner{ flex-wrap:nowrap; align-items:center; gap:10px; padding:10px 12px 10px 16px; border-radius:18px; }
  .dock-text{ flex:1 1 auto; padding-right:0; }
  .dock-label{ display:none; }
  .dock-title{ font-size:15px; line-height:1.2; margin:0; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
  .dock-sub{ font-size:12.5px; line-height:1.3; margin-top:2px; }
  .dock[data-state="find"] .dock-sub{ display:none; }
  .dock-btn{ flex:none; width:auto; padding:11px 15px; font-size:14px; white-space:nowrap; }
  /* the close button becomes a small chip sitting on the top corner, out of the way of the text */
  .dock-x{ top:-11px; right:10px; width:26px; height:26px; font-size:17px; background:#12172b; border:1px solid rgba(255,255,255,.28); color:#fff; }
}

/* Materials page, phones: tighter spacing so the search box is on the first screen */
@media (max-width:700px){
  body.page-materials .timetable-hero{ padding:40px 0 22px; }
  body.page-materials .library{ padding-top:40px; }
}

.trial-done{ margin-top:16px; background:var(--cream); border:1.5px solid #14171f; border-radius:18px; padding:18px 18px 20px; outline:none; }
.trial-done[hidden]{ display:none; }
.trial-done h3{ margin:0 0 6px; font-size:19px; letter-spacing:-.02em; }
.trial-done p{ margin:0 0 14px; color:#566074; font-size:15px; }
.trial-done-actions{ display:flex; flex-wrap:wrap; gap:10px; }
@media (max-width:520px){ .trial-done-actions .btn{ flex:1 1 100%; justify-content:center; text-align:center; } }

.chk-score-delta{ display:inline-block; margin:2px 0 8px; padding:4px 12px; border-radius:999px; background:#ffc61a; color:#14171f; font-weight:700; font-size:14px; }
@media print{ .chk-score-delta{ border:1px solid #000; background:#fff !important; } }

/* Resources page with no real resources yet: tools lead, empty search and filters are hidden */
.lib-bare .lib-tools, .lib-bare .lib-formats, .lib-bare .lib-count{ display:none; }
.lib-bare .tools{ padding-bottom:30px; }

/* FAQ */
.faq{ padding:72px 0; }
.faq h2{ margin-bottom:26px; }
.faq-list{ display:grid; gap:10px; max-width:820px; }
.faq-item{ background:#fff; border:1.5px solid #14171f; border-radius:18px; padding:0 20px; }
.faq-item summary{ cursor:pointer; list-style:none; padding:18px 28px 18px 0; font-weight:700; color:#14171f; position:relative; font-size:17px; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:'+'; position:absolute; right:0; top:50%; transform:translateY(-50%); font-size:24px; font-weight:500; }
.faq-item[open] summary::after{ content:'−'; }
.faq-item summary:focus-visible{ outline:3px solid #ffc61a; outline-offset:3px; border-radius:10px; }
.faq-item p{ margin:0; padding:0 0 18px; color:#566074; font-size:16px; max-width:64ch; }
.faq-more{ margin-top:20px; color:#566074; }
@media (max-width:620px){ .faq{ padding:52px 0; } .faq-item summary{ font-size:16px; } }
@media print{ .faq{ display:none !important; } }

.pl-cta-alt{ margin:16px 0 0; font-size:15px; color:#566074; }

.footer-zh{ margin:8px 0 0; font-size:14px; opacity:.85; }
