/* ZenB2B site styles.
   Colour tokens are copied from zendosoftware.ro (assets/css/main.css) so the company, ZendoAI and
   ZenB2B share one palette and the same dark mode; keep them in sync. Brand guide: ~/Code/zendo-brand.
   ZenB2B is the endorsed, established brand and keeps its own look on top of the shared tokens:
   square corners, full-bleed bands, the blue and grey data backgrounds, uppercase display headings
   (as on the original zenb2b.ro) and Red Hat Mono for EDI message codes (as on the business cards). */

/* Fonts are self-hosted (no visitor IPs sent to Google, one less connection). Variable woff2 files from
   Google Fonts, split latin / latin-ext like Google does; Romanian ă ș ț live in latin-ext. */
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url("/assets/fonts/red-hat-display-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url("/assets/fonts/red-hat-display-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 500 600; font-display: swap;
    src: url("/assets/fonts/red-hat-mono-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 500 600; font-display: swap;
    src: url("/assets/fonts/red-hat-mono-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --c-ink: 0 0 0;
    --c-body: 0 0 0;
    --c-muted: 110 110 110;       /* #6E6E6E */
    --c-muted-band: 88 88 88;     /* #585858: Graphite fails AA for small text on Mist, so bands use a darker grey */
    --c-primary: 2 116 190;       /* #0274BE */
    --c-primary-hover: 2 90 147;  /* #025A93 */
    --c-on-primary: 255 255 255;
    --c-link: 2 116 190;
    --c-accent: 0 159 255;        /* #009FFF */
    --c-tint: 238 240 241;        /* #EEF0F1 */
    --c-page: 255 255 255;
    --c-surface: 255 255 255;
    --c-line: 222 225 227;        /* #DEE1E3 */
    --c-band: 238 240 241;
    --c-shadow: 0 0 0;
    --c-on-image: 255 255 255;    /* text on the blue data band */
    --c-cta: 255 255 255;         /* button on the blue band */
    --c-on-cta: 2 116 190;
    --c-cta-hover: 238 240 241;
    --hero-img: url("/assets/img/bg2-light.webp");
    --page-img: url("/assets/img/bg1-lighter.webp");
    --band-img: url("/assets/img/bg1-dark.webp");
    --hero-fade: 255 255 255;
    --font: "Red Hat Display", system-ui, sans-serif;
    --mono: "Red Hat Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --header-h: 76px;
}

/* Dark mode. "Auto" follows the system setting; an explicit choice sets <html data-mode="light|dark">. */
@media (prefers-color-scheme: dark) {
    :root:not([data-mode="light"]) {
        color-scheme: dark;
        --c-ink: 236 239 242;         /* #ECEFF2 */
        --c-body: 214 219 224;        /* #D6DBE0 */
        --c-muted: 154 163 173;       /* #9AA3AD */
        --c-muted-band: 154 163 173;
        --c-primary: 59 155 224;      /* #3B9BE0, brand blue lifted for dark */
        --c-primary-hover: 99 178 235;
        --c-on-primary: 14 17 22;
        --c-link: 99 178 235;         /* #63B2EB */
        --c-accent: 77 184 255;       /* #4DB8FF */
        --c-tint: 24 30 38;           /* #181E26 */
        --c-page: 14 17 22;           /* #0E1116 */
        --c-surface: 22 27 34;        /* #161B22 */
        --c-band: 18 22 29;           /* #12161D */
        --c-line: 40 47 56;           /* #282F38 */
        --c-on-image: 236 239 242;
        --c-cta: 77 184 255;
        --c-on-cta: 14 17 22;
        --c-cta-hover: 125 203 255;
        --hero-img: url("/assets/img/bg2-darker.webp");
        --page-img: url("/assets/img/bg1-darker.webp");
        --band-img: url("/assets/img/bg2-darker.webp");
        --hero-fade: 14 17 22;
    }
    :root:not([data-mode="light"]) .light-only { display: none; }
    :root:not([data-mode="light"]) .dark-only { display: revert; }
}
:root[data-mode="dark"] {
    color-scheme: dark;
    --c-ink: 236 239 242;
    --c-body: 214 219 224;
    --c-muted: 154 163 173;
    --c-muted-band: 154 163 173;
    --c-primary: 59 155 224;
    --c-primary-hover: 99 178 235;
    --c-on-primary: 14 17 22;
    --c-link: 99 178 235;
    --c-accent: 77 184 255;
    --c-tint: 24 30 38;
    --c-page: 14 17 22;
    --c-surface: 22 27 34;
    --c-band: 18 22 29;
    --c-line: 40 47 56;
    --c-on-image: 236 239 242;
    --c-cta: 77 184 255;
    --c-on-cta: 14 17 22;
    --c-cta-hover: 125 203 255;
    --hero-img: url("/assets/img/bg2-darker.webp");
    --page-img: url("/assets/img/bg1-darker.webp");
    --band-img: url("/assets/img/bg2-darker.webp");
    --hero-fade: 14 17 22;
}
:root[data-mode="dark"] .light-only { display: none; }
:root[data-mode="dark"] .dark-only { display: revert; }
.dark-only { display: none; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: rgb(var(--c-page)); color: rgb(var(--c-body));
    font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font); font-weight: 700; color: rgb(var(--c-ink)); margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
code, .code { font-family: var(--mono); font-size: .92em; }
::selection { background-color: rgb(var(--c-accent) / .3); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid rgb(var(--c-link)); outline-offset: 3px;
}
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 60; background: rgb(var(--c-primary)); color: rgb(var(--c-on-primary)); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons: rectangular, as on the original zenb2b.ro */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 50px; padding: 0 28px; border: 0; border-radius: 0;
    font: 500 16px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn-primary { background: rgb(var(--c-primary)); color: rgb(var(--c-on-primary)); }
.btn-primary:hover { background: rgb(var(--c-primary-hover)); }
.btn-ghost { color: rgb(var(--c-ink)); box-shadow: inset 0 0 0 1.5px rgb(var(--c-ink) / .25); background: rgb(var(--c-page) / .6); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgb(var(--c-ink) / .6); }
.btn-cta { background: rgb(var(--c-cta)); color: rgb(var(--c-on-cta)); font-weight: 600; }
.btn-cta:hover { background: rgb(var(--c-cta-hover)); }
.btn-line { color: rgb(var(--c-on-image)); box-shadow: inset 0 0 0 1.5px rgb(var(--c-on-image) / .5); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px rgb(var(--c-on-image)); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.arrow { transition: transform .2s; }
a:hover > .arrow { transform: translateX(3px); }

/* Header */
.header {
    position: sticky; top: 0; z-index: 40;
    background: rgb(var(--c-page) / .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgb(var(--c-line));
}
.header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; text-decoration: none; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
    display: block; padding: 8px 12px; font-size: 15px; font-weight: 500; color: rgb(var(--c-body));
    text-decoration: none; border-bottom: 2px solid transparent;
}
.nav a:hover { color: rgb(var(--c-link)); }
.nav a[aria-current="page"] { color: rgb(var(--c-link)); border-bottom-color: rgb(var(--c-primary)); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn {
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 0;
    display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--c-muted));
    text-decoration: none; font: 600 13px var(--font); letter-spacing: .06em;
}
.icon-btn:hover { color: rgb(var(--c-ink)); background: rgb(var(--c-tint)); }
.tools .btn { margin-left: 8px; }
.search-btn { display: none; }
.js .search-btn { display: inline-flex; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu .panel {
    position: absolute; right: 0; top: calc(100% + 17px); width: min(320px, calc(100vw - 32px));
    background: rgb(var(--c-page)); border: 1px solid rgb(var(--c-line)); padding: 12px;
    box-shadow: 0 20px 40px -20px rgb(var(--c-shadow) / .3);
}
.menu .panel a { display: block; padding: 12px; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgb(var(--c-line)); }
.menu .panel a:last-child { border-bottom: 0; }
.menu .panel a.btn { margin-top: 8px; color: rgb(var(--c-on-primary)); border: 0; display: flex; }
@media (max-width: 1099px) {
    .header .nav, .tools > .btn { display: none; }
    .menu { display: block; }
    .header .wrap { gap: 16px; }
}
@media (max-width: 439px) {
    .header .wrap { gap: 8px; }
    .brand img { height: 24px; }
    .tools .icon-btn { width: 40px; }
}
@media (max-width: 379px) { #mode-btn { display: none; } } /* the footer has the mode switch too */

/* Site search */
.search {
    width: min(680px, calc(100vw - 32px)); max-height: min(640px, calc(100dvh - 32px)); margin: 12vh auto 0; padding: 0;
    border: 1px solid rgb(var(--c-line)); background: rgb(var(--c-page)); color: rgb(var(--c-body));
    box-shadow: 0 20px 40px -20px rgb(var(--c-shadow) / .3); overflow: hidden;
}
.search[open] { display: flex; flex-direction: column; }
.search::backdrop { background: rgb(var(--c-shadow) / .5); }
.search form { display: flex; align-items: center; gap: 4px; flex: none; padding: 8px; border-bottom: 1px solid rgb(var(--c-line)); }
.search input {
    flex: 1; min-width: 0; height: 44px; padding: 0 10px; border: 0; background: none; border-radius: 0;
    font: 500 17px var(--font); color: rgb(var(--c-ink));
}
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search-status { margin: 0; padding: 20px 18px; color: rgb(var(--c-muted)); }
.search-results { margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.search-results li + li { border-top: 1px solid rgb(var(--c-line)); }
.search-results a { display: block; padding: 14px 18px; text-decoration: none; color: inherit; }
.search-results a:hover, .search-results a:focus-visible { background: rgb(var(--c-tint)); }
.search-results b { display: block; font-weight: 600; color: rgb(var(--c-link)); }
.search-results p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; }
.search-results mark { background: none; color: rgb(var(--c-ink)); font-weight: 600; }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: rgb(var(--c-muted)); margin-bottom: 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: rgb(var(--c-line)); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: rgb(var(--c-link)); }

/* Eyebrow with the square marker (the ZenB2B "pixel") */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
    font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: rgb(var(--c-link));
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: rgb(var(--c-primary)); flex: none; }

/* Hero: grey data background, uppercase display heading */
.hero {
    position: relative; overflow: hidden;
    background: rgb(var(--c-band)) var(--hero-img) center / cover no-repeat;
    border-bottom: 1px solid rgb(var(--c-line));
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--hero-fade) / .78) 0%, rgb(var(--hero-fade) / .35) 60%, rgb(var(--hero-fade) / 0) 100%); }
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
@media (min-width: 1024px) { .hero .wrap { grid-template-columns: 1.2fr .8fr; gap: 64px; padding-top: 104px; padding-bottom: 112px; } }
.display {
    font-weight: 500; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.04;
    font-size: clamp(36px, 6.2vw, 68px); max-width: 15ch;
}
.display strong { font-weight: 800; color: rgb(var(--c-primary)); }
.lead { margin-top: 28px; max-width: 600px; font-size: 19px; line-height: 1.6; color: rgb(var(--c-body) / .82); }
@media (min-width: 1024px) { .lead { font-size: 20px; } }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Order-to-cash flow card in the hero (real product evidence, not illustration) */
.flow { background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line)); box-shadow: 0 30px 60px -30px rgb(var(--c-shadow) / .35); }
.flow-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid rgb(var(--c-line)); font-size: 13px; color: rgb(var(--c-muted)); }
.flow-head b { color: rgb(var(--c-ink)); font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: rgb(var(--c-link)); }
.live::before { content: ""; width: 8px; height: 8px; background: rgb(var(--c-accent)); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.flow ol { list-style: none; margin: 0; padding: 6px 0; }
.flow li { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 11px 18px; font-size: 14.5px; }
.flow li + li { border-top: 1px dashed rgb(var(--c-line)); }
.flow .msg { font: 600 13px var(--mono); color: rgb(var(--c-on-primary)); background: rgb(var(--c-primary)); padding: 4px 8px; text-align: center; }
.flow .dir { color: rgb(var(--c-muted)); font-size: 13px; white-space: nowrap; }
.flow-foot { padding: 12px 18px; border-top: 1px solid rgb(var(--c-line)); background: rgb(var(--c-tint)); font-size: 13px; color: rgb(var(--c-muted)); display: flex; justify-content: space-between; gap: 12px; }
.flow-foot strong { color: rgb(var(--c-ink)); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .live::before { animation: none; } html { scroll-behavior: auto; } }

/* Hero carousel: the cards share one grid cell, so the frame keeps the tallest card's height. The progress bar
   under the active tab is the timer: assets/site.js moves on when its animation ends. Hovering or focusing the
   carousel pauses it, .stopped ends it; with reduced motion there is no animation, so no rotation. */
.showcase { min-width: 0; display: flex; flex-direction: column; }
.sc-bar[hidden] { display: none; }
.sc-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.sc-bar button { font: 600 12px/1 var(--font); color: rgb(var(--c-muted)); background: rgb(var(--c-surface) / .85); border: 1px solid rgb(var(--c-line)); cursor: pointer; }
.sc-tabs button { flex: 1 1 auto; position: relative; padding: 9px 12px 10px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 479px) { .sc-tabs { gap: 3px; } .sc-tabs button { padding-inline: 7px; font-size: 11px; letter-spacing: .03em; } }
.sc-bar button:hover { color: rgb(var(--c-ink)); }
.sc-tabs [aria-selected="true"] { color: rgb(var(--c-ink)); background: rgb(var(--c-surface)); border-color: rgb(var(--c-primary)); }
.sc-tabs [aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(var(--c-primary)); transform-origin: left; animation: sc-progress 5.5s linear forwards; }
.showcase:hover .sc-tabs ::after, .showcase:focus-within .sc-tabs ::after, .showcase.offscreen .sc-tabs ::after { animation-play-state: paused; }
.showcase.stopped .sc-tabs ::after { animation: none; }
@keyframes sc-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sc-nav { order: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; } /* after the card, but first in tab order after the tabs */
.sc-all { font-size: 13px; font-weight: 600; color: rgb(var(--c-link)); text-decoration: none; white-space: nowrap; }
.sc-all:hover { text-decoration: underline; }
.sc-ctrl { display: flex; gap: 4px; }
.sc-nav button { width: 34px; height: 33px; display: grid; place-items: center; font-size: 15px; color: rgb(var(--c-ink)); }
.sc-pause span { width: 10px; height: 11px; border-inline: 3px solid currentColor; }
.showcase.stopped .sc-pause span { width: 0; height: 0; border-inline: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; margin-left: 3px; }
.sc-slides { display: grid; }
.sc-slide { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; transition: opacity .35s, visibility .35s; }
.sc-slide:not([data-on]) { opacity: 0; visibility: hidden; }
.sc-slide ol { flex: 1; }
.sc-slide .flow-foot a { font-weight: 600; color: rgb(var(--c-link)); text-decoration: none; white-space: nowrap; }
.sc-slide .flow-foot a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .sc-tabs [aria-selected="true"]::after { animation: none; } .sc-pause { display: none !important; } .sc-slide { transition: none; } }

/* Inner page hero: lighter grey data band */
.page-hero { position: relative; background: rgb(var(--c-band)) var(--page-img) center / cover no-repeat; border-bottom: 1px solid rgb(var(--c-line)); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--hero-fade) / .75), rgb(var(--hero-fade) / .2)); }
.page-hero .wrap { position: relative; padding-top: 48px; padding-bottom: 72px; }
@media (min-width: 1024px) { .page-hero .wrap { padding-top: 56px; padding-bottom: 96px; } }
.page-hero .display { font-size: clamp(32px, 5vw, 56px); max-width: 20ch; }
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { font-size: 14px; font-weight: 500; padding: 6px 12px; background: rgb(var(--c-page) / .85); border: 1px solid rgb(var(--c-line)); }

/* Sections and bands */
.section { padding: 80px 0; }
@media (min-width: 1024px) { .section { padding: 112px 0; } }
.section.band { background: rgb(var(--c-band)); }
.section.tight { padding-top: 0; }
.section h2, .h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.18; max-width: 760px; letter-spacing: -0.01em; }
.section .intro { margin-top: 20px; max-width: 720px; font-size: 18px; color: rgb(var(--c-muted)); }
.prose { max-width: 760px; }
.prose p { margin-top: 18px; }
.prose h2 { margin-top: 56px; font-size: clamp(26px, 3vw, 34px); }
.prose h3 { margin-top: 32px; font-size: 21px; }
.prose ul { padding-left: 0; list-style: none; margin: 18px 0 0; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: rgb(var(--c-primary)); }
.prose a { color: rgb(var(--c-link)); text-underline-offset: 3px; }
.split { display: grid; gap: 48px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } .split.wide-left { grid-template-columns: 1.3fr 1fr; } .split.guide { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); } }
@media (max-width: 1023px) { .guide aside { order: -1; } .guide aside .panel-box { position: static !important; } }

/* Square tiles (grid with shared 1px lines, the "square bands" look) */
.tiles { margin-top: 56px; display: grid; grid-template-columns: 1fr; border-top: 1px solid rgb(var(--c-line)); border-left: 1px solid rgb(var(--c-line)); }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiles.c3 { grid-template-columns: repeat(3, 1fr); } .tiles.c4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .tiles.c3 > :last-child:nth-child(3n+1), .tiles.c4 > :last-child:nth-child(4n+1) { grid-column: 1 / -1; } }
.tile {
    position: relative; display: flex; flex-direction: column; padding: 36px 32px 32px; background: rgb(var(--c-surface));
    border-right: 1px solid rgb(var(--c-line)); border-bottom: 1px solid rgb(var(--c-line));
    text-decoration: none; transition: background-color .25s;
}
.tile::after { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: rgb(var(--c-primary)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
a.tile:hover::after, a.tile:focus-visible::after { transform: scaleX(1); }
a.tile:hover { background: rgb(var(--c-tint) / .5); }
.band .tile { background: rgb(var(--c-page)); }
.tile h3 { margin-top: 24px; font-size: 21px; line-height: 1.3; }
.tile p { margin-top: 10px; color: rgb(var(--c-muted)); line-height: 1.6; }
.tile .more { margin-top: auto; padding-top: 24px; font-weight: 600; font-size: 15px; color: rgb(var(--c-link)); display: inline-flex; gap: 8px; }
.tile .codes { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.codes span, .code-chip { font: 500 12.5px var(--mono); padding: 3px 7px; background: rgb(var(--c-tint)); color: rgb(var(--c-ink)); }
.ico { width: 56px; height: 56px; background: rgb(var(--c-primary)); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ico svg { width: 30px; height: 30px; fill: currentColor; }
.ico.soft { background: rgb(var(--c-tint)); color: rgb(var(--c-link)); }
.num { font: 600 14px var(--mono); color: rgb(var(--c-link)); }

/* Managed scope list */
.scope { margin-top: 56px; display: grid; gap: 0; counter-reset: step; list-style: none; padding: 0; border-top: 1px solid rgb(var(--c-line)); }
@media (min-width: 900px) { .scope { grid-template-columns: repeat(4, 1fr); } }
.scope li { padding: 28px 24px 28px 0; border-bottom: 1px solid rgb(var(--c-line)); }
@media (min-width: 900px) { .scope li { padding: 32px 28px 32px 0; } .scope li:nth-child(4n+2), .scope li:nth-child(4n+3), .scope li:nth-child(4n+4) { padding-left: 28px; border-left: 1px solid rgb(var(--c-line)); } }
.scope li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 600 14px var(--mono); color: rgb(var(--c-link)); }
.scope h3 { margin-top: 12px; font-size: 18px; line-height: 1.35; }
.scope p { margin-top: 8px; font-size: 15.5px; color: rgb(var(--c-muted)); }

/* Retail chains wall: quiet, uniform, text only */
.wall { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgb(var(--c-line)); border-left: 1px solid rgb(var(--c-line)); list-style: none; padding: 0; }
@media (min-width: 640px) { .wall { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .wall { grid-template-columns: repeat(6, 1fr); } }
.wall li { padding: 22px 16px; text-align: center; font-weight: 700; font-size: 17px; color: rgb(var(--c-ink) / .62); border-right: 1px solid rgb(var(--c-line)); border-bottom: 1px solid rgb(var(--c-line)); background: rgb(var(--c-page)); }
.wall-note { margin-top: 16px; font-size: 14px; color: rgb(var(--c-muted)); }
.systems { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; font-weight: 600; color: rgb(var(--c-body)); }
.systems li.more { font-weight: 400; color: rgb(var(--c-muted)); }

/* Message table (solution pages) */
.msgs { margin-top: 8px; border-top: 1px solid rgb(var(--c-line)); }
.msgs > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgb(var(--c-line)); }
.msgs dt { font: 600 14px var(--mono); color: rgb(var(--c-link)); padding-top: 2px; }
.msgs dd { margin: 0; line-height: 1.55; }
.panel-box { background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line)); padding: 32px; }
.panel-box h2, .panel-box h3 { font-size: 22px; }
.label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--c-muted)); margin-bottom: 14px; }
.results { margin-top: 40px; display: grid; gap: 0; list-style: none; padding: 0; border-top: 3px solid rgb(var(--c-primary)); }
@media (min-width: 900px) { .results { grid-template-columns: repeat(var(--n, 3), 1fr); } }
.results li { padding: 28px 28px 28px 0; display: grid; gap: 10px; align-content: start; }
.results li b { font-size: 18px; font-weight: 600; color: rgb(var(--c-ink)); line-height: 1.35; }
.results li span { font-size: 15px; line-height: 1.6; color: rgb(var(--c-muted-band)); }
@media (max-width: 899px) { .results li + li { border-top: 1px solid rgb(var(--c-line)); } }
@media (min-width: 900px) { .results li + li { padding-left: 28px; border-left: 1px solid rgb(var(--c-line)); } }

/* Testimonials */
.quotes { margin-top: 56px; display: grid; gap: 24px; }
@media (min-width: 900px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line)); border-top: 3px solid rgb(var(--c-primary)); padding: 36px 32px; display: flex; flex-direction: column; margin: 0; }
.quote blockquote { margin: 0; }
.quote .hl { font-size: 21px; line-height: 1.45; font-weight: 600; color: rgb(var(--c-ink)); }
.quote .full { margin-top: 16px; color: rgb(var(--c-muted)); font-size: 16px; }
.quote figcaption { margin-top: auto; padding-top: 28px; display: flex; gap: 14px; align-items: center; }
.quote figcaption b { display: block; color: rgb(var(--c-ink)); font-weight: 600; }

/* Stats strip */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; border-left: 1px solid rgb(var(--c-line)); list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } .facts.two { grid-template-columns: repeat(2, 1fr); } }
.facts li { padding: 28px 24px; border-right: 1px solid rgb(var(--c-line)); border-bottom: 1px solid rgb(var(--c-line)); }
.facts b { display: block; font-size: 32px; font-weight: 700; color: rgb(var(--c-ink)); line-height: 1.1; letter-spacing: -0.01em; }
.facts span { display: block; margin-top: 6px; font-size: 15px; color: rgb(var(--c-muted)); }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid rgb(var(--c-line)); max-width: 900px; }
.faq details { border-bottom: 1px solid rgb(var(--c-line)); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative; font-size: 19px; font-weight: 600; color: rgb(var(--c-ink)); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
    background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; color: rgb(var(--c-link)); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; color: rgb(var(--c-body) / .85); max-width: 760px; }
.faq .a p + p, .faq .a p + ul, .faq .a ul + p { margin-top: 12px; }
.faq .a ul { margin: 12px 0 0; padding-left: 20px; }

/* Blue data band: one per page, the call to action */
.cta-band { position: relative; overflow: hidden; background: rgb(2 60 110) var(--band-img) center / cover no-repeat; color: rgb(var(--c-on-image)); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 20 45 / .55), rgb(0 20 45 / .05)); }
.cta-band .wrap { position: relative; padding-top: 88px; padding-bottom: 88px; display: grid; gap: 32px; align-items: end; }
@media (min-width: 1024px) { .cta-band .wrap { grid-template-columns: 1.4fr 1fr; padding-top: 112px; padding-bottom: 112px; } }
.cta-band h2 { color: inherit; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; font-weight: 500; text-transform: uppercase; max-width: 18ch; }
.cta-band p { margin-top: 20px; font-size: 18px; max-width: 560px; opacity: .9; }
.cta-band .actions { margin-top: 0; justify-content: flex-start; }
@media (min-width: 1024px) { .cta-band .actions { justify-content: flex-end; } .cta-band .wrap > div:last-child { text-align: right; } }
.cta-band .mail { display: block; margin-top: 16px; font-weight: 500; text-decoration: underline; text-decoration-color: rgb(var(--c-accent)); text-underline-offset: 4px; }

/* Endorsement strip: by Zendo Software, with ZendoAI as sibling */
.maker { display: grid; gap: 28px; align-items: center; border: 1px solid rgb(var(--c-line)); padding: 36px 32px; background: rgb(var(--c-surface)); }
@media (min-width: 900px) { .maker { grid-template-columns: auto 1fr auto; padding: 40px 48px; gap: 48px; } }
.maker img { height: 44px; width: auto; }
.maker p { color: rgb(var(--c-muted)); max-width: 640px; }
.maker p strong { color: rgb(var(--c-ink)); font-weight: 600; }
.text-link { font-weight: 600; color: rgb(var(--c-link)); text-decoration: none; white-space: nowrap; display: inline-flex; gap: 6px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Contact form */
.form { background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line)); border-top: 3px solid rgb(var(--c-primary)); padding: 28px; display: grid; gap: 18px; }
@media (min-width: 640px) { .form { padding: 36px; } .form .two { grid-template-columns: 1fr 1fr; } }
.form .two { display: grid; gap: 18px; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: rgb(var(--c-ink)); }
.form input, .form textarea, .form select {
    width: 100%; border-radius: 0; border: 1px solid rgb(var(--c-line)); background: rgb(var(--c-page));
    padding: 13px 14px; font: 400 16px var(--font); color: rgb(var(--c-body));
}
.form input:focus, .form textarea:focus { outline: none; border-color: rgb(var(--c-link)); box-shadow: 0 0 0 3px rgb(var(--c-accent) / .25); }
.form .note { font-size: 14px; color: rgb(var(--c-muted)); }
.form .note a { color: rgb(var(--c-link)); text-underline-offset: 2px; }
.form .btn { justify-self: start; }
.form .status { font-size: 15px; }
.form .status[data-state="ok"] { color: rgb(var(--c-ink)); font-weight: 600; }
.form .status[data-state="error"] { color: #C0392B; }
.hp { display: none; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid rgb(var(--c-line)); }
.contact-list li { padding: 16px 0; border-bottom: 1px solid rgb(var(--c-line)); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.contact-list span { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: rgb(var(--c-muted)); padding-top: 3px; }
.contact-list a { color: rgb(var(--c-link)); text-decoration: none; font-weight: 500; }

/* Footer */
.footer { background: rgb(var(--c-band)); border-top: 1px solid rgb(var(--c-line)); padding: 64px 0 36px; font-size: 15px; color: rgb(var(--c-muted)); }
.footer .top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer .top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer .logo { height: 30px; width: auto; }
.footer .about { margin-top: 20px; max-width: 320px; line-height: 1.6; }
.footer h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--c-ink)); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; }
.footer a:hover { color: rgb(var(--c-link)); }
.footer .with-icon { display: inline-flex; align-items: center; gap: 8px; }
.footer .endorse { margin-top: 28px; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.footer .endorse img { height: 32px; width: auto; }
.footer .legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgb(var(--c-line)); font-size: 14px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .footer .legal { flex-direction: row; justify-content: space-between; align-items: flex-start; } .footer .legal .company { text-align: right; } }
.modes { display: inline-flex; gap: 0; border: 1px solid rgb(var(--c-line)); margin-top: 12px; }
.modes button { border: 0; background: none; height: 30px; padding: 0 12px; font: 500 12px var(--font); color: rgb(var(--c-muted)); cursor: pointer; }
.modes button + button { border-left: 1px solid rgb(var(--c-line)); }
.modes button[aria-pressed="true"] { background: rgb(var(--c-page)); color: rgb(var(--c-ink)); }

/* 404 and thank-you */
.simple { min-height: 60vh; display: flex; align-items: center; }

/* Two sections of the same colour in a row get a hairline between them (square bands) */
.section:not(.band):not(.tight) + .section:not(.band):not(.tight), .section.band + .section.band { border-top: 1px solid rgb(var(--c-line)); }
.wall { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .wall { grid-template-columns: repeat(7, 1fr); } .wall li { padding: 22px 8px; font-size: 15px; } }
@media (min-width: 1024px) { .wall li { font-size: 17px; } }

/* ---------- Product visuals (tools/visuals.py): invented example data, drawn in HTML ---------- */
.showcase-split { align-items: center; }
.mock { background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line)); box-shadow: 0 30px 60px -34px rgb(var(--c-shadow) / .35); margin: 0; }
.mock-set { margin: 48px 0 0; display: grid; gap: 20px; align-items: center; }
.mock-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--c-muted)); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.code { font-family: var(--mono); }

/* Delivery: despatch advice + phone + status track */
@media (min-width: 1024px) { .delivery { grid-template-columns: 1.25fr .7fr 1fr; } }
.doc { padding: 22px; }
.doc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 14px; border-bottom: 2px solid rgb(var(--c-primary)); }
.doc-type { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgb(var(--c-ink)); font-size: 15px; }
.doc-no { font-size: 13px; color: rgb(var(--c-link)); margin-top: 2px; }
.qr { width: 72px; height: 72px; flex: none; fill: #000; outline: 3px solid rgb(var(--c-accent)); outline-offset: 3px; }
.doc-meta { margin: 14px 0 0; display: grid; gap: 6px; font-size: 13px; }
.doc-meta div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; }
.doc-meta dt { color: rgb(var(--c-muted)); }
.doc-meta dd { margin: 0; color: rgb(var(--c-ink)); }
.doc-lines { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 12.5px; }
.doc-lines th { text-align: left; font-weight: 600; color: rgb(var(--c-muted)); border-bottom: 1px solid rgb(var(--c-line)); padding: 6px 4px; }
.doc-lines td { padding: 6px 4px; border-bottom: 1px dashed rgb(var(--c-line)); }
.doc-lines td:nth-child(2) { font-family: var(--mono); font-size: 11.5px; color: rgb(var(--c-muted)); }
.doc-lines th:last-child, .doc-lines td:last-child { text-align: right; }
.doc-foot { margin-top: 12px; font-size: 11.5px; color: rgb(var(--c-muted)); }
.phone { justify-self: center; width: 230px; padding: 10px; background: #0E1116; border-radius: 30px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5); }
.phone-screen { background: #fff; color: #000; border-radius: 22px; padding: 14px 16px 18px; min-height: 360px; display: flex; flex-direction: column; gap: 10px; }
.phone-bar { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: #6E6E6E; }
.phone-title { margin-top: 6px; font-weight: 700; font-size: 18px; }
.phone-sub { font-size: 12px; color: #0274BE; margin-top: -6px; }
.phone .field { border: 1px solid #DEE1E3; padding: 7px 10px; }
.phone .field span { display: block; font-size: 10.5px; color: #6E6E6E; }
.phone .field b { font-weight: 500; font-size: 13.5px; }
.phone-btn { margin-top: auto; background: #0274BE; color: #fff; text-align: center; padding: 11px; font-weight: 600; font-size: 14px; }
.track-card { padding: 24px; }
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.track li { position: relative; padding: 0 0 22px 30px; }
.track li::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: -2px; width: 2px; background: rgb(var(--c-line)); }
.track li:last-child { padding-bottom: 0; }
.track li:last-child::before { display: none; }
.track li.done::before { background: rgb(var(--c-primary)); }
.track .dot { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border: 2px solid rgb(var(--c-line)); background: rgb(var(--c-surface)); }
.track li.done .dot { background: rgb(var(--c-primary)); border-color: rgb(var(--c-primary)); }
.track b { display: block; color: rgb(var(--c-ink)); font-weight: 600; }
.track small { color: rgb(var(--c-muted)); font-size: 13.5px; }
.ontime { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgb(var(--c-line)); font-size: 14px; color: rgb(var(--c-muted)); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ontime span { background: rgb(var(--c-primary)); color: rgb(var(--c-on-primary)); font-weight: 600; font-size: 12.5px; padding: 3px 9px; }

/* Order reading (pilot): email -> order as read -> outcomes */
@media (min-width: 1024px) { .extract { grid-template-columns: 1fr auto 1.1fr; } .extract .outcomes { grid-column: 1 / -1; } }
.mail, .read { padding: 22px; }
.mail-meta { margin: 0; display: grid; gap: 6px; font-size: 13.5px; }
.mail-meta div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.mail-meta dt { color: rgb(var(--c-muted)); }
.mail-meta dd { margin: 0; color: rgb(var(--c-ink)); }
.mail-body { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgb(var(--c-line)); font-size: 14.5px; color: rgb(var(--c-body) / .85); }
.attach { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgb(var(--c-line)); padding: 8px 12px; font-size: 13.5px; }
.attach span { background: rgb(var(--c-ink)); color: rgb(var(--c-page)); font-size: 11px; font-weight: 600; padding: 2px 6px; }
.flow-arrow { display: flex; align-items: center; justify-content: center; }
.flow-arrow span { font: 600 12px var(--mono); color: rgb(var(--c-link)); text-transform: uppercase; letter-spacing: .08em; padding: 8px 14px 8px 12px; border: 1px solid rgb(var(--c-primary)); position: relative; background: rgb(var(--c-page)); }
.flow-arrow span::after { content: "→"; margin-left: 8px; }
@media (max-width: 1023px) { .flow-arrow span::after { content: "↓"; } }
.pilot { font-size: 11px; letter-spacing: .08em; color: rgb(var(--c-link)); border: 1px solid rgb(var(--c-primary)); padding: 1px 7px; }
.read-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgb(var(--c-line)); }
.read-rows li { display: grid; grid-template-columns: 1fr 1.2fr 24px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgb(var(--c-line)); font-size: 14px; }
.read-rows li span { color: rgb(var(--c-muted)); }
.read-rows li b { font-weight: 500; color: rgb(var(--c-ink)); }
.read-rows li i { font-style: normal; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: rgb(var(--c-primary)); color: rgb(var(--c-on-primary)); }
.read-rows li.flag { background: repeating-linear-gradient(-45deg, rgb(var(--c-tint)), rgb(var(--c-tint)) 6px, transparent 6px, transparent 12px); padding-left: 8px; padding-right: 4px; }
.read-rows li.flag b { font-weight: 600; }
.read-rows li.flag i { background: rgb(var(--c-ink)); color: rgb(var(--c-page)); }
.read-note { margin-top: 12px; font-size: 13px; color: rgb(var(--c-muted)); }
.outcomes { display: grid; gap: 0; border: 1px solid rgb(var(--c-line)); background: rgb(var(--c-surface)); }
@media (min-width: 700px) { .outcomes { grid-template-columns: 1fr 1fr; } .outcomes p + p { border-left: 1px solid rgb(var(--c-line)); } }
.outcomes p { padding: 18px 22px; font-size: 15px; color: rgb(var(--c-muted)); border-top: 3px solid rgb(var(--c-primary)); }
.outcomes p.review { border-top-color: rgb(var(--c-ink)); }
.outcomes b { color: rgb(var(--c-ink)); font-weight: 600; margin-right: 6px; }

/* Order -> despatch advice -> invoice (order-to-cash) */
@media (min-width: 1024px) { .docs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; } }
.docs .doc-card { padding: 20px; align-self: stretch; }
.docs .mock-label { justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }
.docs .flow-arrow span { padding: 6px 8px; font-size: 11px; }
.docs .flow-arrow span::after { margin-left: 5px; }
.docs .flow-foot { grid-column: 1 / -1; border: 1px solid rgb(var(--c-line)); }
.docs .doc-no { margin-top: 0; font-size: 15px; font-weight: 600; color: rgb(var(--c-ink)); }
.doc-ref { margin-top: 2px; font-size: 13px; color: rgb(var(--c-muted)); }
.o2c-lines { margin-top: 12px; }
.o2c-lines td { white-space: normal; }
.o2c-lines td:last-child { white-space: nowrap; }
.o2c-lines tr.flag td { background: repeating-linear-gradient(-45deg, rgb(var(--c-tint)), rgb(var(--c-tint)) 6px, transparent 6px, transparent 12px); font-weight: 600; }
.o2c-lines tfoot td { padding-top: 11px; }

/* One message seen from operations (home, why ZenB2B) */
.lens { margin-top: 56px; }
.lens-items { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 800px) { .lens-items { grid-template-columns: repeat(3, 1fr); } .lens-items li + li { border-left: 1px solid rgb(var(--c-line)); } }
@media (max-width: 799px) { .lens-items li + li { border-top: 1px solid rgb(var(--c-line)); } }
.lens-items li { padding: 26px 24px; }
.lens-items .ico { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgb(var(--c-primary)); color: rgb(var(--c-on-primary)); }
.lens-items .ico svg { width: 24px; height: 24px; fill: currentColor; }
.lens-items b { display: block; margin-top: 16px; font-size: 17px; font-weight: 600; color: rgb(var(--c-ink)); }
.lens-items li > span:last-child { display: block; margin-top: 6px; font-size: 15px; color: rgb(var(--c-muted)); }

/* Planning schedule -> shipping notice (automotive) */
@media (min-width: 1024px) { .sched { grid-template-columns: 1fr auto 1fr; } }
.sched > .mock { padding: 22px; align-self: stretch; }
.sched .mock-label { justify-content: space-between; }
.sched .flow-foot { grid-column: 1 / -1; border: 1px solid rgb(var(--c-line)); }
.sched-scroll { overflow-x: auto; }
.sched-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sched-table th, .sched-table td { padding: 9px 10px; text-align: right; border-bottom: 1px solid rgb(var(--c-line)); color: rgb(var(--c-ink)); font-weight: 500; white-space: nowrap; }
.sched-table th:first-child, .sched-table td:first-child { text-align: left; padding-left: 0; }
.sched-table thead th { font-size: 12.5px; font-weight: 600; color: rgb(var(--c-muted)); }
.sched-table tbody th { font-size: 12.5px; }
.sched-table td.firm { background: rgb(var(--c-primary) / .14); }
.sched-table td.ship { background: rgb(var(--c-primary)); color: rgb(var(--c-on-primary)); font-weight: 600; }
.sched-table tfoot td { font-weight: 700; border-bottom: 0; }
.sched-table.asn { margin-top: 14px; }
.sched-legend { margin-top: 14px; font-size: 13px; color: rgb(var(--c-muted)); }
.legend .l-est::before { background: rgb(var(--c-tint)); border: 1px solid rgb(var(--c-line)); }

/* Partner overview dashboard */
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgb(var(--c-line)); }
.dash-stats div { padding: 14px 18px; }
.dash-stats div + div { border-left: 1px solid rgb(var(--c-line)); }
.dash-stats b { display: block; font-size: 22px; font-weight: 700; color: rgb(var(--c-ink)); line-height: 1.1; }
.dash-stats span { font-size: 12.5px; color: rgb(var(--c-muted)); }
.rels { list-style: none; margin: 0; padding: 0; }
.rels li { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px 18px; border-bottom: 1px dashed rgb(var(--c-line)); }
.rels li:last-child { border-bottom: 0; }
.rel-ends { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.rel-ends b { color: rgb(var(--c-ink)); font-weight: 600; }
.rel-ends small { font: 500 11px var(--mono); color: rgb(var(--c-muted)); border: 1px solid rgb(var(--c-line)); padding: 1px 5px; }
.rel-arrow { color: rgb(var(--c-link)); }
.rel-total { grid-row: 1; grid-column: 2; font-weight: 700; color: rgb(var(--c-ink)); font-size: 15px; }
.rel-types { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.rel-types span { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: rgb(var(--c-muted)); background: rgb(var(--c-tint)); padding: 3px 8px; }
.rel-types code { font: 600 11.5px var(--mono); color: rgb(var(--c-ink)); }
.rel-bar { grid-column: 1 / -1; display: flex; height: 6px; background: rgb(var(--c-tint)); }
.rel-bar i:nth-child(1) { background: rgb(var(--c-primary)); }
.rel-bar i:nth-child(2) { background: rgb(var(--c-accent)); }
.rel-bar i:nth-child(3) { background: rgb(var(--c-ink) / .7); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 9px; height: 9px; }
.legend .l-ok::before { background: rgb(var(--c-primary)); }
.legend .l-pending::before { background: rgb(var(--c-accent)); }
.legend .l-err::before { background: rgb(var(--c-ink) / .7); }

/* Retail hub: your ERP -> ZenB2B -> the chains */
.hubmap { margin-top: 48px; }
.hm-stage { --hm-line: rgb(var(--c-on-image) / .7); position: relative; isolation: isolate; display: grid; justify-items: center; gap: 0; padding: 40px 20px; background: var(--band-img) center / cover; }
.hm-erp { position: relative; z-index: 2; width: 100%; max-width: 320px; background: rgb(var(--c-surface)); box-shadow: 0 24px 50px -30px rgb(0 0 0 / .6); }
.hm-erp-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid rgb(var(--c-line)); font-size: 15px; }
.hm-erp-head b { font-weight: 600; color: rgb(var(--c-ink)); }
.hm-erp-head span { display: flex; gap: 6px; }
.hm-erp-head i { width: 9px; height: 9px; border: 1.5px solid rgb(var(--c-line)); }
.hm-erp ul { list-style: none; margin: 0; padding: 10px 18px 14px; display: grid; gap: 4px; }
.hm-erp li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; font-size: 13.5px; color: rgb(var(--c-muted)); }
.hm-erp li i { width: 9px; height: 9px; background: rgb(var(--c-line)); }
.hm-erp li code { font: 600 11.5px var(--mono); color: rgb(var(--c-muted)); }
.hm-left, .hm-right { display: contents; }
.hm-link { position: relative; width: 0; height: 56px; border-left: 2px dashed var(--hm-line); }
.hm-hub { position: relative; z-index: 2; width: 132px; height: 132px; display: flex; align-items: center; justify-content: center; background: rgb(var(--c-surface)); box-shadow: 0 24px 50px -24px rgb(0 0 0 / .6); }
.hm-hub img { width: 100px; height: auto; }
.hm-chains { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hm-chains li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hm-tile { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; height: 64px; background: rgb(var(--c-surface)); box-shadow: 0 18px 40px -26px rgb(0 0 0 / .6); }
.hm-tile b { font-size: 16px; font-weight: 700; color: rgb(var(--c-ink)); letter-spacing: -.01em; }
@media (min-width: 980px) {
    .hm-stage { grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr); align-items: center; justify-items: stretch; padding: 56px 48px; }
    .hm-left, .hm-right { display: flex; align-items: center; }
    .hm-erp { flex: none; width: 300px; }
    .hm-link { flex: 1; min-width: 40px; width: auto; height: 0; border-left: 0; border-top: 2px dashed var(--hm-line); }
    .hm-chains { flex: none; width: 300px; position: relative; margin: 0; max-width: none; grid-template-columns: 1fr; gap: 12px; }
    .hm-chains::before { content: ""; position: absolute; left: 0; top: 32px; bottom: 32px; border-left: 2px dashed var(--hm-line); }
    .hm-chains li { position: relative; padding-left: var(--x); grid-column: auto !important; }
    .hm-chains li::before { content: ""; position: absolute; left: 0; top: 50%; width: var(--x); border-top: 2px dashed var(--hm-line); }
    .hm-tile { width: 160px; }
}
/* One retailer's 9 s cycle, three retailers in a 27 s loop. The square comes in with ORDERS and lights its row on
   arrival (2.1 s); DESADV (4.4 s) and INVOIC (6.7 s) light their row, then leave. Each trip stops in the hub. */
.hm-erp li, .hm-erp li i, .hm-erp li code { animation: 9s var(--d, 0s) infinite steps(1, end); }
.hm-erp li { animation-name: hm-row; }
.hm-erp li i { animation-name: hm-dot; }
.hm-erp li code { animation-name: hm-code; }
@keyframes hm-row { 0%, 25.5% { color: rgb(var(--c-ink)); } 25.55%, 100% { color: rgb(var(--c-muted)); } }
@keyframes hm-dot { 0%, 25.5% { background: rgb(var(--c-accent)); } 25.55%, 100% { background: rgb(var(--c-line)); } }
@keyframes hm-code { 0%, 25.5% { color: rgb(var(--c-link)); } 25.55%, 100% { color: rgb(var(--c-muted)); } }
.hm-tile.hm-live { outline: 2px solid transparent; outline-offset: -2px; animation: hm-tile 27s var(--t, 0s) infinite steps(1, end); }
@keyframes hm-tile { 0%, 33.3% { outline-color: rgb(var(--c-accent)); } 33.33%, 100% { outline-color: transparent; } }
.hm-hub::after { content: ""; position: absolute; inset: 0; border: 2px solid rgb(var(--c-accent)); opacity: 0; animation: hm-pulse 9s linear infinite; }
@keyframes hm-pulse {
    0%, 12.5%, 18.6%, 53.6%, 59.7%, 79.2%, 85.3%, 100% { opacity: 0; }
    13.3%, 17.8%, 54.4%, 58.9%, 80%, 84.4% { opacity: 1; }
}
/* Desktop: the square rests behind a tile or the ERP, so it appears to leave from there; 348px = padding + ERP width */
.hm-msg {
    --bus: calc(100% - 348px); --tl: calc(var(--bus) + var(--tile)); --p1: calc(var(--bus) + var(--x1)); --p2: calc(var(--bus) + var(--x2));
    --ty: calc(50% + var(--y)); --hub: 50%; --in-erp: 332px;
    position: absolute; z-index: 1; width: 12px; height: 12px; margin: -6px 0 0 -6px;
    background: rgb(var(--c-accent)); border: 2px solid rgb(var(--c-on-image));
    animation: hm-trip 9s linear infinite, hm-turn 27s var(--t, 0s) infinite steps(1, end);
}
@keyframes hm-trip {
    0% { left: var(--tl); top: var(--ty); }
    3.89%, 68.33%, 93.89% { left: var(--p1); top: var(--ty); }
    7.78%, 64.44%, 90% { left: var(--p2); top: var(--hub); }
    13.33%, 17.78%, 54.44%, 58.89%, 80%, 84.44% { left: var(--hub); top: var(--hub); }
    23.33%, 48.89%, 74.44% { left: var(--in-erp); top: var(--hub); }
    72.22% { left: var(--tl); top: var(--ty); visibility: visible; }
    73% { left: var(--tl); top: var(--ty); visibility: hidden; }
    73.5% { left: var(--in-erp); top: var(--hub); visibility: hidden; }
    74% { left: var(--in-erp); top: var(--hub); visibility: visible; }
    97.78%, 100% { left: var(--tl); top: var(--ty); }
}
@keyframes hm-turn { 0%, 33.3% { opacity: 1; } 33.33%, 100% { opacity: 0; } }
/* Stacked layout: same timing, the square only runs along the two vertical links */
/* Collapsed, never display:none: that would restart these animations on their own clock, out of step with the rows and tiles */
@media (max-width: 979.98px) { .hm-msg { width: 0; height: 0; border: 0; } }
.hm-link::after { content: ""; position: absolute; z-index: 1; left: -8px; width: 12px; height: 12px; margin-top: -6px; background: rgb(var(--c-accent)); border: 2px solid rgb(var(--c-on-image)); animation: 9s linear infinite; }
.hm-left .hm-link::after { animation-name: hm-near; }
.hm-right .hm-link::after { animation-name: hm-far; }
@media (min-width: 980px) { .hm-link::after { width: 0; height: 0; border: 0; } }
@keyframes hm-near {
    0%, 17.78%, 54.44%, 80%, 100% { top: calc(100% + 8px); opacity: 1; }
    54.5% { top: calc(100% + 8px); opacity: 0; }
    55% { top: -8px; opacity: 0; }
    55.5%, 74.44% { top: -8px; opacity: 1; }
    23.33%, 48.89% { top: -8px; opacity: 1; }
}
@keyframes hm-far {
    0%, 5.5% { top: 100%; opacity: 0; }
    5.6% { top: 100%; opacity: 1; }
    13.33%, 58.89%, 69%, 84.44% { top: -8px; opacity: 1; }
    67%, 92.5% { top: 100%; opacity: 1; }
    67.1%, 92.6%, 100% { top: 100%; opacity: 0; }
    68% { top: -8px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-msg { display: none; }
    .hm-link::after { display: none; }
    .hm-hub::after, .hm-tile.hm-live { animation: none; }
    .hm-erp li, .hm-erp li i, .hm-erp li code { animation: none; }
    .hm-erp li:first-child { color: rgb(var(--c-ink)); }
    .hm-erp li:first-child i { background: rgb(var(--c-accent)); }
    .hm-erp li:first-child code { color: rgb(var(--c-link)); }
}

/* Web EDI order */
.po { margin-top: 48px; }
.po .badge { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; background: rgb(var(--c-primary) / .12); color: rgb(var(--c-link)); }
.po .badge::before { content: "✓"; }
.po-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding: 20px 22px; border-bottom: 1px solid rgb(var(--c-line)); }
.po-head .mock-label { margin-bottom: 6px; }
.po-no { font-size: 24px; font-weight: 600; color: rgb(var(--c-ink)); line-height: 1.1; }
.po-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.po-actions span { font-size: 13px; font-weight: 500; padding: 7px 12px; border: 1px solid rgb(var(--c-line)); color: rgb(var(--c-ink)); }
.po-actions span.primary { background: rgb(var(--c-primary)); border-color: rgb(var(--c-primary)); color: rgb(var(--c-on-primary)); }
.po-meta { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid rgb(var(--c-line)); }
@media (min-width: 560px) { .po-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .po-meta { grid-template-columns: 1.3fr 1.3fr 1fr 1fr; } }
.po-meta div { padding: 14px 22px; border-right: 1px solid rgb(var(--c-line)); border-bottom: 1px solid rgb(var(--c-line)); margin-bottom: -1px; }
.po-meta dt { font-size: 12.5px; color: rgb(var(--c-muted)); margin-bottom: 4px; }
.po-meta dd { margin: 0; font-size: 14px; font-weight: 500; color: rgb(var(--c-ink)); }
.po-meta small { display: block; font: 400 11.5px var(--mono); color: rgb(var(--c-muted)); margin-top: 2px; }
.po-scroll { overflow-x: auto; }
.po-lines { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13.5px; }
.po-lines th { text-align: left; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: rgb(var(--c-muted)); background: rgb(var(--c-tint)); padding: 10px 14px; }
.po-lines td { padding: 11px 14px; border-bottom: 1px solid rgb(var(--c-line)); color: rgb(var(--c-ink)); }
.po-lines td.code { font-size: 12.5px; color: rgb(var(--c-muted)); }
.po-lines th:first-child, .po-lines td:first-child { padding-left: 22px; width: 40px; color: rgb(var(--c-muted)); }
.po-lines th:nth-child(5), .po-lines td:nth-child(5) { text-align: right; }
.po-docs { padding: 18px 22px 20px; background: rgb(var(--c-tint)); }
.po-docs .mock-label { margin-bottom: 10px; }
.po-docs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .po-docs ul { grid-template-columns: repeat(3, 1fr); } }
.po-docs li { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; padding: 12px 14px; background: rgb(var(--c-surface)); border-left: 3px solid rgb(var(--c-primary)); font-size: 14px; color: rgb(var(--c-ink)); }
.po-docs code { font: 600 12px var(--mono); }
.po-docs li span { color: rgb(var(--c-link)); }
.po-docs li small { grid-column: 2; font-size: 12.5px; color: rgb(var(--c-muted)); }
.po-docs li .badge { grid-row: 2; grid-column: 1; justify-self: start; }

/* Invoice in three steps */
@media (min-width: 900px) { .wizard { grid-template-columns: 1.2fr 1fr 1fr; align-items: stretch; } }
.step { padding: 20px; position: relative; }
@media (min-width: 900px) { .step + .step::before { content: "→"; position: absolute; left: -17px; top: 50%; transform: translateY(-50%); width: 14px; text-align: center; color: rgb(var(--c-link)); font-weight: 700; } }
.step-no { display: flex; align-items: center; gap: 10px; font-weight: 600; color: rgb(var(--c-ink)); margin-bottom: 14px; }
.step-no span { width: 26px; height: 26px; background: rgb(var(--c-primary)); color: rgb(var(--c-on-primary)); display: flex; align-items: center; justify-content: center; font: 600 13px var(--mono); }
.pick { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgb(var(--c-line)); }
.pick li { display: grid; grid-template-columns: 20px auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgb(var(--c-line)); font-size: 13.5px; color: rgb(var(--c-muted)); }
.pick li.on { color: rgb(var(--c-body)); }
.pick code { font: 600 12px var(--mono); color: rgb(var(--c-ink)); }
.pick b { font-weight: 600; color: rgb(var(--c-ink)); white-space: nowrap; }
.pick .box { width: 18px; height: 18px; border: 1.5px solid rgb(var(--c-line)); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.pick li.on .box { background: rgb(var(--c-primary)); border-color: rgb(var(--c-primary)); color: rgb(var(--c-on-primary)); }
.totals { border-top: 1px solid rgb(var(--c-line)); }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgb(var(--c-line)); font-size: 13.5px; }
.totals span { color: rgb(var(--c-muted)); }
.totals b { font-weight: 500; color: rgb(var(--c-ink)); white-space: nowrap; }
.totals div:last-child { border-bottom: 2px solid rgb(var(--c-primary)); }
.totals div:last-child b { font-weight: 700; }
.inv-no { font-size: 13px; color: rgb(var(--c-link)); margin: -6px 0 12px; }
.sent { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sent li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 10px; font-size: 14px; }
.sent .tick { grid-row: span 2; width: 22px; height: 22px; background: rgb(var(--c-primary)); color: rgb(var(--c-on-primary)); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.sent b { font-weight: 600; color: rgb(var(--c-ink)); }
.sent small { color: rgb(var(--c-muted)); font-size: 13px; }

/* Multimodal route */
.route { list-style: none; margin: 0; padding: 22px 18px; display: grid; gap: 0; }
.route > li:not(.leg) { position: relative; padding-left: 30px; }
.route .stop { position: absolute; left: 2px; top: 4px; width: 14px; height: 14px; background: rgb(var(--c-primary)); }
.route > li:not(.leg) b { display: block; color: rgb(var(--c-ink)); font-weight: 600; }
.route > li:not(.leg) small { color: rgb(var(--c-muted)); font-size: 13px; }
.route .leg { margin: 6px 0 6px 8px; padding: 14px 0 14px 22px; border-left: 3px solid rgb(var(--c-primary)); }
.route .leg.sea { border-left-style: dashed; border-left-color: rgb(var(--c-accent)); }
.route .leg span { font: 500 12.5px var(--mono); color: rgb(var(--c-link)); background: rgb(var(--c-tint)); padding: 3px 8px; }
.equip { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; width: 100%; }
.equip div { display: flex; justify-content: space-between; gap: 10px; }
.equip dt { color: rgb(var(--c-muted)); }
.equip dd { margin: 0; color: rgb(var(--c-ink)); font-weight: 500; }

/* Secondary text on Mist bands and the footer: keep WCAG AA (brand manual ch. 06) */
.band, .footer { --c-muted: var(--c-muted-band); }

/* ---------- Second pass: experience first, proof together ---------- */
.h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; max-width: 760px; }

/* Hero credentials: who we are, before what we do */
.creds { list-style: none; margin: 40px 0 0; padding: 20px 0 0; border-top: 1px solid rgb(var(--c-ink) / .15); display: grid; gap: 10px 28px; max-width: 640px; }
@media (min-width: 560px) { .creds { grid-template-columns: repeat(2, max-content); } }
.creds li { position: relative; padding-left: 18px; font-size: 15px; font-weight: 600; color: rgb(var(--c-ink)); }
.creds li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: rgb(var(--c-primary)); }

/* Managed scope: the project as a numbered line, then what we do every day */
.phases { margin-top: 56px; display: grid; gap: 40px; }
@media (min-width: 1024px) { .phases { grid-template-columns: 2fr 1fr; gap: 48px; } }
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 700px) { .process { grid-template-columns: repeat(4, 1fr); } .process.story { grid-template-columns: repeat(3, 1fr); } }
.process li { position: relative; padding: 44px 24px 0 0; }
.process li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font: 600 13px var(--mono); color: rgb(var(--c-on-primary)); background: rgb(var(--c-primary)); padding: 4px 8px; z-index: 1; }
.process li::after { content: ""; position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: rgb(var(--c-primary) / .35); }
.process li:last-child::after { display: none; }
.process h3 { font-size: 18px; line-height: 1.35; }
.process p { margin-top: 8px; font-size: 15.5px; color: rgb(var(--c-muted)); }
@media (max-width: 699px) { .process li { padding: 0 0 28px 56px; } .process li::after { top: 26px; bottom: 0; left: 16px; right: auto; width: 2px; height: auto; } .process li:last-child::after { display: none; } }
.daily { background: rgb(var(--c-band)); border-top: 3px solid rgb(var(--c-primary)); padding: 24px 24px 8px; --c-muted: var(--c-muted-band); }
.daily ul { list-style: none; margin: 0; padding: 0; }
.daily li { padding: 0 0 16px; }
.daily li + li { border-top: 1px solid rgb(var(--c-line)); padding-top: 16px; }
.daily h3 { font-size: 16.5px; }
.daily p { margin-top: 4px; font-size: 14.5px; color: rgb(var(--c-muted)); }
.process.story { margin-top: 8px; }
.process.story h3 { font-size: 20px; }
.process.story p { font-size: 16px; }

/* Client quotes: one featured, icon for the company type */
@media (min-width: 900px) { .quotes { grid-template-columns: 1.35fr 1fr; } }
.quote.featured .hl { font-size: clamp(22px, 2.2vw, 27px); line-height: 1.4; }
.quote.featured { padding: 44px 40px; }
.band .quote { background: rgb(var(--c-page)); }
.quote figcaption .quote-ico { width: 44px; height: 44px; }
.quote figcaption .quote-ico svg { width: 24px; height: 24px; }
.quote figcaption small { display: block; font-size: 14px; color: rgb(var(--c-muted)); }
.chains { margin-top: 80px; padding-top: 56px; border-top: 1px solid rgb(var(--c-line)); }
.chains .intro { margin-top: 16px; }

/* The logistics chain we ran the systems for */
.ops { margin-top: 56px; }
.ops-flows { display: grid; }
@media (min-width: 1024px) { .ops-flows { grid-template-columns: minmax(0, 2fr) minmax(0, 4fr); } }
.ops-flow { --lane: calc(100% / var(--n)); padding: 28px 28px 24px; min-width: 0; }
.ops-flow + .ops-flow { border-top: 1px solid rgb(var(--c-line)); }
@media (min-width: 1024px) { .ops-flow + .ops-flow { border-top: 0; border-left: 1px solid rgb(var(--c-line)); } }
.ops-flow h3 { margin: 0 0 22px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--c-muted)); }
.ops-lanes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: start; }
.ops-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 4px; min-width: 0; }
.ops-node .ico { width: 52px; height: 52px; }
.ops-node b { margin-top: 6px; color: rgb(var(--c-ink)); font-weight: 600; }
.ops-node small { font: 500 12px var(--mono); color: rgb(var(--c-muted)); }
/* One lifeline down the middle of each column; arrows run between lifelines --l and --r */
.ops-seq { list-style: none; margin: 14px 0 0; padding: 0 0 8px; background: repeating-linear-gradient(90deg, transparent 0 calc(var(--lane) / 2 - .5px), rgb(var(--c-line)) calc(var(--lane) / 2 - .5px) calc(var(--lane) / 2 + .5px), transparent calc(var(--lane) / 2 + .5px) var(--lane)); }
.ops-msg { position: relative; height: 48px; }
.ops-msg code { position: absolute; top: 4px; left: calc((var(--l) + var(--r) + 1) / 2 * var(--lane)); transform: translateX(-50%); font: 600 11.5px var(--mono); color: rgb(var(--c-ink)); background: rgb(var(--c-surface)); padding: 2px 6px; border: 1px solid rgb(var(--c-line)); white-space: nowrap; }
.ops-msg i { position: absolute; top: 37px; height: 2px; left: calc((var(--l) + .5) * var(--lane)); right: calc((var(--n) - var(--r) - .5) * var(--lane)); background: rgb(var(--c-primary)); }
.ops-msg i::before { content: ""; position: absolute; top: -3px; left: -4px; width: 8px; height: 8px; background: rgb(var(--c-primary)); }
.ops-msg i::after { content: ""; position: absolute; top: -5px; right: 0; border: 6px solid transparent; border-left-color: rgb(var(--c-primary)); border-right: 0; }
.ops-msg.back i::before { left: auto; right: -4px; }
.ops-msg.back i::after { right: auto; left: 0; border: 6px solid transparent; border-right-color: rgb(var(--c-primary)); border-left: 0; }
@media (max-width: 599px) {
    .ops-flow { padding-inline: 12px; }
    .ops-node { padding: 0 1px; }
    .ops-node b { font-size: 12px; }
    .ops-node small { font-size: 10.5px; }
}
.ops-foot { padding: 14px 28px; background: rgb(var(--c-tint)); border-top: 1px solid rgb(var(--c-line)); display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 14px; color: rgb(var(--c-body)); }
.ops-foot b { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--c-muted)); margin-right: 4px; }
.ops-foot span { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.ops-foot span::before { content: ""; width: 6px; height: 6px; background: rgb(var(--c-primary)); }
.facts.two { align-self: start; border-top: 1px solid rgb(var(--c-line)); }
.facts.two b { font-size: 28px; }

/* Cookie banner (only rendered when Google Ads is configured in tools/build.py) */
.consent {
    position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; max-width: 520px;
    padding: 20px 22px; background: rgb(var(--c-surface)); color: rgb(var(--c-body));
    border: 1px solid rgb(var(--c-line)); box-shadow: 0 12px 40px rgb(var(--c-shadow) / .18);
    font-size: 15px; line-height: 1.55;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 16px; }
.consent a { color: rgb(var(--c-link)); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn { flex: 1 1 120px; }
.link-btn { border: 0; padding: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.link-btn:hover { color: rgb(var(--c-link)); }
