:root {
  --ink: #18201b;
  --paper: #f5f4ee;
  --white: #fff;
  --green: #2f5b46;
  --lime: #dce85d;
  --coral: #ef765f;
  --blue: #8cc5d9;
  --line: #c9cec7;
  --muted: #626a64;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.demo-banner {
  padding: 8px 5vw;
  color: #fff;
  background: var(--coral);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.site-header {
  min-height: 72px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(245,244,238,.96);
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 900;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--green);
  border-radius: 4px;
  font-size: 24px;
}
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.home-intro {
  padding: clamp(64px, 10vw, 132px) 5vw 0;
  overflow: hidden;
}
.home-intro h1 {
  max-width: 950px;
  margin: 12px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  line-height: .98;
}
.home-intro > p:not(.eyebrow) { max-width: 650px; font-size: 20px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.primary-action, .shop-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--green);
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
}
.category-strip {
  margin-top: clamp(56px, 9vw, 110px);
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  border: solid var(--ink);
  border-width: 1px 0;
}
.category-strip span {
  min-height: 88px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}
.category-strip span:nth-child(1) { background: var(--lime); }
.category-strip span:nth-child(2) { background: var(--blue); }
.category-strip span:nth-child(3) { background: #f2b84b; }
.category-strip span:nth-child(4) { border-right: 0; background: #efd5cc; }
.comparison-index { padding: 88px 5vw 110px; }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading h2, .calculator-band h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.05;
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}
.comparison-card {
  min-height: 260px;
  padding: 24px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.comparison-card:nth-child(3n) { border-right: 0; }
.comparison-card p { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.comparison-card h2 { margin: 20px 0 14px; font-family: Georgia, serif; font-size: 28px; line-height: 1.08; }
.comparison-card h2 a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.comparison-card span { color: var(--muted); }
.article-head {
  padding: 76px 5vw 64px;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 8vw;
  align-items: end;
}
.article-head h1, .text-page h1 {
  margin: 8px 0 20px;
  font-family: Georgia, serif;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 500;
  line-height: 1;
}
.lede { max-width: 700px; color: var(--muted); font-size: 20px; }
.math-visual {
  min-height: 260px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 900;
}
.math-visual b { font-family: Georgia, serif; font-size: 42px; font-weight: 400; }
.content-band { padding: 72px 5vw; background: var(--white); }
.insight { max-width: 880px; margin-bottom: 44px; }
.insight h2 { margin: 0 0 18px; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1.08; }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { padding: 18px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
td small { display: block; margin-top: 5px; color: var(--muted); }
.rank { display: inline-grid; width: 28px; height: 28px; margin-right: 10px; place-items: center; background: var(--paper); border-radius: 50%; }
.shop-link { min-height: 36px; padding: 0 12px; font-size: 13px; }
.calculator-band {
  padding: 72px 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  background: var(--blue);
}
.calculator-band ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.calculator-band li { padding: 18px 0; border-bottom: 1px solid var(--ink); }
.method-note, .text-page { max-width: 900px; padding: 76px 5vw 100px; }
.method-note h2, .text-page h2 { margin-top: 36px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
footer { padding: 48px 5vw; color: #fff; background: var(--ink); }
footer p { max-width: 760px; color: #bec5bf; font-size: 13px; }

@media (max-width: 820px) {
  nav a:not(:first-child) { display: none; }
  .category-strip { grid-template-columns: 1fr 1fr; }
  .category-strip span:nth-child(2) { border-right: 0; }
  .category-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-card { border-right: 0; min-height: auto; }
  .article-head, .calculator-band { grid-template-columns: 1fr; }
  .math-visual { min-height: 180px; }
}
