/* ============================================================================
   RAPL Desk - landing stylesheet
   website/desk/assets/css/desk.css

   Design language: cool, technical, high-contrast. Near-black ink on a cool
   off-white, one signal-blue accent, and the status palette a ticketing
   product already owns (green / amber / rose).
   ========================================================================== */

/* ── Tokens ───────────────────────────────────────────────────────────────*/
:root {
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    --bg: #f6f7fb;
    --bg-soft: #eceff7;
    --surface: #ffffff;
    --surface-2: #fafbfe;

    --ink: #0a0a0f;
    --slate: #3c4152;
    --muted: #737b8d;
    --line: #e2e6f0;
    --line-soft: #eef1f7;

    --brand: #2f5bff;
    --brand-deep: #1c3fd6;
    --brand-soft: #eaefff;
    --brand-line: #c9d5ff;

    --ok: #0f9d68;
    --ok-bg: #e8f8f1;
    --ok-line: #bde8d4;
    --warn: #b3730a;
    --warn-bg: #fdf4e3;
    --warn-line: #f2ddb2;
    --alert: #d92d4e;
    --alert-bg: #fdecef;
    --alert-line: #f6cbd4;
    --violet: #6d3fe0;
    --violet-bg: #f1ecfe;
    --violet-line: #ddd0fb;
    --teal: #0b8a80;
    --teal-bg: #e6f6f4;
    --teal-line: #b9e5e0;

    --d-bg: #08080d;
    --d-surface: rgba(255, 255, 255, .045);
    --d-line: rgba(255, 255, 255, .11);
    --d-text: #f2f4fa;
    --d-muted: #969db2;

    --radius-s: 10px;
    --radius: 16px;
    --radius-l: 24px;
    --radius-xl: 32px;

    --shadow-s: 0 1px 2px rgba(10, 10, 25, .05), 0 2px 8px rgba(10, 10, 25, .04);
    --shadow: 0 4px 12px rgba(10, 10, 25, .06), 0 16px 40px rgba(10, 10, 25, .07);
    --shadow-l: 0 8px 24px rgba(10, 10, 25, .08), 0 32px 72px rgba(10, 10, 25, .12);

    --maxw: 1200px;
    --gut: 24px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.028em;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand); color: #fff; }

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

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 var(--radius-s) 0;
}
.skip:focus { left: 0; }

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

/* ── Layout primitives ────────────────────────────────────────────────────*/
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gut);
}

.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--white { background: var(--surface); }

.head { max-width: 720px; margin-bottom: 56px; }
.head--center { margin-inline: auto; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: '';
    width: 18px;
    height: 1px;
    background: currentColor;
    opacity: .55;
}
.head--center .eyebrow::before { display: none; }

.h2 { font-size: clamp(30px, 4.1vw, 45px); }

.lead {
    margin-top: 18px;
    font-size: 17px;
    color: var(--slate);
    max-width: 62ch;
    text-wrap: pretty;
}
.head--center .lead { margin-inline: auto; }

/* ── Buttons ──────────────────────────────────────────────────────────────*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -.01em;
    white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
                background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 6px 18px rgba(10, 10, 25, .18);
}
.btn--primary:hover { background: #16161f; box-shadow: 0 12px 30px rgba(10, 10, 25, .26); }

.btn--brand {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 18px rgba(47, 91, 255, .3);
}
.btn--brand:hover { background: var(--brand-deep); box-shadow: 0 12px 32px rgba(47, 91, 255, .38); }

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(10, 10, 15, .03); }

.btn--light {
    background: #fff;
    color: var(--ink);
}
.btn--light:hover { background: #f2f4fb; }

.btn--sm { padding: 10px 20px; font-size: 14px; }

.arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow, .textlink:hover .arrow { transform: translateX(4px); }

.textlink {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 15px;
    color: var(--brand);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.textlink:hover { border-color: currentColor; }

/* ── Navigation ───────────────────────────────────────────────────────────*/
.nav {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(246, 247, 251, .78);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background-color .3s ease;
}
.nav.is-stuck {
    border-bottom-color: var(--line);
    background: rgba(246, 247, 251, .92);
}

.nav__in {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -.035em;
    margin-right: auto;
}
.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.04em;
    align-self: center;
    transform: translateY(1px);
}
.brand__desk { color: var(--brand); }

/* ── RAPL Group logo (inline SVG, takes currentColor) ─────────────────────*/
.rlogo {
    display: block;
    height: 24px;
    width: auto;
    color: var(--ink);
}
.rlogo--sm { height: 20px; }
.rlogo--lg { height: 32px; }
.foot .rlogo { color: var(--ink); }
.dark .rlogo, .cta .rlogo { color: #fff; }

/* Parent-site link, sits to the left of the product brand */
.upnav {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    transition: color .2s ease;
}
.upnav:hover { color: var(--ink); }
.upnav__arrow { transition: transform .25s var(--ease); }
.upnav:hover .upnav__arrow { transform: translateX(-3px); }
.upnav__sep {
    width: 1px;
    height: 20px;
    background: var(--line);
    flex: none;
    margin-inline: 2px;
}

.mobilenav__up {
    color: var(--muted) !important;
    font-size: 14px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav__links a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--slate);
    transition: color .2s ease;
}
.nav__links a:hover { color: var(--ink); }

.nav__side { display: flex; align-items: center; gap: 12px; }

.langsw {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    background: var(--surface);
    transition: color .2s ease, border-color .2s ease;
}
.langsw:hover { color: var(--ink); border-color: var(--ink); }

.burger {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    place-items: center;
}
.burger span {
    display: block;
    width: 16px; height: 1.5px;
    background: var(--ink);
    position: relative;
    transition: transform .3s var(--ease), background-color .2s;
}
.burger span::before, .burger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 16px; height: 1.5px;
    background: var(--ink);
    transition: transform .3s var(--ease);
}
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

.mobilenav {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 12px var(--gut) 24px;
}
.mobilenav.is-open { display: block; }
.mobilenav a {
    display: block;
    padding: 13px 0;
    font-weight: 500;
    border-bottom: 1px solid var(--line-soft);
}
.mobilenav .btn { width: 100%; margin-top: 18px; }

/* ── Hero ─────────────────────────────────────────────────────────────────*/
.hero {
    position: relative;
    padding: 76px 0 96px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(10, 10, 15, .035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(10, 10, 15, .035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    top: -240px; right: -180px;
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(47, 91, 255, .13), transparent 65%);
    pointer-events: none;
}

.hero__in {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.hero__copy { min-width: 0; }
.hero__media { position: relative; min-width: 0; }

.hero h1 {
    font-size: clamp(38px, 6vw, 66px);
    letter-spacing: -.042em;
}
.hero h1 .accent {
    position: relative;
    color: var(--brand);
    white-space: nowrap;
}
.hero h1 .accent::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: .04em;
    height: .12em;
    background: currentColor;
    opacity: .16;
    border-radius: 999px;
}

.hero__sub {
    margin-top: 24px;
    font-size: 17.5px;
    color: var(--slate);
    max-width: 56ch;
    text-wrap: pretty;
}

.hero__cta {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__badges {
    margin-top: 44px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hero__badges span {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--slate);
    letter-spacing: -.01em;
}

/* ── Product mockup (shared shell) ────────────────────────────────────────*/
.mock {
    position: relative;
    border-radius: var(--radius-l);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-l);
    overflow: hidden;
}
.mock__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #12131a;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i {
    width: 9px; height: 9px;
    border-radius: 50%;
    display: block;
}
.mock__dots i:nth-child(1) { background: #ff5f57; }
.mock__dots i:nth-child(2) { background: #febc2e; }
.mock__dots i:nth-child(3) { background: #28c840; }
.mock__url {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
    letter-spacing: -.01em;
}
.mock__body { padding: 22px; }

/* Ticket card inside the mockup */
.tk__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.tk__id {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: .02em;
}
.tk__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -.025em;
    margin-top: 5px;
    line-height: 1.28;
}
.tk__pills { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; }
.pill--blue { background: var(--brand-soft); color: var(--brand-deep); border-color: var(--brand-line); }
.pill--warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.pill--ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.pill--alert { background: var(--alert-bg); color: var(--alert); border-color: var(--alert-line); }
.pill--violet { background: var(--violet-bg); color: var(--violet); border-color: var(--violet-line); }
.pill--teal { background: var(--teal-bg); color: var(--teal); border-color: var(--teal-line); }
.pill--muted { background: var(--bg-soft); color: var(--muted); border-color: var(--line); }

.tk__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.tk__meta dt {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    margin-bottom: 4px;
}
.tk__meta dd {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -.01em;
}

.tk__msg {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.avatar {
    flex: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -.02em;
    background: var(--bg-soft);
    color: var(--slate);
    border: 1px solid var(--line);
}
.avatar--brand { background: var(--brand); color: #fff; border-color: transparent; }
.tk__msg p { font-size: 13.5px; color: var(--slate); line-height: 1.6; }

.tk__note {
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: var(--radius-s);
    background: var(--warn-bg);
    border: 1px dashed var(--warn-line);
}
.tk__note b {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--warn);
    margin-bottom: 5px;
}
.tk__note p { font-size: 13px; color: var(--slate); }

.tk__foot {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.timer {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}
.timer i {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ok);
    display: block;
    animation: blip 1.6s ease-in-out infinite;
}
.timer small { color: var(--muted); font-family: var(--font-body); font-size: 11.5px; }

@keyframes blip {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.8); }
}

/* Floating toast cards next to the hero mockup */
.toast {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 15px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    animation: bob 6s ease-in-out infinite;
}
.toast b { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: -.015em; }
.toast small { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.toast__ic {
    width: 26px; height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 12px;
    flex: none;
}
.toast__ic--ok { background: var(--ok-bg); color: var(--ok); }
.toast__ic--warn { background: var(--warn-bg); color: var(--warn); }

.toast--1 { left: -34px; top: 20%; }
.toast--2 { right: -26px; bottom: 16%; animation-delay: -3s; }

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* ── Stat bar ─────────────────────────────────────────────────────────────*/
.stats { border-block: 1px solid var(--line); background: var(--surface); }
.stats__in { padding: 40px 0; }
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.stat { text-align: center; }
.stat b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1;
    color: var(--ink);
}
.stat span {
    display: block;
    margin-top: 9px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}
.stats__caption {
    margin-top: 30px;
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
}

/* ── Generic card grids ───────────────────────────────────────────────────*/
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    padding: 30px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--brand-line);
}
.card h3 {
    font-size: 18px;
    letter-spacing: -.028em;
    margin-bottom: 10px;
}
.card p { font-size: 14.5px; color: var(--slate); line-height: 1.62; }

.card__ic {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    border: 1px solid var(--brand-line);
}
.card__ic svg { width: 20px; height: 20px; }
.card__ic--violet { background: var(--violet-bg); color: var(--violet); border-color: var(--violet-line); }
.card__ic--teal { background: var(--teal-bg); color: var(--teal); border-color: var(--teal-line); }
.card__ic--warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.card__ic--ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.card__ic--alert { background: var(--alert-bg); color: var(--alert); border-color: var(--alert-line); }

/* ── Scenario strip ("what counts as a ticket") ───────────────────────────*/
.scen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.scen__i {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s var(--ease);
}
.scen__i:hover {
    transform: translateY(-3px);
    border-color: var(--brand-line);
    box-shadow: var(--shadow-s);
}
.scen__q {
    flex: 1;
    min-width: 0;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--ink);
    font-style: italic;
}
.scen__q::before { content: '\201E'; }
.scen__q::after { content: '\201C'; }
.scen__arrow { color: var(--muted); flex: none; font-size: 14px; }
.scen__i .pill { flex: none; }

.scen__note {
    margin-top: 26px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

/* ── Department handover mockup ───────────────────────────────────────────*/
.hand__l {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    margin-bottom: 10px;
}
.hand__row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
}
.hand__arrow { color: var(--muted); font-size: 15px; }

.hand__box {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px dashed var(--brand-line);
    border-radius: var(--radius-s);
    background: var(--brand-soft);
}
.hand__act {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--brand-deep);
    letter-spacing: -.02em;
    margin-bottom: 10px;
}
.hand__chk {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--slate);
}
.hand__tick {
    width: 17px; height: 17px;
    border-radius: 5px;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 11px;
    flex: none;
}

/* Subscribers row, used in the hero ticket and the handover mockup */
.subs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--radius-s);
    background: var(--violet-bg);
    border: 1px solid var(--violet-line);
    flex-wrap: wrap;
}
.subs--wide { background: var(--bg-soft); border-color: var(--line); }
.subs__l {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--violet);
    flex: none;
}
.subs--wide .subs__l { color: var(--muted); }
.subs__c { display: flex; gap: 7px; flex-wrap: wrap; }

/* ── Department flow chips ────────────────────────────────────────────────*/
.deptflow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 56px;
}
.deptflow__i {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: -.015em;
    position: relative;
}
.deptflow__i:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px; top: 50%;
    width: 6px; height: 6px;
    border-top: 1.5px solid var(--line);
    border-right: 1.5px solid var(--line);
    transform: translateY(-50%) rotate(45deg);
}
.deptflow__n {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--brand);
    flex: none;
}

/* ── Integration cards ────────────────────────────────────────────────────*/
.intstack { gap: 14px; align-content: start; }

.card--feature { display: flex; flex-direction: column; }
.card--feature p { flex: 1; }
.card__link { margin-top: 20px; align-self: flex-start; }

.card--row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
}
.card--row .card__ic { margin-bottom: 0; flex: none; }
.card--row h3 { font-size: 16px; margin-bottom: 6px; }
.card--row p { font-size: 14px; }

/* ── Module overview grid ─────────────────────────────────────────────────*/
.mods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.mod {
    padding: 26px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.mod:hover { transform: translateY(-3px); box-shadow: var(--shadow-s); border-color: var(--brand-line); }
.mod__h {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}
.mod__h h3 { font-size: 15.5px; letter-spacing: -.025em; }
.mod__dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.tone-blue { background: var(--brand); }
.tone-violet { background: var(--violet); }
.tone-amber { background: var(--warn); }
.tone-teal { background: var(--teal); }
.tone-rose { background: var(--alert); }
.tone-brand { background: var(--brand); }
.tone-accent { background: #7f9dff; }

.mod li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    color: var(--slate);
    line-height: 1.5;
    margin-bottom: 9px;
}
.mod li::before {
    content: '';
    position: absolute;
    left: 2px; top: 9px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--line);
}
.mod li:last-child { margin-bottom: 0; }

.mod--accent { background: linear-gradient(160deg, #101119, #0a0a0f); border-color: transparent; }
.mod--accent .mod__h { border-bottom-color: rgba(255, 255, 255, .12); }
.mod--accent h3 { color: #fff; }
.mod--accent li { color: var(--d-muted); }
.mod--accent li::before { background: rgba(255, 255, 255, .3); }
.mod--accent:hover { border-color: transparent; }

.mods__more { margin-top: 34px; text-align: center; }

/* ── Deep dive (split) ────────────────────────────────────────────────────*/
.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    align-items: center;
}
.split--flip .split__media { order: -1; }

.checks { margin-top: 28px; }
.checks li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--slate);
    line-height: 1.55;
}
.checks li:last-child { margin-bottom: 0; }
.checks li::before {
    content: '';
    position: absolute;
    left: 0; top: 3px;
    width: 19px; height: 19px;
    border-radius: 50%;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
}
.checks li::after {
    content: '';
    position: absolute;
    left: 6px; top: 8.5px;
    width: 7px; height: 4px;
    border-left: 1.8px solid var(--brand-deep);
    border-bottom: 1.8px solid var(--brand-deep);
    transform: rotate(-45deg);
}
.checks code {
    font-family: var(--font-mono);
    font-size: .88em;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 1px 6px;
    color: var(--ink);
}

/* ── Numbered flow ────────────────────────────────────────────────────────*/
.flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 60px;
}
.flow__i {
    position: relative;
    padding: 26px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.flow__i:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -11px; top: 50%;
    width: 6px; height: 6px;
    border-top: 1.5px solid var(--line);
    border-right: 1.5px solid var(--line);
    transform: translateY(-50%) rotate(45deg);
}
.flow__n {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--brand);
    display: block;
    margin-bottom: 12px;
}
.flow__i h3 { font-size: 15.5px; letter-spacing: -.025em; margin-bottom: 8px; }
.flow__i p {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Inbound email reply, shown as the ticketing mockup */
.mail { background: var(--surface-2); }
.mail__body {
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.75;
}
.mail .tk__msg { margin-bottom: 16px; }
.mail__subject { color: var(--muted); }
.mail__cmd { color: var(--brand); font-weight: 500; }
.mail__foot { margin-top: 0; border-top: 1px dashed var(--line); }

/* ── Tenant cards ─────────────────────────────────────────────────────────*/
.tenants { display: grid; gap: 12px; }
.tenant {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-s);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tenant:hover { transform: translateX(5px); box-shadow: var(--shadow); }
.tenant__logo {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: -.03em;
    color: #fff;
    flex: none;
}
.tenant__t { flex: 1; min-width: 0; }
.tenant__t b { display: block; font-size: 14.5px; letter-spacing: -.02em; }
.tenant__t small {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tenant__n { text-align: right; flex: none; }
.tenant__n b {
    display: block;
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: -.04em;
    line-height: 1;
}
.tenant__n small { font-size: 10.5px; color: var(--muted); }

/* ── Kanban mockup ────────────────────────────────────────────────────────*/
.kb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kb__col {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 11px;
}
.kb__h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    margin-bottom: 11px;
    padding-inline: 3px;
}
.kb__card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 12px;
    margin-bottom: 9px;
    box-shadow: var(--shadow-s);
}
.kb__card:last-child { margin-bottom: 0; }
.kb__card b { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; }
.kb__card small {
    display: block;
    margin-top: 7px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
}
.kb__card small.is-late { color: var(--alert); }
.kb__bar {
    height: 4px;
    border-radius: 999px;
    background: var(--line-soft);
    margin-top: 9px;
    overflow: hidden;
}
.kb__bar i { display: block; height: 100%; border-radius: 999px; }

.kb__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    font-size: 11.5px;
    color: var(--muted);
}
.kb__legend span { display: inline-flex; align-items: center; gap: 6px; }
.kb__legend i { width: 7px; height: 7px; border-radius: 50%; display: block; }

/* ── Product catalogue (products.php) ─────────────────────────────────────*/
.cat {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.pcard:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--brand-line);
}

/* The flagship card spans the full row and lays out side by side. */
.pcard--hero { grid-column: 1 / -1; }
@media (min-width: 901px) {
    .pcard--hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; }
    .pcard--hero .pcard__art { border-bottom: 0; border-right: 1px solid var(--line-soft); }
    .pcard--hero .pcard__body { padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; }
    .pcard--hero .pcard__t { font-size: 30px; }
    .pcard--hero .pcard__d { font-size: 16px; }
}

.pcard__tag {
    position: absolute;
    top: 16px; left: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--slate);
}

.pcard__art {
    position: relative;
    padding: 30px 26px;
    background:
        linear-gradient(180deg, var(--bg-soft), var(--bg));
    border-bottom: 1px solid var(--line-soft);
    min-height: 208px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcard__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.pcard__t {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: 10px;
}
.pcard__d { font-size: 14.5px; color: var(--slate); line-height: 1.6; }

.pcard__pts {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
}
.pcard__pts li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    color: var(--slate);
}
.pcard__pts li::before {
    content: '';
    position: absolute;
    left: 1px; top: 7px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand);
    opacity: .55;
}

.pcard__cta {
    margin-top: auto;
    padding-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--brand);
}
.pcard:hover .pcard__cta .arrow { transform: translateX(4px); }

/* ── Catalogue card artwork ───────────────────────────────────────────────*/
.art { width: 100%; max-width: 340px; }
.art__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.art__row--end { margin-top: 14px; }
.art__lbl {
    font-family: var(--font-mono);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
}
.art__title {
    display: block;
    margin: 12px 0 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -.025em;
    line-height: 1.3;
}
.art__bars { display: grid; gap: 6px; }
.art__bars i { display: block; height: 6px; border-radius: 999px; background: var(--line); }

.art__line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    font-size: 12.5px;
    font-weight: 500;
    box-shadow: var(--shadow-s);
}
.art__line:last-child { margin-bottom: 0; }
.art__line > span:nth-child(2) { flex: 1; min-width: 0; }
.art__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tone-ok { background: var(--ok); }

.art__device {
    position: relative;
    width: 210px;
    padding: 10px 10px 15px;
    border-radius: 15px;
    background: linear-gradient(165deg, #23252e, #131419);
    box-shadow: var(--shadow);
}
.art__eink {
    aspect-ratio: 800 / 480;
    border-radius: 5px;
    background: #e9e6dc;
    color: #16171c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    padding: 8px;
}
.art__eink strong { font-family: var(--font-display); font-size: 13px; letter-spacing: -.03em; }
.art__eink-room {
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #5d5f68;
}
.art__eink-role { font-size: 9px; color: #4a4c55; }
.art__eink-st { display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; font-weight: 600; margin-top: 2px; }
.art__eink-st i { width: 5px; height: 5px; border-radius: 50%; background: #16171c; }
.art__led {
    position: absolute;
    left: 50%; bottom: 6px;
    transform: translateX(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--ok);
    opacity: .6;
}

.art--code code {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 2;
    color: var(--slate);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 16px 18px;
    box-shadow: var(--shadow-s);
}
.art__prompt { color: var(--muted); }
.art__ok { color: var(--ok); }

.art--web { width: 100%; }
.art__chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #12131a;
    border-radius: 10px 10px 0 0;
}
.art__url { font-family: var(--font-mono); font-size: 9.5px; color: rgba(255, 255, 255, .45); }
.art__web-body {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 10px 10px;
}
.art__side { width: 46px; border-radius: 6px; background: var(--bg-soft); flex: none; min-height: 74px; }
.art__main { flex: 1; display: grid; gap: 8px; align-content: start; }
.art__main i { display: block; height: 9px; border-radius: 999px; background: var(--line); }

/* ── E-ink device mockup ──────────────────────────────────────────────────*/
.device {
    position: relative;
    max-width: 400px;
    margin-inline: auto;
    padding: 16px 16px 22px;
    border-radius: 22px;
    background: linear-gradient(165deg, #23252e, #131419);
    box-shadow: var(--shadow-l), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.device__panel {
    /* E-ink is warm grey-white, never pure white. */
    aspect-ratio: 800 / 480;
    border-radius: 8px;
    background: #e9e6dc;
    color: #16171c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.device__room {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #5d5f68;
}
.device__rule { display: block; width: 44px; height: 1px; background: rgba(0, 0, 0, .22); }
.device__name {
    font-family: var(--font-display);
    font-size: clamp(17px, 2.6vw, 23px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.15;
}
.device__role { font-size: 12.5px; color: #4a4c55; }
.device__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #16171c;
}
.device__status i {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #16171c;
    display: block;
}
.device__led {
    position: absolute;
    left: 50%;
    bottom: 9px;
    transform: translateX(-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ok);
    opacity: .65;
    animation: blip 4s ease-in-out infinite;
}

.devmeta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 400px;
    margin: 16px auto 0;
}
.devmeta div {
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    text-align: center;
}
.devmeta dt {
    font-family: var(--font-mono);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    margin-bottom: 4px;
}
.devmeta dd { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -.02em; }

/* ── Battery panel ────────────────────────────────────────────────────────*/
.batt { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.batt__v {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
}
.batt__l { font-size: 12.5px; color: var(--muted); }
.batt__track {
    height: 8px;
    border-radius: 999px;
    background: var(--bg-soft);
    overflow: hidden;
    border: 1px solid var(--line);
}
.batt__track i { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.batt__chart {
    width: 100%;
    height: 80px;
    margin-top: 18px;
    display: block;
    overflow: visible;
}

/* ── Template designer canvas ─────────────────────────────────────────────*/
.canvas { background: var(--bg-soft); }
.canvas__stage {
    position: relative;
    aspect-ratio: 800 / 480;
    background: #e9e6dc;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, .05) 1px, transparent 1px);
    background-size: 24px 24px;
    color: #16171c;
}
.canvas__el { position: absolute; font-size: 11px; }
.canvas__el--logo {
    top: 8%; left: 6%;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .18em;
    padding: 4px 8px;
    border: 1px dashed rgba(0, 0, 0, .3);
}
.canvas__el--var {
    top: 8%; right: 6%;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--violet);
    background: rgba(109, 63, 224, .1);
    padding: 3px 7px;
    border-radius: 4px;
}
.canvas__el--name {
    top: 36%; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(14px, 2.2vw, 19px);
    font-weight: 700;
    letter-spacing: -.03em;
    white-space: nowrap;
    padding: 3px 8px;
    outline: 1.5px solid var(--brand);
}
.canvas__el--role {
    top: 55%; left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #4a4c55;
    white-space: nowrap;
}
.canvas__el--line {
    top: 70%; left: 34%;
    width: 32%; height: 1px;
    background: rgba(0, 0, 0, .28);
}
.canvas__el--status {
    bottom: 10%; left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
/* Selection handles on the active element */
.canvas__h {
    position: absolute;
    width: 6px; height: 6px;
    background: #fff;
    border: 1.5px solid var(--brand);
    border-radius: 1px;
}
.canvas__h--tl { top: -4px; left: -4px; }
.canvas__h--tr { top: -4px; right: -4px; }
.canvas__h--bl { bottom: -4px; left: -4px; }
.canvas__h--br { bottom: -4px; right: -4px; }

.canvas__bar {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

/* Module cards can carry a paragraph instead of a list */
.mod__p { font-size: 13.5px; color: var(--slate); line-height: 1.55; }

/* ── Dark section (security) ──────────────────────────────────────────────*/
.dark {
    background: var(--d-bg);
    color: var(--d-text);
    position: relative;
    overflow: hidden;
}
.dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000, transparent 75%);
    pointer-events: none;
}
.dark > * { position: relative; }
.dark .eyebrow { color: #7f9dff; }
.dark .lead { color: var(--d-muted); }
.dark .card {
    background: var(--d-surface);
    border-color: var(--d-line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.dark .card:hover { border-color: rgba(127, 157, 255, .4); box-shadow: none; }
.dark .card p { color: var(--d-muted); }
.dark .card__ic {
    background: rgba(127, 157, 255, .13);
    border-color: rgba(127, 157, 255, .28);
    color: #93aaff;
}

/* ── Add-on cards ─────────────────────────────────────────────────────────*/
.addon {
    position: relative;
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.addon:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.addon::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
}
.addon--1::before { background: linear-gradient(90deg, var(--brand), #7f9dff); }
.addon--2::before { background: linear-gradient(90deg, var(--violet), #a78bfa); }
.addon--3::before { background: linear-gradient(90deg, var(--teal), #34d3c4); }
.addon__tag {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    display: block;
    margin-bottom: 14px;
}
.addon h3 { font-size: 19px; margin-bottom: 12px; }
.addon p { font-size: 14.5px; color: var(--slate); line-height: 1.62; }

/* ── "Anything can be an add-on" panel ────────────────────────────────────*/
.anyaddon {
    margin-top: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    padding: 34px 36px;
    border: 1px dashed var(--brand-line);
    border-radius: var(--radius-l);
    background:
        radial-gradient(ellipse 60% 120% at 100% 50%, rgba(47, 91, 255, .07), transparent 70%),
        var(--surface);
}
.anyaddon__tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--brand);
    margin-bottom: 12px;
}
.anyaddon h3 { font-size: 21px; margin-bottom: 12px; }
.anyaddon p { font-size: 15px; color: var(--slate); line-height: 1.62; max-width: 68ch; }
.anyaddon__note {
    margin-top: 14px;
    font-size: 13.5px !important;
    color: var(--muted) !important;
    font-style: italic;
}
.anyaddon__a { flex: none; }

/* ── Steps (how to start) ─────────────────────────────────────────────────*/
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.step { position: relative; padding-top: 22px; }
.step::before {
    counter-increment: s;
    content: counter(s);
    position: absolute;
    top: -14px; left: 0;
    font-family: var(--font-display);
    font-size: 66px;
    font-weight: 700;
    letter-spacing: -.06em;
    color: var(--line);
    line-height: 1;
    z-index: 0;
}
.step > * { position: relative; }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--slate); }

/* ── FAQ ──────────────────────────────────────────────────────────────────*/
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
    border-bottom: 1px solid var(--line);
    padding: 4px 0;
}
.faq details[open] summary { color: var(--brand); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 44px 22px 0;
    position: relative;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17.5px;
    letter-spacing: -.025em;
    transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary::after {
    content: '';
    position: absolute;
    right: 6px; top: 50%;
    width: 9px; height: 9px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq__a {
    padding: 0 40px 26px 0;
    font-size: 15.5px;
    color: var(--slate);
    line-height: 1.7;
    text-wrap: pretty;
}

/* ── Final CTA ────────────────────────────────────────────────────────────*/
.cta {
    position: relative;
    background: linear-gradient(155deg, #14161f 0%, #0a0a0f 55%, #0d1128 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 78px 48px;
    text-align: center;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    top: -180px; left: 50%;
    transform: translateX(-50%);
    width: 640px; height: 400px;
    background: radial-gradient(ellipse, rgba(47, 91, 255, .34), transparent 68%);
    pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(28px, 3.9vw, 44px); }
.cta p {
    margin: 20px auto 0;
    max-width: 54ch;
    font-size: 17px;
    color: rgba(255, 255, 255, .68);
    text-wrap: pretty;
}
.cta__row { margin-top: 34px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.cta__note { margin-top: 22px; font-size: 13.5px; color: rgba(255, 255, 255, .45); }
.cta__note a { color: rgba(255, 255, 255, .8); border-bottom: 1px solid rgba(255, 255, 255, .3); }
.cta__note a:hover { color: #fff; }

/* ── Footer ───────────────────────────────────────────────────────────────*/
.foot {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 64px 0 32px;
}
.foot__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
}
.foot__brand { display: inline-block; }
.foot__prod {
    display: inline-flex;
    margin-top: 10px;
    font-size: 17px;
}
.foot__tag {
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
    max-width: 34ch;
}
.foot h3 {
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 16px;
}
.foot li { margin-bottom: 10px; }
.foot li a, .foot address a {
    font-size: 14px;
    color: var(--slate);
    transition: color .2s ease;
}
.foot li a:hover, .foot address a:hover { color: var(--brand); }
.foot address { font-style: normal; font-size: 14px; color: var(--slate); line-height: 1.9; }
.foot__bot {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--muted);
}

/* ── Features page ────────────────────────────────────────────────────────*/
.fhero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.fhero h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -.04em; }
.fhero__back { margin-bottom: 22px; }
.fhero .eyebrow { display: block; }

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}
.toc a {
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 500;
    color: var(--slate);
    transition: border-color .2s, color .2s, background-color .2s;
}
.toc a:hover { border-color: var(--ink); color: var(--ink); }

.fgroup { padding: 64px 0; border-bottom: 1px solid var(--line-soft); }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup__h { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.fgroup__h h2 { font-size: clamp(23px, 3vw, 31px); }
.fgroup__lead { font-size: 16px; color: var(--muted); margin-bottom: 36px; max-width: 60ch; }

.flist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 40px;
}
.fitem {
    padding: 18px 0;
    border-top: 1px solid var(--line-soft);
}
.fitem b {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15.5px;
    letter-spacing: -.025em;
    margin-bottom: 5px;
}
.fitem p { font-size: 14px; color: var(--slate); line-height: 1.58; }

/* ── Modal ────────────────────────────────────────────────────────────────*/
.modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.is-open { display: flex; }
.modal__bd {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 13, .62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-l);
    animation: pop .32s var(--ease);
}
@keyframes pop {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to { opacity: 1; transform: none; }
}
.modal__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--ink);
    color: rgba(255, 255, 255, .6);
    font-family: var(--font-mono);
    font-size: 11px;
    position: sticky;
    top: 0;
}
.modal__x {
    background: none;
    border: 0;
    color: rgba(255, 255, 255, .5);
    font-size: 22px;
    line-height: 1;
    padding: 0 4px;
}
.modal__x:hover { color: #fff; }
.modal__in { padding: 30px 30px 34px; }
.modal__in h2 { font-size: 25px; margin-bottom: 6px; }
.modal__in > p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

.field { margin-bottom: 15px; }
.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    margin-bottom: 7px;
}
.field label em { color: var(--alert); font-style: normal; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--surface-2);
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(47, 91, 255, .13);
}
.field textarea { resize: vertical; min-height: 84px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.formmsg {
    display: none;
    margin-bottom: 14px;
    padding: 11px 14px;
    border-radius: var(--radius-s);
    font-size: 13.5px;
}
.formmsg.is-err { display: block; background: var(--alert-bg); color: var(--alert); border: 1px solid var(--alert-line); }
.modal .btn { width: 100%; margin-top: 8px; }

.done { text-align: center; padding: 52px 30px 56px; display: none; }
.done.is-on { display: block; }
.done__ic {
    width: 58px; height: 58px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--ok-bg);
    border: 1px solid var(--ok-line);
    color: var(--ok);
    display: grid;
    place-items: center;
    font-size: 26px;
}
.done h2 { font-size: 23px; margin-bottom: 10px; }
.done p { font-size: 14.5px; color: var(--slate); }

/* ── Reveal on scroll ─────────────────────────────────────────────────────*/
.rv {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.rv.is-in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────────────*/
@media (max-width: 1080px) {
    .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero__in { gap: 44px; }
    .foot__grid { grid-template-columns: 1fr 1fr 1fr; }
    .foot__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    :root { --gut: 20px; }
    .nav__links { display: none; }
    .upnav__t, .upnav__sep { display: none; }
    .upnav { font-size: 16px; }
    .burger { display: grid; }
    .nav__side .btn { display: none; }

    .hero { padding: 48px 0 72px; }
    .hero__in { grid-template-columns: 1fr; gap: 52px; }
    .toast--1 { left: -8px; }
    .toast--2 { right: -8px; }

    .section { padding: 76px 0; }
    .split { grid-template-columns: 1fr; gap: 44px; }
    .split--flip .split__media { order: 0; }
    .grid--3, .grid--2 { grid-template-columns: 1fr 1fr; }
    .scen { grid-template-columns: 1fr 1fr; }
    .deptflow { grid-template-columns: 1fr 1fr; }
    .deptflow__i:nth-child(2)::after { display: none; }
    .steps { grid-template-columns: 1fr; gap: 34px; }
    .flow { grid-template-columns: 1fr 1fr; }
    .flow__i:nth-child(2)::after { display: none; }
    .flist { grid-template-columns: 1fr; gap: 0; }
    .cat { grid-template-columns: 1fr; }
    .pcard__pts { grid-template-columns: 1fr; }
    .devmeta { grid-template-columns: 1fr 1fr; }
    .anyaddon { grid-template-columns: 1fr; gap: 22px; padding: 28px 24px; }
    .anyaddon__a .btn { width: 100%; }
    .cta { padding: 60px 26px; border-radius: var(--radius-l); }
}

@media (max-width: 620px) {
    .stats__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .grid--3, .grid--2, .mods { grid-template-columns: 1fr; }
    .scen, .deptflow { grid-template-columns: 1fr; }
    .deptflow__i::after { display: none !important; }
    .scen__i { align-items: flex-start; flex-wrap: wrap; }
    .flow { grid-template-columns: 1fr; }
    .flow__i::after { display: none !important; }
    .kb { grid-template-columns: 1fr; }
    .foot__grid { grid-template-columns: 1fr 1fr; }
    .tk__meta { grid-template-columns: 1fr 1fr; }
    .row2 { grid-template-columns: 1fr; }
    .toast { display: none; }
    .modal__in { padding: 24px 20px 28px; }
}

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