/*
 * The multi-page public site (MTIK_SITE_DESIGN=modern). Standalone: no framework, no CDN,
 * nothing shared with the panel - a prospect on a phone downloads this one file.
 *
 * How it is organised, top to bottom:
 *   1. tokens (light, then dark)      6. the dashboard replica (.mk-*)
 *   2. base + type per script         7. home page sections
 *   3. primitives (buttons, cards)    8. inner pages
 *   4. header, menus, language strip  9. video player
 *   5. hero                          10. footer, motion, reduced motion, print
 *
 * Four rules everything below follows. Break one and a phone or an Arabic reader pays:
 *
 *  - Mobile first. Every rule is written for a 320px screen and widened with min-width
 *    queries. Nothing may set the width of the document from its own contents: grid and
 *    flex children carry min-width: 0, and long unbreakable strings (codes, addresses)
 *    wrap. The body clips sideways overflow rather than hiding it - `hidden` there makes
 *    the document a scroll container on iOS and lets the viewport zoom out instead.
 *  - Logical properties only (margin-inline, inset-inline, text-align: start). Two of the
 *    six languages run right to left and get no stylesheet of their own; a `left` written
 *    here is a bug in Arabic and Urdu.
 *  - Hover is decoration. Every :hover sits inside @media (hover: hover), and every
 *    control has an :active state, because a phone has no hover and a tap must still
 *    answer.
 *  - Anything that moves is named in the reduced-motion block at the foot of this file.
 *
 * A fill (button, tile, badge) uses --fill and --on-fill, which do not change with the
 * colour scheme; text and icons use --brand, which does. Mixing them up is how a button
 * ends up with light text on a light fill in dark mode.
 */

/* ------------------------------------------------------------------ 1. tokens */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    /* Latin only. Arabic, Urdu, Hindi, Bengali and Nepali fall through to the reader's own
       system fonts, which are better at their script than anything we could ship. */
    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 {
    --bg: #ffffff;
    --soft: #f4f7fb;
    --card: #ffffff;
    --ink: #0b1a30;
    --text: #3a4a60;
    --muted: #64748b;
    --line: #e2e8f1;
    --line-strong: #cbd5e3;

    --brand: #0b63c5;
    --brand-strong: #084f9f;
    --brand-soft: #e8f1fd;
    --ring: rgba(11, 107, 211, .32);

    --fill: #0b6bd3;
    --fill-strong: #0958b0;
    --on-fill: #ffffff;
    --wa: #0c7c43;
    --wa-strong: #09653a;

    --ok: #15803d;
    --warn: #a16207;
    --warn-soft: #fef3c7;

    /* The dark surfaces - the closing band and the footer - are dark in both schemes, so
       everything on them names its own colour rather than inheriting --text. */
    --navy: #071428;
    --navy-2: #0c2445;
    --on-navy: #eef3fa;
    --on-navy-muted: #a3b4cb;
    --navy-line: rgba(255, 255, 255, .13);

    --shadow-sm: 0 1px 2px rgba(11, 26, 48, .06), 0 1px 3px rgba(11, 26, 48, .08);
    --shadow-md: 0 4px 10px -2px rgba(11, 26, 48, .08), 0 12px 28px -10px rgba(11, 26, 48, .16);
    --shadow-lg: 0 10px 24px -8px rgba(11, 26, 48, .14), 0 32px 64px -24px rgba(11, 26, 48, .30);

    --radius: 16px;
    --radius-sm: 10px;
    --wrap: 1160px;
    --gutter: 20px;
    --header: 64px;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
    --ease: cubic-bezier(.22, .8, .3, 1);
}

@media (min-width: 700px) {
    :root { --gutter: 32px; --header: 72px; }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a1322;
        --soft: #0e1a2e;
        --card: #101d33;
        --ink: #f1f5fb;
        --text: #c2cddd;
        --muted: #8d9db5;
        --line: #1e2c44;
        --line-strong: #2c3d5a;

        --brand: #6db2ff;
        --brand-strong: #9bcbff;
        --brand-soft: #12274a;
        --ring: rgba(109, 178, 255, .4);

        --ok: #4ade80;
        --warn: #fbbf24;
        --warn-soft: #3a2c08;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .6);
        --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .75);
    }
}

/* -------------------------------------------------------------------- 2. base */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* An in-page link must not land its target underneath the fixed header. */
    scroll-padding-top: calc(var(--header) + 16px);
}

body.st {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
    padding-top: var(--header);
    -webkit-tap-highlight-color: transparent;
}

/* In the panel's preview the header is not fixed - the banner above it would sit under it. */
body.st-is-preview { padding-top: 0; }

/*
 * The resets are written with :where(), which adds no weight to the selector - so any
 * component class further down wins over them without having to out-shout them. Written as
 * `.st ul` this block silently removed the padding from every list a component then tried
 * to pad.
 */
.st :where(h1, h2, h3, h4) {
    color: var(--ink);
    margin: 0;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.st :where(p) { margin: 0; text-wrap: pretty; }
.st :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.st :where(img, svg, video) { max-width: 100%; }
.st :where(a) { color: var(--brand); text-decoration: none; }
.st :where(button) { font: inherit; color: inherit; }
.st [hidden] { display: none !important; }

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

.st ::selection { background: var(--fill); color: var(--on-fill); }

/*
 * Type per script. The Latin face is Inter; every other script is drawn in the reader's own
 * system fonts, and each needs more room than Latin does: Arabic and Urdu stack marks above
 * and below the line, Devanagari and Bengali hang from a head line with vowel signs under
 * it. A heading set at Latin's 1.15 clips all four.
 *
 * Negative tracking is a Latin habit - it pulls joined Arabic letters apart and collides
 * Devanagari conjuncts - so it is reset for all five.
 */
html[lang="ar"] body.st, html[lang="ur"] body.st {
    font-family: "Inter", "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
    line-height: 1.9;
}

html[lang="hi"] body.st, html[lang="ne"] body.st {
    font-family: "Inter", "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", "Mangal", system-ui, sans-serif;
    line-height: 1.8;
}

html[lang="bn"] body.st {
    font-family: "Inter", "Noto Sans Bengali", "Kohinoor Bangla", "Nirmala UI", "Vrinda", system-ui, sans-serif;
    line-height: 1.8;
}

html:not([lang="en"]) .st :where(h1, h2, h3, h4) {
    letter-spacing: 0;
    line-height: 1.45;
}

/* A document that stays English inside a translated page (the legal texts). */
.st [lang="en"] { font-family: var(--font); }
.st [lang="en"] h1, .st [lang="en"] h2, .st [lang="en"] h3 { letter-spacing: -.02em; line-height: 1.15; }

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

.st-narrow { max-width: calc(860px + var(--gutter) * 2); }

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

.st-skip {
    position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 200;
    padding: 10px 16px; border-radius: 10px;
    background: var(--fill); color: var(--on-fill) !important; font-weight: 600;
    transform: translateY(-200%);
}

.st-skip:focus { transform: none; }

.st-preview {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
    padding: 10px var(--gutter);
    background: var(--warn-soft); color: var(--ink); font-size: .9rem; font-weight: 600;
}

.st-preview a { text-decoration: underline; }

/* Icons take the size and colour of the text they sit in. */
.ic { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -.125em; }
[dir="rtl"] .ic-flip { transform: scaleX(-1); }

.st-center { text-align: center; margin-top: 28px; }
.st-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* -------------------------------------------------------------- 3. primitives */

.st-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 46px; padding: 10px 20px;
    border: 1px solid transparent; border-radius: 12px;
    font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
    cursor: pointer; user-select: none;
    transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--ease), box-shadow .18s;
}

.st-btn .ic { font-size: 1.1em; }
.st-btn:active { transform: scale(.97); }

.st a.st-btn-primary, .st-btn-primary { background: var(--fill); color: var(--on-fill); box-shadow: 0 6px 16px -6px rgba(11, 107, 211, .6); }
.st a.st-btn-wa, .st-btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px -6px rgba(12, 124, 67, .6); }
.st a.st-btn-ghost, .st-btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.st a.st-btn-onink, .st-btn-onink { background: rgba(255, 255, 255, .08); color: var(--on-navy); border-color: var(--navy-line); }

.st-btn-sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; border-radius: 10px; }
.st-btn-lg { min-height: 52px; padding: 13px 24px; font-size: 1.04rem; }
.st-btn-block { display: flex; width: 100%; }

@media (hover: hover) {
    .st-btn-primary:hover { background: var(--fill-strong); transform: translateY(-1px); }
    .st-btn-wa:hover { background: var(--wa-strong); transform: translateY(-1px); }
    .st-btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
    .st-btn-onink:hover { background: rgba(255, 255, 255, .16); }
}

.st-link {
    display: inline-flex; align-items: center; gap: .4em;
    font-weight: 600; color: var(--brand);
}

.st-link .ic { transition: transform .2s var(--ease); }

@media (hover: hover) {
    .st-link:hover { color: var(--brand-strong); }
    .st-link:hover .ic { transform: translateX(3px); }
    [dir="rtl"] .st-link:hover .ic-flip { transform: scaleX(-1) translateX(3px); }
}

.st-eyebrow, .st-kicker {
    display: inline-flex; align-items: center; gap: .5em;
    color: var(--brand); font-size: .8rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}

/* Capitals and tracking are Latin devices. On the other five languages they would shout
   the Latin product names inside the line and space out joined letters. */
html:not([lang="en"]) .st-eyebrow, html:not([lang="en"]) .st-kicker { text-transform: none; letter-spacing: 0; font-size: .95rem; }

.st-tile {
    display: inline-grid; place-items: center; flex: none;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--brand-soft); color: var(--brand); font-size: 1.25rem;
}

.st-tile-lg { width: 52px; height: 52px; border-radius: 14px; font-size: 1.5rem; }
.st-tile-wa { background: rgba(12, 124, 67, .12); color: var(--wa); }

@media (prefers-color-scheme: dark) { .st-tile-wa { color: #4ade80; } }

.st-section { padding-block: clamp(56px, 8vw, 100px); }
.st-section-soft { background: var(--soft); }
.st-section-tight { padding-block: clamp(36px, 5vw, 64px); }

.st-head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; display: grid; gap: 14px; justify-items: center; }
.st-head h2 { font-size: clamp(1.65rem, 2.4vw + 1rem, 2.5rem); }
.st-head p { color: var(--muted); font-size: 1.08rem; max-width: 64ch; }
.st-head-start { margin-inline: 0; text-align: start; justify-items: start; }

.st-cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }

@media (min-width: 700px) {
    .st-cards-2, .st-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (min-width: 1000px) {
    .st-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.st-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
    min-width: 0; padding: 24px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}

.st-card h3 { font-size: 1.12rem; }
.st-card p { color: var(--muted); font-size: .98rem; }
.st-card .st-link { margin-top: auto; padding-top: 4px; font-size: .95rem; }
.st-card-list h3 { display: flex; align-items: center; gap: 12px; }
.st-card-list .st-ticks { width: 100%; }

@media (hover: hover) {
    .st-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
}

.st-ticks { display: grid; gap: 10px; }
.st-ticks li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; font-size: .98rem; }
.st-ticks li > span { min-width: 0; overflow-wrap: anywhere; }
.st-ticks .ic { color: var(--ok); font-size: 1.1rem; margin-top: .28em; }

@media (min-width: 760px) {
    .st-ticks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}

.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.st-chip {
    display: inline-flex; align-items: center; gap: .45em;
    min-height: 42px; padding: 8px 16px;
    border: 1px solid var(--line-strong); border-radius: 999px;
    background: var(--card); color: var(--text);
    font-size: .93rem; font-weight: 600; line-height: 1.2; cursor: pointer;
    transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--ease);
}

.st a.st-chip { color: var(--text); }
.st-chip:active { transform: scale(.96); }
.st-chip[aria-pressed="true"], .st a.st-chip.is-current { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }

@media (hover: hover) {
    .st-chip:not([aria-pressed="true"]):not(.is-current):hover { border-color: var(--brand); color: var(--brand); }
}

.st-tag {
    display: inline-flex; align-items: center; gap: .4em;
    padding: 3px 10px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand);
    font-size: .76rem; font-weight: 600; line-height: 1.5;
}

.st-tag-plain { background: transparent; color: var(--muted); border: 1px solid var(--line); }

.st-empty {
    padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
    text-align: center; color: var(--muted); display: grid; gap: 16px; justify-items: center;
}

.st-round {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    border: 1px solid var(--line-strong); border-radius: 50%;
    background: var(--card); color: var(--ink); font-size: 1.1rem; cursor: pointer;
    transition: border-color .18s, color .18s, transform .18s var(--ease), opacity .18s;
}

.st-round:active { transform: scale(.94); }
.st-round:disabled { opacity: .35; cursor: default; }

@media (hover: hover) {
    .st-round:not(:disabled):hover { border-color: var(--brand); color: var(--brand); }
}

/* ------------------------------------------------- 4. header, menus, strip */

.st-header {
    position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
    height: var(--header);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}

.st-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(11, 26, 48, .35); }
body.st-is-preview .st-header { position: sticky; }

.st-header-row { height: 100%; display: flex; align-items: center; gap: 12px; }

.st-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; margin-inline-end: auto; }
.st-brand img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.st-brand-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--fill); color: var(--on-fill); font-size: 1.2rem; }
.st-brand-text { display: grid; line-height: 1.15; min-width: 0; }
.st-brand-name { color: var(--ink); font-weight: 800; font-size: 1.16rem; letter-spacing: -.01em; }
.st-brand-tag { color: var(--muted); font-size: .7rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 379px) { .st-brand-tag { display: none; } }

.st-nav { display: none; align-items: center; gap: 2px; }

.st-nav-link {
    display: inline-flex; align-items: center; gap: .35em;
    padding: 9px 13px; border: 0; border-radius: 10px; background: none;
    color: var(--text); font-weight: 600; font-size: .96rem; cursor: pointer; white-space: nowrap;
    transition: background-color .18s, color .18s;
}

.st a.st-nav-link { color: var(--text); }
.st-nav-link.is-current, .st a.st-nav-link.is-current { color: var(--brand); }
.st-caret { font-size: .7em; transition: transform .2s var(--ease); }

@media (hover: hover) {
    .st-nav-link:hover, .st a.st-nav-link:hover { background: var(--soft); color: var(--ink); }
}

.st-nav-item { position: relative; }

/* The Solutions panel. Open on hover and on keyboard focus from CSS alone; site.js adds
   .is-open for a click, which is what a touch screen at desktop width needs. */
.st-menu {
    position: absolute; inset-block-start: calc(100% + 10px); inset-inline-start: 50%;
    width: min(640px, calc(100vw - 2 * var(--gutter)));
    padding: 18px;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; translate: -50% 6px;
    transition: opacity .18s, translate .2s var(--ease), visibility 0s .2s;
}

[dir="rtl"] .st-menu { translate: 50% 6px; }

/* Bridges the gap between the button and the panel, so the pointer can cross it. */
.st-menu::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: -12px; height: 12px; }

.st-has-menu:focus-within .st-menu, .st-has-menu.is-open .st-menu {
    opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s;
}

[dir="rtl"] .st-has-menu:focus-within .st-menu, [dir="rtl"] .st-has-menu.is-open .st-menu { translate: 50% 0; }

@media (hover: hover) {
    .st-has-menu:hover .st-menu { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
    [dir="rtl"] .st-has-menu:hover .st-menu { translate: 50% 0; }
    .st-has-menu:hover .st-caret { transform: rotate(180deg); }
}

.st-has-menu.is-open .st-caret, .st-has-menu:focus-within .st-caret { transform: rotate(180deg); }

.st-menu-lede { color: var(--muted); font-size: .88rem; padding: 2px 10px 12px; }
.st-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }

.st-menu-grid a, .st-mnav-solutions a {
    display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; min-width: 0;
    transition: background-color .15s;
}

.st-menu-grid a > span:last-child, .st-mnav-solutions a > span:last-child { display: grid; min-width: 0; line-height: 1.35; }
.st-menu-grid b, .st-mnav-solutions b { color: var(--ink); font-size: .96rem; font-weight: 650; }
.st-menu-grid small, .st-mnav-solutions small { color: var(--muted); font-size: .82rem; }
.st-menu-grid a[aria-current="page"], .st-mnav-solutions a[aria-current="page"] { background: var(--brand-soft); }

@media (hover: hover) {
    .st-menu-grid a:hover { background: var(--soft); }
}

.st-menu-grid a:active, .st-mnav-solutions a:active { background: var(--soft); }

.st-menu-all {
    display: flex; align-items: center; justify-content: center; gap: .4em;
    margin-top: 12px; padding: 12px; border-top: 1px solid var(--line);
    font-weight: 600; font-size: .93rem;
}

.st-header-actions { display: flex; align-items: center; gap: 8px; }
.st-only-wide { display: none; }

/* The language list and the phone menu are both <details>: they work with scripting off. */
.st-lang, .st-mnav { position: relative; }
.st-lang > summary, .st-mnav > summary { list-style: none; cursor: pointer; }
.st-lang > summary::-webkit-details-marker, .st-mnav > summary::-webkit-details-marker { display: none; }

.st-lang > summary {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 8px 11px; border-radius: 10px;
    color: var(--text); font-weight: 600; font-size: .92rem;
}

.st-lang[open] > summary { background: var(--soft); }
.st-lang[open] .st-caret { transform: rotate(180deg); }

.st-lang-menu {
    position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 5;
    min-width: 210px; padding: 8px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
    display: grid; gap: 2px;
}

.st-lang-menu a {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    min-height: 44px; padding: 10px 12px; border-radius: 10px;
    color: var(--ink); font-weight: 600;
}

.st-lang-menu small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.st-lang-menu a.is-current { background: var(--brand-soft); color: var(--brand); }
.st-lang-menu a:active { background: var(--soft); }

@media (hover: hover) { .st-lang-menu a:hover { background: var(--soft); } }
@media (max-width: 479px) { .st-lang-current { display: none; } }

.st-mnav > summary {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    color: var(--ink); font-size: 1.5rem;
}

.st-mnav > summary:active { background: var(--soft); }
.st-mnav .st-mnav-close, .st-mnav[open] .st-mnav-open { display: none; }
.st-mnav[open] .st-mnav-close { display: block; font-size: 1.2rem; }

/* A sheet under the header that scrolls by itself: in landscape on a short phone the list
   is taller than the screen, and a menu you cannot reach the bottom of is worse than none. */
.st-mnav-panel {
    position: fixed; inset-inline: 0; inset-block-start: var(--header); z-index: 90;
    max-height: calc(100dvh - var(--header)); overflow-y: auto; overscroll-behavior: contain;
    padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: grid; gap: 14px;
}

.st-mnav-label { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
html:not([lang="en"]) .st-mnav-label { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.st-mnav-solutions { display: grid; gap: 2px; }
.st-mnav-links { display: grid; border-top: 1px solid var(--line); padding-top: 8px; }
.st-mnav-links a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.st-mnav-links a[aria-current="page"] { color: var(--brand); }
.st-mnav-links a:active { background: var(--soft); }

@media (min-width: 700px) {
    .st-mnav-solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
    .st-nav { display: flex; }
    .st-only-wide { display: inline-flex; }
    .st-mnav { display: none; }
    .st-brand { margin-inline-end: 12px; }
    .st-header-actions { margin-inline-start: auto; }
}

/* The strip that makes a guessed language cheap to undo. */
.st-strip { background: var(--brand-soft); border-bottom: 1px solid var(--line); font-size: .92rem; }
.st-strip-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 10px; }
.st-strip p { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; min-width: 0; }
.st-strip-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.st-strip-btn {
    display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px;
    background: var(--fill); color: var(--on-fill) !important; font-weight: 600; font-size: .88rem;
}

.st-strip-keep { background: transparent; color: var(--ink) !important; border: 1px solid var(--line-strong); }
.st-strip-btn:active { transform: scale(.97); }

/* -------------------------------------------------------------------- 5. hero */

.st-hero { position: relative; padding-top: clamp(28px, 5vw, 64px); overflow: clip; }

.st-hero-glow {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(52% 46% at 86% 4%, rgba(25, 167, 224, .20), transparent 70%),
        radial-gradient(44% 40% at 6% 14%, rgba(11, 107, 211, .13), transparent 70%);
}

/* A faint ruled grid, masked so it fades out before it reaches the headline. */
.st-hero-glow::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(70% 60% at 70% 0%, #000 0%, transparent 75%);
    mask-image: radial-gradient(70% 60% at 70% 0%, #000 0%, transparent 75%);
    opacity: .7;
}

.st-hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; grid-template-columns: minmax(0, 1fr); }
.st-hero-copy { display: grid; gap: 20px; min-width: 0; }
.st-hero h1 { display: grid; gap: 14px; }
.st-hero-title { font-size: clamp(2.2rem, 6.2vw + .6rem, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
html:not([lang="en"]) .st-hero-title { letter-spacing: 0; line-height: 1.35; font-size: clamp(1.9rem, 5vw + .6rem, 3.2rem); }
.st-hero-sub { font-size: clamp(1.06rem, .5vw + 1rem, 1.22rem); color: var(--text); max-width: 60ch; }
.st-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.st-hero-notes { display: grid; gap: 8px; margin-top: 4px; }
.st-hero-notes li { display: flex; align-items: flex-start; gap: 10px; font-size: .96rem; color: var(--text); }
.st-hero-notes .ic { color: var(--ok); margin-top: .3em; }

.st-hero-shot { min-width: 0; perspective: 1400px; }
.st-hero-shot .mk-window { transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .5s var(--ease); }

@media (max-width: 479px) {
    .st-hero-cta .st-btn { flex: 1 1 100%; }
}

@media (min-width: 1000px) {
    .st-hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
}

.st-audience { position: relative; z-index: 1; margin-top: clamp(36px, 6vw, 72px); padding-block: 22px; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--soft) 70%, transparent); }
.st-audience p { text-align: center; color: var(--muted); font-size: .9rem; font-weight: 600; margin-bottom: 14px; }

/*
 * The list is printed twice and the track slides by exactly half its width, which only
 * loops seamlessly if the two copies are the whole track: no gap between them, and each
 * copy carrying its own trailing padding instead.
 */
.st-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.st-marquee-track { display: flex; width: max-content; animation: st-marquee 44s linear infinite; }
[dir="rtl"] .st-marquee-track { animation-name: st-marquee-rtl; }
.st-marquee-track ul { display: flex; gap: 10px; padding-inline-end: 10px; flex: none; }

.st-marquee-track li {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--card); color: var(--ink); font-size: .92rem; font-weight: 600;
}

.st-marquee-track .ic { color: var(--brand); }

@media (hover: hover) { .st-marquee:hover .st-marquee-track { animation-play-state: paused; } }

@keyframes st-marquee { to { transform: translateX(-50%); } }
@keyframes st-marquee-rtl { to { transform: translateX(50%); } }

/* -------------------------------------------- 6. the dashboard replica (.mk) */

/*
 * A picture of the product, so it keeps the product's own colours whatever the visitor's
 * colour scheme is: a white app window on a dark page reads as a screenshot, and a
 * re-themed one would make the page lie about what the dashboard looks like. Every colour
 * in here is therefore local to .mk and none of the page's tokens are read.
 *
 * The KPI palettes are copied from the panel's own stylesheet (mtik.css) so the two
 * surfaces cannot drift apart.
 */
.mk {
    --mk-bg: #f3f6fb; --mk-card: #ffffff; --mk-ink: #14213a; --mk-muted: #6b7890; --mk-line: #e3e8f0;
    display: grid; gap: 12px; min-width: 0; padding: 14px;
    background: var(--mk-bg); color: var(--mk-ink); border-radius: 14px;
    font-size: .8rem; line-height: 1.4; text-align: start;
}

.mk-window { padding: 0; gap: 0; border: 1px solid var(--mk-line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.mk-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--mk-line); }
.mk-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d7deea; flex: none; }
.mk-bar b { margin-inline: auto; padding: 3px 14px; border-radius: 999px; background: var(--mk-bg); color: var(--mk-muted); font: 500 .72rem/1.5 var(--mono); max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-body { display: grid; gap: 12px; padding: 14px; min-width: 0; }

.mk-scope { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; background: var(--mk-card); border: 1px solid var(--mk-line); border-radius: 12px; }
.mk-scope > .ic { font-size: 1.1rem; color: var(--mk-muted); }
.mk-scope > div { display: grid; min-width: 0; line-height: 1.3; }
.mk-scope b { font-size: .86rem; }
.mk-scope .sub { font-size: .72rem; color: var(--mk-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-scope > .mk-badge, .mk-scope > .mk-pill { margin-inline-start: auto; }

.mk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }

@media (min-width: 760px) { .mk-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.mk-stat {
    position: relative; overflow: hidden; min-width: 0; min-height: 84px; padding: 11px 12px;
    border-radius: 13px; color: #fff;
    background-image: linear-gradient(135deg, var(--s-from) 0%, var(--s-to) 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 6px 16px -6px var(--s-glow, rgba(0, 0, 0, .35));
}

.mk-stat .l { font-size: .62rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
html:not([lang="en"]) .mk-stat .l { text-transform: none; letter-spacing: 0; font-size: .7rem; }
.mk-stat .n { font-size: 1.4rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mk-stat .m { font-size: .64rem; color: rgba(255, 255, 255, .82); margin-top: 2px; }
.mk-stat > .ic { position: absolute; inset-inline-end: -4px; inset-block-end: -10px; font-size: 3rem; opacity: .18; pointer-events: none; }

.s-indigo { --s-from: #6366f1; --s-to: #4338ca; --s-glow: rgba(79, 70, 229, .5); }
.s-blue   { --s-from: #3b82f6; --s-to: #1d4ed8; --s-glow: rgba(37, 99, 235, .5); }
.s-green  { --s-from: #22c55e; --s-to: #15803d; --s-glow: rgba(22, 163, 74, .5); }
.s-red    { --s-from: #f43f5e; --s-to: #be123c; --s-glow: rgba(225, 29, 72, .5); }
.s-teal   { --s-from: #14b8a6; --s-to: #0f766e; --s-glow: rgba(13, 148, 136, .5); }
.s-purple { --s-from: #a855f7; --s-to: #7e22ce; --s-glow: rgba(147, 51, 234, .5); }
.s-cyan   { --s-from: #06b6d4; --s-to: #0e7490; --s-glow: rgba(8, 145, 178, .5); }
.s-sky    { --s-from: #38bdf8; --s-to: #0369a1; --s-glow: rgba(2, 132, 199, .5); }
.s-orange { --s-from: #fb923c; --s-to: #c2410c; --s-glow: rgba(234, 88, 12, .5); }
.s-pink   { --s-from: #ec4899; --s-to: #be185d; --s-glow: rgba(219, 39, 119, .5); }

.mk-split { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .mk-split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }

.mk-panel { min-width: 0; background: var(--mk-card); border: 1px solid var(--mk-line); border-radius: 12px; overflow: hidden; }
.mk-panel-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--mk-line); font-weight: 650; font-size: .84rem; min-width: 0; }
.mk-panel-head .ic { color: var(--mk-muted); }
.mk-panel-head .mk-badge { margin-inline-start: auto; }
.mk-panel-body { padding: 11px 12px; min-width: 0; }
.mk-badge { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--mk-bg); color: var(--mk-muted); font-size: .66rem; font-weight: 600; white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }

.mk-legend { display: flex; gap: 14px; margin-bottom: 6px; font-size: .68rem; color: var(--mk-muted); }
.mk-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mk-legend b { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.mk-chart { display: block; width: 100%; height: auto; color: var(--mk-line); }

.mk-bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.mk-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #6366f1, #4338ca); }
.mk-bars i:nth-child(even) { opacity: .6; }

.mk-thead { display: flex; gap: 10px; padding: 0 2px 7px; border-bottom: 1px solid var(--mk-line); font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mk-muted); }
html:not([lang="en"]) .mk-thead { text-transform: none; letter-spacing: 0; font-size: .7rem; }
.mk-thead span:first-child { flex: 1.3; min-width: 0; }
.mk-thead span:nth-child(2):not(.grow) { flex: 1; min-width: 0; }
.mk-thead-gap { margin-top: 12px; }
.mk .grow { margin-inline-start: auto; }
.mk .w { width: 4.4rem; text-align: end; flex: none; }

.mk-rows { display: grid; min-width: 0; }
.mk-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 2px; border-bottom: 1px solid var(--mk-line); font-size: .76rem; }
.mk-row:last-child { border-bottom: 0; }
.mk-row > span:first-child:not(.mk-dot), .mk-row > .mk-dot + .name { flex: 1.3; min-width: 0; }
.mk-row > .sub:nth-child(2) { flex: 1; min-width: 0; }
.mk-row .code { font-family: var(--mono); font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.mk-row .sub { color: var(--mk-muted); font-size: .68rem; }
.mk-row .num { font-variant-numeric: tabular-nums; font-weight: 600; }
.mk-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mk-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #a9b4c6; }
.mk-dot-on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }

.mk-pill { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--mk-bg); color: var(--mk-muted); font-size: .66rem; font-weight: 700; white-space: nowrap; }
.mk-pill-green { background: rgba(27, 175, 122, .14); color: #0f7d55; }
.mk-pill-red { background: rgba(227, 73, 72, .14); color: #c0342f; }
.mk-pill-amber { background: rgba(237, 161, 0, .16); color: #96650a; }

.mk-meter-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; color: var(--mk-muted); font-size: .72rem; }
.mk-meter-head b { color: var(--mk-ink); font-size: 1.3rem; font-weight: 800; }
.mk-meter { height: 7px; border-radius: 999px; background: var(--mk-bg); overflow: hidden; }
.mk-meter i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #15803d); }

.mk-vouchers { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 9px; }
.mk-voucher { min-width: 0; padding: 12px 10px; border: 1px dashed #b9c4d6; border-radius: 12px; background: #fff; text-align: center; display: grid; gap: 7px; }
.mk-voucher-top { display: flex; align-items: center; justify-content: center; gap: 6px; color: #0b6bd3; font-weight: 700; font-size: .74rem; }
.mk-voucher-code { font: 700 clamp(.78rem, 2.6vw, .98rem)/1.3 var(--mono); letter-spacing: -.02em; overflow-wrap: anywhere; }
.mk-voucher-meta { display: flex; justify-content: center; gap: 14px; font-size: .64rem; color: var(--mk-muted); }
.mk-voucher-meta b { display: block; color: var(--mk-ink); font-size: .76rem; }

/* ---------------------------------------------------------- 7. home sections */

.st-finder { display: grid; gap: 12px; justify-items: center; margin-bottom: 28px; }
.st-finder-label { color: var(--muted); font-size: .9rem; font-weight: 600; }
.st-finder .st-chips { justify-content: center; }

.st-solutions { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }

/* On a phone a card is a row - icon, words, arrow - so eight of them are a list to scan
   rather than eight screens to scroll. From 640px they become cards. */
.st-solution {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start;
    min-width: 0; padding: 18px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s, transform .2s var(--ease), opacity .25s;
}

.st-solution-text { display: grid; gap: 6px; min-width: 0; }
.st-solution h3 { font-size: 1.1rem; }
.st-solution p { color: var(--muted); font-size: .95rem; }
.st-solution-more { grid-column: 2; display: inline-flex; align-items: center; gap: .4em; color: var(--brand); font-weight: 600; font-size: .92rem; }
.st-solution-more .ic { transition: transform .2s var(--ease); }
.st-solution:active { transform: scale(.985); }
.st-solution.is-out { display: none; }

@media (hover: hover) {
    .st-solution:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-3px); }
    .st-solution:hover .st-solution-more .ic { transform: translateX(4px); }
    [dir="rtl"] .st-solution:hover .st-solution-more .ic { transform: scaleX(-1) translateX(4px); }
}

@media (min-width: 640px) {
    .st-solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .st-solution { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px; align-content: start; }
    .st-solution-more { grid-column: 1; margin-top: auto; }
}

@media (min-width: 1000px) {
    .st-solutions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .st-solutions-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.st-why { display: grid; gap: 24px 20px; grid-template-columns: minmax(0, 1fr); }
.st-why article { display: grid; gap: 10px; align-content: start; justify-items: start; min-width: 0; }
.st-why h3 { font-size: 1.1rem; }
.st-why p { color: var(--muted); font-size: .97rem; }

@media (min-width: 600px) { .st-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .st-why { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }

/* Tabs. The strip scrolls sideways on a phone and is masked at its far edge so it reads as
   scrollable; every panel is in the page and site.js hides the ones not chosen. */
.st-tabs { display: grid; gap: 18px; min-width: 0; }

.st-tablist {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
    padding: 4px 2px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
}

[dir="rtl"] .st-tablist { -webkit-mask-image: linear-gradient(270deg, #000 88%, transparent); mask-image: linear-gradient(270deg, #000 88%, transparent); }
.st-tablist::-webkit-scrollbar { display: none; }

.st-tab {
    display: inline-flex; align-items: center; gap: .5em; flex: none; scroll-snap-align: start;
    min-height: 44px; padding: 9px 16px;
    border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--text);
    font-weight: 600; font-size: .93rem; white-space: nowrap; cursor: pointer;
    transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--ease);
}

.st-tab:active { transform: scale(.96); }
.st-tab[aria-selected="true"] { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }

@media (hover: hover) {
    .st-tab:not([aria-selected="true"]):hover { border-color: var(--brand); color: var(--brand); }
}

@media (min-width: 900px) {
    .st-tablist { flex-wrap: wrap; justify-content: center; overflow: visible; margin-inline: 0; padding-inline: 0; -webkit-mask-image: none; mask-image: none; }
}

.st-tabpanel { min-width: 0; }
.js .st-tabpanel.is-active { animation: st-fade .35s var(--ease) backwards; }
.st-tabpanel-head { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 14px; }
/* The heading tells five stacked lists apart when there is no script; with one, the tab does. */
.js .st-tabpanel-head { display: none; }
.st-tabpanel-list { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

.st-shot { display: grid; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); }
.st-shot > .mk { border-radius: 0; padding: clamp(12px, 2.5vw, 22px); }
.st-shot-cap { padding: 18px clamp(16px, 2.5vw, 24px) 22px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.st-shot-cap h3 { font-size: 1.12rem; }
.st-shot-cap p { color: var(--muted); font-size: .97rem; max-width: 72ch; }

@keyframes st-fade { from { opacity: 0; transform: translateY(8px); } }

/* How it works. Numbered by a counter, so no template and no translation knows the order. */
.st-steps { counter-reset: step; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }

.st-steps li {
    counter-increment: step; position: relative; min-width: 0;
    padding-block: 0 28px; padding-inline-start: 62px;
}

.st-steps li::before {
    content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 0;
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    background: var(--fill); color: var(--on-fill); font-weight: 700; font-size: 1.05rem;
    box-shadow: 0 0 0 6px var(--soft);
}

/* The rail that joins the markers. */
.st-steps li::after {
    content: ""; position: absolute; inset-inline-start: 20px; inset-block: 46px 4px; width: 2px;
    background: var(--line-strong);
}

.st-steps li:last-child { padding-bottom: 0; }
.st-steps li:last-child::after { display: none; }
.st-steps h3 { font-size: 1.12rem; padding-top: 8px; margin-bottom: 6px; }
.st-steps p { color: var(--muted); font-size: .97rem; }
.st-host { font-family: var(--mono); font-size: .92em; color: var(--brand); font-weight: 600; overflow-wrap: anywhere; }

@media (min-width: 900px) {
    .st-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
    .st-steps li { padding: 58px 0 0; }
    .st-steps li::after { inset-inline: 50px -28px; inset-block: 20px auto; width: auto; height: 2px; }
}

/* Tutorials. */
.st-videos { display: grid; gap: 22px; min-width: 0; }
.st-videos > .st-chips { justify-content: center; }
.st-video-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); justify-content: center; }
.st-video { min-width: 0; }

.st-video-open {
    display: grid; gap: 12px; width: 100%; padding: 0; border: 0; background: none; text-align: start; cursor: pointer;
}

.st-video-thumb { position: relative; display: block; max-height: 420px; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--navy); border: 1px solid var(--line); }
.st-video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.st-video-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-navy-muted); font-size: 3rem; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }

.st-video-play {
    position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: #0b6bd3; font-size: 1.7rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .25s var(--ease);
}

.st-video-play .ic { margin-inline-start: 3px; }
.st-video-time { position: absolute; inset-block-end: 10px; inset-inline-end: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; font: 600 .76rem/1.5 var(--mono); }
.st-video-meta { display: grid; gap: 8px; min-width: 0; }
.st-video-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.st-video-title { color: var(--ink); font-weight: 700; font-size: 1.08rem; line-height: 1.35; }
.st-video-summary { color: var(--muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st-video-open:active .st-video-play { transform: scale(.92); }

@media (hover: hover) {
    .st-video-open:hover .st-video-thumb img { transform: scale(1.04); }
    .st-video-open:hover .st-video-play { transform: scale(1.08); }
}

/* Reviews: swiped on a phone, stepped with the arrows on a desktop. The track bleeds to
   both edges of the screen and pads itself back to the page's own margin. */
.st-reviews { display: grid; gap: 20px; }

.st-reviews-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-block: 6px 14px;
    padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
    overscroll-behavior-x: contain;
}

.st-reviews-track::-webkit-scrollbar { display: none; }
.st-reviews-track > li { flex: 0 0 min(84vw, 380px); scroll-snap-align: start; display: flex; }

/* position: relative is load-bearing. Each card holds a visually-hidden rating, which is
   absolutely positioned; without a positioned ancestor inside the scrolling row it is laid
   out against the page instead, far to the side, and makes the whole document 2400px wide
   on a phone - the header then stretches to match and its buttons leave the screen. */
.st-review { position: relative; display: flex; flex-direction: column; gap: 14px; width: 100%; margin: 0; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.st-review-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st-stars { display: inline-flex; gap: 3px; color: #f59e0b; font-size: .95rem; }
.st-review-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: .76rem; font-weight: 700; }
.st-review blockquote { margin: 0; color: var(--ink); font-size: 1.02rem; line-height: 1.6; flex: 1; }
.st-review figcaption { display: flex; align-items: center; gap: 12px; }
.st-review figcaption > span:last-child { display: grid; line-height: 1.35; min-width: 0; }
.st-review figcaption b { color: var(--ink); font-size: .95rem; }
.st-review figcaption small { color: var(--muted); font-size: .84rem; }
.st-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.st-carousel-nav { display: flex; justify-content: center; gap: 10px; }

/* Plans. */
.st-plans { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }

@media (min-width: 720px) { .st-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .st-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.st-plan {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0;
    padding: 28px 24px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
    transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}

.st-plan.is-featured { border-color: var(--fill); box-shadow: 0 0 0 1px var(--fill), var(--shadow-md); }
.st-plan-flag { position: absolute; inset-block-start: -13px; inset-inline-start: 24px; padding: 3px 12px; border-radius: 999px; background: var(--fill); color: var(--on-fill); font-size: .76rem; font-weight: 700; }
.st-plan-type { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
html:not([lang="en"]) .st-plan-type { text-transform: none; letter-spacing: 0; font-size: .86rem; }
.st-plan h3, .st-plan h2 { font-size: 1.4rem; }
.st-plan-summary { color: var(--muted); font-size: .98rem; }
.st-plan .st-ticks { width: 100%; margin-block: 6px 12px; }
.st-plan .st-ticks .ic { color: var(--brand); }
.st-plan > .st-btn { margin-top: auto; }
.st-plan-wide > .st-btn { margin-top: 8px; }
.st-plan-wide { padding: clamp(24px, 4vw, 36px); }

@media (hover: hover) {
    .st-plan:not(.st-plan-wide):hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}

.st-banner {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: center;
    margin-top: 24px; padding: 20px 22px;
    background: linear-gradient(120deg, var(--brand-soft), var(--card)); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
}

.st-banner-text { display: grid; gap: 2px; min-width: 0; }
.st-banner-text b { color: var(--ink); font-size: 1.08rem; }
.st-banner-text span { color: var(--muted); font-size: .96rem; }
.st-banner-more { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: .4em; color: var(--brand); font-weight: 600; }
.st-banner:active { border-color: var(--brand); }

@media (hover: hover) { .st-banner:hover { border-color: var(--brand); box-shadow: var(--shadow-md); } }

@media (min-width: 760px) {
    .st-banner { grid-template-columns: auto minmax(0, 1fr) auto; }
    .st-banner-more { grid-column: auto; }
}

/* Questions. */
.st-faq { display: grid; border-top: 1px solid var(--line); }
.st-faq details { border-bottom: 1px solid var(--line); }
.st-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; list-style: none; cursor: pointer; color: var(--ink); font-weight: 650; font-size: 1.05rem; line-height: 1.4; }
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary > span { min-width: 0; }
.st-faq-mark { color: var(--brand); font-size: 1rem; transition: transform .25s var(--ease); }
.st-faq details[open] .st-faq-mark { transform: rotate(45deg); }
.st-faq details p { padding: 0 2px 20px; color: var(--text); max-width: 74ch; }
.st-faq summary:active { color: var(--brand); }

@media (hover: hover) { .st-faq summary:hover { color: var(--brand); } }

/* The closing band. Dark in both schemes: everything on it names its own colour. */
.st-cta-section { padding-block: clamp(36px, 6vw, 72px); }

.st-cta {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; gap: 16px; justify-items: center; text-align: center;
    padding: clamp(36px, 7vw, 72px) clamp(20px, 5vw, 56px); border-radius: 28px;
    background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-navy);
}

.st-cta::before {
    content: ""; position: absolute; z-index: -1; inset: -40% -10% auto; height: 120%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(25, 167, 224, .32), transparent 70%);
}

.st .st-cta h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw + 1rem, 2.6rem); max-width: 22ch; }
.st-cta p { color: var(--on-navy-muted); font-size: 1.08rem; max-width: 60ch; }
.st-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* The demo button that follows the reader on a phone. Hidden where the header already
   carries one. */
.st-fab {
    position: fixed; z-index: 80; inset-inline-end: 16px; inset-block-end: calc(16px + env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 12px 18px; border-radius: 999px;
    background: var(--wa); color: #fff !important; font-weight: 700; box-shadow: 0 12px 28px -8px rgba(12, 124, 67, .7);
    transition: transform .25s var(--ease), opacity .25s;
}

.st-fab .ic { font-size: 1.3rem; }
.st-fab:active { transform: scale(.95); }
.js .st-fab:not(.is-shown) { opacity: 0; transform: translateY(20px); pointer-events: none; }

@media (min-width: 1040px) { .st-fab { display: none; } }

/* ------------------------------------------------------------ 8. inner pages */

.st-page-hero {
    position: relative; padding-block: clamp(20px, 3vw, 32px) clamp(32px, 5vw, 56px);
    background:
        radial-gradient(50% 80% at 90% 0%, rgba(25, 167, 224, .16), transparent 70%),
        radial-gradient(40% 70% at 0% 0%, rgba(11, 107, 211, .10), transparent 70%),
        var(--soft);
    border-bottom: 1px solid var(--line);
}

.st-page-hero h1 { font-size: clamp(1.85rem, 3.6vw + .8rem, 3.1rem); font-weight: 800; letter-spacing: -.03em; margin-block: 14px 16px; max-width: 22ch; }
html:not([lang="en"]) .st-page-hero h1 { letter-spacing: 0; font-size: clamp(1.7rem, 3vw + .8rem, 2.6rem); }
.st-page-lede { font-size: clamp(1.05rem, .4vw + 1rem, 1.2rem); color: var(--text); max-width: 62ch; }
.st-page-hero .st-hero-cta { margin-top: 24px; }
.st-page-hero-center { text-align: center; }
.st-page-hero-center h1, .st-page-hero-center .st-page-lede { margin-inline: auto; }
.st-page-hero-center .st-crumbs { justify-content: center; }
.st-page-hero-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }

@media (min-width: 1000px) { .st-page-hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; } }

.st-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: .88rem; }
.st-crumbs a { color: var(--muted); }
.st-crumbs .ic { font-size: .7rem; }
.st-crumbs [aria-current] { color: var(--ink); font-weight: 600; }

@media (hover: hover) { .st-crumbs a:hover { color: var(--brand); } }

.st-toc { padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.st .st-toc h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
html:not([lang="en"]) .st .st-toc h2 { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.st-toc ol { counter-reset: toc; display: grid; }
.st-toc li { counter-increment: toc; }
.st-toc a { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 550; font-size: .97rem; line-height: 1.4; }
.st-toc li:last-child a { border-bottom: 0; }
.st-toc a::before { content: counter(toc, decimal-leading-zero); font: 600 .78rem var(--mono); color: var(--brand); flex: none; }
.st-toc a:active { color: var(--brand); }

@media (hover: hover) { .st-toc a:hover { color: var(--brand); } }

.st-article { max-width: calc(900px + var(--gutter) * 2); }
.st-prose { display: grid; gap: 16px; min-width: 0; }
.st-prose p { max-width: 72ch; }
.st-prose h2 { font-size: clamp(1.35rem, 1.4vw + 1rem, 1.75rem); }
.st-intro p { font-size: 1.12rem; color: var(--text); }
.st-intro p:first-child { color: var(--ink); font-size: 1.2rem; }
.st-intro { padding-bottom: clamp(24px, 4vw, 40px); }

.st-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: clamp(24px, 4vw, 36px); border-top: 1px solid var(--line); }
.st-block-no { font: 700 .86rem var(--mono); color: var(--brand); }
.st-block .st-ticks { margin-top: 6px; }

@media (min-width: 760px) {
    .st-block { grid-template-columns: 64px minmax(0, 1fr); gap: 20px; }
    .st-block-no { padding-top: .5em; }
}

/* The two request forms. Nothing is posted: site.js turns the answers into a WhatsApp message. */
.st-form { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); padding: clamp(20px, 4vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); }

@media (min-width: 640px) { .st-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-field-wide { grid-column: 1 / -1; } }

.st-field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.st-field > span, .st-field > legend { color: var(--ink); font-weight: 600; font-size: .95rem; padding: 0; }
.st-field > legend { margin-bottom: 7px; }

.st-field input:not([type="radio"]), .st-field select, .st-field textarea {
    width: 100%; min-height: 50px; padding: 12px 14px;
    border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--ink);
    font: inherit; font-size: 1rem; /* 16px or more, or iOS zooms the page on focus. */
    transition: border-color .18s, box-shadow .18s;
}

.st-field textarea { resize: vertical; min-height: 96px; }
.st-field input:focus, .st-field select:focus, .st-field textarea:focus { outline: none; border-color: var(--fill); box-shadow: 0 0 0 4px var(--ring); }

.st-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.st-choice label { position: relative; cursor: pointer; }
.st-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.st-choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--text); font-weight: 600; transition: background-color .18s, border-color .18s, color .18s; }
.st-choice input:checked + span { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.st-choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--ring); }

.st-form-foot { display: grid; gap: 12px; justify-items: start; }
.st-form-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .88rem; }
.st-form-note .ic { margin-top: .3em; }

/* The course outline. */
.st-modules { counter-reset: module; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }

.st-modules li { counter-increment: module; display: grid; gap: 6px; min-width: 0; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.st-modules li::before { content: counter(module, decimal-leading-zero); font: 700 .86rem var(--mono); color: var(--brand); }
.st-modules h3 { font-size: 1.1rem; }
.st-modules p { color: var(--muted); font-size: .96rem; }

@media (min-width: 700px) { .st-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .st-modules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Features. */
.st-search { position: relative; max-width: 560px; margin-top: 24px; }
.st-search .ic { position: absolute; inset-inline-start: 16px; inset-block-start: 50%; translate: 0 -50%; color: var(--muted); font-size: 1.05rem; pointer-events: none; }
.st-search input { width: 100%; min-height: 54px; padding: 12px 16px; padding-inline-start: 46px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; font-size: 1.02rem; box-shadow: var(--shadow-sm); }
.st-search input:focus { outline: none; border-color: var(--fill); box-shadow: 0 0 0 4px var(--ring); }

.st-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.st-page-hero-center .st-jump { justify-content: center; }
.st [data-st-feature].is-out, .st [data-st-feature-group].is-out, .st .st-card.is-out { display: none; }

.st-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 22px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.st-note h2 { font-size: 1.1rem; margin-bottom: 6px; }
.st-note p { color: var(--muted); font-size: .98rem; max-width: 80ch; }

/* Contact. */
.st a.st-channel { color: var(--text); }
.st-channel h2 { font-size: 1.14rem; }
.st-channel b { color: var(--brand); font-size: 1.02rem; overflow-wrap: anywhere; margin-top: auto; }
.st-channel:active { border-color: var(--brand); }

@media (hover: hover) { .st-channel:hover { border-color: var(--brand); transform: translateY(-3px); } }

/* Legal documents. One English text inside whatever language the chrome is in. */
.st-legal-updated { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: .9rem; }
.st-legal-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--brand-soft); color: var(--ink); font-size: .95rem; max-width: 72ch; }
.st-legal-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }

@media (min-width: 1000px) {
    .st-legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; }
    .st-toc-side { position: sticky; inset-block-start: calc(var(--header) + 20px); max-height: calc(100vh - var(--header) - 40px); overflow-y: auto; }
}

.st-legal h2 { margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.st-legal h2:first-of-type { margin-top: 0; }
.st-legal h3 { font-size: 1.1rem; margin-top: 6px; }
.st-legal ul { display: grid; gap: 8px; padding-inline-start: 22px; list-style: disc; max-width: 72ch; }
.st-legal a { text-decoration: underline; text-underline-offset: 3px; }
.st-legal .ld-legal-lead { font-size: 1.14rem; color: var(--ink); }

/* ------------------------------------------------------------ 9. video player */

.st-player { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 12px; }
.st-player-backdrop { position: absolute; inset: 0; background: rgba(4, 10, 22, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.st-player-box {
    position: relative; display: flex; flex-direction: column; width: min(100%, 1000px); max-height: calc(100dvh - 24px);
    background: #0b1424; color: #eef3fa; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6); outline: none; animation: st-pop .3s var(--ease);
}

@keyframes st-pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }

.st-player-bar { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; }
[dir="rtl"] .st-player-bar { padding: 10px 18px 10px 10px; }
.st .st-player-title { color: #fff; font-size: 1rem; font-weight: 650; margin-inline-end: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0; }

.st-player-stage { position: relative; background: #000; display: grid; place-items: center; min-height: 0; flex: 1; }
.st-player-stage video { display: block; width: 100%; max-height: calc(100dvh - 190px); aspect-ratio: var(--st-player-ratio, 16 / 9); background: #000; }

.st-player-big { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: #0b6bd3; font-size: 2.1rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.st-player-big .ic { margin-inline-start: 4px; }
.st-player.is-paused:not(.is-asking) .st-player-big { opacity: 1; pointer-events: auto; }
.st-player-big:active { transform: scale(.94); }

.st-player-ask { position: absolute; inset: 0; display: grid; place-content: center; gap: 16px; padding: 20px; background: rgba(4, 10, 22, .82); text-align: center; }
.st-player-ask p { color: #fff; font-weight: 650; font-size: 1.1rem; }
.st-player-ask-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.st-player-ask-btn { min-height: 48px; padding: 10px 22px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 650; font-size: 1.02rem; cursor: pointer; }
.st-player-ask-btn.is-current { background: #0b6bd3; border-color: #0b6bd3; }
.st-player-ask-btn:active { transform: scale(.96); }

.st-player-spinner { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: st-spin .8s linear infinite; pointer-events: none; }
@keyframes st-spin { to { transform: rotate(360deg); } }

.st-player-controls { padding: 8px 12px 12px; display: grid; gap: 6px; }
.st-player-seek { position: relative; height: 22px; display: grid; align-items: center; }
.st-player-seek::before { content: ""; position: absolute; inset-inline: 0; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.st-player-buffer, .st-player-played { position: absolute; inset-inline-start: 0; height: 5px; border-radius: 999px; width: 0; pointer-events: none; }
.st-player-buffer { background: rgba(255, 255, 255, .32); }
.st-player-played { background: #3b9bff; }
.st-player-seek input, .st-player-volume input { -webkit-appearance: none; appearance: none; background: transparent; margin: 0; cursor: pointer; }
.st-player-seek input { position: relative; width: 100%; height: 22px; }
.st-player-seek input::-webkit-slider-thumb, .st-player-volume input::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 0; }
.st-player-seek input::-moz-range-thumb, .st-player-volume input::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 0; }
.st-player-seek input::-webkit-slider-runnable-track { height: 22px; background: transparent; }
.st-player-seek input::-webkit-slider-thumb { margin-top: 3.5px; }

.st-player-row { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.st-player-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: #eef3fa; font-size: 1.15rem; cursor: pointer; }
.st-player-btn:active { background: rgba(255, 255, 255, .16); }
.st-player-btn[aria-pressed="true"] { color: #6db2ff; }
.st-player-rate { font: 650 .9rem var(--mono); }
.st-player-lang span { font-size: .88rem; font-weight: 650; }
.st-player-time { margin-inline: 8px auto; color: #c2cddd; font: 500 .82rem var(--mono); white-space: nowrap; }
.st-player-volume { display: inline-flex; align-items: center; }
.st-player-volume input { width: 76px; height: 22px; display: none; }
.st-player-volume input::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .3); }
.st-player-volume input::-webkit-slider-thumb { margin-top: -5.5px; }
.st-player-volume input::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .3); }

@media (hover: hover) {
    .st-player-btn:hover { background: rgba(255, 255, 255, .12); }
    .st-player-ask-btn:hover { background: rgba(255, 255, 255, .18); }
    .st-player-volume input { display: block; }
}

/* Fit to screen: the box is the viewport and the picture keeps its own shape inside it. */
.st-player.is-fit { padding: 0; }
.st-player.is-fit .st-player-box { width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
.st-player.is-fit .st-player-stage video { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; }
.st-player-box:fullscreen { width: 100%; max-height: none; border-radius: 0; }
.st-player-box:fullscreen .st-player-stage video { max-height: none; height: 100%; aspect-ratio: auto; object-fit: contain; }

/* --------------------------------------------------------------- 10. footer */

.st-footer { background: var(--navy); color: var(--on-navy-muted); padding-block: clamp(40px, 6vw, 72px) 28px; font-size: .95rem; }
.st-footer-grid { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-footer-brand { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; max-width: 44ch; }
.st-footer .st-brand-name { color: #fff; }
.st-footer .st-brand { margin: 0; }
.st .st-footer h2 { color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
html:not([lang="en"]) .st .st-footer h2 { text-transform: none; letter-spacing: 0; font-size: .98rem; }
.st .st-footer h2.st-footer-gap { margin-top: 26px; }
.st-footer ul { display: grid; gap: 4px; }
.st-footer li a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--on-navy-muted); }
.st-footer li a[aria-current="page"] { color: #fff; }
.st-footer-contact li a { color: var(--on-navy); font-weight: 600; }
.st-footer-langs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-footer li a:active { color: #fff; }

@media (hover: hover) { .st-footer li a:hover { color: #fff; } }

.st-footer-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--navy-line); font-size: .86rem; }

@media (min-width: 900px) {
    .st-footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
    .st-footer-brand { grid-column: auto; }
}

/* ------------------------------------------------------------------- motion */

/*
 * Content arrives as it is scrolled to. The hiding is gated twice: on `.js`, which the
 * page's head sets, and on the absence of `.js-late`, which the same script adds if
 * site.js has not announced itself within a few seconds. Without that second gate a script
 * that fails to load would leave everything below the fold invisible for ever.
 */
.js:not(.js-late) [data-st-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }
.js [data-st-reveal] { transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--st-delay, 0s); }

/* The traffic lines draw themselves once, when the panel that holds them is first shown. */
.js .mk-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .is-drawn .mk-line, .js-late .mk-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease); }
.js .mk-bars i { transform-origin: bottom; transform: scaleY(0); }
.js .is-drawn .mk-bars i, .js-late .mk-bars i { transform: none; transition: transform .7s var(--ease); }
.js .is-drawn .mk-bars i:nth-child(2) { transition-delay: .05s; }
.js .is-drawn .mk-bars i:nth-child(3) { transition-delay: .1s; }
.js .is-drawn .mk-bars i:nth-child(4) { transition-delay: .15s; }
.js .is-drawn .mk-bars i:nth-child(5) { transition-delay: .2s; }
.js .is-drawn .mk-bars i:nth-child(6) { transition-delay: .25s; }
.js .is-drawn .mk-bars i:nth-child(7) { transition-delay: .3s; }
.js .is-drawn .mk-bars i:nth-child(8) { transition-delay: .35s; }

@media (min-width: 1000px) {
    .st-hero-shot { animation: st-float 7s ease-in-out infinite; }
}

@keyframes st-float { 50% { transform: translateY(-10px); } }

/*
 * Everything that moves, switched off for a reader who asked for less motion - and laid out
 * fully, never left hidden. The marquee needs more than stopping: it is given back its
 * wrapping and loses its duplicate copy, or half the venues would sit off-screen for good.
 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .st *, .st *::before, .st *::after { animation: none !important; transition: none !important; }

    .js:not(.js-late) [data-st-reveal]:not(.is-in) { opacity: 1; transform: none; }
    .js .mk-line { stroke-dashoffset: 0; }
    .js .mk-bars i { transform: none; }
    .js .st-fab:not(.is-shown) { opacity: 1; transform: none; pointer-events: auto; }

    .st-marquee { -webkit-mask-image: none; mask-image: none; }
    .st-marquee-track { width: auto; display: block; }
    .st-marquee-track ul { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }
    .st-marquee-track ul[aria-hidden="true"] { display: none; }
}

@media print {
    .st-header, .st-fab, .st-strip, .st-player, .st-cta-section, .st-footer, .st-finder, .st-search { display: none !important; }
    body.st { padding-top: 0; }
    .st [data-st-reveal] { opacity: 1 !important; transform: none !important; }
    .st-tabpanel[hidden] { display: block !important; }
}

/* ---------------------------------------------------------- phone tightening */

/*
 * Added after the first phone screenshots, 2026-11-11: the home page was nineteen screens
 * tall. Three things on it were costing height for nothing - a row of filter buttons that
 * wrapped onto four lines, cards that spent a line saying "Learn more" when the whole card
 * is the link, and tiles stacked icon-over-text. Below 640px each is a single row.
 */
.st-plan-all { font-size: .93rem; margin-bottom: 8px; }

@media (max-width: 639px) {
    .st-finder .st-chips {
        flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
        justify-self: stretch; min-width: 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x proximity;
    }

    .st-finder .st-chips::-webkit-scrollbar { display: none; }
    .st-finder .st-chip { flex: none; scroll-snap-align: start; }

    .st-solution { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 16px; }
    .st-solution .st-tile-lg { width: 46px; height: 46px; font-size: 1.3rem; }
    .st-solution p { font-size: .92rem; line-height: 1.5; }
    .st-solution-more { grid-column: 3; color: var(--muted); }
    .st-solution-more > span { display: none; }

    .st-why article { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 4px; }
    .st-why .st-tile { grid-row: 1 / span 2; }

    .st-hero-sub { font-size: 1.04rem; line-height: 1.6; }

    /* A chapter's opening paragraph restates the heading above it; on a phone that is a
       screen of prose before the reader is shown anything. Still in the page, still indexed. */
    .st-home .st-head p { display: none; }
}
