/* ---------- Inter Tight: self-hosted variable font (400-700), no third-party request ---------- */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   CM6 — site stylesheet
   Brand palette mirrors the Order Explorer / Wizard tokens
   (see order_explorer_ui/src/styles.css). All colours are
   OKLCH so the marketing site matches the product exactly.
   ============================================================ */

:root {
  /* Brand — Blue (primary) */
  --c-blue-110: oklch(0.431 0.223 264.8);
  --c-blue-100: oklch(0.499 0.248 265);
  --c-blue-60:  oklch(0.58  0.229 266.7);
  --c-blue-20:  oklch(0.936 0.028 274.7);
  --c-blue-10:  oklch(0.977 0.011 274.9);

  /* Brand — Light Blue */
  --c-light-blue-100: oklch(0.724 0.124 228.7);
  --c-light-blue-60:  oklch(0.841 0.028 230);
  --c-light-blue-10:  oklch(0.718 0.105 230 / 0.12);

  /* Neutrals */
  --c-dark-grey-100: oklch(0.522 0 0);
  --c-dark-grey-80:  oklch(0.598 0 0);
  --c-dark-grey-60:  oklch(0.818 0 0);
  --c-dark-grey-20:  oklch(0.929 0 0);
  --c-light-grey-100: oklch(0.941 0.008 250);
  --c-light-grey-60:  oklch(0.963 0.005 253);
  --c-light-grey-10:  oklch(0.981 0.003 248);

  /* Status */
  --c-green-100: oklch(0.777 0.179 145);
  --c-green-10:  oklch(0.777 0.179 145 / 0.1);
  --c-red-100:   oklch(0.622 0.232 26.8);
  --c-red-10:    oklch(0.622 0.232 26.8 / 0.09);

  /* Base */
  --c-black-100: oklch(0.132 0.014 286);
  --c-white-100: oklch(1 0 0);

  /* Semantic */
  --bg:           var(--c-light-grey-60);
  --bg-elevated:  var(--c-white-100);
  --bg-inverse:   var(--c-black-100);
  --text:         var(--c-black-100);
  --text-muted:   var(--c-dark-grey-100); /* WCAG AA: dark-grey-80 was below 4.5:1 on the grey sections */
  --text-faint:   var(--c-dark-grey-100);
  --border:       var(--c-light-grey-100);
  --accent:       var(--c-blue-100);
  --accent-soft:  var(--c-blue-10);

  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 14px;

  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-md: 0 10px 28px -12px rgb(0 0 0 / 0.18), 0 2px 6px -2px rgb(0 0 0 / 0.06);

  --container: 1180px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--inverse {
  background: var(--bg-inverse);
  color: var(--c-white-100);
}
.section--inverse .text-muted { color: rgb(255 255 255 / 0.66); }
.section--inverse .eyebrow { color: var(--c-light-blue-100); }
.section--inverse a:hover { color: var(--c-light-blue-100); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.h-display {
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.h-section {
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.h-sub {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 600;
}
.lead {
  font-size: clamp(1rem, 1.3vw, 1.175rem);
  color: var(--text-muted);
  max-width: 62ch;
}
.text-muted { color: var(--text-muted); }
.text-mono {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); opacity: 0.85; }
.btn--primary {
  background: var(--c-blue-100);
  color: var(--c-white-100);
}
.btn--primary:hover { background: var(--c-blue-110); color: var(--c-white-100); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--c-blue-100); color: var(--c-blue-100); }
.btn--inverse {
  background: var(--c-white-100);
  color: var(--c-black-100);
}
.btn--inverse:hover { background: var(--c-light-blue-100); color: var(--c-black-100); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }

/* ---------- Cards / surfaces ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}
.card--bordered { box-shadow: none; }
.card--highlight {
  border-color: var(--c-blue-100);
  box-shadow: 0 0 0 4px var(--c-blue-10);
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(255 255 255 / 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand__logo {
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 860px) {
  .brand__logo { height: 34px; }
}
/* legacy text mark (kept for any page not yet using the image logo) */
.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--c-black-100);
  color: var(--c-white-100);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.brand__name { font-size: 1.05rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { color: var(--c-blue-100); }

.header__cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header__cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav--open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 14px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(56px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto auto;
  width: 60%;
  height: 80%;
  background: radial-gradient(closest-side, var(--c-blue-10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

/* ---------- Pill / chip ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--c-blue-10);
  color: var(--c-blue-110);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pill__dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--c-green-100);
}

/* ---------- Feature cards ---------- */
.feature {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.feature__num {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-blue-100);
  letter-spacing: 0.08em;
}
.feature h3 { font-size: 1.125rem; font-weight: 600; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }
.feature__preview {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-blue-100);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Friction list ---------- */
.friction-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .friction-grid { grid-template-columns: 1fr; } }
.friction {
  padding: 28px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--radius-lg);
}
.friction__index {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8rem;
  color: var(--c-light-blue-100);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.friction h3 { font-size: 1.125rem; font-weight: 600; margin-top: 6px; }
.friction p { color: rgb(255 255 255 / 0.7); margin-top: 8px; font-size: 0.95rem; }

/* ---------- Stats / metrics row ---------- */
.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.metric__value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.metric__label { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Pricing ---------- */
.tier {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 100%;
}
.tier--featured {
  border-color: var(--c-blue-100);
  box-shadow: 0 0 0 4px var(--c-blue-10), var(--shadow-sm);
  position: relative;
}
.tier__name { font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.tier__price {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tier__price small { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.tier__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tier__list li {
  padding-left: 26px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}
.tier__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--c-green-10);
  border: 1px solid var(--c-green-100);
}
.tier__list li::after {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--c-green-100);
  border-bottom: 1.5px solid var(--c-green-100);
  transform: rotate(-45deg);
}

/* ---------- Logos / case study row ---------- */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0.75;
}
.logo-row div {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Quote / testimonial ---------- */
.quote {
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.quote p {
  font-size: 1.125rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.quote__by { margin-top: 18px; display: flex; gap: 12px; align-items: center; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 56px 0 32px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--text); font-size: 0.95rem; }
.footer-legal { margin-top: 14px; font-size: 0.78rem; line-height: 1.5; color: var(--text-muted); max-width: 96ch; }
.footer-legal a { color: inherit; text-decoration: underline; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Form ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--c-blue-100);
  box-shadow: 0 0 0 4px var(--c-blue-10);
}
.field textarea { min-height: 130px; resize: vertical; }
.field--full { grid-column: 1 / -1; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.center { text-align: center; }
.muted-bg { background: var(--c-light-grey-10); }
.maxw-prose { max-width: 70ch; }

/* Visual product mock used on Home/Product */
.mock {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--c-light-grey-60);
  border-bottom: 1px solid var(--border);
}
.mock__bar span {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--c-dark-grey-60);
}
.mock__body { padding: 22px; display: grid; grid-template-columns: 200px 1fr; gap: 22px; }
@media (max-width: 700px) { .mock__body { grid-template-columns: 1fr; } }
.mock__side { display: flex; flex-direction: column; gap: 10px; }
.mock__sideitem {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--c-light-grey-10);
}
.mock__sideitem--active { color: var(--c-blue-110); background: var(--c-blue-10); font-weight: 600; }
.mock__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.mock__kpi {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--c-light-grey-10);
  border: 1px solid var(--border);
}
.mock__kpi small { color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.mock__kpi b { display: block; font-size: 1.1rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.mock__kpi--pos b { color: var(--c-green-100); }
.mock__kpi--neg b { color: var(--c-red-100); }
.mock__chart {
  height: 160px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, transparent 0%, var(--c-blue-10) 100%),
    repeating-linear-gradient(90deg, transparent 0 19%, var(--border) 19% 19.4%);
  position: relative;
  overflow: hidden;
}
.mock__chart::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--c-blue-100) 30%,
    var(--c-blue-100) 30.6%,
    transparent 31%);
  mix-blend-mode: multiply;
  opacity: 0;
}
.mock__svg { width: 100%; height: 160px; }

/* ---------- Docs / resource center ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--c-dark-grey-60); }

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.doc-table th, .doc-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.doc-table thead th {
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table code {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--c-light-grey-10);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}

.doc-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.doc-steps > li { position: relative; padding-left: 50px; }
.doc-steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--c-blue-10);
  color: var(--c-blue-110);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.callout {
  border-left: 3px solid var(--c-blue-100);
  background: var(--c-blue-10);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--text);
}
.callout--warn {
  border-left-color: var(--c-red-100);
  background: var(--c-red-10);
}

.prose p { margin-top: 14px; }
.prose p code, .prose li code {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--c-light-grey-10);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ---------- Header login link ---------- */
.header__login {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 2px;
}
.header__login:hover { color: var(--text); }
.nav__mobile-login { display: none; }
@media (max-width: 860px) {
  .header__login { display: none; }
  .nav__mobile-login {
    display: block;
    color: var(--text-muted);
    font-weight: 500;
    border-top: 1px solid var(--border);
    padding-top: 12px;
  }
}

/* ---------- Hero live-feed chips ---------- */
.feed-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.feed-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c-light-grey-10);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.feed-chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--c-green-100);
}

/* ---------- From -> To shift (antidote / mandate) ---------- */
.shift-grid { display: grid; gap: 14px; margin-top: 36px; }
.shift-heads {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 20px;
  align-items: center;
}
.shift-heads__old, .shift-heads__new {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.shift-heads__old { color: var(--text-muted); }
.shift-heads__new { color: var(--c-blue-110); }
.shift-row {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 20px;
  align-items: stretch;
}
.shift-row__from, .shift-row__to {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.shift-row__from { border-style: dashed; }
.shift-row__from h4 { font-size: 1rem; font-weight: 600; color: var(--text); }
.shift-row__from p { color: var(--text-muted); font-size: 0.92rem; margin-top: 6px; }
.shift-row__to { border-color: var(--c-blue-100); box-shadow: 0 0 0 3px var(--c-blue-10); }
.shift-row__to h4 { font-size: 1rem; font-weight: 600; color: var(--c-blue-110); }
.shift-row__to p { color: var(--text); font-size: 0.92rem; margin-top: 6px; }
.shift-row__arrow { align-self: center; color: var(--c-blue-100); font-size: 1.3rem; font-weight: 700; }
@media (max-width: 780px) {
  .shift-heads { display: none; }
  .shift-row { grid-template-columns: 1fr; gap: 8px; }
  .shift-row__arrow { transform: rotate(90deg); justify-self: center; }
}

/* ---------- Numbered process steps (mechanism) ---------- */
.step {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step__num {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--c-blue-10);
  color: var(--c-blue-110);
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.1rem; font-weight: 600; }
.step p { color: var(--text-muted); font-size: 0.93rem; }
.step small {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue-100);
  font-weight: 600;
}

/* ---------- CM ladder (the CM6 standard) ---------- */
.ladder { margin-top: 30px; }
.ladder__cm6 {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  background: var(--c-blue-100);
  color: var(--c-white-100);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-md);
}
.ladder__cm6 .tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.9; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.16);
}
.ladder__connector { width: 2px; height: 28px; margin: 6px auto; background: linear-gradient(var(--c-blue-100), var(--c-dark-grey-60)); }
.ladder__row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  padding: 22px 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--c-light-grey-10);
}
.ladder__chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ladder__chip--gp { background: var(--c-black-100); color: var(--c-white-100); border-color: transparent; }
.ladder__arrow { color: var(--c-dark-grey-80); font-weight: 700; }
.ladder__caption { margin-top: 12px; text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.ladder__caption strong { color: var(--c-red-100); font-weight: 600; }

/* ---------- Pricing comparison table ---------- */
.price-table-wrap {
  overflow-x: auto;
  margin-top: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  -webkit-overflow-scrolling: touch;
}
.price-table { width: 100%; border-collapse: collapse; min-width: 820px; font-size: 0.9rem; }
.price-table th, .price-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.price-table thead th { background: var(--c-light-grey-10); position: relative; }
.price-table thead .gate { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; }
.price-table thead .gate-name { display: block; font-size: 1.02rem; font-weight: 600; margin-top: 4px; letter-spacing: -0.01em; }
.price-table tbody th {
  font-weight: 600; color: var(--text-muted);
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap; background: var(--bg-elevated);
}
.price-table td b { font-weight: 600; color: var(--text); }
.price-table td span { display: block; color: var(--text-muted); font-size: 0.82rem; margin-top: 3px; }
.price-table .col-featured { background: var(--c-blue-10); }
.price-table thead .col-featured { background: var(--c-blue-20); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Interactive product showcase (tabbed hero) ---------- */
.showcase {
  margin-top: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.showcase__bar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 14px;
  background: var(--c-light-grey-60);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.showcase__dots { display: flex; gap: 6px; }
.showcase__dots span { width: 10px; height: 10px; border-radius: 999px; background: var(--c-dark-grey-60); }
.showcase__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.showcase__tab {
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid transparent; background: transparent;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.showcase__tab:hover { color: var(--text); }
.showcase__tab.is-active {
  background: var(--bg-elevated); color: var(--c-blue-110);
  border-color: var(--border); box-shadow: var(--shadow-xs); font-weight: 600;
}
.showcase__panels { padding: 22px; }
.showcase__panel { display: none; }
.showcase__panel.is-active { display: block; animation: showcaseFade 0.22s ease; }
@keyframes showcaseFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.showcase__caption { margin-top: 14px; font-size: 0.82rem; color: var(--text-muted); }

/* waterfall axis labels */
.wf-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.wf-labels span { font-size: 0.64rem; color: var(--text-muted); text-align: center; text-transform: uppercase; letter-spacing: 0.03em; }

/* flight deck */
.deck-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .deck-kpis { grid-template-columns: repeat(2, 1fr); } }

/* orders workspace grid */
.orders-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.orders-grid { width: 100%; border-collapse: collapse; font-size: 0.82rem; font-variant-numeric: tabular-nums; min-width: 640px; }
.orders-grid th { text-align: left; color: var(--text-muted); font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.orders-grid td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
.orders-grid tr:last-child td { border-bottom: 0; }
.orders-grid .pos { color: var(--c-green-100); font-weight: 600; }
.orders-grid .neg { color: var(--c-red-100); font-weight: 600; }

/* doc-table featured row (the lens comparison) */
.doc-table tr.is-featured td { background: var(--c-blue-10); }
.doc-table tr.is-featured td:first-child { color: var(--c-blue-110); font-weight: 600; }

/* ---------- Pricing calculator ---------- */
.calc { margin-top: 8px; }
.calc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.calc__label { font-weight: 600; font-size: 1rem; }
.calc__count { font-variant-numeric: tabular-nums; }
.calc__count b { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; }
.calc__unit { color: var(--text-muted); font-size: 0.9rem; margin-left: 4px; }
.calc__slider {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--c-dark-grey-20);
  outline: none;
  margin-top: 20px;
  cursor: pointer;
}
.calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--c-white-100); border: 2px solid var(--c-blue-100);
  box-shadow: var(--shadow-sm); cursor: pointer; margin-top: -7px;
}
.calc__slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--c-white-100); border: 2px solid var(--c-blue-100);
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.calc__slider:focus-visible { box-shadow: 0 0 0 4px var(--c-blue-10); }
/* tick labels are positioned from their real value by initPricingCalc() */
.calc__scale { position: relative; height: 16px; margin-top: 12px; font-size: 0.72rem; color: var(--text-muted); }
.calc__scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.calc__scale span::before {
  content: "";
  position: absolute;
  left: 50%; top: -9px;
  width: 1px; height: 5px;
  background: var(--c-dark-grey-60);
  transform: translateX(-50%);
}
.calc__result {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border);
}
.calc__gate { display: block; font-weight: 600; font-size: 1.05rem; color: var(--c-blue-110); }
.calc__hint { display: block; color: var(--text-muted); font-size: 0.85rem; margin-top: 2px; }
.calc__buy { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.calc__price { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__per { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
@media (max-width: 560px) {
  .calc__buy { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* pricing table dynamic selection (driven by the calculator) */
.price-table td.is-selected { background: var(--c-blue-10); }
.price-table thead th.is-selected { background: var(--c-blue-20); box-shadow: inset 0 -3px 0 var(--c-blue-100); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Contact form: honeypot (visually hidden) + status/success states ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[data-form-status]:empty { display: none; }
