/* Handrail Learning website. Built from BRAND/tokens.css (copied to tokens.css) and WEBSITE/STORYBOARD.md v0.6.
   Layout: one motif, the rail (a straight bar with a round end that curls down), at four scales:
   the hero rail, the page band, the curl corner on every picture frame, and pill buttons. */

:root {
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  --max: 1280px;
  --curl: 40px;                       /* the rail-curl radius used on frame corners */
  --section-gap: clamp(72px, 9vw, 136px);
  --step-display: clamp(2.6rem, 1.4rem + 5vw, 6.5rem);
  --step-heading: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem);
  --step-statement: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  --field-ink: #111428;
  --field-cobalt: #2F4BFF;
  --field-mist: var(--color-raised);
  --tile: var(--color-raised);
}
@media (max-width: 640px) { :root { --curl: 24px; } }
/* Dark mode: the page itself is near-black, so Ink fields step up one tone to keep their shape */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --field-ink: #1D2240; } }
:root[data-theme="dark"] { --field-ink: #1D2240; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  overflow-x: hidden; /* older Safari: no sideways scroll even where overflow: clip is unsupported */
  margin: 0; background: var(--color-page); color: var(--color-text);
  font: 400 var(--text-body)/var(--leading-body) var(--font-body);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--color-action); text-underline-offset: .18em; }
a:hover { color: var(--color-action-hover); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--hr-lime); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--hr-ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }

/* Buttons: pill-shaped, like the rail's round ends */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--target-min);
  padding: 0 26px; border-radius: var(--radius-full); border: 0; cursor: pointer; text-decoration: none;
  font: 700 1.0625rem/1 var(--font-body); background: var(--color-action); color: var(--color-on-action); white-space: nowrap;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.btn:hover { background: var(--color-action-hover); color: var(--color-on-action); }
.btn:active { transform: scale(.97); }
.btn.lime { background: var(--hr-lime); color: var(--hr-ink); }
.btn.lime:hover { background: #fff; color: var(--hr-ink); }
.btn.ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn.ghost:hover, .menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--color-raised); color: var(--color-text); }
.on-dark .btn.ghost:hover, .site-footer .btn.ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.textlink { font-weight: 700; color: inherit; }

/* Header: a solid bar, so links never sit on a dark field */
.site-header { background: var(--color-page); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; color: var(--color-text); }
.brand svg { height: 34px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--color-text); text-decoration: none; font-weight: 700; font-size: 1rem; }
.nav a:not(.btn):hover { text-decoration: underline; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; margin-left: auto; background: transparent; color: var(--color-text); border: 2px solid var(--color-text); }
  .nav { margin-left: 0; gap: 12px; }
  .nav ul { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--color-page); padding: 8px var(--gutter) 24px; border-bottom: 2px solid var(--color-line); }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 14px 0; font-size: 1.125rem; }
}
@media (max-width: 420px) { .site-header .wrap { gap: 10px; } .nav .btn, .menu-btn { padding: 0 14px; } .brand svg { height: 24px; } }

/* The rail, built from a bar and a curl so its thickness never stretches */
.rail { position: absolute; display: flex; pointer-events: none; --t: 56px; --r: 64px; height: var(--t); }
.rail .bar { flex: 2; background: var(--hr-cobalt); }
.rail .end { flex: 1; background: var(--hr-lime); }
.rail .curl { width: calc(var(--r) + var(--t)); height: var(--t); flex: none; position: relative; }
.rail .curl::before { content: ""; position: absolute; left: 0; top: 0; width: var(--r); height: var(--r); box-sizing: content-box;
  border-top: var(--t) solid var(--hr-lime); border-right: var(--t) solid var(--hr-lime); border-top-right-radius: calc(var(--r) + var(--t)); }
.rail .curl::after { content: ""; position: absolute; left: var(--r); top: calc(var(--r) + var(--t) / 2); width: var(--t); height: var(--t); border-radius: 50%; background: var(--hr-lime); }
.rail.plain .end, .rail.plain .curl::before { background: var(--hr-cobalt); border-color: var(--hr-cobalt); }
.rail.plain .curl::after { background: var(--hr-cobalt); }

/* Hero */
.hero { position: relative; overflow: hidden; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: min(760px, 88svh); }
.hero-copy { padding: 168px var(--gutter) 72px max(var(--gutter), calc((100vw - var(--max)) / 2)); display: grid; align-content: center; gap: 28px; }
.hero h1 { font-size: clamp(1.8rem, 0.5rem + 3.6vw, 4rem); line-height: 1.02; letter-spacing: -.03em; }
.hero h1 .l { display: block; white-space: nowrap; }
.rot { color: var(--color-action); display: inline-block; transition: opacity 200ms, transform 200ms; }
.rot.out { opacity: 0; transform: translateY(.22em); }
.hero .lead { font-size: var(--text-lead); max-width: 40ch; color: var(--color-text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.hero-field { background: var(--field-ink); border-top-right-radius: 0; position: relative; min-height: 520px; overflow: hidden; overflow: clip; }
.hero .rail { left: -40px; right: 24px; top: 64px; z-index: 3; }
.film { position: absolute; inset: 0; }
.proc { position: absolute; left: 9%; top: 34%; width: 32%; max-width: 230px; background: #fff; color: var(--hr-ink); border-radius: 0 18px 0 0;
  padding: 18px; display: grid; gap: 10px; transform: rotate(-4deg); }
.proc b { font: 700 .9rem var(--font-body); }
.proc i { display: block; height: 9px; border-radius: 9px; background: #D5D9EE; }
.proc i.hl { background: var(--hr-lime); width: 80%; }
.phone-link { position: absolute; right: 17%; top: 20%; width: min(34%, 250px); aspect-ratio: 9 / 19; display: block; text-decoration: none; color: var(--hr-ink);
  background: #0A0C18; border-radius: 40px; padding: 10px; border: 3px solid #2A3052; }
.phone-link:focus-visible { outline: 3px solid var(--hr-lime); outline-offset: 6px; border-radius: 40px; }
.screen { background: #fff; border-radius: 30px; height: 100%; padding: 22px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; font-size: .82rem; line-height: 1.3; }
.screen iframe { border: 0; width: 100%; height: 100%; }
.screen.live { padding: 0; }
.s-head { display: flex; justify-content: space-between; font: 600 .8rem var(--font-display); color: var(--hr-cobalt-deep); }
.s-head span { color: #4A5070; font: 400 .82rem var(--font-body); white-space: nowrap; margin-left: 6px; }
.s-prog { height: 8px; background: #E6EAFF; border-radius: 9px; overflow: hidden; }
.s-prog i { display: block; height: 100%; width: 38%; background: var(--hr-lime); border-radius: 9px; }
.s-q { font: 600 1rem/1.25 var(--font-display); }
.s-a { border: 2px solid #D5D9EE; border-radius: 10px; padding: 10px 12px; }
.s-a.ok { background: #E3F4E8; border-color: #1B7A3E; font-weight: 700; }
.s-next { margin-top: auto; align-self: flex-end; background: var(--hr-cobalt); color: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 700; }
.tap-hint { position: absolute; left: 9%; top: 62%; color: #EEF0FF; font-size: 1rem; max-width: 30%; }
.pause { position: absolute; left: 24px; bottom: 24px; z-index: 4; background: rgba(255,255,255,.14); color: #fff; min-height: 44px; }
.pause:hover { background: rgba(255,255,255,.26); color: #fff; }

/* The short film: 12 s loop, transform and opacity only */
.film.run .proc { animation: proc 12s var(--ease-in-out) 1; }
.film.run .proc i.hl { animation: hl 12s linear 1; transform-origin: left; }
.film.run .s-a.ok { animation: tick 12s steps(1) 1; }
.film.run .s-prog i { animation: prog 12s var(--ease-out) 1; transform-origin: left; }
.paused .film.run *, .film.run.paused * { animation-play-state: paused !important; }
@keyframes proc { 0% { transform: translateX(-60%) rotate(-8deg); opacity: 0 } 10%, 55% { transform: translateX(0) rotate(-4deg); opacity: 1 }
  68%, 82% { transform: translateX(80%) rotate(0) scale(.6); opacity: 0 } 100% { transform: translateX(0) rotate(-4deg); opacity: 1 } }
@keyframes hl { 0%, 18% { transform: scaleX(0) } 30%, 100% { transform: scaleX(1) } }
@keyframes tick { 0%, 70% { background: #fff; border-color: #D5D9EE } 71%, 100% { background: #E3F4E8; border-color: #1B7A3E } }
@keyframes prog { 0%, 72% { transform: scaleX(.6) } 82%, 100% { transform: scaleX(1) } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-field { order: -1; min-height: 0; height: 56svh; max-height: 520px; }
  .hero .rail { --t: 40px; --r: 44px; top: 36px; right: 24px; }
  .hero-copy { padding: 32px var(--gutter) 56px; margin-top: -24px; background: var(--color-page); position: relative; z-index: 2; margin-inline: 12px; }
  .phone-link { right: 12%; top: 22%; width: 46%; border-radius: 28px; padding: 7px; }
  .screen { border-radius: 22px; padding: 14px 10px; gap: 8px; font-size: .82rem; }
  .s-head { font-size: .82rem; } .s-q { font-size: .9rem; }
  .s-a { padding: 6px 8px; }
  .proc { left: 7%; top: 30%; width: 38%; padding: 12px; }
  .tap-hint { display: none; }
  .pause { left: 16px; bottom: 16px; }
}

/* Tablets in landscape and small laptops: give the drawn phone more room */
@media (min-width: 901px) and (max-width: 1200px) {
  .phone-link { width: 40%; right: 10%; }
  .proc { left: 5%; width: 32%; }
  .tap-hint { left: 5%; max-width: 34%; }
}
/* Phones on their side: keep the two-column hero so the headline stays on the first screen */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 560px) {
  .hero-grid { grid-template-columns: 1fr 1fr; min-height: 0; }
  .hero-field { order: 0; height: auto; min-height: 340px; max-height: none; }
  .hero-copy { margin: 0; padding: 96px 20px 28px; gap: 16px; }
  .hero .lead { font-size: 1rem; }
  .hero .rail { --t: 32px; --r: 36px; top: 40px; }
  .phone-link { top: 30%; right: 22%; width: 32%; }
  .proc { top: 42%; left: 6%; width: 40%; }
}

/* Moving strip */
.strip { background: var(--field-mist); padding-block: 28px 32px; }
.strip-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.strip-top p { font-weight: 700; }
.marq { overflow: hidden; overflow: clip; display: flex; }
/* Two identical halves, each its own layer: iPhone Safari stops drawing a single moving layer once it gets very wide.
   Items carry their own right margin, so the halves meet seamlessly. About 40 px a second, slow enough to read. */
.marq-track { flex: none; display: flex; align-items: center; animation: marq 82s linear infinite; }
.marq-track > * { margin-right: 28px; }
.marq-track span { font: 500 clamp(1.4rem, 1rem + 1.4vw, 2.2rem) var(--font-display); white-space: nowrap; }
.marq-track svg { width: 40px; height: 20px; flex: none; color: var(--color-action); }
@media (max-width: 640px) { .marq-track { animation-duration: 65s; } }
.marq:hover .marq-track, .marq:focus-within .marq-track, .strip.paused .marq-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-100%); } }
.marq.measured .marq-track { animation: none; }
.marq.measured .marq-track > * { animation: marq-item var(--dur) linear infinite; }
@keyframes marq-item { to { transform: translateX(calc(-1 * var(--set))); } }
.marq.measured:hover .marq-track > *, .marq.measured:focus-within .marq-track > * { animation-play-state: paused; }
.btn.pause-dark { background: var(--color-surface); color: var(--color-text); border: 2px solid var(--color-text); }

/* Sections */
.section { padding-block: var(--section-gap) 0; }
.h2 { font-size: var(--step-heading); line-height: 1.02; letter-spacing: -.02em; }
.statement { font: 500 var(--step-statement)/1.3 var(--font-display); }
.frame { border-top-right-radius: var(--curl); overflow: hidden; }
.inl { display: inline-block; width: 1.6em; height: .9em; vertical-align: -.06em; margin: 0 .14em; border-top-right-radius: .3em; }

.why { display: grid; grid-template-columns: 7fr 1fr 4fr; align-items: center; }
.why .statement { grid-column: 1; }
.why figure { grid-column: 3; margin: 0; }
.why img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; object-position: 72% 35%; }
.why figcaption, .staff figcaption { font-size: var(--text-small); color: var(--color-text-muted); margin-top: 10px; }
@media (max-width: 800px) { .why { grid-template-columns: 1fr; gap: 40px; } .why figure { grid-column: 1; } .why img { aspect-ratio: 4 / 3; object-position: 62% 35%; } }

/* Switch */
.switch-sec { background: var(--field-ink); color: #fff; margin-top: var(--section-gap); overflow: hidden; overflow: clip; transition: background var(--dur-base); position: relative; }
.switch-sec.understood { background: var(--field-cobalt); }
.switch-sec .wrap { display: grid; grid-template-columns: 6fr 6fr; gap: 48px; align-items: center; padding-block: clamp(80px, 9vw, 128px); }
.switch-copy { display: grid; gap: 20px; align-content: start; }
.switch-copy .lead { font-size: var(--text-lead); max-width: 30ch; }
.sheet { background: #fff; color: var(--hr-ink); border-top-right-radius: 24px; padding: 24px 26px; display: grid; gap: 10px; max-width: 420px; }
.sheet b { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.sheet .scrawl { font: italic 400 1.5rem var(--font-body); border-bottom: 2px solid #D5D9EE; padding-bottom: 6px; }
.sw { position: relative; display: flex; width: 100%; border-radius: 999px; background: var(--field-cobalt); border: 0; padding: 10px; cursor: pointer;
  transition: background var(--dur-base); }
.understood .sw { background: var(--field-ink); }
.sw span { flex: 1; position: relative; z-index: 1; white-space: nowrap; text-align: center; font: 600 clamp(1.25rem, .6rem + 1.6vw, 2.1rem)/1 var(--font-display); padding: clamp(18px, 3vw, 34px) 0; color: #fff; transition: color var(--dur-base); }
.sw .knob { position: absolute; top: 10px; bottom: 10px; left: 10px; width: calc(50% - 10px); border-radius: 999px; background: #fff; transition: transform var(--dur-base) var(--ease-out), background var(--dur-base); }
.sw .a { color: var(--hr-ink); }
.understood .sw .knob { transform: translateX(100%); background: var(--hr-lime); }
.understood .sw .a { color: #fff; }
.understood .sw .b { color: var(--hr-ink); }
.sw:focus-visible { outline: 3px solid var(--hr-lime); outline-offset: 6px; }
.js .state-b { display: none; }
.js .understood .state-a { display: none; }
.js .understood .state-b { display: revert; }
.js .understood .sheet.state-b { display: grid; }
.switch-copy .sw { margin-top: 20px; }
.switch-right { display: grid; justify-items: center; }
.switch-right .sheet { width: 100%; max-width: 480px; padding: 32px; font-size: 1.15rem; }
.switch-right .sheet b { font-size: 1.5rem; }
.ico { width: 1em; height: 1em; vertical-align: -.12em; flex: none; }
@media (max-width: 860px) { .switch-sec .wrap { grid-template-columns: 1fr; padding-block: 72px; } }

/* How it works */
.how-head { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: end; margin-bottom: 56px; }
.how-head p { font-size: var(--text-lead); max-width: 46ch; }
.stages { display: grid; grid-template-columns: 2fr 3fr 3fr 4fr; gap: 16px; align-items: start; list-style: none; padding: 0; margin: 0; }
.stage { display: grid; grid-template-rows: 480px auto auto; gap: 16px; align-content: start; }
.stage .tile { align-self: end; }
.stage .tile { border-top-right-radius: var(--curl); padding: 20px; display: flex; align-items: flex-end; }
.stage:nth-child(1) .tile { height: 240px; background: var(--color-surface); border: 2px solid var(--color-line); }
.stage:nth-child(2) .tile { height: 320px; background: var(--tile); }
.stage:nth-child(3) .tile { height: 400px; background: var(--field-cobalt); }
.stage:nth-child(4) .tile { height: 480px; background: var(--field-ink); }
.card { background: #fff; color: var(--hr-ink); border-top-right-radius: 16px; padding: 16px; display: grid; gap: 8px; width: 100%; font-size: .95rem; }
.card .ln { height: 8px; border-radius: 9px; background: #D5D9EE; }
.flag { background: #FFF2CF; color: #8A5A00; /* always inside a white card, so fixed light colours in both themes */ padding: 8px 10px; border-radius: 6px; font-weight: 700; font-size: .92rem; }
.stage h3 { font-size: var(--text-title); }
.stage p { font-size: var(--text-small); color: var(--color-text); }
@media (max-width: 900px) {
  .how-head { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .stage { grid-template-rows: auto; }
  .stage:nth-child(n) .tile { height: auto; min-height: 140px; }
}

/* Rail band */
.band { position: relative; height: 170px; margin-top: var(--section-gap); overflow: hidden; overflow: clip; }
.band .rail { --t: 40px; --r: 90px; left: -20px; right: max(24px, 10vw); top: 40px; }

/* Proof board */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.board > div { background: var(--tile); border-top-right-radius: var(--curl); padding: 28px; min-height: 220px; font: 500 clamp(1.2rem, 1rem + .6vw, 1.6rem)/1.25 var(--font-display); }
.board .head { grid-column: span 2; background: var(--field-cobalt); color: #fff; display: flex; align-items: flex-end; }
.board .head h2 { font-size: var(--step-heading); }
@media (max-width: 900px) { .board { grid-template-columns: 1fr 1fr; } .board > div { min-height: 160px; padding: 20px; } }
@media (max-width: 520px) { .board { grid-template-columns: 1fr; } .board .head { grid-column: auto; } .board > div { min-height: 0; } }

/* What staff do */
.staff { display: grid; grid-template-columns: 7fr 1fr 4fr; align-items: center; }
.staff .statement { grid-column: 1; }
.staff figure { grid-column: 3; margin: 0; }
.staff img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 50%; }
.staff .after { margin-top: 32px; font-size: var(--text-lead); }
.ctl { display: inline-flex; align-items: center; justify-content: center; vertical-align: -.12em; height: 1.15em; padding: 0 .4em; margin: 0 .12em; border-radius: 999px; font: 700 .55em var(--font-body); }
.ctl.play { background: var(--hr-cobalt); color: #fff; width: 1.15em; padding: 0; }
.ctl.sort { background: var(--tile); color: var(--color-text); border-radius: .25em; }
.ctl.ans { background: #E3F4E8; color: #1B7A3E; border: 2px solid #1B7A3E; border-radius: .25em; }
.ctl.rec { background: var(--hr-lime); color: var(--hr-ink); }
@media (max-width: 800px) { .staff { grid-template-columns: 1fr; gap: 40px; } .staff figure { grid-column: 1; } .staff img { aspect-ratio: 4 / 3; } }

/* Prices */
.prices { display: grid; grid-template-columns: 5fr 7fr; margin-top: 48px; }
.plan { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; min-height: 520px; position: relative; }
.plan.one { background: var(--tile); }
.plan.five { background: var(--field-cobalt); color: #fff; border-top-right-radius: var(--curl); }
.plan h3 { font-size: var(--text-headline); }
.plan .who { font-size: var(--text-lead); max-width: 30ch; }
.plan .inc { max-width: 44ch; }
.plan .price { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 24px; }
.plan .fig { margin: 0; }
.plan .fig { font: 600 clamp(3rem, 2rem + 4vw, 5.5rem)/.9 var(--font-display); letter-spacing: -.03em; }
.plan .fig small { font: 400 1rem var(--font-body); letter-spacing: 0; display: block; margin-bottom: 8px; }
.price-note { margin-top: 20px; color: var(--color-text-muted); }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } .plan { min-height: 0; } }

/* How we check */
.check { background: var(--field-ink); color: #fff; border-top-right-radius: var(--curl); margin: var(--section-gap) 20px 0; padding: clamp(32px, 6vw, 88px) 0; }
.check-grid { display: grid; grid-template-columns: 6fr 1fr 5fr; gap: 0; }
.check-grid > :first-child { display: grid; gap: 32px; align-content: start; }
.check .report { background: #fff; color: var(--hr-ink); border-top-right-radius: 24px; padding: 24px; display: grid; gap: 12px; font-size: 1rem; }
.check .report b { font-family: var(--font-display); font-weight: 600; }
.check .ok { color: #1B7A3E; font-weight: 700; }
.check-text { grid-column: 3; display: grid; gap: 14px; align-content: start; }
.check-text h3 { font-size: var(--text-title); margin-top: 12px; }
.check-text .btn { justify-self: start; margin-top: 16px; }
.check-text .mail { color: #EEF0FF; }
@media (max-width: 860px) { .check { margin-inline: 8px; } .check-grid { grid-template-columns: 1fr; gap: 40px; } .check-text { grid-column: 1; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: 32px; align-items: start; }
.faq-head { position: sticky; top: 24px; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--tile); border-top-right-radius: 24px; transition: background var(--dur-base), color var(--dur-base); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 24px; font: 600 1.2rem/1.3 var(--font-display); position: relative; min-height: 72px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; font-weight: 500; }
.faq details[open] { background: var(--field-cobalt); color: #fff; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary:focus-visible { outline-color: var(--hr-lime); }
.faq .ans { padding: 0 24px 24px; max-width: 62ch; }
.faq .ans a { color: #fff; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq-head { position: static; } }

/* Close */
.close { position: relative; min-height: min(540px, 72svh); margin-top: var(--section-gap); overflow: hidden; overflow: clip; }
.close .rail { --t: clamp(80px, 11vw, 150px); --r: clamp(90px, 12vw, 170px); left: -80px; width: 62%; bottom: 22%; top: auto; }
.close-text { position: relative; margin-left: auto; width: min(100%, 360px); padding-top: 0; display: grid; gap: 18px; justify-items: start; }
.close-text .fact { font-weight: 700; font-size: var(--text-lead); }
@media (max-width: 860px) {
  .close { min-height: 0; padding-bottom: 260px; }
  .close-text { margin-left: 0; width: 100%; padding-top: 0; }
  .close .rail { --t: 64px; --r: 72px; left: -20px; width: 82%; bottom: 48px; }
}

/* Footer */
.site-footer { background: var(--field-ink); color: #EEF0FF; margin-top: var(--section-gap); padding-block: 72px 40px; }
.site-footer a { color: #fff; }
.foot-mark { width: clamp(160px, 30vw, 360px); height: auto; margin-bottom: 56px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-cols a { display: inline-block; padding-block: 8px; }
.foot-legal { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; color: #A9AFCC; font-size: var(--text-small); }
.foot-legal a { color: #EEF0FF; }
.credits { color: #A9AFCC; font-size: .9rem; margin-top: 16px; max-width: 80ch; }
@media (max-width: 700px) { .foot-cols { grid-template-columns: 1fr; } }

/* Plain reading pages */
.page { max-width: calc(68ch + 2 * var(--gutter)); margin-inline: auto; padding: 64px var(--gutter) 0; }
.page h1 { font-size: var(--step-heading); line-height: 1.05; margin-bottom: 24px; }
.page h2 { font-size: var(--text-headline); margin: 40px 0 12px; }
.page p, .page li { margin-bottom: 12px; }
.page .meta { color: var(--color-text-muted); }
.notfound { min-height: 70svh; position: relative; overflow: hidden; overflow: clip; }
.notfound .rail { --t: 48px; --r: 70px; left: -20px; width: 60%; bottom: 80px; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    @keyframes rise { from { transform: translateY(32px); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .marq-track { animation: none; flex-wrap: wrap; flex: 1; row-gap: 8px; padding-inline: var(--gutter); }
  .marq-track.dup { display: none; }
  .film.run *, .film * { animation: none !important; }
  .proc { transform: rotate(-4deg); opacity: 1; }
  .rot { transition: none; }
  * { transition-duration: 0ms !important; }
}
