/* ════════════════════════════════════════════════════════════
   LS3 Solutions — site stylesheet
   One component system, two themes (Light / Dark) driven by the tokens in
   tokens.css. Brand accent: LS3 Light Green #9FC981. Light theme: white and
   #F6F8F6 surfaces with navy text. Dark theme: navy/charcoal with lime accents.
   ════════════════════════════════════════════════════════════ */

/* Colour tokens live in tokens.css (loaded first on every page and in the editor). */
:root {
  /* Type */
  --font-display: 'Aptos', 'Aptos Display', 'Inter', system-ui, sans-serif;
  --font-body: 'Aptos', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --base-size: 17px;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 72px;
  --shadow-sm: 0 1px 2px rgba(18, 40, 45, .06);
  --shadow: 0 1px 2px rgba(18, 40, 45, .05), 0 8px 24px rgba(18, 40, 45, .06);
  --shadow-lg: 0 18px 48px rgba(18, 40, 45, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Re-theme the existing chat widget to the light brand palette */
  --ls3c-gold: var(--ls3-color-accent);
  --ls3c-bg: var(--ls3-color-white);
  --ls3c-bg-2: var(--ls3-color-background);
  --ls3c-border: var(--line);
  --ls3c-text: var(--ink);
  --ls3c-muted: var(--ink-3);
}

/* ── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ls3-page-bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--base-size);
  line-height: 1.6;
  color: var(--ls3-text);
  background: var(--ls3-page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ls3-link); text-decoration: none; }
a:hover { color: var(--ls3-link-hover); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--green); color: var(--teal-900); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--band); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }

/* ── Type scale ───────────────────────────────────────────── */
.h1, .h2 { font-family: var(--font-display); letter-spacing: var(--display-tracking, -.015em); }
.h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.06; font-weight: var(--display-weight, 500); }
.h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); line-height: 1.12; font-weight: var(--display-weight, 500); }
.h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.25; font-weight: 600; letter-spacing: -.005em; }
.h4 { font-size: 1.15rem; line-height: 1.35; font-weight: 600; }
.h1 em, .h2 em { font-style: normal; color: var(--color-heading-accent); }
.section--teal .h1 em, .section--teal .h2 em, .cta-band--teal .h2 em { color: var(--green); }
.lead { font-size: 1.1rem; line-height: 1.65; color: var(--ink-3); max-width: 62ch; }
.lead--lg { font-size: clamp(1.08rem, 1.5vw, 1.22rem); }
.h2 + .lead { margin-top: 18px; }
.lead a { border-bottom: 1.5px solid var(--green); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-body); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--green); }
.section--teal .eyebrow, .cta-band--teal .eyebrow { color: rgba(255, 255, 255, .7); }

/* ── Icons ────────────────────────────────────────────────── */
.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 15px; height: 15px; }
.icon-badge {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--teal-50); color: var(--teal);
  border: 1px solid var(--teal-100);
}
.icon-badge--green { background: var(--green-50); color: var(--green-ink); border-color: var(--green-100); }
.icon-badge--dark { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); border-color: color-mix(in srgb, var(--green) 25%, transparent); }

/* ── Buttons & links ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; letter-spacing: .005em; line-height: 1.2;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
/* Primary: LS3 green with dark text (both themes). Secondary: white (Light) or
   transparent (Dark) with a subtle border. Accent = primary. */
.btn--primary, .btn--accent { background: var(--ls3-btn-primary-bg); color: var(--ls3-btn-primary-text); }
.btn--primary:hover, .btn--accent:hover { background: var(--ls3-btn-primary-bg-hover); color: var(--ls3-btn-primary-text); }
.btn--primary:active, .btn--accent:active { background: var(--ls3-btn-primary-bg-active); }
.btn--secondary { background: var(--color-btn2-bg); color: var(--ink); border-color: var(--color-btn2-border); }
.btn--secondary:hover { background: var(--color-btn2-hover-bg); color: var(--ink); border-color: var(--ink-3); }
.btn--secondary:active { background: var(--teal-50); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { border-color: var(--green); color: var(--green); }
.btn--outline-light:active { background: rgba(255, 255, 255, .08); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; box-shadow: 0 0 0 5px var(--color-focus-ring); }
.section--teal .btn:focus-visible, .cta-band--teal .btn:focus-visible, .site-footer .btn:focus-visible { outline-color: var(--green); box-shadow: none; }
.section--teal .btn--secondary, .cta-band--teal .btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.section--teal .btn--secondary:hover, .cta-band--teal .btn--secondary:hover { border-color: var(--green); color: var(--green); background: transparent; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn:disabled .icon { transform: none; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--ls3-link);
  border-bottom: 1.5px solid var(--green); padding-bottom: 2px;
}
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover { color: var(--ls3-link-hover); border-bottom-color: var(--ls3-link); }
.text-link:hover .icon { transform: translateX(3px); }

/* ── Announcement banner (edited in the CMS) ──────────────── */
.announce { background: var(--green); color: var(--teal-900); font-size: .9rem; font-weight: 500; text-align: center; }
.announce p { margin: 0; padding: 10px 0; }
.announce a { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font-weight: 700; color: var(--teal-900); border-bottom: 1.5px solid var(--teal-900); }
.announce a:hover { color: var(--teal-900); border-bottom-width: 2.5px; }

/* ── Topbar + header ──────────────────────────────────────── */
.topbar { background: var(--color-topbar-bg); color: var(--color-topbar-text); font-size: .8rem; border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.topbar__note { margin: 0; }
.topbar__links { display: flex; gap: 22px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 7px; color: var(--color-topbar-text); }
.topbar__links a:hover { color: var(--ink); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--color-header-bg) 97%, transparent);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.site-header > .container { max-width: 1440px; } /* the approved header runs wider than the page content */

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { width: var(--logo-w, 36px); height: auto; }
.site-footer .brand__mark { width: var(--footer-logo-w, 36px); }
.brand__word { font-family: var(--font-body); font-weight: 700; font-size: 1.28rem; letter-spacing: .02em; text-transform: uppercase; color: var(--brand-word); }
.brand__word span { font-weight: 400; color: var(--brand-word-light); }
.brand--light .brand__word { color: #fff; }
.brand--light .brand__word span { color: var(--green); }

/* Header tools: search + Light/Dark theme switcher */
.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; }
.header__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.header__tool {
  display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
  color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.header__tool:hover { background: var(--color-surface-subtle); border-color: var(--line); }
.header__tool .icon { width: 19px; height: 19px; }
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
.header__tools + .header__cta, .header__phone + .header__cta { margin-left: 8px; }
.header__phone { min-height: 42px; padding: 8px 16px; font-size: .9rem; margin-left: 8px; }
.header__lang { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.header__lang:hover { color: var(--ink); }
@media (max-width: 1360px) { .header__phone { display: none; } } /* shows only where it fits beside the rest of the header */
/* Portuguese labels are longer: no phone in the header (it never fits beside them: the header is at most 1440px wide)
   and tighter navigation so the header stays on one row */
:lang(pt) .header__phone { display: none; }
@media (min-width: 1201px) and (max-width: 1260px) { :lang(pt) .nav__link { padding: 10px 9px; } }
@media (max-width: 1200px) { .brand__word { font-size: 1.1rem; } .header__lang { display: none; } /* Português stays in the footer and mobile menu */ }
@media (min-width: 1025px) and (max-width: 1120px) {
  .header__inner { gap: 10px; }
  .nav__link { padding: 10px 8px; font-size: .9rem; }
  .brand__word { font-size: .98rem; }
  .header__cta { padding: 9px 14px; }
}
@media (min-width: 1025px) and (max-width: 1120px) {
  :lang(pt) .header__inner { gap: 6px; }
  :lang(pt) .nav__list { gap: 0; }
  :lang(pt) .nav__link { padding: 10px 6px; gap: 4px; font-size: .86rem; }
  :lang(pt) .header__cta { padding: 9px 12px; font-size: .88rem; }
}
@media (max-width: 720px) {
  .header__inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand__word { font-size: 1.02rem; }
  .header__lang { display: none; } /* in the mobile menu instead */
  .header__tool { width: 38px; height: 38px; }
  .header__tools { gap: 0; }
}

/* Site search dialog */
.search {
  width: min(640px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 96px)); margin: 72px auto auto; padding: 0;
  color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.search::backdrop { background: color-mix(in srgb, var(--color-footer-bg) 55%, transparent); }
.search__form { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.search__field { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--ink-3); }
.search__field input { flex: 1; min-width: 0; padding: 10px 0; font: inherit; font-size: 1.05rem; color: var(--ink); background: transparent; border: 0; }
.search__field input:focus { outline: none; }
.search__form:focus-within { box-shadow: inset 0 -2px 0 var(--green); }
.search__close { display: grid; place-items: center; width: 38px; height: 38px; color: var(--ink-3); background: transparent; border: 0; border-radius: var(--radius-sm); cursor: pointer; }
.search__close:hover { background: var(--color-surface-subtle); color: var(--ink); }
.search__results { padding: 6px; overflow-y: auto; max-height: 440px; }
.search__result { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--ink); }
.search__result:hover, .search__result:focus-visible { background: var(--color-surface-subtle); color: var(--ink); outline-offset: -2px; }
.search__title { font-weight: 600; }
.search__text { font-size: .88rem; color: var(--ink-3); }
.search__path { font-family: var(--font-mono); font-size: .72rem; color: var(--teal); }
.search__hint { margin: 0; padding: 18px 20px; font-size: .9rem; color: var(--ink-3); }
.nav { flex: 1; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border: 0; background: none; cursor: pointer;
  font-size: .95rem; font-weight: 500; color: var(--ink);
  border-radius: var(--radius-sm);
  transition: color .2s, background-color .2s;
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--ink); background: var(--color-surface-subtle); }
.nav__link.is-current { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.nav__toggle .icon { transition: transform .2s var(--ease); color: var(--ink-3); }
.nav__item.is-open > .nav__toggle .icon { transform: rotate(180deg); }
.nav__mobile-extra { display: none; }
.header__cta { margin-left: auto; }

.menu {
  position: absolute; top: calc(100% + 10px); left: -8px; z-index: 50;
  width: 340px; padding: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item.is-open > .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu--wide { width: 640px; left: -160px; }
.menu--wide .menu__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.menu__head a { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-body); font-size: .85rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.menu__link { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: var(--radius-sm); color: var(--ink); }
.menu__link:hover { background: var(--color-surface-subtle); color: var(--ink); }
.menu__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--teal-50); color: var(--teal); flex-shrink: 0; }
.menu__icon .icon { width: 19px; height: 19px; }
.menu__link:hover .menu__icon { background: var(--green); color: var(--color-on-green); }
.menu__label { display: block; font-weight: 600; font-size: .93rem; line-height: 1.3; }
.menu__text { display: block; font-size: .82rem; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }

.burger { display: none; flex-shrink: 0; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: var(--section-y) 0; }
.section--white { background: var(--color-section-bg); }
.section--cream { background: var(--cream); }
.section--tint { background: var(--teal-50); }
.section--teal { background: var(--band); color: rgba(255, 255, 255, .82); }
/* Inside navy bands, green text uses the bright accent (dark green would be unreadable) */
.section--teal, .cta-band--teal, .hero-panel--teal, .split__panel--teal, .stack, .flow__col--core .flow__box, .tier:nth-child(3), .site-footer { --teal: var(--green); --green-ink: var(--green); --ls3-link: var(--green); --ls3-link-hover: #fff; }
.section--teal .h2, .section--teal .h3, .section--teal .h4 { color: #fff; }
.section--teal .lead { color: rgba(255, 255, 255, .75); }
.section--teal .eyebrow { color: var(--green); }
.section--bordered { border-top: 1px solid var(--line); }

.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 18px; margin-bottom: 0; }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.section-head--split .lead { margin-top: 0; }
.section-head--split .actions { margin-top: 20px; }

/* ── Grids & cards ────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px; background: var(--white); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.section--white .card { background: var(--white); }
.card .icon-badge { margin-bottom: 6px; }
.card__title { color: var(--ink); }
.card.card--row { flex-direction: row; align-items: flex-start; gap: 16px; padding: 18px 20px; }
.card--row .icon-badge { width: 44px; height: 44px; flex-shrink: 0; margin-bottom: 0; }
.card--row .card__title { font-size: 1rem; margin: 0 0 4px; }
.card--row .card__text { font-size: .88rem; line-height: 1.5; }
.v-col > .card--row + .card--row, .v-col > [data-puck-component] + [data-puck-component] > .card--row { margin-top: 12px; }
[data-theme="dark"] .icon-badge--green { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); border-color: color-mix(in srgb, var(--green) 22%, transparent); }
.card__text { margin: 0; font-size: .97rem; line-height: 1.6; color: var(--ink-3); }
.card__label { margin: 0; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-weight: 600; font-size: .92rem; color: var(--teal); }
.card__more .icon { transition: transform .2s var(--ease); }
.card--link:hover { border-color: var(--teal); box-shadow: var(--shadow); color: var(--ink-2); }
.card--link:hover .card__more .icon { transform: translateX(4px); }
.card--link::after { content: ''; position: absolute; left: 28px; right: 28px; top: -1px; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); border-radius: 0 0 2px 2px; }
.card--link:hover::after { transform: scaleX(1); }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.card__index { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3); letter-spacing: .08em; }

.checklist { display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.icon--check { width: 18px; height: 18px; margin-top: 3px; color: var(--green-ink); stroke-width: 2.2; }
.checklist--sm { gap: 8px; font-size: .92rem; margin-top: 4px; }
.checklist--sm .icon--check { width: 16px; height: 16px; }
.section--teal .icon--check { color: var(--green); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--white); font-size: .87rem; font-weight: 500; color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.chip .icon { color: var(--teal); }
.chip:hover { border-color: var(--teal); background: var(--teal-50); color: var(--ink); }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 4px;
  background: var(--teal-50); color: var(--teal);
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* ── Images & image spaces (edited in the CMS) ────────────── */
.media { position: relative; margin: 0; aspect-ratio: var(--ratio, 16/9); border-radius: var(--radius); overflow: hidden; background: var(--teal-50); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--empty {
  display: grid; place-items: center; text-align: center;
  border: 1.5px dashed var(--line-2);
  background: repeating-linear-gradient(135deg, var(--teal-50) 0 12px, var(--teal-100) 12px 13px);
}
.media__ph { display: grid; gap: 4px; justify-items: center; padding: 16px 20px; max-width: 40ch; font-size: .86rem; line-height: 1.4; color: var(--ink-3); background: color-mix(in srgb, var(--white) 88%, transparent); border-radius: var(--radius-sm); }
.media__ph .icon { width: 30px; height: 30px; color: var(--teal); margin-bottom: 4px; }
.media__ph strong { font-size: .95rem; font-weight: 600; color: var(--ink); }
.media__size, .media__where { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em; color: var(--ink-3); }
.media__where { color: var(--teal); }

/* image at the top of a card, bleeding to the card edges */
.card, .case-card { --pad: 28px; }
.case-card { --pad: 32px; }
.card__media { margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 8px; border-radius: var(--radius) var(--radius) 0 0; }
.card__media.media--empty { border-width: 0 0 1.5px; }
.card--link:hover .card__media img { transform: scale(1.03); }
.card__media img { transition: transform .5s var(--ease); }

.media-band { background: var(--cream); padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero:has(+ .media-band) { border-bottom: 0; padding-bottom: clamp(32px, 4vw, 48px); }
@media (max-width: 720px) { .media--band { --ratio: 4/3 !important; } }
.why__media { margin-top: 32px; }
.side-media { margin: 20px 0 4px; }
.hero__media { box-shadow: var(--shadow-lg); border-radius: 14px; }

/* ── Visual-editor layout primitives (Section / Columns / Grid) ── */
.v-stack { display: flex; flex-direction: column; }
.v-stack--row { flex-direction: row; flex-wrap: wrap; }
.v-cols { display: grid; grid-template-columns: var(--cols, minmax(0, 1fr) minmax(0, 1fr)); }
.v-col { min-width: 0; }
.v-col > :last-child, .v-box > :last-child { margin-bottom: 0; }
.v-grid { display: grid; grid-template-columns: repeat(var(--g-d, 3), minmax(0, 1fr)); }
.v-box { display: block; }
.v-fs { font-size: var(--fs-d) !important; }
.v-body { font-size: 1rem; line-height: 1.65; color: var(--ink-2); }
.v-small { font-size: .85rem; line-height: 1.5; color: var(--ink-3); }
.v-rich p { margin: 0; }
.v-rich p + p { margin-top: .8em; }
.v-divider { border: 0; margin: 0; width: 100%; }
.v-chrome { pointer-events: none; }
.tiers.tiers--stacked { grid-template-columns: 1fr; gap: 10px; }
.tiers.tiers--stacked .tier { flex-direction: row; align-items: center; gap: 18px; padding: 18px 20px; }
.tiers.tiers--stacked .tier__badge { flex-shrink: 0; width: 104px; text-align: center; align-self: center; }
.tiers.tiers--stacked .tier h3 { font-size: 1rem; margin-bottom: 2px; }
@media (max-width: 1024px) {
  .v-fs { font-size: var(--fs-t) !important; }
  .v-cols--stack-tablet { grid-template-columns: minmax(0, 1fr); }
  .v-grid { grid-template-columns: repeat(var(--g-t, 2), minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .v-fs { font-size: var(--fs-m) !important; }
  .v-cols--stack-mobile { grid-template-columns: minmax(0, 1fr); }
  .v-grid { grid-template-columns: repeat(var(--g-m, 1), minmax(0, 1fr)); }
  .tiers.tiers--stacked .tier { flex-direction: column; align-items: flex-start; }
  .tiers.tiers--stacked .tier__badge { width: auto; }
}

/* ── Stats / metrics ──────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.stat { padding: 24px 24px 4px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__value { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.35rem); font-weight: 500; color: var(--teal); line-height: 1.1; }
.stat__label { margin: 6px 0 0; font-size: .9rem; color: var(--ink-3); line-height: 1.45; max-width: 26ch; }
.stats--hero { margin-top: clamp(40px, 6vw, 64px); }

.metrics { display: flex; flex-wrap: wrap; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); }
.metric { flex: 1 1 110px; padding: 16px 18px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric__value { font-family: var(--font-display); font-size: 1.85rem; font-weight: 500; color: var(--teal); line-height: 1.1; }
.metric__label { margin: 4px 0 0; font-size: .8rem; color: var(--ink-3); line-height: 1.35; }

/* ── Home hero ────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 72px);
  background:
    radial-gradient(ellipse 55% 75% at 78% 45%, var(--color-hero-glow), transparent 70%),
    var(--color-hero-bg);
}
.hero > .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero .h1 { max-width: 15ch; }
.hero .lead { margin-top: 24px; }

/* Product screen: the LS3 application screenshot on a TV */
.screen { margin: 0; }
.screen__panel { position: relative; overflow: hidden; background: #05080B; }
/* Fixed 16:9 screen, the same as the empty image space, so choosing or replacing the screenshot never resizes the hero */
.screen__panel img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
/* Optional hero video: same fixed 16:9 screen as the screenshot, so adding it never resizes the hero; fills the screen without stretching */
.screen__panel video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #05080B; }
.screen--tv { position: relative; padding-bottom: 18px; }
.screen--tv .screen__panel { padding: 10px; border-radius: 10px; background: #0A0F14; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, var(--shadow-lg); }
.screen--tv .screen__panel img, .screen--tv .screen__panel video { border-radius: 3px; }
/* Pause/play for the video (shown only when the script is running); bottom-left, clear of the chat button */
.screen__toggle { display: none; position: absolute; left: 10px; bottom: 10px; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(5, 8, 11, .62); color: #fff; cursor: pointer; opacity: .8; transition: opacity .2s; }
.screen--tv .screen__toggle { left: 20px; bottom: 20px; }
.js .screen__toggle { display: grid; }
.js .screen__toggle[hidden] { display: none; }
.screen__toggle:hover, .screen__toggle:focus-visible { opacity: 1; }
.screen__toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.screen__toggle svg { width: 16px; height: 16px; }
.screen__toggle-play, .screen__toggle.is-paused .screen__toggle-pause { display: none; }
.screen__toggle.is-paused .screen__toggle-play { display: block; }
.screen__stand { position: absolute; left: 50%; bottom: 0; width: 26%; height: 18px; transform: translateX(-50%); background: linear-gradient(#1A2028, #0C1015); border-radius: 0 0 6px 6px; }
.hero .screen--tv { margin-right: calc(-1 * clamp(0px, 3vw, 48px)); }
@media (max-width: 1024px) { .hero .screen--tv { margin-right: 0; } }

/* Stack visual (hero) */
.stack {
  position: relative; padding: 26px; border-radius: 14px;
  background: var(--band); color: rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.stack__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.stack__status { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.stack__status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent); }
.stack__body { position: relative; display: grid; grid-template-columns: 1fr 26px; gap: 0 14px; }
.stack__layers { display: grid; gap: 8px; }
.stack__layer {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 8px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.stack__layer .icon { width: 20px; height: 20px; color: var(--green); }
.stack__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; background: color-mix(in srgb, var(--green) 10%, transparent); }
.stack__name { display: block; font-weight: 600; color: #fff; font-size: .95rem; line-height: 1.25; }
.stack__spec { display: block; font-size: .78rem; color: rgba(255, 255, 255, .6); line-height: 1.35; margin-top: 2px; }
.stack__bracket { position: relative; border: 1.5px solid var(--green); border-left: 0; border-radius: 0 8px 8px 0; margin: 6px 0; }
.stack__bracket span { position: absolute; top: 50%; left: 100%; transform: translate(-50%, -50%) rotate(90deg); white-space: nowrap; margin-left: 4px; padding: 0 8px; background: var(--band); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.stack__base {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding: 13px 14px; border-radius: 8px;
  border: 1.5px dashed rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .8); font-size: .88rem;
}
.stack__base strong { color: #fff; font-weight: 600; }
.stack__base .icon { color: rgba(255, 255, 255, .7); }
.stack__signal { position: absolute; left: 31px; top: 0; bottom: 0; width: 2px; pointer-events: none; }

/* Trust bar */
/* Cards stacked in a column keep a gap (the second selector covers the editor canvas wrappers) */
.v-col > .card + .card, .v-col > [data-puck-component] + [data-puck-component] > .card { margin-top: 16px; }

/* Capabilities strip (under the home hero): one panel split into five cells by thin dividers.
   Icon, title and details line up across the cells (subgrid); the details' "·" never starts or ends a line
   (each part is unbreakable and its dot sits in the gap before it, clipped away at the start of a line). */
.capstrip { padding: 22px 0; background: var(--color-strip-bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capstrip__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; box-shadow: 0 1px 2px rgba(18, 40, 45, .04), 0 10px 30px rgba(18, 40, 45, .06); }
[data-theme="dark"] .capstrip__list { box-shadow: none; }
.capstrip__list > li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.capstrip__list > li + li { box-shadow: -1px 0 0 var(--color-border); }
.capstrip__item { position: relative; display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; row-gap: 0; height: 100%; padding: 20px 22px; color: var(--ink); transition: background-color .2s; }
a.capstrip__item:hover { background: var(--color-brand-green-softer); color: var(--ink); }
a.capstrip__item:focus-visible { outline: 2px solid var(--color-brand-green); outline-offset: -2px; }
.capstrip__icon { display: block; margin-bottom: 12px; color: var(--color-accent-ink); }
.capstrip__icon .icon { display: block; width: 26px; height: 26px; stroke-width: 1.6; }
.capstrip__title { align-self: end; font-weight: 600; font-size: .95rem; line-height: 1.3; text-wrap: balance; transition: color .2s; }
a.capstrip__item:hover .capstrip__title { color: var(--color-accent-ink); }
.capstrip__text { display: flex; flex-wrap: wrap; align-self: start; margin: 5px 0 0 -14px; clip-path: inset(0 0 0 14px); font-size: .78rem; line-height: 1.5; color: var(--ink-3); }
.capstrip__text > span { position: relative; padding-left: 14px; white-space: nowrap; }
.capstrip__text > span + span::before { content: '·'; content: '·' / ', '; position: absolute; left: 5px; color: var(--ink-3); } /* screen readers hear a comma */
/* the arrow shows on hover and keyboard focus */
.capstrip__go { position: absolute; top: 20px; right: 18px; color: var(--color-accent-ink); opacity: 0; transform: translateX(-3px); transition: opacity .2s, transform .2s; }
.capstrip__go .icon { width: 16px; height: 16px; }
a.capstrip__item:hover .capstrip__go, a.capstrip__item:focus-visible .capstrip__go { opacity: 1; transform: none; }
@media (max-width: 1024px) {
  /* 3 + 2 cells (exactly five): the second row gets a divider on top */
  .capstrip__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .capstrip__list > li { grid-column: span 2; }
  .capstrip__list > li:nth-child(4):nth-last-child(2), .capstrip__list > li:nth-child(5):nth-last-child(1) { grid-column: span 3; }
  .capstrip__list > li:nth-child(n + 4) { box-shadow: 0 -1px 0 var(--color-border); }
  .capstrip__list > li:nth-child(n + 4) + li { box-shadow: -1px 0 0 var(--color-border), 0 -1px 0 var(--color-border); }
}
@media (max-width: 720px) {
  /* phones: one row per capability, icon beside the title; the arrow stays visible (no hover on touch) */
  .capstrip__list { grid-template-columns: minmax(0, 1fr); }
  .capstrip__list > li, .capstrip__list > li:nth-child(4):nth-last-child(2), .capstrip__list > li:nth-child(5):nth-last-child(1) { display: block; grid-column: auto; grid-row: auto; }
  .capstrip__list > li + li, .capstrip__list > li:nth-child(n + 4), .capstrip__list > li:nth-child(n + 4) + li { box-shadow: 0 -1px 0 var(--color-border); }
  .capstrip__item { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; padding: 14px 44px 14px 16px; }
  .capstrip__icon { grid-row: 1 / span 2; align-self: center; margin: 0; }
  .capstrip__icon .icon { width: 24px; height: 24px; }
  .capstrip__title { grid-column: 2; }
  .capstrip__text { grid-column: 2; margin-top: 2px; }
  .capstrip__go { top: 50%; margin-top: -8px; opacity: .55; transform: none; }
}
.trust { padding: 26px 0; border-bottom: 1px solid var(--line); background: var(--color-strip-bg); }
.trust__inner { display: flex; align-items: center; gap: 40px; }
.trust__label { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); flex-shrink: 0; }
/* every name gets the same width, on one row; tablets and phones: rows of three */
.trust__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; gap: 0; flex: 1; }
.trust__list li { text-align: center; padding: 0 12px; white-space: nowrap; }
.trust__list li + li { border-left: 1px solid var(--line); }
.trust__list li { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ── Capability (platform intro) cards ────────────────────── */
.cap-card { padding: 28px 26px; }
.cap-card .chips { margin-top: 6px; }
.cap-card .chip { font-size: .8rem; padding: 5px 10px; }

/* ── Network flow diagram ─────────────────────────────────── */
/* Five steps on one rail, grouped by who runs them: LS3 (solid rail) and the operator (dashed rail).
   Each step is one row: title and text on the left, examples as chips on the right. Chips never
   break inside; when space runs out a whole chip moves to the next line. */
.flow { display: grid; gap: 30px; }
.flow__group { position: relative; display: grid; gap: 16px; padding-left: 64px; }
.flow__group::before { content: ''; position: absolute; left: 19px; top: 11px; bottom: 0; border-left: 2px solid var(--teal); }
.flow__group:not(:last-child)::before { bottom: -30px; }
.flow__group--you::before { border-left: 2px dashed var(--line-2); }
.flow__group-label { position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0; line-height: 22px; font-size: .88rem; color: var(--ink-3); }
.flow__group-label::before { content: ''; position: absolute; left: 14px; top: 5px; width: 12px; height: 12px; border-radius: 3px; background: var(--teal); }
.flow__group--you .flow__group-label::before { background: var(--white); border: 2px solid var(--line-2); }
.flow__group-label strong { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.flow__col { position: relative; }
.flow__label { grid-area: label; margin: 0 0 2px; font-family: var(--font-mono); font-size: .66rem; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.flow__col--core .flow__label { color: rgba(255, 255, 255, .6); }
/* the step number is the node on the rail; the pulse ring behind it only scales and fades */
.flow__label b { position: absolute; z-index: 1; left: -64px; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: var(--white); border: 2px solid var(--teal); color: var(--teal); font-size: .74rem; font-weight: 700; letter-spacing: 0; }
.flow__group--you .flow__label b { border-color: var(--line-2); color: var(--ink-2, var(--ink)); }
.flow__label::before {
  content: ''; position: absolute; left: -71px; top: 50%; width: 54px; height: 54px; margin-top: -27px;
  border-radius: 50%; background: color-mix(in srgb, var(--green) 40%, transparent);
  opacity: 0; transform: scale(.7222); pointer-events: none;
}
.flow__box {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "label label items" "icon title items" ". text items";
  align-items: center; column-gap: 12px; row-gap: 4px; padding: 16px 22px;
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.flow__box > .icon { grid-area: icon; width: 22px; height: 22px; color: var(--teal); }
.flow__box h3 { grid-area: title; margin: 0; font-size: 1rem; font-weight: 600; }
.flow__box > p:not(.flow__label) { grid-area: text; align-self: start; margin: 0; max-width: 52ch; font-size: .86rem; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }
.flow__items, .flow__modules { grid-area: items; display: flex; flex-wrap: wrap; align-content: center; gap: 8px; margin: 0; padding: 0 0 0 16px; }
.flow__items li, .flow__modules a { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; font-size: .84rem; font-weight: 500; line-height: 1.25; white-space: nowrap; }
.flow__items li { background: var(--teal-50); color: var(--ink); }
.flow__items .icon, .flow__modules .icon { flex-shrink: 0; width: 16px; height: 16px; color: var(--teal); }
.flow__col--core .flow__box { background: var(--band); border-color: var(--band); color: rgba(255, 255, 255, .8); box-shadow: var(--shadow-lg); }
.flow__col--core .flow__box h3 { color: #fff; }
.flow__col--core .flow__box > p:not(.flow__label) { color: rgba(255, 255, 255, .72); }
.flow__core-brand { grid-column: icon / title; grid-row: 2; display: flex; align-items: center; gap: 10px; }
.flow__core-brand img { width: 24px; height: auto; }
.flow__modules a { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; transition: background-color .2s, border-color .2s; }
.flow__modules a:hover { background: color-mix(in srgb, var(--green) 14%, transparent); border-color: var(--green); color: #fff; }
.flow__modules .icon { color: var(--green); }
.flow-note { margin-top: 44px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; max-width: 820px; }
.flow-note p { margin: 0; font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; color: var(--ink); }
.flow-note cite { display: block; margin-top: 10px; font-family: var(--font-mono); font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.flow-note__bar { width: 3px; height: 100%; background: var(--green); border-radius: 2px; }

/* ── Why LS3 ──────────────────────────────────────────────── */
.why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); }
.why__intro { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.why__kicker { margin: 20px 0 16px; font-family: var(--font-display); font-size: 1.3rem; color: var(--green-ink); line-height: 1.35; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.why__item { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.why__item:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.why__item .icon { color: var(--teal); margin-bottom: 14px; }
.why__item h3 { margin-bottom: 8px; }
.why__item p { margin: 0; font-size: .95rem; color: var(--ink-3); }
.section--teal .why__item { border-color: rgba(255, 255, 255, .14); }
.section--teal .why__list { border-color: rgba(255, 255, 255, .14); }
.section--teal .why__item .icon { color: var(--green); }
.section--teal .why__item p { color: rgba(255, 255, 255, .7); }
.section--teal .why__kicker { color: var(--green); }

/* ── Case studies ─────────────────────────────────────────── */
.case-card { display: flex; flex-direction: column; gap: 18px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.case-card__title { font-size: 1.3rem; line-height: 1.3; }
.case-card__body { display: grid; gap: 14px; margin: 0; }
.case-card__body dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 3px; }
.case-card__body dd { margin: 0; font-size: .95rem; color: var(--ink-3); }
.case-card .text-link { align-self: flex-start; margin-top: auto; }

.case-study { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.case-study:first-of-type { border-top: 0; padding-top: 0; }
.case-study__aside { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.case-study__aside .h3 { margin: 14px 0 18px; }
.case-study__meta { display: grid; gap: 10px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: .9rem; }
.case-study__meta div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.case-study__meta dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.case-study__meta dd { margin: 0; color: var(--ink); }
.case-study__parts { display: grid; gap: 0; }
.case-part { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.case-part:first-child { border-top: 0; padding-top: 4px; }
.case-part h3 { font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); padding-top: 4px; }
.case-part p { margin: 0; }
.case-part .metrics { background: var(--cream); }

/* ── Steps ────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step__num { font-family: var(--font-mono); font-weight: 700; font-size: .85rem; color: var(--teal); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--green); background: var(--green-50); }
.step__label { margin: 0 0 4px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: .95rem; color: var(--ink-3); }
.step:not(:last-child)::after { content: ''; position: absolute; top: 47px; right: -21px; width: 22px; height: 1.5px; background: var(--line-2); }

/* ── Partner tiers ────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tier { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.tier__badge { align-self: flex-start; padding: 4px 10px; border-radius: 4px; font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--teal-50); color: var(--teal); }
.tier:nth-child(2) .tier__badge { background: var(--green-50); color: var(--green-ink); }
.tier:nth-child(3) { background: var(--band); border-color: var(--band); color: rgba(255, 255, 255, .78); }
.tier:nth-child(3) .tier__badge { background: var(--green); color: var(--teal-900); }
.tier:nth-child(3) h3 { color: #fff; }
.tier__level { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3); letter-spacing: .1em; }
.tier:nth-child(3) .tier__level { color: rgba(255, 255, 255, .55); }
.tier p { margin: 0; font-size: .95rem; }
.section--teal .tier { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .75); }
.section--teal .tier h3 { color: #fff; }
.section--teal .tier__badge, .section--teal .tier:nth-child(2) .tier__badge { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.section--teal .tier:nth-child(3) { background: var(--green); border-color: var(--green); color: var(--teal-900); }
.section--teal .tier:nth-child(3) h3 { color: var(--teal-900); }
.section--teal .tier:nth-child(3) .tier__badge { background: var(--color-on-green); color: var(--green); }
.section--teal .tier__level { color: rgba(255, 255, 255, .5); }
.section--teal .tier:nth-child(3) .tier__level { color: color-mix(in srgb, var(--color-on-green) 60%, transparent); }

.partner-band { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.partner-band .tiers { grid-template-columns: 1fr; gap: 10px; }
.partner-band .tier { flex-direction: row; align-items: center; gap: 18px; padding: 18px 20px; }
.partner-band .tier__badge { flex-shrink: 0; width: 104px; text-align: center; align-self: center; }
.partner-band .tier h3 { font-size: 1rem; margin-bottom: 2px; }

/* ── Split feature blocks (platform, solutions) ───────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split--center { align-items: center; }
.split__panel { padding: 32px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.section--cream .split__panel { background: var(--white); }
[data-spaced] { margin-top: 24px !important; }
.module .icon-badge { margin-bottom: 18px; }
.split__panel--teal, .section--cream .split__panel--teal { background: var(--band); border-color: var(--band); color: #fff; }
.split__panel--teal .panel-title { color: var(--green); }
.split__panel--teal .icon--check { color: var(--green); }
.panel-title { margin: 0 0 16px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }

.module { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 72px); }
.module:first-child { border-top: 0; padding-top: 0; }
.module__num { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.module__num b { color: var(--teal); }
.module .h3 { margin-bottom: 14px; }
.module__note { margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--green); background: var(--green-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .93rem; color: var(--ink-2); }
.module__panel { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.module__used { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.module__used p { margin: 0 0 10px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* Platform modules grid (Platform page): compact cards on a soft green-tinted surface, one shared
   "Used in" row. Theme tokens only, so Light and Dark follow the site's palettes. */
.modgrid { display: grid; gap: clamp(28px, 4vw, 44px); }
.modgrid__head { max-width: 760px; }
.modgrid__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.modcard {
  display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 28px);
  background: var(--color-surface-subtle); border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 72px);
}
.modcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.modcard__icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--color-surface); border: 1px solid var(--color-brand-green-soft); color: var(--color-accent-ink);
}
.modcard__icon .icon { width: 24px; height: 24px; }
.modcard__num { display: flex; gap: 10px; margin: 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-secondary); }
.modcard__num b { color: var(--color-accent-ink); font-weight: 700; }
.modcard__title { margin: 0; font-size: 1.2rem; line-height: 1.3; font-weight: 600; color: var(--color-text-primary); }
.modcard__text { margin: 0; line-height: 1.55; color: var(--color-text-body); }
.modcard__list { display: grid; gap: 8px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.modcard__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.45; color: var(--color-text-primary); }
.modcard__list .icon--check { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--color-accent-ink); }
.modcard__note {
  display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--color-brand-green-softer); border-left: 3px solid var(--color-brand-green);
  font-size: .9rem; line-height: 1.5; color: var(--color-text-primary);
}
.modcard__note .icon { flex: none; margin-top: 2px; color: var(--color-accent-ink); }
.modgrid__used {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px 22px;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.modgrid__used-label { margin: 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-secondary); }
@media (max-width: 1024px) { .modgrid__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .modgrid__cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .modcard { padding: 20px; gap: 10px; }
  .modgrid__used { padding: 16px; }
}

/* Sub-navigation (platform page) */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: color-mix(in srgb, var(--color-header-bg) 97%, transparent); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 16px 14px; font-size: .9rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--teal); }
.subnav a.is-active { color: var(--teal); border-bottom-color: var(--green); }
.subnav .icon { width: 17px; height: 17px; }

/* Support tiers table */
.support-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.support-table th, .support-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.support-table thead th { background: var(--band); color: #fff; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.support-table tbody th { font-weight: 600; color: var(--ink); }
.support-table tr:last-child td, .support-table tr:last-child th { border-bottom: 0; }
.support-table td:nth-child(2) { color: var(--green-ink); font-weight: 600; white-space: nowrap; }

/* ── Inner page hero ──────────────────────────────────────── */
.page-hero { padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero--cream { background: var(--cream); }
.page-hero--white { background: var(--color-section-bg); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.page-hero--aside .page-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.page-hero .h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 22px; }
.page-hero--center { text-align: center; }

.breadcrumb { margin-bottom: 32px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--ink-3); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--line-2); }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* Aside panel used in inner heroes */
.hero-panel { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.hero-panel__title { margin: 0 0 16px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.hero-panel--teal { background: var(--band); border-color: var(--band); color: rgba(255, 255, 255, .8); }
.hero-panel--teal .hero-panel__title { color: var(--green); }
.hero-panel--teal .checklist li, .hero-panel--teal .checklist a { color: #fff; }
.hero-panel--teal .checklist a:hover { color: var(--green); }
.hero-panel--teal .icon--check { color: var(--green); }
.hero-panel .chips { margin-top: 4px; }

/* ── Audience blocks (senior living etc.) ─────────────────── */
.audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.audience__item { padding: 30px 26px; }
.audience__item + .audience__item { border-left: 1px solid var(--line); }
.audience__who { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-ink); }
.audience__item h3 { margin-bottom: 10px; }
.audience__item p { margin: 0; font-size: .94rem; color: var(--ink-3); }

/* Challenge block */
.challenge { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.challenge__body p { font-size: 1.08rem; color: var(--ink-2); }
.challenge__body p:last-child { margin-bottom: 0; }

/* Pull quote */
.pull-quote { margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--green); max-width: 860px; }
.pull-quote blockquote { margin: 0; }
.pull-quote p { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.4; color: var(--ink); }
.pull-quote figcaption { margin-top: 16px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.section--teal .pull-quote p { color: #fff; }
.section--teal .pull-quote figcaption { color: rgba(255, 255, 255, .6); }
/* a quote under a section heading (Business benefits) keeps its distance */
.h2 + .pull-quote, h2 + .pull-quote { margin-top: clamp(24px, 3vw, 36px); }
.h2 + .pull-quote p, h2 + .pull-quote p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--teal); }
.faq__icon { color: var(--teal); transition: transform .25s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 48px 24px 0; color: var(--ink-3); }
.faq__a p { margin: 0; }

/* Related solutions ("Other solutions"): one even row. Every card fills its grid cell (rows share
   one height, with room for a two-line title), icon left · title · arrow right in every card.
   The icons sit in display:contents wrappers, so they are targeted through those wrappers. */
.related { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.related li { display: flex; min-width: 0; }
.related a { flex: 1; display: flex; align-items: center; gap: 10px; min-height: calc(2.6em + 34px); padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font-weight: 600; font-size: .92rem; line-height: 1.3; color: var(--ink); transition: border-color .2s; }
.related a > span:not([style]) { flex: 1; min-width: 0; }
.related a > span > .icon { color: var(--ink-3); transition: transform .2s var(--ease), color .2s; }
.related a:hover { border-color: var(--teal); }
.related a:hover > span > .icon { color: var(--teal); }
.related a:hover > span:last-child > .icon { transform: translateX(3px); }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band { padding: clamp(56px, 7vw, 88px) 0; }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px 64px; align-items: center; }
.cta-band .actions { margin-top: 0; }
.cta-band .lead { margin: 16px 0 0; }
.cta-band--teal { background: var(--band); color: rgba(255, 255, 255, .8); position: relative; overflow: hidden; }
.cta-band--teal::before { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border: 1.5px solid color-mix(in srgb, var(--green) 25%, transparent); transform: rotate(45deg); border-radius: 24px; pointer-events: none; }
.cta-band--teal .h2 { color: #fff; }
.cta-band--teal .lead { color: rgba(255, 255, 255, .75); }
.cta-band--teal .eyebrow { color: var(--green); }
.cta-band--cream { background: var(--cream); border-top: 1px solid var(--line); }

/* ── Team ─────────────────────────────────────────────────── */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.team + .panel-title { margin-top: 40px; }
.person { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person { padding: 28px 24px 0; }
.person__photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--teal-50); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line-2); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.person:hover .person__photo { box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--green); }
.person__body { padding: 22px 0 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.person__role { margin: 0; font-size: .9rem; color: var(--green-ink); font-weight: 600; }
.person__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 14px; font-size: .85rem; }
.person__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); word-break: break-all; }
.person__links a:hover { color: var(--teal); }
.person__tag { align-self: flex-start; margin-bottom: 6px; }

/* ── About ────────────────────────────────────────────────── */
.facts { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.fact { padding: 24px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.fact dd { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.45; }

.module-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.module-list a { display: flex; gap: 16px; padding: 24px 20px 24px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.module-list a:hover h3 { color: var(--teal); }
.module-list .icon { color: var(--teal); margin-top: 2px; }
.module-list h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 4px; transition: color .2s; }
.module-list p { margin: 0; font-size: .9rem; color: var(--ink-3); }

/* ── Contact ──────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__list { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.contact__item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__item .icon-badge { width: 44px; height: 44px; }
.contact__label { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.contact__value { display: block; font-weight: 600; color: var(--ink); }
a.contact__value:hover { color: var(--teal); }

.form { padding: clamp(24px, 4vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); position: relative; }
.form__head { margin-bottom: 24px; }
.form__head p { margin: 8px 0 0; color: var(--ink-3); font-size: .95rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field label span { color: var(--green-ink); }
.field input, .field select, .field textarea, .captcha {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--color-field-bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: .6; cursor: not-allowed; }
.field select { appearance: none; background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-focus); background: var(--white); box-shadow: 0 0 0 3px var(--focus-ring); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.captcha { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 14px; }
.captcha:focus-within { border-color: var(--color-focus); background: var(--white); box-shadow: 0 0 0 3px var(--focus-ring); }
.captcha__q { font-family: var(--font-mono); font-weight: 700; color: var(--teal); white-space: nowrap; }
.captcha__eq { color: var(--ink-3); }
.captcha input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 6px 0; box-shadow: none !important; }
.captcha__refresh { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); cursor: pointer; }
.captcha__refresh:hover { background: var(--teal-50); color: var(--teal); }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form__msg { margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .9rem; }
.form__msg.is-ok { background: var(--green-50); color: var(--green-ink); border: 1px solid var(--green-100); }
.form__msg.is-error { background: var(--danger-50); color: var(--danger); border: 1px solid var(--danger-100); }
.form__submit { margin-top: 4px; }
.form__submit.is-sent { background: var(--green-600); }
.form__note { margin: 12px 0 0; font-size: .82rem; color: var(--ink-3); text-align: center; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--color-footer-bg); border-top: 1px solid var(--line); color: rgba(255, 255, 255, .68); font-size: .92rem; padding-top: clamp(56px, 7vw, 80px); }
.footer__top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; padding-bottom: 56px; }
.footer__brand p { margin: 18px 0 0; max-width: 34ch; line-height: 1.6; }
.footer__tagline { font-family: var(--font-display); font-size: 1.05rem; color: var(--green) !important; }
.footer__offices { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.footer__offices li { display: inline-flex; align-items: center; gap: 6px; }
.footer__offices .icon { color: var(--green); }
.footer__h { margin: 6px 0 18px; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a, .footer__bottom a { color: rgba(255, 255, 255, .68); }
.footer__col a:hover, .footer__bottom a:hover { color: var(--green); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.footer__bottom p { margin: 0; }

/* ── Motion ───────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .stack__layer { opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .stack.is-visible .stack__layer { opacity: 1; transform: none; }
.stack.is-visible .stack__layer:nth-child(2) { transition-delay: .08s; }
.stack.is-visible .stack__layer:nth-child(3) { transition-delay: .16s; }
.stack.is-visible .stack__layer:nth-child(4) { transition-delay: .24s; }
.stack.is-visible .stack__layer:nth-child(5) { transition-delay: .32s; }
.stack.is-visible .stack__layer:nth-child(6) { transition-delay: .40s; }
.flow__label::before { animation: flow-pulse 4s var(--ease) infinite; animation-delay: calc(var(--i, 0) * .5s); }
/* A soft green ring that grows around a step's node and fades, one step after the other */
@keyframes flow-pulse {
  0%, 70%, 100% { opacity: 0; transform: scale(.7222); }
  35% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .stack__layer { opacity: 1; transform: none; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1180px) {
  .topbar__note { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .nav__link { padding: 10px 11px; }
  .header__inner { gap: 16px; }
  .related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(4, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .burger { display: block; margin-left: 4px; }
  .header__cta { margin-left: 8px; }
  .header__cta + .burger { margin-left: 0; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, 102px); bottom: 0; z-index: 90;
    padding: 12px var(--gutter) 32px; background: var(--color-header-bg); overflow-y: auto;
    border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.05rem; border-radius: 0; }
  .nav__link:hover, .nav__item.is-open > .nav__link { background: none; }
  .nav__link.is-current { box-shadow: none; }
  .menu, .menu--wide { position: static; width: auto; padding: 0 0 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; transition: none; }
  .menu::before { display: none; }
  .nav__item.is-open > .menu { display: block; }
  .menu--wide .menu__list { grid-template-columns: 1fr; }
  .menu__head { display: none; }
  .menu__link { padding: 10px 4px; }
  .nav__mobile-extra { display: grid; gap: 14px; margin-top: 24px; }
  .nav__mobile-contact { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 500; }
  body.nav-open { overflow: hidden; }
  body.nav-open #ls3-chat-launcher { display: none; }

  .hero__grid, .page-hero--aside .page-hero__grid, .split, .module, .challenge, .contact, .why, .partner-band, .case-study, .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .hero::after { background: color-mix(in srgb, var(--cream) 75%, transparent); }
  .why__intro, .case-study__aside { position: static; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { flex-direction: row; align-items: flex-start; }
  .step__num { flex-shrink: 0; }
  .step:not(:last-child)::after { top: auto; bottom: -21px; left: 47px; right: auto; width: 1.5px; height: 22px; }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience__item:nth-child(3) { border-left: 0; }
  .audience__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .module-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band__inner { grid-template-columns: minmax(0, 1fr); }
  .subnav { top: var(--header-h); }
  .trust__inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .trust__label { text-align: center; }
  .trust__list { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 0; }
  .trust__list li + li { border-left: 0; }
  .trust__list li:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
}

@media (max-width: 900px) {
  /* network steps: title and text, then the chips underneath */
  .flow__box { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "label label" "icon title" ". text" "items items"; }
  .flow__core-brand { grid-column: 1 / -1; grid-row: 2; }
  .flow__box > p:not(.flow__label) { max-width: none; }
  .flow__items, .flow__modules { padding: 6px 0 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar { display: none; }
  .header__cta { display: none; }
  .header__cta + .burger { margin-left: 4px; }
  .brand__word { font-size: 1rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px; --pad: 24px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px 4px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd last statistic takes the whole row */
  /* phones: narrower rail, smaller nodes and chips */
  .flow { gap: 24px; }
  .flow__group { gap: 14px; padding-left: 44px; }
  .flow__group::before { left: 13px; }
  .flow__group:not(:last-child)::before { bottom: -24px; }
  .flow__group-label { line-height: 20px; font-size: .82rem; }
  .flow__group-label::before { left: 8px; top: 4px; }
  .flow__label b { left: -44px; width: 30px; height: 30px; margin-top: -15px; font-size: .66rem; }
  .flow__label::before { left: -50px; width: 42px; height: 42px; margin-top: -21px; }
  .flow__box { grid-template-areas: "label label" "icon title" "text text" "items items"; padding: 14px 16px; row-gap: 8px; }
  .flow__box > .icon { width: 20px; height: 20px; }
  .flow__box h3 { font-size: .95rem; }
  .flow__box > p:not(.flow__label) { font-size: .82rem; line-height: 1.45; }
  .flow__items, .flow__modules { gap: 6px; }
  .flow__items li, .flow__modules a { flex-grow: 0; padding: 6px 10px; gap: 6px; font-size: .78rem; }
  .flow__items .icon, .flow__modules .icon { width: 14px; height: 14px; }
  .flow-note { margin-top: 28px; gap: 14px; }
  .flow-note p { font-size: 1.02rem; }
  .why__list { grid-template-columns: minmax(0, 1fr); }
  .why__item, .why__item:nth-child(even) { padding: 24px 0; border-left: 0; }
  .form__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .team { grid-template-columns: minmax(0, 1fr); }
  .person { flex-direction: row; gap: 20px; padding: 22px 20px 0; }
  .person__photo { width: 88px; height: 88px; flex-shrink: 0; }
  .person__body { padding-top: 0; }
  .audience { grid-template-columns: minmax(0, 1fr); }
  .audience__item + .audience__item { border-left: 0; border-top: 1px solid var(--line); }
  .module-list { grid-template-columns: minmax(0, 1fr); }
  .related { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .related a { min-height: 0; line-height: inherit; } /* one column: cards stay as they were */
  .case-part { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .case-study__meta div { grid-template-columns: 1fr; gap: 2px; }
  .partner-band .tier { flex-direction: column; align-items: flex-start; }
  .partner-band .tier__badge { width: auto; align-self: flex-start; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .support-table th, .support-table td { padding: 12px 14px; }
  .support-table td:nth-child(3) { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .actions .btn { flex: 1 1 auto; }
  .trust { padding: 20px 0; }
  .trust__inner { gap: 12px; }
  .trust__list { gap: 12px 0; }
  .trust__list li { padding: 0 6px; font-size: .8rem; letter-spacing: .08em; }
  .stack { padding: 18px; }
  .stack__body { grid-template-columns: 1fr; }
  .stack__bracket { display: none; }
  .faq__a { padding-right: 0; }
}

/* Visual editor: large body text (matches .challenge__body p) */
.v-body-lg { font-size: 1.08rem; line-height: 1.6; color: var(--ink-2); }
.v-body-lg p + p, p.v-body-lg + p.v-body-lg { margin-top: 1em; }

/* Empty TV frame (image not chosen yet) */
.screen--empty .screen__panel .media { border-radius: 3px; }

/* Smallest phones: a network chip longer than its card may wrap between words rather than overflow */
@media (max-width: 400px) {
  .flow__items li, .flow__modules a { max-width: 100%; white-space: normal; }
}
