/* ==========================================================================
   Vantage marketing site design tokens
   Palette is anchored on the logo navy (#0B2A58). The accent IS the brand
   navy, lifting to a readable blue on dark grounds; status colours (up/down/
   pending) are semantic and deliberately never reused as the accent.
   ========================================================================== */

:root {
    color-scheme: light dark;

    --ground: #eaedf3;
    --panel: #ffffff;
    --panel-2: #f4f6fa;
    --ink: #0a1b33;
    --ink-2: #41556f;
    --ink-3: #6c7f96;
    --rule: #cdd6e2;
    --rule-soft: #e0e6ef;
    --accent: #0b2a58;
    --accent-ink: #ffffff;
    --up: #2f8a60;
    --down: #c6462f;
    --pend: #b0801f;
    --shadow: 0 1px 0 rgba(10, 27, 51, 0.05), 0 18px 40px -26px rgba(10, 27, 51, 0.45);
    --logo: #0b2a58;

    --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

    --s--1: clamp(0.76rem, 0.74rem + 0.1vw, 0.81rem);
    --s-0: clamp(1rem, 0.97rem + 0.14vw, 1.05rem);
    --s-1: clamp(1.16rem, 1.09rem + 0.32vw, 1.36rem);
    --s-2: clamp(1.5rem, 1.34rem + 0.74vw, 2rem);
    --s-3: clamp(2rem, 1.66rem + 1.6vw, 3.1rem);
    --s-4: clamp(2.6rem, 1.9rem + 3.3vw, 4.9rem);

    --rail: 1200px;
}

/* Dark tokens are defined once and applied through three selectors: the OS
   preference, and both explicit values of data-theme so the in-page toggle
   wins in either direction. */
@media (prefers-color-scheme: dark) {
    :root {
        --ground: #071628;
        --panel: #0d2138;
        --panel-2: #102842;
        --ink: #e4ecf6;
        --ink-2: #9fb3ca;
        --ink-3: #71879f;
        --rule: #1e3855;
        --rule-soft: #172c44;
        --accent: #5b9be8;
        --accent-ink: #04101f;
        --up: #4fb484;
        --down: #e2705a;
        --pend: #d6a63f;
        --shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 20px 44px -26px rgba(0, 0, 0, 0.85);
        --logo: #7fb2f0;
    }
}

:root[data-theme="dark"] {
    --ground: #071628;
    --panel: #0d2138;
    --panel-2: #102842;
    --ink: #e4ecf6;
    --ink-2: #9fb3ca;
    --ink-3: #71879f;
    --rule: #1e3855;
    --rule-soft: #172c44;
    --accent: #5b9be8;
    --accent-ink: #04101f;
    --up: #4fb484;
    --down: #e2705a;
    --pend: #d6a63f;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 20px 44px -26px rgba(0, 0, 0, 0.85);
    --logo: #7fb2f0;
}

:root[data-theme="light"] {
    --ground: #eaedf3;
    --panel: #ffffff;
    --panel-2: #f4f6fa;
    --ink: #0a1b33;
    --ink-2: #41556f;
    --ink-3: #6c7f96;
    --rule: #cdd6e2;
    --rule-soft: #e0e6ef;
    --accent: #0b2a58;
    --accent-ink: #ffffff;
    --up: #2f8a60;
    --down: #c6462f;
    --pend: #b0801f;
    --shadow: 0 1px 0 rgba(10, 27, 51, 0.05), 0 18px 40px -26px rgba(10, 27, 51, 0.45);
    --logo: #0b2a58;
}

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

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

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--sans);
    font-size: var(--s-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

code {
    font-family: var(--mono);
    font-size: 0.92em;
}

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

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--panel);
    color: var(--ink);
    padding: 0.6rem 1rem;
    border: 1px solid var(--rule);
    z-index: 100;
}

.skip:focus {
    left: 1rem;
    top: 0.6rem;
}

/* ---------- layout primitives ---------- */

.rail {
    width: min(100% - 2.5rem, var(--rail));
    margin-inline: auto;
}

.tag {
    font-family: var(--mono);
    font-size: var(--s--1);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.lede {
    max-width: 60ch;
    color: var(--ink-2);
    font-size: var(--s-1);
    line-height: 1.45;
}

.prose {
    max-width: 65ch;
    color: var(--ink-2);
}

.prose p + p {
    margin-top: 1rem;
}

.band {
    padding-block: clamp(3.2rem, 6.5vw, 6rem);
    border-top: 1px solid var(--rule-soft);
}

.band--open {
    border-top: none;
}

.band--flush {
    padding-bottom: clamp(2.6rem, 4vw, 3.5rem);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
    gap: clamp(2rem, 4vw, 3.4rem);
    align-items: start;
}

.split--even {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

/* minmax(0, …) rather than a bare 1fr: a plain fr track is min-content floored,
   so one unshrinkable child (a form control, a long mono string) widens the
   column past the rail and scrolls the whole page sideways. */
@media (max-width: 840px) {
    .split,
    .split--even {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--ground) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule-soft);
}

.nav__in {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    height: 66px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    margin-right: auto;
    color: var(--ink);
}

.brand svg {
    height: 26px;
    width: auto;
    display: block;
    color: var(--logo);
}

.brand b {
    font-weight: 800;
    letter-spacing: -0.035em;
    font-size: 1.14rem;
}

.nav__links {
    display: flex;
    gap: 0.15rem;
}

.nav__links a {
    text-decoration: none;
    color: var(--ink-2);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.38rem 0.68rem;
    border-radius: 4px;
}

.nav__links a:hover {
    color: var(--ink);
    background: var(--rule-soft);
}

.nav__links a[aria-current="page"] {
    color: var(--ink);
    font-weight: 650;
}

.nav__menu {
    display: none;
}

@media (max-width: 900px) {
    .nav__links {
        display: none;
    }

    .nav__menu {
        display: inline-flex;
    }
}

.drawer {
    border-bottom: 1px solid var(--rule-soft);
    background: var(--panel);
}

.drawer nav {
    display: flex;
    flex-direction: column;
    padding-block: 0.5rem 1rem;
}

/* :not(.btn) matters. Two class selectors outrank .btn--solid's one, so without
   it the drawer's call to action takes --ink-2 on the accent fill and the row
   rules meant for the links. */
.drawer a:not(.btn) {
    text-decoration: none;
    color: var(--ink-2);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--rule-soft);
    font-size: 0.98rem;
}

.drawer a[aria-current="page"] {
    color: var(--ink);
    font-weight: 650;
}

.drawer .btn {
    margin-top: 1rem;
    justify-content: center;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.94rem;
    padding: 0.6rem 1.05rem;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform 0.1s ease,
        filter 0.15s ease,
        border-color 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--solid {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}

.btn--solid:hover {
    filter: brightness(1.12);
}

.btn--line {
    border-color: var(--rule);
    background: var(--panel);
    color: var(--ink);
}

.btn--line:hover {
    border-color: var(--ink-3);
}

.btn--sm {
    padding: 0.4rem 0.78rem;
    font-size: 0.86rem;
}

.icon-btn {
    background: none;
    border: 1px solid var(--rule);
    color: var(--ink-3);
    border-radius: 4px;
    padding: 0.36rem 0.5rem;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.icon-btn:hover {
    color: var(--ink);
    border-color: var(--ink-3);
}

/* ---------- hero ---------- */

/* The hero artwork is committed to a dark navy field, so the band stays dark in
   both themes rather than fighting it. Tokens are redefined locally so every
   child renders against the dark ground; everything below the band returns to
   the page theme. */
.heroband {
    --ground: #071628;
    --panel: #0d2138;
    --panel-2: #102842;
    --ink: #e4ecf6;
    --ink-2: #9fb3ca;
    --ink-3: #71879f;
    --rule: #1e3855;
    --rule-soft: #172c44;
    --accent: #5b9be8;
    --accent-ink: #04101f;

    position: relative;
    background-color: #071628;
    color: var(--ink);
    overflow: hidden;
}

/* Decorative, so it lives in CSS rather than the document. image-set lets the
   browser take AVIF and fall back on its own. */
.heroband::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: image-set(url("/images/hero_bg.avif") type("image/avif"), url("/images/hero_bg.webp") type("image/webp"));
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    z-index: 0;
}

/* Fades the artwork out under the text so the headline never sits on top of a
   server rack. */
.heroband::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, #071628 0%, #071628 26%, rgba(7, 22, 40, 0.86) 42%, rgba(7, 22, 40, 0.35) 62%, rgba(7, 22, 40, 0.1) 100%);
    z-index: 0;
}

.heroband > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .heroband::before {
        background-position: 72% center;
        opacity: 0.4;
    }

    .heroband::after {
        background: linear-gradient(180deg, rgba(7, 22, 40, 0.72) 0%, rgba(7, 22, 40, 0.94) 70%, #071628 100%);
    }
}

.hero {
    padding-block: clamp(3.4rem, 7vw, 6rem) clamp(2.6rem, 5vw, 4.2rem);
}

.hero h1 {
    font-size: var(--s-4);
    max-width: 15ch;
    margin-block: 1rem 0.9rem;
}

.hero__acts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 1.6rem;
}

.hero__foot {
    font-family: var(--mono);
    font-size: var(--s--1);
    color: var(--ink-3);
    margin-top: 1rem;
}

/* ---------- instrument band (the signature element) ---------- */

/* The band already provides the breathing room above the panel. */
.heroband + .instrument {
    margin-top: 0;
    border-top: none;
}

.instrument {
    margin-top: clamp(2.2rem, 4vw, 3.4rem);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--panel);
}

.instrument__bar {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--rule-soft);
    font-family: var(--mono);
    font-size: 0.73rem;
    letter-spacing: 0.06em;
    color: var(--ink-3);
}

.instrument__bar b {
    color: var(--ink);
    font-weight: 600;
}

.instrument__clock {
    margin-left: auto;
}

.panes {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    border-top: 1px solid var(--rule-soft);
}

@media (max-width: 900px) {
    .panes {
        grid-template-columns: 1fr;
    }
}

.pane {
    padding: 1.1rem 0 1.3rem;
    min-width: 0;
}

.pane + .pane {
    border-left: 1px solid var(--rule-soft);
    padding-left: 1.6rem;
}

@media (max-width: 900px) {
    .pane + .pane {
        border-left: none;
        border-top: 1px solid var(--rule-soft);
        padding-left: 0;
    }
}

.pane__h {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pane__h span {
    margin-left: auto;
}

.frow {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.52rem 0;
    border-bottom: 1px dotted var(--rule-soft);
    font-family: var(--mono);
    font-size: 0.79rem;
}

.frow:last-child {
    border-bottom: none;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--up);
    justify-self: center;
    transition: background 0.4s ease;
}

.dot--down {
    background: var(--down);
}

.dot--pend {
    background: var(--pend);
}

.frow__host {
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.frow__sub {
    color: var(--ink-3);
    font-size: 0.71rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.chip {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.14rem 0.4rem;
    border-radius: 3px;
    border: 1px solid currentColor;
    white-space: nowrap;
}

.chip--up {
    color: var(--up);
}

.chip--down {
    color: var(--down);
}

.chip--pend {
    color: var(--pend);
}

.stream {
    font-family: var(--mono);
    font-size: 0.76rem;
    line-height: 1.75;
    color: var(--ink-2);
    background: var(--panel-2);
    border: 1px solid var(--rule-soft);
    border-radius: 4px;
    padding: 0.7rem 0.8rem;
    height: 172px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.stream div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream .t {
    color: var(--ink-3);
}

.stream .ok {
    color: var(--up);
}

.stream .er {
    color: var(--down);
}

.caret {
    display: inline-block;
    width: 0.5em;
    background: var(--accent);
    color: transparent;
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .caret {
        animation: none;
        opacity: 0.6;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}

/* ---------- capability grid ---------- */

.caps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 2rem 2.4rem;
    margin-top: 2.4rem;
}

.cap {
    border-top: 1px solid var(--rule);
    padding-top: 1rem;
}

.cap__k {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.7rem;
}

.cap h3 {
    font-size: var(--s-1);
    margin-bottom: 0.45rem;
}

.cap p {
    color: var(--ink-2);
    font-size: 0.94rem;
}

.cap ul {
    margin: 0.7rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--ink-3);
}

/* ---------- ordered flow ---------- */

.flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1px;
    background: var(--rule-soft);
    border: 1px solid var(--rule-soft);
    margin-top: 2.4rem;
}

.flow__c {
    background: var(--panel);
    padding: 1.3rem 1.2rem;
}

.flow__n {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--ink-3);
    display: block;
    margin-bottom: 0.6rem;
}

.flow__c h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    letter-spacing: -0.015em;
}

.flow__c p {
    font-size: 0.9rem;
    color: var(--ink-2);
}

/* ---------- code ---------- */

.code {
    font-family: var(--mono);
    font-size: 0.78rem;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 0.8rem 0.95rem;
    overflow-x: auto;
    white-space: pre;
    color: var(--ink-2);
    line-height: 1.7;
    margin: 0;
}

.code b {
    font-weight: 400;
    color: var(--accent);
}

.code i {
    font-style: normal;
    color: var(--ink-3);
}

/* ---------- keyed spec list ---------- */

.specs {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-top: 1.6rem;
}

.specs--flush {
    margin-top: 0;
}

.spec {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.1rem;
    align-items: start;
}

.spec__k {
    font-family: var(--mono);
    font-size: 0.69rem;
    letter-spacing: 0.11em;
    color: var(--accent);
    padding-top: 0.3rem;
    white-space: nowrap;
    min-width: 8ch;
}

.spec h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    letter-spacing: -0.015em;
}

.spec p {
    color: var(--ink-2);
    font-size: 0.93rem;
}

/* The key column costs a fixed 8ch or more, which on a phone leaves the prose
   in a strip barely wide enough to read. Below this width the key becomes a
   label above its own paragraph instead. */
@media (max-width: 560px) {
    .spec {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .spec__k {
        padding-top: 0;
        min-width: 0;
    }
}

/* ---------- pricing ---------- */

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-top: 2.6rem;
}

.plan {
    background: var(--panel);
    padding: 1.7rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan--pick {
    background: var(--panel-2);
    position: relative;
}

.plan--pick::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
}

.plan__n {
    font-weight: 750;
    font-size: 1.02rem;
}

.plan__p {
    font-size: var(--s-3);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.plan__p span {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink-3);
}

.plan__d {
    color: var(--ink-2);
    font-size: 0.9rem;
    min-height: 3.2em;
}

/* The term line under the headline price. A metered plan has a second and third
   number — the annual equivalent and the per-server rate — and they are
   qualifications of the headline rather than features, so they sit with it. */
.plan__t {
    font-size: 0.82rem;
    color: var(--ink-3);
    margin-top: -0.5rem;
}

.plan ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--ink-2);
}

.plan li {
    display: grid;
    grid-template-columns: 0.9rem 1fr;
    gap: 0.5rem;
}

.plan li::before {
    content: "·";
    color: var(--accent);
    font-family: var(--mono);
    font-weight: 700;
}

.plan .btn {
    justify-content: center;
    margin-top: auto;
}

.scroll {
    overflow-x: auto;
    margin-top: 2.4rem;
}

/* The comparison table is wider than a phone by design, and a table that scrolls
   with no scrollbar drawn looks like a table with two columns. Say so. */
.scroll__hint {
    display: none;
    font-family: var(--mono);
    font-size: var(--s--1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 2.4rem;
}

@media (max-width: 700px) {
    .scroll__hint {
        display: block;
    }

    .scroll__hint + .scroll {
        margin-top: 0.7rem;
    }
}

table.cmp {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 620px;
}

.cmp th,
.cmp td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rule-soft);
}

.cmp thead th {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.cmp td:not(:first-child) {
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}

.cmp tbody tr:hover {
    background: var(--panel-2);
}

/* ---------- forms ---------- */

.card {
    background: var(--panel);
    border: 1px solid var(--rule);
    padding: clamp(1.4rem, 3vw, 2rem);
    box-shadow: var(--shadow);
}

.card--cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;
    justify-content: space-between;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.field label {
    font-size: 0.84rem;
    font-weight: 600;
}

.field small {
    color: var(--ink-3);
    font-size: 0.79rem;
}

/* min-width: 0 is load-bearing on mobile. A bare <input> carries an intrinsic
   width of roughly 20 characters, and width: 100% does not lower it, so the
   control sets the min-content width of every ancestor and drags the page wider
   than the viewport. */
.field input,
.field select,
.field textarea {
    font: inherit;
    font-size: 0.94rem;
    color: var(--ink);
    background: var(--ground);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 0.6rem 0.72rem;
    width: 100%;
    min-width: 0;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.hostline {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--ink-3);
}

.hostline b {
    color: var(--accent);
    font-weight: 600;
}

.opts {
    display: grid;
    gap: 0.55rem;
}

.opt {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: start;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 0.75rem 0.85rem;
    cursor: pointer;
}

.opt:hover {
    border-color: var(--ink-3);
}

.opt input {
    accent-color: var(--accent);
    margin-top: 0.2rem;
}

.opt strong {
    font-size: 0.92rem;
    font-weight: 650;
    display: block;
}

.opt em {
    font-style: normal;
    color: var(--ink-3);
    font-size: 0.82rem;
}

.opt:has(input:checked) {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.form__note {
    color: var(--up);
}

.field__err {
    color: var(--down);
    font-size: 0.8rem;
}

/* A fieldset needs its browser defaults stripped before it lays out like the
   other .field blocks around it. */
.field--set {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.field--set legend {
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0;
    margin-bottom: 0.38rem;
}

/* ---------- contact channels ---------- */

.chan {
    border-top: 1px solid var(--rule);
    padding-top: 0.9rem;
    margin-top: 1.4rem;
}

.chan h3 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.chan p {
    font-size: 0.88rem;
    color: var(--ink-2);
}

.chan a {
    font-family: var(--mono);
    font-size: 0.83rem;
    color: var(--accent);
    text-decoration: none;
}

.chan a:hover {
    text-decoration: underline;
}

/* ---------- footer ---------- */

.foot {
    border-top: 1px solid var(--rule);
    padding-block: 2.2rem 3rem;
    margin-top: 1rem;
}

.foot__in {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;
}

.foot__in p {
    color: var(--ink-3);
    font-size: 0.84rem;
    margin-right: auto;
}

.foot__in a {
    color: var(--ink-3);
    font-size: 0.84rem;
    text-decoration: none;
}

.foot__in a:hover {
    color: var(--ink);
}

/* ---------- Topology diagram ---------- */

.topo {
    margin: 2rem 0 0;
    border: 1px solid var(--rule);
    border-radius: 10px;
    background: var(--panel-2);
    overflow: hidden;
}

.topo__head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--rule);
    background: var(--panel);
}

.topo__seg {
    display: inline-flex;
    border: 1px solid var(--rule);
    border-radius: 6px;
    overflow: hidden;
}

.topo__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    font: inherit;
    font-size: 0.85rem;
    padding: 0.42rem 0.85rem;
    cursor: pointer;
}

.topo__btn + .topo__btn {
    border-left: 1px solid var(--rule);
}

.topo__btn:hover {
    color: var(--ink);
}

.topo__btn.is-on {
    background: var(--accent);
    color: var(--accent-ink);
}

.topo__btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.topo__key {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.topo__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    display: inline-block;
}

.topo__dot--out {
    background: var(--up);
}

.topo__dot--in {
    background: var(--accent);
    margin-left: 0.8rem;
}

.topo__canvas {
    display: block;
    width: 100%;
    height: 380px;
}

.topo__note {
    margin: 0;
    padding: 0.8rem 0.95rem;
    border-top: 1px solid var(--rule);
    background: var(--panel);
    color: var(--ink-2);
    font-size: 0.88rem;
    max-width: 78ch;
}

@media (max-width: 660px) {
    .topo__canvas {
        height: 460px;
    }
}
