/* X Creator Kit tool, legal and 404 pages. Loads after reader.css (tokens, the bar, keys). White, ink, hairlines; the receipts carry the colour.
   Type: Archivo for headlines (wide) and text, Martian Mono for figures and labels; the faces are declared in reader.css. Sizes on the Tailwind scale,
   spacing on the 2/4/8/12/16/24/32/40/48/64/80/96 scale, motion on cubic-bezier(.32,.72,0,1). */

:root {
  --paper: #fff; --surface: #f4f4f1; --ink: #131313; --soft: #55575c; --line: #deded8; --line-strong: #c9c9c2; --focus: #131313;
  --ease: cubic-bezier(.32, .72, 0, 1); --press: cubic-bezier(.2, 0, 0, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/24px 'Archivo', system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
/* Headlines: Archivo at its wide width. Text: Archivo at normal width. */
h1, h2, h3, .wordmark, .giant { font-family: 'Archivo', system-ui, sans-serif; font-stretch: 112%; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
/* Icons only (Phosphor geometry). Receipts carry their own SVGs, so never style svg globally. */
.btn svg, .text-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: var(--paper); text-decoration: none; transition: top 300ms var(--ease); }
.skip:focus { top: 16px; }

.eyebrow { font: 500 14px/20px 'Martian Mono', monospace; color: var(--soft); letter-spacing: .02em; }
.lede { font-size: 18px; line-height: 28px; color: var(--soft); max-width: 560px; }
main { overflow-x: clip; }
main section { padding: 96px 24px; }
.section-head { max-width: 1120px; margin: 0 auto 48px; display: grid; gap: 16px; }
.section-head h2 { font-size: 48px; line-height: 1; letter-spacing: -.03em; }

/* ---------- buttons ---------- */
.btn, .chip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; border: 1px solid var(--ink); cursor: pointer;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease); }
.btn { padding: 12px 24px; border-radius: 9999px; font-size: 16px; line-height: 24px; }
.chip { padding: 8px 16px; border-radius: 9999px; font-size: 14px; line-height: 20px; }
.btn-ink, .pill-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover, .pill-ink:hover { transform: translateY(-2px); background: #000; }
.btn:active, .chip:active { transform: scale(.98); transition-timing-function: var(--press); transition-duration: 120ms; }
.btn[aria-disabled=true] { background: transparent; color: var(--soft); border-color: var(--line-strong); cursor: not-allowed; transform: none; }
.btn .soon { font: 500 12px/16px 'Martian Mono', monospace; padding: 2px 8px; border-radius: 9999px; border: 1px solid currentColor; }
.text-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 0; background: none; cursor: pointer; font-size: 14px; line-height: 20px; color: var(--ink); border-radius: 8px; transition: background-color 300ms var(--ease); }
.text-btn:hover { background: var(--surface); }
.text-btn:active { transform: translateY(1px); }
.text-btn svg { width: 16px; height: 16px; transition: transform 300ms var(--ease); }
.text-btn:hover svg { transform: translateX(2px); }

/* The bar and its menu are in reader.css. */
.wordmark { font: 800 24px/32px 'Archivo', system-ui, sans-serif; font-stretch: 125%; letter-spacing: -.03em; text-decoration: none; }

/* ---------- hero: headline over a receipt printer ---------- */
.intro { max-width: 1216px; margin: 0 auto; padding-top: 40px; padding-bottom: 0; display: grid; justify-items: center; gap: 48px; }
.hero-copy { min-width: 0; display: grid; justify-items: center; gap: 24px; text-align: center; max-width: 1040px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 8px; border-radius: 9999px; border: 1px solid var(--line); background: var(--surface);
  font: 500 14px/20px 'Martian Mono', monospace; color: var(--soft); }
.eyebrow-pill .led { width: 8px; height: 8px; border-radius: 9999px; background: #2fbf71; box-shadow: 0 0 0 4px rgba(47, 191, 113, .16); }
.headline { font-size: 96px; line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.headline .l1 { display: block; color: #8e9096; }
.headline .l2 { display: block; color: var(--ink); }
.sub { font-size: 20px; line-height: 28px; color: var(--soft); max-width: 600px; text-wrap: balance; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.cta-row .text-btn { font-size: 16px; line-height: 24px; padding: 8px 12px; text-decoration: none; }
.assure { font-size: 14px; line-height: 20px; color: var(--soft); }

.stage { position: relative; width: 100%; min-width: 0; display: grid; justify-items: center; padding-bottom: 96px; --k: .6; }
.machine { position: relative; z-index: 2; display: grid; justify-items: center; }
/* The printer: matte body, a slot the paper feeds from, a tiny LCD and a real FEED button. */
.tp80 { position: relative; z-index: 3; width: calc(780px * var(--k) + var(--pad, 96px)); height: 112px; border-radius: 32px 32px 24px 24px; background: #1c1c1c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -10px 0 rgba(0, 0, 0, .28), 0 32px 48px -24px rgba(19, 19, 19, .55), 0 2px 4px rgba(19, 19, 19, .3); }
.tp80 .model { position: absolute; left: 32px; top: 24px; font: 500 12px/16px 'Martian Mono', monospace; letter-spacing: .24em; color: rgba(255, 255, 255, .4); }
.tp80 .lcd { position: absolute; left: 32px; top: 48px; min-width: 168px; padding: 4px 8px; border-radius: 4px; background: #11140f; color: #9be38a;
  font: 500 12px/16px 'Martian Mono', monospace; letter-spacing: .08em; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); white-space: nowrap; }
.tp80 .status { position: absolute; right: 120px; top: 30px; width: 8px; height: 8px; border-radius: 9999px; background: #2fbf71; box-shadow: 0 0 8px #2fbf71; }
.tp80 .status.busy { background: #ffb547; box-shadow: 0 0 8px #ffb547; }
.feed-btn { position: absolute; right: 32px; top: 20px; width: 64px; height: 40px; border-radius: 12px; border: 0; cursor: pointer; background: #2e2e2e; color: rgba(255, 255, 255, .78);
  font: 600 12px/16px 'Martian Mono', monospace; letter-spacing: .12em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 3px 0 #0a0a0a; transition: transform 160ms var(--press), box-shadow 160ms var(--press), background-color 300ms var(--ease); }
.feed-btn:hover { background: #3a3a3a; }
.feed-btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 #0a0a0a; }
.feed-btn:focus-visible { outline-color: #9be38a; }
.tp80 .slot { position: absolute; left: 32px; right: 32px; bottom: 16px; height: 12px; border-radius: 6px; background: #070707; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .8); }
/* Paper window: clipped only at the top (under the slot), so the paper's shadow still falls on the desk. */
.feed { position: relative; z-index: 2; margin-top: -24px; width: calc(780px * var(--k) + var(--pad, 96px)); clip-path: inset(0 -240px -240px -240px); }
.roll { position: relative; height: calc(var(--ph, 0px) * var(--k)); }
/* Sheets stack in one cell; each centres its (wider, unscaled) paper box so the scaled paper sits mid-slot. */
.roll { display: grid; grid-template-columns: 100%; align-items: start; }
.roll > .sheet { grid-area: 1 / 1; display: flex; justify-content: center; }
.sheet .scaler { flex: none; }
.sheet .scaler { transform: scale(var(--k)); transform-origin: top center; }
/* A receipt rendered on its own: just the paper, straight out of the printer. */
.art.slip { width: auto; height: auto; display: block; overflow: visible; background: none !important; }
.art.slip::after { display: none; }
.art.slip .drop, .art.slip .stack { margin: 0 !important; transform: none !important; }
.art.slip .drop { padding: 0 0 48px; overflow: visible; }
/* Finished receipts on the desk either side. */
.desk { position: absolute; z-index: 1; top: 160px; pointer-events: none; }
.desk .scaler { transform: scale(.42); transform-origin: top left; }
.desk .sheet { width: max-content; }
.desk-l { left: calc(50% - min(660px, 50vw - 24px)); }
.desk-r { right: calc(50% - min(660px, 50vw - 24px)); }
.desk-r .scaler { transform-origin: top right; }

/* ---------- anatomy: tagline, then the receipt annotated part by part ---------- */
.anatomy { max-width: 1216px; margin: 0 auto; display: grid; gap: 64px; padding-top: 128px; }
.reveal-words { max-width: 760px; margin: 0 auto; text-align: center; font-size: 60px; line-height: 1; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
html.js .reveal-words { color: rgba(19, 19, 19, .28); }
.anat { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 64px; }
.anat-receipt { position: relative; z-index: 1; width: calc(720px * .56); height: calc(var(--ph, 1080px) * .56); }
.anat-receipt .scaler { transform: scale(.56); transform-origin: top left; }
.anat-receipt .art.slip .drop { padding-bottom: 0; }
.notes { position: relative; z-index: 2; margin: 0; padding: 0; list-style: none; display: grid; gap: 96px; }
.notes-l { text-align: right; justify-items: end; }
.note { display: grid; gap: 8px; max-width: 300px; }
.note .n { font: 500 12px/16px 'Martian Mono', monospace; color: var(--soft); letter-spacing: .08em; }
.note h3 { font-size: 20px; line-height: 28px; letter-spacing: -.01em; }
.note p { color: var(--soft); }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.leaders path { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.leaders rect { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 4 4; }
.leaders circle { fill: var(--ink); }

/* ---------- receipt frames (gallery, posts): the full 1080×1350 artboard scaled to fit ---------- */
.frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: var(--surface); }
.frame .art { position: absolute; left: 0; top: 0; transform-origin: top left; }

/* ---------- gallery ---------- */
.scenes { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scene { display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; padding: 12px 12px 16px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.scene .frame { border-radius: 12px; box-shadow: none; }
.scene .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; }
.scene h3 { font-size: 18px; line-height: 28px; }
.scene .cw { font: 400 14px/20px 'Martian Mono', monospace; color: var(--soft); }
.scene p { padding: 0 4px; font-size: 14px; line-height: 20px; color: var(--soft); }
.dots { display: flex; gap: 8px; padding: 0 4px; flex-wrap: wrap; }
.dot { width: 32px; height: 32px; padding: 0; border-radius: 9999px; border: 0; cursor: pointer; background: var(--a);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); position: relative; overflow: hidden; }
.dot::after { content: ''; position: absolute; inset: 50% 0 0 0; background: var(--b); }
.dot:hover { transform: scale(1.08); }
.dot:active { transform: scale(.96); }
.dot[aria-pressed=true] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }

:root { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* ---------- how it works: steps scroll, the stage shows each one ---------- */
.how-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; }
.step { min-height: 72vh; display: grid; align-content: center; gap: 12px; padding: 32px 0; }
.step .num { font: 500 14px/20px 'Martian Mono', monospace; color: var(--soft); }
.step h3 { font-size: 36px; line-height: 40px; letter-spacing: -.03em; }
.step p { color: var(--soft); font-size: 18px; line-height: 28px; max-width: 420px; }
.js .how-grid.staged .step { opacity: .28; transition: opacity 500ms var(--ease); }
.js .how-grid.staged .step.on { opacity: 1; }
.how-stage { position: sticky; top: calc(50vh - 260px); height: 520px; }
.how-stage .panel { position: absolute; inset: 0; }
.how-grid:not(.staged) .how-stage { display: none; }

/* Shared window frame for the three mock screens. */
.panel .win { position: relative; height: 100%; border-radius: 24px; background: #ffffff; border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 40px 64px -40px rgba(19, 19, 19, .35); font-size: 14px; line-height: 20px; }
.step .panel { margin-top: 24px; }
.step .panel .win { height: auto; min-height: 360px; }

/* 1. Browser on X analytics */
.p-browser .chrome { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.p-browser .chrome i { width: 12px; height: 12px; border-radius: 9999px; background: var(--line); }
.p-browser .tab { margin-left: 12px; padding: 4px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 12px; line-height: 16px; }
.p-browser .bar { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.p-browser .url { flex: 1; padding: 4px 12px; border-radius: 9999px; background: var(--surface); font: 400 12px/16px 'Martian Mono', monospace; color: var(--soft); }
.p-browser .ext { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; }
.p-browser .ext svg { width: 20px; height: 20px; fill: none; stroke: var(--soft); stroke-width: 14; stroke-linejoin: round; }
.p-browser .kit-ico { background: var(--ink); }
.p-browser .kit-ico svg path:first-child { fill: var(--paper); stroke: none; }
.p-browser .kit-ico svg path:last-child { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; fill: none; }
.p-browser .page { padding: 24px; display: grid; gap: 24px; }
.p-browser .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-browser .kpis div { padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.p-browser .kpis small { color: var(--soft); font-size: 12px; line-height: 16px; }
.p-browser .kpis b { font: 500 24px/32px 'Martian Mono', monospace; letter-spacing: -.04em; }
.p-browser .chart { height: 160px; display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid var(--line); }
.p-browser .chart i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: #deded8; }
.p-browser .chart i.today { background: var(--ink); }
.p-browser .pop { position: absolute; right: 16px; top: 112px; width: 216px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(19, 19, 19, .45); display: grid; gap: 12px; transform-origin: top right; }
.p-browser .pop-k { font: 900 20px/24px 'Archivo', sans-serif; font-stretch: 62%; letter-spacing: .02em; }
.p-browser .pop ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.p-browser .pop li { display: flex; justify-content: space-between; color: var(--soft); }
.p-browser .pop li span { color: #1f7a49; font-weight: 700; }
.p-browser .pop-done { padding: 8px 12px; border-radius: 9999px; background: var(--ink); color: var(--paper); text-align: center; font-weight: 600; }
.p-browser .cursor { position: absolute; left: 40%; top: 70%; width: 24px; height: 24px; fill: var(--ink); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }

/* 2. Picker */
.p-picker .win { display: grid; grid-template-columns: 1fr 1fr; }
.p-picker .pick-l { padding: 24px; display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--line); }
.p-picker small { font: 500 12px/16px 'Martian Mono', monospace; color: var(--soft); }
.p-picker .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.p-picker .tiles i { aspect-ratio: 4 / 3; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: box-shadow 300ms var(--ease); }
.p-picker .tiles i.sel, .p-picker .cdots i.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.p-picker .cdots { display: flex; gap: 8px; }
.p-picker .cdots i { width: 24px; height: 24px; border-radius: 9999px; background: var(--c); transition: box-shadow 300ms var(--ease); }
.p-picker .checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.p-picker .checks li { display: flex; align-items: center; gap: 8px; color: var(--soft); }
.p-picker .checks li::before { content: ''; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-strong); }
.p-picker .checks li.on { color: var(--ink); }
.p-picker .checks li.on::before { border-color: var(--ink); background: var(--ink) var(--tick) center / 14px no-repeat; }
.p-picker .pick-r { display: grid; place-items: center; padding: 24px; background: var(--surface); }
.p-picker .shots { position: relative; width: 100%; max-width: 280px; aspect-ratio: 4 / 5; }
.p-picker .shots img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; box-shadow: 0 24px 40px -24px rgba(19, 19, 19, .5); }

/* 3. Composer */
.p-compose .win { display: grid; align-content: start; gap: 16px; padding: 24px; }
.p-compose .compose-row { display: flex; gap: 12px; align-items: flex-start; }
.p-compose .avatar { width: 40px; height: 40px; flex: none; border-radius: 9999px; display: grid; place-items: center; background: #c92f22; color: #fff; font-weight: 600; }
.p-compose .field { font-size: 20px; line-height: 28px; padding-top: 6px; min-height: 34px; }
.p-compose .caret { display: inline-block; width: 2px; height: 22px; margin-left: 2px; vertical-align: -4px; background: #1d9bf0; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.p-compose .attach { position: relative; margin-left: 52px; width: 248px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.p-compose .attach img { width: 100%; height: 100%; display: block; }
.p-compose .tools { display: flex; align-items: center; gap: 12px; margin-left: 52px; padding-top: 12px; border-top: 1px solid var(--line); }
.p-compose .t-ico { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #8ecdf8; }
.p-compose .post-btn { margin-left: auto; padding: 8px 20px; border-radius: 9999px; background: #0f1419; color: #fff; font-weight: 700; }
.p-compose .posted { margin-left: 52px; color: var(--soft); font: 400 14px/20px 'Martian Mono', monospace; }
.p-compose .posted .heart { color: #f91880; margin-right: 6px; }
.p-compose .posted b { color: var(--ink); font-weight: 600; }

/* ---------- posts: two lanes of X posts drifting in opposite directions ---------- */
.proof { padding-left: 0; padding-right: 0; }
.proof .section-head { padding: 0 24px; }
.wall { display: grid; gap: 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lane { overflow: hidden; }
.track { display: flex; gap: 24px; width: max-content; padding: 4px 0; }
.post { flex: none; width: 320px; display: grid; gap: 12px; align-content: start; padding: 16px; border-radius: 24px; background: #ffffff; border: 1px solid var(--line); }
.post .who { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; }
.post .avatar { width: 40px; height: 40px; border-radius: 9999px; display: grid; place-items: center; font: 600 14px/20px 'Archivo'; color: #fff; flex: none; }
.post .who b { display: block; font-weight: 600; }
.post .who span { color: var(--soft); }
.post .text { font-size: 16px; line-height: 24px; text-wrap: pretty; }
.post .media { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.post .media img { display: block; width: 100%; height: 100%; }
.post .media.loading { background: linear-gradient(100deg, var(--surface) 30%, #f4f4f1 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.post .stats { display: flex; justify-content: space-between; padding: 0 4px; font: 400 12px/16px 'Martian Mono', monospace; color: var(--soft); }
.post .stats span { display: inline-flex; align-items: center; gap: 4px; }
.post .stats svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.posts-note { max-width: 1120px; margin: 24px auto 0; padding: 0 24px; font-size: 14px; line-height: 20px; color: var(--soft); text-align: center; }

/* ---------- FAQ ---------- */
.qa { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
.qa details { border-top: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; cursor: pointer; font-size: 18px; line-height: 28px; font-weight: 600; border-radius: 8px; }
.qa summary::-webkit-details-marker { display: none; }
.qa .plus { position: relative; width: 16px; height: 16px; flex: none; }
.qa .plus::before, .qa .plus::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 500ms var(--ease); }
.qa .plus::after { transform: rotate(90deg); }
.qa details[open] .plus::after { transform: rotate(0deg); }
.qa details p { padding: 0 32px 24px 0; color: var(--soft); }

/* ---------- the counter: final CTA bill and footer share one ink surface ---------- */
.final { background: var(--ink); color: var(--paper); padding-top: 128px; padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 64px; }
.final-head { display: grid; justify-items: center; gap: 16px; text-align: center; }
.final-head h2 { font-size: 72px; line-height: 1; letter-spacing: -.045em; }
.final .lede { color: #b9b9b5; text-align: center; }
.till { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; width: 100%; min-width: 0; max-width: 560px; }
.till-slot { position: relative; z-index: 2; width: 100%; height: 24px; border-radius: 12px; background: #050505; box-shadow: inset 0 3px 4px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .08); }
.bill-window { position: relative; z-index: 1; margin-top: -12px; width: 440px; max-width: 100%; clip-path: inset(0 -200px -200px -200px); filter: drop-shadow(0 32px 40px rgba(0, 0, 0, .55)); }
.bill { position: relative; display: grid; gap: 16px; padding: 48px 32px 40px; color: #1a1a1a; background: #f7f4ec; font: 500 14px/20px 'Plex Mono', 'Martian Mono', monospace;
  letter-spacing: .02em; }
.bill::before { content: ''; position: absolute; inset: 0; background: var(--tx-grain) 0 0 / 400px; mix-blend-mode: multiply; opacity: .45; pointer-events: none; }
.bill > * { position: relative; }
.bill-k { text-align: center; letter-spacing: .14em; font-size: 12px; line-height: 16px; }
.bill-meta { text-align: center; font-size: 12px; line-height: 16px; color: #55575c; }
.bill hr { margin: 0; border: 0; border-top: 2px dashed rgba(26, 26, 26, .4); }
.bill-lines { margin: 0; display: grid; gap: 8px; }
.bill-lines div { display: flex; align-items: baseline; gap: 8px; }
.bill-lines dt { text-transform: uppercase; }
.bill-lines div::after { content: ''; order: 1; flex: 1; border-bottom: 2px dotted rgba(26, 26, 26, .35); transform: translateY(-4px); }
.bill-lines dd { order: 2; margin: 0; font-weight: 700; }
.bill-total { display: flex; justify-content: space-between; align-items: baseline; font: 700 20px/28px 'Plex Mono', monospace; letter-spacing: .08em; }
.bill-total b { font: 900 60px/1 'Archivo', sans-serif; font-stretch: 62%; letter-spacing: -.01em; }
.bill-cta { justify-self: center; font-family: 'Archivo', system-ui, sans-serif; letter-spacing: 0; }
.bill .assure { text-align: center; font: 400 12px/16px 'Archivo', sans-serif; color: #55575c; letter-spacing: 0; }
.bill-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bill-code .barcode { display: flex; height: 56px; }
.bill-code .barcode i { display: block; background: #1a1a1a; }
.bill-code .barcode i.gap { background: transparent; }
.bill-thanks { text-align: center; font-weight: 700; letter-spacing: .1em; }
.bill-stamp { flex: none; display: grid; justify-items: center; padding: 8px 16px; border: 6px double #d0342c; border-radius: 8px; color: #d0342c;
  font: 700 36px/1 'Plex Mono', monospace; letter-spacing: .08em; transform: rotate(-12deg); mix-blend-mode: multiply;
  -webkit-mask-image: var(--tx-grunge); mask-image: var(--tx-grunge); -webkit-mask-size: 300px; mask-size: 300px; mask-mode: luminance; }
.bill-stamp small { font-size: 12px; line-height: 16px; letter-spacing: .1em; }
.bill .btn[aria-disabled=true] { background: transparent; color: #55575c; border-color: rgba(26, 26, 26, .35); }

.site-foot { position: relative; background: var(--ink); color: #c9c9c2; overflow: hidden; }
.tape { background: #f7f4ec; color: #1a1a1a; padding: 12px 0; overflow: hidden; font: 600 14px/20px 'Plex Mono', 'Martian Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.tape-track { display: flex; gap: 48px; width: max-content; white-space: nowrap; }
.tape-track span::before { content: '✶'; margin-right: 48px; color: #d0342c; }
.foot-grid { max-width: 1120px; margin: 0 auto; padding: 80px 24px 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.foot-brand { display: grid; gap: 16px; align-content: start; max-width: 360px; }
.foot-brand .wordmark { color: var(--paper); }
.foot-brand p { color: #a9abb0; }
.clock { font: 500 12px/16px 'Martian Mono', monospace; letter-spacing: .08em; color: #9be38a !important; }
.site-foot nav { display: grid; gap: 12px; align-content: start; font-size: 14px; line-height: 20px; }
.site-foot nav h3 { font: 500 12px/16px 'Martian Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #a9abb0; margin-bottom: 4px; }
.site-foot nav a { color: #c9c9c2; text-decoration: none; justify-self: start; transition: color 300ms var(--ease); }
.site-foot nav a:hover { color: #ffffff; }
.giant { font: 700 16.6vw/.78 'Archivo', sans-serif; letter-spacing: -.05em; color: var(--paper); text-align: center; margin: 24px 0 -4vw; user-select: none; white-space: nowrap; }
.site-foot .fine { position: relative; max-width: 1120px; margin: 0 auto; padding: 24px; color: #a9abb0; font: 400 12px/16px 'Martian Mono', monospace; }
.page + .site-foot, .page ~ .site-foot { margin-top: 0; }

/* ---------- simple pages (privacy, 404) ---------- */
.page { max-width: 680px; margin: 0 auto; padding: 96px 24px; display: grid; gap: 24px; }
.page h1 { font-size: 48px; line-height: 1; letter-spacing: -.03em; }
.page h2 { font-size: 20px; line-height: 28px; margin-top: 16px; }
.page p, .page li { color: var(--soft); }
.page ul { margin: 0; padding-left: 24px; display: grid; gap: 8px; }
.page .back { justify-self: start; }

/* ---------- scroll reveal ---------- */
/* Hidden until GSAP reveals them; without JS everything simply shows. */
.js .reveal { visibility: hidden; }
.js .intro { visibility: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .headline { font-size: 72px; }
}
@media (max-height: 1000px) and (min-width: 761px) {
  .headline { font-size: 80px; }
  .hero-copy { gap: 16px; }
}
@media (max-width: 1024px) {
  .desk { display: none; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .scenes { grid-template-columns: repeat(2, 1fr); }
  .anat { grid-template-columns: minmax(0, 1fr); min-width: 0; width: 100%; justify-items: center; gap: 48px; }
  .notes { grid-template-columns: 1fr 1fr; gap: 32px; width: 100%; max-width: 680px; }
  .notes-l { text-align: left; justify-items: start; }
  .notes-l { order: 2; } .anat-receipt { order: 1; } .notes-r { order: 3; }
  .leaders { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  main section { padding: 64px 16px; }
  .intro { padding-top: 48px; gap: 48px; }
  .headline { font-size: 48px; }
  .sub { font-size: 18px; line-height: 28px; }
  .tp80 { height: 104px; }
  .tp80 .model { left: 24px; }
  .tp80 .lcd { left: 24px; min-width: 0; }
  .tp80 .status { right: 104px; }
  .feed-btn { right: 24px; }
  .reveal-words { font-size: 36px; line-height: 40px; }
  .section-head h2 { font-size: 36px; line-height: 40px; }
  .scenes, .qa, .notes { grid-template-columns: minmax(0, 1fr); }
  .step { min-height: 0; }
  .step h3 { font-size: 24px; line-height: 32px; }
  .p-picker .win { grid-template-columns: 1fr; }
  .p-picker .pick-r { display: none; }
  .p-compose .attach { width: 150px; }
  .anatomy { padding-top: 96px; gap: 48px; }
  .anat-receipt { width: calc(720px * .44); height: calc(var(--ph, 1080px) * .44); }
  .anat-receipt .scaler { transform: scale(.44); }
  .post { width: 272px; }
  .final { padding-top: 96px; gap: 48px; }
  .final-head h2 { font-size: 36px; line-height: 40px; }
  .bill { padding: 40px 24px 32px; }
  .bill-stamp { font-size: 24px; }
  .bill-code .barcode i { max-width: 4px; }
  .foot-grid { grid-template-columns: 1fr; padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; transition-delay: 0ms !important; animation: none !important; }
  .js .reveal, .js .intro { visibility: visible; }
  html.js .reveal-words { color: var(--ink); }
}


/* ---------- kit: shared paper objects for the hub, tool pages and simple pages ----------
   Loose paper on the desk rather than framed boxes: layered shadows, cut edges, measured notes.
   Every class is prefixed kt- so nothing can collide with receipt class names. */
:root { --tint: rgba(224, 64, 64, .08); /* the extension's own follow-back tint (src/followback/content.ts) */
  --shadow-paper: 0 1px 1px rgba(19, 19, 19, .06), 0 8px 16px -8px rgba(19, 19, 19, .16), 0 32px 48px -28px rgba(19, 19, 19, .3); }
.kit-page .soon { font: 500 12px/16px 'Martian Mono', monospace; border: 1px solid currentColor; border-radius: 999px; padding: 2px 6px; }
.kit-later { color: var(--soft); }

/* Tool glyphs: tiny drawings of what each tool makes. Decorative; the ticket text names the tool. */
.kt-glyph { position: relative; display: block; width: 72px; height: 56px; flex: none; }
.kt-glyph i { position: absolute; display: block; }
.kt-g-receipt i:nth-child(1) { left: 22px; top: 2px; width: 28px; height: 50px; background: #fff; box-shadow: 0 4px 8px -4px rgba(19, 19, 19, .4);
  -webkit-mask: conic-gradient(from 135deg at bottom, #0000 90deg, #000 0) bottom / 6px 4px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 3px) no-repeat;
  mask: conic-gradient(from 135deg at bottom, #0000 90deg, #000 0) bottom / 6px 4px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 3px) no-repeat; }
.kt-g-receipt i:nth-child(2) { left: 27px; top: 9px; width: 18px; height: 6px; background: var(--ink); }
.kt-g-receipt i:nth-child(3) { left: 27px; top: 20px; width: 18px; height: 18px; background: repeating-linear-gradient(var(--ink) 0 1px, transparent 1px 4px); opacity: .55; }
.kt-g-follow i { left: 10px; right: 10px; height: 12px; border-bottom: 1px solid var(--line-strong); }
.kt-g-follow i::before { content: ''; position: absolute; left: 4px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.kt-g-follow i::after { content: ''; position: absolute; left: 16px; top: 4px; width: 24px; height: 3px; background: var(--soft); opacity: .6; }
.kt-g-follow i:nth-child(1) { top: 8px; }
.kt-g-follow i:nth-child(2) { top: 22px; background: rgba(224, 64, 64, .22); }
.kt-g-follow i:nth-child(3) { top: 36px; }
.kt-g-pace i:nth-child(1) { left: 6px; right: 6px; top: 22px; height: 14px; border-block: 1px solid var(--ink); background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 6px); }
.kt-g-pace i:nth-child(2) { left: 6px; top: 23px; width: 38px; height: 12px; background: #d9dde8; mix-blend-mode: multiply; }
.kt-g-pace i:nth-child(3) { left: 43px; top: 14px; width: 2px; height: 30px; background: var(--ink); }
.kt-g-recap i { width: 26px; height: 40px; background: #fff; box-shadow: 0 4px 8px -4px rgba(19, 19, 19, .4); top: 8px; }
.kt-g-recap i:nth-child(1) { left: 18px; transform: rotate(-9deg); background: #f4f4f1; }
.kt-g-recap i:nth-child(2) { left: 28px; transform: rotate(6deg); }
.kt-g-recap i:nth-child(3) { left: 33px; top: 16px; width: 16px; height: 3px; background: var(--ink); box-shadow: 0 6px 0 var(--line-strong), 0 12px 0 var(--line-strong); transform: rotate(6deg); }
.kt-g-post i:nth-child(1) { left: 16px; top: 4px; width: 40px; height: 48px; background: var(--ink); border-radius: 3px; box-shadow: 0 4px 8px -4px rgba(19, 19, 19, .5); }
.kt-g-post i:nth-child(2) { left: 21px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); }
.kt-g-post i:nth-child(3) { left: 21px; top: 24px; width: 28px; height: 14px; background: repeating-linear-gradient(var(--paper) 0 2px, transparent 2px 5px); opacity: .8; }

.kt-g-analytics i:nth-child(1) { left: 12px; top: 6px; width: 48px; height: 44px; background: #fff; border-radius: 4px; box-shadow: 0 4px 8px -4px rgba(19, 19, 19, .4); }
.kt-g-analytics i:nth-child(2) { left: 18px; top: 12px; width: 18px; height: 6px; background: var(--ink); border-radius: 1px; }
.kt-g-analytics i:nth-child(3) { left: 18px; top: 24px; width: 36px; height: 20px; background: linear-gradient(#4a6fb5 0 0) 0 0 / 100% 100%; clip-path: polygon(0 80%, 22% 62%, 40% 70%, 58% 20%, 72% 50%, 100% 30%, 100% 42%, 72% 62%, 58% 34%, 40% 82%, 22% 74%, 0 92%); }
.kt-g-ledger i:nth-child(1) { left: 12px; top: 6px; width: 48px; height: 44px; background: #f4f4f1; border-radius: 2px; box-shadow: 0 4px 8px -4px rgba(19, 19, 19, .4); }
.kt-g-ledger i:nth-child(2) { left: 18px; top: 12px; width: 24px; height: 10px; background: var(--ink); }
.kt-g-ledger i:nth-child(3) { left: 18px; top: 30px; width: 36px; height: 8px; border-block: 1px solid var(--ink); background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 6px), linear-gradient(#2758ce 0 0) 0 0 / 64% 100% no-repeat; }

/* Ticket rail: tear-off stubs that link the kit together (homepage index, tool pages, 404). */
.kt-rail { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 16px; }
.kt-ticket { position: relative; display: block; text-decoration: none; color: var(--ink); filter: drop-shadow(0 1px 1px rgba(19, 19, 19, .08)) drop-shadow(0 12px 14px rgba(19, 19, 19, .1));
  transition: transform 300ms var(--ease), filter 300ms var(--ease); -webkit-tap-highlight-color: transparent; }
.kt-ticket-paper { display: grid; grid-template-rows: auto 1fr; gap: 16px; height: 100%; padding: 20px 20px 18px; background: var(--surface);
  background-image: linear-gradient(90deg, var(--line-strong) 50%, transparent 0); background-size: 8px 1px; background-repeat: repeat-x; background-position: 0 92px;
  -webkit-mask: radial-gradient(circle 8px at 0 92px, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 92px, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 8px at 0 92px, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 92px, #0000 97%, #000) right / 51% 100% no-repeat; border-radius: 6px; }
.kt-ticket .kt-glyph { height: 56px; transition: transform 300ms var(--ease); }
.kt-ticket-text { display: grid; gap: 4px; align-content: start; padding-top: 8px; }
.kt-ticket-name { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -.01em; }
.kt-ticket-line { font-size: 13px; line-height: 18px; color: var(--soft); }
.kt-ticket-here { font: 500 11px/16px 'Martian Mono', monospace; color: var(--soft); }
@media (hover: hover) {
  .kt-ticket:hover { transform: translateY(-4px) rotate(-1deg); filter: drop-shadow(0 1px 1px rgba(19, 19, 19, .08)) drop-shadow(0 18px 18px rgba(19, 19, 19, .16)); }
  .kt-ticket:nth-child(even):hover { transform: translateY(-4px) rotate(1deg); }
  .kt-ticket:hover .kt-glyph { transform: translateY(-2px) scale(1.04); }
}
.kt-ticket:active { transform: scale(.96); transition-duration: 150ms; transition-timing-function: ease-out; }
.kt-ticket:focus-visible { outline-offset: 6px; }

/* Measured notes: a dashed leader from a short mono label to the part it explains. */
.kt-note { position: absolute; z-index: 6; max-width: 190px; font: 500 12px/16px 'Martian Mono', monospace; color: var(--ink); }
.kt-note::before { content: ''; position: absolute; top: 8px; width: var(--lead, 56px); border-top: 1px dashed var(--ink); }
.kt-note::after { content: ''; position: absolute; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.kt-note.to-r::before { left: calc(100% + 8px); }
.kt-note.to-r::after { left: calc(100% + 8px + var(--lead, 56px)); }
.kt-note.to-l { text-align: right; }
.kt-note.to-l::before { right: calc(100% + 8px); }
.kt-note.to-l::after { right: calc(100% + 8px + var(--lead, 56px)); }
.kt-note small { display: block; font: 400 12px/16px 'Archivo', sans-serif; color: var(--soft); }

/* A loose sheet of paper with a soft cast shadow. */
.kt-sheet { position: relative; background: var(--surface); border-radius: 4px; box-shadow: var(--shadow-paper); }
.kt-tag { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/16px 'Martian Mono', monospace; color: var(--soft); }
.kt-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: #ecece8; box-shadow: inset 0 1px 2px rgba(19, 19, 19, .08); }
.kt-seg button { border: 0; background: transparent; color: var(--soft); padding: 8px 14px; border-radius: 7px; cursor: pointer; font: 500 14px/20px 'Archivo', sans-serif;
  transition: background-color 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out, transform 150ms ease-out; -webkit-tap-highlight-color: transparent; }
.kt-seg button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(19, 19, 19, .14), 0 0 0 1px rgba(19, 19, 19, .06); }
.kt-seg button:not(:disabled):active { transform: scale(.96); }
@media (hover: hover) { .kt-seg button:not([aria-pressed=true]):hover { color: var(--ink); } }
.kt-swatches { display: inline-flex; gap: 10px; align-items: center; padding: 6px 2px; }
.kt-swatches button { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid rgba(19, 19, 19, .18); background: var(--swatch); cursor: pointer; transition: transform 150ms ease-out, box-shadow 150ms ease-out; }
.kt-swatches button[aria-pressed=true] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.kt-swatches button:not(:disabled):active { transform: scale(.96); }
.kt-label { display: grid; gap: 8px; font: 500 12px/16px 'Martian Mono', monospace; color: var(--soft); }

/* ---------- tool pages ---------- */
:root { --pad: max(24px, calc((100vw - 1200px) / 2)); }
.kt-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; padding: 56px var(--pad) 96px; min-height: min(820px, calc(100vh - 80px)); }
.kt-hero-copy { display: grid; justify-items: start; gap: 24px; min-width: 0; }
.kt-crumbs { display: flex; gap: 8px; align-items: center; font: 500 13px/20px 'Martian Mono', monospace; color: var(--soft); }
.kt-crumbs a { color: var(--soft); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color 150ms ease-out, border-color 150ms ease-out; }
.kt-crumbs a:hover { color: var(--ink); border-color: var(--ink); }
.kt-hero h1 { font-size: clamp(48px, 5.4vw, 80px); line-height: .98; letter-spacing: -.055em; }
.kt-hero h1 span { color: #8e9096; }
.kt-hero .lede { font-size: 19px; line-height: 30px; max-width: 520px; }
.kt-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.kt-actions .text-btn { text-decoration: none; }
.kt-stage { position: relative; min-width: 0; display: grid; justify-items: center; gap: 24px; padding: 24px 0; }
.kt-stage-controls { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: end; justify-content: center; }
.kt-stage-foot { font-size: 13px; line-height: 20px; color: var(--soft); text-align: center; max-width: 440px; }

/* How it works: a numbered path (the steps are a real sequence). */
.kt-how { padding: 96px var(--pad); border-top: 1px solid var(--line); }
.kt-how h2, .kt-faq h2, .kt-more h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -.04em; max-width: 720px; }
.kt-steps { counter-reset: step; list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; position: relative; }
.kt-steps::before { content: ''; position: absolute; left: 20px; right: calc(33.33% - 20px); top: 20px; border-top: 1px dashed var(--line-strong); }
.kt-steps li { position: relative; display: grid; gap: 12px; align-content: start; }
.kt-steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink);
  font: 500 14px/1 'Martian Mono', monospace; margin-bottom: 12px; position: relative; }
.kt-steps h3 { font-size: 22px; line-height: 28px; letter-spacing: -.02em; }
.kt-steps p { color: var(--soft); max-width: 340px; }
.kt-how .gd-tool-link { margin-top: 24px; }

.kt-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; padding: 96px var(--pad); border-top: 1px solid var(--line); }
.kt-faq .qa { display: grid; grid-template-columns: 1fr; margin: 0; width: 100%; max-width: 760px; border-top: 1px solid var(--line); }
.kt-faq .qa details { border-top: 0; border-bottom: 1px solid var(--line); }
.kt-faq .qa summary { font-size: 17px; }

.kt-more { padding: 96px var(--pad) 112px; background: #f4f4f1; display: grid; gap: 40px; }
.kt-more-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.kt-more-head p { color: var(--soft); max-width: 420px; }
.kt-more .kt-rail { --n: 4; }

/* Follow-back: a Following list on a loose sheet, tinted exactly as the extension tints it. */
.kt-follow { width: min(100%, 520px); padding: 8px 0 12px; }
.kt-follow-tabs { display: flex; gap: 0; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.kt-follow-tabs span { padding: 16px 12px 14px; color: var(--soft); }
.kt-follow-tabs span:last-child { color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--ink); }
.kit-follow-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line);
  transition: background-color 300ms var(--ease) calc(var(--i, 0) * 90ms); }
.kit-follow-row:last-of-type { border-bottom: 0; }
.kit-follow-demo[data-on=true] .kit-follow-row[data-no-follow] { background-color: var(--tint); }
.kit-follow-row > span:nth-child(2) { display: grid; min-width: 0; font-size: 15px; line-height: 20px; }
.kit-follow-row small { color: var(--soft); font-size: 13px; }
.kit-follow-row small em { font-style: normal; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #f4f4f1; color: var(--soft); font-size: 12px; }
.kit-follow-row b { font-size: 13px; line-height: 18px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); }
.kit-initial, .kit-post-avatar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 14px/1 'Martian Mono', monospace; }
.kit-follow-row:nth-of-type(3n+2) .kit-initial { background: #55575c; }
.kit-follow-row:nth-of-type(3n) .kit-initial { background: #8a5a44; }
.kt-switch { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; position: relative; }
.kt-switch input { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 44px; height: 26px; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.kt-switch > span { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #c9c9c2; transition: background-color 150ms ease-out; flex: none; }
.kt-switch > span::before { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(19, 19, 19, .3); transition: transform 300ms var(--ease); }
.kt-switch input:checked + span { background: var(--ink); }
.kt-switch input:checked + span::before { transform: translateX(18px); }
.kt-switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 4px; }

/* Rewards: a ruler with the 500K line, a needle and a timeline of sample readings. */
.kt-ledger { width: min(100%, 560px); padding: 32px 32px 28px; display: grid; gap: 20px; }
.kt-ledger-label { font-size: 14px; color: var(--soft); }
.kit-rewards-output strong { display: block; white-space: nowrap; font: 500 clamp(44px, 4.6vw, 64px)/1 'Archivo', sans-serif; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.kit-rewards-output strong small { font-size: .3em; letter-spacing: -.01em; color: var(--soft); font-weight: 400; }
.kt-ruler { position: relative; height: 56px; border-block: 1px solid var(--ink); overflow-x: clip; overflow-y: visible;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 5%) 0 0 / 100% 40% no-repeat, repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 20%) 0 0 / 100% 70% no-repeat; }
.kt-ruler-fill { position: absolute; inset: 0; background: #d9dde8; mix-blend-mode: multiply; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 600ms var(--ease); }
.kt-ruler-needle { position: absolute; inset: -10px 0; transform: translateX(calc(var(--p, 0) * 100%)); transition: transform 600ms var(--ease), opacity 300ms var(--ease); pointer-events: none; }
.kt-ruler-needle::before { content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.kt-ruler-needle::after { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); }
.kt-ruler-scale { display: flex; justify-content: space-between; font: 500 11px/16px 'Martian Mono', monospace; color: var(--soft); }
.kt-ruler[data-empty=true] .kt-ruler-needle { opacity: 0; }
.kt-timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 18px; border-top: 1px dashed var(--line-strong); min-height: 64px; }
.kt-timeline li { list-style: none; display: grid; gap: 2px; font: 500 12px/16px 'Martian Mono', monospace; color: var(--soft); transition: opacity 300ms var(--ease); }
.kt-timeline li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); margin: -24px 0 8px; }
.kt-timeline li b { color: var(--ink); font-size: 14px; font-weight: 500; }
.kt-timeline li[hidden] { display: grid; visibility: hidden; opacity: 0; }
.kt-timeline { margin: 0; }
.kit-rewards-output p#rewards-copy { color: var(--soft); font-size: 15px; line-height: 22px; min-height: 44px; }
.kt-pace { font: 500 13px/18px 'Martian Mono', monospace; }

/* Recaps and post cards: the shared renderer's artboards, scaled into loose prints. */
.kt-board { position: relative; width: 100%; overflow: hidden; }
.kt-board > .art, .kt-board > .postcard { position: absolute; left: 0; top: 0; transform-origin: top left; }
.kt-board .postcard.frame { aspect-ratio: auto; border-radius: 0; }
.kt-print { width: min(100%, 400px); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-paper); rotate: -1.5deg; }
.kt-print.wide { width: min(100%, 520px); }
.kt-caption { display: grid; gap: 4px; text-align: center; font: 500 12px/18px 'Martian Mono', monospace; color: var(--soft); }
.kt-caption b { color: var(--ink); font-weight: 500; }

/* ---------- simple pages: privacy, terms, 404 ---------- */
.page { max-width: 1120px; grid-template-columns: minmax(0, 680px) minmax(0, 1fr); column-gap: 64px; align-items: start; overflow-wrap:anywhere; }
.page > * { grid-column: 1; }
.page > .kt-slip-wrap { grid-column: 2; grid-row: 1 / span 8; position: sticky; top: 120px; }
.kt-slip { padding: 28px 24px 32px; display: grid; gap: 12px; font: 500 13px/20px 'Martian Mono', monospace; background: #f7f4ec; rotate: 1.2deg;
  -webkit-mask: conic-gradient(from 135deg at bottom, #0000 90deg, #000 0) bottom / 12px 7px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat;
  mask: conic-gradient(from 135deg at bottom, #0000 90deg, #000 0) bottom / 12px 7px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat; }
.kt-slip-wrap { filter: drop-shadow(0 18px 20px rgba(19, 19, 19, .16)); }
.kt-slip h2 { font: 600 13px/20px 'Martian Mono', monospace; letter-spacing: .06em; margin: 0 0 8px; text-align: center; }
.kt-slip dl { margin: 0; display: grid; gap: 8px; }
.kt-slip dl div { display: flex; align-items: baseline; gap: 8px; }
.kt-slip dl div::after { content: ''; order: 1; flex: 1; border-bottom: 2px dotted rgba(19, 19, 19, .3); }
.kt-slip dd { order: 2; margin: 0; font-weight: 700; }
.kt-slip p { color: var(--soft); font: 400 13px/20px 'Archivo', sans-serif; border-top: 2px dashed rgba(19, 19, 19, .3); padding-top: 12px; }
.page .kt-rail { --n: 5; margin-top: 24px; grid-column: 1 / -1; }
@media (max-width: 1024px) { .page .kt-rail { --n: 3; } }
@media (max-width: 760px) { .page .kt-rail { --n: 2; } }
.page-404 { max-width: 1120px; }
.page-404 h1 { font-size: clamp(48px, 6vw, 80px); letter-spacing: -.05em; }

@media (max-width: 1024px) {
  .kt-hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-top: 40px; }
  .kt-rail { --n: 3; }
  .kt-more .kt-rail { --n: 2; }
  .page { grid-template-columns: minmax(0, 1fr); }
  .page > .kt-slip-wrap { grid-column: 1; grid-row: auto; position: static; max-width: 420px; }
}
@media (max-width: 760px) {
  :root { --pad: 20px; }
  .kt-hero { padding-bottom: 64px; }
  .kt-hero h1 { font-size: clamp(42px, 12vw, 56px); }
  .kt-hero .lede { font-size: 17px; line-height: 27px; }
  .kt-how, .kt-faq, .kt-more { padding-block: 64px; }
  .kt-steps { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .kt-steps::before { left: 20px; right: auto; top: 20px; bottom: 20px; border-top: 0; border-left: 1px dashed var(--line-strong); }
  .kt-steps li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
  .kt-steps li::before { grid-row: 1 / span 2; margin: 0; }
  .kt-faq { grid-template-columns: 1fr; gap: 24px; }
  .kt-rail, .kt-more .kt-rail { --n: 2; gap: 12px; }
  .kt-ticket-paper { padding: 16px 16px 14px; }
  .kt-ledger { padding: 24px 20px 20px; }
  .kit-follow-row { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 12px 14px; gap: 10px; }
  .kit-follow-row .kit-initial { width: 36px; height: 36px; font-size: 12px; }
  .kit-follow-row b { padding: 4px 10px; font-size: 12px; }
  .kt-follow-tabs { padding: 0 8px; }
  .kt-print { rotate: 0deg; }
  .page { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .kt-ticket, .kt-ticket .kt-glyph { transition: none; }
}
/* Stage art: the object on the left, its measured notes in a column on the right (wide screens only). */
.kt-art { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.kt-art > .kt-note { display: none; }
.kt-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; text-align: center; font-size: 20px; line-height: 28px; color: var(--soft); background: var(--surface); }
@media (min-width: 1200px) {
  .kt-art { grid-template-columns: minmax(0, 1fr) 168px; column-gap: 56px; }
  .kt-art > :first-child { justify-self: end; }
  .kt-art > .kt-note { display: block; right: 0; width: 168px; translate: 0 -8px; text-align: left; }
}

/* ---------- screenshots of the actual extension (captured images, local preview only; see site/captures.json), shared by the homepage and tool pages ----------
   Square-on in a hairline frame; each is a link to its full image, opened in a viewer dialog by site/shots.ts. */
:root { --shot-line: rgba(19, 19, 19, .14); --cobalt: #2b55e6; }
.shot { margin: 0; display: grid; gap: 10px; min-width: 0; }
.shot-link { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--shot-line);
  box-shadow: 0 1px 2px rgba(19, 19, 19, .06), 0 18px 40px -24px rgba(19, 19, 19, .32); cursor: zoom-in; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.shot-link img { display: block; width: 100%; height: auto; }
.shot-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 12px; }
.shot-enlarge { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(19, 19, 19, .78); color: #fff; font: 500 12px/18px 'Archivo', sans-serif;
  opacity: .0; transform: translateY(4px); transition: opacity 200ms ease-out, transform 200ms ease-out; pointer-events: none; }
.shot-link:hover .shot-enlarge, .shot-link:focus-visible .shot-enlarge { opacity: 1; transform: none; }
@media (hover: none) { .shot-enlarge { opacity: .9; transform: none; } }
@media (hover: hover) { .shot-link:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(19, 19, 19, .06), 0 24px 48px -24px rgba(19, 19, 19, .38); } }
.shot figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 12px; line-height: 18px; color: var(--soft); }
.shot-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 18px; color: var(--ink); }
.shot-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }

/* ---------- viewer dialog ---------- */
html.shot-open { overflow: hidden; }
.shot-viewer { width: min(1440px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, .5); overflow: hidden; }
.shot-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.shot-viewer::backdrop { background: rgba(20, 19, 17, .72); transition: background-color 300ms ease-out; }
@starting-style { .shot-viewer[open]::backdrop { background: rgba(20, 19, 17, 0); } }
.shot-viewer-bar { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.shot-viewer-title { font-size: 14px; line-height: 20px; font-weight: 500; min-width: 0; }
.shot-viewer-close { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; line-height: 20px; flex: none; }
.shot-viewer-close span { font-size: 18px; line-height: 1; }
.shot-viewer-actions { display: flex; gap: 8px; flex: none; }
.shot-viewer-actual { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; line-height: 20px; }
.shot-viewer-actual:hover { background: var(--paper); }
.shot-viewer-actual[hidden] { display: none; }
.shot-viewer-close:hover { background: var(--paper); }
.shot-viewer-body { overflow: auto; overscroll-behavior: contain; background: #f1f3f7; }
.shot-viewer-body:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 0; }
.shot-viewer-body img { display: block; width: 100%; height: auto; max-width: none; }

.shot-tag, .shot figcaption { font-family: 'Martian Mono', monospace; }
@media (prefers-reduced-motion: reduce) { .shot-link, .shot-enlarge, .shot-viewer::backdrop { transition: none; } }

/* Tool pages built around screenshots: the hero holds the page itself, the gallery the details. */
.kt-hero-shot { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); min-height: 0; align-items: start; padding-top: 48px; }
.kt-hero-shot .kt-hero-copy { padding-top: 24px; }
.kt-hero-shot h1 { font-size: clamp(40px, 4.2vw, 60px); }
@media (min-width: 1200px) { .kt-more .kt-rail { --n: 6; } }
.kt-hero-shot .kt-stage { padding: 0; justify-items: stretch; }
.kt-gallery { padding: 32px var(--pad) 96px; display: grid; gap: 32px; }
.kt-gallery h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.035em; }
.kt-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
.kt-gallery-grid .kt-wide { grid-column: 1 / -1; }
@media (max-width: 1024px) { .kt-hero-shot { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .kt-gallery { padding-bottom: 64px; }
  .kt-gallery-grid { grid-template-columns: 1fr; gap: 32px; }
  .kt-gallery-grid .shot, .kt-hero-shot .shot { max-width: 420px; }
}

/* Archivo's wide cut: headlines keep a moderate negative tracking. */
.section-head h2, .headline, .reveal-words, .step h3, .final-head h2, .page h1, .kt-hero h1, .kt-how h2, .kt-faq h2, .kt-more h2, .page-404 h1, .kt-gallery h2 { letter-spacing: -.022em; }
.kt-hero h1, .headline, .page-404 h1 { font-weight: 700; }
/* Tool pages without a captured image keep a single text column. */
.kt-hero-text { grid-template-columns: minmax(0, 1fr); }
.kt-hero-text .kt-hero-copy { max-width: 760px; }

.hero-copy, .steps, .step, .step .panel, .note { min-width: 0; max-width: 100%; }
@media (max-width: 359px) {
  .intro .headline { font-size: 40px; }
  .anat-receipt { width: calc(720px * .34); height: calc(var(--ph, 1080px) * .34); }
  .anat-receipt .scaler { transform: scale(.34); }
}

/* ---------- reader system on these pages (docs/v1/SITE-READER.md) ---------- */
html { scroll-padding-top: 104px; }
main { padding-top: 96px; }
h1, h2, .headline, .page h1, .kt-hero h1 { font-weight: 800; }
h3 { font-stretch: 100%; font-weight: 700; }
.section-head h2, .headline, .reveal-words, .final-head h2, .page h1, .kt-hero h1, .kt-how h2, .kt-faq h2, .kt-more h2, .page-404 h1, .kt-gallery h2 { letter-spacing: -.035em; }
/* Buttons are keys: a face, a lip underneath; hover lifts, press sinks. */
.btn, .chip { border: 0; border-radius: 14px; font-family: 'Archivo', system-ui, sans-serif; font-weight: 650; letter-spacing: -.01em; box-shadow: 0 4px 0 0 rgba(19, 19, 19, .3);
  transition: transform 140ms var(--ease), box-shadow 140ms var(--ease), background-color 160ms; }
.btn { padding: 14px 22px; font-size: 17px; line-height: 24px; }
.chip { padding: 9px 16px; border-radius: 12px; box-shadow: 0 3px 0 0 rgba(19, 19, 19, .3); }
.btn-ink, .pill-ink { background: var(--ink); color: #fff; }
.btn:not(.btn-ink), .chip:not(.pill-ink) { background: #fff; box-shadow: 0 4px 0 0 var(--ink), inset 0 0 0 1.5px var(--ink); }
@media (hover: hover) {
  .btn-ink:hover, .pill-ink:hover { transform: translateY(-1px); background: var(--ink); box-shadow: 0 5px 0 0 rgba(19, 19, 19, .3); }
  .btn:not(.btn-ink):hover { transform: translateY(-1px); box-shadow: 0 5px 0 0 var(--ink), inset 0 0 0 1.5px var(--ink); }
}
.btn:active, .chip:active { transform: translateY(4px); box-shadow: 0 0 0 0 rgba(19, 19, 19, .3); transition-duration: 60ms; }
.btn:not(.btn-ink):active { box-shadow: 0 0 0 0 var(--ink), inset 0 0 0 1.5px var(--ink); }
.btn[aria-disabled=true] { background: #e3e3dd; color: #8e9096; box-shadow: none; }
.btn:focus-visible, .chip:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 4px; border-radius: 14px; }
.text-btn { font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; border-radius: 6px; }
.text-btn:hover { background: none; }
:focus-visible { outline-width: 2.5px; border-radius: 6px; }
/* Footer: ink, with the wordmark in the printed voice. */
.site-foot { color: #c4c4be; }
.foot-brand .wordmark { color: #fff; }
.foot-brand p, .site-foot nav h3, .site-foot .fine { color: #a9abb0; }
.site-foot nav a { color: #e6e6e1; }
.giant { font: 900 16.4vw/.78 'Archivo', system-ui, sans-serif; font-stretch: 62%; letter-spacing: -.012em; text-transform: uppercase; color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn, .chip { transition: none; } }
.install-note { display: block; margin-top: 10px; color: var(--soft); flex-basis: 100%; }
.install-note[hidden] { display: none; }

/* A walkthrough of the shipped panel. Native radios keep it usable without scripts. */
.kr-preview { position: relative; width: min(100%, 460px); min-width: 0; margin: 0 auto; padding: clamp(12px, 3vw, 28px); border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); }
.kr-preview legend { padding: 0 8px; font: 600 13px 'Martian Mono', monospace; }
.kr-preview input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.kr-preview label { display: inline-flex; align-items: center; justify-content: center; padding: 0 9px; min-height: 44px; border-radius: 5px; cursor: pointer; font-size: 15px; font-weight: 650; }
.kr-preview input:checked + label { color: white; background: var(--ink); }
.kr-preview input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.kr-preview figure { display: none; margin: 16px 0 0; }
#kr-post:checked ~ .kr-post, #kr-draft:checked ~ .kr-draft, #kr-copy:checked ~ .kr-copy { display: block; }
.kr-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 5px; }
.kr-preview figcaption { margin-top: 16px; min-height: 2.8em; line-height: 1.4; }
.kr-note { margin: 10px 0 0; color: var(--soft); font-size: 11px; }
.kt-g-reply { display: grid; place-items: center; font: 700 46px/1 Archivo, sans-serif; }
.kit-reply .kt-faq .lede { max-width: 60ch; }
