:root {
  --ink: #111216;
  --ink-soft: #454851;
  --paper: #f4f1ea;
  --white: #fff;
  --red: #d71920;
  --red-dark: #a90f14;
  --line: #d9d5cc;
  --green: #177a51;
  --amber: #a85d08;
  --shadow: 0 18px 44px rgba(18, 20, 25, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: var(--red); color: white;
  font: 800 12px/1 "Manrope", sans-serif; letter-spacing: -0.08em;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.18);
}
.brand-copy { display: grid; }
.brand-copy strong { font: 800 18px/1 "Manrope", sans-serif; letter-spacing: .1em; }
.brand-copy small { margin-top: 5px; color: #72747a; font-size: 8px; font-weight: 700; letter-spacing: .22em; }

.private-pill {
  display: flex; align-items: center; gap: 8px; padding: 9px 13px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft);
  background: rgba(255,255,255,.5); font-size: 12px; font-weight: 600;
}
.private-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(23,122,81,.11); }

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

.hero {
  position: relative; min-height: 410px; padding: 72px 64px 46px; overflow: hidden;
  display: grid; grid-template-columns: 1.55fr .9fr; align-items: end; gap: 70px;
  border-radius: 28px; background: var(--ink); color: white;
  box-shadow: var(--shadow);
}
.hero::before {
  content: ""; position: absolute; width: 510px; height: 510px; right: -130px; top: -260px;
  border: 82px solid rgba(215,25,32,.92); border-radius: 50%;
}
.hero::after {
  content: ""; position: absolute; width: 270px; height: 1px; left: 0; bottom: 68px;
  background: linear-gradient(90deg, var(--red), transparent); transform: rotate(-11deg); transform-origin: left;
}
.hero > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.hero h1 { margin: 0; max-width: 720px; font: 800 clamp(42px, 5.2vw, 70px)/1.02 "Manrope", sans-serif; letter-spacing: -.045em; }
.hero h1 em { color: #b6b6ba; font-style: normal; }
.intro { max-width: 600px; margin: 24px 0 0; color: #c7c7ca; font-size: 17px; line-height: 1.65; }
.hero-stats { display: grid; gap: 1px; align-self: end; background: rgba(255,255,255,.12); border-radius: 16px; overflow: hidden; }
.hero-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 18px 20px; background: rgba(22,23,27,.86); }
.hero-stats strong { font: 800 25px/1 "Manrope", sans-serif; }
.hero-stats span { color: #a9a9ae; font-size: 12px; text-align: right; }

.finder { padding: 74px 0 24px; }
.step-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.step-heading > span { color: var(--red); font: 800 12px/1 "Manrope", sans-serif; }
.step-heading > span::after { content: ""; display: inline-block; width: 36px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--red); }
.step-heading p { margin: 0 0 4px; color: #777981; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.step-heading h2 { margin: 0; font: 800 29px/1.1 "Manrope", sans-serif; letter-spacing: -.035em; }

.generation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.generation-card {
  position: relative; min-height: 132px; padding: 22px 22px; overflow: hidden;
  display: flex; align-items: flex-end; gap: 16px; text-align: left;
  border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.62);
  cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.generation-card:hover { transform: translateY(-3px); border-color: #aaa69e; box-shadow: 0 12px 32px rgba(18,20,25,.08); }
.generation-card:focus-visible { outline: 3px solid rgba(215,25,32,.25); outline-offset: 3px; }
.generation-card.active { background: var(--white); border-color: var(--red); box-shadow: 0 14px 34px rgba(215,25,32,.12); }
.generation-card.active::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 5px; background: var(--red); }
.generation-number { position: absolute; right: -4px; top: -14px; color: rgba(15,16,20,.045); font: 800 74px/1 "Manrope", sans-serif; letter-spacing: -.08em; }
.generation-copy { display: grid; position: relative; z-index: 1; }
.generation-copy strong { font: 800 22px/1 "Manrope", sans-serif; }
.generation-copy small { margin-top: 7px; color: #73757d; font-weight: 600; }
.generation-copy em { margin-top: 9px; color: #94959a; font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: .04em; }
.select-arrow { position: relative; z-index: 1; margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; }
.generation-card.active .select-arrow { background: var(--red); }

.filter-panel {
  margin: 22px 0 20px; padding: 22px; border-radius: 18px; background: var(--white);
  border: 1px solid #e1ddd5; box-shadow: 0 8px 30px rgba(18,20,25,.055);
  animation: reveal .3s ease both;
}
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.search-wrap label, .filter-label { display: block; margin-bottom: 8px; color: #666971; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 15px; top: 50%; width: 20px; transform: translateY(-50%); fill: none; stroke: #6a6d73; stroke-width: 1.8; stroke-linecap: round; }
.search-field input { width: 100%; height: 52px; padding: 0 74px 0 45px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f6; outline: none; }
.search-field input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(215,25,32,.08); background: white; }
.search-field kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 5px 8px; border: 1px solid #d5d1c9; border-radius: 6px; color: #86878b; background: white; font: 600 10px/1 "DM Sans", sans-serif; }
.filter-row { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; margin-top: 20px; }
.filter-side { display: grid; gap: 13px; align-content: start; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .segmented button { border: 1px solid var(--line); background: white; cursor: pointer; font-size: 12px; font-weight: 600; transition: .18s ease; }
.chip { padding: 9px 12px; border-radius: 999px; }
.chip small { margin-left: 3px; color: #96979b; font-size: 9px; }
.chip.active small { color: #c7c8cb; }
.chip:hover, .segmented button:hover { border-color: #9e9b94; }
.chip.active { background: var(--ink); border-color: var(--ink); color: white; }
.segmented { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.segmented button { min-height: 38px; border: 0; border-right: 1px solid var(--line); }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--ink); color: white; }
.stock-toggle { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; color: #5f6269; cursor: pointer; font-size: 12px; font-weight: 700; }
.stock-toggle span { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #bcb9b2; border-radius: 5px; color: transparent; font-size: 10px; }
.stock-toggle.active { color: var(--green); border-color: rgba(23,122,81,.45); background: rgba(23,122,81,.055); }
.stock-toggle.active span { color: white; border-color: var(--green); background: var(--green); }

.results-shell { min-height: 190px; }
.empty-start { min-height: 190px; display: flex; justify-content: center; align-items: center; gap: 18px; color: #6d6f76; border: 1px dashed #c9c5bd; border-radius: 18px; }
.empty-start strong { color: var(--ink); }
.empty-start p { margin: 5px 0 0; font-size: 13px; }
.empty-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--red); background: rgba(215,25,32,.08); font-size: 22px; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 12px 2px 18px; }
.results-heading .eyebrow { margin-bottom: 5px; }
.results-heading h2 { margin: 0; font: 800 24px/1.2 "Manrope", sans-serif; letter-spacing: -.03em; }
.results-summary { margin: 6px 0 0; color: #85868b; font-size: 11px; }
.text-button { padding: 7px 0; border: 0; border-bottom: 1px solid #aaa; background: none; color: #676970; cursor: pointer; font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product-card {
  min-height: 500px; display: flex; flex-direction: column; padding: 14px;
  border: 1px solid #dedad2; border-radius: 18px; background: white;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(18,20,25,.08); }
.product-image { height: 210px; margin-bottom: 14px; padding: 40px; display: grid; place-items: center; overflow: hidden; box-sizing: border-box; border: 1px solid #e4e1db; border-radius: 12px; background: #f8f7f4; color: #c6c2ba; text-decoration: none; }
.product-image img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: scale-down; object-position: center; }
.product-image > span { font-size: 34px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.category-tag { display: flex; align-items: center; gap: 6px; color: #66686f; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.category-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: var(--red); background: rgba(215,25,32,.075); font-size: 13px; }
.confidence { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.confidence::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.confidence.confirmed { color: var(--green); background: rgba(23,122,81,.09); }
.confidence.listed { color: #225f98; background: rgba(34,95,152,.09); }
.confidence.verify { color: var(--amber); background: rgba(168,93,8,.09); }
.product-card h3 { margin: 16px 0 6px; font: 800 17px/1.28 "Manrope", sans-serif; letter-spacing: -.025em; }
.fitment { margin: 0 0 10px; color: var(--red-dark); font-size: 11px; font-weight: 700; }
.description { display: -webkit-box; margin: 0; overflow: hidden; color: #62656d; font-size: 12px; line-height: 1.5; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.shop-category { margin: 12px 0 0; overflow: hidden; color: #909197; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.stock-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.stock { font-size: 10px; font-weight: 800; }
.stock.in-stock { color: var(--green); }
.stock.out-stock { color: #777980; }
.stock-price strong { color: var(--ink); font: 800 13px/1 "Manrope", sans-serif; }
.caveat { display: flex; gap: 8px; margin: 12px 0 0; padding: 9px 10px; border-radius: 10px; color: #6c665d; background: #f6f3ed; font-size: 10px; line-height: 1.4; }
.caveat span { color: var(--amber); font-weight: 900; }
.card-actions { display: grid; grid-template-columns: 1fr 42px; gap: 8px; margin-top: auto; padding-top: 14px; }
.product-link, .copy-button { min-height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 10px; text-decoration: none; font-size: 12px; font-weight: 700; }
.product-link { gap: 8px; color: white; background: var(--ink); }
.product-link:hover { background: var(--red); }
.copy-button { border: 1px solid var(--line); background: white; cursor: pointer; }
.copy-button:hover { border-color: var(--ink); }
.copy-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.load-more { min-width: 230px; min-height: 46px; margin: 24px auto 0; padding: 0 20px; display: block; border: 1px solid var(--ink); border-radius: 11px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.load-more:hover { color: white; background: var(--ink); }
.load-more[hidden] { display: none; }
.no-results { padding: 64px 20px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; }
.no-results strong { font: 800 20px/1.2 "Manrope", sans-serif; }
.no-results p { color: #73757b; }
.no-results button { padding: 10px 15px; border: 0; border-radius: 9px; background: var(--ink); color: white; cursor: pointer; }

.fitment-note {
  margin: 54px 0 70px; padding: 34px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  border-radius: 22px; background: #e8e4dc;
}
.note-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--red); font: 800 20px/1 "Manrope", sans-serif; }
.fitment-note .eyebrow { margin-bottom: 5px; }
.fitment-note h2 { margin: 0; font: 800 22px/1.2 "Manrope", sans-serif; letter-spacing: -.03em; }
.fitment-note p:last-child { max-width: 720px; margin: 10px 0 0; color: #64666c; font-size: 13px; line-height: 1.6; }
.fitment-note a { white-space: nowrap; padding: 13px 16px; border-radius: 10px; color: white; background: var(--ink); text-decoration: none; font-size: 12px; font-weight: 700; }
.fitment-note a span { margin-left: 7px; }

footer {
  width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 36px;
  display: flex; justify-content: space-between; align-items: end; gap: 30px;
  border-top: 1px solid var(--line); color: #74767c; font-size: 11px;
}
footer div { display: grid; gap: 5px; }
footer strong { color: var(--ink); font: 800 14px/1 "Manrope", sans-serif; letter-spacing: .12em; }
footer p { max-width: 470px; margin: 0; text-align: right; line-height: 1.5; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: white; font-size: 12px; font-weight: 700; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 18px); pointer-events: none; transition: .25s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 38px; min-height: auto; padding: 56px 40px 40px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats div { min-height: 82px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; }
  .hero-stats span { text-align: left; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .generation-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-row { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 70px; }
  .brand-copy small { display: none; }
  .private-pill { padding: 8px 10px; font-size: 11px; }
  .hero { margin: 0 -12px; padding: 46px 24px 28px; border-radius: 0 0 25px 25px; }
  .hero::before { width: 360px; height: 360px; right: -160px; top: -210px; border-width: 60px; }
  .hero h1 { font-size: clamp(39px, 12vw, 54px); }
  .intro { margin-top: 20px; font-size: 15px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div { min-height: 0; flex-direction: row; align-items: baseline; justify-content: space-between; padding: 14px 16px; }
  .hero-stats span { text-align: right; }
  .finder { padding-top: 52px; }
  .generation-grid { grid-template-columns: 1fr; }
  .generation-card { min-height: 102px; }
  .filter-panel { padding: 16px; }
  .search-field kbd { display: none; }
  .search-field input { padding-right: 14px; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 7px; scrollbar-width: none; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 480px; }
  .results-heading { align-items: center; }
  .fitment-note { grid-template-columns: auto 1fr; padding: 24px 20px; }
  .fitment-note a { grid-column: 1 / -1; text-align: center; }
  footer { align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
