/* FocusHour on the web: one stylesheet for every page (content/brand/website-brief.md).
   Tokens first (light, then dark), then the shared parts, then sign-in, then the landing page. (The web app has its
   own, public/app/app.css.) */

@font-face{font-family:"Plus Jakarta Sans";src:url(/fonts/PlusJakartaSans.woff2) format("woff2");font-weight:200 800;font-display:swap}

:root{
  --paper:#F7F3EC; --card:#FFFFFF; --ink:#17211C; --muted:#55625B; --line:#E4DDD0; --soft:#EFE9DE;
  --green:#0E7C5A; --deep:#0A3B2C; --mint:#3FD4AE; --indigo:#3D4DB7; --spark:#FFC24B;
  --blue:#2F6FBF; --red:#D9573F; --coral:#B4432B; --black:#17211C;
  --accent:var(--green); --on-accent:#FFFFFF; --eyebrow:#8A5800;
  --hintbg:#FDF1DA; --hintink:#5A3A00; --okbg:#E1F2EA; --okink:#0A4F39;
  --kibg:#EEF0FB; --kiink:#2B378A;
  --on-deep:#F7F3EC; --on-deep-muted:#B9D3C7; --stage:#FFFFFF;
  --head:"EB Garamond",Georgia,"Times New Roman",serif; --body:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --paper:#0E1311; --card:#151C19; --ink:#EDF2EE; --muted:#9DADA4; --line:#2A3530; --soft:#1B2420;
    --green:#3CC592; --deep:#123F30; --indigo:#9AA6FF;
    --blue:#6AA8F0; --red:#F07A62; --coral:#F28B74; --black:#EDF2EE;
    --on-accent:#0E1311; --eyebrow:#F5B53D;
    --hintbg:#33280F; --hintink:#F5DDA6; --okbg:#10301F; --okink:#A6E3C0;
    --kibg:#1C2142; --kiink:#C9D0FF; --stage:#E6EFEA;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --paper:#0E1311; --card:#151C19; --ink:#EDF2EE; --muted:#9DADA4; --line:#2A3530; --soft:#1B2420;
  --green:#3CC592; --deep:#123F30; --indigo:#9AA6FF;
  --blue:#6AA8F0; --red:#F07A62; --coral:#F28B74; --black:#EDF2EE;
  --on-accent:#0E1311; --eyebrow:#F5B53D;
  --hintbg:#33280F; --hintink:#F5DDA6; --okbg:#10301F; --okink:#A6E3C0;
  --kibg:#1C2142; --kiink:#C9D0FF; --stage:#E6EFEA;
  color-scheme:dark;
}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);
  font-size:17px;line-height:1.5;padding-bottom:env(safe-area-inset-bottom,0px)}
h1,h2,h3{font-family:var(--head);font-stretch:112%;letter-spacing:-0.02em;margin:0}
h1{font-weight:700;font-size:32px;line-height:1.1;margin:8px 0}
h2{font-weight:700;font-size:20px;line-height:1.2}
p{margin:0 0 12px}
a{color:var(--accent);text-underline-offset:3px}
img,svg{max-width:100%}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:6px}
[hidden]{display:none!important}
.muted{color:var(--muted)}
.small{font-size:16px}
.center{text-align:center}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- header (every page) ---------- */
.site{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:560px;margin:0 auto;
  padding:calc(12px + env(safe-area-inset-top,0px)) 16px 0}
.site.wide{max-width:1120px;padding-left:20px;padding-right:20px}
.site > a{display:flex;align-items:center;gap:9px;flex:none;min-height:44px;color:var(--ink);text-decoration:none;font:700 19px var(--head)}
.site > a img{width:34px;height:34px;border-radius:10px}
.site nav{display:flex;align-items:center;gap:6px}
.site nav a.nav{font:700 16px var(--head);color:var(--muted);text-decoration:none;padding:11px 8px;min-height:44px;display:inline-flex;align-items:center}
.site nav a.nav[aria-current="page"],.site nav a.nav:hover{color:var(--ink)}
.site .who{display:inline-block;max-width:34vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- buttons, cards, forms ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--green);color:var(--on-accent);border:0;
  border-radius:999px;font:700 17px var(--head);padding:12px 22px;min-height:48px;text-decoration:none;transition:transform .12s}
.btn:active{transform:scale(.98)}
.btn:hover{filter:brightness(1.06)}

.btn:disabled{opacity:.6;cursor:default}

.btn.wide{width:100%}
.btn.small{min-height:44px;padding:8px 16px;font-size:16px}
.link{background:none;border:0;padding:10px 0;min-height:44px;color:var(--accent);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.link.small{font-size:16px}
.card{overflow-wrap:anywhere;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:18px;margin:14px 0}
.row{display:flex;align-items:center;justify-content:space-between;gap:12px}
label{font-weight:700}
input[type=email],input[type=text],input[type=search],input#code,select,textarea{width:100%;font:17px var(--body);color:var(--ink);
  background:var(--paper);border:1.5px solid var(--line);border-radius:12px;padding:11px 12px;margin-top:6px;min-height:48px}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 25%,transparent)}
#code{letter-spacing:.3em;font-size:22px;text-align:center}
.err{color:var(--coral);font-weight:700;font-size:16px;margin:8px 0 0}
.err:empty{margin:0}

/* ---------- sign-in and privacy (narrow column) ---------- */
#app{max-width:560px;margin:0 auto;padding:16px 16px 48px}
/* the piste rail: rung markers graded like ski runs */

.g{--c:var(--green)} .b{--c:var(--blue)} .r{--c:var(--red)} .k{--c:var(--black)}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
.top .link{flex:none}

.opts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.opts.one{grid-template-columns:1fr}

sup{font-size:.68em;line-height:0}

.ok{background:var(--okbg);color:var(--okink);border-radius:14px;padding:13px 15px;margin:14px 0 12px}

.free{display:inline-block;font:700 14px/1 var(--head);letter-spacing:.12em;text-transform:uppercase;color:var(--eyebrow);margin-top:6px}

.pill{font:700 15px/1.2 var(--head);color:var(--muted)}
.end{text-align:center}

.end .pal{display:block;width:150px;height:auto;margin:12px auto 0}
.end h1{margin-top:8px}
table{width:100%;border-collapse:collapse;font-size:16px}
th,td{text-align:left;padding:7px 6px;border-bottom:1px solid var(--line);vertical-align:top}
th{color:var(--muted);font-weight:400}
.scroll{overflow-x:auto}

.page-pal{display:block;width:120px;height:auto;margin:8px 0 0}

/* Practise: the signed-out sampler and the signed-in portal (the funnel, 12 Oct 2026) */

.tablet{background:var(--deep);color:#F2FBF7;border-radius:22px;padding:18px;margin:18px 0}

.tablet h2{margin:6px 0 6px}
.tablet p{color:#C9E2D8}
.tablet .btn{background:#3FD4AE;color:#0A3B2C;margin-top:4px}
.tablet.done{background:var(--okbg);color:var(--okink)}
.tablet.done p{color:var(--okink)}

#app .form{margin-top:14px}

/* The student area as a programme (Fable, 12 Oct 2026) */
:focus:not(:focus-visible){outline:none}
/* A screen's heading takes focus so screen readers start there; it isn't a control, so no ring. */
[tabindex="-1"]:focus{outline:none}

.tab{border:0;background:none;border-radius:999px;padding:8px 18px;min-height:40px;font:700 16px var(--body);color:var(--muted);cursor:pointer}
.tab[aria-pressed="true"]{background:var(--card);color:var(--ink);box-shadow:0 2px 6px -3px rgba(0,0,0,.3)}

/* ---------- landing page (direction B: bright and bold) ---------- */
.wrap{max-width:1160px;margin:0 auto;padding:0 24px}

.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:center}
.split.flip > :first-child{order:2}

.lede{font-size:19px;line-height:1.55;color:var(--muted);max-width:32em}

.tag{display:block;font:700 15px/1.3 var(--body);letter-spacing:.1em;text-transform:uppercase;color:var(--okink)}
.ticks{list-style:none;padding:0;margin:20px 0 0;display:grid;gap:10px}
.ticks li{display:flex;gap:10px;align-items:flex-start}
.ticks li::before{content:"";flex:none;width:22px;height:22px;margin-top:1px;border-radius:50%;
  background:var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat}

/* hero: deep green, header on it */
.herotop{background:var(--deep)}
.hero{background:var(--deep);color:#F2FBF7;padding-bottom:96px;overflow:hidden}
.herotop .site{color:#F2FBF7}
.herotop .site > a{color:#F2FBF7}
.herotop .site nav a.nav{color:#B9D3C7}
.herotop .site nav a.nav:hover,.herotop .site nav a.nav[aria-current="page"]{color:#fff}
.herotop :focus-visible{outline-color:#FFC24B}
.herotop .site .btn.small{background:none;color:#F2FBF7;border:1.5px solid rgba(255,255,255,.35)}
.hero .split{padding-top:56px}
.hero h1{font-size:clamp(46px,7.4vw,88px);line-height:.94;font-weight:700;letter-spacing:-0.025em;margin:0 0 22px}
.hero h1 span{display:block}
.hero h1 .click{color:#3FD4AE}
.hero .lede{color:#C9E2D8;margin-bottom:22px}
.for{color:#BFF3E3;font:700 16px/1.5 var(--body);margin:0 0 28px}
.ctas{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.hero .btn{background:#3FD4AE;color:#0A3B2C}

.hero :focus-visible{outline-color:#FFC24B}
.stage{position:relative;max-width:540px;margin-left:auto;background:#3FD4AE;border-radius:40px;padding:28px}
.stage .shot{display:block;width:100%;height:auto;border-radius:18px;aspect-ratio:1000/768;box-shadow:0 30px 50px -22px rgba(0,0,0,.5)}
.moods{position:absolute;right:-22px;top:-44px;width:178px;background:#FFC24B;color:#17211C;border-radius:30px;padding:10px 10px 8px;
  transform:rotate(4deg);box-shadow:0 18px 30px -18px rgba(0,0,0,.5)}
.moods .pics{position:relative;aspect-ratio:640/500}
.moods .pics img{position:absolute;inset:0;width:100%;height:100%;opacity:0}
.moods .pics img:nth-child(3),.moods .caps span:nth-child(3){opacity:1}

.moods .caps{position:relative;height:24px;text-align:center;font:700 17px/24px var(--head)}
.moods .caps span{position:absolute;inset:0;opacity:0;white-space:nowrap}
/* Delays must out-rank the animation shorthand above, which resets them (owner, 12 Oct 2026: "doesn't continue"). */

@keyframes mood{0%{opacity:0} 3%,25%{opacity:1} 28%,100%{opacity:0}}
.moods.off .pics img,.moods.off .caps span{animation-play-state:paused}
.moods .pause{position:absolute;left:2px;top:2px;width:44px;height:44px;border:0;background:transparent;border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:#17211C}
.hero .moods .pause:focus-visible{outline:3px solid #17211C;outline-offset:0}
.moods .pause svg{width:16px;height:16px}
.moods .pause .play{display:none}

/* spare minutes: a rung on a phone */

.phone{width:300px;max-width:100%;margin:0 auto;display:block;background:#17211C;border-radius:44px;padding:11px;box-shadow:0 30px 50px -24px rgba(10,30,60,.55)}
.phone .screen{background:#F7F3EC;color:#17211C;border-radius:34px;padding:22px 16px 18px;min-height:460px;
  --paper:#F7F3EC;--card:#fff;--line:#E4DDD0;--ink:#17211C;--muted:#55625B;--hintbg:#FDF1DA;--hintink:#5A3A00;
  --green:#0E7C5A;--blue:#2F6FBF;--red:#D9573F;--black:#17211C}

/* tests */
.tests{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 28px;margin-top:28px}
.test{border-top:2px solid var(--line);padding:16px 0 18px}
.test.lead{border-top-color:var(--green)}
.test h3{font:700 26px/1 var(--head);letter-spacing:-0.02em}
.test .name{color:var(--muted);font-size:16px;margin:6px 0 12px}
.test .st{font:700 16px var(--body);color:var(--green)}

details.more{margin-top:18px}
details.more summary{cursor:pointer;font:700 16px var(--body);color:var(--accent);min-height:44px;display:inline-flex;align-items:center;list-style:none}
details.more summary::-webkit-details-marker{display:none}
details.more summary::after{content:"+";margin-left:8px}
details.more[open] summary::after{content:"−"}
details.more p{font-size:16px;color:var(--muted);max-width:44em}

/* parents: an example report */

.example{font-size:16px;color:var(--muted);margin:10px 2px 0}

/* free and invite only */
.plans{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:36px}
.plan{border-radius:28px;padding:26px}
.plan.pfree{background:var(--card);border:1px solid var(--line)}
.plan.pinv{background:var(--deep);color:#F2FBF7}
.plan h3{font:700 28px/1.05 var(--head);letter-spacing:-0.02em;margin:10px 0 8px}
.plan .who{font-size:16px;color:var(--muted);margin:0 0 16px}
.plan.pinv .who{color:#B9D3C7}
.plan.pinv .tag{color:#3FD4AE}
.plan.pinv .ticks li::before{background-color:#3FD4AE}
.plan .btn{margin-top:22px}
.plan.pinv .btn{background:#3FD4AE;color:#0A3B2C}

/* ask for access */
.form{display:grid;gap:16px}

fieldset{border:0;padding:0;margin:0;min-width:0}
legend{font-weight:700;padding:0;margin-bottom:8px}

.form textarea{min-height:90px;resize:vertical}
.opt-label{font-weight:400;color:var(--muted)}

.askh{font:700 28px/1.1 var(--head);letter-spacing:-0.02em;margin:0 0 10px}
.nosign{font-size:16px;color:#B9D3C7;margin:14px 0 0}

footer.foot{background:var(--deep);color:#B9D3C7;padding:32px 0 calc(32px + env(safe-area-inset-bottom,0px));font-size:16px}
footer.foot a{color:#F2FBF7;display:inline-block;padding:12px 4px}
footer.foot .wrap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

@media (max-width:1000px){
  .tests{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .split{grid-template-columns:minmax(0,1fr);gap:40px}
  .split.flip > :first-child{order:0}
  .stage{margin:20px auto 0;max-width:480px;padding:20px}
  .moods{right:-6px;top:-40px;width:150px}

  .plans{grid-template-columns:minmax(0,1fr)}

}
@media (max-width:560px){
  .wrap,.site.wide{padding-left:16px;padding-right:16px}
  .hero{padding-bottom:64px}
  .hero .split{padding-top:32px}
  .tests{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}

  .stage{margin-top:96px}
  .moods{width:144px;top:-124px;right:10px;border-radius:22px}
  .moods .caps{font-size:16px}

}
@media (max-width:380px){
  .site{gap:6px}
  .site > a{font-size:17px;gap:7px}
  .site > a img{width:30px;height:30px}
  .site nav{gap:2px}
  .site nav a.nav{padding:11px 5px;font-size:16px}
  .site .who{max-width:22vw}
  .site .btn.small{padding:8px 12px;font-size:16px}
}

/* ---------- the tour (Fable's storyboard, docs/research/website-tour-storyboard-2026-10-12.md) ----------
   Each scene shows one why-point; the mascot (drawn inline from img/mascot/moods.json by landing.js) changes pose with
   the story. Under reduced motion, or Save-Data, every scene is a complete still. */
.scene{padding:96px 0;position:relative}
.scene.alt{background:var(--card)}
.scene h2{font-size:clamp(32px,4.6vw,54px);font-weight:700;line-height:1.05;letter-spacing:-0.02em;margin:12px 0 16px;max-width:15em}
body.tour .herotop,body.tour .hero,body.tour footer{position:relative;z-index:2}
/* Mascots lean past their boxes on purpose; the page never scrolls sideways for it. clip (not hidden) keeps the
   tablet scene's sticky pin working. */
body.tour main{overflow-x:clip}

/* the mascot */
.pal{position:relative;width:200px;aspect-ratio:640/500}
.pal > img,.pal > svg{position:absolute;inset:0;width:100%;height:100%;transition:opacity .35s ease}
.pal svg.out{opacity:0}

.pal.side{position:absolute;left:0;bottom:0;width:180px;z-index:3}
.say.beat-say{position:absolute;left:0;bottom:150px;width:180px;max-width:180px;margin:0}
.say.beat-say::before{left:auto;right:30px;top:auto;bottom:-9px;transform:rotate(225deg)}
.pal.mid{width:170px}

.pal.wave{width:150px;flex:none}
.pal.in{animation:palin .32s cubic-bezier(.2,.7,.2,1) both}
@keyframes palin{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
.pal svg [data-part="eyes"]{transform-box:fill-box;transform-origin:center;animation:blink 5.5s infinite}
/* The layers carry their own transform attribute (their place in the drawing); animating `transform` would replace it
   and throw them out of place (owner, 12 Oct 2026: eyes above the glasses). `scale` and `rotate` add to it instead. */
@keyframes blink{0%,95%,100%{scale:1 1}97%{scale:1 .1}}
.say{position:relative;display:inline-block;background:var(--card);color:var(--ink);border:2px solid var(--ink);border-radius:18px;
  padding:9px 14px;font:700 16px/1.35 var(--body);max-width:260px;margin:10px 0 0}
.scene.alt .say{background:var(--paper)}
.say::before{content:"";position:absolute;left:24px;top:-9px;width:14px;height:14px;background:inherit;border-left:2px solid var(--ink);border-top:2px solid var(--ink);transform:rotate(45deg)}

/* the footage's own play/pause (phones), and one page-wide pause for the mascots' motion (the hero's button) */
.tour-ipad{position:relative}

/* "where they are": the line that opens the tablet, coach and phone scenes */
.scene.where{padding-bottom:0;text-align:center}
.scene.where h2{margin-left:auto;margin-right:auto}
.scene.where + .scene{padding-top:56px}

/* scene 3: the tablet, pinned while the attempt plays */
/* Pinned only while the script scrubs it (wide screens with motion); otherwise an ordinary scene. */
.scene.pin.scrub{padding:0;height:260vh}
#s-focus.scrub{height:320vh}
#s-load.scrub{height:280vh}
.scene.pin.scrub .sticky{position:sticky;top:0;height:100vh;height:100svh;display:flex;align-items:center}   /* svh: the screen left by the browser's bars */
.scene.pin.scrub .sticky > .wrap{width:100%}
/* The guide stands in reserved room beside the tablet, never off screen (Codex, 12 Oct 2026). */
.tabletbox{position:relative;max-width:calc(min(360px,62vh) + 190px);padding-left:190px;margin:0 0 0 auto}
.tour-ipad{background:#1B2320;border-radius:30px;padding:11px;box-shadow:0 30px 60px -30px rgba(10,59,44,.5)}
.tour-ipad img,.tour-ipad video{display:block;width:100%;height:auto;aspect-ratio:560/806;border-radius:20px;background:#F5F1EA}
.beats{list-style:none;padding:0;margin:8px 0 18px;display:grid;gap:12px;counter-reset:b}
.beats li{position:relative;padding:10px 0 10px 46px;color:var(--muted);font-size:18px;transition:color .3s}
.beats li::before{counter-increment:b;content:counter(b);position:absolute;left:0;top:8px;width:32px;height:32px;border-radius:50%;
  border:2px solid var(--line);display:flex;align-items:center;justify-content:center;font:700 16px var(--head);transition:all .3s}
.beats li b{color:var(--ink)}
.beats li.on{color:var(--ink)}
.beats li.on::before{background:var(--green);border-color:var(--green);color:var(--on-accent)}

/* scene 4: the right load */
.loadbox{position:relative;max-width:440px;margin:0 auto;padding:30px 26px 18px;border-radius:28px;box-shadow:0 30px 60px -40px rgba(10,59,44,.5)}
.loadnote{text-align:center;font:700 18px var(--head);min-height:1.4em;margin:0 0 14px}
.meter{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:22px}
.meter span{display:block;text-align:center;font:700 16px var(--body);color:var(--muted);padding:34px 0 0;border-top:10px solid var(--line);border-radius:6px}
.meter span:nth-child(1){border-top-color:#A6E3C0}.meter span:nth-child(2){border-top-color:#3FD4AE}.meter span:nth-child(3){border-top-color:#0E7C5A}
.meter .mark{position:absolute;top:-10px;left:calc(var(--lv,1) * 33.33% + 16.66% - 13px);width:26px;height:26px;border-radius:50%;
  background:var(--ink);border:4px solid var(--card);transition:left .3s cubic-bezier(.2,.7,.2,1)}
.reps{display:flex;gap:10px;justify-content:center;margin:0 0 18px}
.reps i{width:26px;height:26px;border-radius:50%;border:2px dashed var(--line);display:block}
.reps i.shown.y{border:0;background:#0E7C5A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat}
.reps i.shown.n{border:0;background:#B4432B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 6l8 8M14 6l-8 8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat}
.loadbox .pal{margin:0 auto}

/* scene 6: tests rise in turn */
.tests.rise .test{transition:transform .32s cubic-bezier(.2,.7,.2,1),opacity .32s}
#s-tests.pre .tests.rise .test{opacity:0;transform:translateY(12px)}
.tests.rise .test:nth-child(2){transition-delay:.05s}.tests.rise .test:nth-child(3){transition-delay:.1s}
.tests.rise .test:nth-child(4){transition-delay:.15s}.tests.rise .test:nth-child(5){transition-delay:.2s}
.tests.rise .test:nth-child(6){transition-delay:.25s}

/* scene 8: close */
.closehead{display:flex;align-items:center;justify-content:space-between;gap:16px}

@media (max-width:900px){
  .scene{padding:64px 0}
  .tabletbox{max-width:320px;margin-top:8px}
  .tabletbox{display:flex;flex-direction:column;align-items:flex-start;padding-left:0;max-width:320px}
  .pal.side{position:relative;left:auto;bottom:auto;width:120px;order:-2;margin:0 0 -6px 4px}
  .say.beat-say{position:relative;left:auto;bottom:auto;width:auto;max-width:none;order:-1;margin:0 0 12px}
  .say.beat-say::before{left:24px;right:auto;top:-9px;bottom:auto;transform:rotate(45deg)}
  #s-tablet .tour-ipad{width:100%}

}
@media (max-width:560px){

  .pal.wave{width:110px}
}

/* Motion is decoration: under reduced motion every animation stops on its most telling frame. */
@media (prefers-reduced-motion: reduce){
  *{transition:none!important;animation:none!important}
  .moods .pics img,.moods .caps span{opacity:0}
  .moods .pics img:nth-child(3),.moods .caps span:nth-child(3){opacity:1}
  .moods .pause{display:none}
}

/* the coach: the app's own screen zooms into Ask coach, then across to the coach's card (scrubbed by the scroll) */
.zoombox{width:100%;max-width:min(460px,52vh);margin:0 auto}
.zoomipad{background:#17211C;border-radius:30px;padding:11px;box-shadow:0 30px 60px -30px rgba(10,59,44,.5)}
.zoomview{position:relative;overflow:hidden;border-radius:20px;aspect-ratio:1200/1727;background:#F5F1EA}
.zplane{position:absolute;inset:0;transform-origin:0 0}
.zplane img{position:absolute;inset:0;width:100%;height:100%;display:block}
.zb{transition:opacity .35s}
.tap{position:absolute;left:37.6%;top:88.4%;width:24%;height:5.6%;translate:-50% -50%;border:3px solid #FFC24B;border-radius:999px;opacity:0;transition:opacity .2s}
.tap.on{opacity:1;animation:tap 1s ease-out infinite}
@keyframes tap{0%{scale:1}100%{scale:1.25;opacity:.2}}
@media (max-width:900px){ .zoombox{max-width:340px} }
#s-coach.scrub{height:320vh}

/* Focus, told in three beats while the scroll holds the scene (owner, 12 Oct 2026: show the distraction, don't just
   fade it): pings stack on a phone on the desk and it buzzes; the phone goes face down; the mascot locks in and the
   hour fills. The finished state (phone down, locked in, the hour full, all three lines) is the HTML's. */
.fstage{position:relative;width:100%;max-width:520px;margin:0 auto;padding-top:56px}
.fpal{width:72%;aspect-ratio:640/500}
.fpal > img,.fpal > svg{position:absolute;inset:0;width:100%;height:100%}
.fphone{position:absolute;right:2%;bottom:6%;width:27%;aspect-ratio:9/17;background:#17211C;border-radius:18px;padding:5px;
  transition:transform .5s cubic-bezier(.3,.7,.2,1);box-shadow:0 18px 30px -16px rgba(0,0,0,.45)}
.fscreen{position:relative;height:100%;border-radius:13px;background:#E9F4EF;padding:8px 5px;display:flex;flex-direction:column;gap:5px;overflow:hidden;transition:background .4s}
.fscreen span{background:#fff;color:#17211C;border-radius:8px;padding:5px 6px;font:700 11px/1.2 var(--body);box-shadow:0 2px 6px rgba(0,0,0,.12);
  transition:opacity .3s,transform .3s}
.fphone.live .fscreen span{opacity:0;transform:translateY(-8px)}
.fphone.live .fscreen span.on{opacity:1;transform:none}
.fphone.buzz{animation:buzz .35s linear}
@keyframes buzz{20%{rotate:-5deg}40%{rotate:5deg}60%{rotate:-3deg}80%{rotate:2deg}}
.fphone.down{transform:translate(-14%,12%) rotate(-74deg) scale(.82)}
.fphone.down .fscreen{background:#0E1512}
.fphone.down .fscreen span{opacity:0!important}
.hourring{position:absolute;right:4%;top:0;display:flex;align-items:center;gap:8px;font:700 16px var(--body);color:var(--muted);transition:opacity .4s}
.hourring svg{width:44px;height:44px;rotate:-90deg}
.hourring circle{fill:none;stroke-width:5}
.hourring .track{stroke:var(--line)}
.hourring .fill{stroke:var(--green);stroke-dasharray:100;stroke-dashoffset:calc(100 - var(--hour,1) * 100);stroke-linecap:round}
.fstage.early .hourring{opacity:0}
.lines span{display:block;transition:opacity .4s,color .4s}
.lines .l0{color:var(--muted)}
#s-focus.live .lines span{opacity:0}
#s-focus.live .lines span.on{opacity:1}
#s-focus.live .lines .l0.now{color:var(--ink)}
@media (max-width:900px){ .fstage{max-width:400px} }

/* The opening is a sentence now, not three words: a size that keeps it to three or four lines. */
.hero h1{font-size:clamp(36px,4.8vw,62px);line-height:1.02}

/* The opening holds while the scroll plays the mascot's moods (stuck, try another way, it clicks, earned); no timer
   (owner, 12 Oct 2026: tie it all to the scroll). Without the script it rests on "It clicks." */
.hero.scrub{height:190vh;padding-bottom:0;overflow:clip}   /* hidden would stop the sticky hold */
.hero.scrub > .sticky{position:sticky;top:0;min-height:100vh;display:flex;align-items:flex-start;padding-bottom:40px}
.hero.scrub > .sticky > .wrap{width:100%}
.moods.scroll .pics img,.moods.scroll .caps span{opacity:0;transition:opacity .3s}
.moods.scroll .pics img.on,.moods.scroll .caps span.on{opacity:1}
.hero h1 span{display:inline}
.hero .lede b{color:#F2FBF7;font-weight:700;font-size:clamp(20px,1.8vw,24px)}

/* Every scene reads heading first, then its picture: on the left on wide screens, above on phones (owner, 12 Oct
   2026). The held tablet fits a phone's screen. */
.scene .split > :has(> .tag){order:-1}
@media (max-width:900px){
  #s-tablet .tabletbox{max-width:min(300px,calc((100vh - 330px) / 1.45));max-width:min(300px,calc((100svh - 330px) / 1.45))}
  #s-tablet .beats{display:none}   /* the guide's comments tell the three steps here */
}

/* The opening's second line: "you" in italics with a mint underline, to say it's personal (owner, 12 Oct 2026). */
.hero .lede .say2{display:block;line-height:1.35}

.hero .lede .say2 em{font-style:italic;padding:0 .12em;color:#3FD4AE;text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:5px}

/* ---------- the plate (owner, 12 Oct 2026, after Anatomy's figures) ----------
   Quiet and exact: an off-white page, each scene a white plate with a hairline edge, drawings in crisp grey line on
   light solids, one colour at a time (the mascot's mint, a screen), and a serif whose second clause turns italic and
   grey. Big serif numbers for readouts; small grey sans for labels, numbered like figures. */
@font-face{font-family:"EB Garamond";src:url(/fonts/EBGaramond.woff2) format("woff2");font-weight:400 800;font-style:normal;font-display:swap}
@font-face{font-family:"EB Garamond";src:url(/fonts/EBGaramond-Italic.woff2) format("woff2");font-weight:400 800;font-style:italic;font-display:swap}
:root{--head:"EB Garamond",Georgia,"Times New Roman",serif;--page:#F3F3F1;--plate:#FFFFFF;--hair:#E3E3DF;--line2:#B9BAB5;--soft2:#8A8C87;--graphite:#2B2C2A}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--page:#0E1110;--plate:#151918;--hair:#262B29;--line2:#4A504C;--soft2:#8E9691;--graphite:#E6E8E4}}
:root[data-theme="dark"]{--page:#0E1110;--plate:#151918;--hair:#262B29;--line2:#4A504C;--soft2:#8E9691;--graphite:#E6E8E4}

body.tour,body.tour .herotop,body.tour .hero,body.tour main,body.tour footer.foot{background:var(--page);color:var(--graphite)}
body.tour .scene.alt{background:transparent}
body.tour .scene + .scene{border-top:0}
body.tour h1,body.tour h2,body.tour h3{font-family:var(--head);font-weight:500;letter-spacing:-0.01em;color:var(--graphite);font-stretch:normal}
body.tour h1 em,body.tour h2 em{font-style:italic;font-weight:400;color:var(--soft2)}
body.tour .hero h1{font-size:clamp(44px,5.6vw,76px);line-height:1.02}
body.tour .scene h2{font-size:clamp(36px,4.4vw,58px);line-height:1.04;max-width:12em}
body.tour .scene h2::before{display:none}

/* each scene a plate: white, a hairline edge, a soft shadow */
body.tour .scene > .wrap,body.tour .scene .sticky > .wrap{background:var(--plate);border:1px solid var(--hair);border-radius:6px;
  box-shadow:0 1px 2px rgba(0,0,0,.03),0 30px 60px -44px rgba(0,0,0,.28);padding:52px 56px}
body.tour .scene{padding:56px 0}
body.tour .scene.pin.scrub{padding:0}

/* labels: small grey sans, numbered like the plates of a book */
body.tour main{counter-reset:plate}
body.tour .tag{font:500 15px/1.3 var(--body);letter-spacing:.01em;text-transform:none;color:var(--soft2);rotate:none;margin-bottom:10px}
body.tour .scene .wrap .tag:first-child::before{counter-increment:plate;content:"No. " counter(plate) "  ·  ";color:var(--soft2)}
body.tour .small,body.tour .muted{color:var(--soft2)}

/* the opening: on the page, no plate */
body.tour .herotop .site{border-bottom:1px solid var(--hair);padding-bottom:12px}
body.tour .herotop .site,body.tour .herotop .site > a{color:var(--graphite)}
body.tour .herotop .site nav a.nav{color:var(--soft2)}
body.tour .herotop .site .btn.small{background:none;color:var(--graphite);border:1px solid var(--line2)}
body.tour .hero{color:var(--graphite)}
body.tour .hero .lede{color:var(--soft2)}
body.tour .hero .lede b{color:var(--graphite);font-weight:600}
body.tour .hero .lede .say2 em{font-family:var(--head);font-style:italic;font-size:1.2em;font-weight:500;color:var(--graphite);
  text-decoration:underline;text-decoration-color:#3FD4AE;text-decoration-thickness:2px;text-underline-offset:5px;background:none;padding:0}
body.tour .for{color:var(--soft2)}
body.tour .herotop :focus-visible,body.tour .hero :focus-visible{outline-color:var(--graphite)}
body.tour .stage{background:none;padding:0}
body.tour .stage .shot{border:1px solid var(--line2);box-shadow:0 30px 50px -36px rgba(0,0,0,.35);border-radius:10px}

/* buttons: ink and hairline, nothing loud */
body.tour .btn{background:var(--graphite);color:var(--plate);border:1px solid var(--graphite);border-radius:999px;box-shadow:none;font:600 16px var(--body)}
body.tour .btn:hover{filter:none;opacity:.88}

/* devices drawn as clean line figures: a grey outline, light body, the screen the one bright thing */
body.tour .tour-ipad,body.tour .zoomipad,body.tour .phone{background:#F7F7F5;border:1.5px solid var(--line2);box-shadow:0 30px 50px -40px rgba(0,0,0,.35);outline:none}
body.tour .tour-ipad img,body.tour .zoomview,body.tour .phone .screen{box-shadow:0 0 0 1px var(--hair)}

body.tour .fphone{background:#F7F7F5;border:1.5px solid var(--line2);box-shadow:none}
body.tour .fphone .fscreen{box-shadow:0 0 0 1px var(--hair)}
body.tour .fphone.down .fscreen{background:#E9E9E6 repeating-linear-gradient(-45deg,var(--line2) 0 1px,transparent 1px 5px)}
body.tour .say{font:500 16px/1.35 var(--body);border:1px solid var(--line2);background:var(--plate);color:var(--graphite)}
body.tour .say::before{border-color:var(--line2)}
body.tour .loadbox,body.tour .plan.pfree{background:var(--plate);border:1px solid var(--hair);box-shadow:none;border-radius:6px}
body.tour .loadbox{background:#FAFAF8}
body.tour .plan.pinv{background:var(--graphite);color:var(--plate)}
body.tour .test{border-top:1px solid var(--line2)}
body.tour .test.lead{border-top:2px solid var(--graphite)}
body.tour .meter .mark{background:var(--graphite)}
footer.foot{border-top:1px solid var(--hair)}
body.tour footer.foot,body.tour footer.foot a{color:var(--soft2)}

/* Pen and paper: the sheet of working; what paper can't do, line by line; then the sheet becomes a tablet */

.keeps{margin:22px 0 0;font:italic 400 30px/1.2 var(--head);color:var(--graphite)}

@media (max-width:900px){
  body.tour .scene > .wrap,body.tour .scene .sticky > .wrap{padding:28px 22px;margin:0 12px;width:auto}
  body.tour .scene{padding:28px 0}

  .keeps{font-size:25px}
}

/* Plates in two panels, as in Anatomy's figures: words on the left, the figure on the right over a faint grid, with
   small mono labels in the corners ("Fig n", and "Scroll to play" where the scroll drives it). */
:root{--mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;--gridc:rgba(0,0,0,.035)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--gridc:rgba(255,255,255,.04)}}
:root[data-theme="dark"]{--gridc:rgba(255,255,255,.04)}
body.tour main{counter-reset:plate fig}
body.tour .scene .wrap.split{position:relative;gap:112px;
  background:linear-gradient(90deg,var(--plate) calc(50% - 1px),var(--hair) calc(50% - 1px) 50%,transparent 50%),
    linear-gradient(var(--gridc) 1px,transparent 1px) 0 0/24px 24px,linear-gradient(90deg,var(--gridc) 1px,transparent 1px) 0 0/24px 24px,var(--plate)}
body.tour .scene .wrap.split::before,body.tour .scene.pin .wrap.split::after{position:absolute;top:16px;font:500 12.5px var(--mono);letter-spacing:.08em;
  text-transform:uppercase;color:var(--soft2);pointer-events:none}
body.tour .scene .wrap.split::before{counter-increment:fig;content:"Fig " counter(fig);left:calc(50% + 22px)}
body.tour .scene.pin .wrap.split::after{content:"Scroll to play";right:22px}
body.tour .tag{font:500 13.5px/1.3 var(--mono);letter-spacing:.08em;text-transform:uppercase}
body.tour .scene .wrap .tag:first-child::before{content:"No. " counter(plate) "  ·  "}

@media (max-width:900px){
  body.tour .scene .wrap.split{background:var(--plate);gap:24px}
  body.tour .scene .wrap.split::before,body.tour .scene.pin .wrap.split::after{display:none}
}

/* ---------- the student area as plates (owner, 12 Oct 2026: "redone with this style in mind") ----------
   The same voice as the site: an off-white page, each block a white plate with a hairline, EB Garamond headings with
   an italic grey second clause, small mono labels, ink buttons; the steps' ski colours are the one colour. */
body.student{background:var(--page);color:var(--graphite)}
body.student .site{border-bottom:1px solid var(--hair);padding-bottom:10px;max-width:640px}
body.student main{max-width:640px}
body.student h1,body.student h2,body.student h3{font-family:var(--head);font-weight:500;letter-spacing:-0.01em;color:var(--graphite)}
body.student h1{font-size:clamp(34px,7vw,46px);line-height:1.05;margin:14px 0 10px}
body.student h1 em,body.student h2 em{font-style:italic;font-weight:400;color:var(--soft2)}
body.student h2{font-size:26px;line-height:1.15}
body.student .muted,body.student .small.muted{color:var(--soft2)}
body.student .free,body.student .pill{font:500 12.5px/1.3 var(--mono);letter-spacing:.08em;
  text-transform:uppercase;color:var(--soft2)}

/* plates */
body.student .card,body.student .tablet{background:var(--plate);color:var(--graphite);border:1px solid var(--hair);border-radius:6px;
  box-shadow:0 1px 2px rgba(0,0,0,.03),0 20px 40px -34px rgba(0,0,0,.28)}

body.student .tablet{padding:22px}

body.student .tablet p{color:var(--soft2)}

/* buttons and answers */
body.student .btn{background:var(--graphite);color:var(--plate);border:1px solid var(--graphite);border-radius:999px;font:600 16px var(--body)}
body.student .btn:hover{filter:none;opacity:.88}

body.student .tablet .btn{background:var(--graphite);color:var(--plate)}
body.student .link{color:var(--graphite);font-weight:600}

body.student .ok{background:var(--plate);color:var(--graphite);border:1px solid var(--hair);border-left:3px solid #0E7C5A;border-radius:6px}

body.student .ok b{display:block;font:500 20px/1.3 var(--head);margin-bottom:2px}

body.student input[type=email],body.student input[type=text],body.student input[type=search],body.student input#code,body.student select,body.student textarea{
  background:var(--plate);border:1px solid var(--line2);border-radius:8px}
body.student .page-pal,body.student .end .pal{opacity:.95}

/* The pen scene's camera: the frame zooms inside the screen (landing.js), the device stays put. */
.tzoom{overflow:hidden;border-radius:10px;line-height:0}
.tzoom img{transform-origin:0 0;will-change:transform}

/* ---------- 13 Oct 2026: the report, read up close; light surfaces in dark mode ---------- */
/* For parents: a sample report in the family reports' phone format; the scroll turns its pages (landing.js). The frame
   shows the top of each page, where its content is, at full width so the text reads. */
#s-parents.scrub{height:320vh}
.pdfview{position:relative;overflow:hidden;aspect-ratio:1100/1180;max-width:460px;margin:0 auto;background:#FFFFFF;
  border:1px solid var(--hair);border-radius:6px;box-shadow:0 30px 50px -40px rgba(0,0,0,.35)}
.pdfview .zplane img{height:auto;bottom:auto;opacity:0;transition:opacity .3s,translate .45s;translate:0 8px}
.pdfview .zplane img.on{opacity:1;translate:0 0}
@media (max-width:900px){.pdfview{max-width:min(360px,calc((100svh - 260px) * .93))}}

/* Some figures stay light in dark mode (the load card, a report page). Their text keeps the
   light theme's colours, or it turns light on light and disappears (owner, 13 Oct 2026). */
body.tour .loadbox,.pdfview{
  --paper:#F7F3EC;--card:#FFFFFF;--ink:#17211C;--muted:#55625B;--line:#E4DDD0;--soft:#EFE9DE;--green:#0E7C5A;--red:#D9573F;
  --coral:#B4432B;--black:#17211C;--okbg:#E1F2EA;--okink:#0A4F39;--hintbg:#FDF1DA;--hintink:#5A3A00;
  --graphite:#2B2C2A;--soft2:#8A8C87;--hair:#E3E3DF;--line2:#B9BAB5;color-scheme:light;color:#17211C}

/* The student area, redesigned (Fable and Codex, 13 Oct 2026: it read pedestrian and lessons didn't stand out).
   Lessons are its pictures: today's film as a full poster, a shelf to watch next, a poster grid. One clear type
   scale, mono only for small labels, mint as the one accent, cards that exist in dark mode, one mascot a screen. */
body.student{--soft2:#626760;--mint:#3FD4AE}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) body.student{--soft2:#ABB4AD;--plate:#1A201D;--hair:#2C3330}}
:root[data-theme="dark"] body.student{--soft2:#ABB4AD;--plate:#1A201D;--hair:#2C3330}
body.student #app{max-width:640px}
body.student #app.wide{max-width:960px}
@media (min-width:900px){body.student .site{max-width:960px}}
body.student h1{font-size:clamp(32px,6.4vw,40px);line-height:1.08;margin:6px 0 8px}
body.student h2{font-size:22px}

body.student .card,body.student .tablet{box-shadow:none}

.play{position:absolute;right:14px;bottom:12px;width:44px;height:44px;border-radius:50%;background:rgba(23,33,28,.82);
  box-shadow:0 6px 18px -6px rgba(0,0,0,.4)}
.play::after{content:"";position:absolute;left:17px;top:13px;border-style:solid;border-width:9px 0 9px 14px;border-color:transparent transparent transparent #fff}

/* Plus Jakarta Sans's contextual alternates turn "3x" into "3×" (persona run, 14 Oct 2026): off everywhere, since
   maths text appears throughout. */
body{font-variant-ligatures:no-contextual;font-feature-settings:"calt" 0}


/* ---------- the front door (owner, 19 Oct 2026): one button into the app; the hour, the price and questions below ---------- */
body.tour .nosign{color:var(--soft2);margin-top:12px}
.hoursteps{list-style:none;padding:0;margin:28px 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0 20px;counter-reset:hs}
.hoursteps li{border-top:1px solid var(--line2);padding:14px 0 6px;counter-increment:hs}
.hoursteps li::before{content:counter(hs);display:block;font:500 13.5px var(--mono);color:var(--soft2);margin-bottom:8px}
.hoursteps b{display:block;font:500 22px/1.15 var(--head);color:var(--graphite);margin-bottom:6px}
.hoursteps span{display:block;font-size:16px;line-height:1.45;color:var(--soft2)}
body.tour .scene .plan .tag:first-child::before{content:none;counter-increment:none}
body.tour .plan.pinv h3,body.tour .plan.pinv .tag,body.tour .plan.pinv .who{color:var(--plate)}
body.tour .plan.pinv .who{opacity:.8}
body.tour #s-price > .wrap + .wrap{margin-top:16px}
.faq details.more{margin-top:4px;border-top:1px solid var(--hair)}
.faq details.more p{color:var(--soft2)}
@media (max-width:900px){
  .hoursteps{grid-template-columns:minmax(0,1fr)}
  .hoursteps li{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:8px;padding:12px 0 8px}
  .hoursteps li::before{grid-row:1 / span 2;margin:4px 0 0}
}
