/* ==========================================================================
   group.signalnav.io
   Palette inherited from static/css/signalnav.css (navy / slate / teal).
   No framework, no jQuery — one stylesheet, custom properties throughout.
   ========================================================================== */

:root {
  --navy: #0b1f33;
  --navy-700: #123049;
  --slate: #1f3a5f;
  --teal: #2ec4c6;
  --teal-deep: #1b9a9c;

  --ink: #10263c;
  --ink-2: #35506e;
  --muted: #64798f;
  --line: #e2e7ee;
  --line-strong: #cdd6e1;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #eef2f7;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, .06), 0 4px 12px rgba(11, 31, 51, .05);
  --shadow-md: 0 2px 6px rgba(11, 31, 51, .07), 0 16px 40px rgba(11, 31, 51, .09);

  --container: 1120px;
  --gutter: 24px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + .28vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.27rem + .5vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.55rem + .95vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.7rem + 1.9vw, 3.5rem);
}

/* --- Reset ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  font-weight: 620;
}

h1 { font-size: var(--step-4); letter-spacing: -.032em; }
h2 { font-size: var(--step-3); letter-spacing: -.028em; }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--slate); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --- Layout ------------------------------------------------------------ */

.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}
.container--narrow { width: min(760px, 100% - (var(--gutter) * 2)); }

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--tint { background: var(--surface-2); border-block: 1px solid var(--line); }
.section--dark { background: var(--navy); color: rgba(255, 255, 255, .82); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--teal); }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}
.section--dark .lede { color: rgba(255, 255, 255, .78); }

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

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* --- Header ------------------------------------------------------------ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -.03em;
}
.brand:hover { color: var(--navy); }
/* Horizontal lockup (navy wordmark) — for the light header. */
.brand__logo { height: 30px; width: auto; flex: none; }
.brand__sub {
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  font-size: .8125rem;
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--line-strong);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.nav__link:hover { background: var(--surface-3); color: var(--navy); }
.nav__link[aria-current="page"] { color: var(--navy); font-weight: 620; }

.nav__cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav[data-open="true"] { display: flex; }
  .nav__link { padding: 12px; font-size: 1rem; }
  .nav__cta { margin: 8px 0 0; text-align: center; }
}

/* --- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: .9375rem;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
    transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn--primary:hover { background: #178184; border-color: #178184; color: #fff; }

.btn--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.btn--ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--muted); color: var(--navy); }

.btn--on-dark {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
.btn--on-dark:hover { background: rgba(255, 255, 255, .13); color: #fff; }

.btn--lg { padding: 15px 26px; font-size: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 620;
  font-size: .9375rem;
  text-decoration: none;
  color: var(--teal-deep);
}
.arrow-link:hover { gap: 11px; color: var(--slate); }
.arrow-link svg { transition: transform .18s ease; }

/* --- Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--navy) 0%, #0d2842 55%, var(--slate) 130%);
  color: rgba(255, 255, 255, .82);
  padding: clamp(64px, 9vw, 116px) 0 clamp(56px, 8vw, 100px);
}

/* Faint navigational grid — the "signal" motif, kept subordinate to the copy. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 196, 198, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 196, 198, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 72% 30%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 72% 30%, #000 10%, transparent 72%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 20px; }

.hero__lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: rgba(255, 255, 255, .8);
  max-width: 54ch;
  margin-bottom: 28px;
}

.hero__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(46, 196, 198, .3);
  background: rgba(46, 196, 198, .1);
  color: rgba(255, 255, 255, .84);
  font-size: .8125rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 22ch; }
}

/* Abstract dashboard figure in the hero */
.hero__art {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
  padding: 14px;
  backdrop-filter: blur(2px);
}
@media (max-width: 900px) {
  .hero__art { display: none; }
}

/* --- Cards ------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .9375rem; margin: 0; }

a.card { text-decoration: none; display: block; color: inherit; }
a.card:hover,
.card--interactive:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(46, 196, 198, .12);
  color: var(--teal-deep);
  margin-bottom: 16px;
}
.card__icon svg { width: 21px; height: 21px; }

/* --- Problem list ------------------------------------------------------ */

.problem-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 18px 20px;
  background: var(--surface);
  font-size: .9375rem;
  color: var(--ink-2);
}
.problem-list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: #c2705f; }
@media (max-width: 700px) { .problem-list { grid-template-columns: minmax(0, 1fr); } }

/* --- Checklists -------------------------------------------------------- */

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: .9375rem;
  color: var(--ink-2);
}
.checklist svg { flex: none; width: 17px; height: 17px; margin-top: 4px; color: var(--teal-deep); }
.checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .checklist--2 { grid-template-columns: minmax(0, 1fr); } }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tag-cloud li {
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-2);
}

/* --- Feature case-study block ------------------------------------------ */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(48px, 6vw, 80px); }
.feature--flip .feature__media { order: -1; }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature__media { order: 0; }
}

.feature__media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface-3));
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.kicker {
  font-size: .8125rem;
  font-weight: 620;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* --- Process steps ----------------------------------------------------- */

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li {
  position: relative;
  margin: 0;
  padding: 0 0 40px 72px;
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 23.5px;
  top: 56px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: 6px; padding-top: 11px; }
.steps p { color: var(--muted); margin: 0; }

/* --- Stats / dark CTA -------------------------------------------------- */

.cta-band {
  background: linear-gradient(150deg, var(--navy), var(--slate));
  color: rgba(255, 255, 255, .82);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { max-width: 56ch; margin: 0 auto 26px; color: rgba(255, 255, 255, .78); }

/* --- Forms ------------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .8125rem; color: var(--muted); }
.req { color: #c0392b; margin-left: 2px; }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: .9375rem;
  width: 100%;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 148px; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364798f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 196, 198, .18);
}
.field input[type="file"] { padding: 9px 12px; background: var(--surface-2); }

.field--error input,
.field--error select,
.field--error textarea { border-color: #c0392b; }
.field-error { font-size: .8125rem; color: #c0392b; font-weight: 500; }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid;
  font-size: .9375rem;
  margin-bottom: 26px;
}
.alert--error { background: #fdf1ef; border-color: #f0c4bc; color: #8f2c1c; }
.alert--info { background: #eefaf9; border-color: #b9e7e6; color: #14666a; }

.form-aside {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.form-aside h3 { font-size: 1rem; margin-bottom: 10px; }
.form-aside p, .form-aside li { font-size: .9375rem; color: var(--muted); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

/* --- Footer ------------------------------------------------------------ */

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .68);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  font-size: .9375rem;
}
.footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 40px;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer h4 {
  color: #fff;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 620;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }

.footer__brand { display: inline-block; }
.footer__brand:hover { text-decoration: none; }
.footer__logo { height: 58px; width: auto; }
.footer__blurb { margin-top: 14px; max-width: 34ch; color: rgba(255, 255, 255, .6); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: .875rem;
  color: rgba(255, 255, 255, .5);
}

/* --- Prose (legal pages) ------------------------------------------------ */

.prose h2 { font-size: var(--step-2); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose li { color: var(--ink-2); }

/* --- Utilities ----------------------------------------------------------
   Small, named helpers so templates carry no inline style attributes — the
   Content-Security-Policy on this vhost sets style-src 'self' with no
   'unsafe-inline', which would silently drop them.
   ------------------------------------------------------------------------ */

.u-mt-sm { margin-top: 16px; }
.u-mt-md { margin-top: 24px; }
.u-mt-lg { margin-top: 32px; }
.u-mt-xl { margin-top: 48px; }
.u-mb-md { margin-bottom: 18px; }
.u-mb-lg { margin-bottom: 24px; }

.u-center { justify-content: center; }
.u-text-center { text-align: center; }

.u-measure-xs { max-width: 14ch; }
.u-measure-sm { max-width: 16ch; }
.u-measure-md { max-width: 18ch; }
.u-measure-lg { max-width: 20ch; }
.u-measure-xl { max-width: 22ch; }

.u-my-md { margin: 20px 0 24px; }

.u-h2-sm { font-size: var(--step-2); }
.u-body { font-size: var(--step-0); }
.u-sm { font-size: .9375rem; }
.u-muted { color: var(--muted); }
.u-note { color: var(--muted); font-size: .875rem; }
.u-round { border-radius: 10px; }
.u-on-dark { color: #fff; }

.subhead { font-size: 1rem; margin: 26px 0 12px; }
.anchor-offset { scroll-margin-top: 96px; }
.section--flush-bottom { padding-bottom: clamp(56px, 7vw, 96px); }
.hero--short { padding-bottom: clamp(40px, 5vw, 64px); }
.checklist--auto {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

/* --- Reveal on scroll --------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* --- Print -------------------------------------------------------------- */

@media print {
  .masthead, .footer, .cta-band, .nav-toggle { display: none !important; }
  body { color: #000; }
  .hero { background: none; color: #000; padding: 0; }
  .hero h1, .hero__lede { color: #000; }
}
