:root {
  --navy: #071d37;
  --navy-2: #0d2b4a;
  --teal: #2e776f;
  --ink: #102235;
  --muted: #526574;
  --line: #dce3e8;
  --paper: #f4f7f8;
  --white: #ffffff;
  --content: min(1120px, calc(100vw - 48px));
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--white);
  background: rgba(7, 29, 55, 0.98);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--content);
  min-height: 72px;
  margin: 0 auto;
}

.page-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 760;
}

.page-brand img {
  width: 34px;
  height: 34px;
}

.page-brand small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 650;
}

.page-nav a:hover,
.page-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.page-nav .nav-action {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
}

.topic-hero {
  color: var(--white);
  background: var(--navy);
}

.topic-hero-inner {
  width: var(--content);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) 0 clamp(70px, 9vw, 112px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 38px;
  color: #c7d4df;
  font-size: 12px;
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.topic-kicker {
  margin-bottom: 16px;
  color: #a9c9c4;
  font-size: 13px;
  font-weight: 750;
}

.topic-hero h1 {
  max-width: 920px;
  margin-bottom: 26px;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.topic-lead {
  max-width: 760px;
  margin-bottom: 34px;
  color: #dfe8ef;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 750;
  line-height: 1.2;
}

.button-light {
  color: var(--navy);
  background: var(--white);
}

.button-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.audience-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.audience-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: var(--content);
  margin: 0 auto;
}

.audience-item {
  padding: 26px 30px;
  border-right: 1px solid var(--line);
}

.audience-item:first-child {
  padding-left: 0;
}

.audience-item:last-child {
  border-right: 0;
}

.audience-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.audience-item strong {
  font-size: 15px;
}

.topic-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: space-between;
  gap: 80px;
  width: var(--content);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) 0;
}

.topic-toc {
  align-self: start;
  position: sticky;
  top: 104px;
}

.topic-toc > span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.topic-toc nav {
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.topic-toc a {
  color: var(--muted);
}

.topic-toc a:hover,
.topic-toc a:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.topic-content section {
  padding: 0 0 70px;
  scroll-margin-top: 100px;
}

.topic-content section + section {
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.topic-content h2 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.topic-content h3 {
  margin-bottom: 9px;
  font-size: 20px;
  line-height: 1.3;
}

.topic-content p,
.topic-content li {
  max-width: 72ch;
  color: #334a5e;
}

.answer-block {
  padding: 24px 26px;
  border: 1px solid #bfd3d0;
  border-radius: var(--radius);
  color: #173f3b;
  background: #edf5f4;
  font-size: 18px;
  line-height: 1.55;
}

.answer-block p:last-child {
  margin-bottom: 0;
}

.question-list,
.step-list {
  display: grid;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.question-item,
.step-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.question-item > span,
.step-item > span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.question-item p,
.step-item p {
  margin-bottom: 0;
}

.compare-table {
  width: 100%;
  margin-top: 30px;
  border-collapse: collapse;
  font-size: 15px;
}

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

.compare-table th {
  color: var(--navy);
  background: var(--paper);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 22px 42px 22px 0;
  font-size: 18px;
  font-weight: 750;
  cursor: pointer;
}

.faq-list details p {
  padding: 0 0 22px;
}

.topic-cta {
  color: var(--white);
  background: var(--navy-2);
}

.topic-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 42px;
  width: var(--content);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) 0;
}

.topic-cta h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.06;
}

.topic-cta p {
  max-width: 680px;
  margin-bottom: 0;
  color: #cfdae3;
}

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

.page-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: var(--content);
  margin: 0 auto;
  padding: 34px 0;
  color: var(--muted);
  font-size: 12px;
}

.page-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.page-footer a:hover,
.page-footer a:focus-visible {
  color: var(--navy);
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid #72b9ae;
  outline-offset: 4px;
}

@media (max-width: 800px) {
  :root {
    --content: min(calc(100% - 30px), 680px);
  }

  .page-nav a:not(.nav-action) {
    display: none;
  }

  .topic-hero-inner {
    padding-top: 64px;
  }

  .audience-strip-inner,
  .topic-layout,
  .topic-cta-inner {
    grid-template-columns: 1fr;
  }

  .audience-item,
  .audience-item:first-child {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .audience-item:last-child {
    border-bottom: 0;
  }

  .topic-layout {
    gap: 48px;
  }

  .topic-toc {
    position: static;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }

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

  .topic-cta-inner {
    align-items: start;
  }

  .page-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-header-inner {
    min-height: 64px;
  }

  .page-nav .nav-action {
    padding: 8px 10px;
    font-size: 12px;
  }

  .topic-hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topic-toc nav {
    grid-template-columns: 1fr;
  }

  .question-item,
  .step-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .compare-table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
