/* BridgeComp — public site.
   Design direction: an operations console, not a brochure. The product's own
   vocabulary carries the page: hairline table rules, status pills, monospace
   step names, and one signature device — the rail (source → BridgeComp →
   target) drawn from the logo's bridge arc, reused at three scales.
   Palette and logo are the existing BridgeComp brand; nothing here recolours it. */

/* ── Fonts (self-hosted; no third-party request on the critical path) ────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/site/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/site/assets/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* Brand — unchanged from the BridgeComp application */
  --navy-950: #081231;
  --navy-900: #0B1B42;
  --navy-800: #0E2451;
  --navy-700: #12306B;
  --blue: #2F7CF6;
  --blue-ink: #1D4ED8;      /* AA on white */
  --blue-lift: #4D9AFF;     /* on dark only */
  --teal: #2EC4B6;
  --teal-ink: #0E7C72;      /* AA on white */

  /* Surfaces & text */
  --page: #F5F8FC;
  --card: #FFFFFF;
  --ink: #0F1F44;
  --ink-2: #4B5C80;
  --muted: #64748B;
  --line: #E3E9F2;
  --line-strong: #CDD9EA;
  --on-dark: #E4ECFA;
  --on-dark-2: #A9BBDA;
  --dark-line: rgba(255, 255, 255, 0.12);

  /* Operational status — same vocabulary as the product's StatusPill */
  --ok: #067647;        --ok-bg: #E7F6EE;   --ok-line: #A9DFC3;
  --run: #175CD3;       --run-bg: #E6EFFE;  --run-line: #AECBFA;
  --warn: #B54708;      --warn-bg: #FEF3E2; --warn-line: #F3CE9E;
  --fail: #B42318;      --fail-bg: #FDECEA; --fail-line: #F1B7B0;
  --idle: #475467;      --idle-bg: #EEF1F6; --idle-line: #D5DCE7;

  /* Spacing scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --sy: 88px;               /* vertical rhythm between sections */

  --r-sm: 6px;
  --r: 10px;                /* matches the application's card radius */
  --r-lg: 14px;
  --shadow-xs: 0 1px 2px rgba(16, 33, 62, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 33, 62, 0.08), 0 1px 2px rgba(16, 33, 62, 0.04);
  --shadow-lift: 0 18px 44px -28px rgba(11, 27, 66, 0.45);

  /* Secondary body text. Sections flip this once instead of every component
     re-declaring a colour — the reason dark sections used to inherit ink. */
  --text-2: var(--ink-2);
  --maxw: 1152px;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --brand-arc: var(--teal);
  --brand-node: var(--blue);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@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; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Manrope', 'Inter', sans-serif; letter-spacing: -0.02em; line-height: 1.15; }
img, svg { max-width: 100%; }
/* Numbering on this site is drawn (stage dots, step markers), never rendered
   by the list itself — but the elements stay <ol> where order is meaningful. */
ul, ol { list-style: none; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s5); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--card); color: var(--blue-ink); padding: 10px 18px; border-radius: 0 0 var(--r) var(--r);
  font-weight: 600; font-size: 14px; z-index: 100; transition: top 0.15s;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.section--dark :focus-visible { outline-color: var(--blue-lift); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font: 600 15px/1 'Inter', sans-serif; text-decoration: none; white-space: nowrap;
  padding: 12px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--blue-ink); color: #fff; }
.btn-primary:hover { background: #1841B4; }
.btn-outline { background: var(--card); color: var(--blue-ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--blue); background: #F4F8FF; }
.btn-quiet { font: 600 15px/1 'Inter', sans-serif; text-decoration: none; padding: 12px 8px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.section--dark .btn-outline {
  background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, 0.28);
}
.section--dark .btn-outline:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.6) blur(8px);
  backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--s6); height: 62px; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--navy-900); }
.brand-mark { display: block; flex: none; width: 33px; height: 24px; object-fit: contain; }
.wordmark { font: 800 19px/1 'Manrope', sans-serif; letter-spacing: -0.03em; }
.wordmark span { color: var(--blue); }
.brand-sm .wordmark { font-size: 17px; }
/* On navy the mark's own navy would disappear, so it keeps a white tile —
   the same treatment as the application's sidebar. */
.brand-on-dark { color: #fff; }
.brand-on-dark .brand-mark { background: #fff; border-radius: var(--r-sm); padding: 3px 4px; box-sizing: content-box; }
.brand-on-dark .wordmark span { color: var(--blue-lift); }

.nav { display: flex; gap: var(--s5); margin-right: auto; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { color: var(--blue-ink); border-bottom-color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: var(--s3); }

.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.menu summary::-webkit-details-marker { display: none; }
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; }
.menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
.menu-panel {
  position: absolute; right: 0; top: 52px; min-width: 232px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lift);
  padding: var(--s2); display: flex; flex-direction: column;
}
.menu-panel a { padding: 11px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); }
.menu-panel a:hover { background: var(--page); }
.menu-cta { background: var(--blue-ink); color: #fff !important; text-align: center; margin-top: var(--s2); font-weight: 600; }

/* ── Section scaffolding ─────────────────────────────────────────────────── */
.section { padding: var(--sy) 0; }
.section--tight { padding: calc(var(--sy) * 0.66) 0; }
.section--dark { background: var(--navy-900); color: var(--on-dark); --text-2: var(--on-dark-2); }
.section--deep { background: var(--navy-950); color: var(--on-dark); --text-2: var(--on-dark-2); }
.section--white { background: var(--card); }
.section--dark h2, .section--dark h3, .section--deep h2, .section--deep h3 { color: #fff; }
.section--dark p, .section--deep p { color: var(--text-2); }

.sec-head { max-width: 720px; }
.sec-head--wide { max-width: 860px; }
.kicker {
  display: inline-flex; align-items: center; gap: var(--s2);
  font: 700 12px/1 'Inter', sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-ink); margin-bottom: var(--s3);
}
.kicker::before { content: ''; width: 7px; height: 7px; background: var(--teal); border-radius: 1px; }
.section--dark .kicker, .section--deep .kicker { color: var(--blue-lift); }
h2.title { font-size: clamp(27px, 3.1vw, 37px); font-weight: 800; }
.lede { margin-top: var(--s4); font-size: 17px; color: var(--text-2); }

.sec-foot { margin-top: var(--s6); display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--on-dark);
  padding: var(--s9) 0 var(--s8);
  position: relative;
  overflow: hidden;
}
/* A faint engineering grid — structure, not glow. */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(760px 420px at 22% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(760px 420px at 22% 40%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: var(--s7); align-items: center; }
.hero-eyebrow {
  display: inline-block; font: 600 13px/1 'Inter', sans-serif; letter-spacing: 0.04em;
  color: var(--teal); border: 1px solid rgba(46, 196, 182, 0.35); background: rgba(46, 196, 182, 0.08);
  padding: 7px 12px; border-radius: 999px; margin-bottom: var(--s5);
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; color: #fff;
  letter-spacing: -0.032em; line-height: 1.04;
}
.hero-sub { margin-top: var(--s5); font-size: 18px; color: var(--on-dark-2); max-width: 34em; }
.hero-sub strong { color: var(--on-dark); font-weight: 600; }
.hero-cta { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s6); }
.hero-meta {
  margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--dark-line);
  display: flex; gap: var(--s5); flex-wrap: wrap; font-size: 13.5px; color: var(--on-dark-2);
}
.hero-meta li { display: flex; align-items: center; gap: var(--s2); }
.hero-meta li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); flex: none; }

/* ── Product console (the real Jobs view, rebuilt in markup) ─────────────── */
.console {
  min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); overflow: hidden; color: var(--ink);
}
.console-bar {
  display: flex; align-items: center; gap: var(--s3); padding: 10px 14px;
  background: #F7F9FC; border-bottom: 1px solid var(--line);
}
.console-dots { display: flex; gap: 6px; flex: none; }
.console-dots i { width: 9px; height: 9px; border-radius: 50%; background: #D7DEE9; display: block; }
.console-url {
  flex: 1; font: 500 12px/1 var(--mono); color: var(--muted); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.console-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s4) var(--s4) var(--s3);
}
.console-head h3 { font-size: 16px; font-weight: 800; }
.console-filters { display: flex; gap: 6px; }
.console-filters span {
  font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--page);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 9px; white-space: nowrap;
}
.console-scroll { overflow-x: auto; min-width: 0; }
/* Fixed layout: max-width is ignored on auto-layout table cells, so the
   flow column could never be told to ellipsize instead of widening the card. */
.jobs { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; min-width: 400px; }
.jobs col.c-status { width: 30%; }
.jobs col.c-doc { width: 21%; }
.jobs col.c-flow { width: 33%; }
.jobs col.c-dur { width: 16%; }
.jobs th {
  text-align: left; font: 700 10.5px/1 'Inter', sans-serif; letter-spacing: 0.07em; text-transform: uppercase;
  color: #5A6B82; background: #F7F8FC; border-block: 1px solid var(--line); padding: 9px var(--s3); white-space: nowrap;
}
.jobs td {
  padding: 0 var(--s3); height: 44px; line-height: 42px; vertical-align: middle;
  border-bottom: 1px solid #EFF3F8; white-space: nowrap;
}
.jobs td .pill { vertical-align: middle; }
.jobs tbody tr:nth-child(even) { background: #FAFBFE; }
.jobs .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.jobs .doc { font-family: var(--mono); font-size: 12.5px; }
.jobs .flow { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.jobs .err { color: var(--fail); font-size: 12px; }
.console-foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); padding: 11px var(--s4);
  background: #F7F9FC; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2);
  min-width: 0;
}
.console-foot b { font-weight: 600; color: var(--ink); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 'Inter', sans-serif;
  padding: 5px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill-ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.pill-run { color: var(--run); background: var(--run-bg); border-color: var(--run-line); }
.pill-fail { color: var(--fail); background: var(--fail-bg); border-color: var(--fail-line); }
.pill-warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.pill-idle { color: var(--idle); background: var(--idle-bg); border-color: var(--idle-line); }
.pill-run::before { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ── Trust strip ─────────────────────────────────────────────────────────── */
.trust { background: var(--card); border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; align-items: center; gap: var(--s7); padding: var(--s5) 0; flex-wrap: wrap; }
.trust-by { display: flex; align-items: center; gap: var(--s3); padding-right: var(--s7); border-right: 1px solid var(--line); }
.trust-by span { font: 600 11.5px/1.4 'Inter', sans-serif; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.trust-by b { font: 800 17px/1 'Manrope', sans-serif; color: var(--navy-900); display: block; margin-top: 4px; }
.trust-facts { display: flex; gap: var(--s7); flex-wrap: wrap; }
.trust-facts div { min-width: 0; }
.trust-facts b { font: 800 22px/1 'Manrope', sans-serif; color: var(--navy-900); }
.trust-facts span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ── Generic card grids ──────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--s4); margin-top: var(--s7); }
.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 {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s5); box-shadow: var(--shadow-xs);
}
.card h3 { font-size: 17px; font-weight: 800; margin-bottom: var(--s2); }
.card p { font-size: 14.5px; color: var(--text-2); }
.section--dark .card, .section--deep .card {
  background: rgba(255, 255, 255, 0.04); border-color: var(--dark-line); box-shadow: none;
}
.card-num {
  font: 700 11px/1 var(--mono); color: var(--blue-ink); background: #EDF3FE;
  border-radius: var(--r-sm); padding: 5px 7px; display: inline-block; margin-bottom: var(--s3);
}
.ticks { margin-top: var(--s3); display: grid; gap: 7px; }
.ticks li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--text-2); }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 7px; width: 11px; height: 6px;
  border-left: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); transform: rotate(-45deg);
}

.section--dark .ticks li::before, .section--deep .ticks li::before { border-color: var(--teal); }

/* ── The rail: source → BridgeComp → target ──────────────────────────────── */
.rail { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.rail-end, .rail-core {
  border-radius: var(--r-sm); padding: 6px 10px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; font-weight: 600;
}
.rail-end { background: var(--page); border: 1px solid var(--line); color: var(--ink-2); flex: 1 1 0; min-width: 0; text-align: center; }
.rail-core { background: var(--navy-900); color: #fff; flex: none; font-family: 'Manrope', sans-serif; letter-spacing: -0.01em; }
/* Navy on navy disappears; on dark sections the control layer takes the
   accent instead. */
.section--dark .rail-core, .section--deep .rail-core { background: var(--blue-ink); }
.rail-line { flex: none; width: 22px; height: 1px; background: var(--line-strong); position: relative; }
.rail-line::after {
  content: ''; position: absolute; right: 0; top: -2.5px;
  border: 3px solid transparent; border-left-color: var(--line-strong);
}

/* Stacked rail: source above, control layer in the middle, target below —
   the same diagram turned vertical so nothing has to be truncated. */
.rail--stack { flex-direction: column; align-items: stretch; gap: 0; }
/* The connectors are drawn outside each pill's box, so the truncation
   overflow used by the horizontal rail has to be released here. */
.rail--stack .rail-end, .rail--stack .rail-core { flex: none; text-align: left; overflow: visible; }
.rail--stack .rail-core { align-self: flex-start; }
.rail--stack > * + * { margin-top: 20px; position: relative; }
.rail--stack > * + *::before {
  content: ''; position: absolute; left: 15px; top: -20px; width: 1px; height: 20px; background: var(--line-strong);
}
.rail--stack > * + *::after {
  content: ''; position: absolute; left: 12px; top: -7px;
  border: 4px solid transparent; border-top-color: var(--line-strong);
}

.flowcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s5); display: flex; flex-direction: column; box-shadow: var(--shadow-xs);
}
.flowcard h3 { font-size: 16px; font-weight: 800; margin: var(--s4) 0 var(--s2); }
.flowcard p { font-size: 14px; color: var(--ink-2); flex: 1; }
.flowcard-featured { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.flowcard-featured .rail-core { background: var(--blue-ink); }
.guards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px dashed var(--line); }
.guards li {
  font: 600 11.5px/1 'Inter', sans-serif; color: var(--teal-ink); background: #EAF8F6;
  border: 1px solid #C4EBE6; border-radius: 999px; padding: 5px 9px;
}

/* ── How it works: one big rail with the control layer opened up ─────────── */
.pipeline { display: grid; grid-template-columns: minmax(168px, 0.85fr) minmax(0, 2.4fr) minmax(168px, 0.85fr); gap: var(--s5); align-items: start; margin-top: var(--s7); }
.pipe-side {
  border: 1px solid var(--dark-line); border-radius: var(--r); padding: var(--s5);
  display: flex; flex-direction: column; justify-content: flex-start; background: rgba(255, 255, 255, 0.03);
}
.pipe-side h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-2) !important; font-family: 'Inter', sans-serif; font-weight: 700; }
.pipe-side ul { margin-top: var(--s3); display: grid; gap: 6px; }
.pipe-side li { font-family: var(--mono); font-size: 12.5px; color: var(--on-dark); }
.pipe-core {
  position: relative;
  border: 1px solid rgba(77, 154, 255, 0.4); background: rgba(47, 124, 246, 0.09);
  border-radius: var(--r); padding: var(--s5); min-width: 300px;
}
/* Wires into and out of the control layer, so the three panels read as one
   diagram rather than three cards. */
.pipe-core::before, .pipe-core::after {
  content: ''; position: absolute; top: 40px; width: var(--s5); height: 1px;
  background: rgba(169, 187, 218, 0.45);
}
.pipe-core::before { left: calc(var(--s5) * -1); }
.pipe-core::after { right: calc(var(--s5) * -1); }
.pipe-core h3 { font-size: 15px; font-weight: 800; }
.pipe-steps { margin-top: var(--s4); display: grid; gap: 0; }
.pipe-steps li {
  display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); align-items: start;
  padding: 10px 0; border-top: 1px solid var(--dark-line); font-size: 14px; color: var(--on-dark);
}
.pipe-steps li:first-child { border-top: 0; }
.pipe-steps b { display: block; font: 700 11px/1.6 var(--mono); color: var(--blue-lift); }
.pipe-steps li > div { font-weight: 700; }
.pipe-steps span { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 400; color: var(--on-dark-2); }


/* ── Numbered stages (migration) ─────────────────────────────────────────── */
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: var(--s7); }
.stage { padding: 0 var(--s4) 0 0; position: relative; }
.stage::before {
  content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: var(--line-strong);
}
.stage:last-child::before { right: auto; width: 14px; }
.stage-dot {
  position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--card);
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  font: 700 12px/1 var(--mono); color: var(--blue-ink); margin-bottom: var(--s4);
}
.stage h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.stage p { font-size: 13.5px; color: var(--text-2); padding-right: var(--s4); }
.stage-live .stage-dot { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }

/* ── Connectors ──────────────────────────────────────────────────────────── */
.cats { columns: 3; column-gap: var(--s4); margin-top: var(--s7); }
.cat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s4) var(--s5) var(--s5); break-inside: avoid; margin-bottom: var(--s4);
}
.cat h3 {
  font: 700 11.5px/1 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--s3); display: flex; justify-content: space-between; align-items: center;
}
.cat h3 span { font-family: var(--mono); font-size: 11px; color: var(--ink-2); background: var(--page); border-radius: var(--r-sm); padding: 3px 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; font-weight: 500; color: var(--ink); background: var(--page); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 9px; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.billing-toggle { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s6); }
.billing-toggle > span { font-size: 13px; color: var(--muted); font-weight: 600; }
.segmented { display: inline-flex; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; }
.segmented button {
  font: 600 13.5px/1 'Inter', sans-serif; color: var(--ink-2); background: none; border: 0;
  padding: 8px 14px; border-radius: var(--r-sm); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.segmented button[aria-pressed='true'] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-xs); }
.segmented .save { font-size: 11px; font-weight: 700; color: var(--teal-ink); }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s5); align-items: stretch; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s5); display: flex; flex-direction: column; position: relative;
}
.plan-popular { border: 1px solid var(--blue); box-shadow: var(--shadow-sm); }
.plan-flag {
  position: absolute; top: -11px; left: var(--s5);
  font: 700 10.5px/1 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--blue-ink); color: #fff; border-radius: 999px; padding: 5px 10px;
}
.plan h3 { font-size: 17px; font-weight: 800; }
.plan-tagline { font-size: 13px; color: var(--muted); margin-top: 4px; min-height: 2.6em; }
.price { margin-top: var(--s4); display: flex; align-items: baseline; gap: 4px; font-family: 'Manrope', sans-serif; }
.price .amount { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.price .per, .price .pre { font-size: 13px; font-weight: 600; color: var(--muted); font-family: 'Inter', sans-serif; }
.price-note { font-size: 12.5px; color: var(--teal-ink); font-weight: 600; margin-top: 4px; min-height: 1.4em; }
.plan-features { margin: var(--s5) 0; display: grid; gap: 8px; flex: 1; }
.plan-features li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--ink-2); }
.plan-features li::before {
  content: ''; position: absolute; left: 1px; top: 7px; width: 10px; height: 5px;
  border-left: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); transform: rotate(-45deg);
}
.plan-features b { color: var(--ink); font-weight: 700; }
.plan-cta { margin-top: auto; }
.pricing-notes { margin-top: var(--s6); display: flex; gap: var(--s5); flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.pricing-notes li { display: flex; gap: 8px; }
.pricing-notes b { color: var(--ink); }

/* Billing modes: monthly is the rendered default so the page is correct with
   no JavaScript; the toggle is revealed only when scripting is available. */
.b-annual { display: none; }
.js .billing-toggle[hidden] { display: flex; }
body.billing-annual .b-monthly { display: none; }
body.billing-annual .b-annual { display: inline; }

/* Term tooltips */
.term { border-bottom: 1px dotted var(--line-strong); cursor: help; position: relative; }
.tip {
  position: absolute; bottom: calc(100% + 9px); left: -8px; width: 244px; z-index: 20;
  background: var(--navy-900); color: var(--on-dark); font-size: 12.5px; line-height: 1.5;
  padding: 10px 12px; border-radius: var(--r-sm); box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transition: opacity 0.12s;
}
.tip b { display: block; color: #fff; margin-bottom: 3px; }
.tip::after {
  content: ''; position: absolute; top: 100%; left: 14px;
  border: 6px solid transparent; border-top-color: var(--navy-900);
}
.term:hover .tip, .term:focus .tip, .term:focus-visible .tip { opacity: 1; visibility: visible; }

/* ── Split feature blocks (text + visual) ────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s8); align-items: center; }
.split--flip .split-visual { order: -1; }
.split-visual { min-width: 0; }

/* Step timeline visual */
.timeline { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.timeline-head { padding: var(--s4); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.timeline-head h3 { font-size: 15px; font-weight: 800; }
.timeline-head .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: auto; }
.tl-step { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s3); align-items: center; padding: 11px var(--s4); border-bottom: 1px solid #EFF3F8; font-size: 13.5px; }
.tl-step:last-child { border-bottom: 0; }
.tl-name { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.tl-ms { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.tl-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--fail); background: var(--fail-bg); border: 1px solid var(--fail-line); border-radius: var(--r-sm); padding: 8px 10px; }
.tl-note--ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }

/* Ledger visual (duplicate protection) */
.ledger { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.ledger-row { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); align-items: center; padding: 12px var(--s4); border-bottom: 1px solid #EFF3F8; font-size: 13.5px; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row code { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.ledger-head { background: #F7F8FC; font: 700 10.5px/1 'Inter', sans-serif; letter-spacing: 0.07em; text-transform: uppercase; color: #5A6B82; padding: 10px var(--s4); border-bottom: 1px solid var(--line); }

/* ── Final CTA ───────────────────────────────────────────────────────────── */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(27px, 3.3vw, 38px); font-weight: 800; color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-final p { max-width: 62ch; margin: var(--s4) auto 0; font-size: 16.5px; }
.cta-final .hero-cta { justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-950); color: var(--on-dark-2); padding: var(--s8) 0 var(--s5); font-size: 14px; }
.foot-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--s6); }
.foot-brand .brand { color: #fff; margin-bottom: var(--s4); }
.foot-brand p { max-width: 34ch; font-size: 13.5px; line-height: 1.65; }
.foot-brand a { color: var(--on-dark); }
.foot-col h2 { font: 700 11.5px/1 'Inter', sans-serif; letter-spacing: 0.09em; text-transform: uppercase; color: #fff; margin-bottom: var(--s4); }
.foot-col ul { display: grid; gap: 10px; }
.foot-col a { text-decoration: none; font-size: 14px; }
.foot-col a:hover, .foot-brand a:hover { color: #fff; text-decoration: underline; }
.foot-bottom {
  margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--dark-line);
  display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: 13px;
}

/* ── Forms (demo request) ────────────────────────────────────────────────── */
.form-page { padding: var(--s8) 0 var(--sy); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: var(--s8); align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow-sm); }
.field { margin-bottom: var(--s5); }
.field > label, .fieldset-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field .hint { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.input, .select, .textarea {
  width: 100%; font: 400 15px/1.5 'Inter', sans-serif; color: var(--ink); background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 11px 12px;
}
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.textarea { min-height: 104px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%234B5C80' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.radio-row { display: flex; gap: var(--s3); flex-wrap: wrap; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio-chip span {
  display: block; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 9px 14px; font-size: 14px; font-weight: 500; cursor: pointer;
}
.radio-chip input:checked + span { border-color: var(--blue); background: #F1F6FE; color: var(--blue-ink); font-weight: 600; }
.radio-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  display: none; margin-bottom: var(--s4); padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--fail-bg); border: 1px solid var(--fail-line); color: var(--fail); font-size: 14px;
}
.form-error[data-shown='1'] { display: block; }
.form-legal { font-size: 12.5px; color: var(--muted); margin-top: var(--s4); }
.form-legal a { color: var(--blue-ink); }

.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); }
.aside-card + .aside-card { margin-top: var(--s4); }
.aside-card h2 { font-size: 15px; font-weight: 800; margin-bottom: var(--s3); }
.aside-list { display: grid; gap: var(--s3); }
.aside-list li { font-size: 14px; color: var(--ink-2); display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.aside-list b { color: var(--ink); font-weight: 600; }
.aside-step { font: 700 11px/1.45 var(--mono); color: var(--blue-ink); }

/* ── Long-form content pages (security, privacy) ─────────────────────────── */
.page-head { background: var(--navy-900); color: var(--on-dark); padding: var(--s8) 0; }
.page-head h1 { font-size: clamp(30px, 3.8vw, 42px); font-weight: 800; color: #fff; max-width: 20ch; }
.page-head p { margin-top: var(--s4); font-size: 17px; color: var(--on-dark-2); max-width: 62ch; }
.page-head .kicker { color: var(--blue-lift); }

/* padding-block only: this element is also a .wrap, and the padding shorthand
   would wipe out the wrap's horizontal gutter. */
.doc { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: var(--s8); padding-block: var(--s8) var(--sy); }
.doc-nav { position: sticky; top: 86px; align-self: start; }
.doc-nav h2 { font: 700 11.5px/1 'Inter', sans-serif; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s4); }
.doc-nav ul { display: grid; gap: 2px; }
.doc-nav a { display: block; font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-left: 2px solid var(--line); }
.doc-nav a:hover { color: var(--blue-ink); border-left-color: var(--blue); background: #F4F8FF; }
.doc-body > section { padding: 0 0 var(--s7); scroll-margin-top: 86px; }
.doc-body h2 { font-size: 22px; font-weight: 800; margin-bottom: var(--s3); }
.doc-body h3 { font-size: 15.5px; font-weight: 700; margin: var(--s5) 0 6px; }
.doc-body p { font-size: 15.5px; color: var(--ink-2); max-width: 68ch; }
.doc-body p + p { margin-top: var(--s3); }
.doc-body .ticks { margin-top: var(--s4); }
.doc-body .ticks li { font-size: 15px; }
.note {
  border: 1px solid var(--line); border-left: 3px solid var(--teal); background: var(--card);
  border-radius: var(--r-sm); padding: var(--s4) var(--s5); margin-top: var(--s5);
}
.note h3 { margin-top: 0; }
.note p { font-size: 14.5px; }
.updated { font-size: 13px; color: var(--muted); font-family: var(--mono); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  :root { --sy: 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .hero-sub { max-width: 60ch; }
  .split { grid-template-columns: 1fr; gap: var(--s6); }
  .split--flip .split-visual { order: 0; }
  .pipeline { grid-template-columns: 1fr; }
  .pipe-core { min-width: 0; }
  .cats { columns: 2; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-tagline { min-height: 0; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s6); }
  .foot-top { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .doc { grid-template-columns: 1fr; gap: var(--s6); }
  .doc-nav { position: static; }
  .doc-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .doc-nav a { border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--card); }
}

@media (max-width: 900px) {
  .nav, .header-actions { display: none; }
  .menu { display: block; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .trust-inner { gap: var(--s5); }
  .trust-by { padding-right: var(--s5); }
  .trust-facts { gap: var(--s6); }
}

@media (max-width: 680px) {
  :root { --sy: 56px; --s8: 44px; --s9: 56px; }
  /* A two-line pill reads as a broken button, so the eyebrow drops its
     chrome and becomes a plain label at phone width. */
  .hero-eyebrow {
    border: 0; background: none; padding: 0; font-size: 12.5px;
    letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; line-height: 1.4;
  }
  .hero-cta { display: grid; grid-template-columns: 1fr; }
  .trust-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s4); width: 100%; }
  .trust-facts b { font-size: 20px; }
  .trust-facts div:last-child { grid-column: 1 / -1; }
  .wrap { padding-inline: var(--s4); }
  .grid-2, .grid-3, .grid-4, .plans { grid-template-columns: 1fr; }
  .cats { columns: 1; }
  .stages { grid-template-columns: 1fr; row-gap: 0; }
  .stage { padding: 0 0 var(--s5) 40px; }
  .stage::before { left: 13px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .stage:last-child::before { height: 14px; width: 1px; }
  .stage-dot { position: absolute; left: 0; top: 0; margin: 0; }
  .stage p { padding-right: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: var(--s5); }
  .trust-by { border-right: 0; padding-right: 0; width: 100%; }
  .trust-facts { gap: var(--s5) var(--s6); }
  .foot-top { grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
  .hero { padding-top: var(--s7); }
  .console-head { flex-wrap: wrap; }
  .tip { left: auto; right: 0; width: min(244px, 74vw); }
}
