:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #111827;
  --text-soft: #334155;
  --muted: #64748b;
  --line: #d8dee8;
  --orange: #f97316;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --radius: 8px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.page-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.brand {
  font-weight: 750;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: var(--surface);
}

.button.primary,
.nav a.primary {
  border-color: var(--text);
  background: var(--text);
  color: #ffffff;
}

.hero,
.content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: start;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin-top: 12px;
  max-width: 840px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  font-weight: 760;
}

.lead {
  margin-top: 20px;
  max-width: 760px;
  color: var(--text-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.argument-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.argument-panel h2 {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.contract-list {
  display: grid;
}

.contract-row {
  display: grid;
  grid-template-columns: 10px 1fr;
  border-bottom: 1px solid var(--line);
}

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

.stripe.ffs {
  background: var(--orange);
}

.stripe.mssp {
  background: var(--green);
}

.stripe.ma {
  background: var(--red);
}

.stripe.employer {
  background: var(--amber);
}

.contract-copy {
  padding: 16px;
}

.contract-copy strong {
  display: block;
  margin-bottom: 5px;
}

.contract-copy span {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.45;
}

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

.card,
.wide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.wide-card {
  margin-top: 18px;
}

.card h2,
.wide-card h2 {
  font-size: 24px;
  line-height: 1.1;
}

.card p,
.wide-card p,
.copy-block p,
.about-author p {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.55;
}

.copy-block {
  max-width: 820px;
}

.copy-block h2 {
  margin-top: 32px;
  font-size: 30px;
  line-height: 1.1;
}

.copy-block h2:first-child {
  margin-top: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.side-menu {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}

.side-menu a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.about-author {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 28px;
}

.about-author h2 {
  font-size: 26px;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .topbar,
  .hero,
  .content,
  .about-layout {
    display: block;
  }

  .nav {
    margin-top: 12px;
  }

  .argument-panel,
  .section-grid,
  .side-menu {
    margin-top: 24px;
  }

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

  h1 {
    font-size: 42px;
  }

  .hero,
  .content {
    padding: 34px 16px;
  }
}
