/* BorrowerWatch — site styles. Tokens first; every gap comes from the 8px scale. */
:root {
  --navy: #0A1A26;
  --green: #22C55E;
  --green-ink: #15803D;
  --green-deep: #0A3D1E;
  --green-light: #86EFAC;
  --ink: #0A1A26;
  --ink-2: #4A6172;
  --ink-3: #5B7384;
  --on-navy: #A9BCC9;
  --on-navy-2: #7D95A6;
  --line: #DCE4EA;
  --rail-grey: #9FB2BF;
  --radar-line: #1E3647;
  --radar-dot: #3B5A70;
  --error: #7A1010;

  /* 8px spacing scale */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-12: 96px;
  --s-16: 128px;

  --section-y: var(--s-16);
  --gutter: 24px;
  --measure: 62ch;
  --maxw: 1200px;

  --font: Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --logo: Outfit, Geist, system-ui, sans-serif;

  --ease-pop: cubic-bezier(.2, .9, .3, 1.4);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --ease-glide: cubic-bezier(.45, 0, .2, 1);
}
@media (max-width: 1023px) { :root { --section-y: var(--s-12); } }
@media (max-width: 599px)  { :root { --section-y: 72px; } }
@media (max-width: 399px)  { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:target { scroll-margin-top: var(--s-3); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--s-2); top: -100px; z-index: 10;
  background: var(--green); color: var(--navy); padding: var(--s-1) var(--s-2);
  border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: var(--s-2); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.dark { background: var(--navy); color: #FFFFFF; }
.text-green { color: var(--green); }
.section { padding-block: var(--section-y); }
.stack-lg { display: flex; flex-direction: column; gap: var(--s-6); }
.stack-xl { display: flex; flex-direction: column; gap: var(--s-8); }

/* ---------- Type ---------- */
h1 {
  font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(2.25rem, 1.1rem + 3.4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 820px;
  text-wrap: balance;
}
.h2-lg { font-size: clamp(2.25rem, 1rem + 4vw, 4rem); max-width: 900px; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
p { max-width: var(--measure); }

/* ---------- Logo ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 18px;
  text-decoration: none; color: inherit;
  min-height: 44px;
}
.mark {
  position: relative;
  font-family: var(--logo); font-weight: 800;
  font-size: 32px; line-height: 1; letter-spacing: -0.06em;
}
.mark-dot {
  position: absolute; top: 0; right: -10px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
  animation: bw-pop .7s var(--ease-pop) .3s both;
}
.mark-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green);
  animation: bw-ping 2.5s ease-out 1.2s infinite;
}
.wordmark { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.mark.mark-xs { font-size: 14px; color: var(--navy); }
.mark-xs .mark-dot { top: -1px; right: -5px; width: 5px; height: 5px; }
.mark-xs .mark-dot::after { animation: none; }

@keyframes bw-pop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.35); opacity: 1; }
  80%  { transform: scale(.9); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes bw-ping {
  0%   { transform: scale(1); opacity: .6; }
  65%  { transform: scale(3); opacity: 0; }
  100% { transform: scale(3); opacity: 0; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; transition-duration: .06s; }
.btn-green { background: var(--green); color: var(--navy); }
.btn-green:hover { box-shadow: 0 8px 20px rgba(34, 197, 94, .28); color: var(--navy); }
.btn-navy { background: var(--navy); color: #FFFFFF; }
.btn-navy:hover { box-shadow: 0 10px 24px rgba(10, 26, 38, .32); }
.btn-navy:focus-visible { outline-color: var(--navy); }
.btn-sm { display: inline-block; font-size: 15px; line-height: 44px; min-height: 44px; padding: 0 20px; }
.btn-lg { font-size: 17px; min-height: 56px; padding: 0 28px; }
.btn-block { width: 100%; min-height: 56px; font-size: 17px; }
.btn[disabled] { cursor: progress; transform: none; box-shadow: none; }

.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: var(--s-1);
  min-height: 44px; font-weight: 600; font-size: 16px; text-decoration: none; color: #FFFFFF;
}
.link-arrow:hover { color: var(--green-light); }

/* nav: underline slides in from the left */
.nav { display: flex; gap: var(--s-4); font-size: 15px; }
.nav a, .footer-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  color: var(--on-navy); text-decoration: none;
}
.nav a::after, .footer-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav a:hover, .nav a:focus-visible, .footer-links a:hover { color: #FFFFFF; }
.nav a:hover::after, .nav a:focus-visible::after, .footer-links a:hover::after { transform: scaleX(1); }

/* ---------- Header ---------- */
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); height: 80px; }
.hide-sm { display: inline; }

/* ---------- Hero ---------- */
.hero { padding-top: var(--s-8); padding-bottom: var(--section-y); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-6); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: var(--s-3); }
.eyebrow {
  display: flex; align-items: center; gap: 12px; align-self: flex-start; max-width: 100%;
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--on-navy);
}
.eyebrow-dot { flex: none; margin-left: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.lede { font-size: 20px; line-height: 1.55; color: var(--on-navy); max-width: 30em; }
.hero-actions { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-1); }

.hero-visual { position: relative; }
.hero-note {
  margin-top: var(--s-2); max-width: none;
  font-size: 13px; color: var(--on-navy-2); text-align: right;
}

/* Radar (HTML/CSS). The sweep turns once every 6s, starting at 12 o'clock.
   Each blip's delay is its angle / 360 x 6s, so it flashes exactly as the sweep passes it.
   The three named clients take 4s turns on a 12s loop; each sits where the sweep is when its turn starts. */
.radar {
  position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; margin-inline: auto;
  border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #10293A 0%, var(--navy) 72%);
  box-shadow: inset 0 0 0 1px var(--radar-line), 0 0 80px rgba(34, 197, 94, .08);
}
.rings {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent calc(16.66% - 1px), var(--radar-line) calc(16.66% - 1px), var(--radar-line) 16.66%),
    linear-gradient(var(--radar-line), var(--radar-line)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--radar-line), var(--radar-line)) 0 50% / 100% 1px no-repeat;
}
.sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 197, 94, 0) 0deg, rgba(34, 197, 94, 0) 290deg, rgba(34, 197, 94, .28) 356deg, rgba(34, 197, 94, .85) 359.5deg, rgba(34, 197, 94, 0) 360deg);
  animation: bw-sweep 6s linear infinite;
}
@keyframes bw-sweep { to { transform: rotate(360deg); } }
.blip {
  position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: var(--radar-dot);
  animation: bw-blip 6s linear infinite;
}
@keyframes bw-blip {
  0%       { background: var(--green); transform: scale(1.8); box-shadow: 0 0 12px rgba(34, 197, 94, .9); }
  25%      { background: #2E8A57; transform: scale(1.1); box-shadow: 0 0 0 rgba(34, 197, 94, 0); }
  60%, 100% { background: var(--radar-dot); transform: scale(1); }
}
.client {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--radar-dot);
  animation: bw-client 12s ease-out var(--turn) infinite;
}
.client::before, .client::after { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; }
/* a quick flash each time the sweep passes, like the other dots */
.client::before { background: var(--green); animation: bw-client-pass 6s linear var(--pass) infinite; }
/* pings while it is this client's turn */
.client::after { border: 2px solid var(--green); animation: bw-client-ping 12s ease-out var(--turn) infinite; }
@keyframes bw-client {
  0%       { background: var(--green); transform: scale(1.6); box-shadow: 0 0 18px rgba(34, 197, 94, .9); }
  5%       { background: var(--green); transform: scale(1.2); box-shadow: 0 0 14px rgba(34, 197, 94, .7); }
  30%      { background: var(--green); transform: scale(1.2); box-shadow: 0 0 14px rgba(34, 197, 94, .7); }
  33%, 100% { background: var(--radar-dot); transform: scale(1); box-shadow: 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes bw-client-pass { 0% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes bw-client-ping {
  0%       { opacity: .9; transform: scale(1); }
  9%       { opacity: 0; transform: scale(4); }
  10%      { opacity: .9; transform: scale(1); }
  19%      { opacity: 0; transform: scale(4); }
  20%      { opacity: .9; transform: scale(1); }
  29%, 100% { opacity: 0; transform: scale(4); }
}

/* Alert card. On wide screens it glides beside the lit client (JS sets --x/--y/--pl/--py);
   on narrower screens it sits still under the radar. */
.acard {
  position: absolute; left: 4%; top: 6%; z-index: 1;
  width: min(280px, 62%);
  background: #FFFFFF; color: var(--navy);
  border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}
.acard.is-placed {
  left: 0; top: 0;
  translate: var(--x, 0) var(--y, 0);
  transition: translate .6s var(--ease-glide);
}
.acard.no-glide { transition: none; }
.js-motion .acard:not(.is-shown) { opacity: 0; visibility: hidden; }
.js-motion .acard.is-shown { animation: bw-slide .6s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes bw-slide {
  from { transform: translateY(-14px) scale(.96); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.acard-pointer {
  position: absolute; top: var(--py, 50%); height: 1px; width: var(--pl, 0);
  background: linear-gradient(90deg, rgba(134, 239, 172, .85), rgba(134, 239, 172, .85));
  opacity: 0; transition: opacity .25s;
}
.acard-pointer::after {
  content: ""; position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--green-light);
}
.acard[data-side="left"] .acard-pointer { left: 100%; }
.acard[data-side="left"] .acard-pointer::after { right: -2px; }
.acard[data-side="right"] .acard-pointer { right: 100%; }
.acard[data-side="right"] .acard-pointer::after { left: -2px; }
.acard.has-pointer:not(.is-moving) .acard-pointer { opacity: 1; transition-delay: .05s; }

.alert-top {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-1);
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
}
.alert-brand { display: inline-flex; align-items: center; gap: 10px; }
.acard .mark-dot { animation-delay: .4s; }
.alert-body { min-height: 62px; transition: opacity .22s, transform .22s; }
.alert-body.is-out { opacity: 0; transform: translateY(-4px); }
.alert-title { margin-top: var(--s-1); font-weight: 700; font-size: 15px; line-height: 1.3; }
.alert-text { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.acard.is-repop .mark-dot { animation: bw-pop .6s var(--ease-pop) both; }

/* ---------- Two endings ---------- */
.row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.row-label { display: flex; flex-direction: column; gap: var(--s-1); padding-top: var(--s-4); }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--ink-3); }
.kicker-green { color: var(--green-ink); }
.row-sub { font-size: 15px; color: var(--ink-3); line-height: 1.4; }
.row-with .row-sub { color: var(--ink-2); }

.rail {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr);
  gap: var(--s-3); padding-top: 40px;
}
.line {
  position: absolute; left: 10px; right: 0; top: 9px; height: 0;
  border-top: 3px solid var(--navy);
  transform-origin: left center;
}
.row-without .line { border-top-style: dashed; border-top-color: var(--rail-grey); }
.stop { position: relative; display: flex; flex-direction: column; gap: 4px; }
.stop strong { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.dot {
  position: absolute; top: -40px; left: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: #FFFFFF; border: 3px solid var(--rail-grey);
}
.dot-solid { background: var(--rail-grey); border: 0; }
.dot-green { background: var(--green); border: 0; }
.dot-navy { background: var(--navy); border: 0; }
.dot-halo { box-shadow: 0 0 0 8px rgba(34, 197, 94, .25); }
.when { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .02em; }
.when-green { color: var(--green-ink); }
.note { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.end { font-size: clamp(2.25rem, 1.4rem + 1.8vw, 3rem); line-height: 1; letter-spacing: -0.04em; font-weight: 800; padding-block: 4px; }
.stop-end { gap: var(--s-1); }

/* "without" reads as grey; each tone still passes 4.5:1 on white */
.row-without strong, .row-without .end { color: #56697A; }
.strike { position: relative; display: inline-block; }
.strike::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 54%;
  height: 3px; background: currentColor; border-radius: 2px;
  transform-origin: left center;
}
.fine { font-size: 13px; color: var(--ink-3); }

/* ---------- Six signals ---------- */
.signals h2 { color: #FFFFFF; }
.sig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--s-6); }
.sig li { display: flex; flex-direction: column; gap: var(--s-1); }
.sig-dot {
  position: relative; width: 14px; height: 14px; border-radius: 50%; margin: 4px 0 var(--s-1) 4px;
  background: var(--green); box-shadow: 0 0 0 6px rgba(34, 197, 94, .2);
}
.sig-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); opacity: 0; }
.sig p { color: var(--on-navy); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.steps li { display: flex; flex-direction: column; gap: var(--s-1); }
.step-num { font-size: 64px; line-height: 1; font-weight: 800; color: var(--green); letter-spacing: -0.04em; margin-bottom: var(--s-1); }
.steps p { color: var(--ink-2); line-height: 1.6; }
.trust {
  padding-top: var(--s-4); border-top: 1px solid var(--line);
  font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: none;
}
.trust strong { color: var(--ink); }

/* ---------- Pricing ---------- */
.pricing-body { display: flex; flex-direction: column; gap: var(--s-4); }
.plans {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.plan {
  position: relative;
  display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--s-2);
  padding: var(--s-6) var(--s-6) var(--s-6) 0;
}
.plan + .plan { border-left: 1px solid var(--line); padding: var(--s-6) 0 var(--s-6) var(--s-6); }
.plan.is-recommended::before {
  content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 3px;
  background: var(--green); border-radius: 0 0 2px 2px;
}
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; }
.plan-name { font-size: 28px; letter-spacing: -0.03em; }
.plan-flag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--green-ink);
}
.plan-flag .eyebrow-dot { margin-left: 4px; width: 7px; height: 7px; }
.plan-audience { color: var(--ink-2); }
.plan-price { min-height: 56px; display: flex; align-items: baseline; gap: 6px; padding-bottom: var(--s-1); }
.plan-amount { font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.plan-period { font-size: 16px; color: var(--ink-2); }
.plan-price-founding { align-items: center; font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--ink); max-width: 30ch; }
.plan-features { border-top: 1px solid var(--line); padding-top: var(--s-3); display: flex; flex-direction: column; gap: 12px; }
.plan-features li { position: relative; padding-left: 26px; color: var(--ink-2); line-height: 1.5; }
.plan-features li::before {
  content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}
.plan-features .plan-limit { color: var(--ink); font-weight: 600; }
.plan-notes { display: flex; flex-direction: column; gap: var(--s-1); }
.plan-notes p { font-size: 16px; color: var(--ink-2); }
.plan-notes p:first-child { color: var(--ink); font-weight: 600; }

/* ---------- Join ---------- */
.join { background: var(--green); color: var(--navy); }
.join-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--s-6); align-items: center;
}
.join-copy { display: flex; flex-direction: column; gap: var(--s-2); }
.join-copy .h2 { margin-bottom: var(--s-1); }
.join-copy p { font-size: 18px; color: var(--green-deep); }
.join-copy .join-small { font-size: 15px; }

.join-slot { display: grid; }
.join-slot > * { grid-area: 1 / 1; }
.form { display: flex; flex-direction: column; gap: var(--s-2); }
.form.is-done { visibility: hidden; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--green-deep); }
.field input {
  width: 100%; height: 48px; padding: 0 2px;
  border: 0; border-bottom: 2px solid var(--navy); border-radius: 0;
  background: transparent; color: var(--navy);
  font: inherit; font-size: 18px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; box-shadow: 0 2px 0 0 var(--navy); }
.field input:focus-visible { outline: none; }
.field input[aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: 0 2px 0 0 var(--error); }
.err { font-size: 14px; font-weight: 600; color: var(--error); line-height: 1.4; }
.err::before { content: "! "; font-weight: 800; }
.err-form { background: #FFFFFF; border-radius: 8px; padding: 12px var(--s-2); }
.err-form::before { content: ""; }
.err-form a { color: inherit; }
.form button { margin-top: var(--s-1); }
.form-note { font-size: 13px; color: var(--green-deep); }
.form-note a { color: var(--navy); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn-navy .spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #FFFFFF;
  animation: bw-spin .8s linear infinite;
}
@keyframes bw-spin { to { transform: rotate(360deg); } }

/* success notification */
.success {
  align-self: center; justify-self: stretch;
  background: #FFFFFF; color: var(--navy);
  border-radius: 12px; padding: var(--s-3);
  box-shadow: 0 20px 40px rgba(10, 61, 30, .28);
  animation: bw-slide .6s cubic-bezier(.2, .9, .3, 1.2) both;
}
.success:focus { outline: none; }
.success .alert-top { font-size: 12px; }
.success .mark-xs { font-size: 18px; }
.success .mark-xs .mark-dot { width: 7px; height: 7px; right: -7px; animation: bw-pop .7s var(--ease-pop) .35s both; }
.success-title { margin-top: var(--s-2); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.success-text { margin-top: 4px; font-size: 17px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding-block: var(--s-3); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-1) var(--s-3); flex-wrap: wrap; font-size: 14px; }
.footer-links { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(169, 188, 201, .4); }

/* ---------- Plain pages (privacy, terms, 404) ---------- */
.page { padding-block: var(--s-12) var(--section-y); }
.page .h2 { margin-bottom: var(--s-3); }
.draft {
  display: inline-block; margin-bottom: var(--s-4); padding: var(--s-1) var(--s-2);
  border-radius: 8px; background: #FEF3C7; color: #713F12; font-weight: 700; font-size: 15px;
}
.prose { max-width: var(--measure); }
.prose h2 { font-size: 22px; letter-spacing: -0.02em; margin: var(--s-6) 0 var(--s-2); }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p, .prose ul { margin-top: var(--s-2); }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: var(--s-1); }
.prose a { color: var(--green-ink); font-weight: 600; }
.prose .updated { font-size: 14px; color: var(--ink-3); }
.notfound { padding-block: var(--s-12) var(--section-y); }
.notfound .lede { margin-top: var(--s-3); }
.notfound .hero-actions { margin-top: var(--s-4); }

/* ---------- Scroll reveals (only when JS + motion are on) ---------- */
/* Two endings: plays once when about 30% of the section is in view (site.js adds .is-in).
   Until then everything waits in its starting state.
   0.0s "without" fades in (700ms) · 0.7s strike-through (600ms) · 1.4s "with" line draws (900ms)
   · its stops pop 450ms apart from 1.4s · "Loan kept." pops last at 3.05s. */
.end-kept { display: inline-block; transform-origin: left bottom; }
.end-kept .text-green { display: inline-block; }
.js-motion .endings .row-without { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft); }
.js-motion .endings.is-in .row-without { opacity: 1; transform: none; }
.js-motion .endings .strike::after { transform: scaleX(0); transition: transform .6s cubic-bezier(.65, 0, .35, 1) .7s; }
.js-motion .endings.is-in .strike::after { transform: scaleX(1); }
.js-motion .endings .row-with .line { transform: scaleX(0); transition: transform .9s cubic-bezier(.65, 0, .35, 1) 1.4s; }
.js-motion .endings.is-in .row-with .line { transform: none; }
.js-motion .endings .row-with .stop:nth-child(2) { --d: 1.4s; }
.js-motion .endings .row-with .stop:nth-child(3) { --d: 1.85s; }
.js-motion .endings .row-with .stop:nth-child(4) { --d: 2.3s; }
.js-motion .endings .row-with .stop:nth-child(5) { --d: 2.75s; }
.js-motion .endings .row-with .dot { transform: scale(0); opacity: 0; }
.js-motion .endings.is-in .row-with .dot { animation: bw-dot-pop .5s var(--ease-pop) var(--d) both; }
.js-motion .endings .row-with .stop > :not(.dot) {
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s var(--ease-soft), transform .45s var(--ease-soft);
  transition-delay: calc(var(--d) + .1s);
}
.js-motion .endings.is-in .row-with .stop > :not(.dot) { opacity: 1; transform: none; }
.js-motion .endings .row-with .end-kept { opacity: 0; transform: scale(.6); transition: none; }
.js-motion .endings.is-in .row-with .end-kept { animation: bw-kept .7s var(--ease-pop) 3.05s both; }
.js-motion .endings.is-in .end-kept .text-green { animation: bw-pop .6s var(--ease-pop) 3.4s both; }
@keyframes bw-dot-pop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.45); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes bw-kept {
  0%   { transform: scale(.6); opacity: 0; }
  55%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.js-motion .signals.is-in .sig-dot::after { animation: bw-ping-once 1.3s ease-out both; }
.js-motion .signals .sig li:nth-child(1) .sig-dot::after { animation-delay: .1s; }
.js-motion .signals .sig li:nth-child(2) .sig-dot::after { animation-delay: .25s; }
.js-motion .signals .sig li:nth-child(3) .sig-dot::after { animation-delay: .4s; }
.js-motion .signals .sig li:nth-child(4) .sig-dot::after { animation-delay: .55s; }
.js-motion .signals .sig li:nth-child(5) .sig-dot::after { animation-delay: .7s; }
.js-motion .signals .sig li:nth-child(6) .sig-dot::after { animation-delay: .85s; }
@keyframes bw-ping-once { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.4); opacity: 0; } }

/* Steps 1-2-3: each takes 700ms, 350ms apart; the number rises from 24px below. */
.js-motion .how .steps li { opacity: 0; transition: opacity .7s var(--ease-soft) var(--d, 0s); }
.js-motion .how .step-num { display: inline-block; transform: translateY(24px); transition: transform .7s var(--ease-soft) var(--d, 0s); }
.js-motion .how.is-in .steps li { opacity: 1; }
.js-motion .how.is-in .step-num { transform: none; }
.js-motion .how .steps li:nth-child(2) { --d: .35s; }
.js-motion .how .steps li:nth-child(3) { --d: .7s; }

/* ---------- Tablet & phone ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { padding-top: var(--s-6); }
  .hero-grid, .row, .sig, .steps { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: var(--s-6); }
  /* radar sits below the headline and button on narrow screens; see REPORT.md */
  .hero-visual { max-width: 560px; width: 100%; justify-self: center; }
  .radar { max-width: 360px; }
  .acard, .acard.is-placed {
    position: relative; left: auto; top: auto; translate: none; transition: none;
    width: min(100%, 340px); margin: var(--s-3) auto 0;
  }
  .acard-pointer { display: none; }
  .hero-note { text-align: center; }
  .row { gap: var(--s-3); }
  .row-label { padding-top: 0; }
  .rail { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 40px; gap: var(--s-4); }
  .line { top: 4px; bottom: 4px; left: 9px; right: auto; width: 0; height: auto; border-top: 0; border-left: 3px solid var(--navy); transform-origin: center top; }
  .row-without .line { border-left-style: dashed; border-left-color: var(--rail-grey); }
  .dot { top: 0; left: -40px; }
  .js-motion .endings .row-with .line { transform: scaleY(0); }
  .sig { gap: var(--s-6); }
  .steps { gap: var(--s-4); }
}
@media (max-width: 760px) {
  .plans { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .plan, .plan + .plan { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-6) 0; border-left: 0; }
  .plan + .plan { border-top: 1px solid var(--line); }
  .plan-price { min-height: 0; }
}
@media (min-width: 600px) and (max-width: 960px) {
  .sig { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
}
@media (max-width: 599px) {
  .hero { padding-top: var(--s-4); }
  .lede { font-size: 18px; }
  .hide-sm { display: none; }
  .btn-sm { padding: 0 var(--s-2); }
  .brand { gap: 14px; }
  .mark { font-size: 28px; }
  .mark-dot { width: 9px; height: 9px; right: -9px; }
  .wordmark { font-size: 18px; }
  .hero-actions { gap: var(--s-1) var(--s-3); }
  .hero-actions .btn-lg { width: 100%; }
  .radar { max-width: 300px; }
  .step-num { font-size: 56px; }
  .end { font-size: 40px; }
  /* lighter motion on phones */
  .mark-dot::after { animation-name: bw-ping-sm; }
  .sweep { opacity: .75; }
}
@keyframes bw-ping-sm { 0% { transform: scale(1); opacity: .45; } 65% { transform: scale(2.4); opacity: 0; } 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- Reduced motion: everything still, final states shown ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* still frame: the sweep has just passed Maria, who is lit, with her card beside her */
  .sweep { transform: rotate(32deg); }
  .client[data-client="0"] { background: var(--green); transform: scale(1.2); box-shadow: 0 0 14px rgba(34, 197, 94, .7); }
  .btn:hover { transform: none; }
}
.notfound .h2 { margin-top: var(--s-3); }
