/* =====================================================================
   Wayne Commerce — styles
   Typography & tokens mirror the original design system (Aktiv Grotesk VF)
   ===================================================================== */

@font-face {
  font-family: "Aktiv Grotesk VF";
  src: url("https://framerusercontent.com/assets/tdJon95dAbkVwAbKotlHOrttLPc.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}
@font-face {
  font-family: "Aktiv Grotesk VF Placeholder";
  src: local("Arial");
  ascent-override: 97.43%;
  descent-override: 27.65%;
  line-gap-override: 0%;
  size-adjust: 102.33%;
}
/* Wordmark face — the same display serif used for the Legora logotype, applied
   here to the Wayne Commerce name in the navbar and footer only. */
@font-face {
  font-family: "Wordmark Serif";
  src: url("https://framerusercontent.com/assets/fR0d7ps1P039mpwaNgnimyXixc.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --font: "Aktiv Grotesk VF", "Aktiv Grotesk VF Placeholder", sans-serif;
  --font-wordmark: "Wordmark Serif", Georgia, "Times New Roman", serif;
  --bg: #fafaf9;
  --ink: #0d1016;
  --ink-soft: #343434;
  --gray: #68655e;
  --gray-2: #8f8d8a;
  --gray-3: #6b6b6b;
  --light: #e6e6e6;
  --sand: #e1dfda;
  --border: #d0cdc8;
  --border-dark: #343434;
  --green: #0a0a0a;
  --green-deep: #000000;
  --white: #ffffff;
  --ease: cubic-bezier(0.625, 0.05, 0, 1);
  --container: 1680px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, h4, h5 { margin: 0; }

/* ---------- Typography presets ---------- */
.h1 { font-size: 3.75rem; line-height: 1.05; letter-spacing: -0.04em; font-weight: 400; font-variation-settings: "wght" 450; }
.h3 { font-size: 2.75rem; line-height: 1.05; letter-spacing: -0.03em; font-weight: 400; font-variation-settings: "wght" 450; text-wrap: balance; }
.h4 { font-size: 2.25rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 400; font-variation-settings: "wght" 450; }
.h5 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 400; font-variation-settings: "wght" 450; }
.lead { font-size: 1rem; line-height: 1.4; font-variation-settings: "wght" 440; }
.small { font-size: 0.88rem; line-height: 1.4; font-variation-settings: "wght" 440; }
.xs { font-size: 12px; line-height: 1.4; font-variation-settings: "wght" 400; }
.caption { font-size: 13px; line-height: 1.3; }
.caption--muted { color: #595959; }

@media (max-width: 746px) {
  .h1 { font-size: 3rem; }
  .h3 { font-size: 2rem; }
  .h4 { font-size: 1.75rem; }
  .small, .lead, .xs { font-size: 14px; }
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; }
.section { padding: 30px 24px; display: flex; flex-direction: column; align-items: center; }
.section-header { display: flex; flex-direction: column; gap: 30px; width: 100%; }
.section-header .lead { max-width: 640px; }
.section-header--center { align-items: center; text-align: center; padding: 0 30px; }
.section-header--center .lead { max-width: 560px; }

.spacer { width: 100%; height: 200px; pointer-events: none; user-select: none; }
.spacer--s { height: 30px; }
.spacer--m { height: 60px; }
.spacer--l { height: 90px; }
.spacer--xl { height: 120px; }
.spacer--xxl { height: 200px; }
@media (max-width: 1024px) { .spacer--xxl { height: 160px; } .spacer--xl { height: 104px; } .spacer--l { height: 72px; } }
@media (max-width: 746px) { .spacer--xxl { height: 120px; } .spacer--xl { height: 90px; } .spacer--l { height: 60px; } .spacer--m { height: 30px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0; padding: 5px; border-radius: 48px;
  white-space: nowrap; cursor: pointer; transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.btn__label { padding: 0 10px; font-size: .88rem; line-height: 1.4; font-variation-settings: "wght" 440; }
.btn__icon {
  width: 30px; height: 30px; border-radius: 48px; display: grid; place-items: center;
  background: var(--white); color: var(--ink); transition: transform .35s var(--ease);
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-deep); }
.btn--secondary { background: var(--light); color: var(--ink); }
.btn--secondary:hover { background: #dcdcdc; }
.btn:hover .btn__icon { transform: translateX(2px); }

/* Arrow link "↳ Read more" */
.arrow-link { display: inline-flex; align-items: center; color: var(--gray); transition: color .3s var(--ease); cursor: pointer; }
.arrow-link__space { opacity: 0; width: .35em; }
.arrow-link:hover { color: var(--ink); }
.arrow-link--dark { color: var(--ink); }
.arrow-link--dark:hover { color: var(--gray); }
.arrow-link--light { color: rgba(255,255,255,.6); }
.arrow-link--light:hover { color: var(--white); }
.arrow-link--gray { color: var(--gray-2); }
.arrow-link--gray:hover { color: var(--white); }
.arrow-link--h4 .arrow-link__space { width: .3em; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100; height: 72px;
  padding: 15px 9px; color: var(--white);
  transition: background-color .4s var(--ease), color .4s var(--ease), backdrop-filter .4s;
}
.navbar__inner { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 1710px; margin: 0 auto; position: relative; }
.navbar__left, .navbar__right { display: flex; align-items: center; flex: 1 0 0; }
.navbar__right { justify-content: flex-end; gap: 10px; }
.navlink { display: flex; align-items: center; height: 40px; padding: 10px 15px; font-size: .88rem; font-variation-settings: "wght" 440; border-radius: 16px 16px 0 0; opacity: 1; transition: opacity .25s; }
.navlink:hover { opacity: .65; }
.wordmark {
  font-family: var(--font-wordmark); font-size: 21px; letter-spacing: .005em; text-transform: uppercase; white-space: nowrap;
  display: flex; align-items: center; height: 40px; padding: 0 10px;
}
.navbar.scrolled, .navbar.navbar--solid { background: rgba(250,250,249,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--ink); }
.navbar.scrolled .btn--primary, .navbar.navbar--solid .btn--primary { color: var(--white); }
.burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.burger span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.burger.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
/* Full-screen mobile menu: sits under the bar, fades/slides in, locks page scroll */
.mobile-menu {
  position: fixed; left: 0; right: 0; top: 0; z-index: -1;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 96px 16px calc(24px + env(safe-area-inset-bottom));
  background: var(--bg); color: var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}
.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__links a {
  display: block; padding: 14px 0; font-size: 1.75rem; line-height: 1.15; letter-spacing: -.02em;
  font-variation-settings: "wght" 450; border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.mobile-menu__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; }
.mobile-menu__footer .btn { width: 100%; justify-content: space-between; }
.mobile-menu__footer .btn__label { font-size: 1rem; padding: 0 12px; }
.navbar.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s; }
.navbar.menu-open .mobile-menu__links a { opacity: 1; transform: none; }
.navbar.menu-open .mobile-menu__links a:nth-child(2) { transition-delay: .04s; }
.navbar.menu-open .mobile-menu__links a:nth-child(3) { transition-delay: .08s; }
.navbar.menu-open .mobile-menu__links a:nth-child(4) { transition-delay: .12s; }
.navbar.menu-open .mobile-menu__links a:nth-child(5) { transition-delay: .16s; }
.navbar.menu-open { background: var(--bg); color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-lock { overflow: hidden; }
.navbar.menu-open .navbar__cta { opacity: 0; visibility: hidden; }
.navbar__cta { transition: opacity .3s var(--ease), visibility .3s, background-color .3s var(--ease); }

@media (max-width: 1024px) {
  .navbar__left, .navbar__right .navlink { display: none; }
  .navbar__inner { justify-content: space-between; }
  .burger { display: flex; }
  .wordmark { padding-left: 6px; }
}
@media (min-width: 1025px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; width: 100%; min-height: 520px; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 30px 30px 60px; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; background: #2a2f33; }
.hero__poster, .hero__video, .roi__poster, .roi__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster img, .roi__poster img, .hero__video, .roi__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* Videos fade in over their poster once they actually play (they load after the page is ready) */
.hero__video, .roi__video { opacity: 0; transition: opacity .8s var(--ease); }
.hero__video.is-playing, .roi__video.is-playing { opacity: 1; }
/* Deeper bottom fade: the montage has bright shots (website, checkout) under the white headline */
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 14%, rgba(0,0,0,.14) 45%, rgba(0,0,0,.42) 72%, rgba(0,0,0,.66) 100%); }
.hero__title, .hero__sub { text-shadow: 0 2px 28px rgba(0,0,0,.3); }
.hero__container { position: relative; z-index: 2; width: 100%; max-width: 1728px; display: flex; flex-direction: column; gap: 90px; }
.hero__text { display: flex; flex-direction: column; align-items: center; gap: 30px; width: 100%; color: var(--white); }
.hero__title { text-align: center; text-wrap: balance; width: 100%; }
/* Words animate from the first paint (pure CSS), so the headline never waits on JavaScript */
.hero__title .w { display: inline-block; animation: wordIn .9s var(--ease) both; animation-delay: calc(.1s + var(--i, 0) * .09s); }
/* 0.001 (not 0) keeps the words an LCP candidate from the first paint — same trick Framer uses */
@keyframes wordIn { from { opacity: 0.001; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__stack { display: flex; align-items: center; gap: 15px; }
.hero__sub { white-space: pre; }
@media (max-width: 746px) {
  .hero { padding: 30px 15px 60px; }
  .hero__stack { flex-direction: column; gap: 30px; }
  .hero__sub { white-space: normal; text-align: center; }
}

/* Generic appear animation (initial load) */
[data-appear] { animation: appearIn .8s var(--ease) both; animation-delay: var(--delay, 0s); }
@keyframes appearIn { from { opacity: 0.001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- cOS section ---------- */
.cos { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 60px; }
.cos__container { width: 100%; max-width: var(--container); display: flex; flex-direction: column; align-items: center; }
.cos__stack { width: 100%; padding: 0 30px; }
.cos__grid { display: flex; gap: 60px; width: 100%; }
.cos__left { flex: 1 0 0; }
.cos__left .lead { max-width: 560px; }
.cos__right { flex: 1 0 0; display: flex; justify-content: flex-end; }
@media (max-width: 746px) { .cos__grid { flex-direction: column; gap: 30px; } .cos__right { justify-content: flex-start; } .cos__stack { padding: 0 16px; } }

/* Scroll-driven sticky stage */
.scrollvideo { position: relative; width: 100%; max-width: 1728px; height: 400vh; }
.scrollvideo__sticky { position: sticky; top: 0; width: 100%; height: 100vh; overflow: hidden; background: #ececec; }
.scrollvideo__progress { position: absolute; left: 0; bottom: 0; z-index: 8; padding: 0 0 30px 24px; }
.progress-pill { height: 30px; padding: 0 12px; border-radius: 32px; background: rgba(0,0,0,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; }
.progress-track { width: 80px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.4); overflow: hidden; position: relative; }
.progress-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; border-radius: 5px; background: #fff; transform: translateX(-80px); will-change: transform; }

/* ---- 3D glass stack (cOS layers) ---- */
.stack-scene {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(180deg, #d6d6d6 0%, #e6e6e6 38%, #f3f3f3 72%, #fbfbfb 100%);
  perspective: 3400px; perspective-origin: 50% 38%;
}
.stack-cam { position: absolute; left: 50%; top: 57%; width: 0; height: 0; transform-style: preserve-3d; }
.stack-stage { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(var(--rz, 45deg)); }
.stack-group { position: absolute; left: 0; top: 0; transform-style: preserve-3d; --fin: 0; }
.slab {
  position: absolute; left: calc(var(--w) / -2); top: calc(var(--h) / -2); width: var(--w); height: var(--h);
  transform-style: preserve-3d; will-change: transform;
}
.slice {
  position: absolute; inset: 0; border-radius: var(--r);
  transform: translateZ(calc(var(--t) * var(--k)));
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(228,228,228,.12);
}
.slice--bottom {
  border: 2px solid rgba(18,18,18, calc(.82 - .6 * var(--fin)));
  background: rgba(110,110,110, calc(.2 - .12 * var(--fin)));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.slice--top {
  border: 1.5px solid rgba(255,255,255,.95);
  background: linear-gradient(135deg, rgba(255,255,255,.8) 0%, rgba(206,206,206,.64) 52%, rgba(228,228,228,.72) 100%);
  box-shadow: inset 0 0 calc(var(--w) * .05) rgba(255,255,255,.75), inset 0 0 0 1px rgba(0,0,0,.06);
}
.slab__label {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-size: var(--fs); line-height: 1.1; letter-spacing: -.01em; color: #151515; white-space: nowrap;
  font-variation-settings: "wght" 450;
  filter: blur(var(--blur, 0px)); opacity: var(--lo, 1);
}
.tile .slice--top { background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(222,222,222,.78)); }
.tile .slab__label { white-space: normal; padding: 0 8%; }
.plate--lid .slice--top { background: linear-gradient(135deg, rgba(255,255,255,.9) 0%, rgba(225,225,225,.8) 55%, rgba(240,240,240,.86) 100%); }
.plate--lid .slice { background: rgba(245,245,245,.2); }
.slab__label--brand { font-size: calc(var(--fs) * 3.2); letter-spacing: -.04em; opacity: var(--brand, 0); filter: none; color: #5d5d5d; }
.enclosure .slice { border: 1.5px solid rgba(255,255,255,.85); background: rgba(255,255,255,.1); opacity: var(--fin); }
.enclosure .slice--bottom, .enclosure .slice--top { border-color: rgba(255,255,255,.9); background: rgba(255,255,255,.14); box-shadow: none; }
.stack-shadow {
  position: absolute; left: calc(var(--w) / -2); top: calc(var(--w) / -2); width: var(--w); height: var(--w);
  border-radius: 12%; background: rgba(0,0,0,.28); filter: blur(calc(var(--w) * .07));
  transform: translate3d(3%, 3%, -2px); opacity: 0;
}

/* ---- Layer pills ---- */
.cos-nav { position: absolute; top: 0; left: 0; z-index: 7; padding: 90px 24px 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; max-width: 100%; }
.pill {
  display: flex; flex-direction: column; width: var(--cw, auto); max-width: calc(100vw - 48px);
  padding: 10px 10px 10px 15px; border-radius: 24px; color: var(--white); overflow: hidden;
  background: rgba(0,0,0,.5); backdrop-filter: blur(27.5px); -webkit-backdrop-filter: blur(27.5px);
  transition: width .55s var(--ease), padding .55s var(--ease), background-color .3s var(--ease);
}
.pill:hover { background: rgba(0,0,0,.58); }
.pill__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pill__label { font-size: .88rem; line-height: 1.4; font-variation-settings: "wght" 440; white-space: nowrap; transition: color .4s var(--ease), padding .55s var(--ease); }
.pill__icon { width: 20px; height: 20px; flex: none; border-radius: 48px; background: rgba(255,255,255,.25); display: grid; place-items: center; transition: opacity .3s var(--ease), transform .45s var(--ease); }
.pill__icon i { width: 10px; height: 10px; position: relative; display: block; }
.pill__icon i::before, .pill__icon i::after { content: ""; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pill__icon i::before { width: 8px; height: 1.2px; }
.pill__icon i::after { width: 1.2px; height: 8px; }
.pill__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.pill__body > div { min-height: 0; overflow: hidden; }
.pill__desc { padding: 10px 10px 5px; font-size: 1rem; line-height: 1.4; font-variation-settings: "wght" 440; opacity: 0; transition: opacity .3s var(--ease); width: 450px; max-width: calc(100vw - 78px); }
.pill.open { width: 480px; padding: 15px; }
.pill.open .pill__label { color: rgba(255,255,255,.72); padding-left: 10px; }
.pill.open .pill__icon { opacity: 0; transform: scale(.5) rotate(90deg); }
.pill.open .pill__body { grid-template-rows: 1fr; }
.pill.open .pill__desc { opacity: 1; transition-delay: .15s; }
@media (max-width: 746px) {
  .cos-nav { padding: 84px 15px 15px; }
  .cos-nav.has-open .pill:not(.open) { display: none; }
  .pill.open { width: calc(100vw - 30px); }
  .pill__desc { font-size: 14px; }
  .scrollvideo__progress { padding: 0 0 20px 15px; }
  .stack-cam { top: 68%; }
}

/* ---------- Innovation cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, minmax(50px, 1fr)); gap: 40px 32px; width: 100%; }
.card { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.card__media { aspect-ratio: .8; width: 100%; overflow: hidden; position: relative; background: var(--light); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__text { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.card__headline { color: var(--ink); }
.card__text .small:not(.arrow-link) { max-width: 480px; }
.card:hover .arrow-link { color: var(--ink); }
@media (max-width: 1024px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 746px) { .cards-grid { grid-template-columns: 1fr; } }

/* ---------- Carousel ---------- */
.carousel { position: relative; width: 100%; overflow: visible; }
.carousel__controls { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 60px; }
.carousel__arrow { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; color: var(--ink); transition: opacity .3s; }
.carousel__arrow:hover { opacity: .6; }
.carousel__dots { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 5px; padding: 10px; border-radius: 99px; background: var(--light); }
.dot { position: relative; width: 5px; height: 5px; border-radius: 99px; background: rgba(13,16,22,.25); overflow: hidden; cursor: pointer; transition: width .5s var(--ease); }
.dot.active { width: 24px; }
.dot__fill { position: absolute; inset: 0; border-radius: 99px; background: var(--ink); transform-origin: left center; transform: scaleX(0); }
.dot.active .dot__fill { animation: dotfill 5s linear forwards; }
.carousel.paused .dot.active .dot__fill { animation-play-state: paused; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.carousel__viewport { position: relative; width: 100%; overflow: visible; }
.carousel__track { display: flex; align-items: flex-start; gap: 60px; transform: translate3d(0,0,0); transition: transform .5s var(--ease); will-change: transform; }
.slide { position: relative; flex: 0 0 252px; width: 252px; display: flex; flex-direction: column; gap: 15px; cursor: pointer; transition: flex-basis .5s var(--ease), width .5s var(--ease); will-change: width, flex-basis; user-select: none; }
.slide.active { flex-basis: 470.4px; width: 470.4px; cursor: default; }
.slide__media { aspect-ratio: .8; width: 100%; overflow: hidden; position: relative; padding: 15px; }
.slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.slide__overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(rgba(0,0,0,.4) 0%, rgba(67,81,112,.2) 15%, rgba(0,0,0,0) 100%); }
.slide__label { position: relative; z-index: 3; color: var(--white); white-space: pre; }
.slide__text { display: flex; flex-direction: column; gap: 30px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; height: 0; overflow: hidden; }
.slide.active .slide__text { opacity: 1; transform: none; pointer-events: auto; height: auto; overflow: visible; transition-delay: .15s; }
@media (max-width: 746px) {
  .slide { flex-basis: 200px; width: 200px; }
  .slide.active { flex-basis: min(320px, calc(100vw - 48px)); width: min(320px, calc(100vw - 48px)); }
  .carousel__track { gap: 24px; }
  .carousel__controls { margin-bottom: 30px; }
}

/* ---------- ROI ---------- */
.roi { position: relative; width: 100%; height: 100vh; max-height: 1080px; padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 30px; overflow: hidden; color: var(--white); }
.roi__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.roi__eyebrow { margin-bottom: 10px; }
.roi__eyebrow .small { color: rgba(255,255,255,.6); }
.roi__text .h4 { max-width: 800px; text-wrap: balance; }
.roi__text .arrow-link { margin-top: 15px; }
.roi__media { position: absolute; inset: -1px 0 0 0; z-index: 1; background: #1f2a33; }
/* Soft vignette behind the centred headline so white text stays legible over bright decks and sky */
.roi__overlay { position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(ellipse 60% 45% at 50% 50%, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 100%),
  linear-gradient(rgba(0,0,0,.5) 0%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.28) 100%); }
.roi__text .h4 { text-shadow: 0 1px 28px rgba(0,0,0,.28); }

/* ---------- Vision ---------- */
.vision { background: var(--sand); width: 100%; padding: 30px 24px; display: flex; flex-direction: column; align-items: center; }
.vision__container { width: 100%; max-width: var(--container); }
.vision__stack { display: flex; gap: 15px; width: 100%; align-items: stretch; }
.vision__left { flex: 1 0 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.vision__founders { width: 75%; display: flex; gap: 20px; margin-top: 60px; }
.founder { flex: 1 0 0; display: flex; flex-direction: column; gap: 12px; cursor: pointer; }
.founder__photo { aspect-ratio: 1; width: 100%; border-radius: 6px; overflow: hidden; background: var(--border); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.founder:hover .founder__photo img { transform: scale(1.04); }
.founder:hover .caption:not(.caption--muted) { text-decoration: underline; text-underline-offset: .2em; }
.vision__caption { display: flex; flex-direction: column; gap: 2px; }
.vision__right { flex: 1 0 0; display: flex; flex-direction: column; align-items: flex-end; gap: 48px; }
.vision__text { display: flex; gap: 15px; width: 100%; }
.vision__col { flex: 1 0 0; padding-right: 8px; display: flex; flex-direction: column; gap: 1em; color: var(--ink-soft); }
.vision__image { aspect-ratio: 1.25; width: 100%; border-radius: 2px; overflow: hidden; }
.vision__image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) {
  .vision__stack { flex-direction: column; gap: 60px; }
  .vision__founders { width: 80%; margin-top: 40px; }
}
@media (max-width: 746px) { .vision__text { flex-direction: column; } .vision__founders { width: 100%; } }
.founder__link { margin-top: 6px; color: #595959; transition: color .2s; }
.founder:hover .founder__link { color: #111; text-decoration: underline; text-underline-offset: .2em; }
.founder:focus:not(:focus-visible) { outline: none; }

/* ---------- Security ---------- */
.security { background: var(--ink); color: var(--white); width: 100%; padding: 30px 24px 90px; display: flex; flex-direction: column; align-items: center; gap: 60px; }
.security__left { width: 100%; }
.security__text { display: flex; flex-direction: column; gap: 60px; padding-right: 60px; }
.security__headline { max-width: 860px; text-wrap: balance; display: flex; flex-direction: column; gap: 15px; align-items: flex-start; }
.security__sub { color: var(--light); max-width: 33%; text-wrap: balance; }
.cert-grid { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; border: 1px solid var(--border-dark); }
.cert { aspect-ratio: 1; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--border-dark); }
.cert:last-child { border-right: 0; }
.cert__text { display: flex; flex-direction: column; gap: 5px; }
.cert__text .xs { color: var(--light); }
.cert__badge { width: 48px; height: 48px; color: var(--white); }
.cert__badge svg { width: 100%; height: 100%; font-family: var(--font); }
@media (max-width: 1024px) {
  .security__sub { max-width: 60%; }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .cert { aspect-ratio: auto; min-height: 220px; border-bottom: 1px solid var(--border-dark); }
  .cert:nth-child(3n) { border-right: 0; }
  .cert:last-child { border-right: 1px solid var(--border-dark); }
}
@media (max-width: 746px) {
  .security__text { padding-right: 0; gap: 30px; }
  .security__sub { max-width: 100%; }
  .cert-grid { grid-template-columns: 1fr; }
  .cert, .cert:last-child, .cert:nth-child(3n) { border-right: 0; }
  .cert { min-height: 0; gap: 24px; }
}

/* ---------- FAQ ---------- */
.faq__grid { display: flex; gap: 60px; width: 100%; align-items: flex-start; }
.faq__intro { flex: 1 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; position: sticky; top: 120px; }
.faq__lead { max-width: 420px; color: var(--ink-soft); }
.faq__list { flex: 1 0 0; border-bottom: 1px solid var(--border); }
.faq__item { border-top: 1px solid var(--border); }
.faq__q-wrap { margin: 0; font: inherit; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%;
  padding: 22px 0; text-align: left; cursor: pointer;
  font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; font-variation-settings: "wght" 450; color: var(--ink);
}
.faq__icon {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 48px; background: var(--light);
  transition: background-color .3s var(--ease), transform .45s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink);
  transform: translate(-50%, -50%); transition: transform .45s var(--ease);
}
.faq__icon::before { width: 10px; height: 1.2px; }
.faq__icon::after { width: 1.2px; height: 10px; }
.faq__item.open .faq__icon { background: var(--ink); }
.faq__item.open .faq__icon::before, .faq__item.open .faq__icon::after { background: var(--white); }
.faq__item.open .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
/* Answers are readable without JS; the script adds .faq--js to collapse them */
.faq__a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s var(--ease); }
.faq__a > div { min-height: 0; overflow: hidden; }
.faq__a p { max-width: 640px; padding: 0 54px 24px 0; color: var(--ink-soft); transition: opacity .35s var(--ease); }
.faq--js .faq__item:not(.open) .faq__a { grid-template-rows: 0fr; }
.faq--js .faq__item:not(.open) .faq__a p { opacity: 0; }
.faq__item.open .faq__a p { transition-delay: .1s; }
@media (hover: hover) {
  .faq__q:hover .faq__icon { transform: rotate(90deg); }
  .faq__item.open .faq__q:hover .faq__icon { transform: none; }
}
@media (max-width: 1024px) {
  .faq__grid { flex-direction: column; gap: 40px; }
  .faq__intro { position: static; }
  .faq__list { width: 100%; }
}
@media (max-width: 746px) {
  .faq__intro { gap: 16px; }
  .faq__q { font-size: 1.0625rem; padding: 18px 0; gap: 16px; min-height: 56px; }
  .faq__icon { width: 28px; height: 28px; }
  .faq__a p { padding: 0 0 20px; }
}

/* ---------- CTA ---------- */
.cta-section { width: 100%; padding: 200px 30px; display: flex; justify-content: center; align-items: center; background: var(--bg); }
.cta { width: 100%; max-width: 1080px; background: var(--green-deep); border-radius: 15px; padding: 15px; display: flex; gap: 15px; align-items: center; color: var(--white); overflow: hidden; position: relative; }
.cta__left { flex: 1 0 0; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 15px; gap: 30px; }
.cta__text { display: flex; flex-direction: column; gap: 30px; }
.cta__text .h4 { max-width: 80%; }
.cta__text .xs { max-width: 70%; text-wrap: balance; }
.cta__illustration { flex: 1 0 0; aspect-ratio: 1; border-radius: 5px; overflow: hidden; }
.cta__illustration img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cta:hover .cta__illustration img { transform: scale(1.03); }
@media (max-width: 746px) {
  .cta-section { padding: 90px 16px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta__left { padding: 15px 0; width: 100%; }
  .cta__text .h4, .cta__text .xs { max-width: 100%; }
  .cta__illustration { width: 100%; flex: none; }
}

/* ---------- Footer ---------- */
.footer { background: var(--white); color: var(--green); width: 100%; min-height: 800px; padding: 30px 24px; display: flex; flex-direction: column; align-items: center; gap: 60px; overflow: hidden; }
.footer__top { display: flex; gap: 60px; width: 100%; max-width: var(--container); }
.footer__col { width: 240px; display: flex; flex-direction: column; gap: 15px; }
.footer__label { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; cursor: default; pointer-events: none; }
.footer__plus { display: none; }
.footer__links-inner { display: flex; flex-direction: column; gap: 5px; }
.footer__links a, .footer__group a { font-size: .88rem; font-variation-settings: "wght" 440; }
.footer__links a:hover, .footer__group a:hover { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.footer__logo { flex: 1 0 0; width: 100%; max-width: var(--container); display: flex; justify-content: center; align-items: center; padding: 0 0 60px; }
.footer__wordmark { font-family: var(--font-wordmark); font-size: clamp(40px, 8.6vw, 148px); line-height: 1; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.footer__wordmark[data-reveal] { transform: translateY(10px); }
.footer__bottom { display: flex; justify-content: space-between; width: 100%; max-width: var(--container); gap: 15px; }
.footer__group { display: flex; gap: 15px; align-items: center; font-size: .88rem; }
@media (max-width: 1024px) {
  .footer { min-height: 0; gap: 0; padding: 30px 16px; }
  .footer__top { flex-direction: column; gap: 0; }
  .footer__col { width: 100%; gap: 0; }
  .footer__col .footer__label { padding: 15px 0; }
  .footer__links-inner { gap: 15px; padding: 0 0 30px; }
  /* Accordion (enabled by JS so links stay visible if scripts fail) */
  .footer--accordion .footer__col { border-top: 1px solid rgba(10,10,10,.1); }
  .footer--accordion .footer__col:last-child { border-bottom: 1px solid rgba(10,10,10,.1); }
  .footer--accordion .footer__label { pointer-events: auto; cursor: pointer; padding: 18px 0; font-size: 1rem; }
  .footer--accordion .footer__plus { display: block; position: relative; width: 12px; height: 12px; flex: none; }
  .footer--accordion .footer__plus::before, .footer--accordion .footer__plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
  .footer--accordion .footer__plus::before { width: 12px; height: 1.2px; }
  .footer--accordion .footer__plus::after { width: 1.2px; height: 12px; }
  .footer--accordion .footer__col.open .footer__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
  .footer--accordion .footer__links { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
  .footer--accordion .footer__links-inner { min-height: 0; overflow: hidden; padding: 0; transition: padding .45s var(--ease); }
  .footer--accordion .footer__col.open .footer__links { grid-template-rows: 1fr; }
  .footer--accordion .footer__col.open .footer__links-inner { padding-bottom: 22px; }
  .footer__logo { order: 0; padding: 90px 0 60px; }
  .footer__bottom { flex-direction: column; }
  .footer__group { flex-direction: column; align-items: flex-start; gap: 5px; padding-bottom: 20px; }
  .footer__group:last-child { align-items: center; width: 100%; padding: 60px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  [data-appear], [data-reveal], .hero__title .w { opacity: 1 !important; transform: none !important; }
}

.cta__left .btn { align-self: flex-start; }

/* =====================================================================
   Mobile & touch
   ===================================================================== */

/* Clip horizontal bleed (carousel peeks, flying 3D tiles) at the screen edge so
   the layout viewport never grows wider than the device. `clip` does not create
   a scroll container, so the sticky cOS stage keeps working. */
main, .footer, .teams { overflow-x: clip; }

a, button { -webkit-tap-highlight-color: transparent; }
button, .btn, .pill, .carousel__arrow, .footer__label { touch-action: manipulation; }

@media (max-width: 746px) {
  /* Navbar: wordmark + compact CTA + burger fit a 360px screen */
  .navbar { height: 64px; padding: 12px 8px; }
  .wordmark { font-size: 16px; padding: 0 6px; }
  .navbar__right { gap: 2px; }
  .navbar__cta { padding: 3px; }
  .navbar__cta .btn__label { padding: 0 8px 0 10px; font-size: 13px; }
  .navbar__cta .btn__icon { width: 26px; height: 26px; }
  .burger { width: 44px; height: 44px; }
  .mobile-menu { padding-top: 88px; }

  /* Hero: keep the CTA clear of the iOS home indicator */
  .hero { padding: 30px 16px calc(44px + env(safe-area-inset-bottom)); }
  .hero__container { gap: 60px; }

  /* Tighter vertical rhythm on small screens */
  .spacer--xxl { height: 96px; }
  .spacer--xl { height: 72px; }
  .spacer--l { height: 48px; }
  .spacer--m { height: 30px; }
  .section { padding: 24px 16px; }
  .section-header { gap: 20px; }
  .section-header--center { padding: 0 4px; }
  .cos__stack { padding: 0 16px; }

  /* cOS: shorter scroll track, lighter blur for GPU headroom while scrubbing */
  .scrollvideo { height: 340vh; }
  .pill { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

  /* Innovations: swipeable row instead of four tall stacked cards */
  .cards-grid {
    display: flex; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    gap: 14px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none;
  }
  .cards-grid::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 80%; scroll-snap-align: start; }
  .card__text { gap: 16px; }

  /* Carousel: 44px tap targets, vertical scrolling stays native */
  .carousel__arrow { width: 44px; height: 44px; margin: -10px; }
  .carousel__track { touch-action: pan-y; }

  /* ROI: a statement band, not a full screen */
  .roi { height: 78vh; height: 78svh; min-height: 460px; padding: 24px 16px; }

  /* Vision */
  .vision { padding: 24px 16px 48px; }
  .vision__stack { gap: 40px; }
  .vision__founders { gap: 12px; margin-top: 32px; }
  .vision__right { gap: 32px; }

  /* Security: compact rows with the badge beside the text */
  .security { padding: 24px 16px 72px; }
  .cert { display: grid; grid-template-columns: 1fr 40px; align-items: start; gap: 16px; padding: 20px 16px; }
  .cert__badge { width: 40px; height: 40px; }
  .cert:last-child { border-bottom: 0; }

  /* CTA */
  .cta-section { padding: 72px 16px; }
  .cta { border-radius: 12px; }
  .cta__left { gap: 24px; }

  /* Footer bottom: wrapping rows instead of one link per line */
  .footer__group { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-bottom: 18px; }
  .footer__group:last-child { justify-content: center; padding-top: 40px; }
  .footer__logo { padding: 64px 0 48px; }
  /* Scale the footer wordmark to the screen width (text is ~9.73em wide) */
  .footer__wordmark { font-size: calc((100vw - 32px) / 9.8); }
}
/* Narrow phones: drop the CTA arrow so wordmark, CTA and burger share one row */
@media (max-width: 380px) {
  .navbar__cta .btn__icon { display: none; }
  .navbar__cta .btn__label { padding: 3px 10px; }
}

/* Very narrow phones (iPhone SE 1st gen, small Androids): the hero CTA covers it */
@media (max-width: 359px) {
  .navbar__cta { display: none; }
}

/* Portrait tablets: same stacked layout as phones (open pill on top, stack below) */
@media (min-width: 747px) and (max-width: 1024px) and (orientation: portrait) {
  .cos-nav.has-open .pill:not(.open) { display: none; }
  .stack-cam { top: 64%; }
}

/* Short landscape phones: hero fits one screen; open pill left, stack right */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; padding-bottom: 24px; }
  .hero .h1 { font-size: 2.5rem; }
  .hero__text { gap: 16px; }
  .hero__container { gap: 20px; }
  .cos-nav { padding-top: 72px; }
  .cos-nav.has-open .pill:not(.open) { display: none; }
  .pill.open { width: 360px; }
  .pill__desc { width: 330px; font-size: 14px; }
  .stack-cam { left: 68%; top: 62%; }
}

/* Touch screens: no zoom that sticks after a tap */
@media (hover: none) {
  .card:hover .card__media img,
  .cta:hover .cta__illustration img,
  .founder:hover .founder__photo img,
  .btn:hover .btn__icon { transform: none; }
}

/* =====================================================================
   Cookie consent (Consent Mode v2)
   Shown in the first paint when no choice is stored (head script adds
   html.consent-pending), so it never delays LCP.
   ===================================================================== */
.consent {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, .45); outline: none;
}
html.consent-pending .consent { display: flex; animation: consentFade .45s var(--ease) both; }
html.consent-pending body { overflow: hidden; }
.consent.is-closing { animation: consentOut .35s var(--ease) both; }
@keyframes consentFade { from { opacity: 0.001; } to { opacity: 1; } }
@keyframes consentOut { to { opacity: 0; } }

.consent__card {
  width: 100%; max-width: 540px; max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--white); color: var(--ink); border-radius: 2px;
  padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
  animation: consentRise .5s var(--ease) both;
}
.consent.is-closing .consent__card { animation: consentSink .35s var(--ease) both; }
@keyframes consentRise { from { transform: translateY(12px); } to { transform: none; } }
@keyframes consentSink { to { transform: translateY(8px); } }

.consent__title { font-size: 1rem; line-height: 1.4; font-variation-settings: "wght" 440; margin-bottom: 6px; }
.consent__text { font-size: .9rem; line-height: 1.5; color: var(--gray); }
.consent__link { color: var(--ink); white-space: nowrap; }
.consent__link:hover { text-decoration: underline; text-underline-offset: .2em; }

/* Details: category descriptions, expand in place */
.consent__details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.consent__details > div { min-height: 0; overflow: hidden; }
.consent__details dl { margin: 0; padding-top: 16px; display: grid; grid-template-columns: 90px 1fr; gap: 8px 16px; font-size: 13px; line-height: 1.45; }
.consent__details dt { color: var(--ink); }
.consent__details dd { margin: 0; color: var(--gray); }
.consent.show-details .consent__details { grid-template-rows: 1fr; }

.consent__rule { border: 0; border-top: 1px solid #dcdcdc; margin: 22px 0 24px; }

/* Toggles */
.consent__toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.consent__toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; user-select: none; }
.consent__toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.consent__switch {
  position: relative; flex: none; width: 50px; height: 28px; border-radius: 99px;
  background: var(--light); transition: background-color .3s var(--ease);
}
.consent__switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  transition: transform .35s var(--ease);
}
.consent__toggle input:checked + .consent__switch { background: var(--green); }
.consent__toggle input:checked + .consent__switch::after { transform: translateX(22px); }
.consent__toggle input:disabled + .consent__switch { cursor: not-allowed; }
.consent__toggle:has(input:disabled) { cursor: default; }
.consent__toggle input:focus-visible + .consent__switch { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Actions */
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.consent__btn {
  padding: 5px 20px; border-radius: 48px; background: var(--light); color: var(--ink);
  font-size: 1rem; line-height: 1.4; font-variation-settings: "wght" 440;
  transition: background-color .25s var(--ease);
}
.consent__btn:hover { background: #d9d9d9; }
.consent__btn:focus-visible, .consent__more:focus-visible, .consent__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.consent__more { margin-left: auto; font-size: 13px; color: var(--gray); padding: 6px 0; }
.consent__more:hover { color: var(--ink); }

@media (max-width: 746px) {
  .consent { align-items: flex-end; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
  .consent__card { padding: 20px 18px; }
  .consent__rule { margin: 18px 0 6px; }
  /* One toggle per row: label left, switch right */
  .consent__toggles { flex-direction: column; align-items: stretch; gap: 0; }
  .consent__toggle { justify-content: space-between; padding: 10px 0; font-size: 14px; }
  .consent__toggle + .consent__toggle { border-top: 1px solid #eeeeee; }
  .consent__actions { margin-top: 16px; gap: 8px; }
  .consent__btn { flex: 1 1 auto; padding: 8px 14px; font-size: 15px; }
  .consent__more { flex-basis: 100%; margin-left: 0; text-align: center; padding: 8px 0 0; }
  .consent__details dl { grid-template-columns: 1fr; gap: 2px; }
  .consent__details dd { margin-bottom: 8px; }
}

/* =====================================================================
   Book a demo page (/book-a-demo)
   ===================================================================== */
body.demo-page { background: var(--white); overflow-x: hidden; }
.demo { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; }

/* Left: blurred image, headline, next steps */
.demo__aside {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; padding: 28px 40px 44px; color: var(--white); background: #2a2f33;
}
.demo__bg { position: absolute; inset: 0; z-index: 0; }
.demo__bg img { position: absolute; inset: -48px; width: calc(100% + 96px); height: calc(100% + 96px); max-width: none; object-fit: cover; filter: blur(18px) saturate(1.15); transform: scale(1.04); }
.demo__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.22) 40%, rgba(0,0,0,.45) 100%); }
.demo__header, .demo__intro, .demo__note--aside { position: relative; z-index: 1; }
.demo__header { display: flex; align-items: center; gap: 44px; }
.demo__wordmark { padding: 0; height: auto; color: var(--white); }
.demo__nav { display: flex; gap: 32px; }
.demo__nav a { font-size: 1rem; opacity: .92; transition: opacity .25s; }
.demo__nav a:hover { opacity: .6; }
.demo__intro { margin-top: clamp(56px, 11vh, 120px); max-width: 600px; }
.demo__title { font-size: clamp(3rem, 5.2vw, 5.4rem); line-height: 1; letter-spacing: -.045em; font-weight: 400; font-variation-settings: "wght" 450; animation: appearIn .9s var(--ease) both; }
.demo__sub { margin-top: 28px; font-size: 1.2rem; line-height: 1.35; letter-spacing: -.01em; max-width: 520px; animation: appearIn .9s var(--ease) .12s both; }
.demo__steps { list-style: none; margin: 48px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.22); display: flex; flex-direction: column; gap: 10px; font-size: .88rem; line-height: 1.45; opacity: .9; animation: appearIn .9s var(--ease) .24s both; }
.demo__steps li { display: flex; gap: 14px; }
.demo__steps span { font-variant-numeric: tabular-nums; opacity: .6; }
.demo__note { font-size: .82rem; line-height: 1.6; }
.demo__note a { text-decoration: underline; text-underline-offset: .2em; }
.demo__note--aside { margin-top: auto; max-width: 560px; opacity: .88; }
.demo__note--form { display: none; }

/* Right: form */
.demo__main { display: flex; align-items: center; justify-content: center; padding: 96px 48px 64px; }
.demo__panel { width: 100%; max-width: 660px; }
.demo__heading { font-size: 2.25rem; line-height: 1.15; letter-spacing: -.025em; font-weight: 400; font-variation-settings: "wght" 450; }
.demo__lead { margin-top: 14px; font-size: .95rem; line-height: 1.5; color: var(--gray); }
.demo-form { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: .95rem; line-height: 1.3; margin-bottom: 10px; font-variation-settings: "wght" 440; }
.field__optional { color: #6b6965; font-size: .85em; }
.field__input {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid #e6e6e6; border-radius: 8px;
  background: #f4f4f3; color: var(--ink); font: inherit; font-size: 1rem; outline: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field__input::placeholder { color: #9b9b9b; }
.field__input:hover { border-color: #d6d6d6; }
.field__input:focus { background: var(--white); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,10,10,.08); }
.field__select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.25l4 4 4-4' fill='none' stroke='%230d1016' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field__select:invalid { color: #9b9b9b; }
.field__select option { color: var(--ink); }
.field__error { min-height: 0; margin-top: 0; font-size: 12.5px; line-height: 1.35; color: #b3261e; }
.field__error:not(:empty) { margin-top: 7px; }
.field.is-invalid .field__input { border-color: #b3261e; background: #fff7f6; }
.demo-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo-form__footer { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin-top: 10px; }
.demo-form__submit .btn__label { font-size: 1rem; padding: 4px 12px 4px 14px; }
.demo-form__submit[disabled] { opacity: .6; cursor: progress; }
.demo-form__status { font-size: .88rem; color: #b3261e; }

/* Success */
.demo__success { display: flex; flex-direction: column; align-items: flex-start; gap: 0; outline: none; animation: appearIn .7s var(--ease) both; }
.demo__success[hidden] { display: none; }
.demo__success-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; margin-bottom: 28px; }
.demo__success .arrow-link { margin-top: 32px; }

@media (max-width: 1024px) {
  .demo__nav { display: none; }
  .demo__main { padding: 72px 32px 56px; }
  .demo-form { gap: 22px 20px; }
}
@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; }
  .demo__aside { position: relative; height: auto; min-height: 0; padding: 20px 16px 36px; }
  .demo__intro { margin-top: 56px; }
  .demo__title { font-size: 3rem; }
  .demo__sub { margin-top: 18px; font-size: 1.05rem; }
  .demo__steps { margin-top: 28px; }
  .demo__note--aside { display: none; }
  .demo__note--form { display: block; grid-column: 1 / -1; color: var(--gray); margin-top: 4px; }
  .demo__main { padding: 44px 16px 56px; }
  .demo__heading { font-size: 1.75rem; }
  .demo-form { margin-top: 32px; }
}
@media (max-width: 560px) {
  .demo-form { grid-template-columns: 1fr; gap: 20px; }
  .field__input { height: 52px; font-size: 16px; } /* 16px stops iOS zooming into fields */
  .demo-form__submit { width: 100%; justify-content: space-between; }
}

/* Book a demo — desktop: both halves locked to the viewport, nothing moves on scroll.
   Vertical spacing scales with the window height so the whole form fits; on very short
   windows the form column scrolls on its own instead of the page (safe centering via margin:auto). */
@media (min-width: 861px) {
  body.demo-page { overflow: hidden; }
  .demo { height: 100vh; height: 100svh; min-height: 0; overflow: hidden; }
  .demo__aside { position: relative; height: 100%; padding: clamp(18px, 3vh, 28px) 40px clamp(22px, 5vh, 44px); }
  .demo__intro { margin-top: clamp(24px, 8vh, 120px); }
  .demo__title { font-size: clamp(2.5rem, min(5.2vw, 9.5vh), 5.4rem); }
  .demo__sub { margin-top: clamp(12px, 3vh, 28px); }
  .demo__steps { margin-top: clamp(18px, 5vh, 48px); padding-top: clamp(12px, 2vh, 20px); }

  .demo__main { height: 100%; overflow-y: auto; overscroll-behavior: contain; align-items: flex-start; padding: clamp(14px, 6vh, 96px) clamp(32px, 4vw, 48px); }
  .demo__panel { margin: auto 0; }
  .demo__heading { font-size: clamp(1.45rem, 3.6vh, 2.25rem); }
  .demo__lead { margin-top: clamp(6px, 1.2vh, 14px); }
  .demo-form { margin-top: clamp(12px, 4vh, 44px); row-gap: clamp(7px, 2.4vh, 26px); }
  .field__label { margin-bottom: clamp(4px, 1vh, 10px); }
  .field__input { height: clamp(34px, 5.2vh, 50px); }
  .demo-form__footer { margin-top: clamp(2px, 1vh, 10px); }
}
/* Short desktop windows: drop the next-steps list so the left side stays uncluttered */
@media (min-width: 861px) and (max-height: 640px) {
  .demo__steps { display: none; }
}
/* Very short desktop windows: compact labels; below 560px the intro sentence gives way to the fields */
@media (min-width: 861px) and (max-height: 640px) {
  .field__label { font-size: .85rem; margin-bottom: 3px; }
  .demo-form { row-gap: 6px; }
  .demo-form__footer { margin-top: 0; }
}
@media (min-width: 861px) and (max-height: 560px) {
  .demo__lead { display: none; }
}

/* =====================================================================
   cOS product page (/cos)
   ===================================================================== */
.cos-hero { width: 100%; padding: 190px 24px 90px; display: flex; justify-content: center; text-align: center; }
.cos-hero__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cos-hero__sub { color: var(--ink-soft); margin-bottom: 8px; }
.cos-page .scrollvideo { margin: 0 auto; }
.system { width: 100%; padding: 140px 24px 120px; display: flex; justify-content: center; }
.system__inner { width: 100%; max-width: var(--container); }
.system__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 96px; align-items: end; margin-bottom: 120px; }
.system__head .h3 { max-width: 13em; }
.system__head .lead { max-width: 34rem; color: var(--ink-soft); }
.features { display: flex; flex-direction: column; gap: 140px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; align-items: center; }
.feature--flip .feature__media { order: 2; }
.feature__media { aspect-ratio: 1; width: 100%; max-width: 676px; border-radius: 6px; overflow: hidden; background: #e7e7e4; }
.feature--flip .feature__media { justify-self: end; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature__text { max-width: 30rem; display: flex; flex-direction: column; align-items: flex-start; }
.feature__sub { color: #595959; margin-top: 12px; }
.feature__body { margin-top: 28px; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.feature__link { margin-top: 24px; }
@media (max-width: 1024px) {
  .cos-hero { padding: 150px 20px 64px; }
  .system { padding: 96px 20px 88px; }
  .system__head { grid-template-columns: 1fr; margin-bottom: 72px; }
  .features { gap: 88px; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature--flip .feature__media { order: 0; justify-self: start; }
  .feature__media { max-width: none; }
}
@media (max-width: 746px) {
  .cos-hero { padding: 128px 16px 48px; }
  .cos-hero .h1 { font-size: 2.6rem; }
  .system { padding: 72px 16px 72px; }
  .system__head .h3 { font-size: 2rem; }
  .features { gap: 72px; }
  .feature { gap: 24px; }
}

/* =====================================================================
   Legal and trust pages (/privacy, /cookies, /terms, /security)
   ===================================================================== */
.legal-page { width: 100%; display: flex; justify-content: center; padding: 168px 24px 140px; }
.legal { width: 100%; max-width: 760px; }
.legal--wide { max-width: 1100px; }
.legal__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 56px; }
.legal__eyebrow { color: #595959; }
.legal__lead { color: var(--ink-soft); max-width: 40rem; }
.legal__toc { border-top: 1px solid var(--border, #e2e2df); border-bottom: 1px solid var(--border, #e2e2df); padding: 22px 0; margin-bottom: 56px; }
.legal__toc ol { margin: 12px 0 0; padding-left: 1.2em; columns: 2; column-gap: 40px; font-size: .92rem; line-height: 1.9; }
.legal__toc a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgba(0,0,0,.25); }
.legal__toc a:hover { text-decoration-color: currentColor; }
.legal__section { margin-bottom: 44px; scroll-margin-top: 96px; }
.legal__h2 { font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.01em; font-variation-settings: "wght" 480; margin-bottom: 14px; }
.legal__section p, .legal__section li { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }
.legal__section p + p { margin-top: 12px; }
.legal__section ul { margin: 12px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }
.legal__section a { text-decoration: underline; text-underline-offset: .2em; }
.legal__section strong { color: var(--ink, #111); font-variation-settings: "wght" 520; }
.legal__table { overflow-x: auto; margin-top: 18px; border: 1px solid var(--border, #e2e2df); border-radius: 8px; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.legal__table th, .legal__table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border, #e2e2df); vertical-align: top; color: var(--ink-soft); }
.legal__table th { font-variation-settings: "wght" 520; color: var(--ink, #111); background: rgba(0,0,0,.025); }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__table code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 72px; }
.trust-card { background: var(--sand); border-radius: 8px; padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.trust-card .small { color: var(--ink-soft); line-height: 1.55; }
.legal--wide .legal__section { max-width: 760px; }
@media (max-width: 746px) {
  .legal-page { padding: 120px 16px 96px; }
  .legal__toc ol { columns: 1; }
  .trust-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Blog (/blog and /blog/<post>)
   ===================================================================== */
.blog-page, .post-page { width: 100%; display: flex; justify-content: center; padding: 168px 24px 140px; }
.blog { width: 100%; max-width: 1180px; }
.blog__head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: 64px; }
.blog__eyebrow { color: #595959; }
.blog__lead { color: var(--ink-soft); max-width: 40rem; font-size: 1.125rem; line-height: 1.5; }
.blog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.blog-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid #e6e4df; border-radius: 16px; overflow: hidden; transition: border-color .25s, transform .25s var(--ease); }
.blog-card:hover { border-color: #c9c6c0; transform: translateY(-2px); }
.blog-card__cover { background: var(--ink); color: var(--white); padding: 32px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; aspect-ratio: 16 / 8; align-content: end; }
.blog-card--featured { grid-column: 1 / -1; flex-direction: row; }
.blog-card--featured .blog-card__cover { flex: 1 1 50%; aspect-ratio: auto; min-height: 340px; padding: 40px; }
.blog-card--featured .blog-card__num { font-size: 4.5rem; }
.blog-card--featured .blog-card__body { flex: 1 1 50%; padding: 40px; justify-content: center; }
.blog-card--featured .blog-card__title { font-size: 1.875rem; }
.blog-card__cover div { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255,255,255,.3); padding-top: 14px; }
.blog-card__num { font-size: 3rem; line-height: 1; letter-spacing: -0.04em; font-variation-settings: "wght" 420; }
.blog-card__num--mute { color: #8f8d8a; }
.blog-card__cap { font-size: .8rem; line-height: 1.3; color: rgba(255,255,255,.7); }
.blog-card__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card__meta { color: #595959; }
.blog-card__title { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 400; font-variation-settings: "wght" 480; text-wrap: balance; }
.blog-card__excerpt { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.blog-card__more { margin-top: auto; padding-top: 8px; }

.post { width: 100%; max-width: 760px; }
.post__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 48px; }
.post__back { color: #595959; }
.post__back:hover { color: var(--ink); }
.post__meta { color: #595959; display: flex; flex-wrap: wrap; gap: 8px; }
.post__title { text-wrap: balance; }
.post__dek { font-size: 1.25rem; line-height: 1.5; color: var(--ink-soft); font-variation-settings: "wght" 420; }

.post-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #e6e4df; border: 1px solid #e6e4df; border-radius: 16px; overflow: hidden; margin: 0 0 56px; }
.post-stat { background: var(--white); padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.post-stat__num { font-size: 2.5rem; line-height: 1; letter-spacing: -0.04em; font-variation-settings: "wght" 420; }
.post-stat__label { font-size: .85rem; line-height: 1.4; color: var(--ink-soft); }
.post-stats__source { grid-column: 1 / -1; background: var(--white); padding: 12px 20px; font-size: .78rem; color: #6b6b6b; }

.post__body h2 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 400; font-variation-settings: "wght" 480; margin: 56px 0 16px; text-wrap: balance; }
.post__body p, .post__body li { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-soft); }
.post__body p + p { margin-top: 16px; }
.post__body strong { color: var(--ink); font-variation-settings: "wght" 540; }
.post__body a { text-decoration: underline; text-underline-offset: .2em; }
.post__list { margin: 16px 0 20px; padding-left: 1.3em; display: flex; flex-direction: column; gap: 14px; }
.post__list li::marker { color: #8f8d8a; }

.post-figure { margin: 40px 0; padding: 28px 28px 22px; background: var(--white); border: 1px solid #e6e4df; border-radius: 16px; }
.post-figure figcaption { display: flex; flex-direction: column; gap: 4px; margin-bottom: 22px; }
.post-figure__title { font-size: 1.125rem; line-height: 1.3; font-variation-settings: "wght" 520; color: var(--ink); }
.post-figure__sub { font-size: .85rem; color: #595959; }
.post-figure__source { margin-top: 18px; font-size: .78rem; color: #6b6b6b; }
.post-figure__source a { text-decoration: underline; text-underline-offset: .2em; }
.chart { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.chart__row { display: grid; grid-template-columns: 220px 1fr 64px; align-items: center; gap: 14px; font-size: .85rem; }
.chart__label { color: var(--ink-soft); line-height: 1.25; }
.chart__track { display: block; height: 14px; background: #f1f0ed; border-radius: 3px; overflow: hidden; }
.chart__bar { display: block; height: 100%; background: #b9b6b0; border-radius: 3px; }
.chart__value { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.chart__row.is-hl .chart__label, .chart__row.is-hl .chart__value { color: var(--ink); font-variation-settings: "wght" 560; }
.chart__row.is-hl .chart__bar { background: var(--ink); }
.chart--pair { gap: 14px; }
.chart--pair .chart__stack { display: flex; flex-direction: column; gap: 4px; }
.chart--pair .chart__bar { background: var(--ink); }
.chart--pair .chart__bar--prev { background: #cfccc6; }
.chart--pair .chart__row.is-hl .chart__bar--prev { background: #cfccc6; }
.chart--pair .chart__value { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.chart__prev { color: #8f8d8a; font-size: .78rem; }
.chart__legend { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .78rem; color: #595959; }
.chart__key { width: 12px; height: 12px; border-radius: 2px; background: var(--ink); margin-left: 10px; }
.chart__key--prev { background: #cfccc6; margin-left: 0; }

.post-cta { margin: 64px 0 56px; padding: 32px; background: var(--ink); color: var(--white); border-radius: 16px; display: flex; flex-direction: column; gap: 24px; }
.post-cta__title { font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.015em; font-variation-settings: "wght" 460; }
.post-cta__text { margin-top: 8px; color: rgba(255,255,255,.72); line-height: 1.55; }
.post-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.post-cta .btn--primary { background: var(--white); color: var(--ink); }
.post-cta .btn--secondary { background: rgba(255,255,255,.12); color: var(--white); }
.post-cta .btn--secondary:hover { background: rgba(255,255,255,.2); }

.post-sources { border-top: 1px solid #e6e4df; padding-top: 28px; }
.post-sources__title { font-size: 1rem; font-variation-settings: "wght" 520; margin-bottom: 14px; }
.post-sources ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }
.post-sources li, .post-sources p { font-size: .85rem; line-height: 1.6; color: #595959; }
.post-sources p { margin-top: 14px; }
.post-sources a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 746px) {
  .blog-page, .post-page { padding: 120px 16px 96px; }
  .blog__grid { grid-template-columns: 1fr; }
  .blog-card--featured { flex-direction: column; }
  .blog-card--featured .blog-card__cover { min-height: 0; aspect-ratio: 16 / 9; padding: 28px 24px; }
  .blog-card--featured .blog-card__num { font-size: 3rem; }
  .blog-card--featured .blog-card__body { padding: 24px; }
  .blog-card--featured .blog-card__title { font-size: 1.375rem; }
  .post-stats { grid-template-columns: 1fr 1fr; }
  .post-stat__num { font-size: 2rem; }
  .post__dek { font-size: 1.125rem; }
  .post-figure { padding: 22px 16px 18px; margin: 32px -4px; }
  .chart__row { grid-template-columns: 128px 1fr 50px; gap: 10px; font-size: .78rem; }
  .post-cta { padding: 24px; }
}
