:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #edf2f8;
  --ink: #142033;
  --muted: #5e6b7d;
  --line: #d9e1ec;
  --blue: #1d5fd1;
  --teal: #098980;
  --green: #247a3b;
  --amber: #9a6500;
  --red: #a53b3b;
  --shadow: 0 14px 34px rgba(15, 31, 53, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: 54px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(38px, 5.4vw, 72px);
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
}

h3 {
  font-size: 20px;
}

.lede {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section {
  padding: 34px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-header p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

.panel,
.tool,
.notice,
.cta-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel,
.tool {
  padding: 22px;
}

.compact-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compact-panel p {
  margin: 0;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.stat strong {
  display: block;
  font-size: 24px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.notice {
  padding: 14px 16px;
  color: #654a0b;
  background: #fff7df;
  box-shadow: none;
}

.disclosure {
  margin-top: 20px;
  color: #3f526d;
  background: #eef5ff;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.related-list li {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f7faff;
}

.link-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.link-row:last-child {
  border-bottom: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: #34445a;
  background: var(--surface-2);
  font-size: 13px;
}

.badge.primary {
  border-color: rgba(29, 95, 209, 0.25);
  color: #113f91;
  background: #e8f0ff;
}

.badge.warning {
  border-color: rgba(154, 101, 0, 0.3);
  color: #694707;
  background: #fff4d8;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #33445c;
  background: #f0f4f9;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: 0;
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn-row.compact {
  justify-content: flex-end;
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 750;
}

.button:hover {
  color: #ffffff;
  text-decoration: none;
  background: #164ca8;
}

.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.button.secondary:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.button.secondary.light {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.button.secondary.light:hover {
  color: #132238;
  background: #ffffff;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.calc-result {
  margin-top: 14px;
  border-radius: 8px;
  padding: 14px;
  background: #ecfdf6;
  color: #134f2a;
  font-weight: 700;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: #132238;
  color: #ffffff;
}

.highlight-band {
  border-color: rgba(9, 137, 128, 0.32);
  background: linear-gradient(135deg, #132238, #0d4d61);
}

.cta-band .eyebrow {
  margin-bottom: 8px;
  color: #8ee4d9;
}

.cta-band p {
  margin: 8px 0 0;
  color: #ccdbed;
}

.cta-band .button {
  background: #ffffff;
  color: #132238;
}

.intent-table table {
  min-width: 780px;
}

.site-footer {
  margin-top: 42px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.fine-print {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 20px;
  }

  .hero-grid,
  .grid.two,
  .grid.three,
  .related-list,
  .cta-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    padding-top: 34px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .form-row {
    flex-direction: column;
  }

  .btn-row.compact {
    justify-content: flex-start;
  }
}
