/* Tutor website. Slate tokens from DESIGN.md; the world (board, hand type, chalk) stops at the controls. */
:root {
  --ground: #22382f; --card: #2a4339; --raised: #33503f; --ledge: #1b2e26;
  --text: #eceae1; --text-2: #b6c3b8; --text-3: #a0aea3;
  --chalk-now: #e5d28a; --chalk-fix: #e2a59e; --chalk-label: #9fc3d6; --chalk-ok: #a8c79a;
  --chalk-dim: rgba(236, 234, 225, .18);
  --accent-fill: #7a9b6a; --on-accent: #13221b; --now-tint: #3d4a36;
  --hand: "Gochi Hand", "Comic Sans MS", cursive;
  --ui: "Atkinson Hyperlegible", system-ui, sans-serif;
  --float: 0 12px 32px rgba(8, 16, 12, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: var(--chalk-label); }
img, svg { display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.hand { font-family: var(--hand); font-weight: 400; }
.kicker { font: 700 12px/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--chalk-now); color: var(--on-accent); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--chalk-now); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px;
  font: 700 15px/1 var(--ui); text-decoration: none; border: 0; cursor: pointer; transition: transform .12s, background .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { background: #87a877; }
.btn-quiet { color: var(--text); background: transparent; box-shadow: inset 0 0 0 1.5px var(--chalk-dim); }
.btn-quiet:hover { background: var(--card); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(27, 46, 38, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--chalk-dim); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.mark { font: 400 28px/1 var(--hand); color: var(--text); text-decoration: none; }
.nav nav { display: flex; gap: 20px; margin-left: auto; }
.nav nav a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.nav nav a:hover { color: var(--text); }

/* hero */
.hero { padding: 72px 0 88px; }
.hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.02; margin: 0 0 20px; }
.lede { font-size: 18px; color: var(--text-2); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { color: var(--text-3); font-size: 14px; margin: 18px 0 0; }

/* the board mock-up */
.window { margin: 0; background: var(--ledge); border-radius: 14px; box-shadow: var(--float); overflow: hidden; }
.titlebar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 12.5px; color: var(--text-3); }
.dots { display: flex; gap: 14px; }
.dots i { width: 10px; height: 1.5px; background: var(--text-3); }
.win-body { display: grid; grid-template-columns: 52px 1fr; }
.rail { display: flex; flex-direction: column; gap: 8px; padding: 6px 6px 14px; }
.rail b { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; font-size: 12px; color: var(--text-3); background: var(--card); }
.rail b.on { background: var(--now-tint); color: var(--chalk-now); box-shadow: inset 0 0 0 1.5px var(--chalk-now); }
.board { background: var(--ground); border-top-left-radius: 14px; padding: 22px 22px 16px; }
.board-title { font-size: 30px; margin: 0 0 6px; }
.chalk { width: 100%; height: auto; margin: 4px 0 6px; }
.chalk .draw * { fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 400; stroke-dashoffset: 400; animation: chalk 1.1s ease-out forwards; }
.chalk .draw .hl { stroke: var(--chalk-now); }
.chalk .draw :nth-child(2) { animation-delay: .5s } .chalk .draw :nth-child(3) { animation-delay: .65s } .chalk .draw :nth-child(4) { animation-delay: .8s }
.chalk .draw :nth-child(5), .chalk .draw :nth-child(6), .chalk .draw :nth-child(7) { animation-delay: 1s }
.chalk .draw :nth-child(8) { animation-delay: 1.5s } .chalk .draw :nth-child(9) { animation-delay: 1.8s }
.chalk .labels { font: 400 17px var(--hand); fill: var(--text); opacity: 0; animation: fade .6s 2.1s forwards; }
.chalk .labels .y { fill: var(--chalk-now); } .chalk .labels .b { fill: var(--chalk-label); }
.note { color: var(--chalk-fix); font-size: 21px; line-height: 1.25; margin: 0 0 16px; opacity: 0; animation: fade .6s 2.6s forwards; }
.tray { display: flex; gap: 8px; align-items: center; background: var(--ledge); border-radius: 10px; padding: 8px; font-size: 13px; color: var(--text-3); }
.tray span { flex: 1; padding-left: 6px; }
.tray em { font-style: normal; font-weight: 700; color: var(--text-2); background: var(--card); border-radius: 99px; padding: 5px 10px; }
@keyframes chalk { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* sections */
.sec { padding: 88px 0; }
.sec-alt { background: var(--ledge); }
.sec-title { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.08; margin: 0 0 36px; max-width: 18em; }
.body-lg { font-size: 17px; color: var(--text-2); margin: 0 0 16px; max-width: 34em; }
.aside { color: var(--text-3); margin: 24px 0 0; max-width: 46em; }
h3 { font: 700 18px/1.3 var(--ui); margin: 0 0 8px; }
p { margin: 0; }
.card { background: var(--card); border-radius: 14px; padding: 24px; }
.sec-alt .card { background: var(--ground); }
.card p, .card li { color: var(--text-2); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps p { color: var(--text-2); }
.num { display: block; font-size: 48px; line-height: 1; color: var(--chalk-now); margin-bottom: 10px; }

.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tracks.three { grid-template-columns: repeat(3, 1fr); }
.tracks ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.tracks em { color: var(--text); font-style: normal; font-weight: 700; }
.tag { display: inline-block; font: 700 12px/1 var(--ui); border-radius: 99px; padding: 5px 10px; margin-right: 6px; vertical-align: 2px; background: var(--now-tint); }
.tag-now { color: var(--chalk-now); }
.tag-label { color: var(--chalk-label); background: #2f4650; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--card); border-radius: 14px; padding: 24px; }
.feat svg { width: 32px; height: 32px; margin-bottom: 14px; fill: none; stroke: var(--chalk-label); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat p { color: var(--text-2); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: rung; }
.ladder li { position: relative; background: var(--ground); border-radius: 14px; padding: 16px 20px 16px 64px; }
.ladder li::before { counter-increment: rung; content: counter(rung); position: absolute; left: 20px; top: 14px; font: 400 30px/1 var(--hand); color: var(--chalk-now); }
.ladder li:nth-child(2) { margin-left: 24px } .ladder li:nth-child(3) { margin-left: 48px } .ladder li:nth-child(4) { margin-left: 72px }
.ladder span { display: block; font-size: 24px; line-height: 1.1; }
.ladder small { display: block; color: var(--text-2); font-size: 14.5px; margin-top: 4px; }
.ladder em { color: var(--text); }

details { border-bottom: 1px solid var(--chalk-dim); }
summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font: 700 17px/1.4 var(--ui); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 26px/1 var(--hand); color: var(--chalk-now); }
details[open] summary::after { content: "–"; }
details p { color: var(--text-2); padding: 0 0 20px; max-width: 40em; }

/* apply */
.apply { background: linear-gradient(var(--ground), var(--ledge)); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--text-2); }
.checks li::before { content: "✓"; color: var(--chalk-ok); font-weight: 700; margin-right: 10px; }
.form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font: 700 14px/1.3 var(--ui); }
.opt { font-weight: 400; color: var(--text-3); margin-left: 4px; }
.field small { color: var(--text-3); font-size: 13px; }
input, textarea { font: 400 16px/1.4 var(--ui); color: var(--text); background: var(--ledge); border: 1.5px solid transparent; border-radius: 10px; padding: 11px 12px; width: 100%; }
textarea { resize: vertical; min-height: 84px; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, textarea:focus { outline: none; border-color: var(--chalk-now); }
input[aria-invalid="true"] { border-color: var(--chalk-fix); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--chalk-fix); font-size: 14.5px; }
.done { text-align: left; }
.done-title { font-size: 36px; color: var(--chalk-ok); margin-bottom: 8px; }
.done p { color: var(--text-2); }

.foot { background: var(--ledge); border-top: 1px solid var(--chalk-dim); padding: 28px 0; color: var(--text-3); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.foot .mark { font-size: 24px; }
.foot a { margin-left: auto; }

@media (max-width: 920px) {
  .hero-in, .split { grid-template-columns: 1fr; gap: 40px; }
  .steps, .grid, .tracks.three { grid-template-columns: 1fr 1fr; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 620px) {
  .hero { padding: 40px 0 56px; }
  .sec { padding: 64px 0; }
  .steps, .grid, .tracks, .tracks.three, .row { grid-template-columns: 1fr; }
  .ladder li:nth-child(n) { margin-left: 0; }
  .win-body { grid-template-columns: 1fr; }
  .rail { display: none; }
  .board { border-radius: 0; padding: 16px; }
  .tray em:nth-of-type(n+2) { display: none; }
  .foot a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chalk .draw *, .chalk .labels, .note { animation: none; stroke-dashoffset: 0; opacity: 1; }
}
