/* ===============================================================
   Terminal Editorial
   Dark-first technical workspace + editorial typography.
   One dominant charcoal, one hot signal accent, nothing balanced.
   The purple gradient appears exactly once — inside the bad slide,
   where it belongs.
   =============================================================== */

:root {
  --ink:      #0c0e0d;
  --panel:    #141817;
  --panel-2:  #1b211f;
  --line:     #262e2b;
  --line-2:   #333d39;
  --fg:       #f0eee9;
  --fg-2:     #98a29d;
  --fg-3:     #6c7671;
  --accent:   #ff6b35;
  --accent-2: #ffab6b;
  --accent-ink: #170701;
  --glow:     rgba(255, 107, 53, 0.22);
  --good:     #5fcf9b;
  --bad:      #ff7a6b;

  --display: "Bricolage Grotesque", Georgia, serif;
  --body:    "Archivo", "Helvetica Neue", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --measure: 64ch;
  --r: 4px;
  --r-lg: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  --ink:      #f7f4ef;
  --panel:    #ffffff;
  --panel-2:  #f1ece4;
  --line:     #e2dbd0;
  --line-2:   #cfc6b8;
  --fg:       #17130f;
  --fg-2:     #5c554c;
  --fg-3:     #857d72;
  --accent:   #cf4718;
  --accent-2: #a75f16;
  --accent-ink: #ffffff;
  --glow:     rgba(207, 71, 24, 0.16);
  --good:     #1d7a52;
  --bad:      #b03521;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4rem; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic { width: 1em; height: 1em; flex: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

p { max-width: var(--measure); }

a { color: var(--accent); text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 90;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; border-radius: var(--r);
}

/* Scroll progress ------------------------------------------------ */

.scrollbar {
  position: fixed; inset: 0 0 auto 0; height: 2px;
  background: transparent; z-index: 80; pointer-events: none;
}
.scrollbar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--glow);
}

/* Reveals — visible by default, animated only when JS + motion OK -- */

.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===============================================================
   Hero
   =============================================================== */

.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.4rem;
}
.blip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--glow); }
  70%  { box-shadow: 0 0 0 10px rgba(255,107,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,53,0); }
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 0 0 1.35rem;
}
.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--accent);
}

.standfirst {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--fg-2);
  margin: 0 0 2rem;
  max-width: 46ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  font-family: var(--body);
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 6px 24px -10px var(--accent);
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1rem; margin-top: 1.5rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 30rem;
}
@media (min-width: 560px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts > div { background: var(--panel); padding: 0.8rem 0.9rem; }
.facts dt {
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
}
.facts dd {
  margin: 0.2rem 0 0;
  font-family: var(--display); font-weight: 700;
  font-size: 1.5rem; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

/* --- The comparator: the thing people remember ------------------ */

.compare { margin: 0; }

.compare-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
  isolation: isolate;
}

.slide { position: absolute; inset: 0; display: grid; place-items: center; }

/* the villain */
.slide-generic { background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 55%, #2563eb 100%); }
.sg-inner { width: 100%; padding: 8% 10%; text-align: center; }
.sg-title {
  margin: 0 auto 0.5em;
  max-width: none;
  font-family: var(--body); font-weight: 600;
  font-size: clamp(1rem, 2.9vw, 1.9rem);
  color: #fff; letter-spacing: -0.01em;
}
.sg-sub {
  margin: 0 auto 8%;
  max-width: none;
  font-size: clamp(0.6rem, 1.35vw, 0.85rem);
  color: rgba(255,255,255,0.72);
}
.sg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.sg-cards span {
  height: clamp(2.6rem, 8vw, 4.6rem);
  border-radius: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.22);
}

/* the point */
.slide-designed {
  background: #f7f3ec;
  clip-path: inset(0 0 0 var(--pos, 52%));
}
.sd-inner { width: 100%; padding: 7% 8%; }
.sd-eyebrow {
  margin: 0 0 0.7em; max-width: none;
  font-family: var(--mono);
  font-size: clamp(0.5rem, 1.1vw, 0.68rem);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #cf4718;
}
.sd-title {
  margin: 0 0 6%;
  max-width: 15ch;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.05rem, 3.3vw, 2.15rem);
  line-height: 1.03; letter-spacing: -0.03em;
  color: #17130f;
}
.sd-title em { font-style: normal; color: #cf4718; }
.sd-data { display: flex; align-items: flex-end; justify-content: space-between; gap: 6%; }
.sd-bars {
  display: flex; align-items: flex-end; gap: 5px;
  height: clamp(2.2rem, 7vw, 4rem);
}
.sd-bars i {
  width: clamp(9px, 2.2vw, 18px);
  height: var(--h);
  background: #d9cfbe;
  border-radius: 2px 2px 0 0;
}
.sd-bars i:last-child { background: #cf4718; }
.sd-stat { text-align: right; }
.sd-num {
  display: block;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.3rem, 4vw, 2.6rem);
  line-height: 1; letter-spacing: -0.04em;
  color: #17130f;
  font-variant-numeric: tabular-nums;
}
.sd-lab {
  display: block; margin-top: 0.25em;
  font-family: var(--mono);
  font-size: clamp(0.48rem, 1vw, 0.62rem);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #857d72;
}

.compare-line {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos, 52%);
  width: 2px; margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 18px rgba(0,0,0,0.45);
  pointer-events: none;
}
.compare-knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff; color: #17130f;
  font-size: 1.05rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.compare-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
  background: transparent;
}
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.compare-range::-moz-range-thumb { width: 44px; height: 100%; border: 0; opacity: 0; }
.compare-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.compare-tag {
  position: absolute; bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.3rem 0.55rem; border-radius: 3px;
  pointer-events: none;
}
.tag-left  { left: 0.75rem;  background: rgba(0,0,0,0.42); color: #fff; }
.tag-right { right: 0.75rem; background: rgba(23,19,15,0.1); color: #17130f; }

.compare figcaption {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.03em;
  color: var(--fg-3);
}

/* ===============================================================
   Layout
   =============================================================== */

.layout {
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem) 6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1000px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
}

.rail { display: none; }
@media (min-width: 1000px) {
  .rail { display: block; position: sticky; top: 2.5rem; }
}

.rail-title {
  font-family: var(--mono);
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3); margin: 0 0 1rem;
}
.rail-list { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.rail-list a {
  display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.42rem 0 0.42rem 0.8rem;
  font-size: 0.875rem;
  color: var(--fg-3); text-decoration: none;
  border-left: 2px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.rail-list a:hover { color: var(--fg); border-left-color: var(--line-2); }
.rail-list a.is-active { color: var(--accent); border-left-color: var(--accent); }
.rl-n {
  font-family: var(--mono); font-size: 0.65rem;
  color: var(--fg-3); font-variant-numeric: tabular-nums;
}
.rail-list a.is-active .rl-n { color: var(--accent); }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 40px;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent; color: var(--fg-3);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 0.45rem 0.75rem; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

main { min-width: 0; }

/* Blocks --------------------------------------------------------- */

.block { padding-bottom: 4rem; margin-bottom: 4rem; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.kicker {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 0.85rem;
  max-width: none;
}
.kn {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.block h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.06; letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0 0 1.1rem;
}
.block h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 1.18rem; letter-spacing: -0.015em;
  margin: 2.5rem 0 0.8rem;
}

.lede { font-size: 1.13rem; color: var(--fg); }

.note {
  font-size: 0.95rem; color: var(--fg-2);
  border-left: 2px solid var(--line-2);
  padding-left: 1rem; margin-top: 1.75rem;
}

.ts {
  display: inline-flex; align-items: center;
  font-family: var(--mono);
  font-size: 0.65rem; font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  margin-left: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
a.ts:hover { background: var(--accent); color: var(--accent-ink); }

/* Lists ---------------------------------------------------------- */

.ticks { list-style: none; margin: 1.25rem 0 0; padding: 0; max-width: var(--measure); }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: 0.65rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.66em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

.numbered {
  counter-reset: n; list-style: none;
  margin: 1.35rem 0 0; padding: 0; max-width: var(--measure);
}
.numbered li {
  counter-increment: n;
  position: relative; padding-left: 2.4rem; margin-bottom: 0.7rem;
}
.numbered li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: 0.1em;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  color: var(--accent);
}

/* Prompt blocks -------------------------------------------------- */

.prompt {
  position: relative;
  margin: 1.6rem 0 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.prompt-hero { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 0 40px -22px var(--accent); }

.prompt figcaption {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
  padding: 0.7rem 1rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

.prompt pre { margin: 0; padding: 1.2rem 1rem; overflow-x: auto; }
.prompt code {
  font-family: var(--mono); font-size: 0.875rem; line-height: 1.7;
  white-space: pre-wrap; color: var(--fg);
}

.copy {
  position: absolute; top: 0.42rem; right: 0.55rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 32px;
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--panel); color: var(--fg-3);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 0.3rem 0.6rem; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.copy:hover { color: var(--accent); border-color: var(--accent); }
.copy.is-done { color: var(--good); border-color: var(--good); }

/* Callouts ------------------------------------------------------- */

.callout {
  margin-top: 1.8rem;
  padding: 1.15rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--fg-3);
  border-radius: var(--r);
}
.callout p { margin: 0; }
.callout p + p { margin-top: 0.6rem; }
.callout-title {
  font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.45rem !important;
}
.callout-warn { border-left-color: var(--bad); }
.callout-warn .callout-title { color: var(--bad); }

/* Repo cards ----------------------------------------------------- */

.repos { display: grid; gap: 0.8rem; margin-top: 1.4rem; }

.repo {
  display: grid; gap: 0.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none; color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.repo:hover {
  border-color: var(--accent);
  background: var(--panel-2);
  box-shadow: 0 0 34px -20px var(--accent);
}
.repo-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.6rem; }
.repo-name {
  font-family: var(--mono); font-size: 0.95rem; font-weight: 700;
  color: var(--accent);
}
.repo-by {
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
}
.repo-desc { font-size: 0.95rem; color: var(--fg-2); line-height: 1.6; }
.repo-desc em { font-style: normal; color: var(--fg); font-weight: 500; }
.repo-go {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--fg-3); word-break: break-all;
}
.repo:hover .repo-go { color: var(--accent); }

/* Input rows ----------------------------------------------------- */

.inputs { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.input-row {
  display: grid; grid-template-columns: 1fr; gap: 0.3rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .input-row { grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.5rem; }
}
.input-kind {
  margin: 0; max-width: none;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.input-row p:last-child { margin: 0; color: var(--fg-2); }

/* Files panel ---------------------------------------------------- */

.files-panel {
  margin-top: 1.8rem;
  padding: 1.25rem 1.35rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: var(--panel);
}
.files-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.files-panel > p { margin: 0.5rem 0 0; color: var(--fg-2); font-size: 0.95rem; }
.pill {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.file-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.file {
  display: flex; align-items: center; gap: 0.6rem;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none; color: var(--fg);
  font-size: 0.9rem;
}
.file .ic { font-size: 1.1rem; color: var(--fg-3); }
.file span { display: flex; flex-direction: column; line-height: 1.3; }
.file strong { font-weight: 600; }
.file span span, .file span:last-child { font-weight: 400; }
.file span strong + * { font-size: 0.62rem; }
.file span { font-family: var(--body); }
.file span strong ~ * { color: var(--fg-3); }
.file[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.file:not([aria-disabled="true"]):hover { border-color: var(--accent); color: var(--accent); }

/* Timeline ------------------------------------------------------- */

.timeline { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.6rem 2rem;
  border-left: 1px solid var(--line);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 0.45em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--accent);
}
.timeline strong { font-weight: 600; font-size: 1.02rem; }
.timeline p { margin: 0.2rem 0 0; color: var(--fg-2); font-size: 0.96rem; }

/* Checklist ------------------------------------------------------ */

.checklist {
  margin-top: 1.9rem;
  padding: 1.4rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.checklist.is-complete { border-color: var(--good); box-shadow: 0 0 40px -24px var(--good); }

.cl-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.ring { width: 44px; height: 44px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.5; }
.ring-track { stroke: var(--line); }
.ring-fill {
  stroke: var(--accent); stroke-linecap: round;
  stroke-dasharray: 119.4;
  stroke-dashoffset: 119.4;
  transition: stroke-dashoffset 0.45s var(--ease), stroke 0.3s ease;
}
.checklist.is-complete .ring-fill { stroke: var(--good); }

.cl-title { margin: 0; font-weight: 600; }
.cl-progress {
  margin: 0.1rem 0 0;
  font-family: var(--mono); font-size: 0.74rem;
  color: var(--fg-3); font-variant-numeric: tabular-nums;
}

.cl-items { display: grid; gap: 0.1rem; }
.checklist label {
  display: flex; align-items: flex-start; gap: 0.75rem;
  min-height: 44px;
  padding: 0.5rem 0;
  cursor: pointer;
  font-size: 0.98rem;
}
.checklist input { position: absolute; opacity: 0; width: 0; height: 0; }
.box {
  flex: none; width: 20px; height: 20px; margin-top: 0.22rem;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-2); border-radius: 4px;
  color: transparent;
  font-size: 0.7rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.checklist label:hover .box { border-color: var(--accent); }
.checklist input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.checklist input:checked + .box {
  background: var(--good); border-color: var(--good); color: var(--ink);
}
.checklist input:checked ~ .txt { color: var(--fg-3); text-decoration: line-through; }

.cl-done {
  display: none;
  margin: 1rem 0 0;
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.08em; color: var(--good);
}
.checklist.is-complete .cl-done { display: block; }

.reset {
  margin-top: 1rem; min-height: 36px;
  font-family: var(--mono); font-size: 0.64rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; color: var(--fg-3);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 0.35rem 0.7rem; cursor: pointer;
}
.reset:hover { color: var(--accent); border-color: var(--accent); }

/* Do / don't ----------------------------------------------------- */

.rules { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.6rem; }
@media (min-width: 720px) { .rules { grid-template-columns: 1fr 1fr; } }
.rule {
  padding: 1.2rem 1.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.rule-tag {
  margin: 0 0 0.9rem; max-width: none;
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.rule ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.55rem; font-size: 0.96rem; color: var(--fg-2); }
.rule-bad { border-top: 2px solid var(--bad); }
.rule-bad .rule-tag { color: var(--bad); }
.rule-bad li::marker { color: var(--bad); }
.rule-good { border-top: 2px solid var(--good); }
.rule-good .rule-tag { color: var(--good); }
.rule-good li::marker { color: var(--good); }

/* Asks ----------------------------------------------------------- */

.asks { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.ask {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--fg-2);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
}
.ask::before { content: "\201C"; color: var(--accent); }
.ask::after  { content: "\201D"; color: var(--accent); }

/* Footer --------------------------------------------------------- */

.foot { border-top: 1px solid var(--line); background: var(--panel); }
.foot-inner {
  max-width: 1280px; margin-inline: auto;
  padding: 2.25rem clamp(1.25rem, 5vw, 4rem);
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  justify-content: space-between; align-items: baseline;
}
.foot p { margin: 0; font-size: 0.9rem; color: var(--fg-3); }
.foot-meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; }

/* Toast ---------------------------------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: 1.5rem;
  transform: translate(-50%, 1rem);
  background: var(--fg); color: var(--ink);
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.65rem 1.1rem; border-radius: var(--r);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 85;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
