/* DIGITAL XPERT — site styles */

@font-face { font-family: 'Euclid Circular B'; src: url('/fonts/ec/EuclidCircularB-Regular.woff2') format('woff2'), url('/fonts/ec/EuclidCircularB-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Euclid Circular B'; src: url('/fonts/ec/EuclidCircularB-Medium.woff2') format('woff2'), url('/fonts/ec/EuclidCircularB-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Euclid Circular B'; src: url('/fonts/ec/EuclidCircularB-SemiBold.woff2') format('woff2'), url('/fonts/ec/EuclidCircularB-SemiBold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Euclid Circular B'; src: url('/fonts/ec/EuclidCircularB-Bold.woff2') format('woff2'), url('/fonts/ec/EuclidCircularB-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --bg: #ffffff;
    --bg-soft: #f6f7f6;
    --ink: #111315;
    --ink-2: #3a3f45;
    --muted: #5b6168;
    --line: #e6e8eb;
    --accent: #21af7b;
    --accent-hover: #1a8c62;
    --accent-ink: #15805a;      /* AA text on white/soft */
    --accent-btn: #16865d;      /* AA with white label */
    --accent-btn-hover: #106a4a;
    --accent-soft: #e8f6f0;
    --dark: #231834;
    --dark-2: #2d2142;
    --dark-muted: #a9a2b5;

    --radius: 12px;
    --radius-lg: 20px;
    --container: 1200px;
    --gutter: 24px;
    --header-h: 76px;
    --font: 'Euclid Circular B', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
strong, b { font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 112px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { margin-top: 16px; font-size: 19px; color: var(--muted); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px; }
.lead { font-size: 20px; color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* Buttons */
.form .btn { border-radius: 8px; min-height: 50px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 24px; border-radius: 999px;
    font: 500 15px/1 var(--font); border: 1px solid transparent; cursor: pointer;
    background: var(--accent-btn); color: #fff;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-btn-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-soft); border-color: #cfd3d8; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); }
.link-arrow::after { content: '→'; transition: transform .2s ease; }
.link-arrow:hover { color: var(--accent-ink); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card .link-arrow { margin-top: auto; padding-top: 24px; }
.card-num { font-size: 14px; font-weight: 600; color: var(--accent-ink); margin-bottom: 40px; letter-spacing: .04em; }

.checklist li { position: relative; padding-left: 26px; margin-top: 10px; color: var(--ink-2); }
.checklist li::before { content: ''; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-3px); }
.dotlist li { position: relative; padding: 10px 0 10px 18px; border-top: 1px solid var(--line); font-size: 15px; }
.dotlist li:first-child { border-top: 0; }
.dotlist li::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: center; }
.nav > a, .nav-drop > button { font: 500 13px/1.2 var(--font); letter-spacing: .02em; color: var(--ink-2); padding: 10px 10px; border-radius: 0; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: color .2s ease; white-space: nowrap; position: relative; }
@media (min-width: 1100px) {
    .nav > a, .nav-drop > button { font-size: 14px; padding: 10px 12px; }
}
.nav > a::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(.4);
    transform-origin: center;
    transition: opacity .2s ease, transform .2s ease;
}
@media (min-width: 1100px) {
    .nav > a::after { left: 12px; right: 12px; }
}
.nav > a:hover::after,
.nav > a[aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
}
.nav > a:hover, .nav-drop > button:hover, .nav > a[aria-current="page"], .nav-drop.is-current > button { color: var(--accent-ink); }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 12px; height: 12px; transition: transform .2s ease; }
.nav-drop.open > button svg { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% + 10px); left: -12px; width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 20px 40px -20px rgba(17,19,21,.2); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.nav-drop.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: block; padding: 12px 14px; border-radius: 10px; }
.nav-menu a:hover { background: var(--bg-soft); }
.nav-menu strong { display: block; font-weight: 500; color: var(--ink); font-size: 15px; }
.nav-menu span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; padding: 10px; }

/* Header over hero */
.site-header--overlay { position: fixed; left: 0; right: 0; transition: background .25s ease, border-color .25s ease; }
.site-header--overlay:not(.is-scrolled) { background: transparent; border-bottom-color: rgba(255,255,255,.14); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header--overlay .brand__light, .site-header--overlay:not(.is-scrolled) .brand__dark { display: none; }
.site-header--overlay:not(.is-scrolled) .brand__light { display: block; }
.site-header--overlay:not(.is-scrolled) .nav > a, .site-header--overlay:not(.is-scrolled) .nav-drop > button { color: rgba(255,255,255,.88); }
.site-header--overlay:not(.is-scrolled) .nav > a:hover,
.site-header--overlay:not(.is-scrolled) .nav > a[aria-current="page"],
.site-header--overlay:not(.is-scrolled) .nav-drop > button:hover { color: #fff; }
.site-header--overlay:not(.is-scrolled) .menu-toggle { color: #fff; }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: #fff; padding: 0 var(--gutter) 32px; display: flex; flex-direction: column; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.mobile-menu__top .menu-toggle { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 16px 0; }
.mobile-menu nav a { font-size: 20px; font-weight: 500; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu nav a.sub { font-size: 16px; color: var(--muted); padding-left: 16px; }
.mobile-menu .btn { margin-top: 24px; width: 100%; }
body.menu-open { overflow: hidden; }

/* Hero (home) */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: #fff; background: #1b1d1f url('/img/durban_sm.jpg') center / cover no-repeat; background-image: image-set(url('/img/durban_sm.webp') type('image/webp'), url('/img/durban_sm.jpg') type('image/jpeg')); }
.hero__body, .hero__pillars { position: relative; z-index: 1; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(10,12,14,.66) 0%, rgba(10,12,14,.6) 45%, rgba(10,12,14,.86) 100%); }
.hero__body { flex: 1; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 48px; }
.hero__inner { max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 { color: #fff; font-size: clamp(40px, 7.4vw, 88px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
.hero h1 .accent { color: var(--accent); }
.hero__sub { margin: 28px auto 0; max-width: 620px; font-size: clamp(18px, 2vw, 21px); color: #fff; }
.hero__sub strong { font-weight: 600; }
.hero .btn-row { justify-content: center; margin-top: 40px; }
.typing { display: inline-block; position: relative; }
.typing__ghost { visibility: hidden; }
.typing__live { position: absolute; left: 0; top: 0; white-space: nowrap; }
.typing__cursor { display: inline-block; width: .06em; height: .8em; margin-left: .06em; background: currentColor; vertical-align: -0.05em; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__pillars { border-top: 1px solid rgba(255,255,255,.14); }
.hero__pillars .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero__pillars a { padding: 28px 24px 32px 0; display: block; transition: opacity .2s ease; }
.hero__pillars a + a { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.hero__pillars strong { display: block; font-size: 16px; font-weight: 600; color: #fff; }
.hero__pillars span { display: block; font-size: 14px; color: rgba(255,255,255,.7); margin-top: 4px; }
.hero__pillars a:hover strong { color: var(--accent); }

/* Page hero (inner pages) */
.page-hero { padding: 120px 0 88px; border-bottom: 1px solid var(--line); background: radial-gradient(1000px 400px at 85% -10%, var(--accent-soft), transparent 70%), var(--bg); }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 68px); max-width: 920px; font-weight: 600; letter-spacing: -0.03em; }
.page-hero p { margin-top: 24px; max-width: 680px; font-size: 20px; color: var(--muted); }
.page-hero .btn-row { margin-top: 36px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--accent-ink); }

/* Statement */
.statement { font-size: clamp(24px, 3vw, 34px); line-height: 1.35; color: var(--ink); letter-spacing: -0.015em; font-weight: 400; max-width: 960px; }
.statement em { font-style: normal; color: var(--accent-ink); }

/* Ecosystem */

/* Flow diagram */
.flow { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 24px; }
.flow svg { width: 100%; height: auto; margin: 0 auto; max-width: 820px; }
.flow .n rect { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.flow .n text { font: 500 13px var(--font); fill: var(--ink); letter-spacing: .04em; text-anchor: middle; dominant-baseline: middle; }
.flow .n--core rect { fill: var(--dark); stroke: var(--dark); }
.flow .n--core text { fill: #fff; font-weight: 600; }
.flow .n--soft rect { fill: var(--accent-soft); stroke: var(--accent-soft); }
.flow .e { stroke: #c7ccd1; stroke-width: 1.5; fill: none; }
.flow .pulse { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 6 200; animation: flow 3.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -206; } }
.benefits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 48px; }
.benefits li { padding-top: 16px; border-top: 2px solid var(--ink); font-weight: 500; color: var(--ink); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--line); }
.steps li::before { content: '0' counter(step); display: block; font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-bottom: 20px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--muted); }

/* Feature rows (solution pages) */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; padding: 64px 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature h2 { font-size: clamp(26px, 3vw, 36px); }
.feature > div:first-child p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.feature > div:first-child .link-arrow { margin-top: 24px; }
.feature--product h2 { font-size: clamp(40px, 5.2vw, 64px); letter-spacing: -0.03em; }
.feature--product .feature-full { display: block; margin-top: 10px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.feature > div:first-child .feature-tagline { margin-top: 20px; font-size: 22px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.page-hero p strong { color: var(--ink); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 16px 0; border-top: 1px solid var(--line); vertical-align: top; }
.table tr:first-child th, .table tr:first-child td { border-top: 0; }
.table th { width: 38%; color: var(--ink); font-weight: 600; padding-right: 24px; }
.table td { color: var(--muted); }
.note { margin-top: 24px; font-size: 14px; color: var(--muted); padding: 14px 16px; border-radius: var(--radius); background: var(--bg-soft); }

/* Clients */
.clients { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 72px; }
.clients img { height: 44px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s ease, opacity .2s ease; }
.clients img.tall { height: 64px; }
.clients img:hover { filter: none; opacity: 1; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; background: none; border: 0; font: 500 18px/1.4 var(--font); color: var(--ink); text-align: left; cursor: pointer; }
.faq-q::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 24px; color: var(--muted); max-width: 680px; }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }

/* CTA band */
.cta { background: var(--dark); color: #fff; border-radius: 0; padding: 80px 64px; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 50% 120%, rgba(33,175,123,.35), transparent 70%); }
.cta h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); max-width: 760px; margin: 0 auto; }
.cta p { color: var(--dark-muted); max-width: 620px; margin: 20px auto 0; font-size: 18px; }
.cta .btn-row { justify-content: center; margin-top: 36px; }

/* Footer */
.site-footer {
    position: relative;
    color: var(--dark-muted);
    padding: 88px 0 32px;
    font-size: 15px;
    background: #080a0c;
    isolation: isolate;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('/img/footer-binary-world.jpg') center 42% / 70% auto no-repeat;
    background-image: image-set(url('/img/footer-binary-world.webp') type('image/webp'), url('/img/footer-binary-world.jpg') type('image/jpeg'));
    opacity: .12;
    pointer-events: none;
}
.site-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(8,10,12,.55) 0%, rgba(8,10,12,.65) 100%);
    pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.site-footer .footer-title { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 18px; letter-spacing: .02em; }
.site-footer li + li { margin-top: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 72px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; font-size: 14px; }
.footer-bottom nav { margin-left: auto; }
.footer-logo img { height: 32px; width: auto; }
.footer-bottom nav { display: flex; gap: 24px; }

/* Forms */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid #d5d9de; border-radius: 8px; padding: 12px 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b3b9c1; }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6168' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.alert { padding: 14px 16px; border-radius: 10px; font-size: 15px; margin-bottom: 24px; }
.alert--ok { background: var(--accent-soft); color: #11603f; }
.alert--err { background: #fdeceb; color: #9b2c22; }
.alert a { text-decoration: underline; }
.contact-list li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list small { display: block; font-size: 13px; color: var(--muted); }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--accent-ink); }
.map { margin-top: 24px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Prose (legal) */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-top: 12px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent-ink); text-decoration: underline; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefits, .steps { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .nav, .header-cta .btn { display: none; }
    .menu-toggle { display: block; }
    .section { padding: 80px 0; }
    .grid-2, .grid-3, .split, .feature { grid-template-columns: 1fr; }
    .split, .feature { gap: 32px; }
    .cta { padding: 56px 24px; border-radius: 0; }
    .page-hero { padding: 88px 0 64px; }
}
@media (max-width: 640px) {
    .grid-4, .benefits, .steps, .form-row { grid-template-columns: 1fr; }
    .card { padding: 24px; }
    :root { --gutter: 16px; --header-h: 64px; }
    body { font-size: 16px; }
    .brand img { height: 32px; }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 40px; }

    .hero__pillars .container { grid-template-columns: 1fr; }
    .hero__pillars a { padding: 16px 0; }
    .hero__pillars a + a { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
    .hero__pillars span { display: none; }
    .hero .btn-row .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom nav { margin-left: 0; width: 100%; }
    .clients { gap: 32px 40px; }
    .clients img { height: 34px; }
    .clients img.tall { height: 52px; }
    .table th, .table td { display: block; width: 100%; padding: 4px 0; border: 0; }
    .table th { padding-top: 16px; border-top: 1px solid var(--line); }
    .flow { padding: 24px 8px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Helpers & mobile flow */
.flow-list { display: none; }
@media (max-width: 640px) {
    .flow-svg { display: none; }
    .flow-list { display: flex; flex-direction: column; align-items: stretch; gap: 28px; margin: 0; padding: 8px; list-style: none; }
    .flow-list li { position: relative; display: flex; gap: 8px; justify-content: center; text-align: center; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
    .flow-list li > span, .flow-list li.box { flex: 1; padding: 12px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
    .flow-list li.core { background: var(--dark); color: #fff; border-color: var(--dark); }
    .flow-list li.soft { background: var(--accent-soft); border-color: var(--accent-soft); }
    .flow-list li + li::before { content: ''; position: absolute; left: 50%; top: -28px; height: 28px; width: 2px; background: var(--accent); }
}

/* Commerce chain */
.chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 20px; }
.chain__group { display: flex; flex-direction: column; gap: 10px; }
.chain__group span { padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; color: var(--ink); text-align: center; }
.chain__core { padding: 28px 18px; background: var(--dark); color: #fff; border-radius: 14px; font-weight: 600; text-align: center; }
.chain__arrow { font-size: 24px; color: var(--accent); }
@media (max-width: 860px) {
    .chain { grid-template-columns: 1fr; }
    .chain__arrow { transform: rotate(90deg); justify-self: center; }
}

/* Legal pages */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 32px); font-size: 14px; }
.legal-toc summary { display: block; cursor: pointer; list-style: none; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); }
.legal-toc a:hover { color: var(--ink); border-left-color: var(--accent-ink); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal-meta b { color: var(--ink); font-weight: 500; }
.legal-summary { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 48px; }
.legal-summary h2 { margin-top: 0 !important; font-size: 18px !important; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose ol { padding-left: 22px; margin-top: 12px; }
.prose h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.prose .num { color: var(--accent-ink); margin-right: 10px; font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; width: 34%; }
.address { margin-top: 16px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); font-style: normal; line-height: 1.8; }
@media (max-width: 960px) {
    .legal { grid-template-columns: 1fr; gap: 32px; }
    .legal-toc { position: static; }
}
@media (max-width: 640px) {
    .prose th, .prose td { display: block; width: 100%; padding: 4px 0; border: 0; }
    .prose th { padding-top: 14px; border-top: 1px solid var(--line); }
}

/* Utilities */
.mt { margin-top: 20px; }
.h2-split { font-size: clamp(28px, 3.4vw, 40px); }
.h3-sm { font-size: 18px; margin-bottom: 8px; }
.card-num--sm { margin-bottom: 24px; }
.checklist--spaced { margin-top: 24px; }
.checklist--lg { font-size: 19px; }
.eyebrow--center { display: block; text-align: center; }
.eyebrow--muted { color: var(--muted); }
.field--narrow { max-width: 240px; }

/* 404 */
.not-found { min-height: 60vh; display: flex; align-items: center; }
.not-found .code { font-size: 14px; font-weight: 600; letter-spacing: .12em; color: var(--accent-ink); }

/* Contact */
.split--contact { grid-template-columns: 7fr 5fr; }
.form-card { padding: 40px; }
.h3-title { font-size: 22px; margin-bottom: 24px; }
@media (max-width: 860px) { .split--contact { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .form-card { padding: 24px; } }
.contact-list a { display: inline-block; padding: 4px 0; }
@media (max-width: 640px) { .site-footer li a, .footer-bottom nav a { display: inline-block; padding: 10px 0; } .site-footer li + li { margin-top: 0; } }
.legal-toc summary::-webkit-details-marker { display: none; }
@media (min-width: 961px) { .legal-toc summary { pointer-events: none; } }
@media (max-width: 960px) {
    .legal-toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
    .legal-toc summary { margin: 0; display: flex; justify-content: space-between; }
    .legal-toc summary::after { content: '+'; font-size: 18px; line-height: 1; }
    .legal-toc[open] summary { margin-bottom: 12px; }
    .legal-toc[open] summary::after { content: '−'; }
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--muted); }
.form-note a { color: var(--accent-ink); text-decoration: underline; }

/* Assessment modal */
.assess-dialog {
    width: min(580px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 24px 64px rgba(17, 19, 21, .28);
}
.assess-dialog::backdrop { background: rgba(11, 13, 16, .55); }
.assess-dialog__inner { padding: 32px 32px 32px; overflow-y: auto; max-height: calc(100vh - 32px); }
.assess-dialog__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.assess-dialog__top h2 { font-size: clamp(22px, 3vw, 28px); margin: 0; }
.assess-dialog__close {
    flex: none; width: 40px; height: 40px; margin: -6px -8px 0 0; border: 0; border-radius: 8px; background: none; color: var(--ink-2);
    cursor: pointer; font-size: 24px; line-height: 1; padding: 0; transition: background .15s ease;
}
.assess-dialog__close:hover { color: var(--ink); background: var(--bg-soft); }
.assess-dialog__intro { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.assess-dialog .field-error { display: none; color: #9b2c22; font-size: 13px; margin-top: 6px; }
.assess-dialog .field.is-invalid input,
.assess-dialog .field.is-invalid select,
.assess-dialog .field.is-invalid textarea { border-color: #c94a3f; }
.assess-dialog .field.is-invalid .field-error { display: block; }
.assess-dialog .field textarea { min-height: 88px; }
.assess-dialog .field label, .assess-dialog .chip-field legend { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 8px; padding: 0; }
.assess-dialog .field-optional { font-weight: 400; color: var(--muted); }
.assess-dialog .field-optional[hidden] { display: none; }
.assess-dialog .form { gap: 18px; }
.assess-dialog .form-row { gap: 16px; }
.assess-dialog .chip-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.assess-dialog .chip-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.assess-dialog .chip { position: relative; display: block; margin: 0; cursor: pointer; }
.assess-dialog .chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.assess-dialog .chip span { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid #d5d9de; border-radius: 8px; background: #fff; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: border-color .15s ease, background .15s ease, color .15s ease; }
.assess-dialog .chip span::before { content: ''; flex: none; width: 18px; height: 18px; border: 1.5px solid #9aa1aa; border-radius: 5px; background: #fff center / 12px no-repeat; transition: background-color .15s ease, border-color .15s ease; }
.assess-dialog .chip:hover span { border-color: #b3b9c1; }
.assess-dialog .chip input:checked + span { border-color: var(--accent-ink); background: var(--accent-soft); color: var(--ink); }
.assess-dialog .chip input:checked + span::before { border-color: var(--accent-btn); background-color: var(--accent-btn); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.assess-dialog .chip input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.assess-dialog .chip-field.is-invalid .chip span { border-color: #c94a3f; }
.assess-dialog .form .btn { width: 100%; margin-top: 4px; }
.assess-dialog__success { text-align: center; padding: 24px 8px 8px; }
.assess-dialog__success h3 { font-size: 24px; margin: 0 0 12px; }
.assess-dialog__success p { color: var(--muted); margin: 0 0 28px; }
.assess-dialog[hidden], .assess-dialog__success[hidden], #assessForm[hidden] { display: none !important; }
@media (max-width: 640px) {
    .assess-dialog__inner { padding: 20px 18px 24px; }
}

/* Linked cards and four-step process (solution, careers and investor pages) */
.card--link { display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; }
.card--link:hover { border-color: var(--accent-ink); transform: translateY(-2px); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps--4 { grid-template-columns: 1fr; } }
.card--stack { display: flex; flex-direction: column; }
.card--stack .link-arrow { margin-top: auto; padding-top: 24px; }
.table-wrap { overflow-x: auto; max-width: 760px; }

/* Home: platform cards */
.platform-card h3 { font-size: clamp(36px, 4vw, 48px); letter-spacing: -0.03em; margin-bottom: 0; }
.platform-card h3 span { display: block; margin-top: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.platform-card .platform-card__tagline { margin-top: 20px; font-size: 18px; font-weight: 500; color: var(--ink); }
.platform-card .dotlist { margin: 20px 0 0; padding: 0; list-style: none; }

/* Partners (business platforms) */
.partners { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.partners h2 { font-size: clamp(30px, 4vw, 44px); }
.partners p { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 420px; }
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.partner-grid li { display: flex; align-items: center; justify-content: center; min-height: 104px; padding: 20px 16px; background: #fff; }
.partner-grid span { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); text-align: center; }
.partner-grid img { width: auto; height: auto; max-width: min(128px, 100%); max-height: 38px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s ease, opacity .2s ease; }
.partner-grid li:hover img { filter: none; opacity: 1; }
@media (max-width: 860px) { .partners { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) { .partner-grid li { min-height: 84px; padding: 16px 8px; } .partner-grid span { font-size: 14px; } .partner-grid img { max-width: min(84px, 100%); max-height: 26px; } }

/* Document pop-up (e.g. Privacy Policy opened from a form) */
.doc-dialog { width: min(780px, calc(100vw - 32px)); height: min(820px, calc(100vh - 32px)); max-height: none; margin: auto; padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 24px 64px rgba(17, 19, 21, .28); overflow: hidden; }
.doc-dialog[open] { display: flex; flex-direction: column; }
.doc-dialog::backdrop { background: rgba(11, 13, 16, .55); }
.doc-dialog__top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 20px 32px; border-bottom: 1px solid var(--line); }
.doc-dialog__top h2 { font-size: clamp(20px, 3vw, 24px); margin: 0; }
.doc-dialog__top .assess-dialog__close { margin: 0; }
.doc-dialog__body { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 32px 36px; max-width: none; overscroll-behavior: contain; }
.doc-dialog__body:focus-visible { outline: none; }
.doc-dialog__body h2 { font-size: 20px; margin: 36px 0 12px; }
.doc-dialog__body p, .doc-dialog__body li { color: var(--ink-2); font-size: 16px; }
.doc-dialog__body p + p { margin-top: 14px; }
.doc-dialog__body ul { list-style: disc; padding-left: 22px; margin-top: 12px; }
.doc-dialog__body ol { padding-left: 22px; margin-top: 12px; }
.doc-dialog__body li + li { margin-top: 6px; }
.doc-dialog__body a { color: var(--accent-ink); text-decoration: underline; }
.doc-dialog__body h3 { font-size: 17px; margin: 24px 0 8px; }
.doc-dialog__body .num { color: var(--accent-ink); margin-right: 10px; font-weight: 600; }
.doc-dialog__body table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.doc-dialog__body th, .doc-dialog__body td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--line); }
.doc-dialog__body th { color: var(--ink); font-weight: 600; width: 34%; }
.doc-dialog__body .legal-meta { margin-bottom: 28px; }
.doc-dialog__body .legal-summary { margin-bottom: 32px; padding: 22px 24px; }
@media (max-width: 640px) {
    .doc-dialog__top { padding: 14px 12px 14px 18px; }
    .doc-dialog__body { padding: 20px 18px 28px; }
    .doc-dialog__body th, .doc-dialog__body td { display: block; width: 100%; padding: 4px 0; border: 0; }
    .doc-dialog__body th { padding-top: 14px; border-top: 1px solid var(--line); }
}
