/* CansAndComponents — design tokens & UI (no CDN, system fonts) */
:root {
  /* Palette — richer forest + copper accents, WCAG AA on text pairs */
  --bg: #eef5ef;
  --bg-warm: #f7f2e8;
  --bg-elevated: #ffffff;
  --ink: #122017;
  --ink-soft: #2f3f33;
  --muted: #4f5f52;
  --line: #c9d6cb;
  --line-strong: #a8b9ab;
  --brand: #0f6b3c;
  --brand-hover: #0a5130;
  --brand-bright: #149456;
  --brand-soft: #d9f0e3;
  --brand-ink: #ffffff;
  --price: #9a4d00;
  --price-soft: #fff1de;
  --accent: #c58a0a;
  --accent-soft: #fff3cc;
  --copper: #b5671a;
  --ok: #0b7a3a;
  --ok-soft: #d4f5e2;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --warn: #8a5200;
  --warn-soft: #fff4d9;
  --sale: #9d174d;
  --sale-soft: #fce7f3;
  --focus: #0b6bcb;
  --cat-suppressor: #0e7490;
  --cat-suppressor-soft: #cffafe;
  --cat-primers: #6d28d9;
  --cat-primers-soft: #ede9fe;
  --cat-powder: #9a3412;
  --cat-powder-soft: #ffedd5;
  --cat-bullets: #9f1239;
  --cat-bullets-soft: #ffe4e6;
  --cat-brass: #a16207;
  --cat-brass-soft: #fef3c7;
  --cat-legal: #1d4ed8;
  --cat-legal-soft: #dbeafe;
  --shadow-sm: 0 1px 2px rgba(18, 32, 23, 0.07);
  --shadow-md: 0 10px 28px rgba(18, 32, 23, 0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.35rem;
  --text-2xl: clamp(1.6rem, 2.5vw + 1rem, 2.15rem);
  --text-3xl: clamp(1.85rem, 3vw + 1rem, 2.6rem);
  --leading: 1.55;
  --leading-tight: 1.25;
  --max: 1120px;
  --header-h: 3.5rem;
  --z-banner: 40;
  --z-header: 50;
  --z-drawer: 80;
  --z-overlay: 70;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font: var(--text-base)/var(--leading) var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 100;
  background: var(--brand);
  color: var(--brand-ink);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

/* Compliance banners — restyled, never removed */
.sample-banner {
  position: sticky;
  top: 0;
  z-index: var(--z-banner);
  background: var(--accent-soft);
  color: #5c3d00;
  border-bottom: 0;
  padding: var(--space-2) var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  line-height: 1.4;
}
.brand-stripe {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--brand-bright) 0%,
    var(--accent) 18%,
    #e8b923 32%,
    var(--cat-suppressor) 48%,
    var(--cat-powder) 64%,
    var(--cat-primers) 80%,
    var(--cat-bullets) 100%
  );
}
.age-notice {
  background: var(--ink);
  color: #e8eee9;
  font-size: var(--text-xs);
  text-align: center;
  padding: 0.35rem var(--space-4);
  letter-spacing: 0.01em;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.7rem 1.25rem;
  background-color: var(--brand);
  background-image: linear-gradient(135deg, var(--brand) 0%, #0d7a48 55%, #0b6b55 100%);
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}
.site-header a { color: #f3faf5; text-decoration: none; }
.brand {
  font-weight: 700;
  font-size: var(--text-lg);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 1px 3px rgba(0,0,0,0.18);
}
.brand-name { line-height: 1.1; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-header nav a {
  display: inline-block;
  padding: 0.35rem 0;
  opacity: 0.92;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { opacity: 1; }
.site-header nav [aria-current="page"] {
  border-bottom-color: #f0c14b;
  font-weight: 600;
  opacity: 1;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
  .site-header { position: relative; }
  .site-header nav {
    flex-basis: 100%;
    display: none;
    padding-top: var(--space-2);
  }
  .site-header nav.is-open { display: block; }
  .site-header nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-header nav a {
    padding: 0.65rem 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .site-header nav [aria-current="page"] {
    border-bottom-color: rgba(255,255,255,0.12);
    box-shadow: inset 3px 0 0 #f0c14b;
    padding-left: 0.6rem;
  }
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-6);
}

h1 {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  font-weight: 750;
  color: var(--ink);
}
h2 {
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.01em;
}
h3 { font-size: var(--text-lg); margin: 0 0 var(--space-2); }
.lede {
  font-size: var(--text-lg);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 var(--space-5);
}
.muted { color: var(--muted); }
.note { font-size: var(--text-sm); color: var(--muted); }
.warn { color: var(--warn); background: var(--warn-soft); padding: var(--space-3); border-radius: var(--radius-sm); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--brand);
  background-image: linear-gradient(180deg, var(--brand-bright) 0%, var(--brand) 100%);
  color: var(--brand-ink);
  border: 2px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-size: var(--text-base);
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 2px 8px rgba(15, 107, 60, 0.25);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background-color: var(--brand-hover);
  background-image: linear-gradient(180deg, var(--brand) 0%, var(--brand-hover) 100%);
  border-color: var(--brand-hover);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 3px 12px rgba(15, 107, 60, 0.35);
}
.btn-ghost {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-hover); }
.btn-small { padding: 0.35rem 0.7rem; font-size: var(--text-sm); }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

/* Hero + home search */
.hero {
  padding: var(--space-6) var(--space-5) var(--space-5);
  margin: 0 calc(-1 * var(--space-4)) var(--space-4);
  display: grid;
  gap: var(--space-5);
  background:
    radial-gradient(ellipse 80% 70% at 10% 0%, rgba(20, 148, 86, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 60% at 95% 20%, rgba(197, 138, 10, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 50% at 70% 100%, rgba(14, 116, 144, 0.12), transparent 55%),
    linear-gradient(180deg, #e7f6ec 0%, var(--bg) 100%);
  border-radius: 0 0 var(--radius) var(--radius);
  border-bottom: 1px solid var(--line);
}
/* Desktop: copy + search on the left, logo top-right. Mobile: headline → search → CTAs first, small logo beside the lede. */
.hero {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  grid-template-areas:
    "title  logo"
    "lede   logo"
    "search logo"
    "actions logo";
  column-gap: var(--space-6);
  row-gap: var(--space-4);
  align-items: start;
}
.hero-title { grid-area: title; margin: 0; max-width: 40rem; }
.hero-lede { grid-area: lede; margin: 0; max-width: 40rem; }
.hero-search { grid-area: search; }
.hero-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-logo {
  grid-area: logo;
  align-self: center;
  justify-self: end;
  width: min(100%, 260px);
  pointer-events: none;
  user-select: none;
}
.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(15, 107, 60, 0.14));
}
.hero-search {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  max-width: 42rem;
  width: 100%;
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title   title"
      "search  search"
      "actions actions"
      "lede    logo";
    row-gap: var(--space-3);
    column-gap: var(--space-3);
  }
  .hero-lede { font-size: var(--text-sm); color: var(--ink-soft); align-self: center; }
  .hero-logo { width: clamp(72px, 22vw, 112px); justify-self: end; align-self: center; }
  .hero-actions .btn { flex: 1 1 10rem; justify-content: center; }
}
.hero-search label {
  display: block;
  font-weight: 650;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}
.hero-search .search-row {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
}
.hero-search input[type="search"] {
  flex: 1;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  min-width: 0;
}
.search-results {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  max-height: 16rem;
  overflow: auto;
  display: none;
}
.search-results.is-open { display: block; }
.search-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.search-results li:last-child a { border-bottom: 0; }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--brand-soft); }
.search-results .price { font-weight: 700; color: var(--price); white-space: nowrap; }
.search-meta { font-size: var(--text-sm); color: var(--muted); }

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.chip-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 650;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.chip-link:hover { border-color: var(--brand); color: var(--brand-hover); filter: brightness(0.98); }

.cards { display: grid; gap: var(--space-4); }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
}
.card h2, .card h3 { margin-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin: var(--space-6) 0 var(--space-3);
}
.section-head h2 { margin: 0; }

.tiles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.tile a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-decoration: none;
  color: var(--ink);
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tile a:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.tile .price {
  font-size: 1.4rem;
  font-weight: 750;
  color: var(--price);
  letter-spacing: -0.02em;
  margin-top: auto;
  padding-top: var(--space-2);
}
.tile .deal-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ok);
  background: var(--ok-soft);
  border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.15rem;
}

.callout {
  background: var(--brand-soft);
  border: 1px solid #c5dfd0;
  border-left: 4px solid var(--brand);
  padding: var(--space-4);
  margin: var(--space-5) 0;
  border-radius: var(--radius-sm);
}
.warn-box {
  background: var(--warn-soft);
  border-color: #e6c97a;
  border-left-color: var(--accent);
}

/* Filters: desktop chips + mobile drawer */
.filters-shell { margin: var(--space-4) 0; }
.filters-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.filters-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
}
.filters-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21, 32, 24, 0.45);
  z-index: var(--z-overlay);
}
.filters-backdrop.is-open { display: block; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  align-items: end;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.filters label {
  display: flex;
  flex-direction: column;
  font-size: var(--text-sm);
  font-weight: 650;
  gap: 0.3rem;
  color: var(--ink-soft);
}
.filters label.check {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  padding-bottom: 0.35rem;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
  margin-bottom: 0.15rem;
}
.chip {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line-strong));
  background: #fff;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.filters-drawer-head, .filters-drawer-foot { display: none; }

select,
input[type="number"],
input[type="email"],
input[type="search"],
input[type="text"] {
  font: inherit;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  min-width: 9rem;
  color: var(--ink);
}
.count {
  margin-left: auto;
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 760px) {
  .filters-toggle { display: inline-flex; }
  .filters-desktop-only { display: none !important; }
  .filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-drawer);
    margin: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    max-height: min(85vh, 640px);
    overflow: auto;
    transform: translateY(110%);
    /* Closed sheet is also visibility:hidden so it is never painted (e.g. in
       full-page captures), focusable, or exposed to assistive tech. */
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0s linear 0.22s;
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }
  .filters.is-open { transform: translateY(0); visibility: visible; transition: transform 0.22s ease, visibility 0s; }
  .filters-drawer-head, .filters-drawer-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
  }
  .filters-drawer-head {
    position: sticky;
    top: 0;
    background: var(--bg-elevated);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--line);
    margin: calc(-1 * var(--space-1)) 0 var(--space-2);
  }
  .filters-drawer-foot {
    position: sticky;
    bottom: 0;
    background: var(--bg-elevated);
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
    margin-top: var(--space-2);
  }
  .filters label { width: 100%; }
  .filters select, .filters input { width: 100%; min-width: 0; }
  .count { margin-left: 0; }
  .chip-row { order: -1; }
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
}
table.data th, table.data td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data thead th {
  background: linear-gradient(180deg, #e2f2e8 0%, #d7ebdf 100%);
  color: var(--ink-soft);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 2px solid var(--brand);
}
table.data tbody tr:nth-child(even) { background: #f3faf5; }
table.data tbody tr:hover { background: var(--brand-soft); }
.num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.narrow { width: auto; min-width: 280px; }
.ok { color: var(--ok); font-weight: 650; }
.bad { color: var(--bad); font-weight: 650; }
.warnc { color: var(--warn); font-weight: 650; }
.empty {
  padding: var(--space-5);
  text-align: center;
  color: var(--muted);
  background: var(--bg-elevated);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

/* Mobile cards instead of side-scrolling wide tables */
.mobile-cards {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-3);
}
.mobile-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: var(--space-2);
}
.mobile-card[hidden] { display: none !important; }
.mobile-card .card-title {
  font-weight: 700;
  font-size: var(--text-base);
  text-decoration: none;
  color: var(--ink);
}
.mobile-card .card-title:hover { color: var(--brand); }
.mobile-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: var(--text-sm);
  color: var(--muted);
}
.mobile-card .card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  margin-top: var(--space-1);
}
.mobile-card .card-price {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--price);
}

@media (max-width: 760px) {
  .table-wrap[data-responsive="cards"] { display: none; }
  .mobile-cards { display: grid; }
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: #e4e9e4;
  vertical-align: middle;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-sample { background: var(--accent-soft); color: #5c3d00; }
.badge-real { background: var(--ok-soft); color: var(--ok); }
.badge-sale { background: var(--sale-soft); color: var(--sale); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
  margin: var(--space-4) 0;
}
.total-cost {
  border-color: color-mix(in srgb, var(--brand) 35%, #c5dfd0);
  background: linear-gradient(160deg, #e8f8ef 0%, #fff 42%, var(--price-soft) 160%);
  box-shadow: var(--shadow-sm);
}
.total-cost .price-hero {
  font-size: 2rem;
  font-weight: 750;
  color: var(--price);
  letter-spacing: -0.02em;
  margin: 0.25rem 0 var(--space-3);
}
table.kv { width: 100%; border-collapse: collapse; }
table.kv th, table.kv td {
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  text-align: left;
  vertical-align: top;
}
table.kv th { font-weight: 500; padding-right: 1rem; color: var(--ink-soft); }
.kv tr.total th, .kv tr.total td {
  font-weight: 750;
  font-size: 1.15rem;
  border-bottom: 0;
  padding-top: 0.75rem;
  color: var(--ink);
}
.kv.cost th { width: 70%; }
.kv.cost td { width: 30%; }
.kv .note { font-weight: 400; margin-top: 0.15rem; }

.affiliate-disclosure {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, #ddd6c0);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: var(--text-sm);
  margin: var(--space-3) 0;
  color: var(--ink-soft);
}

.crumbs {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.crumbs a { text-decoration: none; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 var(--space-4);
}
.tabs a {
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: var(--text-sm);
}
.tabs a:hover { border-color: var(--brand); color: var(--brand); }
.tabs [aria-current="page"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.cite {
  font-size: 0.7rem;
  vertical-align: super;
  text-decoration: none;
  margin-left: 1px;
  color: var(--muted);
}
.sources {
  font-size: var(--text-sm);
  border-top: 1px solid var(--line);
  margin-top: var(--space-7);
  padding-top: var(--space-4);
}
.sources li { margin: 0.4rem 0; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--space-6); }
.steps li { margin: 0.75rem 0; padding-left: 0.25rem; }

.map svg { width: 100%; max-width: 620px; height: auto; }
.map text { font: 600 13px var(--font); fill: #fff; pointer-events: none; }
.tile-legal rect, .sw.tile-legal { fill: #1f7a45; background: #1f7a45; }
.tile-limited rect, .sw.tile-limited { fill: #7a8f28; background: #7a8f28; }
.tile-own-no-hunt rect, .sw.tile-own-no-hunt { fill: #c17a12; background: #c17a12; }
.tile-banned rect, .sw.tile-banned { fill: #9b1c1c; background: #9b1c1c; }
.map a:focus-visible rect { stroke: var(--focus); stroke-width: 3; }
.map a:hover rect { opacity: 0.85; }
.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: 0;
  font-size: var(--text-sm);
}
.sw {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 0.35rem;
  vertical-align: -2px;
}

/* Price history chart */
.chart-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.price-chart {
  width: 100%;
  max-width: 520px;
  height: auto;
  color: var(--brand-bright);
  display: block;
}
.price-chart .grid-line { stroke: var(--line); stroke-width: 1; }
.price-chart .area { fill: url(#chartGrad); opacity: 0.4; }
.price-chart .line { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.price-chart .dot { fill: var(--copper); stroke: #fff; stroke-width: 2; }
.price-chart .axis { font: 600 11px var(--font); fill: var(--muted); }
.chart-summary {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin: var(--space-2) 0 var(--space-3);
}

.newsletter {
  margin: var(--space-6) 0;
  max-width: 640px;
}
.signup { display: flex; flex-direction: column; gap: var(--space-3); }
.signup label { display: flex; flex-direction: column; font-weight: 650; gap: 0.3rem; }
.signup label.check {
  flex-direction: row;
  gap: 0.5rem;
  font-weight: 400;
  align-items: flex-start;
}
.signup label.check input { margin-top: 0.3rem; }
.hp { position: absolute; left: -9999px; }
.not-live {
  background: var(--warn-soft);
  border: 1px dashed var(--accent);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}
.form-msg.success { color: var(--ok); font-weight: 650; }
.form-msg.error { color: var(--bad); font-weight: 650; }

.site-footer {
  background: linear-gradient(180deg, #e4efe7 0%, #e8e6d8 100%);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--brand-bright), var(--accent), var(--cat-suppressor)) 1;
  padding: var(--space-5) var(--space-4);
  font-size: var(--text-sm);
  margin-top: var(--space-7);
  color: var(--ink-soft);
}
.site-footer > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
}
.footer-disclosure { font-weight: 500; }

body.drawer-open { overflow: hidden; }

@media (max-width: 640px) {
  main { padding: var(--space-4) var(--space-3) var(--space-5); }
  .hero {
    padding: var(--space-4) var(--space-3) var(--space-4);
    margin-left: calc(-1 * var(--space-3));
    margin-right: calc(-1 * var(--space-3));
  }
}


/* Category color accents */
.cat-suppressor { --cat: var(--cat-suppressor); --cat-soft: var(--cat-suppressor-soft); }
.cat-primers { --cat: var(--cat-primers); --cat-soft: var(--cat-primers-soft); }
.cat-powder { --cat: var(--cat-powder); --cat-soft: var(--cat-powder-soft); }
.cat-bullets { --cat: var(--cat-bullets); --cat-soft: var(--cat-bullets-soft); }
.cat-brass { --cat: var(--cat-brass); --cat-soft: var(--cat-brass-soft); }
.cat-legal { --cat: var(--cat-legal); --cat-soft: var(--cat-legal-soft); }

.chip-link.cat-suppressor,
.chip-link.cat-primers,
.chip-link.cat-powder,
.chip-link.cat-bullets,
.chip-link.cat-brass,
.chip-link.cat-legal {
  background: var(--cat-soft);
  color: var(--cat);
  border-color: color-mix(in srgb, var(--cat) 28%, transparent);
}
.chip-link.cat-suppressor:hover,
.chip-link.cat-primers:hover,
.chip-link.cat-powder:hover,
.chip-link.cat-bullets:hover,
.chip-link.cat-brass:hover,
.chip-link.cat-legal:hover { color: var(--cat); border-color: var(--cat); }

.tile.cat-suppressor a,
.tile.cat-primers a,
.tile.cat-powder a,
.tile.cat-bullets a,
.tile.cat-brass a {
  border-top: 3px solid var(--cat);
}
.tile.cat-suppressor a:hover,
.tile.cat-primers a:hover,
.tile.cat-powder a:hover,
.tile.cat-bullets a:hover,
.tile.cat-brass a:hover { border-color: var(--cat); }

.tabs a.cat-primers[aria-current="page"],
.tabs a.cat-powder[aria-current="page"],
.tabs a.cat-bullets[aria-current="page"],
.tabs a.cat-brass[aria-current="page"] {
  background: var(--cat);
  border-color: var(--cat);
}
.tabs a.cat-primers { color: var(--cat-primers); }
.tabs a.cat-powder { color: var(--cat-powder); }
.tabs a.cat-bullets { color: var(--cat-bullets); }
.tabs a.cat-brass { color: var(--cat-brass); }
.tabs a.cat-primers[aria-current="page"],
.tabs a.cat-powder[aria-current="page"],
.tabs a.cat-bullets[aria-current="page"],
.tabs a.cat-brass[aria-current="page"] { color: #fff; }

/* Value cards with colored icon tiles */
.value-card {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--brand);
}
.value-card:nth-child(1) { border-top-color: var(--brand-bright); }
.value-card:nth-child(2) { border-top-color: var(--cat-legal); }
.value-card:nth-child(3) { border-top-color: var(--cat-powder); }
.value-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-3);
  color: #fff;
}
.value-icon svg { width: 1.35rem; height: 1.35rem; display: block; }
.value-icon-cost { background-color: var(--brand); background-image: linear-gradient(135deg, var(--brand-bright), var(--brand)); }
.value-icon-legal { background-color: var(--cat-legal); background-image: linear-gradient(135deg, #3b82f6, var(--cat-legal)); }
.value-icon-reload { background-color: var(--cat-powder); background-image: linear-gradient(135deg, #f59e0b, var(--cat-powder)); }

.section-head h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.4rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--brand-bright));
}

.ok {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--ok-soft);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
}
.bad {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bad-soft);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
}

.num[data-col="price"] {
  color: var(--price);
  font-weight: 700;
}

.callout {
  background: linear-gradient(135deg, var(--brand-soft), #eef6ff 70%);
  border-color: color-mix(in srgb, var(--brand) 30%, #c5dfd0);
}

/* ---------- Polish pass: findability, best-price marker, sticky filters ---------- */

/* Search: shortcut hint, grouped suggestions, highlighted matches */
.hero-search label { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.kbd-hint { font-weight: 500; color: var(--muted); font-size: var(--text-xs); }
kbd {
  font-family: var(--font-mono);
  font-size: 0.8em;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
@media (max-width: 760px), (pointer: coarse) { .kbd-hint { display: none; } }
.search-results { max-height: min(24rem, 60vh); }
.search-results .search-group {
  padding: 0.5rem 0.85rem 0.25rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-results .search-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.25rem 0.85rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
.search-results .search-cats a {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-bottom: 1px solid color-mix(in srgb, var(--cat, var(--brand)) 28%, transparent);
}
.search-results .search-cats a:hover { background: var(--cat-soft, var(--brand-soft)); }
.search-results .search-empty { padding: 0.75rem 0.85rem; }
.search-results mark { background: var(--accent-soft); color: inherit; border-radius: 2px; padding: 0 1px; }
.search-results .search-meta { display: block; font-weight: 400; }
.search-results .search-stock { color: var(--ok); font-weight: 650; }
.search-results .price { font-size: var(--text-base); align-self: center; }

/* Prices are the hero: bigger, heavier copper figures */
table.data .num[data-col="price"],
table.data .num[data-col="ppu"] {
  font-size: var(--text-base);
  font-weight: 750;
  color: var(--price);
  letter-spacing: -0.01em;
}
.mobile-card .card-price { font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.15; }
.mobile-card .card-sub { font-size: var(--text-xs); margin-top: -0.25rem; }
.mobile-card .card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; }

/* "Best listed price" marker (derived in app.js from the visible DOM prices) */
.best-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: var(--price);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.55rem;
  vertical-align: middle;
  white-space: nowrap;
}
.best-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #ffd9a8;
}
.best-badge[hidden] { display: none; }
table.data tbody tr.is-best,
table.data tbody tr.is-best:nth-child(even) { background: var(--price-soft); }
table.data tbody tr.is-best td:first-child { box-shadow: inset 4px 0 0 var(--price); }
.mobile-card.is-best {
  border: 2px solid var(--price);
  background: linear-gradient(180deg, var(--price-soft) 0%, #fff 70%);
  box-shadow: var(--shadow-md);
}
.mobile-card > .best-badge { justify-self: start; }

/* Clear empty state with a one-tap reset */
.empty p { margin: 0 0 var(--space-2); }
.empty strong { color: var(--ink); font-size: var(--text-base); }
.empty .btn { margin-top: var(--space-2); }
.empty[hidden] { display: none; }
.btn-small { padding: 0.45rem 0.9rem; font-size: var(--text-sm); }

/* Filters button: active count + result count beside it on mobile */
.filters-active {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  margin-left: 0.15rem;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
}
.filters-active[hidden] { display: none; }
.filters-mobile-only { display: none; }

@media (max-width: 760px) {
  .filters-mobile-only { display: inline; }
  .filters-toolbar { justify-content: space-between; }
  .filters-toolbar .count { margin-left: auto; }
}

/* Desktop: filter bar sticks just below the SAMPLE DATA banner while its results are on screen */
@media (min-width: 761px) {
  .compare-block { position: relative; }
  .filters-shell {
    position: sticky;
    top: var(--sticky-offset, 0px);
    z-index: 30;
    margin: var(--space-4) 0;
    padding: var(--space-2) 0;
    background: var(--bg);
  }
  .filters-toolbar { display: none; }
  .filters { padding: var(--space-3) var(--space-4); gap: var(--space-2) var(--space-4); box-shadow: var(--shadow-md); }
  .compare-block tr[data-row], .compare-block .mobile-card { scroll-margin-top: calc(var(--sticky-offset, 0px) + 11rem); }
}

/* Mobile home: featured tiles become a swipeable row with a peek of the next card */
@media (max-width: 640px) {
  .tiles.snap-tiles {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--space-3);
    padding: var(--space-1) var(--space-3) var(--space-3);
    margin: 0 calc(-1 * var(--space-3));
    gap: var(--space-3);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .tiles.snap-tiles > li { scroll-snap-align: start; min-width: 0; }
  .tiles.snap-tiles .tile a { padding: var(--space-3); }
  .tiles.snap-tiles .tile a:hover { transform: none; }
}

/* Product page: lowest offer among the retailer rows */
table.data tbody tr.is-best { background: var(--price-soft); }
.mobile-card[data-lowest-offer] .best-badge { margin-bottom: 0.1rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Stock pills never split across lines */
.ok, .bad { white-space: nowrap; }

/* Compact sticky filter bar on desktop so it never eats much of the table */
@media (min-width: 761px) {
  .filters-shell .filters { align-items: end; }
  .filters-shell .chip-row { margin-bottom: 0; }
  .filters-shell .filters label { font-size: var(--text-xs); gap: 0.2rem; }
  .filters-shell .filters select,
  .filters-shell .filters input[type="number"] { min-width: 7.5rem; padding: 0.35rem 0.5rem; }
  .filters-shell .filters label.check { padding-bottom: 0.45rem; }
  .filters-shell .chip { padding: 0.22rem 0.7rem; }
}
@media (min-width: 761px) {
  .filters-shell .filters { flex-wrap: wrap; }
  .filters-shell .filters > label:not(.check) { flex: 1 1 7.5rem; min-width: 0; }
  .filters-shell .filters > label:not(.check) select,
  .filters-shell .filters > label:not(.check) input { width: 100%; min-width: 0; }
  .filters-shell .filters > .count { flex: 0 0 auto; padding-bottom: 0.45rem; }
}
.offer-best { margin-top: 0.3rem; }

/* Checkbox rows keep a normal-sized box in the mobile sheet; badges in cards hug their text */
.filters input[type="checkbox"] { width: auto; min-width: 0; flex: 0 0 auto; }
@media (max-width: 760px) { .filters label.check { width: 100%; justify-content: flex-start; } }
.mobile-card > .badge { justify-self: start; }

/* ---------- Product photos (from merchant feeds; empty slot when missing) ---------- */
.product-photo {
  --photo-pad: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid color-mix(in srgb, var(--line) 85%, var(--ink) 8%);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
}
.product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: var(--photo-pad);
  box-sizing: border-box;
}
/* Compact thumbs: fill the slot so SAMPLE mark / silhouette stay readable */
.product-photo--row img,
.product-photo--offer img {
  object-fit: cover;
  object-position: center 38%;
  padding: 0;
  background: #f8fafc;
}
/* Intentional empty slot — soft panel + glyph, never a broken-image look */
.product-photo.is-empty {
  min-height: 3.5rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, #fff) 0%, var(--bg-elevated) 100%);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--line-strong) 70%, var(--line));
  box-shadow: none;
}
.product-photo.is-empty::after {
  content: "";
  width: 1.35rem;
  height: 1.35rem;
  opacity: 0.55;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='14' rx='2'/%3E%3Ccircle cx='12' cy='13' r='3.2'/%3E%3Cpath d='M8 6l1.2-2h5.6L16 6'/%3E%3C/svg%3E");
}
.product-photo--tile {
  --photo-pad: 0;
  aspect-ratio: 4 / 3;
  width: 100%;
  margin: 0 0 0.55rem;
  border-radius: calc(var(--radius-sm) + 2px);
}
.product-photo--card {
  --photo-pad: 0;
  aspect-ratio: 16 / 10;
  width: 100%;
  margin: 0 0 0.55rem;
  border-radius: var(--radius-sm);
}
.product-photo--hero {
  --photo-pad: 0;
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--line) 70%, var(--brand) 12%);
}
.product-photo--hero.is-empty {
  min-height: 10rem;
}
.product-photo--hero.is-empty::after {
  width: 2.25rem;
  height: 2.25rem;
  opacity: 0.4;
}
.product-photo--row {
  --photo-pad: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  vertical-align: middle;
  margin-right: 0;
  border-radius: 7px;
}
.product-photo--row.is-empty {
  min-height: 0;
}
.product-photo--row.is-empty::after {
  width: 1rem;
  height: 1rem;
}
.product-photo--offer {
  --photo-pad: 0;
  width: 2.85rem;
  height: 2.85rem;
  display: inline-flex;
  vertical-align: middle;
  margin-right: 0;
  border-radius: 6px;
}
.product-photo--offer.is-empty {
  min-height: 0;
}
.product-photo--offer.is-empty::after {
  width: 0.9rem;
  height: 0.9rem;
}
.product-hero-photo {
  margin: 0;
}
.product-hero-photo .product-photo--hero {
  position: sticky;
  top: calc(var(--sticky-offset, 0px) + 4.5rem);
}
@media (max-width: 960px) {
  .product-hero-photo .product-photo--hero { position: static; }
}
.product-grid--hero {
  grid-template-columns: minmax(13rem, 18rem) minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  margin-top: var(--space-3);
}
@media (max-width: 960px) {
  .product-grid--hero { grid-template-columns: 1fr; }
}
.col-product { min-width: 15.5rem; }
.col-retailer { min-width: 11rem; }
.retailer-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.retailer-cell .product-photo { margin-top: 0.05rem; }
.mobile-card > .product-photo--card {
  margin-top: 0.1rem;
}
.tile a > .product-photo--tile {
  margin-left: -0.15rem;
  margin-right: -0.15rem;
  width: calc(100% + 0.3rem);
}
.search-thumb {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--line) 85%, var(--ink) 8%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  flex-shrink: 0;
  padding: 0.1rem;
  box-sizing: border-box;
}
.search-thumb.is-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, #fff) 0%, var(--bg-elevated) 100%);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--line-strong) 70%, var(--line));
  box-shadow: none;
}
.search-thumb.is-empty::after {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.45;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='14' rx='2'/%3E%3Ccircle cx='12' cy='13' r='3.2'/%3E%3Cpath d='M8 6l1.2-2h5.6L16 6'/%3E%3C/svg%3E");
}

.offer-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}
.offer-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  line-height: 1.25;
}
.offer-card-head .product-photo--offer {
  width: 3rem;
  height: 3rem;
}

.product-cell {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  max-width: 100%;
}
.product-cell > .product-photo { margin-top: 0.05rem; }
.product-cell-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  min-width: 0;
}
.product-cell-text {
  color: var(--brand);
  line-height: 1.25;
  text-wrap: balance;
}
.product-cell:hover .product-cell-text { text-decoration: underline; }
.product-cell-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

/* Adapter type filter (multi-select chips on desktop, checkbox group in the mobile sheet) */
.chip-row--adapter { align-items: center; }
.chip-row-label { font-size: var(--text-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-right: 0.15rem; }
.adapter-checks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; min-width: 0; }
.adapter-checks legend { font-size: var(--text-sm); font-weight: 650; color: var(--ink-soft); padding: 0; margin-bottom: 0.3rem; }
.adapter-note { width: 100%; margin: 0; font-size: var(--text-xs); }
@media (min-width: 761px) { .adapter-checks { display: none; } }
@media (max-width: 760px) { .adapter-checks .check { width: auto; } .adapter-checks { flex-direction: column; } }
.spec-tag { display: inline-block; padding: 0.05rem 0.5rem; margin: 0 0.25rem 0.25rem 0; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: var(--text-sm); }
.spec-note { display: block; font-size: var(--text-xs); margin-top: 0.15rem; }
.adapter-list dt { font-weight: 700; margin-top: var(--space-3); }
.adapter-list dd { margin: 0.2rem 0 0; }

/* ---------- Launch / production pages ---------- */
.eyebrow, .launch-eyebrow {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.launch-hero {
  position: relative;
  overflow: hidden;
  margin: 0 calc(-1 * var(--space-4)) var(--space-6);
  padding: var(--space-7) var(--space-5) var(--space-6);
  border-radius: 0 0 calc(var(--radius) * 1.5) calc(var(--radius) * 1.5);
  color: #f8fafc;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(185, 28, 28, 0.55), transparent 60%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(29, 78, 216, 0.55), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, #0b2a5b 0%, #0f172a 100%);
  box-shadow: var(--shadow-md);
}
.launch-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, #b91c1c 0 33%, #ffffff 33% 66%, #1d4ed8 66% 100%);
}
.launch-hero h1 { color: #ffffff; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.08; margin: 0 0 var(--space-3); max-width: 44rem; letter-spacing: -0.02em; }
.launch-hero .lede { color: #dbe4f0; max-width: 46rem; font-size: var(--text-lg); }
.launch-hero .launch-eyebrow { color: #fca5a5; }
.launch-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.btn-on-dark { background: #ffffff; color: #0b2a5b; border-color: #ffffff; }
.btn-on-dark:hover { background: #fee2e2; color: #7f1d1d; border-color: #fee2e2; }
.btn-ghost-on-dark { background: transparent; color: #ffffff; border: 2px solid rgba(255, 255, 255, 0.7); }
.btn-ghost-on-dark:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.launch-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.launch-badge--light { background: var(--accent-soft); border-color: rgba(185, 28, 28, 0.35); color: #7f1d1d; }
.hero-badge { grid-column: 1 / -1; justify-self: start; margin: 0; }
.pulse { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); animation: cac-pulse 1.8s ease-out infinite; }
@keyframes cac-pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.hero:has(.hero-badge) { grid-template-areas: "badge logo" "title logo" "lede logo" "search logo" "actions logo"; }
.hero-badge { grid-area: badge; }

.feature-grid { list-style: none; padding: 0; margin: var(--space-4) 0 var(--space-5); display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature {
  --cat: var(--brand-bright); --cat-soft: var(--brand-soft);
  position: relative; padding: var(--space-5); background: var(--bg-elevated);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--cat);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .feature, .guide-tile a { transition: none; } .feature:hover, .guide-tile a:hover { transform: none; } }
.feature h3 { margin: var(--space-3) 0 var(--space-2); font-size: var(--text-lg); }
.feature p { margin: 0; color: var(--ink-soft); }
.feature-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.8rem; background: var(--cat-soft); color: var(--cat); }
.feature-icon svg { width: 1.5rem; height: 1.5rem; }
.chip-preview { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-6); }
.chip-static { cursor: default; pointer-events: none; }
.chip-more { background: var(--brand); color: #fff; border-color: var(--brand); }
.why-not-live { border-left: 6px solid var(--accent); background: linear-gradient(90deg, var(--accent-soft), var(--bg-elevated) 45%); }

.stat-row { list-style: none; padding: 0; margin: var(--space-5) 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat { padding: var(--space-4) var(--space-5); border-radius: var(--radius); background: var(--bg-elevated); border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-left: 5px solid var(--brand-bright); display: flex; flex-direction: column; gap: var(--space-1); }
.stat-num { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; line-height: 1; color: var(--brand); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 0.45em; font-weight: 700; letter-spacing: 0; }
.stat-label { font-size: var(--text-sm); color: var(--muted); }
.stat-bad { border-left-color: var(--bad); }
.stat-bad .stat-num { color: var(--bad); }
.stat-row--hero .stat:nth-child(1) { border-left-color: var(--accent); }
.stat-row--hero .stat:nth-child(1) .stat-num { color: var(--accent); }
.stat-row--small .stat-num { font-size: 1.4rem; }

.launch-strip {
  display: grid; gap: var(--space-4); align-items: center; grid-template-columns: minmax(0, 1fr) auto;
  margin: var(--space-6) 0; padding: var(--space-6) var(--space-5); border-radius: calc(var(--radius) * 1.5); color: #e2e8f0;
  background: radial-gradient(ellipse 50% 90% at 100% 50%, rgba(185, 28, 28, 0.5), transparent 70%), linear-gradient(120deg, #0b2a5b, #0f172a);
}
.launch-strip h2 { color: #fff; margin: 0 0 var(--space-2); }
.launch-strip p { margin: 0; }
.launch-strip .launch-eyebrow { color: #fca5a5; margin-bottom: var(--space-2); }
.launch-strip-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 760px) { .launch-strip { grid-template-columns: 1fr; } }

.guide-section { margin: var(--space-6) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.guide-tiles { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.guide-tile { --cat: var(--brand-bright); --cat-soft: var(--brand-soft); }
.guide-tile a {
  display: flex; flex-direction: column; gap: var(--space-2); height: 100%; padding: var(--space-5);
  border-radius: var(--radius); background: var(--bg-elevated); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; position: relative; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.guide-tile a::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--cat), transparent); }
.guide-tile a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--cat); }
.guide-tile strong { font-size: var(--text-lg); line-height: 1.25; }
.guide-tile span { color: var(--ink-soft); font-size: var(--text-sm); }
.guide-tag { align-self: flex-start; padding: 0.15rem 0.6rem; border-radius: var(--radius-pill); background: var(--cat-soft); color: var(--cat) !important; font-weight: 800; font-size: var(--text-xs) !important; text-transform: uppercase; letter-spacing: 0.06em; }
.guide-go { margin-top: auto; color: var(--cat) !important; font-weight: 800; }

.newsletter-soon { border: 2px dashed var(--line-strong); background: linear-gradient(135deg, var(--bg-elevated), var(--brand-soft)); }
.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 1.75rem; margin: var(--space-2) 0; }
.check-list li::before { content: "★"; position: absolute; left: 0; color: var(--accent); }
.prose-wide { max-width: 64rem; }
.row-flagged td { background: var(--warn-soft); }
.not-found { text-align: center; padding: var(--space-7) 0; }
.not-found .hero-actions { justify-content: center; }
.source-archive-note { display: block; font-size: var(--text-xs); color: var(--muted); }
@media (max-width: 860px) {
  .hero:has(.hero-badge) { grid-template-areas: "badge badge" "title title" "search search" "actions actions" "lede logo"; }
}
@media (max-width: 640px) {
  .launch-hero { margin-left: calc(-1 * var(--space-3)); margin-right: calc(-1 * var(--space-3)); padding: var(--space-6) var(--space-4) var(--space-5); }
  .launch-actions .btn { flex: 1 1 12rem; justify-content: center; }
}
