/* MemberCanary — Retention Forecast Matrix
   Cobalt forecast fields, ice-white instrument surfaces, coral risk,
   viridian growth, and canary yellow reserved for the primary action. */

@font-face {
  font-family: "Albert Sans";
  src: url("/assets/fonts/albert-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Familjen Grotesk";
  src: url("/assets/fonts/familjen-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: "Fragment Mono";
  src: url("/assets/fonts/fragment-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --blue: #0647c8;
  --blue-deep: #063691;
  --blue-dark: #071d4d;
  --blue-light: #dbe8ff;
  --yellow: #ffdc19;
  --yellow-soft: #fff4a3;
  --paper: #f3f6fb;
  --surface: #ffffff;
  --surface-sunk: #e9eef7;
  --ink: #09152f;
  --ink-soft: #3d4961;
  --ink-faint: #66718a;
  --rule: #cdd6e5;
  --rule-strong: #aebbd0;
  --risk: #c84321;
  --risk-soft: #fff0eb;
  --watch: #a85f00;
  --rise: #087f5b;
  --rise-soft: #e8f5ef;
  --display: "Familjen Grotesk", "Arial Narrow", ui-sans-serif, sans-serif;
  --body: "Albert Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fragment Mono", "Cascadia Mono", ui-monospace, monospace;
  --shadow: 0 24px 64px -34px rgba(3, 21, 63, .58), 0 6px 20px -12px rgba(3, 21, 63, .22);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--blue) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "kern" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar { width: 12px; }
body::-webkit-scrollbar-track { background: var(--paper); }
body::-webkit-scrollbar-thumb { background: var(--blue); border: 3px solid var(--paper); }

::selection { background: var(--yellow); color: var(--ink); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-170%);
}

.skip-link:focus { transform: translateY(0); }

.wrap,
.frame {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

main.wrap.home {
  width: 100%;
  max-width: none;
  margin: 0;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--display);
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.8rem, 7.4vw, 6rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .9;
}

h2 {
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  font-weight: 650;
  letter-spacing: -.032em;
  line-height: .98;
}

h3 {
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.2;
}

p { max-width: 70ch; }

/* Navigation */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: var(--blue);
  border-bottom: 1px solid rgba(255, 255, 255, .26);
}

.nav-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--display);
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: -.025em;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 33px;
  color: var(--yellow);
  flex: none;
  overflow: visible;
}

.brand-shape { fill: currentColor; }

.brand-canary { color: var(--yellow); }

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: .86rem;
  font-weight: 550;
}

.nav-links a {
  color: rgba(255, 255, 255, .84);
  text-decoration: none;
}

.nav-links a:hover { color: #fff; }

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 11px 18px;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-family: var(--body);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s cubic-bezier(.2, .9, .25, 1), box-shadow .18s ease, background-color .18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -14px rgba(4, 19, 49, .8);
}

.btn:active { transform: translateY(0); }

.arrow-icon {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.btn-nav {
  color: var(--yellow);
  background: transparent;
  border-color: rgba(255, 220, 25, .7);
}

.btn-nav:hover { color: var(--ink); background: var(--yellow); }

.btn-primary {
  min-height: 54px;
  padding: 15px 20px;
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 14px 34px -22px rgba(255, 220, 25, .9);
}

.btn-primary:hover { background: #ffe23d; }

.btn-quiet {
  color: var(--ink);
  background: transparent;
  border-color: var(--rule-strong);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(38px, 4vw, 58px) 0 clamp(52px, 5vw, 76px);
  color: #fff;
  background: var(--blue);
}

.contours {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, .13);
  pointer-events: none;
}

.contours path { vector-effect: non-scaling-stroke; stroke-width: 1.2; }

.hero-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, .97fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: end;
}

.hero-copy { max-width: 770px; }

.hero h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(3.8rem, 6.2vw, 5.25rem);
  letter-spacing: -.055em;
  line-height: .86;
}
.hero h1 em {
  color: #fff;
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .42);
  text-decoration-thickness: .055em;
  text-underline-offset: .08em;
}

.hero-lede {
  max-width: 600px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .91);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  line-height: 1.48;
}

.hero-action { margin-top: 26px; }

.hero-action > p {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, .75);
  font-family: var(--mono);
  font-size: .69rem;
  letter-spacing: .035em;
}

.hero-action > p span { color: rgba(255, 255, 255, .58); margin-inline: 5px; }

.forecast-scale {
  align-self: center;
  margin-bottom: 8px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .58);
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
}

.scale-head,
.scale-values {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.scale-head {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .86);
  letter-spacing: .08em;
}

.scale-track {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .42);
}

.scale-track i {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, var(--risk), rgba(255, 255, 255, .8) 50%, #37cf94);
}

.scale-track i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.risk-key { color: #ffd0c2; }
.rise-key { color: #5ae0ad; }

.scale-values {
  margin-top: 10px;
  color: rgba(255, 255, 255, .68);
}

.forecast-scale > p {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: .62rem;
  letter-spacing: .14em;
  text-align: center;
}

/* Hero product demonstration */

.product-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(290px, .96fr) 142px minmax(470px, 1.55fr);
  margin-top: clamp(26px, 3vw, 38px);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: var(--shadow);
}

.demo-cap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 15px;
  color: var(--blue);
  background: #f7f9fd;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.demo-cap span:last-child {
  padding: 1px 7px;
  color: var(--ink);
  background: var(--blue-light);
}

.signal-stack { border-right: 1px solid var(--rule); }

.signal-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: 126px minmax(160px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--rule);
}

.signal-row:last-child { border-bottom: 0; }

.signal-row svg { width: 100%; overflow: visible; }

.platform {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 1px 10px;
  align-items: center;
}

.platform-mark {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 700;
}

.platform strong { font-size: .82rem; line-height: 1.2; }
.platform small { color: var(--ink-faint); font-size: .64rem; line-height: 1.25; }

.grid-line { fill: none; stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 4; }
.signal-path { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.risk-path { stroke: var(--risk); }
.neutral-path { stroke: var(--blue); }
.rise-path { stroke: var(--rise); }
.signal-dots { stroke-width: 2; }
.risk-dots { fill: #fff; stroke: var(--risk); }
.neutral-dots { fill: #fff; stroke: var(--blue); }
.rise-dots { fill: #fff; stroke: var(--rise); }

.identity-join {
  position: relative;
  min-height: 264px;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
  border-right: 1px solid var(--rule);
  background: linear-gradient(180deg, #fff, #f3f7ff);
}

.identity-join::before,
.identity-join::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
}

.identity-join::before { top: 33.333%; }
.identity-join::after { top: 66.666%; }

.join-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.join-lines i {
  position: absolute;
  left: 0;
  width: 52%;
  height: 1px;
  background: var(--blue);
  transform-origin: left center;
}

.join-lines i:nth-child(1) { top: 17%; transform: rotate(27deg); }
.join-lines i:nth-child(2) { top: 50%; }
.join-lines i:nth-child(3) { top: 83%; transform: rotate(-27deg); }

.member-node {
  position: relative;
  z-index: 1;
  width: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px 13px;
  background: #fff;
  border: 1px solid var(--blue);
  box-shadow: 0 14px 28px -22px rgba(6, 71, 200, .75);
  text-align: center;
}

.member-node svg { width: 44px; height: 44px; margin-bottom: 8px; fill: var(--blue); }
.member-node strong { margin-bottom: 9px; font-size: .69rem; line-height: 1.2; }
.member-node small { width: 100%; color: var(--ink-faint); font-size: .625rem; line-height: 1.55; text-align: left; }
.member-node small span { color: var(--rise); font-weight: 700; }

.action-list { min-width: 0; }

.list-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 16px;
  color: var(--blue);
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.member-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 34px minmax(112px, .8fr) 76px minmax(138px, 1fr) minmax(112px, .8fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}

.member-row:last-child { border-bottom: 0; }

.member-row strong,
.member-row small { display: block; }

.rank {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--ink-faint);
}

.member strong,
.reason strong { font-size: .72rem; line-height: 1.25; }

.member small,
.reason small,
.score small { margin-top: 3px; color: var(--ink-faint); font-size: .64rem; line-height: 1.3; }

.score strong {
  font-family: var(--mono);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
}

.is-risk .rank,
.is-risk .score strong { color: var(--risk); }
.is-watch .score strong { color: var(--watch); }
.is-rising .rank,
.is-rising .score strong { color: var(--rise); }

.next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: .66rem;
  font-weight: 650;
  line-height: 1.3;
}

.next b {
  position: relative;
  width: 15px;
  height: 10px;
  flex: none;
}

.next b::before,
.next b::after {
  content: "";
  position: absolute;
  right: 0;
}

.next b::before {
  top: 4px;
  width: 13px;
  height: 1px;
  background: currentColor;
}

.next b::after {
  top: 1px;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Main story */

.mechanism,
.warning-window,
.boundaries,
.pilot,
.questions,
.closing { scroll-margin-top: 74px; }

.mechanism { padding: clamp(92px, 10vw, 150px) 0 110px; background: var(--paper); }

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: end;
}

.split-heading h2 { max-width: 15ch; margin-bottom: 0; }
.split-heading p { margin: 0 0 5px; color: var(--ink-soft); font-size: 1.08rem; }

.mechanism-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 76px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  list-style: none;
}

.mechanism-steps li {
  position: relative;
  min-height: 330px;
  padding: 26px clamp(24px, 3.2vw, 44px) 30px 0;
}

.mechanism-steps li + li {
  padding-left: clamp(24px, 3.2vw, 44px);
  border-left: 1px solid var(--rule-strong);
}

.step-no {
  display: block;
  color: var(--blue);
  font-family: var(--mono);
  font-size: .7rem;
}

.mechanism-steps svg {
  width: 58px;
  height: 58px;
  margin: 54px 0 34px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mechanism-steps h3 { margin-bottom: 12px; }
.mechanism-steps p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

.warning-window { padding: 108px 0; background: #fff; border-block: 1px solid var(--rule); }

.warning-grid {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.28fr);
  gap: clamp(58px, 8vw, 124px);
  align-items: center;
}

.warning-grid h2 { max-width: 12ch; margin-bottom: 28px; }
.warning-grid > div:first-child > p { color: var(--ink-soft); }

.text-link {
  display: inline-flex;
  gap: 12px;
  margin-top: 18px;
  color: var(--blue);
  font-size: .92rem;
  font-weight: 700;
}

.signal-window {
  position: relative;
  padding: 26px 26px 24px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 26px 60px -38px rgba(3, 32, 94, .85);
}

.window-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, .76);
  font-family: var(--mono);
  font-size: .66rem;
  text-transform: uppercase;
}

.window-track {
  position: relative;
  height: 150px;
  margin: 26px 0 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  background-image: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 100% 37px;
}

.window-track i,
.window-track b,
.window-track em {
  position: absolute;
  display: block;
}

.window-track i {
  left: 0;
  right: 0;
  top: 70px;
  height: 2px;
  background: linear-gradient(90deg, #fff 0 28%, #82afff 28% 53%, var(--risk) 53% 100%);
  clip-path: polygon(0 10%, 9% 0, 17% 22%, 26% 12%, 34% 47%, 42% 40%, 51% 63%, 61% 58%, 70% 80%, 82% 76%, 91% 98%, 100% 88%, 100% 100%, 0 100%);
  transform: scaleY(32);
  transform-origin: center;
}

.window-track b {
  left: 52%;
  top: -1px;
  bottom: -1px;
  width: 1px;
  background: #ff9d80;
}

.window-track em {
  left: 28%;
  right: 0;
  bottom: 0;
  height: 13px;
  background: linear-gradient(90deg, rgba(130, 175, 255, .38), rgba(200, 67, 33, .62));
}

.window-events {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  color: rgba(255, 255, 255, .74);
  font-family: var(--mono);
  font-size: .58rem;
  line-height: 1.4;
}

.window-events span:nth-child(3) { color: #ffd0c2; }
.window-events span:last-child { color: #ffd0c2; text-align: right; }
.signal-window > p { margin: 18px 0 0; color: var(--blue-light); font-family: var(--mono); font-size: .64rem; text-transform: uppercase; }

/* Data boundaries */

.boundaries { padding: 118px 0; color: #fff; background: var(--blue-dark); }

.boundary-grid {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(540px, 1.28fr);
  gap: clamp(62px, 9vw, 132px);
  align-items: start;
}

.boundary-copy h2 { max-width: 8ch; margin-bottom: 30px; }
.boundary-copy > p { color: #c8d5f0; }
.boundary-links { margin-top: 34px; font-size: .9rem; }
.boundary-links a { color: #fff; }

.boundary-table { overflow-x: auto; border-top: 1px solid rgba(255, 255, 255, .42); }
.boundary-table table { width: 100%; min-width: 550px; border-collapse: collapse; }
.boundary-table th,
.boundary-table td { padding: 17px 16px; border-bottom: 1px solid rgba(255, 255, 255, .16); text-align: left; }
.boundary-table th { color: #b9c9e8; font-family: var(--mono); font-size: .64rem; font-weight: 400; letter-spacing: .07em; text-transform: uppercase; }
.boundary-table td { color: #e4ebfa; font-size: .86rem; }
.boundary-table td:last-child { color: #9aa9c6; }

/* Pilot */

.pilot { padding: 116px 0; background: var(--blue-light); }

.pilot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  gap: clamp(64px, 10vw, 148px);
  align-items: start;
}

.pilot-statement > span {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pilot-statement h2 { max-width: 12ch; }
.pilot-offer > p { margin-bottom: 34px; font-size: 1.08rem; }
.pilot-offer ul { margin: 0 0 34px; padding: 0; border-top: 1px solid rgba(9, 21, 47, .35); list-style: none; }
.pilot-offer li { display: grid; grid-template-columns: minmax(150px, .7fr) 1fr; gap: 24px; padding: 17px 0; border-bottom: 1px solid rgba(9, 21, 47, .22); }
.pilot-offer li strong { font-size: .92rem; }
.pilot-offer li span { font-size: .88rem; }
.pilot .btn-primary { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.pilot .btn-primary:hover { background: #ffe23d; }

/* Questions and close */

.questions { padding: 112px 0; background: var(--paper); }

.question-grid {
  display: grid;
  grid-template-columns: minmax(260px, .68fr) minmax(520px, 1.32fr);
  gap: clamp(62px, 9vw, 134px);
}

.question-grid > h2 { max-width: 10ch; }
.question-list { border-top: 1px solid var(--rule-strong); }
.question-list details { border-bottom: 1px solid var(--rule-strong); }
.question-list summary { position: relative; padding: 23px 42px 23px 0; cursor: pointer; font-family: var(--display); font-size: 1.2rem; font-weight: 650; list-style: none; }
.question-list summary::-webkit-details-marker { display: none; }
.question-list summary::after { content: "+"; position: absolute; right: 2px; top: 20px; color: var(--blue); font-family: var(--mono); font-size: 1.35rem; font-weight: 400; }
.question-list details[open] summary::after { content: "−"; }
.question-list details p { margin: -3px 52px 24px 0; color: var(--ink-soft); font-size: .95rem; }

.closing { padding: 104px 0; color: #fff; background: var(--blue); }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 54px; align-items: end; }
.closing h2 { max-width: 15ch; margin: 0; }
.closing-grid > div { min-width: 300px; text-align: right; }
.closing-grid p { margin: 14px 0 0; color: rgba(255, 255, 255, .76); font-size: .86rem; }
.closing-grid p a { color: #fff; }

/* Footer */

footer {
  padding: 46px 0 68px;
  color: #aebbd4;
  background: #041332;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .82rem;
}

footer .wrap { display: flex; justify-content: space-between; gap: 28px; }
footer .links { display: flex; flex-wrap: wrap; gap: 24px; }
footer a { color: #d8e2f5; }
footer .tag { color: #b9c9e8; font-family: var(--mono); font-size: .67rem; letter-spacing: .05em; }

/* Legal documents, reports, and not-found page */

main.wrap:not(.home) { width: min(100% - 48px, 860px); }
main.wrap:not(.home) > section { padding: 78px 0; border-bottom: 1px solid var(--rule); }
main.wrap:not(.home) > section:last-child { border-bottom: 0; }
main.wrap:not(.home) h1 { margin-bottom: 28px; color: var(--ink); font-size: clamp(3rem, 7vw, 5.25rem); }
main.wrap:not(.home) h2 { margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3.2rem); }
main.wrap:not(.home) p { color: var(--ink-soft); }

.eyebrow {
  margin: 0 0 24px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lede { max-width: 62ch; font-size: clamp(1.1rem, 2vw, 1.32rem); }
.leakage-copy { margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { margin-top: 16px; color: var(--ink-faint) !important; font-size: .78rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 36px; border: 1px solid var(--rule-strong); }
.stat { min-height: 150px; padding: 22px; background: #fff; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat .n { display: block; color: var(--blue); font-family: var(--mono); font-size: clamp(1.65rem, 3vw, 2.25rem); font-variant-numeric: tabular-nums; }
.stat.is-risk .n { color: var(--risk); }
.stat .l { display: block; margin-top: 10px; color: var(--ink-soft); font-size: .76rem; line-height: 1.4; }

.digest { margin-top: 32px; background: #fff; border: 1px solid var(--rule-strong); box-shadow: var(--shadow); font-family: var(--mono); font-size: .76rem; }
.digest .head { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; color: var(--blue); background: var(--surface-sunk); border-bottom: 1px solid var(--rule); text-transform: uppercase; }
.digest .band { padding: 16px; border-bottom: 1px solid var(--rule); }
.digest .band:last-child { border-bottom: 0; }
.digest .band-t { display: block; margin-bottom: 7px; font-size: .65rem; text-transform: uppercase; }
.digest .band-t.risk { color: var(--risk); }
.digest .band-t.rise { color: var(--rise); }
.digest .row { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 6px; color: var(--ink-soft); }
.digest .who { min-width: 110px; color: var(--ink); }
.digest .amt { min-width: 72px; color: var(--ink); }

.steps { margin-top: 30px; border-top: 1px solid var(--rule-strong); }
.step { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.step .n { width: 34px; flex: none; color: var(--blue); font-family: var(--mono); font-size: .7rem; }
.step p { margin: 0; font-size: .93rem; }

.scroll { margin-top: 28px; overflow-x: auto; border: 1px solid var(--rule-strong); background: #fff; }
.scroll table { width: 100%; min-width: 540px; border-collapse: collapse; }
.scroll th,
.scroll td { padding: 13px 16px; border-bottom: 1px solid var(--rule); text-align: left; }
.scroll th { color: var(--blue); background: var(--surface-sunk); font-family: var(--mono); font-size: .66rem; font-weight: 400; text-transform: uppercase; }
.scroll td { font-size: .86rem; }
.scroll tr:last-child td { border-bottom: 0; }
.scroll tr.total td { background: var(--surface-sunk); font-weight: 700; }
.scroll td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

.cta { margin-top: 36px; padding: 30px; background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.cta h2 { color: #fff; }
.cta p { color: #d7e4ff !important; }
.cta .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cta .btn { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.cta .btn-quiet { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }

.doc { padding: 70px 0 34px; }
.doc h1 { font-size: clamp(2.8rem, 6vw, 4.5rem) !important; }
.doc h2 { margin: 2.3em 0 .7em; padding-top: .8em; border-top: 1px solid var(--rule); font-size: clamp(1.65rem, 3vw, 2.35rem) !important; }
.doc h3 { margin: 1.7em 0 .55em; }
.doc p,
.doc li { color: var(--ink-soft); }
.doc ul,
.doc ol { max-width: 70ch; padding-left: 1.3em; }
.doc li { margin-bottom: .48em; }
.doc code { padding: 2px 5px; color: var(--blue-deep); background: var(--blue-light); font-family: var(--mono); font-size: .86em; }
.doc blockquote { margin: 0 0 1.2em; padding-left: 20px; border-left: 1px solid var(--blue); color: var(--ink-soft); }
.doc hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--rule); }

.draft { margin-bottom: 36px; padding: 16px 18px; color: var(--ink); background: var(--risk-soft); border: 1px solid var(--risk); font-size: .88rem; }

.mid { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 70px 0; }

/* One orchestrated first-load movement: signals arrive, merge, and resolve. */

@keyframes trace-in {
  from { opacity: .01; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes node-ready {
  0%, 55% { opacity: .35; transform: scale(.96); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes list-resolve {
  from { opacity: .01; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero .signal-path {
  animation: trace-in 1.15s cubic-bezier(.16, 1, .3, 1) both;
}

.hero .signal-row:nth-child(2) .signal-path { animation-delay: .12s; }
.hero .signal-row:nth-child(3) .signal-path { animation-delay: .24s; }
.hero .member-node { animation: node-ready .9s cubic-bezier(.16, 1, .3, 1) .48s both; }
.hero .member-row { animation: list-resolve .65s cubic-bezier(.16, 1, .3, 1) both; }
.hero .member-row:nth-child(2) { animation-delay: .62s; }
.hero .member-row:nth-child(3) { animation-delay: .74s; }
.hero .member-row:nth-child(4) { animation-delay: .86s; }

/* Responsive */

@media (max-width: 1080px) {
  .hero { padding-top: 30px; padding-bottom: 36px; }
  .hero-copy-grid { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 44px; }
  .hero h1 { max-width: 10.8ch; font-size: clamp(3.7rem, 7.2vw, 4.7rem); }
  .product-stage { grid-template-columns: minmax(250px, .9fr) 112px minmax(430px, 1.55fr); }
  .signal-row { grid-template-columns: 108px minmax(130px, 1fr); padding-inline: 12px; }
  .platform { grid-template-columns: 30px 1fr; gap: 1px 7px; }
  .platform-mark { width: 30px; height: 30px; }
  .member-row { grid-template-columns: 28px minmax(112px, 1fr) 64px minmax(104px, .9fr); gap: 9px; }
  .member-row .reason { display: none; }
  .split-heading,
  .warning-grid,
  .boundary-grid,
  .pilot-grid,
  .question-grid { grid-template-columns: 1fr; }
  .split-heading p,
  .warning-grid > div:first-child,
  .boundary-copy,
  .question-grid > h2 { max-width: 720px; }
  .warning-grid,
  .boundary-grid,
  .pilot-grid,
  .question-grid { gap: 56px; }
  .pilot-offer { max-width: 720px; }
}

@media (max-width: 720px) {
  .hero-copy-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 850px; }
  .forecast-scale { width: 100%; }
  .product-stage { display: block; overflow: visible; }
  .signal-stack { border-right: 0; border-bottom: 1px solid var(--rule); }
  .identity-join { min-height: 176px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .identity-join::before,
  .identity-join::after { display: none; }
  .join-lines i { left: 50%; top: 0 !important; width: 1px; height: 55px; transform: none !important; }
  .join-lines i:nth-child(1) { margin-left: -22px; transform: rotate(18deg) !important; }
  .join-lines i:nth-child(3) { margin-left: 22px; transform: rotate(-18deg) !important; }
  .member-row { grid-template-columns: 28px minmax(110px, 1fr) auto; }
  .member-row .reason { display: block; grid-column: 2 / -1; }
  .member-row .next { display: flex; grid-column: 2 / -1; }
}

@media (max-width: 820px) {
  .wrap,
  .frame { width: min(100% - 36px, 1280px); }
  .nav-inner { grid-template-columns: 1fr auto; gap: 18px; }
  .nav-links { display: none; }
  .hero { padding-top: 58px; }
  .mechanism-steps { grid-template-columns: 1fr; }
  .mechanism-steps li { min-height: 0; padding: 24px 0 32px; }
  .mechanism-steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .mechanism-steps svg { margin: 34px 0 24px; }
  .closing-grid { grid-template-columns: 1fr; align-items: start; }
  .closing-grid > div { min-width: 0; text-align: left; }
  footer .wrap { flex-direction: column; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap,
  .frame,
  main.wrap:not(.home) { width: min(100% - 28px, 1280px); }
  .nav-inner { min-height: 66px; }
  .brand { font-size: 1.08rem; }
  .brand-mark { width: 36px; height: 27px; }
  .btn-nav { min-height: 40px; padding: 9px 11px; font-size: .72rem; }
  h1 { font-size: clamp(3.2rem, 16vw, 4.65rem); }
  h2 { font-size: clamp(2.25rem, 12vw, 3.3rem); }
  .hero { padding: 42px 0 64px; }
  .hero h1 { margin-bottom: 24px; }
  .hero-lede { font-size: 1.02rem; }
  .btn-primary { width: 100%; justify-content: space-between; }
  .forecast-scale { margin-top: 10px; }
  .scale-head { flex-direction: column; }
  .scale-track { grid-template-columns: auto 1fr; }
  .scale-track .rise-key { grid-column: 2; text-align: right; }
  .scale-track i { grid-column: 1 / -1; grid-row: 2; }
  .product-stage { margin-top: 34px; }
  .demo-cap { align-items: flex-start; font-size: .625rem; }
  .signal-row { grid-template-columns: 105px 1fr; min-height: 96px; padding: 13px 12px; }
  .platform { grid-template-columns: 29px 1fr; gap: 1px 8px; }
  .platform-mark { width: 29px; height: 29px; }
  .member-row { grid-template-columns: 28px minmax(110px, 1fr) auto; gap: 10px; padding: 15px 12px; }
  .member-row .reason,
  .member-row .next { grid-column: 2 / -1; }
  .member-row .next { padding-top: 3px; }
  .list-head { font-size: .625rem; }
  .mechanism { padding: 82px 0; }
  .mechanism-steps { margin-top: 50px; }
  .warning-window,
  .boundaries,
  .pilot,
  .questions,
  .closing { padding: 82px 0; }
  .signal-window { padding: 19px 15px; }
  .window-label { flex-direction: column; gap: 5px; }
  .window-events { font-size: .49rem; }
  .pilot-statement > span { margin-top: 28px; }
  .pilot-offer li { grid-template-columns: 1fr; gap: 5px; }
  .question-list summary { font-size: 1.08rem; }
  .question-list details p { margin-right: 10px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stat:last-child { border-bottom: 0; }
  .cta { padding: 24px 20px; }
}

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

@media print {
  .site-nav,
  footer .links,
  .closing,
  .cta { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero,
  .boundaries,
  .signal-window { color: #000; background: #fff; }
  .scroll,
  .boundary-table { overflow: visible; }
}
