:root {
  --bg: #0c0d11;
  --bg2: #13151b;
  --panel: #171a21;
  --line: #262a34;
  --fg: #eceef4;
  --muted: #9aa0ae;
  --accent: #f2f2f4;
  --accent-2: #d4d4da;
  --on-accent: #0c0d11;
  --mark: #4f8cff;
  --console: #16b981;
  --lasso: #ff2d55;
  --open: #f5a524;
  --doing: #4f8cff;
  --review: #a78bfa;
  --done: #34d399;
  --code: #e6e1ff;
  --glow: rgba(79, 140, 255, 0.16);
  --radius: 14px;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbfbfd;
    --bg2: #f3f3f8;
    --panel: #ffffff;
    --line: #e2e3ec;
    --fg: #14161d;
    --muted: #5d6273;
    --accent: #16181d;
    --accent-2: #3a3d47;
    --on-accent: #ffffff;
    --mark: #2563eb;
    --console: #0b7a55;
    --code: #2a2350;
    --glow: rgba(37, 99, 235, 0.12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
code, kbd, pre { font-family: var(--mono); }
kbd { font-size: 0.82em; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--bg2); }
p code, li code, .cmds code, .steps code { font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); color: var(--code); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(30px, 4.5vw, 48px); margin-bottom: 18px; }
h3 { font-size: 19px; }
section { padding: 88px 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 800 19px var(--sans); letter-spacing: -0.025em; }
.logo b { color: var(--mark); }
.nav nav { display: flex; gap: 22px; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover, .nav nav a.gh { color: var(--fg); }

/* hero */
.hero { padding: 88px 0 40px; position: relative; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 620px; background: radial-gradient(600px 300px at 50% 20%, var(--glow), transparent 70%); pointer-events: none; }
.eyebrow { font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-2); margin: 0 0 18px; }
h1 { font-size: clamp(44px, 8vw, 92px); font-weight: 800; letter-spacing: -0.045em; max-width: 12ch; position: relative; }
.ahem { color: var(--accent-2); font-style: italic; }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 44ch; margin: 22px 0 30px; }
.lede kbd { color: var(--fg); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.cta.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; font-weight: 600; font-size: 16px; transition: transform .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 8px 30px var(--glow); }
.copyline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; max-width: 520px; padding: 10px 10px 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.copyline code { font-size: 14px; color: var(--code); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.copyline code::-webkit-scrollbar { display: none; }
.prompt { color: var(--console); margin-right: 6px; }
.copyline button { flex: none; font: 600 13px var(--sans); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; }
.copyline button.done { color: var(--done); border-color: var(--done); }

/* demo */
.demo { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-top: 56px; }
.browser, .term { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.chrome { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.url { font: 12px var(--mono); color: var(--muted); }
.page { position: relative; height: 360px; padding: 18px 22px; background: #f6f6fa; color: #1d2030; font-size: 13px; overflow: hidden; }
.fake-nav { display: flex; gap: 16px; align-items: center; color: #5b6072; margin-bottom: 14px; }
.fake-nav b { color: #1d2030; margin-right: 8px; }
.fake-h { font-size: 26px; margin: 4px 0 14px; color: #1d2030; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { background: #fff; border: 1px solid #e6e6ef; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.card.featured { border-color: #4f46e5; }
.card .meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #6b7084; margin: 2px 0 8px; }
.ok-dot, .warn-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; flex: none; }
.warn-dot { background: #d97706; }
.fbtn { display: inline-block; padding: 7px 12px; border-radius: 7px; border: 1px solid #d5d6e0; background: #fff; font-size: 12px; transition: all .5s; text-align: center; }
.fbtn.primary { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.fbtn.fixed { width: 100%; }
.lasso { position: absolute; pointer-events: none; overflow: visible; opacity: 0; }
.lasso path { fill: none; stroke: var(--lasso); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; }
.lasso.draw { opacity: 1; }
.lasso.draw path { transition: stroke-dashoffset 1.1s ease-in-out; stroke-dashoffset: 0; }
.marker { position: absolute; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--sans); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); background: var(--open); opacity: 0; transform: scale(.4); transition: all .3s; }
.marker.show { opacity: 1; transform: scale(1); }
.marker.doing { background: var(--doing); animation: pulse 1.4s infinite; }
.marker.review { background: #8b5cf6; }
.marker.done { background: #16a34a; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(79, 140, 255, .25); } }
.bubble, .pop { position: absolute; background: #16181d; color: #f3f4f6; border: 1px solid #343842; border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.35); opacity: 0; transform: translateY(6px); transition: all .25s; pointer-events: none; }
.bubble { width: 270px; padding: 10px; font-size: 12px; }
.bubble.show, .pop.show { opacity: 1; transform: none; }
.where { font: 10px var(--mono); color: #9ca3af; margin-bottom: 6px; }
.field { background: #22252c; border: 1px solid #f2f2f4; border-radius: 6px; padding: 7px 8px; min-height: 44px; line-height: 1.4; }
.caret { display: inline-block; width: 1px; height: 13px; background: #f3f4f6; vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.bubble-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 10px; color: #9ca3af; }
.go { white-space: nowrap; background: #f2f2f4; color: #111317; padding: 4px 9px; border-radius: 6px; font-weight: 600; font-size: 11px; }
.go svg { vertical-align: -1px; margin-right: 3px; }
.go.press { transform: scale(.94); filter: brightness(1.2); }
.pop { width: 252px; padding: 0; font-size: 11px; overflow: hidden; }
.pop-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px 0; }
.pop-id { font: 9px var(--mono); color: #9ca3af; white-space: nowrap; }
.pill { background: #8b5cf6; color: #fff; border-radius: 999px; padding: 1px 8px; font-weight: 600; font-size: 10px; white-space: nowrap; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 9px 10px 10px; }
.ba figure { margin: 0; }
.ba figcaption { font: 600 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; margin-top: 4px; }
/* screenshot crops: light page, tiny card, so they read as images, not buttons */
.shot { background: #fff; border: 1px solid #343842; border-radius: 5px; padding: 7px; height: 50px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; box-shadow: inset 0 0 0 3px #f1f2f6; }
.shot .sk { display: block; width: 55%; height: 4px; border-radius: 2px; background: #d6d9e0; }
.shot-btn { background: #4f46e5; color: #fff; border-radius: 3px; padding: 3px 6px; font-size: 7px; font-weight: 600; white-space: nowrap; }
.shot-btn.wide { align-self: stretch; text-align: center; }
.pop-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #2a2d35; }
.ok, .nq { padding: 8px; font-weight: 600; font-size: 11px; text-align: center; transition: all .15s; }
.ok { color: #c4b5fd; border-right: 1px solid #2a2d35; }
.ok.press { background: rgba(255, 255, 255, .14); color: #fff; }
.nq { color: #9ca3af; }
.toast { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); background: #16181d; color: #f3f4f6; border: 1px solid #343842; padding: 7px 12px; border-radius: 8px; font-size: 11px; opacity: 0; transition: all .25s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.term pre { margin: 0; padding: 16px; height: 360px; overflow: hidden; font: 12.5px/1.65 var(--mono); color: var(--muted); white-space: pre-wrap; }
.term .t-cmd { color: var(--fg); }
.term .t-acc { color: var(--accent-2); }
.term .t-ok { color: var(--done); }
.term .t-warn { color: var(--open); }

/* receipts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.receipts p, .features .sub, .how p, .install p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 28px; position: relative; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
.ticks b { color: var(--fg); font-weight: 600; }
.file, .snippet { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); overflow: hidden; }
.file-head { font: 12px var(--mono); color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.file pre, .snippet { margin: 0; padding: 18px; font-size: 13px; line-height: 1.6; color: var(--code); overflow-x: auto; }
.k { color: var(--accent-2); }
.s { color: var(--done); }

/* how */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--panel); }
.steps .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 14px var(--mono); margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; font-size: 15px; }

/* features */
.features .sub { max-width: 60ch; font-size: 19px; margin: 0 0 36px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid article { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--panel); transition: border-color .2s; }
.grid article:hover { border-color: var(--accent); }
.ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--glow); color: var(--accent-2); font-size: 18px; margin-bottom: 14px; }
.grid h3 { margin-bottom: 8px; }
.grid p { margin: 0; color: var(--muted); font-size: 15px; }

/* trackers */
.trackers .sub { max-width: 64ch; font-size: 19px; margin: 0 0 36px; color: var(--muted); }
.flow { display: flex; align-items: stretch; gap: 10px; margin-bottom: 44px; }
.node { flex: 1; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.node-k { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); }
.node b { font-size: 16px; overflow-wrap: anywhere; }
.node small { color: var(--muted); font-size: 13px; }
.node.trackers-list { border-color: var(--accent); box-shadow: 0 8px 30px var(--glow); }
.arrow { align-self: center; color: var(--accent-2); font: 700 20px var(--mono); }
.tracker-split { align-items: start; }
.ticket { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.ticket-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.key { font: 600 13px var(--mono); color: var(--muted); }
.state { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 10%, transparent); color: var(--accent-2); }
.ticket h3 { font-size: 20px; margin-bottom: 10px; }
.labels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.labels span { font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.ticket-body { border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; }
.ticket .q { margin: 0 0 12px; padding-left: 12px; border-left: 3px solid var(--accent); color: var(--fg); }
.ticket dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; overflow-wrap: anywhere; }
.ticket .ref { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.snippet.config { margin-top: 36px; max-width: 720px; }
.c { color: var(--muted); }

/* commands */
.cmds { display: flex; flex-wrap: wrap; gap: 8px; }

/* install */
.install { background: var(--bg2); border-block: 1px solid var(--line); }
.install-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; counter-reset: i; max-width: 720px; }
.install-steps li { position: relative; padding-left: 52px; counter-increment: i; }
.install-steps li::before { content: counter(i); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent-2); font: 700 14px var(--mono); }
.install-steps h3 { margin-bottom: 6px; }
.install-steps .copyline { margin-top: 10px; background: var(--panel); }
.small { font-size: 15px; }
.snippet { margin-top: 10px; background: var(--panel); }
.aside { margin-top: 36px; font-size: 15px; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent-2); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* final + footer */
.final { text-align: center; padding: 110px 0; }
.final h2 { font-size: clamp(40px, 7vw, 76px); margin-bottom: 30px; }
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--muted); }

/* responsive */
@media (max-width: 960px) {
  .flow { flex-direction: column; }
  .arrow { transform: rotate(90deg); }
  .demo { grid-template-columns: 1fr; }
  .term pre { height: 220px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .steps, .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .nav nav a:not(.gh) { display: none; }
  .steps, .grid { grid-template-columns: 1fr; }
  .page { height: 400px; padding: 14px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { display: none; }
  .bubble { width: 230px; }
  .copyline code { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* centred sections */
.hero .wrap:first-child { text-align: center; }
.hero h1, .hero .lede { margin-inline: auto; }
.hero .cta { justify-content: center; }
.hero .copyline { margin-inline: auto; }
.how h2, .features h2, .trackers h2, .commands h2, .install h2, .faq h2 { text-align: center; }
.features .sub, .trackers .sub { text-align: center; margin-inline: auto; max-width: 76ch; text-wrap: balance; }
.install-steps { margin-inline: auto; }
.aside { text-align: center; }
.faq details { margin-inline: auto; }
.snippet.config { margin-inline: auto; }
.hero h1 { max-width: 19ch; text-wrap: balance; }
.hero .lede { max-width: 880px; text-wrap: pretty; }

/* tally / now or batch / team */
.loop { padding-top: 40px; }
.loop h2 { text-align: center; text-wrap: balance; }
.loop .sub { max-width: 76ch; font-size: 19px; margin: 0 auto 40px; text-align: center; color: var(--muted); text-wrap: balance; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trio article { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--panel); }
.trio h3 { margin-bottom: 8px; }
.trio p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.vis { margin-top: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); padding: 12px; font-size: 13px; }
.tally-head { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--muted); padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.tally .row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.tally em { margin-left: auto; font: normal 11px var(--mono); color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.open { background: var(--open); }
.dot.doing { background: var(--doing); }
.dot.review { background: var(--review); }
.dot.done { background: var(--done); }
.commit { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.commit code { font-size: 11px; color: var(--code); }
.av { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--sans); font-style: normal; color: #fff; }
.av.a { background: #e0567a; }
.av.m { background: #2f9e8f; }
.av.y { background: var(--mark); }
.av.c { background: var(--done); color: #06281c; }
@media (max-width: 960px) { .trio { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.modes { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 14px 14px; }
.modes .key { justify-self: start; font: 600 11px var(--mono); padding: 3px 8px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--panel); color: var(--fg); }
.modes .key.cmd { color: var(--code); border-bottom-width: 1px; }
.modes b { display: block; font-size: 13px; line-height: 1.3; }
.modes small, .commit small { display: block; color: var(--muted); font-size: 12px; }

/* legal pages */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 720px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal .updated { font-size: 13px; }
.legal code { font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); color: var(--code); }
.foot a { color: inherit; }

/* why: screenshot-and-explain vs point at it */
.versus { padding-top: 56px; }
.versus h2 { text-align: center; text-wrap: balance; }
.versus .sub { max-width: 72ch; font-size: 19px; margin: 0 auto 40px; text-align: center; color: var(--muted); text-wrap: balance; }
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vs-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--panel); }
.vs-new { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 20px 60px var(--glow); }
.vs-label { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.vs-new .vs-label { color: var(--accent-2); }
.vs-steps { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.vs-steps li { counter-increment: s; position: relative; padding-left: 36px; min-height: 24px; font-size: 15px; line-height: 1.6; }
.vs-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--mono); border: 1px solid var(--line); color: var(--muted); }
.vs-new .vs-steps li::before { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.vs-old .vs-steps li { color: var(--muted); }
.vs-box { margin-top: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); padding: 12px 14px; }
.vs-box-head { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.vs-box-head:not(:first-child) { margin-top: 12px; }
.vs-prompt { margin: 0; font-size: 14px; line-height: 1.5; }
.vs-old .vs-prompt { color: var(--muted); }
.vs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-chips span { font: 12px var(--mono); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--code); }
.vs-sum { text-align: center; margin: 28px auto 0; max-width: 60ch; color: var(--muted); font-size: 17px; text-wrap: balance; }
.vs-sum b { color: var(--fg); }
@media (max-width: 860px) { .vs-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.gains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 40px; }
.gain { position: relative; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--radius); padding: 26px 22px 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, var(--panel)), var(--panel) 70%); box-shadow: 0 16px 50px var(--glow); }
.gain .g-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 20px; margin-bottom: 16px; box-shadow: 0 8px 24px var(--glow); }
.gain h3 { font-size: 22px; margin: 0 0 8px; letter-spacing: -0.01em; }
.gain p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.vs-intro { text-align: center; color: var(--muted); font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; }
@media (max-width: 960px) { .gains { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gains { grid-template-columns: 1fr; } }

/* ——— visual polish: hero scribble, bands, kickers, motion ——— */

/* hero: a dotted grid that fades out, and the product's own gesture: a circle drawn round "wrong." */
.hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 720px; pointer-events: none; z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 16%, transparent) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 25%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 25%, #000 20%, transparent 75%); }
.hero { isolation: isolate; }
.circled { position: relative; display: inline-block; white-space: nowrap; }
.scribble { position: absolute; left: -9%; top: -16%; width: 118%; height: 138%; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--mark); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero .scribble path { animation: draw 1.1s cubic-bezier(.6, .1, .3, 1) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pin { position: absolute; right: -14px; top: -8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mark); border: 3px solid var(--bg); box-shadow: 0 6px 20px var(--glow); transform: scale(0); animation: pop .35s cubic-bezier(.3, 1.6, .5, 1) 1.55s forwards; }
.pin svg { width: 15px; height: 15px; fill: #fff; }
@keyframes pop { to { transform: scale(1); } }
.demo { position: relative; }
.demo::before { content: ""; position: absolute; inset: 10% 5% -6%; z-index: -1; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(30px); }

/* headings: a numbered kicker and a soft top-to-bottom fade */
.kicker { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 14px; font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kicker span { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; color: var(--mark); background: color-mix(in srgb, var(--mark) 12%, transparent); border: 1px solid color-mix(in srgb, var(--mark) 30%, transparent); }
.receipts .kicker { justify-content: flex-start; }
h2 { background: linear-gradient(180deg, var(--fg) 40%, color-mix(in srgb, var(--fg) 62%, var(--muted))); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 .ahem { -webkit-text-fill-color: var(--accent-2); }

/* rhythm: every other section sits on a band */
.band { background: linear-gradient(180deg, var(--bg), var(--bg2) 14%, var(--bg2) 86%, var(--bg)); }
.band :is(.trio article, .steps li, .node, .ticket) { background: color-mix(in srgb, var(--panel) 92%, var(--bg)); }

/* cards lift and warm up under the pointer */
:is(.grid article, .steps li, .trio article, .gain, .vs-card) { transition: transform .2s ease, border-color .2s, box-shadow .2s; }
:is(.grid article, .steps li, .trio article, .gain):hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 18px 50px var(--glow); }
.ico { background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 34%, transparent), color-mix(in srgb, var(--accent) 10%, transparent)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.steps .n { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent), 0 6px 18px var(--glow); }
.steps li { position: relative; overflow: hidden; }
.steps li::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); opacity: .7; }

/* commands: a terminal window */
.cmd-term { max-width: 760px; margin: 28px auto 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .3); }
.cmd-body { padding: 20px 22px 22px; }
.cmd-hot { display: flex; align-items: baseline; gap: 14px; margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.cmd-hot code { font-size: 15px; font-weight: 700; color: var(--accent-2); }
.cmd-hot code::before { content: "> "; color: var(--muted); }
.cmd-body .cmds { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.cmd-body .cmds code { font-size: 13px; padding: 3px 9px; border-radius: 7px; background: var(--bg2); border: 1px solid var(--line); color: var(--code); transition: border-color .15s, color .15s; }
.cmd-body .cmds code:hover { border-color: var(--accent); color: var(--fg); }

/* reveal on scroll (only once the script runs, so the page reads fine without it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .final .scribble path { stroke-dashoffset: 1; }
.js .final.in .scribble path { animation: draw 1.1s cubic-bezier(.6, .1, .3, 1) .35s forwards; }
html:not(.js) .final .scribble path { stroke-dashoffset: 0; }

@media (max-width: 640px) {
  .pin { width: 26px; height: 26px; right: -10px; top: -6px; border-width: 2px; }
  .pin svg { width: 12px; height: 12px; }
  .scribble path { stroke-width: 3; }
  .cmd-hot { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .scribble path, .js .final .scribble path { stroke-dashoffset: 0; }
  .pin { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ——— colour: blue is the site's colour (the mark); emerald is for the console ——— */
:root { --mark-2: #8ab4ff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --mark-2: #1d4ed8; } }

/* hero: "Ahem." in a blue sweep, and blue light behind the heading and the demo */
.hero .ahem { background: linear-gradient(100deg, var(--mark), var(--mark-2)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .06em; }
.hero::before { height: 720px; background:
  radial-gradient(460px 280px at 34% 28%, color-mix(in srgb, var(--mark) 20%, transparent), transparent 70%),
  radial-gradient(420px 260px at 70% 22%, color-mix(in srgb, var(--mark-2) 14%, transparent), transparent 70%); }
.demo::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--mark) 22%, transparent), transparent); }

/* cards: blue icons, numbers, edges and glow */
:is(.gains, .steps, .grid, .trio) > * { --h: var(--mark); }
.gain { border-color: var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--h) 6%, var(--panel)), var(--panel) 60%); box-shadow: none; }
.gain .g-ico { background: var(--h); color: #fff; box-shadow: none; }
.steps .n { background: var(--h); color: #fff; box-shadow: none; }
.steps li::after { display: none; }
.grid .ico { background: color-mix(in srgb, var(--h) 18%, transparent); border-color: color-mix(in srgb, var(--h) 40%, transparent); color: var(--mark-2); }
:is(.grid article, .steps li, .trio article, .gain):hover { border-color: color-mix(in srgb, var(--h, var(--mark)) 30%, var(--line)); box-shadow: 0 14px 40px rgba(0, 0, 0, .25); }

/* the "point at it" side and the tracker you keep */
.vs-new { border-color: color-mix(in srgb, var(--mark) 28%, var(--line)); box-shadow: none; }
.vs-new .vs-label { color: var(--mark-2); }
.vs-new .vs-steps li::before { background: var(--mark); border-color: var(--mark); color: #fff; }
.node.trackers-list { border-color: color-mix(in srgb, var(--mark) 35%, var(--line)); box-shadow: none; }
.node-k { color: var(--mark-2); }
.ticks li::before { color: var(--mark-2); }

/* the console: prompts, terminal output and commands in emerald */
.term .t-acc, .term .t-cmd { color: var(--console); }
.cmd-hot code { color: var(--console); }
.cmd-hot code::before { color: color-mix(in srgb, var(--console) 60%, var(--muted)); }
.copyline code { color: var(--fg); }
.file pre .k, .snippet .k { color: var(--console); }



/* code blocks keep their own spacing: the inline-code chip style is for words in a sentence */
pre code, li pre code { padding: 0; border: 0; background: none; border-radius: 0; font-size: inherit; color: inherit; }

/* closing call: plain, centred, just the heading, the circle and the buttons */
.final { border-top: 1px solid var(--line); }
.final h2 { margin-bottom: 34px; }
/* gradient headings are clipped to the text box: leave room for descenders (g, p, y) */
h2 { padding-bottom: .12em; margin-bottom: calc(18px - .12em); }
.final h2 { margin-bottom: calc(34px - .12em); }
/* commands in a copy line read as plain text, not chips */
.copyline code { padding: 0; border: 0; background: none; border-radius: 0; }

/* not just UI: a quiet callout under the comparison */
.beyond { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; margin-top: 18px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.beyond h3 { font-size: 22px; margin-bottom: 8px; }
.beyond p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.beyond-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.beyond-list li { font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--fg); }
.beyond-list li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mark); margin-right: 7px; vertical-align: 2px; }
@media (max-width: 860px) { .beyond { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ——— living illustrations ——— */
.tally .dot { transition: background-color .35s ease, box-shadow .35s ease; }
.tally .row { transition: color .35s ease, opacity .35s ease; }
.tally .row.fin { color: var(--muted); }
.tally .row.bump .dot { animation: dot-bump .5s ease; }
@keyframes dot-bump { 40% { transform: scale(1.7); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg) 12%, transparent); } }
.tally-head span:last-child { transition: color .3s; }

.type-caret { display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--console); animation: blink 1s steps(1) infinite; }

.steps.animated { position: relative; }
.steps.animated::before, .steps.animated::after { content: ""; position: absolute; left: 0; top: -18px; height: 2px; border-radius: 2px; }
.steps.animated::before { right: 0; background: var(--line); }
.steps.animated::after { width: var(--p, 0%); background: var(--mark); transition: width .6s cubic-bezier(.4, 0, .2, 1); }
.steps.animated li { transition: border-color .35s, transform .35s, box-shadow .35s; }
.steps.animated li.on { border-color: color-mix(in srgb, var(--mark) 40%, var(--line)); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0, 0, 0, .25); }
.steps.animated li.on .n { animation: dot-bump .6s ease; }
@media (max-width: 960px) { .steps.animated::before, .steps.animated::after { display: none; } }

/* the overlay's own buttons, shown inline in the copy */
.ui-btn { display: inline-block; padding: 1px 8px; margin: 0 1px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg2); color: var(--fg); font: 600 12.5px/1.6 var(--sans); white-space: nowrap; vertical-align: 1px; }
.ui-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* install: the config snippet lines up with the copy lines above it */
.install-steps .snippet { max-width: 520px; }

/* ——— why, lighter: open benefits, a two-quote comparison, an unboxed "not just UI" ——— */
.gains { gap: 28px; margin-bottom: 52px; }
.gain, .gain:hover { border: 0; background: none; box-shadow: none; padding: 0; transform: none; }
.gain .g-ico { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 12px; }
.gain h3 { font-size: 19px; margin-bottom: 4px; }
.gain p { font-size: 15px; }
.vs-card { padding: 22px 24px; gap: 12px; }
.vs-card .vs-label { margin-bottom: 2px; }
.vs-card .vs-prompt { font-size: 16px; line-height: 1.55; color: var(--fg); }
.vs-old .vs-prompt { color: var(--muted); font-size: 15px; }
.vs-then { margin: auto 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.vs-new .vs-then { color: var(--fg); }
.beyond { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; margin-top: 30px; padding: 0; border: 0; background: none; text-align: center; }
.beyond p { margin: 0; max-width: 62ch; color: var(--muted); font-size: 15px; }
.beyond p b { color: var(--fg); }
.beyond-list { justify-content: center; }
@media (max-width: 860px) { .beyond { display: flex; max-width: none; } }

/* ——— comparison visuals and "not just UI" tiles ——— */
.mini-chat { display: flex; }
.mini-shot { position: relative; width: 168px; height: 92px; border-radius: 8px; border: 1px solid var(--line); background: #f6f6fa; padding: 12px; display: grid; gap: 7px; align-content: start; }
.mini-shot i { display: block; height: 7px; width: 70%; border-radius: 3px; background: #d9dbe4; }
.mini-shot i.b { width: 38%; height: 14px; background: #4f46e5; opacity: .85; margin-top: 4px; }
.mini-shot span { position: absolute; left: 0; right: 0; bottom: -20px; font: 11px var(--mono); color: var(--muted); white-space: nowrap; }
.vs-old .mini-chat { margin-bottom: 18px; }
.mini-page { border-radius: 10px; border: 1px solid var(--line); background: #f6f6fa; padding: 14px; }
.mini-card { width: 190px; background: #fff; border: 1px solid #e6e6ef; border-radius: 9px; padding: 11px 12px; display: grid; gap: 3px; justify-items: start; color: #1d2030; font-size: 13px; }
.mini-card small { color: #6b7084; font-size: 11px; margin-bottom: 6px; }
.mini-btn { position: relative; padding: 5px 12px; border-radius: 7px; background: #4f46e5; color: #fff; font-size: 12px; font-weight: 600; }
.mini-loop { position: absolute; left: -16px; top: -12px; width: calc(100% + 32px); height: calc(100% + 24px); overflow: visible; }
.mini-loop path { fill: none; stroke: var(--mark); stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mini-pin { position: absolute; right: -24px; top: -16px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--mark); border: 2px solid #fff; }
.mini-pin svg { width: 10px; height: 10px; fill: #fff; }
.beyond { flex-direction: column; gap: 14px; }

/* ——— comparison cards: timeline steps, a step count, what-you-type as a chat bubble ——— */
.vs-card { padding: 24px 26px; gap: 18px; }
.vs-card .vs-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; }
.vs-count { font: 600 11px var(--mono); letter-spacing: .04em; text-transform: none; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.vs-new .vs-count { color: var(--mark-2); border-color: color-mix(in srgb, var(--mark) 35%, var(--line)); background: color-mix(in srgb, var(--mark) 10%, transparent); }
.vs-card .vs-steps { margin: 0; gap: 0; }
.vs-card .vs-steps li { padding: 0 0 14px 38px; min-height: 26px; }
.vs-card .vs-steps li:last-child { padding-bottom: 0; }
.vs-card .vs-steps li::before { width: 26px; height: 26px; top: -1px; background: var(--bg2); }
.vs-card .vs-steps li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 27px; bottom: 1px; width: 1px; background: var(--line); }
.vs-new .vs-steps li:not(:last-child)::after { background: color-mix(in srgb, var(--mark) 45%, var(--line)); }
.vs-new .vs-steps li::before { background: var(--mark); border-color: var(--mark); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--mark) 16%, transparent); }
.vs-say { margin-top: auto; display: grid; gap: 8px; }
.vs-say .vs-box-head { margin: 4px 0 0; }
.vs-bubble { position: relative; margin: 0; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--bg2); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.vs-new .vs-bubble { background: color-mix(in srgb, var(--mark) 12%, var(--panel)); border-color: color-mix(in srgb, var(--mark) 35%, var(--line)); color: var(--fg); font-size: 15.5px; }
.vs-new .mini-page { margin: 2px 0 0; }

/* ——— comparison, with impact: the word count leads, a vs badge between the cards ——— */
.vs-grid { position: relative; gap: 28px; }
.vs-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); font: 700 13px var(--mono); color: var(--muted); letter-spacing: .04em; }
.vs-card { gap: 16px; }
.vs-new { background: linear-gradient(180deg, color-mix(in srgb, var(--mark) 9%, var(--panel)), var(--panel) 55%); }
.vs-stat { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 -2px; }
.vs-stat b { font-size: clamp(56px, 7vw, 84px); line-height: .9; font-weight: 800; letter-spacing: -0.05em; }
.vs-stat span { font-size: 15px; color: var(--muted); }
.vs-old .vs-stat b { color: color-mix(in srgb, var(--muted) 70%, var(--line)); }
.vs-new .vs-stat b { background: linear-gradient(100deg, var(--mark), var(--mark-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.vs-new .vs-stat span { color: var(--fg); }
.vs-old .vs-bubble { font-size: 14px; }
.vs-new .vs-bubble { font-size: 17px; font-weight: 500; }
.vs-gets { display: grid; gap: 8px; }
.vs-gets .vs-box-head { margin: 0; }
.vs-card .vs-steps { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.vs-old .vs-steps li { color: var(--muted); }
@media (max-width: 860px) { .vs-badge { position: static; transform: none; margin: -14px auto; } }
.vs-wins { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.vs-wins li { position: relative; padding-left: 28px; font-size: 15px; font-weight: 600; color: var(--fg); }
.vs-wins li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--mark) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.3 2.3 4.7-5' fill='none' stroke='%234f8cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.vs-losses li { color: var(--muted); font-weight: 500; }
.vs-losses li::before { background: color-mix(in srgb, var(--muted) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m5.5 5.5 5 5m0-5-5 5' fill='none' stroke='%239aa0ae' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.vs-old .vs-losses { margin-top: 2px; }
/* equal columns whatever the content, so the vs badge sits in the gap between the cards */
.vs-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.vs-chips { min-width: 0; }
@media (max-width: 860px) { .vs-grid { grid-template-columns: minmax(0, 1fr); } }
/* centred without transform: the scroll-in reveal animates transform and would undo it */
.vs-badge, .js .vs-badge.reveal, .js .vs-badge.reveal.in { transform: none; left: calc(50% - 22px); top: calc(50% - 22px); }
@media (max-width: 860px) { .vs-badge, .js .vs-badge.reveal, .js .vs-badge.reveal.in { left: auto; top: auto; } }

/* ——— closing call: starts bland, then AhemUI fixes it in front of you ——— */
.final-stage { position: relative; display: grid; place-items: center; min-height: 340px; }
.final-before, .final-after { grid-area: 1 / 1; transition: opacity .55s ease, transform .55s ease, filter .55s ease; }
/* the "before": what an unstyled page looks like */
.final-before { font: 16px/1.4 "Times New Roman", Times, serif; color: var(--fg); text-align: center; padding: 18px 26px; }
.final-before h2 { font: 700 26px/1.2 "Times New Roman", Times, serif; letter-spacing: 0; margin: 0 0 10px; background: none; -webkit-text-fill-color: currentColor; color: var(--fg); padding: 0; }
.final-before p { margin: 0 0 8px; }
.final-before a { color: #5a8dee; text-decoration: underline; }
.js .final-after { opacity: 0; transform: scale(.96); filter: blur(6px); pointer-events: none; }
.js .final.fixed .final-before { opacity: 0; transform: scale(1.03); filter: blur(6px); pointer-events: none; }
.js .final.fixed .final-after { opacity: 1; transform: none; filter: none; pointer-events: auto; }
html:not(.js) .final-before { display: none; }
.js .final .scribble path, .js .final.in .scribble path { animation: none; stroke-dashoffset: 1; }
.js .final.fixed .scribble path { animation: draw 1.1s cubic-bezier(.6, .1, .3, 1) .45s forwards; }

.f-lasso { position: absolute; pointer-events: none; overflow: visible; opacity: 0; }
.f-lasso path { fill: none; stroke: var(--mark); stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.f-lasso.draw { opacity: 1; }
.f-lasso.draw path { transition: stroke-dashoffset 1s ease-in-out; stroke-dashoffset: 0; }
.f-lasso.gone { opacity: 0; transition: opacity .4s; }
.f-bubble { position: absolute; width: 290px; padding: 10px; font-size: 12px; text-align: left; background: #16181d; color: #f3f4f6; border: 1px solid #343842; border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.35); opacity: 0; transform: translateY(6px); transition: all .25s; pointer-events: none; z-index: 3; }
.f-bubble.show { opacity: 1; transform: none; }
.f-bubble .where { font: 10px var(--mono); color: #9ca3af; margin-bottom: 6px; }
.f-bubble .field { min-height: 38px; }
.f-marker { position: absolute; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); background: var(--open); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s, background-color .3s; z-index: 3; }
.f-marker svg { width: 13px; height: 13px; }
.f-marker.show { opacity: 1; transform: scale(1); }
.f-marker.doing { background: var(--doing); animation: pulse 1.4s infinite; }
.f-marker.done { background: #16a34a; }
.f-toast { position: absolute; left: 50%; bottom: 6px; transform: translate(-50%, 8px); background: #16181d; color: #f3f4f6; border: 1px solid #343842; padding: 7px 12px; border-radius: 8px; font-size: 12px; opacity: 0; transition: all .25s; white-space: nowrap; z-index: 3; }
.f-toast.show { opacity: 1; transform: translate(-50%, 0); }
.f-replay { position: absolute; right: 0; bottom: 0; font: 600 12px var(--sans); color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.f-replay:hover { color: var(--fg); border-color: var(--mark); }
@media (max-width: 640px) { .f-bubble { width: 240px; } .final-stage { min-height: 300px; } }

/* ——— closing call v2: quiet before, visual after, a dashed selection box instead of a circle ——— */
.final { position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s ease;
  background: radial-gradient(55% 75% at 50% 45%, color-mix(in srgb, var(--mark) 22%, transparent), transparent 70%),
    radial-gradient(35% 50% at 22% 70%, color-mix(in srgb, var(--mark-2) 12%, transparent), transparent 70%),
    radial-gradient(35% 50% at 80% 30%, color-mix(in srgb, var(--mark-2) 12%, transparent), transparent 70%); }
.final.fixed::before, html:not(.js) .final::before { opacity: 1; }
.final-stage { min-height: 420px; }
/* before: the site's own styles, just nothing highlighted */
.final-before { font: inherit; padding: 22px 30px; }
.final-before h2 { font: 700 30px/1.2 var(--sans); letter-spacing: -0.01em; margin: 0 0 10px; color: var(--muted); -webkit-text-fill-color: var(--muted); background: none; }
.final-before p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.final-before .btn { padding: 9px 16px; font-size: 14px; }
/* after */
.final-after { position: relative; padding: 10px 40px; }
.final-after h2 { font-size: clamp(44px, 7.5vw, 88px); margin-bottom: 14px; }
.f-grad { background: linear-gradient(100deg, var(--mark), var(--mark-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .06em; }
.f-sub { margin: 0 auto 26px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.final-after .copyline { margin: 20px auto 0; }
.f-deco { position: absolute; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 14px var(--sans); border: 3px solid var(--bg); box-shadow: 0 8px 24px rgba(0,0,0,.35); background: var(--open); transform: scale(0) rotate(-20deg); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.f-deco svg { width: 15px; height: 15px; fill: currentColor; }
.f-deco.review { background: #8b5cf6; } .f-deco.review svg { fill: none; }
.f-deco.done { background: #16a34a; } .f-deco.done svg { fill: none; }
.d1 { left: 2%; top: 6%; } .d2 { right: 4%; top: 0; background: var(--doing); } .d3 { left: 6%; bottom: 14%; } .d4 { right: 1%; bottom: 22%; }
.final.fixed .f-deco, html:not(.js) .f-deco { transform: none; }
.final.fixed .d2 { transition-delay: .12s; } .final.fixed .d3 { transition-delay: .24s; } .final.fixed .d4 { transition-delay: .36s; }
/* the overlay's own selection: a dashed box */
.f-select { position: absolute; pointer-events: none; border: 2px dashed var(--mark); border-radius: 10px; background: color-mix(in srgb, var(--mark) 7%, transparent); opacity: 0; transform: scale(1.04); transition: opacity .3s, transform .3s; }
.f-select.show { opacity: 1; transform: none; }
.f-lasso { display: none; }
@media (max-width: 640px) { .f-deco { display: none; } .final-after { padding: 10px 0; } }
/* the two halves share one cell; neither may push it wider than the screen */
.final-stage { grid-template-columns: minmax(0, 1fr); }
.final-before, .final-after { min-width: 0; max-width: 100%; }
.final-after .copyline { max-width: min(520px, 100%); }
.copyline code { min-width: 0; }
@media (max-width: 640px) { .final-before { padding: 18px 8px; } }
/* closing call, after: the hero's background (blue glows over a fading dot grid) and the hero's "Ahem." */
.final::before { background:
  radial-gradient(460px 280px at 34% 34%, color-mix(in srgb, var(--mark) 20%, transparent), transparent 70%),
  radial-gradient(420px 260px at 68% 28%, color-mix(in srgb, var(--mark-2) 14%, transparent), transparent 70%); }
.final::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .8s ease;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 16%, transparent) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 20%, transparent 75%); }
.final { isolation: isolate; }
.final::before { z-index: -1; }
.final.fixed::after, html:not(.js) .final::after { opacity: 1; }
.final .ahem { background: linear-gradient(100deg, var(--mark), var(--mark-2)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .06em; }
.final-before a, .final-before a:hover { color: inherit; text-decoration: none; }
.f-toast { top: 4px; bottom: auto; transform: translate(-50%, -8px); }
.f-toast.show { transform: translate(-50%, 0); }

/* ——— plugins: the agents AhemUI works with ——— */
.plugins h2, .plugins .sub { text-align: center; }
.plugins .sub { max-width: 64ch; margin: 0 auto 36px; font-size: 19px; color: var(--muted); text-wrap: balance; }
.agents { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; }
.agent { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.agent.live { border-color: color-mix(in srgb, var(--mark) 35%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--mark) 8%, var(--panel)), var(--panel) 60%); }
.agent-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.agent-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); }
.agent.live .agent-ico { background: var(--mark); border-color: var(--mark); color: #fff; }
.agent-state { font: 600 11px var(--mono); letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.agent-state.on { color: var(--done); border-color: color-mix(in srgb, var(--done) 40%, var(--line)); background: color-mix(in srgb, var(--done) 10%, transparent); }
.agent-state.on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--done); margin-right: 6px; vertical-align: 1px; }
.agent h3 { font-size: 21px; }
.agent p { margin: 0; color: var(--muted); font-size: 15px; }
.agent:not(.live) h3 { color: color-mix(in srgb, var(--fg) 80%, var(--muted)); }
.agent .copyline { margin-top: auto; max-width: none; background: var(--bg2); }
.agent a { color: var(--mark-2); }
@media (max-width: 960px) { .agents { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.agents { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 960px) { .agents { grid-template-columns: minmax(0, 1fr); } }

/* the two plugin commands, add then install, as one block */
.copy-pair { display: grid; gap: 8px; max-width: 520px; margin: 22px auto 0; }
.copy-pair .copyline { margin: 0; max-width: none; }
.agent .copy-pair { margin: auto 0 0; max-width: none; }
.final-after .copy-pair { margin: 20px auto 0; }
.copy-pair { grid-template-columns: minmax(0, 1fr); width: 100%; }
.copy-pair .copyline { min-width: 0; }
