/* Clasvora, public site. Design system: one type family, an 8 px spacing scale, thin rules, small radii, no decorative motion. */
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    /* colour roles: brand */
    --accent: #e3283d; --accent-deep: #b3101f; --ink: #131419;
    --accent-bright: color-mix(in srgb, var(--accent) 72%, #fff);
    --accent-soft: color-mix(in srgb, var(--accent) 8%, #fff);
    --ink-2: color-mix(in srgb, var(--ink) 92%, #fff);
    --ink-3: color-mix(in srgb, var(--ink) 80%, #fff);
    /* colour roles: surfaces, rules, text */
    --bg: #fff; --muted: #f4f5f7; --line: #e5e7eb; --line-2: #d3d6dc;
    --text: #16181d; --text-2: #4d5361; --text-3: #626877;
    --on-dark: #fff; --on-dark-2: rgba(255,255,255,.74); --on-dark-3: rgba(255,255,255,.56); --line-dark: rgba(255,255,255,.12);
    /* shape */
    --r-sm: 4px; --r: 6px; --r-lg: 8px;
    --shadow: 0 1px 2px rgba(16,18,24,.06);
    --shadow-lg: 0 12px 32px -16px rgba(16,18,24,.28);
    /* type */
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-logo: var(--font);
    --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --fs-hero: clamp(40px, 4.7vw, 72px);
    --fs-h1: clamp(36px, 4.4vw, 60px);
    --fs-h2: clamp(30px, 3.3vw, 46px);
    --fs-h3: 20px;
    --fs-lead: clamp(18px, 1.5vw, 20px);
    /* spacing: 8 px scale */
    --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
    --sec: clamp(56px, 7.8vw, 112px);
    --gutter: 24px; --wrap: 1248px; --col-gap: clamp(32px, 5vw, 80px);
    --measure: 64ch;
    --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
button { font: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
/* narrow content keeps the common left axis; only its measure is shorter */
.wrap.narrow > * { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: var(--r); z-index: 100; }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.theme-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
.muted { color: var(--text-3); }
/* highlighted words keep the heading colour: hierarchy comes from size and space, not colour */
em.hl { font-style: normal; color: inherit; }

/* ── Logo ─────────────────────────────────── */
.logo-img { height: 32px; width: auto; }
.logo-mark { height: 30px; display: block; }
.footer-brand .logo-mark { height: 28px; }

/* ── Buttons and links ────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--r-sm); font-weight: 600; font-size: 16px; line-height: 1.2; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; text-decoration: none; }
.btn .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ebecef; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; }
/* secondary action: a quiet text link with an arrow */
.btn-ghost, .btn-text { background: none; border-color: transparent; color: inherit; padding-left: 4px; padding-right: 4px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.btn-ghost:hover, .btn-text:hover { text-decoration-color: currentColor; }
.theme-dark .btn-ghost, .theme-dark .btn-text { color: #fff; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-deep); }
.link .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link:hover .ic { transform: translateX(3px); }
.theme-dark .link { color: #fff; }

/* ── Announcement + header ─────────────────── */
.announce { background: var(--accent-deep); color: #fff; font-size: 14px; position: relative; z-index: 51; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; text-align: center; flex-wrap: wrap; }
.announce a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--line-dark); color: #fff; }
.header-in { display: flex; align-items: center; height: 72px; gap: var(--s4); }
.brand { flex: none; display: inline-flex; align-items: center; }
.nav { display: flex; align-items: center; gap: var(--s3); flex: 1; min-width: 0; justify-content: flex-end; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-cta, .lang-switch { flex: none; }
.nav-cta .btn { white-space: nowrap; }
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 8px 12px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.78); transition: color .2s; border-bottom: 2px solid transparent; }
.nav-item > a:hover, .nav-item.open > a { color: #fff; }
.nav-item.active > a { color: #fff; border-bottom-color: var(--accent); }
.caret { width: 14px; height: 14px; transition: transform .2s; }
.nav-item.open .caret, .nav-item.has-menu:hover .caret { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 14px); left: 0; width: min(600px, calc(100vw - 32px)); background: #fff; color: var(--text); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: var(--s1); opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; border: 1px solid var(--line); }
.mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-item.has-menu:hover .mega, .nav-item.open .mega { opacity: 1; visibility: visible; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; }
.mega-link { display: block; padding: 12px 16px; border-radius: var(--r-sm); }
.mega-link strong { display: block; font-size: 15px; font-weight: 500; }
.mega-link span { display: block; font-size: 13px; color: var(--text-2); }
.mega-link:hover { background: var(--muted); }
.mega-all { display: block; margin-top: var(--s1); padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--accent-deep); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform .25s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Sections ─────────────────────────────── */
.sec { padding: var(--sec) 0; position: relative; }
.sec-tight { padding: var(--s6) 0; }
.theme-light { background: var(--bg); }
.theme-muted { background: var(--muted); }
.theme-dark { background: var(--ink); color: var(--on-dark); }
.theme-dark .lead, .theme-dark p { color: var(--on-dark-2); }
/* two surfaces of the same colour in a row are separated by a hairline */
.theme-light + .theme-light, .theme-muted + .theme-muted { border-top: 1px solid var(--line); }
.theme-dark + .theme-dark { border-top: 1px solid var(--line-dark); }
/* section head: title on one side, a short explanation on the other */
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s3) var(--col-gap); align-items: end; margin-bottom: var(--s8); }
.sec-head > :only-child, .sec-head.solo { grid-column: 1 / -1; max-width: 860px; }
.sec-head h2 { font-size: var(--fs-h2); margin: 0; }
.sec-head .lead { margin: 0; max-width: 46ch; }
.sec-head-row { display: flex; align-items: end; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s6); }
.sec-head-row .sec-head { margin-bottom: 0; flex: 1; }
.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 var(--s2); }
.theme-dark .eyebrow { color: var(--accent-bright); }
.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.55; max-width: var(--measure); }

/* ── Hero ─────────────────────────────────── */
.hero { position: relative; padding: clamp(64px, 8.5vw, 128px) 0 clamp(64px, 8vw, 120px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: var(--col-gap); align-items: center; }
.hero-in.no-visual { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.hero .eyebrow { font-size: 14px; letter-spacing: .02em; text-transform: none; font-weight: 500; color: var(--on-dark-3); }
.hero-title { font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; margin: 0 0 var(--s3); max-width: 16ch; }
.hero-sub { font-size: var(--fs-lead); line-height: 1.55; max-width: 34em; color: var(--on-dark-2); margin: 0; }
.hero-actions { display: flex; align-items: center; gap: var(--s2) var(--s3); flex-wrap: wrap; margin-top: var(--s5); }

/* hero: one calm product explanation (labelled as an example scenario) */
.flow { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--r-lg); color: #fff; font-size: 15px; }
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark-3); }
.flow-head strong { font-weight: 600; color: var(--on-dark-2); letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.flow-file { display: flex; align-items: center; gap: 12px; padding: var(--s3); border-bottom: 1px solid var(--line-dark); }
.flow-file .ic { width: 22px; height: 22px; color: var(--on-dark-3); }
.flow-file b { font-weight: 600; font-family: var(--mono); font-size: 14.5px; }
.flow-file small { display: block; color: var(--on-dark-3); font-size: 13px; }
.flow-steps { list-style: none; margin: 0; padding: 0; }
.flow-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--s2); align-items: baseline; padding: 20px var(--s3); border-bottom: 1px solid var(--line-dark); }
.flow-steps li:last-child { border-bottom: 0; }
.flow-n { font-size: 13px; font-weight: 600; color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.flow-steps strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.flow-steps span { color: var(--on-dark-2); }
.flow-tag { justify-self: end; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-dark); color: var(--on-dark-2); white-space: nowrap; }
.flow-tag.is-block { border-color: var(--accent); color: #fff; background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* page header */
.page-header { position: relative; padding: clamp(64px, 7.5vw, 112px) 0 clamp(56px, 6.5vw, 96px); }
.page-header .wrap { position: relative; }
.page-header h1 { font-size: var(--fs-h1); max-width: 18ch; letter-spacing: -.03em; margin-bottom: var(--s3); }
.page-header .lead { color: var(--on-dark-2); margin-bottom: 0; }
.page-header .lead + p { margin-top: var(--s4); }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--on-dark-3); margin-bottom: var(--s3); flex-wrap: wrap; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ── Stats: a quiet row of facts ─────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line-2); }
.stat { padding: var(--s3) var(--s3) 0 0; border-right: 1px solid var(--line); margin-right: var(--s3); }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat-num { font-size: clamp(32px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat p { font-size: 15px; color: var(--text-2); margin: var(--s1) 0 0; line-height: 1.45; max-width: 24ch; }
.theme-dark .stats { border-color: var(--line-dark); }
.theme-dark .stat { border-color: var(--line-dark); }
.theme-dark .stat-num { color: #fff; }

/* ── Capabilities: a list on one side, the chosen capability on the other ── */
.caps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: start; border-top: 1px solid var(--line-2); }
.caps-list { display: none; list-style: none; margin: 0; padding: 0; }
.caps.js .caps-list { display: block; }
.caps-tab { display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; gap: var(--s2); align-items: center; width: 100%; padding: 18px var(--s2); border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text-2); font-size: 17px; font-weight: 500; text-align: left; cursor: pointer; transition: color .15s; }
.caps-tab .n { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.caps-tab .ic { width: 16px; height: 16px; opacity: 0; transition: opacity .15s, transform .15s; }
.caps-tab:hover { color: var(--text); }
.caps-tab[aria-selected="true"] { color: var(--text); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); background: var(--bg); }
.theme-light .caps-tab[aria-selected="true"] { background: var(--muted); }
.caps-tab[aria-selected="true"] .n { color: var(--accent-deep); }
.caps-tab[aria-selected="true"] .ic { opacity: 1; }
.caps-panel { border-bottom: 1px solid var(--line); }
.caps-acc { display: none; }
.caps-body { padding: var(--s4) 0; }
.caps-body h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.02em; margin-bottom: var(--s1); }
.caps-tagline { font-size: var(--fs-lead); color: var(--text); margin-bottom: var(--s2); }
.caps-body > p { color: var(--text-2); max-width: var(--measure); }
.caps-points { list-style: none; margin: var(--s3) 0 var(--s4); padding: 0; border-top: 1px solid var(--line); }
.caps-points li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--text-2); }
.caps-points li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 12px; height: 2px; background: var(--accent); }
/* with script on wide screens: only the chosen panel */
.caps.js .caps-panel { display: none; border: 0; }
.caps.js .caps-panel.on { display: block; }
.caps.js .caps-body { padding-top: var(--s3); }
.theme-muted .caps-tab, .theme-muted .caps-points, .theme-muted .caps-points li, .theme-muted .caps-panel { border-color: var(--line-2); }

/* ── Highlights: open columns ─────────────── */
.hl-grid { display: grid; gap: var(--s6) var(--col-gap); }
.hl-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hl-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hl-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.hl-card { padding-top: var(--s3); border-top: 1px solid var(--line-2); }
.theme-dark .hl-card { border-color: var(--line-dark); }
.hl-card h3 { margin-bottom: var(--s1); }
.hl-card p { color: var(--text-2); margin: 0; max-width: 46ch; }
.theme-dark .hl-card p { color: var(--on-dark-2); }
.hl-card .link { margin-top: var(--s2); }

/* ── Architecture: a plain diagram ─────────── */
.arch { display: flex; align-items: stretch; }
.arch-node { flex: 1 1 0; min-width: 0; padding: var(--s3); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); }
.theme-muted .arch-node { background: #fff; }
.arch-node.is-core { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--accent); }
.arch-tier { display: block; font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: var(--s2); font-variant-numeric: tabular-nums; }
.arch-node h3 { margin-bottom: var(--s1); }
.arch-node p { font-size: 15px; color: var(--text-2); margin: 0; }
.arch-link { position: relative; flex: 0 0 44px; align-self: center; height: 1px; background: var(--line-2); margin: 0 6px; }
.arch-link::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4.5px solid transparent; border-left: 7px solid var(--text-3); border-right: 0; }
.theme-dark .arch-node { background: transparent; border-color: var(--line-dark); }
.theme-dark .arch-node p { color: var(--on-dark-2); }

/* ── Policy actions: an ordered scale ─────── */
.actions-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: start; }
.actions-wrap > div:first-child { position: sticky; top: 112px; }
.actions-wrap .sec-head { grid-template-columns: 1fr; margin-bottom: 0; }
.actions-wrap .sec-head .lead { max-width: 40ch; }
.action-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); counter-reset: act; }
.action { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--line); counter-increment: act; }
.action::before { content: counter(act, decimal-leading-zero); font-size: 13px; font-weight: 600; color: var(--text-3); padding-top: 4px; font-variant-numeric: tabular-nums; }
.action h3 { font-size: 19px; margin-bottom: 4px; }
.action p { margin: 0; color: var(--text-2); }
.action.lvl-block h3 { color: var(--accent-deep); }
.theme-muted .action-list, .theme-muted .action { border-color: var(--line-2); }

/* ── Lists of items (channels, detection methods) ── */
.chip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: var(--s4); border-top: 1px solid var(--line-2); }
.chip-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.chip-list .ic { width: 18px; height: 18px; color: var(--text-3); }
.chip-list li.em { font-weight: 600; }
.chip-list li.em .ic { color: var(--accent); }
.theme-dark .chip-list { border-color: var(--line-dark); }
.theme-dark .chip-list li { border-color: var(--line-dark); color: #fff; }
.theme-dark .chip-list .ic { color: var(--on-dark-3); }
.theme-dark .chip-list li.em .ic { color: var(--accent-bright); }
.chips-note { margin-top: var(--s4); font-size: 15px; color: var(--text-2); max-width: var(--measure); }
.theme-dark .chips-note { color: var(--on-dark-2); }

/* ── Specs: readable tables ───────────────── */
.spec-grid { display: grid; gap: var(--s6) var(--col-gap); }
.spec-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.spec h3 { font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s2); }
.spec dl { margin: 0; border-top: 1px solid var(--line-2); }
.spec-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s2); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-row dt { font-weight: 600; }
.spec-row dd { margin: 0; color: var(--text-2); }
.theme-muted .spec-row { border-color: var(--line-2); }

/* ── Split ───────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--col-gap); align-items: center; }
.split.img-left .split-copy { order: 2; }
.split-copy h2 { font-size: var(--fs-h2); }
.split-visual img { border-radius: var(--r-lg); }
.ticks { list-style: none; padding: 0; margin: var(--s3) 0 var(--s4); border-top: 1px solid var(--line); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ticks .ic { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.4; margin-top: 3px; }
.theme-dark .ticks, .theme-dark .ticks li { border-color: var(--line-dark); }
.theme-dark .ticks li { color: var(--on-dark-2); }
.prose { font-size: 17px; color: var(--text-2); max-width: var(--measure); }
.wrap.narrow .prose { max-width: none; }
.prose h2 { color: var(--text); font-size: clamp(26px, 2.4vw, 32px); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); font-size: 21px; margin-top: 1.4em; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .note { background: #fff7ed; border-left: 3px solid #f59e0b; color: #7c2d12; padding: 12px 16px; font-size: 15px; }
.prose img { border-radius: var(--r-lg); margin: 1.5em 0; }
.theme-dark .prose { color: var(--on-dark-2); }
.theme-dark .prose h2, .theme-dark .prose h3, .theme-dark .prose strong { color: #fff; }

/* static product views (each is labelled as an example scenario) */
.viz { background: var(--ink); color: #fff; border-radius: var(--r-lg); border: 1px solid var(--ink); font-size: 15px; overflow: hidden; }
.viz-label { display: flex; justify-content: space-between; gap: var(--s2); padding: 14px var(--s3); border-bottom: 1px solid var(--line-dark); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-3); }
.viz-body { padding: var(--s3); }
.viz-head { display: flex; align-items: center; gap: 12px; }
.viz-head strong { font-family: var(--mono); font-size: 14.5px; font-weight: 600; }
.viz-head small { display: block; color: var(--on-dark-3); font-size: 13px; }
.risk-score { display: flex; align-items: baseline; gap: 6px; margin: var(--s3) 0 var(--s1); }
.risk-score b { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.risk-score small { color: var(--on-dark-3); font-size: 16px; }
.risk-state { margin-left: auto; align-self: center; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-sm); border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.risk-bar { height: 4px; background: rgba(255,255,255,.12); margin-bottom: var(--s3); }
.risk-bar span { display: block; height: 100%; background: var(--accent); }
.viz-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.viz-rows li { display: flex; justify-content: space-between; gap: var(--s2); padding: 12px 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark-2); }
.viz-rows li:last-child { border-bottom: 0; }
.viz-rows b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.viz-rows code { font-family: var(--mono); font-size: 14px; color: #fff; }
.viz-doc { background: #fff; color: var(--text); border-color: var(--line-2); }
.viz-doc .viz-label { color: var(--text-3); border-color: var(--line); }
.doc-band { background: var(--accent-deep); color: #fff; font-size: 12px; letter-spacing: .24em; font-weight: 600; text-align: center; padding: 6px; }
.doc-lines { padding: var(--s4) var(--s4) var(--s3); display: grid; gap: 12px; }
.doc-lines i { height: 8px; background: var(--muted); }
.doc-lines i.s { width: 55%; } .doc-lines i.m { width: 75%; }
.doc-labels { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.doc-labels span { flex: 1 1 auto; font-size: 13px; padding: 12px; text-align: center; color: var(--text-3); border-right: 1px solid var(--line); }
.doc-labels span:last-child { border-right: 0; }
.doc-labels span.on { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }

/* ── Steps: numbered columns ───────────────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.step { padding-top: var(--s3); border-top: 2px solid var(--line-2); }
.step:first-child { border-top-color: var(--ink); }
.step-n { display: block; font-size: 14px; font-weight: 600; color: var(--accent-deep); margin-bottom: var(--s2); font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: var(--s1); }
.step p { color: var(--text-2); margin: 0; }
.theme-dark .step { border-color: var(--line-dark); }
.theme-dark .step:first-child { border-top-color: #fff; }
.theme-dark .step-n { color: var(--accent-bright); }

/* ── Compliance: a register, not a card wall ── */
.comp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s4); border-top: 1px solid var(--line-2); }
.comp-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.comp-card { padding: var(--s3) 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.comp-card.is-off { display: none; }
.comp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.comp-code { font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.comp-region { font-size: 12.5px; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.comp-card h3 { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.comp-card p { font-size: 14.5px; color: var(--text-2); margin: 0; }
.comp-card .comp-tags { margin-top: var(--s1); font-size: 13px; font-weight: 500; color: var(--text-3); }
.comp-tags span:not(:last-child)::after { content: ", "; }
.theme-muted .comp-card { border-color: var(--line-2); }
/* text tabs (compliance regions, office regions, blog categories) */
.comp-tabs, .office-filter, .filters { display: flex; flex-wrap: wrap; gap: 0 var(--s3); margin: 0 0 var(--s4); border-bottom: 1px solid var(--line-2); }
.comp-tabs button, .office-filter button, .filters a { font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; padding: 12px 0; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.comp-tabs button small, .office-filter button span { font-size: 13px; color: var(--text-3); font-weight: 500; }
.comp-tabs button:hover, .office-filter button:hover, .filters a:hover { color: var(--text); }
.comp-tabs button.on, .office-filter button.on, .filters a.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.theme-dark .comp-tabs, .theme-dark .office-filter { border-color: var(--line-dark); }
.theme-dark .comp-tabs button, .theme-dark .office-filter button { color: var(--on-dark-2); }
.theme-dark .comp-tabs button.on, .theme-dark .office-filter button.on { color: #fff; }

/* ── FAQ ─────────────────────────────────── */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); }
.faq-wrap .sec-head { grid-template-columns: 1fr; align-self: start; }
.faq { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 18px; font-weight: 600; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-x { position: absolute; right: 4px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); }
.faq-x::before, .faq-x::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--text); transition: transform .2s; }
.faq-x::after { transform: rotate(90deg); }
.faq-item[open] .faq-x::after { transform: rotate(0); }
.faq-a { color: var(--text-2); padding-bottom: 22px; max-width: var(--measure); }

/* ── Posts ───────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s4); }
.post-card { display: flex; flex-direction: column; }
.post-cover { position: relative; aspect-ratio: 16 / 9; background: var(--muted); overflow: hidden; border-radius: var(--r); margin-bottom: var(--s3); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card.no-cover { border-top: 1px solid var(--line-2); padding-top: var(--s3); }
.post-cover-art { position: absolute; inset: 0; display: grid; align-content: end; padding: var(--s3); background: var(--ink); color: var(--on-dark-3); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-bottom: 3px solid var(--accent); }
.post-body { display: flex; flex-direction: column; flex: 1; }
.post-kicker { display: flex; gap: 12px; font-size: 14px; color: var(--text-3); margin-bottom: var(--s1); }
.post-kicker b { font-weight: 600; color: var(--accent-deep); }
.post-body h3 { margin: 0 0 var(--s1); transition: color .15s; }
.post-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.post-body p { font-size: 15.5px; color: var(--text-2); }
.post-body .link { margin-top: auto; font-size: 15px; }
.theme-muted .post-cover { background: #fff; }
.pager { display: flex; gap: var(--s1); justify-content: center; margin-top: var(--s8); }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line-2); font-weight: 600; }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.post-meta { display: flex; gap: 12px; align-items: center; color: var(--on-dark-3); font-size: 15px; flex-wrap: wrap; }
.post-meta b { color: var(--accent-bright); font-weight: 600; }
.post-lead { font-size: 21px; color: var(--text); font-weight: 400; line-height: 1.55; }
.post-hero-img { border-radius: var(--r-lg); margin-bottom: var(--s4); }
.back { margin-top: var(--s5); }
.empty { color: var(--text-3); }

/* ── CTA ─────────────────────────────────── */
.cta-band { background: var(--ink); color: #fff; padding: var(--sec) 0; border-top: 1px solid var(--line-dark); }
.cta-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4) var(--col-gap); align-items: end; }
.cta-in h2 { font-size: var(--fs-h2); margin-bottom: var(--s2); max-width: 18ch; }
.cta-in p { color: var(--on-dark-2); max-width: 52ch; margin: 0; font-size: var(--fs-lead); }
.cta-actions { display: flex; align-items: center; gap: var(--s2) var(--s3); flex-wrap: wrap; justify-content: flex-start; }

/* ── Forms ───────────────────────────────── */
.form-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: start; }
.form-side h2 { font-size: var(--fs-h2); }
.lead-form { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: var(--s5); position: relative; }
.theme-light .lead-form { background: var(--bg); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--s2); margin-bottom: var(--s3); }
.f { display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; }
.f.full, .check.full { grid-column: 1 / -1; }
.f input, .f select, .f textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; min-height: 48px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; width: 100%; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.f.invalid input { border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.check input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.check a { color: var(--accent-deep); text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.form-msg { display: none; padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: var(--s3); font-size: 15px; }
.form-msg.show { display: block; }
.form-msg.ok { background: #ecfdf5; color: #065f46; border-left: 3px solid #059669; }
.form-msg.err { background: var(--accent-soft); color: var(--accent-deep); border-left: 3px solid var(--accent); }
.lead-form.sending button { opacity: .7; pointer-events: none; }
.lead-form.done .fgrid, .lead-form.done button { display: none; }
.contact-cards { display: grid; margin-top: var(--s4); border-top: 1px solid var(--line-2); }
.contact-cards a { display: flex; gap: var(--s2); align-items: center; padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.contact-cards a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.contact-cards .ic { color: var(--text-3); }
.contact-cards small { display: block; font-weight: 500; color: var(--text-3); font-size: 13px; }

/* ── Capability detail ────────────────────── */
.cap-header-copy { max-width: 920px; }
.cap-tagline { font-size: clamp(20px, 1.8vw, 24px); color: #fff !important; font-weight: 500; margin-bottom: var(--s2); }
.cap-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--col-gap); align-items: start; }
.cap-image { border-radius: var(--r-lg); margin-bottom: var(--s4); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); margin-top: var(--s6); border-top: 1px solid var(--line-2); }
.feature { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.feature-tick { display: none; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { font-size: 15.5px; color: var(--text-2); margin: 0; }
.cap-aside { position: sticky; top: 104px; display: grid; gap: var(--s3); }
.aside-card { padding: var(--s3); border: 1px solid var(--line-2); border-radius: var(--r); }
.aside-card h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: var(--s1); }
.aside-card .ticks { margin: 0; border-top: 0; }
.aside-card .ticks li { font-size: 15px; }
.aside-card .ticks li:last-child { border-bottom: 0; }
.aside-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.aside-card.dark h3 { color: var(--on-dark-3); }
.aside-card.dark p { color: var(--on-dark-2); font-size: 15px; }
.mini-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s4); border-top: 1px solid var(--line-2); }
.mini-cap { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 4px var(--s2); align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.mini-cap .cap-icon { display: none; }
.mini-cap strong { display: block; font-size: 17px; font-weight: 600; }
.mini-cap small { display: block; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.mini-cap .go { width: 16px; color: var(--text-3); transition: transform .2s var(--ease), color .2s; }
.mini-cap:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mini-cap:hover .go { color: var(--accent); transform: translateX(3px); }
.err-page { min-height: 60vh; display: flex; align-items: center; }

/* ── Footer ──────────────────────────────── */
.site-footer { background: var(--ink); color: var(--on-dark-2); font-size: 15px; border-top: 1px solid var(--line-dark); }
.footer-rule { display: none; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: var(--s5) var(--s4); padding-top: var(--s10); padding-bottom: var(--s8); }
.footer-brand p { margin: var(--s3) 0; max-width: 36ch; }
.site-footer h3 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--s2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .ic { width: 16px; height: 16px; color: var(--on-dark-3); margin-top: 4px; }
.social { display: flex; gap: var(--s1); }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line-dark); transition: border-color .2s; }
.social a:hover { border-color: #fff; }
.footer-company, .footer-bottom { background: linear-gradient(var(--line-dark), var(--line-dark)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px; }
.footer-company { padding-top: 20px; padding-bottom: 18px; }
.footer-company address { font-style: normal; font-size: 13px; line-height: 1.6; color: var(--on-dark-3); }
.footer-company + .footer-bottom { border-top: 0; padding-top: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--s3); padding-top: var(--s3); padding-bottom: var(--s4); font-size: 14px; flex-wrap: wrap; }
.footer-company + .footer-bottom { background: none; }
.footer-bottom .muted { color: var(--on-dark-3); }

/* Content never waits for a script or an animation to become visible. */
[data-reveal] { opacity: 1; transform: none; }

/* Tight header: one step denser before falling back to the burger (site.js). */
.site-header.tight .header-in { gap: 20px; }
.site-header.tight .nav { gap: 16px; }
.site-header.tight .nav-item > a { padding: 8px 8px; font-size: 14.5px; }
/* Compact header: the menu does not fit on one line in this language and width, so it opens from the burger (site.js). */
.site-header.compact .burger { display: block; }
.site-header.compact .nav { position: fixed; inset: var(--nav-top, 72px) 0 0 0; z-index: 49; background: var(--ink); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: var(--s2) var(--s3) var(--s4); gap: var(--s2); transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; overflow-y: auto; overscroll-behavior: contain; }
.site-header.compact .nav.open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.site-header.compact .nav-list { flex-direction: column; }
.site-header.compact .nav-item > a { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line-dark); }
.site-header.compact .nav-item.active > a { border-bottom-color: var(--accent); }
.site-header.compact .mega { position: static; width: auto; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; background: transparent; border: 0; padding: 4px 0 8px; color: #fff; }
.site-header.compact .nav-item.open .mega { display: block; }
.site-header.compact .mega-grid { grid-template-columns: 1fr; }
.site-header.compact .mega-link { padding: 12px 0 12px 16px; }
.site-header.compact .mega-link span { color: var(--on-dark-3); }
.site-header.compact .mega-link:hover { background: transparent; text-decoration: underline; }
.site-header.compact .mega-all { border-color: var(--line-dark); color: #fff; padding-left: 16px; }
.site-header.compact .nav-cta .btn { width: 100%; }
@media (min-width: 961px) {
    .site-header.compact .nav { left: auto; width: min(420px, 100%); border-left: 1px solid var(--line-dark); }
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1100px) {
    .comp-grid, .comp-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
    .spec-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hl-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    :root { --col-gap: 40px; }
    .burger { display: block; }
    .nav { position: fixed; inset: var(--nav-top, 72px) 0 0 0; z-index: 49; background: var(--ink); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: var(--s2) var(--s3) var(--s4); gap: var(--s2); transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; overflow-y: auto; overscroll-behavior: contain; }
    .nav.open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
    .nav-list { flex-direction: column; }
    .nav-item > a { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line-dark); }
    .nav-item.active > a { border-bottom-color: var(--accent); }
    .mega { position: static; width: auto; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; background: transparent; border: 0; padding: 4px 0 8px; color: #fff; }
    .nav-item.open .mega { display: block; }
    .mega-grid { grid-template-columns: 1fr; }
    .mega-link { padding: 12px 0 12px 16px; }
    .mega-link span { color: var(--on-dark-3); }
    .mega-link:hover { background: transparent; text-decoration: underline; }
    .mega-all { border-color: var(--line-dark); color: #fff; padding-left: 16px; }
    .nav-cta .btn { width: 100%; }
    .hero-in, .split, .actions-wrap, .form-wrap, .faq-wrap, .cap-detail, .cta-in, .caps { grid-template-columns: minmax(0, 1fr); }
    .hero-title { max-width: 18ch; }
    .sec-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .actions-wrap > div:first-child { position: static; }
    .split.img-left .split-copy { order: 0; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hl-grid.cols-3, .hl-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .arch { flex-direction: column; }
    .arch-link { flex: 0 0 40px; width: 1px; height: 40px; margin: 6px 0; align-self: center; }
    .arch-link::after { right: auto; left: -4px; top: auto; bottom: -1px; border: 4.5px solid transparent; border-top: 7px solid var(--text-3); border-bottom: 0; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cap-aside { position: static; }
    .mini-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* capabilities become an accordion */
    .caps { border-top: 1px solid var(--line-2); }
    .caps.js .caps-list { display: none; }
    .caps.js .caps-panel { display: block; border-bottom: 1px solid var(--line); }
    .caps.js .caps-acc { display: block; margin: 0; }
    .caps-acc button { display: grid; grid-template-columns: 36px minmax(0, 1fr) 16px; gap: var(--s2); align-items: center; width: 100%; padding: 18px 0; border: 0; background: none; color: var(--text); font-size: 17px; font-weight: 600; text-align: left; cursor: pointer; }
    .caps-acc .n { font-size: 13px; color: var(--text-3); font-weight: 500; }
    .caps-acc .pm { position: relative; width: 14px; height: 14px; }
    .caps-acc .pm::before, .caps-acc .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--text); transition: transform .2s; }
    .caps-acc .pm::after { transform: rotate(90deg); }
    .caps-acc button[aria-expanded="true"] .pm::after { transform: rotate(0); }
    .caps.js .caps-body { display: none; padding: 0 0 var(--s3) 52px; }
    .caps.js .caps-panel.open .caps-body { display: block; }
    .caps.js .caps-body h3 { display: none; }
    .caps-tagline { font-size: 17px; }
}
@media (max-width: 640px) {
    :root { --gutter: 16px; --col-gap: 32px; }
    .header-in { height: 64px; }
    .nav { inset: var(--nav-top, 64px) 0 0 0; padding: var(--s1) var(--s2) var(--s4); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat { margin-right: 0; padding: var(--s2) var(--s2) var(--s2) 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .stat:nth-child(odd) { border-right: 1px solid var(--line); margin-right: var(--s2); }
    .stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; margin-right: 0; }
    .theme-dark .stat { border-color: var(--line-dark); }
    .post-grid, .hl-grid.cols-2, .hl-grid.cols-3, .hl-grid.cols-4, .comp-grid, .comp-grid.compact, .spec-grid.cols-2, .spec-grid.cols-3, .feature-grid, .mini-caps, .steps, .fgrid { grid-template-columns: minmax(0, 1fr); }
    .hl-grid { gap: var(--s4); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); padding-top: var(--s8); }
    .spec-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .sec-head { margin-bottom: var(--s5); }
    .lead-form { padding: var(--s3); }
    .hero-actions .btn-accent { width: 100%; }
    .hero-actions { gap: var(--s1); }
    .flow-steps li { grid-template-columns: 28px minmax(0, 1fr); padding: var(--s2); }
    .flow-tag { grid-column: 2; justify-self: start; margin-top: var(--s1); }
    .flow-file, .flow-head { padding-left: var(--s2); padding-right: var(--s2); }
    .caps.js .caps-body { padding-left: 0; }
    .chip-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s2); }
    .chip-list li { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .announce, .site-footer, .cta-band { display: none; } .theme-dark { background: #fff; color: #000; } }

/* ── Footer legal links ───────────────────── */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.footer-legal a, .linkish { color: rgba(255,255,255,.62); transition: color .2s; }
.footer-legal a:hover, .linkish:hover { color: #fff; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Cookie consent ───────────────────────── */
.consent { position: fixed; z-index: 90; inset: auto 0 0 0; padding: 16px; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent.pos-bottom-left { justify-content: flex-start; }
.consent.pos-center { inset: 0; align-items: center; background: rgba(10,11,15,.55); pointer-events: auto; }
.consent-box { pointer-events: auto; position: relative; width: 100%; max-width: 980px; max-height: calc(100vh - 32px); overflow: auto; background: var(--ink); color: #fff; border: 1px solid rgba(255,255,255,.1); border-top: 3px solid var(--accent); border-radius: var(--r-lg); padding: 24px 26px 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); transform: translateY(24px); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.consent.pos-bottom-left .consent-box { max-width: 460px; }
.consent.pos-center .consent-box { max-width: 640px; }
.consent.show .consent-box, .no-anim .consent-box { transform: none; opacity: 1; }
.consent-main { display: flex; gap: 16px; align-items: flex-start; }
.consent h2 { font-size: 19px; margin: 0 0 6px; letter-spacing: -.01em; }
.consent p { font-size: 14.5px; color: rgba(255,255,255,.72); margin: 0; }
.consent p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.consent-x { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: rgba(255,255,255,.6); cursor: pointer; padding: 6px; border-radius: 8px; }
.consent-x:hover { color: #fff; background: rgba(255,255,255,.08); }
.consent-prefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.consent.pos-bottom-left .consent-prefs, .consent.pos-center .consent-prefs { grid-template-columns: 1fr; }
@media (max-width: 860px) { .consent-prefs { grid-template-columns: 1fr; gap: 8px; margin-top: 14px; } .cpref { padding: 10px 12px; } .cpref p { font-size: 12.5px; line-height: 1.45; } }
.cpref { border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 14px 16px; background: rgba(255,255,255,.03); }
.cpref-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.cpref-head strong { font-size: 15px; }
.cpref p { font-size: 13.5px; }
.cpref-always { font-size: 12px; font-weight: 700; color: #86efac; text-transform: uppercase; letter-spacing: .06em; }
.cpref-none { margin-top: 6px !important; font-size: 12.5px !important; color: rgba(255,255,255,.45) !important; }
.cpref-list { margin-top: 8px; font-size: 13px; }
.cpref-list summary { cursor: pointer; color: rgba(255,255,255,.75); font-weight: 600; }
.cpref-list table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12.5px; }
.cpref-list th, .cpref-list td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; color: rgba(255,255,255,.75); }
.cpref-list th { color: rgba(255,255,255,.5); font-weight: 600; }
.tgl { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; cursor: pointer; }
.tgl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tgl > span { position: absolute; inset: 0; border-radius: var(--r-sm); background: rgba(255,255,255,.18); transition: background .25s; }
.tgl > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.tgl input:checked + span { background: var(--accent); }
.tgl input:checked + span::after { transform: translateX(20px); }
.tgl input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.consent-actions .btn { padding: 11px 18px; font-size: 14.5px; }
.btn-consent { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-consent:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.btn-consent-main { background: #fff; color: var(--ink); border-color: #fff; min-width: 130px; }
.btn-consent-main:hover { background: rgba(255,255,255,.88); }
.consent-save { margin-right: auto; }

/* ── Form notices ─────────────────────────── */
.notice-box { border: 1px solid var(--line); border-radius: var(--r); background: var(--muted); padding: 12px 14px; display: grid; gap: 10px; }
.notice-box summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text); list-style: none; }
.notice-box summary::-webkit-details-marker { display: none; }
.notice-box summary::after { content: "+"; margin-left: auto; font-size: 18px; color: var(--text-3); transition: transform .25s; }
.notice-box details[open] summary::after { transform: rotate(45deg); }
.notice-box summary .ic { width: 18px; height: 18px; color: var(--accent); }
.notice-box summary small { font-weight: 500; color: var(--text-3); }
.notice-box details p { font-size: 13.5px; color: var(--text-2); margin: 10px 0 0; }
.notice-box details a { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.notice-box details a .ic { width: 14px; height: 14px; }
.check.invalid span { color: var(--accent-deep); }
.form-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 4px 0 12px; }
.lead-form.done .form-h, .lead-form.done .notice-box { display: none; }

/* ── Legal documents ──────────────────────── */
.legal-header { padding: 96px 0 72px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: rgba(255,255,255,.6); margin: 16px 0 0; }
.legal-meta span { display: inline-flex; align-items: center; gap: 6px; }
.legal-meta .ic { width: 16px; height: 16px; color: var(--accent-bright); }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.legal-aside { position: sticky; top: 96px; display: grid; gap: 28px; }
.legal-aside h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 2px solid var(--line); }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; color: var(--text-2); transition: color .2s, border-color .2s; }
.legal-toc a::before { content: counter(toc) ". "; color: var(--text-3); }
.legal-toc a:hover, .legal-toc a.on { color: var(--accent); border-color: var(--accent); }
.legal-others ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legal-others a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r); font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.legal-others a .ic { width: 16px; height: 16px; color: var(--text-3); }
.legal-others a:hover { background: var(--muted); color: var(--accent); }
.legal-body { max-width: 780px; }
.legal-body h2 { scroll-margin-top: 96px; padding-top: 4px; }
.legal-body table, .cookie-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0 24px; }
.legal-body th, .legal-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-body th { background: var(--muted); color: var(--text); font-weight: 600; font-size: 13px; }
.legal-body code { font-size: 13px; background: var(--muted); padding: 2px 6px; border-radius: 5px; color: var(--text); }
.table-scroll { overflow-x: auto; }
.legal-body .btn { text-decoration: none; color: #fff; }

/* ── Partners ─────────────────────────────── */
.page-header .lead.dark, .lead.dark { color: var(--text-2); }
.partner-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 6px 0 26px; color: rgba(255,255,255,.65); font-size: 15px; }
.partner-stats strong { color: #fff; font-size: 28px; font-weight: 800; margin-right: 6px; letter-spacing: -.02em; }
.ptype-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 22px; }
.ptype-card { --c: var(--ink); display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.ptype-card:hover { border-color: var(--c); }
.ptype-card.on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.ptype-card strong { display: block; font-size: 15px; }
.ptype-card small { color: var(--text-3); font-size: 13px; }
.ptype-ic { --c: var(--accent); flex: none; width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.ptype-card .ptype-ic { background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.ptype-card[data-ptype="*"] .ptype-ic { background: var(--muted); color: var(--ink); }
.pfilters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.pfilters select, .pf-search input { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; width: 100%; color: var(--text); }
.pf-search { position: relative; }
.pf-search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 18px; height: 18px; }
.pf-search input { padding-left: 40px; }
.pfilters select:focus, .pf-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.pcount { min-height: 1.4em; font-size: 14px; color: var(--text-3); margin: 0 0 8px; }
.pgroup { margin-top: 26px; }
.pgroup[hidden] { display: none; }
.pgroup-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.pgroup-head h2 { font-size: 24px; margin: 0; }
.pgroup-head h2 small { font-size: 14px; color: var(--text-3); font-weight: 600; margin-left: 4px; }
.pgroup-head p { margin: 0; color: var(--text-2); font-size: 15px; }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.partner-card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; overflow: hidden; }
.partner-card[hidden] { display: none; }
.partner-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 9%, transparent), transparent 55%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.partner-card:hover {  border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.partner-card:hover::before { opacity: 1; }
.partner-card.featured { border-top: 3px solid var(--accent); }
.partner-link { position: absolute; inset: 0; z-index: 1; }
.partner-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.partner-logo { width: 120px; height: 52px; display: flex; align-items: center; }
.partner-logo img { max-height: 52px; max-width: 120px; object-fit: contain; object-position: left center; }
.partner-logo span { width: 52px; height: 52px; border-radius: var(--r); display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.ptype { --c: var(--accent); display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--c) 11%, #fff); color: color-mix(in srgb, var(--c) 85%, #000); white-space: nowrap; }
.ptype .ic { width: 14px; height: 14px; }
.ptype.on-dark { background: color-mix(in srgb, var(--c) 25%, transparent); color: #fff; }
.ptier-pill { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.8); }
.partner-card h3 { font-size: 19px; margin: 0 0 4px; display: flex; align-items: center; gap: 6px; }
.partner-card .star .ic { width: 16px; height: 16px; color: #f59e0b; fill: #f59e0b; }
.ptier { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 0 0 6px; }
.ploc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); margin: 0 0 10px; }
.ploc .ic { width: 15px; height: 15px; color: var(--text-3); }
.ploc small { color: var(--text-3); }
.psum { font-size: 14.5px; color: var(--text-2); margin: 0 0 16px; }
.partner-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.partner-foot a { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.partner-foot a:hover { color: var(--accent); }
.partner-foot .ic { width: 15px; height: 15px; }
.partner-foot .go { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--accent); }
.partner-card:hover .go .ic { }
.go .ic { transition: transform .25s var(--ease); }
.pempty { text-align: center; padding: 60px 20px; color: var(--text-2); }
.pempty[hidden] { display: none; }
.pempty > .ic { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--text-3); }
.partner-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.partner-cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.ticks.light li { color: rgba(255,255,255,.8); }
.partner-header-in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.partner-header-logo { width: 220px; height: 140px; border-radius: var(--r-lg); background: #fff; display: grid; place-items: center; padding: 22px; box-shadow: var(--shadow-lg); }
.partner-header-logo img { max-height: 96px; object-fit: contain; }
.partner-header-logo span { font-size: 44px; font-weight: 800; color: var(--ink); }
.page-header .lead .ic { display: inline; width: 18px; height: 18px; vertical-align: -3px; color: var(--accent-bright); }
.pcontact { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 10px; font-size: 14.5px; }
.pcontact li { display: flex; gap: 10px; align-items: center; word-break: break-word; }
.pcontact .ic { width: 17px; height: 17px; color: var(--accent); }
.pcontact a:hover { color: var(--accent); }
.apply-types { display: grid; gap: 12px; margin-top: 8px; }
.apply-type { --c: var(--accent); display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); }
.apply-type .ptype-ic { background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); width: 36px; height: 36px; }
.apply-type strong { font-size: 15px; }
.apply-type p { font-size: 14px; color: var(--text-2); margin: 2px 0 0; }

@media (max-width: 1080px) {
    .partner-grid { grid-template-columns: 1fr 1fr; }
    .pfilters { grid-template-columns: 1fr 1fr; }
    .pf-search { grid-column: 1 / -1; }
    .legal-layout { grid-template-columns: 1fr; gap: 32px; }
    .legal-aside { position: static; }
    .legal-toc { display: none; }
}
@media (max-width: 720px) {
    .partner-grid, .pfilters { grid-template-columns: 1fr; }
    .partner-header-in { grid-template-columns: 1fr; }
    .partner-header-logo { width: 160px; height: 100px; }
    .consent { padding: 10px; }
    .consent-box { padding: 20px 18px 18px; }
    .consent-main { flex-direction: column; gap: 10px; }
    .consent-actions .btn { flex: 1 1 45%; }
    .consent-actions .consent-save { flex-basis: 100%; order: 3; margin: 0; }
    /* keep the two buttons on screen while the categories scroll */
    .consent-box { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); padding-bottom: 0; }
    .consent-actions { position: sticky; bottom: 0; z-index: 1; margin: 14px -18px 0; padding: 12px 18px 16px; background: var(--ink); }
    .consent h2 { font-size: 17px; }
    .consent p { font-size: 13.5px; line-height: 1.5; }
    .cpref-list { margin-top: 4px; }
    .footer-legal { gap: 6px 14px; }
}
.fgrid > .notice-box { grid-column: 1 / -1; }

/* Consent banner — wide layout */
.consent-box { max-width: 1180px; }
.consent-main { display: grid; grid-template-columns: 1fr; gap: 18px 32px; align-items: start; }
.consent-actions { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }

/* Partner directory — coloured type headings, themed profile card */
.pgroup-head { --c: var(--ink); align-items: center; gap: 12px; border-bottom: 2px solid color-mix(in srgb, var(--c) 30%, transparent); }
.pgroup-head .ptype-ic { background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); }
.pgroup-head h2 { color: var(--c); }
.pgroup-head::after { content: ""; flex: 1; }
.ptype-aside { --c: var(--accent); border-top: 3px solid var(--c); }
.ptype-aside .ptype-ic { background: color-mix(in srgb, var(--c) 25%, transparent); color: #fff; margin-bottom: 12px; }
.ptype-aside h3 { color: #fff; margin-bottom: 16px; }
.btn-type { background: var(--c); color: #fff; margin-bottom: 10px; }
.btn-type:hover { background: color-mix(in srgb, var(--c) 82%, #000); }
.btn-on-dark, .theme-light .btn-on-dark { color: #fff; border-color: transparent; background: none; padding-left: 4px; padding-right: 4px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; }
.btn-on-dark:hover { text-decoration-color: currentColor; }
.theme-light .aside-card.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.apply-type { align-items: center; padding: 12px 14px; }


/* Partner directory — logo-only cards */
.partner-grid { grid-template-columns: repeat(4, 1fr); }
.logo-card { --c: var(--ink); padding: 0; display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.logo-card .logo-stage { display: grid; place-items: center; height: 150px; padding: 26px 28px; background: #fff; transition: transform .45s var(--ease); }
.logo-card .logo-stage img { max-width: 100%; max-height: 84px; object-fit: contain; }
.logo-card:hover .logo-stage { }
.logo-fallback { width: 76px; height: 76px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 26px; }
.logo-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--muted); font-size: 13px; }
.logo-meta .ploc { margin: 0; font-size: 13px; color: var(--text-2); }
.logo-meta .go { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm); background: #fff; color: var(--c); border: 1px solid var(--line); margin-left: auto; transition: background .25s, color .25s, transform .25s var(--ease); }
.logo-meta .go .ic { width: 15px; height: 15px; }
.logo-card:hover .go { background: var(--c); color: #fff; }
.logo-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.logo-card:hover::after { transform: scaleX(1); }
.logo-card.featured { border-top: 1px solid var(--line); }
@media (max-width: 1080px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .partner-grid { grid-template-columns: 1fr 1fr; } .logo-card .logo-stage { height: 120px; padding: 18px; } }

/* Form notice line + popup */
.notice-line { margin: -2px 0 0; }
.check-note { font-size: 13.5px; color: var(--text-2); margin: 0; }
.check-note a, .notice-line a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.notice-dlg { border: 0; padding: 0; width: min(760px, calc(100vw - 32px)); max-height: min(82vh, 860px); border-radius: var(--r-lg); box-shadow: 0 40px 100px -20px rgba(0,0,0,.5); color: var(--text); overflow: hidden; }
.notice-dlg[open] { display: flex; flex-direction: column; animation: dlgIn .35s var(--ease); }
.notice-dlg::backdrop { background: rgba(10,11,15,.6); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.notice-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px; border-bottom: 1px solid var(--line); border-top: 4px solid var(--accent-deep); }
.notice-dlg-head h2 { font-size: 22px; margin: 0; }
.notice-x { background: none; border: 0; cursor: pointer; color: var(--text-3); padding: 6px; border-radius: 8px; }
.notice-x:hover { background: var(--muted); color: var(--text); }
.notice-dlg-body { padding: 22px 26px; overflow: auto; font-size: 15px; }
.notice-dlg-body h2 { font-size: 19px; margin-top: 1.4em; }
.notice-dlg-foot { display: flex; align-items: center; gap: 10px; padding: 14px 26px; border-top: 1px solid var(--line); background: var(--muted); }
.notice-full { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.notice-full .ic { width: 14px; height: 14px; }
.notice-full:hover { color: var(--accent); }
.btn-consent-light { background: #fff; border-color: var(--line-2); color: var(--text); }
.btn-consent-light:hover { border-color: var(--text-3); }
@media (max-width: 720px) { .notice-dlg-foot { flex-wrap: wrap; } .notice-full { width: 100%; } .notice-dlg-foot .btn { flex: 1; } }

/* Phone: country calling code + number */
.phone-row { display: grid; grid-template-columns: minmax(0, 44%) 1fr; gap: 8px; }
.phone-row select { font: inherit; font-weight: 400; font-size: 15px; padding: 12px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--text); width: 100%; text-overflow: ellipsis; }
.phone-row select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.f.invalid input, .f.invalid select, .f.invalid textarea { border-color: var(--accent); }
.fgrid > .notice-line { grid-column: 1 / -1; }

/* Searchable phone-code picker */
.ss { position: relative; min-width: 0; }
.ss-native { display: none !important; }
.ss-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; font: inherit; font-size: 15px; text-align: left; padding: 12px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--text); cursor: pointer; white-space: nowrap; overflow: hidden; }
.ss-btn.empty .ss-val { color: var(--text-3); }
.ss-btn:focus-visible, .ss.open .ss-btn { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.ss-val { overflow: hidden; text-overflow: ellipsis; }
.ss-caret { flex: none; width: 8px; height: 8px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.ss.open .ss-caret { transform: rotate(-135deg) translateY(-2px); }
.ss-panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: max(100%, 300px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 24px 50px -16px rgba(16,18,24,.35); padding: 8px; animation: ssIn .18s ease-out; }
@keyframes ssIn { from { opacity: 0; transform: translateY(-4px); } }
.ss-search { width: 100%; font: inherit; font-size: 14.5px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); margin-bottom: 6px; color: var(--text); background: #fff; }
.ss-search:focus { outline: none; border-color: var(--accent); }
.ss-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; }
.ss-opt { padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 400; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.ss-opt.on { background: var(--muted); }
.ss-opt.sel { font-weight: 700; color: var(--accent-deep); }
.ss-none { padding: 10px; font-size: 14px; color: var(--text-3); }

/* CAPTCHA */
.captcha .cap-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cap-img { flex: none; width: 176px; height: 56px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); background: #f4f5f7; }
.cap-img svg { width: 100%; height: 100%; display: block; }
.cap-refresh { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line-2); background: #fff; color: var(--text-2); cursor: pointer; transition: color .2s, border-color .2s; }
.cap-refresh:hover { color: var(--accent); border-color: var(--accent); }
.cap-refresh .ic { width: 18px; height: 18px; }
.cap-refresh.spin .ic { animation: capSpin .5s ease; }
@keyframes capSpin { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
.captcha .cap-input { flex: 1; min-width: 150px; letter-spacing: .25em; font-weight: 700; text-transform: uppercase; }
.cap-help { font-size: 12px; color: var(--text-3); font-weight: 400; }

/* ───────── Partner programme (on /partners) ───────── */
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.program-sec { position: relative; overflow: hidden; }
.program-sec .wrap { position: relative; }
.program-sec .sec-head { max-width: 760px; }
.program-sec .sec-head h2 { color: #fff; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.program-card { padding: 26px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: border-color .3s, transform .35s var(--ease), background .3s; transition-delay: var(--d, 0ms); }
.program-card:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: rgba(255,255,255,.06); }
.program-ic { width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 22%, transparent); color: #fff; margin-bottom: 16px; }
.program-ic .ic { width: 22px; height: 22px; }
.program-card h3 { color: #fff; font-size: 18px; margin: 0 0 8px; }
.program-card p { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.6; margin: 0; }
.program-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.program-foot p { color: rgba(255,255,255,.6); font-size: 14px; max-width: 640px; margin: 0; }
.program-links { display: flex; gap: 10px; flex-wrap: wrap; }
.portal-hint { display: flex; gap: 8px; align-items: center; margin-top: 26px; padding: 14px 16px; border-radius: var(--r); background: var(--muted); font-size: 14.5px; color: var(--text-2); }
.portal-hint .ic { width: 18px; height: 18px; color: var(--accent); flex: none; }
.portal-hint a { color: var(--accent-deep); font-weight: 600; }
@media (max-width: 960px) { .program-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .program-grid { grid-template-columns: 1fr; } }

/* ───────── Partner portal ───────── */
body.portal .announce { display: none; }
.portal-auth { position: relative; overflow: hidden; padding: 72px 0 96px; min-height: calc(100vh - 160px); display: flex; align-items: center; }
.portal-auth-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; width: 100%; }
.portal-auth-copy h1 { color: #fff; font-size: clamp(34px, 4.4vw, 54px); }
.portal-card { background: #fff; color: var(--text); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow-lg); position: relative; }
.portal-card::before { content: ""; position: absolute; left: 34px; right: 34px; top: -1px; height: 4px; background: var(--accent); border-radius: 0 0 4px 4px; }
.portal-card h2 { font-size: 26px; margin: 0 0 18px; }
.portal-login { display: grid; gap: 16px; }
.portal-login .captcha { margin: 0; }
.portal-help { font-size: 13.5px; color: var(--text-3); margin: 18px 0 0; line-height: 1.6; }
.portal-help a { color: var(--accent-deep); font-weight: 600; }

.portal-bar { background: var(--ink); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.portal-bar-in { display: flex; align-items: center; gap: 28px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.portal-who { display: flex; align-items: center; gap: 12px; }
.portal-who small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); }
.portal-who strong { font-size: 15.5px; }
.portal-logo { width: 42px; height: 42px; border-radius: var(--r); background: #fff; display: grid; place-items: center; padding: 5px; }
.portal-logo img { max-width: 100%; max-height: 100%; }
.portal-nav { display: flex; gap: 4px; flex: 1; }
.portal-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r); color: rgba(255,255,255,.72); font-size: 14.5px; font-weight: 600; transition: color .2s, background .2s; }
.portal-nav a .ic { width: 17px; height: 17px; }
.portal-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.portal-nav a.on { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 -2px 0 var(--accent); }
.portal-out { display: flex; align-items: center; gap: 12px; }
.portal-me { font-size: 14px; color: rgba(255,255,255,.7); }
.portal-flash { margin-top: 18px; }
.portal-sec { padding-top: 40px; min-height: 60vh; }
.portal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.portal-head h1 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.portal-head p { margin: 0; max-width: 720px; }
.muted { color: var(--text-3); }
.small { font-size: 13.5px; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; }
.back-link { display: inline-block; font-size: 14px; color: var(--text-3); margin-bottom: 14px; }
.back-link:hover { color: var(--accent-deep); }
.portal-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.portal-stats > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 2px; }
.portal-stats strong { font-size: 28px; letter-spacing: -.02em; }
.portal-stats span { color: var(--text-3); font-size: 13.5px; font-weight: 600; }
.portal-form-wrap { margin-bottom: 26px; scroll-margin-top: 90px; animation: pfIn .3s var(--ease); }
@keyframes pfIn { from { opacity: 0; transform: translateY(-6px); } }
.portal-form { max-width: none; }
.portal-form-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.portal-form-head h2 { font-size: 22px; margin: 0 0 4px; }
.portal-form .fgrid { grid-template-columns: repeat(3, 1fr); }
.portal-form .fgrid .full { grid-column: 1 / -1; }
.icon-close { width: 38px; height: 38px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--text-2); flex: none; }
.icon-close:hover { color: var(--accent); border-color: var(--accent); }
.ss-full { width: 100%; }
.ss-full .ss-btn { font-weight: 400; }
.portal-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.portal-tools .pf-search { flex: 1; min-width: 240px; max-width: 420px; }
.portal-tools .pf-search input { padding-left: 40px; }
.seg { display: inline-flex; background: var(--muted); border-radius: var(--r); padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: none; padding: 8px 14px; border-radius: 8px; color: var(--text-2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.deal-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }
.deal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 820px; }
.deal-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.deal-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.deal-table tr:last-child td { border-bottom: 0; }
.deal-table tbody tr { cursor: pointer; transition: background .15s; }
.deal-table tbody tr:hover { background: #fafbfc; }
.deal-table td a.mono { color: var(--accent-deep); font-weight: 700; }
.deal-table .r { text-align: right; }
.deal-table tr.new-row { animation: rowIn 1.6s ease-out; }
@keyframes rowIn { from { background: color-mix(in srgb, var(--accent) 12%, #fff); } }
.prot { display: grid; } .prot small { color: var(--text-3); }
.deal-empty { padding: 48px 20px; text-align: center; color: var(--text-3); }
.deal-empty .ic { width: 34px; height: 34px; margin-bottom: 8px; }
.deal-badge { display: inline-block; padding: 3px 10px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--muted); color: var(--text-2); vertical-align: middle; }
.deal-submitted { background: #fff7ed; color: #9a3412; }
.deal-underreview { background: #eff6ff; color: #1e40af; }
.deal-approved { background: #ecfdf5; color: #065f46; }
.deal-rejected { background: #fef2f2; color: #991b1b; }
.deal-won { background: #dcfce7; color: #14532d; }
.deal-lost, .deal-expired { background: #f3f4f6; color: #4b5563; }
.portal-head h1 .deal-badge { font-size: 13px; }
.deal-detail { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
.deal-detail aside { display: grid; gap: 16px; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; align-content: start; }
.deal-detail > div { display: grid; gap: 16px; }
.detail-card h2 { font-size: 17px; margin: 6px 0 0; }
.detail-card h2:first-child { margin-top: 0; }
.detail-card h3 { font-size: 16px; margin: 0; }
.detail-card .f { margin: 0; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.kv dt { color: var(--text-3); font-weight: 600; font-size: 14px; }
.kv dd { margin: 0; }
.pre { white-space: pre-wrap; margin: 0; color: var(--text-2); }
.prot-card { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r-lg); background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.prot-card .ic { width: 28px; height: 28px; flex: none; }
.prot-card strong { display: block; font-size: 16px; }
.prot-card.soon { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.prot-card.expired { background: #f3f4f6; border-color: #e5e7eb; color: #4b5563; }
.partner-msg { padding: 16px 20px; border-radius: var(--r-lg); background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
.partner-msg p { margin: 4px 0 0; white-space: pre-wrap; }
.ptimeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ptimeline li { display: grid; grid-template-columns: 12px 1fr; gap: 12px; font-size: 14px; position: relative; }
.ptimeline li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 16px; bottom: -14px; width: 2px; background: var(--line); }
.ptimeline .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); margin-top: 4px; }
.ptimeline .k-status .dot { background: var(--accent); }
.ptimeline .k-submitted .dot { background: #f97316; }
.ptimeline small { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-item .av { width: 40px; height: 40px; border-radius: 50%; background: var(--muted); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.contact-item small { display: block; color: var(--text-3); font-size: 13.5px; }
@media (max-width: 960px) {
    .portal-auth-in, .deal-detail { grid-template-columns: 1fr; gap: 32px; }
    .portal-form .fgrid { grid-template-columns: 1fr 1fr; }
    .portal-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .portal-form .fgrid { grid-template-columns: 1fr; }
    .portal-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
    .portal-me { display: none; }
    .portal-card { padding: 24px; }
    .kv { grid-template-columns: 1fr; gap: 2px; }
    .kv dd { margin-bottom: 10px; }
}

.portal-nav a { white-space: nowrap; }
@media (max-width: 620px) { .portal-nav a { padding: 8px 10px; font-size: 14px; } .portal-bar-in { gap: 12px 16px; } .portal-out { margin-left: auto; } }
.deal-empty .ic { display: block; margin: 0 auto 8px; }

/* Programme section: light, clearly separated from the dark page header */
.program-sec { background: var(--muted); border-top: 1px solid var(--line); }
.program-sec .sec-head h2 { color: var(--text); }
.program-sec .sec-head .lead { color: var(--text-2); }
.program-sec .program-card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.program-sec .program-card:hover { background: #fff; border-color: color-mix(in srgb, var(--accent) 45%, var(--line));  }
.program-sec .program-ic { background: var(--accent-soft); color: var(--accent); }
.program-sec .program-card h3 { color: var(--text); }
.program-sec .program-card p { color: var(--text-2); }
.portal-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; padding: 26px 30px; border-radius: var(--r-lg); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.portal-cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.portal-cta-ic { flex: none; width: 52px; height: 52px; border-radius: var(--r-lg); display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 24%, transparent); color: #fff; }
.portal-cta-ic .ic { width: 24px; height: 24px; }
.portal-cta-text { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.portal-cta-text strong { font-size: 20px; color: #fff; }
.portal-cta-text span { color: rgba(255,255,255,.72); font-size: 16px; }
@media (max-width: 620px) { .portal-cta { padding: 22px; } .portal-cta .btn { width: 100%; justify-content: center; } }

/* DD/MM/YYYY date field with calendar button */
.date-wrap { position: relative; display: block; }
.date-wrap > input[data-date] { width: 100%; padding-right: 44px; font-variant-numeric: tabular-nums; }
.date-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: pointer; }
.date-btn:hover { color: var(--accent); background: rgba(0,0,0,.04); }
.date-btn:disabled { opacity: .4; cursor: default; }
.date-native { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }

/* Required field marker */
.req { color: var(--accent); font-style: normal; font-weight: 700; margin-left: 1px; }

/* Portal: update requests and notes */
.update-req { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--r-lg); background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; color: #78350f; margin-bottom: 18px; }
.update-req strong { display: block; font-size: 16px; }
.update-req span { font-size: 14px; }
.update-req p { margin: 6px 0 0; white-space: pre-wrap; }
.update-req a:not(.btn) { color: #92400e; font-weight: 700; text-decoration: underline; }
.deal-detail .update-req { margin-bottom: 0; }
.deal-badge.ask { margin-top: 4px; }
.note-form { display: grid; gap: 10px; justify-items: start; }
.note-form .f { width: 100%; }
.thread { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.msg { padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fafbfc; max-width: 88%; }
.msg.mine { background: color-mix(in srgb, var(--accent) 5%, #fff); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); justify-self: end; }
.msg.k-update-request { background: #fffbeb; border-color: #fde68a; }
.msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.msg-head small { margin-left: auto; color: var(--text-3); font-size: 12.5px; }
.msg p { margin: 6px 0 0; white-space: pre-wrap; font-size: 15px; color: var(--text); }
@media (max-width: 620px) { .msg { max-width: 100%; } }

/* ── Portal · sales stage ── */
.stage-steps { list-style: none; display: flex; gap: 0; margin: 4px 0 14px; padding: 0; counter-reset: st; }
.stage-steps li { flex: 1; position: relative; text-align: center; font-size: 13px; color: var(--text-3, #8a90a0); padding-top: 30px; }
.stage-steps li::before { counter-increment: st; content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #fff; border: 2px solid var(--line-2); color: var(--text-3, #8a90a0); z-index: 1; }
.stage-steps li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line-2); }
.stage-steps li:first-child::after { display: none; }
.stage-steps li.done { color: var(--text); }
.stage-steps li.done::before { content: "✓"; background: #059669; border-color: #059669; color: #fff; }
.stage-steps li.done::after, .stage-steps li.on::after { background: #059669; }
.stage-steps li.on { color: var(--text); font-weight: 700; }
.stage-steps li.on::before { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.stage-steps li.st-won.on::before { background: #059669; border-color: #059669; content: "★"; }
.stage-steps li.st-lost.on::before { background: #6b7280; border-color: #6b7280; content: "✕"; box-shadow: none; }
.lost-note { background: var(--muted); border-left: 3px solid #6b7280; padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 14px; }
.stage-form { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 12px; }
.stage-pick, .seg { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-opt, .seg label { position: relative; cursor: pointer; }
.stage-opt input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.stage-opt span, .seg span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; background: #fff; transition: all .15s; }
.stage-opt:hover span, .seg label:hover span { border-color: var(--text); }
.stage-opt input:checked + span, .seg input:checked + span { background: var(--ink, #131419); border-color: var(--ink, #131419); color: #fff; }
.stage-opt.st-won input:checked + span { background: #059669; border-color: #059669; }
.stage-opt.st-lost input:checked + span { background: #6b7280; border-color: #6b7280; }
.stage-opt input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lost-fields { display: grid; gap: 12px; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--muted); }
.stage-tag { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: var(--r-sm); background: var(--muted); color: var(--text-2, #5a6070); }
.stage-tag.st-poc { background: #e0f2fe; color: #075985; }
.stage-tag.st-proposal { background: #ede9fe; color: #5b21b6; }

/* ── Portal · extension request ── */
.ext-form { display: grid; gap: 14px; }
.ext-form .f > span:first-child { display: block; margin-bottom: 6px; }
.slots { display: grid; gap: 10px; margin-bottom: 8px; }
.slot { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; background: var(--muted); }
.slot-row { display: flex; gap: 6px; align-items: center; }
.slot-row .date-wrap { flex: 1; min-width: 0; }
.slot-row input { min-width: 0; }
.slot-time { width: 72px; flex: none; text-align: center; }
.slot-del { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--text-3, #8a90a0); cursor: pointer; display: grid; place-items: center; }
.slot-del:hover { background: #fff; color: var(--text); }
.slot-del .ic { width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chips button { border: 1px solid var(--line-2); background: #fff; border-radius: var(--r-sm); padding: 3px 10px; font: inherit; font-size: 12.5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.chips button:hover { border-color: var(--text); }
.chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ext-done h3 { margin-bottom: 4px; }
[hidden] { display: none !important; }
.f .date-native, .date-wrap > .date-native { width: 1px; height: 1px; padding: 0; border: 0; }
.slot-row .slot-time { width: 78px; flex: none; text-align: center; padding-left: 8px; padding-right: 8px; }
.slot-row .date-wrap > input[data-date] { width: 100%; }
.tz-note { display: flex; align-items: center; gap: 6px; margin: -2px 0 8px; } .tz-note .ic { width: 14px; height: 14px; }

/* ── Portal · user menu ── */
.portal-user { position: relative; margin-left: auto; }
.portal-user-btn { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); background: rgba(255,255,255,.04); color: #fff; font: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.portal-user-btn:hover, .portal-user.open .portal-user-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.portal-user-btn .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; flex: none; }
.portal-user-btn .portal-me { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; text-align: left; }
.portal-user-btn .portal-me strong { font-size: 14px; color: #fff; }
.portal-user-btn .portal-me small { font-size: 12px; color: rgba(255,255,255,.6); }
.portal-user-btn > .ic { width: 16px; height: 16px; opacity: .7; transition: transform .2s; }
.portal-user.open .portal-user-btn > .ic { transform: rotate(180deg); }
.portal-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.portal-menu-head { padding: 10px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.portal-menu-head strong { display: block; font-size: 14.5px; }
.portal-menu-head small { color: var(--text-3, #8a90a0); font-size: 12.5px; word-break: break-all; }
.portal-menu a, .portal-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r); background: none; font: inherit; font-size: 14.5px; color: inherit; cursor: pointer; text-align: left; }
.portal-menu a:hover, .portal-menu button:hover, .portal-menu a:focus-visible, .portal-menu button:focus-visible { background: var(--muted); outline: none; }
.portal-menu a.on { color: var(--accent); font-weight: 600; }
.portal-menu .ic { width: 17px; height: 17px; color: var(--text-3, #8a90a0); }
.portal-menu form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.portal-menu form button { color: var(--accent-deep, #b3101f); }
.portal-menu form .ic { color: currentColor; }
@media (max-width: 900px) { .portal-user-btn .portal-me { display: none; } .portal-user-btn { padding: 4px 8px 4px 4px; } }
.narrow-card { max-width: 820px; }
.pw-card { display: grid; gap: 12px; max-width: 520px; }
.pw-card h2 { margin: 0; }

/* ── Portal · company page with sales-stage chart ── */
.company-grid { display: grid; grid-template-columns: minmax(0, 697px) minmax(0, 1fr); gap: 24px; align-items: start; }
.company-grid > .detail-card:first-child { max-width: 697px; }  /* 15% narrower than before (820px) */
@media (max-width: 900px) { .company-grid { grid-template-columns: 1fr; } .company-grid > .detail-card:first-child { max-width: none; } }
.stage-chart {
    --st-new: #86b6ef; --st-poc: #3987e5; --st-proposal: #1c5cab; --st-won: #0ca30c; --st-lost: #5c6370;
}
.stage-chart h2 { margin-bottom: 14px; }
.donut-wrap { position: relative; width: min(240px, 100%); margin: 0 auto 18px; }
.donut { display: block; width: 100%; height: auto; overflow: visible; }
.donut .seg { fill: none; stroke-width: 34; transition: stroke-width .15s, opacity .15s; cursor: default; outline: none; }
.donut .seg.st-new { stroke: var(--st-new); } .donut .seg.st-poc { stroke: var(--st-poc); } .donut .seg.st-proposal { stroke: var(--st-proposal); }
.donut .seg.st-won { stroke: var(--st-won); } .donut .seg.st-lost { stroke: var(--st-lost); }
.donut.dim .seg { opacity: .35; }
.donut .seg.hot, .donut .seg:focus-visible { stroke-width: 40; opacity: 1; }
.donut-total { text-anchor: middle; font-size: 34px; font-weight: 800; fill: var(--text); font-variant-numeric: tabular-nums; }
.donut-sub { text-anchor: middle; font-size: 12px; fill: var(--text-3); letter-spacing: .02em; }
.donut-tip { position: absolute; transform: translate(-50%, calc(-100% - 10px)); background: var(--ink); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow); z-index: 2; }
.donut-tip strong { font-variant-numeric: tabular-nums; }
.stage-legend { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.stage-legend th { font-size: 12px; font-weight: 600; color: var(--text-3); text-align: left; padding: 0 6px 8px; border-bottom: 1px solid var(--line); }
.stage-legend td { padding: 9px 6px; border-bottom: 1px solid var(--line); color: var(--text); }
.stage-legend tr:last-child td { border-bottom: 0; }
.stage-legend .r { text-align: right; }
.stage-legend td.r:last-child { color: var(--text-2); }
.stage-legend tr.zero td { color: var(--text-3); }
.stage-legend tr.hot td { background: var(--muted); }
.stage-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 10px; vertical-align: -1px; }
.stage-legend .sw.st-new { background: var(--st-new); } .stage-legend .sw.st-poc { background: var(--st-poc); } .stage-legend .sw.st-proposal { background: var(--st-proposal); }
.stage-legend .sw.st-won { background: var(--st-won); } .stage-legend .sw.st-lost { background: var(--st-lost); }
.donut-note { margin: 12px 0 0; }
@media (forced-colors: active) { .donut .seg { stroke: CanvasText; } }

/* ── Offices (contact page block + footer) ── */
.office-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.office-card { position: relative; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.office-card[hidden] { display: none; }
.office-card:hover {  }
.office-card.is-hq { border-top: 3px solid var(--accent); padding-top: 22px; }
.theme-light .office-card { background: var(--muted); box-shadow: none; border-color: transparent; }
.office-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.office-place { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); min-width: 0; }
.office-flag { font-size: 18px; line-height: 1; letter-spacing: 0; }
.office-badge { flex: none; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-deep); }
.office-card h3 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.office-note { margin: 0; font-size: 14.5px; color: var(--text-2); }
.office-time { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 13.5px; color: var(--text-2); }
.office-time .ic { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.office-time strong { color: var(--text); font-variant-numeric: tabular-nums; }
.office-lines { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14.5px; }
.office-lines li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.office-lines .ic { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }
.office-lines a { color: var(--text); overflow-wrap: anywhere; }
.office-lines a:hover { color: var(--accent); }
.office-lines address { font-style: normal; color: var(--text-2); }
.office-lines small { display: block; color: var(--text-3); font-size: 12.5px; }
.office-map { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.office-map .ic { width: 15px; height: 15px; }
.theme-dark .office-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.theme-dark .office-card h3, .theme-dark .office-lines a, .theme-dark .office-time strong { color: #fff; }
.theme-dark .office-lines { border-color: rgba(255,255,255,.1); }
.theme-dark .office-lines address, .theme-dark .office-note, .theme-dark .office-time { color: rgba(255,255,255,.7); }
.theme-dark .office-badge { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 640px) { .office-grid { grid-template-columns: 1fr; } .office-card { padding: 20px; } .office-filter { margin-top: -16px; } }
.footer-office { margin-top: 16px; }
.footer-office strong { display: block; color: #fff; font-size: 14px; margin-bottom: 8px; }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.16); background: transparent; color: rgba(255,255,255,.85); font: 600 13px/1 inherit; font-family: inherit; letter-spacing: .04em; cursor: pointer; transition: background .2s, border-color .2s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: #fff; }
.lang-btn .ic { width: 16px; height: 16px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); z-index: 60; }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text); }
.lang-menu a:hover { background: var(--muted); }
.lang-menu a.on { color: var(--accent); font-weight: 650; }
.lang-menu small { color: var(--text-3); font-weight: 500; }
@media (max-width: 960px) {
    .lang-switch { order: 2; }
    .lang-btn { height: 44px; width: 100%; justify-content: center; }
    .lang-menu { position: static; margin-top: 8px; box-shadow: none; }
}
.site-header.compact .lang-switch { order: 2; }
.site-header.compact .lang-btn { height: 44px; width: 100%; justify-content: center; }
.site-header.compact .lang-menu { position: static; margin-top: 8px; box-shadow: none; }


/* ---------- Preview mode bar ---------- */
.preview-bar-site { position: sticky; top: 0; z-index: 80; background: #fde68a; color: #422006; font-size: 13.5px; font-weight: 600; text-align: center; padding: 8px 16px; }
.preview-bar-site a { color: #422006; text-decoration: underline; margin-left: 8px; }

/* ---------- Article tables and pros/cons lists ---------- */
.prose .table-scroll { margin: 18px 0 26px; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--muted); font-size: 13.5px; font-weight: 650; color: var(--text); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose ul.pros, .prose ul.cons { list-style: none; padding-left: 0; }
.prose ul.pros li, .prose ul.cons li { position: relative; padding-left: 30px; }
.prose ul.pros li::before, .prose ul.cons li::before { position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; line-height: 1; }
.prose ul.pros li::before { content: "✓"; background: #dcfce7; color: #15803d; }
.prose ul.cons li::before { content: "✕"; background: #fee2e2; color: #b91c1c; }
.prose p.note { font-size: 13.5px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 32px; }
.notice-loading { color: var(--text-3); margin: 0; padding: 30px 0; text-align: center; }
@media (max-width: 520px) { .notice-dlg-foot .btn { flex: 1 1 100%; white-space: normal; } .notice-dlg-foot [data-legal-accept], .notice-dlg-foot [data-notice-accept] { order: -1; } .notice-dlg-foot .notice-full { order: 1; justify-content: center; } }

/* ── Website popup (Settings › Popup) and the bar it leaves at the top of the site ── */
.pop-bar { position: sticky; top: 0; z-index: 52; background: var(--ink); border-bottom: 2px solid var(--accent); }
.pop-bar[hidden] { display: none; }
.pop-bar .wrap { padding-top: 7px; padding-bottom: 7px; }
.pop-bar .announce-dot { background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
.pop-bar-btn { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; padding: 3px 12px; border-radius: var(--r-sm); cursor: pointer; transition: background .2s, border-color .2s; white-space: nowrap; }
.pop-bar-btn:hover { background: var(--accent); border-color: var(--accent); }
.site-header { top: var(--pop-bar-h, 0px); }
.pop-dlg { border: 0; padding: 0; width: min(720px, calc(100vw - 32px)); max-height: min(88vh, 900px); border-radius: var(--r-lg); background: var(--ink); color: #fff; box-shadow: 0 40px 100px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; }
.pop-dlg[open] { display: flex; flex-direction: column; animation: dlgIn .4s var(--ease); }
.pop-dlg::backdrop { background: rgba(10,11,15,.66); }
.pop-dlg::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); z-index: 3; }
.pop-x { position: absolute; top: 14px; right: 14px; z-index: 4; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(10,11,15,.55); color: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.pop-x:hover { background: var(--accent); transform: rotate(90deg); }
.pop-x .ic { width: 16px; height: 16px; }
.pop-media { position: relative; background: #000; flex: 0 1 auto; min-height: 0; display: flex; }
.pop-media img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: cover; }
.pop-media > a { display: block; width: 100%; }
.pop-dlg.media-only .pop-media img { max-height: 84vh; object-fit: contain; }
.pop-video { aspect-ratio: 16 / 9; width: 100%; }
.pop-video video, .pop-video iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.pop-poster { position: relative; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; color: #fff; font: inherit; display: grid; place-items: center; overflow: hidden; background: radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--accent) 34%, var(--ink)) 0%, var(--ink) 62%); }
.pop-poster img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; }
.pop-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,15,.1), rgba(10,11,15,.6)); }
.pop-play { position: relative; z-index: 1; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 16px 40px -10px color-mix(in srgb, var(--accent) 80%, transparent), 0 0 0 10px rgba(255,255,255,.1); transition: transform .25s var(--ease); }
.pop-play svg { margin-left: 4px; }
.pop-poster:hover .pop-play { }
.pop-poster small { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 12px; text-align: center; font-size: 12px; color: rgba(255,255,255,.75); }
.pop-copy { padding: 26px 30px 30px; display: grid; gap: 12px; justify-items: start; overflow: auto; }
.pop-dlg:not(.has-media) .pop-copy { padding: 44px 34px 36px; }
.pop-copy h2 { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.15; margin: 0; color: #fff; padding-right: 30px; }
.pop-dlg.has-media .pop-copy h2 { padding-right: 0; }
.pop-copy p { margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.76); white-space: pre-line; }
.pop-copy .btn { margin-top: 6px; }
@media (max-width: 560px) { .pop-copy { padding: 20px 20px 24px; } .pop-dlg:not(.has-media) .pop-copy { padding: 40px 22px 26px; } .pop-copy .btn { width: 100%; } .pop-bar .wrap { gap: 8px; font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { .pop-dlg[open] { animation: none; } .pop-x:hover { transform: none; } }
@media print { .pop-bar, .pop-dlg { display: none !important; } }

/* ── Shared system applied to the remaining components (partners, offices, portal, dialogs) ── */
.partner-card::before { display: none; }
.partner-card, .office-card, .detail-card, .portal-card, .portal-stats > div, .deal-table-wrap { box-shadow: none; }
.partner-card { border-color: var(--line-2); }
.partner-card:hover, .logo-card:hover { border-color: var(--ink); }
.logo-card:hover .logo-stage { transform: none; }
.logo-card::after { display: none; }
.office-card { border-color: var(--line-2); border-radius: var(--r-lg); }
.office-card.is-hq { border-top: 1px solid var(--line-2); box-shadow: inset 0 3px 0 var(--accent); padding-top: 24px; }
.theme-light .office-card { background: var(--bg); border-color: var(--line-2); }
.office-badge { background: none; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; }
.office-lines .ic { color: var(--text-3); }
.office-map { color: var(--accent-deep); }
.office-filter { margin-top: 0; }
.program-sec .program-ic, .program-ic { display: none; }
.program-grid { gap: var(--s5) var(--s4); }
.program-sec .program-card, .program-card { background: none; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; padding: var(--s3) 0 0; box-shadow: none; }
.program-sec .program-card:hover, .program-card:hover { background: none; border-color: var(--line-2); box-shadow: none; }
.portal-cta { border-radius: var(--r-lg); box-shadow: none; }
.portal-cta::before { width: 3px; }
.ptype-card { border-color: var(--line-2); }
.ptype-card.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pop-poster { background: var(--ink); }
.pop-x:hover { transform: none; }
.pop-dlg { box-shadow: var(--shadow-lg); }
.notice-dlg { box-shadow: var(--shadow-lg); }
.notice-dlg::backdrop, .pop-dlg::backdrop { background: rgba(10,11,15,.6); }
.consent-box { box-shadow: var(--shadow-lg); }
.mega { box-shadow: var(--shadow-lg); }
.program-sec .sec-head { max-width: none; }
.portal-card::before { display: none; }
.theme-dark .portal-card p, .theme-dark .portal-card .portal-help { color: var(--text-3); }
.portal-card { border-radius: var(--r-lg); }
.cpref-list table { table-layout: fixed; }
.cpref-list th, .cpref-list td { overflow-wrap: anywhere; hyphens: auto; }

/* ── Motion layer (restored on request, 2026-11-19): hero animation, grid/glow background, live event cards, rotating words, channel marquee, escalation demo, architecture packets ── */
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-grid { position: absolute; inset: -40px; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%); animation: gridmove 24s linear infinite; }
@keyframes gridmove { to { transform: translate(48px, 48px); } }
.hero-glow { position: absolute; width: 900px; height: 900px; right: -260px; top: -320px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), transparent 62%); filter: blur(10px); animation: glow 9s ease-in-out infinite alternate; }
.hero-glow.small { width: 640px; height: 640px; right: -200px; top: -320px; opacity: .8; }
@keyframes glow { to { transform: translate(-80px, 60px) scale(1.1); opacity: .75; } }
.eyebrow-pill { padding: 7px 14px 7px 10px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff !important; letter-spacing: .08em; font-size: 12px; }
.eyebrow-pill::before { display: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 0 var(--accent); animation: ping 1.8s infinite; }
.hero-rotator { font-size: 18px; color: rgba(255,255,255,.6) !important; margin-bottom: 18px; }
.rotator { display: inline-grid; color: #fff; font-weight: 600; vertical-align: bottom; overflow: hidden; height: 1.6em; }
.rotator span { display: inline-block; border-bottom: 2px solid var(--accent); animation: rotIn .55s var(--ease); }
.rotator span.out { animation: rotOut .4s var(--ease) forwards; }
@keyframes rotIn { from { transform: translateY(100%); opacity: 0; } }
@keyframes rotOut { to { transform: translateY(-100%); opacity: 0; } }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: end; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.shield-core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; }
.shield-core svg { width: 46%; height: 46%; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 2; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 80%, transparent)); }
.shield-core::before { content: ""; position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--accent-bright), var(--accent-deep) 70%); box-shadow: 0 0 60px -6px var(--accent), inset 0 -10px 30px rgba(0,0,0,.25); }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); animation: ringpulse 3.6s ease-out infinite; }
.ring.r2 { animation-delay: 1.2s; } .ring.r3 { animation-delay: 2.4s; }
@keyframes ringpulse { from { transform: scale(.75); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.event-feed { position: absolute; right: -6px; bottom: 6%; width: 270px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.ev { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(20,22,28,.78); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); font-size: 12.5px; color: rgba(255,255,255,.85); box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); animation: evIn .5s var(--ease); }
.ev.out { animation: evOut .5s var(--ease) forwards; }
.ev b { color: #fff; font-weight: 600; }
.ev i { font-style: normal; margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; letter-spacing: .04em; }
.ev .tag-block { background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--accent-bright); }
.ev .tag-warn { background: rgba(245,158,11,.18); color: #fbbf24; }
.ev .tag-mon { background: rgba(56,189,248,.16); color: #7dd3fc; }
.ev .tag-enc { background: rgba(16,185,129,.16); color: #6ee7b7; }
@keyframes evIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes evOut { to { opacity: 0; transform: translateY(-10px) scale(.97); } }
.pkt { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pkt 2.2s linear infinite; opacity: 0; }
.pkt.d2 { animation-delay: .73s; } .pkt.d3 { animation-delay: 1.46s; }
@keyframes pkt { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.escalator { background: var(--ink); color: #fff; border-radius: 18px; padding: 26px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.escalator::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at 100% 0, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%); }
.esc-file { position: relative; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.esc-file em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent-bright); background: color-mix(in srgb, var(--accent) 20%, transparent); padding: 3px 9px; border-radius: 99px; }
.esc-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 12px; }
.esc-step { text-align: center; font-size: 13px; font-weight: 600; padding: 9px 0; border-radius: 9px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.5); transition: all .4s var(--ease); }
.esc-step.on[data-l="info"] { background: rgba(14,165,233,.2); color: #7dd3fc; }
.esc-step.on[data-l="warn"] { background: rgba(245,158,11,.2); color: #fcd34d; }
.esc-step.on[data-l="block"] { background: color-mix(in srgb, var(--accent) 30%, transparent); color: #fff; box-shadow: 0 0 0 1px var(--accent), 0 0 24px -4px var(--accent); }
.esc-bar { position: relative; height: 6px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.esc-bar span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(.05); background: linear-gradient(90deg, #0ea5e9, #f59e0b 55%, var(--accent)); transition: transform 1s var(--ease); border-radius: 99px; }
.esc-msg { position: relative; margin-top: 16px; font-size: 13.5px; color: rgba(255,255,255,.7); min-height: 1.5em; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-size: 14.5px; font-weight: 500; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.chip .ic { width: 17px; height: 17px; color: var(--text-3); }
.chip:hover { transform: translateY(-2px); border-color: var(--accent); }
.chip.em { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); color: var(--accent-deep); }
.chip.em .ic { color: var(--accent); }
.theme-dark .chip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); color: #fff; }
.theme-dark .chip .ic { color: var(--accent-bright); }
.chip-lg { padding: 14px 22px; font-size: 16px; }
.marquee { display: grid; gap: 14px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marq 40s linear infinite; }
.marquee-track.rev { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.hero, .page-header { overflow: hidden; }
.hero-in, .page-header .wrap { position: relative; }
.escalator { position: relative; overflow: hidden; margin-top: var(--s5); }
@media (max-width: 960px) {
    .hero-visual { justify-self: center; max-width: 440px; }
    @keyframes pkt { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
    .pkt { left: -4px !important; }
}
@media (max-width: 640px) { .event-feed { right: 0; left: 0; width: auto; bottom: -4%; } }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.75); }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .ic { width: 18px; height: 18px; color: var(--accent-bright); }
.hero .eyebrow-pill { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero { min-height: min(860px, calc(100vh - 72px)); display: flex; align-items: center; border-bottom: 6px solid var(--accent-deep); }
.hero > .wrap { width: 100%; }
.page-header { border-bottom: 6px solid var(--accent-deep); }
.hero-badges { margin-top: var(--s4); }
.stat-num .pre, .stat-num .suf { color: var(--accent); }
em.hl { color: var(--accent); }
.theme-dark em.hl { color: var(--accent-bright); }
.cta-in h2 em.hl { color: #fff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
@media (max-width: 960px) { .hero { min-height: 0; } }
.footer-mark svg { width: 30px; height: 44px; display: block; }
.footer-brand .social { margin-top: var(--s3); }
/* capability points: the red mark sits in the vertical middle of its row, next to the text */
.caps-points li { display: flex; align-items: center; gap: 14px; padding-left: 0; }
.caps-points li::before { position: static; flex: none; width: 12px; height: 2px; margin-left: 2px; }
