:root {
  --bg: #f7f1e7;
  --paper: #fffaf1;
  --paper-2: #f0eadf;
  --ink: #172116;
  --muted: #6b715f;
  --line: #ded2bf;
  --green: #254d32;
  --green-2: #e4ecdd;
  --sage: #cad7bd;
  --gold: #b18435;
  --clay: #b96f4a;
  --shadow: 0 24px 70px rgba(34, 45, 30, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 4%, rgba(215, 180, 106, .35) 0, transparent 22rem),
    radial-gradient(circle at 82% 12%, rgba(37, 77, 50, .13) 0, transparent 24rem),
    var(--bg);
  color: var(--ink);
}

a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(247, 241, 231, .82);
  border-bottom: 1px solid rgba(222, 210, 191, .8);
}
.nav {
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -.03em;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  background: var(--green);
  color: #fffdf6;
  font-size: 13px;
  box-shadow: 0 10px 26px rgba(37, 77, 50, .24);
}
.nav-links { display: flex; gap: 20px; color: var(--muted); font-size: 14px; font-weight: 750; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--green); }

main { max-width: 1220px; margin: 0 auto; padding: 0 22px 54px; }
.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) 390px;
  align-items: center;
  gap: 54px;
  padding: 70px 0 58px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(48px, 8vw, 94px);
  line-height: .9;
  letter-spacing: -.075em;
}
.hero-text {
  max-width: 690px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 0 21px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid var(--line);
}
.button.primary { background: var(--green); color: #fffdf6; border-color: var(--green); box-shadow: 0 14px 28px rgba(37, 77, 50, .2); }
.button.secondary { background: rgba(255,255,255,.58); color: var(--green); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,250,241,.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #fffaf1 0%, #edf3e5 65%, #e8dcc8 100%);
  border-radius: 38px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-panel:before {
  content: "";
  position: absolute;
  inset: -70px -90px auto auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(37, 77, 50, .12);
}
.panel-header { position: relative; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 900; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.score-orbit {
  position: relative;
  margin: 32px auto;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(37, 77, 50, .18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.34);
}
.score-orbit div {
  width: 132px;
  height: 132px;
  border-radius: 36px;
  display: grid;
  place-items: center;
  align-content: center;
  background: var(--green);
  color: #fffdf6;
  box-shadow: 0 22px 40px rgba(37, 77, 50, .25);
}
.score-orbit strong { font-size: 52px; line-height: .9; letter-spacing: -.06em; }
.score-orbit span { font-size: 12px; font-weight: 900; color: rgba(255,255,255,.82); }
.mini-checklist { position: relative; display: grid; gap: 10px; }
.mini-checklist p { margin: 0; padding: 12px 13px; border: 1px solid rgba(222,210,191,.75); border-radius: 18px; background: rgba(255,255,255,.52); color: var(--muted); font-size: 14px; font-weight: 750; }
.mini-checklist span { color: var(--green); font-weight: 1000; }

.section {
  margin: 28px 0;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255,250,241,.76);
  box-shadow: 0 12px 36px rgba(39, 51, 35, 0.055);
}
.why-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 44px;
  align-items: start;
}
.section h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: .98; letter-spacing: -.06em; margin-bottom: 0; }
.why-copy p { color: var(--muted); font-size: 18px; line-height: 1.75; margin-bottom: 16px; }
.why-copy p:last-child { margin-bottom: 0; }
.section-heading { margin-bottom: 28px; }
.section-heading.split { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.small-note { color: var(--muted); max-width: 380px; font-size: 14px; line-height: 1.55; margin-bottom: 0; }
.text-link { color: var(--green); font-weight: 900; text-decoration: none; }
.rating-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.rating-card {
  min-height: 210px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #fffdf8;
}
.rating-card span {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 18px;
  background: var(--green-2);
  color: var(--green);
  font-weight: 1000;
}
.rating-card.top { background: var(--green); color: #fffdf6; }
.rating-card.top span { background: rgba(255,255,255,.18); color: #fff; }
.rating-card.low span { background: #f4e1d8; color: var(--clay); }
.rating-card h3 { margin-bottom: 8px; letter-spacing: -.03em; }
.rating-card p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.rating-card.top p { color: rgba(255,255,255,.78); }
.standards-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.standards-grid article {
  padding: 18px;
  border-radius: 22px;
  background: #fffdf8;
  border: 1px solid var(--line);
}
.standards-grid strong { color: var(--gold); font-size: 25px; }
.standards-grid h3 { margin: 10px 0 8px; }
.standards-grid p { color: var(--muted); font-size: 13px; line-height: 1.52; margin-bottom: 0; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.featured-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(160deg, #fffdf8, #f0eadf);
}
.featured-card .mini-score { align-self: flex-start; width: 82px; height: 82px; }
.featured-card h3 { font-size: 25px; letter-spacing: -.04em; margin-bottom: 4px; }
.featured-card p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.toolbar {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, minmax(140px, .7fr));
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fffdf8;
}
.toolbar label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 900; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 17px;
  min-height: 48px;
  padding: 0 14px;
  background: #fffaf1;
  color: var(--ink);
  font: inherit;
}
.checkbox-label {
  display: flex !important;
  grid-template-columns: 20px 1fr !important;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fffaf1;
}
.checkbox-label input { width: 16px; min-height: 16px; }
.results-summary { display: flex; justify-content: space-between; margin: 18px 4px; color: var(--muted); font-weight: 900; }
.link-button { border: 0; background: transparent; color: var(--green); font-weight: 950; cursor: pointer; }
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.brand-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 370px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fffdf8;
  box-shadow: 0 10px 28px rgba(39, 51, 35, 0.045);
  transition: transform .18s ease, box-shadow .18s ease;
}
.brand-card:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(39, 51, 35, 0.08); }
.card-top { display: grid; grid-template-columns: 1fr 82px; gap: 14px; }
.brand-card h3 { font-size: 22px; letter-spacing: -.035em; margin-bottom: 8px; }
.brand-card p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.mini-score {
  display: grid;
  align-content: center;
  justify-items: center;
  height: 82px;
  border-radius: 23px;
  background: var(--green-2);
  color: var(--green);
  text-align: center;
}
.mini-score strong { font-size: 28px; line-height: 1; }
.mini-score span { font-size: 11px; font-weight: 950; }
.fiber-row, .tag-row, .card-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.fiber-row span, .pill, .flag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}
.fiber-row span { background: var(--green); color: #fff; }
.pill { background: #f1eadc; color: #645a4e; }
.flag { background: #f5eee4; color: var(--muted); }
.flag.yes { background: var(--green-2); color: var(--green); }
.buy-link {
  margin-top: auto;
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 950;
}
.empty-state { grid-column: 1 / -1; padding: 42px; border: 1px dashed var(--line); border-radius: 26px; text-align: center; color: var(--muted); }
.newsletter-block { display: flex; justify-content: space-between; align-items: center; gap: 30px; background: var(--green); color: #fffdf6; }
.newsletter-block .eyebrow { color: var(--sage); }
.newsletter-block p { color: rgba(255,255,255,.75); max-width: 650px; line-height: 1.65; }
.newsletter-block .button.primary { background: #fffdf6; color: var(--green); border-color: #fffdf6; box-shadow: none; }
.footer { max-width: 1220px; margin: 0 auto; padding: 28px 22px 56px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.footer p { margin: 8px 0 0; }
.footer a { text-decoration: none; color: var(--green); font-weight: 900; }

@media (max-width: 1040px) {
  .hero, .why-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 520px; }
  .rating-grid, .standards-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid, .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .search-label { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .nav { align-items: center; }
  .nav-links { display: none; }
  main { padding: 0 14px 38px; }
  .hero { min-height: auto; padding-top: 46px; gap: 30px; }
  h1 { font-size: clamp(46px, 15vw, 70px); }
  .hero-text { font-size: 18px; }
  .section { padding: 24px; border-radius: 28px; }
  .section-heading.split, .newsletter-block, .footer { display: block; }
  .rating-grid, .standards-grid, .featured-grid, .brand-grid, .toolbar { grid-template-columns: 1fr; }
  .checkbox-label { grid-column: auto; }
  .hero-panel { border-radius: 30px; padding: 22px; }
  .score-orbit { width: 160px; height: 160px; }
  .score-orbit div { width: 116px; height: 116px; }
  .footer a { display: inline-block; margin-top: 16px; }
}
