:root {
  --blue: #2f6fbd;
  --teal: #0f766e;
  --green: #2f855a;
  --ink: #172033;
  --muted: #64748b;
  --line: #dbe4ef;
  --soft: #f6f8fb;
  --panel: #ffffff;
  --warning: #fff8e6;
  --warning-line: #f3d489;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f8fa;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.75;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.nav {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--ink);
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.92rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--blue);
  color: white;
  font-weight: 900;
}

.button-link:hover {
  text-decoration: none;
  background: #255ea6;
}

.button-link.secondary {
  background: white;
  color: var(--blue);
  border: 1px solid #bfd2ea;
}

.layout {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 950;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin: 20px 0 0;
  color: #334155;
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  line-height: 1.75;
}

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

.hero-purchase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: center;
  max-width: 720px;
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid #bdd7f5;
  border-radius: 8px;
  background: #eaf4ff;
}

.hero-purchase strong {
  display: block;
  color: #10233f;
  font-size: 1rem;
}

.hero-purchase span {
  display: block;
  margin-top: 4px;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-purchase img {
  display: block;
  width: 120px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.media-panel {
  margin: 26px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.media-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.media-panel figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: start;
  padding-bottom: 56px;
}

.article {
  min-width: 0;
}

.toc {
  position: sticky;
  top: 88px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.toc-title {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 900;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: #334155;
  font-size: 0.92rem;
}

section {
  margin: 0 0 34px;
}

h2 {
  margin: 0 0 14px;
  color: #10233f;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 24px 0 10px;
  color: #1e293b;
  font-size: 1.08rem;
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

li {
  margin: 6px 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin: 18px 0;
}

.image-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.image-row .media-panel {
  margin: 0;
}

.qr-purchase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: center;
}

.qr-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.qr-card img {
  display: block;
  width: 100%;
  height: auto;
}

.qr-card figcaption {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
  background: #fbfdff;
  border-top: 1px solid var(--line);
}

.note {
  background: var(--warning);
  border: 1px solid var(--warning-line);
  border-radius: 8px;
  padding: 16px 18px;
  color: #59410c;
}

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

.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.metric b {
  display: block;
  color: var(--blue);
  font-size: 1.35rem;
  line-height: 1.2;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

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

th {
  background: #eef4fb;
  color: #1e3a5f;
  font-size: 0.9rem;
}

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

.qa {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.qa h2,
.qa h3 {
  margin-bottom: 8px;
}

.cta-band {
  margin: 46px 0 0;
  padding: 26px;
  background: #eaf4ff;
  border: 1px solid #bdd7f5;
  border-radius: 8px;
}

.cta-band h2 {
  margin-bottom: 8px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .layout {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

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

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

  .hero {
    padding-top: 34px;
  }

  .content-grid {
    display: block;
  }

  .toc {
    position: static;
    margin-bottom: 26px;
  }

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

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

  .hero-purchase img {
    width: 150px;
  }

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

  .qr-purchase {
    grid-template-columns: 1fr;
  }

  .qr-card {
    max-width: 240px;
    margin: 0 auto;
  }
}
