/* ============================================
   Homepage — layouts and product renderings.
   Shared tokens, nav, buttons, footer: css/site.css
   ============================================ */

/* Category colour per block / swatch */
.cat-infra { --cat: var(--c-infra); }
.cat-servers { --cat: var(--c-servers); }
.cat-users { --cat: var(--c-users); }
.cat-wireless { --cat: var(--c-wireless); }
.cat-facilities { --cat: var(--c-facilities); }
.cat-platform { --cat: var(--c-platform); }
.cat-new { --cat: var(--action); }

/* ============================================
   HERO
   ============================================ */
.hero { padding-block: clamp(32px, 4.5vw, 64px) clamp(64px, 8vw, 112px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
.hero-copy .lead { margin-top: 24px; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note { margin-top: 14px; color: var(--ink-3); font-size: 0.9375rem; }

/* --- Address map: 10.40.0.0/16 as 256 /24s in Z-order, so every
       CIDR-aligned block is a rectangle --- */
.addrmap { padding: clamp(14px, 2vw, 20px); scroll-margin-top: 80px; }
.addrmap-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.addrmap-title { color: var(--ink); font-weight: 700; }
.addrmap-title .mono { margin-right: 8px; }
.addrmap-count { color: var(--ink-3); font-size: 0.875rem; }

.map-grid {
  --cols: 16;
  --rows: 16;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  aspect-ratio: var(--cols) / var(--rows);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background-color: var(--sheet-2);
  /* Quarter boundaries, /24 cells, then hatching for unallocated space */
  background-image:
    linear-gradient(to right, var(--rule-strong) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule-strong) 1px, transparent 1px),
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px),
    repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--rule) 70%, transparent) 6px 7px);
  background-size: 50% 50%, 50% 50%, calc(100% / var(--cols)) calc(100% / var(--rows)), calc(100% / var(--cols)) calc(100% / var(--rows)), auto;
  background-position: -1px -1px;
}

.blk {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin: 2px;
  padding: 6px 7px;
  overflow: hidden;
  container-type: size;
  border: 1.5px solid var(--cat);
  border-radius: 3px;
  background: color-mix(in srgb, var(--cat) 20%, var(--sheet));
  color: var(--ink);
  text-align: left;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.15s;
  /* backwards, not both: a held transform would override drag offsets */
  animation: blk-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 45ms + 120ms);
}
.blk.no-enter { animation: none; }
/* Utilization: fills from the bottom like a gauge */
.blk::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: var(--u, 0%);
  background: color-mix(in srgb, var(--cat) 34%, transparent);
  pointer-events: none;
}
.blk > span { position: relative; }
.blk:hover, .blk.is-active { box-shadow: 0 0 0 2px var(--ink); z-index: 2; }
.blk:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--action); z-index: 2; }
/* Labels appear only when the block has room for them */
.blk-name, .blk-cidr { display: none; }
.blk-name {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.blk-cidr {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--ink-2);
  white-space: nowrap;
}
@container (min-width: 58px) and (min-height: 14px) { .blk-cidr { display: block; } }
@container (min-width: 58px) and (min-height: 32px) { .blk-name { display: block; } }

/* Dragging */
.blk.is-dragging {
  z-index: 10;
  cursor: grabbing;
  transition: none;
  opacity: 0.85;
  box-shadow: 0 0 0 2px var(--ink), 0 12px 28px rgba(0, 0, 0, 0.22);
}
.addrmap.is-dragging, .addrmap.is-dragging * { cursor: grabbing; }
.blk-avatar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  margin: 0;
  pointer-events: none;
  transition: none;
  animation: none;
  opacity: 0.8;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
/* Renumbered in the puzzle: a dashed inner outline marks the move */
.blk.is-moved::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1.5px dashed var(--ink);
  border-radius: 2px;
  opacity: 0.5;
  pointer-events: none;
}

/* Where a block would land: "find the next free" and drag previews */
.blk-ghost {
  z-index: 1;
  border: 2px dashed var(--action);
  background: var(--action-tint);
  cursor: default;
  pointer-events: none;
  animation: ghost-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.blk-ghost::before { display: none; }
.blk-ghost .blk-cidr { color: var(--ink); font-weight: 600; }
.blk-ghost.is-invalid {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}
@keyframes blk-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes ghost-in {
  0% { opacity: 0; transform: scale(1.12); }
  60% { opacity: 1; transform: scale(0.98); }
  100% { opacity: 1; transform: none; }
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 12px;
  list-style: none;
  color: var(--ink-3);
  font-size: 0.8125rem;
}
.map-legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--cat);
  border-radius: 2px;
  background: color-mix(in srgb, var(--cat) 30%, var(--sheet));
}
.swatch-free {
  border-color: var(--rule-strong);
  background: repeating-linear-gradient(135deg, transparent 0 2px, var(--rule-strong) 2px 3px);
}

.map-inspect {
  min-height: 3em;
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.map-inspect strong { color: var(--ink); }
.map-inspect .mono { color: var(--ink); font-weight: 600; }

.map-find {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.map-find-label { color: var(--ink); font-size: 0.9375rem; font-weight: 700; }
.seg {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.seg button {
  min-width: 52px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  background: var(--sheet);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--rule-strong); }
.seg button:hover { background: var(--sheet-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button:focus-visible { outline-offset: -3px; }

/* --- Puzzle: "Make room" --- */

.is-playing .blk, .chip { touch-action: none; }
.addrmap.is-won .map-grid { box-shadow: 0 0 0 3px var(--action); transition: box-shadow 0.3s; }

.game { margin-top: 14px; }
.game-brief { font-size: 0.9375rem; line-height: 1.5; }
.game-brief:focus { outline: none; }
.game-brief strong { color: var(--ink); }
.game-queue { margin-top: 12px; }
.game-queue-label { margin-bottom: 6px; color: var(--ink-3); font-size: 0.8125rem; font-weight: 500; }
.game-queue ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.game-queue ul:empty::before { content: 'All placed.'; color: var(--ink-3); font-size: 0.875rem; }
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1.5px dashed var(--action);
  border-radius: 4px;
  background: var(--action-tint);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.chip:hover { background: color-mix(in srgb, var(--action) 18%, transparent); }
.chip.is-dragging { opacity: 0.4; }
.chip-size { font-family: var(--font-mono); font-weight: 600; color: var(--ink-2); }
.game-status {
  min-height: 3em;
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.game-status strong, .game-status .mono { color: var(--ink); }
.game-status .mono { font-weight: 600; }
.game-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.game-score { font-size: 0.9375rem; }
.game-score strong { margin-left: 4px; color: var(--ink); font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.game-par { display: block; color: var(--ink-3); font-size: 0.8125rem; }
.game-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================
   IMPORT / SCAN
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  font-size: 1rem;
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-3);
}
.steps strong { display: block; color: var(--ink); font-size: 1.0625rem; }

.scan-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}
.panel-cap {
  margin-bottom: 8px;
  color: var(--ink-3);
  font-size: 0.875rem;
}
.code-term pre { font-size: 0.8125rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-term .p { color: #5fe3c3; }

.scan-preview { overflow: hidden; }
.scan-preview-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}
.scan-preview-head h3 { font-size: 1rem; font-weight: 700; }
.scan-preview-head .mono { color: var(--ink-3); font-size: 0.875rem; }
.scan-tally {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}
.scan-tally div { padding: 12px 18px; }
.scan-tally div + div { border-left: 1px solid var(--rule); }
.scan-tally dt { font-size: 0.8125rem; color: var(--ink-3); }
.scan-tally dd { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.scan-rows { list-style: none; }
.scan-rows li {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 2px 14px;
  padding: 12px 18px;
  font-size: 0.9375rem;
}
.scan-rows li + li { border-top: 1px solid var(--rule); }
.scan-rows .mono { color: var(--ink); }
.scan-rows .what { color: var(--ink); font-weight: 700; }
.scan-rows .why { grid-column: 2; color: var(--ink-2); font-size: 0.875rem; }
.tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: 1px;
}
.tag-ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ink); }
.tag-new { background: var(--action-tint); color: var(--ink); box-shadow: inset 0 0 0 1px var(--action); }
.tag-warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--ink); }
.tag-dim { background: var(--sheet-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.scan-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--rule);
  background: var(--sheet-2);
  color: var(--ink-2);
  font-size: 0.875rem;
}
.below-note { margin-top: 20px; max-width: 46rem; font-size: 1rem; }

/* ============================================
   PLAN (subnet tree)
   ============================================ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-rev > :first-child { order: 2; }
.split-copy .lead { margin-top: 18px; }

.facts { margin-top: 32px; list-style: none; }
.facts li { padding: 14px 0; border-top: 1px solid var(--rule); font-size: 1rem; }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts strong { color: var(--ink); }

.tree { padding: 6px 0; font-size: 0.9375rem; }
.tree-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.2em 7.5em;
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px calc(18px + var(--depth, 0) * 22px);
}
.tree-row + .tree-row { border-top: 1px solid var(--rule); }
.tree-row.is-current { background: var(--action-tint); box-shadow: inset 3px 0 0 var(--action); }
.tree-net { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tree-net .mono { color: var(--ink); font-weight: 600; white-space: nowrap; }
.tree-net .name { overflow: hidden; color: var(--ink-2); white-space: nowrap; text-overflow: ellipsis; }
.tree-twisty {
  flex: none;
  width: 10px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.tree-vlan { color: var(--ink-3); font-size: 0.8125rem; white-space: nowrap; }
.meter { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--ink-2); }
.meter-bar {
  position: relative;
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--rule);
}
.meter-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--u);
  border-radius: 3px;
  background: var(--ok);
}
.meter-bar.warn::after { background: var(--warn); }
.meter-bar.danger::after { background: var(--danger); }
.meter-num { width: 2.6em; text-align: right; font-variant-numeric: tabular-nums; }
.badge {
  justify-self: start;
  padding: 1px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 700;
}
.tree-carve {
  margin: 8px 18px 12px calc(18px + 2 * 22px);
  padding: 12px 14px;
  border: 1px dashed var(--action);
  border-radius: 4px;
  background: var(--action-tint);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.tree-carve strong { color: var(--ink); }
.tree-carve .mono { color: var(--ink); font-weight: 600; }

/* ============================================
   ADDRESSES
   ============================================ */
.addr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.addr-grid-wrap { padding: clamp(14px, 2vw, 20px); }
.addr-grid-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 0.9375rem; }
.addr-grid-head strong { color: var(--ink); }
.addr-grid-head .mono { color: var(--ink); font-weight: 600; }
.addr-grid {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 3px;
}
.addr-grid i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--sheet-2);
  box-shadow: inset 0 0 0 1px var(--rule);
}
/* Status fills match the app's (web/src/lib/status.ts) */
.addr-grid, .addr-legend {
  --st-gateway: #22c55e;
  --st-assigned: #3b82f6;
  --st-reserved: #eab308;
  --st-manual: #6366f1;
  --st-dynamic: #a855f7;
}
.addr-grid .g { background: var(--st-gateway); box-shadow: none; }
.addr-grid .a { background: var(--st-assigned); box-shadow: none; }
.addr-grid .r { background: var(--st-reserved); box-shadow: none; }
.addr-grid .m { background: var(--st-manual); box-shadow: none; }
.addr-grid .d { background: var(--st-dynamic); box-shadow: none; }
.addr-grid .x { background: repeating-linear-gradient(135deg, transparent 0 2px, var(--rule-strong) 2px 3px); }
.addr-grid .sel { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--action); position: relative; z-index: 1; }
.addr-legend { margin-top: 14px; }
.addr-legend .k-g { background: var(--st-gateway); border-color: var(--st-gateway); }
.addr-legend .k-a { background: var(--st-assigned); border-color: var(--st-assigned); }
.addr-legend .k-r { background: var(--st-reserved); border-color: var(--st-reserved); }
.addr-legend .k-m { background: var(--st-manual); border-color: var(--st-manual); }
.addr-legend .k-d { background: var(--st-dynamic); border-color: var(--st-dynamic); }
.addr-legend .k-f { background: var(--sheet-2); border-color: var(--rule-strong); }

.record { overflow: hidden; }
.record-head { padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.record-head .mono { display: block; color: var(--ink); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.record-head span:last-child { color: var(--ink-2); font-size: 0.9375rem; }
.record dl { display: grid; grid-template-columns: 8em minmax(0, 1fr); }
.record dt, .record dd { padding: 9px 20px; border-top: 1px solid var(--rule); font-size: 0.9375rem; }
.record dl > dt:first-of-type, .record dl > dd:first-of-type { border-top: 0; }
.record dt { color: var(--ink-3); padding-right: 0; }
.record dd { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.record dd .mono { font-size: 0.875rem; }
.record-flag {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 0.8125rem;
}
.record-flag::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--warn);
  vertical-align: 1px;
}
.status-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--c-servers) 16%, transparent);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ============================================
   API
   ============================================ */
.endpoints { margin-top: 28px; list-style: none; font-size: 0.875rem; }
.endpoints li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
}
.endpoints li:last-child { border-bottom: 1px solid var(--rule); }
.endpoints .mono { color: var(--ink); overflow-wrap: anywhere; }
.verb {
  flex: none;
  width: 3.6em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-3);
}
.api-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.code-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 6px 0;
  border-bottom: 1px solid var(--code-rule);
  overflow-x: auto;
}
.code-tab {
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--code-dim);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.code-tab:hover { color: var(--code-ink); }
.code-tab[aria-selected="true"] { color: #ffffff; border-bottom-color: #5fe3c3; }
.code-tab:focus-visible { outline: 2px solid #5fe3c3; outline-offset: -4px; }
.code-panel[hidden] { display: none; }

/* ============================================
   SPEC SHEET
   ============================================ */
.spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
}
.spec div {
  display: grid;
  grid-template-columns: 11em minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.spec dt { color: var(--ink); font-weight: 700; }
.spec dd { font-size: 1rem; }

/* ============================================
   TOOLS
   ============================================ */
.tool-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.tool-groups h3 { padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 1rem; font-weight: 700; }
.tool-groups ul { list-style: none; }
.tool-groups a {
  display: block;
  padding: 7px 0;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.tool-groups a:hover { color: var(--action); }

/* ============================================
   PRICING SUMMARY
   ============================================ */
.plans-table-wrap { overflow-x: auto; }
.plans-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 1rem;
}
.plans-table th, .plans-table td { padding: 16px 16px 16px 0; text-align: left; border-bottom: 1px solid var(--rule); }
.plans-table thead th { padding-top: 0; color: var(--ink-3); font-size: 0.875rem; font-weight: 500; border-bottom-color: var(--rule-strong); }
.plans-table tbody th { color: var(--ink); font-size: 1.125rem; font-weight: 800; }
.plans-table td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.plans-table .price { color: var(--ink); font-weight: 700; }
.plans-table .per { color: var(--ink-3); font-weight: 400; }
.plans-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.plans-foot p { color: var(--ink-3); font-size: 0.9375rem; }

/* ============================================
   CLOSING CTA
   ============================================ */
.closer { padding-block: clamp(80px, 10vw, 144px); border-top: 1px solid var(--rule); }
.closer .lead { margin-top: 20px; }
.closer .hero-ctas { margin-top: 32px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 40rem; }
  .addrmap { max-width: 560px; }
  .split, .split-rev { grid-template-columns: minmax(0, 1fr); }
  .split-rev > :first-child { order: 0; }
  .tool-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .scan-pair, .addr-layout { grid-template-columns: minmax(0, 1fr); }
  .spec { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .blk { margin: 1px; padding: 3px 4px; border-width: 1px; }
  .blk-name { font-size: 0.6875rem; }
  .blk-cidr { font-size: 0.625rem; }
  .scan-tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scan-tally div:nth-child(3) { border-left: 0; }
  .scan-tally div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .scan-rows li { grid-template-columns: minmax(0, 1fr); }
  .scan-rows .why { grid-column: 1; }
  .tree-row { grid-template-columns: minmax(0, 1fr) 6.5em; padding-left: calc(14px + var(--depth, 0) * 14px); padding-right: 14px; }
  .tree-vlan { display: none; }
  .tree-net { flex-wrap: wrap; row-gap: 0; column-gap: 8px; }
  .tree-net .name { flex-basis: 100%; padding-left: 18px; }
  .tree-carve { margin-left: 14px; margin-right: 14px; }
  .spec div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tool-groups { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .record dl { grid-template-columns: minmax(0, 1fr); }
  .record dd { border-top: 0; padding-top: 0; }
  .record dt { padding-bottom: 2px; }
}
