:root {
  --ink: #172033;
  --muted: #5b6475;
  --line: #d8dee8;
  --paper: #ffffff;
  --wash: #f5f7f4;
  --green: #166534;
  --green-dark: #14532d;
  --blue: #1d4ed8;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--wash); line-height: 1.5; }
a { color: inherit; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 14px clamp(18px, 4vw, 56px); background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--green); border-radius: 6px; }
.nav { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 14px; }
.nav a { text-decoration: none; }
.layout { width: min(1480px, 100%); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: center; padding: 70px clamp(18px, 4vw, 56px) 36px; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 18px; font-size: clamp(42px, 7vw, 74px); line-height: 1; letter-spacing: 0; }
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: 0; }
.lead { max-width: 700px; color: var(--muted); font-size: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border-radius: 6px; border: 1px solid var(--line); font-weight: 800; text-decoration: none; }
.button.primary { color: white; background: var(--green); border-color: var(--green); }
.content-shell { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; padding: 26px clamp(18px, 4vw, 56px) 56px; align-items: start; }
.main-column { display: grid; gap: 26px; }
.tool-panel, .ad-card { padding: clamp(20px, 3vw, 34px); background: white; border: 1px solid var(--line); border-radius: 8px; }
.section-heading { margin-bottom: 22px; }
.calculator { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.result-card { padding: 16px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.result-card span, .ad-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.result-card strong { display: block; margin-top: 8px; font-size: 22px; }
.result-card.takehome { color: white; background: var(--green-dark); border-color: var(--green-dark); }
.result-card.takehome span, .ad-card.premium span, .ad-card.premium p { color: rgba(255,255,255,.78); }
.breakdown { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.breakdown dl { display: grid; gap: 8px; margin: 0; }
.breakdown dl div { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 8px; border-bottom: 1px solid #edf1f6; }
.breakdown dd { margin: 0; font-weight: 800; }
.note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.revenue-rail { position: sticky; top: 82px; display: grid; gap: 16px; }
.ad-card.premium { color: white; background: var(--green-dark); border-color: var(--green-dark); }
.ad-card p { color: var(--muted); }
.footer { padding: 24px clamp(18px, 4vw, 56px) 38px; color: var(--muted); background: white; border-top: 1px solid var(--line); font-size: 13px; }
.footer a { margin-right: 18px; color: var(--green); font-weight: 800; }
@media (max-width: 900px) { .hero, .content-shell, .calculator, .results { grid-template-columns: 1fr; } .revenue-rail { position: static; } }

.how-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.75rem;
  line-height: 1.5;
}

.tool-panel h2 {
  margin-top: 1.25rem;
}

.section-heading h2 { margin-top: 0; }
.tool-panel > h2 { font-size: 20px; line-height: 1.2; }
