/* ============================================================
   ReversePilot — Enterprise design system
   Palette retained from v1: navy #104862, orange #e78724
   ============================================================ */

:root {
  --navy:        #104862;
  --navy-700:    #0c3a52;
  --navy-800:    #0a3144;
  --navy-900:    #06222f;
  --navy-50:     #F2F7FA;
  --navy-25:     #F5FBFF;
  --orange:      #e78724;
  --orange-600:  #c9711a;
  --ink:         #0f1d2c;
  --ink-2:       #233447;
  --muted:       #5b6b7a;
  --muted-2:     #66717b;
  --line:        #E4E8EF;
  --line-2:      #d6dde6;
  --white:       #ffffff;
  --green:       #1f7a4d;
  --red:         #b3261e;

  --maxw: 1200px;
  --maxw-narrow: 880px;

  --radius-sm: 3px;
  --radius:    4px;
  --radius-lg: 6px;

  --shadow-sm: 0 1px 2px rgba(15, 29, 44, 0.06);
  --shadow:    0 1px 0 rgba(15,29,44,0.04), 0 6px 18px -6px rgba(15,29,44,0.10);

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  --site-header-height: 72px;
  --subnav-height: 54px;
  --anchor-scroll-offset: calc(var(--site-header-height) + 24px);
  --anchor-scroll-offset-with-subnav: calc(var(--site-header-height) + var(--subnav-height));
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-700); }
button { font: inherit; cursor: pointer; }
[id] { scroll-margin-top: var(--anchor-scroll-offset); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Type ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  font-weight: 700;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; letter-spacing: -0.005em; }
p  { margin: 0 0 1em; color: var(--ink-2); }
.lede { font-size: 1.18rem; color: var(--muted); line-height: 1.55; max-width: 62ch; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--navy-25);
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow.on-dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
  color: #cfe1ec;
}

/* ---------- Layout primitives ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tight { padding: 48px 0; }
.section-bg { background: var(--navy-25); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-band { background: var(--navy-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(231,135,36,0.08), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy));
  color: #d8e6ee;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: #b8cbd6; }
.section-dark .lede { color: #a3b8c8; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-submitting { opacity: 0.65; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-600); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-outline:hover { background: var(--navy-25); border-color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.85rem; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 56px; }
.pg-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pg {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--navy); background: transparent;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
  white-space: nowrap;
}
a.pg:hover { background: var(--navy-25); border-color: var(--navy); color: var(--navy); }
a.pg:active { transform: translateY(1px); }
a.pg:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.pg.is-current, a.pg.is-current:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.pg.is-disabled { opacity: 0.45; cursor: default; }
.pg-gap { min-width: 20px; text-align: center; color: var(--muted); }
@media (max-width: 480px) {
  .pagination { gap: 4px; }
  .pg-step { padding: 0; }
  .pg-step .pg-step-label { display: none; }
  .pagination.is-condensed .pg-far, .pagination.is-condensed .pg-gap { display: none; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid transparent;
}
.link-arrow:hover { border-bottom-color: var(--navy); color: var(--navy); }
.link-arrow .arrow { transition: transform .15s ease; }
.link-arrow:hover .arrow { transform: translateX(2px); }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: var(--navy-900);
  color: #dbe6ec;
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -6px 24px -6px rgba(6,34,47,0.4);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-inner p { margin: 0; font-size: 0.88rem; max-width: 640px; color: #dbe6ec; }
.cookie-banner-inner a { color: #fff; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); background: transparent; }
.cookie-banner .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { flex-direction: column; }
}

/* ---------- Top nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--site-header-height);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  width: auto;
  height: 32px;
}
/* Header ships both logo variants; pages with a dark header (home.css) swap them. */
.brand-logo-light { display: none; }

.nav-panel { display: contents; }
.nav-panel-actions { display: none; }

.nav-list {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 8px 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
  border-radius: var(--radius);
  position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .18s cubic-bezier(.16,.84,.44,1);
}
.nav-list a:hover { color: var(--navy); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a.active { color: var(--navy); }
.nav-list a.active:not(.nav-trigger)::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
/* Logo + 7 nav items + Customer login + Book a demo must fit the 1200px container at the
   1200px hamburger breakpoint (1138px of content width once the scrollbar is counted). */
.nav-actions .btn-sm { padding: 0 12px; }

/* ---------- Mega menu (Platform / Solutions) ---------- */
.has-mega { position: static; }
/* Selector scoped with two classes so it reliably beats ".nav-list a" (a class + an
   element selector), which otherwise wins on specificity and forces this back to
   inline-block - collapsing the flex row and dropping the chevron SVG (block-level
   by the global img/svg reset) onto its own line below the label. */
.nav-list .nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; color: var(--ink); font-family: var(--font-display);
  font-weight: 600; font-size: 0.93rem; padding: 8px 10px; border-radius: var(--radius);
  position: relative;
}
.nav-list .nav-trigger::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px;
  background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .18s cubic-bezier(.16,.84,.44,1);
}
.nav-list .nav-trigger:hover { color: var(--navy); }
.nav-list .nav-trigger:hover::after { transform: scaleX(1); }
.nav-list .nav-trigger.active { color: var(--navy); }
.nav-trigger .chev { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); transition: transform .2s cubic-bezier(.16,.84,.44,1), color .15s ease; }
.nav-trigger:hover .chev { color: var(--navy); }
.has-mega.is-open .nav-trigger { color: var(--navy); }
.has-mega.is-open .nav-trigger::after { transform: scaleX(1); }
.has-mega.is-open .nav-trigger .chev { transform: rotate(180deg); color: var(--orange-600); }

.mega-wrap { position: absolute; top: 100%; left: 0; right: 0; z-index: 90; pointer-events: none; }
.mega {
  position: absolute; top: 0; left: 0; right: 0;
  display: none;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(10, 30, 45, 0.28);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .2s cubic-bezier(.16,.84,.44,1), transform .2s cubic-bezier(.16,.84,.44,1);
  pointer-events: auto;
}
.mega.is-active { display: block; }
.mega.is-shown { opacity: 1; transform: translateY(0); }
.mega-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 36px 24px;
  display: grid; grid-template-columns: 240px 1fr 300px; gap: 8px;
}
.mega-col-tabs { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); padding-right: 24px; }
.mega-tab {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; background: none; border: none; border-radius: 8px;
  padding: 11px 14px; font-family: var(--font-display); font-weight: 700; font-size: 0.93rem; color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.mega-tab .arrow { opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; color: var(--orange); font-weight: 400; }
.mega-tab:hover { background: var(--navy-25); color: var(--ink); }
.mega-tab.is-active { background: var(--navy-25); color: var(--navy); }
.mega-tab.is-active .arrow { opacity: 1; transform: translateX(0); }

.mega-col-content { padding: 4px 28px; position: relative; }
.mega-panel { display: none; }
.mega-panel.is-active { display: block; }
.mega-panel h4 { font-size: 1.2rem; margin-bottom: 10px; }
.mega-panel p { color: var(--muted); font-size: 0.98rem; max-width: 42ch; margin: 0; }

.mega-col-promo { border-left: 1px solid var(--line); padding-left: 24px; }
.mega-promo-card { background: var(--navy-25); border: 1px solid var(--line); border-radius: 12px; padding: 20px; height: 100%; display: flex; flex-direction: column; }
.mega-promo-kicker { font-family: var(--font-display); font-size: 0.68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-600); margin-bottom: 12px; }
.mega-promo-visual { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; height: 64px; }
.mega-promo-visual svg { width: 34px; height: 34px; }
.mp-bars { display: flex; align-items: flex-end; gap: 6px; height: 32px; width: 100%; }
.mp-bars span { flex: 1; border-radius: 2px 2px 0 0; background: var(--navy); }
.mp-bars span:nth-child(1) { height: 40%; background: var(--orange); }
.mp-bars span:nth-child(2) { height: 70%; }
.mp-bars span:nth-child(3) { height: 100%; background: #d4a93f; }
.mp-bars span:nth-child(4) { height: 55%; background: #1f7a4d; }
.mp-bars span:nth-child(5) { height: 25%; background: var(--line-2); }
.mega-promo-card p { color: var(--ink-2); font-size: 0.9rem; margin: 0 0 14px; flex: 1; }

.mega-backdrop {
  position: fixed; inset: 0; top: var(--site-header-height); z-index: 45;
  background: rgba(6, 34, 47, 0.35); opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.mega-backdrop.is-shown { opacity: 1; pointer-events: auto; }

@media (max-width: 1300px) {
  .mega-inner { grid-template-columns: 200px 1fr 260px; }
}
@media (max-width: 1200px) { .mega-wrap, .mega-backdrop { display: none; } }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block;
  width: 18px; height: 2px; background: var(--ink);
  transition: transform .15s ease, opacity .15s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1200px) {
  /* Full desktop nav (logo + 8 links + Contact sales + Book a demo) needs ~1153px of
     content width to lay out on one line without wrapping (measured via nav.scrollWidth).
     The old 920px switch-to-hamburger breakpoint left a dead zone from 920px up to
     ~1150px - common laptop/tablet widths (iPad landscape 1024, 1280x800, etc.) - where
     the desktop nav rendered but didn't fit, overflowing the whole page horizontally.
     1200px gives headroom above the measured minimum.

     Both nav-actions buttons move into the mobile menu (.nav-panel-actions) instead of
     staying in the persistent header. They used to stay - only "Contact sales" was hidden
     here - but logo + "Book a demo" + hamburger together need ~380px and the available
     content width is viewport minus 48px of container padding, which is under 380px for
     essentially every phone up to iPhone Pro Max (measured: overflows by 106px at 320px,
     still overflowing by 12px at 414px, only clears at ~428px). Also matches the PRD's own
     spec for this breakpoint ("Book a demo first action inside menu"), which this had
     deviated from. */
  .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-panel {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 20px 20px;
    max-height: calc(100vh - var(--site-header-height));
    overflow-y: auto;
  }
  .nav-panel:not(.is-open) { display: none; }
  .nav-list {
    flex-direction: column; align-items: stretch; gap: 2px;
  }
  .nav-list a { padding: 12px 10px; font-size: 1rem; }
  .nav-list a::after, .nav-list .nav-trigger::after { display: none; }
  .nav-list a.active { background: var(--navy-25); }
  .nav-list .nav-trigger { width: 100%; justify-content: space-between; padding: 12px 10px; font-size: 1rem; }
  .nav-list .nav-trigger.active { background: var(--navy-25); }
  .nav-panel-actions {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(231,135,36,0.10), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, rgba(16,72,98,0.06), transparent 50%),
    linear-gradient(180deg, #fff, var(--navy-25));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px;
  align-items: center;
  padding-top: 96px; padding-bottom: 88px;
}
.hero h1 .accent { color: var(--navy); position: relative; }
.hero h1 .accent::after {
  content: ""; display: block; width: 56px; height: 4px;
  background: var(--orange); margin-top: 6px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.page-header .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 480px) {
  .hero-cta, .page-header .actions, .cta-band .actions {
    flex-direction: column; align-items: stretch;
  }
  .hero-cta .btn, .page-header .actions .btn, .cta-band .actions .btn {
    width: 100%; justify-content: center;
  }
}
.hero-meta {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, auto); gap: 28px;
  font-size: 0.88rem; color: var(--muted);
}
.hero-meta strong { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1.5rem; font-weight: 700; }

.hero-visual {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-visual .titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--navy-25); border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--navy);
}
.hero-visual .titlebar .dots { display: inline-flex; gap: 6px; margin-right: 12px; }
.hero-visual .titlebar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.hero-visual .titlebar .crumbs { color: var(--muted); font-weight: 500; }
.hero-visual .titlebar .crumbs span { color: var(--navy); }

.dash {
  display: grid; grid-template-columns: 220px 1fr; min-height: 360px;
}
.dash-side {
  background: #fbfdfe; border-right: 1px solid var(--line);
  padding: 16px; font-size: 0.82rem;
}
.dash-side .group { margin-bottom: 18px; }
.dash-side .label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.66rem; color: var(--muted-2); margin-bottom: 8px; font-weight: 600; }
.dash-side ul { list-style: none; margin: 0; padding: 0; }
.dash-side li { padding: 6px 8px; color: var(--ink-2); border-radius: 3px; display: flex; align-items: center; gap: 8px; }
.dash-side li.is-active { background: var(--navy); color: #fff; }
.dash-side li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.dash-side li.is-active::before { background: var(--orange); }

.dash-main { padding: 18px; }
.dash-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px;
}
@media (max-width: 480px) {
  .dash-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.dash-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dash-table .th, .dash-table .tr {
  display: grid; grid-template-columns: 1.4fr 1fr 0.9fr 0.7fr; gap: 8px;
  padding: 8px 12px; font-size: 0.78rem;
}
.dash-table .th { background: var(--navy-25); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; border-bottom: 1px solid var(--line); }
.dash-table .tr { border-top: 1px solid var(--line); }
.dash-table .tr:first-child { border-top: 0; }
.dash-table .tr .name { color: var(--ink); font-weight: 600; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.pill-amber { background: rgba(231,135,36,0.12); color: var(--orange-600); }
.pill-green { background: rgba(31,122,77,0.10); color: var(--green); }
.pill-blue  { background: rgba(16,72,98,0.10); color: var(--navy); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.trust-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.trust-label {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.trust-logos .logo {
  font-family: var(--font-display); font-weight: 700; color: var(--muted-2);
  font-size: 0.92rem; letter-spacing: -0.01em;
  padding: 4px 22px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.trust-logos .logo:last-child { border-right: none; }
@media (max-width: 720px) {
  .trust-logos .logo { padding: 6px 14px; font-size: 0.85rem; }
}

/* ---------- Section heading block ---------- */
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
  margin-bottom: 56px;
}
.section-head.center { grid-template-columns: 1fr; text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 12px; }
.section-head .lede { margin: 0; }
@media (max-width: 920px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Pillar / feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.card .icon {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy-25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--navy);
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 14px; }
.card .more { font-size: 0.88rem; }

.card-flat {
  border-top: 1px solid var(--line); padding: 28px 0 24px;
}
.card-flat h3 { font-size: 1.05rem; }
.card-flat p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Split / feature row ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center;
}
.split > * { min-width: 0; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 920px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.secondary-panels {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  margin-top: 16px;
}
.secondary-panel {
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.secondary-panel h5 {
  margin: 0 0 12px;
  font-size: 0.94rem;
}
.secondary-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.secondary-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.secondary-panel li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.secondary-panel li span {
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
}
.secondary-panel li strong {
  color: var(--ink);
  font-size: 0.92rem;
}
.secondary-sheet {
  display: grid;
  gap: 8px;
}
.secondary-sheet .file {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
}
.secondary-sheet .meta {
  color: var(--muted);
  font-size: 0.85rem;
}
.secondary-sheet .sheet-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
@media (max-width: 920px) {
  .secondary-panels {
    grid-template-columns: 1fr;
  }
  
  
}

/* ---------- Pillar list ---------- */
.checklist { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 10px; }
.checklist li {
  position: relative;
  display: block;
  padding-left: 32px;
  font-size: 0.97rem;
  color: var(--ink-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  display: block;
  width: 18px; height: 18px;
  background: var(--navy);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12l5 5L20 7' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / 14px;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12l5 5L20 7' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / 14px;
}

/* ---------- Metric row ---------- */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}
.metrics .m {
  padding: 28px;
  border-right: 1px solid var(--line);
}
.metrics .m:last-child { border-right: 0; }
.metrics .m strong {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 2rem; color: var(--navy); letter-spacing: -0.02em;
  line-height: 1;
}
.metrics .m span { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 6px; }
.metrics .m .accent { color: var(--orange); }
@media (max-width: 920px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics .m:nth-child(2) { border-right: 0; }
  .metrics .m:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Quote ---------- */
.quote {
  border-left: 3px solid var(--orange);
  padding: 8px 0 8px 24px;
  font-family: var(--font-display);
  font-size: 1.4rem; line-height: 1.4;
  color: var(--ink); font-weight: 500;
  letter-spacing: -0.01em;
}
.quote-cite {
  margin-top: 16px;
  font-family: var(--font-body); font-size: 0.92rem; color: var(--muted);
}
.quote-cite strong { color: var(--ink); display: block; font-weight: 600; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 32px; flex-wrap: wrap; }
.tab {
  padding: 12px 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.94rem;
  color: var(--muted);
  background: transparent; border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--navy); }
.tab.is-active { color: var(--navy); border-bottom-color: var(--orange); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ---------- Compliance / badge grid ---------- */
.badges {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.badge {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  background: #fff;
}
.badge .label { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 0.92rem; letter-spacing: -0.005em; }
.badge .sub { font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
@media (max-width: 920px) { .badges { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .badges { grid-template-columns: repeat(2, 1fr); } }

.intg {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--ink);
  transition: border-color .15s ease;
}
.intg:hover { border-color: var(--navy); color: var(--navy); }
.intg .mk {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: var(--navy-25);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--navy);
}

/* Shared status badge */
.intg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
.intg-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.intg-badge--live {
  color: var(--green);
  background: rgba(31, 122, 77, 0.10);
}
.intg-badge--live::before {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.15);
}
.intg-badge--soon {
  color: #2563a8;
  background: rgba(74, 159, 224, 0.12);
}
.intg-badge--soon::before {
  background: #4a9fe0;
  box-shadow: 0 0 0 3px rgba(74, 159, 224, 0.18);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-800);
  color: #fff;
  padding: 72px 0;
  border-top: 1px solid var(--navy-700);
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p  { color: #cfe1ec; margin: 0 0 24px; max-width: 60ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .cta-band-grid { grid-template-columns: 1fr; } }

.cta-band-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cta-band-points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: #cfe1ec; font-size: 0.95rem; }
.cta-band-points li::before {
  content: ""; width: 18px; height: 18px; margin-top: 3px;
  background: var(--orange);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12l5 5L20 7' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / 14px;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12l5 5L20 7' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / 14px;
}

/* ---------- Technology section ---------- */
.tech-section {
  position: relative;
  overflow: hidden;
}
.tech-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 10% 80%, rgba(231,135,36,0.06), transparent 60%),
    radial-gradient(700px 400px at 90% 20%, rgba(16,72,98,0.15), transparent 50%);
  pointer-events: none;
}
.tech-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}
.tech-header h2 {
  margin-bottom: 10px;
}
.tech-header p {
  margin: 0;
  font-size: 1.05rem;
  color: #a3b8c8;
  line-height: 1.5;
}
.tech-grid {
  gap: 28px;
}
.tech-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.tech-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(231,135,36,0.4);
  transform: translateY(-3px);
}
.tech-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.tech-card-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(231,135,36,0.12);
  border: 1px solid rgba(231,135,36,0.25);
  color: var(--orange);
}
.tech-card-icon svg {
  width: 18px;
  height: 18px;
}
.tech-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0;
  color: #fff;
}
.tech-card p {
  font-size: 0.95rem;
  color: #a3b8c8;
  margin-bottom: 18px;
  line-height: 1.55;
}
.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.tech-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: #cfe1ec;
  line-height: 1.5;
}
.tech-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--orange);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12l5 5L20 7' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / 12px;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12l5 5L20 7' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #9bb1bf;
  font-size: 0.92rem;
}
.footer-top { padding-top: 64px; padding-bottom: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px;
}
.footer-grid h5 {
  font-family: var(--font-display); font-weight: 600;
  color: #fff; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: #b8cbd6; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand-logo { height: 36px; }
.footer-brand p { color: #9bb1bf; margin-top: 12px; max-width: 30ch; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px; padding-bottom: 22px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.84rem; color: #6e8696;
}
.footer-bottom a { color: #9bb1bf; }
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand p { max-width: none; }
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 360px at 95% 10%, rgba(231,135,36,0.07), transparent 60%),
    linear-gradient(180deg, #fff, var(--navy-25));
}
.page-header .crumbs {
  font-size: 0.84rem; color: var(--muted);
  margin-bottom: 14px; letter-spacing: 0.02em;
}
.page-header .crumbs a { color: var(--muted); }
.page-header .crumbs a:hover { color: var(--navy); }
.page-header h1 { font-size: clamp(2rem, 3.4vw, 3rem); }
.page-header .lede { margin-top: 8px; }

.legal-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 0.92rem;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.legal-rail {
  position: sticky;
  top: 136px;
}

.legal-doc {
  display: grid;
  gap: 32px;
}

.legal-block {
  display: grid;
  gap: 14px;
}

.legal-block p:last-child,
.legal-block ul:last-child,
.legal-block .card:last-child,
.legal-block .callout:last-child { margin-bottom: 0; }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.legal-grid-tight {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-card,
.legal-card-soft {
  border-radius: var(--radius-lg);
}

.legal-card-soft {
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--navy-25);
}

@media (max-width: 920px) {
  .legal-layout,
  .legal-grid,
  .legal-grid-tight {
    grid-template-columns: 1fr;
  }

  .legal-rail {
    position: static;
  }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--ink); display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16,72,98,0.12);
}
.form .help { font-size: 0.8rem; color: var(--muted); }

/* ---------- Site search bar (Intelligence Center / Support hub) ---------- */
.support-search {
  display: grid;
  grid-template-columns: 1fr auto;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.support-search:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16,72,98,0.12);
}
.support-search input {
  height: 100%;
  border: 0;
  padding: 0 18px;
  font: inherit;
  color: var(--ink);
  background: transparent;
  outline: none;
  min-width: 0;
}
.support-search button {
  height: 100%;
  border: 0;
  padding: 0 22px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.support-search button:hover { background: var(--navy-700); }

/* ---------- Resource cards ---------- */
.resource {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.resource:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.resource .cover {
  height: 140px;
  background:
    linear-gradient(135deg, var(--navy-800), var(--navy));
  position: relative;
  display: flex; align-items: end; justify-content: flex-start;
  padding: 16px;
}
.resource .cover.alt { background: linear-gradient(135deg, var(--navy), #2b6f8e); }
.resource .cover.amber { background: linear-gradient(135deg, var(--navy-800), var(--orange-600)); }
/* Keep category text on the card surface, clear of cover artwork. */
.resource .resource-category {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.75rem;
  line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.resource .body { padding: 18px 20px 20px; }
.resource h4 { font-size: 1.02rem; margin-bottom: 6px; color: var(--ink); }
.resource p  { color: var(--muted); font-size: 0.9rem; margin: 0; }
.resource .meta {
  margin-top: 14px; font-size: 0.78rem; color: var(--muted);
  display: flex; justify-content: space-between;
}

/* ---------- Customer / case study cards ---------- */
.case {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  padding: 28px; display: grid; gap: 16px;
}
.case .logo { font-family: var(--font-display); font-weight: 700; color: var(--navy); letter-spacing: -0.01em; font-size: 1.05rem; }
.case .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.case .stat strong { font-family: var(--font-display); display: block; color: var(--navy); font-weight: 700; font-size: 1.4rem; }
.case .stat span { font-size: 0.78rem; color: var(--muted); }

/* ---------- Misc ---------- */
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--navy-25); border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; font-size: 0.85rem; color: var(--navy); }

.callout {
  border-left: 3px solid var(--navy);
  padding: 12px 16px;
  background: var(--navy-25);
  font-size: 0.95rem;
  color: var(--ink-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout strong { color: var(--navy); font-family: var(--font-display); }

/* ---------- Faq ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; color: var(--navy); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 10px 0 0; max-width: 70ch; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.step { padding: 24px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step .num { font-family: var(--font-display); font-weight: 700; color: var(--orange); font-size: 0.85rem; letter-spacing: 0.06em; }
.step h4 { margin: 6px 0 6px; font-size: 1.02rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.92rem; }
@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Section subnav (in-page) ---------- */
.subnav {
  position: sticky; top: var(--site-header-height); z-index: 30;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.subnav ~ [id] {
  scroll-margin-top: var(--anchor-scroll-offset-with-subnav);
}
.subnav .container { display: flex; flex-wrap: wrap; gap: 0 4px; padding: 0 24px; }
.subnav a {
  white-space: nowrap;
  padding: 14px 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
/* On narrow screens, scroll the row instead of stacking into many lines. */
@media (max-width: 640px) {
  .subnav .container { flex-wrap: nowrap; overflow-x: auto; }
}
.subnav a:hover { color: var(--navy); }
.subnav a.is-active { color: var(--navy); border-bottom-color: var(--orange); }

/* ---------- Operator economics page ---------- */
.operator-economics-hero {
  background:
    radial-gradient(720px 420px at 88% 4%, rgba(231,135,36,0.12), transparent 58%),
    radial-gradient(680px 360px at 10% 0%, rgba(16,72,98,0.08), transparent 52%),
    linear-gradient(180deg, #fff, var(--navy-25));
}
.operator-economics-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 40px;
  align-items: start;
}
.economics-scorecard {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}
.scorecard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.scorecard-stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fbfdff;
}
.scorecard-stat.is-accent {
  background: linear-gradient(180deg, rgba(231,135,36,0.10), rgba(231,135,36,0.04));
  border-color: rgba(231,135,36,0.28);
}
.scorecard-stat .k,
.scorecard-stat .d {
  display: block;
}
.scorecard-stat .k {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.scorecard-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.02;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.scorecard-stat .d {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}
.scorecard-note {
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.calculator-panel {
  display: grid;
  gap: 18px;
}
.calculator-controls {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fbfdff;
}
.calculator-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.calculator-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 14px;
  align-items: center;
}
.calculator-range {
  width: 100%;
  accent-color: var(--navy);
}
.calculator-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
}
.calculator-help {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.calculator-select-row {
  margin-top: 16px;
}
.calculator-select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
}
.calculator-context-note {
  margin: -20px 0 28px;
  max-width: 70ch;
  color: var(--muted);
  font-size: 0.95rem;
}
.savings-grid {
  align-items: stretch;
}
.savings-card {
  padding-top: 24px;
}
.savings-card.calculator-feature {
  display: flex;
  flex-direction: column;
}
.calculator-feature .icon {
  margin-bottom: 16px;
}
.calculator-feature-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.calculator-feature-head h3 {
  margin-bottom: 0;
}
.calculator-feature-head strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  white-space: nowrap;
}
.calculator-feature p {
  margin-bottom: 16px;
}
.assumption-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--navy-25);
  border: 1px solid var(--line);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.calculator-feature .assumption-chip {
  margin-top: auto;
}
.operator-model {
  align-items: start;
}
.economics-ledger {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  background: var(--navy-25);
  border-bottom: 1px solid var(--line);
}
.ledger-head h3 {
  margin: 0;
  font-size: 1.02rem;
}
.ledger-head span {
  font-size: 0.82rem;
  color: var(--muted);
}
.ledger-table {
  padding: 0 22px;
}
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.ledger-row:first-child {
  border-top: 0;
}
.ledger-row span {
  color: var(--ink-2);
}
.ledger-row strong {
  font-family: var(--font-display);
  color: var(--navy);
}
.ledger-row-head span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}
.ledger-row-total {
  border-top-width: 2px;
}
.ledger-row-total span,
.ledger-row-total strong {
  color: var(--ink);
  font-weight: 700;
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.comparison-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  background: rgba(255,255,255,0.86);
}
.comparison-card.is-strong {
  background: linear-gradient(180deg, rgba(16,72,98,0.06), rgba(16,72,98,0.02));
  border-color: rgba(16,72,98,0.22);
}
.comparison-card h3 {
  margin-bottom: 10px;
}
.savings-team-grid .card p {
  margin-bottom: 0;
}
@media (max-width: 920px) {
  .operator-economics-head,
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .scorecard-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .calculator-input-row {
    grid-template-columns: 1fr;
  }
  .scorecard-grid {
    grid-template-columns: 1fr;
  }
  .calculator-feature-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .ledger-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---------- Feature directory ---------- */
.feature-directory-hero {
  background:
    radial-gradient(900px 520px at 100% -10%, rgba(231,135,36,0.14), transparent 58%),
    radial-gradient(800px 560px at 0% 0%, rgba(16,72,98,0.08), transparent 54%),
    linear-gradient(180deg, #fff, #f6fbfe);
}
.feature-directory-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 40px;
  align-items: start;
}
.feature-directory-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.feature-meta-card {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow-sm);
}
.feature-meta-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--navy);
}
.feature-meta-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.feature-directory-intro {
  padding: 24px;
  border: 1px solid rgba(16,72,98,0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16,72,98,0.04), rgba(255,255,255,0.96));
  box-shadow: var(--shadow-sm);
}
.feature-directory-intro h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.feature-intro-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.feature-intro-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink-2);
}
.feature-intro-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 7px;
  background: linear-gradient(135deg, var(--orange), var(--navy));
}
.feature-directory-subnav {
  position: sticky;
  top: 72px;
  z-index: 30;
}
.feature-directory-subnav .container {
  gap: 10px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.feature-directory-subnav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom-width: 2px;
}
.feature-directory-subnav a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--navy-25);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
}
.feature-category-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-index-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.feature-index-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16,72,98,0.28);
  box-shadow: var(--shadow);
}
.feature-index-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
}
.feature-index-card strong {
  display: block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}
.feature-index-card p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
}
.feature-index-count {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #f3f7fa;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}
.feature-category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.feature-category-stat {
  flex: 0 0 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  text-align: center;
}
.feature-category-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--navy);
}
.feature-category-stat span {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}
.feature-accordion {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.feature-accordion + .feature-accordion {
  margin-top: 18px;
}
.feature-accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(16,72,98,0.04), rgba(255,255,255,0.9));
}
.feature-accordion-summary::-webkit-details-marker {
  display: none;
}
.feature-accordion-summary::marker {
  display: none;
}
.feature-accordion[open] .feature-accordion-summary {
  border-bottom: 1px solid var(--line);
}
.feature-accordion .feature-category-head {
  margin-bottom: 0;
  position: relative;
  padding-right: 42px;
}
.feature-accordion .feature-category-head::after {
  content: "+";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
}
.feature-accordion[open] .feature-category-head::after {
  content: "–";
}
.feature-comparison-wrap {
  padding: 0 28px 28px;
}
.feature-comparison-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(150px, 0.85fr));
}
.feature-comparison-head {
  position: sticky;
  top: 128px;
  z-index: 5;
  background: #f8fbfd;
  border-bottom: 1px solid var(--line);
}
.feature-comparison-head div {
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.feature-comparison-body {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}
.feature-comparison-row {
  background: #fff;
  border-top: 1px solid var(--line);
}
.feature-comparison-row:first-child {
  border-top: 0;
}
.feature-comparison-row > div {
  min-width: 0;
  padding: 16px;
  border-left: 1px solid var(--line);
}
.feature-comparison-row > div:first-child {
  border-left: 0;
}
.feature-capability-cell {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.feature-capability-cell strong {
  font-size: 0.97rem;
  color: var(--ink);
}
.feature-compare-cell {
  display: flex;
  align-items: center;
}
.feature-item-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #edf4f8;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
}
.compare-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3f7;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
}
.compare-pill.is-strong {
  background: var(--navy);
  color: #fff;
}
.compare-pill.is-muted {
  background: rgba(231,135,36,0.14);
  color: var(--orange-600);
}
.feature-mobile-label {
  display: none;
}

@media (max-width: 920px) {
  .feature-directory-hero-grid,
  .feature-category-head,
  .feature-category-index {
    grid-template-columns: 1fr;
  }
  .feature-directory-hero-grid,
  .feature-category-head {
    display: grid;
  }
  .feature-directory-meta {
    grid-template-columns: 1fr;
  }
  .feature-category-stat {
    flex-basis: auto;
    text-align: left;
  }
  .feature-accordion-summary,
  .feature-comparison-wrap {
    padding: 20px;
  }
  .feature-comparison-head {
    display: none;
  }
  .feature-comparison-body {
    border: 0;
  }
  .feature-comparison-grid {
    grid-template-columns: 1fr;
  }
  .feature-comparison-row {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 14px;
  }
  .feature-comparison-row > div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 14px 16px;
  }
  .feature-comparison-row > div:first-child {
    border-top: 0;
  }
  .feature-compare-cell {
    justify-content: space-between;
    gap: 12px;
  }
  .feature-mobile-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

@media (max-width: 640px) {
  .feature-directory-subnav {
    top: 64px;
  }
  .feature-index-card,
  .feature-directory-intro,
  .feature-category-stat {
    padding: 18px;
  }
  .feature-accordion .feature-category-head {
    padding-right: 0;
  }
  .feature-accordion .feature-category-head::after {
    position: static;
    margin-bottom: 16px;
  }
  .feature-capability-cell {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ---------- Hero: product UI mockup (matches actual ReversePilot app) ---------- */
.hero-visual { padding: 0; }
.app {
  display: grid;
  grid-template-columns: 44px 1fr;
  background: #f4f6f9;
  font-size: 0.78rem;
  color: var(--ink);
  min-height: 460px;
}
.app-side {
  background: var(--navy-800);
  padding: 12px 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.app-side-logo {
  width: 24px; height: 24px;
  background: #fff; border-radius: 4px;
  margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
}
.app-side-logo svg { width: 14px; height: 14px; }
.app-side-icon {
  width: 28px; height: 28px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #6e8696;
}
.app-side-icon svg { width: 14px; height: 14px; }
.app-side-icon.is-active { background: var(--orange); color: #fff; }

.app-main { padding: 12px 12px 14px; }

.app-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.app-topbar h5 {
  font-family: var(--font-display);
  font-weight: 700; color: var(--ink);
  font-size: 0.95rem;
  margin: 0; letter-spacing: -0.01em;
}
.app-search {
  background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 5px 12px;
  font-size: 0.7rem; color: var(--muted-2);
  min-width: 100px; text-align: left;
}

.app-banner {
  background: var(--navy-800);
  color: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  display: grid; grid-template-columns: 30px 1fr auto; gap: 10px;
  align-items: center;
}
.app-banner .rocket {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.10);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.app-banner .app-tag {
  background: rgba(255,255,255,0.10);
  border-radius: 999px; padding: 2px 7px;
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfe1ec;
  display: inline-block;
  margin-bottom: 3px;
}
.app-banner h6 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.78rem; margin: 0 0 1px;
  color: #fff; letter-spacing: -0.005em;
}
.app-banner p { color: #b8cbd6; margin: 0; font-size: 0.62rem; line-height: 1.35; }
.app-banner .app-cta {
  background: #fff; color: var(--ink);
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.62rem;
  padding: 6px 9px; border-radius: 4px;
  white-space: nowrap;
}

.app-tips { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.app-tip {
  background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 8px;
}
.app-tip .ico {
  width: 18px; height: 18px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.app-tip .ico.amber { background: #fef3c7; color: #b45309; }
.app-tip .ico.green { background: #dcfce7; color: #15803d; }
.app-tip .ico.red   { background: #fee2e2; color: #b91c1c; }
.app-tip .kind {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.55rem; letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
}
.app-tip .title {
  font-family: var(--font-display); font-weight: 700;
  color: var(--ink); font-size: 0.66rem;
  margin-top: 2px;
  display: block;
  letter-spacing: -0.005em;
}

.app-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.app-rate {
  background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 9px 10px;
  position: relative;
}
.app-rate .top {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.6rem; color: var(--muted);
  font-family: var(--font-display); font-weight: 500;
}
.app-rate .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--navy); flex-shrink: 0;
  border: 2px solid #cfe1ec;
}
.app-rate .dot.amber { background: var(--orange); border-color: #f6dcb9; }
.app-rate .v {
  font-family: var(--font-display); font-weight: 700;
  color: var(--ink); font-size: 1.05rem;
  margin-top: 3px; letter-spacing: -0.015em;
}
.app-rate .lk {
  font-family: var(--font-display); font-weight: 600;
  color: var(--navy); font-size: 0.6rem;
  margin-top: 1px;
}
.app-rate svg.spark {
  position: absolute; right: 8px; top: 8px;
  width: 60px; height: 22px;
}

.app-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.app-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 10px;
}
.app-card h6 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.7rem; color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.app-bars {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 3px; align-items: end; height: 64px;
}
.app-bar { border-radius: 2px 2px 0 0; }
.app-bar.b1 { height: 22%; background: var(--orange); }
.app-bar.b2 { height: 56%; background: var(--navy); }
.app-bar.b3 { height: 95%; background: #d4a93f; }
.app-bar.b4 { height: 48%; background: #1f7a4d; }
.app-bar.b5 { height: 12%; background: var(--line-2); }
.app-bar.b6 { height: 8%;  background: var(--line-2); }
.app-bar.b7 { height: 6%;  background: var(--line-2); }
.app-bar.b8 { height: 5%;  background: var(--line-2); }
.app-bars-axis {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  margin-top: 4px;
  font-size: 0.55rem; color: var(--muted-2);
  text-align: center;
}

.app-pipe { font-size: 0.62rem; }
.app-pipe .num {
  font-family: var(--font-display); font-weight: 700;
  color: var(--ink); font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.app-pipe .num .delta { color: var(--red); font-size: 0.55rem; font-weight: 600; margin-left: 4px; }
.app-pipe .seg {
  display: flex; height: 4px; gap: 1px; margin: 5px 0 7px;
  border-radius: 999px; overflow: hidden;
  background: #e6ebf2;
}
.app-pipe .seg i { display: block; }
.app-pipe .seg .s1 { background: var(--orange); flex: 0 0 14%; }
.app-pipe .seg .s2 { background: #b3261e;     flex: 0 0 6%; }
.app-pipe .seg .s3 { background: var(--orange); flex: 1; }
.app-pipe .row {
  display: flex; justify-content: space-between;
  padding: 3px 0;
  border-top: 1px solid var(--line);
  font-size: 0.62rem;
}
.app-pipe .row:first-of-type { border-top: 0; padding-top: 0; }
.app-pipe .row span:first-child { color: var(--ink); font-weight: 500; }
.app-pipe .row span:last-child  { color: var(--muted); font-family: var(--font-display); font-weight: 600; }

@media (max-width: 920px) {
  .app { font-size: 0.7rem; min-height: 0; }
  .app-tips { grid-template-columns: 1fr 1fr 1fr; }
}

/* ============================================================
   Features page
   ============================================================ */

.feature-index-section { padding: 128px 0 96px; }
.feature-index-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.feature-index-head h2 {
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.feature-index-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 46ch;
}

.feature-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 24px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.feature-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  color: var(--ink);
}
.feature-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.06rem;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}
.feature-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--navy);
}
.feature-card:hover .more { color: var(--orange-600); }
.feature-card:hover .more .arrow { transform: translateX(2px); }
.feature-card .more .arrow { transition: transform .15s ease; }

@media (max-width: 920px) {
  .feature-index { grid-template-columns: repeat(2, 1fr); }
  .feature-index-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 600px) {
  .feature-index { grid-template-columns: 1fr; }
}

/* Capability list — replaces dense bullet checklists in features */
.cap-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 28px;
  display: grid;
  gap: 22px;
}
.cap-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}
.cap-list .cap-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--navy-25);
  border: 1px solid var(--line);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  margin-top: 2px;
}
.cap-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.cap-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}
.cap-list.is-horizontal {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 28px 0 0;
}
@media (max-width: 920px) {
  .cap-list.is-horizontal { grid-template-columns: 1fr; gap: 22px; }
}

/* Showcase layout — full-width feature presentation */
.feature-showcase { display: grid; gap: 36px; }
.feature-showcase-head {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: end;
}
.feature-showcase-head .lede { margin: 0; }
.feature-showcase-head .actions { margin-top: 20px; }
@media (max-width: 920px) {
  .feature-showcase-head { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== Homepage: ICP selector + lifecycle/feature tab widgets (radio-driven, no-JS baseline) ===== */
.icp-input, .lifecycle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.icp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.icp-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.icp-card:hover { border-color: var(--navy); color: var(--navy); }

.icp-panel { display: none; }
.icp-panel p { font-size: 1.05rem; color: var(--ink-2); }

.lifecycle-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.lifecycle-tab {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.lifecycle-tab:hover { color: var(--navy); }

.lifecycle-panel { display: none; color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; }

/* ICP selector: active card + panel visibility per role */
#icp-executive:checked ~ .icp-grid label[for="icp-executive"] { border-color: var(--navy); background: var(--navy-25); color: var(--navy); }
#icp-executive:focus-visible ~ .icp-grid label[for="icp-executive"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#icp-executive:checked ~ .icp-panels .icp-panel[data-panel="icp-executive"] { display: block; }

#icp-operations:checked ~ .icp-grid label[for="icp-operations"] { border-color: var(--navy); background: var(--navy-25); color: var(--navy); }
#icp-operations:focus-visible ~ .icp-grid label[for="icp-operations"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#icp-operations:checked ~ .icp-panels .icp-panel[data-panel="icp-operations"] { display: block; }

#icp-compliance:checked ~ .icp-grid label[for="icp-compliance"] { border-color: var(--navy); background: var(--navy-25); color: var(--navy); }
#icp-compliance:focus-visible ~ .icp-grid label[for="icp-compliance"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#icp-compliance:checked ~ .icp-panels .icp-panel[data-panel="icp-compliance"] { display: block; }

#icp-technology:checked ~ .icp-grid label[for="icp-technology"] { border-color: var(--navy); background: var(--navy-25); color: var(--navy); }
#icp-technology:focus-visible ~ .icp-grid label[for="icp-technology"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#icp-technology:checked ~ .icp-panels .icp-panel[data-panel="icp-technology"] { display: block; }

#icp-secondary:checked ~ .icp-grid label[for="icp-secondary"] { border-color: var(--navy); background: var(--navy-25); color: var(--navy); }
#icp-secondary:focus-visible ~ .icp-grid label[for="icp-secondary"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#icp-secondary:checked ~ .icp-panels .icp-panel[data-panel="icp-secondary"] { display: block; }

#icp-wholesale:checked ~ .icp-grid label[for="icp-wholesale"] { border-color: var(--navy); background: var(--navy-25); color: var(--navy); }
#icp-wholesale:focus-visible ~ .icp-grid label[for="icp-wholesale"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#icp-wholesale:checked ~ .icp-panels .icp-panel[data-panel="icp-wholesale"] { display: block; }

/* Lifecycle stage + feature-role tabs: active tab + panel visibility */
#stage-origination:checked ~ .lifecycle-nav label[for="stage-origination"] { color: var(--navy); border-bottom-color: var(--orange); }
#stage-origination:focus-visible ~ .lifecycle-nav label[for="stage-origination"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#stage-origination:checked ~ .lifecycle-panels .lifecycle-panel[data-panel="stage-origination"] { display: block; }

#stage-processing:checked ~ .lifecycle-nav label[for="stage-processing"] { color: var(--navy); border-bottom-color: var(--orange); }
#stage-processing:focus-visible ~ .lifecycle-nav label[for="stage-processing"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#stage-processing:checked ~ .lifecycle-panels .lifecycle-panel[data-panel="stage-processing"] { display: block; }

#stage-underwriting:checked ~ .lifecycle-nav label[for="stage-underwriting"] { color: var(--navy); border-bottom-color: var(--orange); }
#stage-underwriting:focus-visible ~ .lifecycle-nav label[for="stage-underwriting"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#stage-underwriting:checked ~ .lifecycle-panels .lifecycle-panel[data-panel="stage-underwriting"] { display: block; }

#stage-closing:checked ~ .lifecycle-nav label[for="stage-closing"] { color: var(--navy); border-bottom-color: var(--orange); }
#stage-closing:focus-visible ~ .lifecycle-nav label[for="stage-closing"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#stage-closing:checked ~ .lifecycle-panels .lifecycle-panel[data-panel="stage-closing"] { display: block; }

#stage-postclosing:checked ~ .lifecycle-nav label[for="stage-postclosing"] { color: var(--navy); border-bottom-color: var(--orange); }
#stage-postclosing:focus-visible ~ .lifecycle-nav label[for="stage-postclosing"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#stage-postclosing:checked ~ .lifecycle-panels .lifecycle-panel[data-panel="stage-postclosing"] { display: block; }

#stage-broker:checked ~ .lifecycle-nav label[for="stage-broker"] { color: var(--navy); border-bottom-color: var(--orange); }
#stage-broker:focus-visible ~ .lifecycle-nav label[for="stage-broker"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#stage-broker:checked ~ .lifecycle-panels .lifecycle-panel[data-panel="stage-broker"] { display: block; }

#stage-reporting:checked ~ .lifecycle-nav label[for="stage-reporting"] { color: var(--navy); border-bottom-color: var(--orange); }
#stage-reporting:focus-visible ~ .lifecycle-nav label[for="stage-reporting"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#stage-reporting:checked ~ .lifecycle-panels .lifecycle-panel[data-panel="stage-reporting"] { display: block; }

#stage-integrations:checked ~ .lifecycle-nav label[for="stage-integrations"] { color: var(--navy); border-bottom-color: var(--orange); }
#stage-integrations:focus-visible ~ .lifecycle-nav label[for="stage-integrations"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#stage-integrations:checked ~ .lifecycle-panels .lifecycle-panel[data-panel="stage-integrations"] { display: block; }

#feat-executive:checked ~ .lifecycle-nav label[for="feat-executive"] { color: var(--navy); border-bottom-color: var(--orange); }
#feat-executive:focus-visible ~ .lifecycle-nav label[for="feat-executive"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#feat-executive:checked ~ .lifecycle-panels .lifecycle-panel[data-panel="feat-executive"] { display: block; }

#feat-operations:checked ~ .lifecycle-nav label[for="feat-operations"] { color: var(--navy); border-bottom-color: var(--orange); }
#feat-operations:focus-visible ~ .lifecycle-nav label[for="feat-operations"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#feat-operations:checked ~ .lifecycle-panels .lifecycle-panel[data-panel="feat-operations"] { display: block; }

#feat-compliance:checked ~ .lifecycle-nav label[for="feat-compliance"] { color: var(--navy); border-bottom-color: var(--orange); }
#feat-compliance:focus-visible ~ .lifecycle-nav label[for="feat-compliance"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#feat-compliance:checked ~ .lifecycle-panels .lifecycle-panel[data-panel="feat-compliance"] { display: block; }

#feat-technology:checked ~ .lifecycle-nav label[for="feat-technology"] { color: var(--navy); border-bottom-color: var(--orange); }
#feat-technology:focus-visible ~ .lifecycle-nav label[for="feat-technology"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#feat-technology:checked ~ .lifecycle-panels .lifecycle-panel[data-panel="feat-technology"] { display: block; }

#feat-wholesale:checked ~ .lifecycle-nav label[for="feat-wholesale"] { color: var(--navy); border-bottom-color: var(--orange); }
#feat-wholesale:focus-visible ~ .lifecycle-nav label[for="feat-wholesale"] { outline: 2px solid var(--navy); outline-offset: 2px; }
#feat-wholesale:checked ~ .lifecycle-panels .lifecycle-panel[data-panel="feat-wholesale"] { display: block; }

@media (max-width: 920px) {
  .icp-grid { grid-template-columns: repeat(3, 1fr); }
  .lifecycle-nav { overflow-x: auto; flex-wrap: nowrap; }
}
@media (max-width: 560px) {
  .icp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Flagship theme (2026-09) — brings every page in line with the
   redesigned homepage: dark header, dark left-aligned page heroes,
   orange kicker labels, heavier display headings, orange closing
   CTA band. Appended as one layer so it reads as a unit in review.
   ============================================================ */

/* ---------- Type ---------- */
h1, h2 { font-weight: 800; letter-spacing: -0.03em; }

/* ---------- Header: dark on every page (base.html renders both logo variants) ---------- */
.site-header {
  background: rgba(6, 34, 47, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.brand-logo-dark { display: none; }
.brand-logo-light { display: block; }
@media (min-width: 1201px) {
  .nav-list a, .nav-list .nav-trigger { color: #ffffff; }
  .nav-list a:hover, .nav-list a.active,
  .nav-list .nav-trigger:hover, .nav-list .nav-trigger.active { color: #ffffff; }
  .nav-list .has-mega.is-open .nav-trigger { color: #ffffff; }
  .nav-trigger .chev { color: rgba(207, 225, 236, 0.7); }
  .nav-trigger:hover .chev { color: #ffffff; }
  .nav-actions .btn-outline { color: #ffffff; border-color: rgba(255, 255, 255, 0.32); }
  .nav-actions .btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); color: #ffffff; }
  .nav-actions .btn-primary { background: var(--orange); }
  .nav-actions .btn-primary:hover { background: var(--orange-600); }
}
@media (max-width: 1200px) {
  /* the mobile menu panel stays white; only the hamburger changes */
  .nav-toggle { background: transparent; border-color: rgba(255, 255, 255, 0.28); }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { background: #ffffff; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
}

/* ---------- Kicker labels (the pill eyebrow becomes the homepage's orange kicker) ---------- */
.eyebrow, .eyebrow.on-dark {
  padding: 0; border: 0; background: none; border-radius: 0;
  color: var(--orange);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  margin-bottom: 14px;
}

/* ---------- Dark page heroes ---------- */
body .page-header, body .careers-hero, body .apply-header, body .cat-header, body .ticket-header, body .kb-hero, body .support-hero {
  position: relative; overflow: hidden;
  color: #ffffff;
  border-bottom: 0;
  background:
    radial-gradient(760px 340px at 92% 104%, rgba(231, 135, 36, 0.24), transparent 65%),
    radial-gradient(700px 500px at 5% 20%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 70%, var(--navy-700) 100%);
}
body .page-header { padding: 88px 0 72px; }
body .page-header h1, body .careers-hero h1, body .apply-header h1, body .cat-header h1, body .ticket-header h1, body .kb-hero h1, body .support-hero h1 {
  color: #ffffff; font-size: clamp(2.4rem, 4vw, 3.6rem); max-width: 18ch; text-wrap: balance;
}
body .page-header .lede, body .careers-hero .lede, body .apply-header .lede, body .cat-header .lede, body .ticket-header .lede, body .kb-hero .lede, body .support-hero .lede { color: #cfe1ec; }
body .page-header p, body .careers-hero p, body .apply-header p, body .cat-header p, body .ticket-header p, body .kb-hero p, body .support-hero p { color: #cfe1ec; }
body .page-header .crumbs, body .careers-hero .crumbs, body .apply-header .crumbs, body .cat-header .crumbs, body .ticket-header .crumbs {
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px;
}
body .page-header .crumbs a, body .cat-header .crumbs a, body .apply-header .crumbs a { color: var(--orange); }
body .page-header .crumbs a:hover, body .cat-header .crumbs a:hover, body .apply-header .crumbs a:hover { color: #ffffff; }
body .page-header .btn-outline, body .careers-hero .btn-outline, body .apply-header .btn-outline, body .cat-header .btn-outline, body .ticket-header .btn-outline, body .kb-hero .btn-outline, body .support-hero .btn-outline {
  color: #ffffff; border-color: rgba(255, 255, 255, 0.32); background: rgba(6, 34, 47, 0.35);
}
body .page-header .btn-outline:hover, body .careers-hero .btn-outline:hover, body .apply-header .btn-outline:hover, body .cat-header .btn-outline:hover, body .ticket-header .btn-outline:hover, body .kb-hero .btn-outline:hover, body .support-hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); color: #ffffff;
}
body .page-header .btn-primary, body .careers-hero .btn-primary, body .apply-header .btn-primary, body .kb-hero .btn-primary, body .support-hero .btn-primary { background: var(--orange); }
body .page-header .btn-primary:hover, body .careers-hero .btn-primary:hover, body .apply-header .btn-primary:hover, body .kb-hero .btn-primary:hover, body .support-hero .btn-primary:hover { background: var(--orange-600); }
body .page-header .link-arrow, body .careers-hero .link-arrow, body .support-hero .link-arrow { color: #ffffff; }

body .careers-hero .stats { border-top-color: rgba(255, 255, 255, 0.14); }
body .careers-hero .stat strong { color: #ffffff; }
body .careers-hero .stat span { color: #a9c1cf; }
body .cat-header .cat-stats { color: #a9c1cf; }
body .cat-header .cat-stats strong { color: #ffffff; }
body .support-hero .support-stats .item { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
body .support-hero .support-stats .k { color: #a9c1cf; }
body .support-hero .support-stats .v { color: #ffffff; }

/* ---------- Soft blue mist closing CTA band ---------- */
.cta-band { background: #EAF2F6; color: var(--navy); border-top: 0; padding: 88px 0; }
.cta-band h2 { color: var(--navy); }
.cta-band p { color: #3E5868; }
.cta-band .eyebrow, .cta-band .eyebrow.on-dark { color: var(--navy); }
.cta-band .btn-accent, .cta-band .btn-primary { background: var(--navy); color: #ffffff; }
.cta-band .btn-accent:hover, .cta-band .btn-primary:hover { background: var(--navy-700); color: #ffffff; }
.cta-band .btn-ghost-light, .cta-band .btn-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.cta-band .btn-ghost-light:hover, .cta-band .btn-outline:hover { background: var(--navy-50); border-color: var(--navy-700); color: var(--navy-700); }
.cta-band-points li { color: #3E5868; }
.cta-band-points li::before { background: var(--navy); }
.cta-band .link-arrow { color: var(--navy); }
.cta-band .btn:focus-visible, .cta-band .link-arrow:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* Uploaded Intelligence Center images retain dimensions to avoid layout shift. */
.resource .cover { position: relative; overflow: hidden; }
.resource .cover .resource-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.resource .body h3 { font-size: 1.12rem; margin: 0 0 8px; }
.art-featured-image { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 24px 0; }
.art-body img { max-width: 100%; height: auto; }

/* Knowledge base search box on category and article pages (submits to /support/knowledge-base/?q=) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.kb-jump { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.kb-jump input {
  flex: 1; min-width: 0; height: 42px; padding: 0 12px 0 38px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  font: inherit; font-size: 0.95rem; color: var(--ink); background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
  background-repeat: no-repeat; background-position: 12px center; background-size: 16px;
}
.kb-jump input:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--navy); }
.kb-jump .btn { height: 42px; flex-shrink: 0; }
