/* Messaging Access — site stylesheet
   Dark indigo ground, warm cream type, one coral signal. The brand is many
   channels resolving to one access point, so the structural device throughout
   is the lane: a thin vertical accent that marks where a section begins. */

:root {
  --deep:    #0F1339;
  --night:   #161B4C;
  --raised:  #1D2360;
  --cream:   #F6F1E8;
  --cream-2: #B9BBDA;
  --cream-3: #8E92BE;
  --rule:    #2C3270;
  --rule-2:  #3A4189;
  --coral:   #FF6A4D;
  --coral-2: #FF9478;

  --page: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 64ch;

  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 7.2vw, 5.6rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -0.032em; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-weight: 600; letter-spacing: -0.018em; line-height: 1.25; }
h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--coral); text-underline-offset: 0.24em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--cream); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; background: var(--coral); color: var(--deep); padding: .75rem 1.15rem; z-index: 60; font-family: var(--display); font-weight: 600; }
.skip:focus { left: .5rem; top: .5rem; }

/* ── Masthead ─────────────────────────────────────────────────────────── */

.masthead { position: sticky; top: 0; z-index: 50; background: rgba(15,19,57,.86);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand .mark { width: 28px; height: 28px; flex: none; color: var(--coral); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.026em; color: var(--cream); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }
.nav a { font-family: var(--body); font-size: .9375rem; font-weight: 500; color: var(--cream-2); text-decoration: none; position: relative; padding: .3rem 0; }
.nav a:hover { color: var(--cream); }
.nav a[aria-current="page"] { color: var(--cream); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.15rem; height: 2px; background: var(--coral); border-radius: 2px; }
.nav .btn { padding: .6rem 1.15rem; font-size: .9rem; }
.nav .btn::after { display: none; }

.nav-toggle { display: none; background: none; border: 1px solid var(--rule-2); border-radius: 4px;
  font-family: var(--body); font-size: .9rem; font-weight: 500; color: var(--cream); padding: .5rem .85rem; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .masthead .wrap { position: relative; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--night); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.4rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-top: 1px solid var(--rule); font-size: 1.0625rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--coral); }
  .nav .btn { margin-top: 1rem; text-align: center; border-top: 0; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--rule); }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(4.5rem, 12vw, 9.5rem); }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: clamp(1.6rem, 3vw, 2.3rem); }

.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.6; color: var(--cream-2); max-width: 54ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 2.6rem; }

.signal-field { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .95;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%);
  mask-image: linear-gradient(to right, transparent 0%, #000 42%); }
.signal { width: 100%; height: 100%; display: block; }
.signal .ln { fill: none; stroke: var(--rule-2); stroke-width: 1.25; }
.signal .trunk { fill: none; stroke: var(--rule-2); stroke-width: 1.6; }
.signal .node { fill: var(--coral); }
.signal .node-glow { fill: url(#ng); }
.signal .pulse { fill: none; stroke: var(--coral); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 6 100; stroke-dashoffset: 106; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .signal .pulse { animation: run 4.6s cubic-bezier(.5,0,.5,1) infinite; animation-delay: calc(var(--i) * .52s); }
  .signal .node-glow { animation: breathe 4.6s ease-in-out infinite; transform-origin: center; }
}
@keyframes run {
  0%   { stroke-dashoffset: 106; opacity: 0; }
  8%   { opacity: 1; }
  70%  { opacity: 1; }
  78%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes breathe { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

@media (max-width: 860px) { .signal-field { opacity: .5; } .hero h1 { max-width: none; } }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn { display: inline-block; font-family: var(--body); font-weight: 600; font-size: .9375rem;
  padding: .9rem 1.7rem; border-radius: 999px; background: var(--coral); color: var(--deep);
  border: 1px solid var(--coral); text-decoration: none; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.btn:hover { background: var(--coral-2); border-color: var(--coral-2); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--rule-2); }
.btn-ghost:hover { background: rgba(255,255,255,.04); border-color: var(--cream-3); }
.btn-quiet { font-family: var(--body); font-weight: 600; font-size: .9375rem; color: var(--cream);
  text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: .32em; }

/* ── Sections — the lane device marks each one ────────────────────────── */

.sec { border-top: 1px solid var(--rule); }
.sec > .wrap { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sec.tint { background: var(--night); }

.sec-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); position: relative; padding-left: 1.4rem; }
.sec-head::before { content: ""; position: absolute; left: 0; top: .34em; bottom: .1em; width: 3px;
  border-radius: 3px; background: linear-gradient(to bottom, var(--coral), transparent); }
.sec-head p { margin-top: .9rem; color: var(--cream-2); font-size: 1.0625rem; }

/* ── Partner carousel ─────────────────────────────────────────────────── */

.rail { overflow: hidden; position: relative; padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--night); }
.rail::before, .rail::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(48px, 10vw, 140px); z-index: 2; pointer-events: none; }
.rail::before { left: 0; background: linear-gradient(to right, var(--night), transparent); }
.rail::after { right: 0; background: linear-gradient(to left, var(--night), transparent); }
.rail-label { font-family: var(--body); font-size: .8125rem; font-weight: 500; color: var(--cream-3);
  text-align: center; margin: 0 0 1.5rem; }

.track { display: flex; width: max-content; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .track { animation: slide 38s linear infinite; }
  .rail:hover .track, .rail:focus-within .track { animation-play-state: paused; }
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.partner { font-family: var(--display); font-size: clamp(1.15rem, 2.1vw, 1.6rem); font-weight: 600;
  letter-spacing: -.024em; color: var(--cream-2); white-space: nowrap; display: inline-flex;
  align-items: baseline; gap: .5rem; transition: color .16s ease; }
.partner:hover { color: var(--cream); }
.partner span { font-family: var(--body); font-size: .75rem; font-weight: 500; letter-spacing: 0; color: var(--cream-3); }

/* Reduced motion: no marquee, just a wrapped, centred set. */
@media (prefers-reduced-motion: reduce) {
  .track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 1.25rem; }
  .track .dup { display: none; }
}

/* ── Cards / grids ────────────────────────────────────────────────────── */

.grid { display: grid; gap: clamp(1rem, 1.8vw, 1.4rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--night); border: 1px solid var(--rule); border-radius: 14px;
  padding: clamp(1.5rem, 2.4vw, 2rem); position: relative; transition: border-color .18s ease, background .18s ease; }
.card:hover { border-color: var(--rule-2); }
.sec.tint .card { background: var(--raised); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--cream-2); font-size: 1rem; margin-bottom: 0; }
.card-tag { display: inline-block; font-family: var(--body); font-size: .75rem; font-weight: 600;
  color: var(--coral); margin-bottom: .9rem; }
.card ul { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.card li { font-size: .9375rem; color: var(--cream-2); padding: .45rem 0 .45rem 1.35rem; position: relative; border-top: 1px solid var(--rule); }
.card li:first-child { border-top: 0; }
.card li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); opacity: .75; }

/* ── Platform matrix ──────────────────────────────────────────────────── */

.matrix { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.matrix caption { text-align: left; color: var(--cream-3); font-size: .875rem; margin-bottom: 1rem; }
.matrix th, .matrix td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.matrix thead th { font-family: var(--body); font-weight: 600; font-size: .8125rem; color: var(--cream-3); border-bottom-color: var(--rule-2); }
.matrix tbody th { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.018em; color: var(--cream); white-space: nowrap; }
.matrix td { color: var(--cream-2); }
.matrix tbody tr:hover { background: rgba(255,255,255,.025); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Steps — a real sequence, so it is numbered ───────────────────────── */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 2.6rem 3.5rem; border-left: 1px solid var(--rule); }
.steps > li:last-child { padding-bottom: 0; border-left-color: transparent; }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -.15rem;
  transform: translateX(-50%); width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--deep); border: 1px solid var(--coral); color: var(--coral);
  font-family: var(--body); font-size: .8125rem; font-weight: 600; display: grid; place-items: center; }
.steps h3 { margin-bottom: .55rem; }
.steps p { color: var(--cream-2); }
@media (max-width: 680px) { .steps > li { padding-left: 2.6rem; } }

/* ── Prose ────────────────────────────────────────────────────────────── */

.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.4em; margin-bottom: .5em; }
.prose h3 { margin-top: 2em; margin-bottom: .45em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--cream-2); }
.prose ul, .prose ol { max-width: var(--measure); padding-left: 1.25rem; margin: 0 0 1.15em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--cream); font-weight: 600; }
.prose a { color: var(--cream); }

/* ── Form ─────────────────────────────────────────────────────────────── */

.form { max-width: 34rem; }
.field { margin-bottom: 1.35rem; }
.field label { display: block; font-family: var(--body); font-size: .9375rem; font-weight: 600; margin-bottom: .45rem; }
.field .hint { display: block; font-size: .8125rem; font-weight: 400; color: var(--cream-3); margin-top: .2rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: 1rem; line-height: 1.55; color: var(--cream);
  background: var(--night); border: 1px solid var(--rule-2); border-radius: 8px; padding: .75rem .9rem; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--coral); outline-offset: 1px; }
.field textarea { min-height: 9rem; resize: vertical; }
.field select option { background: var(--night); color: var(--cream); }
.form-note { font-size: .9375rem; color: var(--cream-2); margin-top: 1rem; }
.form-status { display: none; margin-top: 1.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--coral);
  border-left-width: 3px; border-radius: 8px; background: var(--night); }
.form-status.is-shown { display: block; }
.form-status p { margin: 0; } .form-status p + p { margin-top: .5rem; }

/* ── Detail list ──────────────────────────────────────────────────────── */

.deets { list-style: none; margin: 0; padding: 0; }
.deets > li { border-top: 1px solid var(--rule); padding: 1.15rem 0; }
.deets > li:first-child { border-top: 0; padding-top: 0; }
.deets h4 { margin: 0 0 .25rem; }
.deets p { margin: 0; color: var(--cream-2); font-size: 1rem; }

/* ── CTA band ─────────────────────────────────────────────────────────── */

.cta-band { border-top: 1px solid var(--rule); background:
  radial-gradient(120% 140% at 82% 50%, rgba(255,106,77,.16), transparent 62%), var(--night); }
.cta-band .wrap { padding-block: clamp(3.5rem, 8vw, 6rem); }
.cta-band h2 { max-width: 16ch; }
.cta-band .lede { margin-top: 1.25rem; }

/* ── Colophon ─────────────────────────────────────────────────────────── */

.colophon { border-top: 1px solid var(--rule); background: var(--deep); }
.colophon .wrap { padding-block: clamp(3rem, 6vw, 4.5rem); }
.colophon-top { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(2, minmax(0,1fr)); gap: 2.5rem clamp(2rem,5vw,4rem); }
@media (max-width: 800px) { .colophon-top { grid-template-columns: 1fr 1fr; } .colophon-blurb { grid-column: 1/-1; } }
@media (max-width: 460px) { .colophon-top { grid-template-columns: 1fr; } }
.colophon-blurb p { color: var(--cream-2); font-size: 1rem; max-width: 34ch; margin: 1rem 0 0; }
.colophon h4 { font-size: .8125rem; font-weight: 600; color: var(--cream); margin: 0 0 .9rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: .5rem; }
.colophon li a { font-size: .9375rem; color: var(--cream-2); text-decoration: none; }
.colophon li a:hover { color: var(--cream); text-decoration: underline; }
.colophon-base { margin-top: clamp(2.5rem,5vw,3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; justify-content: space-between; font-size: .8125rem; color: var(--cream-3); }
.colophon-base p { margin: 0; max-width: none; }
.colophon-base a { color: var(--cream-3); }
.trademark { margin-top: 1.1rem; font-size: .75rem; color: var(--cream-3); max-width: 78ch; line-height: 1.55; }

.mt-l { margin-top: clamp(2rem, 4vw, 3rem); }
.measure { max-width: var(--measure); }
.anchor { scroll-margin-top: 6rem; }

/* Honeypot. Positioned from the stylesheet, not an inline style attribute,
   which style-src blocks - that would leave the field visible on the form. */
.hp { position: absolute; left: -9999px; }

/* Per-lane pulse delay, for the same reason. */
.signal .p0 { --i: 0; } .signal .p1 { --i: 1; } .signal .p2 { --i: 2; }
.signal .p3 { --i: 3; } .signal .p4 { --i: 4; } .signal .p5 { --i: 5; }
.signal .p6 { --i: 6; }
