:root {
  --ink: #111214;
  --ink-2: #16181c;
  --ink-3: #1d2025;
  --line: #2a2e35;
  --line-strong: #3a3f48;
  --text: #f1f3f5;
  --muted: #c9ced6;
  --dim: #8f97a3;
  --red: #cc0a2f;
  --red-hi: #e3173f;
  --ok: #3fb37f;
  --warn: #e0a43a;
  --bad: #e5484d;
  --focus: #88c0ff;
  --radius-sm: 6px;
  --radius: 10px;
  --bs-body-bg: var(--ink);
  --bs-body-color: var(--text);
  --bs-border-color: var(--line);
  --bs-body-font-family: "Inter", system-ui, sans-serif;
}
html, body { background: var(--ink); color: var(--text); }
body { font-family: "Inter", system-ui, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--red); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; color: #fff; }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.12; margin-bottom: .6rem; }
h2 { font-size: 1.45rem; margin-top: 2.6rem; margin-bottom: .8rem; }
h3 { font-size: 1.1rem; margin-top: 1.6rem; margin-bottom: .4rem; }
p, li { color: var(--muted); }
.prose { max-width: 70ch; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.text-muted-2 { color: var(--dim) !important; }
mark.confirm { background: rgba(224,164,58,.16); color: var(--warn); border: 1px dashed rgba(224,164,58,.55); border-radius: 4px; padding: 0 .3em; white-space: nowrap; font-size: .92em; }

/* shell */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink-2); border-right: 1px solid var(--line); padding: 1.4rem 1.1rem; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; font-weight: 700; font-size: .92rem; line-height: 1.15; }
.brand img { width: 64px; height: auto; margin: -10px -6px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 2rem; flex: 1; }
.sidebar-nav > a { display: block; padding: .55rem .75rem; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 500; border-left: 2px solid transparent; }
.sidebar-nav > a:hover { background: var(--ink-3); color: #fff; }
.sidebar-nav > a.active { background: var(--ink-3); color: #fff; border-left-color: var(--red); }
.sidebar-nav .nav-group { margin: 1.3rem .75rem .35rem; color: var(--dim); font-size: .82rem; font-weight: 600; }
.sidebar-nav .nav-cta { margin-top: 1rem; border: 1px solid var(--red); text-align: center; color: #fff; }
.sidebar-nav .nav-cta:hover, .sidebar-nav .nav-cta.active { background: var(--red); border-left-color: var(--red); }
.sidebar-foot { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.prepared { font-size: .86rem; color: var(--dim); margin-bottom: .4rem; }
.prepared strong { color: var(--text); font-weight: 600; }
.btn-link-quiet { background: none; border: 0; padding: 0; color: var(--dim); font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; }
.btn-link-quiet:hover { color: #fff; }
.nav-toggle { background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: var(--radius-sm); padding: .35rem .7rem; font-size: .9rem; }
.main { padding: 2.6rem clamp(16px, 4vw, 3.5rem) 4rem; min-width: 0; }

@media (max-width: 991.98px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; height: auto; z-index: 20; padding: .8rem 16px; }
  .sidebar-nav { display: none; margin-top: .8rem; }
  .sidebar-nav.is-open { display: flex; }
  .main { padding: 1.6rem 16px 3rem; }
}

/* buttons & forms */
.btn-brand { background: var(--red); color: #fff; border: 1px solid var(--red); font-weight: 600; }
.btn-brand:hover, .btn-brand:focus { background: var(--red-hi); color: #fff; border-color: var(--red-hi); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--muted); color: #fff; }
.form-control, .form-select { background: var(--ink); border-color: var(--line-strong); color: var(--text); }
.form-control:focus, .form-select:focus { background: var(--ink); color: var(--text); border-color: var(--focus); box-shadow: none; }
.form-label { color: var(--muted); font-weight: 500; font-size: .92rem; }

/* login */
.login-wrap { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 100vh; }
.login-art { background-size: cover; background-position: center; position: relative; }
.login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,18,20,.15), rgba(17,18,20,.85)); }
.login-art-copy { position: absolute; left: 3rem; right: 3rem; bottom: 3rem; z-index: 1; }
.login-art-copy p { color: #fff; font-size: 1.35rem; font-weight: 600; line-height: 1.35; max-width: 30ch; }
.login-panel { padding: 4rem clamp(16px, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; max-width: 520px; }
.login-logo { width: 110px; margin: -20px 0 0 -14px; }
.login-panel form { flex: 0 0 auto; }
.login-note { margin-top: 1.4rem; margin-bottom: 0; font-size: .85rem; color: var(--dim); }
.login-note + .login-note { margin-top: .4rem; }
@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; } .login-art { min-height: 180px; } .login-art-copy { left: 16px; right: 16px; bottom: 1rem; } .login-art-copy p { font-size: 1.05rem; } }

/* panels & tables */
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--line); }
.table th { color: var(--dim); font-weight: 600; font-size: .85rem; }
.table-wrap { overflow-x: auto; }
.badge-soft { display: inline-block; padding: .15em .55em; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); }
.badge-ok { color: var(--ok); border-color: rgba(63,179,127,.5); }
.badge-warn { color: var(--warn); border-color: rgba(224,164,58,.5); }
.badge-off { color: var(--dim); }
.alert { border-radius: var(--radius-sm); }
.temp-password { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.3rem; background: var(--ink); border: 1px dashed var(--line-strong); padding: .6rem .9rem; border-radius: var(--radius-sm); display: inline-block; user-select: all; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* site editor */
[x-cloak] { display: none !important; }
.site-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 2rem; align-items: flex-end; margin-bottom: 1rem; }
.stepper { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 0; counter-reset: step; }
.stepper li { counter-increment: step; font-size: .8rem; color: var(--dim); padding: .35rem .7rem .35rem .4rem; border-top: 2px solid var(--line-strong); }
.stepper li span::before { content: counter(step); display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 1px solid var(--line-strong); margin-right: .35rem; font-size: .72rem; }
.stepper li.done { color: var(--muted); border-top-color: var(--muted); }
.stepper li.current { color: #fff; font-weight: 600; border-top-color: var(--red); }
.stepper li.current span::before { background: var(--red); border-color: var(--red); color: #fff; }
.sim-note { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--warn); background: rgba(224,164,58,.07); padding: .6rem .9rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; max-width: 100ch; }
.sim-note strong { color: var(--warn); }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.4rem; align-items: start; }
@media (max-width: 1199.98px) { .editor-grid { grid-template-columns: 1fr; } }
.side-col { display: flex; flex-direction: column; gap: 1rem; }
.plan-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; align-items: center; }
.add-group, .view-group { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--ink-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: .2rem .65rem; font-size: .8rem; }
.chip:hover { border-color: var(--muted); }
.plan-scroll { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #0c1a2b; max-height: 75vh; }
.plan { position: relative; min-width: 100%; touch-action: none; user-select: none; }
.plan-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9); mix-blend-mode: screen; opacity: .85; pointer-events: none; }
.plan-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); }
.zone { position: absolute; border: 1px dashed rgba(136,192,255,.55); background: rgba(136,192,255,.05); border-radius: 3px; cursor: move; }
.zone.sel { border-style: solid; border-color: var(--focus); background: rgba(136,192,255,.1); }
.zone-label { position: absolute; left: 4px; top: 2px; font-size: clamp(9px, .75vw, 12px); color: #bcd9ff; font-weight: 600; white-space: nowrap; pointer-events: none; }
.zone-handle { position: absolute; right: -5px; bottom: -5px; width: 12px; height: 12px; border-radius: 2px; background: var(--focus); cursor: nwse-resize; opacity: 0; }
.zone.sel .zone-handle, .zone:hover .zone-handle { opacity: 1; }
.coverage { position: absolute; width: 9%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(63,179,127,.42) 0%, rgba(63,179,127,.18) 45%, rgba(63,179,127,0) 70%); pointer-events: none; }
.coverage.ap_outdoor { width: 16%; background: radial-gradient(circle, rgba(88,166,255,.38) 0%, rgba(88,166,255,.14) 45%, rgba(88,166,255,0) 70%); }
.marker { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font-size: 9px; font-weight: 800; letter-spacing: -.02em; color: #0c1a2b; cursor: grab; padding: 0; box-shadow: 0 0 0 3px rgba(12,26,43,.7); }
.marker:active { cursor: grabbing; }
.marker.sel { box-shadow: 0 0 0 3px var(--focus); z-index: 3; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.t-ap_indoor { background: #3fb37f; }
.t-ap_outdoor { background: #58a6ff; }
.t-cow, .t-skid { background: var(--red); color: #fff; }
.t-backhaul { background: var(--warn); }
.t-power { background: #c9e265; }
.t-switch { background: #b48cff; }
.marker.t-switch { border-radius: 4px; }
.t-zone { background: transparent; border: 1px dashed var(--focus); border-radius: 2px; }
.t-network { background: var(--muted); }
.cow.marker, .marker.t-cow, .marker.t-skid { border-radius: 4px; width: 30px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: 0; margin: .7rem 0 .3rem; font-size: .8rem; color: var(--dim); }
.legend li { display: flex; align-items: center; gap: .35rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 0; }
.stats dt { font-size: .76rem; color: var(--dim); font-weight: 500; }
.stats dd { margin: 0; font-size: 1.15rem; font-weight: 700; color: #fff; line-height: 1.2; }
.stats dd small { display: block; font-size: .74rem; font-weight: 400; color: var(--dim); }
.alerts { list-style: none; padding: 0; margin: 0; font-size: .86rem; }
.alerts li { padding: .3rem 0 .3rem 1rem; position: relative; color: var(--warn); }
.alerts li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.alerts li.ok { color: var(--ok); }
.alerts li.ok::before { background: var(--ok); }
.net-list, .changes { list-style: none; padding: 0; margin: .6rem 0 0; }
.net { width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text); padding: .35rem .5rem; }
.net:hover, .net.sel { border-color: var(--line-strong); background: var(--ink-3); }
.net span { display: block; font-size: .8rem; color: var(--dim); }
.changes li { font-size: .84rem; padding: .25rem 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.changes li:last-child { border-bottom: 0; }
.site-card:hover { border-color: var(--line-strong); }

/* lead pages */
.home-intro { max-width: 70ch; margin-bottom: 2.4rem; }
.home-intro h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; max-width: 1100px; }
.home-card { display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; text-decoration: none; color: var(--text); }
.home-card:hover { border-color: var(--muted); color: var(--text); }
.home-card h2 { font-size: 1.1rem; margin: 0 0 .4rem; }
.home-card p { font-size: .92rem; flex: 1; }
.home-card.primary { border-color: var(--red); background: linear-gradient(160deg, rgba(204,10,47,.16), var(--ink-2) 60%); }
.card-link { font-size: .88rem; font-weight: 600; color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.how-it-runs { margin-top: 3rem; max-width: 1100px; }
.lifecycle { list-style: none; counter-reset: lc; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.lifecycle li { counter-increment: lc; border-top: 2px solid var(--line-strong); padding-top: .8rem; }
.lifecycle li:first-child { border-top-color: var(--red); }
.lifecycle strong { display: block; color: #fff; }
.lifecycle strong::before { content: counter(lc) ". "; color: var(--dim); font-weight: 500; }
.lifecycle span { font-size: .9rem; color: var(--muted); }
.doc-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 2.5rem; }
.doc-toc { position: sticky; top: 2rem; align-self: start; display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; border-left: 1px solid var(--line); }
.doc-toc a { color: var(--dim); text-decoration: none; padding: .25rem .8rem; margin-left: -1px; border-left: 1px solid transparent; }
.doc-toc a:hover { color: #fff; border-left-color: var(--red); }
@media (max-width: 991.98px) { .doc-layout { grid-template-columns: 1fr; } .doc-toc { display: none; } }
section[id] { scroll-margin-top: 1.5rem; }
.usecases { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: .2rem 1.4rem; }
.usecases dt { color: #fff; font-weight: 600; padding-top: .55rem; }
.usecases dd { color: var(--muted); margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .usecases { grid-template-columns: 1fr; } .usecases dt { padding-top: .8rem; } .usecases dd { padding-top: .1rem; } }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 2rem; }
.spec-grid ul { padding-left: 1.1rem; font-size: .92rem; }
.tiers-table { min-width: 720px; }
.tiers-table thead th { vertical-align: bottom; font-size: 1rem; color: #fff; }
.tiers-table thead th span { display: block; font-size: .8rem; color: var(--dim); font-weight: 500; }
.tiers-table tbody th { color: var(--dim); font-weight: 500; width: 18%; }
.tiers-table td { color: var(--muted); font-size: .93rem; }
.tiers-table .featured { background: rgba(204,10,47,.07); }
.tiers-table thead .featured { border-top: 2px solid var(--red); }
.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: #fff; }
.faq details p { margin: .6rem 0 0; }
.proposal-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; max-width: 900px; margin-top: 2.5rem; }
.prose-wide { max-width: 900px; }
.proposal h3 { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.proposal img { max-width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
.proposal .callout { border-left: 3px solid var(--red); padding: .4rem 0 .4rem 1rem; margin: 1rem 0; }
.proposal table { width: 100%; margin: 1rem 0; font-size: .92rem; }
.proposal th, .proposal td { border-bottom: 1px solid var(--line); padding: .45rem .5rem; text-align: left; }

.danger-zone { border-color: rgba(229,72,77,.45); }

/* pricing */
.sub-option { border-left: 2px solid var(--red); padding: .2rem 0 .2rem 1.1rem; margin: 1rem 0 1.4rem; }
.sub-option h3 { margin-top: 0; }
.rate-block { margin-top: 2.2rem; }
.rate-block h2 { margin-top: 0; }
.rate-hero { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin: .2rem 0 .6rem; }
.rate-num { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.rate-unit { color: var(--dim); }
.rate-table { max-width: 520px; }
.rate-table td:last-child { font-weight: 700; color: #fff; }
.rate-list { display: grid; grid-template-columns: minmax(170px, 240px) 1fr; gap: 0 1.4rem; margin: 0; }
.rate-list dt { color: var(--muted); font-weight: 500; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.rate-list dd { margin: 0; padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.rate-list dd strong { display: block; color: #fff; }
@media (max-width: 640px) { .rate-list { grid-template-columns: 1fr; } .rate-list dt { border-bottom: 0; padding-bottom: 0; } }
.addon-note { display: inline-block; font-size: .85rem; color: var(--warn); border: 1px solid rgba(224,164,58,.45); border-radius: 999px; padding: .1rem .7rem; }
