/* RxScout v0.1 — telehealth and pharmacy price compare, sibling of LabScout and VialScout */
:root {
  --bg: #07090c;
  --bg-elev: #0e1218;
  --bg-card: #131920;
  --bg-card-hover: #1a212b;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.14);
  --text: #e8eef6;
  --text-muted: #8b97a8;
  --text-faint: #5c6778;
  --accent: #6b9bff;
  --accent-deep: #2a5bd7;
  --accent-dim: rgba(42,91,215,0.18);
  --accent-strong: #1e4bb8;
  --warn: #f5c542;
  --info: #5b9dff;
  --best: #3ee0a0;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0,0,0,0.35);
  --nav-h: 64px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1180px;
  --ease: cubic-bezier(.22,1,.36,1);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f5f6f8;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f8fb;
  --border: rgba(15,23,42,0.08);
  --border-strong: rgba(15,23,42,0.16);
  --text: #0f172a;
  --text-muted: #5b6575;
  --text-faint: #8a93a3;
  --accent: #2a5bd7;
  --accent-deep: #1e4bb8;
  --accent-dim: rgba(42,91,215,0.12);
  --accent-strong: #163a96;
  --best: #0a6b4a;
  --text-faint: #4f5968;
  --shadow: 0 8px 28px rgba(15,23,42,0.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100vw;
}
body { min-height: 100dvh; display: flex; flex-direction: column; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent-dim); color: var(--text); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

.disclaimer-bar {
  background: linear-gradient(90deg, #0d1528, #152448);
  color: #c9d8f5;
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(42,91,215,0.45);
}
[data-theme="light"] .disclaimer-bar { background: #eef3ff; color: #1e3a7a; border-color: #c9d6f5; }
.disclaimer-bar strong { color: var(--accent); font-weight: 600; }

.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; gap: 10px;
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700;
  letter-spacing: -0.03em; font-size: 1.12rem; flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo-mark { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 0 0 12px; padding: 0; }
.nav-links a {
  color: var(--text-muted); padding: 6px 10px; border-radius: 8px; font-weight: 500; font-size: 14px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--accent-dim); text-decoration: none; }
.nav-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.btn-icon {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; cursor: pointer; display: grid; place-items: center;
}
.btn-icon svg { width: 16px; height: 16px; }
.btn-icon:hover { background: var(--accent-dim); border-color: var(--border-strong); }
.menu-toggle { display: none; }
.drawer, .drawer-backdrop { display: none; }

.hero { padding: 56px 0 28px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.hero .lede { color: var(--text-muted); font-size: 1.05rem; max-width: 42rem; margin: 0 0 24px; }
.search-wrap { position: relative; max-width: 640px; }
.search-wrap input, .search-box {
  width: 100%; padding: 14px 16px 14px 44px;
  border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--bg-card); color: var(--text);
  outline: none;
}
.search-wrap input:focus, .search-box:focus { border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-dim); }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .6; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: 12px; box-shadow: var(--shadow); z-index: 20;
  max-height: 360px; overflow: auto; padding: 6px;
}
.search-results[hidden] { display: none; }
.search-results a {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--text);
}
.search-results a:hover, .search-results a.active { background: var(--accent-dim); text-decoration: none; }
.search-results .meta { color: var(--text-muted); font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.chip {
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.chip:hover { border-color: var(--accent-deep); text-decoration: none; color: var(--text); }
.chip .amt { color: var(--best); font-weight: 600; margin-left: 6px; }

.section { padding: 28px 0; }
.section h2 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; margin: 0 0 16px; letter-spacing: -0.02em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 16px 14px;
  color: var(--text); text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s;
}
a.card:hover { transform: translateY(-2px); border-color: var(--border-strong); text-decoration: none; color: var(--text); background: var(--bg-card-hover); }
.card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 13px; }
.price-lg { font-weight: 700; font-size: 1.25rem; color: var(--best); }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); font-size: 12px; }
.as-of { color: var(--text-faint); font-size: 12px; margin-top: 8px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; align-items: end; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
.filters select, .filters input {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 10px; min-width: 150px;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
table.prices { width: 100%; border-collapse: collapse; font-size: 14px; }
table.prices th, table.prices td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.prices th { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; background: var(--bg-elev); }
table.prices tr:last-child td { border-bottom: 0; }
table.prices tr.best { background: color-mix(in srgb, var(--best) 8%, transparent); }
table.prices .total { font-weight: 700; white-space: nowrap; }
table.prices .list { color: var(--text-faint); text-decoration: line-through; font-size: 12px; margin-right: 4px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 999px; background: var(--accent-dim); color: var(--accent); margin-right: 4px;
}
.badge.best { background: color-mix(in srgb, var(--best) 18%, transparent); color: var(--best); }
.badge.warn { background: rgba(245,197,66,.15); color: var(--warn); }
.badge.donation { background: rgba(91,157,255,.15); color: var(--info); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-deep); color: #fff; border: 0; border-radius: 10px;
  padding: 8px 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--accent-strong); text-decoration: none; color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }

.prose { max-width: 48rem; }
.prose h1 { font-family: var(--display); font-weight: 500; font-size: 2.2rem; letter-spacing: -0.03em; margin: 0 0 10px; }
.prose h2 { font-family: var(--display); font-weight: 500; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text-muted); }
.kicker { color: var(--accent); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }

.builder-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; }
.builder-picks { display: flex; flex-direction: column; gap: 6px; }
.builder-picks label {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; cursor: pointer;
}
.builder-picks label:hover { border-color: var(--border-strong); }
.builder-out .row {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
}
.builder-out .row.win { border-color: color-mix(in srgb, var(--best) 50%, var(--border)); }
.empty { color: var(--text-muted); padding: 20px; }

footer {
  margin-top: auto; border-top: 1px solid var(--border);
  padding: 28px 0 40px; color: var(--text-muted); font-size: 13px;
}
footer a { color: var(--text-muted); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; }
.foot-note { max-width: 40rem; margin-top: 16px; color: var(--text-faint); font-size: 12px; }

.own-brand-slot[hidden], [data-own-brand][hidden] { display: none !important; }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .drawer-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; }
  .drawer-backdrop[hidden] { display: none; }
  .drawer {
    display: block; position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 90vw);
    background: var(--bg-elev); z-index: 210; padding: 20px; border-left: 1px solid var(--border);
    transform: translateX(0);
  }
  .drawer[hidden] { display: none; }
  .drawer a { display: block; padding: 10px 0; color: var(--text); font-weight: 500; }
  .hero { padding: 32px 0 18px; }
  .builder-layout { grid-template-columns: 1fr; }
}


/* v0.1.1 additions */
.badge.info { background: rgba(91,157,255,.15); color: var(--info); }
.badge.value { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.best-for-legend { margin: 0 0 12px; max-width: 52rem; }
.filters-panel { margin: 0 0 16px; }
.filters-panel > summary { display: none; }
.filter-check {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  max-width: 40rem;
}
.panel-card .kicker { margin-bottom: 6px; }
.fit-quiz { display: grid; gap: 14px; margin: 16px 0; max-width: 42rem; }
.fit-quiz fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 12px 14px;
}
.fit-quiz legend { font-weight: 600; padding: 0 6px; }
.fit-quiz label { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; cursor: pointer; }
.fit-out { display: grid; gap: 12px; margin-top: 12px; }

@media (max-width: 800px) {
  .filters-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    padding: 0 14px 10px;
    margin: 0 0 16px;
  }
  .filters-panel > summary {
    display: block;
    cursor: pointer;
    font-weight: 600;
    padding: 12px 0;
    list-style: none;
  }
  .filters-panel > summary::-webkit-details-marker { display: none; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters label,
  .filters select,
  .filters input:not([type="checkbox"]) {
    width: 100%;
    min-width: 0;
  }

  .offers-wrap { overflow: visible; border: 0; background: transparent; }
  .offers-wrap table.prices thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
  }
  .offers-wrap table.prices,
  .offers-wrap table.prices tbody { display: block; width: 100%; }
  .offers-wrap table.prices tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  .offers-wrap table.prices tr.best {
    background: color-mix(in srgb, var(--best) 8%, var(--bg-card));
  }
  .offers-wrap table.prices td {
    display: block;
    border-bottom: 0;
    padding: 4px 0;
  }
  .offers-wrap table.prices td:first-child { grid-column: 1; grid-row: 1; }
  .offers-wrap table.prices td.total { grid-column: 2; grid-row: 1; text-align: right; }
  .offers-wrap table.prices td:nth-child(n+3) { grid-column: 1 / -1; }
  .offers-wrap table.prices td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
  }
  .offers-wrap table.prices .btn { width: 100%; }
  .offers-wrap table.prices .badge { display: inline-block; margin: 0 4px 4px 0; }
}

/* a11y contrast (v0.1.1) */
.prose a, .lede a, .muted a, .as-of a, p a, li a { text-decoration: underline; text-underline-offset: 3px; }
[data-theme="light"] .badge.best { color: #0a6b4a; background: #d8f3ea; }
[data-theme="light"] .badge.info { color: #1558b0; background: #dce8fb; }
[data-theme="light"] .badge.value { color: #7a5a00; background: #f8e7b0; }


/* RxScout extras */
.calc-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.calc-controls { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.calc-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.calc-controls select, .calc-controls input {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px;
}
.horizon-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.horizon-pills button {
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 600;
}
.horizon-pills button[aria-pressed="true"] { background: var(--accent-dim); border-color: var(--accent-deep); color: var(--accent); }
.legal-callout {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin: 16px 0 0; color: var(--text-muted); font-size: 13px;
}
.kind-pill { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); }
.totals-3col { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; font-size: 12px; }
.totals-3col div { color: var(--text-muted); }
.totals-3col strong { display: block; color: var(--text); font-size: 14px; }
@media (max-width: 800px) {
  .calc-grid { grid-template-columns: 1fr; }
  .totals-3col { grid-column: 1 / -1; }
}


/* v0.1.1 density + badge help + teaser toggle */
.badge-help { margin: 10px 0 0; }
.badge-help > summary {
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
}
.badge-help > summary::-webkit-details-marker { display: none; }
.badge-help > summary::after { content: " ▾"; font-weight: 400; }
.badge-help[open] > summary::after { content: " ▴"; }
.badge-help p { margin: 8px 0 0; max-width: 52rem; }
.teaser-note { margin: 8px 0 0; max-width: 46rem; }
.includes-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  max-width: 28rem;
}
.includes-more { margin-top: 4px; }
.includes-more > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
}
.includes-more > summary::-webkit-details-marker { display: none; }
.includes-rest { margin-top: 4px; color: var(--text-muted); font-size: 13px; line-height: 1.4; max-width: 28rem; }
.offers-wrap table.prices td .as-of { margin-top: 4px; }
.filter-check { max-width: 36rem; }

/* v0.1.4: by-drug summary stacks into cards on small screens */
@media (max-width: 800px) {
  .by-drug-table thead { display: none; }
  .by-drug-table, .by-drug-table tbody, .by-drug-table tr, .by-drug-table td { display: block; width: 100%; }
  .by-drug-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
  .by-drug-table td { padding: 3px 0; border: 0; }
  .by-drug-table td[data-label="Cheapest with online visit"]:not(:empty)::before { content: "With online visit: "; color: var(--muted, #9aa3b2); font-size: .85em; }
  .by-drug .table-wrap { overflow: visible; }
}
@media (max-width: 800px) {
  .by-drug-table tr { display: grid !important; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 0 !important; border-radius: 0 !important; }
  .by-drug-table td { border: 0 !important; padding: 2px 0 !important; }
  .by-drug-table td::before { display: none; }
  .by-drug-table td.total { text-align: right; }
  .by-drug-table td[data-label="Provider"], .by-drug-table td[data-label="Cheapest with online visit"] { grid-column: 1 / -1; }
  .by-drug-table td[data-label="Cheapest with online visit"]:not(:empty)::before { display: inline; content: "With online visit: "; }
}

/* v0.2 guides */
.guide h2{margin-top:1.6rem}
.guide sup a{text-decoration:none;font-size:.72em;margin-left:1px}
ol.refs{padding-left:1.4rem;font-size:.9rem;line-height:1.5}
ol.refs li{margin:.5rem 0}
ol.refs .badge{font-size:.7rem}
details.faq{border:1px solid var(--line, rgba(127,127,127,.25));border-radius:10px;padding:.6rem .9rem;margin:.5rem 0}
details.faq summary{cursor:pointer;font-weight:600}
.guide-link{margin:.4rem 0 1rem}
.guide-link a{font-weight:600}
/* v0.2 mobile: keep offer cards inside the viewport (badges and long notes wrap) */
@media (max-width: 800px) {
  .offers-wrap table.prices tr { grid-template-columns: minmax(0,1fr) minmax(0,auto); }
  .offers-wrap table.prices td { min-width: 0; overflow-wrap: anywhere; }
  .offers-wrap table.prices td.total { white-space: normal; max-width: 52vw; }
  .offers-wrap table.prices td.total .badge { white-space: nowrap; }
  .offers-wrap table.prices { width: 100%; table-layout: fixed; }
  .offers-wrap { overflow-x: hidden; }
}

/* ===== v0.3: product-first redesign ===== */
:root { --text-muted: #b6c0cf; --text-faint: #97a3b5; --tile-h: 148px; }
[data-theme="light"] { --text-muted: #435063; --text-faint: #4f5968; }
html, body { font-size: 16px; }
.nav-links a { font-size: 15px; padding: 8px 12px; }
.nav-links { margin-left: 18px; }
.disclaimer-bar { font-size: 13px; }
.kicker { font-size: 13px; }

/* hero */
.hero { padding: 64px 0 36px; background:
  radial-gradient(900px 380px at 12% -8%, color-mix(in srgb, var(--accent-deep) 34%, transparent), transparent 70%),
  radial-gradient(600px 300px at 95% 10%, color-mix(in srgb, var(--best) 10%, transparent), transparent 70%); }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 15ch; margin: 0 0 18px; font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero .lede { font-size: 1.2rem; max-width: 40rem; color: var(--text-muted); margin: 0 0 30px; }
.bigsearch .search-wrap { max-width: 820px; }
.bigsearch .search-box, .bigsearch.inline input {
  height: 68px; font-size: 1.25rem; padding: 0 128px 0 58px; border-radius: 18px;
  border: 2px solid var(--border-strong); background: var(--bg-card); box-shadow: var(--shadow);
}
.bigsearch .search-box::placeholder { color: var(--text-faint); font-size: 1.05rem; }
.bigsearch .search-box:focus, .bigsearch.inline input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim), var(--shadow); }
.bigsearch .search-wrap > svg { left: 20px; width: 24px; height: 24px; opacity: .75; }
.search-go { position: absolute; right: 9px; top: 9px; height: 50px; padding: 0 24px; border-radius: 12px; border: 0; background: var(--accent-deep); color: #fff; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.search-go:hover { background: var(--accent-strong); }
.bigsearch.inline { position: relative; display: block; max-width: 820px; margin: 18px 0 14px; }
.bigsearch.inline input { width: 100%; padding: 0 20px 0 58px; height: 60px; }
.bigsearch.inline svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); opacity: .75; }
.search-results { max-height: 480px; padding: 8px; border-radius: 16px; }
.search-results a { padding: 12px 14px; font-size: 1.05rem; }
.search-results a strong { font-size: 1.12rem; }
.search-results .meta { font-size: 13.5px; }
.search-results a.hit-prod { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: baseline; }
.search-results a.hit-prod .hp { font-weight: 800; font-size: 1.15rem; color: var(--best); }
.search-results a.hit-prod .meta { grid-column: 1 / -1; }
.search-results .grp { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; padding: 8px 14px 2px; }
.pop-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 0; max-width: 900px; }
.pop-label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); font-weight: 700; margin-right: 4px; }
.chip { font-size: 15px; padding: 8px 15px; font-weight: 600; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 34px 0 0; padding: 0; }
.stats div { display: flex; align-items: baseline; gap: 8px; }
.stats dt { font-family: var(--display); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; }
.stats dd { margin: 0; color: var(--text-muted); font-size: 15px; }

/* sections and tiles */
.section { padding: 34px 0; }
.section h2 { font-size: 2rem; margin: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 18px; flex-wrap: wrap; }
.sec-head .more { font-weight: 700; font-size: 15px; }
.page-h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 10px; }
.lede { font-size: 1.1rem; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.tile-grid.big { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 6px; min-height: var(--tile-h); padding: 20px 20px 18px; border-radius: 18px;
  background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--text); text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s, background .2s; position: relative; }
.tile:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--bg-card-hover); text-decoration: none; color: var(--text); }
.tile-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tile-title { font-size: 1.3rem; font-weight: 750; line-height: 1.2; letter-spacing: -0.015em; }
.tile-arrow { color: var(--accent); font-size: 1.3rem; font-weight: 700; }
.tile-cat { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-weight: 700; }
.tile-count { color: var(--text-muted); font-size: 14.5px; }
.tile-count strong { color: var(--text); font-size: 1.05rem; }
.tile-blurb { color: var(--text-muted); font-size: 14.5px; line-height: 1.35; }
.tile-price { margin-top: auto; font-size: 1.75rem; font-weight: 800; color: var(--best); letter-spacing: -0.02em; line-height: 1.1; padding-top: 6px; }
.tile-price .from { font-size: .85rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; margin-right: 2px; }
.pgroup { margin: 34px 0 0; scroll-margin-top: 84px; }
.pgroup h2 { font-size: 1.7rem; margin: 0 0 14px; }
.pgroup h2 a { color: var(--text); }
.pgroup h2 .n, .pchip .n { font-size: .8em; color: var(--text-muted); font-family: var(--font); font-weight: 600; margin-left: 4px; }
.pgroup[hidden], .tile[hidden] { display: none !important; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.pchip { border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text); border-radius: 999px; padding: 8px 15px; font-size: 15px; font-weight: 600; cursor: pointer; }
.pchip:hover { border-color: var(--accent); }
.pchip.on { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.pchip.on .n { color: rgba(255,255,255,.8); }

/* product bar above tables */
.product-bar { margin: 10px 0 18px; }
.tfilter { position: relative; display: block; max-width: 640px; }
.tfilter svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); opacity: .7; }
.tfilter input { width: 100%; height: 52px; padding: 0 16px 0 46px; font-size: 1.05rem; border-radius: 14px; border: 2px solid var(--border-strong); background: var(--bg-card); outline: none; }
.tfilter input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.active-product { margin: 6px 0 0; font-size: 1.05rem; font-weight: 600; }
.active-product button { margin-left: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--accent); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-weight: 600; }

/* offers table: product and price first */
.table-wrap { border-radius: 18px; border-color: var(--border-strong); }
table.prices { font-size: 15px; table-layout: fixed; }
table.prices th { font-size: 12.5px; padding: 14px 18px; color: var(--text-muted); }
table.prices td { padding: 20px 18px; vertical-align: top; }
table.prices th:nth-child(1) { width: 30%; } table.prices th:nth-child(2) { width: 15%; } table.prices th:nth-child(3) { width: 13%; }
table.prices th:nth-child(4) { width: 24%; } table.prices th:nth-child(5) { width: 18%; }
.c-visit .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
table.prices tr.best { box-shadow: inset 4px 0 0 var(--best); }
.offers-wrap table.prices tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.prod-name { display: block; font-size: 1.22rem; font-weight: 750; line-height: 1.22; letter-spacing: -0.015em; color: var(--text); }
.prod-sub { font-size: 14.5px; color: var(--text-muted); margin-top: 4px; }
.prod-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.prod-tags .badge { margin: 0; }
table.prices .total { white-space: normal; }
.price-main { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; }
.price-main[data-orig]:not([data-orig=""]) { font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.01em; }
.best .price-main { color: var(--best); }
table.prices .fee-note { font-size: 13.5px; margin-top: 6px; font-weight: 500; color: var(--text-muted); }
.price-badges { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.price-badges .badge, .total > .badge { margin: 0 0 4px; }
.prov-name { font-size: 1.02rem; font-weight: 650; color: var(--text); }
.c-prov .kind-pill { margin-top: 6px; font-size: 12px; color: var(--text-muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.badge { font-size: 12.5px; padding: 3px 10px; }
.badge.new { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.kind-pill { font-size: 12px; color: var(--text-muted); }
.includes-preview { font-size: 15px; color: var(--text); }
.as-of { font-size: 12.5px; color: var(--text-faint); }
.faint { font-size: 13px; }
.btn { padding: 11px 16px; font-size: 15px; border-radius: 12px; }
.card h3 { font-size: 1.15rem; }
.card p { font-size: 14.5px; }
.price-lg { font-size: 1.5rem; }

@media (max-width: 800px) {
  .hero { padding: 36px 0 22px; }
  .hero h1 { font-size: 2.55rem; }
  .hero .lede { font-size: 1.08rem; }
  .bigsearch .search-box { height: 62px; font-size: 1.1rem; padding: 0 20px 0 52px; }
  .bigsearch .search-box::placeholder { font-size: .98rem; }
  .search-go { position: static; display: block; width: 100%; margin-top: 10px; height: 52px; }
  .bigsearch .search-wrap > svg { top: 31px; }
  .search-results { top: 70px; }
  .stats dt { font-size: 1.6rem; }
  .stats { gap: 8px 26px; }
  .tile-grid, .tile-grid.big { grid-template-columns: 1fr; gap: 12px; }
  .tile { min-height: 0; padding: 16px 18px; }
  .tile-price { font-size: 1.6rem; }
  .section h2 { font-size: 1.65rem; }
  .pchips.scroll, .product-bar .pchips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; margin-right: -1rem; padding-right: 1rem; scrollbar-width: thin; }
  .pchip { white-space: nowrap; flex: 0 0 auto; }
  .products-page .pchips, .section .container > .pchips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .offers-wrap table.prices { table-layout: auto; }
  .offers-wrap table.prices tr { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 18px 18px 16px; }
  .offers-wrap table.prices td { padding: 3px 0; }
  .offers-wrap table.prices td.c-product { grid-column: 1; grid-row: 1; }
  .offers-wrap table.prices td.total { grid-column: 2; grid-row: 1; text-align: right; max-width: 44vw; }
  .offers-wrap table.prices td.total .price-badges { justify-content: flex-end; }
  .offers-wrap table.prices td.c-prov, .offers-wrap table.prices td.c-incl, .offers-wrap table.prices td.c-visit { grid-column: 1 / -1; }
  .offers-wrap table.prices td.c-prov { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
  .offers-wrap table.prices td.c-prov::before { display: inline !important; margin: 0; font-size: 12px; }
  .offers-wrap table.prices td.c-prov .kind-pill { margin: 0; }
  .prod-name { font-size: 1.3rem; }
  .price-main { font-size: 1.85rem; }
  .price-main[data-orig]:not([data-orig=""]) { font-size: 1rem; }
  .offers-wrap table.prices td.c-incl::before { display: none; }
  .offers-wrap table.prices td.c-incl { margin-top: 4px; }
  .tfilter input { height: 50px; }
}

/* hero two-column with price peek */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 40px; align-items: start; }
.peek { margin-top: 28px; background: color-mix(in srgb, var(--bg-card) 92%, transparent); border: 1px solid var(--border-strong); border-radius: 20px; padding: 22px 22px 18px; box-shadow: var(--shadow); }
.peek h2 { font-family: var(--font) !important; font-size: .8rem !important; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px !important; font-weight: 700 !important; }
.peek ul { list-style: none; margin: 0 0 10px; padding: 0; }
.peek li a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--border); color: var(--text); }
.peek li:last-child a { border-bottom: 0; }
.peek li a:hover { text-decoration: none; background: var(--accent-dim); border-radius: 8px; padding-inline: 8px; }
.pk-name { font-weight: 650; font-size: 1.1rem; }
.pk-price { font-weight: 800; font-size: 1.25rem; color: var(--best); white-space: nowrap; font-variant-numeric: tabular-nums; }
.peek .more { font-weight: 700; font-size: 14.5px; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 0; } .peek { display: none; } }
.nav-links a, .peek li a, .peek .more, .tile, .tile:hover { text-decoration: none; }
.nav-links a:hover, .peek .more:hover, .sec-head .more:hover { text-decoration: underline; }
.prod-tile .tile-title, .tile-price { text-decoration: none; }

.price-main .unit { font-size: .95rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.filter-check input { min-width: 0 !important; width: 20px; height: 20px; flex: 0 0 auto; }
.filters label { font-size: 13.5px; color: var(--text-muted); }
.filters select, .filters input:not([type="checkbox"]) { font-size: 15px; padding: 10px 12px; }
.filter-check { font-size: 15px !important; color: var(--text) !important; }

/* v0.4: keep the first price on the first mobile screen */
@media (max-width: 800px) {
  .section { padding: 22px 0; }
  .page-h1 { font-size: 2rem; margin: 0 0 6px; }
  .lede { font-size: 1rem; margin-bottom: 10px; }
  .product-bar { margin: 6px 0 10px; }
  .tfilter input { height: 44px; }
  .pchips { margin: 8px 0 4px; }
  .pchip { padding: 6px 12px; font-size: 14px; }
  .filters-panel { margin: 0 0 10px; }
}

/* v0.5: starting-price "from" label and grouped product chips */
.price-main[data-from="1"]::before {
  content: "from ";
  font-size: .85em;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-right: .15em;
}
.pchips.grouped { flex-wrap: wrap; }
.pmore { margin: 0 0 8px; }
.pmore > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 15px;
  font-weight: 600;
}
.pmore > summary::-webkit-details-marker { display: none; }
.pmore > summary:hover { border-color: var(--accent); }
.pmore[open] > summary { border-style: solid; border-color: var(--accent); }
.pmore .n { font-size: .8em; color: var(--text-muted); font-weight: 600; }
.pchips-more { margin-top: 8px; }
.pchip[data-chip-kind="type"] { font-size: 16px; padding: 9px 16px; }
@media (max-width: 800px) {
  .pchips.grouped { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
  .pchip[data-chip-kind="type"] { font-size: 15px; }
}

/* ---- 21+ gate (added for go-live) ---- */
.age-pending, .age-pending body { overflow: hidden; }
.age-pending body > *:not(.age-gate) { visibility: hidden; animation: age-failsafe 0s linear 3s forwards; }
.age-open body > * { visibility: visible !important; animation: none !important; }
@keyframes age-failsafe { to { visibility: visible; } }
.age-gate {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto; background: rgba(7,9,12,0.94);
}
[data-theme="light"] .age-gate { background: rgba(245,246,248,0.95); }
@supports (backdrop-filter: blur(1px)) { .age-gate { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(7,9,12,0.86); } [data-theme="light"] .age-gate { background: rgba(245,246,248,0.88); } }
.age-gate-card {
  width: min(100%, 460px); margin: auto; padding: 28px 28px 22px;
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.age-gate-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.03em; font-size: 1.1rem; }
.age-gate-card .age-gate-kicker { margin: 20px 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.age-gate-card h2 { font-family: var(--display); font-weight: 500; font-size: 2rem; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; }
.age-gate-card p { margin: 0 0 10px; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.age-gate-card .age-gate-med { color: var(--text); font-size: 14px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--accent-dim); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.age-gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.age-btn {
  flex: 1 1 180px; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px;
  border-radius: 12px; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; text-align: center; text-decoration: none; border: 1px solid transparent;
}
.age-btn:hover { text-decoration: none; }
.age-btn-primary { background: var(--accent-deep); color: #fff; }
.age-btn-primary:hover { background: var(--accent-strong); color: #fff; }
.age-btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.age-btn-ghost:hover { background: var(--bg-card-hover); color: var(--text); }
.age-btn:focus-visible, .age-gate a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.age-gate-card .age-gate-fine { margin: 0; font-size: 12px; color: var(--text-faint); }
.age-gate-fine a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) { .age-gate-card { padding: 22px 18px 18px; } .age-gate-card h2 { font-size: 1.7rem; } }
/* footer legal row + legal pages */
.foot-legal { margin: 16px 0 0; font-size: 13px; color: var(--text-muted); }
.foot-legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.disclaimer-bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.prose.legal h2 { font-size: 1.35rem; }
.prose.legal ul { padding-left: 1.2rem; }
.prose .muted { color: var(--text-faint); font-size: 13px; }
.nav-links a, .nav-actions a { text-decoration: none; }
