:root {
  --bg: #F4F7F5;
  --surface: #FFFFFF;
  --ink: #12262A;
  --ink-soft: #4C6B6E;
  --teal: #0E4F4F;
  --teal-deep: #0A3A3A;
  --coral: #FF6B4A;
  --coral-soft: #FFE4DB;
  --gold: #F2A93B;
  --line: #DCE7E3;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; background: var(--teal); color: #fff; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.logo-mark-dot { color: var(--coral); }
.logo-word { font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.logo-word strong { font-weight: 700; }
.header-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.header-nav a { text-decoration: none; color: var(--ink-soft); }
.header-nav a:hover { color: var(--teal); }

.hero { padding: 56px 0 40px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-inner { text-align: center; }
.eyebrow { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); margin: 0 0 14px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 700; margin: 0 auto 14px; max-width: 22ch; }
.hero-sub { font-size: 15.5px; color: var(--ink-soft); max-width: 58ch; margin: 0 auto 24px; }

.how-it-works { max-width: 760px; margin: 0 auto 28px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-steps li { display: flex; gap: 12px; text-align: left; }
.how-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--teal); background: var(--bg); border: 1.5px solid var(--line); width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.how-steps h3 { font-size: 14px; margin: 0 0 2px; }
.how-steps p { font-size: 13px; color: var(--ink-soft); margin: 0; }

.search-bar { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 24px; }
.search-bar input { flex: 1; padding: 15px 18px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px; font-family: var(--font-body); background: var(--surface); color: var(--ink); }
.search-bar input:focus { border-color: var(--teal); outline: none; }
.search-bar button { padding: 15px 24px; border: none; border-radius: 10px; background: var(--teal); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background 0.15s ease; }
.search-bar button:hover { background: var(--teal-deep); }

.trust-strip { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.trust-pill { background: rgba(14,79,79,0.08); color: var(--teal); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.trust-note { color: var(--ink-soft); font-size: 13px; }

.results { padding: 48px 0 64px; }
.results-head { margin-bottom: 24px; }
.results-head h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.results-sub { color: var(--ink-soft); font-size: 14px; }
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.category-tab { font-family: var(--font-body); font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; transition: all 0.15s ease; }
.category-tab:hover { border-color: var(--teal); color: var(--teal); }
.category-tab.active { background: var(--teal); border-color: var(--teal); color: #fff; }

.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; }
.empty-state { padding: 48px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; color: var(--ink-soft); }

.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: grid; grid-template-columns: 112px 1fr; gap: 28px; transition: box-shadow 0.15s ease; }
.product-card:hover { box-shadow: 0 12px 30px rgba(14,79,79,0.08); }
.product-icon { width: 112px; height: 112px; border-radius: 16px; background: linear-gradient(145deg, #EAF1EE, #DCEAE5); display: flex; align-items: center; justify-content: center; }
.product-icon svg { width: 56px; height: 56px; stroke: var(--teal); }
.product-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin: 0 0 4px; }
.product-category-label { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 18px; }

.price-race { position: relative; height: 3px; background: var(--line); border-radius: 3px; margin: 34px 4px 26px; }
.price-marker { position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.price-marker .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ink-soft); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.price-marker.best .dot { background: var(--coral); box-shadow: 0 0 0 5px var(--coral-soft); }
.price-marker .label { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; order: -1; margin-bottom: 8px; text-align: center; }
.price-marker.best .label { color: var(--coral); }
.price-marker .price { display: block; font-family: var(--font-mono); font-weight: 600; font-size: 13.5px; color: var(--ink); }
.price-marker.best .price { color: var(--coral); }
.price-marker .retailer-name { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--ink-soft); text-transform: capitalize; }

.offer-rows { display: flex; flex-direction: column; gap: 10px; }
.offer-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 10px; background: var(--bg); }
.offer-row.best { background: var(--coral-soft); }
.offer-left { display: flex; align-items: center; gap: 12px; }
.offer-retailer { font-weight: 600; font-size: 14px; text-transform: capitalize; min-width: 72px; }
.offer-stock { font-size: 12px; color: var(--ink-soft); }
.offer-stock.out { color: var(--coral); }
.offer-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
.offer-price { font-family: var(--font-mono); font-weight: 600; font-size: 16px; }
.best-badge { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--coral); background: #fff; border: 1px solid var(--coral); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.offer-buy { text-decoration: none; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 8px; background: var(--teal); color: #fff; transition: background 0.15s ease; }
.offer-buy:hover { background: var(--teal-deep); }
.offer-row.out-of-stock .offer-buy { background: var(--line); color: var(--ink-soft); pointer-events: none; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); }
.footer-note { max-width: 52ch; }

@media (max-width: 720px) {
  .product-card { grid-template-columns: 1fr; }
  .product-icon { display: none; }
  .how-steps { grid-template-columns: 1fr; }
  .header-nav { display: none; }
}