/* ==========================================================================
   ETABS design system  |  tokens, base, layout, components, effects
   Hand-written, no build step. Colours: navy #013348 (corporate), orange accent,
   ivory canvas. Fonts: Sora (display), Manrope (body), self-hosted.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/assets/fonts/sora-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/assets/fonts/manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --navy: #013348;
  --navy-900: #011e2b;
  --navy-800: #02293a;
  --navy-700: #0b4a66;
  --navy-600: #145f80;
  --navy-100: #dfe9ee;
  --navy-50: #eef4f7;
  --orange: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-100: #ffedd5;
  --orange-50: #fff7ed;
  --cyan: #22d3ee;
  --cyan-300: #67e8f9;
  --green: #16a34a;
  --green-300: #86efac;
  --amber-300: #fde68a;
  --canvas: #f6f4ef;
  --surface: #ffffff;
  --ink: #0f2430;
  --muted: #55676f;
  --muted-2: #5f727c;
  --line: #e4ded3;
  --line-2: #efeae0;
  --on-dark: #e6f1f5;
  --on-dark-muted: #a9c2cd;
  --line-dark: rgba(255,255,255,.12);

  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;

  --fs-hero: clamp(2.5rem, 1.4rem + 4.2vw, 4.75rem);
  --fs-h1: clamp(2.2rem, 1.3rem + 3vw, 3.6rem);
  --fs-h2: clamp(1.85rem, 1.2rem + 2.2vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --fs-lead: clamp(1.05rem, .95rem + .45vw, 1.3rem);
  --fs-sm: .9rem;
  --fs-xs: .8rem;

  --r-1: 10px;
  --r-2: 16px;
  --r-3: 24px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(1,51,72,.06), 0 4px 12px rgba(1,51,72,.06);
  --shadow-2: 0 10px 30px -10px rgba(1,51,72,.25);
  --shadow-3: 0 40px 80px -30px rgba(1,51,72,.4);
  --shadow-accent: 0 12px 30px -8px rgba(249,115,22,.45);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: .25s;
  --dur-2: .5s;
  --dur-3: .9s;

  --nav-h: 92px;
  --container: 1240px;
  --gutter: 24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange-700); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--navy); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
strong { font-weight: 700; }
/* Focus: navy ring (passes 3:1 on light surfaces) inside a soft orange halo; cyan ring on navy surfaces */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; box-shadow: 0 0 0 6px rgba(249,115,22,.4); }
.section--dark :focus-visible, .hero--dark :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .proof-band :focus-visible, .estimator__results :focus-visible, .mega__feature :focus-visible, .card--navy :focus-visible { outline-color: var(--cyan-300); }
.contact-panel__form :focus-visible { outline-color: var(--navy); } /* white form panel inside the navy contact section */
::selection { background: var(--orange-100); color: var(--navy); }
.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; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; padding: 10px 16px; background: var(--surface); color: var(--navy); border-radius: var(--r-1); box-shadow: var(--shadow-2); font-weight: 700; }
.skip-link:focus { top: 16px; }

/* ---------- Typography ---------- */
.display { font-family: var(--font-display); }
.h-hero { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -.03em; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-700); }
.kicker::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--orange); }
.kicker--plain::before { display: none; }
/* Headline accent: deeper orange gradient on light surfaces (large text, >= 3:1 on canvas); bright orange on navy */
.accent { color: var(--orange-600); background: linear-gradient(100deg, var(--orange-600) 10%, var(--orange-700) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.accent::selection { -webkit-text-fill-color: var(--navy); }
.section--dark .accent, .hero--dark .accent, .cta-band .accent, .card--navy .accent { color: var(--orange); background: none; -webkit-text-fill-color: currentColor; }
@media (forced-colors: active) { .accent { background: none; -webkit-text-fill-color: currentColor; } }
.grad-text { background: linear-gradient(90deg, var(--cyan-300), #7dd3fc 55%, #c7d2fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.check-list .icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--orange); }
.check-list b { display: block; color: var(--navy); }
.check-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.section--dark .check-list .icon { color: var(--cyan-300); }
.section--dark .check-list b { color: #fff; }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-box { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy-50); color: var(--navy); }
.icon-box--accent { background: var(--orange-100); color: var(--orange-700); }
.icon-box--navy { background: var(--navy); color: #fff; }
.icon-box--glass { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--cyan-300); }
.icon-box .icon { width: 26px; height: 26px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 860px; }
.section { position: relative; padding: clamp(64px, 8vw, 112px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--flush-top { padding-top: 0; }
.section--surface { background: var(--surface); }
.section--tint { background: var(--navy-50); }
.section--warm { background: var(--orange-50); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead, .section--dark .muted { color: var(--on-dark-muted); }
.section--dark .kicker { color: var(--cyan-300); }
.section--dark .kicker::before { background: var(--cyan); }
/* :where keeps the old 0,1,1 specificity so component link colours still win; buttons keep their own colours */
.section--dark a:where(:not(.btn)) { color: var(--cyan-300); }
.section--dark a:where(:not(.btn)):hover { color: #fff; }
.section--deep { background: var(--navy-900); }
.section--block { border-radius: var(--r-3); margin-left: auto; margin-right: auto; max-width: calc(var(--container) + 2 * var(--gutter)); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 16px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; }
.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: clamp(32px, 5vw, 72px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr .85fr; }
.split--wide-right { grid-template-columns: .85fr 1.15fr; }
.stack > * + * { margin-top: 20px; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-2 { margin-bottom: 24px; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1; white-space: nowrap; transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1), background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1); overflow: hidden; isolation: isolate; }
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-2); }
.btn--primary:hover { background: var(--navy-800); color: #fff; }
.btn--accent { background: var(--orange); color: #1a0b00; box-shadow: var(--shadow-accent); }
.btn--accent:hover { background: var(--orange-600); color: #1a0b00; }
.btn--ghost { border: 1.5px solid var(--navy-100); color: var(--navy); background: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--white { background: #fff; color: var(--navy); box-shadow: var(--shadow-2); }
.btn--white:hover { color: var(--navy); }
.btn--outline-light { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn--sm { padding: 11px 20px; font-size: .875rem; }
.btn--lg { padding: 18px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn:focus-visible { box-shadow: 0 0 0 6px rgba(249,115,22,.4); }
p:has(> .btn + .btn) { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-gloss::after { content: ""; position: absolute; top: -50%; left: -70%; width: 40%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); pointer-events: none; opacity: 0; }
.btn-gloss:hover::after { animation: gloss 1s var(--ease-out) forwards; }
@keyframes gloss { 0% { left: -70%; opacity: 1; } 100% { left: 130%; opacity: 0; } }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--navy); }
.text-link .icon { width: 18px; height: 18px; transition: transform var(--dur-1) var(--ease-out); }
.text-link:hover .icon { transform: translateX(4px); }
.section--dark .text-link { color: var(--cyan-300); }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: var(--r-pill); font-family: var(--font-display); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--orange-100); color: var(--orange-700); }
.badge .icon { width: 14px; height: 14px; }
.badge--navy { background: var(--navy-50); color: var(--navy); }
.badge--glass { background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.35); color: var(--cyan-300); }
.badge--green { background: #dcfce7; color: #166534; }
.badge--optional { background: var(--navy-100); color: var(--navy-700); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-1); background: var(--surface); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--navy); white-space: nowrap; transition: transform var(--dur-1) var(--ease-out), border-color var(--dur-1), box-shadow var(--dur-1); }
.chip:hover { transform: translateY(-2px); border-color: var(--navy-100); box-shadow: var(--shadow-1); }
.chip .icon { width: 16px; height: 16px; color: var(--orange); }
.chip--dark { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: #fff; }
.chip--dark .icon { color: var(--cyan-300); }
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-block; padding: 4px 9px; border-radius: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--navy-50); color: var(--navy); }
.tag--optional { background: var(--orange-100); color: var(--orange-700); }
.tag--new { background: #dcfce7; color: #166534; }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); padding: 28px; box-shadow: var(--shadow-1); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-2); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--navy-100); }
.card--flat:hover { transform: none; box-shadow: var(--shadow-1); }
.card--navy { background: var(--navy); border-color: transparent; color: var(--on-dark); }
.card--navy h3, .card--navy h4 { color: #fff; }
.card--navy p { color: var(--on-dark-muted); }
.card--navy a { color: var(--cyan-300); }
.card--accent { background: var(--orange); border-color: transparent; color: #1a0b00; }
.card--accent h3 { color: #1a0b00; }
.card--glass { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1); color: var(--on-dark); }
.card--glass h3, .card--glass h4, .card--glass b { color: #fff; }
.card--glass p { color: var(--on-dark-muted); }
.card--glass:hover { border-color: rgba(255,255,255,.24); }
.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }
.card__title { font-size: 1.2rem; margin: 18px 0 8px; }
.card__text { color: var(--muted); font-size: .95rem; }
.card__more { margin-top: 18px; }
.card--tilt { transform-style: preserve-3d; will-change: transform; }
.card__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.25), transparent 60%); opacity: 0; transition: opacity var(--dur-1); }
.card--tilt:hover .card__glare { opacity: 1; }

/* ---------- Header / nav ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(246,244,239,.86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: background var(--dur-2), border-color var(--dur-2), box-shadow var(--dur-2); }
.site-header.is-scrolled { background: rgba(255,255,255,.9); border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(1,51,72,.2); }
.site-header__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height var(--dur-2) var(--ease-out); }
.site-header.is-scrolled .site-header__inner { height: 74px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 70px; width: auto; transition: height var(--dur-2) var(--ease-out); }
.site-header.is-scrolled .brand img { height: 56px; }
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--r-1); font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--navy); transition: background var(--dur-1), color var(--dur-1); }
.nav__link .icon { width: 14px; height: 14px; transition: transform var(--dur-1); }
.nav__link:hover, .nav__item.is-open > .nav__link, .nav__link.is-active { background: var(--navy-50); color: var(--navy); }
.nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-1); border: 1px solid var(--line); background: var(--surface); color: var(--navy); }
.burger .icon-x { display: none; }
.burger[aria-expanded="true"] .icon-menu { display: none; }
.burger[aria-expanded="true"] .icon-x { display: block; }
/* Mega panels */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 90; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(1,51,72,.35); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), visibility var(--dur-1); }
.nav__item.is-open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: 1fr 1fr 300px; gap: 32px; padding: 28px var(--gutter) 32px; }
.mega__inner--2 { grid-template-columns: 1fr 300px; }
.mega__col-title { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; padding-left: 12px; }
.mega__list { display: grid; gap: 2px; }
.mega__link { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-1); color: var(--ink); transition: background var(--dur-1); }
.mega__link:hover { background: var(--navy-50); color: var(--ink); }
.mega__link .icon-box { display: inline-grid; width: 40px; height: 40px; border-radius: 10px; }
.mega__link .icon-box .icon { width: 20px; height: 20px; }
.mega__link > span > b { display: block; font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--navy); }
.mega__link > span > span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mega__link.is-active b { color: var(--orange-700); }
.mega__feature { border-radius: var(--r-2); padding: 24px; background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: var(--on-dark); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 100%; }
.mega__feature h4 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.mega__feature p { font-size: .85rem; color: var(--on-dark-muted); }
/* Drawer (mobile) */
/* Full-height panel under the fixed header (z 95 < 100), so the burger/close button stays on top */
.drawer { position: fixed; inset: 0; z-index: 95; background: var(--surface); overflow-y: auto; overscroll-behavior: contain; padding: calc(var(--nav-h) + 8px) var(--gutter) calc(40px + env(safe-area-inset-bottom)); transform: translateX(100%); transition: transform var(--dur-2) var(--ease-out); }
.drawer.is-open { transform: none; }
.drawer[hidden] { display: none; }
.drawer__group, .drawer__cta { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.drawer.is-open .drawer__group, .drawer.is-open .drawer__cta { opacity: 1; transform: none; }
.drawer.is-open > :nth-child(2) { transition-delay: 30ms; } .drawer.is-open > :nth-child(3) { transition-delay: 60ms; } .drawer.is-open > :nth-child(4) { transition-delay: 90ms; } .drawer.is-open > :nth-child(5) { transition-delay: 120ms; } .drawer.is-open > :nth-child(6) { transition-delay: 150ms; }
body.drawer-open .site-header { background: var(--surface); border-color: var(--line); }
.burger[aria-expanded="true"] .icon-x { animation: burger-x var(--dur-1) var(--ease-out); }
@keyframes burger-x { from { opacity: 0; transform: rotate(-90deg) scale(.6); } }
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__btn { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 16px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.drawer__btn .icon { transition: transform var(--dur-1); }
.drawer__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.drawer__panel { display: none; padding: 0 0 12px; }
.drawer__panel.is-open { display: grid; gap: 2px; }
.drawer__link { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: var(--r-1); color: var(--ink); font-weight: 600; }
.drawer__link .icon { width: 20px; height: 20px; color: var(--orange); }
.drawer__link.is-active { background: var(--navy-50); color: var(--navy); }
.drawer__cta { margin-top: 20px; display: grid; gap: 10px; }
body.drawer-open { overflow: hidden; }
@media (min-width: 1024px) {
  .nav { display: block; }
  .burger { display: none; }
  .drawer { display: none !important; }
}
@media (max-width: 1023px) {
  :root { --nav-h: 76px; }
  .brand img { height: 54px; }
  .site-header__actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 clamp(56px, 7vw, 96px); }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__inner--center { grid-template-columns: 1fr; text-align: center; max-width: 860px; margin-inline: auto; }
.hero__inner--center .lead, .hero__inner--center .hero__ctas, .hero__inner--center .hero__micro { margin-left: auto; margin-right: auto; justify-content: center; }
.hero__copy .kicker { margin-bottom: 20px; }
.hero__copy .h-hero, .hero__copy .h1 { margin-bottom: 22px; }
.hero__copy .lead { margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__micro { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.hero__micro span { display: inline-flex; align-items: center; gap: 8px; }
.hero__micro .icon { width: 16px; height: 16px; color: var(--orange); }
.hero__visual { position: relative; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(1,51,72,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(1,51,72,.07) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%); }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero__grain { position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>"); }
.hero canvas[data-fx] { position: absolute; inset: 0; width: 100%; height: 100%; }
/* dark hero */
.hero--dark { background: var(--navy); color: var(--on-dark); }
.hero--dark h1 { color: #fff; }
.hero--dark .lead { color: var(--on-dark-muted); }
.hero--dark .kicker { color: var(--cyan-300); }
.hero--dark .kicker::before { background: var(--cyan); }
.hero--dark .hero__micro { color: var(--on-dark-muted); }
.hero--dark .hero__micro .icon { color: var(--cyan-300); }
.hero--dark .hero__grid { background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); }
.hero--dark .btn--ghost { border-color: rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.04); }
.hero--dark .btn--ghost:hover { border-color: #fff; }
/* load-in */
.js .hero__copy > * { animation: hero-in var(--dur-3) var(--ease-out) both; }
.js .hero__copy > *:nth-child(2) { animation-delay: .08s; }
.js .hero__copy > *:nth-child(3) { animation-delay: .16s; }
.js .hero__copy > *:nth-child(4) { animation-delay: .24s; }
.js .hero__copy > *:nth-child(5) { animation-delay: .32s; }
.js .hero__copy > h1 { animation-name: hero-rise; } /* headline is opaque from first paint (LCP); it only settles into place */
.js .hero__visual { animation: hero-in 1.1s var(--ease-out) .2s both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hero-rise { from { transform: translateY(14px); } to { transform: none; } }
/* navy visual block */
.visual-block { position: relative; border-radius: var(--r-3); background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); padding: 28px; color: var(--on-dark); box-shadow: var(--shadow-3); overflow: hidden; }
.visual-block::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -120px; top: -140px; background: radial-gradient(circle, rgba(34,211,238,.28), transparent 65%); pointer-events: none; }
.visual-block::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.visual-block > * { position: relative; z-index: 1; }
.float-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: .82rem; box-shadow: var(--shadow-2); animation: bob 5s ease-in-out infinite alternate; }
.float-chip .icon { width: 16px; height: 16px; color: var(--green); }
.float-chip--navy { background: var(--navy); border-color: transparent; color: #fff; }
.float-chip--navy .icon { color: var(--cyan-300); }
@keyframes bob { to { transform: translateY(-10px); } }

/* ---------- Mock panels (live-ops style) ---------- */
.mock { font-size: .9rem; }
.mock__head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mock__head b { font-family: var(--font-display); font-size: 1rem; color: #fff; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; color: var(--green-300); text-transform: uppercase; letter-spacing: .08em; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.mock__row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); min-width: 0; }
.mock__row > * { min-width: 0; }
.mock__row .pill { white-space: normal; text-align: center; }
.mock__row + .mock__row { margin-top: 8px; }
.mock__row .icon-box { width: 38px; height: 38px; border-radius: 10px; }
.mock__row .icon-box .icon { width: 18px; height: 18px; }
.mock__t { display: block; font-weight: 700; font-size: .88rem; color: #fff; overflow-wrap: anywhere; }
.mock__s { display: block; font-size: .76rem; color: var(--on-dark-muted); margin-top: 1px; overflow-wrap: anywhere; }
/* Row layouts (replace inline grid-template-columns): pair = text | pill or amount, trio = text | pill | amount
   (restacks on phones), qty = text | qty | pill, line = AI Order Upload line (sku | name | qty | pill) */
.mock__row--trio, .mock__row--qty { grid-template-columns: minmax(0, 1fr) auto auto; }
.mock__row--pair { grid-template-columns: minmax(0, 1fr) auto; }
.mock__amt { font-family: var(--font-display); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mock--light .mock__amt { color: var(--navy); }
.mock__row--line { grid-template-columns: 5.4rem minmax(0, 1fr) auto auto; grid-template-areas: "sku name qty pill"; }
.mock__row--line > .mock__sku { grid-area: sku; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; line-height: 1.3; }
.mock__row--line > .mock__name { grid-area: name; }
.mock__row--line > .mock__amt { grid-area: qty; }
.mock__row--line > .pill { grid-area: pill; justify-self: end; }
.mock__bar { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); margin-top: 8px; overflow: hidden; }
.mock__bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), #38bdf8); width: 60%; animation: fill 2.6s var(--ease-out) infinite alternate; }
@keyframes fill { from { width: 20%; } to { width: 94%; } }
.pill { font-size: .66rem; font-weight: 800; padding: 5px 9px; border-radius: var(--r-pill); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pill--green { background: rgba(74,222,128,.16); color: var(--green-300); }
.pill--cyan { background: rgba(34,211,238,.16); color: var(--cyan-300); }
.pill--amber { background: rgba(251,191,36,.16); color: var(--amber-300); }
.pill--light { background: var(--navy-50); color: var(--navy); }
.pill--orange { background: var(--orange-100); color: var(--orange-700); }
.mock__kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.mock__kpi { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; min-width: 0; container-type: inline-size; }
/* Value scales to its tile: --chars is the longest value in the row (set by the mock); plain rem first for old browsers */
.mock__kpi b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-size: clamp(.9rem, calc(100cqi / (var(--chars, 6) * .62)), 1.6rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.mock__kpi span { display: block; margin-top: 6px; font-size: .72rem; line-height: 1.35; color: var(--on-dark-muted); }
.mock__chart { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 12px; }
.mock__chart i { display: block; flex: 1; border-radius: 5px 5px 2px 2px; background: rgba(255,255,255,.25); transform-origin: bottom; animation: grow 1.4s var(--ease-out) both; }
.mock__chart i.hi { background: var(--orange); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.mock--light { color: var(--ink); }
.mock--light .mock__head b, .mock--light .mock__t { color: var(--navy); }
.mock--light .mock__row { background: var(--canvas); border-color: var(--line-2); }
.mock--light .mock__s { color: var(--muted); }
.mock--light .mock__kpi { background: var(--canvas); border-color: var(--line-2); }
.mock--light .mock__kpi b { color: var(--navy); }
.mock--light .mock__kpi span { color: var(--muted); }
.mock--light .mock__chart { border-color: var(--line); }
.mock--light .mock__chart i { background: var(--navy); }
.mock--light .mock__bar { background: var(--navy-50); }
.mock--light .live { color: #15803d; }
.device { position: relative; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); overflow: hidden; }
.device__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); background: #fbfaf7; }
.device__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.device__bar i:nth-child(1) { background: #fca5a5; } .device__bar i:nth-child(2) { background: #fde68a; } .device__bar i:nth-child(3) { background: #86efac; }
.device__url { margin-left: 10px; flex: 1; min-width: 0; height: 22px; border-radius: 6px; background: var(--canvas); font-size: .7rem; line-height: 22px; color: var(--muted-2); display: block; padding: 0 10px; font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device__body { padding: 20px; }

/* ---------- Benefits / stats ---------- */
.benefits { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 20px; }
.stat { padding: 26px 24px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.stat__value { display: block; font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--navy); }
.stat__value--word { display: flex; align-items: flex-end; min-height: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); font-size: clamp(1.35rem, .95rem + 1.1vw, 1.9rem); letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.stat__value small { font-size: .55em; color: var(--orange-700); margin-left: 2px; }
.stat__label { display: block; margin-top: 10px; font-size: .9rem; font-weight: 600; color: var(--muted); line-height: 1.4; }
.stat .icon-box { margin-bottom: 18px; }
.stat--line { background: transparent; border: 0; border-top: 2px solid var(--navy); border-radius: 0; padding: 22px 20px 22px 0; }
.benefits--line { gap: 0; }
.benefits--line .stat--line + .stat--line { border-left: 1px solid var(--line); padding-left: 24px; }
.section--dark .stat { background: rgba(255,255,255,.05); border-color: var(--line-dark); }
.section--dark .stat__value { color: #fff; }
.section--dark .stat__value small { color: var(--cyan-300); }
.section--dark .stat__label { color: var(--on-dark-muted); }
.proof-band { border-radius: var(--r-3); background: var(--navy); color: var(--on-dark); padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 44px) 24px; box-shadow: var(--shadow-3); position: relative; overflow: hidden; }
.proof-band::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; left: -160px; bottom: -300px; background: radial-gradient(circle, rgba(249,115,22,.35), transparent 65%); pointer-events: none; }
.proof-band > * { position: relative; }
.proof-band .benefits { gap: 24px; }
.proof-band .stat { background: transparent; border: 0; padding: 0; }
.proof-band .stat__value { color: #fff; }
.proof-band .stat__value small { color: var(--orange); }
.proof-band .stat__label { color: var(--on-dark-muted); }
.proof-band .logo-strip { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-dark); }

/* ---------- Logo strip / marquee ---------- */
.logo-strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(40px, 5vw, 72px); width: max-content; animation: marquee var(--marquee-dur, 32s) linear infinite; }
.logo-strip:hover .marquee__track, .marquee__track:focus-within { animation-play-state: paused; }
.logo-strip a { display: block; border-radius: 10px; }
.logo-strip a:focus-visible { outline-offset: -3px; box-shadow: none; } /* strip clips overflow: keep the ring inside */
.logo-strip--light a:focus-visible { outline-color: var(--navy); } /* ring sits on the white logo tile */
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-strip img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.logo-strip--light img { background: #fff; padding: 8px 14px; border-radius: 10px; height: 52px; max-width: 190px; }
.logo-strip--dark img { filter: grayscale(1); opacity: .75; transition: filter var(--dur-1), opacity var(--dur-1); }
.logo-strip--dark a:hover img { filter: none; opacity: 1; }
.logo-strip .logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; white-space: nowrap; color: rgba(255,255,255,.7); }
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 44px; }
.logo-grid img { height: 44px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter var(--dur-1), opacity var(--dur-1); }
.logo-grid a:hover img { filter: none; opacity: 1; }

/* ---------- Ticker ---------- */
.ticker { background: var(--navy-900); color: var(--orange); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); overflow: hidden; padding: 14px 0; }
.ticker__track { display: flex; gap: 0; width: max-content; animation: marquee var(--marquee-dur, 40s) linear infinite; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { padding: 0 22px; position: relative; }
.ticker__track span::after { content: ""; position: absolute; right: -3px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.35); transform: translateY(-50%); }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { position: relative; padding: 28px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-2); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--navy-100); }
.feature h3 { font-size: 1.15rem; margin: 18px 0 8px; }
.feature p { font-size: .95rem; color: var(--muted); }
.feature .tag { position: absolute; top: 20px; right: 20px; }
.feature--dark { background: rgba(255,255,255,.05); border-color: var(--line-dark); color: var(--on-dark); }
.feature--dark h3 { color: #fff; }
.feature--dark p { color: var(--on-dark-muted); }
.feature--dark::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -90px; top: -110px; background: radial-gradient(circle, rgba(34,211,238,.22), transparent 65%); pointer-events: none; }
.feature-list { display: grid; gap: 14px; }
.feature-row { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.feature-row h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature-row p { font-size: .93rem; color: var(--muted); }
.feature-row .tag { margin-left: 8px; vertical-align: middle; }

/* ---------- Module tiles ---------- */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.module { display: block; position: relative; padding: 26px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); color: var(--ink); overflow: hidden; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-2); }
.module:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--navy-100); color: var(--ink); }
.module__bg { position: absolute; right: -14px; top: -10px; width: 120px; height: 120px; color: var(--navy-50); pointer-events: none; transition: transform var(--dur-2) var(--ease-out), color var(--dur-2); }
.module:hover .module__bg { transform: rotate(-8deg) scale(1.08); color: var(--orange-100); }
.module__bg .icon { width: 100%; height: 100%; stroke-width: 1; }
.module h3 { font-size: 1.15rem; margin: 16px 0 8px; position: relative; }
.module p { font-size: .93rem; color: var(--muted); position: relative; }
.module .text-link { margin-top: 16px; position: relative; }
.module--navy { background: var(--navy); border-color: transparent; color: var(--on-dark); }
.module--navy h3 { color: #fff; }
.module--navy p { color: var(--on-dark-muted); }
.module--navy .module__bg { color: rgba(255,255,255,.08); }
.module--navy:hover { color: var(--on-dark); }
.module--navy:hover .module__bg { color: rgba(34,211,238,.25); }
.module--navy .text-link { color: var(--cyan-300); }
.module--accent { background: var(--orange); border-color: transparent; color: #1a0b00; }
.module--accent h3 { color: #1a0b00; }
.module--accent p { color: rgba(26,11,0,.75); }
.module--accent .module__bg { color: rgba(255,255,255,.3); }
.module--accent:hover { color: #1a0b00; }
.module--accent .text-link { color: #1a0b00; }

/* ---------- Story (sticky scroll) ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.story__steps { display: grid; gap: 12px; }
.story-step { padding: 22px 24px; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--surface); transition: border-color var(--dur-2), box-shadow var(--dur-2), transform var(--dur-2) var(--ease-out); }
.story-step__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-50); color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: .8rem; margin-bottom: 12px; transition: background var(--dur-2), color var(--dur-2); }
.story-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.story-step p { font-size: .95rem; color: var(--muted); }
.story-step.is-active { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-100), var(--shadow-2); transform: translateX(6px); }
.story-step.is-active .story-step__n { background: var(--orange); color: #1a0b00; }
.story__stage { position: sticky; top: calc(var(--nav-h) + 24px); }
.story__panels { position: relative; min-height: 420px; }
.story-panel { position: absolute; inset: 0; opacity: 0; transform: scale(.97) translateY(10px); transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); pointer-events: none; }
.story-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story-step__panel-mobile { display: none; }
.section--dark .story-step { background: rgba(255,255,255,.05); border-color: var(--line-dark); }
.section--dark .story-step h3 { color: #fff; }
.section--dark .story-step p { color: var(--on-dark-muted); }
.section--dark .story-step.is-active { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.15); }
.section--dark .story-step__n { background: rgba(255,255,255,.1); color: #fff; }
.section--dark .story-step.is-active .story-step__n { background: var(--cyan); color: var(--navy-900); }
@media (max-width: 1023px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-step { overflow: hidden; }
  .story__stage { display: none; }
  .story-step__panel-mobile { display: block; margin-top: 16px; }
  .story-step.is-active { transform: none; }
}

/* ---------- Related modules ---------- */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.related-card { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 22px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-2); }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--navy-100); color: var(--ink); }
.related-card > span > b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.related-card > span > span { font-size: .9rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); overflow: hidden; transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.faq__item[open] { border-color: var(--navy-100); box-shadow: var(--shadow-1); }
.faq__q { 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: 700; font-size: 1.02rem; color: var(--navy); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:focus-visible { outline-offset: -4px; border-radius: calc(var(--r-2) - 1px); box-shadow: none; } /* item clips overflow, so draw the ring inside */
.faq__q .icon { width: 22px; height: 22px; color: var(--orange); transition: transform var(--dur-1) var(--ease-out); flex: none; }
.faq__item[open] .faq__q .icon { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; color: var(--muted); line-height: 1.65; }
.faq__a p + p { margin-top: .8em; }
.faq__a a { text-decoration: underline; text-underline-offset: 3px; }
.faq__group-title { font-size: 1.3rem; margin: 40px 0 14px; display: flex; align-items: center; gap: 12px; }
.faq__group-title .icon { color: var(--orange); }
.js .faq__wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-2) var(--ease-out); }
.js .faq__item[open] .faq__wrap { grid-template-rows: 1fr; }
.js .faq__wrap > div { overflow: hidden; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-3); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); color: var(--on-dark); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); box-shadow: var(--shadow-3); }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -260px; background: radial-gradient(circle, rgba(34,211,238,.28), transparent 65%); pointer-events: none; }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; left: -180px; bottom: -280px; background: radial-gradient(circle, rgba(249,115,22,.3), transparent 65%); pointer-events: none; }
.cta-band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: 12px; }
.cta-band p { color: var(--on-dark-muted); font-size: 1.05rem; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.testimonial:nth-child(odd):last-child { grid-column: 1 / -1; }
.testimonial { position: relative; display: flex; flex-direction: column; margin: 0; padding: 30px 32px 28px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
/* Quote mark sits in the flow above the quote, so it never covers text */
.testimonial__mark { display: inline-grid; place-items: center; flex: none; align-self: flex-start; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--orange-100); color: var(--orange-700); }
.testimonial__mark .icon { width: 28px; height: 28px; stroke-width: 1.75; }
.testimonial blockquote { margin: 0; flex: 1; }
.testimonial p { max-width: 72ch; font-family: var(--font-display); font-weight: 500; font-size: 1.06rem; line-height: 1.65; letter-spacing: -.005em; color: var(--ink); }
.testimonial--long p { max-width: none; columns: 2 34ch; column-gap: 56px; white-space: pre-line; font-family: var(--font-body); font-weight: 400; font-size: 1.04rem; letter-spacing: 0; }
.testimonial__who { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.testimonial__avatar { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.testimonial__who b { display: block; font-family: var(--font-display); color: var(--navy); line-height: 1.3; }
.testimonial__role { display: block; margin-top: 2px; font-size: .85rem; line-height: 1.4; color: var(--muted); }
.testimonial--featured { grid-column: 1 / -1; padding: 40px; border-color: var(--navy-100); background: linear-gradient(180deg, #fff, var(--navy-50)); }
.section--dark .testimonial { background: rgba(255,255,255,.05); border-color: var(--line-dark); }
.section--dark .testimonial p { color: #fff; }
.section--dark .testimonial__who b { color: #fff; }
.section--dark .testimonial__role { color: var(--on-dark-muted); }
.section--dark .testimonial__who { border-color: var(--line-dark); }
.section--dark .testimonial__mark { background: rgba(34,211,238,.12); color: var(--cyan-300); }
.section--dark .testimonial__avatar { background: rgba(255,255,255,.1); }

/* ---------- Diagrams ---------- */
.diagram { position: relative; }
.diagram svg { width: 100%; height: auto; }
.diagram .d-line { fill: none; stroke: rgba(1,51,72,.35); stroke-width: 1.5; stroke-dasharray: 6 6; }
.diagram .d-line--draw { stroke-dasharray: 400; stroke-dashoffset: 400; }
.diagram.is-in .d-line--draw { animation: draw 1.6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.diagram .d-flow { fill: none; stroke: rgba(1,51,72,.35); stroke-width: 1.5; stroke-dasharray: 6 6; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.diagram .d-node { fill: #fff; stroke: var(--navy-100); stroke-width: 1.5; }
.diagram .d-node-t { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; fill: var(--navy); text-transform: uppercase; }
.diagram .d-hub { fill: var(--navy); stroke: var(--orange); stroke-width: 2; }
.diagram .d-hub-t { font-family: var(--font-display); font-weight: 700; font-size: 22px; fill: #fff; }
.diagram .d-hub-s { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; fill: var(--orange); }
.diagram .d-ring { fill: none; stroke: var(--orange); stroke-width: 1.5; opacity: .5; animation: spin 40s linear infinite; }
.diagram .d-ring2 { fill: none; stroke: rgba(1,51,72,.25); stroke-width: 1; stroke-dasharray: 2 8; animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.diagram .d-dot { fill: var(--orange); }
.diagram--dark .d-line, .diagram--dark .d-flow { stroke: rgba(255,255,255,.35); }
.diagram--dark .d-node { fill: var(--navy); stroke: rgba(255,255,255,.5); }
.diagram--dark .d-node-t { fill: #fff; }
.diagram--dark .d-ring2 { stroke: rgba(255,255,255,.25); }
.diagram--dark .d-hub { fill: var(--navy-900); }
.diagram .d-step { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.diagram .d-step-t { font-family: var(--font-display); font-weight: 700; font-size: 13px; fill: var(--navy); }
.diagram .d-step-s { font-family: var(--font-body); font-size: 11px; fill: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 16px; border-radius: var(--r-1); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--navy-50); }
.field textarea { min-height: 140px; resize: vertical; }
.form__note { font-size: .82rem; color: var(--muted); }
.form__error { padding: 12px 16px; border-radius: var(--r-1); background: #fef2f2; color: #991b1b; font-weight: 600; font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-panel__form { background: var(--surface); border-radius: var(--r-3); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-3); color: var(--ink); }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item + .contact-item { margin-top: 22px; }
.contact-item .icon-box { flex: none; }
.contact-item b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: #fff; }
.contact-item > div > span, .contact-item a { color: var(--on-dark-muted); }
.contact-item a:hover { color: #fff; }

/* ---------- Estimator ---------- */
.estimator { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.estimator__controls { display: grid; gap: 22px; }
.range { display: grid; gap: 8px; }
.range__head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-family: var(--font-display); font-size: .95rem; color: var(--navy); }
.range__head output { color: var(--orange-700); font-variant-numeric: tabular-nums; }
.range__hint { font-size: .8rem; color: var(--muted); }
.range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--orange) var(--pct, 50%), var(--navy-100) var(--pct, 50%)); outline: none; }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); box-shadow: var(--shadow-1); cursor: grab; }
.range input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); box-shadow: var(--shadow-1); cursor: grab; }
.range input[type="range"]:focus-visible { box-shadow: none; }
.range input[type="range"]:focus-visible::-webkit-slider-thumb { border-color: var(--orange-700); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--navy), 0 0 0 10px rgba(249,115,22,.3); }
.range input[type="range"]:focus-visible::-moz-range-thumb { border-color: var(--orange-700); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--navy), 0 0 0 10px rgba(249,115,22,.3); }
.estimator__results { border-radius: var(--r-3); background: var(--navy); color: var(--on-dark); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-3); position: relative; overflow: hidden; }
.estimator__results::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -120px; top: -160px; background: radial-gradient(circle, rgba(34,211,238,.25), transparent 65%); pointer-events: none; }
.estimator__results > * { position: relative; }
.estimator__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.estimator__kpi { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); min-width: 0; container-type: inline-size; }
/* --chars (longest value in the row, set by estimator.js) scales all three values together so none spills out of its tile */
.estimator__kpi b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); font-size: clamp(1rem, calc(100cqi / (var(--chars, 7) * .62)), 2.2rem); line-height: 1; letter-spacing: -.02em; white-space: nowrap; color: #fff; font-variant-numeric: tabular-nums; }
.estimator__kpi b small { font-size: .5em; color: var(--cyan-300); margin-left: 3px; }
.estimator__kpi > span { display: block; margin-top: 8px; font-size: .78rem; color: var(--on-dark-muted); }
.estimator__chart svg { width: 100%; height: auto; }
.estimator__chart .bar-bg { fill: rgba(255,255,255,.06); }
.estimator__chart .bar-lbl { font-family: var(--font-display); font-weight: 700; font-size: 12px; fill: #fff; }
.estimator__chart .bar-val { font-family: var(--font-display); font-weight: 700; font-size: 13px; fill: #fff; }
.estimator__chart .bar-key { font-family: var(--font-body); font-size: 11px; fill: var(--on-dark-muted); }
.estimator__chart rect.seg { transition: width var(--dur-3) var(--ease-out), x var(--dur-3) var(--ease-out); }
.estimator__assumptions { margin-top: 18px; border-top: 1px solid var(--line-dark); padding-top: 14px; font-size: .84rem; color: var(--on-dark-muted); }
.estimator__assumptions summary { cursor: pointer; font-weight: 700; color: #fff; list-style: none; display: flex; align-items: center; gap: 8px; }
.estimator__assumptions summary::-webkit-details-marker { display: none; }
.estimator__assumptions ul { margin-top: 10px; display: grid; gap: 6px; }
.estimator__assumptions li { display: flex; justify-content: space-between; gap: 12px; }
.estimator__assumptions li b { color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .icon { width: 14px; height: 14px; color: var(--muted-2); }
.breadcrumb [aria-current] { color: var(--navy); }
.hero--dark .breadcrumb, .hero--dark .breadcrumb a { color: var(--on-dark-muted); }
.hero--dark .breadcrumb [aria-current] { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--on-dark-muted); padding: clamp(48px, 6vw, 80px) 0 28px; border-top: 4px solid var(--orange); }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 32px; }
.footer__brand img { height: 66px; width: auto; margin-bottom: 20px; }
.footer__brand p { font-size: .92rem; max-width: 34ch; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); color: #fff; }
.footer__social a:hover { background: var(--orange); color: #1a0b00; border-color: transparent; }
.footer__title { font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer__list { display: grid; gap: 8px; font-size: .92rem; }
.footer__contact { display: grid; gap: 12px; font-size: .92rem; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { width: 18px; height: 18px; color: var(--orange); margin-top: 3px; }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: .82rem; }
.footer__bottom .links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-dark); font-size: .78rem; font-weight: 700; color: var(--on-dark-muted); }
.motion-toggle .icon { width: 14px; height: 14px; }
.motion-toggle:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.motion-toggle .when-on { display: none; }
html[data-motion="reduced"] .motion-toggle .when-on { display: inline; }
html[data-motion="reduced"] .motion-toggle .when-off { display: none; }

/* ---------- Tables (report library, hardware) ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--font-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.table td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.table-wrap .table th, .table-wrap .table td { padding: 16px 20px; }
.table-wrap .table tr:last-child td { border-bottom: 0; }

/* ---------- Portfolio ---------- */
.portfolio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-card { position: relative; }
.site-card > a { position: relative; display: block; }
.site-card .device { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.site-card:hover .device { box-shadow: 0 50px 90px -30px rgba(1,51,72,.5); }
.site-card__shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--canvas); }
.site-card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 6s var(--ease-in-out); }
.site-card:hover .site-card__shot img { transform: translateY(calc(-1 * var(--pan, 0%))); }
.site-card__phone { position: absolute; right: 14px; bottom: 14px; width: 24%; border-radius: 18px; border: 5px solid var(--navy-900); background: var(--navy-900); overflow: hidden; box-shadow: var(--shadow-3); aspect-ratio: 9 / 18.5; }
.site-card__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.site-card__meta { margin-top: 26px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.site-card__meta h3 { font-size: 1.2rem; }
.site-card__meta .tag { margin-top: 6px; }
.site-card__meta p { margin-top: 10px; font-size: .93rem; color: var(--muted); }

/* ---------- Timeline (onboarding) ---------- */
.timeline { display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--navy-100); }
.timeline__item { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 18px 0; position: relative; }
.timeline__n { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; box-shadow: 0 0 0 6px var(--canvas); position: relative; }
.timeline__item h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.timeline__item p { color: var(--muted); }

/* ---------- Effects (JS-gated) ---------- */
.js [data-reveal] { opacity: 0; transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), filter var(--dur-3) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
.js [data-reveal="up"] { transform: translateY(28px); }
.js [data-reveal="left"] { transform: translateX(-28px); }
.js [data-reveal="right"] { transform: translateX(28px); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="blur"] { filter: blur(8px); transform: translateY(12px); }
@media (max-width: 1023px) { .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(28px); } } /* sideways reveals widen the page on phones */
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease-out); }
[data-tilt]:hover { transition: transform .06s linear; }
[data-glow] { position: relative; }
[data-glow]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(34,211,238,.18), transparent 60%); opacity: 0; transition: opacity var(--dur-2); z-index: 0; }
[data-glow]:hover::before { opacity: 1; }
[data-glow] > * { position: relative; z-index: 1; }
[data-magnetic] { will-change: transform; }
.section--lazy { content-visibility: auto; contain-intrinsic-size: 1px 800px; }

/* ---------- Page transition ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms var(--ease-out) both fade-out; }
::view-transition-new(root) { animation: 220ms var(--ease-out) both fade-in; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); }
.notice { padding: 16px 20px; border-radius: var(--r-2); background: var(--orange-50); border: 1px solid var(--orange-100); color: var(--orange-700); font-weight: 600; font-size: .92rem; display: flex; gap: 12px; align-items: flex-start; }
.notice .icon { flex: none; }
.assure { display: inline-flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--r-2); background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-size: .92rem; font-weight: 600; }
.assure .icon { color: var(--green); }
.section--dark .assure { background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.25); color: #bbf7d0; }
.section--dark .assure .icon { color: #4ade80; }
.thanks-card { max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(32px, 5vw, 56px); border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); }
.thanks-card .icon-box { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 24px; background: #dcfce7; color: #16a34a; animation: pop .6s var(--ease-out) both; }
.thanks-card .icon-box .icon { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(0); opacity: 0; } 70% { transform: scale(1.08); } to { transform: scale(1); opacity: 1; } }
.big-num { font-family: var(--font-display); font-size: clamp(5rem, 4rem + 8vw, 11rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--navy-100); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4, .benefits, .features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .mega__inner { grid-template-columns: 1fr 1fr; }
  .mega__feature { display: none; }
}
@media (max-width: 900px) {
  .hero__inner, .split, .split--wide-left, .split--wide-right, .estimator, .contact-panel, .cta-band__inner, .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .hero__visual, .hero__copy, .story__steps, .story-step, .story-step__panel-mobile, .split > *, .estimator > *, .contact-panel > * { min-width: 0; }
  .cta-band__actions { justify-content: flex-start; }
  .grid-3, .features, .modules, .related, .testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid-2, .grid-3, .grid-4, .features, .features--2, .modules, .related, .testimonials, .form__row, .check-list--cols { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr 1fr !important; gap: 14px; }
  .stat { padding: 18px 16px; min-width: 0; }
  .stat__value { font-size: 1.55rem; overflow-wrap: anywhere; }
  .testimonial--featured, .testimonial:nth-child(odd):last-child { grid-column: auto; }
  .testimonial, .testimonial--featured { padding: 24px 22px 22px; }
  .benefits--line .stat--line + .stat--line { border-left: 0; padding-left: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__ctas .btn { width: 100%; }
  .btn--lg { padding: 16px 24px; }
  .estimator__kpis { grid-template-columns: 1fr; }
  .site-card__phone { right: 0; }
  .float-chip { display: none; }
  .table-wrap .table th, .table-wrap .table td { padding: 12px 14px; }
  p:has(> .btn + .btn) > .btn { width: 100%; }
  .mock__kpis { gap: 8px; }
  .mock__kpi { padding: 10px; }
  .mock__row--line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "sku pill" "name qty"; row-gap: 6px; }
  .mock__row--line > .mock__amt { justify-self: end; }
}
@media (max-width: 480px) {
  /* till totals: subtotal + VAT side by side, total to pay full width */
  .mock__kpis--total { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock__kpis--total .mock__kpi:last-child { grid-column: 1 / -1; }
  /* text | pill | amount rows: amount top right, pill under it, text keeps the full left column */
  .mock__row--trio { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main amt" "main pill"; row-gap: 6px; }
  .mock__row--trio > :nth-child(1) { grid-area: main; }
  .mock__row--trio > :nth-child(2) { grid-area: pill; justify-self: end; }
  .mock__row--trio > :nth-child(3) { grid-area: amt; justify-self: end; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .marquee__track, .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track .dup, .ticker__track .dup { display: none; }
  .logo-strip { -webkit-mask-image: none; mask-image: none; }
  [data-tilt] { transform: none !important; }
  [data-glow]::before { display: none; }
  .hero canvas[data-fx] { display: none; }
  .story-panel { transition: none; }
}
html[data-motion="reduced"] { scroll-behavior: auto; }
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html[data-motion="reduced"].js [data-reveal] { opacity: 1; transform: none; filter: none; }
html[data-motion="reduced"] .marquee__track, html[data-motion="reduced"] .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
html[data-motion="reduced"] .marquee__track .dup, html[data-motion="reduced"] .ticker__track .dup { display: none; }
html[data-motion="reduced"] .logo-strip { -webkit-mask-image: none; mask-image: none; }
html[data-motion="reduced"] [data-tilt] { transform: none !important; }
html[data-motion="reduced"] [data-glow]::before { display: none; }
html[data-motion="reduced"] .hero canvas[data-fx] { display: none; }

/* ---------- Pipeline (order lifecycle) ---------- */
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.pipeline__step { position: relative; padding: 22px 16px 20px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.pipeline__step::after { content: ""; position: absolute; right: -12px; top: 50%; width: 12px; border-top: 2px dashed var(--navy-100); }
.pipeline__step:last-child::after { display: none; }
.pipeline__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; margin-bottom: 12px; position: relative; }
.pipeline__icon::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; animation: pulse-ring 2.4s var(--ease-out) infinite; }
.pipeline__step:nth-child(2) .pipeline__icon::before { animation-delay: .4s; } .pipeline__step:nth-child(3) .pipeline__icon::before { animation-delay: .8s; } .pipeline__step:nth-child(4) .pipeline__icon::before { animation-delay: 1.2s; } .pipeline__step:nth-child(5) .pipeline__icon::before { animation-delay: 1.6s; } .pipeline__step:nth-child(6) .pipeline__icon::before { animation-delay: 2s; }
@keyframes pulse-ring { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.pipeline__step b { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--navy); }
.pipeline__sub { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }
@media (max-width: 1023px) { .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pipeline__step:nth-child(3n)::after { display: none; } }
@media (max-width: 640px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pipeline__step:nth-child(3n)::after { display: block; } .pipeline__step:nth-child(2n)::after { display: none; } }

/* ---------- Filter pills ---------- */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-pills button { padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--navy); transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1); }
.filter-pills button:hover { border-color: var(--navy); }
.filter-pills button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.modules [hidden] { display: none; }

/* ---------- Sector cards ---------- */
.sector-card { position: relative; display: block; padding: 28px; border-radius: var(--r-2); background: var(--navy); color: var(--on-dark); overflow: hidden; min-height: 240px; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.sector-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); color: var(--on-dark); }
.sector-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at 100% 0%, rgba(249,115,22,.35), transparent 60%); opacity: .8; transition: opacity var(--dur-2); }
.sector-card:hover::before { opacity: 1; }
.sector-card > * { position: relative; }
.sector-card .icon-box { background: rgba(255,255,255,.1); color: #fff; margin-bottom: 40px; }
.sector-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.sector-card p { font-size: .92rem; color: var(--on-dark-muted); }
.sector-card .text-link { color: var(--cyan-300); margin-top: 16px; }
.sector-card--light { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.sector-card--light::before { background: radial-gradient(420px circle at 100% 0%, var(--orange-100), transparent 60%); }
.sector-card--light .icon-box { background: var(--navy-50); color: var(--navy); }
.sector-card--light h3 { color: var(--navy); }
.sector-card--light p { color: var(--muted); }
.sector-card--light .text-link { color: var(--navy); }
.sector-card--light:hover { color: var(--ink); }

/* ---------- Integration groups ---------- */
.int-group { padding: 28px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.int-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.int-group__head h3 { font-size: 1.25rem; }
.int-group__head .count { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: .8rem; padding: 6px 10px; border-radius: var(--r-pill); background: var(--orange-100); color: var(--orange-700); }
.int-group > p { color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.int-list { display: grid; gap: 10px; }
.int-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px dashed var(--line); font-size: .92rem; color: var(--muted); }
.int-list li b { font-family: var(--font-display); color: var(--navy); white-space: nowrap; }
.int-list li .tag { margin-left: 6px; vertical-align: middle; }
.int-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.section--dark .chip { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: #fff; }
.section--dark .chip .icon { color: var(--cyan-300); }

/* ---------- Report library ---------- */
.report-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.report-group { padding: 22px 24px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.report-group h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.report-group h3 .icon { color: var(--orange); }
.report-group p { font-size: .9rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 700px) { .report-groups { grid-template-columns: 1fr; } }

/* ---------- Styleguide helpers ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.swatch { border-radius: var(--r-1); border: 1px solid var(--line); overflow: hidden; font-size: .78rem; }
.swatch i { display: block; height: 64px; }
.swatch span { display: block; padding: 8px 10px; background: var(--surface); font-family: var(--font-mono); letter-spacing: 0; text-transform: none; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.icon-grid div { display: grid; place-items: center; gap: 8px; padding: 12px 6px; border-radius: var(--r-1); background: var(--surface); border: 1px solid var(--line); font-size: .7rem; color: var(--muted); font-family: var(--font-mono); }

/* ---------- Hero mocks A: moved to include/css/hero-mocks-a.css (inlined per page) ---------- */
/* ---------- Hero mocks B: moved to include/css/hero-mocks-b.css (inlined per page) ---------- */
/* ---------- Hero mocks C: moved to include/css/hero-mocks-c.css (inlined per page) ---------- */
/* ---------- Customer story shots ---------- */
/* /customers story cards: a 16:10 homepage shot in the /portfolio browser frame (.device, .site-card__shot),
   or a logo-on-navy tile built on the same frame so every header in a row is the same height. */
.story-card { display: flex; flex-direction: column; }
.story-card > .badge, .story-card > .card__more { align-self: flex-start; }
.story-card > .card__more { margin-top: auto; padding-top: 18px; }
.story-card__media { display: block; margin: -12px -12px 24px; border-radius: 12px; }
.story-card__media .device { border-radius: 12px; box-shadow: var(--shadow-1); transition: box-shadow var(--dur-2); }
.story-card:hover .story-card__media .device { box-shadow: var(--shadow-2); }
.story-card__media .site-card__shot img { transform-origin: 50% 0; transition: transform var(--dur-3) var(--ease-out); }
.story-card:hover .story-card__media .site-card__shot img { transform: scale(1.04); }
.story-tile { background: radial-gradient(360px circle at 100% 0%, rgba(249,115,22,.32), transparent 62%), var(--navy); border-color: var(--navy); }
.story-tile::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.story-tile .device__bar, .story-tile .site-card__shot { visibility: hidden; }
.story-tile__logo { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.story-tile__logo img { width: min(58%, 260px); height: auto; padding: clamp(12px, 2.2vw, 20px) clamp(16px, 3vw, 28px); background: #fff; border-radius: 12px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); }
@media (max-width: 640px) { .story-card__media { margin: -10px -10px 20px; } }
@media (prefers-reduced-motion: reduce) { .story-card:hover .story-card__media .site-card__shot img { transform: none; } }
html[data-motion="reduced"] .story-card:hover .story-card__media .site-card__shot img { transform: none; }
/* end customer story shots */
