/* ============================================================
   RELAI · relai.css · v2.2 · LIGHT-FIRST
   Production shared stylesheet — relaicentral.com
   Vanilla CSS. No frameworks. Manrope + JetBrains Mono self-hosted
   (variable WOFF2). v2.2: full-width mega nav panels (link-row
   columns + promo rail). v2.1: audit fixes — ink ramp vars defined
   (70/50/10/05), drawer visibility timing so focus lands, 16px
   input floor (iOS zoom), TTF fallbacks dropped (WOFF2 is
   universal). v2.0: light-first retheme on the TRAiNED/Relai Design
   System (Remix) tokens — white surfaces, neutral ramp, signature
   gradients (incl. logo-mark), space/radius/shadow scales, light
   sticky nav with mega dropdowns. Navy is punctuation, not the base.

   Brand hexes per Relai Brand Guide:
     Deep Navy #09031D · Ocean Blue #3F93D0 · Electric Teal #2ED3C6
     Signal Violet #6B5CFF · Success Green #3CCB7F
     Amber #F4B63F · Coral #EF5D5D · Neutral Gray #ACACAC (borders only)

   Accessibility notes (WCAG 2.1 AA):
   · #3F93D0 and #2ED3C6 fail 4.5:1 as TEXT on light surfaces →
     use --ocean-text / --teal-text companions for text on light;
     exact brand hexes are used on dark surfaces, fills, and graphics.
   · Primary buttons: Ocean fill + Deep Navy text (6.3:1). Hover:
     Electric Teal fill + Deep Navy text (8.6:1) per brand guide.
   · #ACACAC reserved for borders/dividers only, never body text.
============================================================ */

/* =================== FONT =================== */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-Variable.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}


:root {
  /* Brand primaries — exact guide values */
  --navy:       #09031D;
  --ocean:      #3F93D0;
  --teal:       #2ED3C6;
  --violet:     #6B5CFF;
  --green:      #3CCB7F;
  --amber:      #F4B63F;
  --coral:      #EF5D5D;
  --gray:       #ACACAC;   /* borders + subtle elements ONLY */

  /* Text-safe companions for light surfaces (≥4.5:1 on paper) */
  --ocean-text: #2A6E9F;
  --teal-text:  #127C72;
  --violet-text:#5646E0;
  --green-text: #1E7A4C;

  /* Surfaces */
  --paper:      #FFFFFF;
  --paper-2:    #F4F5F9;
  --paper-3:    #E8E8EE;
  --ink:        var(--navy);
  --ink-72:     rgba(9,3,29,0.72);
  --ink-70:     rgba(9,3,29,0.70);   /* nav links on paper */
  --ink-60:     rgba(9,3,29,0.62);   /* secondary text — passes on paper */
  --ink-50:     rgba(9,3,29,0.50);   /* muted mono accents; not for body text */
  --ink-45:     rgba(9,3,29,0.45);   /* decorative micro-labels only */
  --ink-15:     rgba(9,3,29,0.15);
  --ink-10:     rgba(9,3,29,0.10);   /* hairline borders */
  --ink-08:     rgba(9,3,29,0.08);
  --ink-05:     rgba(9,3,29,0.05);   /* hover wash */
  --rule:       rgba(9,3,29,0.12);
  --rule-soft:  rgba(9,3,29,0.07);

  /* On-dark text */
  --dk-text:    rgba(250,250,246,0.78);
  --dk-text-hi: #FAFAF6;
  --dk-text-lo: rgba(250,250,246,0.55);
  --dk-rule:    rgba(250,250,246,0.12);

  --section-y:  clamp(88px, 11vw, 144px);
  --container:  1280px;

  /* Compat aliases for pages ported from the v3-light system.
     Values remapped to brand-guide hues. */
  --ink-2:      #150F30;
  --ink-deep:   #060213;
  --ink-30:     rgba(9,3,29,0.30);
  --teal-2:     var(--teal-text);
  --teal-weak:  rgba(46,211,198,0.14);
  --teal-pop:   #2ED3C6;
  --ocean-2:    var(--ocean-text);
  --sky:        var(--ocean);
  --grid-line:  rgba(9,3,29,0.05);

  --font-sans:  'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* System mono stack — no CDN, no extra font payload */
  --font-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Segoe UI Mono', Menlo, Consolas, monospace;
}

/* =================== BASE =================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
p { text-wrap: pretty; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* Visible focus for keyboard users — global */
:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .site-nav :focus-visible, .site-footer :focus-visible {
  outline-color: var(--teal);
}

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--navy); color: var(--dk-text-hi);
  padding: 10px 18px; border-radius: 0 0 6px 6px;
  font-size: 13px; font-weight: 600;
  transition: top 160ms;
}
.skip-link:focus { top: 0; }

/* =================== TYPE PRIMITIVES =================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-text);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px;
  background: currentColor; flex-shrink: 0;
}
.eyebrow.blue { color: var(--ocean-text); }
.eyebrow.violet { color: var(--violet-text); }
.on-dark .eyebrow, .dark-band .eyebrow { color: var(--teal); }
.coord {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-45);
}

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700; font-size: 15px; letter-spacing: -0.005em;
  padding: 14px 26px;
  border-radius: 999px;
  border: none; cursor: pointer;
  transition: background-color 180ms cubic-bezier(.2,.7,.2,1),
              color 180ms cubic-bezier(.2,.7,.2,1),
              transform 180ms cubic-bezier(.2,.7,.2,1),
              box-shadow 180ms cubic-bezier(.2,.7,.2,1),
              border-color 180ms cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
}
/* Primary: Ocean fill, Deep Navy text · hover: Electric Teal per guide */
.btn-primary { background: var(--ocean); color: var(--navy); }
.btn-primary:hover {
  background: var(--teal); color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(46,211,198,0.45);
}
/* Secondary pill: adapts to surface. Ink on light, paper on dark bands. */
.btn-outline {
  background: transparent; color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(9,3,29,0.28);
}
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--teal); color: var(--teal-text); }
.dark-band .btn-outline, .on-dark .btn-outline {
  color: var(--dk-text-hi);
  box-shadow: inset 0 0 0 1px rgba(250,250,246,0.28);
}
.dark-band .btn-outline:hover, .on-dark .btn-outline:hover {
  box-shadow: inset 0 0 0 1px var(--teal); color: var(--teal);
}
/* Light-surface secondary */
.btn-ghost { background: transparent; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--ink-15); border-radius: 0; }
.btn-ghost:hover { color: var(--teal-text); border-bottom-color: var(--teal); }
.btn-arrow::after { content: "→"; font-weight: 400; transition: transform 160ms cubic-bezier(.2,.7,.2,1); }
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-mono {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid currentColor;
  background: transparent; color: var(--ink);
  border-radius: 0;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-mono::after { content: "→"; }
.btn-mono:hover { color: var(--teal-text); gap: 12px; }

.explore-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--ocean-text); letter-spacing: -0.005em;
  transition: gap 160ms cubic-bezier(.2,.7,.2,1), color 160ms;
}
.explore-link::after { content: "→"; }
.explore-link:hover { gap: 12px; color: var(--violet-text); }

/* =================== GRADIENT TEXT (brand-exact stops) =================== */
.grad {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.grad-hero   { background-image: linear-gradient(94deg, #2ED3C6 0%, #3F93D0 48%, #6B5CFF 100%); }
.grad-violet { background-image: linear-gradient(94deg, #6B5CFF 0%, #8F84FF 55%, #3F93D0 100%); }
.grad-teal   { background-image: linear-gradient(94deg, #2ED3C6 0%, #3F93D0 100%); }

/* =================== NAV (floating capsule + full-width mega panels · v2.3) =================== */
.site-nav {
  position: sticky; top: 10px; z-index: 60;
  padding: 0 16px;
  color: var(--ink);
}
.site-nav .nav-inner {
  /* Gong-style arrangement: indented logo, links clustered left beside it,
     search / sign in / CTA pushed to the right */
  display: flex; align-items: center; justify-content: flex-start;
  padding: 9px 10px 9px 44px;
  max-width: calc(var(--container) - 48px); margin: 0 auto; gap: 24px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--ink-10);
  border-radius: 999px;
  box-shadow: 0 12px 32px -18px rgba(9,3,29,0.28), 0 2px 8px -4px rgba(9,3,29,0.08);
}
.site-nav .nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-nav .nav-logo img { height: 28px; width: auto; }
.site-nav nav { margin-left: 14px; margin-right: auto; } /* left-cluster the links, right-park the ctas */
.site-nav .nav-links {
  display: flex; gap: 32px; align-items: center;
  font-size: 15px; font-weight: 500; color: var(--ink-70);
}
.site-nav .nav-links > li { position: static; } /* megas anchor to the header, not the item */
.site-nav .nav-links > li > a,
.site-nav .nav-links > li > button.nav-trigger {
  position: relative; z-index: 61; /* carries the active underline; stays hoverable above the mega bridge */
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--ink-70);
  background: transparent; border: none; cursor: pointer;
  font: inherit; font-weight: 500; padding: 10px 0;
  transition: color 150ms var(--ease-out, ease);
}
.site-nav .nav-links > li:not(.active) > a:hover,
.site-nav .nav-links > li:not(.active) > button.nav-trigger:hover,
.site-nav .nav-links > li.open:not(.active) > .nav-trigger { color: var(--violet-text); }
.site-nav .nav-links > li:not(.active) > a::before,
.site-nav .nav-links > li:not(.active) > button.nav-trigger::before {
  content: ""; position: absolute; left: -14px; right: -14px; top: 2px; bottom: 2px;
  border-radius: 999px; z-index: -1;
  background: linear-gradient(120deg, rgba(107,92,255,0.32), rgba(63,147,208,0.24), rgba(46,211,198,0.30));
  opacity: 0; transform: scale(0.92);
  transition: opacity 200ms var(--ease-out, ease), transform 200ms var(--ease-out, ease);
}
.site-nav .nav-links > li:not(.active) > a:hover::before,
.site-nav .nav-links > li:not(.active) > button.nav-trigger:hover::before,
.site-nav .nav-links > li.open:not(.active) > .nav-trigger::before { opacity: 1; transform: scale(1); }
.site-nav .nav-links > li.active > a,
.site-nav .nav-links > li.active > button.nav-trigger { color: var(--navy); font-weight: 700; }
.site-nav .nav-links > li.active > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--teal);
}

/* Caret (CSS-drawn, flips when open) */
.site-nav .has-menu > a .caret,
.site-nav .has-menu > button.nav-trigger .caret {
  width: 7px; height: 7px; flex: 0 0 auto;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms var(--ease-out, ease);
}
.site-nav .has-menu.open > a .caret,
.site-nav .has-menu.open > button.nav-trigger .caret {
  transform: translateY(1px) rotate(225deg);
}
@media (hover: hover) {
  .site-nav .has-menu:hover > a .caret,
  .site-nav .has-menu:hover > button.nav-trigger .caret {
    transform: translateY(1px) rotate(225deg);
  }
}

/* ---- Mega menu (full-width panel: link-row columns + promo rail) ---- */
.site-nav .mega {
  position: absolute; left: 50%; top: calc(100% + 10px);
  width: min(100vw - 48px, 1160px);
  padding: 26px;
  background: var(--white); border: 1px solid var(--ink-10);
  border-radius: 18px;
  box-shadow: 0 32px 64px -16px rgba(9,3,29,0.22), 0 8px 24px -12px rgba(9,3,29,0.12);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px);
  transition: opacity 180ms var(--ease-out, ease), transform 180ms var(--ease-out, ease), visibility 180ms;
  z-index: 60;
}
.site-nav .mega::before { /* bridge over the nav gap so hover doesn't drop */
  content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 25px;
}
@media (hover: hover) {
  .site-nav li.has-menu:hover .mega,
  .site-nav li.has-menu:focus-within .mega {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translate(-50%, 0);
  }
}
.site-nav li.has-menu.open .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.site-nav .mega-grid {
  display: grid; grid-template-columns: 1fr 1fr minmax(264px, 300px); gap: 34px;
  align-items: stretch;
}
.site-nav .mega-col h5 {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ocean-text); margin: 2px 0 12px;
}
.site-nav .mega-col ul { display: flex; flex-direction: column; gap: 8px; }
.site-nav .mega-col li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px;
  background: var(--white); border: 1px solid var(--ink-10); border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--navy);
  transition: border-color 140ms var(--ease-out, ease), background 140ms var(--ease-out, ease), color 140ms var(--ease-out, ease);
}
.site-nav .mega-col li a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-nav .mega-col li a::after { /* arrow, colorable via mask */
  content: ""; width: 14px; height: 14px; flex: 0 0 14px;
  background: rgba(9,3,29,0.35);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 140ms var(--ease-out, ease), background 140ms var(--ease-out, ease);
}
.site-nav .mega-col li a:hover {
  border-color: rgba(63,147,208,0.55); background: #F7FAFD; color: var(--ocean-text);
}
.site-nav .mega-col li a:hover::after { background: var(--ocean-text); transform: translateX(3px); }
.site-nav .mega-col li a:focus-visible { outline: 2px solid var(--ocean); outline-offset: 2px; }

/* Promo rail (right card of every panel) */
.site-nav .mega-promo {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px; border-radius: 14px;
  background: radial-gradient(120% 90% at 85% 0%, rgba(107,92,255,0.28), transparent 60%), var(--navy);
  color: var(--dk-text-hi);
  transition: transform 160ms var(--ease-out, ease), box-shadow 160ms var(--ease-out, ease);
}
.site-nav .mega-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(9,3,29,0.38);
}
.site-nav .mega-promo:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.site-nav .mega-promo-art { display: block; margin: -2px 0 2px; }
.site-nav .mega-promo-art svg { display: block; width: 100%; height: auto; }
.site-nav .mega-promo-kicker {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal);
}
.site-nav .mega-promo strong {
  font-size: 16.5px; font-weight: 700; letter-spacing: -0.015em;
  line-height: 1.28; color: var(--dk-text-hi);
}
.site-nav .mega-promo-note { font-size: 13px; line-height: 1.5; color: var(--dk-text); }
.site-nav .mega-promo-cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 8px;
  background: var(--white); color: var(--navy);
  font-size: 12.5px; font-weight: 700;
}
.site-nav .mega-promo-cta::after {
  content: ""; width: 12px; height: 12px; flex: 0 0 12px;
  background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 140ms var(--ease-out, ease);
}
.site-nav .mega-promo:hover .mega-promo-cta::after { transform: translateX(3px); }

/* Compact single-column mega panel (Company: icon rows, no promo rail) */
.site-nav .mega.mega-compact { width: 300px; padding: 14px; }
.site-nav .mega-iconlist { display: flex; flex-direction: column; gap: 4px; }
.site-nav .mega-irow {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 12px;
  transition: background 140ms var(--ease-out, ease);
}
.site-nav .mega-irow:hover { background: #F7FAFD; }
.site-nav .mega-irow:focus-visible { outline: 2px solid var(--ocean); outline-offset: 2px; }
.site-nav .mega-icon {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.site-nav .mega-icon svg { width: 18px; height: 18px; }
.site-nav .mega-icon.ocean  { background: rgba(63,147,208,0.14); color: var(--ocean-text); }
.site-nav .mega-icon.teal   { background: rgba(46,211,198,0.16); color: var(--teal-text); }
.site-nav .mega-icon.violet { background: rgba(107,92,255,0.14); color: var(--violet-text); }
.site-nav .mega-irow-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.site-nav .mega-irow-text strong { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.site-nav .mega-irow-text span { font-size: 12.5px; color: var(--ink-45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.site-nav .nav-ctas { display: flex; gap: 14px; align-items: center; position: relative; z-index: 61; }
.site-nav .nav-ctas .btn { padding: 10px 20px; font-size: 13px; border-radius: 999px; }

/* Search trigger + Sign in (right cluster, Gong-style) */
.site-nav .nav-search {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-70); background: transparent; border: none; cursor: pointer;
  transition: background 140ms var(--ease-out, ease), color 140ms var(--ease-out, ease);
}
.site-nav .nav-search:hover { background: var(--paper-2); color: var(--navy); }
.site-nav .nav-search svg { width: 18px; height: 18px; }
.site-nav .nav-signin-wrap { position: relative; }
.site-nav .nav-signin {
  background: transparent; border: none; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 700; color: var(--ocean-text); padding: 8px 4px;
  transition: color 140ms var(--ease-out, ease);
}
.site-nav .nav-signin:hover { color: var(--navy); }
.signin-pop {
  position: absolute; right: 0; top: calc(100% + 12px); width: 268px;
  background: var(--white); border: 1px solid var(--ink-10); border-radius: 14px;
  box-shadow: 0 24px 48px -12px rgba(9,3,29,0.25);
  padding: 16px 18px; z-index: 70;
}
.signin-pop p { font-size: 13.5px; line-height: 1.55; color: var(--ink-72); margin: 0 0 10px; }
.signin-pop a { font-size: 13.5px; font-weight: 700; color: var(--ocean-text); }
@media (max-width: 1020px) { .site-nav .nav-signin-wrap { display: none; } }

/* Site search overlay (markup built by js/site.js) */
.search-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(9,3,29,0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 14vh 20px 20px;
}
.search-card {
  width: min(600px, 100%); background: var(--white);
  border-radius: 18px; box-shadow: 0 40px 80px -20px rgba(9,3,29,0.5);
  overflow: hidden;
}
.search-row { display: flex; align-items: center; gap: 12px; padding: 6px 18px; border-bottom: 1px solid var(--rule); }
.search-row svg { width: 18px; height: 18px; color: var(--ink-45); flex: 0 0 auto; }
.search-row input {
  flex: 1; height: 54px; border: none; outline: none; font: inherit;
  font-size: 16px; color: var(--ink); background: transparent;
}
.search-row input::placeholder { color: var(--ink-45); }
.search-esc {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--ink-45); border: 1px solid var(--rule); border-radius: 6px; padding: 3px 7px;
}
.search-results { max-height: 46vh; overflow-y: auto; padding: 8px; }
.search-results a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 12px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--navy);
}
.search-results a:hover, .search-results a.sel { background: var(--paper-2); color: var(--ocean-text); }
.search-results a .where {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-45); white-space: nowrap;
}
.search-empty { padding: 22px 16px 26px; text-align: center; font-size: 14px; color: var(--ink-45); }
.site-nav .mobile-hamburger {
  display: none; background: transparent;
  border: 1px solid var(--ink-10); color: var(--ink);
  padding: 9px 10px; border-radius: 999px; cursor: pointer;
}
@media (max-width: 1020px) {
  .site-nav .nav-links { display: none; }
  .site-nav .mobile-hamburger { display: inline-flex; }
  .site-nav .nav-ctas .btn { display: none; }
}

/* Mobile drawer */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(9,3,29,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 220ms;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71;
  width: min(340px, 88vw);
  background: var(--navy); color: var(--dk-text-hi);
  transform: translateX(102%);
  visibility: hidden;
  /* visibility flips instantly on open (focus() must land while visible),
     and only after the slide-out on close */
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), visibility 0s 260ms;
  display: flex; flex-direction: column;
  padding: 20px 24px 28px;
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-scrim { transition: none; }
}
body.drawer-open .drawer {
  transform: translateX(0); visibility: visible;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), visibility 0s;
}
body.drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.drawer-top img { height: 26px; width: auto; }
.drawer-close {
  background: transparent; border: 1px solid rgba(250,250,246,0.25);
  color: var(--dk-text-hi); border-radius: 5px; padding: 8px; cursor: pointer;
}
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a {
  display: block; padding: 14px 0;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(250,250,246,0.10);
  color: rgba(250,250,246,0.88);
}
.drawer-links a:hover { color: var(--teal); }
.drawer-links a.active { color: var(--teal); }
.drawer-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.drawer-bottom .btn { justify-content: center; }

/* =================== HERO / DARK SURFACES =================== */
.on-dark { background: var(--navy); color: var(--dk-text-hi); }
.hero-dark {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--dk-text-hi);
}
/* Signal Violet gradient moment per guide */
.hero-dark .bloom {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1000px 620px at 88% -10%, rgba(107,92,255,0.28), transparent 62%),
    radial-gradient(760px 520px at -6% 108%, rgba(46,211,198,0.12), transparent 60%),
    radial-gradient(520px 380px at 55% 118%, rgba(63,147,208,0.10), transparent 65%);
}
.hero-dark > .container { position: relative; z-index: 1; }

.dark-band {
  background: var(--navy);
  color: var(--dk-text-hi);
  padding: var(--section-y) 0;
  position: relative;
}
.dark-band.tinted {
  background:
    radial-gradient(900px 560px at 88% 12%, rgba(107,92,255,0.16), transparent 60%),
    radial-gradient(820px 520px at 10% 92%, rgba(46,211,198,0.10), transparent 60%),
    var(--navy);
}
.dark-band h2, .dark-band h3 { color: var(--dk-text-hi); }
.dark-band p { color: var(--dk-text); }
.dark-band strong { color: var(--dk-text-hi); }

/* =================== SECTION HEADER =================== */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head .eyebrow { margin-bottom: 24px; }
.section-head h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; color: var(--ink);
  max-width: 18ch; text-wrap: balance;
}
.section-head h2 em { font-style: normal; color: var(--teal-text); }
.dark-band .section-head h2, .on-dark .section-head h2 { color: var(--dk-text-hi); }
.dark-band .section-head h2 em, .on-dark .section-head h2 em { color: var(--teal); }
.section-head p {
  font-size: 15px; line-height: 1.55;
  color: var(--ink-72); max-width: 42ch;
}
.dark-band .section-head p { color: var(--dk-text); }
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; gap: 20px; } }

/* =================== FORM FIELDS =================== */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-60);
}
.field-group input,
.field-group textarea,
.field-group select {
  font-family: var(--font-sans);
  /* 16px floor: below that iOS Safari zooms the page on focus */
  font-size: 16px; font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--ink-15);
  padding: 12px 0;
  outline: none;
  transition: border-color 160ms;
  width: 100%;
  resize: none;
  border-radius: 0;
}
.field-group textarea { min-height: 96px; padding-top: 14px; line-height: 1.5; }
.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus { border-bottom-color: var(--teal); }
.field-group input::placeholder,
.field-group textarea::placeholder { color: var(--ink-45); }
@media (max-width: 720px) { .field-row { grid-template-columns: 1fr; } }

/* =================== HUBSPOT EMBEDDED FORMS ===================
   Styles HubSpot v2 embeds (hbspt.forms.create) to the site look.
   Confirm class names against the live embed when form IDs land. */
.hs-form-frame, .hbspt-form { font-family: var(--font-sans); }
.hbspt-form fieldset { max-width: none !important; }
.hbspt-form .hs-form-field { margin-bottom: 20px; }
.hbspt-form .hs-form-field > label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-60);
  display: block; margin-bottom: 8px;
}
.hbspt-form .hs-input:not([type="checkbox"]):not([type="radio"]) {
  font-family: var(--font-sans);
  font-size: 16px; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--ink-15);
  padding: 12px 0; width: 100% !important;
  outline: none; border-radius: 0;
  transition: border-color 160ms;
}
.hbspt-form .hs-input:focus { border-bottom-color: var(--teal); }
.hbspt-form ::placeholder { color: var(--ink-45); }
.hbspt-form .hs-error-msg, .hbspt-form .hs-error-msgs label {
  font-family: var(--font-sans); font-size: 12px; color: #C43A3A;
  text-transform: none; letter-spacing: 0;
}
.hbspt-form .hs-button {
  display: inline-flex; align-items: center;
  font-family: var(--font-sans);
  font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: 999px;
  border: none; cursor: pointer;
  background: var(--ocean); color: var(--navy);
  transition: background-color 180ms, transform 180ms, box-shadow 180ms;
}
.hbspt-form .hs-button:hover {
  background: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(46,211,198,0.45);
}
.hbspt-form .submitted-message {
  font-size: 16px; font-weight: 600; color: var(--green-text);
  padding: 24px 0;
}
/* Dark-surface variant */
.on-dark .hbspt-form .hs-form-field > label { color: var(--dk-text-lo); }
.on-dark .hbspt-form .hs-input:not([type="checkbox"]):not([type="radio"]) {
  color: var(--dk-text-hi); border-bottom-color: rgba(250,250,246,0.22);
}
.on-dark .hbspt-form ::placeholder { color: rgba(250,250,246,0.40); }
.on-dark .hbspt-form .submitted-message { color: var(--green); }

/* =================== FAQ ACCORDION =================== */
.faq-list { display: flex; flex-direction: column; }
.faq-row { border-bottom: 1px solid var(--rule); }
.faq-row:first-child { border-top: 1px solid var(--rule); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; width: 100%; text-align: left;
  padding: 24px 0;
  cursor: pointer;
  background: none; border: none;
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 160ms;
}
.faq-q:hover { color: var(--teal-text); }
.faq-q .plus {
  font-family: var(--font-mono);
  font-size: 16px; color: var(--ink-45);
  transition: transform 200ms cubic-bezier(.2,.7,.2,1);
  flex-shrink: 0;
}
.faq-row.open .faq-q .plus { transform: rotate(45deg); color: var(--teal-text); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 280ms cubic-bezier(.2,.7,.2,1);
}
@media (prefers-reduced-motion: reduce) { .faq-a { transition: none; } }
.faq-row.open .faq-a { max-height: 520px; }
.faq-a-inner {
  padding: 0 0 28px;
  font-size: 15px; line-height: 1.6;
  color: var(--ink-72);
  max-width: 64ch;
}
.faq-a-inner strong { color: var(--ink); font-weight: 600; }

/* =================== PLACEHOLDER TREATMENTS ===================
   Elegant structural slots for uncleared content. Every use is
   logged in ASSETS-NEEDED.md. */
.logo-slot {
  display: flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px;
  border: 1px dashed var(--gray);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-45);
  filter: grayscale(1);
}
.on-dark .logo-slot, .dark-band .logo-slot {
  border-color: rgba(250,250,246,0.22);
  color: var(--dk-text-lo);
}
.quote-slot { position: relative; }
.quote-slot .q-mark {
  font-size: 64px; font-weight: 800; line-height: 1;
  color: var(--violet);
  margin-bottom: 12px;
}
.quote-slot blockquote {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.35;
  color: var(--ink-60);
  max-width: 30ch;
}
.quote-slot cite {
  display: flex; align-items: center; gap: 12px;
  margin-top: 24px; font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-45);
}

/* =================== ENTRANCE ANIMATIONS ===================
   CSS-only reveal: .reveal elements fade/rise when site.js adds
   .in via IntersectionObserver. Base state is VISIBLE — the
   hidden state only applies when JS has tagged the page, so
   no-JS, print, and reduced-motion all see content. */
@media (prefers-reduced-motion: no-preference) {
  html.js-anim .reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1);
  }
  html.js-anim .reveal.in { opacity: 1; transform: none; }
  html.js-anim .reveal[data-delay="1"] { transition-delay: 90ms; }
  html.js-anim .reveal[data-delay="2"] { transition-delay: 180ms; }
  html.js-anim .reveal[data-delay="3"] { transition-delay: 270ms; }
}

/* =================== FOOTER =================== */
footer.site-footer {
  background: var(--navy);
  color: var(--paper);
  padding: 72px 0 32px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--dk-rule);
}
.site-footer .footer-brand img { height: 30px; width: auto; margin-bottom: 16px; }
.site-footer .footer-brand p {
  font-size: 14px; line-height: 1.55;
  color: var(--dk-text);
  max-width: 30ch;
  margin-bottom: 16px;
}
.site-footer .footer-brand .coord { color: var(--dk-text-lo); }
.site-footer .footer-col h2 {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dk-text-lo);
  margin-bottom: 16px;
}
.site-footer .footer-col ul li a {
  display: block;
  font-size: 13px;
  color: rgba(250,250,246,0.85);
  padding: 5px 0;
  transition: color 140ms;
}
.site-footer .footer-col ul li a:hover { color: var(--teal); }
.site-footer .footer-col ul li a.active { color: var(--teal); }
.site-footer .footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dk-text-lo);
}
.site-footer .footer-bottom .legal-links { display: flex; gap: 24px; }
.site-footer .footer-bottom a { color: rgba(250,250,246,0.70); }
.site-footer .footer-bottom a:hover { color: var(--teal); }
@media (max-width: 880px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-brand { grid-column: span 2; }
}

/* =================== UTILITY =================== */
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-72); }
.center { text-align: center; }

/* ============================================================
   V2 · DESIGN-SYSTEM LAYER (TRAiNED/Relai DS Remix)
   Neutral ramp · space/radius/shadow scales · signature
   gradients · light-hero helpers. Brand seven stay at exact
   brand-guide hexes (see header); ramp + scales come from the
   design system.
============================================================ */
:root {
  /* Neutral ramp */
  --white:     #FFFFFF;
  --off-white: #F4F5F9;
  --gray-3:    #E8E8EE;
  --gray-2:    #D4D4DB;
  --slate:     #5A5A6A;
  --ink-2:     #1A1530;
  --ink-3:     #2E2A45;

  /* Spacing scale */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px;  --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --space-32: 128px;

  /* Radii */
  --radius-xs: 4px; --radius-sm: 6px; --radius-md: 10px;
  --radius-lg: 14px; --radius-xl: 20px; --radius-2xl: 28px;
  --radius-pill: 999px;

  /* Shadows (cool, navy-tinted) */
  --shadow-sm: 0 1px 2px rgba(9,3,29,0.05), 0 1px 3px rgba(9,3,29,0.06);
  --shadow-md: 0 3px 8px rgba(9,3,29,0.06), 0 8px 24px rgba(9,3,29,0.07);
  --shadow-lg: 0 8px 20px rgba(9,3,29,0.08), 0 20px 48px rgba(9,3,29,0.10);

  /* Signature gradients */
  --grad-mark:    linear-gradient(135deg, #E8E94F 0%, #C7E13B 28%, #3C8FE0 72%, #1E40AF 100%);
  --grad-deep:    linear-gradient(135deg, #09031D 0%, #1E40AF 55%, #3F93D0 100%);
  --grad-signal:  linear-gradient(120deg, #6B5CFF 0%, #3F93D0 55%, #2ED3C6 100%);
  --grad-surface: linear-gradient(180deg, rgba(107,92,255,0.07) 0%, rgba(63,147,208,0.05) 40%, rgba(255,255,255,0) 100%);
}

/* Gradient text (signal + mark) — pair with .grad */
.grad-signal { background-image: linear-gradient(120deg, #5646E0 0%, #2A6E9F 55%, #127C72 100%); }
.dark-band .grad-signal, .on-dark .grad-signal {
  background-image: linear-gradient(120deg, #8F84FF 0%, #5FB0E8 55%, #2ED3C6 100%);
}
.grad-mark { background-image: var(--grad-mark); }

/* Light hero scaffold */
.light-hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
}
.light-hero .hero-wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 380px at 82% 8%, rgba(107,92,255,0.10), transparent 62%),
    radial-gradient(640px 420px at 12% 100%, rgba(46,211,198,0.08), transparent 60%),
    var(--grad-surface);
}
.light-hero > .container { position: relative; }
.light-hero .eyebrow { color: var(--teal-text); }

/* Node chip (hub-and-spoke labels) */
.node-chip {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.1em;
}

/* Light trust band */
.trust-band {
  border-top: 1px solid var(--paper-3);
  background: var(--white);
  padding: 30px 0 38px;
}
.trust-band .proof-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.trust-band .coord { flex-shrink: 0; }
.trust-band .proof-logos { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.trust-band .logo-slot { height: 44px; flex: 1; min-width: 128px; max-width: 190px; }

/* Card helper (light, raised) */
.card-raised {
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* v2 addenda */
.site-nav .nav-links > li.active > button.nav-trigger { color: var(--ink); font-weight: 700; }
.site-nav .nav-links > li.active > button.nav-trigger .chev { opacity: 1; }
.site-footer .footer-grid { grid-template-columns: 2.4fr 1fr 1fr 1fr 1fr; }
@media (max-width: 920px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }

html, body { overflow-x: clip; }
