:root {
  --ink: #111820;
  --muted: #60717a;
  --line: #dfe8ea;
  --panel: #ffffff;
  --soft: #f6fafa;
  --accent: #008f86;
  --accent-2: #10d7c3;
  --warn: #8a6500;
  --warn-bg: #fffaf0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  background: #f8fbfb;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  width: 100%;
}

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

a:hover {
  text-decoration: underline;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  background: #edf7f6;
  border-radius: 6px;
  color: #0a504b;
  overflow-wrap: anywhere;
  padding: 2px 6px;
  word-break: break-word;
}

pre {
  background: #0f171d;
  border-radius: 12px;
  color: #eef7f7;
  line-height: 1.55;
  overflow-x: auto;
  padding: 18px;
}

pre code {
  background: transparent;
  color: inherit;
  overflow-wrap: normal;
  padding: 0;
  word-break: normal;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px 30px;
  position: sticky;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--accent);
  display: flex;
  font-size: 20px;
  font-weight: 850;
  gap: 12px;
  min-width: 0;
}

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

.brand img {
  border-radius: 12px;
  height: 38px;
  object-fit: contain;
  width: 38px;
}

.top-nav {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 5px;
  justify-content: flex-end;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  border-radius: 999px;
  color: #51616a;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 13px;
  white-space: nowrap;
}

.top-nav a:hover {
  background: #ecf7f6;
  color: #057d73;
  text-decoration: none;
}

main {
  margin: 0 auto;
  max-width: 1280px;
  padding: 34px 30px;
  width: 100%;
}

.hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.75fr);
  margin-bottom: 18px;
  min-width: 0;
}

.hero-copy,
.hero-panel,
.doc-card,
.toc,
.status-strip,
.site-footer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(17, 24, 32, 0.04);
  min-width: 0;
}

.hero-copy {
  min-height: 370px;
  padding: 46px;
}

.kicker,
.panel-label,
.toc-title {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(24px, 2.5vw, 34px);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 18px;
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.hero-text {
  color: var(--muted);
  font-size: 20px;
  max-width: 780px;
}

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

.primary-button,
.secondary-button,
.copy-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.primary-button,
.copy-button {
  background: #111820;
  border: 1px solid #111820;
  color: #ffffff;
  min-width: 136px;
}

.secondary-button {
  background: #ffffff;
  border: 1px solid var(--line);
  color: #111820;
}

.primary-button:hover,
.secondary-button:hover,
.copy-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-panel {
  align-content: start;
  display: grid;
  gap: 18px;
  padding: 30px;
}

.hero-panel code {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
  padding: 14px;
}

.mini-grid,
.status-strip,
.metric-grid,
.hardware-grid,
.ops-grid {
  display: grid;
  gap: 12px;
}

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

.mini-grid div,
.status-strip div,
.metric-grid div,
.hardware-grid article,
.ops-grid article,
.policy-grid article,
.calculator {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  padding: 16px;
}

.mini-grid span,
.status-strip span,
.metric-grid span,
.hardware-grid span,
.estimate-output span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 6px;
}

.mini-grid strong,
.status-strip strong,
.metric-grid strong,
.hardware-grid strong,
.estimate-output strong {
  color: var(--ink);
  display: block;
  font-size: 22px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.status-strip {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 18px;
  padding: 16px;
}

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

.toc {
  display: grid;
  gap: 4px;
  padding: 18px;
  position: sticky;
  top: 84px;
}

.toc a {
  border-radius: 8px;
  color: #26353c;
  font-weight: 750;
  padding: 9px 10px;
}

.toc a:hover {
  background: #edf7f6;
  text-decoration: none;
}

.docs {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.doc-card {
  padding: 28px;
  overflow: hidden;
}

.card-heading {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-heading img {
  height: 48px;
  object-fit: contain;
  width: 64px;
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  align-items: start;
  background: #fbfdfd;
  border: 1px solid #edf2f3;
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 14px;
}

.steps li::before {
  align-items: center;
  background: #111820;
  border-radius: 999px;
  color: #ffffff;
  content: counter(steps);
  counter-increment: steps;
  display: inline-flex;
  font-weight: 850;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.step-copy {
  line-height: 1.55;
  min-width: 0;
}

.step-code-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.step-code-line code {
  max-width: 100%;
}

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

.split-grid ul,
.check-list {
  margin: 0;
  padding-left: 20px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

th,
td {
  border-bottom: 1px solid #edf2f3;
  padding: 15px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eff6f6;
  color: #53656e;
  font-size: 13px;
  text-transform: uppercase;
}

.hardware-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

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

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

.ops-grid article,
.policy-grid article {
  padding: 18px;
}

.ops-grid h3,
.policy-grid h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.hardware-grid p,
.metric-grid p,
.ops-grid p,
.policy-grid p,
.note {
  color: var(--muted);
  margin: 10px 0 0;
}

.ops-grid p,
.policy-grid p {
  margin-bottom: 0;
}

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

.input-row label {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 8px;
}

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

.input-row input {
  border: 0;
  font: inherit;
  font-size: 22px;
  font-weight: 850;
  min-width: 0;
  outline: none;
  padding: 13px;
}

.input-row span {
  color: var(--muted);
  font-weight: 850;
  padding: 0 13px;
}

.estimate-output {
  align-content: center;
  display: grid;
}

.timeline {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline div {
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.timeline span {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  margin-bottom: 12px;
  width: 30px;
}

.timeline p {
  margin-bottom: 0;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

details {
  border-bottom: 1px solid #edf2f3;
  padding: 14px 0;
}

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
}

details p {
  color: var(--muted);
  margin: 10px 0 0;
}

.site-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 30px;
  max-width: 1220px;
  padding: 18px 22px;
}

.site-footer span {
  color: var(--accent);
  font-weight: 850;
}

.site-footer div {
  display: flex;
  gap: 16px;
}

@media (max-width: 1040px) {
  .hero,
  .layout,
  .status-strip,
  .split-grid,
  .hardware-grid,
  .ops-grid,
  .policy-grid,
  .calculator,
  .timeline,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

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

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    padding: 14px;
  }

  .brand,
  .brand span {
    max-width: 100%;
  }

  .brand {
    font-size: 18px;
    gap: 8px;
  }

  .top-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin: 0 -14px;
    max-width: calc(100% + 28px);
    overflow-x: auto;
    padding: 0 14px 8px;
    width: calc(100% + 28px);
  }

  .top-nav a {
    font-size: 13px;
    padding: 9px 14px;
  }

  main {
    max-width: 100%;
    padding: 14px 12px;
  }

  .hero {
    gap: 12px;
  }

  .hero-copy,
  .hero-panel,
  .doc-card {
    border-radius: 10px;
    padding: 18px;
  }

  h1 {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.06;
  }

  h2 {
    font-size: clamp(23px, 7vw, 30px);
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.45;
  }

  .primary-button,
  .secondary-button,
  .copy-button {
    font-size: 13px;
    min-height: 40px;
    min-width: 0;
    padding: 0 14px;
  }

  .card-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .card-heading img {
    height: 38px;
    width: 38px;
  }

  .steps li {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 12px;
  }

  pre {
    border-radius: 10px;
    font-size: 12px;
    padding: 14px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-left: 16px;
    margin-right: 16px;
  }
}
