:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #18211f;
  --muted: #66716d;
  --line: #dfe5df;
  --accent: #176b5b;
  --accent-2: #d85c27;
  --accent-3: #315f9b;
  --soft: #e9f3ee;
  --shadow: 0 18px 50px rgba(24, 33, 31, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 244, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.brand small,
.eyebrow,
.metrics span,
.controls span,
.product-meta,
.panel-stat span,
.result-card small,
.result-count {
  color: var(--muted);
}

.brand span:last-child {
  display: grid;
  line-height: 1.15;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: end;
  gap: clamp(24px, 6vw, 72px);
  min-height: 460px;
  padding: 54px 0 30px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.92;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  color: #42504b;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pack-shot {
  position: relative;
  min-height: 250px;
  background:
    linear-gradient(135deg, rgba(23, 107, 91, 0.14), rgba(216, 92, 39, 0.12)),
    #f8faf6;
}

.pack {
  position: absolute;
  display: grid;
  align-content: space-between;
  width: 124px;
  height: 168px;
  padding: 18px;
  border: 1px solid rgba(24, 33, 31, 0.12);
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 18px 40px rgba(24, 33, 31, 0.16);
}

.pack span {
  font-size: 14px;
  font-weight: 800;
}

.pack strong {
  font-size: 24px;
  line-height: 1;
}

.pack-large {
  right: 78px;
  bottom: 32px;
  background: linear-gradient(150deg, var(--accent), #0e4038);
}

.pack-small {
  left: 52px;
  bottom: 44px;
  width: 104px;
  height: 138px;
  background: linear-gradient(150deg, var(--accent-2), #8d331a);
}

.panel-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.panel-stat strong {
  font-size: 28px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 8px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metrics div {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
}

.metrics strong {
  font-size: 24px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-strip span {
  min-height: 48px;
  padding: 14px 16px;
  background: #fbfcfa;
  color: #42504b;
  font-size: 14px;
  font-weight: 700;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(130px, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0 12px;
}

button {
  cursor: pointer;
  font-weight: 800;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 12px;
}

.results-head h2,
.method h2 {
  margin-bottom: 4px;
  font-size: 28px;
}

.results-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.ghost-button {
  padding: 0 14px;
}

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

.result-card {
  display: grid;
  grid-template-columns: 70px minmax(260px, 1.6fr) repeat(4, minmax(110px, 0.8fr)) 122px;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.thumb {
  display: grid;
  width: 58px;
  height: 72px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--thumb-a), var(--thumb-b));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

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

.title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.product-title strong {
  font-size: 17px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--soft);
  color: #21554c;
  font-weight: 800;
}

.best-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff1dc;
  color: #8d4a0b;
  font-size: 12px;
  font-weight: 900;
}

.cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cell strong {
  font-size: 18px;
}

.deal-link {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.source-link {
  width: max-content;
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.empty-state {
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.method,
.next {
  margin: 36px 0 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: #42504b;
  line-height: 1.65;
}

.method p,
.next p {
  max-width: 820px;
}

.disclosure {
  font-weight: 700;
}

.disclosure-muted {
  color: var(--muted);
  font-size: 14px;
}

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

.next-grid div {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.next-grid strong {
  font-size: 17px;
}

.next-grid span {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .metrics,
  .trust-strip,
  .controls,
  .next-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    grid-column: 1 / -1;
  }

  .result-card {
    grid-template-columns: 64px 1fr 1fr;
  }

  .result-card .deal-link {
    grid-column: 2 / -1;
  }
}

@media (max-width: 680px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .metrics,
  .trust-strip,
  .controls,
  .next-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 46px;
  }

  .hero-panel {
    display: none;
  }

  .results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ghost-button {
    width: 100%;
  }

  .result-card {
    grid-template-columns: 58px 1fr;
    align-items: start;
  }

  .result-card .cell,
  .result-card .deal-link {
    grid-column: 1 / -1;
  }

  .cell {
    grid-template-columns: 120px 1fr;
    align-items: baseline;
  }

  .deal-link {
    width: 100%;
  }
}
