/* ---------- Fonts (self-hosted variable fonts, latin subset; SIL Open Font Licence) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
    /* Restrained enterprise palette: deep navy, one accent blue, neutral slate surfaces. */
    --navy-950: #050d1c;
    --navy-900: #0a1628;
    --navy-800: #101f38;
    --navy-700: #182b4b;
    --blue-600: #1d5bd8;
    --blue-500: #2f6fea;
    --blue-400: #6b9bf2;
    --blue-300: #a9c4f7;
    /* Formerly light sky blues; now near-neutral so cards and hovers read as clean greys. */
    --blue-200: #d9e0ea;
    --blue-100: #eaeef4;
    --blue-50: #f5f7fa;
    --sky: #7fb2ff;
    --sky-rgb: 127, 178, 255;
    --accent-rgb: 29, 91, 216;
    --accent-dark: #174bb5;

    --ink: #0f172a;
    --body: #475569;
    --muted: #64748b;
    --line: #e4e8ee;
    --surface: #ffffff;
    --canvas: #f7f8fa;
    --grid-pattern: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
                    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(10, 39, 72, .06), 0 2px 8px rgba(10, 39, 72, .04);
    --shadow: 0 10px 30px -12px rgba(10, 39, 72, .22);
    --shadow-lg: 0 30px 60px -25px rgba(6, 26, 51, .45);

    --ease: cubic-bezier(.2, .7, .2, 1);
    /* Fonts: Plus Jakarta Sans for headings and body text.
       To go back to the previous pairing (Plus Jakarta headings, Inter body text), add data-font="classic"
       to the <html> tag in _Layout.cshtml. */
    --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Type scale: every font size on the site comes from this list. */
    --text-xs: .75rem;      /* 12px  tags, tiny badges */
    --text-label: .8125rem; /* 13px  uppercase eyebrows and labels */
    --text-sm: .875rem;     /* 14px  meta text, captions, menu descriptions */
    --text-base: 1rem;      /* 16px  body text, card descriptions, buttons, nav */
    --text-md: 1.125rem;    /* 18px  lead paragraphs, small titles */
    --text-lg: 1.375rem;    /* 22px  card and small section headings (h3) */
    --text-xl: 1.75rem;     /* 28px  sub-section headings */
    --text-2xl: clamp(1.75rem, 3vw, 2.5rem);    /* 28-40px  section headings (h2) */
    --text-3xl: clamp(2.25rem, 4.4vw, 3.25rem); /* 36-52px  page titles (h1) */
    --text-display: clamp(2.5rem, 6vw, 4.25rem);/* 40-68px  home hero */
    --text-stat: clamp(2.25rem, 4vw, 3.25rem);  /* big numbers */
    /* Every card on the site uses these two sizes (as on the home page compliance cards). */
    --card-title: var(--text-base); /* 16px bold */
    --card-text: var(--text-sm);    /* 14px */
    --header-h: 72px;
    /* One gap for every card grid on the site, so spacing between cards is uniform. */
    --gap: 24px;
}

/* Previous fonts: Plus Jakarta Sans headings with Inter body text. */
[data-font="classic"] {
    --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Colour schemes ----------
   Navy (the tokens above) is the chosen scheme. The alternatives below are switched off but kept
   so they can be compared again on UAT: remove the comment markers around them and set
   schemePicker in _Layout.cshtml back to the Site:SchemePicker setting.
   Each accent keeps white button text at WCAG AA contrast (4.5:1 or better).

[data-scheme="graphite"] {   -- charcoal with a warm amber accent
    --navy-950: #0b0c0e;
    --navy-900: #141619;
    --navy-800: #1d2025;
    --navy-700: #2a2e35;
    --blue-600: #b45309;
    --blue-500: #d97706;
    --blue-400: #f59e0b;
    --blue-300: #fcd34d;
    --sky: #fbbf24;
    --sky-rgb: 251, 191, 36;
    --accent-rgb: 180, 83, 9;
    --accent-dark: #92400e;
}
[data-scheme="forest"] {     -- deep green, health and life sciences
    --navy-950: #04130c;
    --navy-900: #082016;
    --navy-800: #0e2e20;
    --navy-700: #163f2d;
    --blue-600: #15803d;
    --blue-500: #16a34a;
    --blue-400: #4ade80;
    --blue-300: #bbf7d0;
    --sky: #86efac;
    --sky-rgb: 134, 239, 172;
    --accent-rgb: 21, 128, 61;
    --accent-dark: #166534;
}
[data-scheme="burgundy"] {   -- deep wine with a crimson accent
    --navy-950: #14070c;
    --navy-900: #1f0b13;
    --navy-800: #2d111c;
    --navy-700: #401a29;
    --blue-600: #be123c;
    --blue-500: #e11d48;
    --blue-400: #fb7185;
    --blue-300: #fecdd3;
    --sky: #fda4af;
    --sky-rgb: 253, 164, 175;
    --accent-rgb: 190, 18, 60;
    --accent-dark: #9f1239;
}
---------- end of switched-off schemes ---------- */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: 1.65;
    color: var(--body); background: var(--surface); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: var(--text-3xl); font-weight: 800; }
h2 { font-size: var(--text-2xl); font-weight: 700; }
h3 { font-size: var(--text-lg); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }
.icon { flex: none; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 48px); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; color: #fff; }
.env-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; padding: 6px 16px; text-align: center; font-size: var(--text-sm); font-weight: 600; letter-spacing: .02em; color: #3d2a00; background: #ffd666; }
.scheme-picker { display: inline-flex; align-items: center; gap: 6px; }
.scheme-picker button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid rgba(61, 42, 0, .25); border-radius: 999px; background: rgba(255, 255, 255, .55); color: #3d2a00; font-size: var(--text-label); font-weight: 600; cursor: pointer; }
.scheme-picker button[aria-pressed="true"] { background: #3d2a00; color: #ffd666; border-color: #3d2a00; }
.scheme-picker i { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--sw-a) 50%, var(--sw-b) 50%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.muted { color: var(--muted); }

.eyebrow {
    font-family: var(--font-display); font-size: var(--text-label); font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px;
}
.lead { font-size: var(--text-md); line-height: 1.6; color: var(--body); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue-600); }
.text-link .icon { transition: transform .25s var(--ease); }
a:hover .text-link .icon, .text-link:hover .icon { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); line-height: 1.2;
    cursor: pointer; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { color: #fff; background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(var(--accent-rgb), .6); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { color: var(--blue-600); transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .5); }
.btn-outline-light { border-color: rgba(255, 255, 255, .28); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-outline-light:hover { color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .1); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue-300); color: var(--blue-600); }
.btn-lg { padding: 14px 26px; font-size: var(--text-base); }
.btn-sm { padding: 8px 14px; font-size: var(--text-sm); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(10, 39, 72, .5); background: rgba(255, 255, 255, .94); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: static; }
.nav-link {
    display: inline-flex; align-items: center; gap: 4px; padding: 9px 13px; border: 0; background: none; border-radius: 999px;
    font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s;
}
.nav-link:hover, .nav-link.is-active, .nav-item.is-open > .nav-link { color: var(--blue-600); background: var(--blue-50); }
.nav-link .icon { transition: transform .25s var(--ease); }
.nav-item.is-open .nav-link .icon { transform: rotate(180deg); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; border: 0; background: none; color: var(--ink); padding: 8px; cursor: pointer; }

.mega {
    position: absolute; left: 0; right: 0; top: calc(var(--header-h) - 6px); padding: 0 24px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: none; }
/* On short laptop screens the menu scrolls inside itself instead of running off the bottom. */
@media (min-width: 961px) { .mega-inner { max-height: calc(100vh - var(--header-h) - 16px); overflow-y: auto; } }
.nav-divider { width: 1px; height: 26px; margin: 0 6px 0 12px; background: var(--line); flex: none; }

/* Products menu: three sector columns on one white panel, split by hairlines. Every product shows its logo
   at one height with a one-line summary, so the columns read as a tidy catalogue. */
.mega-inner {
    width: min(1280px, 100%); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.25fr) minmax(0, 2fr); gap: 0;
    padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
/* Subgrid: the three columns share rows, so headings, lists and "View all" links line up. */
.mega-col { min-width: 0; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding: 22px 18px 18px; }
.mega-col + .mega-col { border-left: 1px solid var(--line); }
.mega-sector { display: flex; align-items: flex-start; gap: 12px; padding: 0 8px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega-sector > span:nth-child(2) { flex: 1; min-width: 0; }
.mega-sector strong { display: block; font-family: var(--font-display); font-size: var(--card-title); line-height: 1.35; color: var(--ink); }
.mega-sector small { display: block; margin-top: 2px; font-size: var(--card-text); color: var(--muted); line-height: 1.45; }
.mega-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(var(--accent-rgb), .08); color: var(--blue-600); }
.mega-count { flex: none; margin-top: 2px; padding: 2px 9px; border-radius: 999px; background: var(--canvas); border: 1px solid var(--line); font: 600 var(--text-xs)/1.5 var(--font-display); font-style: normal; color: var(--muted); }
.mega-list { align-self: start; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.mega-pharma .mega-list, .mega-analytics .mega-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; }
.mega-item { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 12px 12px 12px; border-radius: 12px; transition: background-color .2s; }
.mega-item:hover, .mega-item.is-current { background: var(--canvas); }
.mega-item.is-current { box-shadow: inset 2px 0 0 var(--blue-600); }
/* Logos scale with the menu cell (6.8 = the widest logo's width-to-height ratio), so every logo in the menu
   is the same size and the longest never overflows on smaller laptops. */
.mega-logo { display: block; container-type: inline-size; margin: -4px 0 -2px; }
/* Public Healthcare has one wide column; size its logos as if they sat in the narrower two-column cells. */
.mega-publichealthcare .mega-logo { width: 82%; }
.mega-logo img { height: 32px; height: min(32px, 100cqw / 6.8); width: auto; max-width: none; object-fit: contain; object-position: left center; }
.mega-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--card-text); line-height: 1.45; color: var(--muted); }
.mega-item:hover .mega-sum { color: var(--body); }
.mega-all { align-self: end; justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin: 0 12px; padding-top: 16px; font-family: var(--font-display); font-size: var(--card-text); font-weight: 600; color: var(--blue-600); }
.mega-col .mega-all { grid-row: 4; }
.mega-foot { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; padding: 14px 26px; border-top: 1px solid var(--line); background: var(--canvas); font-size: var(--card-text); color: var(--muted); }
.mega-foot span { margin-right: auto; }
.mega-foot a, .mega-demo { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; color: var(--blue-600); background: none; border: 0; padding: 0; cursor: pointer; }

/* Product logo: every logo PNG is optically sized on one 96px-tall canvas, so at one CSS height they all read the same size. */
.product-mark { --mark-h: 38px; display: inline-flex; align-items: center; }
/* Same idea in cards: the logo height follows the card width, identically for every card in a grid. */
.product-row > div, .solution { container-type: inline-size; }
.product-row > div { flex: 1; }
.product-mark img { height: var(--mark-h); height: min(var(--mark-h), 100cqw / 6.8); width: auto; max-width: none; object-fit: contain; object-position: left center; display: block; }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; overflow: hidden; overflow: clip; color: #fff; background: var(--grid-pattern), var(--navy-900); }
.hero::after, .page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: rgba(255, 255, 255, .08); }
.hero { padding: 92px 0 64px; text-align: center; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; }
/* One soft, still light source — no drifting colour blobs. */
.hero-glow { position: absolute; inset: -40% 0 auto; height: 700px; pointer-events: none; background: radial-gradient(45% 50% at 50% 30%, rgba(var(--accent-rgb), .24), transparent 70%); }
.page-hero .hero-glow { background: radial-gradient(40% 55% at 15% 30%, rgba(var(--accent-rgb), .2), transparent 70%); }
.hero-inner { position: relative; }
.hero h1, .page-hero h1 { color: #fff; }
.hero h1 { font-size: var(--text-display); max-width: 15ch; margin-inline: auto; }
.hero h1.hero-title { max-width: none; font-size: var(--text-display); line-height: 1.1; }
.hero h1.hero-title > span { display: block; }
.hero .lead { max-width: 680px; }
.grad { color: var(--sky); }
.hero .eyebrow, .page-hero .eyebrow { color: var(--blue-300); }
.hero .lead, .page-hero .lead { color: rgba(226, 238, 255, .82); }
.hero .lead { max-width: 620px; margin: 22px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .hero-actions { justify-content: center; }
.hero-clients { margin-top: 64px; }
.hero-clients > span { display: block; font-size: var(--text-label); letter-spacing: .14em; text-transform: uppercase; color: rgba(196, 219, 255, .6); margin-bottom: 18px; }
.client-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.client { display: grid; place-items: center; height: 68px; padding: 10px 22px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); transition: transform .3s var(--ease); }
.client:hover { transform: translateY(-3px); }
.client img { max-height: 44px; width: auto; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-badges li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: var(--text-sm); font-weight: 500; color: rgba(226, 238, 255, .9); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.hero-badges .icon { color: var(--sky); }

.page-hero { padding: 76px 0 68px; }
.page-hero h1 { max-width: 20ch; font-size: var(--text-3xl); }
.page-hero .lead { max-width: 660px; margin-top: 20px; }
.page-hero .eyebrow a { color: inherit; }
.page-hero .eyebrow a:hover { color: #fff; }
.page-hero .eyebrow span { opacity: .5; margin: 0 6px; }
.product-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.product-hero h1 { max-width: 22ch; font-size: var(--text-3xl); }
.hero-logo { height: 64px; width: auto; margin: -6px 0 14px; }
/* The screenshot sits against the right edge of the content column rather than floating in the middle. */
.product-visual { justify-self: end; width: 100%; display: flex; justify-content: flex-end; }
/* Screenshots are cropped on their right side, so let them run to the edge of the window. */
.product-visual img { width: 100%; max-width: 680px; margin-right: calc((100vw - min(1180px, 100vw - 48px)) / -2); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); animation: float 7s ease-in-out infinite; }
.product-visual.is-panel { display: block; }
.updated { margin-top: 18px; font-size: var(--text-sm); color: rgba(196, 219, 255, .7); }
@keyframes float { 50% { transform: translateY(-10px); } }

.glass-panel { padding: 18px; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .16); box-shadow: var(--shadow-lg); backdrop-filter: blur(8px); animation: float 7s ease-in-out infinite; }
.glass-title { display: flex; align-items: center; gap: 6px; padding: 2px 4px 14px; color: rgba(255, 255, 255, .75); font-size: var(--text-sm); }
.glass-title i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.glass-title span { margin-left: 10px; font-family: var(--font-display); font-weight: 600; }
.glass-row { display: grid; grid-template-columns: auto 1fr 64px; align-items: center; gap: 12px; padding: 14px; margin-top: 8px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; font-weight: 500; font-size: var(--text-base); }
.glass-row .icon { color: var(--sky); }
.glass-row b { height: 6px; border-radius: 6px; background: var(--blue-400); transform-origin: left; animation: grow 2.4s var(--ease) both; }
.glass-row:nth-child(3) b { width: 70%; animation-delay: .15s; }
.glass-row:nth-child(4) b { width: 85%; animation-delay: .3s; }
.glass-row:nth-child(5) b { width: 55%; animation-delay: .45s; }
@keyframes grow { from { transform: scaleX(0); } }
/* Aquaduct hero: legacy system -> ETL -> warehouse -> dashboards, then a small live-looking dashboard. */
.pipe-panel { width: 100%; max-width: 560px; margin-left: auto; }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; }
.pipe::before { content: ""; position: absolute; left: 12%; right: 12%; top: 31px; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.12), var(--blue-400), rgba(255,255,255,.12)); background-size: 200% 100%; animation: pipe-flow 3s linear infinite; }
.pipe li { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 6px; text-align: center; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.pipe li span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; color: #fff; background: var(--blue-600); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .25); }
.pipe li:first-child span { background: #475569; box-shadow: 0 0 0 4px rgba(148, 163, 184, .2); }
.pipe b { color: #fff; font-family: var(--font-display); font-size: var(--text-sm); line-height: 1.3; }
.pipe small { color: rgba(226, 238, 255, .65); font-size: var(--text-xs); }
.pipe-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.pipe-kpis div { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.pipe-kpis small { display: block; color: rgba(226, 238, 255, .65); font-size: var(--text-xs); }
.pipe-kpis strong { display: block; margin-top: 2px; color: #fff; font-family: var(--font-display); font-size: var(--text-md); }
.pipe-chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin-top: 12px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.pipe-chart i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(var(--sky), var(--blue-600)); transform-origin: bottom; animation: rise-bar 1.2s var(--ease) both; }
.pipe-chart i:nth-child(even) { animation-delay: .1s; }
@keyframes pipe-flow { to { background-position: -200% 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 6vw, 84px) 0; }
/* Two plain white sections in a row would stack their padding into one big blank band; let them share it. */
.section:not(.section-tint):not(.section-gallery) + .section:not(.section-tint):not(.section-gallery) { padding-top: clamp(12px, 2vw, 24px); }
.section-tint { background: var(--canvas); border-block: 1px solid var(--line); }
.section-flush { padding-bottom: 0; }
.section-flush-top, .section-related { padding-top: 0; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head .lead { margin-top: 14px; }
.center-link { display: flex; justify-content: center; margin-top: 28px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-top { align-items: start; }
.split h2 + .lead { margin-top: 16px; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-card { padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }

/* Sector panels (home) */
/* Subgrid keeps the intro, product list and footer of every card on shared rows, so the lists line up. */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.sector-grid .sector { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.sector-body, .sector-end { align-self: start; }
.sector-more .product-list { margin-top: 8px; }
.sector-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-top: 20px; }
.sector .sector-foot .text-link { margin-top: 0; padding-top: 0; font-size: var(--text-base); }
.more-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 var(--text-sm) var(--font-display); color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; }
.more-toggle:hover { border-color: var(--blue-300); color: var(--blue-600); }
.more-toggle .icon { transition: transform .25s var(--ease); }
.more-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.solution-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* "What to expect" list beside the home demo form */
.expect { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.expect h3 { font-size: var(--text-base); margin-bottom: 14px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); }
.check-list .icon { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: rgba(var(--accent-rgb), .1); color: var(--blue-600); }
.expect-note { margin-top: 22px; font-size: var(--text-base); color: var(--muted); }
.expect-note a { color: var(--blue-600); font-weight: 600; }

/* Laptop frame for plain app screenshots (product hero) */
.product-visual.is-device { justify-content: flex-end; }
.laptop { width: 112%; flex: none; max-width: 760px; margin-right: calc((100vw - min(1180px, 100vw - 48px)) / -2); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); animation: float 7s ease-in-out infinite; }
.laptop-screen { padding: 2.2% 2.2% 3%; background: #0b0d10; border: 2px solid #3a3f46; border-bottom: 0; border-radius: 18px 18px 0 0; }
.laptop-screen img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; border-radius: 3px; animation: none; filter: none; margin: 0; max-width: none; }
.laptop-base { position: relative; height: 18px; margin: 0 -6%; border-radius: 0 0 14px 14px; background: linear-gradient(#d5d9df, #9aa1aa 60%, #6b717a); }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 7px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #7d838c; }
.sector { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); }
.sector header p { margin-top: 10px; }
.sector header h3 { font-size: var(--text-lg); margin-top: 18px; }
.sector .text-link { margin-top: auto; padding-top: 22px; }
.product-list { display: grid; gap: 8px; margin-top: 24px; }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 112px; padding: 18px 18px 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.product-row:hover { transform: translateY(-2px); border-color: var(--blue-300); box-shadow: var(--shadow); }
.product-row > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.product-row h3 { font-size: var(--text-base); line-height: 1; }
/* Two lines at most, so every row in the three columns is the same height. */
.product-row p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); }
.row-arrow { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); transition: background-color .25s, color .25s; }
.product-row:hover .row-arrow { background: var(--blue-600); color: #fff; }

/* Feature cards */
.feature-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(4, 1fr); }
.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.split .feature-grid { grid-template-columns: 1fr; }
.feature { padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.feature h3 { margin: 18px 0 8px; }
.feature p { font-size: var(--text-base); line-height: 1.6; }
.feature-grid.is-compact .feature { background: #fff; }
.feature-grid.cols-5 .feature { padding: 22px 18px; }
.feature-grid.cols-5 .feature p { font-size: var(--text-sm); }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--blue-600); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* Problem / solution */
.panel { padding: clamp(24px, 3vw, 38px); border-radius: var(--radius-lg); font-size: var(--text-base); line-height: 1.7; }
.panel-problem { background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.panel-problem .eyebrow { color: #b4233c; }
.panel-solution { background: var(--grid-pattern), var(--navy-900); color: rgba(226, 232, 240, .92); box-shadow: var(--shadow-lg); }
.panel-solution .eyebrow { color: var(--sky); }
.problem-solution { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: var(--gap); }
.ps-arrow { display: grid; place-items: center; }
.ps-arrow span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; background: var(--blue-600); box-shadow: 0 10px 24px -8px rgba(var(--accent-rgb), .6), 0 0 0 8px var(--canvas); }
.js .ps-arrow.is-visible span { animation: nudge 2.4s var(--ease) 1s infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(5px); } }

/* Stats */
.stats-band { background: var(--grid-pattern), var(--navy-900); color: #fff; padding: 52px 0; }
.stat { padding-left: 18px; border-left: 2px solid var(--blue-500); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px var(--gap); }
.stats-kicker { margin-bottom: 26px; font-family: var(--font-display); font-size: var(--text-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-300); }
.stats-kicker a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.stat strong { display: block; font-family: var(--font-display); font-size: var(--text-stat); font-weight: 800; line-height: 1; color: #fff; }
.stat span { display: block; margin-top: 10px; color: rgba(226, 238, 255, .78); font-size: var(--text-base); line-height: 1.5; max-width: 26ch; }

/* Mission */
.mission { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 72px); border-radius: var(--radius-lg); color: #fff; background: var(--grid-pattern), var(--navy-900); box-shadow: var(--shadow-lg); }
.mission .eyebrow { color: var(--sky); }
.mission h2 { color: #fff; max-width: 22ch; }
/* "Our Mission": heading on the left, statement on the right, inside one soft panel. */
.mission-points { position: relative; display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 16px 40px; align-items: start; margin-top: var(--gap); padding: 28px 32px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-left: 3px solid var(--sky); }
.mission-points h3 { display: flex; align-items: center; gap: 12px; color: #fff; font-size: var(--text-lg); }
.mission-points .impact-icon { width: 40px; height: 40px; }
.mission-points p { margin: 0; color: rgba(226, 238, 255, .88); font-size: var(--text-md); line-height: 1.7; }
.impact-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 36px; }
.impact { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: background-color .3s, transform .3s var(--ease); }
.impact:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.impact h3 { color: #fff; margin: 14px 0 6px; }
.impact p { color: rgba(226, 238, 255, .8); font-size: var(--text-base); }
.impact-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--sky); background: rgba(var(--sky-rgb), .12); }

/* How we work */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 49px; right: calc(var(--gap) * -1); width: var(--gap); height: 2px; background: linear-gradient(90deg, var(--blue-200), var(--blue-400)); }
.step-num { position: absolute; top: 22px; right: 22px; font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); color: var(--blue-100); }
.step h3 { margin: 18px 0 8px; }
.step p { font-size: var(--text-base); }

/* Standards */
.standards { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.standard { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.standard strong { margin-top: 8px; font-family: var(--font-display); color: var(--ink); font-size: var(--text-base); }
.standard span:last-child { font-size: var(--text-sm); color: var(--muted); line-height: 1.4; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.video-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .3s var(--ease), border-color .3s; }
.video-card:hover { box-shadow: var(--shadow); border-color: var(--blue-300); }
.video-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--navy-900); cursor: pointer; overflow: hidden; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.video-frame:hover img { transform: scale(1.04); opacity: .85; }
iframe.video-frame { cursor: auto; }
.video-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; padding-left: 4px; border-radius: 50%; color: #fff; background: var(--blue-600); box-shadow: 0 0 0 8px rgba(255, 255, 255, .25), 0 10px 30px -8px rgba(0, 0, 0, .6); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.video-frame:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-meta { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.video-meta p { flex: 1; font-size: var(--text-base); }
.video-meta .resource-kind .icon { color: #e62117; }
.video-solo .video-card { box-shadow: var(--shadow); }
.video-grid.video-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-inline: auto; }

/* Resources */
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.resource { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--body); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.resource:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-300); color: var(--body); }
.resource p { flex: 1; font-size: var(--text-base); }
.resource-kind { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.resource-video .resource-kind .icon { color: #e62117; }
.resource-linkedin .resource-kind .icon { color: #0a66c2; }
.resource-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 8; margin: -10px -10px 8px; border-radius: var(--radius); overflow: hidden; background: var(--grid-pattern), var(--navy-900); }
.resource-thumb small { position: absolute; left: 16px; bottom: 12px; font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); color: rgba(255, 255, 255, .85); letter-spacing: .02em; }
.resource-thumb .play { display: grid; place-items: center; width: 64px; height: 64px; padding-left: 4px; border-radius: 50%; color: var(--navy-900); background: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, .15); transition: transform .3s var(--ease); }
.resource:hover .play { transform: scale(1.08); }

/* Marquee */
.marquee { overflow: hidden; padding: 6px 0 clamp(52px, 6vw, 84px); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
.logo-tile { display: grid; place-items: center; width: 150px; height: 92px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.logo-tile img { max-height: 56px; width: auto; }

/* Testimonial */
.testimonial { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; margin: 0; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.testimonial img { width: 100%; border-radius: var(--radius); }
.testimonial blockquote { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.6; color: var(--ink); font-weight: 500; }
.testimonial blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--blue-400); margin-bottom: 10px; }
.testimonial figcaption { margin-top: 22px; }
.testimonial figcaption strong { display: block; color: var(--ink); font-family: var(--font-display); }
.testimonial figcaption span { color: var(--muted); font-size: var(--text-base); }

/* Client story (home): navy person panel + quote, no decorative quote marks. */
.client-story { display: grid; grid-template-columns: 300px 1fr; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.story-person { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 28px; text-align: center; color: #fff; background: radial-gradient(120% 80% at 50% 0%, rgba(var(--accent-rgb), .35), transparent 60%), var(--navy-900); }
.story-photo { width: 150px; height: 150px; object-fit: cover; object-position: top; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .14); background: #eef1f5; }
.story-person figcaption strong { display: block; font-family: var(--font-display); font-size: var(--text-md); color: #fff; }
.story-person figcaption span { display: block; margin-top: 2px; font-size: var(--text-sm); color: rgba(226, 238, 255, .7); }
.story-logo { display: grid; place-items: center; height: 44px; padding: 6px 16px; margin-top: 4px; border-radius: 10px; background: #fff; }
.story-logo img { max-height: 30px; width: auto; }
.story-body { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(28px, 4vw, 52px); }
.story-body .eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; }
.story-product { padding: 3px 10px; border-radius: 999px; background: rgba(var(--accent-rgb), .08); color: var(--blue-600); letter-spacing: .04em; text-transform: none; font-size: var(--text-sm); }
.story-body blockquote { margin: 0; padding-left: 20px; border-left: 3px solid var(--blue-600); font-family: var(--font-display); font-size: var(--text-md); line-height: 1.65; color: var(--ink); font-weight: 500; }
.story-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.story-tags li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); font-size: var(--text-sm); font-weight: 500; color: var(--ink); }
.story-tags .icon { color: var(--blue-600); }

/* CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); color: #fff; background: var(--grid-pattern), var(--navy-900); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue-500); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: var(--text-xl); }
.cta-band p { margin-top: 10px; color: rgba(226, 238, 255, .86); max-width: 56ch; }

/* Solution cards (sector pages, related) */
.solution-grid, .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.solution { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; color: var(--body); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.solution:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-300); color: var(--body); }
.solution h2.solution-title { font-size: var(--text-md); line-height: 1.35; }
.solution p { font-size: var(--text-base); flex: 1; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.data-table th { text-align: left; padding: 14px 18px; font-family: var(--font-display); font-size: var(--text-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--blue-50); border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { color: var(--ink); font-weight: 600; }
.data-table tbody tr { transition: background-color .2s; }
.data-table tbody tr:hover { background: var(--blue-50); }

/* Prose */
.prose h2 { margin-bottom: 18px; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 16px 0 0; padding-left: 20px; }
.legal h2 { font-size: var(--text-lg); margin: 36px 0 10px; }
/* About: platform illustration beside the intro text. */
.about-intro { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.about-art { position: relative; width: 100%; aspect-ratio: 1.15; }
.art-orbit { position: absolute; left: 50%; top: 50%; width: 88%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--blue-200); }
.art-orbit-inner { width: 66%; border-style: dashed; border-color: var(--blue-100); }
.art-bubble { position: absolute; left: var(--x); top: var(--y); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; transform: translateX(-50%); border-radius: 50%; color: var(--blue-600); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.art-laptop { position: absolute; left: 50%; top: 50%; z-index: 1; width: 58%; transform: translate(-50%, -46%); }
.art-screen { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 10%; border: 8px solid var(--navy-900); border-bottom-width: 12px; border-radius: 14px 14px 0 0; background: linear-gradient(160deg, #fff, var(--blue-100)); }
.art-screen img { width: 82%; height: auto; }
.art-base { height: 10px; margin: 0 -8%; border-radius: 0 0 10px 10px; background: linear-gradient(#cfd6df, #8c96a3); }
.art-card { position: absolute; z-index: 3; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.art-checks { left: 0; top: 30%; display: flex; align-items: center; gap: 12px; width: 34%; }
.art-checks ul { flex: 1; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.art-checks li { display: flex; align-items: center; gap: 6px; }
.art-checks i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; color: #fff; background: var(--blue-600); flex: none; }
.art-checks li b { flex: 1; height: 6px; border-radius: 6px; background: var(--blue-200); }
.art-donut { width: 38%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, #fff 58%, transparent 60%), conic-gradient(var(--blue-600) 0 62%, var(--blue-400) 0 82%, var(--blue-200) 0); flex: none; }
.art-bars { right: 0; bottom: 6%; width: 38%; }
.art-bars > b { display: block; height: 6px; width: 70%; border-radius: 6px; background: var(--blue-200); margin-bottom: 6px; }
.art-bars > b + b { width: 45%; margin-bottom: 12px; }
.art-bars div { display: flex; align-items: flex-end; gap: 5px; height: 64px; }
.art-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(var(--blue-500), var(--blue-400)); }
.js .about-art.is-visible .art-bars i { animation: rise-bar 1s var(--ease) both; transform-origin: bottom; }
@keyframes rise-bar { from { transform: scaleY(0); } }

.story-image img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.story-image.is-device img { border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 24px 30px rgba(10, 39, 72, .22)); }

/* Screenshot gallery (product pages): tabs on the left, the selected screen in a browser frame on the right. */
.section-gallery { background: linear-gradient(var(--surface), var(--canvas)); border-bottom: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.gallery-tabs { display: grid; gap: 10px; }
.gallery-tabs button { position: relative; display: grid; gap: 4px; padding: 16px 18px 16px 20px; text-align: left; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.gallery-tabs button::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue-600); opacity: 0; transition: opacity .2s; }
.gallery-tabs button:hover { border-color: var(--blue-300); }
.gallery-tabs button[aria-selected="true"] { border-color: var(--blue-300); box-shadow: var(--shadow); }
.gallery-tabs button[aria-selected="true"]::before { opacity: 1; }
.gallery-tabs strong { font-family: var(--font-display); font-size: var(--card-title); line-height: 1.35; color: var(--ink); }
.gallery-tabs button[aria-selected="true"] strong { color: var(--blue-600); }
.gallery-tabs span { font-size: var(--card-text); line-height: 1.5; color: var(--muted); }
.gallery-shot { margin: 0; animation: fade-up .35s var(--ease); }
.browser { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--canvas); border-bottom: 1px solid var(--line); font-size: var(--text-xs); font-weight: 600; color: var(--muted); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #f87171; }
.browser-bar i:nth-child(2) { background: #fbbf24; }
.browser-bar i:nth-child(3) { background: #34d399; }
.browser-bar span { margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; height: auto; }

/* Text-only stories on product pages: one section of cards instead of a tall column per story. */
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.story-card { padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.story-card h3 { margin-bottom: 8px; }
.story-card ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.story-card p + p { margin-top: 10px; }
.section-flow { padding-top: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--blue-300); box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--blue-600); transition: transform .3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details > div { padding: 0 22px 20px; animation: fade-down .3s var(--ease); }
.faq details p + p { margin-top: 10px; }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }

/* FAQ page: answers are always visible (better for search engines and AI answers than closed accordions). */
.faq-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq-toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.faq-toc > a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: var(--ink); transition: background-color .2s, color .2s; }
.faq-toc > a:hover, .faq-toc > a.is-current { background: var(--blue-50); color: var(--blue-600); }
.faq-toc > a span { min-width: 26px; padding: 2px 8px; border-radius: 999px; text-align: center; font-size: var(--text-label); background: var(--blue-100); color: var(--blue-600); }
.faq-toc-cta { margin-top: 18px; padding: 20px; border-radius: var(--radius); background: var(--navy-900); color: rgba(226, 238, 255, .85); font-size: var(--text-sm); }
.faq-toc-cta strong { display: block; color: #fff; font-family: var(--font-display); margin-bottom: 4px; }
.faq-toc-cta .btn { margin-top: 14px; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group > h2 { padding-bottom: 14px; margin-bottom: 8px; border-bottom: 2px solid var(--blue-100); font-size: var(--text-xl); }
.faq-entry { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-entry h3 { font-size: var(--text-md); margin-bottom: 8px; }
.faq-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; font-size: var(--text-sm); }
.faq-links > span:first-child { font-weight: 600; color: var(--muted); }
.faq-links .sep { color: var(--blue-200); }
.faq-links a { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.faq-links a .icon { transform: rotate(-45deg); }

/* Demo page */
.demo-aside h2 { font-size: var(--text-lg); }
.steps-list { display: grid; gap: 18px; margin: 22px 0 32px; padding: 0; list-style: none; counter-reset: s; }
.steps-list li { position: relative; padding-left: 52px; counter-increment: s; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-family: var(--font-display); font-weight: 700; color: var(--blue-600); background: var(--blue-50); border: 1px solid var(--blue-200); }
.steps-list strong { display: block; font-family: var(--font-display); color: var(--ink); }
.steps-list span { font-size: var(--text-base); }
.quote-card { margin: 0; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.quote-card blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; color: var(--ink); line-height: 1.55; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: var(--text-sm); color: var(--muted); }
.quote-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote-card strong { display: block; color: var(--ink); }

/* Team */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.member { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.member:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.member-photo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.member img { width: 150px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.member-linkedin { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 150px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: #0a66c2; transition: border-color .2s, background-color .2s; }
.member-linkedin:hover { color: #0a66c2; border-color: #0a66c2; background: rgba(10, 102, 194, .06); }
.member-linkedin svg { width: 18px; height: 18px; }
.member-role { color: var(--blue-600); font-weight: 600; font-size: var(--text-base); margin-top: 2px; }
.member-motto { font-style: italic; color: var(--muted); font-size: var(--text-base); margin: 6px 0 10px; }
.member p:last-child { font-size: var(--text-base); }

/* Careers */
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.mini-stats div { padding: 18px; border-radius: var(--radius); background: var(--blue-50); }
.mini-stats strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); color: var(--blue-600); line-height: 1.2; }
.mini-stats span { font-size: var(--text-sm); color: var(--muted); }
.openings { display: grid; gap: 10px; }
.opening { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--body); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.opening:hover { transform: translateX(4px); border-color: var(--blue-300); box-shadow: var(--shadow); color: var(--body); }
.opening span { font-size: var(--text-sm); color: var(--muted); }
.opening .btn { color: var(--blue-600); }

/* Contact */
.contact-hero { padding-bottom: 120px; }
.contact-routes-wrap { position: relative; margin-top: -72px; z-index: 2; }
.contact-routes { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.route { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; text-align: left; font: inherit; color: var(--body); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.route:hover { transform: translateY(-4px); border-color: var(--blue-300); box-shadow: var(--shadow-lg); color: var(--body); }
.route strong { margin-top: 10px; font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink); }
.route > span:not(.feature-icon) { font-size: var(--text-base); line-height: 1.5; flex: 1; }
.route em { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-style: normal; font-weight: 600; font-size: var(--text-sm); color: var(--blue-600); }
.route:hover em .icon { transform: translateX(3px); }
.route em .icon { transition: transform .25s var(--ease); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.form-title { font-size: var(--text-lg); }
.form-sub { margin: 6px 0 22px; color: var(--muted); font-size: var(--text-base); }
.contact-side { display: grid; gap: var(--gap); }
.next-card, .trust-card, .follow-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); }
.next-card h2 { font-size: var(--text-lg); }
.next-card .steps-list { margin-bottom: 0; }
.trust-label, .follow-card > span { display: block; font-size: var(--text-label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trust-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.trust-logos img { width: 100%; height: 56px; object-fit: contain; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.follow-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.follow-card .social { margin: 0; }
.social-light a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); transition: color .2s, border-color .2s, transform .2s; }
.social-light a:hover { color: var(--blue-600); border-color: var(--blue-300); transform: translateY(-2px); }
.office-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: var(--gap); align-items: stretch; }
.office-card { display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.office-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.office-time { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--ink); padding: 4px 10px; border-radius: 999px; background: var(--canvas); border: 1px solid var(--line); }
.office-time:empty { display: none; }
.office-card .eyebrow { margin-bottom: 4px; }
.office-card h3 { font-size: var(--text-lg); }
.office-card > p:not(.eyebrow) { margin: 8px 0 18px; flex: 1; }
.office-links { display: grid; gap: 8px; }
.office-map { display: block; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.office-map img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.office-map:hover img { transform: scale(1.04); }
.offices h2 { margin-bottom: 24px; font-size: var(--text-lg); }
.office { display: flex; gap: 16px; margin-bottom: 26px; }
.office .eyebrow { margin-bottom: 4px; }
.office p { margin: 4px 0 6px; }
.map { display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.map img { width: 100%; transition: transform .6s var(--ease); }
.map:hover img { transform: scale(1.04); }
.error-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Forms ---------- */
.lead-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }
.field .is-invalid { border-color: #d9435b; box-shadow: 0 0 0 4px rgba(217, 67, 91, .12); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); color: var(--muted); line-height: 1.5; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--blue-600); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* "I'm not a robot" check */
.human { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--blue-50); transition: border-color .2s, box-shadow .2s; }
.human.is-error { border-color: #d9435b; box-shadow: 0 0 0 4px rgba(217, 67, 91, .12); }
.human-box { display: inline-flex; align-items: center; gap: 12px; padding: 4px 0; border: 0; background: none; cursor: pointer; font-weight: 500; color: var(--ink); text-align: left; }
.human-tick { position: relative; display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 2px solid #9fb3cc; border-radius: 6px; background: #fff; color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.human-tick .icon rect { display: none; }
.human-box:hover .human-tick { border-color: var(--blue-400); }
.human.is-busy .human-tick { border-color: var(--blue-200); border-top-color: var(--blue-600); border-radius: 50%; animation: spin .8s linear infinite; }
.human.is-done .human-tick { background: #16a36b; border-color: #16a36b; color: #fff; animation: pop .35s var(--ease); }
.human.is-done .human-box { cursor: default; }
.human-badge { display: grid; justify-items: center; gap: 0; color: var(--muted); }
.human-badge .icon { color: var(--blue-600); }
.human-badge small { font-size: var(--text-xs); letter-spacing: .04em; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { color: #c2314a; font-size: var(--text-sm); }
.form-done { text-align: center; padding: 28px 8px; animation: fade-up .5s var(--ease); }
.form-done h3 { font-size: var(--text-lg); margin: 14px 0 6px; }
.done-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; background: #16a36b; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Demo dialog ---------- */
.demo-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: clamp(22px, 4vw, 36px); border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--body); overflow-y: auto; }
.demo-dialog::backdrop { background: rgba(4, 18, 37, .62); backdrop-filter: blur(4px); }
.demo-dialog[open] { animation: dialog-in .32s var(--ease); }
.demo-dialog[open]::backdrop { animation: fade .32s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.demo-dialog h2 { font-size: var(--text-xl); }
.dialog-lead { margin: 6px 0 22px; }
.dialog-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--blue-50); color: var(--ink); cursor: pointer; transition: background-color .2s, transform .2s; }
.dialog-close:hover { background: var(--blue-100); transform: rotate(90deg); }

/* ---------- Chat ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 90; }
.chat-fab { display: grid; place-items: center; width: 58px; height: 58px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: var(--blue-600); box-shadow: 0 14px 30px -10px rgba(var(--accent-rgb), .8); transition: transform .25s var(--ease); }
.chat-fab:hover { transform: translateY(-2px) scale(1.04); }
.chat-fab span { grid-area: 1 / 1; display: grid; transition: opacity .2s, transform .3s var(--ease); }
.chat-fab-close { opacity: 0; transform: rotate(-90deg); }
.chat.is-open .chat-fab-open { opacity: 0; transform: rotate(90deg); }
.chat.is-open .chat-fab-close { opacity: 1; transform: none; }
.chat-panel { position: absolute; right: 0; bottom: 72px; display: flex; flex-direction: column; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100dvh - 120px)); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; transform-origin: bottom right; animation: chat-in .28s var(--ease); }
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: #fff; background: var(--navy-900); }
.chat-head strong { display: block; font-family: var(--font-display); font-size: var(--text-base); }
.chat-head small { color: rgba(226, 238, 255, .78); }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: #5ee0a0; box-shadow: 0 0 0 4px rgba(94, 224, 160, .25); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--blue-50); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: var(--text-base); line-height: 1.5; animation: fade-up .25s var(--ease); overflow-wrap: anywhere; white-space: pre-wrap; }
.msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.msg-user { align-self: flex-end; background: var(--blue-600); color: #fff; border-bottom-right-radius: 6px; }
.msg a { font-weight: 600; text-decoration: underline; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-400); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: var(--blue-50); }
.chat-suggest button { padding: 6px 12px; border: 1px solid var(--blue-200); border-radius: 999px; background: #fff; color: var(--blue-600); font-size: var(--text-sm); cursor: pointer; transition: background-color .2s; }
.chat-suggest button:hover { background: var(--blue-100); }
.chat-form { display: flex; gap: 8px; padding: 12px; background: var(--blue-50); }
.chat-form input { flex: 1; min-width: 0; padding: 11px 14px; font: inherit; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.chat-form input:focus { outline: 0; border-color: var(--blue-400); }
.chat-form button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--blue-600); color: #fff; cursor: pointer; flex: none; }

/* ---------- Consent ---------- */
.consent { position: fixed; left: 20px; bottom: 20px; z-index: 80; display: flex; align-items: center; gap: 16px; max-width: min(520px, calc(100vw - 110px)); padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: var(--text-sm); animation: fade-up .4s var(--ease); }
.consent[hidden] { display: none; }
.consent div { display: flex; gap: 8px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(226, 238, 255, .72); padding-top: 72px; font-size: var(--text-base); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr .9fr 1.3fr; gap: 40px var(--gap); padding-bottom: 56px; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { margin: 18px 0 22px; max-width: 30ch; }
.site-footer h3 { color: #fff; font-size: var(--text-label); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer h3 a.footer-head { display: inline; padding: 0; color: #fff; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.site-footer .social a { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s, transform .2s; }
.site-footer .social a:hover { background: var(--blue-600); transform: translateY(-2px); }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: var(--text-xs); font-weight: 600; vertical-align: 1px; color: #062; background: #7ef0bd; }
.site-footer h3.footer-gap { margin-top: 28px; }
.site-footer a { display: block; padding: 4px 0; color: rgba(226, 238, 255, .72); transition: color .2s, transform .2s; }
.site-footer a:hover { color: #fff; transform: translateX(2px); }
.site-footer address { font-style: normal; margin-bottom: 18px; line-height: 1.55; }
.site-footer address strong { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); flex: none; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--text-sm); }

/* ---------- Insights (internal) ---------- */
.insights { padding-top: 48px; }
.insights-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.insights-head h1 { font-size: var(--text-xl); }
.insights-head nav { display: flex; gap: 8px; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 20px; }
.kpis .card { padding: 20px; border-radius: var(--radius); }
.kpis strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); color: var(--ink); line-height: 1.1; }
.kpis span { font-size: var(--text-sm); color: var(--muted); }
.insight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.insight-card { padding: 22px; margin-bottom: 20px; border-radius: var(--radius); }
.insight-card h3 { margin-bottom: 14px; }
.insight-card .table-wrap { border: 0; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr 44px; gap: 12px; align-items: center; padding: 6px 0; font-size: var(--text-sm); }
.bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.bar-row i { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--blue-500), var(--sky)); width: var(--w); min-width: 4px; }
.bar-row b { text-align: right; color: var(--ink); }

/* ---------- Card type: one title size and one text size for every card on the site ---------- */
.feature h3, .impact h3, .step h3, .resource h3, .video-meta h3, .member h3, .office-card h3, .opening h3,
.route strong, .standard strong, .solution h2.solution-title, .product-row h3, .story-card h3 { font-size: var(--card-title); line-height: 1.35; }
.feature p, .feature-grid.cols-5 .feature p, .impact p, .step p, .resource p, .video-meta p, .member p, .member p:last-child,
.member-role, .member-motto, .route > span:not(.feature-icon), .route em, .standard span:last-child, .solution p,
.product-row p, .office-card > p:not(.eyebrow), .opening span, .story-card p, .story-card li { font-size: var(--card-text); line-height: 1.6; }
.sector header h3, .story-person figcaption strong, .next-card h2, .faq-toc-cta strong, .quote-card strong,
.client-story blockquote, .quote-card blockquote { font-size: var(--card-title); line-height: 1.5; }
.sector header p, .panel, .panel p, .next-card .steps-list span, .solution .text-link, .resource .text-link,
.sector-foot .text-link, .sector .sector-foot .text-link, .video-meta .text-link, .client-story a, .office-card a { font-size: var(--card-text); }
.panel p { line-height: 1.7; }
.feature h3, .step h3 { margin: 16px 0 6px; }
.impact h3 { margin: 14px 0 6px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Above-the-fold content animates in on load, without waiting for script. */
.hero .reveal, .page-hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .8s var(--ease) both; }
.hero .reveal:nth-child(2), .page-hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3), .page-hero .reveal:nth-child(3) { animation-delay: .16s; }
.hero .reveal:nth-child(4), .page-hero .reveal:nth-child(4) { animation-delay: .24s; }
.hero .reveal:nth-child(5), .product-visual.reveal { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid.cols-3, .feature-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
    .solution-grid, .related-grid, .resource-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
    .sector-grid { grid-template-columns: 1fr 1fr; }
    .kpis { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .step:nth-child(2)::after { display: none; }
    .standards { grid-template-columns: repeat(3, 1fr); }
    .contact-routes { grid-template-columns: repeat(2, 1fr); }
    .office-grid { grid-template-columns: 1fr 1fr; }
    .office-map { grid-column: 1 / -1; max-height: 320px; }
}
@media (max-width: 960px) {
    .nav-toggle { display: inline-grid; }
    /* backdrop-filter would make the header the containing block for the fixed menu panel and clip it. */
    .site-header, .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
    .nav {
        position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 16px 20px 32px;
        background: #fff; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav-link { justify-content: space-between; padding: 14px 12px; font-size: var(--text-base); border-radius: 12px; width: 100%; }
    .nav-cta { margin: 14px 0 0; padding: 14px; }
    .mega { position: static; padding: 0; display: none; opacity: 1; visibility: visible; transform: none; }
    .nav-item.is-open .mega { display: block; }
    .mega-inner { grid-template-columns: 1fr; padding: 4px 0 8px; border: 0; box-shadow: none; }
    .mega-inner { gap: 8px; }
    .mega-sum, .mega-sector small { display: none; }
    .nav-divider { display: none; }
    .mega-foot span { display: none; }
    .mission-points { grid-template-columns: 1fr; padding: 22px; }
    .about-intro { grid-template-columns: 1fr; }
    .about-art { max-width: 460px; margin-inline: auto; }
    .split, .two-up, .sector-grid, .team-grid, .product-hero-inner, .insight-grid, .faq-layout, .problem-solution, .impact-grid { grid-template-columns: 1fr; }
    .ps-arrow span { transform: rotate(90deg); }
    .contact-grid { grid-template-columns: 1fr; }
    .js .ps-arrow.is-visible span { animation: none; }
    .faq-toc { position: static; grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: 1fr; gap: 18px; }
    .gallery-tabs { grid-auto-flow: column; grid-auto-columns: minmax(200px, 62%); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
    .gallery-tabs button { scroll-snap-align: start; }
    .mega-col { padding: 14px 6px; }
    .mega-col + .mega-col { border-left: 0; border-top: 1px solid var(--line); }
    .mega-count { display: none; }
    .mega-pharma .mega-list, .mega-analytics .mega-list { grid-template-columns: minmax(0, 1fr); }
    .faq-toc .eyebrow, .faq-toc-cta { grid-column: 1 / -1; }
    .feature-grid.cols-3, .feature-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
    .product-visual { max-width: 560px; justify-self: center; justify-content: center; }
    .product-visual img, .laptop { margin-right: 0; }    .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .container, .container.narrow { width: calc(100% - 36px); }
    :root { --gap: 16px; }
    .feature-grid, .feature-grid.cols-3, .feature-grid.cols-5, .solution-grid, .related-grid, .resource-grid, .video-grid, .steps, .field-row, .footer-grid, .faq-toc { grid-template-columns: 1fr; }
    .standards { grid-template-columns: repeat(2, 1fr); }
    .step::after { display: none; }
    .contact-routes, .office-grid { grid-template-columns: 1fr; }
    .human-badge { display: none; }
    .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pipe::before { display: none; }
    .pipe-kpis strong { font-size: var(--text-base); }
    .product-visual.is-panel, .pipe-panel { min-width: 0; max-width: 100%; }
    .hero { padding-top: 64px; }
    .hero-clients { margin-top: 56px; }
    .client { height: 56px; padding: 8px 14px; }
    .client img { max-height: 34px; }
    .testimonial, .client-story { grid-template-columns: 1fr; }
    .story-person { padding: 28px 20px; }
    .story-photo { width: 110px; height: 110px; }
    .testimonial img { max-width: 160px; }
    .member { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .footer-base { flex-direction: column; }
    .consent { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 88px; max-width: none; }
    .consent div { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .hero-canvas { display: none; }
}
