/* =====================================================================
   TUPENDE LEARNING — public website (tupendelearning.co.ke), Sept 2026
   One stylesheet, no scripts, no cookies. Tupende green and gold.
   Display and reading type: Literata (optical sizes; served from this
   site; SIL Open Font License). Interface text: the device's own font.
   The one memorable thing: a real lesson week set on an exercise-book
   page, with notes in its margin. Everything else stays quiet.
   ===================================================================== */
@font-face{
  font-family:"Literata";
  src:url("/assets/fonts/literata-2026-09.woff2") format("woff2");
  font-weight:200 900; font-style:normal; font-display:swap;
}
:root{
  --white:#FFFFFF;
  --mist:#F2F4F1;
  --ink:#14221C;
  --ink-soft:#3A4B43;
  --muted:#5B6B63;
  --line:#DCE3DE;
  --green:#1E5A43;
  --forest:#0F3326;
  --gold:#E3A339;
  --gold-deep:#B77E1F;
  --margin-rule:#E6A4A0;           /* the red margin line of a Kenyan exercise book */
  --serif:"Literata", Georgia, "Times New Roman", serif;
  --sans:system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --wrap:76rem;
  --gutter:clamp(1.25rem, 4.5vw, 3rem);
  --space:clamp(4.5rem, 11vw, 9rem);
}
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth;}
body{margin:0; background:var(--white); color:var(--ink); font:400 1.0625rem/1.7 var(--sans); -webkit-font-smoothing:antialiased;}
img{display:block; max-width:100%; height:auto;}
a{color:var(--green); text-underline-offset:.2em; text-decoration-thickness:1px;}
a:hover{text-decoration-thickness:2px;}
:focus-visible{outline:3px solid var(--gold); outline-offset:3px; border-radius:3px;}
h1,h2,h3{font-family:var(--serif); font-optical-sizing:auto; color:var(--ink); margin:0; text-wrap:balance;}
h1{font-weight:500; font-size:clamp(3rem, 6.4vw, 5.9rem); line-height:.98; letter-spacing:-.025em;}
h2{font-weight:500; font-size:clamp(2.2rem, 4.4vw, 3.7rem); line-height:1.04; letter-spacing:-.02em;}
h3{font-weight:600; font-size:1.25rem; line-height:1.3; letter-spacing:-.005em;}
p{margin:0; text-wrap:pretty;}
.wrap{width:100%; max-width:var(--wrap); margin:0 auto; padding:0 var(--gutter);}
.skip{position:absolute; left:-999px; top:0; background:var(--ink); color:#fff; padding:.6rem 1rem; z-index:10;}
.skip:focus{left:.5rem; top:.5rem;}
.lede{font-size:clamp(1.12rem, 1.5vw, 1.28rem); line-height:1.6; color:var(--ink-soft);}

/* ---- header ----------------------------------------------------------- */
.site-head{background:var(--white); border-bottom:1px solid var(--line); position:relative; z-index:3;}
.site-head .wrap{display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:4.5rem;}
.brand{display:flex; align-items:center; gap:.7rem; color:var(--ink); text-decoration:none;}
.brand img{width:2.35rem;}
.brand span{font:600 1.18rem/1 var(--serif); letter-spacing:-.01em;}
.nav{display:flex; align-items:center; gap:1.75rem; font-size:.97rem;}
.nav a{color:var(--ink-soft); text-decoration:none;}
.nav a:hover{color:var(--ink); text-decoration:underline;}
.nav .signin{color:var(--green); font-weight:600;}
@media (max-width:44rem){ .nav .hide-sm{display:none;} }

/* ---- buttons: one gold action, one quiet one ---------------------------- */
.btn{display:inline-flex; align-items:center; justify-content:center; min-height:3.25rem; padding:.8rem 1.6rem;
  border-radius:3rem; font:600 1rem/1.2 var(--sans); text-decoration:none; transition:background-color .2s, color .2s, box-shadow .2s;}
.btn-gold{background:var(--gold); color:var(--ink);}
.btn-gold:hover{background:#EDB453; text-decoration:none;}
.btn-quiet{color:var(--ink); box-shadow:inset 0 0 0 1px rgba(20,34,28,.35);}
.btn-quiet:hover{box-shadow:inset 0 0 0 1.5px var(--ink); text-decoration:none;}
.btn-onforest{color:#fff; box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);}
.btn-onforest:hover{box-shadow:inset 0 0 0 1.5px #fff; text-decoration:none;}
.actions{display:flex; flex-wrap:wrap; gap:.8rem; align-items:center;}

/* ---- hero: the photograph is the page; the words sit on its sunlit wall -- */
.hero{position:relative; background:#EEE6DA; overflow:hidden;}
.hero picture img{width:100%; aspect-ratio:16/10; object-fit:cover; object-position:74% 40%;}
.hero-text{padding:2.4rem var(--gutter) 3.25rem;}
.hero-text .lede{margin-top:1.4rem; max-width:30rem;}
.hero-text .actions{margin-top:2rem;}
.hero-text .fine{margin-top:1.1rem; font-size:.92rem; color:var(--muted);}
@media (min-width:72rem){
  /* on the home page the header and the words line up with the photograph, not the page grid */
  .site-head.over{position:absolute; inset:0 0 auto 0; background:transparent; border-bottom:0;}
  .site-head.over .wrap{max-width:none; padding:0 7vw;}
  .hero{min-height:clamp(38rem, 100svh, 58vw); display:flex; align-items:center;}
  .hero picture{position:absolute; inset:0;}
  .hero picture img{height:100%; aspect-ratio:auto; object-position:38% 42%;}
  .hero-text{position:relative; width:100%; padding:6rem 7vw 4rem;}
  /* the words must stay on the sunlit wall. In the photograph the bookshelf
     starts at ~47% of its width (level with the headline) and the chair's back
     at ~40% (level with the paragraph and buttons). Measured at many screen
     sizes by the website checks. */
  .hero-text h1{font-size:5.3vw; max-width:6.6em;}
  .hero-text .lede, .hero-text .fine{max-width:26vw; font-size:max(1.05rem, 1.3vw);}
  .hero-text .fine{font-size:max(.9rem, .95vw);}
}
@media (prefers-reduced-motion:no-preference){
  .hero-text > *{animation:rise .9s cubic-bezier(.2,.7,.2,1) both;}
  .hero-text > :nth-child(2){animation-delay:.12s;}
  .hero-text > :nth-child(3){animation-delay:.24s;}
  .hero-text > :nth-child(4){animation-delay:.36s;}
}
@keyframes rise{from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:none;}}

/* ---- sections ------------------------------------------------------------ */
.section{padding:var(--space) 0;}
.section.mist{background:var(--mist);}
.split{display:grid; gap:2.5rem;}
.split .lede{margin-top:1.2rem;}
@media (min-width:56rem){
  .split{grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(3rem, 6vw, 6rem); align-items:start;}
  .split .sticky{position:sticky; top:2.5rem;}
}

/* ---- the week: a real lesson, word for word, on an exercise-book page ---- */
.week-top{display:grid; gap:1.4rem; margin-bottom:clamp(2.5rem, 6vw, 4rem);}
.week-top .lede{max-width:40rem;}
.week-hint{margin-top:.9rem; font-size:.95rem; color:var(--muted);}
@media (min-width:56rem){ .week-top{grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(3rem,6vw,6rem); align-items:end;} }
/* two more pages peek out behind the sheet: each is a white offset shadow with a 1px line */
.sheet{position:relative; max-width:60rem; margin:0 auto 18px; background:var(--white); border:1px solid var(--line); border-radius:4px;
  box-shadow:9px 9px 0 -1px var(--white), 9px 9px 0 0 var(--line), 18px 18px 0 -1px var(--white), 18px 18px 0 0 #E6EBE7,
             0 40px 70px -40px rgba(15,51,38,.30);}
.sheet-head{padding:1.8rem 1.5rem 1.5rem; border-bottom:1px solid var(--line);}
.sheet-head .course{font-size:.9rem; color:var(--muted);}
.sheet-head .substrand{margin-top:.9rem; font-size:.9rem; font-weight:600; color:var(--green);}
.sheet-head h3{margin-top:.25rem; font-size:clamp(1.5rem, 2.6vw, 2rem); font-weight:500; letter-spacing:-.01em;}
.sheet-head .strand{margin-top:.35rem; font-size:.9rem; color:var(--muted);}
.part{padding:1.35rem 1.5rem; border-bottom:1px solid var(--line);}
.part:last-child{border-bottom:0;}
.note{font-size:.84rem; line-height:1.4; color:var(--green); font-weight:600; margin:0 0 .5rem;}
.lesson .text{font-family:var(--serif); font-size:1.04rem; line-height:1.7; color:var(--ink); max-width:40rem;}
.lesson .text p + p, .lesson .text p + ul, .lesson .text ul + p{margin-top:.75rem;}
.lesson .text ul, .lesson .text ol{margin:.6rem 0 0; padding-left:1.25rem;}
.lesson .text li{margin-top:.3rem;}
.lesson .text li::marker{color:var(--gold-deep);}
.lesson .text strong{font-weight:650;}
.lesson .kiq{font-size:1.2rem; font-weight:500; line-height:1.45;}
.lesson .sub{margin:1.6rem 0 .2rem; font:700 .95rem/1.3 var(--sans); color:var(--green); letter-spacing:0;}
.box-lab{font:700 .78rem/1.3 var(--sans); color:var(--green); margin-bottom:.4rem; letter-spacing:.01em;}
.bigidea{margin:1rem 0; padding:.9rem 1.1rem; background:#FBF3E2; border-left:3px solid var(--gold);}
.bigidea .box-lab{color:var(--gold-deep);}
.box{margin-top:1.1rem; padding:1rem 1.15rem; border-radius:4px; background:var(--mist);}
.box.reallife{background:#FBF3E2;}
.box.reallife .box-lab{color:var(--gold-deep);}
.box.compare{background:#FDF0EE;}
.box.compare .box-lab{color:#A8473C;}
.cmp-item + .cmp-item{margin-top:.8rem;}
.cmp-term{font-weight:600;}
.box.quickcheck{background:#EAF5EE;}
.qc-prompt{font-family:var(--sans); font-size:.95rem; color:var(--ink-soft);}
.fig{margin:1.2rem 0 .4rem; text-align:center;}
.fig svg{max-width:100%; height:auto; display:block; margin:0 auto;}
.fig figcaption{margin-top:.6rem; font:italic .92rem/1.5 var(--serif); color:var(--muted);}
.box.we{background:var(--white); border:1px solid var(--line);}
.we-head{font-weight:600;}
.we-tag{display:inline-block; font:700 .78rem/1 var(--sans); color:#fff; background:var(--green); padding:.35rem .55rem; border-radius:3px; margin-right:.4rem; vertical-align:.1em;}
.we-obj{display:grid; gap:1rem; margin-top:1rem; align-items:center;}
.we-obj .fig{margin:0;}
.we-steps{list-style:none; padding:0 !important; margin-top:1rem !important;}
.we-step{display:grid; gap:.8rem; padding:1rem 0; border-top:1px solid var(--line); margin:0 !important;}
.we-step .fig{margin:0;}
.we-step .fig svg{max-width:min(100%, 28rem);}
.we-step-title{font-weight:650;}
.we-after{margin-top:.8rem; font-style:italic;}
@media (min-width:40rem){
  .we-obj{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);}
}
.lesson details summary{cursor:pointer; list-style:none;}
.lesson details summary::-webkit-details-marker{display:none;}
.box details{margin-top:.8rem;}
.box details summary{display:inline-flex; padding:.45rem 1rem; border-radius:1.1rem; font:600 .9rem/1.3 var(--sans); color:var(--green); box-shadow:inset 0 0 0 1px var(--green);}
.box details[open] summary{background:var(--green); color:#fff;}
.answers{margin-top:.8rem !important; padding-top:.6rem; border-top:1px dashed var(--green);}
.studio-name{font-weight:650;}
.route{list-style:none; padding:0 !important; display:flex; flex-wrap:wrap; gap:.4rem .9rem; font:500 .88rem/1.4 var(--sans); color:var(--muted);}
.route li{margin:0 !important; display:flex; align-items:center; gap:.4rem;}
.route span{display:inline-grid; place-items:center; width:1.4rem; height:1.4rem; border-radius:50%; border:1px solid var(--line); font-size:.75rem;}
.route .on{color:var(--ink); font-weight:700;}
.route .on span{background:var(--green); border-color:var(--green); color:#fff;}
.kit{list-style:none; padding:0 !important; display:flex; flex-wrap:wrap; gap:.4rem;}
.kit li{margin:0 !important; font:500 .85rem/1.3 var(--sans); padding:.3rem .65rem; border:1px solid var(--line); border-radius:1rem; color:var(--ink-soft);}
/* a card: its number in the margin, its title beside it; tap to open or close */
.card > summary{display:block; position:relative; padding-right:2.2rem;}
.card > summary .note{display:block;}
.card-title{display:block; font:500 1.28rem/1.3 var(--serif); letter-spacing:-.01em; color:var(--ink);}
.card > summary::after{content:""; position:absolute; right:.3rem; top:.4rem; width:.6rem; height:.6rem; border-right:2px solid var(--green); border-bottom:2px solid var(--green); transform:rotate(45deg); transition:transform .2s;}
.card[open] > summary::after{transform:rotate(-135deg); top:.75rem;}
.card-body{margin-top:.9rem;}
.continues .text{font-style:normal; color:var(--ink-soft);}
@media (min-width:40rem){
  /* the section names and card numbers sit in the page's margin, left of the red margin rule */
  .sheet-head{padding-left:11.5rem;}
  .part{display:grid; grid-template-columns:10rem 1fr; gap:0 1.5rem; padding-left:0;}
  .part > .note{padding-left:1.25rem; margin:.3rem 0 0;}
  .card{display:block;}
  .card > summary{display:grid; grid-template-columns:10rem 1fr; gap:0 1.5rem;}
  .card > summary .note{padding-left:1.25rem; margin:.35rem 0 0;}
  .card-body{margin-left:11.5rem;}
  .sheet > .rule{position:absolute; top:0; bottom:0; left:10.75rem; width:1.5px; background:var(--margin-rule); opacity:.75;}
}
@media (max-width:39.99rem){ .sheet > .rule{display:none;} }

/* ---- how it works: a real sequence, so it is numbered ------------------------ */
.steps{list-style:none; margin:3.5rem 0 0; padding:0; display:grid; gap:2.5rem; counter-reset:step;}
.steps li{counter-increment:step; border-top:1px solid var(--ink); padding-top:1.3rem;}
.steps li::before{content:counter(step); display:block; font:400 3.4rem/1 var(--serif); color:var(--gold-deep); margin-bottom:1.1rem;}
.steps p{margin-top:.5rem; color:var(--ink-soft);}
@media (min-width:56rem){ .steps{grid-template-columns:repeat(3,1fr); gap:clamp(2rem, 4vw, 4rem);} }

/* ---- a full-width photograph with its caption -------------------------------- */
.band img{width:100%; aspect-ratio:21/9; object-fit:cover; object-position:50% 40%;}
.band figcaption{margin-top:.9rem; font-size:.9rem; color:var(--muted);}
@media (max-width:40rem){ .band img{aspect-ratio:4/3;} }
.band{margin:0;}

/* ---- the subjects ---------------------------------------------------------------- */
.grades{margin:0; border-top:1px solid var(--ink);}
.grades div{padding:1.4rem 0; border-bottom:1px solid var(--line); display:grid; gap:.35rem;}
.grades dt{font:500 1.5rem/1.2 var(--serif); letter-spacing:-.01em;}
.grades dd{margin:0; color:var(--ink-soft);}
@media (min-width:40rem){ .grades div{grid-template-columns:11rem 1fr; gap:2rem; align-items:baseline;} }

/* ---- for parents -------------------------------------------------------------------- */
.parents{display:grid; gap:3rem;}
.parents .photo img{width:100%; aspect-ratio:4/5; object-fit:cover; object-position:42% 50%; border-radius:4px;}
.gains{list-style:none; margin:2.5rem 0 0; padding:0; display:grid; gap:1.8rem;}
.gains li{border-top:1px solid var(--line); padding-top:1.1rem;}
.gains h3{font-size:1.15rem;}
.gains p{margin-top:.35rem; color:var(--ink-soft); font-size:1rem;}
@media (min-width:44rem){ .gains{grid-template-columns:1fr 1fr; gap:1.8rem 2.5rem;} }
@media (min-width:56rem){
  .parents{grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(3rem, 6vw, 6rem); align-items:center;}
}

/* ---- for schools: the one dark section ---------------------------------------------- */
.forest{background:var(--forest); color:#fff;}
.forest h2{color:#fff;}
.forest .lede{color:#CFE1D8;}
.forest .photo img{width:100%; aspect-ratio:3/2; object-fit:cover; border-radius:4px;}
.forest ul{list-style:none; margin:2rem 0 0; padding:0; display:grid; gap:1rem;}
.forest li{padding-left:1.6rem; position:relative; color:#E6EFEA;}
.forest li::before{content:""; position:absolute; left:0; top:.8em; width:.9rem; height:1px; background:var(--gold);}
.forest .actions{margin-top:2.4rem;}
.schools{display:grid; gap:3rem;}
@media (min-width:56rem){ .schools{grid-template-columns:minmax(0,6fr) minmax(0,6fr); gap:clamp(3rem, 6vw, 6rem); align-items:center;} }

/* ---- questions --------------------------------------------------------------------- */
.faq{border-top:1px solid var(--ink);}
.faq details{border-bottom:1px solid var(--line);}
.faq summary{cursor:pointer; list-style:none; position:relative; padding:1.35rem 3rem 1.35rem 0;
  font:500 1.2rem/1.35 var(--serif); letter-spacing:-.005em;}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::before, .faq summary::after{content:""; position:absolute; right:.35rem; top:50%; width:.95rem; height:1.5px;
  background:var(--green); transition:transform .25s;}
.faq summary::after{transform:rotate(90deg);}
.faq details[open] summary::after{transform:rotate(0);}
.faq details p{padding:0 2.5rem 1.5rem 0; color:var(--ink-soft);}

/* ---- the closing invitation -------------------------------------------------------- */
.closing{text-align:center;}
.closing h2{font-size:clamp(2.6rem, 5.6vw, 4.8rem);}
.closing .lede{margin:1.3rem auto 0; max-width:32rem;}
.closing .actions{justify-content:center; margin-top:2.2rem;}

/* ---- footer ------------------------------------------------------------------------ */
.site-foot{border-top:1px solid var(--line); padding:3.5rem 0 2.5rem; font-size:.95rem; color:var(--ink-soft);}
.site-foot .wrap{display:grid; gap:2.2rem;}
.site-foot h2{font:600 .95rem/1.3 var(--sans); letter-spacing:0; margin-bottom:.7rem; color:var(--ink);}
.site-foot ul{list-style:none; margin:0; padding:0; display:grid; gap:.5rem;}
.site-foot .legal{grid-column:1/-1; padding-top:1.6rem; border-top:1px solid var(--line); color:var(--muted); font-size:.88rem;}
.foot-about{margin-top:.9rem; max-width:22rem;}
@media (min-width:56rem){ .site-foot .wrap{grid-template-columns:1.5fr 1fr 1fr;} }

/* ---- long-form pages: privacy policy and terms ---------------------------------------- */
.doc{padding:clamp(3rem, 8vw, 5.5rem) 0 var(--space);}
.doc .wrap{max-width:44rem;}
.doc h1{font-size:clamp(2.6rem, 5vw, 3.8rem);}
.doc .updated{margin-top:1rem; color:var(--muted);}
.doc .summary{margin-top:2.5rem; padding:1.6rem 1.75rem; background:var(--mist); border-left:3px solid var(--gold);}
.doc .summary h2{font-size:1.3rem; font-weight:600;}
.doc .summary ul{margin-top:.6rem;}
.doc h2{font-size:1.55rem; font-weight:600; margin-top:3rem; letter-spacing:-.01em;}
.doc h3{font-size:1.12rem; margin-top:1.8rem;}
.doc p, .doc ul{margin-top:.9rem;}
.doc ul{padding-left:1.25rem;}
.doc li{margin-top:.45rem;}
.doc li::marker{color:var(--gold-deep);}

@media (prefers-reduced-motion:reduce){ *{animation:none !important; transition:none !important;} html{scroll-behavior:auto;} }

/* small spacing helpers (no inline styles: the security rule forbids them) */
.how-lede{margin-top:1rem; max-width:32rem;}
.parents-lede, .schools-lede{margin-top:1.2rem;}
.notfound-lede{margin-top:1.2rem;}
.notfound-actions{margin-top:2rem;}
.band-wrap{margin-top:clamp(3.5rem, 8vw, 6rem);}

/* ---- 30 Sept 2026: free Mathematics given prominence (owner: "the entire funnel") --------- */
.nav .go-free{background:var(--gold); color:var(--ink); font-weight:700; padding:.5rem 1.05rem; border-radius:999px;
  text-decoration:none; white-space:nowrap; box-shadow:0 2px 6px rgba(183,126,31,.3);}
.nav .go-free:hover{background:#EDB453; color:var(--ink); text-decoration:none;}
.nav .go-short{display:none;}
@media (max-width:30rem){ .nav{gap:.7rem;} .nav .go-long{display:none;} .nav .go-short{display:inline;}
  .nav .go-free{padding:.42rem .8rem; font-size:.92rem;} .nav .signin{white-space:nowrap;}
  .brand{gap:.5rem;} .brand span{font-size:1rem; line-height:1.08;} }
.eyebrow{margin:0 0 .9rem; font:700 .78rem/1.3 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--green);}
.eyebrow.tagline{font:italic 500 clamp(1rem, 1.3vw, 1.2rem)/1.3 var(--serif); letter-spacing:0; text-transform:none;}
.btn-hero{min-height:3.8rem; padding:1rem 2.3rem; font-size:1.14rem; font-weight:700; box-shadow:0 6px 18px rgba(183,126,31,.35);}
.free-maths{background:#FBF3E4; border-top:4px solid var(--gold);}
.free-grid{display:grid; gap:2.5rem;}
.free-grid .lede{margin-top:1.2rem;}
.free-list{list-style:none; margin:1.8rem 0 2.2rem; padding:0; display:grid; gap:.8rem;}
.free-list li{position:relative; padding-left:2rem; color:var(--ink-soft);}
.free-list li::before{content:""; position:absolute; left:0; top:.45em; width:1.1rem; height:1.1rem; border-radius:50%;
  background:var(--gold); box-shadow:inset 0 0 0 .32rem #FBF3E4;}
.free-list strong{color:var(--ink);}
.unlock-line{margin-top:1.3rem; font-size:.97rem; color:var(--muted);}
.free-photo{margin:0;}
.free-photo img{width:100%; aspect-ratio:4/3; object-fit:cover; object-position:50% 40%; border-radius:6px;}
.free-photo figcaption{margin-top:.9rem; font-size:.9rem; color:var(--muted);}
@media (min-width:56rem){ .free-grid{grid-template-columns:minmax(0,6fr) minmax(0,6fr); gap:clamp(3rem,6vw,6rem); align-items:center;} }
.free-mark{display:inline-block; margin-left:.4rem; padding:.28rem .55rem; border-radius:999px; background:var(--gold); color:var(--ink);
  font:700 .72rem/1 var(--sans); font-style:normal; letter-spacing:.06em; text-transform:uppercase; vertical-align:.14em;}
.free-subj{color:var(--ink); font-weight:700;}
.unlock-note{margin-top:1.2rem; color:var(--ink-soft);}
.week-after{margin-top:1.6rem; font-size:1.02rem; color:var(--ink-soft);}
.week-after a{color:var(--green); font-weight:700;}
/* 30 Sept 2026: the sample is ONE card, always open (Pre-Technical worked example): its title line as the
   collapsible cards' summary, without the open/close arrow */
.card > .card-head{display:block;}
.card-head .note{display:block;}
@media (min-width:40rem){
  .card > .card-head{display:grid; grid-template-columns:10rem 1fr; gap:0 1.5rem;}
  .card-head .note{padding-left:1.25rem; margin:.35rem 0 0;}
}

/* ---- 30 Sept 2026 (owner: "elevate the UI … animation", agreed A-D). Movement is done with styles only
   (the website runs no scripts). Where a browser cannot animate, everything simply shows, still; when
   "reduce motion" is asked, nothing moves. -------------------------------------------------------- */
@media (prefers-reduced-motion:no-preference){
  /* A. the opening rises in, one element after another (the gold button's shine was removed on the
     owner's request, 30 Sept 2026: the button itself never animates on its own) */
  .hero-text > :nth-child(5){animation-delay:.48s;}
  /* D. buttons and the top-bar button lift a little under the mouse */
  .btn, .nav .go-free{transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease;}
  .btn:hover, .nav .go-free:hover{transform:translateY(-2px);}
  .btn-gold:hover{box-shadow:0 8px 22px rgba(183,126,31,.38);}
}
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion:no-preference){
    /* B. each section arrives as the parent scrolls to it */
    main > .section > .wrap{animation:arrive linear both; animation-timeline:view(); animation-range:entry 0% entry 40%;}
    /* C. the Stairs example: each drawing appears in turn, wiping in as if being drawn */
    .lesson .we-step .fig svg, .lesson .we-obj .fig svg{animation:draw-in linear both; animation-timeline:view(); animation-range:entry 15% cover 35%;}
    /* D. the free-Maths points arrive one by one */
    .free-list li{animation:arrive-side linear both; animation-timeline:view(); animation-range:entry 10% entry 70%;}
  }
}
@keyframes arrive{from{opacity:0; transform:translateY(26px);} to{opacity:1; transform:none;}}
@keyframes arrive-side{from{opacity:0; transform:translateX(-14px);} to{opacity:1; transform:none;}}
@keyframes draw-in{from{opacity:.15; clip-path:inset(0 100% 0 0);} to{opacity:1; clip-path:inset(0 0 0 0);}}
/* D. finishing: the free section a touch warmer, its photo lifted off the page */
.free-maths{background:linear-gradient(180deg, #FBF3E4 0%, #FDF8EE 100%);}
.free-photo img{box-shadow:0 18px 40px rgba(20,34,28,.14);}
