/* Shop By Agent. Design tokens first, then base, layout and components.
   Shape rule: cards and panels 14px, controls 10px, chips and badges full pill. */

@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  /* colour: zinc neutrals, one accent (signal orange) */
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --muted: #52525b;
  --subtle: #6b6b74;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-ink: #ffffff;
  --accent-soft: #fff1e8;
  --accent-line: #fdba8c;
  --ok: #15803d;
  --focus: #c2410c;
  --shadow: 0 1px 2px rgb(24 24 27 / .04), 0 4px 16px -8px rgb(24 24 27 / .10);

  /* type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", var(--font-sans);
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --t-xs: .75rem;
  --t-sm: .875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --t-xl: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  --t-2xl: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);

  /* space (4px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.25rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem; --s-20: 5rem;

  /* shape */
  --r-panel: 14px;
  --r-control: 10px;
  --r-pill: 999px;

  --wrap: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0e;
    --surface: #141417;
    --surface-2: #1c1c21;
    --border: #27272c;
    --border-strong: #3a3a41;
    --text: #f4f4f5;
    --muted: #b4b4bc;
    --subtle: #94949e;
    --accent: #fb923c;
    --accent-hover: #fdba74;
    --accent-ink: #1c0a02;
    --accent-soft: rgb(251 146 60 / .12);
    --accent-line: rgb(251 146 60 / .4);
    --ok: #4ade80;
    --focus: #fb923c;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--t-base)/1.6 var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }
time { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-4); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s-8); } }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s-4); top: -100px; background: var(--text); color: var(--bg); padding: var(--s-2) var(--s-4); border-radius: var(--r-control); z-index: 20; }
.skip:focus { top: var(--s-2); }
.hp { position: absolute; left: -9999px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: var(--s-6); }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 56px; font: 650 var(--t-base)/1 var(--font-display); letter-spacing: -.01em; text-decoration: none; }
.brand:hover { color: var(--text); }
.brand { font-size: 1.0625rem; }
.logo { flex: none; color: var(--text); }
.logo-bag { fill: var(--accent); }
.logo-spark { fill: var(--accent-ink); }
.site-header nav { width: calc(100% + 2 * var(--s-4)); margin-inline: calc(var(--s-4) * -1); overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--border); }
.site-header nav::-webkit-scrollbar { display: none; }
.site-header nav ul { display: flex; justify-content: space-between; gap: 0; list-style: none; margin: 0; padding: var(--s-1) var(--s-2); }
.site-header nav a { display: block; padding: var(--s-2) 7px; border-radius: var(--r-control); font-size: var(--t-sm); font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { color: var(--text); background: var(--surface-2); }
.site-header nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
@media (min-width: 900px) {
  .site-header nav { width: auto; margin: 0; border: 0; }
  .site-header nav ul { padding: 0; gap: var(--s-1); }
  .site-header nav a { padding-inline: var(--s-3); }
}

/* ---------- hero ---------- */
.hero { padding-block: var(--s-10) var(--s-8); }
@media (min-width: 768px) { .hero { padding-block: var(--s-16) var(--s-10); } }
.fresh { display: inline-flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s-4); }
.fresh strong { color: var(--accent); font-weight: 600; }
.hero h1 { font-size: var(--t-2xl); max-width: 16ch; letter-spacing: -.035em; line-height: 1.02; }
.lede { font-size: var(--t-md); color: var(--muted); max-width: 60ch; margin-top: var(--s-4); }
.hero .lede { font-size: var(--t-lg); line-height: 1.45; max-width: 44ch; }

.platform-strip { display: flex; gap: var(--s-2); list-style: none; padding: 0; margin: var(--s-8) calc(var(--s-4) * -1) 0; padding-inline: var(--s-4); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.platform-strip::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .platform-strip { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; } }
.platform-strip li { scroll-snap-align: start; flex: none; }
.platform-strip a { display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-1) var(--s-3) var(--s-1) var(--s-1); border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 500; text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.platform-strip a:hover { border-color: var(--accent-line); color: var(--text); }
.platform-strip a:active { transform: translateY(1px); }
.n { font: 500 var(--t-xs)/1 var(--font-mono); color: var(--subtle); }

/* ---------- platform monogram ---------- */
.mono { display: inline-grid; place-items: center; flex: none; min-width: 28px; height: 28px; padding-inline: 5px; border-radius: 8px; background: var(--text); color: var(--bg); font: 600 11px/1 var(--font-mono); letter-spacing: -.02em; }
.mono-sm { min-width: 24px; height: 24px; border-radius: var(--r-pill); font-size: 10px; }
.mono-lg { min-width: 40px; height: 40px; border-radius: 11px; font-size: 13px; }
.monos { display: inline-flex; gap: 4px; }

/* ---------- filters ---------- */
.directory { padding-bottom: var(--s-12); }
.filters { display: grid; gap: var(--s-3); padding: var(--s-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); }
.search input { width: 100%; }
.selects { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.selects .check { grid-column: span 2; }
@media (min-width: 900px) {
  .filters { grid-template-columns: minmax(220px, 1fr) auto; align-items: center; }
  .selects { display: flex; flex-wrap: wrap; }
  .selects .check { grid-column: auto; }
}
input[type="search"], input[type="email"], input[type="url"], input:not([type]), select, textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-control);
  min-height: 44px; padding: var(--s-2) var(--s-3); width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--subtle) 50%), linear-gradient(135deg, var(--subtle) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
@media (min-width: 900px) { .selects select { width: auto; font-size: var(--t-sm); } }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
::placeholder { color: var(--subtle); opacity: 1; }
.check { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding-inline: var(--s-3); border: 1px solid var(--border-strong); border-radius: var(--r-control); font-size: var(--t-sm); cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.results-bar { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin: var(--s-3) 0; font-size: var(--t-sm); color: var(--muted); }
.link-btn { font: inherit; color: var(--accent); background: none; border: 0; padding: var(--s-2) 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.card[hidden] { display: none; }
.card-pinned { border-color: var(--accent-line); background: linear-gradient(var(--accent-soft), transparent 70%), var(--surface); }
@media (min-width: 700px) { .card-pinned { grid-column: span 2; } }
.pin-label { font: 600 var(--t-xs)/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.card-top { display: flex; align-items: center; gap: var(--s-2); min-height: 28px; }
.card-kicker { font-size: var(--t-xs); font-weight: 500; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-new { margin-left: auto; padding: 3px 8px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font: 600 11px/1.2 var(--font-sans); }
.detail-name .badge-new { margin-left: 0; }
.card-title { font-size: var(--t-md); font-weight: 620; letter-spacing: -.015em; line-height: 1.25; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-panel); }
.card-sum { color: var(--muted); font-size: var(--t-sm); line-height: 1.55; }
.card-why { font-size: var(--t-sm); line-height: 1.55; color: var(--muted); max-width: 70ch; }
.card-why strong { color: var(--text); font-weight: 600; }
.card-pinned .card-title { font-size: var(--t-lg); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.tags a { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); font-size: var(--t-xs); font-weight: 500; text-decoration: none; }
.tags a:hover { color: var(--text); background: var(--border); }
.card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--border); }
.card-src { display: flex; align-items: center; gap: var(--s-2); min-width: 0; font-size: var(--t-xs); color: var(--subtle); }
.card-src > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { flex: none; padding: 2px 8px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); font: 500 11px/1.4 var(--font-sans); color: var(--muted); white-space: nowrap; }
.status-live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }

.actions { display: flex; gap: 2px; position: relative; z-index: 1; }
.btn-ghost { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s-3); border: 0; border-radius: var(--r-control); background: none; color: var(--muted); font: 500 var(--t-xs)/1 var(--font-sans); text-decoration: none; cursor: pointer; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-ghost:active { transform: translateY(1px); }
.btn-ghost[aria-pressed="true"] { color: var(--accent); }
.actions-big { gap: var(--s-2); margin-top: var(--s-6); }
.actions-big .btn-ghost { min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--border-strong); font-size: var(--t-sm); }

.empty { padding: var(--s-10) var(--s-4); text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--r-panel); }
.empty p + p { margin-top: var(--s-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s-5); border: 0; border-radius: var(--r-control); background: var(--accent); color: var(--accent-ink); font: 600 var(--t-sm)/1 var(--font-sans); white-space: nowrap; cursor: pointer; transition: background .15s var(--ease), transform .15s var(--ease); }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--surface-2); color: var(--subtle); border: 1px solid var(--border-strong); cursor: not-allowed; }

/* ---------- newsletter ---------- */
.newsletter { display: grid; gap: var(--s-6); margin-block: var(--s-4) var(--s-16); padding: var(--s-6); border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr 1fr; align-items: end; padding: var(--s-10); } }
.newsletter h2 { font-size: var(--t-xl); }
.newsletter p { color: var(--muted); margin-top: var(--s-2); }
.nl-form label { display: block; font-size: var(--t-sm); font-weight: 500; margin-bottom: var(--s-2); }
.field-row { display: flex; flex-direction: column; gap: var(--s-2); }
@media (min-width: 480px) { .field-row { flex-direction: row; } }

/* ---------- breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: var(--s-6) 0 0; font-size: var(--t-sm); color: var(--subtle); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--border-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- detail ---------- */
.detail-head { padding-block: var(--s-8) var(--s-8); border-bottom: 1px solid var(--border); }
.detail-head .monos { margin-bottom: var(--s-4); }
.detail-name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-weight: 600; color: var(--muted); margin-bottom: var(--s-3); }
.detail-head h1 { font-size: var(--t-2xl); max-width: 20ch; letter-spacing: -.03em; line-height: 1.05; }
.detail-body { display: grid; gap: var(--s-10); padding-block: var(--s-10); }
@media (min-width: 900px) { .detail-body { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-16); } }
.prose { max-width: 68ch; }
.prose h1 { font-size: var(--t-xl); margin: var(--s-10) 0 var(--s-4); }
.prose h2 { font-size: var(--t-lg); margin: var(--s-10) 0 var(--s-3); }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose ul { color: var(--muted); }
.prose p + p, .prose ul { margin-top: var(--s-3); }
.prose li + li { margin-top: var(--s-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose .lede { color: var(--muted); }
.sources { list-style: none; padding: 0; }
.sources li { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); border: 1px solid var(--border); border-radius: var(--r-control); background: var(--surface); }
.sources li + li { margin-top: var(--s-2); }
.sources a { color: var(--text); font-weight: 500; }
.sources span { font-size: var(--t-sm); color: var(--subtle); }
.detail-side dl { margin: 0; padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); }
.detail-side dl > div + div { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.detail-side dt { font-size: var(--t-xs); font-weight: 500; color: var(--subtle); margin-bottom: var(--s-1); }
.detail-side dd { margin: 0; font-size: var(--t-sm); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain a { display: inline-block; padding-block: 4px; min-height: 28px; }
.related { padding-bottom: var(--s-16); }
.related h2 { font-size: var(--t-lg); margin-bottom: var(--s-4); }

/* ---------- hubs ---------- */
.hub-head { padding-block: var(--s-8); }
.hub-head .mono { margin-bottom: var(--s-4); }
.hub-head h1 { font-size: var(--t-2xl); letter-spacing: -.03em; line-height: 1.05; }
.hub-head .count { margin-top: var(--s-4); font: 500 var(--t-sm)/1 var(--font-mono); color: var(--subtle); }
.hub { padding-bottom: var(--s-16); }
.siblings { margin-top: var(--s-12); }
.siblings h2 { font-size: var(--t-md); margin-bottom: var(--s-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 36px; padding: 0 var(--s-3); border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); font-size: var(--t-sm); text-decoration: none; }
.chips a:hover { border-color: var(--accent-line); color: var(--text); }
.tiles { display: grid; gap: var(--s-3); list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } }
@media (min-width: 1080px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tiles a { display: grid; gap: var(--s-2); height: 100%; padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); text-decoration: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.tiles a:hover { border-color: var(--border-strong); box-shadow: var(--shadow); color: var(--text); }
.tiles .mono { margin-bottom: var(--s-2); }
.tile-name { font: 620 var(--t-md)/1.2 var(--font-display); }
.tile-blurb { font-size: var(--t-sm); color: var(--muted); }
.topic-list { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
@media (min-width: 700px) { .topic-list { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); } }
.topic-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.topic-list .tile-blurb { grid-column: 1; }
.topic-list .n { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.topic-list a:hover .tile-name { color: var(--accent); }

/* ---------- changelog ---------- */
.day { padding-block: var(--s-6); border-top: 1px solid var(--border); }
.day h2 { display: flex; align-items: baseline; gap: var(--s-3); font-size: var(--t-md); margin-bottom: var(--s-4); }
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.log li { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-sm); }
.log a { text-decoration: none; font-weight: 500; }
.log .status { margin-left: auto; }

/* ---------- sponsor ---------- */
.sponsor-offer { display: grid; gap: var(--s-6); padding: var(--s-6); border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); margin-bottom: var(--s-16); }
@media (min-width: 768px) { .sponsor-offer { padding: var(--s-10); } }
.price-amount { font: 650 var(--t-2xl)/1 var(--font-display); letter-spacing: -.03em; }
.price-unit { color: var(--muted); margin-top: var(--s-2); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); color: var(--muted); }
.checks li { padding-left: var(--s-6); position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.queue { padding: var(--s-4); border-radius: var(--r-control); background: var(--surface-2); font-size: var(--t-sm); color: var(--muted); }
.queue strong { color: var(--text); }
.queue p + p { margin-top: var(--s-1); }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--s-5); margin-bottom: var(--s-16); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--t-sm); font-weight: 550; }
.opt, .hint { color: var(--subtle); font-weight: 400; font-size: var(--t-sm); }
.field-error { color: #b91c1c; font-size: var(--t-sm); font-weight: 500; }
@media (prefers-color-scheme: dark) { .field-error { color: #f87171; } }
[aria-invalid="true"] { border-color: #b91c1c; }
.form-alert { margin-bottom: var(--s-5); padding: var(--s-3) var(--s-4); border: 1px solid #fca5a5; border-radius: var(--r-control); background: color-mix(in srgb, #ef4444 8%, transparent); font-size: var(--t-sm); }
.form .btn { justify-self: start; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--s-12) var(--s-8); font-size: var(--t-sm); color: var(--muted); background: var(--surface); }
.site-footer .wrap { display: grid; gap: var(--s-10); }
.footer-top { display: grid; gap: var(--s-8); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr minmax(320px, 440px); align-items: start; } }
.footer-about { display: grid; gap: var(--s-3); max-width: 46ch; }
.footer-about .brand { min-height: 0; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8) var(--s-6); }
@media (min-width: 768px) { .footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); align-content: start; }
.footer-nav a { text-decoration: none; display: inline-block; padding-block: 2px; }
.fh { font: 600 var(--t-xs)/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); margin-bottom: var(--s-1); }
.fine { font-size: var(--t-xs); color: var(--subtle); padding-top: var(--s-6); border-top: 1px solid var(--border); }

/* ---------- v3: directory ---------- */
.eyebrow { font: 600 var(--t-xs)/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: var(--s-2); }
.muted { color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.hero-tight { padding-block: var(--s-6) var(--s-8); }
.btn-quiet { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-quiet:hover { background: var(--surface-2); color: var(--text); }
a.btn { text-decoration: none; }
a.btn:hover { color: var(--accent-ink); }
a.btn-quiet:hover { color: var(--text); }
.section-h { font-size: var(--t-lg); margin-bottom: var(--s-4); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.section-head a { font-size: var(--t-sm); font-weight: 550; color: var(--accent); text-decoration: none; }
.section-lede { color: var(--muted); margin: calc(var(--s-2) * -1) 0 var(--s-5); max-width: 60ch; }
.from-tracker { padding-bottom: var(--s-16); }

.cat-tiles { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0 0 var(--s-8); }
@media (min-width: 1000px) { .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); } }
.cat-tiles a { display: flex; flex-direction: column; gap: var(--s-2); height: 100%; padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); text-decoration: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.cat-tiles a:hover { border-color: var(--accent-line); box-shadow: var(--shadow); color: var(--text); }
.cat-tiles .tile-blurb { display: none; }
@media (min-width: 640px) { .cat-tiles .tile-blurb { display: block; } }
.cat-tiles .n { margin-top: auto; padding-top: var(--s-1); }
.cat-tiles .mono { align-self: flex-start; margin-bottom: var(--s-1); }

/* Category monograms: neutral by default, a quiet tint per category. */
.mono-shopping-agents { background: var(--accent); color: var(--accent-ink); }
.mono-merchant-tools { background: var(--text); color: var(--bg); }
.mono-payments-protocols { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.mono-ai-visibility { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.hub-head > .mono-lg, .detail-head > .mono-lg { margin-bottom: var(--s-4); }

.tags-plain span { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); font-size: var(--t-xs); font-weight: 500; }
.badge-sponsored { margin-left: auto; padding: 3px 8px; border-radius: var(--r-pill); border: 1px solid var(--accent-line); color: var(--accent); font: 600 11px/1.2 var(--font-sans); }
.pill { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); font-size: var(--t-xs); font-weight: 600; color: var(--text); text-decoration: none; }
.detail-name span { font-weight: 500; font-size: var(--t-sm); }
.actions-big .btn { padding-inline: var(--s-5); }
.detail-side { display: grid; gap: var(--s-4); align-content: start; }
.correction { padding-bottom: var(--s-12); font-size: var(--t-sm); color: var(--subtle); }
.disclose { font-size: var(--t-sm); }

/* Sponsor slot: a labelled placeholder that only ever points at /sponsor. */
.slot-wrap { margin-block: 0 var(--s-8); }
.slot { position: relative; display: grid; gap: var(--s-1); padding: var(--s-4) var(--s-5); border: 1px dashed var(--accent-line); border-radius: var(--r-panel); background: linear-gradient(90deg, var(--accent-soft), transparent 80%), var(--surface); }
.slot-label { font: 600 var(--t-xs)/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); }
.slot-text { font: 620 var(--t-md)/1.3 var(--font-display); }
.slot-text a { text-decoration: none; }
.slot-text a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-panel); }
.slot:hover { border-color: var(--accent); }
.slot-sub { font-size: var(--t-xs); color: var(--subtle); }

/* Newsletter forms */
.nl-note { font-size: var(--t-xs); color: var(--subtle); margin-top: var(--s-2); }
.nl-compact label { font: 600 var(--t-base)/1.3 var(--font-display); color: var(--text); }
.nl-page { display: grid; gap: var(--s-8); margin-bottom: var(--s-16); }
.nl-page .nl-form { padding: var(--s-6); border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); }
.field-row input { flex: 1; }

/* Sponsor page */
.price-amount span { font: 500 var(--t-base)/1 var(--font-sans); color: var(--muted); letter-spacing: 0; }
.h-sm { font-size: var(--t-md); margin-bottom: var(--s-3); }
.book { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.book p { flex-basis: 100%; font-size: var(--t-sm); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .grid .card { animation: rise .5s var(--ease) both; animation-delay: calc(min(var(--i, 0), 8) * 40ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Dated corrections: discontinued tools, changed or ended tracker entries. */
.status-changed { color: #b45309; border-color: color-mix(in srgb, #b45309 40%, transparent); }
.status-ended, .status-discontinued { color: #b91c1c; border-color: color-mix(in srgb, #b91c1c 40%, transparent); }
.notice { margin: 1rem 0; padding: .75rem 1rem; border-left: 3px solid #b45309; background: color-mix(in srgb, #b45309 8%, transparent); border-radius: 4px; }
.notice-ended, .notice-discontinued { border-left-color: #b91c1c; background: color-mix(in srgb, #b91c1c 7%, transparent); }
.notice p { margin: 0; }
.log-note { display: block; font-size: .875em; opacity: .8; }
