/* Mainline Labs. The Civic schematic identity: Mainline is named for a
   city's water main, so the palette is a utility drawing's. Navy ink on a
   survey-slate ground; water teal for what flows; valve amber only for
   savings; signal red only for faults. Public Sans, the U.S. Web Design
   System's typeface, for everything; IBM Plex Mono only for real log lines
   and commands. Fonts are served from this site. */

@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #16243A; --ink-2: #3B4B60; --muted: #586779; --ground: #E8EDF1; --paper: #FFFFFF; --rule: #CED7DF; --rule-2: #DFE5EB;
  --flow: #0E7C86; --flow-deep: #0A5F67; --flow-wash: #DCEEF0; --valve: #C2861A; --valve-ink: #8A5D0F; --valve-wash: #F6ECD9; --fault: #B83227;
  --band: #16243A; --band-ink: #D9E3EE; --band-muted: #A3B4C6; --grid: rgba(22, 36, 58, .05);
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --wrap: 1200px; --r-ctl: 6px; --r-fig: 10px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--flow-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--flow); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-ctl); }
.skip:focus { left: 12px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -.033em; }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; font-weight: 800; letter-spacing: -.026em; max-width: 24ch; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -.014em; }
h4 { font-size: 17px; line-height: 1.35; font-weight: 600; }
p { margin: 0; }
.lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.prose p + p { margin-top: 14px; }
.prose { max-width: 66ch; color: var(--ink-2); }
.muted { color: var(--muted); }
section.block { padding: 112px 0; }
section.block.tight { padding: 80px 0; }
.on-paper { background: var(--paper); border-block: 1px solid var(--rule); }
.head { display: grid; gap: 18px; margin-bottom: 56px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--r-ctl); font: 600 16px/1.2 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--flow-deep); color: #fff; }
.btn-quiet { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-quiet:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--flow-wash); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(232, 237, 241, .96); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 36px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.025em; }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--flow); }
.nav .mobile-only { display: none; }
.head-cta { margin-left: auto; }
.head-cta .btn { padding: 10px 18px; font-size: 15px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1.5px solid var(--rule); border-radius: var(--r-ctl); padding: 8px 14px; font: 600 15px var(--sans); color: var(--ink); }

/* hero */
.hero { padding: 64px 0 104px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 64px; align-items: center; }
.hero .lede { margin-top: 26px; }
.hero .actions { margin-top: 36px; }
.hero .note { margin-top: 20px; font-size: 15px; color: var(--muted); }
.schematic { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-fig); padding: 22px 22px 18px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.schematic svg { width: 100%; height: auto; display: block; }
.sc-label { font: 600 15px var(--sans); fill: var(--ink); }
.sc-sub { font: 400 13px var(--sans); fill: var(--muted); }
.sc-pipe { fill: none; stroke: var(--flow); stroke-opacity: .34; stroke-linecap: round; }
.sc-out { fill: none; stroke: var(--flow); stroke-linecap: round; stroke-opacity: .5; transition: stroke-opacity .45s ease; }
.sc-out.off { stroke-opacity: .07; }
.sc-dest { transition: opacity .45s ease; }
.sc-dest.off { opacity: .3; }
.sc-dot { fill: var(--flow); }
.sc-relay { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.sc-relay-name { font: 800 15px var(--sans); fill: var(--ink); }
.sc-node { fill: var(--flow); }
.sc-standby { fill: var(--paper); stroke: var(--flow); stroke-width: 2; }
.sc-valve { fill: var(--paper); stroke: var(--valve); stroke-width: 2; }
.sc-valve-x { stroke: var(--valve); stroke-width: 2; }
.sc-valve-note { font: 600 12.5px var(--sans); fill: var(--valve-ink); }
.switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule-2); }
.switch .label { font-size: 14px; color: var(--muted); margin-right: 2px; }
.switch button { font: 600 14px var(--sans); padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.switch button:hover { border-color: var(--ink-2); }
.switch button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.switch-note { margin-top: 10px; font-size: 15px; color: var(--ink-2); min-height: 3.2em; }

/* the facts: a sentence, not tiles */
.facts { border-block: 1px solid var(--rule); background: var(--paper); }
.facts p { padding: 26px 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: none; }
.facts b { color: var(--ink); font-weight: 800; }

/* problem and answer, in ruled columns */
.ruled { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.ruled > div { padding: 30px 32px 0 0; }
.ruled > div + div { padding-left: 32px; border-left: 1px solid var(--rule); }
.ruled h3 { margin-bottom: 12px; }
.ruled .problem { color: var(--muted); font-size: 15.5px; margin-bottom: 10px; }
.ruled p { color: var(--ink-2); font-size: 16.5px; }

/* the sequence: collect, recognise, shape, deliver */
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; counter-reset: step; }
.track::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 3px; background: var(--flow); opacity: .3; border-radius: 2px; }
.track li { position: relative; counter-increment: step; }
.track li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--flow); color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 20px; position: relative; }
.track h3 { margin-bottom: 8px; }
.track p { font-size: 16px; color: var(--ink-2); }

/* figures: real screens in a thin frame, with a caption that says what's shown */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .copy { order: 2; }
.feature .copy h2 { font-size: clamp(28px, 3vw, 36px); }
.feature .copy .lede { font-size: 18px; margin-top: 18px; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 3px; border-radius: 2px; background: var(--flow); }
figure.screen { margin: 0; }
figure.screen .frame { border: 1px solid var(--rule); border-radius: var(--r-fig); overflow: hidden; background: var(--paper); box-shadow: 0 1px 2px rgba(22, 36, 58, .05), 0 24px 48px -24px rgba(22, 36, 58, .28); }
figure.screen figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* an event, before and after */
.specimen { border: 1px solid var(--rule); border-radius: var(--r-fig); overflow: hidden; background: var(--paper); }
.specimen .row { display: grid; grid-template-columns: 168px minmax(0, 1fr); border-top: 1px solid var(--rule-2); }
.specimen .row:first-child { border-top: 0; }
.specimen .k { padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--ink-2); border-right: 1px solid var(--rule-2); background: #F4F7F9; }
.specimen .v { padding: 14px 18px; font: 400 13.5px/1.65 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.specimen .v .l { color: var(--flow-deep); }
.specimen .v .t { color: var(--fault); }
.specimen .v .a { color: var(--valve-ink); }

/* migration: a real four-step sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); counter-reset: m; }
.steps li { counter-increment: m; padding: 26px 26px 0 0; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--rule); }
.steps li::before { content: "Step " counter(m); display: block; font-size: 14px; font-weight: 600; color: var(--flow-deep); margin-bottom: 10px; }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 16px; color: var(--ink-2); }

/* the security band */
.band { background: var(--band); color: var(--band-ink); }
.band h2, .band h3 { color: #fff; }
.band .lede, .band .prose { color: var(--band-muted); }
.band a { color: #8FD9DF; }
.band a:hover { color: #fff; }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.pairs > div { padding: 24px 0; border-top: 1px solid rgba(217, 227, 238, .16); }
.pairs h3 { font-size: 18.5px; margin-bottom: 8px; }
.pairs p { font-size: 16px; color: var(--band-muted); }
.pairs code, .band code { font: 13.5px var(--mono); color: var(--band-ink); }

/* deployment */
.deploy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.deploy > div { border-top: 3px solid var(--flow); padding-top: 22px; }
.deploy h3 { margin-bottom: 8px; }
.deploy p { font-size: 16px; color: var(--ink-2); }
pre.cmd { margin: 16px 0 0; padding: 14px 16px; background: var(--ink); color: #DCE6EF; border-radius: var(--r-ctl); font: 13.5px/1.6 var(--mono); overflow-x: auto; white-space: pre; }
pre.cmd .c { color: #8FA3B8; }
.aside-line { margin-top: 40px; padding: 18px 22px; border: 1px solid var(--rule); border-radius: var(--r-fig); background: var(--paper); color: var(--ink-2); font-size: 16px; }

/* closing call */
.closing { background: var(--flow-deep); color: #fff; }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.closing h2 { color: #fff; max-width: 20ch; }
.closing p { color: #CDE9EC; margin-top: 16px; max-width: 54ch; font-size: 18px; }
.closing .btn-quiet { border-color: #fff; color: #fff; }
.closing .btn-quiet:hover { background: #fff; color: var(--flow-deep); }

/* page heads for inner pages */
.page-head { padding: 72px 0 64px; border-bottom: 1px solid var(--rule); }
.page-head .lede { margin-top: 22px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 15.5px; }
.toc a { font-weight: 600; text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--flow-deep); }

/* platform capability rows */
.cap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; padding: 64px 0; border-top: 1px solid var(--rule); }
.cap:first-of-type { border-top: 0; }
.cap h2 { font-size: clamp(26px, 2.8vw, 34px); }
.cap .intro { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.cap dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 40px; }
.cap dt { font-weight: 600; margin-bottom: 6px; }
.cap dd { margin: 0; color: var(--ink-2); font-size: 16px; }
.cap .wide { grid-column: 1 / -1; }

/* integrations directory */
.dir-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dir-bar input[type=search] { flex: 1 1 280px; max-width: 420px; font: 16px var(--sans); padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: var(--r-ctl); background: var(--paper); color: var(--ink); }
.dir-bar input[type=search]:focus { outline: none; border-color: var(--flow); box-shadow: 0 0 0 3px var(--flow-wash); }
.kinds { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin: 32px 0 20px; flex-wrap: wrap; }
.kinds button { font: 600 15.5px var(--sans); background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; margin-bottom: -1px; color: var(--ink-2); cursor: pointer; }
.kinds button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--flow); }
.kinds .n { color: var(--muted); font-weight: 400; margin-left: 6px; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.cats button { font: 600 13.5px var(--sans); padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.cats button[aria-pressed="true"] { background: var(--flow); border-color: var(--flow); color: #fff; }
.dir-count { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
ul.dir { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 40px; }
ul.dir li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--rule-2); }
ul.dir li b { display: block; font-weight: 600; font-size: 15.5px; }
ul.dir li span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.dir-empty { padding: 28px 0; color: var(--ink-2); }

/* editions */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-fig); background: var(--paper); }
table.editions { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15.5px; }
table.editions th, table.editions td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
table.editions thead th { font-size: 21px; font-weight: 800; letter-spacing: -.014em; border-bottom: 2px solid var(--ink); padding-top: 22px; }
table.editions thead th span { display: block; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
table.editions tbody th { font-weight: 600; color: var(--ink-2); width: 34%; }
table.editions td.y { color: var(--flow-deep); font-weight: 600; }
table.editions td.n { color: var(--muted); }
table.editions tr.group th { background: #F4F7F9; color: var(--ink); font-size: 14px; padding-top: 12px; padding-bottom: 12px; }
.callout { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 26px 28px; border: 1.5px solid var(--valve); background: var(--valve-wash); border-radius: var(--r-fig); }
.callout h3 { margin-bottom: 6px; }
.callout p { color: var(--ink-2); }

/* questions */
.faq { max-width: 880px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; font-size: 18.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 16px; font-size: 28px; font-weight: 400; color: var(--flow); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-2); max-width: 70ch; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
form.ask { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-fig); padding: 32px; display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-weight: 600; font-size: 15.5px; }
.field .hint { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea { font: 16px var(--sans); padding: 11px 13px; border: 1.5px solid var(--rule); border-radius: var(--r-ctl); background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--flow); box-shadow: 0 0 0 3px var(--flow-wash); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1.5px solid var(--rule); border-radius: var(--r-ctl); font-weight: 400; font-size: 15px; cursor: pointer; }
.choices input { width: auto; accent-color: var(--flow); }
.form-note { font-size: 14px; color: var(--muted); }
.form-result { font-size: 15px; color: var(--flow-deep); font-weight: 600; min-height: 1.4em; }
.reach { display: grid; gap: 28px; }
.reach > div { border-top: 1px solid var(--rule); padding-top: 18px; }
.reach h3 { font-size: 18px; margin-bottom: 6px; }
.reach p { color: var(--ink-2); font-size: 16px; }

/* footer */
.site-foot { background: var(--band); color: var(--band-muted); padding: 56px 0 44px; font-size: 15px; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-foot .brand { color: #fff; }
.site-foot p { margin-top: 14px; max-width: 34ch; }
.site-foot h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--band-ink); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid rgba(217, 227, 238, .16); padding-top: 22px; font-size: 14px; }

/* responsive */
@media (max-width: 1060px) {
  .hero .wrap, .feature, .feature.flip, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .feature.flip .copy { order: 0; }
  .track, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .track::before { display: none; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .cap { grid-template-columns: 1fr; gap: 28px; }
  .site-foot .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-foot .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  section.block { padding: 76px 0; }
  .nav { display: none; }
  .nav.open { display: grid; position: absolute; top: 72px; left: 0; right: 0; background: var(--ground); border-bottom: 1px solid var(--rule); padding: 14px 32px 20px; gap: 14px; }
  .nav.open .mobile-only { display: block; }
  .menu-btn { display: inline-block; }
  .head-cta { display: none; }
  .ruled, .deploy, .pairs { grid-template-columns: 1fr; }
  .ruled > div, .ruled > div + div { padding: 26px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .ruled > div:first-child { border-top: 0; }
  .cap dl, .two { grid-template-columns: 1fr; }
  .closing .wrap, .callout { grid-template-columns: 1fr; }
  .specimen .row { grid-template-columns: 1fr; }
  .specimen .k { border-right: 0; border-bottom: 1px solid var(--rule-2); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  body { font-size: 16px; }
  .lede { font-size: 18px; }
  .track, .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  form.ask { padding: 22px; }
}

/* ---- status labels: where each way of running Mainline stands ---- */
.status { display: inline-block; padding: 3px 10px; border-radius: 4px; font: 600 13px/1.4 var(--sans); border: 1px solid transparent; }
.st-ok { background: var(--flow-wash); color: var(--flow-deep); border-color: rgba(14, 124, 134, .25); }
.st-test { background: var(--valve-wash); color: var(--valve-ink); border-color: rgba(194, 134, 26, .3); }
.st-early { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.deploy .status, .cap .status { margin-bottom: 10px; }

/* ---- the network-boundary diagrams (Deployment) ---- */
.bd-pair { display: grid; gap: 28px; }
.bd-fig { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-fig); padding: 26px 28px;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 36px; align-items: center; }
.bd { display: block; width: 100%; height: auto; }
.bd-fig figcaption { order: -1; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.bd-fig figcaption b { display: block; font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.bd-net { fill: var(--grid); stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 6 5; }
.bd-zone { font: 600 13.5px var(--sans); fill: var(--ink-2); }
.bd-console { fill: var(--flow-wash); stroke: var(--flow-deep); stroke-width: 1.5; }
.bd-hosted { fill: var(--paper); stroke: var(--ink); }
.bd-link { fill: none; stroke: var(--flow-deep); stroke-width: 2; stroke-dasharray: 4 4; }
.bd-note { font: 600 12.5px var(--sans); fill: var(--flow-deep); }

/* ---- the comparison table (Deployment) ---- */
.compare td { vertical-align: top; }
.compare tbody th { width: 22%; }

@media (max-width: 860px) {
  .bd-fig { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
}

/* ---- announcement bar ---- */
.announce { background: var(--ink); color: #fff; font-size: 14.5px; }
.announce p { margin: 0; padding: 9px 0; text-align: center; max-width: none; }
.announce a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---- label above the headline ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; font: 600 15.5px var(--sans); color: var(--flow-deep); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--flow); }

/* ---- works with: names that scroll slowly ---- */
.works-with { border-block: 1px solid var(--rule); background: var(--paper); padding: 22px 0 18px; }
.ww-title { margin: 0 0 12px; font: 600 15px var(--sans); color: var(--ink-2); }
.ww-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 10px; }
.ww-label { margin: 0; font: 600 14px var(--sans); color: var(--flow-deep); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; margin: 0; padding: 2px 0; list-style: none; animation: ww-scroll 70s linear infinite; }
.ww-row:nth-child(odd) .marquee-track { animation-duration: 85s; animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { padding: 6px 13px; border: 1px solid var(--rule); border-radius: 999px; background: var(--grid); font: 600 14.5px var(--sans); color: var(--ink); white-space: nowrap; }
@keyframes ww-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track .dup { display: none; }
}

/* ---- Mainline by the numbers ---- */
.numbers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.num { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-fig); padding: 22px 20px 20px; }
.num b { display: block; font: 800 46px/1 var(--sans); letter-spacing: -0.02em; color: var(--ink); }
.num span { display: block; margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.num.accent { background: var(--flow-deep); border-color: var(--flow-deep); }
.num.accent b, .num.accent span { color: #fff; }

/* ---- Where Mainline fits ---- */
.fits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fit { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--flow); border-radius: var(--r-fig); padding: 22px 22px 20px; }
.fit h3 { margin: 0 0 8px; }
.fit p { flex: 1; margin: 0 0 14px; color: var(--ink-2); }
.fit a { font-weight: 600; }

@media (max-width: 1000px) {
  .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .numbers, .fits { grid-template-columns: 1fr; }
  .ww-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---- Mainline Cloud's own boundary (fully hosted) ---- */
.bd-cloud { fill: var(--flow-wash); stroke: var(--flow-deep); stroke-width: 1.5; stroke-dasharray: 6 5; }
.bd-zone-cloud { fill: var(--flow-deep); }

/* ---- contact form: sending, sent, and the hidden field only bots fill in ---- */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-result.ok { color: var(--flow-deep); font-weight: 600; }
.form-result.err { color: #A3261B; font-weight: 600; }
.ask button[disabled] { opacity: .6; cursor: progress; }
