/* AI Tool Consultant: shared design system.
   One stylesheet for every page. Edit tokens here, not per page. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #fbfbf9;
  --ink: #0d1117;
  --ink-2: #262c36;
  --muted: #586271;
  --faint: #8a93a0;
  --line: #e2e2dc;
  --line-2: #d1d1ca;
  --navy: #0e1626;
  --navy-2: #1b2539;
  --accent: #16794f;
  --accent-bright: #2bbf7e;
  --blue: #2e6bff;
  --amber: #b45309;
  --term-bg: #0b1220;
  --term-text: #d7e0ea;
  --term-dim: #7c8798;
  --term-green: #4ade80;
  --term-amber: #fbbf24;
  --term-blue: #7ab8ff;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --frame: 1240px;
  --pad-x: 64px;
  --shadow: 0 1px 2px rgba(13, 17, 23, .04), 0 8px 24px rgba(13, 17, 23, .06);
  --shadow-lg: 0 2px 4px rgba(13, 17, 23, .05), 0 18px 48px rgba(13, 17, 23, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 16.5px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: #cdeedd; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.03; letter-spacing: -0.042em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.8rem); line-height: 1.08; letter-spacing: -0.032em; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.hl { color: var(--accent); }
code, kbd { font-family: var(--mono); font-size: .88em; background: #eeeee8; border: 1px solid var(--line); border-radius: 6px; padding: .08em .38em; color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 10px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 3px rgba(43, 191, 126, .18); }

/* ---------- layout ---------- */
.frame { max-width: var(--frame); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--bg); }
.section { border-top: 1px solid var(--line); padding: 96px var(--pad-x); position: relative; }
.section.tight { padding-top: 64px; padding-bottom: 64px; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 52px; }
.section-head h2 { margin: 18px 0 14px; }
.section-head .lead { margin: 0 auto; max-width: 640px; }
.wrap { max-width: 1000px; margin: 0 auto; }
.wrap-narrow { max-width: 760px; margin: 0 auto; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 246, 243, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: var(--frame); margin: 0 auto; padding: 0 28px; height: 66px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(13, 17, 23, .05); }
.nav .btn { margin-left: 8px; padding: 10px 13px; font-size: 12.5px; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--navy-2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 42px; height: 38px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 13.5px/1 var(--mono); letter-spacing: .01em; text-decoration: none; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 6px 16px rgba(14, 22, 38, .18); }
.btn-primary:hover { background: var(--navy-2); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-sm { padding: 10px 13px; font-size: 12.5px; }
.btn.is-soon { background: var(--surface-2); color: var(--muted); border-color: var(--line-2); box-shadow: none; cursor: default; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); }
.badge.free { color: var(--accent); border-color: rgba(22, 121, 79, .35); background: #eef8f2; }
.badge.pack { color: var(--c, var(--ink-2)); border-color: color-mix(in srgb, var(--c, #999) 35%, transparent); background: color-mix(in srgb, var(--c, #999) 7%, #fff); }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; padding: 88px var(--pad-x) 80px; border-top: 0; }
.hero h1 { margin: 22px 0 22px; }
.hero .lead { max-width: 560px; margin-bottom: 30px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* terminal */
.terminal { background: var(--term-bg); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid #1d2638; }
.terminal-top { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #1d2638; background: #0e1626; }
.terminal-top i { width: 10px; height: 10px; border-radius: 50%; background: #2a3448; }
.terminal-top i:nth-child(1) { background: #f87171; }
.terminal-top i:nth-child(2) { background: #fbbf24; }
.terminal-top i:nth-child(3) { background: #4ade80; }
.terminal-top span { margin-left: 8px; font: 600 11.5px/1 var(--mono); color: var(--term-dim); letter-spacing: .06em; }
.terminal-body { padding: 20px 20px 22px; font: 500 13.2px/1.75 var(--mono); color: var(--term-text); min-height: 300px; }
.t-line { white-space: pre-wrap; word-break: break-word; }
.t-dim { color: var(--term-dim); }
.t-ok { color: var(--term-green); }
.t-warn { color: var(--term-amber); }
.t-blue { color: var(--term-blue); }
.t-cmd::before { content: "$ "; color: var(--term-green); }
.js [data-typed] .t-line { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.js [data-typed] .t-line.on { opacity: 1; transform: none; }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--term-green); vertical-align: -2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- works-with strip / marquee ---------- */
.strip { padding: 34px var(--pad-x); text-align: center; }
.strip p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.works { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; font: 700 14px/1 var(--mono); color: var(--ink); }
.works span { opacity: .82; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { text-decoration: none; font: 600 12.5px/1 var(--mono); padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); white-space: nowrap; }
.marquee a:hover { border-color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 28px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(2.2rem, 4.2vw, 3.3rem); line-height: 1; letter-spacing: -0.045em; color: var(--ink); font-weight: 700; }
.stat span { display: block; margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* ---------- cells (bordered grids) ---------- */
.cells { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.cells.c3 { grid-template-columns: repeat(3, 1fr); }
.cells.c2 { grid-template-columns: repeat(2, 1fr); }
.cell { padding: 30px 28px; border-left: 1px solid var(--line); }
.cell:first-child { border-left: 0; }
.cell .idx { font: 700 12px/1 var(--mono); color: var(--accent); letter-spacing: .08em; margin-bottom: 18px; display: block; }
.cell h3 { margin-bottom: 10px; font-size: 1.22rem; }
.cell p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------- pack cards ---------- */
.packs { display: grid; gap: 16px; max-width: 960px; margin: 0 auto; }
.pack-card { display: grid; grid-template-columns: minmax(0, 1fr) 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.pack-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.pack-body { padding: 28px 30px; }
.pack-body h3 { font-size: 1.45rem; letter-spacing: -0.025em; margin: 14px 0 8px; }
.pack-body p { color: var(--muted); margin: 0 0 16px; font-size: 15.5px; }
.pack-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font: 600 12.5px/1 var(--mono); color: var(--ink-2); }
.pack-meta .go { margin-left: auto; color: var(--ink); }
.pack-side { background: var(--navy); color: #fff; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.pack-side::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 70%, transparent), transparent 70%); opacity: .55; }
.pack-side .count { font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.pack-side .price { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.04em; position: relative; z-index: 1; }
.pack-side .price small { font-size: .82rem; font-weight: 500; color: rgba(255, 255, 255, .62); letter-spacing: 0; margin-left: 4px; }
.pack-side svg { width: 34px; height: 34px; position: relative; z-index: 1; }

/* ---------- skill cards ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.skill-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; min-height: 210px; }
.skill-card:hover { border-color: var(--c, var(--ink)); transform: translateY(-2px); box-shadow: var(--shadow); }
.skill-card h3 { font-size: 1.06rem; margin: 14px 0 8px; }
.skill-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; line-height: 1.5; }
.skill-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font: 600 11.5px/1.3 var(--mono); color: var(--faint); gap: 10px; }
.skill-card .foot .go { color: var(--ink); white-space: nowrap; }
.skill-card[hidden] { display: none; }

/* ---------- catalog controls ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 12.5px/1 var(--mono); padding: 10px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.search { flex: 0 1 300px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 0 12px; }
.search input { border: 0; outline: 0; background: transparent; font: 15px var(--font); padding: 11px 0; width: 100%; color: var(--ink); }
.result-count { font: 600 12.5px/1 var(--mono); color: var(--muted); margin: 0 0 14px; }

/* ---------- steps / code ---------- */
.steps { counter-reset: step; }
.step { padding: 30px 28px; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step .n { font: 700 12px/1 var(--mono); color: var(--muted); letter-spacing: .1em; }
.step h3 { margin: 14px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.code { position: relative; background: var(--term-bg); color: var(--term-text); border-radius: 12px; padding: 18px 20px; font: 500 13px/1.75 var(--mono); overflow-x: auto; border: 1px solid #1d2638; white-space: pre; }
.code[data-copy] { padding-right: 84px; }
.code .c { color: var(--term-dim); }
.code .g { color: var(--term-green); }
.copy { position: absolute; top: 10px; right: 10px; font: 700 11px/1 var(--mono); color: var(--term-text); background: #1b2539; border: 1px solid #2a3550; border-radius: 6px; padding: 7px 9px; cursor: pointer; }
.copy:hover { background: #24304a; }
.tree { white-space: pre; }

/* ---------- profile ---------- */
.profile { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: center; max-width: 920px; margin: 0 auto; }
.profile img { width: 200px; height: 200px; border-radius: 18px; object-fit: cover; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.profile h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 14px 0 14px; }
.profile p { color: var(--muted); }
.link-row { display: flex; gap: 16px; flex-wrap: wrap; font: 700 13px/1 var(--mono); }
.link-row a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.link-row a:hover { border-color: var(--ink); }

/* ---------- note cards ---------- */
.note-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; text-decoration: none; transition: border-color .15s, transform .15s; }
.note-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.note-card > .eyebrow { align-self: flex-start; }
.note-card h3 { font-size: 1.12rem; }
.note-card p { margin: 0; color: var(--muted); font-size: 15px; }
.note-card .go { margin-top: auto; font: 700 12.5px/1 var(--mono); color: var(--ink); padding-top: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 620; color: var(--ink); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 500 22px/1 var(--mono); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 720px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 88px var(--pad-x); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 240px at 20% 0%, rgba(43, 191, 126, .22), transparent 70%), radial-gradient(600px 260px at 85% 100%, rgba(46, 107, 255, .22), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin: 16px 0 14px; }
.cta-band p { color: rgba(255, 255, 255, .72); max-width: 600px; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .eyebrow { background: transparent; color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .25); }

/* ---------- page heads, breadcrumbs, price box ---------- */
.page-head { padding: 72px var(--pad-x) 56px; border-top: 0; }
.crumbs { font: 600 12.5px/1 var(--mono); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.product-head { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.product-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin: 18px 0 18px; }
.price-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.price-box .amount { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.045em; color: var(--ink); line-height: 1; }
.price-box .amount small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.price-box ul { list-style: none; padding: 0; margin: 20px 0; font-size: 14.5px; color: var(--ink-2); }
.price-box li { padding: 7px 0 7px 24px; position: relative; border-top: 1px solid var(--line); }
.price-box li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.price-box .btn { width: 100%; }
.price-box .fine { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.receipts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.receipts li { position: relative; padding: 14px 16px 14px 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; color: var(--ink-2); }
.receipts li::before { content: "↳"; position: absolute; left: 16px; top: 13px; font: 700 15px/1.4 var(--mono); color: var(--accent); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 20px; font-size: 15px; }
.kv dt { font: 600 12.5px/1.6 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kv dd { margin: 0; color: var(--ink-2); }
.prompt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt-list span { font: 500 13px/1 var(--mono); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; color: var(--ink-2); }

/* ---------- prose (field notes, legal) ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 56px; max-width: 1080px; margin: 0 auto; }
.prose { max-width: 720px; font-size: 17px; line-height: 1.72; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.2em 0 .6em; letter-spacing: -0.025em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.18rem; margin: 1.8em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li + li { margin-top: .35em; }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 1.14rem; color: var(--ink-2); border-left: 3px solid var(--accent-bright); padding-left: 18px; }
.prose .dek { font-size: 1.12rem; color: var(--muted); }
.prose .callout, .prose .checklist, .prose .source-card, .prose .panel, .prose .bottom-cta { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin: 1.6em 0; }
.prose .callout { border-left: 3px solid var(--accent-bright); }
.prose .callout strong:first-child { display: block; font: 700 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 8px; }
.prose .terminal { padding: 18px 20px; margin: 1.6em 0; font: 500 13.5px/1.7 var(--mono); color: var(--term-text); }
.prose .terminal .cmd { color: var(--term-green); }
.prose .terminal .out { color: var(--term-text); }
.prose .terminal .ok { color: var(--term-green); }
.prose .terminal .warn { color: var(--term-amber); }
.prose .terminal .blue, .prose .terminal .danger { color: var(--term-blue); }
.prose .cmd { font-family: var(--mono); color: var(--accent); }
.prose .terminal .cmd { color: var(--term-green); }
.prose .tool-grid, .prose .pattern-grid, .prose .finding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.6em 0; }
.prose .pattern-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .tool-card, .prose .pattern, .prose .finding { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.prose .tool-card h3 { margin-top: 0; font-size: 1.05rem; }
.prose .tool-card .fit, .prose .pattern span, .prose .finding span { display: block; font: 700 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.prose .finding strong { display: block; margin-bottom: 6px; }
.prose .pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 1.6em 0; }
.prose .pipe-step { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.prose .pipe-step span { display: block; font: 700 11.5px/1 var(--mono); color: var(--accent); margin-bottom: 8px; }
.prose .pipe-step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.prose .checklist h3 { margin-top: .4em; }
.prose .button-row, .prose .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.prose .button { display: inline-flex; align-items: center; font: 700 13px/1 var(--mono); padding: 12px 15px; border-radius: 8px; text-decoration: none; border: 1px solid var(--line-2); color: var(--ink); background: var(--surface); }
.prose .button.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.prose .badges, .prose .meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.prose .bottom-cta h2 { margin-top: 0; }
.toc { position: sticky; top: 92px; align-self: start; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 18px; font-size: 14px; }
.toc strong { display: block; font: 700 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; text-decoration: none; color: var(--ink-2); padding: 7px 0; border-top: 1px solid var(--line); }
.toc a:hover { color: var(--accent); }
.legal-note { background: #fff7e6; border: 1px solid #f3d9a4; border-radius: 10px; padding: 14px 16px; font-size: 14.5px; color: #6b4a12; margin-bottom: 28px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); }
.site-footer .inner { max-width: var(--frame); margin: 0 auto; padding: 56px 28px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-grid h4 { font: 700 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-grid a { display: block; text-decoration: none; color: var(--ink-2); font-size: 14.5px; padding: 5px 0; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 300px; }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* ---------- reveal motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-typed] .t-line { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .caret { animation: none; }
  .btn, .pack-card, .skill-card, .note-card { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  :root { --pad-x: 40px; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .product-head { grid-template-columns: 1fr; }
  .price-box { position: static; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cells.c3, .cells.c2, .steps.cells { grid-template-columns: 1fr; }
  .cell, .step { border-left: 0; border-top: 1px solid var(--line); }
  .cell:first-child, .step:first-child { border-top: 0; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose .pipeline { grid-template-columns: 1fr; }
  .prose .pattern-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --pad-x: 18px; }
  body { font-size: 16px; }
  .frame { border: 0; }
  .site-header .inner { padding: 0 16px; }
  .section { padding: 64px var(--pad-x); }
  .hero { padding: 48px var(--pad-x) 56px; }
  .page-head { padding: 48px var(--pad-x) 40px; }
  .pack-card { grid-template-columns: 1fr; }
  .pack-side { flex-direction: row; align-items: center; padding: 18px 22px; }
  .pack-body { padding: 22px; }
  .skill-grid, .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; gap: 22px; }
  .profile img { width: 140px; height: 140px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .controls { flex-direction: column; align-items: stretch; }
  .search { flex: 1 1 auto; }
  .prose .tool-grid, .prose .finding-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 4px 0; }
  .kv dd { margin-bottom: 10px; }
  .terminal-body { min-height: 0; font-size: 12.4px; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* ======================================================================
   Lead form (free starter kit), flow pages, blog
   ====================================================================== */
.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; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- lead form ---------- */
.lead-form { display: grid; gap: 12px; text-align: left; }
.lead-row { display: flex; gap: 8px; }
.lead-form input[type="email"] { flex: 1 1 auto; min-width: 0; font: 15.5px var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 13px 14px; }
.lead-form input[type="email"]:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.lead-form .btn { flex: 0 0 auto; }
.lead-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.lead-consent input { margin: 3px 0 0; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--accent); }
.lead-consent a { color: inherit; }
.lead-status { margin: 0; font-size: 14px; min-height: 1.2em; }
.lead-status.ok { color: var(--accent); font-weight: 600; }
.lead-status.err { color: #b42318; }
.lead-form.compact .lead-row { flex-direction: column; }
.lead-form.compact .btn { width: 100%; }
.lead-form.on-dark input[type="email"] { background: rgba(255, 255, 255, .96); border-color: transparent; }
.lead-form.on-dark .lead-consent { color: rgba(255, 255, 255, .72); }
.lead-form.on-dark .lead-status.ok { color: var(--term-green); }
.lead-form.on-dark .lead-status.err { color: #fda29b; }
.lead-form.is-done .lead-row, .lead-form.is-done .lead-consent { display: none; }
.lead-status .next { display: block; margin-top: 4px; font-weight: 400; color: var(--muted); }
.lead-status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lead-form.on-dark .lead-status .next { color: rgba(255, 255, 255, .72); }

/* ---------- flow pages (check your inbox, confirm, download, unsubscribe) ---------- */
.flow-page { padding: 88px var(--pad-x) 110px; border-top: 0; }
.flow-card { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 40px 34px; }
.flow-card h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin: 18px 0 14px; }
.flow-card form { margin: 22px 0 6px; }
.flow-card .fine { font-size: 13px; color: var(--muted); margin-top: 18px; }
.flow-steps { margin: 18px 0 22px; padding-left: 1.2em; color: var(--ink-2); }
.flow-steps li + li { margin-top: 6px; }

/* ---------- blog: index ---------- */
.blog-head h1 { margin: 18px 0 16px; }
.blog-head .lead { max-width: 680px; }
.topic-hubs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.topic-hubs a { text-decoration: none; font: 600 13px/1 var(--mono); padding: 10px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); }
.topic-hubs a span { color: var(--faint); margin-left: 4px; }
.topic-hubs a:hover { border-color: var(--ink); }
.blog-section { padding-top: 48px; }
.blog-controls { margin: 44px 0 22px; }
.rss-link { font: 600 12.5px/1 var(--mono); color: var(--muted); text-decoration: none; }
.rss-link:hover { color: var(--ink); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.post-card[hidden] { display: none; }
.post-card .thumb { display: block; aspect-ratio: 1200 / 630; background: var(--navy); border-bottom: 1px solid var(--line); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.post-cat { font: 700 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.post-title { font-weight: 650; font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.post-excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.post-meta { margin-top: auto; padding-top: 6px; font: 600 12px/1.3 var(--mono); color: var(--faint); }
.post-card.featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.post-card.featured .thumb { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.post-card.featured .post-card-body { justify-content: center; padding: 36px 38px; gap: 12px; }
.post-card.featured .post-title { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.12; letter-spacing: -0.03em; }
.post-card.featured .post-excerpt { font-size: 16px; }

/* ---------- blog: article ---------- */
.article-head { padding-bottom: 0; }
.article-intro { max-width: 880px; }
.article-intro > .eyebrow { text-decoration: none; }
.article-intro h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: 18px 0 18px; }
.article-intro .lead { max-width: 740px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 14px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.byline a { display: block; font-weight: 650; color: var(--ink); text-decoration: none; }
.byline span { display: block; color: var(--muted); font: 500 12.5px/1.5 var(--mono); }
.article-hero { margin: 40px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--navy); }
.article-hero img { width: 100%; height: auto; }
.article-section { padding-top: 56px; }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 1.8em 0; }
.prose .callout > :last-child { margin-bottom: 0; }
.prose .callout-label { font: 700 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 0 0 10px; }
.prose .callout.glance { border-left: 3px solid var(--accent-bright); background: linear-gradient(180deg, #f3faf6, var(--surface)); margin-top: 0; }
.prose .callout.glance ul { margin-bottom: 0; }
.prose .callout.takeaway { border-left: 3px solid var(--navy); }
.prose .callout.note { border-left: 3px solid var(--blue); }
.prose .callout.note .callout-label { color: var(--blue); }
.prose .callout.warning { border-left: 3px solid #d97706; background: #fffbf2; }
.prose .callout.warning .callout-label { color: var(--amber); }
.prose h2 { scroll-margin-top: 90px; }
.prose h3 { scroll-margin-top: 90px; }
.prose h4 { font-size: 1.02rem; margin: 1.6em 0 .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--line-2); color: var(--ink-2); font-style: normal; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: 10px; }
.prose sup.ref { line-height: 0; }
.prose sup.ref a { text-decoration: none; font: 700 11px/1 var(--mono); color: var(--accent); padding: 0 1px; }
/* the field notes style a callout's first <strong> as a label; blog callouts have their own label */
.prose .callout:is(.glance, .takeaway, .verdict, .note, .warning) strong:first-child { display: inline; font: inherit; font-weight: 650; text-transform: none; letter-spacing: normal; color: var(--ink); margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 700 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose td code, .prose li code, .prose p code { white-space: nowrap; }
.code-block { position: relative; background: var(--term-bg); color: var(--term-text); border: 1px solid #1d2638; border-radius: 12px; padding: 16px 84px 16px 18px; margin: 1.5em 0; overflow-x: auto; font: 500 13.2px/1.7 var(--mono); }
.code-block code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; white-space: pre; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.sources { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: 14px; }
.sources h2 { font-size: 1.05rem; letter-spacing: 0; margin: 0 0 .8em; }
.sources ol { padding-left: 1.4em; }
.sources li { color: var(--muted); }
.sources li + li { margin-top: .5em; }
.sources li:target { background: #fff7e6; border-radius: 4px; }
.disclaimer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 1.6em; }
.author-box { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; align-items: start; margin: 3em 0 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.author-box p { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.author-box .author-name { font-weight: 700; font-size: 1.08rem; color: var(--ink); margin: 0; }
.author-box .author-role { font: 600 12px/1.4 var(--mono); color: var(--accent); margin: 2px 0 10px; text-transform: uppercase; letter-spacing: .08em; }
.kit-cta { margin: 40px 0 0; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px 32px 28px; position: relative; overflow: hidden; }
.kit-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 200px at 10% 0%, rgba(43, 191, 126, .24), transparent 70%), radial-gradient(420px 220px at 100% 100%, rgba(46, 107, 255, .22), transparent 70%); pointer-events: none; }
.kit-cta > * { position: relative; }
.kit-cta .eyebrow { background: transparent; color: rgba(255, 255, 255, .82); border-color: rgba(255, 255, 255, .25); }
.prose .kit-cta h2, .kit-cta h2 { color: #fff; margin: 16px 0 10px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose .kit-cta p, .kit-cta p { color: rgba(255, 255, 255, .74); }
.kit-cta .lead-form { margin-top: 16px; }
.toc .toc-cta { margin-top: 10px; padding-top: 12px; font: 700 12.5px/1.4 var(--mono); color: var(--accent); }

/* ---------- blog: diagrams (HTML figures, readable by people and crawlers) ---------- */
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.dg-flow { display: flex; align-items: stretch; gap: 10px; }
.dg-flow > .dg-arrow { align-self: center; font: 700 18px/1 var(--mono); color: var(--faint); flex: 0 0 auto; }
.dg-node { flex: 1 1 0; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 13px; }
.dg-node b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 6px; line-height: 1.3; }
.dg-node span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.dg-node .dg-k { font: 700 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.dg-node.dark { background: var(--navy); border-color: var(--navy); }
.dg-node.dark b { color: #fff; }
.dg-node.dark span { color: rgba(255, 255, 255, .7); }
.dg-node.dark .dg-k { color: var(--term-green); }
.dg-node.accent { border-color: rgba(22, 121, 79, .45); background: #eef8f2; }
.dg-stack { display: grid; gap: 8px; }
.dg-stack .dg-node { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.dg-stack .dg-node b { margin: 0; }
.dg-stack .dg-node em { font: 600 12px/1.3 var(--mono); font-style: normal; color: var(--accent); white-space: nowrap; }
.dg-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 10px; }
.dg-legend { display: flex; justify-content: space-between; gap: 12px; font: 600 11.5px/1.4 var(--mono); color: var(--faint); margin-top: 12px; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 1060px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .post-card.featured { grid-template-columns: 1fr; }
  .post-card.featured .thumb { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 1200 / 630; }
  .post-card.featured .post-card-body { padding: 24px 22px; }
  .dg-flow { flex-direction: column; }
  .dg-flow > .dg-arrow { transform: rotate(90deg); }
  .dg-stack .dg-node { grid-template-columns: 1fr; gap: 4px; }
  .dg-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .lead-row { flex-direction: column; }
  .lead-form .btn { width: 100%; }
  .flow-page { padding: 48px var(--pad-x) 72px; }
  .flow-card { padding: 28px 22px 24px; }
  .author-box { grid-template-columns: 1fr; }
  .kit-cta { padding: 26px 20px 22px; }
  .article-hero { margin-top: 28px; border-radius: 10px; }
  .dg-grid { grid-template-columns: 1fr; }
  .code-block { padding: 46px 18px 16px; }
}

/* ---------- blog: topic sections on the index ---------- */
.topic-block { margin-top: 64px; }
.topic-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.topic-head h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 8px 0 6px; }
.topic-head p { margin: 0; color: var(--muted); max-width: 640px; font-size: 15.5px; }
.topic-more { flex: 0 0 auto; font: 700 13px/1 var(--mono); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; white-space: nowrap; }
.topic-more:hover { border-color: var(--ink); }
.topic-hubs a.rss { color: var(--muted); border-style: dashed; }
@media (max-width: 640px) {
  .topic-head { flex-direction: column; align-items: flex-start; }
  .topic-block { margin-top: 48px; }
}
@media (max-width: 1060px) {
  /* a plain 1fr track grows to fit the widest code block or table; minmax keeps it inside the screen */
  .article-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Compare: evidence strip, verdict, comparison links, side-by-side outputs */
.evidence-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; font: 600 12.5px/1.4 var(--mono); color: var(--muted); }
.evidence-strip a { color: var(--accent); text-decoration: none; }
.evidence-strip a:hover { text-decoration: underline; }
.ev-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.ev-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.ev-badge.tested { color: var(--accent); border-color: rgba(22, 121, 79, .35); background: #eef8f2; }
.ev-badge.tested::before { background: var(--accent-bright); }
.ev-badge.partly { color: var(--amber); border-color: rgba(180, 83, 9, .35); background: #fffbf2; }
.ev-badge.partly::before { background: #f59e0b; }
.ev-badge.used { color: var(--blue); border-color: rgba(46, 107, 255, .35); background: #f2f6ff; }
.ev-badge.used::before { background: var(--blue); }
.evidence-note { max-width: 740px; margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.evidence-note a { color: inherit; }
.prose .callout.verdict { border-left: 3px solid var(--accent-bright); background: linear-gradient(180deg, #f3faf6, var(--surface)); margin-top: 0; }
.prose .callout.verdict ul { margin-bottom: 0; }
.compare-links { margin: 2.4em 0 0; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; }
.compare-links .callout-label { font: 700 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin: 0 0 10px; }
.compare-links ul { margin: 0; padding-left: 1.2em; }
.compare-links li { font-size: 15px; color: var(--muted); }
.compare-links li + li { margin-top: 6px; }
.compare-links a { font-weight: 650; color: var(--ink); }
.output-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.6em 0; }
.prose .output { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.prose .output figcaption { margin: 0; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); font: 600 12px/1.5 var(--mono); color: var(--muted); text-align: left; }
.prose .output figcaption b { color: var(--ink); }
.output-body { padding: 14px 16px; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 520px; overflow: auto; }
@media (max-width: 640px) {
  .output-pair { grid-template-columns: 1fr; }
  .evidence-strip { gap: 8px 10px; }
  .compare-links { padding: 18px; }
}
