/* ==========================================================================
   Stream Solve — website styles
   Built on the Stream Solve Brand Guidelines v1.0 (colors, Aptos, graphic language)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette */
  --stream: #006CB5;      /* Primary — logo symbol */
  --charcoal: #2B2A29;    /* Primary — wordmark & text */
  --sky: #008DD2;
  --deep: #005392;
  --navy: #063F6C;
  --royal: #0D3A8F;
  --cyan: #35B5D6;        /* Accent — highlights on dark only */
  --white: #FFFFFF;
  --cloud: #F2F5F8;
  --mist: #DCE3EA;
  --slate: #5E6A78;
  --ink-soft: #3F4652;

  /* Type — Aptos ships with Microsoft 365; fallbacks per guidelines */
  --font: Aptos, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-light: "Aptos Light", Aptos, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --maxw: 1200px;
  --gutter: 24px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(6, 63, 108, .06), 0 8px 24px rgba(6, 63, 108, .08);
  --shadow-lg: 0 18px 48px rgba(6, 63, 108, .18);
  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 84px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--charcoal); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--stream); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--deep); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.01em; color: var(--charcoal); font-weight: 700; }
h1 { font-size: clamp(38px, 5.4vw, 66px); }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: 21px; line-height: 1.25; }
h4 { font-size: 17px; }
/* The brand headline device: light italic + bold, echoing "stream" + "solve" */
.li { font-family: var(--font-light); font-weight: 300; font-style: italic; }
.accent { color: var(--stream); }
.dark .accent, .on-dark .accent { color: var(--cyan); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--cloud { background: var(--cloud); }
.section--border { border-top: 1px solid var(--mist); }
.grid { display: grid; gap: 20px; }
.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: 1.05fr 1fr; gap: 64px; align-items: center; }
.split--top { align-items: start; }
.stack > * + * { margin-top: 16px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--stream);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.dark .eyebrow, .on-dark .eyebrow, .hero .eyebrow, .cta .eyebrow { color: var(--cyan); }
.lead { font-size: 19px; line-height: 1.6; color: var(--slate); }
.dark .lead, .on-dark .lead { color: #CFE3F1; }
.muted { color: var(--slate); }
.small { font-size: 14.5px; }
.center { text-align: center; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { width: 20px; height: 20px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--stream); color: #fff; }
.btn--primary:hover { background: var(--deep); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--cloud); color: var(--navy); }
.btn--ghost { border-color: var(--stream); color: var(--stream); background: transparent; }
.btn--ghost:hover { background: var(--stream); color: #fff; }
.dark .btn--ghost, .on-dark .btn--ghost, .hero .btn--ghost, .page-hero .btn--ghost, .cta .btn--ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.dark .btn--ghost:hover, .on-dark .btn--ghost:hover, .hero .btn--ghost:hover, .page-hero .btn--ghost:hover, .cta .btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--sm { min-height: 40px; padding: 9px 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--mist); box-shadow: 0 4px 18px rgba(6,63,108,.06); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 8px;
  color: var(--charcoal); font-size: 15.5px; font-weight: 500; text-decoration: none;
}
.nav__link:hover { color: var(--stream); background: var(--cloud); }
.nav__link[aria-current="page"] { color: var(--stream); font-weight: 600; }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--charcoal); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle:hover { background: var(--cloud); }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- 6. Heroes ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: #063F6C url("../img/hero-night.webp") center / cover no-repeat;
}
.hero__inner { position: relative; z-index: 2; padding: 112px 0 64px; max-width: 700px; }
.hero h1 { color: #fff; }
.hero .lead { color: #D6E8F4; max-width: 600px; margin-top: 24px; }
.hero__ribbon { position: absolute; z-index: 1; right: -40px; top: 0; width: min(50vw, 720px); height: auto; pointer-events: none; }
.hero__stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); margin-top: 72px; }
.hero__stat { padding: 26px 24px 34px 0; }
.hero__stat + .hero__stat { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.hero__stat b { display: block; font-size: clamp(30px, 3.2vw, 42px); line-height: 1; color: #fff; }
.hero__stat span { display: block; margin-top: 10px; font-size: 14px; letter-spacing: .04em; color: #BFE0F0; }
.page-hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: #006CB5 url("../img/page-hero.webp") center / cover no-repeat;
}
.page-hero--night { background-image: url("../img/hero-night.webp"); background-color: var(--navy); }
.page-hero .container { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 88px; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 58px); max-width: 860px; }
.page-hero .lead { color: #E3F3FB; max-width: 700px; margin-top: 22px; }
.page-hero .eyebrow { color: #fff; opacity: .9; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 26px; font-size: 14px; color: rgba(255,255,255,.75); }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.badge--partner { background: rgba(53,181,214,.18); color: #BFF0FF; border: 1px solid rgba(53,181,214,.5); }
.badge--own { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.badge--light { background: var(--cloud); color: var(--stream); border: 1px solid var(--mist); }

/* ---------- 7. Dark sections ---------- */
.dark { position: relative; color: #E6F1F8; background: var(--navy) url("../img/hero-night.webp") center / cover no-repeat; isolation: isolate; overflow: hidden; }
.dark h2, .dark h3, .dark h4 { color: #fff; }
.dark p { color: #CFE3F1; }
.dark--network { background: var(--navy) url("../img/network-dark.svg") right center / cover no-repeat; }
.dark--royal { background: var(--royal); }

/* ---------- 8. Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 30px; border-radius: var(--radius); background: var(--cloud);
  transition: transform .25s, box-shadow .25s, background-color .25s;
}
.card--white { background: #fff; border: 1px solid var(--mist); }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: #fff; color: inherit; }
.card h3 { color: var(--navy); }
.card p { margin: 0; color: var(--slate); font-size: 16px; }
.card .link-arrow { margin-top: auto; padding-top: 6px; }
.dark .card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.dark .card h3 { color: #fff; }
.dark .card p { color: #C6DCEB; }
.icon-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--stream); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-circle .icon { width: 26px; height: 26px; }
.icon-circle--sm { width: 42px; height: 42px; }
.icon-circle--sm .icon { width: 22px; height: 22px; }
.icon-circle--cyan { background: rgba(53,181,214,.16); color: var(--cyan); border: 1px solid rgba(53,181,214,.45); }
.card__code { position: absolute; top: 26px; right: 28px; font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--stream); background: #fff; border: 1px solid var(--mist); padding: 4px 10px; border-radius: 999px; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 28px 26px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.stat b { display: block; font-size: clamp(38px, 4vw, 52px); line-height: 1; color: #fff; letter-spacing: -.02em; }
.stat p { margin: 14px 0 10px; font-size: 15.5px; color: #D6E8F4; }
.stat cite { display: block; font-style: normal; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8FB9D3; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--mist); border-radius: var(--radius); overflow: hidden; background: #fff; }
.kpi { padding: 26px; }
.kpi + .kpi { border-left: 1px solid var(--mist); }
.kpi b { display: block; font-size: 36px; line-height: 1; color: var(--stream); }
.kpi span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--slate); }
.kpi-row--2 { grid-template-columns: repeat(2, 1fr); }
.kpi-row--2 .kpi:nth-child(3) { border-left: 0; }
.kpi-row--2 .kpi:nth-child(n+3) { border-top: 1px solid var(--mist); }
.kpi-row--3 { grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
.kpi-row--3 .kpi { padding: 20px 22px; }
.kpi-row--3 .kpi b { font-size: 32px; }

/* Chips & tags */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--mist); color: var(--navy); font-size: 14.5px; font-weight: 500; }
.chip .icon { width: 18px; height: 18px; color: var(--stream); }
.section--cloud .chip { background: #fff; }
.dark .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.dark .chip .icon { color: var(--cyan); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tag { padding: 4px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--mist); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }

/* Check list */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--stream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.dark .checks li::before { background-color: var(--cyan); }

/* Feature panel (visual next to text) */
.panel { position: relative; border-radius: 18px; overflow: hidden; min-height: 420px; background: var(--navy) url("../img/hero-night.webp") center / cover; box-shadow: var(--shadow-lg); }
.panel img, .panel svg.panel__art { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel--light { background: var(--cloud); box-shadow: none; border: 1px solid var(--mist); }
.panel:has(> img:only-child) { min-height: 0; }
.panel__caption { position: absolute; left: 20px; bottom: 18px; right: 20px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--mist); background: #fff; }
table.spec { width: 100%; border-collapse: collapse; font-size: 16px; }
table.spec th, table.spec td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--mist); vertical-align: top; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
table.spec th { width: 38%; font-weight: 600; color: var(--navy); background: var(--cloud); }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 28px 22px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--mist); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-light); font-style: italic; font-weight: 300; font-size: 34px; line-height: 1; color: var(--stream); margin-bottom: 16px; }
.step h3 { font-size: 18px; color: var(--navy); }
.step p { margin: 8px 0 0; font-size: 15px; color: var(--slate); }
.dark .step { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.dark .step::before { color: var(--cyan); }
.dark .step p { color: #C6DCEB; }

/* Lab cards */
.lab { display: grid; grid-template-columns: 200px 1fr; gap: 0; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--mist); }
.lab + .lab { margin-top: 20px; }
.lab__side { position: relative; padding: 28px 24px; color: #fff; background: var(--navy) url("../img/hero-night.webp") center / cover; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.lab__code { font-size: 44px; font-weight: 700; letter-spacing: .02em; line-height: 1; }
.lab__focus { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.lab__body { padding: 30px 32px; display: flex; flex-direction: column; gap: 14px; }
.lab__body h3 { font-size: 24px; color: var(--navy); }
.lab__loc { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--slate); }
.lab__loc .icon { width: 18px; height: 18px; color: var(--stream); }
.lab__body p { margin: 0; color: var(--ink-soft); }
.lab__extra { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 6px; }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--cloud); border: 1px solid var(--mist); font-size: 15.5px; color: var(--ink-soft); }
.note .icon { color: var(--stream); margin-top: 1px; }
.note p { margin: 0; }

/* Logos / vendor wall */
.vendor-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.vendor { padding: 18px 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--mist); }
.vendor b { display: block; font-size: 15px; letter-spacing: .04em; color: var(--navy); }
.vendor span { display: block; font-size: 13px; color: var(--slate); margin-top: 4px; }
.vendor small { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--stream); }
.vendor--you { background: var(--stream); border-color: var(--stream); }
.vendor--you b, .vendor--you span, .vendor--you small { color: #fff; }

/* Product cards */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter { min-height: 40px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--mist); background: #fff; color: var(--navy); font: 600 15px/1 var(--font); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.product-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--mist); text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.product-card__media { position: relative; height: 200px; background: var(--navy) url("../img/hero-night.webp") center / cover; display: flex; align-items: center; justify-content: center; }
.product-card__media .wordmark { font-size: 40px; font-weight: 700; letter-spacing: .02em; color: #fff; }
.product-card__media .badge { position: absolute; left: 18px; top: 18px; }
.product-card__media img { width: 56%; margin-top: 46px; border-radius: 10px; }
.product-card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-card__body h3 { color: var(--navy); }
.product-card__body p { margin: 0; color: var(--slate); font-size: 16px; }
.product-card__body .link-arrow { margin-top: auto; padding-top: 8px; }
.product-card--add { border: 2px dashed var(--mist); background: var(--cloud); }
.product-card--add .product-card__media { background: none; }
.product-card--add .icon-circle { width: 72px; height: 72px; }

/* Quote/statement */
.statement { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; color: #fff; max-width: 900px; }

/* CTA band */
.cta { position: relative; overflow: hidden; color: #fff; background: var(--royal) url("../img/hero-night.webp") center / cover; isolation: isolate; }
.cta .container { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #D6E8F4; margin: 16px 0 0; max-width: 560px; }
.cta .btn-row { justify-content: flex-end; margin-top: 0; }
.supergraphic { position: absolute; z-index: 1; opacity: .07; pointer-events: none; }

/* ---------- 9. Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.field label .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 10px; border: 1.5px solid var(--mist);
  background: #fff; color: var(--charcoal); font: 16px/1.4 var(--font); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--stream); box-shadow: 0 0 0 4px rgba(0,108,181,.15); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #C6403F; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--slate); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--stream); flex: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-status { font-size: 15px; color: var(--slate); }
.form-status.is-success { color: #1E7E50; font-weight: 600; }
.form-status.is-error { color: #B3261E; font-weight: 600; }
.contact-card { padding: 32px; border-radius: 18px; color: #fff; background: var(--navy) url("../img/hero-night.webp") center / cover; }
.contact-card h3 { color: #fff; }
.contact-list { list-style: none; display: grid; gap: 20px; margin-top: 22px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon { color: var(--cyan); margin-top: 2px; }
.contact-list b { display: block; color: #fff; font-size: 15px; }
.contact-list span, .contact-list a { color: #CFE3F1; font-size: 15.5px; }
.contact-list a:hover { color: #fff; }

/* Person card */
.person { display: flex; gap: 20px; align-items: center; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--mist); }
.avatar { width: 76px; height: 76px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--sky), var(--stream) 50%, var(--navy)); }
.person b { display: block; font-size: 19px; color: var(--navy); }
.person span { color: var(--stream); font-family: var(--font-light); font-style: italic; font-weight: 300; }

/* Floor plan figure */
.figure { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--mist); }
.figure img { width: 100%; }
.figure figcaption { padding: 14px 20px; font-size: 13.5px; color: var(--slate); border-top: 1px solid var(--mist); }

/* ---------- 10. Footer ---------- */
.site-footer { color: #CFE3F1; background: var(--royal); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--cyan), var(--sky) 40%, var(--stream)); }
.footer-main { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding: 72px 0 48px; }
.footer-brand img { width: 190px; }
.footer-brand p { margin: 20px 0 0; font-size: 15px; color: #CFE3F1; max-width: 300px; }
.footer-tagline { margin-top: 18px; color: #fff; font-size: 17px; }
.footer-col h2 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #E6F1F8; text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.social { display: flex; gap: 8px; align-items: center; }
.social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); color: #fff; }
.social a:hover { background: #fff; color: var(--royal); }
.social svg { width: 18px; height: 18px; }
.handle { color: #fff; font-weight: 600; margin-left: 6px; }

/* ---------- 11. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card--link:hover, .product-card:hover, .stackd__layer:hover { transform: none; }
}

/* ---------- 10b. Portfolio components ---------- */
.selectable { user-select: all; color: inherit; font-weight: 600; }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: var(--cyan); }

/* Products dropdown */
.has-menu { position: relative; }
.nav__trigger { border: 0; background: transparent; cursor: pointer; font: 500 15.5px/1 var(--font); gap: 6px; }
.nav__trigger[data-current] { color: var(--stream); font-weight: 600; }
.icon-chevron { width: 16px; height: 16px; transition: transform .2s; }
.nav__trigger[aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(660px, calc(100vw - 32px)); z-index: 60;
  background: #fff; border: 1px solid var(--mist); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 12px; display: none;
}
.nav__trigger[aria-expanded="true"] + .menu { display: block; }
.menu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.menu__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--charcoal); }
.menu__item:hover { background: var(--cloud); color: var(--charcoal); }
.menu__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--stream); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.menu__icon .icon { width: 20px; height: 20px; }
.menu__name { display: block; font-weight: 700; color: var(--navy); font-size: 15.5px; }
.menu__desc { display: block; font-size: 13.5px; color: var(--slate); margin-top: 2px; line-height: 1.35; }
.menu__all { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--cloud); font-weight: 600; text-decoration: none; }
.menu__all .icon { width: 18px; height: 18px; }

/* "How it fits together" layered diagram */
.stackd { display: grid; gap: 8px; }
.stackd__layer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(110deg, var(--pc-deep), color-mix(in srgb, var(--pc-deep) 72%, #06162c));
  transition: transform .2s, box-shadow .2s;
}
.stackd__layer:hover { color: #fff; transform: translateX(4px); box-shadow: var(--shadow); }
.stackd__label { min-width: 0; }
.stackd__label b { display: block; font-size: 18px; }
.stackd__label span { display: block; font-size: 14.5px; color: rgba(255,255,255,.85); margin-top: 2px; }
.stackd__product { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-size: 14.5px; }
.stackd__product .icon { width: 18px; height: 18px; }

/* Proof cards (dark sections) */
.proof { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.proof h3 { color: #fff; }
.proof p { margin: 0; color: #C6DCEB; font-size: 16px; }
.proof__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.14); }
.proof__kpis b { display: block; font-size: 30px; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof__kpis span { font-size: 13.5px; color: #9FC6E0; }
.stat-grid--5 { grid-template-columns: repeat(5, 1fr); }
.stat { min-width: 0; }
.stat-grid--5 .stat b { font-size: clamp(30px, 3.2vw, 46px); }
.stat-note { margin-top: 16px; color: #9FC6E0; }

/* Comparison table (PartnerUp) */
table.compare { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
table.compare th { text-align: left; padding: 16px 22px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--stream); }
table.compare th + th { background: var(--slate); }
table.compare td { padding: 16px 22px; border-bottom: 1px solid var(--mist); vertical-align: top; color: var(--ink-soft); }
table.compare td b { display: block; color: var(--navy); }
table.compare td span { display: block; font-size: 14.5px; color: var(--slate); margin-top: 2px; }
table.compare tr:last-child td { border-bottom: 0; }

.feature-box { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--mist); display: flex; flex-direction: column; gap: 16px; }
.feature-box h3 { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.feature-box h3 .icon { color: var(--stream); }
.section:not(.section--cloud) .feature-box { background: var(--cloud); border-color: transparent; }
.steps--2col { grid-template-columns: 1fr 1fr; }

/* Brands list (About) */
.brands-list { display: grid; gap: 10px; }
.brands-list__item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--cloud); text-decoration: none; color: var(--charcoal); }
.brands-list__item:hover { background: #fff; box-shadow: var(--shadow); color: var(--charcoal); }
.brands-list__item > span:nth-child(2) { flex: 1; min-width: 0; }
.brands-list__item b { display: block; color: var(--navy); font-size: 17px; }
.brands-list__item span span { display: block; color: var(--slate); font-size: 14.5px; }
.brands-list__item > .icon { color: var(--stream); width: 20px; height: 20px; }

/* Form hand-off panel (used when no form service is connected) */
.handoff { grid-column: 1 / -1; padding: 20px; border-radius: 14px; background: var(--cloud); border: 1px solid var(--mist); display: grid; gap: 12px; }
.handoff h4 { color: var(--navy); }
.handoff p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.handoff textarea { width: 100%; min-height: 160px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--mist); background: #fff; font: 14.5px/1.5 var(--font); color: var(--charcoal); resize: vertical; }
.handoff .btn-row { margin-top: 0; }


/* ---------- 10c. Product identity (each product has its own colour; see products.css) ---------- */
.lockup { display: inline-flex; align-items: center; gap: 12px; }
.lockup__tile { width: 40px; height: 40px; border-radius: 11px; background: var(--pc); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lockup__tile .icon { width: 22px; height: 22px; }
.lockup__tile--lg { width: 52px; height: 52px; border-radius: 14px; }
.lockup__tile--lg .icon { width: 28px; height: 28px; }
.lockup__tile--xl { width: 84px; height: 84px; border-radius: 22px; }
.lockup__tile--xl .icon { width: 44px; height: 44px; }
.lockup__text b { display: block; font-size: 18px; line-height: 1.1; color: var(--pc-deep); }
.lockup__text span { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.lockup--lg { margin-bottom: 20px; }
.lockup--lg .lockup__tile { width: 52px; height: 52px; border-radius: 14px; }
.lockup--lg .lockup__tile .icon { width: 28px; height: 28px; }
.lockup--lg .lockup__text b { font-size: 26px; }
.solution-label { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }

/* Menu: grouped by category, product-coloured tiles */
.menu__grid { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.menu__label { margin: 8px 12px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.menu__item { align-items: center; }
.menu__tile { width: 36px; height: 36px; border-radius: 10px; }
.menu__tile .icon { width: 19px; height: 19px; }
.dotlink::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--pc); vertical-align: 1px; }

/* Product bar: sticky sub-navigation on every page of a product */
.pbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 40; background: var(--pc-soft); border-bottom: 1px solid color-mix(in srgb, var(--pc) 30%, transparent); }
.pbar__in { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.pbar__brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; color: var(--pc-deep); font-size: 18px; }
.pbar__brand:hover { color: var(--pc-deep); }
.pbar__brand .lockup__tile { width: 34px; height: 34px; border-radius: 9px; }
.pbar__brand .lockup__tile .icon { width: 18px; height: 18px; }
.pbar__nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding-left: 14px; border-left: 1px solid color-mix(in srgb, var(--pc) 30%, transparent); }
.pbar__nav::-webkit-scrollbar { display: none; }
.pbar__nav a { padding: 8px 12px; border-radius: 8px; white-space: nowrap; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--charcoal); }
.pbar__nav a:hover { background: #fff; color: var(--pc-deep); }
.pbar__nav a[aria-current="page"] { background: #fff; color: var(--pc-deep); font-weight: 700; box-shadow: inset 0 -2px 0 var(--pc); }
.pbar__cta { flex: none; background: var(--pc-deep); color: #fff; }
.pbar__cta:hover { background: color-mix(in srgb, var(--pc-deep) 82%, #000); color: #fff; }

/* Product hero */
.p-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background-color: var(--pc-deep);
  background-image: linear-gradient(115deg, color-mix(in srgb, var(--pc-deep) 95%, transparent) 0%, color-mix(in srgb, var(--pc-deep) 72%, #06162c) 55%, rgba(6, 22, 44, .94) 100%), url("../img/hero-night.webp");
  background-size: cover; background-position: center;
}
.p-hero .container { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 80px; }
.p-hero__id { display: flex; align-items: center; gap: 16px; }
.p-hero__id .lockup__tile { background: #fff; color: var(--pc-deep); }
.p-hero__name { margin: 0; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; line-height: 1; letter-spacing: -.01em; color: #fff; }
.p-hero__cat { margin: 7px 0 0; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.p-hero h1 { margin-top: 28px; max-width: 880px; font-size: clamp(32px, 4.2vw, 54px); color: #fff; }
.p-hero .lead { max-width: 700px; margin-top: 20px; color: rgba(255, 255, 255, .9); }

/* Everything inside a product page (or a product section) takes the product colour */
.p-ctx .eyebrow { color: var(--pc-deep); }
.p-ctx .icon-circle { background: var(--pc); }
.p-ctx .checks li::before { background-color: var(--pc); }
.p-ctx .step::before { color: var(--pc-deep); }
.p-ctx .link-arrow, .p-ctx .note a, .p-ctx p a { color: var(--pc-deep); }
.p-ctx .chip .icon, .p-ctx .note .icon, .p-ctx .feature-box h3 .icon, .p-ctx .lab__loc .icon { color: var(--pc-deep); }
.p-ctx .kpi b, .p-ctx .card__code, .p-ctx table.spec th, .p-ctx .vendor small { color: var(--pc-deep); }
.p-ctx .btn--primary { background: var(--pc-deep); }
.p-ctx .btn--primary:hover { background: color-mix(in srgb, var(--pc-deep) 82%, #000); }
.p-ctx .btn--ghost { border-color: var(--pc-deep); color: var(--pc-deep); }
.p-ctx .btn--ghost:hover { background: var(--pc-deep); color: #fff; }
.p-ctx .section--cloud, .section.p-tint { background: var(--pc-soft); }
.p-ctx .section:not(.section--cloud):not(.p-tint) .card:not(.card--white) { background: var(--pc-soft); }
.p-ctx .section:not(.section--cloud) .feature-box { background: var(--pc-soft); }
.p-tint .card:not(.card--white) { background: #fff; }
.p-ctx table.compare th:first-child { background: var(--pc-deep); }
.p-ctx .vendor--you { background: var(--pc-deep); border-color: var(--pc-deep); }
.p-ctx .lab__side { background-color: var(--pc-deep); background-image: linear-gradient(160deg, color-mix(in srgb, var(--pc-deep) 92%, transparent), rgba(6, 22, 44, .92)), url("../img/hero-night.webp"); }
.p-ctx .lab__focus { color: #fff; opacity: .9; }
.p-ctx .dark, .p-ctx .cta {
  background-color: var(--pc-deep);
  background-image: linear-gradient(115deg, color-mix(in srgb, var(--pc-deep) 94%, transparent), rgba(6, 22, 44, .95)), url("../img/hero-night.webp");
  background-size: cover; background-position: center;
}
.p-ctx .dark .eyebrow, .p-ctx .cta .eyebrow { color: rgba(255, 255, 255, .88); }
.p-ctx .dark .stat cite, .p-ctx .stat-note { color: rgba(255, 255, 255, .72); }
.p-ctx .dark .link-arrow, .p-ctx .cta .link-arrow { color: #fff; }
.p-ctx .p-hero .btn--ghost, .p-ctx .dark .btn--ghost, .p-ctx .cta .btn--ghost { border-color: rgba(255, 255, 255, .75); color: #fff; }
.p-ctx .p-hero .btn--ghost:hover, .p-ctx .dark .btn--ghost:hover, .p-ctx .cta .btn--ghost:hover { background: #fff; color: var(--pc-deep); }
.p-ctx .p-hero .btn--light, .p-ctx .cta .btn--light { color: var(--pc-deep); }

/* Products with their own logo (set "logo" in products.py) */
.has-logo, .p-hero__id .has-logo, .learn-card .has-logo { background-color: #fff; background-repeat: no-repeat; background-position: center; background-size: 74%; box-shadow: inset 0 0 0 1px var(--mist); }
.has-logo > .icon { visibility: hidden; }
.product-card__mark.has-logo { width: 58px; height: 58px; border-radius: 14px; border-color: rgba(255, 255, 255, .9); }

/* Product cards (home, partners) */
.product-card__mark { width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .14); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.product-card__mark .icon { width: 24px; height: 24px; }
.product-card__media .wordmark { font-size: 34px; line-height: 1.1; text-align: center; padding: 0 16px; }
.card--product, .p-ctx .section .card--product:not(.card--white) { background: var(--pc-soft); }
.card--product:hover { border-color: var(--pc); }
.p-card .product-card__media {
  flex-direction: column; gap: 10px; height: 214px; padding-top: 44px;
  background-color: var(--pc-deep);
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--pc) 92%, transparent), color-mix(in srgb, var(--pc-deep) 96%, transparent)), url("../img/hero-night.webp");
  background-size: cover; background-position: center;
}
.p-card .badge { background: rgba(0, 0, 0, .24); border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.p-card .product-card__body .link-arrow { color: var(--pc-deep); }
.p-card:hover { border-color: var(--pc); }

/* Flagship product (DNext) */
.flag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--pc-deep); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.prow__id .flag { vertical-align: 4px; }

/* Products page: directory grouped by category */
.pgroup + .pgroup { margin-top: 44px; }
.pgroup__title { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.prow {
  display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: 22px 26px; border-radius: 16px; background: #fff; border: 1px solid var(--mist);
  text-decoration: none; color: var(--charcoal); transition: box-shadow .2s, border-color .2s, transform .2s;
}
.prow + .prow { margin-top: 12px; }
.prow:hover { border-color: var(--pc); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--charcoal); }
.prow__id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.prow__id b { display: block; font-size: 22px; line-height: 1.15; color: var(--pc-deep); }
.prow__site { display: block; margin-top: 3px; font-size: 13px; color: var(--slate); }
.prow__desc { min-width: 0; }
.prow__desc b { display: block; font-size: 17px; color: var(--navy); }
.prow__desc span { display: block; margin-top: 4px; font-size: 15px; color: var(--slate); }
.prow__go { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; color: var(--pc-deep); }
.prow__go .icon { width: 18px; height: 18px; }

/* Solutions: jump links */
.jump { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 10px; }
.jump__item { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; background: var(--pc-soft); border: 1px solid transparent; text-decoration: none; color: var(--charcoal); min-width: 0; }
.jump__item:hover { border-color: var(--pc); color: var(--charcoal); }
.jump__item b { display: block; font-size: 15px; color: var(--pc-deep); }
.jump__item span span { display: block; font-size: 13px; color: var(--slate); }

/* DojoNode / generic visual card */
.learn-card {
  display: flex; flex-direction: column; justify-content: center; gap: 18px; min-height: 340px; padding: 48px 40px; border-radius: 18px; color: #fff;
  background-color: var(--pc-deep);
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--pc) 86%, transparent), color-mix(in srgb, var(--pc-deep) 92%, #06162c)), url("../img/hero-night.webp");
  background-size: cover; background-position: center; box-shadow: var(--shadow-lg);
}
.learn-card .lockup__tile { background: #fff; color: var(--pc-deep); }
.learn-card__line { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; color: #fff; }
.learn-card__site { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .88); }

/* Home: product tags on proof cards */
.proof__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ptag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; background: var(--pc-deep); color: #fff; font-size: 13px; font-weight: 700; }
.ptag .icon { width: 15px; height: 15px; }

/* "More from Stream Solve" strip at the end of product pages */
.more { background: #fff; border-top: 1px solid var(--mist); }
.more__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.more__head .eyebrow, .p-ctx .more__head .eyebrow { margin: 0; color: var(--slate); }
.more__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mini { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border-radius: 14px; background: var(--pc-soft); border: 1px solid transparent; text-decoration: none; color: var(--charcoal); }
.mini:hover { border-color: var(--pc); color: var(--charcoal); }
.mini > span:last-child { min-width: 0; }
.mini b { display: block; font-size: 15.5px; color: var(--pc-deep); }
.mini span span { display: block; font-size: 13px; line-height: 1.35; color: var(--slate); }

/* About: product list */
.brands-list__item .lockup__tile { width: 42px; height: 42px; border-radius: 11px; }
.brands-list__item b { color: var(--pc-deep); }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .vendor-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--mist); box-shadow: 0 18px 30px rgba(6,63,108,.12);
    padding: 12px var(--gutter) 22px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { min-height: 48px; font-size: 17px; border-radius: 10px; }
  .nav .btn { margin: 12px 0 0; }
  .has-menu { position: static; }
  .nav__trigger { width: 100%; justify-content: space-between; min-height: 48px; font-size: 17px; }
  .menu { position: static; width: auto; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px; background: transparent; }
  .menu__grid { grid-template-columns: 1fr; }
  .menu__all { background: var(--cloud); }
  .stat-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .menu__grid { grid-template-columns: 1fr; }
  .jump { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jump__item { flex-direction: row; align-items: center; }
  .kpi-row.kpi-row--3 { grid-template-columns: repeat(3, 1fr); }
  .kpi-row--3 .kpi:nth-child(3) { border-left: 1px solid var(--mist); border-top: 0; }
  .prow { grid-template-columns: 1fr; gap: 12px; }
  .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pbar__in { gap: 12px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .hero__ribbon { opacity: .35; width: 90vw; right: -40vw; }
  .hero__stats, .stat-grid, .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .hero__stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--mist); }
  .cta .container { grid-template-columns: 1fr; }
  .cta .btn-row { justify-content: flex-start; }
  .steps, .steps--4 { grid-template-columns: repeat(2, 1fr); }
  .lab { grid-template-columns: 1fr; }
  .lab__side { flex-direction: row; align-items: center; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero__inner { padding: 72px 0 40px; }
  .hero__stats { margin-top: 48px; }
  .hero__stat { padding: 20px 16px 22px 0; }
  .hero__stat + .hero__stat { padding-left: 16px; }
  .stat-grid, .stat-grid--5 { grid-template-columns: 1fr 1fr; }
  .stat-grid--5 .stat:last-child { grid-column: 1 / -1; }
  .stat { padding: 22px 18px; }
  .stackd__layer { flex-direction: column; align-items: flex-start; }
  .jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more__grid { grid-template-columns: 1fr; }
  .pbar__cta { display: none; }
  .pbar__brand { font-size: 16px; }
  .pbar__nav { padding-left: 10px; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .p-hero .container { padding-top: 44px; padding-bottom: 56px; }
  .learn-card { padding: 36px 26px; min-height: 260px; }
  .steps--2col { grid-template-columns: 1fr; }
  .product-card__media .wordmark { font-size: 28px; }
  .kpi-row--3 .kpi { padding: 16px 12px; }
  .kpi-row--3 .kpi b { font-size: 26px; }
  .kpi-row--3 .kpi span { font-size: 13px; }
  .steps, .steps--4 { grid-template-columns: 1fr; }
  .vendor-grid { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 56px; }
  .card { padding: 24px; }
  .lab__body { padding: 24px; }
  .page-hero .container { padding-top: 64px; padding-bottom: 64px; }
  .lead { font-size: 17.5px; }
  .brand img { width: 150px; }
  table.spec th, table.spec td { padding: 12px 14px; }
}
