/* Try This - see docs/DESIGN-SYSTEM.md */
:root {
  --cream: #F6F1E8; --paper: #FBF8F3; --linen: #EFE7DA;
  --taupe: #A8988A; --taupe-deep: #6F6256; --ink: #2B2A26;
  --sage: #8A9A7B; --moss: #4F6349; --moss-deep: #36452F; --gold: #B8975A;
  --on-moss: #F6F1E8; --on-fill: #2B2A26;
  --shadow: 0 8px 24px rgba(43, 42, 38, .10);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #1B1C18; --paper: #22231E; --linen: #2E2F28;
    --taupe: #9B8D80; --taupe-deep: #B5A798; --ink: #EDE8DD;
    --sage: #9FB08F; --moss: #A9BE9A; --moss-deep: #C5D6B8; --gold: #D2B27A;
    --on-moss: #1B1C18; --on-fill: #1B1C18;
    --shadow: 0 8px 24px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cream: #1B1C18; --paper: #22231E; --linen: #2E2F28;
  --taupe: #9B8D80; --taupe-deep: #B5A798; --ink: #EDE8DD;
  --sage: #9FB08F; --moss: #A9BE9A; --moss-deep: #C5D6B8; --gold: #D2B27A;
  --on-moss: #1B1C18; --on-fill: #1B1C18;
  --shadow: 0 8px 24px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1rem/1.6 var(--sans); overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--moss); text-underline-offset: 3px; }
a:hover { color: var(--moss-deep); }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
section { padding: 48px 0; }
@media (min-width: 720px) { section { padding: 72px 0; } }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--taupe-deep); font-weight: 600; margin: 0 0 8px; }
.lede { font-size: 1.125rem; color: var(--taupe-deep); max-width: 60ch; }
.muted { color: var(--taupe-deep); }
.small { font-size: .875rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--moss); color: var(--on-moss); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }

/* header / footer */
.site-header { background: var(--paper); border-bottom: 1px solid var(--linen); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: var(--moss-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 4px; min-height: 44px; display: inline-flex; align-items: center; font-size: .9375rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--moss); text-decoration: underline; }
.crumbs { font-size: .875rem; color: var(--taupe-deep); padding: 16px 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--taupe); }
.site-footer { background: var(--linen); border-top: 1px solid var(--taupe); padding: 48px 0 32px; margin-top: 48px; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.disclosure-strip { background: var(--linen); border-bottom: 1px solid var(--paper); font-size: .8125rem; color: var(--taupe-deep); }
.disclosure-strip .wrap { padding-top: 8px; padding-bottom: 8px; }

/* hero */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--paper), var(--cream)); }
.hero .lede { margin-bottom: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--moss); background: var(--moss); color: var(--on-moss); cursor: pointer; font-family: var(--sans); font-size: 1rem; text-align: center; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--moss-deep); border-color: var(--moss-deep); color: var(--on-moss); }
.btn-outline { background: transparent; color: var(--moss); }
.btn-outline:hover { background: var(--linen); color: var(--moss-deep); border-color: var(--moss-deep); }
.btn-lg { width: 100%; padding: 16px 24px; font-size: 1.0625rem; }
.btn-plain { background: transparent; color: var(--moss); border-color: var(--taupe); }
.btn-plain:hover { background: var(--linen); color: var(--moss-deep); border-color: var(--moss-deep); }

/* cards + grids */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid > * { min-width: 0; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--linen); border-radius: 14px; padding: 20px; transition: box-shadow .15s; display: flex; flex-direction: column; gap: 8px; }
.card:hover { box-shadow: var(--shadow); }
.card h3 { margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--moss); text-decoration: underline; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: var(--ink); }
.price-was { color: var(--taupe-deep); text-decoration: line-through; }
.save { color: var(--moss-deep); font-weight: 600; background: var(--linen); border-radius: 999px; padding: 2px 10px; font-size: .875rem; }

/* chips + pills */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--linen); color: var(--taupe-deep); font-size: .8125rem; text-decoration: none; border: 1px solid transparent; }
a.chip:hover { border-color: var(--moss); color: var(--moss-deep); }
.chip-lg { min-height: 44px; font-size: .9375rem; padding: 8px 16px; }
.cite { display: inline-flex; padding: 1px 8px; border-radius: 6px; background: var(--paper); border: 1px solid var(--taupe); color: var(--moss-deep); font-size: .75rem; text-decoration: none; margin: 0 4px 4px 0; }
.cite:hover { border-color: var(--moss); text-decoration: underline; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: var(--taupe); color: var(--on-fill); }
.badge-strong { background: var(--moss); color: var(--on-moss); }
.badge-moderate { background: var(--sage); color: var(--on-fill); }
.badge-tier { background: var(--linen); color: var(--taupe-deep); border: 1px solid var(--taupe); }
.badge-limited { background: var(--linen); color: var(--taupe-deep); border: 1px dashed var(--taupe); }
.badge-emerging { background: var(--paper); color: var(--taupe-deep); border: 1px solid var(--taupe); }
.badge-closest { background: var(--linen); color: var(--moss-deep); border: 1px solid var(--moss); }
.badge-warn { background: var(--gold); color: #2B2A26; border: 1px solid var(--taupe-deep); }
.sep { color: var(--taupe-deep); }
[hidden] { display: none !important; }
.badge-start { background: var(--gold); color: #2B2A26; }

/* match score */
.score { display: inline-flex; align-items: center; gap: 10px; }
.ring { --p: 0; --c: var(--taupe); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--linen) 0); flex: none; }
.ring span { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-weight: 600; font-size: .9375rem; color: var(--ink); }
.ring-hi { --c: var(--moss); } .ring-mid { --c: var(--sage); } .ring-lo { --c: var(--taupe); }
.pill { padding: 3px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: var(--taupe); color: var(--on-fill); }
.pill-hi { background: var(--moss); color: var(--on-moss); } .pill-mid { background: var(--sage); color: var(--on-fill); }

/* product page */
.product-head { padding: 32px 0 8px; }
.dupe { gap: 12px; }
.dupe-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.shares, .misses { list-style: none; padding: 0; margin: 0; font-size: .9375rem; }
.shares li::before { content: "+ "; color: var(--moss); font-weight: 700; }
.misses li::before { content: "- "; color: var(--taupe-deep); font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid var(--linen); border-radius: 14px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--linen); vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--taupe-deep); }
tr:last-child td { border-bottom: 0; }
details { background: var(--paper); border: 1px solid var(--linen); border-radius: 14px; padding: 0 20px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; min-height: 44px; }
details[open] summary { border-bottom: 1px solid var(--linen); margin-bottom: 12px; }
details .inci { overflow-wrap: anywhere; }
.faq details { margin-bottom: 8px; }
.evidence-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.evidence-list li { background: var(--paper); border: 1px solid var(--linen); border-radius: 14px; padding: 16px; }

/* steps + trust */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--linen); border-radius: 14px; padding: 20px; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 2rem; color: var(--moss); display: block; border-bottom: 1px solid var(--gold); width: 2rem; margin-bottom: 8px; }
.trust { background: var(--linen); border-radius: 14px; padding: 32px 20px; }
.band { background: var(--paper); border-top: 1px solid var(--linen); border-bottom: 1px solid var(--linen); }

/* finder */
.finder-form fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.finder-form legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.toggle { position: relative; display: inline-block; }
.toggle input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--linen); border: 1px solid var(--taupe); color: var(--ink); font-size: .9375rem; transition: background-color .15s, color .15s; }
.toggle input:checked + span { background: var(--moss); color: var(--on-moss); border-color: var(--moss); }
.toggle input:focus-visible + span { outline: 3px solid var(--moss); outline-offset: 2px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: 16px; }
.result-block { margin-top: 32px; }
.rec { display: grid; gap: 8px; }
.rec.start { border-color: var(--gold); border-width: 2px; }
.routine { display: grid; gap: 16px; }
@media (min-width: 640px) { .routine { grid-template-columns: repeat(2, 1fr); } }
.caution { border-left: 4px solid var(--gold); background: var(--paper); padding: 12px 16px; border-radius: 0 10px 10px 0; }
.filter input { width: 100%; max-width: 480px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--taupe); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; }

/* evidence */
.cite-row { background: var(--paper); border: 1px solid var(--linen); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; scroll-margin-top: 16px; }
.cite-row:target { border-color: var(--moss); border-width: 2px; }
.cite-row h3 { font-size: 1.2rem; margin-bottom: 4px; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.5em; }

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

/* real-data additions */
.price-inline { font-weight: 600; color: var(--ink); }
.price-approx, .price-inline[title] { cursor: help; }
.price-unknown { font-size: 1.125rem; color: var(--taupe-deep); }
.freshness { margin: 8px 0 0; }
.verify-note { margin: 8px 0; }
.callout { margin: 16px 0 0; padding: 12px 16px; border-left: 4px solid var(--gold); background: var(--linen); border-radius: 8px; }
.callout p { margin: 0; }
.callout .eyebrow { margin-bottom: 4px; }
