:root {
  --ink: #10231c;
  --muted: #61716a;
  --paper: #fbfdfb;
  --soft: #f0f6f2;
  --line: #dce7e0;
  --green: #0c6b4a;
  --green-dark: #0c3b2e;
  --lime: #b8e04e;
  --amber: #f3bd4c;
  --white: #ffffff;
  --shadow: 0 16px 50px rgba(12,59,46,.08);
  --radius: 22px;
}

* { 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;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 40px)); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 999; }
.skip-link:focus { left: 8px; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(220,231,224,.9);
  background: rgba(251,253,251,.92);
  backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; position: relative; display: inline-block; }
.brand-mark .sun { position: absolute; width: 19px; height: 19px; border-radius: 50%; background: var(--amber); right: 2px; top: 1px; box-shadow: 0 0 0 5px rgba(243,189,76,.16); }
.brand-mark .panel { position: absolute; width: 27px; height: 19px; left: 2px; bottom: 3px; background: linear-gradient(90deg, transparent 48%, rgba(255,255,255,.7) 49% 52%, transparent 53%), linear-gradient(transparent 48%, rgba(255,255,255,.7) 49% 52%, transparent 53%), var(--green-dark); transform: skew(-10deg); border-radius: 3px; box-shadow: 0 5px 10px rgba(12,59,46,.16); }
.nav { margin-left: auto; display: flex; gap: 20px; font-size: .93rem; }
.nav a { text-decoration: none; color: #41534b; font-weight: 650; }
.nav a:hover { color: var(--green); }
.print-btn { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 13px; cursor: pointer; color: var(--green-dark); font-weight: 700; }

.hero { background: radial-gradient(circle at 85% 10%, rgba(184,224,78,.22), transparent 27%), linear-gradient(180deg, #f5faf6 0%, var(--paper) 100%); padding: 92px 0 76px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .76rem; font-weight: 850; color: var(--green); margin: 0 0 12px; }
h1,h2,h3 { line-height: 1.08; margin-top: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem, 6.3vw, 5.9rem); max-width: 920px; margin-bottom: 26px; }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); margin-bottom: 20px; }
h3 { font-size: 1.26rem; margin-bottom: 10px; }
.lead { font-size: clamp(1.12rem, 1.9vw, 1.35rem); color: #42544c; max-width: 780px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 18px; text-decoration: none; font-weight: 800; border: 1px solid transparent; cursor: pointer; font: inherit; }
.button.primary { background: var(--green-dark); color: white; }
.button.primary:hover { background: #0a513b; }
.button.secondary { border-color: var(--line); background: white; color: var(--green-dark); }
.button.full { width: 100%; margin-top: 4px; }
.micro { font-size: .84rem; color: var(--muted); }
.hero-card { background: var(--white); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 28px; transform: rotate(1.2deg); }
.card-kicker { text-transform: uppercase; letter-spacing: .12em; color: var(--green); font-weight: 850; font-size: .72rem; }
.stat { border-top: 1px solid var(--line); padding: 16px 0 2px; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; }
.stat strong { font-size: 1.7rem; letter-spacing: -.03em; }
.stat span { color: var(--muted); }

.section { padding: 88px 0; }
.section.alt { background: var(--soft); }
.section-heading { display: grid; grid-template-columns: 1fr .8fr; gap: 50px; align-items: end; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 0; }
.section-intro { color: var(--muted); font-size: 1.05rem; margin: 0; }
.cards { display: grid; gap: 18px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; min-height: 235px; }
.card-number { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e6f1ea; color: var(--green); font-weight: 900; margin-bottom: 42px; }
.card p, .lesson p { color: var(--muted); margin-bottom: 0; }

.table-tools { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 12px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; }
.toggle input { accent-color: var(--green); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 30px rgba(12,59,46,.04); }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 1050px; font-size: .9rem; }
.comparison-table th, .comparison-table td { padding: 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison-table th { background: #e9f2ec; color: var(--green-dark); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table .chosen td { background: #fbfff3; }
.pill { display: inline-block; margin-top: 7px; border-radius: 999px; background: var(--lime); padding: 3px 8px; font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.muted { color: var(--muted); }
.source-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
body.hide-notes .notes-col { display: none; }

.review-rule {
  margin-top: 22px;
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 28px;
  align-items: center;
  padding: 24px 26px;
  background: var(--green-dark);
  color: white;
  border-radius: var(--radius);
}
.review-rule .card-kicker { color: var(--lime); margin-bottom: 4px; }
.review-rule strong { display: block; font-size: clamp(1.55rem, 3vw, 2.35rem); letter-spacing: -.04em; line-height: 1.05; }
.review-rule p:last-child { margin: 0; color: #d9eee5; }

.lessons-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.lesson { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.lesson h3 { color: var(--green-dark); }
.chosen-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.spec-list { margin-top: 28px; border-top: 1px solid var(--line); }
.spec-list div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-list span { color: var(--muted); }
.quote-box { background: var(--green-dark); color: white; border-radius: 30px; padding: 38px; box-shadow: var(--shadow); }
.quote-box p { font-size: 1.35rem; }
.quote-mark { font-size: 5rem !important; line-height: .4; color: var(--lime); margin: 0 0 22px; }

.calc-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 28px; align-items: start; }
.calc-card, .result-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 10px 30px rgba(12,59,46,.04); }
.calc-card { display: grid; gap: 14px; }
.calc-card label { display: grid; gap: 6px; font-size: .83rem; font-weight: 750; color: #42544c; }
.calc-card input { width: 100%; border: 1px solid #cfded5; border-radius: 12px; padding: 11px 12px; font: inherit; background: #fff; color: var(--ink); }
.calc-card input:focus { outline: 3px solid rgba(12,107,74,.13); border-color: var(--green); }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.big-result { background: var(--green-dark); color: white; border-radius: 22px; padding: 28px; margin: 12px 0 18px; }
.big-result span { display: block; font-size: 4.2rem; font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.big-result small { color: #d9eee5; }
.result-lines { border-top: 1px solid var(--line); }
.result-lines div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.result-lines span { color: var(--muted); }
.result-lines .total { font-size: 1.08rem; }
.result-lines .total strong { color: var(--green); }
.callout { margin-top: 18px; border-left: 4px solid var(--amber); padding: 14px 18px; background: #fff8e8; border-radius: 8px 16px 16px 8px; color: #5f4a1c; }

.checklist { margin: 28px 0 0; padding-left: 0; counter-reset: item; list-style: none; }
.checklist li { counter-increment: item; position: relative; padding: 0 0 22px 58px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.checklist li::before { content: counter(item); position: absolute; left: 0; top: -3px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--green-dark); color: white; font-weight: 850; }
.glossary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.glossary-grid div { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.glossary-grid strong { display: block; font-size: 1.15rem; color: var(--green); margin-bottom: 5px; }
.glossary-grid span { color: var(--muted); font-size: .9rem; }

.site-footer { background: #08271e; color: white; padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; }
.site-footer p { color: #bfd0c8; margin-bottom: 0; }

@media (max-width: 960px) {
  .nav { display: none; }
  .print-btn { margin-left: auto; }
  .hero-grid, .chosen-grid, .calc-grid, .review-rule { grid-template-columns: 1fr; gap: 34px; }
  .hero-card { transform: none; }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .glossary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap, .narrow { width: min(100% - 28px, 1180px); }
  .brand span:last-child { display: none; }
  .site-header .wrap { width: calc(100% - 24px); }
  .hero { padding: 58px 0 50px; }
  .section { padding: 62px 0; }
  .cards.four, .lessons-grid, .glossary-grid, .input-row, .footer-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card-number { margin-bottom: 22px; }
  h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .stat { grid-template-columns: 95px 1fr; }
  .spec-list div { grid-template-columns: 90px 1fr; }
  .print-btn { font-size: .82rem; padding: 8px 10px; }
}

@media print {
  .site-header, .hero-actions, .table-tools, .print-btn { display: none !important; }
  body { background: white; color: #000; font-size: 10.5pt; }
  .hero, .section, .section.alt { background: white !important; padding: 26px 0; }
  .hero-grid, .chosen-grid, .calc-grid, .section-heading, .footer-grid { display: block; }
  .hero-card, .card, .lesson, .calc-card, .result-card, .quote-box { box-shadow: none; break-inside: avoid; }
  .cards.four, .lessons-grid, .glossary-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-table { min-width: 0; font-size: 7.8pt; }
  .comparison-table th, .comparison-table td { padding: 7px; }
  .table-scroll { overflow: visible; }
  .site-footer { background: white; color: #000; border-top: 1px solid #ccc; }
  .site-footer p { color: #333; }
  a { text-decoration: none; }
}

/* Public-site / legal pages */
.legal-page h2 { font-size: clamp(1.45rem, 2.5vw, 2.1rem); margin-top: 38px; margin-bottom: 10px; }
.legal-title { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 14px; }
.lead-small { font-size: 1.05rem; color: var(--muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.footer-links a { color: #d9eee5; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--lime); }
.footer-updated { font-size: .82rem; }
@media (max-width: 640px) { .footer-links { gap: 12px 18px; } }
