:root {
  color-scheme: light;
  --paper: #f4f0e6;
  --paper-strong: #ece5d7;
  --ink: #1d211d;
  --muted: #667068;
  --sage: #48685b;
  --sage-dark: #29483d;
  --sage-light: #d9e4dc;
  --copper: #b95f38;
  --cream: #fffdf7;
  --line: rgba(42, 55, 47, 0.17);
  --shadow: 0 20px 50px rgba(42, 48, 42, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 11px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 12px clamp(22px, 5vw, 72px);
  background: rgba(244, 240, 230, 0.91);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; text-decoration: none; font-size: 22px; font-weight: 760; letter-spacing: -0.04em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 16%; background: var(--sage-dark); color: var(--cream); font-family: Georgia, serif; font-style: italic; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 650; }
.site-header nav a:hover { color: var(--ink); }
.beta-label { justify-self: end; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--sage-dark); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }

main { overflow: hidden; }
.search-stage {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .88fr);
  align-items: center;
  gap: clamp(36px, 6vw, 92px);
  padding: clamp(58px, 8vw, 112px) clamp(22px, 6vw, 92px);
  position: relative;
}
.search-stage::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(219, 228, 219, .7); filter: blur(1px); left: -250px; top: 180px; z-index: -1; }
.eyebrow { margin: 0 0 14px; color: var(--copper); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
h1, h2, h3 { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.04em; }
h1 { max-width: 780px; margin-bottom: 22px; font-size: clamp(46px, 6.5vw, 88px); line-height: .98; }
.lede { max-width: 680px; margin: 0 0 34px; color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.55; }

.search-box { max-width: 720px; padding: 18px; background: var(--cream); border: 1px solid rgba(64, 82, 70, .12); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.search-box > label { display: block; margin: 0 0 10px 3px; font-size: 12px; font-weight: 760; color: var(--sage-dark); }
.search-input-wrap { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 14px; background: #f8f6ef; border: 1px solid var(--line); border-radius: 12px; transition: .2s ease; }
.search-input-wrap:focus-within { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(72,104,91,.12); }
.search-input-wrap svg { width: 22px; fill: none; stroke: var(--sage); stroke-width: 1.8; stroke-linecap: round; }
.search-input-wrap input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.search-input-wrap button { border: 0; background: transparent; color: var(--muted); font-size: 25px; }
.quick-searches { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.quick-searches button { padding: 7px 10px; border: 0; border-radius: 8px; background: var(--sage-light); color: var(--sage-dark); font-size: 12px; font-weight: 700; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.trust-row i { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 5px; border-radius: 50%; background: var(--sage); color: white; font-style: normal; font-size: 11px; }
.share-callout { display: inline-flex; align-items: center; gap: 14px; margin-top: 20px; padding: 11px 14px; border-radius: 10px; background: var(--sage-dark); color: white; text-decoration: none; font-size: 13px; font-weight: 760; }
.share-callout:hover { background: var(--sage); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.secondary-callout { margin-top: 20px; color: var(--sage-dark); font-size: 13px; font-weight: 760; text-underline-offset: 4px; }

.product-visual { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.product-visual img { display: block; width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.product-visual figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 22px; color: var(--muted); font-size: 13px; }
.product-visual figcaption strong { color: var(--sage-dark); }

.latest-analysis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  margin: 0 clamp(22px, 6vw, 92px) 24px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--sage-dark);
  color: white;
  box-shadow: var(--shadow);
}

.latest-analysis h2 { max-width: 760px; margin: 0 0 12px; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.03; }
.latest-analysis p:not(.eyebrow) { max-width: 720px; margin: 0; color: #d3dfd8; line-height: 1.6; }
.latest-analysis a { padding: 13px 16px; border-radius: 10px; background: white; color: var(--sage-dark); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }

.catalog-section, .method-section { padding: 92px clamp(22px, 6vw, 92px); }
.catalog-section { background: var(--cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-bottom: 30px; }
.section-heading h2, .evidence-intro h2, .safety-banner h2 { margin-bottom: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1.05; }
.section-heading > p { max-width: 470px; color: var(--muted); line-height: 1.55; }
.filter-row { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: thin; }
.filter-chip { flex: 0 0 auto; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.filter-chip:hover, .filter-chip.active { background: var(--sage-dark); border-color: var(--sage-dark); color: white; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 24px; align-items: start; margin-top: 18px; }
.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.model-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; min-height: 112px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #faf8f2; color: var(--ink); text-align: left; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.model-card:hover, .model-card.selected { transform: translateY(-2px); border-color: var(--sage); box-shadow: 0 12px 25px rgba(52, 68, 58, .09); }
.model-card.selected { background: #f0f5f0; }
.model-icon { display: grid; place-items: center; width: 48px; height: 58px; border-radius: 11px; background: var(--paper-strong); color: var(--sage-dark); }
.model-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.model-card small { display: block; margin-bottom: 4px; color: var(--copper); font-weight: 750; }
.model-card strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.model-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.model-arrow { color: var(--sage); font-size: 20px; }
.model-detail { position: sticky; top: 96px; min-height: 376px; padding: 28px; border-radius: var(--radius-md); background: var(--sage-dark); color: white; box-shadow: var(--shadow); }
.detail-kicker { margin-top: 0; color: #b7d0c3; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.model-detail h3 { margin-bottom: 8px; font-family: Georgia, serif; font-size: 35px; font-weight: 500; }
.model-detail > p { color: #d9e4de; line-height: 1.55; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.detail-tags span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #e5eee9; font-size: 11px; }
.detail-list { margin: 18px 0 24px; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.detail-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: #d9e4de; font-size: 13px; }
.detail-list strong { color: white; text-align: right; }
.source-link { display: inline-flex; align-items: center; gap: 7px; color: white; font-size: 13px; font-weight: 750; text-underline-offset: 4px; }
.detail-actions { display: grid; gap: 8px; }
.detail-link { display: flex; justify-content: space-between; gap: 14px; padding: 11px 12px; border-radius: 9px; background: white; color: var(--sage-dark); font-size: 12px; font-weight: 800; text-decoration: none; }
.problem-link { background: #efb79c; color: #4c2d21; }
.detail-actions .source-link { margin-top: 7px; }
.empty-state { padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius-md); text-align: center; }
.empty-state button { padding: 10px 14px; border: 0; border-radius: 9px; background: var(--sage-dark); color: white; }

.evidence-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); padding: 104px clamp(22px, 8vw, 130px); background: #23382f; color: white; }
.evidence-intro blockquote { margin: 30px 0 14px; padding-left: 22px; border-left: 3px solid var(--copper); font-family: Georgia, serif; font-size: clamp(20px, 2.1vw, 29px); line-height: 1.45; }
.source-note { color: #a8b9b0; font-size: 12px; }
.extraction-card { align-self: center; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-md); background: #fffdf8; color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.extraction-header { display: flex; justify-content: space-between; gap: 20px; padding: 16px 20px; background: var(--paper-strong); color: var(--muted); font-size: 12px; font-weight: 750; }
.status-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #d39739; }
.extraction-card dl { margin: 0; padding: 9px 22px; }
.extraction-card dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.extraction-card dt { color: var(--muted); font-size: 12px; font-weight: 720; }
.extraction-card dd { margin: 0; font-size: 13px; font-weight: 680; }
.extraction-card em { float: right; padding: 3px 7px; border-radius: 5px; background: #f2ddd5; color: #8b4326; font-size: 10px; font-style: normal; }
.extraction-card em.positive { background: var(--sage-light); color: var(--sage-dark); }
.confidence { padding: 18px 22px 22px; }
.confidence > div:first-child { display: flex; justify-content: space-between; font-size: 12px; }
.confidence-track { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #e3e5df; }
.confidence-track span { display: block; height: 100%; border-radius: inherit; background: var(--sage); }
.confidence p { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.method-grid article { min-height: 210px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.28); }
.method-grid article > span { display: inline-block; margin-bottom: 34px; color: var(--copper); font-family: Georgia, serif; font-size: 28px; }
.method-grid h3 { margin-bottom: 9px; font-size: 17px; }
.method-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.status-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; padding: 18px 20px; border-radius: 13px; background: var(--paper-strong); color: var(--muted); font-size: 12px; }
.legend-title { margin-right: auto; color: var(--ink); font-weight: 800; }
.level { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; }
.level.user { background: #d39739; }.level.confirmed { background: #5d8c71; }.level.official { background: #3153a4; }.level.conflict { background: #a24343; }
.safety-banner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: end; padding: 64px clamp(22px, 6vw, 92px); background: var(--copper); color: white; }
.safety-banner .eyebrow { color: #ffe0d0; }
.safety-banner p:last-child { margin: 0; max-width: 680px; line-height: 1.65; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 30px clamp(22px, 6vw, 92px); background: #18241f; color: #b7c3bd; font-size: 12px; }
footer p:last-child { justify-self: end; }
.footer-brand { color: white; }

@media (max-width: 980px) {
  .search-stage { min-height: auto; grid-template-columns: 1fr; }
  .product-visual { max-width: 700px; transform: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .model-detail { position: static; min-height: 0; }
  .evidence-section { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 66px; }
  .site-header nav { display: none; }
  .search-stage { padding-top: 48px; }
  h1 { font-size: 48px; }
  .product-visual figcaption { display: block; }
  .product-visual figcaption strong { display: block; margin-top: 4px; }
  .latest-analysis { grid-template-columns: 1fr; align-items: start; }
  .latest-analysis a { width: fit-content; white-space: normal; }
  .section-heading { display: block; }
  .model-grid { grid-template-columns: 1fr; }
  .model-card { min-height: 98px; }
  .method-grid { grid-template-columns: 1fr; }
  .safety-banner { grid-template-columns: 1fr; gap: 22px; }
  footer { grid-template-columns: 1fr; }
  footer p, footer p:last-child { justify-self: start; margin: 0; }
}

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