:root {
  --ink: #11131f;
  --ink-soft: #252838;
  --paper: #f5f3ec;
  --panel: #fffef9;
  --line: #dedbd1;
  --muted: #747783;
  --silver: #dce2e8;
  --steel: #748090;
  --accent: #c8a75a;
  --positive: #38a169;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #151515;
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(18px, 4vw, 42px);
  color: #fff;
  background: rgba(17, 19, 31, 0.96);
  backdrop-filter: blur(12px);
}

.site-header__brand {
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f8f8f6;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 28px;
  align-items: start;
  min-height: 620px;
  padding: 48px 0 26px;
  color: #fff;
  background: #11131f;
  box-shadow: 0 0 0 100vmax #11131f;
  clip-path: inset(0 -100vmax);
}

.hero__content {
  align-self: start;
  padding: 20px 0;
}

.brand-card {
  width: min(245px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px;
  border-radius: 8px;
  color: #151515;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #11131f;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), transparent 42%),
    radial-gradient(circle, #f6f7f8 0 32%, #c7d0dc 33% 58%, #8390a1 59% 100%);
  border: 5px solid #202437;
}

.brand-card strong,
.brand-card span {
  display: block;
}

.brand-card span {
  color: #666b76;
  font-size: 13px;
}

.eyebrow,
.section-kicker,
.section-heading span {
  color: var(--accent);
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 8vw, 94px);
  line-height: 0.94;
  font-weight: 650;
}

.hero__summary {
  max-width: 680px;
  margin: 22px 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.6;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 800;
}

.pill--gold {
  color: #f6d77a;
  background: rgba(255, 255, 255, 0.08);
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 20px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  overflow: hidden;
  max-width: 680px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.quote-cell {
  min-height: 104px;
  padding: 22px 20px;
  border-right: 1px solid rgba(17, 19, 31, 0.18);
}

.quote-cell:last-child {
  border-right: 0;
}

.quote-cell span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-cell strong {
  font-size: clamp(24px, 3vw, 32px);
}

.calculator {
  min-height: 569px;
  margin-top: 20px;
  padding: 24px;
  border-radius: 8px;
  color: #151515;
  background: var(--panel);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.26);
}

.calculator h2 {
  margin: 0 0 20px;
  font-size: 24px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 8px;
  background: #e7e3d7;
}

.segmented button {
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  color: #676662;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.segmented button.active {
  color: #fff;
  background: var(--ink);
}

label {
  display: block;
  margin: 16px 0 8px;
  color: #707685;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  color: #222;
  background: #fff;
  font: inherit;
}

.result-card {
  margin-top: clamp(54px, 8vw, 106px);
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
}

.result-card span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-card strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
}

.result-card small {
  color: #f0d782;
}

.content-band,
.home-navigation,
.blog-teaser {
  padding: clamp(34px, 6vw, 72px) clamp(18px, 4vw, 42px);
}

.section-heading {
  max-width: 1180px;
  margin: 0 auto 18px;
}

.section-heading h2,
.home-navigation h2,
.blog-teaser h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading--row a {
  color: var(--ink);
  font-weight: 800;
}

.table-wrap {
  max-width: 1180px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

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

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

th {
  color: #6c7280;
  font-size: 12px;
  text-transform: uppercase;
}

td strong,
td span {
  display: block;
}

td small {
  color: var(--muted);
}

.change {
  color: var(--positive);
  font-weight: 900;
}

.home-navigation {
  background: #fffef9;
}

.home-navigation > div {
  max-width: 1180px;
  margin: 0 auto;
}

.nav-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.nav-columns > div,
.blog-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9f8f3;
}

.nav-columns h3,
.blog-card h3 {
  margin: 0 0 12px;
}

.nav-columns a {
  display: block;
  padding: 9px 0;
  color: #353946;
  font-weight: 700;
}

.blog-grid {
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto;
}

.blog-card span {
  color: var(--steel);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-card p {
  margin: 0;
  color: #5a5f6b;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 4vw, 42px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.site-footer strong {
  color: #fff;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

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

  .calculator {
    min-height: auto;
  }

  .result-card {
    margin-top: 28px;
  }

  .quote-grid,
  .nav-columns,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .quote-cell {
    border-right: 0;
    border-bottom: 1px solid rgba(17, 19, 31, 0.18);
  }

  .quote-cell:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 560px) {
  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero__summary {
    font-size: 17px;
  }

  .site-nav a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }
}
