/*
 * @daedalon/site-blocks — shared CSS for every CMS block type's
 * rendered output. Loaded:
 *   - by Site/nginx (alongside the published HTML, served from
 *     /site-blocks.css on the daedalon_site_publish volume — the
 *     CMS PublishService copies this file there each run)
 *   - by the CMS editor's preview iframe (imported once at the
 *     SPA root in main.tsx) so the in-editor render IS visually
 *     equivalent to the published page.
 *
 * Owns the block-internal visual language for every typeId. Page
 * chrome (background mesh, nav, footer, body font, frame) is owned
 * by Site/public/styles.css. The brand custom-properties below are
 * a copy of the canonical set in Site/public/styles.css; they're
 * redeclared here so the CMS editor preview (which doesn't link
 * styles.css) renders the same colours the published page does.
 * If you change a value here, change it there too.
 */

:root {
  --bg-deep:  #050b1f;
  --bg:       #0a1638;
  --panel:    rgba(13, 32, 78, 0.55);
  --line:     rgba(120, 195, 255, 0.18);
  --ink:      #f1f6ff;
  --ink-2:    #b3c4e6;
  --ink-3:    #6f88b8;
  --accent:   #34c8ff;
  --accent-2: #1aa9e6;

  /* The light half. steps-row and stat-grid render as full-bleed
     white panels between the dark hero and the dark band, so they
     need an ink palette of their own — the --ink-* set above is
     tuned for dark backgrounds and is unreadable on white. */
  --paper:       #ffffff;
  --paper-ink:   #0d2046;
  --paper-ink-2: #4a5f87;

  /* Height of the site-nav plus .frame's own top padding. The
     plexus hero pulls itself up by exactly this so the nav floats
     over the starfield rather than sitting on the page background
     above it. Derived, not guessed: nav padding 10 + 12, brand
     line-box ~27, .frame padding-top 28. If you restyle .site-nav,
     re-derive it — being a few px out is invisible (the hero's
     backdrop simply extends further under the nav), but a large
     error lets the nav collide with the h1. */
  --nav-h: 77px;
}

/* Section-level heading used by three-col, plan-grid, faq.
   Was an inline-styled <h2 style="text-align:center;margin:48px 0…">
   in every renderer; promoted so the renderers emit a single class. */
.section-heading {
  text-align: center;
  margin: 48px 0 16px;
  color: #dff2ff;
}

/* ── hero ──────────────────────────────────────────────────────
   Lifted from Site/public/styles.css on 2026-05-16 (was a page-
   chrome rule there; it's actually a block rule because the hero
   block emits it). Visual identical — same selectors, same values
   — so the live homepage doesn't shift. */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: 64vh;
  position: relative;
}
.hero-copy h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-copy h1 .accent { color: var(--accent); font-weight: 500; }
.hero-copy p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 580px;
  justify-self: end;
}
.hero-visual svg { width: 100%; height: 100%; display: block; }

/* Shared CTA pill — used by hero, plan-grid, and the legacy `.cta`
   call sites lifted from Site/public/styles.css. cta-banner has its
   own `.cta-banner__cta` for the centred banner variant. */
.cta {
  display: inline-block;
  padding: 16px 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #032034;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow:
    0 10px 30px rgba(52, 200, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.18s, box-shadow 0.18s;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(52, 200, 255, 0.5);
}
/* Secondary hero CTA — outline pill in cyan, no fill. Was an
   inline `style="margin-left:12px;background:transparent;border:…"`
   on the second .cta in HeroRenderer. */
.cta--secondary {
  margin-left: 12px;
  background: transparent;
  border: 1px solid rgba(52, 200, 255, 0.5);
  box-shadow: none;
  color: var(--ink);
}
.cta--secondary:hover {
  background: rgba(52, 200, 255, 0.08);
  box-shadow: none;
}

/* ── three-col / plan-grid feature grid ────────────────────────
   Lifted from Site/public/styles.css. Same selectors / values
   so the live page is unchanged. */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 38px 28px 32px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 200, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 30, 80, 0.5);
}
.card .icon {
  margin: 0 auto 22px;
  color: var(--accent);
  font-size: 32px;
  line-height: 1;
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--ink);
}
.card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.card__learn-more {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

/* ── plan-grid pricing chrome ──────────────────────────────────
   Reuses `.features` + `.card` for the outer grid; this layer adds
   the price headline, cadence, and bulleted features list. Was
   inline-styled on every <p>/<ul>/<li> in PlanGridRenderer. */
.plan__price {
  font-size: 28px;
  font-weight: 600;
  color: #eaf6ff;
  margin: 8px 0 4px;
}
.plan__cadence {
  font-size: 14px;
  font-weight: 400;
  color: #8aa9b6;
}
.plan__features {
  padding-left: 18px;
  margin: 8px 0;
  font-size: 14px;
  color: #cce8ff;
  list-style: disc;
  text-align: left;
}
.plan__cta {
  margin-top: auto;
}

/* ── faq accordion ────────────────────────────────────────────
   Native <details>/<summary>. Was inline-styled per element in
   FaqRenderer. */
.faq {
  max-width: 920px;
  margin: 48px auto;
  padding: 0 1.5rem;
}
.faq__item {
  margin-bottom: 8px;
  padding: 14px 18px;
  background: rgba(7, 22, 33, 0.55);
  border: 1px solid rgba(52, 200, 255, 0.18);
  border-radius: 10px;
  color: #dff2ff;
}
.faq__question {
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}
.faq__answer {
  margin: 10px 0 0;
  color: #cce8ff;
  white-space: pre-wrap;
  line-height: 1.5;
}

/* ── rich-text prose ──────────────────────────────────────────
   Phase 5 will swap in Markdig + a JS markdown lib so **bold**,
   _italic_, [links] actually render; until then, `white-space:
   pre-wrap` preserves the operator's line breaks. */
.rich-text {
  max-width: 780px;
  margin: 48px auto;
  padding: 0 1.5rem;
  color: #cce8ff;
  line-height: 1.7;
}
.rich-text__body {
  white-space: pre-wrap;
}

/* ── html-embed escape hatch ──────────────────────────────────
   Operator-trusted raw HTML. No layout opinions — the embedded
   markup brings its own (chat widget, orbital-sphere SVG, etc.). */
.html-embed { }

/* ── cta-banner ──────────────────────────────────────────────
   Centred CTA strip (own chrome — sits on its own panel rather
   than reusing the hero/.cta pill so it reads as a block boundary). */
.cta-banner {
  max-width: 920px;
  margin: 64px auto;
  padding: 32px 2rem;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(52, 200, 255, 0.06),
    rgba(52, 200, 255, 0.02)
  );
  border: 1px solid rgba(52, 200, 255, 0.22);
  border-radius: 14px;
}
.cta-banner__heading {
  margin: 0 0 8px;
  color: #eaf6ff;
}
.cta-banner__body {
  margin: 0 0 18px;
  color: #cce8ff;
}
.cta-banner__cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: #34c8ff;
  color: #001a26;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.12s ease;
}
.cta-banner__cta:hover {
  background: #5fd4ff;
}

/* ── site-nav ───────────────────────────────────────────────
   Top-of-page chrome — brand chip + link list. Was hardcoded in
   PageRenderer.BuildNav and styled via nav.top / .brand in
   Site/public/styles.css; promoted to a block type so operators
   can edit the link list from the CMS without touching code.

   The legacy `nav.top` / `.brand` / `.glyph` selectors are listed
   alongside the new `.site-nav__*` names so a published page that
   hasn't been re-rendered since the Phase-3 cutover still picks
   up the chrome styling. Drop the legacy selectors once the live
   publish output uses only the new class names. */
nav.top,
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 60px;
  /* Stacked above the body blocks so a full-bleed hero pulled up
     behind it cannot paint over the links. Set unconditionally:
     on a page with no such hero it changes nothing. */
  position: relative;
  z-index: 3;
}
/* The 60px breathing room below the nav is the gap between chrome
   and content — but a plexus hero IS the top of the page, so the
   gap becomes dead dark space above it. :has() is progressive
   enhancement here: where it is unsupported the nav keeps its
   original padding and the only cost is a slightly taller gap,
   because the z-index above already guarantees the nav stays
   visible. */
.frame:has(> .hero-plexus) .site-nav { padding-bottom: 12px; }
.brand,
.site-nav__brand {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand .glyph,
.site-nav__glyph {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(52, 200, 255, 0.6);
  display: inline-block;
}
nav.top ul,
.site-nav__items {
  list-style: none;
  display: flex;
  gap: clamp(20px, 3.5vw, 44px);
  margin: 0;
  padding: 0;
}
nav.top a,
.site-nav__items a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
nav.top a:hover,
.site-nav__items a:hover { color: var(--accent); }
nav.top a.active,
.site-nav__items a.is-active { color: var(--ink); }

/* ── site-footer ────────────────────────────────────────────
   Bottom-of-page chrome. Same back-compat story as .site-nav —
   the bare `footer` selector matches the pre-Phase-3 hardcoded
   <footer> element so un-republished pages stay styled. */
footer,
.site-footer {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
footer a,
.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}
footer a:hover,
.site-footer a:hover { color: var(--accent); }
.site-footer__links {
  display: flex;
  gap: 16px;
}

/* ── responsive ──────────────────────────────────────────────
   Mirrors Site/public/styles.css's @media (max-width: 900px) for
   the block selectors that moved here. */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 16px; }
  .hero-visual { justify-self: center; max-width: 420px; margin-top: 32px; }
  .features { grid-template-columns: 1fr; }
  .site-nav__items { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   2026-11 REDESIGN BLOCKS
   hero-plexus · steps-row · stat-grid · outcome-band

   These four carry the cosmic-hero / wave-divider / light-panel
   composition. Two things about them differ from every block above:

   FULL BLEED. PageRenderer wraps block output in .frame, which is
   max-width:1280 and padded. A hero with a wave divider has to
   reach the window edges, so these escape it with the negative
   inline-margin trick — 50% of the content box minus 50% of the
   viewport puts the edge exactly on the window. Deliberately
   scoped to `.frame` so it does NOT apply in the CMS editor's
   preview pane, where 50vw is the browser window and not the pane:
   unscoped, every one of these blocks would blow out of the pane.
   The editor therefore shows a width-constrained approximation of
   a full-bleed block. That is the one documented place where
   preview and published differ by design.

   LIGHT PANELS. The published page body is dark. steps-row and
   stat-grid are white panels laid over it, so they use the
   --paper-* tokens. Placed next to each other they butt together
   into one continuous white run, which is the intended layout;
   each still stands alone if the other is not placed, because the
   waves belong to the hero and the band rather than to them.
   ═══════════════════════════════════════════════════════════════ */

.frame > .hero-plexus,
.frame > .steps-row,
.frame > .stat-grid,
.frame > .outcome-band {
  margin-inline: calc(50% - 50vw);
}

/* ── hero-plexus ───────────────────────────────────────────────
   Dark cosmic hero. Five layers back to front: base gradient,
   starfield, light sources, the plexus canvas, then a scrim that
   keeps the copy legible over a field that moves. Content sits
   above all of it; the wave eats the bottom edge. */
.hero-plexus {
  position: relative;
  isolation: isolate;
  padding: 0 0 clamp(118px, 16vw, 210px);
  background:
    radial-gradient(ellipse 90% 70% at 72% 28%, rgba(52,200,255,0.26) 0%, transparent 62%),
    radial-gradient(ellipse 70% 60% at 8% 62%, rgba(194,57,155,0.30) 0%, transparent 60%),
    radial-gradient(ellipse 120% 90% at 50% 0%, #2a1352 0%, transparent 55%),
    linear-gradient(165deg, #1a0d3a 0%, var(--bg) 45%, var(--bg-deep) 100%);
  /* Up behind the nav, then the copy padded back down past it. */
  margin-top: calc(-1 * var(--nav-h));
  padding-top: var(--nav-h);
  /* The glows are 46vw blurred discs positioned off the left and
     right edges. Unclipped they escape the section and lay a magenta
     haze across the top of the light panel below. */
  overflow: hidden;
}

/* Six repeating gradient tiles at co-prime sizes. Because the tiles
   never line up the eye reads one irregular field rather than six
   grids — cheaper and sharper than a PNG, and it scales to any
   viewport without resampling. */
.site-starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 40px 60px,  rgba(255,255,255,0.95), transparent),
    radial-gradient(1.2px 1.2px at 130px 20px, rgba(255,255,255,0.75), transparent),
    radial-gradient(1px   1px   at 220px 140px,rgba(199,226,255,0.85), transparent),
    radial-gradient(1.8px 1.8px at 310px 80px, rgba(255,255,255,0.65), transparent),
    radial-gradient(1px   1px   at 90px  200px,rgba(255,255,255,0.55), transparent),
    radial-gradient(1.3px 1.3px at 270px 250px,rgba(180,214,255,0.70), transparent);
  background-size:
    380px 320px, 290px 240px, 430px 370px,
    510px 420px, 340px 300px, 470px 390px;
}
.hero-plexus__stars { z-index: -4; opacity: 0.9; }

.hero-plexus__glow {
  position: absolute;
  z-index: -3;
  border-radius: 50%;
  pointer-events: none;
}
.hero-plexus__glow--magenta {
  left: -14vw; top: 34%;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, rgba(226,66,172,0.55) 0%, rgba(140,40,160,0.18) 45%, transparent 70%);
  filter: blur(70px);
}
.hero-plexus__glow--cyan {
  right: 4vw; top: 12%;
  width: 34vw; height: 34vw;
  max-width: 460px; max-height: 460px;
  background: radial-gradient(circle, rgba(90,190,255,0.40) 0%, transparent 68%);
  filter: blur(60px);
}

.hero-plexus__canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* A moving node field directly behind 13.5px/300 body copy is
   unreadable — the contrast shifts under the text as nodes drift
   past. Veils the left, where the copy sits, and clears by ~76%
   so the field stays fully visible on the right. */
.hero-plexus__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(5,11,31,0.93) 0%,
    rgba(5,11,31,0.78) 28%,
    rgba(5,11,31,0.30) 56%,
    rgba(5,11,31,0.00) 76%);
}

/* Full-bleed sections still need their CONTENT centred at the same
   measure .frame uses, or the copy runs to the window edge. */
.site-shell {
  /* 1180, not .frame's 1280: the redesign's measure is narrower, and
     a full-bleed section that centred its content at 1280 would sit a
     100px wider than every constrained block on the page. */
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 52px);
}

.hero-plexus__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(360px, 42vw, 520px);
  padding-top: clamp(26px, 5vw, 64px);
}
.hero-plexus__copy { max-width: 560px; color: var(--ink); }
.hero-plexus__copy h1 {
  font-size: clamp(40px, 6.6vw, 74px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 40px rgba(10,22,56,0.6);
}
.hero-plexus__copy h1 .accent {
  display: block;
  background: linear-gradient(95deg, #ffffff 0%, var(--accent) 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-plexus__copy p {
  margin-top: 20px;
  max-width: 430px;
  font-size: 13.5px;
  line-height: 1.75;
  font-weight: 300;
  color: var(--ink-2);
}

.hero-plexus__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  max-width: 430px;
  padding: 7px 7px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 18, 46, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color .18s, box-shadow .18s;
}
.hero-plexus__search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52,200,255,0.18);
}
.hero-plexus__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  font-style: italic;
  font-weight: 300;
  padding: 8px 10px;
  -webkit-appearance: none;
  appearance: none;
}
.hero-plexus__search input::-webkit-search-decoration,
.hero-plexus__search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hero-plexus__search input::placeholder { color: var(--ink-3); }
.hero-plexus__search button {
  flex: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #04132c;
  padding: 11px 26px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  transition: transform .15s, box-shadow .15s;
}
.hero-plexus__search button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(52,200,255,0.35); }
.hero-plexus__search button:active { transform: translateY(0); }

/* preserveAspectRatio="none" stretches the path to any width while
   the fixed height holds the crest depth — without it the wave
   flattens out on wide screens. Taller than a single S-curve
   needs: three sweeps in a shallow band read as a ripple. */
.hero-plexus__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;   /* -1px kills the subpixel seam */
  width: 100%;
  height: clamp(92px, 11vw, 165px);
  display: block;
  z-index: 1;
}

/* ── steps-row ─────────────────────────────────────────────────
   First white panel. Leads with a title, four haloed discs, a
   lede, and an optional closing line that hands off to stat-grid
   below it. */
.steps-row {
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(40px, 6vw, 76px) 0 clamp(8px, 1.5vw, 18px);
  text-align: center;
}
.steps-row--last { padding-bottom: clamp(60px, 8vw, 104px); }

.steps-row__title,
.stat-grid__title {
  font-size: clamp(23px, 3.1vw, 33px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--paper-ink);
}

.steps-row__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  margin-top: clamp(34px, 5vw, 62px);
}

.step { display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* Thin tinted ring with a soft bloom. The bloom is a box-shadow
   rather than a blurred pseudo-element so the ring stays crisp. */
.step__disc {
  width: clamp(76px, 9vw, 102px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(52,200,255,0.42);
  background: radial-gradient(circle at 50% 42%, #ffffff 55%, rgba(52,200,255,0.10) 100%);
  box-shadow:
    0 0 0 7px rgba(52,200,255,0.07),
    0 10px 26px rgba(13,32,70,0.10);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.step:hover .step__disc {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow:
    0 0 0 9px rgba(52,200,255,0.12),
    0 16px 34px rgba(13,32,70,0.16);
}
/* The disc is ~90px and the glyph 42% of it, so 24 viewBox units
   scale by about 1.6: 1.25 lands at the ~2px hairline the design
   asks for. */
.step__disc svg {
  width: 42%;
  height: 42%;
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step__label {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--paper-ink-2);
  max-width: 15ch;
}

.steps-row__lede {
  margin: clamp(34px, 5vw, 60px) auto 0;
  max-width: 640px;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--paper-ink-2);
}
.steps-row__closing {
  margin: clamp(38px, 5.5vw, 68px) auto 0;
  max-width: 17ch;
  font-size: clamp(23px, 3.1vw, 33px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.025em;
  color: var(--paper-ink);
}

/* ── stat-grid ─────────────────────────────────────────────────
   Second white panel. Cards lead with a count, because that is the
   one thing that says a catalogue is populated rather than
   promised. */
.stat-grid {
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(28px, 4vw, 48px) 0 clamp(60px, 8vw, 104px);
}
.stat-grid__title { text-align: center; margin-bottom: clamp(26px, 3.4vw, 42px); }

.stat-grid__grid {
  display: grid;
  /* auto-fit, so three-up / two-up / one-up happen on content
     width with no breakpoint doing the work. */
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  text-align: left;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: clamp(20px, 2.2vw, 26px);
  border: 1px solid rgba(13, 32, 70, 0.11);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(13, 32, 70, 0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 200, 255, 0.45);
  box-shadow: 0 14px 30px rgba(13, 32, 70, 0.10);
}
.stat-card__count {
  font-size: clamp(25px, 2.8vw, 31px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-2);
}
.stat-card h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper-ink);
}
.stat-card p {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--paper-ink-2);
}
.stat-card__note {
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.01em;
  color: #8ea3c4;
}

/* ── outcome-band ──────────────────────────────────────────────
   The dark return. Its wave hangs ABOVE the section to bite up
   into the white panel, so this must never get overflow:hidden —
   that clips the divider away entirely. */
.outcome-band {
  position: relative;
  isolation: isolate;
  /* No top margin. The wave used to hang in a margin above this
     section, which only reads correctly if what shows through the gap
     is the light panel's colour — but a margin paints nothing, so
     what shows is the PAGE background, and on the published site that
     is the dark navy gradient. Dark wave on a dark gap renders as a
     straight edge. The wave now lives inside this box and paints its
     own light half, so the top padding has to make room for it. */
  padding: calc(clamp(92px, 11vw, 165px) + clamp(30px, 5vw, 64px)) 0 clamp(54px, 7vw, 92px);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 60% at 82% 14%, rgba(52,200,255,0.20) 0%, transparent 62%),
    radial-gradient(ellipse 60% 55% at 10% 88%, rgba(194,57,155,0.20) 0%, transparent 62%),
    linear-gradient(172deg, #0a1638 0%, var(--bg-deep) 100%);
}
/* Inside the band, at its top. The SVG paints white above the curve
   and leaves below it transparent for the band's own background, so
   the divider no longer depends on what colour the page happens to be
   behind a transparent margin. The shadow is an inner shadow in the
   SVG (mirrored from the hero's), not a CSS drop-shadow — a drop
   shadow here would fall on the dark side where nothing can see it. */
.outcome-band__wave {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  width: 100%;
  height: clamp(92px, 11vw, 165px);
  display: block;
  z-index: 2;
}
/* Dimmer than the hero's: it sits behind body copy rather than a
   headline, and at full strength the dots crawl under the text. */
.outcome-band__stars { z-index: 0; opacity: 0.5; }
.outcome-band__inner { position: relative; z-index: 1; }
.outcome-band__title {
  font-size: clamp(23px, 3.1vw, 33px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-align: center;
}

.outcome-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: clamp(30px, 4vw, 50px);
}
.outcome {
  padding: clamp(20px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 18, 46, 0.46);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.outcome__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}
.outcome__head svg {
  width: 19px; height: 19px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.outcome__head h3 { font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em; }
.outcome p {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-2);
}

.outcome-band__cta { margin-top: clamp(50px, 7vw, 86px); text-align: center; }
.outcome-band__cta h2 {
  font-size: clamp(25px, 3.4vw, 37px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.outcome-band__cta p {
  margin: 13px auto 0;
  max-width: 440px;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-2);
}
.outcome-band__btn {
  display: inline-block;
  margin-top: 26px;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #04132c;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  transition: transform .15s, box-shadow .15s;
}
.outcome-band__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(52,200,255,0.34); }
.outcome-band__btn:active { transform: translateY(0); }

/* ── redesign responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .hero-plexus__inner {
    justify-content: center;
    text-align: center;
    min-height: 0;
    padding: 20px 0 clamp(20px, 6vw, 44px);
  }
  .hero-plexus__copy { max-width: none; margin: 0 auto; }
  .hero-plexus__copy p { margin-left: auto; margin-right: auto; }
  .hero-plexus__search { margin-left: auto; margin-right: auto; }
  /* Centred copy has no clear side to hide behind, so the angled
     scrim becomes a flat veil over the whole field. */
  .hero-plexus__scrim {
    background: linear-gradient(180deg,
      rgba(5,11,31,0.88) 0%,
      rgba(5,11,31,0.62) 100%);
  }
}

@media (max-width: 620px) {
  .steps-row__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .hero-plexus__search { flex-wrap: wrap; }
  .hero-plexus__search input { flex-basis: 100%; }
  .hero-plexus__search button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .step__disc { transition: none; }
  .stat-card { transition: none; }
}


/* ═══════════════════════════════════════════════════════════════
   CHROME ON A PLEXUS PAGE

   PageRenderer's nav and footer are shared by every page, and they
   are styled for the pre-redesign look: a 22px rounded-square mark,
   15px links, and 80px of page background above the footer. Against
   the redesign that reads as two different sites stacked.

   Everything below is scoped with :has(> .hero-plexus) so /hive and
   /chat keep exactly the chrome they have today. Where :has() is not
   supported the page falls back to that same older chrome — which is
   legible, just not matched.
   ═══════════════════════════════════════════════════════════════ */

/* The brand mark. The renderer emits an empty <span>, so the glyph
   is a background image rather than inline SVG — which also means
   this needs no renderer change and cannot leak markup. */
.frame:has(> .hero-plexus) .site-nav__glyph {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306142f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c4.5 2.2 7 5.6 7 9.4 0 4.6-3.1 8-7 8.6-3.9-.6-7-4-7-8.6C5 8.6 7.5 5.2 12 3Z'/%3E%3Cpath d='M12 7.5v9'/%3E%3Cpath d='M12 11l3-2M12 14l3-2M12 11L9 9M12 14l-3-2'/%3E%3C/svg%3E"),
    linear-gradient(145deg, var(--accent) 0%, #6a50ff 100%);
  background-size: 20px 20px, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  box-shadow: 0 0 22px rgba(52, 200, 255, 0.45);
}
.frame:has(> .hero-plexus) .site-nav__brand {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  gap: 12px;
}

/* Smaller, quieter links — the headline is the loud thing here. */
.frame:has(> .hero-plexus) .site-nav__items {
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
}
.frame:has(> .hero-plexus) .site-nav__items a {
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.frame:has(> .hero-plexus) .site-nav__items a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
/* The last item is the call to action, whatever the operator has
   named it — a pill rather than one more link in the row. */
.frame:has(> .hero-plexus) .site-nav__items li:last-child a {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.frame:has(> .hero-plexus) .site-nav__items li:last-child a:hover {
  border-color: var(--accent);
  background: rgba(52, 200, 255, 0.14);
}

/* The footer's 80px top margin is page background between the dark
   band and the footer rule — a stripe of drifting mesh blobs where
   the design has the band running straight into the footer. */
.frame:has(> .hero-plexus) .site-footer {
  margin-top: 0;
  padding-top: clamp(26px, 3.4vw, 38px);
}
