/* Layout: one timeline column; every section sits on the same faint time grid as the hero Gantt. */
/* Layout: one column on graph paper; every block is a sticker with an ink outline, like the mascot. */
:root {
  --paper: #fff6df;
  --surface: #ffffff;
  --ink: #1d1a33;
  --muted: #5d5873;
  --rule: #e6dcc1;
  --grid: #f1e6c8;
  --code-bg: #fffdf6;
  --edge: #1d1a33;
  --drop: #1d1a33;
  --run: #4f7cff;
  --done: #2ed18a;
  --wait: #ffb627;
  --pop: #ff5ea8;
  --queue: #cbbf9f;
  --accent: #3554e0;
  --font-display: "Lilita One", "Arial Rounded MT Bold", "Helvetica Neue", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --measure: 66ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17152a; --surface: #221f3a; --ink: #fff6df; --muted: #b9b3cf; --rule: #35304f;
    --grid: #1e1b34; --code-bg: #1c1932; --edge: #fff6df; --drop: #ff5ea8; --queue: #514a6b;
    --accent: #8ea4ff; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #17152a; --surface: #221f3a; --ink: #fff6df; --muted: #b9b3cf; --rule: #35304f;
  --grid: #1e1b34; --code-bg: #1c1932; --edge: #fff6df; --drop: #ff5ea8; --queue: #514a6b;
  --accent: #8ea4ff; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: var(--accent); }
code, pre, kbd { font-family: var(--font-mono); font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--paper);
}
header.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
header.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 800 20px/1 var(--font-display); font-stretch: 112%; letter-spacing: -0.01em;
}
.brand svg { display: block; }
nav.links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
nav.links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
nav.links a:hover { color: var(--ink); }
@media (max-width: 720px) { nav.links .opt { display: none; } }

/* hero */
.hero { padding-block: 64px 40px; display: grid; gap: 36px; }
.hero h1 {
  margin: 0; font: 800 clamp(40px, 7vw, 76px)/0.98 var(--font-display);
  font-stretch: 78%; letter-spacing: -0.02em; text-wrap: balance; max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--run); }
.lede { margin: 0; max-width: 58ch; font-size: 19px; color: var(--muted); text-wrap: pretty; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 8px;
  font: 600 15px/1 var(--font-body); text-decoration: none; border: 1px solid var(--rule);
  color: var(--ink); background: var(--surface); cursor: pointer;
}
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn small { font-weight: 400; color: var(--muted); }
.btn.primary small { color: color-mix(in srgb, var(--paper) 70%, transparent); }

/* the Gantt */
.chart {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  padding: 18px 18px 14px; overflow-x: auto;
}
.chart-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font: 500 13px/1.4 var(--font-mono); color: var(--muted); margin-bottom: 10px;
}
.chart-head .goal { color: var(--ink); }
.pill {
  display: inline-block; padding: 1px 9px; border-radius: 999px; font-weight: 600;
  color: var(--done); background: color-mix(in srgb, var(--done) 14%, transparent);
}
.gantt { display: block; width: 100%; min-width: 560px; height: auto; }
.gantt .grid { stroke: var(--grid); }
.gantt .tick { fill: var(--muted); font: 11px var(--font-mono); }
.gantt .label { fill: var(--ink); font: 13px var(--font-mono); }
.gantt .agent { fill: var(--muted); font: 12px var(--font-body); }
.gantt .dur { fill: #fff; font: 600 11px var(--font-mono); }
.gantt .bar { fill: var(--done); }
.gantt .queued { fill: var(--queue); opacity: 0.55; }
.gantt .dot { fill: var(--done); }
.gantt .dep { fill: none; stroke: var(--muted); stroke-width: 1.2; opacity: 0.6; }
.gantt .dep-head { fill: var(--muted); opacity: 0.7; }
.gantt .playhead { stroke: var(--run); stroke-width: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .gantt .playhead { animation: sweep 3.2s cubic-bezier(.4,0,.2,1) 0.3s 1 both; }
}
@keyframes sweep { from { transform: translateX(0); opacity: 1; } 90% { opacity: 1; } to { transform: translateX(var(--sweep)); opacity: 0; } }
.legend {
  display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--muted);
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 8px; border-radius: 2px; display: inline-block; }

/* facts */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-block: 1px solid var(--rule); margin-block: 8px 0;
}
.facts div { padding: 18px 16px 18px 0; min-width: 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.facts b { display: block; font: 700 15px/1.3 var(--font-display); font-stretch: 100%; }
.facts span { color: var(--muted); font-size: 14px; }
@media (max-width: 800px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* sections */
section.block { padding-block: 64px 8px; scroll-margin-top: 64px; }
.eyebrow {
  font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
h2 {
  margin: 0 0 14px; font: 800 clamp(28px, 4vw, 40px)/1.05 var(--font-display);
  font-stretch: 85%; letter-spacing: -0.015em; text-wrap: balance;
}
h3 { margin: 0 0 6px; font: 700 17px/1.3 var(--font-display); font-stretch: 100%; }
.intro { margin: 0 0 28px; max-width: var(--measure); color: var(--muted); }
p { max-width: var(--measure); }

/* how it works: a real sequence, so it's numbered */
ol.flow {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
}
ol.flow li { background: var(--surface); padding: 20px; min-width: 0; }
ol.flow .n { font: 500 12px var(--font-mono); color: var(--run); display: block; margin-bottom: 8px; }
ol.flow p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { ol.flow { grid-template-columns: 1fr; } }

/* get started */
.prereq { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 28px; }
.prereq th { text-align: left; font: 500 12px var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); }
.prereq td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table-scroll { overflow-x: auto; }
ol.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
ol.steps > li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
ol.steps .n {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 600 14px var(--font-mono); background: var(--ink); color: var(--paper);
}
ol.steps .body { min-width: 0; }
ol.steps p { margin: 4px 0 10px; color: var(--muted); font-size: 15px; }
.code {
  position: relative; background: var(--code-bg); border: 1px solid var(--rule);
  border-radius: 10px; min-width: 0;
}
.code pre {
  margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.65;
  padding-right: 76px;
}
.code .c { color: var(--muted); }
.copy {
  position: absolute; top: 8px; right: 8px; font: 500 12px var(--font-body); padding: 5px 10px;
  border-radius: 6px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  cursor: pointer;
}
.copy.ok { color: var(--done); border-color: var(--done); }
.trouble { margin-top: 30px; }
.trouble td:first-child { font-family: var(--font-mono); font-size: 13.5px; width: 42%; }

/* skills + safety */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.two > * { min-width: 0; }
.tools td:last-child { white-space: nowrap; }
.tag {
  font: 600 12px var(--font-mono); padding: 1px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted);
}
.tag.ask { background: color-mix(in srgb, var(--wait) 18%, transparent); color: color-mix(in srgb, var(--wait) 70%, var(--ink)); }
.tag.always { background: color-mix(in srgb, #d33a3a 16%, transparent); color: #c23636; }
ul.safety { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
ul.safety li { padding-left: 18px; position: relative; }
ul.safety li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--wait);
}
ul.safety b { font-weight: 600; }

/* stack */
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.stack span {
  border: 1px solid var(--rule); background: var(--surface); border-radius: 8px;
  padding: 6px 12px; font-size: 14px;
}
.stack small { color: var(--muted); font-family: var(--font-mono); font-size: 11.5px; margin-left: 6px; }

footer { margin-top: 72px; border-top: 1px solid var(--rule); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px 40px; color: var(--muted); font-size: 14px; }

/* ---- funky sticker theme ---- */
body {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 2px, transparent 2px), linear-gradient(90deg, var(--grid) 2px, transparent 2px);
  background-size: 48px 48px;
}
.brand { font: 400 26px/1 var(--font-display); letter-spacing: 0.5px; }
.brand img { width: 44px; height: auto; display: block; }
.brand .x { color: var(--pop); }
.hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; column-gap: 32px; }
.hero > .chart, .hero > .cta, .hero > .lede { grid-column: 1 / -1; }
.hero > .cta { margin-top: -8px; }
.hero h1 {
  font: 400 clamp(46px, 8vw, 92px)/0.95 var(--font-display); letter-spacing: 0.5px; max-width: 16ch;
  text-shadow: 5px 5px 0 var(--wait); transform: rotate(-2deg);
}
.hero h1 em { color: var(--pop); text-shadow: 5px 5px 0 var(--run); }
.mascot { width: 100%; max-width: 380px; justify-self: center; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .mascot { animation: bob 2.6s ease-in-out infinite; transform-origin: 60% 90%; }
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .mascot { max-width: 240px; order: -1; }
}
h2 { font: 400 clamp(32px, 4.6vw, 46px)/1.05 var(--font-display); letter-spacing: 0.4px; }
h3 { font: 400 20px/1.25 var(--font-display); letter-spacing: 0.3px; }
.facts b { font: 400 19px/1.25 var(--font-display); letter-spacing: 0.3px; }
.chart, .code, ol.flow li, .stack span, .btn, .facts {
  border: 3px solid var(--edge); box-shadow: 5px 5px 0 var(--drop);
}
.chart { border-radius: 18px; }
.code { border-radius: 14px; }
.facts { border-radius: 18px; background: var(--surface); margin-top: 18px; }
.facts div { padding: 18px; }
.facts div + div { border-left: 2px dashed var(--rule); }
@media (max-width: 800px) { .facts div:nth-child(n+3) { border-top: 2px dashed var(--rule); } .facts div:nth-child(3) { padding-left: 18px; } }
ol.flow { background: none; border: 0; gap: 18px; overflow: visible; }
ol.flow li { border-radius: 16px; }
ol.flow li:nth-child(3n+1) { transform: rotate(-0.8deg); }
ol.flow li:nth-child(3n+3) { transform: rotate(0.8deg); }
ol.flow .n { color: var(--pop); font-weight: 600; }
.btn { border-radius: 12px; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--drop); }
.btn.primary { background: var(--pop); color: #1d1a33; border-color: var(--edge); }
.btn.primary small { color: #1d1a33b0; }
ol.steps .n { background: var(--wait); color: #1d1a33; border: 3px solid var(--edge); width: 38px; height: 38px; font-weight: 600; }
.stack span { border-radius: 999px; }
.stack span:nth-child(4n+1) { background: color-mix(in srgb, var(--run) 22%, var(--surface)); }
.stack span:nth-child(4n+2) { background: color-mix(in srgb, var(--done) 22%, var(--surface)); }
.stack span:nth-child(4n+3) { background: color-mix(in srgb, var(--wait) 26%, var(--surface)); }
.stack span:nth-child(4n) { background: color-mix(in srgb, var(--pop) 20%, var(--surface)); }
.gantt .dur { fill: #1d1a33; }
.gantt .bar { stroke: var(--edge); stroke-width: 2.5; }
.eyebrow { color: var(--pop); font-weight: 600; }
.copy { border: 2px solid var(--edge); border-radius: 8px; font-weight: 600; }
footer { border-top: 3px solid var(--edge); background: var(--surface); }
footer img { width: 34px; vertical-align: middle; margin-right: 8px; }

@media (max-width: 520px) { nav.links .opt2 { display: none; } .hero h1 { max-width: none; } }
/* dark: a cream die-cut outline so the ink lines stay visible */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mascot, :root:not([data-theme="light"]) .brand img, :root:not([data-theme="light"]) footer img {
    filter: drop-shadow(2px 0 0 #fff6df) drop-shadow(-2px 0 0 #fff6df) drop-shadow(0 2px 0 #fff6df) drop-shadow(0 -2px 0 #fff6df);
  }
}
:root[data-theme="dark"] .mascot, :root[data-theme="dark"] .brand img, :root[data-theme="dark"] footer img {
  filter: drop-shadow(2px 0 0 #fff6df) drop-shadow(-2px 0 0 #fff6df) drop-shadow(0 2px 0 #fff6df) drop-shadow(0 -2px 0 #fff6df);
}
footer .wrap { align-items: center; }
.powered {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  border: 3px solid var(--edge); box-shadow: 3px 3px 0 var(--drop); background: var(--wait);
  color: #1d1a33; text-decoration: none; font-weight: 500; transform: rotate(-2deg);
}
.powered b { font: 400 16px/1 var(--font-display); letter-spacing: 0.3px; }
.powered:hover { transform: rotate(0deg) translate(-1px, -1px); box-shadow: 4px 4px 0 var(--drop); }

footer .foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
footer .foot-links a { color: var(--muted); }
/* comparison pages */
.page { padding-block: 56px 8px; display: grid; gap: 22px; }
.page h1 { margin: 0; font: 400 clamp(36px, 6vw, 64px)/1 var(--font-display); letter-spacing: 0.5px; text-shadow: 4px 4px 0 var(--wait); text-wrap: balance; max-width: 22ch; }
.page h1 em { font-style: normal; color: var(--pop); text-shadow: 4px 4px 0 var(--run); }
.page .lede { margin: 0; }
.verdict { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .verdict { grid-template-columns: minmax(0, 1fr); } }
.verdict > div { background: var(--surface); border: 3px solid var(--edge); box-shadow: 5px 5px 0 var(--drop); border-radius: 16px; padding: 18px 20px; min-width: 0; }
.verdict ul { margin: 8px 0 0; padding-left: 20px; }
.verdict li { margin-bottom: 6px; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.compare th { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare td:first-child { font-weight: 600; width: 24%; }
.box { background: var(--surface); border: 3px solid var(--edge); box-shadow: 5px 5px 0 var(--drop); border-radius: 16px; overflow-x: auto; }
.crumbs { font: 500 13px var(--font-mono); color: var(--muted); }
.crumbs a { color: var(--muted); }
.note { font-size: 14px; color: var(--muted); }
.prereq td code { white-space: nowrap; }

/* Screenshot tour */
.shots { display: grid; gap: 22px; }
.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  border: 2px solid var(--edge); box-shadow: 5px 5px 0 var(--drop); background: var(--surface);
}
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: var(--measure); }
.shot figcaption b { color: var(--ink); }
@media (min-width: 900px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shot:first-child, .shot:last-child:nth-child(even) { grid-column: 1 / -1; }
}

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 3px solid var(--edge); box-shadow: 4px 4px 0 var(--drop); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; padding: 10px 0; font: 700 17px/1.3 var(--font-display); }
.faq p { margin: 0 0 14px; color: var(--muted); max-width: none; }
ul.safety li > a { color: inherit; }
.page section { display: grid; gap: 14px; min-width: 0; }
.page section > * { margin-block: 0; }
