:root {
  --ink: #10201f;
  --muted: #59706d;
  --line: #d8e4df;
  --paper: #f6faf7;
  --white: #ffffff;
  --deep: #0f2f2e;
  --teal: #168f7a;
  --mint: #c7f36b;
  --gold: #eab64d;
  --rose: #c95d63;
  --shadow: 0 18px 48px rgba(17, 48, 45, 0.14);
}

* { 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);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 250, 247, 0.92);
  border-bottom: 1px solid rgba(16, 32, 31, 0.08);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #0f2f2e;
  background: linear-gradient(135deg, var(--mint), #63d7be);
  font-size: 13px;
}
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--muted); }
.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--ink); }
.header-cta, .primary-link, .secondary-link, .panel-cta, .plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}
.header-cta, .primary-link, .plan-button.primary, .panel-cta {
  background: var(--deep);
  color: white;
  box-shadow: 0 8px 20px rgba(15, 47, 46, 0.18);
}
.secondary-link, .plan-button {
  background: #fff;
  color: var(--deep);
  border-color: var(--line);
}

.planner-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(22px, 4vw, 46px);
  padding: clamp(34px, 5vw, 72px) clamp(18px, 5vw, 72px) 32px;
  align-items: center;
}
.planner-copy h1, .article-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}
.hero-lede, .article-hero p, .section-heading p, .dashboard-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 760px;
}
.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.hero-actions, .article-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.trust-row span, .status-pill, .plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(22, 143, 122, 0.1);
  color: #0a6f60;
  font-size: 12px;
  font-weight: 800;
}

.planner-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(270px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}
.tool-panel, .result-panel, .price-card, .feature-grid article, .article-panel, .dashboard-visual, .payment-dialog, .legal-body, .article-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.tool-panel, .result-panel { padding: 18px; }
.tool-title, .plan-top, .dash-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.tool-title h2 { margin: 4px 0 0; font-size: 22px; }
.input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 750; }
input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfdfb;
}
.split-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.result-main {
  padding: 16px;
  border-radius: 8px;
  color: white;
  background: #0f2f2e;
}
.result-main p { margin: 0 0 6px; color: rgba(255, 255, 255, 0.75); }
.result-main strong { display: block; font-size: 34px; }
.result-main span { color: var(--mint); font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.metric-grid div { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.metric-grid span { display: block; color: var(--muted); font-size: 12px; }
.metric-grid strong { display: block; margin-top: 4px; font-size: 18px; }
.bar-chart { display: grid; gap: 9px; margin: 16px 0; }
.bar-row { display: grid; grid-template-columns: 100px 1fr; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.bar-row i { display: block; width: 20%; height: 12px; border-radius: 8px; background: var(--teal); transition: width 160ms ease; }
.bar-row.tax i { background: var(--gold); }
.bar-row.amt i { background: var(--rose); }
.recommendation { border-top: 1px solid var(--line); padding-top: 12px; }
.recommendation strong { display: block; margin-bottom: 6px; }
.recommendation p { margin: 0; color: var(--muted); line-height: 1.5; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px) 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.proof-strip div { padding: 18px; background: #fff; }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip span { margin-top: 4px; color: var(--muted); line-height: 1.45; }

.section, .pricing-section, .dashboard-section, .article-layout, .conversion-band {
  padding: 46px clamp(18px, 5vw, 72px);
}
.section-heading { max-width: 820px; margin-bottom: 22px; }
.section-heading h2, .dashboard-copy h2, .pricing-section h2, .conversion-band h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}
.feature-grid, .pricing-grid, .faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.feature-grid article { padding: 18px; box-shadow: none; }
.feature-grid h3, .price-card h3 { margin: 0 0 8px; }
.feature-grid p, .price-card p, .legal-body p, .article-body p, .article-panel li, .article-body li, details p {
  color: var(--muted);
  line-height: 1.62;
}
.dashboard-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
  background: #eaf5ef;
}
.dashboard-visual { padding: 18px; }
.scenario-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}
.scenario-row.best { border-color: rgba(22, 143, 122, 0.42); background: rgba(22, 143, 122, 0.07); }
.scenario-row em { grid-column: 1 / -1; color: var(--muted); font-style: normal; font-size: 13px; }
.lot-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.lot-strip i { height: 64px; border-radius: 8px; background: linear-gradient(180deg, #c7f36b, #46c7a8); }
.lot-strip i:nth-child(2) { height: 88px; background: linear-gradient(180deg, #eab64d, #46c7a8); }
.lot-strip i:nth-child(4) { height: 44px; background: linear-gradient(180deg, #c95d63, #eab64d); }

.billing-toggle { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: 18px; }
.billing-toggle button { border: 0; border-radius: 6px; padding: 9px 12px; background: transparent; cursor: pointer; font-weight: 850; color: var(--muted); }
.billing-toggle button.is-active { background: var(--deep); color: #fff; }
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-card { padding: 20px; box-shadow: none; position: relative; }
.price-card.featured { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.price { font-size: 36px; font-weight: 900; margin: 18px 0 4px; }
.annual-note { font-size: 13px; margin-top: 0; }
.price-card ul { padding-left: 18px; min-height: 116px; }
.plan-button { width: 100%; margin-top: 10px; }

.article-page, .pricing-page, .legal-page { min-height: 70vh; }
.article-hero {
  padding: 54px clamp(18px, 5vw, 72px) 28px;
  max-width: 980px;
}
.article-hero.compact h1 { font-size: clamp(38px, 5vw, 58px); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.article-body, .article-panel, .legal-body { padding: 24px; }
.article-body h2, .article-panel h2, .legal-body h2 { margin-top: 0; }
.article-body h2:not(:first-child), .legal-body h2:not(:first-child) { margin-top: 28px; }
.article-panel { position: sticky; top: 84px; box-shadow: none; }
.panel-cta { width: 100%; margin-top: 10px; }
.conversion-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 clamp(18px, 5vw, 72px) 46px;
  padding: 28px;
  border-radius: 8px;
  background: var(--deep);
  color: white;
}
.conversion-band p { color: rgba(255,255,255,0.76); max-width: 720px; }
.conversion-band .primary-link { background: var(--mint); color: var(--deep); }
.faq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
details { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
summary { font-weight: 850; cursor: pointer; }
.legal-body { max-width: 940px; margin: 0 clamp(18px, 5vw, 72px) 56px; box-shadow: none; }

.payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 47, 46, 0.34);
  backdrop-filter: blur(10px);
}
.payment-overlay[hidden] { display: none; }
.payment-dialog { width: min(460px, 100%); padding: 24px; position: relative; }
.overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
body.payment-active main, body.payment-active .site-header, body.payment-active .site-footer {
  filter: blur(3px);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fff;
}
.site-footer p { max-width: 760px; color: var(--muted); line-height: 1.55; }
.region { font-weight: 750; }
.footer-links { display: grid; gap: 10px; align-content: start; color: var(--muted); }

@media (max-width: 1100px) {
  .planner-band, .planner-shell, .dashboard-section, .article-layout { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-panel { position: static; }
}
@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .planner-copy h1, .article-hero h1 { font-size: 42px; }
  .input-grid, .metric-grid, .proof-strip, .pricing-grid, .feature-grid, .faq-grid, .site-footer { grid-template-columns: 1fr; }
  .proof-strip { margin-bottom: 14px; }
  .conversion-band { display: grid; }
  .price-card ul { min-height: auto; }
}
