/*
 * Wickbay site stylesheet.
 * Plain CSS, no framework. Tokens live on :root; components follow in the
 * order they appear on a page: base, header, hero, sections, catalogue,
 * forms, checkout, footer, utilities.
 */

/* ------------------------------------------------------------------ fonts */

@font-face { font-family: "WB Helvetica"; src: url("../fonts/helvetica-neue-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "WB Helvetica"; src: url("../fonts/helvetica-neue-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "WB Helvetica"; src: url("../fonts/helvetica-neue-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "WB Helvetica"; src: url("../fonts/helvetica-neue-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ----------------------------------------------------------------- tokens */

:root {
    --ink: #0b1a36;
    --ink-2: #2a3957;
    --muted: #53607a;
    --faint: #7b879f;
    --line: #dbe2ee;
    --line-2: #e8edf5;
    --paper: #f4f7fb;
    --white: #ffffff;

    --blue: #1570ef;
    --blue-700: #0c5fd8;
    --blue-800: #0a4cae;
    --blue-50: #ecf3fe;
    --blue-100: #d5e5fd;
    --sky-1: #c4dbf6;
    --sky-2: #ddeafa;

    --indigo-1: #33259a;
    --indigo-2: #4430b3;
    --indigo-3: #4d39c0;

    --footer: #1a78e9;

    /* server hardware details (plan cards, illustrations) */
    --metal-1: #1d2b52;
    --metal-2: #141f40;
    --led-green: #43e08b;
    --led-blue: #5fb3ff;
    --led-amber: #ffb547;

    --green: #138a4a;
    --red: #b42318;

    --ease-out: cubic-bezier(.2, .75, .15, 1);

    --font: "WB Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(64px, 9vw, 120px);
    --radius: 6px;
    --radius-lg: 10px;
    --shadow: 0 1px 2px rgba(11, 26, 54, .05), 0 12px 32px -16px rgba(11, 26, 54, .22);
    --shadow-lg: 0 2px 4px rgba(11, 26, 54, .04), 0 24px 56px -24px rgba(11, 26, 54, .35);
    --header-h: 76px;
}

/* ------------------------------------------------------------------- base */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

@media (min-width: 768px) {
    body { font-size: 17px; }
}

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-weight: 400; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; }
strong, b { font-weight: 500; }
small { font-size: .875em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
button { font: inherit; }

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

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

::selection { background: var(--blue-100); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 16px; top: -48px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

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

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(860px + 2 * var(--gutter)); }

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .65); }
.section--paper { background: var(--paper); }
.section + .section--flush { padding-top: 0; }

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 24px 48px;
    align-items: end;
    margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head .lead { margin-top: 16px; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}
.split__aside { position: sticky; top: 32px; }

@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split__aside { position: static; }
    .section-head { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- typography */

.display {
    font-size: clamp(2.5rem, 1.5rem + 4.3vw, 4.6rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.038em;
}
.h1 {
    font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.034em;
}
.h2 {
    font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.85rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.03em;
}
.h3 {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.008em;
}
.lead {
    font-size: clamp(1.075rem, 1rem + .35vw, 1.22rem);
    line-height: 1.55;
    color: var(--muted);
    max-width: 38em;
}
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}
.eyebrow::before {
    content: "";
    flex: none;
    width: 11px;
    height: 11px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background: radial-gradient(circle, currentColor 0 2px, transparent 2.6px);
}
.on-dark .eyebrow, .eyebrow--light { color: rgba(255, 255, 255, .78); }

/* ------------------------------------------------------------------ icons */

.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; }
.icon--sm { width: 14px; height: 14px; }
.icon--md { width: 18px; height: 18px; }
.icon--lg { width: 24px; height: 24px; }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--blue);
    color: #fff;
    font: 500 15px/1.2 var(--font);
    letter-spacing: .005em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease, transform .25s var(--ease-out);
}
.btn:hover { background: var(--blue-700); text-decoration: none; }
.btn:active { background: var(--blue-800); }
.btn .icon { transition: transform .18s ease; }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--lg { padding: 16px 24px; font-size: 16px; }
.btn--sm { padding: 9px 14px; font-size: 14px; }
.btn--block { width: 100%; }

.btn--white { background: #fff; color: var(--blue-800); }
.btn--white:hover { background: var(--blue-50); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }

.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: #fff; border-color: var(--ink); }

.btn--ink { background: var(--ink); }
.btn--ink:hover { background: #17284a; }

.btn[disabled], .btn.is-loading { opacity: .7; cursor: progress; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--blue);
}
.link-arrow .icon { transition: transform .18s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.on-dark .link-arrow { color: #fff; }

/* ----------------------------------------------------------------- header */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    color: #fff;
    background: rgba(255, 255, 255, 0);
    transition: transform .45s var(--ease-out), background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.site-header--solid,
.site-header.is-scrolled {
    color: var(--ink);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 1px 0 var(--line-2), 0 10px 30px -24px rgba(11, 26, 54, .45);
}
.site-header.is-hidden { transform: translateY(-101%); }
.has-solid-header main { padding-top: var(--header-h); }

.site-header__bar {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
    transition: height .3s var(--ease-out);
}
.site-header.is-scrolled .site-header__bar { height: 66px; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    line-height: 1;
}
.logo:hover { text-decoration: none; }
.logo__mark { flex: none; width: 32px; height: 32px; }
.logo__tile { fill: var(--blue); transition: fill .3s ease; }
.logo__glyph { fill: #fff; transition: fill .3s ease; }
.logo__word { font-size: 23px; font-weight: 700; letter-spacing: -.04em; }
/* On blue (the header over a hero, the footer) the tile turns white. */
.site-header:not(.site-header--solid):not(.is-scrolled) .logo__tile,
.footer-brand .logo__tile { fill: #fff; }
.site-header:not(.site-header--solid):not(.is-scrolled) .logo__glyph,
.footer-brand .logo__glyph { fill: var(--blue); }

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border: 0;
    border-radius: var(--radius);
    background: none;
    color: inherit;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
}
.nav__link { transition: background-color .15s ease; }
.nav__link:hover { text-decoration: none; background: rgba(255, 255, 255, .12); }
.site-header--solid .nav__link:hover,
.site-header.is-scrolled .nav__link:hover { background: var(--paper); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 currentColor; border-radius: 0; }
.nav__link .icon { width: 12px; height: 12px; transition: transform .2s ease; }
.nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav__actions { display: flex; align-items: center; gap: 12px; margin-left: 16px; }

.site-header .btn--nav {
    padding: 10px 16px;
    font-size: 14px;
    background: #fff;
    color: var(--blue-800);
}
.site-header .btn--nav:hover { background: var(--blue-50); }
.site-header--solid .btn--nav,
.site-header.is-scrolled .btn--nav { background: var(--blue); color: #fff; }
.site-header--solid .btn--nav:hover,
.site-header.is-scrolled .btn--nav:hover { background: var(--blue-700); color: #fff; }

/* products mega menu */

.nav__item { position: relative; }

.mega {
    position: absolute;
    top: calc(100% + 10px);
    left: -24px;
    width: min(880px, calc(100vw - 2 * var(--gutter)));
    padding: 28px;
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--ink-2);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 28px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.mega::before {
    content: "";
    position: absolute;
    inset: -12px 0 auto 0;
    height: 12px;
}
.mega.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .16s ease, transform .16s ease, visibility 0s;
}

.mega__group h2 {
    margin: 0 0 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-2);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--faint);
}
.mega__link {
    display: block;
    margin: 0 -12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--ink);
}
.mega__link:hover { background: var(--paper); text-decoration: none; }
.mega__link strong { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; font-size: 15px; }
.mega__link strong span { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--blue); white-space: nowrap; }
.mega__link small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.mega__foot {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line-2);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    color: var(--muted);
}

/* mobile navigation */

.burger {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: inherit;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.burger .icon { width: 24px; height: 24px; }

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #fff;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transition: opacity .18s ease, visibility 0s linear .18s;
}
.mobile-nav.is-open { visibility: visible; opacity: 1; transition: opacity .18s ease; }
.mobile-nav__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding-inline: var(--gutter);
    border-bottom: 1px solid var(--line-2);
    flex: none;
}
.mobile-nav__body { padding: 12px var(--gutter) 32px; }
.mobile-nav__group { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.mobile-nav__group h2 {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--faint);
}
.mobile-nav__link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    font-size: 18px;
    color: var(--ink);
}
.mobile-nav__link span { font-family: var(--mono); font-size: 12px; color: var(--blue); }
.mobile-nav__actions { display: grid; gap: 10px; margin-top: 24px; }
body.nav-open { overflow: hidden; }

@media (max-width: 1020px) {
    .nav, .nav__actions { display: none; }
    .burger { display: inline-flex; }
}

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

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(118deg, #0767e4 0%, #1473ef 46%, #2b77e7 100%);
    padding-top: calc(var(--header-h) + clamp(32px, 5.5vw, 80px));
    margin-bottom: -1px;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(118deg, transparent 0 26%, rgba(255, 255, 255, .05) 26% 41%, transparent 41%),
        linear-gradient(118deg, transparent 0 57%, rgba(255, 255, 255, .04) 57% 66%, transparent 66%),
        linear-gradient(118deg, transparent 0 78%, rgba(255, 255, 255, .03) 78% 84%, transparent 84%);
}

.hero__content { position: relative; z-index: 2; }
.hero__content .display { max-width: 12.5em; color: #fff; }
.hero__content .lead { margin-top: 24px; color: rgba(255, 255, 255, .84); }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-top: 36px;
}

.hero__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, max-content));
    gap: 0 clamp(24px, 4vw, 56px);
    margin: 56px 0 0;
    padding: 20px 0 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .22);
    max-width: 960px;
}
.hero__facts li { font-size: 14px; color: rgba(255, 255, 255, .82); line-height: 1.4; }
.hero__facts strong {
    display: block;
    margin-bottom: 4px;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -.01em;
}

.hero__scene {
    position: relative;
    z-index: 1;
    margin-top: clamp(-40px, -2vw, 0px);
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}
.hero__scene svg { width: min(1180px, 100%); height: auto; }

.wave {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    height: clamp(70px, 11vw, 170px);
    margin-top: calc(-1 * clamp(70px, 11vw, 170px) + 2px);
}

@media (max-width: 860px) {
    .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
    .hero__scene { margin-top: 24px; }
    .hero__scene svg { width: 150%; max-width: none; margin-right: -25%; }
}

/* the skyline illustration */

.skyline .b1 { fill: #3d97fb; }
.skyline .b2 { fill: #318bf2; }
.skyline .b3 { fill: #4fa5ff; }
.skyline .b4 { fill: #2a80ea; }
.skyline .back { fill: #2a7fec; opacity: .55; }
.skyline .stripe { fill: #2a83ee; }
.skyline .win { fill: #6cb5ff; opacity: .7; }
.skyline .tri { fill: #6ab4ff; opacity: .55; }
.skyline .mist { fill: #2e8bf4; opacity: .45; }
.skyline .net { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.skyline .net--faint { stroke-opacity: .45; }
.skyline .node { fill: #0b4fa8; }
.skyline .node-ring { fill: #fff; }
.skyline .packet { fill: #fff; }
.skyline .pulse {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
    transform-box: fill-box;
    transform-origin: center;
    animation: pulse 3.2s ease-out infinite;
}
.skyline .pulse--d1 { animation-delay: 1.1s; }
.skyline .pulse--d2 { animation-delay: 2.2s; }

@keyframes pulse {
    0% { transform: scale(.6); opacity: .9; }
    70%, 100% { transform: scale(2.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .skyline .packet, .skyline .pulse { display: none; }
}

/* compact blue hero for content pages */

.hero--page { padding-bottom: 0; }
.hero--page .hero__content { padding-bottom: clamp(96px, 12vw, 168px); }
.hero--page .display { max-width: 14em; }

/* ------------------------------------------------- product index (home) */

.index { border-top: 1px solid var(--line); }

.index__row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) minmax(0, 1.1fr) 150px 24px;
    gap: 24px;
    align-items: center;
    padding: 24px 16px;
    margin-inline: -16px;
    border-bottom: 1px solid var(--line);
    color: inherit;
    transition: background-color .15s ease;
}
.index__row:hover { background: #fff; text-decoration: none; }
.section--paper .index__row:hover { background: #fff; }
.index__name { font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -.012em; line-height: 1.25; }
.index__name small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.index__desc { font-size: 15px; color: var(--muted); line-height: 1.5; }
.index__spec { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.index__price { text-align: right; line-height: 1.2; white-space: nowrap; }
.index__price small { display: block; font-size: 12px; color: var(--faint); }
.index__price strong { font-size: 20px; font-weight: 400; color: var(--ink); }
.index__price strong > span:not(.price) { font-size: 13px; color: var(--muted); }
.index__arrow { color: var(--blue); transition: transform .18s ease; }
.index__row:hover .index__arrow { transform: translateX(4px); }

@media (max-width: 960px) {
    .index__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding-block: 20px; }
    .index__desc, .index__spec { grid-column: 1 / -1; }
    .index__desc { order: 3; }
    .index__spec { order: 4; }
    .index__price { order: 2; }
    .index__arrow { display: none; }
}

/* --------------------------------------------------------- numbered list */

.points { list-style: none; margin: 0; padding: 0; counter-reset: point; }
.points li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li::before {
    counter-increment: point;
    content: counter(point, decimal-leading-zero);
    grid-row: span 2;
    padding-top: 3px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--blue);
}
.points h3 { font-size: 1.2rem; font-weight: 500; }
.points p { color: var(--muted); margin: 0; }

/* ----------------------------------------------------------- dark band */

.band-ink {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: #aab6cf;
    isolation: isolate;
}
.band-ink::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 40%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 90% at 85% 40%, #000 0%, transparent 72%);
}
.band-ink .h2 { color: #fff; }
.band-ink .lead { color: #aab6cf; }
/* ---------------------------------------------------------------- receipt */

.receipt {
    --receipt-behind: var(--paper);
    position: relative;
    padding: 28px 28px 36px;
    border-radius: 4px 4px 0 0;
    background: #fff;
    box-shadow: var(--shadow);
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-2);
}
.receipt::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 10px;
    background: radial-gradient(circle at 7px 10px, var(--receipt-behind) 5px, transparent 5.5px) 0 0 / 14px 10px repeat-x;
}
.receipt__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px dashed var(--line);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.receipt__row { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; }
.receipt__row .lbl { flex: none; max-width: 70%; }
.receipt__row .lbl small { display: block; color: var(--faint); font-size: 11.5px; }
.receipt__row .dots { flex: 1; min-width: 12px; height: 2px; background: radial-gradient(circle, #9fabc2 .9px, transparent 1.1px) 0 50% / 6px 2px repeat-x; transform: translateY(-3px); }
.receipt__row .amt { flex: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.receipt__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    color: var(--ink);
}
.receipt__total strong { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.receipt__note { margin-top: 10px; font-size: 12px; color: var(--faint); }

/* -------------------------------------------------------------- the teaser */

.teaser {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
}
.rates { list-style: none; padding: 0; margin: 28px 0 32px; border-top: 1px solid var(--line); max-width: 460px; }
.rates li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rates li > span:last-child { font-family: var(--mono); font-size: 13.5px; color: var(--ink); }

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

/* ----------------------------------------------------------------- quotes */

.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quote { margin: 0; padding: 4px clamp(24px, 4vw, 56px) 4px 0; }
.quote + .quote { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--line); }
.quote blockquote {
    margin: 0;
    font-size: clamp(1.2rem, 1.02rem + .7vw, 1.5rem);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -.008em;
    color: var(--ink);
}
.quote blockquote::before { content: "\201C"; margin-left: -.45em; color: var(--blue); }
.quote blockquote::after { content: "\201D"; color: var(--blue); }
.quote figcaption { margin-top: 20px; font-size: 14px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); font-weight: 500; }

@media (max-width: 760px) {
    .quotes { grid-template-columns: 1fr; gap: 40px; }
    .quote, .quote + .quote { padding: 0; border: 0; }
}

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

.cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px 64px;
    align-items: end;
    padding-block: clamp(48px, 7vw, 80px) 0;
}
.cta .lead { margin-top: 14px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

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

/* ------------------------------------------------------- catalogue pages */

.phero {
    position: relative;
    color: #fff;
    background: linear-gradient(155deg, var(--indigo-1) 0%, var(--indigo-2) 52%, var(--indigo-3) 100%);
    padding: calc(var(--header-h) + clamp(32px, 6vw, 80px)) 0 clamp(170px, 18vw, 230px);
    isolation: isolate;
    overflow: hidden;
}
.phero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(155deg, transparent 0 35%, rgba(255, 255, 255, .045) 35% 52%, transparent 52%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 120px);
}
.phero__curve {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: clamp(40px, 6vw, 90px);
    z-index: 0;
}
.phero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 40px 72px;
    align-items: end;
}
.phero h1 { color: #fff; }
.phero .lead { margin-top: 20px; color: rgba(255, 255, 255, .8); }
.phero__facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .2); }
.phero__facts li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    font-size: 15px;
    color: rgba(255, 255, 255, .86);
}
.phero__facts .icon { color: #a9c8ff; transform: translateY(2px); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; color: rgba(255, 255, 255, .66); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: inherit; }

.cycle-switch {
    display: inline-flex;
    margin-top: 36px;
    padding: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.cycle-switch label {
    position: relative;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.cycle-switch label small { margin-left: 6px; font-size: 11px; letter-spacing: .04em; text-transform: none; color: #b7f0cc; }
.cycle-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cycle-switch label:has(input:checked) { background: #fff; color: var(--indigo-2); }
.cycle-switch label:has(input:checked) small { color: var(--green); }
.cycle-switch label:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }

/* monthly / quarterly visibility, driven by the switch (CSS :has, with a JS
   data-attribute fallback) */
.is-quarterly { display: none; }
.is-monthly { display: contents; }
[data-cycle-scope]:has(.cycle-switch input[value="quarterly"]:checked) .is-monthly,
[data-cycle-scope][data-cycle="quarterly"] .is-monthly { display: none; }
[data-cycle-scope]:has(.cycle-switch input[value="quarterly"]:checked) .is-quarterly,
[data-cycle-scope][data-cycle="quarterly"] .is-quarterly { display: contents; }

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

/* plan cards */

.plans-wrap { position: relative; z-index: 2; margin-top: calc(-1 * clamp(130px, 14vw, 180px)); }

.plans {
    display: grid;
    grid-template-columns: repeat(var(--plan-cols, 3), minmax(0, 1fr));
    gap: 20px;
}

.plan {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-top: 3px solid transparent;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}
.plan--featured { border-top-color: var(--blue); }
.plan__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan__tier { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.plan__code { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .04em; }
.plan__summary { min-height: 3.1em; margin: 8px 0 22px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-size: clamp(2.3rem, 2rem + 1vw, 2.75rem); font-weight: 500; line-height: 1; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan__per { font-size: 15px; color: var(--muted); }
.plan__note { min-height: 1.6em; margin-top: 8px; font-size: 13px; color: var(--muted); }
.plan__note .save { color: var(--green); font-weight: 500; }
.plan .btn { margin: 22px 0 24px; }

.specs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.specs li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 14px;
}
.specs li > span:first-child { color: var(--muted); flex: none; }
.specs li > span:last-child { font-family: var(--mono); font-size: 12.5px; color: var(--ink); text-align: right; }

/* four or five plans in a row: a tighter card */
.plans--many { gap: 14px; }
.plans--many .plan { padding: 22px 20px; }
.plans--many .plan__tier { font-size: 18px; }
.plans--many .plan__summary { font-size: 14px; min-height: 4.6em; }
.plans--many .plan__amount { font-size: clamp(1.85rem, 1.5rem + .8vw, 2.2rem); }
.plans--many .plan__per { font-size: 13.5px; }
.plans--many .specs li { gap: 10px; font-size: 13px; }
.plans--many .specs li > span:last-child { font-size: 12px; }
.plans--many .plan__face { margin: -22px -20px 20px; padding: 0 14px; gap: 10px; }
.plans--many .plan__cores { gap: 3px; min-width: 0; }
.plans--many .plan__cores i { width: 10px; height: 10px; }
.plans--many .plan__badge { white-space: nowrap; }
@media (max-width: 1180px) {
    .plans--many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
    .plan__summary { min-height: 0; }
}

/* comparison table */

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 20px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.compare tr:last-child > * { border-bottom: 0; }
.compare thead th { background: var(--paper); color: var(--ink); font-weight: 500; white-space: nowrap; }
.compare thead th small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--faint); }
.compare tbody th { width: 30%; font-weight: 400; color: var(--muted); position: sticky; left: 0; background: #fff; }
.compare td { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.compare td .icon { color: var(--blue); width: 16px; height: 16px; }
.compare td .none { color: var(--faint); }
.compare .group th {
    padding-top: 22px;
    padding-bottom: 8px;
    background: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--faint);
}
.compare .price-row td { font-family: var(--font); font-size: 17px; color: var(--ink); }
.compare .price-row td small { font-size: 13px; color: var(--muted); }

/* included features grid */

.included {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.included > div {
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.included h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 1.05rem; font-weight: 500; }
.included h3 .icon { color: var(--blue); width: 18px; height: 18px; }
.included p { margin: 0; font-size: 15px; color: var(--muted); }

@media (max-width: 900px) {
    .included { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .included { grid-template-columns: 1fr; }
}

/* related categories */

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .related { grid-template-columns: 1fr; } }
.related a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.related a:hover { border-color: var(--blue); text-decoration: none; box-shadow: var(--shadow); }
.related strong { font-weight: 500; }
.related a > span { font-size: 14px; color: var(--muted); }
.related em { font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--blue); margin-top: auto; padding-top: 8px; }

/* prose blocks on product pages */

.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.detail-grid h3 { margin-bottom: 12px; }
.detail-grid p, .detail-grid li { color: var(--muted); }
.detail-grid ul { padding-left: 1.1em; }
@media (max-width: 760px) {
    .detail-grid { grid-template-columns: 1fr; }
}

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

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding: 22px 0;
    font-size: 1.1rem;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    flex: none;
    font-family: var(--mono);
    font-size: 20px;
    line-height: 1;
    color: var(--blue);
    transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue-800); }
.faq .answer { max-width: 44em; padding: 0 40px 24px 0; color: var(--muted); }
.faq .answer a { font-weight: 500; }

.faq-group + .faq-group { margin-top: 56px; }
.faq-group > h2 { margin-bottom: 16px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* ----------------------------------------------------------- page heading */

.page-head {
    padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
    background: var(--paper);
    border-bottom: 1px solid var(--line-2);
}
.page-head .lead { margin-top: 16px; }

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

.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

.field { display: grid; gap: 7px; align-content: start; }
.field > label, .field__label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field__label .optional, .field > label .optional { font-weight: 400; color: var(--faint); }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { font-size: 13px; color: var(--red); }

.input, .select, .textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c9d3e3;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: #9aa5bd; }
.input:hover, .select:hover, .textarea:hover { border-color: #aebbd2; }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(21, 112, 239, .16);
}
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red); }
.textarea { min-height: 160px; resize: vertical; }
.select {
    appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6d8c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.input--mono { font-family: var(--mono); font-size: 15px; }
.input[readonly] { background: var(--paper); color: var(--muted); cursor: default; }
.input[readonly]:focus { border-color: #c9d3e3; box-shadow: none; }

.check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
}
.check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--blue);
}

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.choice:hover { border-color: #b7c4da; }
.choice input { flex: none; margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--blue); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue); }
.choice:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.choice__body { display: grid; gap: 2px; min-width: 0; }
.choice__title { font-weight: 500; color: var(--ink); }
.choice__meta { font-size: 13.5px; color: var(--muted); }
.choice__price { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.choice__save { font-size: 12.5px; color: var(--green); font-weight: 500; }

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

.alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: var(--radius);
    font-size: 15px;
    line-height: 1.5;
}
.alert .icon { margin-top: 3px; }
.alert ul { margin: 6px 0 0; padding-left: 1.1em; }
.alert--error { background: #fdf3f2; border-color: #f4cdc8; color: #8a1c13; }
.alert--success { background: #eef8f2; border-color: #c4e6d1; color: #0d5a31; }
.alert--info { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-800); }

/* --------------------------------------------------------------- checkout */

.checkout-head { padding-top: 32px; }
.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    counter-reset: step;
    font-size: 13px;
    color: var(--faint);
}
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-family: var(--mono);
    font-size: 11px;
}
.steps li[aria-current="step"] { color: var(--ink); font-weight: 500; }
.steps li[aria-current="step"]::before { border-color: var(--blue); background: var(--blue); color: #fff; }
.steps li.is-done::before { border-color: var(--blue); color: var(--blue); }

.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
    padding-bottom: var(--section);
}
.checkout__aside { position: sticky; top: 24px; }

.form-section { padding: 32px 0; border-top: 1px solid var(--line); }
.form-section:first-child { border-top: 0; padding-top: 8px; }
.form-section > h2 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1.15rem;
    font-weight: 500;
}
.form-section > h2 span { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--blue); }
.form-section > p.muted { margin-top: -10px; margin-bottom: 18px; font-size: 15px; }

.summary {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}
.summary__title { margin-bottom: 4px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.summary__item { font-size: 19px; color: var(--ink); }
.summary__spec { margin-top: 4px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.summary dl { margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.summary__total > span { font-size: 15px; color: var(--ink); }
.summary__total strong { font-size: 30px; font-weight: 300; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.summary__renew { margin: 6px 0 20px; font-size: 13px; color: var(--muted); }
.summary__secure { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.summary__secure .icon { margin-top: 2px; color: var(--green); }

@media (max-width: 960px) {
    .checkout { grid-template-columns: 1fr; }
    .checkout__aside { position: static; }
}

/* order status pages */

.status {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
    padding-block: clamp(40px, 6vw, 72px) var(--section);
}
.status__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}
.status__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status__badge--ok { background: #e8f6ee; color: var(--green); }
.status__badge--wait { background: #fff4e0; color: #9a5b00; }
.status__badge--info { background: var(--blue-50); color: var(--blue-800); }
.status__badge--stop { background: #fdeceb; color: var(--red); }

.timeline { margin: 32px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 6px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: #fff;
}
.timeline li.is-done::before { border-color: var(--blue); background: var(--blue); }
.timeline strong { display: block; color: var(--ink); font-weight: 500; }
.timeline span { font-size: 15px; color: var(--muted); }

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

/* ----------------------------------------------------------- configurator */

.configurator {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
    margin-top: calc(-1 * clamp(120px, 13vw, 170px));
}
.panel {
    padding: clamp(22px, 3vw, 36px);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
}
.panel__title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.chip {
    display: inline-flex;
    gap: 8px;
    align-items: baseline;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 13.5px;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.chip small { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.chip:hover { border-color: var(--blue); color: var(--blue-800); }
.chip.is-active { border-color: var(--blue); background: var(--blue-50); }

.resource { padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.resource:last-of-type { border-bottom: 0; }
.resource__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.resource__label { font-weight: 500; color: var(--ink); }
.resource__label small { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--faint); }
.resource__input { display: flex; align-items: baseline; gap: 8px; }
.resource__input input {
    width: 112px;
    padding: 8px 10px;
    border: 1px solid #c9d3e3;
    border-radius: var(--radius);
    font-family: var(--mono);
    font-size: 20px;
    text-align: right;
    color: var(--ink);
    -moz-appearance: textfield;
}
.resource__input input::-webkit-outer-spin-button,
.resource__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.resource__input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 112, 239, .16); }
.resource__input span { font-family: var(--mono); font-size: 13px; color: var(--muted); min-width: 34px; }
.resource__scale { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

.range {
    --pct: 50%;
    width: 100%;
    height: 28px;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.range:focus { outline: none; }
.range::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--blue) 0 var(--pct), var(--line) var(--pct) 100%);
}
.range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -9px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(11, 26, 54, .25);
}
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(21, 112, 239, .25); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--blue); }
.range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(11, 26, 54, .25);
}

.configurator__aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.configurator__aside .receipt { --receipt-behind: var(--paper); }

@media (max-width: 960px) {
    .configurator { grid-template-columns: 1fr; }
    .configurator__aside { position: static; }
}

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

.contact {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
    padding-block: clamp(40px, 6vw, 72px) var(--section);
}
.channels { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.channels li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.channels strong { display: block; font-weight: 500; color: var(--ink); }
.channels span { display: block; margin: 2px 0 4px; font-size: 14.5px; color: var(--muted); }
.channels a { font-family: var(--mono); font-size: 14px; }

.dept { display: flex; flex-wrap: wrap; gap: 8px; }
.dept label {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    color: var(--ink-2);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.dept input { position: absolute; opacity: 0; pointer-events: none; }
.dept label:has(input:checked) { border-color: var(--blue); background: var(--blue-50); color: var(--blue-800); }
.dept label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

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

/* --------------------------------------------------------- about & network */

.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.member { padding: 24px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.member__initial {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 6px;
    background: var(--blue-50);
    color: var(--blue-800);
    font-size: 20px;
    font-weight: 500;
}
.member strong { display: block; font-weight: 500; color: var(--ink); }
.member span { font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
    .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.diagram { padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.diagram svg { width: 100%; height: auto; }
.diagram__caption { margin-top: 16px; font-size: 14px; color: var(--muted); }
.diagram text { font-family: var(--font); }
.diagram .mono-text { font-family: var(--mono); }

.locations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.location { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.location__code { display: inline-block; margin-bottom: 14px; padding: 3px 8px; border-radius: 4px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.location h3 { margin-bottom: 12px; font-size: 1.15rem; font-weight: 500; }
.location ul { margin: 0; padding: 0; list-style: none; }
.location li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.location li a { color: var(--ink-2); }
.location li span { font-family: var(--mono); font-size: 12.5px; color: var(--blue); }

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

.uplinks { width: 100%; border-collapse: collapse; font-size: 15px; }
.uplinks th, .uplinks td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; }
.uplinks th { font-weight: 400; color: var(--ink); }
.uplinks td { font-family: var(--mono); font-size: 13.5px; color: var(--ink); text-align: right; }

/* ------------------------------------------------------------------ legal */

.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding-block: clamp(40px, 6vw, 72px) var(--section); }
.toc { position: sticky; top: 24px; font-size: 14px; }
.toc h2 { margin-bottom: 10px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); line-height: 1.4; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); text-decoration: none; }

.prose { max-width: 44em; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.4em 0 .7em; font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; scroll-margin-top: 24px; }
.prose h3 { margin: 1.8em 0 .5em; font-size: 1.1rem; font-weight: 500; }
.prose p, .prose li { line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose .meta { font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
    .legal { grid-template-columns: 1fr; }
    .toc { position: static; }
}

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

.site-footer {
    position: relative;
    margin-top: clamp(96px, 12vw, 170px);
    background: var(--footer);
    color: rgba(255, 255, 255, .78);
    isolation: isolate;
}
.site-footer__wave {
    position: absolute;
    left: 0;
    bottom: calc(100% - 1px);
    width: 100%;
    height: clamp(70px, 10vw, 150px);
    z-index: -1;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
    gap: 40px 32px;
    padding-block: clamp(24px, 3vw, 40px) 48px;
}
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 22em; font-size: 14.5px; line-height: 1.6; }
.footer-brand a.mail { color: #fff; font-family: var(--mono); font-size: 14px; }
.footer-col h2 {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col a { display: inline-block; padding: 4px 0; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    padding-block: 22px 28px;
    border-top: 1px solid rgba(255, 255, 255, .22);
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
}
.footer-bottom a { color: inherit; }

@media (max-width: 960px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}

/* ----------------------------------------------------------------- errors */

.error-page { padding-block: clamp(64px, 12vw, 160px); }
.error-page__code { margin-bottom: 20px; font-family: var(--mono); font-size: 14px; color: var(--blue); }
.error-page .actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 32px; }

/* -------------------------------------------------------------- utilities */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.hide-sm { }
@media (max-width: 600px) {
    .hide-sm { display: none; }
}

.phero__facts a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------- card field */

.card-field__frame {
    position: relative;
    min-height: 178px;
}
.card-field__frame [data-card-element] { margin: 0 -3px; }
.card-field__frame.is-invalid { outline: 1px solid var(--red); outline-offset: 6px; border-radius: 4px; }
.card-field__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    font-size: 14px;
    color: var(--muted);
}
.card-field__loading[hidden] { display: none; }
.card-field__note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--muted);
}
.card-field__note .icon { margin-top: 2px; color: var(--green); }
.card-field__brands { margin: 6px 0 0 26px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.card-field .field__error { margin-top: 10px; }

/* 3-D Secure: the bank's window opens over the page (Evervault). */
.three-ds { margin-top: 28px; max-width: 560px; }
.three-ds__loading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 18px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    font-size: 14px;
    color: var(--muted);
}
.three-ds__loading[hidden] { display: none; }

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--line);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn .icon { width: 16px; height: 16px; }

/* =================================================================== motion
 * Kept deliberately quiet: things settle into place once, a few details
 * move where movement explains something. Everything here switches off for
 * visitors who ask for reduced motion.
 * ======================================================================== */

@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* hero copy settles in once on load */
.js .hero--home .hero__content > * { animation: fade-up .9s var(--ease-out) backwards; }
.js .hero--home .hero__content > :nth-child(2) { animation-delay: .08s; }
.js .hero--home .hero__content > :nth-child(3) { animation-delay: .16s; }
.js .hero--home .hero__content > :nth-child(4) { animation-delay: .24s; }
.js .hero--home .hero__content > :nth-child(5) { animation-delay: .32s; }
.hero--page .display, .phero h1 { animation: fade-up .9s var(--ease-out) backwards .05s; }
.hero--page .lead, .phero .lead { animation: fade-up .9s var(--ease-out) backwards .15s; }

/* products menu: groups arrive one after another */
.mega__group, .mega__foot {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .4s var(--ease-out);
}
.mega.is-open .mega__group, .mega.is-open .mega__foot {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 3) * 50ms + 40ms);
}

.mobile-nav__group, .mobile-nav__actions {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .45s var(--ease-out);
}
.mobile-nav.is-open .mobile-nav__group, .mobile-nav.is-open .mobile-nav__actions {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}

/* data lanes: faint light drifting through the page heroes */
.lanes { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lanes i { position: absolute; left: 0; right: 0; top: var(--y); height: 1px; background: rgba(255, 255, 255, .05); }
.lanes i::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 140px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(200, 225, 255, .5));
    animation: lane var(--t, 9s) linear infinite;
    animation-delay: var(--d, 0s);
}
@keyframes lane {
    from { transform: translateX(-160px); }
    to { transform: translateX(100vw); }
}

/* content further down rises into place as it arrives */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform 1s var(--ease-out);
    transition-delay: calc(var(--ri, 0) * 80ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* answers slide open where the browser can animate to auto height */
@supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content {
        height: 0;
        overflow: clip;
        transition: height .4s var(--ease-out), content-visibility .4s allow-discrete;
    }
    .faq details[open]::details-content { height: auto; }
}

.related a { transition: border-color .2s ease, box-shadow .3s ease; }

/* --------------------------------------------------- why Wickbay, scrolled */

.story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}
.story__steps { counter-reset: step; }
.story__step {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-content: start;
    gap: 6px 12px;
    min-height: 30vh;
    padding: 28px 0 32px;
    border-top: 1px solid var(--line);
}
.story__step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    grid-row: span 3;
    padding-top: 4px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--blue);
    transition: color .4s ease;
}
/* the top rule fills in blue for the paragraph being read */
.story__step::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .7s var(--ease-out);
}
.story__step.is-active::after { transform: scaleX(1); }
.story__step h3 { font-size: 1.25rem; font-weight: 500; transition: color .4s ease; }
.story__step p { margin: 0; color: var(--muted); max-width: 34em; transition: color .4s ease; }
.js .story__step:not(.is-active)::before { color: var(--faint); }
.js .story__step:not(.is-active) h3 { color: #8c98b2; }
.js .story__step:not(.is-active) p { color: #a5afc3; }
.story__more { margin: 0; padding-top: 28px; border-top: 1px solid var(--line); }

.story__stage {
    position: sticky;
    top: 104px;
    aspect-ratio: 6 / 5;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(150deg, #0a64dd 0%, #1675ef 55%, #3b8af0 100%);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}
.story__stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(118deg, transparent 0 30%, rgba(255, 255, 255, .06) 30% 46%, transparent 46%);
}

.scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(.97);
    transition: opacity .55s ease, transform .8s var(--ease-out);
}
.story__stage[data-scene="1"] .scene--1,
.story__stage[data-scene="2"] .scene--2,
.story__stage[data-scene="3"] .scene--3,
.story__stage[data-scene="4"] .scene--4 { opacity: 1; transform: none; }

.scene text { font-family: var(--font); fill: #fff; }
.scene .scene__big { font-size: 78px; font-weight: 300; letter-spacing: -.04em; }
.scene .scene__small,
.scene .scene__label { font-size: 14px; fill: rgba(255, 255, 255, .74); }
.scene .scene__value { font-size: 17px; }
.scene__grid { stroke: rgba(255, 255, 255, .16); stroke-width: 1; stroke-dasharray: 2 6; }

/* 1: heartbeat */
.ecg { fill: none; stroke: #fff; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.ecg--ghost { stroke: rgba(255, 255, 255, .18); }
.ecg:not(.ecg--ghost) { stroke-dasharray: 1 1; animation: ecg 3.2s linear infinite; }
.ecg__dot { fill: #fff; }
@keyframes ecg {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

/* 2: filtering */
.lane { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.lane--through { stroke: rgba(255, 255, 255, .22); }
.pkt--good { fill: #fff; }
.pkt--bad { fill: #ffb39b; }
.burst { fill: none; stroke: #ffb39b; stroke-width: 2; }
.wall rect { fill: #fff; opacity: .92; }
.server > rect:first-child { fill: #fff; }
.server .server__slot { fill: #d3e4fc; }
.server__led { fill: #1fbf6a; }

/* 3: hardware */
.chassis { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .6); stroke-width: 1.5; }
.fan { transform-box: fill-box; transform-origin: center; animation: spin 2.6s linear infinite; }
.fan circle { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .5); }
.fan path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.cpu { fill: rgba(255, 255, 255, .12); stroke: #fff; stroke-width: 1.5; }
.cpu__die { fill: #fff; opacity: .9; }
.dimm { fill: #fff; opacity: .85; }
.disk { fill: rgba(255, 255, 255, .12); stroke: rgba(255, 255, 255, .8); }
.disk__led { fill: #7dffb5; }
.nic { fill: #fff; }
.leader { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.2; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.story__stage[data-scene="3"] .leader { animation: draw .9s ease-in-out forwards .2s; }
.scene--3 .spec { opacity: 0; transition: opacity .5s ease; }
.story__stage[data-scene="3"] .spec { opacity: 1; transition-delay: .7s; }

/* 4: around the clock */
.dial__track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 6; }
.dial__ring { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.story__stage[data-scene="4"] .dial__ring { animation: draw 1.6s ease-in-out forwards .2s; }
.dial__tick { stroke: rgba(255, 255, 255, .45); stroke-width: 2; stroke-linecap: round; }
.dial__tick--major { stroke: #fff; stroke-width: 2.5; }
.scene .dial__hour { font-size: 12px; fill: rgba(255, 255, 255, .7); }
.dial__hand { transform-box: view-box; transform-origin: 240px 190px; transform: rotate(var(--angle, 0deg)); transition: transform 1.2s var(--ease-out); }
.dial__hand line { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.dial__hand circle { fill: #7dffb5; }
.dial__hub { fill: #fff; }
.scene .dial__time { font-size: 46px; font-weight: 300; letter-spacing: -.03em; paint-order: stroke; stroke: #1571ee; stroke-width: 10px; stroke-linejoin: round; }
.scene [data-clock-caption] { paint-order: stroke; stroke: #1571ee; stroke-width: 8px; stroke-linejoin: round; }
.dial__live { fill: #7dffb5; animation: blink 2.4s ease-in-out infinite; }

@media (max-width: 900px) {
    .story { grid-template-columns: 1fr; gap: 24px; }
    .story__stage {
        order: -1;
        z-index: 2;
        top: 10px;
        justify-self: center;
        width: min(100%, 460px);
    }
    .story__step { min-height: 40vh; }
}

/* -------------------------------------------- billing switch with a thumb */

.cycle-switch { position: relative; }
.cycle-switch label { z-index: 1; }
.cycle-switch__thumb {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: var(--w, 0);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 6px 16px -8px rgba(10, 6, 40, .6);
    transform: translateX(var(--x, 4px));
    transition: transform .45s var(--ease-out), width .45s var(--ease-out);
}
.cycle-switch.has-thumb label:has(input:checked) { background: transparent; }

/* prices settle in when the billing period changes */
.plan__amount .ch { display: inline-block; animation: ch-in .5s var(--ease-out) backwards; animation-delay: calc(var(--i) * 25ms); }
@keyframes ch-in { from { opacity: 0; transform: translateY(.4em); } }

/* ------------------------------------------- the front panel on plan cards */

.plan { overflow: hidden; border-top: 0; }
.plan--featured { border-top: 0; box-shadow: 0 0 0 2px var(--blue), var(--shadow-lg); }

.plan__face {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 54px;
    margin: -28px -28px 24px;
    padding: 0 18px;
    background: linear-gradient(180deg, var(--metal-1), var(--metal-2));
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.plan__leds { display: grid; gap: 5px; }
.plan__leds i { width: 6px; height: 6px; border-radius: 50%; background: var(--led-green); box-shadow: 0 0 7px var(--led-green); }
.plan__leds i + i { background: var(--led-blue); box-shadow: 0 0 7px var(--led-blue); animation: blink 2.2s ease-in-out infinite; }
.plan__bays { flex: 1; display: flex; gap: 4px; height: 30px; }
.plan__bays i {
    position: relative;
    flex: 0 1 46px;
    border-radius: 2px;
    background: linear-gradient(180deg, #2b3a69, #1c284e);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.plan__bays b {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 4px;
    height: 4px;
    margin-top: -2px;
    border-radius: 50%;
    background: var(--led-green);
    box-shadow: 0 0 5px var(--led-green);
    animation: blink 3s ease-in-out infinite;
}
.plan__cores { flex: 1; display: flex; gap: 4px; }
.plan__cores i { width: 14px; height: 14px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.plan__cores i.is-on { background: var(--led-blue); box-shadow: 0 0 8px rgba(95, 179, 255, .55); }
.plan__ports { flex: 1; display: flex; gap: 4px; }
.plan__ports i { position: relative; width: 20px; height: 16px; border-radius: 2px; background: #060d21; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .07); }
.plan__ports i.is-up::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 2px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--led-amber);
    animation: blink 1.4s ease-in-out infinite;
}
.plan__badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 2px;
    background: #e9eef7;
    color: #1b2a4b;
    font-size: 11.5px;
    line-height: 1.5;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .45);
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; }
    .lanes, .diagram__traffic { display: none; }
}

/* home hero: the city rises right under the key figures */
.hero--home .hero__facts { width: max-content; max-width: 100%; }
@media (min-width: 1000px) {
    .hero--home .hero__scene { margin-top: calc(min(1180px, 100vw) * -.085); }
}

/* =========================================================== refinements */

/* two-tone headlines: the second half of a headline steps back */
.soft { color: #8a95ad; }
.on-dark .soft { color: rgba(255, 255, 255, .56); }

/* header: its first state is applied without animation (see app.js) */
.site-header.no-transition,
.site-header.no-transition * { transition: none !important; }

/* ---------------------------------------------------------------- currency */

/* every price carries all symbols; <html data-currency> picks the visible one */
.cur { display: none; }
html[data-currency="USD"] .cur-usd,
html[data-currency="EUR"] .cur-eur,
html[data-currency="GBP"] .cur-gbp { display: inline; }

.currency-switch {
    --cs-line: rgba(255, 255, 255, .32);
    --cs-active: rgba(255, 255, 255, .18);
    display: inline-flex;
    flex: none;
    padding: 3px;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px var(--cs-line);
}
.currency-switch a {
    padding: 6px 9px;
    border-radius: 6px;
    color: inherit;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1;
    opacity: .72;
    transition: background-color .15s ease, opacity .15s ease;
}
.currency-switch a:hover { text-decoration: none; opacity: 1; }
html[data-currency="USD"] .currency-switch [data-currency-option="USD"],
html[data-currency="EUR"] .currency-switch [data-currency-option="EUR"],
html[data-currency="GBP"] .currency-switch [data-currency-option="GBP"] { opacity: 1; background: var(--cs-active); }

.site-header--solid .currency-switch,
.site-header.is-scrolled .currency-switch,
.mobile-nav .currency-switch { --cs-line: var(--line); --cs-active: var(--blue-50); }
.site-header--solid .currency-switch a,
.site-header.is-scrolled .currency-switch a,
.mobile-nav .currency-switch a { color: var(--ink); }

.currency-switch--footer { margin-left: 12px; vertical-align: middle; }
.footer-bottom .currency-switch a { padding: 5px 8px; font-size: 12px; }

.mobile-nav__currency {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 14px;
    font-size: 15px;
    color: var(--muted);
}

/* ------------------------------------------------------- ordering, in steps */

.journey {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin: clamp(40px, 6vw, 64px) 0 0;
    padding: 0;
    list-style: none;
}
/* the line the steps sit on */
.journey::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 0;
    top: 11px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12));
}
/* one packet travelling along it */
.journey::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px 3px rgba(150, 200, 255, .65);
    animation: journey 8s ease-in-out infinite;
}
@keyframes journey {
    0% { left: 12px; opacity: 0; }
    8% { opacity: 1; }
    82% { opacity: 1; }
    92%, 100% { left: calc(100% - 8px); opacity: 0; }
}
.journey__step { position: relative; padding-top: 46px; }
.journey__node {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 6px rgba(255, 255, 255, .06);
}
.journey__node::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--led-blue);
}
.journey h3 { margin-bottom: 8px; font-size: 1.2rem; font-weight: 500; color: #fff; }
.journey p { margin: 0; max-width: 22em; font-size: 15px; line-height: 1.55; color: #aab6cf; }

@media (max-width: 860px) {
    .journey { grid-template-columns: 1fr; gap: 28px; }
    .journey::before { left: 11px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; background: rgba(255, 255, 255, .3); }
    .journey::after { display: none; }
    .journey__step { padding: 0 0 0 48px; }
}

/* ---------------------------------------------------------------- CTA panel */

.cta-wrap { margin-top: var(--section); }
.cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    gap: 32px 64px;
    padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: inset 0 0 0 1px var(--line-2);
}
.cta__copy { max-width: 40em; }
.cta__net {
    position: absolute;
    top: -34px;
    right: -14px;
    z-index: -1;
    width: min(360px, 40%);
    height: auto;
}
.cta__net path { fill: none; stroke: #cfe0fa; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cta__net .cta__net-faint { stroke: #e2ebf8; }
.cta__ring { fill: #fff; stroke: #cfe0fa; stroke-width: 2; }
.cta__node { fill: #9cc0f6; }
.cta__mail { font-size: 15px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.cta__mail:hover { color: var(--blue); text-decoration-color: currentColor; }

@media (max-width: 760px) {
    .cta__net { width: 62%; opacity: .7; }
}

@media (prefers-reduced-motion: reduce) {
    .journey::after { display: none; }
}


/* ============================================================ accounts */

/*
 * Dashboard and admin: the same shell for customers and the team. Calm,
 * dense and readable; the marketing pages stay the loud part of the site.
 */

body.is-app { background: var(--paper); }

.nav__link { white-space: nowrap; }
.nav__link--account .icon { width: 16px; height: 16px; }
@media (max-width: 1240px) {
    .nav__account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .nav__link--account { padding-inline: 10px; }
}

.btn--danger { color: var(--red); }
.btn--outline.btn--danger:hover { border-color: var(--red); color: var(--red); }
.btn--soldout { background: var(--line-2); color: var(--muted); cursor: default; }
.btn--soldout:hover { background: var(--line-2); }

.text-button {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: var(--blue);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-button--danger { color: var(--red); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-stack { display: grid; justify-items: start; gap: 12px; }

.textarea--sm { min-height: 104px; }
.check__hint { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.form-narrow { max-width: 680px; }
.flush { display: block; margin: 0; }

/* --------------------------------------------------------------- shell */

.dash {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: clamp(24px, 3.5vw, 48px);
    align-items: start;
    padding-block: clamp(28px, 4vw, 48px) 72px;
}

.dash__side {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: grid;
    gap: 18px;
}
.dash__who {
    display: grid;
    gap: 2px;
    padding: 0 12px 16px;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}
.dash__who strong { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash__who span { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dash__nav { display: grid; gap: 2px; }
.dash__group {
    margin: 14px 12px 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--faint);
}
.dash__group:first-child { margin-top: 0; }
.dash__nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius);
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease;
}
.dash__nav a:hover { background: #fff; color: var(--ink); text-decoration: none; }
.dash__nav a[aria-current="page"] {
    background: #fff;
    color: var(--blue-800);
    box-shadow: inset 3px 0 0 var(--blue), 0 1px 2px rgba(11, 26, 54, .06);
}
.dash__count {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.dash__logout { padding: 14px 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.dash__logout .text-button { color: var(--muted); }

.dash__main { display: grid; gap: 20px; min-width: 0; }
.dash__main > .alert { margin: 0; }

.dash__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 4px;
}
.dash__head .h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem); font-weight: 600; letter-spacing: -.025em; }
.dash__head .muted { max-width: 46em; margin: 8px 0 0; }
.dash__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dash__state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.crumbs-dash { margin: 0 0 -8px; font-size: 13.5px; color: var(--faint); }
.crumbs-dash a { color: var(--muted); }

@media (max-width: 1100px) {
    .dash { grid-template-columns: 1fr; gap: 20px; }
    .dash__side { position: static; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; }
    .dash__nav { grid-column: 1 / -1; }
    .dash__who { order: 2; padding: 0; border: 0; }
    .dash__who strong { display: none; }
    .dash__nav {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        margin-inline: calc(var(--gutter) * -1);
        padding: 2px var(--gutter) 6px;
        scrollbar-width: none;
    }
    .dash__nav::-webkit-scrollbar { display: none; }
    .dash__group { display: none; }
    .dash__nav a { flex: none; background: #fff; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
    .dash__nav a[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--blue); }
    .dash__logout { order: 3; padding: 0; border: 0; }
}

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

.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.dgrid__main, .dgrid__side { display: grid; gap: 20px; min-width: 0; }
@media (max-width: 1240px) and (min-width: 1101px), (max-width: 900px) {
    .dgrid { grid-template-columns: 1fr; }
}

.dcard {
    display: block;
    min-width: 0;
    padding: clamp(18px, 2.4vw, 26px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 1px 2px rgba(11, 26, 54, .04);
}
.dcard.form-grid { display: grid; }
.dcard > .h3 { margin-bottom: 14px; }
.dcard.form-grid > .h3 { margin-bottom: 0; }
.dcard__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 16px;
}
.dcard__note { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.dcard--accent { border-color: #b9d3fb; box-shadow: inset 0 3px 0 var(--blue), 0 8px 24px -16px rgba(21, 112, 239, .45); }
.dcard .btn--block { margin-top: 14px; }

.empty {
    padding: clamp(32px, 5vw, 56px) 24px;
    border: 1px dashed #c9d3e3;
    border-radius: var(--radius-lg);
    background: #fff;
    text-align: center;
}
.empty .muted { margin: 8px auto 20px; max-width: 36em; }
.empty .muted:last-child { margin-bottom: 0; }

/* key / value lists */
.kv { display: grid; margin: 0; }
.kv > div {
    display: grid;
    grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line-2);
    font-size: 14.5px;
}
.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.kv dd small { color: var(--muted); }
.kv__text { white-space: normal; line-height: 1.55; }
.kv--access > div { grid-template-columns: minmax(110px, 28%) minmax(0, 1fr); align-items: center; padding: 13px 0; }

.secret { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.secret code {
    padding: 5px 9px;
    border-radius: 5px;
    background: var(--paper);
    box-shadow: inset 0 0 0 1px var(--line-2);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 14px;
    overflow-wrap: anywhere;
}
.secret[data-secret]:not(.is-shown) code { color: transparent; text-shadow: 0 0 7px rgba(11, 26, 54, .55); user-select: none; }
.secret .text-button { font-size: 13.5px; }

/* ---------------------------------------------------------------- tables */

.dtable-wrap { overflow-x: auto; margin-inline: -4px; padding-inline: 4px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dtable th {
    padding: 0 12px 10px;
    border-bottom: 1px solid var(--line);
    color: var(--faint);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}
.dtable td { padding: 12px; border-bottom: 1px solid var(--line-2); color: var(--ink); vertical-align: top; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable th:first-child, .dtable td:first-child { padding-left: 0; }
.dtable th:last-child, .dtable td:last-child { padding-right: 0; }
.dtable td small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.dtable .num { text-align: right; white-space: nowrap; }
.dtable .nowrap, .dtable a.mono { white-space: nowrap; }
.dtable small.mono, .dtable small .mono { overflow-wrap: anywhere; }
.dtable__end { text-align: right; white-space: nowrap; }
.dtable__end > * + * { margin-left: 12px; }
.dtable__end--stack > * { display: block; }
.dtable__end--stack > * + * { margin: 4px 0 0; }
.dtable__end--stack .pop { display: block; }
.dtable tbody tr { transition: background-color .12s ease; }
.dtable tbody tr:hover { background: #fafbfd; }
.dtable tr.is-muted td { color: var(--faint); }
.dtable tr.is-muted td a { color: var(--muted); }
.dtable .badge { white-space: nowrap; }

/* ---------------------------------------------------------------- badges */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px 3px 8px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    vertical-align: middle;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--ok { background: #e7f6ee; color: #0d6a3a; }
.badge--wait { background: #fff4e0; color: #8a5300; }
.badge--info { background: var(--blue-50); color: var(--blue-800); }
.badge--stop { background: #fdeceb; color: #a1251b; }
.badge--muted { background: #eef0f4; color: #4d5870; }

/* Invoices (admin) */
.pdf-frame { display: block; width: 100%; height: min(1180px, 82vh); border: 0; border-radius: var(--radius-lg); background: #eef0f4; }
.dcard--flush { padding: 0; overflow: hidden; }
.dcard .h3 .optional { font-size: 14px; font-weight: 400; color: var(--faint); }
.input--sm { padding: 8px 12px; font-size: 14.5px; }
.input.num { text-align: right; font-variant-numeric: tabular-nums; }
.invoice-lines { container-type: inline-size; }
.invoice-lines__head, .invoice-line { display: grid; grid-template-columns: minmax(0, 1fr) 84px 118px 100px 36px; gap: 10px; align-items: start; }
.invoice-lines__head { padding-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.invoice-lines__head .num { text-align: right; }
.invoice-line { padding: 12px 0; border-top: 1px solid var(--line-2); }
.invoice-line__details { margin-top: 6px; }
.invoice-line__field { display: block; margin: 0; }
.invoice-line__label { display: none; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.invoice-line__amount { padding-top: 13px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.invoice-line .icon-button { margin-top: 6px; }
@container (max-width: 520px) {
    .invoice-lines__head { display: none; }
    .invoice-line { grid-template-columns: repeat(3, minmax(0, 1fr)) 36px; }
    .invoice-line__desc { grid-column: 1 / -1; }
    .invoice-line__label { display: block; }
    .invoice-line__amount { padding-top: 0; }
    .invoice-line__amount [data-invoice-amount] { display: block; padding-top: 13px; }
    .invoice-line .icon-button { margin-top: 24px; }
}
.icon-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: none;
    color: var(--muted);
    cursor: pointer;
}
.icon-button:hover { border-color: var(--line); color: var(--red); }
.icon-button .icon { width: 16px; height: 16px; }
.invoice-sum { margin-top: 4px; }
[data-invoice-paid-fields][hidden] { display: none; }
.invoice-sum dd { text-align: right; font-variant-numeric: tabular-nums; }
.invoice-sum__total dt, .invoice-sum__total dd { font-weight: 600; color: var(--ink); }

/* --------------------------------------------------------- service rows */

.svc {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    gap: 16px 28px;
    align-items: center;
    padding: 20px clamp(18px, 2.4vw, 26px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 1px 2px rgba(11, 26, 54, .04);
}
.svc__main { display: grid; gap: 3px; min-width: 0; }
.svc__name { color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.svc__name:hover { color: var(--blue); text-decoration: none; }
.svc__spec { color: var(--ink-2); font-size: 14px; }
.svc__meta { color: var(--faint); font-size: 13.5px; }
.svc__state { display: grid; justify-items: start; gap: 6px; }
.svc__state p { margin: 0; color: var(--muted); font-size: 14px; }
.svc__actions { display: flex; gap: 8px; }
.soon { color: #8a5300; font-weight: 600; }
@media (max-width: 760px) {
    .svc { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- pagination */

.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14.5px; }
.pager__link { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 500; }
.pager__link:hover { border-color: var(--ink); text-decoration: none; }
.pager__link.is-disabled { color: var(--faint); pointer-events: none; background: transparent; }
.pager__info { color: var(--muted); }

/* ------------------------------------------------------------------ admin */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 16px 18px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tile:hover { border-color: #b7c4da; text-decoration: none; box-shadow: 0 6px 18px -12px rgba(11, 26, 54, .35); }
.tile__label { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.tile__value { font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--faint); }
.tile__hint { color: var(--faint); font-size: 12.5px; }
.tile--due { border-color: #b9d3fb; }
.tile--due::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); background: var(--blue); }
.tile--due .tile__value { color: var(--blue-800); }

.todo { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; color: var(--ink-2); font-size: 14.5px; }
.todo strong { color: var(--ink); font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
}
.filters a:hover { border-color: #b7c4da; text-decoration: none; }
.filters a span { color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.filters a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.filters a[aria-current="true"] span { color: rgba(255, 255, 255, .7); }

.searchbar { display: flex; gap: 10px; }
.searchbar .input { max-width: 520px; padding-block: 10px; font-size: 15px; }
.searchbar .btn { flex: none; }

.note-form { display: flex; gap: 10px; margin-bottom: 18px; }
.note-form .input { padding-block: 10px; font-size: 15px; }
.note-form .btn { flex: none; }

.events { margin: 0; padding: 0; list-style: none; }
.events__item {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    padding: 9px 0 9px 18px;
    font-size: 14px;
}
.events__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c9d3e3;
}
.events__item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 26px;
    bottom: -6px;
    width: 1px;
    background: var(--line-2);
}
.events__item--paid::before, .events__item--renewed::before, .events__item--delivered::before, .events__item--payment::before { background: var(--green); }
.events__item--note::before { background: var(--blue); }
.events__item--expired::before, .events__item--suspended::before, .events__item--cancelled::before, .events__item--refund::before { background: var(--red); }
.events__when { color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.events__what { color: var(--ink); overflow-wrap: anywhere; }
.events__what small { margin-left: 6px; color: var(--faint); }
.events__item--note .events__what { color: var(--blue-800); }
@media (max-width: 600px) {
    .events__item { grid-template-columns: 1fr; gap: 0; }
}

/* refund popover */
.pop { position: relative; display: inline-block; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop__body {
    position: absolute;
    z-index: 5;
    right: 0;
    top: calc(100% + 8px);
    width: 280px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
    text-align: left;
    white-space: normal;
}

.plain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.plain-list small { display: block; }

.message-body { font-size: 16px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }

.settings-table { display: grid; gap: 8px; }
.settings-table__head,
.settings-table__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.settings-table__head { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.settings-table__row > span { font-size: 15px; color: var(--ink); }
.settings-table__row small { display: block; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------- sign in */

.auth {
    display: grid;
    place-items: start center;
    min-height: calc(100vh - var(--header-h) - 80px);
    padding: clamp(40px, 8vw, 96px) var(--gutter) 72px;
}
.auth__panel {
    display: grid;
    gap: 18px;
    width: min(100%, 460px);
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}
.auth__panel .eyebrow { margin-bottom: -6px; }
.auth__panel .h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); font-weight: 600; letter-spacing: -.025em; }
.auth__panel .alert { margin: 0; }
.auth__intro { margin: -6px 0 0; color: var(--muted); }
.auth__links { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.auth__note { margin: 0; padding-top: 16px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px; }

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

.footer-slim { border-top: 1px solid var(--line); background: #fff; }
.footer-slim__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 22px;
    color: var(--muted);
    font-size: 13.5px;
}
.footer-slim__bar a { color: var(--ink-2); }

/* -------------------------------------------------------------- receipt */

.receipt-page { background: var(--paper); }
.receipt-doc {
    max-width: 800px;
    margin: 40px auto;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--ink);
    font-size: 15px;
}
.receipt-doc__actions { display: flex; justify-content: flex-end; margin-bottom: 28px; }
.receipt-doc__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.receipt-doc__logo { margin-bottom: 14px; color: var(--ink); }
.receipt-doc__head p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.receipt-doc__title h1 { margin-bottom: 14px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.receipt-doc__title dl { display: grid; gap: 4px; margin: 0; font-size: 14px; }
.receipt-doc__title dl div { display: flex; justify-content: space-between; gap: 24px; }
.receipt-doc__title dt { color: var(--muted); }
.receipt-doc__title dd { margin: 0; }
.receipt-doc__title dd.mono { font-size: 14px; }
.receipt-doc__to { padding-block: 24px; }
.receipt-doc__to h2 { margin-bottom: 6px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.receipt-doc__to p { margin: 0; line-height: 1.55; }
.receipt-doc__lines { width: 100%; border-collapse: collapse; }
.receipt-doc__lines th { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.receipt-doc__lines td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.receipt-doc__lines td small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.receipt-doc__lines .num { padding-right: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt-doc__lines tfoot td { border-bottom: 0; font-weight: 600; }
.receipt-doc__refund td { color: var(--red); font-weight: 500; }
.receipt-doc__note { margin: 28px 0 0; color: var(--muted); font-size: 14px; }

@media print {
    .no-print { display: none !important; }
    .receipt-page { background: #fff; }
    .receipt-doc { margin: 0; padding: 0; border: 0; max-width: none; }
}

/* ------------------------------------------------------------------ VAT */

.summary__vat { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.phero__vat { margin: 14px 0 0; color: rgba(255, 255, 255, .72); font-size: 13.5px; }

.rates { border-top: 1px solid var(--line-2); padding-top: 14px; }
.rates > summary { cursor: pointer; color: var(--blue); font-size: 14.5px; font-weight: 500; }
.rates > .field__hint { margin: 10px 0 14px; }
.rates__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
.rates__item { display: grid; grid-template-columns: minmax(0, 1fr) 84px; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.rates__item .input { padding: 7px 10px; font-size: 14px; text-align: right; }

.dtable tfoot td { padding: 12px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.dtable tfoot td:first-child { padding-left: 0; }
.dtable tfoot td:last-child { padding-right: 0; }
.dtable tfoot .num { text-align: right; white-space: nowrap; }

.receipt-doc__lines tfoot .receipt-doc__sub td { font-weight: 400; color: var(--muted); border-bottom: 0; padding-block: 6px; }
