:root {
  --ink: #17211d;
  --muted: #66716b;
  --paper: #f7f8f4;
  --card: #ffffff;
  --line: #dde2dc;
  --green: #225c45;
  --green-2: #2f7a5b;
  --green-soft: #eaf2ed;
  --amber: #a45c1f;
  --red: #a04538;
  --shadow: 0 18px 50px rgba(29, 44, 35, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, 100%); }
.section { padding: 76px 0; }
.section-tight { padding: 54px 0 30px; }
.section-muted { background: #eef1ec; border-block: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(221, 226, 220, .9);
  background: rgba(247, 248, 244, 0.9);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.03em; font-size: 1.08rem; }
.brand-mark { width: 18px; height: 18px; border-radius: 50% 50% 50% 8px; background: var(--green); transform: rotate(-38deg); display: inline-block; }
.nav { display: flex; gap: 26px; color: #49534e; font-size: .92rem; font-weight: 600; }
.nav a:hover, .active-link { color: var(--green); }

.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--green); font-size: .74rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 56px; align-items: center; }
h1, h2, h3 { margin-top: 0; }
.hero h1, .page-title { font-family: Newsreader, Georgia, serif; font-weight: 700; letter-spacing: -.045em; line-height: .97; font-size: clamp(3.35rem, 8vw, 6.8rem); margin: 0 0 24px; }
.hero h1 span { color: var(--green); }
.hero-copy, .page-lede { max-width: 720px; color: var(--muted); font-size: 1.18rem; margin: 0 0 22px; }
.status-row { display: flex; align-items: center; gap: 9px; font-size: .86rem; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 5px var(--green-soft); }

.why-card, .chart-card, .pipeline-card, .calculator-card, .newsletter-card, .notice-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.why-card { padding: 30px; }
.card-kicker { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 9px; }
.why-card h2 { font-family: Newsreader, Georgia, serif; font-size: 2.05rem; line-height: 1.05; letter-spacing: -.035em; margin-bottom: 14px; }
.why-card p { color: var(--muted); margin-top: 0; }
.accent { color: var(--amber); }
.signal-list { margin-top: 24px; border-top: 1px solid var(--line); }
.signal { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.signal strong { font-size: .84rem; }
.up { color: var(--red); }
.down { color: var(--green-2); }
.neutral { color: #6d716e; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h2, .newsletter-card h2 { font-family: Newsreader, Georgia, serif; font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.035em; margin-bottom: 0; }
.section-note { max-width: 420px; margin: 0; color: var(--muted); text-align: right; }

.metric-grid { display: grid; gap: 16px; }
.metric-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-height: 180px; display: flex; flex-direction: column; }
.metric-card.featured { border-color: #b9cabf; background: linear-gradient(180deg, #fff 0%, #f1f6f2 100%); }
.metric-label { color: var(--muted); font-size: .88rem; font-weight: 700; margin-bottom: 15px; }
.metric-value { font-size: clamp(2rem, 3.5vw, 3.15rem); letter-spacing: -.055em; font-weight: 800; line-height: 1; margin-bottom: 13px; }
.metric-value span { font-size: .8rem; color: var(--muted); letter-spacing: 0; font-weight: 600; margin-left: 5px; }
.metric-value.small { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.metric-change { font-weight: 700; font-size: .87rem; }
.metric-foot { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: .76rem; }
.compact .metric-card { min-height: 155px; }

.chart-card { margin-top: 18px; padding: 28px 28px 22px; }
.chart-header { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.chart-header h3 { font-size: 2rem; letter-spacing: -.04em; margin-bottom: 2px; }
.chart-header p { margin: 0; color: var(--muted); font-size: .88rem; }
.range-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: #f0f2ee; }
.range-btn { border: 0; background: transparent; padding: 7px 11px; border-radius: 8px; font-size: .78rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.range-btn.active { background: #fff; color: var(--ink); box-shadow: 0 2px 7px rgba(0,0,0,.06); }
.chart-wrap { width: 100%; overflow: hidden; margin-top: 8px; }
#priceChart { width: 100%; height: auto; display: block; }
.chart-stats { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 18px; }
.chart-stats div { display: flex; flex-direction: column; gap: 2px; }
.chart-stats span { color: var(--muted); font-size: .75rem; }
.chart-stats strong { font-size: .95rem; }

.context-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.context-card { background: transparent; border-top: 1px solid #cfd6cf; padding: 24px 8px 0 0; }
.context-icon { color: var(--green); font-size: .74rem; font-weight: 800; letter-spacing: .08em; }
.context-card h3 { font-size: 1.05rem; margin: 9px 0 8px; }
.context-card p { color: var(--muted); margin: 0; font-size: .9rem; }

.pipeline-card { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; padding: 28px; }
.pipeline-step { min-width: 0; }
.pipeline-number { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: .72rem; font-weight: 800; margin-bottom: 16px; }
.pipeline-title { font-weight: 800; font-size: .92rem; }
.pipeline-value { font-size: 1.55rem; font-weight: 800; letter-spacing: -.035em; margin: 5px 0 7px; }
.pipeline-step p { margin: 0; color: var(--muted); font-size: .82rem; }
.pipeline-arrow { align-self: center; color: #9ba49d; font-size: 1.5rem; }

.calculator-card { margin-top: 18px; display: grid; grid-template-columns: 1fr 330px; gap: 50px; padding: 30px; align-items: center; }
.calculator-card h3 { font-family: Newsreader, Georgia, serif; font-size: 2rem; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 9px; }
.calculator-card p { color: var(--muted); margin-bottom: 0; }
.calculator-controls label { display: block; font-size: .78rem; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.input-row { display: flex; align-items: center; border: 1px solid #ccd4ce; border-radius: 10px; background: #fff; padding: 0 12px; }
.input-row span { color: var(--muted); font-weight: 700; }
.input-row input { width: 100%; border: 0; outline: 0; padding: 11px 8px; background: transparent; font-weight: 800; }
.calc-result { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.calc-result span { font-size: .8rem; color: var(--muted); }
.calc-result strong { font-size: 1.05rem; }

.ad-section { padding: 10px 0 0; }
.ad-placeholder { min-height: 120px; border: 1px dashed #bbc4bd; border-radius: 12px; display: grid; place-items: center; text-align: center; padding: 22px; color: var(--muted); }
.ad-placeholder span { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.ad-placeholder strong { font-size: .95rem; color: #6c756f; }
.ad-placeholder small { font-size: .72rem; }

.newsletter-section { padding-top: 48px; }
.newsletter-card { padding: 34px; display: grid; grid-template-columns: 1fr 390px; gap: 50px; align-items: center; background: #19382c; color: #fff; border-color: #19382c; }
.newsletter-card .eyebrow { color: #a8ccb9; }
.newsletter-card p { color: #c7d7cf; margin-bottom: 0; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; min-width: 0; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); padding: 12px 13px; background: rgba(255,255,255,.08); color: #fff; outline: 0; }
.newsletter-form input::placeholder { color: #a9beb3; }
.newsletter-form button { border: 0; border-radius: 10px; background: #fff; color: #18362b; padding: 12px 16px; font-weight: 800; cursor: pointer; }

.site-footer { padding: 38px 0; border-top: 1px solid var(--line); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; align-items: end; }
.footer-brand { margin-bottom: 8px; }
.footer-grid p, .footer-source { color: var(--muted); font-size: .8rem; margin: 0; }
.footer-links { display: flex; gap: 18px; font-size: .8rem; font-weight: 600; }
.footer-source { text-align: right; }

.methodology-main { min-height: 70vh; }
.page-title { font-size: clamp(3.4rem, 7vw, 5.7rem); }
.prose h2 { font-family: Newsreader, Georgia, serif; font-size: 2rem; letter-spacing: -.025em; margin: 46px 0 12px; }
.prose p { color: #4f5b55; font-size: 1.03rem; }
.notice-box { margin-top: 42px; padding: 24px; box-shadow: none; background: var(--green-soft); border-color: #cfddd4; }
.notice-box p { margin-bottom: 0; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .metric-grid.four { grid-template-columns: repeat(2, 1fr); }
  .pipeline-card { grid-template-columns: 1fr 1fr; }
  .pipeline-arrow { display: none; }
  .calculator-card, .newsletter-card { grid-template-columns: 1fr; gap: 25px; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-source { text-align: left; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 26px, 1160px); }
  .section { padding: 58px 0; }
  .nav { gap: 15px; font-size: .82rem; }
  .nav a:nth-child(2), .nav a:nth-child(3) { display: none; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-note { text-align: left; }
  .metric-grid.four, .context-grid, .chart-stats, .pipeline-card { grid-template-columns: 1fr; }
  .metric-card { min-height: 145px; }
  .chart-card { padding: 22px 16px 18px; }
  .chart-header { flex-direction: column; }
  .chart-stats { gap: 13px; }
  .chart-stats div { flex-direction: row; justify-content: space-between; }
  .pipeline-step { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .newsletter-form { flex-direction: column; }
  .hero h1 { font-size: clamp(3.15rem, 18vw, 5rem); }
}
