:root {
  color-scheme: light;
  --bg: #f8fbff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #07111f;
  --muted: #5c6678;
  --soft: #eef5ff;
  --soft-2: #f4f8ff;
  --line: #d8e2f2;
  --line-strong: #bed0ea;
  --blue: #0f66ff;
  --blue-dark: #0751d5;
  --green: #087449;
  --green-soft: #e9f8f1;
  --shadow: 0 24px 70px rgba(13, 45, 94, 0.12);
  --shadow-soft: 0 14px 42px rgba(13, 45, 94, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(#b8cae6 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0, #f3f8ff 42%, #ffffff 100%);
  background-size: 22px 22px, auto;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 102, 255, 0.06), transparent 28%, transparent 72%, rgba(15, 102, 255, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), transparent 32%);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }

img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(216, 226, 242, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1220px, calc(100vw - 44px));
  min-height: 58px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-weight: 730;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 102, 255, 0.13);
}

.brand-mark img {
  width: 24px;
  height: 24px;
}

.brand-word {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  white-space: nowrap;
}

.brand-dot {
  margin-left: -8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.brand-divider { width: 1px; height: 24px; background: var(--line); }
.service-word { font-size: 14px; font-weight: 690; color: var(--text); }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4d5668;
  font-size: 14px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
}

.nav a.active,
.nav a:hover {
  color: var(--blue);
  background: rgba(15, 102, 255, 0.08);
}

main {
  position: relative;
  min-height: 72vh;
}

.hero,
.page-hero,
.product-page {
  width: min(1220px, calc(100vw - 44px));
  margin: 0 auto;
}

.hero,
.page-hero {
  position: relative;
}

.hero {
  padding: 96px 0 78px;
}

.shopper-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 54px;
  min-height: calc(100vh - 58px);
}

.hero-copy-block h1,
.hero-copy-block .hero-copy,
.hero-copy-block .search-box {
  margin-left: 0;
  margin-right: 0;
}

.hero-copy-block h1 {
  font-size: 64px;
}

.editorial-panel {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(15, 102, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,246,255,0.86)),
    radial-gradient(circle at 20% 18%, rgba(15, 102, 255, 0.16), transparent 34%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.editorial-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#a9c2e8 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.55;
}

.editorial-card {
  position: absolute;
  z-index: 1;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(13, 45, 94, 0.16);
  backdrop-filter: blur(18px);
}

.editorial-card-main {
  left: 54px;
  top: 58px;
  width: 330px;
  padding: 26px;
}

.editorial-card-main img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.editorial-card-main div {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 18px;
}

.editorial-card-main span,
.editorial-card-side span,
.editorial-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.editorial-card-main strong {
  color: var(--green);
  font-size: 28px;
}

.editorial-card-side {
  right: 42px;
  top: 134px;
  width: 210px;
  padding: 16px;
}

.editorial-card-side img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

.editorial-card-side span {
  display: block;
  margin-top: 12px;
  color: var(--blue);
}

.editorial-strip {
  position: absolute;
  z-index: 2;
  left: 48px;
  right: 48px;
  bottom: 46px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.editorial-strip span {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: #1f3150;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-hero {
  padding: 86px 0 34px;
}

.page-hero.compact {
  padding: 42px 0 14px;
  text-align: left;
}

.page-hero.compact h1,
.page-hero.compact .hero-copy,
.page-hero.compact .search-box {
  margin-left: 0;
  margin-right: 0;
}

.page-hero.compact h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 34px;
}

.page-hero.compact .hero-copy {
  max-width: 720px;
  font-size: 17px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { letter-spacing: 0; }

h1 {
  max-width: 920px;
  margin: 0 auto 18px;
  font-size: 68px;
  line-height: 0.98;
}

h2 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.06;
}

h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
}

p {
  color: var(--muted);
  line-height: 1.58;
}

.hero-copy,
.page-hero > p {
  max-width: 710px;
  margin: 0 auto 28px;
  font-size: 19px;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px auto;
  gap: 10px;
  width: min(850px, 100%);
  margin: 26px auto 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.page-hero.compact .search-box {
  width: min(700px, 100%);
  margin-top: 0;
  box-shadow: 0 12px 34px rgba(13, 45, 94, 0.08);
}

input, select, button, .button {
  min-height: 46px;
  border-radius: 8px;
  font: inherit;
}

input, select {
  width: 100%;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  outline: none;
}

input:focus, select:focus {
  border-color: rgba(15, 102, 255, 0.66);
  box-shadow: 0 0 0 4px rgba(15, 102, 255, 0.11);
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  font-weight: 720;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(15, 102, 255, 0.24);
}

button:hover, .button:hover {
  color: #fff;
  background: var(--blue-dark);
}

.category-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #253149;
  font-weight: 660;
  box-shadow: 0 10px 26px rgba(13, 45, 94, 0.05);
}

.shopper-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shopper-steps article {
  min-height: 150px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.shopper-steps strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.section {
  width: 100%;
  padding: 72px max(22px, calc((100vw - 1220px) / 2));
  border-top: 1px solid rgba(216, 226, 242, 0.9);
  background: rgba(255, 255, 255, 0.8);
}

.band-blue {
  background: rgba(15, 102, 255, 0.10);
}

.search-results {
  padding-top: 18px;
  background: transparent;
  border-top: 0;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: start;
}

.info-card,
.expectation,
.filters,
.empty,
.notice,
.toolbar,
.results-head,
.result-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.info-card,
.expectation,
.empty,
.notice {
  padding: 24px;
}

.notice {
  margin-bottom: 18px;
  color: #173866;
  background: #eef6ff;
  border-color: #b9d3ff;
}

.section-head,
.results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.results-head {
  align-items: center;
  padding: 20px;
}

.results-head h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.result-stat {
  min-width: 220px;
  padding: 14px 16px;
  background: #fff;
}

.result-stat strong,
.result-stat span {
  display: block;
}

.result-stat span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.toolbar {
  display: block;
  margin-bottom: 10px;
  padding: 12px;
}

.toolbar form {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(180px, 240px) auto;
  gap: 10px;
  align-items: end;
  justify-content: end;
}

.toolbar label span {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-ribbon {
  display: grid;
  grid-template-columns: 180px 1fr 190px;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.filter-ribbon div {
  min-height: 54px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-ribbon strong,
.filter-ribbon span {
  display: block;
}

.filter-ribbon strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.filter-ribbon span {
  color: var(--muted);
  font-size: 13px;
}

.category-grid,
.merchant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps article,
.merchant-grid article {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(13, 45, 94, 0.05);
}

.steps strong {
  display: block;
  margin-bottom: 8px;
}

.category-grid a {
  min-height: 64px;
  background: var(--surface-strong);
}

.results-layout { display: block; }

.small {
  color: var(--muted);
  font-size: 13px;
}

.product-grid,
.result-list {
  display: grid;
  gap: 10px;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-list {
  grid-template-columns: 1fr;
}

.product-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  min-height: 106px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(13, 45, 94, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 102, 255, 0.35);
  box-shadow: 0 22px 58px rgba(13, 45, 94, 0.14);
}

.product-grid .product-card {
  grid-template-columns: 1fr;
  min-height: 0;
}

.product-card__image {
  position: relative;
  display: block;
  min-height: 86px;
  height: 86px;
  margin: 10px 0 10px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-grid .product-card__image {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
  margin: 10px 10px 0;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  mix-blend-mode: multiply;
}

.product-card__body {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 6px;
  padding: 14px 16px;
}

.product-card__top,
.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card__top .eyebrow {
  margin: 0;
}

.product-card__top span {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #173866;
  background: #eef6ff;
  border: 1px solid #c9dcff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 720;
}

.product-card h3 {
  max-width: 820px;
  margin-bottom: 2px;
  font-size: 16px;
  line-height: 1.34;
}

.product-card__meta {
  justify-content: start;
  margin-top: 0;
  gap: 18px;
  color: var(--muted);
}

.product-card__meta strong,
.price-line strong,
.offer-price {
  color: var(--green);
}

.product-card__meta strong {
  font-size: 18px;
}

.product-card__button {
  align-self: center;
  width: 118px;
  min-height: 40px;
  margin: 0 14px 0 0;
  padding: 0 16px;
  font-size: 14px;
}

.product-grid .product-card__button {
  align-self: start;
  margin: 6px 0 0;
}

.product-page {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 64px 0 36px;
}

.product-media {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  mix-blend-mode: multiply;
}

.product-summary h1 {
  margin-left: 0;
  margin-right: 0;
  font-size: 54px;
}

.offer-list {
  display: grid;
  gap: 10px;
}

.offer-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(13, 45, 94, 0.05);
}

.offer-row p {
  margin: 4px 0 0;
}

.checks {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.checks li {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.merchant-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.prose {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(15, 102, 255, 0.05);
}

.footer-inner {
  width: min(1220px, calc(100vw - 44px));
  margin: 0 auto;
  padding: 42px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(92, 102, 120, 0.9);
  font-size: 14px;
}

.footer-row div,
.footer nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer strong {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.endcap {
  min-height: 52vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  overflow: hidden;
  color: #fff;
  background: #050b14;
}

.endcap p {
  margin: 0;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.endcap strong {
  color: #fff;
  font-size: 112px;
  line-height: 0.9;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 980px) {
  .site-header,
  .section-head,
  .results-head {
    align-items: start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .nav { flex-wrap: wrap; }

  h1 { font-size: 48px; }
  h2 { font-size: 32px; }

  .shopper-hero,
  .search-box,
  .toolbar form,
  .two-col,
  .results-layout,
  .product-page {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .category-grid,
  .merchant-grid,
  .steps,
  .shopper-steps,
  .filter-ribbon {
    grid-template-columns: 1fr;
  }

  .filters { position: static; }
  .offer-row { grid-template-columns: 1fr; }

  .editorial-panel {
    min-height: 440px;
  }

  .editorial-card-main {
    left: 24px;
    top: 34px;
  }

  .editorial-card-side {
    right: 24px;
  }
}

@media (max-width: 680px) {
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
  }

  .brand-divider,
  .service-word {
    display: none;
  }

  .hero,
  .page-hero,
  .product-page {
    width: min(100vw - 28px, 1220px);
  }

  h1 { font-size: 38px; }

  .hero { padding-top: 72px; }
  .page-hero { padding-top: 54px; }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card__image {
    aspect-ratio: 4 / 3;
    height: auto;
    margin: 10px 10px 0;
  }

  .product-card__button {
    width: 100%;
    margin: 8px 0 0;
  }

  .endcap strong {
    font-size: 56px;
  }
}
