:root {
  color-scheme: light;
  --ink: #171719;
  --muted: #61646b;
  --paper: #faf9f5;
  --surface: #ffffff;
  --line: #d9ddd5;
  --lime: #c8f353;
  --coral: #ff6b4a;
  --aqua: #46c2c7;
  --forest: #174236;
  --blue: #3858e9;
  --shadow: 0 20px 60px rgba(23, 23, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(23, 23, 25, 0.08);
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
}

.topnav a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.topnav a:hover {
  background: rgba(23, 23, 25, 0.07);
  color: var(--ink);
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.finder {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  min-height: calc(100vh - 72px);
  align-items: stretch;
}

.finder-form {
  padding: clamp(26px, 5vw, 76px) clamp(18px, 5vw, 72px);
}

.kicker {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.15;
}

.intro {
  max-width: 620px;
  margin: 20px 0 32px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.affiliate-note {
  max-width: 620px;
  border-left: 4px solid var(--aqua);
  margin: -14px 0 30px;
  padding: 10px 0 10px 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.quiz {
  display: grid;
  gap: 22px;
  max-width: 760px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.segmented,
.choice-grid {
  display: grid;
  gap: 8px;
}

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

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

.segmented label,
.choice-grid label {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.segmented label:hover,
.choice-grid label:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 23, 25, 0.28);
}

.segmented input,
.choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label:has(input:checked),
.choice-grid label:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 14px;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--forest);
}

output {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-weight: 900;
}

.hero-panel {
  position: relative;
  display: grid;
  min-height: 560px;
  overflow: hidden;
  background: #232522;
}

.hero-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 9, 8, 0.04), rgba(8, 9, 8, 0.68)),
    linear-gradient(90deg, rgba(8, 9, 8, 0.32), rgba(8, 9, 8, 0.02));
}

.pack {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 42px);
  color: #fff;
}

.pack .kicker {
  color: var(--lime);
}

.pack h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.pack-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.pack-metrics div {
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.pack-metrics dt {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
}

.pack-metrics dd {
  margin: 4px 0 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 950;
}

.bundle,
.catalog,
.compare,
.ops {
  padding: clamp(32px, 6vw, 74px) clamp(18px, 4vw, 48px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button {
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button.ghost,
.icon-button {
  background: var(--surface);
  color: var(--ink);
}

.button.primary {
  background: var(--forest);
  border-color: var(--forest);
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
}

.icon-button.active {
  background: var(--ink);
  color: #fff;
}

.button svg,
.icon-button svg,
.product-meta svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

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

.bundle-item {
  display: grid;
  min-height: 170px;
  align-content: space-between;
  gap: 18px;
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.bundle-item span {
  color: var(--muted);
  font-weight: 800;
}

.bundle-item strong {
  display: block;
  font-size: 1.03rem;
  line-height: 1.2;
}

.bundle-item em {
  color: var(--forest);
  font-style: normal;
  font-weight: 900;
}

.catalog {
  background: #edf1ea;
}

.catalog-heading {
  align-items: center;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

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

.product-card {
  display: grid;
  min-height: 405px;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.product-visual {
  position: relative;
  min-height: 168px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(200, 243, 83, 0.78), rgba(70, 194, 199, 0.62)),
    #f7f7f2;
}

.product-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-visual-inner {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  min-height: 140px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-score {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 950;
}

.product-category {
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-title {
  display: grid;
  gap: 4px;
}

.product-title span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 9px;
  background: #f0f2ef;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-meta .merchant-chip {
  background: #eef7d7;
  color: var(--forest);
}

.reason {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.affiliate-state {
  color: var(--muted);
  font-weight: 800;
}

.product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0 18px 18px;
}

.variant-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: #ffffff;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.variant-links a:hover {
  border-color: rgba(25, 77, 63, 0.35);
  background: #f3f7ef;
}

.compare-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 850;
}

.compare-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--forest);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

td {
  line-height: 1.42;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  border: 1px dashed #aeb6ac;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
}

.ops {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: start;
  background: var(--ink);
  color: #fff;
}

.ops p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.ops .kicker {
  color: var(--lime);
}

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

.ops-grid div {
  min-height: 136px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.ops-grid strong,
.ops-grid span {
  display: block;
}

.ops-grid span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.42;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer div,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.site-footer span,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.site-footer a:hover {
  color: var(--ink);
}

.static-page {
  max-width: 940px;
  min-height: calc(100vh - 72px);
  padding: clamp(30px, 6vw, 84px) clamp(18px, 5vw, 56px);
}

.static-page h1 {
  max-width: 850px;
}

.static-page h2 {
  margin-top: 34px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.static-page p,
.static-page li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.static-page ul {
  padding-left: 20px;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 26px 0;
  padding: 18px;
  background: var(--surface);
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.redirect-page {
  display: grid;
  align-content: center;
}

.fine-print {
  margin-top: 18px;
  font-size: 0.92rem;
}

@media (max-width: 1040px) {
  .finder {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    min-height: 430px;
  }

  .bundle-list,
  .product-grid,
  .ops,
  .ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.2rem, 14vw, 4.2rem);
  }

  .segmented,
  .choice-grid,
  .bundle-list,
  .product-grid,
  .ops,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .catalog-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar {
    justify-content: flex-start;
  }

  .hero-panel {
    min-height: 360px;
  }

  .pack-metrics {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .range-row {
    grid-template-columns: 1fr;
  }

  output {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
