/* ==========================================================================
   OwnNet Infrastructure — ownnet.club
   Public marketing site stylesheet. Pure CSS, no external dependencies.
   ========================================================================== */

:root {
  /* Palette */
  --ink: #0F172A;
  --ink-soft: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --surface-2: #F1F5F9;
  --brand: #2563EB;
  --brand-dark: #1D4ED8;
  --brand-tint: #EFF4FF;
  --ok: #10B981;
  --ok-ink: #047857;
  --ok-tint: #ECFDF5;
  --warn-ink: #B45309;
  --warn-tint: #FFFBEB;
  --warn-line: #FDE68A;

  /* Shape */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;

  /* Depth */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 14px 34px -16px rgba(15, 23, 42, .22);

  /* Type */
  --font: "Inter", "Inter var", system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.022em;
  font-weight: 650;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.075rem; letter-spacing: -.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }

img, svg { max-width: 100%; vertical-align: middle; }

ul, ol { margin: 0 0 1em; padding-left: 1.15rem; }
li { margin-bottom: .35em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: .97rem;
  letter-spacing: -.015em;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--ink); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  flex: 0 0 auto;
}

.brand-text small {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.nav-link {
  display: inline-block;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }

.header-cta { flex: 0 0 auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease,
              border-color .15s ease, transform .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn--primary:hover { background: var(--brand-dark); color: #fff; }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: #B6C2D2; }

.btn--sm { padding: 8px 13px; font-size: .85rem; border-radius: 9px; }
.btn--block { width: 100%; }

/* ---------- Badges & status ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .79rem;
  font-weight: 600;
  letter-spacing: .005em;
  color: var(--ink-soft);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.badge--ok {
  background: var(--ok-tint);
  border-color: #BBF7D0;
  color: var(--ok-ink);
}
.badge--brand { background: var(--brand-tint); border-color: #DBE6FF; color: var(--brand-dark); }
.badge--warn { background: var(--warn-tint); border-color: var(--warn-line); color: var(--warn-ink); }
.badge--muted { color: var(--muted); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex: 0 0 auto;
}
.dot--pulse { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: pulse 2.4s infinite; }
.dot--idle { background: #F59E0B; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 420px at 78% -10%, #EAF0FF 0%, rgba(234, 240, 255, 0) 62%),
    #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero h1 { margin-bottom: .45em; text-wrap: balance; }
.hero h1 .accent { display: block; color: var(--brand); }

.lead {
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

.hero-note {
  margin-top: 22px;
  font-size: .84rem;
  color: var(--muted);
}

/* Console panel in hero */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.panel-title {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-soft);
}

.panel-body { padding: 6px 0; }

.node-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid #F1F5F9;
}
.node-row:last-child { border-bottom: 0; }

.node-name { font-weight: 600; font-size: .9rem; }
.node-name span { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.node-metric { font-family: var(--mono); font-size: .82rem; color: var(--ink-soft); }

.node-name span, .kv dd, .detail dd, .panel-foot span { overflow-wrap: anywhere; }

.panel-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
}

/* ---------- Section headers ---------- */

.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1rem; margin-bottom: 0; }

/* ---------- Cards ---------- */

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

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); transform: translateY(-2px); }

.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .93rem; margin-bottom: 0; }

.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--brand-tint);
  color: var(--brand);
  border: 1px solid #DBE6FF;
}

.card-tag {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Tables ---------- */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 640px;
}

thead th {
  padding: 13px 18px;
  text-align: left;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--ink-soft);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #FCFDFF; }

td .mono, .mono { font-family: var(--mono); font-size: .86em; }
td strong { color: var(--ink); font-weight: 600; }

/* ---------- Topology map (CSS/SVG-free schematic) ---------- */

.topo {
  position: relative;
  margin-top: 32px;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 1px 1px, #DCE3EC 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, #FCFDFF 0%, #F7F9FC 100%);
  overflow: hidden;
}

.topo-label {
  position: absolute;
  left: 20px;
  top: 16px;
  font-family: var(--mono);
  font-size: .73rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.topo-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
}
.topo-node small {
  display: block;
  font-weight: 500;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.topo-node--active { border-color: #A7F3D0; box-shadow: 0 0 0 4px rgba(16, 185, 129, .10), var(--shadow-sm); }
.topo-node--pending { border-style: dashed; background: rgba(255, 255, 255, .92); color: var(--muted); }

.topo-legend {
  position: absolute;
  right: 20px;
  bottom: 16px;
  display: flex;
  gap: 16px;
  font-size: .76rem;
  color: var(--muted);
}

/* ---------- Code blocks ---------- */

.code {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: #E9EEF5;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--muted);
  letter-spacing: .01em;
}

.code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .845rem;
  line-height: 1.65;
  color: #1E293B;
  tab-size: 2;
}

.code .c { color: #64748B; }
.code .k { color: #1D4ED8; }
.code .s { color: #047857; }

code.inline {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: .85em;
  color: var(--ink-soft);
}

/* ---------- Docs layout ---------- */

.docs-grid {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.docs-toc {
  position: sticky;
  top: 88px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.docs-toc h2 {
  margin: 0 0 10px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.docs-toc ol { margin: 0; padding-left: 1.05rem; font-size: .875rem; }
.docs-toc li { margin-bottom: .5em; }
.docs-toc a { color: var(--ink-soft); }
.docs-toc a:hover { color: var(--brand); }

.docs-body h2 { margin-top: 2.2em; padding-top: .2em; }
.docs-body h2:first-child { margin-top: 0; }
.docs-body h3 { margin-top: 1.8em; color: var(--ink); }
.docs-body p, .docs-body li { color: var(--ink-soft); }

.step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  margin-top: 2px;
}
.step h3 { margin: 4px 0 .4em; }

.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: .92rem;
  color: var(--ink-soft);
}
.callout--ok { border-left-color: var(--ok); background: var(--ok-tint); }
.callout strong { color: var(--ink); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px;
  align-items: start;
}

.form-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
  display: block;
  margin-bottom: 6px;
  font-size: .855rem;
  font-weight: 600;
  color: var(--ink);
}
label .req { color: var(--brand); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: .93rem;
  line-height: 1.45;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #94A3B8; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
textarea { resize: vertical; min-height: 120px; }

.hint { margin-top: 6px; font-size: .79rem; color: var(--muted); }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--ink-soft);
  font-weight: 400;
}
.check input { margin-top: 3px; flex: 0 0 auto; }

.contact-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.contact-card h3 { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

.detail { margin-bottom: 18px; }
.detail dt { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.detail dd { margin: 0; font-size: .93rem; color: var(--ink); }
.detail dd a { color: var(--brand); }

/* ---------- CTA band ---------- */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(700px 220px at 88% 0%, #E7EEFF 0%, rgba(231, 238, 255, 0) 70%),
    var(--surface);
}
.cta-band h2 { margin-bottom: .25em; font-size: clamp(1.3rem, 2.1vw, 1.7rem); }
.cta-band p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 56px 0 28px;
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
}

.footer-brand p { color: var(--muted); font-size: .875rem; max-width: 34ch; margin-top: 14px; }

.footer-col h2 {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--muted); font-size: .875rem; }
.footer-col a:hover { color: var(--brand); }

address {
  font-style: normal;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.7;
}
address a { color: var(--ink-soft); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { color: var(--muted); }

/* ---------- Error pages ---------- */

.error-shell {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: calc(100vh - 320px);
  padding: 80px 0;
}
.error-code {
  font-family: var(--mono);
  font-size: clamp(5rem, 16vw, 9.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--ink);
  margin: 0 0 8px;
  background: linear-gradient(180deg, #0F172A 0%, #94A3B8 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-shell h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
.error-shell p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.error-shell .error-hint {
  margin: 34px auto 0;
  max-width: 60ch;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* ---------- Utilities ---------- */

.stack-lg > * + * { margin-top: 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: .93rem;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .docs-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .docs-toc { position: static; }
  .topo { min-height: 340px; }
}

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; gap: 10px 16px; padding-block: 12px; }
  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-bottom: 2px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  .header-cta { margin-left: auto; }
  .hero { padding: 52px 0 44px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 26px; }
}

@media (max-width: 620px) {
  .site-nav {
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 2px;
  }
  .nav-link { font-size: .86rem; padding: 6px 9px; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 22px; }
  .topo {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 52px 16px 18px;
  }
  .topo-node { position: static; font-size: .78rem; padding: 8px 11px; }
  .topo-legend { position: static; flex-wrap: wrap; margin-top: 4px; }
  h1 { font-size: clamp(1.7rem, 7.4vw, 2.4rem); }
  .hero h1 { font-size: clamp(1.65rem, 7vw, 2.1rem); }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .cta-band { display: none; }
  body { color: #000; }
}
