/* Speedrun: calm, focused, fast. One accent, used sparingly. */
:root {
  --paper: #F7F6F2; --card: #FFFFFF; --ink: #121317; --muted: #676A72; --line: #E5E2DA;
  --run: #FF5A1F; --run-ink: #FFFFFF; --run-soft: #FFF0E9;
  --good: #16865A; --good-soft: #E8F5EE; --bad: #C8372D; --bad-soft: #FBECEA;
  --r: 14px; --r-sm: 10px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
.wrap { max-width: 760px; margin: 0 auto; padding: 8px 20px 64px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; height: 60px;
  max-width: none; margin: 0; padding: env(safe-area-inset-top) max(20px, calc((100vw - 720px) / 2)) 0;
  background: rgba(247, 246, 242, 0.8); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); }
@media (prefers-reduced-transparency: reduce) { .top { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; font-size: 17px; }
.mark { width: 18px; height: 18px; border-radius: 5px; background: var(--ink); position: relative; overflow: hidden; }
.mark::after { content: ""; position: absolute; inset: 5px -2px 5px 5px; background: var(--run); transform: skewX(-20deg); border-radius: 2px; }
.nav { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; justify-content: flex-end; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: 9px; font-size: 15px; color: var(--ink); }
.nav a.quiet { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: #EDEBE5; } }
.foot { max-width: 760px; margin: 0 auto; padding: 24px 20px 40px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }

h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; letter-spacing: -0.025em; margin: 20px 0 10px; font-weight: 700; }
h2 { font-size: 20px; letter-spacing: -0.01em; margin: 32px 0 12px; font-weight: 650; }
h3 { font-size: 16px; margin: 0 0 6px; font-weight: 650; }
p { margin: 0 0 12px; }
.lede { font-size: 18px; color: #34363C; max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card + .card { margin-top: 12px; }
.grid > .card + .card, .offer .grid > .card + .card { margin-top: 0; }
.stem, .feedback, .passage { scroll-margin-top: 150px; }
.foot a { color: inherit; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 15px; font-weight: 500; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent; background: var(--ink); color: #fff; font: 600 16px/1 var(--font);
  text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease), background-color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn.run { background: var(--run); color: var(--run-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #2A2C33; } .btn.run:hover { background: #F04E14; } .btn.ghost:hover { background: #EFEDE7; } }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--run) 55%, white); outline-offset: 2px; border-radius: 8px; }

form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=date], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; font: 16px/1.4 var(--font); color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600;
  transition: border-color 160ms ease, box-shadow 160ms ease; }
.seg label span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
.seg input:checked + label { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.seg input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--run) 55%, white); outline-offset: 2px; }
.error { background: var(--bad-soft); color: var(--bad); padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-weight: 500; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #EDEBE5; }
.pill.run { background: var(--run-soft); color: #B63A0B; }
.pill.good { background: var(--good-soft); color: var(--good); }

.bar { height: 8px; background: #ECE9E2; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 99px; transform-origin: left; }
.bar.run > i { background: var(--run); }
.skills { display: grid; gap: 14px; }
.skill .row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 6px; }

.days { list-style: none; margin: 0; padding: 0; }
.days li { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.days li:last-child { border-bottom: 0; }
.days .d { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.days .today .d { color: var(--ink); font-weight: 700; }

.hero-score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hero-score .big { font-size: clamp(56px, 16vw, 88px); font-weight: 750; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }

/* the session player */
.player { max-width: 680px; margin: 0 auto; }
.progress-top { position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 2; background: var(--paper); padding: 10px 0 12px; }
.progress-top .meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.passage { font: 17px/1.65 var(--serif); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 14px; white-space: pre-wrap; max-height: 46vh; overflow: auto; }
.passage h3 { font: 600 15px/1.3 var(--font); margin-bottom: 8px; }
.stem { font-size: 19px; line-height: 1.5; margin: 6px 0 16px; white-space: pre-wrap; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; min-height: 56px; padding: 14px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; font: 17px/1.4 var(--font); color: var(--ink); cursor: pointer;
  transition: transform 140ms var(--ease), border-color 140ms ease, background-color 140ms ease; }
.choice:active { transform: scale(0.985); }
.choice .l { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #F0EEE8; font-weight: 700; font-size: 14px; }
.choice[aria-pressed=true] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.choice.right { border-color: var(--good); background: var(--good-soft); }
.choice.right .l { background: var(--good); color: #fff; }
.choice.wrong { border-color: var(--bad); background: var(--bad-soft); }
.choice.wrong .l { background: var(--bad); color: #fff; }
.choice[disabled] { cursor: default; }
@media (hover: hover) and (pointer: fine) { .choice:not([disabled]):hover { border-color: #BDB9AF; } }
.feedback { margin-top: 16px; padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line);
  opacity: 1; transform: translateY(0); transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
@starting-style { .feedback { opacity: 0; transform: translateY(6px); } }
.feedback .verdict { font-weight: 700; margin-bottom: 6px; }
.feedback .verdict.good { color: var(--good); } .feedback .verdict.bad { color: var(--bad); }
.actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 180px; }
.ai { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); white-space: pre-wrap; }
.timer { font-variant-numeric: tabular-nums; }

.chart { width: 100%; height: auto; display: block; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; color: var(--muted); font-weight: 600; }
.scroll-x { overflow-x: auto; }

.offer { display: grid; gap: 12px; }
.offer .card.best { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.price { font-size: 34px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; }
ul.ticks { list-style: none; padding: 0; margin: 12px 0 16px; }
ul.ticks li { padding-left: 24px; position: relative; margin: 6px 0; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .btn:active, .choice:active { transform: none; }
}
@media (max-width: 520px) {
  .nav a { padding: 8px 7px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .card { padding: 16px; }
  .days li { grid-template-columns: 76px 1fr; }
  .days li .pill { grid-column: 2; justify-self: start; }
}
