/* res.pov.sg — home page v8 (15 Nov 2026): the pov.sg client-view system.
   Hero: one tight Space Grotesk headline with the lime band, a dark pill + an outline pill, ONE real screen straight in a
   clean frame and ONE floating card. Sections below share one card style; tool colours are small dots, not blocks.
   Shared tokens and atoms (.pro-*, .btn, header, footer) live in app.css. */

/* ---------- hero ---------- */
.hx { position: relative; isolation: isolate; padding: 64px 0 64px; overflow: hidden; overflow: clip; }
.hx::before, .hx::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; will-change: transform; }
.hx::before { right: -6%; top: 2%; width: 62%; height: 96%; background: radial-gradient(closest-side, rgba(200,242,75,.32), rgba(200,242,75,0)); animation: hx-glow-a 18s ease-in-out infinite alternate; }
.hx::after { right: 18%; top: 34%; width: 44%; height: 70%; background: radial-gradient(closest-side, rgba(61,91,240,.10), rgba(61,91,240,0)); animation: hx-glow-b 23s ease-in-out infinite alternate; }
[data-theme="dark"] .hx::before { opacity: .35; }
[data-theme="dark"] .hx::after { opacity: 1.6; background: radial-gradient(closest-side, rgba(61,91,240,.16), rgba(61,91,240,0)); }
.hx.is-off::before, .hx.is-off::after { animation-play-state: paused; }
@keyframes hx-glow-a { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-7%, 5%) scale(1.08); } 100% { transform: translate(-2%, -4%) scale(.96); } }
@keyframes hx-glow-b { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(12%, -10%) scale(1.15); } 100% { transform: translate(-6%, 6%) scale(.92); } }

/* load-in: home-member.js adds html.hx-anim before first paint (never under reduced motion). Fill mode is
   "backwards" only, so once each entrance ends the element is back on its normal style (hover transforms work). */
.hx-anim .hx__eb, .hx-anim .hx__h, .hx-anim .hx__lede, .hx-anim .hx__cta, .hx-anim .hx__meta, .hx-anim .hx__mem { animation: hx-up .8s cubic-bezier(.2,.7,.2,1) backwards; }
.hx-anim .hx__h { animation-delay: .06s; }
.hx-anim .hx__lede { animation-delay: .16s; }
.hx-anim .hx__cta { animation-delay: .24s; }
.hx-anim .hx__meta, .hx-anim .hx__mem { animation-delay: .32s; }
.hx-anim .hx__h .pro-hl:not(.pro-hl--wrap) { position: relative; z-index: 0; background: none; white-space: nowrap; }
.hx-anim .hx__h .pro-hl:not(.pro-hl--wrap)::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 14%; bottom: 8%; background: var(--lime); transform-origin: 0 50%;
  animation: hx-sweep .8s cubic-bezier(.65,0,.2,1) .5s backwards; }
.hx-anim .hx-par--frame > .hx-frame { animation: hx-rise 1s cubic-bezier(.2,.7,.2,1) .14s backwards; }
.hx-anim .hd-bar { animation: hx-fade .6s ease-out .45s backwards; }
.hx-anim .hx-card { animation: hx-card .9s cubic-bezier(.2,.75,.25,1.05) .62s backwards; }
@keyframes hx-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes hx-fade { from { opacity: 0; } }
@keyframes hx-sweep { from { transform: scaleX(0); } }
@keyframes hx-rise { from { opacity: 0; transform: translateY(34px) scale(.96); } }
@keyframes hx-card { from { opacity: 0; transform: translate(-14px, 26px); } }
.hx__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr); gap: 56px; align-items: start; }
/* top-aligned (not centred): the visual is parsed after the hero copy, so a centred copy column would jump when it lands */
@media (min-width: 1101px) { .hx__copy { padding-top: 36px; } }
.hx__eb { margin-bottom: 26px; }
.hx__h { font: 600 clamp(2.75rem, 5.3vw, 4.6rem)/.98 var(--f-head); letter-spacing: -.045em; color: var(--ink); margin: 0 0 24px; max-width: 11ch; text-wrap: balance; }
.hx__h--member { max-width: 10ch; }
.hx__lede { font: 400 1.125rem/1.45 var(--f-body); color: var(--ink-2); max-width: 42ch; margin: 0 0 30px; }
.hx__cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hx-go, .hx-alt { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1.1 var(--f-body); letter-spacing: normal; text-transform: none; text-decoration: none; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.hx-go { background: #101214; color: #f3f3f1; border: 1px solid #101214; }
.hx-go span { transition: transform .2s var(--ease); }
.hx-go:hover { transform: translateY(-1px); background: #26292d; }
.hx-go:hover span { transform: translateX(3px); }
.hx-alt { background: var(--card); color: var(--ink); border: 1px solid var(--btn-bd); font-weight: 500; }
.hx-alt:hover { border-color: var(--ink); transform: translateY(-1px); }
.hx-go:focus-visible, .hx-alt:focus-visible { outline: 2px solid #3d5bf0; outline-offset: 3px; }
[data-theme="dark"] .hx-go { background: #f3f3f1; border-color: #f3f3f1; color: #101214; }
[data-theme="dark"] .hx-go:hover { background: #fff; }
.hx__meta { margin: 22px 0 0; font: 400 .9rem/1.5 var(--f-body); color: var(--mut); }
.hx__meta i { font-style: normal; opacity: .6; margin: 0 4px; }
.hx__meta a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; display: inline-block; padding: 11px 0; margin: -11px 0; }
.hx__meta a:hover { text-decoration-color: var(--ink); }
.hx__mem { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font: 400 .92rem/1.5 var(--f-body); color: var(--ink-2); }
.hx__mem a, .hx__mem .linkbtn { color: var(--ink); font-weight: 600; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; display: inline-block; padding: 10px 0; margin: -10px 0; }
.hv__member[hidden], .hv--member .hv__guest { display: none; }

/* the visual: the live demo frame (tabs + three built scenes) with one floating card */
.hx__visual { position: relative; min-width: 0; padding-bottom: 92px; }
.hx-par { will-change: translate; }
.hx-par--card { position: absolute; left: -28px; bottom: 0; z-index: 2; width: min(360px, 82%); }
.hx-frame { margin: 0; border-radius: 18px; overflow: hidden; background: var(--card);
  box-shadow: 0 0 0 1px rgba(16,18,20,.09), 0 2px 6px rgba(16,18,20,.05), 0 30px 60px -28px rgba(16,18,20,.42); }
[data-theme="dark"] .hx-frame { background: #15181b; box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 30px 60px -24px rgba(0,0,0,.9); }
.hx-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center;
  width: 100%; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.96); color: #101214; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(16,18,20,.07), 0 18px 40px -16px rgba(16,18,20,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.hx-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(16,18,20,.12), 0 24px 46px -16px rgba(16,18,20,.4); }
.hx-card:hover .hx-card__go span { transform: translateX(3px); }
.hx-card__go span { display: inline-block; transition: transform .2s var(--ease); }
.hx-card:focus-visible { outline: 2px solid #3d5bf0; outline-offset: 3px; }
[data-theme="dark"] .hx-card { background: rgba(20,23,26,.96); color: #f3f3f1; box-shadow: 0 0 0 1px #2a2e33, 0 18px 40px -16px rgba(0,0,0,.8); }
.hx-card__ic { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--lime); color: #101214; }
.hx-card__ic svg { width: 20px; height: 20px; }
.hx-card__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hx-card__k { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #5f656b; }
[data-theme="dark"] .hx-card__k { color: #a7adb3; }
.hx-card__t { font: 600 1.2rem/1.2 var(--f-head); letter-spacing: -.02em; }
.hx-card__m { font: 400 .86rem/1.4 var(--f-body); color: #4d5359; }
[data-theme="dark"] .hx-card__m { color: #c3c8cd; }
.hx-card__go { grid-column: 2; margin-top: 6px; padding-top: 10px; border-top: 1px solid rgba(16,18,20,.08); font: 600 .86rem/1.3 var(--f-body); }
[data-theme="dark"] .hx-card__go { border-top-color: #2a2e33; }

/* ---------- hero demo (.hd): tab bar with a sliding pill, then a stage whose scenes are sized in em
   off the stage width (container units), so they scale crisply from 320px phones to 1440px desktops ---------- */
.hd { --hd-mock: #3d5bf0; --hd-notes: #8fbf1f; --hd-sheet: #f0a52e; --hd-c: var(--hd-mock); }
.hd[data-cur="1"] { --hd-c: var(--hd-notes); }
.hd[data-cur="2"] { --hd-c: var(--hd-sheet); }
.hd-bar { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-bottom: 1px solid var(--line); background: var(--card); }
[data-theme="dark"] .hd-bar { background: #1a1d21; border-bottom-color: #2a2e33; }
.hd-tabs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1 1 auto; max-width: 400px; margin: 0 auto; padding: 3px; border-radius: 999px; background: var(--tint); visibility: hidden; }
.hd.is-js .hd-tabs { visibility: visible; }
[data-theme="dark"] .hd-tabs { background: #101214; }
.hd-pill { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 999px; background: var(--card); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(16,18,20,.07), 0 2px 6px rgba(16,18,20,.10); transition: transform .5s cubic-bezier(.3,.75,.2,1); }
[data-theme="dark"] .hd-pill { background: #2a2f35; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 2px 8px rgba(0,0,0,.5); }
.hd-prog { position: absolute; left: 16%; right: 16%; bottom: 3px; height: 2px; border-radius: 2px; background: var(--hd-c); transform-origin: 0 50%; transform: scaleX(0); opacity: .9; transition: background .3s; }
.hd.is-live .hd-prog.is-run { animation: hd-prog var(--hd-dur, 6.6s) linear both; }
.hd.is-rm .hd-prog, .hd.is-held .hd-prog { opacity: 0; }
@keyframes hd-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hd-tabs [role="tab"] { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 34px; padding: 0 8px; border: 0; border-radius: 999px;
  background: transparent; color: var(--mut); font: 500 13px/1 var(--f-body); white-space: nowrap; cursor: pointer; transition: color .25s; -webkit-tap-highlight-color: transparent; }
.hd-tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.hd-tabs [role="tab"]:hover { color: var(--ink); }
.hd-tabs [role="tab"]:focus-visible { outline: 2px solid #3d5bf0; outline-offset: -2px; }
.hd-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--line-2); transition: background .3s, transform .3s var(--ease); }
[aria-selected="true"] > .hd-dot { transform: scale(1.15); }
[aria-selected="true"] > .hd-dot--mock { background: var(--hd-mock); }
[aria-selected="true"] > .hd-dot--notes { background: var(--hd-notes); }
[aria-selected="true"] > .hd-dot--sheet { background: var(--hd-sheet); }
.hd-pp { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; visibility: hidden; transition: border-color .2s, color .2s; }
.hd.is-js:not(.is-rm) .hd-pp { visibility: visible; }
.hd-pp:hover { border-color: var(--ink); color: var(--ink); }
.hd-pp:focus-visible { outline: 2px solid #3d5bf0; outline-offset: 2px; }
.hd-pp svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hd-pp__play { display: none; fill: currentColor; stroke-width: 1.5; }
.hd.is-held .hd-pp__pause { display: none; } .hd.is-held .hd-pp__play { display: inline; }

.hd-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; background: #eef1fc; transition: background .5s; }
.hd[data-cur="1"] .hd-stage { background: #f4f8e9; }
.hd[data-cur="2"] .hd-stage { background: #faf3e2; }
[data-theme="dark"] .hd-stage { background: #13161f; }
[data-theme="dark"] .hd[data-cur="1"] .hd-stage { background: #151a10; }
[data-theme="dark"] .hd[data-cur="2"] .hd-stage { background: #1b1811; }
.hd-cv { position: absolute; inset: 0; font-size: 16px; font-size: 2.5cqw; line-height: 1.3; color: #101214; }
[data-theme="dark"] .hd-cv { color: #eceef0; }
.hd-sc { position: absolute; inset: 0; transition: opacity .45s ease, transform .55s cubic-bezier(.3,.7,.2,1), visibility 0s .55s; }
.hd-sc:not(.is-on) { opacity: 0; visibility: hidden; transform: translateX(3%); }
.hd-sc.is-on { transition: opacity .45s ease .12s, transform .55s cubic-bezier(.3,.7,.2,1) .12s, visibility 0s; }
.hd-sc.is-out { transform: translateX(-3%); }
:where(.hd-sc) :where(p, ol, ul) { margin: 0; padding: 0; list-style: none; }

/* scene 1: mock exam */
.hm-top { display: flex; align-items: center; gap: .55em; height: 2.6em; padding: 0 .9em; background: #101214; color: #f3f3f1; }
.hm-ttl { display: flex; flex-direction: column; gap: .15em; min-width: 0; flex: 1 1 auto; }
.hm-ttl b { font: 600 .72em/1.1 var(--f-head); }
.hm-ttl small { font: 500 .48em/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #9aa1a8; }
.hm-n { font: 500 .56em/1 var(--f-mono); padding: .55em .7em; border-radius: 999px; border: 1px solid #33383e; color: #c9ced3; }
.hm-time { font: 600 .74em/1 var(--f-mono); font-variant-numeric: tabular-nums; padding: .45em .65em; border-radius: 999px; background: #1f2327; color: #f3f3f1; }
.hm-sub { font: 600 .6em/1 var(--f-body); padding: .65em .9em; border-radius: 999px; background: var(--lime); color: #101214; }
.hm-body { display: grid; grid-template-columns: minmax(0, 1fr) 9.4em; gap: .85em; padding: 1em 1em; }
.hm-q { position: relative; padding: .95em 1.05em 1.05em; border-radius: .75em; background: #fff; box-shadow: 0 0 0 1px rgba(16,18,20,.07), 0 .4em 1.2em -.6em rgba(16,18,20,.25); }
[data-theme="dark"] .hm-q, [data-theme="dark"] .hm-sheet { background: #1c2026; box-shadow: 0 0 0 1px #2a2e33; }
.hm-qh { display: flex; align-items: center; gap: .6em; font: 500 .5em/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #6b7177; }
.hm-qn { padding: .45em .6em; border-radius: 999px; background: #101214; color: var(--lime); letter-spacing: .04em; }
[data-theme="dark"] .hm-qh { color: #9aa1a8; }
.hm-qt { margin: .6em 0 .75em; font: 500 .88em/1.4 var(--f-body); }
.hm-opts { display: grid; gap: .45em; }
.hm-opts li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65em; align-items: center; padding: .62em .8em; border-radius: .6em; border: 1px solid #e3e3df; font: 400 .7em/1.38 var(--f-body); color: #2c3136; }
[data-theme="dark"] .hm-opts li { border-color: #2e3338; color: #c9ced3; }
.hm-l { position: relative; z-index: 1; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; border: 1px solid #d2d2cc; font: 600 .82em/1 var(--f-mono); color: #4d5359; }
[data-theme="dark"] .hm-l { border-color: #3a4046; color: #c9ced3; }
.hm-opts li > span { position: relative; z-index: 1; }
.hm-sel { position: absolute; inset: -1px; border-radius: inherit; background: #f6fbe6; box-shadow: inset 0 0 0 1.5px #101214; }
[data-theme="dark"] .hm-sel { background: #222a14; box-shadow: inset 0 0 0 1.5px var(--lime); }
.hm-c > span:not(.hm-ok) { color: #101214; } [data-theme="dark"] .hm-c > span:not(.hm-ok) { color: #f3f3f1; }
.hm-lsel { position: absolute; inset: -1px; display: grid; place-items: center; border-radius: 50%; background: #101214; color: var(--lime); font-style: normal; }
.hm-ok { position: absolute !important; z-index: 3 !important; right: .7em; top: -.95em; display: inline-flex; align-items: center; gap: .35em; padding: .38em .7em .38em .5em; border-radius: 999px; background: var(--lime); color: #101214; font: 600 .9em/1 var(--f-body); box-shadow: 0 .3em .9em -.3em rgba(16,18,20,.45); }
.hm-ok svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hm-cur { position: absolute; z-index: 4; left: 58%; top: 52%; width: 1.9em; height: 1.9em; opacity: 0; pointer-events: none; }
.hm-cur svg { display: block; width: 100%; height: 100%; fill: #101214; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 .15em .25em rgba(0,0,0,.3)); }
.hm-rip { position: absolute; z-index: 2; left: 58%; top: 52%; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border-radius: 50%; background: rgba(200,242,75,.55); opacity: 0; pointer-events: none; }
.hm-sheet { align-self: start; padding: .7em .7em .8em; border-radius: .75em; background: #fff; box-shadow: 0 0 0 1px rgba(16,18,20,.07), 0 .4em 1.2em -.6em rgba(16,18,20,.25); }
.hm-sh { display: flex; flex-direction: column; gap: .35em; margin-bottom: .7em; font: 600 .6em/1 var(--f-head); }
.hm-sh small { font: 500 .78em/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #6b7177; }
.hm-rows { display: grid; gap: .32em; }
.hm-rows li { display: grid; grid-template-columns: 1.4em repeat(4, 1fr); align-items: center; justify-items: center; gap: .2em; padding: .12em .2em; border-radius: .4em; }
.hm-rows li.is-cur { background: #f1fbd3; box-shadow: inset .15em 0 0 #9ed321; }
[data-theme="dark"] .hm-rows li.is-cur { background: #232a14; }
.hm-rows b { justify-self: start; font: 500 .48em/1 var(--f-mono); color: #8b9095; }
.hm-rows i { position: relative; display: block; width: .86em; height: .86em; border-radius: 50%; border: 1px solid #c9c9c3; }
[data-theme="dark"] .hm-rows i { border-color: #3d4349; }
.hm-rows .hm-fill::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: #101214; }
[data-theme="dark"] .hm-rows .hm-fill::after { background: var(--lime); }

/* scene 2: notes mind map (colours from the notes diagrams) */
.hd-sc--notes { display: flex; flex-direction: column; padding: .95em 1.1em 3.4em; }
.hd-sc--notes > :not(.hn-row) { font-size: 1.2em; }
.hn-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8em; align-items: end; margin-top: auto; }
.hn-trap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35em .9em; align-items: baseline; padding: .7em .85em; border-radius: .6em; background: #fff4e6; box-shadow: inset 0 0 0 1.5px #f3c98d; font: 400 .6em/1.4 var(--f-body); color: #15181b; }
.hn-tk { grid-row: span 2; align-self: center; justify-self: start; padding: .35em .55em .3em; border-radius: .3em; background: #b5520c; color: #fff; font: 600 .82em/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.hn-trap i { display: inline-block; margin-right: .6em; font: 600 .78em/1.3 var(--f-mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #8a3a10; margin-bottom: .1em; }
.hn-tm { color: #5f656b; text-decoration: line-through; text-decoration-color: rgba(192,49,58,.6); }
.hn-tm i { text-decoration: none; }
.hn-tt { font-weight: 600; }
.hn-tt i { color: #1d7f46; }
[data-theme="dark"] .hn-trap { background: #2a1d10; box-shadow: inset 0 0 0 1.5px #6b4319; color: #eceef0; }
[data-theme="dark"] .hn-trap i { color: #f0b47a; } [data-theme="dark"] .hn-tt i { color: #8fd8a8; } [data-theme="dark"] .hn-tm { color: #a7adb3; }
.hn-side { padding-bottom: .2em; }
.hn-foot { white-space: nowrap; }
.hn-h { display: flex; align-items: center; gap: .7em; }
.hn-k { flex: none; padding: .5em .6em .45em; border-radius: .35em; background: #e3f3e6; color: #1b6b35; font: 600 .46em/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.hn-t { font: 600 .8em/1.25 var(--f-head); letter-spacing: -.01em; }
[data-theme="dark"] .hn-k { background: #1d3323; color: #9fe0b0; }
.hn-mm { margin-top: 1em; }
.hn-root { display: flex; align-items: center; gap: .6em; width: max-content; margin: 0 auto; padding: .7em 1.1em; border-radius: .7em; background: #101214; color: #fff; font: 600 .72em/1 var(--f-body); box-shadow: 0 .5em 1.2em -.6em rgba(16,18,20,.6); }
[data-theme="dark"] .hn-root { background: #f3f3f1; color: #101214; }
.hn-root i { width: .7em; height: .7em; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 .25em rgba(200,242,75,.25); }
.hn-br { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55em; padding-top: 1.3em; }
.hn-br::before { content: ""; position: absolute; top: .65em; left: 10%; right: 10%; height: 2px; margin-top: -1px; background: #8b9095; border-radius: 2px; }
.hn-br::after { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: .65em; margin-left: -1px; background: #8b9095; }
.hn-b { --hc: #1f7a3d; --hl: #e4f4e7; --hb: #b4dcbe; position: relative; display: flex; flex-direction: column; gap: .35em; padding-bottom: .45em; border-radius: .6em; border: 1.5px solid var(--hb); background: #fff; }
.hn-b::before { content: ""; position: absolute; left: 50%; top: -.68em; width: 2px; height: .68em; margin-left: -1px; background: #8b9095; }
.hn-b--1 { --hc: #2459c9; --hl: #e7eefb; --hb: #b9caf0; }
.hn-b--2 { --hc: #b5520c; --hl: #fcf0de; --hb: #efcba0; }
.hn-b--3 { --hc: #6b3fc4; --hl: #f0e9fc; --hb: #cfc0f1; }
.hn-b--4 { --hc: #353b44; --hl: #eeede9; --hb: #cbcac4; }
[data-theme="dark"] .hn-b { background: #1c2026; --hb: #39404a; }
[data-theme="dark"] .hn-b span { background: rgba(255,255,255,.06); color: #e4e7ea; }
[data-theme="dark"] .hn-br::before, [data-theme="dark"] .hn-br::after, [data-theme="dark"] .hn-b::before { background: #5d646b; }
.hn-b b { display: block; padding: .6em .3em; border-radius: .45em .45em 0 0; background: var(--hc); color: #fff; font: 600 .66em/1 var(--f-body); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] .hn-b--4 b { background: #59606a; }
.hn-b span { display: block; margin: 0 .45em; padding: .55em .55em; border-radius: .45em; background: var(--hl); color: #15181b; font: 600 .56em/1.3 var(--f-body); }
.hn-foot { display: flex; align-items: center; gap: .5em; font: 400 .56em/1.3 var(--f-body); color: #4d5359; }
.hn-foot b { font-weight: 600; color: #101214; }
[data-theme="dark"] .hn-foot { color: #a7adb3; } [data-theme="dark"] .hn-foot b { color: #eceef0; }
.hn-vid::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 .18em rgba(200,242,75,.8); opacity: 0; }
.hn-vid { position: relative; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #101214; }
.hn-vid svg { width: 1em; height: 1em; fill: var(--lime); margin-left: .12em; }

/* scene 3: page 1 of the Paper 1 cheat sheet */
.hc-page { position: absolute; left: 50%; top: 1em; width: 33.6em; bottom: -1em; margin-left: -16.8em; font-size: 1.1em; padding: 1em 1.15em; border-radius: .45em; background: #fff; color: #15181b;
  box-shadow: 0 0 0 1px rgba(16,18,20,.06), 0 .6em 1.8em -.7em rgba(16,18,20,.35); }
[data-theme="dark"] .hc-page { background: #f4f3ef; box-shadow: 0 .6em 1.8em -.6em rgba(0,0,0,.8); }
.hc-hd { display: flex; align-items: center; gap: .9em; }
.hc-logo { flex: none; font: 700 .5em/1 var(--f-head); letter-spacing: .08em; padding-right: .9em; border-right: 1px solid #d8d8d2; }
.hc-tt { display: flex; flex-direction: column; gap: .3em; min-width: 0; }
.hc-tt b { font: 600 .7em/1.15 var(--f-head); }
.hc-tt small { font: 400 .45em/1.2 var(--f-body); color: #5f656b; }
.hc-rule { display: block; height: .2em; margin: .6em 0 .8em; border-radius: .1em; transform-origin: 0 50%;
  background: linear-gradient(90deg, #2459c9 0 12.5%, #1d7f46 0 25%, #c2551a 0 37.5%, #6b3fc4 0 50%, #c0313a 0 62.5%, #0e7c86 0 75%, #93600a 0 87.5%, #bf2f7a 0); }
.hc-cols { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: .8em; align-items: start; }
.hc-must { border: .11em solid #101214; border-radius: .45em; overflow: hidden; background: #fbfef1; }
.hc-mh { display: flex; align-items: center; gap: .55em; padding: .55em .7em; background: #101214; color: var(--lime); font: 600 .5em/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.hc-mh i { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--lime); color: #101214; font-style: normal; font-size: .95em; }
.hc-mh small { margin-left: auto; font-size: .85em; letter-spacing: .04em; text-transform: none; color: #c9ced3; }
.hc-must ul { display: grid; gap: .5em; padding: .6em .7em .7em .6em; isolation: isolate; }
.hc-must li { position: relative; padding-left: .95em; font: 400 .52em/1.45 var(--f-body); }
.hc-must li::before { content: ""; position: absolute; left: .1em; top: .55em; width: .42em; height: .42em; background: #101214; border-radius: .08em; }
.hc-mk { position: relative; z-index: 0; background: none; color: inherit; font-weight: 600; white-space: nowrap; }
.hc-mk::before { content: ""; position: absolute; z-index: -1; left: -.18em; right: -.18em; top: .05em; bottom: -.02em; border-radius: .2em; background: #d9f77a; transform-origin: 0 50%; }
.hc-side { display: grid; gap: .65em; }
.hc-sec { --c: #2459c9; --cl: #cbd8f3; border: .09em solid var(--cl); border-radius: .45em; overflow: hidden; }
.hc-sec--g { --c: #1d7f46; --cl: #c6e4d1; }
.hc-sh { display: flex; align-items: center; gap: .55em; padding: .55em .65em; background: var(--c); color: #fff; font: 600 .5em/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.hc-sh i { font-style: normal; padding: .25em .35em; border-radius: .25em; background: rgba(255,255,255,.22); }
.hc-sec p:not(.hc-sh) { padding: .45em .7em 0; font: 400 .52em/1.45 var(--f-body); }
.hc-sec p:last-child { padding-bottom: .6em; }

/* ---------- demo motion: plays only on .hd.is-live (home.js) and never under reduced motion; every keyframe animates FROM
   a start pose to the element's normal style, so the resting state is always the finished, fully visible scene ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hd { --sd: 0s; }
  .hd.is-first { --sd: .55s; }
  .hd.is-paused .hd-sc *, .hd.is-paused .hd-sc *::before, .hd.is-paused .hd-sc *::after, .hd.is-paused .hd-prog { animation-play-state: paused !important; }
  /* mock */
  .hd.is-live .is-play .hm-q { animation: hd-up .6s cubic-bezier(.2,.7,.2,1) calc(var(--sd) + .05s) backwards; }
  .hd.is-live .is-play .hm-sheet { animation: hd-up .6s cubic-bezier(.2,.7,.2,1) calc(var(--sd) + .2s) backwards; }
  .hd.is-live .is-play .hm-opts li { animation: hd-up .5s cubic-bezier(.2,.7,.2,1) calc(var(--sd) + .25s + var(--i) * .09s) backwards; }
  .hd.is-live .is-play .hm-cur { animation: hm-cur 4.4s cubic-bezier(.45,.05,.25,1) calc(var(--sd) + .9s) both; }
  .hd.is-live .is-play .hm-rip { animation: hm-rip .7s ease-out calc(var(--sd) + 2.55s) both; }
  .hd.is-live .is-play .hm-sel, .hd.is-live .is-play .hm-lsel { animation: hd-fade .25s ease-out calc(var(--sd) + 2.55s) backwards; }
  .hd.is-live .is-play .hm-opts li.hm-c { animation: hd-up .5s cubic-bezier(.2,.7,.2,1) calc(var(--sd) + .43s) backwards, hm-press .35s ease-out calc(var(--sd) + 2.5s) none; }
  .hd.is-live .is-play .hm-fill::after { animation: hd-pop .45s cubic-bezier(.3,1.6,.5,1) calc(var(--sd) + 2.85s) backwards; }
  .hd.is-live .is-play .hm-ok { animation: hd-pop .55s cubic-bezier(.3,1.6,.5,1) calc(var(--sd) + 3.15s) backwards; }
  .hd.is-live .is-play .hm-sh small { animation: hd-fade .3s ease-out calc(var(--sd) + 2.9s) backwards; }
  /* notes */
  .hd.is-live .is-play .hn-h { animation: hd-up .5s cubic-bezier(.2,.7,.2,1) calc(var(--sd) + .05s) backwards; }
  .hd.is-live .is-play .hn-root { animation: hd-pop .55s cubic-bezier(.3,1.5,.5,1) calc(var(--sd) + .25s) backwards; }
  .hd.is-live .is-play .hn-br::after { transform-origin: 50% 0; animation: hd-drawy .25s ease-out calc(var(--sd) + .65s) backwards; }
  .hd.is-live .is-play .hn-br::before { animation: hd-drawx .55s cubic-bezier(.4,0,.2,1) calc(var(--sd) + .85s) backwards; }
  .hd.is-live .is-play .hn-b::before { transform-origin: 50% 0; animation: hd-drawy .25s ease-out calc(var(--sd) + 1.25s + var(--i) * .07s) backwards; }
  .hd.is-live .is-play .hn-b { animation: hd-pop .55s cubic-bezier(.3,1.4,.5,1) calc(var(--sd) + 1.4s + var(--i) * .12s) backwards; }
  .hd.is-live .is-play .hn-trap { animation: hd-up .55s cubic-bezier(.2,.7,.2,1) calc(var(--sd) + 2.25s) backwards; }
  .hd.is-live .is-play .hn-side { animation: hd-up .55s cubic-bezier(.2,.7,.2,1) calc(var(--sd) + 2.45s) backwards; }
  .hd.is-live .is-play .hn-tt { animation: hd-fade .4s ease-out calc(var(--sd) + 3.1s) backwards; }
  .hd.is-live .is-play .hn-vid::after { animation: hn-ping 1.5s ease-out calc(var(--sd) + 3.3s) 2 none; }
  /* sheet */
  .hd.is-live .is-play .hc-page { animation: hc-in .8s cubic-bezier(.2,.7,.2,1) calc(var(--sd) + .02s) backwards; }
  .hd.is-live .is-play .hc-rule { animation: hd-drawx .7s cubic-bezier(.4,0,.2,1) calc(var(--sd) + .35s) backwards; transform-origin: 0 50%; }
  .hd.is-live .is-play .hc-must { animation: hd-up .5s cubic-bezier(.2,.7,.2,1) calc(var(--sd) + .5s) backwards; }
  .hd.is-live .is-play .hc-must li, .hd.is-live .is-play .hc-sec { animation: hd-up .45s cubic-bezier(.2,.7,.2,1) calc(var(--sd) + .6s + var(--i) * .1s) backwards; }
  .hd.is-live .is-play .hc-mk::before { animation: hc-mark .55s cubic-bezier(.5,0,.2,1) calc(var(--sd) + 1.9s + var(--m) * .75s) backwards; }
}
@keyframes hd-up { from { opacity: 0; transform: translateY(.7em); } }
@keyframes hd-fade { from { opacity: 0; } }
@keyframes hd-pop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; } }
@keyframes hd-drawx { from { transform: scaleX(0); } }
@keyframes hd-drawy { from { transform: scaleY(0); } }
@keyframes hm-cur { 0% { opacity: 0; transform: translate(7em, 6em); } 12% { opacity: 1; } 34% { transform: translate(.4em, .5em); } 38% { transform: translate(0, 0) scale(1); } 40% { transform: translate(0, 0) scale(.82); } 44% { transform: translate(0, 0) scale(1); }
  78% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(1.2em, 1.6em); } }
@keyframes hm-rip { from { opacity: 1; transform: scale(.2); } to { opacity: 0; transform: scale(1.6); } }
@keyframes hm-press { 50% { transform: scale(.985); } }
@keyframes hn-ping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes hc-in { from { opacity: 0; transform: translateY(2.5em) scale(.97); } }
@keyframes hc-mark { from { transform: scaleX(0); } }

/* ---------- sections ---------- */
.hs { padding: 96px 0; }
.hs--line { border-top: 1px solid var(--line); }
.hx + .hs { padding-top: 40px; }
.hs__head { margin: 0 0 36px; max-width: 760px; }
.hs__head h2, .h-tg h2 { font: 600 clamp(2rem, 3.8vw, 3rem)/1.04 var(--f-head); letter-spacing: -.035em; margin: 12px 0 0; color: var(--ink); }

/* tools: one card style, a real preview on every card, the tool colour as a small dot */
.ht--notes    { --tc: #9bc72a; }
.ht--mock     { --tc: #3d5bf0; }
.ht--practice { --tc: #8f78e8; }
.ht--sheets   { --tc: #f0a52e; }
.ht--calc     { --tc: #ff8466; }
.ht-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ht { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
a.ht:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 22px 40px -26px rgba(16,18,20,.45); }
.ht--notes { grid-column: span 2; grid-row: span 2; }
.ht__pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); border-bottom: 1px solid var(--line); }
.ht__pic img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.ht--notes .castvid.ht__vid { border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); flex: 1 1 auto; min-height: 280px; aspect-ratio: auto; }
.ht__body { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.ht__k { display: inline-flex; align-items: center; gap: 8px; font: 500 .82rem/1.3 var(--f-body); color: var(--mut); }
.ht__k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); flex: none; }
.ht__t { margin: 0; font: 600 1.18rem/1.25 var(--f-head); letter-spacing: -.015em; color: var(--ink); }
.ht__t a { color: inherit; text-decoration: none; }
.ht--notes .ht__t { font-size: 1.5rem; }
.ht__d { margin: 0; font: 400 .93rem/1.5 var(--f-body); color: var(--ink-2); }
.ht__link::after { content: ""; position: absolute; inset: 0; }
.ht__link:focus-visible { outline: none; }
.ht__link:focus-visible::after { outline: 2px solid #3d5bf0; outline-offset: -2px; border-radius: 0 0 18px 18px; }
a.ht:focus-visible { outline: 2px solid #3d5bf0; outline-offset: 2px; }

.hs-chapters { margin-top: 40px; }
.hs-chapters__h { margin: 0; font: 500 .9rem/1.4 var(--f-body); color: var(--mut); }
.hs-chapters ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hs-chapters a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font: 500 .88rem/1 var(--f-body); color: var(--ink-2); text-decoration: none; transition: border-color .2s, color .2s; }
.hs-chapters a:hover { border-color: var(--ink); color: var(--ink); }

/* how to study: three numbered steps */
.hroad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hroad li { display: flex; flex-direction: column; padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.hroad__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: #101214; font: 600 .95rem/1 var(--f-head); }
.hroad h3 { font: 600 1.3rem/1.2 var(--f-head); letter-spacing: -.02em; margin: 18px 0 8px; }
.hroad p { color: var(--ink-2); margin: 0 0 14px; line-height: 1.55; flex: 1 1 auto; }
.hroad a { align-self: flex-start; display: inline-flex; align-items: center; min-height: 40px; font: 600 .92rem/1.2 var(--f-body); color: var(--ink); text-decoration: none; }
.hroad a span { margin-left: 6px; transition: transform .2s var(--ease); }
.hroad a:hover span { transform: translateX(3px); }

/* the two papers (inside the How to study section) */
.h-papers { margin-top: 56px; }
.h-papers__head { margin: 0 0 18px; }
.h-papers__head h3 { margin: 0; font: 600 1.5rem/1.2 var(--f-head); letter-spacing: -.025em; }
.h-papers__head p { margin: 6px 0 0; color: var(--ink-2); max-width: 60ch; }
.h-paperrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.h-paper { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.h-paper__k { margin: 0; font: 500 .85rem/1.4 var(--f-body); color: var(--mut); }
.h-paper__k i { font-style: normal; opacity: .6; margin: 0 3px; }
.h-paper h4 { font: 600 1.3rem/1.2 var(--f-head); letter-spacing: -.02em; margin: 6px 0 16px; }
.h-paper ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; flex: 1 1 auto; align-content: start; }
.h-paper li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; color: var(--ink-2); line-height: 1.5; }
.h-paper li b { font: 500 11px/1 var(--f-mono); letter-spacing: .04em; background: var(--tint); color: var(--ink); padding: 5px 7px; border-radius: 6px; }
.h-more { margin: 32px 0 0; font: 400 .95rem/1.6 var(--f-body); color: var(--ink-2); }
.h-more a { display: inline-block; padding: 9px 0; margin: -9px 0; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.h-more a:hover { text-decoration-color: var(--ink); }
.h-more i { font-style: normal; opacity: .45; margin: 0 6px; }

/* community: one calm card */
.h-community { padding: 0 0 80px; }
.h-tg { display: flex; align-items: center; gap: 22px; padding: 30px 32px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.h-tg__ic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #229ed9; color: #fff; }
.h-tg__ic svg { width: 26px; height: 26px; margin-left: -2px; }
.h-tg__copy { flex: 1 1 auto; min-width: 0; }
.h-tg h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 0; }
.h-tg p { color: var(--ink-2); margin: 6px 0 0; max-width: 52ch; }
.h-tg__go { flex: none; }
.h-community .about-more { margin: 22px 0 0; padding: 0; border: 0; text-align: center; font: 400 .92rem/1.6 var(--f-body); color: var(--mut); }
.about-more a { display: inline-block; padding: 9px 0; margin: -9px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.about-more a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hx { padding: 48px 0 72px; }
  .hx__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hx__h { font-size: clamp(2.6rem, 8vw, 4.6rem); max-width: 12ch; }
  .hx__lede { max-width: 52ch; }
  .hx__visual { max-width: 720px; padding-left: 28px; }
  .ht-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hx { padding: 32px 0 56px; }
  .hx__eb { margin-bottom: 18px; }
  .hx__h { font-size: clamp(2.5rem, 11.6vw, 3.3rem); letter-spacing: -.045em; margin-bottom: 16px; }
  .hx__lede { font-size: 1.04rem; margin-bottom: 24px; }
  .hx__cta { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hx-go, .hx-alt { width: 100%; min-height: 50px; }
  .hx__meta { margin-top: 16px; font-size: .86rem; }
  .hx__grid { gap: 32px; }
  .hx__visual { padding: 0; }
  .hx-par--card { position: relative; left: auto; bottom: auto; width: auto; margin: -34px 12px 0; }
  .hx-card { padding: 14px 16px; }
  .hs { padding: 64px 0; }
  .hs__head { margin-bottom: 26px; }
  .ht-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ht--notes { grid-column: auto; grid-row: auto; }
  .ht--notes .castvid.ht__vid { min-height: 0; aspect-ratio: 9 / 16; width: min(100%, calc(64vh * 9 / 16)); margin: 0 auto; border-bottom: 0; }
  .hroad { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hroad li { padding: 20px; }
  .h-papers { margin-top: 44px; }
  .h-paperrow { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .h-paper { padding: 20px; }
  .h-tg { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 20px; }
  .h-tg__go { width: 100%; }
  .h-community { padding-bottom: 56px; }
}
/* phones: the same demo in a portrait stage (4:5), the scenes switch to their narrow layouts; the card sits just under it */
@media (max-width: 600px) {
  .hx-par--card { margin-top: -12px; }
  .hd-bar { padding: 8px 8px 8px 8px; gap: 8px; }
  .hd-tabs [role="tab"] { font-size: 12.5px; gap: 6px; padding: 0 4px; }
  .hd-stage { aspect-ratio: 1 / 1.1; }
  .hd-cv { font-size: 15px; font-size: 4.15cqw; }
  .hm-top { padding: 0 .75em; }
  .hm-body { grid-template-columns: minmax(0, 1fr); gap: .55em; padding: .7em .7em; }
  .hm-q { padding: .75em .8em .8em; }
  .hm-qt { font-size: .78em; margin: .5em 0 .6em; }
  .hm-opts li { font-size: .66em; padding: .5em .65em; }
  .hm-opts { gap: .38em; }
  .hm-sheet { display: flex; align-items: center; justify-content: space-between; gap: .8em; padding: .5em .7em; }
  .hm-sh { flex-direction: row; align-items: baseline; gap: .5em; margin: 0; white-space: nowrap; }
  .hm-rows { flex: none; }
  .hm-rows li:not(:first-child) { display: none; }
  .hm-rows li { grid-template-columns: 1.5em repeat(4, 1.35em); padding: .25em .4em; }
  .hd-sc--notes { padding: .85em .9em; }
  .hd-sc--notes { padding-bottom: 1em; }
  .hd-sc--notes > :not(.hn-row) { font-size: 1em; }
  .hn-row { grid-template-columns: minmax(0, 1fr); gap: .7em; margin-top: 1em; }
  .hn-trap { grid-template-columns: minmax(0, 1fr); gap: .4em; font-size: .62em; }
  .hn-tk { grid-row: auto; }
  .hn-side { padding: 0; }
  .hn-t { font-size: .74em; }
  .hn-mm { margin-top: .85em; }
  .hn-root { margin: 0; }
  .hn-br { grid-template-columns: minmax(0, 1fr); gap: .5em; padding: .75em 0 0 1.6em; }
  .hn-br::before { top: 0; bottom: 1.25em; left: .75em; right: auto; width: 2px; height: auto; margin: 0 0 0 -1px; }
  .hn-br::after { display: none; }
  .hn-b { flex-direction: row; align-items: center; gap: .5em; padding: 0; border: 0; background: none; }
  [data-theme="dark"] .hn-b { background: none; }
  .hn-b::before { left: -.85em; top: 50%; width: .85em; height: 2px; margin: -1px 0 0; }
  .hn-b b { flex: 0 0 8.8em; padding: .62em .5em; border-radius: .5em; text-align: left; font-size: .64em; }
  .hn-b span { flex: 1 1 auto; margin: 0; font-size: .6em; padding: .55em .65em; border: 1px solid var(--hb); }
  .hn-b span + span { display: none; }
  .hn-foot { margin: 0; }
  .hc-page { left: .8em; right: .8em; width: auto; margin: 0; top: .8em; padding: .9em .9em; font-size: 1em; }
  .hc-tt small { display: none; }
  .hc-cols { grid-template-columns: minmax(0, 1fr); gap: .6em; }
  .hc-must li, .hc-sec p:not(.hc-sh) { font-size: .58em; }
  .hc-sec--g { display: none; }
  .hd.is-live .is-play .hn-br::before { transform-origin: 50% 0; animation-name: hd-drawy; }
  .hd.is-live .is-play .hn-b::before { transform-origin: 0 50%; animation-name: hd-drawx; }
}
/* tablet portrait: one column, the visual centred on the shared gutters */
@media (min-width: 761px) and (max-width: 1100px) {
  .hx__visual { margin: 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-go, .hx-go span, .hx-alt, .hx-card, .ht, .hroad a span { transition: none; }
  .hx-go:hover, .hx-alt:hover, .hx-card:hover, a.ht:hover { transform: none; }
}
@media print { .hx::before, .hx::after { display: none; } }

/* ---------- exam-day page: blocks moved from the old home page ---------- */
.ed-fmt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 12px; }
.ed-fmt > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.ed-fmt .fmt-num { font-size: 2rem; }
.ed-fmt p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.prose .change-list { grid-template-columns: minmax(0, 1fr); }
.prose .change-list li { margin: 0; }
.prose .sittings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .sittings li { margin: 0; }
@media (max-width: 520px) { .prose .sittings { grid-template-columns: minmax(0, 1fr); } .ed-fmt { gap: 8px; } .ed-fmt > div { padding: 12px 14px; } .ed-fmt .fmt-num { font-size: 1.6rem; } .ed-fmt p { font-size: .82rem; } }

/* ---------- home motion + colour (15 Nov 2026) ---------- */
/* numbers next to "Five free tools" (count up as they scroll in, motion.js) */
.hs__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; max-width: none; }
.hstats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: min(100%, 600px); }
.hstats li { display: flex; flex-direction: column; gap: 4px; padding: 2px 16px; border-left: 1px solid var(--line-2); }
.hstats b { display: flex; align-items: baseline; gap: 4px; font: 600 clamp(1.6rem, 2.6vw, 2.1rem)/1 var(--f-head); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hstats b small { font: 500 .9rem/1 var(--f-body); letter-spacing: 0; color: var(--mut); }
.hstats li > span { font: 400 .82rem/1.35 var(--f-body); color: var(--mut); }
@media (max-width: 760px) {
  .hstats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .hstats li:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* tool cards: a soft tint of each tool's colour behind its preview; lift + slow pan/zoom on hover */
.ht--notes    { --tt: #f1f8dc; --ttd: #1d2512; }
.ht--mock     { --tt: #e9edfd; --ttd: #151a2c; }
.ht--practice { --tt: #efebfc; --ttd: #1c1830; }
.ht--sheets   { --tt: #fdf2dc; --ttd: #2a2112; }
.ht--calc     { --tt: #ffece6; --ttd: #2c1a15; }
.ht__pic { position: relative; padding: 16px 0 0 18px; background: var(--tt); }
[data-theme="dark"] .ht__pic { background: var(--ttd); }
.ht__pic img { border-radius: 10px 0 0 0; box-shadow: 0 0 0 1px rgba(16,18,20,.08), 0 10px 24px -14px rgba(16,18,20,.45); transform-origin: 0 0; transition: transform 2.2s cubic-bezier(.2,.6,.2,1); }
[data-theme="dark"] .ht__pic img { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 24px -12px rgba(0,0,0,.7); }
a.ht:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--tc) 45%, var(--line)); box-shadow: 0 26px 46px -28px color-mix(in srgb, var(--tc) 60%, rgba(16,18,20,.5)); }
a.ht:hover .ht__pic img { transform: scale(1.07) translate(-1.5%, -3%); }
a.ht .ht__t span { display: inline-block; transition: transform .25s var(--ease); }
a.ht:hover .ht__t span { transform: translateX(4px); }
.ht--notes { background: linear-gradient(180deg, var(--card) 60%, color-mix(in srgb, var(--tt) 70%, var(--card))); }
[data-theme="dark"] .ht--notes { background: var(--card); }
.ht.mo-i .ht__pic img { animation: ht-settle 1.6s cubic-bezier(.2,.7,.2,1) calc(var(--md, 0ms) + .1s) backwards; }
@keyframes ht-settle { from { transform: scale(1.1) translate(-2%, -4%); } }
/* Meet the cast: a soft lime ring breathes around the play button until the video starts */
.ht--notes .castvid__btn { position: relative; }
.ht--notes .castvid__btn::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(200,242,75,.9); opacity: 0; animation: ht-ring 2.6s ease-out 1.2s infinite; }
.ht--notes .castvid video { transition: transform 1.8s cubic-bezier(.2,.6,.2,1); }
.ht--notes:hover .castvid:not(.is-on) video { transform: scale(1.03); }
@keyframes ht-ring { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.45); } }

/* steps, papers, chapters: small touches */
.hroad li, .h-paper { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.hroad li:hover, .h-paper:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 20px 36px -28px rgba(16,18,20,.5); }
.hroad li.mo-i .hroad__n { animation: hx-pop .6s cubic-bezier(.3,1.6,.5,1) calc(var(--md, 0ms) + .3s) backwards; }
.hs-chapters a { transition: border-color .2s, color .2s, background .2s, transform .2s var(--ease); }
.hs-chapters a:hover { transform: translateY(-2px); background: var(--lime-soft); border-color: var(--lime-deep); }
[data-theme="dark"] .hs-chapters a:hover { background: #232a14; }
.hs-chapters.mo-i li { animation: hx-up .5s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--md, 0ms) + var(--ci, 0) * 25ms); }
@keyframes hx-pop { from { opacity: 0; transform: scale(.4); } }

/* Telegram: the plane flies in */
.h-tg { position: relative; overflow: hidden; }
.h-tg::before { content: ""; position: absolute; z-index: 0; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(34,158,217,.12), rgba(34,158,217,0)); pointer-events: none; }
.h-tg > * { position: relative; z-index: 1; }
.h-tg.mo-i .h-tg__ic { animation: hx-pop .6s cubic-bezier(.3,1.5,.5,1) calc(var(--md, 0ms) + .2s) backwards; }
.h-tg.mo-i .h-tg__ic svg { animation: tg-fly .9s cubic-bezier(.2,.8,.2,1) calc(var(--md, 0ms) + .45s) backwards; }
@keyframes tg-fly { from { opacity: 0; transform: translate(-14px, 12px) rotate(-14deg); } }

@media (prefers-reduced-motion: reduce) {
  .hroad li:hover, .h-paper:hover, .hs-chapters a:hover { transform: none; }
  .ht__pic img, a.ht:hover .ht__pic img { transform: none; }
}
[data-theme="dark"] .hm-cur svg { fill: #f3f3f1; stroke: #101214; }
[data-theme="dark"] .hm-top { background: #0a0c0e; box-shadow: inset 0 -1px 0 #262a2f; }
/* until the loop starts (home.js, once the hero is on screen) the scene body waits, so the finished answer never flashes
   before the demo plays; pure-CSS safety: it shows anyway after 3.5 s if the loop never starts */
.hx-anim .hd:not(.is-live) .hm-body { animation: hx-fade .4s ease-out 3.5s backwards; }

/* 15 Nov 2026: the "saved on this device" slot sits between the hero and the tour; keep the tour's tight top. */
.nudge-home + .hs { padding-top: 40px; }
.nudge-home:not([hidden]) + .hs { padding-top: 48px; }
