: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;
}

body {
  background: #f8fbfb;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  margin: 0;
}

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;
  padding: 2px 6px;
}

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

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.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;
  z-index: 10;
}

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

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

.brand img {
  height: 38px;
  object-fit: contain;
  width: 54px;
}

.top-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.top-nav a {
  color: #142128;
  font-size: 14px;
  font-weight: 800;
}

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

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

.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);
}

.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(42px, 7vw, 82px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.01em;
  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;
}

.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 {
  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,
.calculator {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  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(5, minmax(0, 1fr));
  margin-bottom: 18px;
  padding: 16px;
}

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

.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;
}

.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;
}

.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;
}

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;
}

.hardware-grid p,
.metric-grid p,
.note {
  color: var(--muted);
  margin: 10px 0 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,
  .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;
    padding: 14px 18px;
  }

  main {
    padding: 22px 16px;
  }

  .hero-copy,
  .hero-panel,
  .doc-card {
    padding: 22px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 17px;
  }

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