/* Pulse landing page. One signature moment (the payment trace in the hero);
   everything else is quiet, content-led and answers clicks. No inline styles
   or scripts: the CSP allows only 'self'. */

@font-face { font-family: "Plex"; src: url("fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #12242b;
  --ink-2: #2c3f46;
  --muted: #5a6b70;
  --paper: #f5f7f6;
  --surface: #ffffff;
  --rule: #d9e0de;
  --rule-soft: #e7ecea;
  --green: #13795b;
  --green-ink: #0d5a43;
  --green-tint: #e4f2ec;
  --ochre: #a8781f;
  --ochre-tint: #f6eedd;
  --band: #12242b;
  --band-text: #e8eeec;
  --band-muted: #9fb2b1;
  --focus: #1f6feb;
  --shadow: 0 1px 2px rgba(18, 36, 43, .06), 0 8px 24px rgba(18, 36, 43, .06);
  --radius-s: 6px;
  --radius-m: 10px;
  --wrap: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6edeb;
    --ink-2: #c4d0cd;
    --muted: #93a6a5;
    --paper: #0e1a1f;
    --surface: #13232a;
    --rule: #263a41;
    --rule-soft: #1c2e35;
    --green: #3fb38a;
    --green-ink: #6fd0ab;
    --green-tint: #15352c;
    --ochre: #d9a441;
    --ochre-tint: #33291a;
    --band: #091318;
    --band-text: #e6edeb;
    --band-muted: #8ea2a2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
code, pre, .mono { font-family: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); letter-spacing: -.028em; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.3; font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius-s);
  font: 500 16px/1 "Plex", sans-serif; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-ink); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #06140f; } .btn-primary:hover { background: #63c9a2; } }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-quiet:hover { border-color: var(--ink-2); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 15px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 24px; margin-left: 8px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: var(--radius-s); width: 42px; height: 42px; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; margin: auto; }
@media (max-width: 900px) {
  .nav, .top-actions { display: none; }
  .menu-btn { display: block; }
  .top.open .nav, .top.open .top-actions { display: flex; }
  .top.open .wrap { flex-wrap: wrap; height: auto; padding-top: 13px; padding-bottom: 16px; row-gap: 14px; }
  .top.open .nav { flex-direction: column; gap: 14px; width: 100%; margin: 0; order: 3; }
  .top.open .top-actions { width: 100%; margin: 0; order: 4; }
}

/* Hero */
.hero { padding: 64px 0 72px; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: center;
  grid-template-areas: "copy trace" "facts trace";
}
.hero-copy { grid-area: copy; align-self: end; }
.hero-trace { grid-area: trace; }
.hero .facts { grid-area: facts; align-self: start; }
.hero h1 { max-width: 15ch; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 36em; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--rule); padding-top: 22px; }
.facts li { font-size: 15px; line-height: 1.45; color: var(--muted); }
.facts strong { display: block; color: var(--ink); font-weight: 600; font-size: 16px; margin-bottom: 2px; }
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; grid-template-areas: "copy" "trace" "facts"; row-gap: 40px; }
  .hero .facts { margin-top: 0; }
}
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .hero { padding-top: 36px; } }

/* The payment trace: the page's one signature moment */
.trace {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m);
  box-shadow: var(--shadow); overflow: hidden;
}
.trace-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rule-soft); }
.trace-head h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.trace-head p { margin: 0; font-size: 13px; color: var(--muted); }
.trace-head .replay { margin-left: auto; }
.replay { background: none; border: 1px solid var(--rule); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font: 500 13px/1 "Plex", sans-serif; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.replay:hover { border-color: var(--ink-2); color: var(--ink); }
.replay svg { width: 13px; height: 13px; }
.steps { list-style: none; margin: 0; padding: 8px 0; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 11px 20px; align-items: start; position: relative; }
.step + .step::before { content: ""; position: absolute; left: 33px; top: -11px; height: 22px; border-left: 1px solid var(--rule); }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--rule); background: var(--surface); display: grid; place-items: center; margin-top: 1px; }
.dot svg { width: 12px; height: 12px; opacity: 0; }
.step-title { font-size: 15px; font-weight: 500; line-height: 1.35; }
.step-note { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.step-time { font-family: "Plex Mono", monospace; font-size: 13px; color: var(--muted); padding-top: 2px; }
.chip { display: inline-block; font-size: 12.5px; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: var(--green-tint); color: var(--green-ink); margin-left: 6px; vertical-align: 1px; }
.chip-ochre { background: var(--ochre-tint); color: var(--ochre); }
.step.done .dot { border-color: var(--green); background: var(--green); }
.step.done .dot svg { opacity: 1; color: #fff; }
@media (prefers-color-scheme: dark) { .step.done .dot svg { color: #06140f; } }
.trace-foot { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--rule-soft); background: color-mix(in srgb, var(--paper) 60%, var(--surface)); }
.meter { flex: 1; height: 6px; background: var(--rule-soft); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; }
.total { font-family: "Plex Mono", monospace; font-size: 14px; white-space: nowrap; }
.total strong { font-weight: 400; color: var(--ink); }
.trace-caption { font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; }
/* JS adds .armed before animating; without JS (or with reduced motion) every
   step is shown complete. */
.trace.armed .step { opacity: .38; transition: opacity .25s; }
.trace.armed .step.done { opacity: 1; }
.trace.armed .meter span { transition: width .2s linear; }

/* Systems Pulse is built to connect to: names, not logos */
.connects { padding: 28px 0 32px; border-top: 1px solid var(--rule-soft); }
.connects .wrap { display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; }
.connects h2 { font-size: 14.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); line-height: 1.4; max-width: 15em; }
.connects ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; flex: 1; }
.connects li { font-size: 16px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }

/* Sections */
.section { padding: 96px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { font-size: 1.1rem; color: var(--ink-2); margin-top: 16px; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* Today versus with Pulse */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th { text-align: left; font-weight: 600; font-size: 15px; padding: 0 24px 14px 0; border-bottom: 1px solid var(--ink); }
.compare th:last-child { color: var(--green-ink); }
.compare td { vertical-align: top; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--rule); width: 50%; line-height: 1.5; }
.compare td:first-child { color: var(--ink-2); }
.compare td:last-child { color: var(--ink); }
.compare td:last-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 10px; vertical-align: 2px; }
.source { font-size: 13px; color: var(--muted); margin-top: 16px; }
@media (max-width: 700px) {
  .compare thead { display: none; }
  .compare tr { display: block; border-bottom: 1px solid var(--rule); padding: 14px 0; }
  .compare td { display: block; width: auto; border: 0; padding: 4px 0; }
  .compare td:first-child::before { content: "Today: "; font-weight: 600; color: var(--muted); }
}

/* Audience tabs */
.tabs { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.tablist { display: flex; flex-direction: column; border-left: 1px solid var(--rule); }
.tab {
  text-align: left; background: none; border: 0; border-left: 2px solid transparent; margin-left: -1px;
  padding: 12px 18px; font: 500 16px/1.3 "Plex", sans-serif; color: var(--muted); cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-left-color: var(--green); }
.panel h3 { font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; max-width: 24ch; }
.panel > p { color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; margin: 14px 0 26px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
.ticks li { padding-left: 28px; position: relative; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.ticks strong { font-weight: 600; }
.panel-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
.panel[hidden] { display: none; }
@media (max-width: 860px) {
  .tabs { grid-template-columns: 1fr; gap: 28px; }
  .tablist { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--rule); scrollbar-width: none; }
  .tab { border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; white-space: nowrap; padding: 10px 14px; }
  .tab[aria-selected="true"] { border-bottom-color: var(--green); }
  .ticks { grid-template-columns: 1fr; }
}

/* Capability index */
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.cap-col { padding: 24px 24px 8px 0; }
.cap-col + .cap-col { padding-left: 24px; border-left: 1px solid var(--rule); }
.cap-col h3 { margin-bottom: 18px; }
.cap-col dl { margin: 0; }
.cap-col dt { font-weight: 500; font-size: 15.5px; }
.cap-col dd { margin: 2px 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
@media (max-width: 1000px) {
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-col:nth-child(3) { padding-left: 0; border-left: 0; }
  .cap-col:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .caps { grid-template-columns: 1fr; }
  .cap-col + .cap-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* Path to production: a real sequence, so it is numbered */
.path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.path li { counter-increment: step; position: relative; padding-top: 52px; }
.path li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 15px; color: var(--green-ink); border: 1.5px solid var(--green);
}
.path li::after { content: ""; position: absolute; top: 18px; left: 48px; right: -20px; border-top: 1px dashed var(--rule); }
.path li:last-child::after { display: none; }
.path h3 { margin-bottom: 8px; }
.path p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.path .when { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) {
  .path { grid-template-columns: 1fr 1fr; }
  .path li:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) { .path { grid-template-columns: 1fr; } .path li::after { display: none; } }

/* The national layer: the one dark band */
.band { background: var(--band); color: var(--band-text); padding: 96px 0; }
.band h2 { max-width: 20ch; }
.band .lead { color: var(--band-muted); font-size: 1.1rem; max-width: 62ch; margin: 16px 0 44px; }
.network { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.network ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.network li { border-left: 2px solid #2f5a4c; padding-left: 18px; }
.network li strong { display: block; font-weight: 600; color: var(--band-text); }
.network li span { color: var(--band-muted); font-size: 15.5px; }
.network figure { margin: 0; }
.network figcaption { color: var(--band-muted); font-size: 13.5px; margin-top: 12px; }
.netmap .edge { stroke: #2f5a4c; stroke-width: 1.2; }
.netmap .edge-live { stroke: #3fb38a; stroke-width: 1.6; stroke-dasharray: 4 6; }
.netmap .hub { fill: #13795b; }
.netmap .node { fill: #13232a; stroke: #3c5a59; stroke-width: 1.2; }
.netmap text { fill: #c9d6d3; font: 500 11px "Plex", sans-serif; }
.netmap .hub-label { fill: #fff; font-size: 13px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .netmap .edge-live { animation: flow 2.4s linear infinite; } }
@keyframes flow { to { stroke-dashoffset: -20; } }
@media (max-width: 900px) { .network { grid-template-columns: 1fr; } }

/* Security */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.trust div { border-top: 1px solid var(--rule); padding-top: 18px; }
.trust h3 { margin-bottom: 6px; }
.trust p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; margin: 0; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .trust { grid-template-columns: 1fr; } }

/* Pricing model */
.pricing { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.principles { list-style: none; padding: 0; margin: 0; }
.principles li { padding: 18px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
.principles li:first-child { border-top: 1px solid var(--ink); }
.principles strong { font-weight: 600; }
.principles span { color: var(--ink-2); }
.pilot { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 30px; box-shadow: var(--shadow); }
.pilot h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -.015em; }
.pilot > p { color: var(--ink-2); margin: 8px 0 18px; }
.pilot .ticks { grid-template-columns: 1fr; gap: 12px; margin-bottom: 26px; }
.pilot .btn { width: 100%; }
.pilot .fine { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; text-align: center; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } .principles li { grid-template-columns: 1fr; gap: 4px; } }

/* Developers */
.dev { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.dev ul { padding-left: 1.1em; color: var(--ink-2); }
.dev li { margin-bottom: 8px; }
.code { background: #0f1d22; color: #d8e3e0; border-radius: var(--radius-m); overflow: hidden; border: 1px solid #22363d; }
.code-head { display: flex; align-items: center; padding: 10px 14px 10px 18px; border-bottom: 1px solid #22363d; font-size: 13px; color: #9fb2b1; }
.code-head .copy { margin-left: auto; background: none; border: 1px solid #33494f; color: #c9d6d3; border-radius: var(--radius-s); padding: 4px 10px; font: 500 12.5px/1.2 "Plex", sans-serif; cursor: pointer; }
.code-head .copy:hover { border-color: #6c8a88; }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; }
.code .k { color: #7fd1b0; }
.code .s { color: #e6c27d; }
.code .c { color: #7d9392; }
@media (max-width: 900px) { .dev { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 500; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 27px; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { color: var(--ink-2); max-width: 70ch; margin: -4px 0 22px; }

/* Closing call to action */
.closing { padding: 96px 0; }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; border-top: 1px solid var(--ink); padding-top: 48px; }
.closing h2 { max-width: 18ch; }
.closing p { color: var(--ink-2); margin: 16px 0 0; max-width: 56ch; font-size: 1.1rem; }
.closing .hero-actions { justify-content: flex-end; }
@media (max-width: 800px) { .closing .wrap { grid-template-columns: 1fr; } .closing .hero-actions { justify-content: flex-start; } }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 14.5px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h3 { font-size: 14.5px; color: var(--ink); margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .brand { margin-bottom: 10px; }
@media (max-width: 800px) { .foot .wrap { grid-template-columns: 1fr 1fr; } }

/* Fixes from the visual review */
.btn, .btn:hover { text-decoration: none; }
.dev h2 { margin-bottom: 16px; }
