/*
 * netson.cloud site styles. Every value comes from tokens.css; this file holds
 * the layout and the block styles. Hand-written, no build step.
 *
 * Rules of the house: red is an accent only (link underlines, hover, one thin
 * rule, the focus ring), never a large fill. Transitions touch colour and
 * opacity only and stay at or under 150 ms. No shadows, gradients or animation.
 */

/* ---- Fonts: IBM Plex, self-hosted (OFL, see /fonts/OFL.txt), Latin subset ---- */

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/IBMPlexSans-Medium.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/IBMPlexSans-Bold.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2");
}

/* ---- Base ---- */

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

html {
    /* In-page targets land below the sticky header. */
    scroll-padding-top: 5.5rem;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    --section-gap: clamp(var(--space-7), 3rem + 4vw, var(--space-8));

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    font-weight: var(--weight-regular);
    line-height: var(--leading-body);
    font-kerning: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote,
pre {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tight);
    text-wrap: balance;
}

h1 {
    font-size: var(--step-4);
    line-height: var(--leading-tight);
}

h2 {
    font-size: var(--step-3);
    line-height: 1.2;
}

h3 {
    font-size: var(--step-1);
    letter-spacing: -0.01em;
}

h4 {
    font-size: var(--step-0);
    letter-spacing: 0;
}

p {
    text-wrap: pretty;
}

img,
svg,
picture {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: color var(--duration) var(--ease), text-decoration-color var(--duration) var(--ease);
}

a:hover {
    color: var(--color-accent-text);
}

code,
kbd,
samp,
pre {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

strong,
b {
    font-weight: var(--weight-semibold);
}

hr {
    height: 0;
    margin: var(--space-6) 0;
    border: 0;
    border-top: var(--hairline) solid var(--color-line);
}

.num {
    font-variant-numeric: tabular-nums;
}

::selection {
    background: var(--color-accent);
    color: var(--color-on-accent);
}

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

/* ---- Skip link ---- */

.skip-link {
    position: absolute;
    z-index: 30;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius);
    background: var(--color-ink);
    color: var(--color-on-ink);
    font-size: var(--step--1);
    font-weight: var(--weight-medium);
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
}

.skip-link:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Header and navigation ---- */

/* Sticky, solid and always ruled: no scroll listener needed. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--color-bg);
    border-bottom: var(--hairline) solid var(--color-line);
}

.site-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-6);
    width: 100%;
    max-width: calc(var(--content-max) + 2 * var(--gutter));
    min-height: 4.5rem;
    margin-inline: auto;
    padding: var(--space-3) var(--gutter);
}

.brand {
    display: block;
    border-radius: 3px;
}

.brand img {
    width: auto;
    height: 28px;
}

.site-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: var(--space-5);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin: 0 auto 0 0;
    padding: 0;
    list-style: none;
}

.nav-menu > li > a,
.nav-products > summary,
.lang-switch {
    display: block;
    padding-block: var(--space-2);
    color: var(--color-ink-soft);
    font-size: var(--step--1);
    font-weight: var(--weight-medium);
    letter-spacing: 0.005em;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: var(--rule);
    text-underline-offset: 0.6em;
    transition: color var(--duration) var(--ease), text-decoration-color var(--duration) var(--ease);
}

.nav-menu > li > a:hover,
.nav-products > summary:hover,
.nav-products[open] > summary,
.lang-switch:hover {
    color: var(--color-ink);
}

.nav-menu > li > a:hover,
.lang-switch:hover {
    text-decoration-color: var(--color-line-strong);
}

.nav-menu > li > a[aria-current],
.is-current > .nav-products > summary {
    color: var(--color-ink);
    text-decoration-color: var(--color-accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin-left: auto;
}

/* The header's quote button (accent, see .button-primary): compact, no arrow. */
.button.nav-cta {
    padding: 0.6em 1.05em;
    font-size: var(--step--1);
    white-space: nowrap;
}

.button.nav-cta::after {
    content: none;
}

/* ---- Products menu: <details>, so it works without JavaScript ---- */

.nav-products {
    position: relative;
}

.nav-products > summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.nav-products > summary::-webkit-details-marker {
    display: none;
}

/* Chevron, drawn from two borders; flips when open (no transition). */
.nav-products > summary::after {
    content: "";
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    margin-left: 0.5em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    vertical-align: 0.25em;
    transform: rotate(45deg);
}

.nav-products[open] > summary::after {
    vertical-align: 0.05em;
    transform: rotate(-135deg);
}

.nav-products-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-1);
    margin: 0;
    padding: var(--space-2);
    list-style: none;
}

/* Side-by-side boxes align their content to the top (operator 2026-11-20),
   so labels line up across the menu whatever the text length. */
.nav-product {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    height: 100%;
    padding: var(--space-3);
    border-radius: var(--radius);
    color: var(--color-ink);
    text-decoration: none;
    transition: background-color var(--duration) var(--ease);
}

.nav-product:hover,
.nav-product[aria-current] {
    background: var(--color-band);
}

.nav-product .icon-tile {
    width: 44px;
    height: 44px;
}

.nav-product-body {
    display: grid;
    gap: 0.15em;
    min-width: 0;
}

.nav-product-label {
    font-size: var(--step--1);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
}

.nav-product[aria-current] .nav-product-label {
    color: var(--color-accent-text);
}

.nav-product-text {
    color: var(--color-ink-soft);
    font-size: var(--step--1);
    line-height: var(--leading-snug);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    padding: var(--space-2) var(--space-4);
    border: var(--hairline) solid var(--color-line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--color-ink);
    font: inherit;
    font-size: var(--step--1);
    font-weight: var(--weight-medium);
    line-height: 1.2;
    cursor: pointer;
    transition: border-color var(--duration) var(--ease);
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
    border-color: var(--color-line-strong);
}

.menu-toggle[hidden] {
    display: none;
}

/*
 * Wide: the panel floats under its summary. The desktop row (five top links,
 * the More menu, language switch and quote button) needs about 66rem, so it
 * starts at 72rem; below that the menu button takes over. The More menu is the
 * last item, so its panel hangs from the summary's right edge.
 */
@media (min-width: 72rem) {
    .nav-products-panel {
        position: absolute;
        top: calc(100% + var(--space-4));
        right: calc(-1 * var(--space-4));
        width: 42rem;
        border: var(--hairline) solid var(--color-line);
        border-radius: calc(var(--radius) * 1.5);
        background: var(--color-bg);
        box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.22), 0 2px 6px rgb(0 0 0 / 0.04);
    }
}

/* Narrow: the menu button collapses the navigation; More expands inline. */
@media (max-width: 71.99rem) {
    .menu-toggle:not([hidden]) {
        display: inline-block;
    }

    /* Without the menu button the stacked navigation is always shown: too tall to pin. */
    html:not(.has-menu-toggle) .site-header {
        position: static;
    }

    .site-nav {
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - 4.5rem);
        overflow-y: auto;
        padding-bottom: var(--space-4);
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
    }

    .nav-menu > li > a,
    .nav-products > summary,
    .lang-switch {
        padding-block: var(--space-3);
        border-top: var(--hairline) solid var(--color-line);
        font-size: var(--step-0);
        text-underline-offset: 0.35em;
    }

    .nav-products > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-products > summary::after {
        margin-right: var(--space-2);
        vertical-align: baseline;
    }

    .nav-products[open] > summary::after {
        vertical-align: baseline;
    }

    .is-current > .nav-products > summary {
        text-decoration: none;
    }

    .nav-products-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 0 0 var(--space-3);
    }

    .nav-product {
        padding: var(--space-2) var(--space-3);
    }

    .nav-product .icon-tile {
        width: 40px;
        height: 40px;
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
    }

    .button.nav-cta {
        justify-content: center;
        margin-top: var(--space-3);
        padding-block: 0.8em;
        font-size: var(--step-0);
    }

    .has-menu-toggle .menu-toggle[aria-expanded="false"] + .site-nav {
        display: none;
    }
}

/* ---- Page grid: full-bleed bands, each holding the content-width grid ---- */

main {
    flex: 1 0 auto;
    width: 100%;
}

.band {
    padding-block: var(--section-gap);
}

.band:first-child {
    padding-top: var(--space-7);
}

/* Two bands of the same tone in a row read as one section. */
.band-plain + .band-plain,
.band-tint + .band-tint,
.band-accent + .band-accent {
    padding-top: 0;
}

.band-tint {
    background: var(--color-band);
}

.band-accent {
    background: var(--color-band-accent);
}

/* Quiet surfaces would vanish on a tinted band: lift them to the page ground. */
.band-tint,
.band-accent {
    --color-surface: var(--color-bg);
}

/* The logo tile stays light in dark mode (the marks are drawn in brand dark). */
@media not all and (prefers-color-scheme: dark) {
    .band-tint,
    .band-accent {
        --color-logo-tile: var(--color-bg);
    }
}

.band-inner {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
    align-content: start;
    column-gap: var(--space-5);
    width: 100%;
    max-width: calc(var(--content-max) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.band-inner > * {
    grid-column: 1 / -1;
    min-width: 0;
}

.band-inner > * + * {
    margin-top: var(--section-gap);
}

/* Prose introduces what follows: a block after it sits closer, and closest
   when the prose ends in a heading (the heading belongs to the next block). */
.band-inner > .prose + * {
    margin-top: var(--space-6);
}

.band-inner > .prose:has(> :last-child:is(h1, h2, h3, h4)) + * {
    margin-top: var(--space-5);
}

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

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.8em 1.3em;
    border-radius: var(--radius);
    background: var(--color-ink);
    color: var(--color-on-ink);
    font-size: var(--step-0);
    font-weight: var(--weight-medium);
    line-height: 1.2;
    text-decoration: none;
    transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.button::after {
    content: "\2192";
    font-weight: var(--weight-regular);
}

.button:hover {
    background: var(--color-accent);
    color: var(--color-on-accent);
}

/* The accent button: one per view (the header's quote button). */
.button-primary {
    background: var(--color-accent);
    color: var(--color-on-accent);
}

.button-primary:hover {
    background: var(--color-ink);
    color: var(--color-on-ink);
}

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

.hero {
    padding-block: var(--space-6) var(--space-4);
}

.hero::before {
    content: "";
    display: block;
    width: var(--space-6);
    height: var(--rule);
    margin-bottom: var(--space-6);
    background: var(--color-accent);
}

.hero h1 {
    max-width: 20ch;
    font-size: var(--step-5);
    line-height: 1.05;
    letter-spacing: -0.028em;
}

.hero .lead {
    max-width: 44ch;
    margin-top: var(--space-5);
    color: var(--color-ink-soft);
    font-size: var(--step-1);
    line-height: 1.5;
}

/* The optional "from" price under the lead (hero field price_from). */
.hero .hero-price {
    margin-top: var(--space-4);
    color: var(--color-ink);
    font-size: var(--step-0);
}

.hero .actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.button-ghost {
    background: transparent;
    color: var(--color-ink);
    box-shadow: inset 0 0 0 1px var(--color-line-strong);
}

.button-ghost::after {
    content: none;
}

/* ---- error pages (layouts/error): the hero plus a help line and the status ---- */

.error-help {
    max-width: 44ch;
    margin-top: var(--space-5);
    color: var(--color-ink-soft);
}

.error-meta {
    color: var(--color-ink-faint);
    font-family: var(--font-mono);
    font-size: var(--step--1);
}

.eyebrow {
    color: var(--color-accent-text);
    font-size: var(--step--1);
    font-weight: var(--weight-medium);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow + h1 {
    margin-top: var(--space-3);
}

/* Home page: the hero is an opening screen, not a page header. */
.home .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(78vh, 46rem);
    padding-block: var(--space-8) var(--space-7);
}

.home .hero h1 {
    max-width: 16ch;
    font-size: calc(var(--step-5) * 1.25);
}

.home .hero .lead {
    max-width: 52ch;
}

/* Hero with an illustration (home): text left, art right on wide screens, below on narrow ones. */
.hero-art {
    display: block;
    width: 100%;
    max-width: 28rem;
    height: auto;
    margin-top: var(--space-6);
}

@media (min-width: 64rem) {
    .home .hero-with-art {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        column-gap: var(--space-7);
        align-items: center;
        align-content: center;
    }

    .home .hero-with-art::before {
        grid-column: 1 / -1;
    }

    .hero-art {
        max-width: none;
        margin-top: 0;
    }
}

/* Hero with a side panel: text left, a calm "what happens tonight" panel right. */
.hero-split {
    display: grid;
    gap: var(--space-6);
    align-items: center;
}

@media (min-width: 64rem) {
    .hero-split {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        gap: var(--space-7);
    }
}

.hero-split::before {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.hero-panel {
    padding: var(--space-5) var(--space-5) var(--space-4);
    border: 1px solid var(--color-line);
    border-radius: calc(var(--radius) * 2);
    background: var(--color-band);
    font-size: var(--step--1);
}

.hero-panel-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-ink);
    font-weight: var(--weight-medium);
}

.hero-panel-title .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--color-accent);
}

.hero-panel ol {
    margin: var(--space-4) 0 0;
    padding: 0;
    list-style: none;
}

.hero-panel li {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: var(--space-3);
    padding-block: var(--space-3);
    border-top: 1px solid var(--color-line);
    color: var(--color-ink-soft);
    line-height: 1.45;
}

.hero-panel .k {
    color: var(--color-ink);
    font-family: var(--font-mono);
    font-weight: var(--weight-medium);
}

.hero-panel-note {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-line);
    color: var(--color-ink-faint);
}

/* ---- stats ---- */

.stats dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: var(--space-5);
    margin: 0;
}

/* The value is shown above its label (column-reverse keeps the label first in
   the DOM). In a reversed column, flex-end is the TOP: without it a stretched
   cell with a short label pushed its value down (operator 2026-11-20). */
.stats dl > div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: var(--space-2);
    padding-top: var(--space-4);
    border-top: 2px solid var(--color-accent);
}

.stats dd {
    margin: 0;
    color: var(--color-ink);
    font-size: var(--step-4);
    font-weight: var(--weight-semibold);
    letter-spacing: -0.02em;
    line-height: 1;
}

.stats dt {
    color: var(--color-ink-soft);
    font-size: var(--step--1);
    line-height: 1.45;
}

/* ---- prose ---- */

.prose {
    max-width: var(--measure);
}

/* Reference pages (config site.wide_paths): code examples need the full width. */
.wide .prose {
    max-width: none;
}

.prose > * + * {
    margin-top: 1.1em;
}

.prose h2 {
    margin-top: var(--space-6);
}

.prose h3 {
    margin-top: var(--space-5);
    font-size: var(--step-2);
}

.prose h4 {
    margin-top: var(--space-5);
}

.prose > :first-child {
    margin-top: 0;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
    margin-top: var(--space-3);
}

.prose ul,
.prose ol {
    padding-left: 1.25em;
}

.prose li + li {
    margin-top: 0.4em;
}

.prose li::marker {
    color: var(--color-ink-faint);
}

.prose blockquote {
    padding-left: var(--space-5);
    border-left: var(--rule) solid var(--color-accent);
    color: var(--color-ink-soft);
    font-size: var(--step-1);
    line-height: 1.5;
}

.prose :not(pre) > code {
    padding: 0.1em 0.35em;
    border-radius: 3px;
    background: var(--color-surface);
}

.prose pre {
    overflow-x: auto;
    padding: var(--space-4) var(--space-5);
    border: var(--hairline) solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    line-height: 1.5;
}

.prose img {
    border-radius: var(--radius);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.prose th,
.prose td {
    padding: var(--space-3) var(--space-4) var(--space-3) 0;
    border-bottom: var(--hairline) solid var(--color-line);
    text-align: left;
    vertical-align: top;
}

.prose thead th {
    border-bottom-color: var(--color-ink);
    font-weight: var(--weight-semibold);
}

/* ---- Logo tiles (feature-grid icons, tool cards) ---- */

.hero-logo {
    display: block;
    width: 72px;
    height: 72px;
    margin-bottom: var(--space-4);
}

/* Tool pages: logo to the right of the hero text on wide screens, above it on narrow ones. */
.hero-with-logo {
    display: flex;
    flex-direction: column;
}

.hero-with-logo .hero-logo {
    order: -1;
}

.hero-with-logo::before {
    order: -2;
}

@media (min-width: 48rem) {
    .hero-with-logo {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        column-gap: var(--space-7);
    }

    .hero-with-logo::before {
        grid-column: 1 / -1;
    }

    .hero-with-logo .hero-logo {
        order: 0;
    }

    .hero-with-logo .hero-logo {
        width: 160px;
        height: 160px;
        padding: var(--space-5);
        margin-bottom: 0;
    }
}

.hero-logo,
.feature-grid img,
.tool-card img {
    box-sizing: content-box;
    padding: var(--space-2);
    border-radius: var(--radius);
    background: var(--color-logo-tile);
}

/* ---- Icon set (inline SVG, stroke in currentColor) ---- */

.icon {
    flex: none;
    width: 24px;
    height: 24px;
}

.icon-md {
    width: 32px;
    height: 32px;
}

.icon-lg {
    width: 40px;
    height: 40px;
}

/* Same footprint as a logo tile (40px mark + 8px padding). */
.icon-tile {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--color-icon-tile);
    color: var(--color-icon);
}

/* ---- feature-grid and steps ---- */

.feature-grid ul,
.steps ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: var(--space-6) var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-grid li,
.steps li {
    padding-top: var(--space-5);
    border-top: var(--hairline) solid var(--color-line);
}

.feature-grid img {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-4);
}

.feature-grid .icon-tile {
    margin-bottom: var(--space-4);
}

/* Compact variant: small bordered tiles, logo beside the title (home tools). */
.feature-grid-compact ul {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
    gap: var(--space-4);
}

/* align-content: start keeps the logo-and-title row at the top of a tile that
   is stretched to its row's height (operator 2026-11-20: top-align boxes). */
.feature-grid-compact li {
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: start;
    align-items: center;
    column-gap: var(--space-3);
    padding: var(--space-4);
    border: var(--hairline) solid var(--color-line);
    border-radius: var(--radius);
}

.feature-grid-compact li.has-link:hover {
    border-color: var(--color-line-strong);
}

.feature-grid-compact img,
.feature-grid-compact .icon-tile {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
}

.feature-grid-compact h3 {
    margin: 0;
    font-size: var(--step-0);
}

.feature-grid-compact p {
    grid-column: 1 / -1;
    margin: var(--space-3) 0 0;
    font-size: var(--step--1);
}

/* A linked item is one target: the title link stretches over the item. */
.feature-grid li.has-link {
    position: relative;
}

.feature-grid h3 a {
    text-decoration: none;
}

.feature-grid h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.feature-grid h3 a:focus-visible {
    outline: none;
}

.feature-grid li.has-link:has(a:focus-visible) {
    outline: var(--focus-ring) solid var(--color-focus);
    outline-offset: 3px;
}

.feature-grid li.has-link:hover h3 a {
    color: var(--color-accent-text);
}

.feature-grid li.has-link h3 a::before {
    content: "\2192";
    content: "\2192" / "";
    float: right;
    margin-left: var(--space-2);
    color: var(--color-ink-faint);
    font-weight: var(--weight-regular);
    transition: color var(--duration) var(--ease);
}

.feature-grid li.has-link:hover h3 a::before {
    color: var(--color-accent-text);
}

.feature-grid h3,
.steps h3 {
    margin-bottom: var(--space-2);
}

.feature-grid p,
.steps p {
    color: var(--color-ink-soft);
}

.steps ol {
    counter-reset: step;
}

.steps li {
    counter-increment: step;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: var(--space-3);
    color: var(--color-accent-text);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-caps);
}

/* ---- faq ---- */

.faq {
    max-width: 52rem;
    border-bottom: var(--hairline) solid var(--color-line);
}

.faq details {
    border-top: var(--hairline) solid var(--color-line);
}

.faq summary {
    position: relative;
    padding: var(--space-5) var(--space-7) var(--space-5) 0;
    font-size: var(--step-1);
    font-weight: var(--weight-medium);
    line-height: var(--leading-snug);
    letter-spacing: -0.01em;
    list-style: none;
    cursor: pointer;
    transition: color var(--duration) var(--ease);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    top: var(--space-5);
    right: 0;
    color: var(--color-ink-faint);
    font-family: var(--font-mono);
    font-weight: var(--weight-regular);
    transition: color var(--duration) var(--ease);
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq summary:hover::after {
    color: var(--color-accent-text);
}

.faq details p {
    max-width: var(--measure);
    padding-bottom: var(--space-5);
    color: var(--color-ink-soft);
}

/* ---- callout ---- */

.callout {
    max-width: var(--measure);
    padding: var(--space-4) var(--space-5);
    border-left: var(--rule) solid var(--color-ink);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--color-surface);
}

.callout-note {
    border-left-color: var(--color-accent);
}

/* ---- cta ---- */

.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5) var(--space-6);
    padding: clamp(var(--space-6), 1.5rem + 4vw, var(--space-7));
    border: var(--hairline) solid var(--color-panel);
    border-radius: var(--radius);
    background: var(--color-panel);
    color: var(--color-on-panel);
}

.cta h2 {
    max-width: 22ch;
}

.cta .button {
    background: var(--color-on-panel);
    color: var(--color-panel);
}

.cta .button:hover {
    background: var(--color-accent);
    color: var(--color-on-accent);
}

@media (prefers-color-scheme: dark) {
    .cta {
        border-color: var(--color-line);
    }
}

/* ---- spec-table ---- */

.spec-table {
    max-width: 52rem;
    border-collapse: collapse;
    border-top: var(--hairline) solid var(--color-ink);
    font-variant-numeric: tabular-nums;
}

.spec-table th,
.spec-table td {
    padding: var(--space-3) 0;
    border-bottom: var(--hairline) solid var(--color-line);
    text-align: left;
    vertical-align: top;
}

.spec-table th {
    width: 38%;
    padding-right: var(--space-5);
    color: var(--color-ink-soft);
    font-weight: var(--weight-regular);
}

/* ---- tool-card: consecutive cards fill the 12-column grid ---- */

.band-inner > .tool-card {
    margin-top: var(--space-5);
}

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    border: var(--hairline) solid var(--color-line);
    border-radius: var(--radius);
    transition: border-color var(--duration) var(--ease);
}

.tool-card:hover {
    border-color: var(--color-line-strong);
}

.tool-card:has(a:focus-visible) {
    outline: var(--focus-ring) solid var(--color-focus);
    outline-offset: 3px;
}

.tool-card img {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-3);
}

.tool-card h3 a {
    text-decoration: none;
}

.tool-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.tool-card h3 a:focus-visible {
    outline: none;
}

.tool-card:hover h3 a {
    color: var(--color-accent-text);
}

.tool-card p {
    color: var(--color-ink-soft);
}

@media (min-width: 40rem) {
    .band-inner > .tool-card {
        grid-column: span 6;
    }
}

@media (min-width: 64rem) {
    .band-inner > .tool-card {
        grid-column: span 4;
    }
}

/* ---- price-table ---- */

.badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border: var(--hairline) solid currentColor;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: var(--step--1);
    font-weight: var(--weight-medium);
    line-height: 1.3;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
}

.badge-mock {
    margin-bottom: var(--space-4);
    color: var(--color-accent-text);
}

.price-table-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.price-table-head .badge-mock {
    margin-bottom: 0;
}

.price-table .monthly {
    display: block;
    margin-top: var(--space-1);
    color: var(--color-ink-soft);
    font-size: var(--step--1);
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    border-top: var(--rule) solid var(--color-accent);
}

.price-table tr {
    border-bottom: var(--hairline) solid var(--color-line);
}

.price-table th,
.price-table td {
    padding: var(--space-5) 0;
    text-align: left;
    vertical-align: top;
}

.price-table th {
    padding-right: var(--space-5);
    font-weight: var(--weight-regular);
}

.price-table .product {
    display: block;
    font-size: var(--step-1);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    letter-spacing: -0.01em;
}

.price-table th ul {
    margin-top: var(--space-2);
    padding: 0;
    color: var(--color-ink-soft);
    font-size: var(--step--1);
    list-style: none;
}

.price-table th li::before {
    content: "\2013";
    margin-right: 0.6em;
    color: var(--color-ink-faint);
}

.price-table td.num {
    padding-right: var(--space-5);
    text-align: right;
    white-space: nowrap;
}

.price-table .amount {
    display: block;
    font-size: var(--step-2);
    font-weight: var(--weight-semibold);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.price-table .amount-custom {
    padding-top: 0.2em;
    font-size: var(--step-1);
    font-weight: var(--weight-medium);
}

.price-table .vat {
    display: block;
    margin-top: var(--space-1);
    color: var(--color-ink-faint);
    font-size: var(--step--1);
}

.price-table td.period {
    width: 11rem;
    padding-top: calc(var(--space-5) + 0.35em);
    color: var(--color-ink-soft);
    font-size: var(--step--1);
}

/* Long lists (domain extensions, mail tiers) read as a list: tighter rows,
   VAT beside the amount instead of under it. */
@media (min-width: 40rem) {
    .price-table:has(tr:nth-child(6)) th,
    .price-table:has(tr:nth-child(6)) td {
        padding-block: var(--space-3);
    }

    .price-table:has(tr:nth-child(6)) td.period {
        padding-top: calc(var(--space-3) + 0.3em);
    }

    .price-table:has(tr:nth-child(6)) .amount {
        display: inline;
        font-size: var(--step-1);
    }

    .price-table:has(tr:nth-child(6)) .vat {
        display: inline;
        margin-left: var(--space-2);
    }
}

.prices-follow {
    padding: var(--space-6) var(--space-5);
    border: var(--hairline) dashed var(--color-line-strong);
    border-radius: var(--radius);
    color: var(--color-ink-soft);
    font-size: var(--step-1);
    text-align: center;
}

@media (max-width: 39.99rem) {
    .price-table table,
    .price-table tbody,
    .price-table tr,
    .price-table th,
    .price-table td {
        display: block;
    }

    .price-table table {
        border-top: 0;
    }

    .price-table tr {
        padding: var(--space-5);
        border: var(--hairline) solid var(--color-line);
        border-top: var(--rule) solid var(--color-accent);
        border-radius: var(--radius);
    }

    .price-table tr + tr {
        margin-top: var(--space-4);
    }

    .price-table th,
    .price-table td,
    .price-table td.num,
    .price-table td.period {
        width: auto;
        padding: 0;
        text-align: left;
    }

    .price-table td.num {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: var(--space-2);
        margin-top: var(--space-4);
        padding-top: var(--space-4);
        border-top: var(--hairline) solid var(--color-line);
    }

    .price-table .vat {
        margin-top: 0;
    }

    .price-table .monthly {
        flex-basis: 100%;
        margin-top: 0;
    }

    .price-table td.period {
        margin-top: var(--space-1);
    }

    /* Long lists stay a list on a phone: one ruled row per product, not a card each. */
    .price-table:has(tr:nth-child(6)) table {
        border-top: var(--rule) solid var(--color-accent);
    }

    .price-table:has(tr:nth-child(6)) tr {
        padding: var(--space-3) 0;
        border: 0;
        border-bottom: var(--hairline) solid var(--color-line);
        border-radius: 0;
    }

    .price-table:has(tr:nth-child(6)) tr + tr {
        margin-top: 0;
    }

    .price-table:has(tr:nth-child(6)) td.num {
        margin-top: var(--space-1);
        padding-top: 0;
        border-top: 0;
    }

    .price-table:has(tr:nth-child(6)) .amount {
        font-size: var(--step-1);
    }
}

/* ---- price-cards ---- */

/* 18rem keeps desktop at three columns: six server cards fill two even rows
   instead of four plus two orphans, and card titles get room to stay on one line. */
.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: var(--space-5);
}

.price-cards .badge-mock {
    grid-column: 1 / -1;
    justify-self: start;
    margin-bottom: 0;
}

.price-cards .prices-follow {
    grid-column: 1 / -1;
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-5);
    border: var(--hairline) solid var(--color-line);
    border-top: var(--rule) solid var(--color-accent);
    border-radius: var(--radius);
    background: var(--color-bg);
}

.price-card .icon-tile {
    margin-bottom: var(--space-4);
}

.price-card h3 {
    font-size: var(--step-1);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    letter-spacing: -0.01em;
}

.price-card ul {
    margin-top: var(--space-3);
    padding: 0;
    color: var(--color-ink-soft);
    font-size: var(--step--1);
    list-style: none;
}

.price-card li::before {
    content: "\2013";
    margin-right: 0.6em;
    color: var(--color-ink-faint);
}

.price-card .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-1) var(--space-2);
    margin-top: auto;
    padding-top: var(--space-4);
}

/* The price block sits at the card's foot, so prices line up across a row
   even when one card lists more features than its neighbours. */
.price-card ul {
    margin-bottom: var(--space-4);
}

.price-card ul + .price {
    margin-top: auto;
    border-top: var(--hairline) solid var(--color-line);
}

.price-card .amount {
    font-size: var(--step-2);
    font-weight: var(--weight-semibold);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.price-card .amount-custom {
    font-size: var(--step-1);
    font-weight: var(--weight-medium);
}

.price-card .vat,
.price-card .period,
.price-card .monthly {
    color: var(--color-ink-faint);
    font-size: var(--step--1);
}

.price-card .period,
.price-card .monthly {
    flex-basis: 100%;
    color: var(--color-ink-soft);
}

/* A per-row condition on the price (e.g. "storage not included"): meant to
   be read with the price, so it is ink, not soft, and slightly heavier. */
.price-card .price-note,
.price-table .price-note {
    display: block;
    flex-basis: 100%;
    margin-top: var(--space-1);
    color: var(--color-ink);
    font-size: var(--step--1);
    font-weight: var(--weight-medium);
}

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

.site-footer {
    border-top: var(--hairline) solid var(--color-line);
    color: var(--color-ink-soft);
    font-size: var(--step--1);
}

.site-footer-inner {
    display: grid;
    gap: var(--space-6);
    width: 100%;
    max-width: calc(var(--content-max) + 2 * var(--gutter));
    margin-inline: auto;
    padding: var(--space-7) var(--gutter) var(--space-6);
}

.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    gap: var(--space-6) var(--space-5);
}

.footer-heading {
    margin: 0 0 var(--space-3);
    color: var(--color-ink);
    font-size: var(--step--1);
    font-weight: var(--weight-semibold);
}

.footer-column ul {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column a {
    color: var(--color-ink-soft);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

.footer-column a:hover {
    color: var(--color-ink);
    text-decoration: underline;
}

.site-footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-3) var(--space-6);
}

.footer-sitemap + .site-footer-base {
    padding-top: var(--space-5);
    border-top: var(--hairline) solid var(--color-line);
}

.site-footer-base p {
    margin: 0;
}

.site-footer-company {
    max-width: 60ch;
}

.site-footer-base a {
    color: var(--color-ink);
}

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

.contact-form-section {
    max-width: 44rem;
}

.contact-form-section .lead {
    margin-top: var(--space-3);
    color: var(--color-ink-soft);
}

.contact-form-section.hero .lead {
    margin-top: var(--space-5);
}

.contact-types {
    margin-top: var(--space-5);
    padding-left: var(--space-4);
    border-left: var(--rule) solid var(--color-accent);
}

.contact-types ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    margin: var(--space-2) 0 0;
    padding: 0;
    list-style: none;
}

.contact-form {
    display: grid;
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.field {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.field > label,
.field > legend {
    padding: 0;
    font-weight: var(--weight-medium);
}

.field .optional {
    color: var(--color-ink-faint);
    font-weight: var(--weight-regular);
}

.field-hint {
    margin: 0;
    color: var(--color-ink-soft);
    font-size: var(--step--1);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field textarea {
    width: 100%;
    padding: 0.7em 0.85em;
    border: var(--hairline) solid var(--color-line-strong);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-ink);
    font: inherit;
    line-height: var(--leading-snug);
}

.field textarea {
    min-height: 10rem;
    resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
    border-color: var(--color-focus);
}

.choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: var(--space-2) var(--space-4);
}

.choice {
    display: flex;
    align-items: center;
    gap: 0.6em;
    cursor: pointer;
}

.choice input {
    width: 1.1em;
    height: 1.1em;
    margin: 0;
    accent-color: var(--color-accent);
}

.field.has-error input,
.field.has-error textarea {
    border-color: var(--color-accent);
}

.field-error {
    margin: 0;
    color: var(--color-accent-text);
    font-size: var(--step--1);
    font-weight: var(--weight-medium);
}

.form-errors,
.form-success {
    padding: var(--space-4);
    border-left: var(--rule) solid var(--color-accent);
    background: var(--color-band-accent);
}

.form-errors p,
.form-success p {
    margin: 0;
}

.form-errors p + p,
.form-success p + p {
    margin-top: var(--space-2);
}

.form-success {
    margin-top: var(--space-6);
}

.form-success h2 {
    margin: 0 0 var(--space-3);
    font-size: var(--step-2);
}

/* The honeypot: off-screen for people, still in the form for bots. */
.form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-5);
}

.form-actions .button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.form-privacy {
    margin: 0;
    color: var(--color-ink-soft);
    font-size: var(--step--1);
}

/* The vendored ALTCHA widget, on the site's tokens (overrides its :root defaults). */
altcha-widget {
    --altcha-color-base: var(--color-bg);
    --altcha-color-base-content: var(--color-ink);
    --altcha-color-primary: var(--color-accent);
    --altcha-color-primary-content: var(--color-on-accent);
    --altcha-border-color: var(--color-line-strong);
    --altcha-border-radius: var(--radius);
    --altcha-max-width: 100%;
    display: block;
    font-family: var(--font-sans);
}

/* ---- Motion: off when the visitor asks for less ---- */

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