/* ProTesting homepage. Site-wide tokens, nav, buttons and quiz live in site.css. */

/* ── Hero ────────────────────────────────────────────── */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title {
  font-size: clamp(40px, 5.3vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 900;
  text-wrap: balance;
}
.typo { position: relative; display: inline-block; white-space: nowrap; }
.typo-word { position: relative; z-index: 1; display: inline-block; transition: color .3s; }
.tw-bad { display: none; }
.js .typo:not(.is-fixed) .tw-bad { display: inline; }
.js .typo:not(.is-fixed) .tw-good { display: none; }
.typo-ring {
  position: absolute; left: -7%; top: -6%; width: 116%; height: 118%;
  overflow: visible; pointer-events: none;
}
.typo-ring path {
  fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.typo-note {
  position: absolute; left: calc(100% + .55em); top: 4%;
  font-family: var(--hand); font-weight: 700; font-size: .5em; letter-spacing: 0; line-height: 1;
  color: var(--red); white-space: nowrap;
  transform: translate(-6px, 4px) rotate(-8deg); opacity: 0;
  transition: opacity .35s, transform .45s var(--ease);
}
.typo-note::before { content: "\2190\00a0"; font-family: var(--sans); font-weight: 500; }
.typo.is-flagged .typo-ring path { stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease); }
.typo.is-flagged .typo-word { color: var(--red); }
.typo.is-noted .typo-note { opacity: 1; transform: rotate(-8deg); }
.typo.is-fixed .typo-word { color: var(--ink); }
.typo.is-fixed .typo-ring { opacity: 0; transition: opacity .6s .2s; }
.typo.is-fixed .typo-note { opacity: 0; transform: translate(8px, -6px) rotate(-8deg); transition-delay: .2s; }

.hero-sub { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 31em; margin-top: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-2);
  opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease);
}
.hero-tag.is-on { opacity: 1; transform: none; }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(29, 122, 74, .15); }

/* Terminal */
.term {
  background: var(--night); color: var(--night-text);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(23, 22, 26, .55), 0 0 0 1px rgba(23, 22, 26, .9);
  font-family: var(--mono); font-size: 13.5px; line-height: 1.5;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--night-line); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--night-line); }
.term-bar p { margin-left: 10px; color: var(--night-muted); font-size: 12px; }
.term-body { list-style: none; padding: 18px 18px 22px; min-height: 360px; }
.term-body li { padding: 3px 0 3px 22px; position: relative; }
.term-body .t-cmd { padding-left: 0; color: var(--night-muted); margin-bottom: 8px; }
.t-pass::before, .t-fail::before { position: absolute; left: 0; font-weight: 500; }
.t-pass::before { content: "✓"; color: #5ccf8f; }
.t-fail { color: #ff8a73; }
.t-fail::before { content: "✕"; color: #ff8a73; }
.term-body .t-note { font-family: var(--hand); font-size: 17px; color: #ff8a73; padding-left: 22px; margin: -2px 0 4px; }
.term-body .t-note::before { content: "↳ "; font-family: var(--mono); font-size: 13px; }
.term-body .t-sum { padding-left: 0; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--night-line); color: var(--night-muted); }
.t-sum b { color: #5ccf8f; font-weight: 500; }
.t-sum em { color: #ff8a73; font-style: normal; }
.js .term-body li { opacity: 0; transform: translateX(-6px); }
.js .term-body li.is-on { opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.term-body li.is-running::before { content: "›"; color: var(--night-muted); animation: blink .6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .term { max-width: 560px; }
  .term-body { min-height: 330px; }
}
@media (max-width: 600px) {
  .typo-note { display: none; }
  .typo-ring { left: -6%; width: 112%; }
}

/* ── Test rounds ─────────────────────────────────────── */
.rounds { padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.year { margin-bottom: clamp(40px, 6vw, 72px); }
.year-months {
  list-style: none; display: grid; grid-template-columns: repeat(12, 1fr);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.year-months li { padding: 0 0 8px 6px; border-left: 1px solid var(--line); }
.year-track {
  position: relative; height: 64px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), var(--line) calc(100% / 12 - 1px) calc(100% / 12));
}
.year-round {
  position: absolute; top: 7px; bottom: 7px;
  left: calc(var(--m) / 12 * 100% + 3px); width: calc(100% / 24 * 1.4);
  min-width: 34px;
  background: var(--ink); color: var(--paper); border-radius: 7px;
  transform-origin: left; transition: transform .6s var(--ease), background-color .3s;
}
.year-round b {
  position: absolute; left: 0; top: calc(100% + 14px);
  font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.year-round::after {
  content: ""; position: absolute; right: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; background: var(--red) center / 10px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3.5h6M3 6h6M3 8.5h4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 3px var(--card);
  transform: scale(0); transition: transform .35s var(--ease);
}
.js .year-round { transform: scaleX(0); }
.year.is-in .year-round { transform: none; }
.year.is-in .year-round::after { transform: scale(1); }
.year-round { transition-delay: calc(var(--m) * .12s + .1s); }
.year-round::after { transition-delay: calc(var(--m) * .12s + .55s); }
.year figcaption { margin-top: 44px; font-family: var(--hand); font-size: 20px; color: var(--red); transform: rotate(-1deg); }

.rounds-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.steps { list-style: none; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 26px 0; border-top: 1.5px solid var(--ink); }
.step:last-child { border-bottom: 1.5px solid var(--ink); }
.step-n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 900; font-size: 18px;
}
.step h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 8px; }
.step p { color: var(--ink-2); max-width: 34em; }

.price {
  position: sticky; top: 104px;
  background: var(--ink); color: var(--paper); border-radius: 22px;
  padding: clamp(26px, 3.4vw, 40px);
}
.price-kind { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #ff8a73; }
.price-big { font-size: clamp(56px, 7vw, 84px); font-weight: 900; letter-spacing: -.05em; line-height: 1; margin: 10px 0 22px; }
.price-list { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.price-list li { position: relative; padding-left: 28px; color: #d9d5cb; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: #5ccf8f; font-weight: 700; }
.price-note { padding-top: 18px; border-top: 1px dashed #3a3a40; color: #c9c5bb; font-size: 15px; margin-bottom: 22px; }

@media (max-width: 860px) {
  .rounds-grid { grid-template-columns: 1fr; }
  .price { position: static; }
  .year-months { font-size: 9px; letter-spacing: 0; }
  .year-months li { padding-left: 3px; }
  .year-round b { font-size: 10px; }
}
@media (max-width: 520px) {
  .year-months li:nth-child(even) { color: transparent; }
  .year-round b { display: none; }
  .year figcaption { margin-top: 18px; }
}

/* ── Problem ─────────────────────────────────────────── */
.problem { padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.problem-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.fails { list-style: none; display: grid; gap: 4px; }
.fail { padding: 26px 0 28px; border-top: 1.5px solid var(--ink); }
.fail:last-child { border-bottom: 1.5px solid var(--ink); }
.fail-code { font-family: var(--mono); font-size: 12px; color: var(--red-ink); letter-spacing: .04em; margin-bottom: 8px; }
.fail h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin-bottom: 10px; }
.fail p:last-child { color: var(--ink-2); max-width: 36em; }

.cost {
  position: sticky; top: 104px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 28px 24px;
}
.cost figcaption { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
/* Who one bug drags in: the stack grows as the section scrolls into view */
.drag { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; align-items: end; }
.drag-col p { font-size: 14px; color: var(--ink-2); line-height: 1.35; margin-top: 12px; min-height: 2.7em; }
.drag-stack { list-style: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 262px; }
.drag-stack li {
  padding: 9px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 700; line-height: 1.2;
  background: var(--green); color: #fff;
  transition: opacity .3s, transform .4s var(--ease);
}
.drag-col--late li { background: var(--red); }
.drag-col--late li:nth-child(odd) { background: var(--red-ink); }
.js .drag-stack li:not(.is-on) { opacity: 0; transform: translateY(-14px); }
.cost-note { font-family: var(--hand); color: var(--red); font-size: 20px; margin-top: 14px; transform: rotate(-2deg); }

@media (max-width: 860px) {
  .problem-layout { grid-template-columns: 1fr; }
  .cost { position: static; }
  .drag-stack { min-height: 0; }
}

/* ── Services ────────────────────────────────────────── */
.services { padding: clamp(72px, 10vw, 140px) 0; background: var(--paper-2); }
.lifecycle { margin-bottom: 28px; }
.lc-stages { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.lc-stages li { padding: 0 0 10px 10px; border-left: 1px solid var(--line); }
.lc-track { position: relative; height: 46px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lc-band {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc(100% - 8px);
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; padding: 0 18px;
  font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden;
  transition: left .6s var(--ease), width .6s var(--ease), background-color .4s;
}
.lc-caption { margin-top: 12px; font-family: var(--hand); font-size: 20px; color: var(--red); transition: opacity .2s; }
.lc-caption.is-swapping { opacity: 0; }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc {
  cursor: pointer;
  text-align: left; display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 26px 28px;
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.svc:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -24px rgba(23,22,26,.5); }
.svc.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.svc-num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.svc.is-active .svc-num { color: var(--red-ink); }
.svc-title { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.svc-desc { color: var(--ink-2); font-size: 16px; }
.svc-fit { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 15px; border-top: 1px dashed var(--line); }
/* Line up number, title, description and the bold note across each row of cards,
   so a one-line note doesn't sit lower than its two-line neighbours */
@supports (grid-template-rows: subgrid) {
  .svc { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; align-content: start; }
  .svc-fit { margin-top: 0; align-self: start; }
}

@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; }
  .lc-stages { font-size: 10px; letter-spacing: .06em; }
  .lc-stages li { padding-left: 6px; }
  .lc-band { font-size: 12px; padding: 0 12px; }
}

/* ── Why ─────────────────────────────────────────────── */
.why { padding: clamp(72px, 10vw, 140px) 0; }
.asserts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); }
.assert { padding: 28px 0 30px; border-top: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.assert code {
  font-family: var(--mono); font-size: 13px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.assert code::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--line);
  background: center / 12px no-repeat;
  transition: background-color .3s .35s, border-color .3s .35s;
}
.assert.is-in code::before, html:not(.js) .assert code::before {
  background-color: var(--green); border-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.4l2.4 2.4 5.2-5.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.assert h3 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.assert p { color: var(--ink-2); margin-top: 6px; }
@media (max-width: 760px) { .asserts { grid-template-columns: 1fr; } }

/* ── Mantra ──────────────────────────────────────────── */
.mantra { background: var(--night); color: var(--night-text); padding: clamp(96px, 16vw, 200px) 0; }
.mantra blockquote { max-width: 1040px; }
.mantra-quote {
  font-size: clamp(44px, 8.4vw, 116px);
  line-height: .98; letter-spacing: -.05em; font-weight: 900;
  text-wrap: balance;
}
.mantra-quote .w { opacity: var(--o, 1); transition: opacity .15s linear; }
.mantra-quote .w-key { color: #ff8a73; }
.mantra footer { margin-top: 36px; font-family: var(--mono); font-size: 14px; color: var(--night-muted); }

/* ── Quiz ────────────────────────────────────────────── */
.quiz { padding: clamp(72px, 10vw, 140px) 0; }
.quiz-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.quiz-grid .section-head { margin-bottom: 0; }
@media (max-width: 860px) { .quiz-grid { grid-template-columns: 1fr; } }

/* ── Review ──────────────────────────────────────────── */
.review { padding: 0 0 clamp(72px, 10vw, 140px); }
.review-inner { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: clamp(40px, 6vw, 72px) 0; text-align: center; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); }
.stars { color: var(--red); letter-spacing: .2em; font-size: 18px; }
.review-quote { font-size: clamp(26px, 3.6vw, 44px); font-weight: 500; font-style: italic; letter-spacing: -.025em; line-height: 1.15; margin: 16px auto 18px; max-width: 22em; text-wrap: balance; }
.review-meta { font-size: 15px; color: var(--ink-2); }

/* ── About ───────────────────────────────────────────── */
.about { padding: 0 0 clamp(72px, 10vw, 140px); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.about-text p:not(.eyebrow) { color: var(--ink-2); font-size: 18px; margin-top: 18px; max-width: 34em; }
.about-text .h2 { margin-bottom: 8px; }
.about-text p a { font-weight: 700; color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.about-text .text-link { display: inline-block; margin-top: 26px; }

/* Conference-style lanyard badge in place of a portrait: one tick per year of testing */
.badge {
  position: relative; max-width: 360px; width: 100%; justify-self: center;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px;
  padding: 44px 28px 26px;
  transform: rotate(-3deg);
  box-shadow: 0 30px 50px -36px rgba(23, 22, 26, .6);
  transition: transform .5s var(--ease);
}
.badge:hover { transform: rotate(0); }
.badge-clip { position: absolute; top: 14px; left: 50%; width: 54px; height: 10px; margin-left: -27px; border-radius: 6px; background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.badge-org { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.badge-years { display: flex; align-items: flex-end; gap: 12px; margin-top: 18px; }
.badge-years b { font-size: 132px; font-weight: 900; letter-spacing: -.07em; line-height: .78; color: var(--red); }
.badge-years span { font-weight: 800; font-size: 20px; letter-spacing: -.02em; line-height: 1.1; padding-bottom: 4px; max-width: 7em; }
.badge-ticks { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; margin: 20px 0 22px; }
.badge-ticks span {
  aspect-ratio: 1; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line);
  background: center / 70% no-repeat;
  transition: background-color .2s, box-shadow .2s;
}
.badge.is-in .badge-ticks span, html:not(.js) .badge-ticks span {
  background-color: var(--green); box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.4l2.4 2.4 5.2-5.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.badge-name { font-size: 32px; font-weight: 900; letter-spacing: -.04em; line-height: 1; padding-top: 18px; border-top: 1px dashed var(--line); }
.badge-creds { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.badge-creds li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink-2); }
.badge-creds a { color: var(--ink); font-weight: 700; text-decoration-color: var(--red); text-underline-offset: 3px; }
.badge-book { flex: none; width: 18px; height: 24px; border-radius: 2px 4px 4px 2px; background: var(--ink); box-shadow: inset 3px 0 0 #000, inset 0 -6px 0 -4px var(--red); }
.badge-ico { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--ink-3); position: relative; }
.badge-ico::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--ink); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .badge { transform: rotate(-2deg); } }

/* ── Contact ─────────────────────────────────────────── */
.contact { padding: clamp(72px, 10vw, 140px) 0; background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(26px, 4vw, 44px);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 24px 40px -30px rgba(23,22,26,.6); }
.contact-card--main { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.contact-card--main .contact-desc { color: #c9c5bb; }
.contact-kind { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.contact-card--main .contact-kind { color: #ff8a73; }
.contact-big { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; }
.contact-email { font-size: clamp(22px, 2.6vw, 32px); overflow-wrap: anywhere; }
.contact-desc { color: var(--ink-2); max-width: 30em; margin-bottom: 14px; }
.contact-card .btn { margin-top: auto; }
.contact-card--main .btn-red:hover, .contact-card--main:hover .btn-red { background: #e0452f; }
.contact-card:hover .btn-line { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Scroll test runner ──────────────────────────────── */
.runner {
  position: fixed; left: 16px; bottom: 16px; z-index: 40; font-family: var(--mono);
  transition: opacity .35s, transform .35s var(--ease);
}
.runner { display: none; }
.js .runner { display: block; }
.js .runner:not(.is-shown) { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; transition: opacity .35s, transform .35s var(--ease), visibility 0s .35s; }
.runner-pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 16px 0 14px; border-radius: 999px;
  background: var(--night); color: var(--night-text); font-size: 12.5px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 10px 24px -12px rgba(0,0,0,.6);
  transition: transform .3s var(--ease), background-color .4s;
}
.runner-pill:hover { transform: translateY(-2px); }
.runner-dot { width: 9px; height: 9px; border-radius: 50%; background: #e7b84a; transition: background-color .3s; }
.runner.is-done .runner-dot { background: #5ccf8f; }
.runner.is-tick .runner-pill { animation: tick .45s var(--ease); }
@keyframes tick { 40% { transform: scale(1.06); } }
.runner-file { color: var(--night-muted); }
.runner-list {
  position: absolute; left: 0; bottom: calc(100% + 10px); width: min(320px, calc(100vw - 32px));
  list-style: none; background: var(--night); color: var(--night-text);
  border-radius: 14px; padding: 10px; font-size: 12.5px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.7);
}
.runner-list a {
  display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--night-muted);
}
.runner-list a:hover { background: var(--night-2); color: var(--night-text); }
.runner-list a::before { content: "○"; width: 12px; flex: none; }
.runner-list .is-pass a { color: var(--night-text); }
.runner-list .is-pass a::before { content: "✓"; color: #5ccf8f; }
.runner-list .is-here a { background: var(--night-2); }
@media (max-width: 560px) { .runner { left: 12px; bottom: 12px; } .runner-pill { min-height: 36px; font-size: 11.5px; } }

@media (prefers-reduced-motion: reduce) {
  .js .term-body li { opacity: 1; transform: none; }
  .js .drag-stack li, .js .drag-stack li:not(.is-on) { opacity: 1; transform: none; }
}
