/* aictuallyhelp — site styles
   Light, clean, technical. Two accents: blue (action) and green (done). */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-sunk: #eef0f4;
  --ink: #0a0c10;
  --ink-2: #2b303b;
  --muted: #5f6776;
  --faint: #8b93a1;
  --line: #e5e8ee;
  --line-2: #d6dae2;
  --blue: #2257f5;
  --blue-2: #1742c9;
  --blue-soft: #eef2ff;
  --green: #0f9f6e;
  --green-soft: #e8f7f0;
  --amber: #b86e00;
  --amber-soft: #fff5e1;
  --pink: #d63d8f;
  --violet: #6d4aff;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(10, 12, 16, .04), 0 8px 24px -8px rgba(10, 12, 16, .10);
  --shadow-lg: 0 1px 2px rgba(10, 12, 16, .05), 0 24px 60px -20px rgba(20, 30, 70, .22);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: #cfdcff; }
code, kbd, pre, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--ink);
  letter-spacing: -.02em; white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 13px;
}
.logo .cursor { color: var(--blue); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 7px 9px; border-radius: 8px; white-space: nowrap;
}
@media (min-width: 761px) and (max-width: 1240px) { .logo .cursor { display: none; } .nav a { padding: 7px 7px; font-size: 13.5px; } }
.nav a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-sunk); }
.nav a.nav-cta { color: #fff; background: var(--ink); margin-left: 6px; }
.nav a.nav-cta:hover { background: #262b36; }
@media (max-width: 760px) {
  .topbar .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 8px; gap: 6px; }
  .nav { margin-left: 0; width: 100%; margin-right: -16px; padding-right: 16px; }
  .nav a { padding: 6px 10px; font-size: 14px; }
}

/* ---------- type ---------- */
h1, h2, h3, h4 { letter-spacing: -.025em; line-height: 1.15; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); font-weight: 750; letter-spacing: -.04em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 720; letter-spacing: -.035em; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.3rem); color: var(--muted); line-height: 1.55; max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
}
.label .n { color: var(--blue); }
.hl { background: linear-gradient(transparent 62%, #d9e3ff 62%); padding: 0 2px; }
.grad {
  background: linear-gradient(92deg, var(--blue) 0%, var(--violet) 55%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 40px; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }

.dotgrid {
  background-image: radial-gradient(circle at 1px 1px, #d9dde5 1px, transparent 0);
  background-size: 22px 22px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15.5px/1 var(--sans); letter-spacing: -.01em;
  padding: 14px 20px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .08s ease, background .15s, box-shadow .15s;
  white-space: nowrap; text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px -6px rgba(34,87,245,.6); }
.btn-primary:hover { background: var(--blue-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262b36; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 9px 13px; font-size: 14px; border-radius: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 13px/1 var(--mono); padding: 7px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-2); color: var(--ink-2);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.tag {
  display: inline-block; font: 600 11.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 7px; border-radius: 6px; background: var(--bg-sunk); color: var(--muted);
}
.tag.blue { background: var(--blue-soft); color: var(--blue-2); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
a.card { display: block; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { text-decoration: none; border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card .go { margin-top: 18px; font: 600 14px/1 var(--mono); color: var(--blue); }
.icon-box {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 16px; font-size: 19px;
}

/* ---------- code / prompt blocks ---------- */
.codebox {
  position: relative; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.codebox-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); background: #fff;
  font: 500 12.5px/1 var(--mono); color: var(--faint);
}
.codebox pre {
  margin: 0; padding: 16px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
}
.blank { color: var(--blue-2); background: var(--blue-soft); border-radius: 4px; padding: 0 3px; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: 600 12.5px/1 var(--mono); color: var(--ink-2);
  background: #fff; border: 1px solid var(--line-2); border-radius: 7px; padding: 7px 10px;
  transition: background .15s, color .15s, border-color .15s;
}
.copy:hover { background: var(--bg-soft); }
.copy.done { background: var(--green-soft); color: var(--green); border-color: #bfe8d6; }
kbd {
  font-size: 12px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2);
  border-bottom-width: 2px; background: #fff; color: var(--ink-2);
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, #d9dde5 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -2; width: 900px; height: 600px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(109,74,255,.13), transparent), radial-gradient(closest-side at 70% 60%, rgba(34,87,245,.12), transparent);
  filter: blur(10px);
}
.hero-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { margin: 20px 0 22px; }
.hero .lead { margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font: 500 13.5px/1 var(--mono); }
.hero-meta span::before { content: "✓ "; color: var(--green); }

/* ---------- chat window (demo) ---------- */
.window {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(#fff, #fafbfc);
}
.lights { display: flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #e3e6ec; display: block; }
.lights i:nth-child(1) { background: #ff6159; } .lights i:nth-child(2) { background: #ffbd2e; } .lights i:nth-child(3) { background: #28c941; }
.window-title { font: 500 12.5px/1 var(--mono); color: var(--faint); flex: 1; text-align: center; margin-right: 50px; }
.chat { padding: 20px; min-height: 380px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; line-height: 1.5; animation: pop .25s ease both; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink-2); }
.msg.ai .who { display: block; font: 600 11.5px/1 var(--mono); color: var(--faint); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .06em; }
.msg pre { margin: 8px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 12.5px; white-space: pre-wrap; }
.msg ul { margin: 6px 0 0; padding-left: 18px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font: 500 12px/1.3 var(--mono); color: var(--faint); }
.chat-dots { display: flex; gap: 6px; }
.chat-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line-2); cursor: pointer; }
.chat-dots button.on { background: var(--blue); width: 22px; border-radius: 99px; }

/* ---------- path picker ---------- */
.path .step-n { font: 600 12.5px/1 var(--mono); color: var(--blue); margin-bottom: 14px; display: block; }

/* ---------- hall of fame ---------- */
.fame { counter-reset: fame; }
.fame-card { display: flex; flex-direction: column; gap: 16px; }
.fame-card .quote {
  font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; color: var(--ink);
}
.fame-card .quote::before { content: "› "; color: var(--blue); font-family: var(--mono); }
.fame-card dl { margin: 0; display: grid; gap: 10px; font-size: 15px; }
.fame-card dt { font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin-bottom: 3px; }
.fame-card dd { margin: 0; color: var(--ink-2); }
.fame-card .foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- compare (bad vs good) ---------- */
.toggle { display: inline-flex; background: var(--bg-sunk); border-radius: 10px; padding: 4px; gap: 2px; }
.toggle button {
  font: 600 14px/1 var(--sans); border: 0; background: transparent; color: var(--muted);
  padding: 10px 14px; border-radius: 7px; cursor: pointer;
}
.toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.compare { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare .pane { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 20px; }
.compare .pane h4 { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 12px; }
.score { display: flex; align-items: center; gap: 10px; margin-top: 16px; font: 600 13px/1 var(--mono); }
.score .bar { flex: 1; height: 8px; background: var(--bg-sunk); border-radius: 99px; overflow: hidden; }
.score .bar i { display: block; height: 100%; border-radius: 99px; transition: width .5s cubic-bezier(.2,.8,.2,1); }

/* ---------- banner (in person) ---------- */
.banner {
  position: relative; overflow: hidden; border-radius: 24px; padding: 48px 28px;
  background: var(--ink); color: #fff;
}
.banner::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34,87,245,.55), transparent);
}
.banner h2 { color: #fff; max-width: 16em; }
.banner p { color: #b9c0cd; max-width: 34em; font-size: 1.1rem; }
.banner .btn-ghost { background: transparent; color: #fff; border-color: #3a404d; }
.banner .btn-ghost:hover { background: #1b1f28; }
.banner > * { position: relative; z-index: 1; }
@media (min-width: 720px) { .banner { padding: 64px 56px; } }

/* ---------- page header ---------- */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, #dde1e8 1px, transparent 0); background-size: 22px 22px;
  mask-image: linear-gradient(#000, transparent); -webkit-mask-image: linear-gradient(#000, transparent);
}
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin: 16px 0 16px; }
.page-head .lead { margin: 0; }

/* ---------- start steps ---------- */
.progress-wrap { position: sticky; top: 60px; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .progress-wrap { top: 88px; } }
.progress-wrap .wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; font: 600 13px/1 var(--mono); }
.progress { flex: 1; height: 8px; background: var(--bg-sunk); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 99px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.steps { display: grid; gap: 20px; padding: 40px 0 80px; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
  transition: border-color .2s, background .2s;
  scroll-margin-top: 130px;
}
@media (max-width: 600px) { .step { grid-template-columns: 1fr; padding: 20px; gap: 12px; } }
.step.done { border-color: #bfe8d6; background: linear-gradient(#fff, #fbfefd); }
.step-num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font: 700 16px/1 var(--mono); background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink);
}
.step.done .step-num { background: var(--green); border-color: var(--green); color: #fff; font-size: 0; }
.step.done .step-num::after { content: "✓"; font-size: 20px; }
.step h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-bottom: 8px; }
.step .body > p { color: var(--ink-2); }
.step ol.howto { margin: 16px 0; padding: 0; list-style: none; counter-reset: h; display: grid; gap: 10px; }
.step ol.howto li { counter-increment: h; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.step ol.howto li::before {
  content: counter(h); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font: 600 12px/1 var(--mono); background: var(--blue-soft); color: var(--blue-2); margin-top: 2px;
}
.check {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; cursor: pointer; user-select: none;
  font-weight: 600; font-size: 15px; padding: 10px 14px 10px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff;
}
.check input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; cursor: pointer; }
.check:has(input:checked) { background: var(--green-soft); border-color: #bfe8d6; color: var(--green); }
.tip {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); margin: 16px 0 0;
  background: var(--blue-soft); color: #1b2d6b; font-size: 15px;
}
.tip.warn { background: var(--amber-soft); color: #5c3a00; }
.tip.good { background: var(--green-soft); color: #0b5a3f; }
.tip b { white-space: nowrap; }
.tip p { margin: 0; }

.fakeform { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); padding: 16px; display: grid; gap: 10px; margin-top: 12px; }
.fakefield { background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px; }
.fakefield small { display: block; font: 500 11.5px/1.4 var(--mono); color: var(--faint); }
.fakefield span { font-size: 15px; }

.tool-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: 16px; }
.tool { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; color: inherit; display: block; }
.tool:hover { border-color: var(--blue); text-decoration: none; }
.tool b { display: block; font-size: 16px; }
.tool span { font: 500 12.5px/1.4 var(--mono); color: var(--muted); }

.field { display: grid; gap: 6px; }
.field label { font: 600 12.5px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
input[type="text"], input[type="search"], input[type="email"], textarea, select {
  font: 16px/1.4 var(--sans); color: var(--ink);
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(34,87,245,.12); }
textarea { resize: vertical; min-height: 110px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.suggest button { font: 500 14px/1 var(--mono); padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; color: var(--ink-2); }
.suggest button:hover { border-color: var(--blue); color: var(--blue); }

.celebrate { display: none; text-align: center; padding: 40px 24px; border-radius: var(--radius-lg); background: var(--green-soft); border: 1px solid #bfe8d6; }
.celebrate.show { display: block; animation: pop .3s ease both; }
.celebrate h2 { color: #0b5a3f; margin-bottom: 8px; }

/* ---------- prompts library ---------- */
.toolbar { position: sticky; top: 60px; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 14px 0; }
@media (max-width: 760px) { .toolbar { top: 88px; } }
.toolbar .wrap { display: grid; gap: 12px; }
.search { position: relative; }
.search input { padding-left: 40px; padding-right: 44px; }
.search::before { content: "⌕"; position: absolute; left: 14px; top: 50%; transform: translateY(-52%); font-size: 20px; color: var(--faint); }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  font: 500 14px/1 var(--sans); white-space: nowrap; cursor: pointer;
  padding: 9px 13px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
}
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters button .ct { font: 500 11.5px/1 var(--mono); color: var(--faint); margin-left: 4px; }
.filters button.on .ct { color: #9aa3b2; }
.prompt-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); padding: 28px 0 72px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.pcard .top { padding: 18px 18px 12px; display: grid; gap: 8px; }
.pcard .top .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pcard h3 { font-size: 1.05rem; }
.pcard pre { margin: 0 18px; padding: 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; font: 14px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; color: var(--ink-2); }
.pcard .when { padding: 12px 18px 0; font-size: 14.5px; color: var(--muted); }
.pcard .act { padding: 14px 18px 18px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcard .fame-star { color: var(--amber); }
.empty { text-align: center; padding: 64px 0; color: var(--muted); grid-column: 1 / -1; }

.builder { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .builder { grid-template-columns: 1fr 1fr; } }
.builder .form { display: grid; gap: 14px; align-content: start; }

/* ---------- lab ---------- */
.lab-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.lab-nav a { font: 500 13.5px/1 var(--mono); padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); }
.lab-nav a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.demo { padding: 80px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 60px; }
.demo:nth-of-type(even) { background: var(--bg-soft); }
.demo-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 32px; }
.demo-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.explain { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-bottom: 28px; }
.explain .card { padding: 20px; box-shadow: none; }
.explain .card h3 { font-size: 1rem; }
.explain .card p { font-size: 15px; }

.md-app { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .md-app { grid-template-columns: 1fr 1fr; } }
.md-app .pane-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 500 12.5px/1 var(--mono); color: var(--faint); background: #fafbfc; min-height: 48px; }
.md-app textarea { border: 0; border-radius: 0; min-height: 420px; font: 14.5px/1.65 var(--mono); padding: 16px; background: #fff; resize: vertical; box-shadow: none !important; }
.md-app .left { border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
@media (min-width: 900px) { .md-app .left { border-bottom: 0; border-right: 1px solid var(--line); } }
.md-app .left textarea { flex: 1; }
.md-tools { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.md-tools button { font: 500 12.5px/1 var(--mono); padding: 7px 9px; border-radius: 6px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; color: var(--ink-2); }
.md-tools button:hover { border-color: var(--blue); color: var(--blue); }
.rendered { padding: 20px 24px; font-size: 16px; overflow-wrap: anywhere; }
.rendered h1 { font-size: 1.8rem; margin: .2em 0 .5em; letter-spacing: -.03em; }
.rendered h2 { font-size: 1.35rem; margin: 1.1em 0 .45em; }
.rendered h3 { font-size: 1.1rem; margin: 1em 0 .4em; }
.rendered ul, .rendered ol { padding-left: 22px; margin: 0 0 1em; }
.rendered li { margin: 3px 0; }
.rendered li.task { list-style: none; margin-left: -22px; }
.rendered li.task input { margin-right: 8px; accent-color: var(--green); }
.rendered code { background: var(--bg-sunk); padding: 1px 5px; border-radius: 5px; font-size: .88em; }
.rendered pre { background: var(--bg-soft); border: 1px solid var(--line); padding: 12px; border-radius: 8px; white-space: pre-wrap; font-size: 13.5px; }
.rendered pre code { background: none; padding: 0; }
.rendered blockquote { margin: 0 0 1em; padding: 4px 14px; border-left: 3px solid var(--blue); color: var(--muted); }
.rendered hr { border: 0; border-top: 1px solid var(--line); margin: 1.4em 0; }

.decoder { display: grid; gap: 10px; }
.decoder .row2 { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 10px; align-items: center; }
.decoder .row2 > div { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; min-height: 44px; }
.decoder .row2 > div:first-child { font-family: var(--mono); background: var(--bg-soft); }
.decoder .row2 > span { text-align: center; color: var(--faint); }

/* file explorer */
.fx { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
@media (min-width: 860px) { .fx { grid-template-columns: 320px 1fr; } }
.fx-side { border-bottom: 1px solid var(--line); background: #fafbfc; }
@media (min-width: 860px) { .fx-side { border-bottom: 0; border-right: 1px solid var(--line); } }
.fx-tree { list-style: none; margin: 0; padding: 8px; font: 14px/1.4 var(--mono); max-height: 460px; overflow: auto; }
.fx-tree ul { list-style: none; margin: 0; padding-left: 16px; border-left: 1px dashed var(--line-2); margin-left: 11px; }
.fx-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; cursor: pointer; color: var(--ink-2); animation: pop .25s ease both; }
.fx-item:hover { background: var(--bg-sunk); }
.fx-item.sel { background: var(--blue-soft); color: var(--blue-2); }
.fx-item .ic { width: 18px; text-align: center; }
.fx-main { display: flex; flex-direction: column; min-height: 420px; }
.fx-path { padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 13px/1.4 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.fx-path b { color: var(--ink); }
.fx-body { padding: 18px 20px; flex: 1; }
.fx-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); background: #fafbfc; }
.fx-actions input { flex: 1; min-width: 160px; padding: 9px 12px; font-size: 15px; }
.fx-empty { color: var(--faint); font-size: 15px; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.fx-tile { text-align: center; padding: 14px 8px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font: 13px/1.3 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; background: none; }
.fx-tile:hover { background: var(--bg-soft); border-color: var(--line); }
.fx-tile .big { font-size: 34px; display: block; margin-bottom: 6px; }

/* pipeline (handoff demo) */
.pipe { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .pipe { grid-template-columns: 1fr 1fr 1fr; } }
.stage { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; display: flex; flex-direction: column; min-height: 360px; overflow: hidden; transition: opacity .3s, border-color .3s, box-shadow .3s; }
.stage.idle { opacity: .45; }
.stage.active { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(34,87,245,.1); }
.stage-h { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font: 600 13px/1.2 var(--mono); }
.stage-h .n { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; flex: none; }
.stage-b { padding: 14px; font-size: 14.5px; flex: 1; overflow: auto; }
.stage-b pre { margin: 0; font: 13px/1.6 var(--mono); white-space: pre-wrap; color: var(--ink-2); }
.stage iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.pipe-ctrl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.scenario-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.scenario-pick button { font: 500 14px/1 var(--sans); padding: 10px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; color: var(--ink-2); }
.scenario-pick button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* missing demo */
.missing-list { display: grid; gap: 10px; margin-top: 12px; }
.missing-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; animation: pop .3s ease both; font-size: 15px; }
.missing-item .ic { width: 24px; height: 24px; border-radius: 50%; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; font: 700 13px/1 var(--mono); }
.missing-item b { display: block; }
.missing-item span { color: var(--muted); }

/* ---------- cheat sheets (paper) ---------- */
.sheet-index { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.sheets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 96px; }
.sheet-wrap { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 860px; scroll-margin-top: 80px; }
.sheet-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sheet {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 30px 60px -30px rgba(20,30,70,.25);
  padding: clamp(22px, 5vw, 56px); max-width: 860px; width: 100%;
  font-size: 15.5px; color: var(--ink-2);
}
.sheet header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 22px; }
.sheet header h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.sheet header .src { font: 600 11.5px/1.4 var(--mono); color: var(--faint); text-align: right; }
.sheet h3 { font-size: 1rem; margin: 18px 0 8px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--ink); }
.sheet h3:first-of-type { margin-top: 0; }
.sheet .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.sheet ul, .sheet ol { margin: 0 0 8px; padding-left: 20px; }
.sheet li { margin: 5px 0; }
.sheet .pline { font: 13.5px/1.5 var(--mono); background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 6px; padding: 8px 10px; margin: 0 0 8px; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sheet td, .sheet th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet th { font: 700 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.sheet td code { background: var(--bg-sunk); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.fill { border-bottom: 1.5px solid var(--ink-2); height: 34px; margin: 4px 0 14px; }
.fill-label { font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sheet footer { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); font: 500 12px/1.4 var(--mono); color: var(--faint); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.dos > div { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.dos .yes { border-top: 4px solid var(--green); }
.dos .no { border-top: 4px solid #e5484d; }

/* flyer */
.flyer { text-align: center; }
.flyer .big { font-size: clamp(2.6rem, 8vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--ink); margin: 18px 0; }
.flyer .sub { font-size: 1.25rem; color: var(--ink-2); max-width: 30em; margin: 0 auto 26px; }
.flyer .learn { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); text-align: left; margin: 0 auto 28px; max-width: 640px; }
.flyer .learn div { border: 1.5px solid var(--ink); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.flyer .when { display: grid; gap: 4px 18px; grid-template-columns: auto 1fr; text-align: left; max-width: 520px; margin: 0 auto; align-items: end; }
.flyer .when .fill { margin: 0; }
.flyer .when .fill-label { padding-bottom: 8px; font-size: 14px; }

/* ---------- workshop ---------- */
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 8px; }
.tl { position: relative; padding: 0 0 28px 28px; }
.tl::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.tl .t { font: 600 13px/1 var(--mono); color: var(--blue); }
.tl h3 { margin: 6px 0 4px; }
.tl p { margin: 0; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--faint); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 46em; }
.stat-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; }
.stat b { display: block; font-size: 2.2rem; letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; background: var(--bg-soft); }
.footer .wrap { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); font-size: 15px; }
.footer p { color: var(--muted); font-size: 15px; max-width: 26em; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; font: 600 14px/1 var(--mono);
  box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--r)); } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- print ---------- */
@media print {
  @page { size: letter; margin: 0.5in; }
  body { font-size: 12pt; background: #fff; }
  .topbar, .footer, .page-head, .no-print, .sheet-bar, .toast, .progress-wrap, .toolbar { display: none !important; }
  .section, .sheets { padding: 0 !important; }
  .wrap { max-width: none; padding: 0; }
  .sheet { box-shadow: none; border: 0; padding: 0; max-width: none; break-after: page; }
  .sheet-wrap { break-after: page; }
  .sheet-wrap:last-child, .sheet-wrap:last-child .sheet { break-after: auto; }
  body.print-one .sheet-wrap { display: none; }
  body.print-one .sheet-wrap.printing { display: grid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { color: inherit; }
}

/* ---------- use-case prompt cards ---------- */
.ucard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 140px; transition: border-color .15s, box-shadow .15s; }
.ucard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.uc-use { display: grid; gap: 6px; }
.uc-k { font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.ucard h3 { font-size: 1.08rem; }
.ucard h3::after { content: " →"; color: var(--blue); font-family: var(--mono); font-weight: 500; }
.ucard .codebox { flex: 1; display: flex; flex-direction: column; }
.ucard .codebox pre { font-size: 14px; flex: 1; }
.uc-tip { margin: 0; font-size: 14px; color: var(--muted); padding-left: 22px; position: relative; }
.uc-tip::before { content: "💡"; position: absolute; left: 0; top: 0; font-size: 13px; }

/* ---------- flip book ---------- */
.flip { position: relative; }
.flip-stack { position: relative; perspective: 1400px; }
.flip-stack::before, .flip-stack::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -10px; height: 40px; z-index: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.flip-stack::after { left: 28px; right: 28px; bottom: -20px; opacity: .7; z-index: -1; }
.flip-card {
  position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px; min-height: 360px; display: flex; flex-direction: column; gap: 14px;
  transform-origin: 50% 50%; backface-visibility: hidden;
}
.flip-card.flip-out { transition: transform .26s ease-in, opacity .26s ease-in; transform: rotateX(80deg) translateY(-10px); opacity: 0; }
.flip-card.flip-out-back { transition: transform .26s ease-in, opacity .26s ease-in; transform: rotateX(-80deg) translateY(10px); opacity: 0; }
.flip-card.flip-in { animation: flipIn .28s ease-out both; }
.flip-card.flip-in-back { animation: flipInBack .28s ease-out both; }
@keyframes flipIn { from { transform: rotateX(-80deg) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flipInBack { from { transform: rotateX(80deg) translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
.flip-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.flip-use { font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -.03em; }
.flip-use::after { content: " →"; color: var(--blue); font-family: var(--mono); font-weight: 500; }
.flip-card .codebox { flex: 1; display: flex; flex-direction: column; }
.flip-card .codebox pre { font-size: 15.5px; flex: 1; }
.flip-card .copy { padding: 9px 14px; font-size: 13.5px; background: var(--ink); color: #fff; border-color: var(--ink); }
.flip-card .copy:hover { background: #262b36; }
.flip-card .copy.done { background: var(--green); border-color: var(--green); color: #fff; }
.flip-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 34px; font: 600 13px/1 var(--mono); color: var(--muted); }
.flip-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 16px; color: var(--ink-2); display: grid; place-items: center; flex: none; }
.flip-btn:hover { border-color: var(--blue); color: var(--blue); }
.flip-btn[data-a="pause"] { font-size: 11px; }
.flip-timer { flex: 1; height: 4px; border-radius: 99px; background: var(--bg-sunk); overflow: hidden; }
.flip-timer i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 99px; }
.flip-count { min-width: 64px; }

.how3 { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font: 500 13.5px/1.3 var(--mono); color: var(--muted); }
.how3 b { color: var(--blue); }

/* ---------- concepts & sources ---------- */
.concept { display: flex; flex-direction: column; gap: 12px; }
.concept h3 { font-size: 1.15rem; }
.concept p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.concept .codebox pre { font-size: 13.5px; }
.source { display: flex; flex-direction: column; gap: 10px; }
.source .meta { font: 500 12.5px/1.4 var(--mono); color: var(--faint); }
.source h3 a { color: var(--ink); }
.source h3 a::after { content: " ↗"; color: var(--blue); font-size: .85em; }
.source p { margin: 0; color: var(--muted); font-size: 15px; }
.source .codebox pre { font-size: 13.5px; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; line-height: 1.25; } }

/* ---------- website page ---------- */
.flow { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 980px) { .flow { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; } }
.flow-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: grid; gap: 6px; align-content: start; }
.flow-step b { font-size: 1.1rem; }
.flow-step span:last-child { color: var(--muted); font-size: 15px; }
.flow-ic { font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 6px; }
.flow-arrow { display: grid; place-items: center; color: var(--blue); font: 600 20px/1 var(--mono); }
@media (max-width: 979px) { .flow-arrow { transform: rotate(90deg); } }
table.dns { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 360px; }
table.dns th, table.dns td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.dns th { font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); background: #fff; }
table.dns tr:last-child td { border-bottom: 0; }
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 22px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-strip b { font-size: 1.15rem; letter-spacing: -.02em; }
.cta-strip p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.step > .body { min-width: 0; }
@media (max-width: 600px) { .step { grid-template-columns: minmax(0, 1fr); } }

/* ---------- agent demo ---------- */
.agent-top { max-width: 900px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.agent-win { max-width: 900px; }
.agent-goal { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 600; color: var(--ink); display: flex; gap: 10px; align-items: baseline; }
.agent-body { padding: 16px 18px; min-height: 360px; max-height: 520px; overflow: auto; display: grid; gap: 8px; align-content: start; font-size: 14.5px; }
.agent-idle { color: var(--muted); margin: 8px 0; }
.aline { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; animation: pop .25s ease both; }
.aline .ak { font: 700 11px/1.6 var(--mono); letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; text-align: center; background: var(--bg-sunk); color: var(--muted); }
.aline .at { color: var(--ink-2); }
.aline.ak-think .ak { background: var(--blue-soft); color: var(--blue-2); }
.aline.ak-tool .ak { background: #f1ecff; color: var(--violet); }
.aline.ak-tool .at { font-family: var(--mono); font-size: 13.5px; }
.aline.ak-result .ak { background: var(--bg-sunk); color: var(--muted); }
.aline.ak-result .at { color: var(--muted); }
.aline.ak-check .ak, .aline.ak-answer .ak { background: var(--green-soft); color: var(--green); }
@media (max-width: 600px) { .aline { grid-template-columns: 1fr; gap: 4px; } .aline .ak { justify-self: start; } }
.lanes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: 4px 0; animation: pop .25s ease both; }
.lane { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fafbfc; display: grid; gap: 6px; align-content: start; transition: border-color .3s; }
.lane.done { border-color: #bfe8d6; }
.lane-h { font: 700 12px/1.3 var(--mono); color: var(--violet); }
.lane-b { display: grid; gap: 4px; min-height: 60px; }
.lstep { font: 12.5px/1.4 var(--mono); color: var(--muted); animation: pop .25s ease both; }
.lstep.found { color: var(--green); font-weight: 600; }
.lane-bar { height: 4px; border-radius: 99px; background: var(--bg-sunk); overflow: hidden; }
.lane-bar i { display: block; height: 100%; width: 0; background: var(--violet); transition: width .5s ease; }
.lane.done .lane-bar i { background: var(--green); }
.afinal { margin-top: 6px; border: 1px solid #bfe8d6; background: var(--green-soft); border-radius: 12px; padding: 14px 16px; animation: pop .3s ease both; }
.afinal ol { margin: 8px 0; padding-left: 20px; display: grid; gap: 6px; }
.afinal span { color: var(--muted); font-size: 14px; }
.afinal small { color: #0b5a3f; }
.agent-note { max-width: 900px; margin: 16px 0 0; color: var(--ink-2); }

/* ---------- words page ---------- */
.word { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 150px; }
.word h3 { font-size: 1.12rem; }
.word .what { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.word .hist { margin: 0; font-size: 13.5px; color: var(--muted); border-left: 3px solid var(--amber); padding: 2px 0 2px 10px; }
.word .hist::before { content: "HISTORY · "; font: 700 11px/1 var(--mono); color: var(--amber); letter-spacing: .05em; }
.word .codebox pre { font-size: 13.5px; }
.pro { display: flex; flex-direction: column; gap: 12px; }
.pro .who { font: 600 12px/1.4 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.pro p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.pro .codebox pre { font-size: 13.5px; }
.src-list { columns: 2 320px; column-gap: 32px; padding-left: 20px; margin: 0; }
.src-list li { break-inside: avoid; margin: 0 0 10px; font-size: 15px; color: var(--muted); }
