:root {
  color-scheme: light;
  --bg: #f4f2ee;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #172033;
  --muted: #5f6b7a;
  --line: #d7dde8;
  --blue: #0a66c2;
  --blue-dark: #064a8e;
  --green: #0f7b44;
  --red: #b42318;
  --shadow: 0 18px 44px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

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

a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

code {
  background: #eef4fb;
  border: 1px solid #d5e4f4;
  border-radius: 5px;
  color: #10243f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 5px;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.nav {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 14px 22px;
}

.brand {
  align-items: center;
  color: var(--text);
  display: flex;
  font-weight: 800;
  gap: 10px;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  border-radius: 10px;
  display: block;
  flex: 0 0 auto;
  height: 34px;
  width: 34px;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  justify-content: flex-end;
  line-height: 1.5;
}

.nav-links a {
  color: var(--muted);
}

.page {
  margin: 0 auto;
  max-width: 1120px;
  padding: 34px 20px 48px;
}

.hero {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 364px;
  margin-bottom: 28px;
}

.hero-copy,
.hero-side,
.doc-section,
.footer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 28px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
  padding: 18px;
}

.hero-side img {
  align-self: center;
  aspect-ratio: 340 / 608;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: block;
  height: auto;
  margin-top: 14px;
  max-width: 100%;
  object-fit: contain;
  width: 340px;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
  max-width: 900px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 19px;
}

p {
  margin: 10px 0 0;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  margin-top: 18px;
  max-width: 880px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
}

.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--blue);
}

.button:hover {
  text-decoration: none;
}

.doc-section {
  margin-top: 18px;
  padding: 28px;
  scroll-margin-top: 86px;
}

.section-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-head p {
  color: var(--muted);
  max-width: 760px;
}

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

.doc-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doc-card,
.callout {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.doc-section > .doc-grid + .doc-card,
.doc-section > .doc-grid + .callout,
.doc-section > .doc-card + .doc-card,
.doc-section > .doc-card + .callout,
.doc-section > .callout + .doc-grid,
.doc-section > .callout + .doc-card {
  margin-top: 22px;
}

.doc-card.wide {
  grid-column: 1 / -1;
}

.doc-card h3 + p,
.callout h3 + p {
  color: var(--muted);
}

.manual-list,
.check-list {
  margin: 12px 0 0;
  padding-left: 22px;
}

.manual-list li,
.check-list li {
  margin: 8px 0;
  padding-left: 2px;
}

.option-table {
  border-collapse: collapse;
  margin-top: 16px;
  width: 100%;
}

.option-table th,
.option-table td {
  border-top: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

.option-table th {
  color: #2f3b4d;
  font-size: 13px;
  padding: 11px 10px;
  text-transform: uppercase;
}

.tag {
  background: #eaf4ff;
  border: 1px solid #cfe3fb;
  border-radius: 999px;
  color: var(--blue-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  margin: 0 6px 6px 0;
  padding: 3px 8px;
}

.callout {
  border-left: 4px solid var(--blue);
  margin-top: 14px;
}

.callout.warning {
  border-left-color: var(--red);
}

.callout.success {
  border-left-color: var(--green);
}

.footer {
  color: var(--muted);
  margin-top: 18px;
  padding: 18px 24px;
}

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

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

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

  .section-head {
    flex-direction: column;
  }

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