:root {
  color-scheme: light;
  --ink: #18212e;
  --muted: #5e6977;
  --line: #dce2ea;
  --paper: #f6f8fb;
  --panel: #ffffff;
  --brand: #124a88;
  --brand-dark: #0c315c;
  --cyan: #18a7d4;
  --green: #35735a;
  --gold: #c79338;
  --red: #bd4a3b;
  --shadow: 0 20px 48px rgba(18, 33, 46, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(12, 49, 92, 0.16);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.brand {
  display: block;
  width: 164px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav a,
.header-cta,
.hero-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 900;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav a:hover {
  color: var(--brand-dark);
  background: #edf5fb;
}

.header-cta,
.hero-cta {
  color: #ffffff;
  background: var(--brand);
  border: 1px solid var(--brand);
}

.header-cta:hover,
.hero-cta:hover {
  background: var(--brand-dark);
}

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 44px;
}

.hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 8px;
  background: var(--brand-dark);
  box-shadow: var(--shadow);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 24, 43, 0.94), rgba(9, 24, 43, 0.74) 45%, rgba(9, 24, 43, 0.22)),
    linear-gradient(180deg, rgba(9, 24, 43, 0.15), rgba(9, 24, 43, 0.72));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(34px, 6vw, 64px);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1rem;
}

.hero-copy p {
  max-width: 620px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
  font-size: 1.05rem;
}

.workspace {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.panel,
.chart-panel,
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(18, 33, 46, 0.04);
}

.panel,
.chart-panel {
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ghost-button,
.segment,
select {
  min-height: 40px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 12px;
}

.ghost-button:hover,
.segment:hover {
  border-color: var(--cyan);
}

.field-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: #ffffff;
}

input:focus,
select:focus {
  outline: 3px solid rgba(24, 167, 212, 0.22);
  border-color: var(--cyan);
}

.suffix-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.suffix-field input {
  border: 0;
  border-radius: 0;
}

.suffix-field span {
  padding: 0 11px;
  color: var(--muted);
  font-weight: 850;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.segment.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  padding: 16px;
}

.metric span,
.metric small,
.hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.metric strong {
  display: block;
  margin: 10px 0 8px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.metric.highlight {
  color: #ffffff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.metric.highlight span,
.metric.highlight small {
  color: rgba(255, 255, 255, 0.74);
}

.comparison-list {
  display: grid;
  gap: 10px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 165px minmax(180px, 1fr) 160px 145px;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.comparison-name strong {
  display: block;
}

.comparison-name span {
  color: var(--muted);
  font-size: 0.78rem;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #eef2f6;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: var(--bar-width);
  background: var(--bar-color);
}

.money {
  font-weight: 900;
}

.sub {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 3px;
}

.tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.rate-table {
  display: grid;
  gap: 8px;
}

.rate-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 110px;
  gap: 10px;
  align-items: center;
}

.rate-row span {
  font-weight: 850;
}

.notes {
  margin-top: 20px;
  padding: 24px;
  color: var(--muted);
  line-height: 1.65;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.notes h2 {
  margin-bottom: 8px;
  color: var(--ink);
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    margin: 12px auto 0;
    transform: none;
  }

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

  .header-cta {
    width: 100%;
  }

  .shell {
    width: min(100% - 24px, 1240px);
    padding-top: 14px;
  }

  .workspace,
  .tables,
  .scoreboard {
    grid-template-columns: 1fr;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    width: 146px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .panel,
  .chart-panel {
    padding: 16px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 1.08;
  }

  .hero-copy p {
    font-size: 0.98rem;
  }

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

  .rate-row {
    grid-template-columns: 1fr 96px;
  }
}
