/* =========================================================
   eRAMP Connect — site styles
   Brand: navy #002F79 (MeridianLink side / primary)
          green #3DAB2D (MERS side / confirmation)
   Type:  Archivo (display, semi-expanded)  ·  IBM Plex Sans (body)
          IBM Plex Mono (loan numbers, MINs, prices)
   ========================================================= */

:root {
  --navy: #002F79;
  --navy-deep: #001A47;
  --navy-ink: #0B1F3F;
  --blue: #1256B8;
  --blue-soft: #DCE7F7;
  --green: #3DAB2D;
  --green-deep: #2C8A20;
  --green-soft: #E4F4E0;
  --amber: #B7791F;
  --amber-soft: #FBF1DC;

  --white: #FFFFFF;
  --ice: #F3F6FB;
  --ice-2: #E9EEF6;
  --ink: #101B2E;
  --text: #33415A;
  --muted: #6B7890;
  --line: #D8DFEA;
  --line-strong: #B9C4D6;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --shell: 1180px;
  --header-h: 76px;
  --radius: 6px;
  --radius-lg: 12px;
  --ease: cubic-bezier(.22, .74, .26, 1);
  --shadow: 0 1px 2px rgba(11, 31, 63, .06), 0 12px 32px -12px rgba(11, 31, 63, .18);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.018em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 3.7vw, 3.3rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.35rem; font-stretch: 108%; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-stretch: 106%; letter-spacing: -.005em; }
sup { font-size: .5em; vertical-align: super; line-height: 0; }
.strong { color: var(--ink); font-weight: 500; }
.mono { font-family: var(--mono); font-size: .94em; letter-spacing: 0; }
::selection { background: rgba(61, 171, 45, .28); }

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

.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;
}
.skip-link {
  position: fixed; z-index: 100; top: -100px; left: 16px;
  padding: 10px 16px; background: var(--navy); color: var(--white);
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.shell { width: min(100% - 48px, var(--shell)); margin-inline: auto; }

/* ---------- Eyebrow: the logo's blue line · CONNECT · green line ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  color: var(--navy);
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.dash { display: inline-block; width: 28px; height: 3px; border-radius: 2px; }
.dash-blue { background: var(--navy); }
.dash-green { background: var(--green); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  border: 1.5px solid var(--navy); border-radius: var(--radius);
  background: var(--navy); color: var(--white);
  font-family: var(--display); font-stretch: 106%; font-weight: 600; font-size: .95rem; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.button:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.button:active { transform: translateY(1px); }
.button-ghost { background: transparent; color: var(--navy); }
.button-ghost:hover { background: var(--blue-soft); color: var(--navy); border-color: var(--navy); }
.button-green { background: var(--green); border-color: var(--green); color: var(--white); }
.button-green:hover { background: var(--green-deep); border-color: var(--green-deep); }
.button-lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.button-sm { min-height: 36px; padding: 0 14px; font-size: .82rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(11, 31, 63, .25); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { height: 42px; width: auto; }
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  position: relative; padding: 6px 0;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: .9rem; letter-spacing: .01em;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--navy) 50%, var(--green) 50%);
  transition: width .22s var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-login {
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: .9rem; letter-spacing: .01em;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .18s var(--ease), color .18s var(--ease);
}
.header-login:hover, .header-login:focus-visible { color: var(--navy); border-bottom-color: var(--green); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle-bars { position: relative; display: block; width: 18px; height: 2px; background: var(--navy); }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy); transition: transform .2s;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 0; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 50%; height: 100%;
  background: radial-gradient(60% 55% at 70% 40%, var(--ice) 0%, rgba(243, 246, 251, 0) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy h1 em { font-style: normal; color: var(--navy); }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--ink); font-weight: 500; }
.hero-points { list-style: none; margin: 22px 0 30px; display: grid; gap: 8px; }
.hero-points li { position: relative; padding-left: 26px; color: var(--ink); font-weight: 500; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg) translateY(-2px);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* The connection diagram: MeridianLink Mortgage → eRAMP Connect → MERS, top to bottom */
.hero-visual { position: relative; min-width: 0; display: flex; justify-content: center; }
.connect { margin: 0; width: 100%; max-width: 540px; }
.connect-diagram { display: grid; justify-items: center; text-align: center; }

.cd-node { position: relative; display: grid; gap: 5px; justify-items: center; }
.cd-kicker { font-family: var(--display); font-stretch: 122%; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cd-node strong { font-family: var(--display); font-stretch: 112%; font-weight: 650; font-size: 1.45rem; letter-spacing: -.012em; line-height: 1.1; color: var(--ink); }
.cd-sub { font-size: .88rem; color: var(--muted); max-width: 34ch; line-height: 1.45; }
.cd-source, .cd-dest { padding: 18px 20px; }
.cd-source::before, .cd-dest::before { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: 64px; height: 4px; border-radius: 2px; }
.cd-source::before { top: 0; background: var(--navy); }
.cd-source strong { color: var(--navy); }
.cd-dest::before { bottom: 0; background: var(--green); }
.cd-dest strong { color: var(--green-deep); }

.cd-hub { padding: 6px 0 0; gap: 10px; }
.cd-hub::before {
  content: ""; position: absolute; inset: -40px -80px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--ice-2), rgba(233, 238, 246, 0));
}
.cd-hub img { width: min(320px, 100%); height: auto; }
.cd-hub-caption { font-family: var(--display); font-stretch: 118%; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.cd-link { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; width: 100%; height: 108px; }
.cd-link svg { grid-column: 2; display: block; overflow: visible; }
.cd-link-label {
  grid-column: 3; justify-self: start; padding-left: 10px; text-align: left; max-width: 22ch;
  font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: .84rem; line-height: 1.35; color: var(--ink);
}
.cd-link-label small { display: block; margin-top: 4px; font-family: var(--body); font-weight: 400; font-size: .76rem; color: var(--muted); }
.cd-line { fill: none; stroke-width: 3; stroke-linecap: round; }
.cd-link-blue .cd-line-main { stroke: var(--navy); }
.cd-link-green .cd-line-main { stroke: var(--green); }
.cd-line-main { stroke-dasharray: 9 9; animation: flow 1.1s linear infinite; }
.cd-line-return { stroke-width: 1.5; stroke-dasharray: 3 8; opacity: .55; animation: flow-return 1.7s linear infinite; }
.cd-link-blue .cd-line-return { stroke: var(--navy); }
.cd-link-green .cd-line-return { stroke: var(--green); }
.cd-arrow { fill: var(--navy); }
.cd-link-green .cd-arrow { fill: var(--green); }
.cd-arrow-return { opacity: .55; }
@keyframes flow { to { stroke-dashoffset: -18; } }
@keyframes flow-return { to { stroke-dashoffset: -11; } }

/* Full-width rail under the hero: the logo's two lines, scaled to the page */
.rail { height: 4px; background: linear-gradient(90deg, var(--navy) 50%, var(--green) 50%); }

/* ---------- Section rhythm ---------- */
.heritage, .why, .workflow, .compare, .pricing, .faq { padding: clamp(64px, 8vw, 112px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head h2 { margin-bottom: 18px; }
.section-head p { max-width: 62ch; }
.muted-line { color: var(--navy); }

/* ---------- Heritage ---------- */
.heritage { background: var(--white); padding-bottom: 0; }
.heritage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.heritage-copy h2 { margin-bottom: 18px; }
.timeline { list-style: none; display: grid; position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy) 60%, var(--green) 100%);
}
.timeline li { position: relative; display: grid; grid-template-columns: 7.5em 1fr; gap: 20px; padding: 0 0 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 2.5px solid var(--navy);
}
.timeline li.is-now::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.tl-mark { font-family: var(--display); font-stretch: 112%; font-weight: 650; color: var(--navy); font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.4; }
.is-now .tl-mark { color: var(--green-deep); }
.tl-body { color: var(--text); }
.tl-body strong { color: var(--ink); font-weight: 600; }

.logo-strip { margin-top: clamp(48px, 6vw, 80px); padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ice); }
.logo-strip-label { text-align: center; margin-bottom: 18px; font-family: var(--display); font-stretch: 120%; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.logo-marquee { overflow: hidden; background: var(--ice); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-marquee-track { display: flex; align-items: center; background: var(--ice); gap: clamp(40px, 4vw, 64px); width: max-content; padding: 4px 0; animation: marquee 75s linear infinite; }
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
/* Logos sit directly on the strip, normalized to a shared optical height. Grayscale at rest keeps
   21 brand palettes from competing with the page's navy/green rule; full color returns on hover. */
.logo-item { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 60px; }
.logo-item img {
  height: 40px; width: auto; max-width: 150px; object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(1); opacity: .72;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.logo-item.is-tall img { height: 56px; max-width: 120px; }
.logo-item:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Why ---------- */
.why { background: var(--white); }
.flow-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.flow { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; background: var(--white); }
.flow-new { border-color: var(--navy); background: linear-gradient(180deg, var(--white), var(--ice)); }
.flow-tag { display: block; margin-bottom: 16px; font-family: var(--display); font-stretch: 120%; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.flow-new .flow-tag { color: var(--navy); }
.flow-steps { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow-steps li {
  position: relative; padding: 8px 12px; border-radius: 4px;
  font-family: var(--display); font-stretch: 106%; font-weight: 600; font-size: .86rem;
  background: var(--ice-2); color: var(--text);
}
.flow-steps li + li { margin-left: 18px; }
.flow-steps li + li::before {
  content: ""; position: absolute; left: -18px; top: 50%; width: 12px; height: 2px; background: var(--line-strong); transform: translateY(-50%);
}
/* Manual steps the connected product removes: dashed outline and muted color mark them without
   striking the text, which read as a rendering error inside a diagram of the old workflow. */
.flow-old .flow-steps li.is-manual { background: var(--white); border: 1.5px dashed var(--line-strong); color: var(--muted); }
.flow-new .flow-steps li { padding: 10px 16px; font-size: .92rem; color: var(--white); }
.flow-new .flow-steps li + li { margin-left: 26px; }
.flow-new .flow-steps li + li::before { width: 20px; left: -26px; height: 3px; }
.flow-new .flow-steps li.is-navy + li::before { background: var(--green); }
.flow-new .flow-steps li.is-navy::before { background: var(--navy); }
.is-blue { background: var(--blue) !important; }
.is-navy { background: var(--navy) !important; }
.is-green { background: var(--green) !important; }
.flow-note { margin-top: 14px; font-size: .84rem; color: var(--muted); }
.flow-note-new { color: var(--text); }

/* Return leg under the Connect flow: a U-turn from MERS (green half) back to MeridianLink (navy half) */
.flow-return { position: relative; height: 18px; margin: 10px 14px 0; }
.flow-return::before, .flow-return::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 50%; border: 2px solid; border-top: 0;
}
.flow-return::before { right: 0; border-left: 0; border-color: var(--green); border-radius: 0 0 10px 0; }
.flow-return::after { left: 0; border-right: 0; border-color: var(--navy); border-radius: 0 0 0 10px; }
.flow-return-arrow {
  position: absolute; left: -5px; top: -4px; width: 0; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid var(--navy);
}

.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.why-card { position: relative; padding: 28px 26px 26px; border-top: 3px solid var(--navy); background: var(--ice); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.why-card:nth-child(3) { border-top-color: var(--green); }
.why-num { display: inline-block; margin-bottom: 14px; font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.why-card h3 { margin-bottom: 12px; }
.why-card p { font-size: 1rem; }

/* ---------- Workflow tabs + stylized screens ---------- */
.workflow { background: var(--navy-deep); color: rgba(255, 255, 255, .8); }
.workflow .eyebrow { color: var(--green); }
.workflow .dash-blue { background: rgba(255, 255, 255, .55); }
.workflow h2 { color: var(--white); }
.tabs { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 2fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.tablist { display: grid; gap: 6px; }
.tablist [role="tab"] {
  text-align: left; padding: 18px 20px; border: 0; border-left: 3px solid rgba(255, 255, 255, .14);
  background: transparent; color: rgba(255, 255, 255, .72); cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0;
  display: grid; gap: 6px; transition: background .18s, border-color .18s, color .18s;
}
.tablist [role="tab"] strong { font-family: var(--display); font-stretch: 110%; font-weight: 650; font-size: 1.05rem; color: var(--white); letter-spacing: -.005em; }
.tablist [role="tab"] span { font-size: .93rem; line-height: 1.5; }
.tablist [role="tab"]:hover { background: rgba(255, 255, 255, .05); }
.tablist [role="tab"][aria-selected="true"] { background: rgba(255, 255, 255, .08); border-left-color: var(--green); color: rgba(255, 255, 255, .88); }
.tablist [role="tab"]:focus-visible { outline-offset: -3px; }

/* Stage diagrams: one light panel per workflow step */
.stage {
  display: grid; align-content: center; gap: 28px;
  min-height: 380px; padding: clamp(28px, 4vw, 48px) clamp(24px, 3.5vw, 44px);
  background: var(--white); color: var(--text); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.stage[hidden] { display: none; }
.stage-flow { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 14px; }
.stage-flow-2 { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; }
.stage-flow-2 .st-hub { justify-self: end; min-width: 220px; }
.st-node { display: grid; gap: 6px; align-content: start; }
.st-kicker { font-family: var(--display); font-stretch: 122%; font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.st-node strong { font-family: var(--display); font-stretch: 110%; font-weight: 650; font-size: 1.1rem; line-height: 1.15; letter-spacing: -.008em; color: var(--ink); }
.st-sub { font-size: .86rem; line-height: 1.45; color: var(--muted); }
.st-blue { padding-top: 12px; border-top: 4px solid var(--navy); }
.st-blue strong { color: var(--navy); }
.st-green { padding-top: 12px; border-top: 4px solid var(--green); }
.st-green strong { color: var(--green-deep); }
.st-hub { padding: 18px 20px 20px; border-radius: var(--radius); background: var(--navy); color: var(--white); text-align: center; justify-items: center; }
.st-hub .st-kicker { color: rgba(255, 255, 255, .7); }
.st-hub strong { color: var(--white); font-size: 1.2rem; }
.st-steps { list-style: none; display: flex; gap: 6px; margin-top: 6px; }
.st-steps li { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: .74rem; color: var(--white); }
.st-steps li + li { position: relative; margin-left: 8px; }
.st-steps li + li::before { content: ""; position: absolute; left: -11px; top: 50%; width: 8px; height: 1.5px; background: rgba(255, 255, 255, .45); }

/* Connectors: flowing dashes, horizontal on desktop and vertical on small screens */
.st-link { position: relative; width: 72px; height: 3px; border-radius: 2px; background-size: 18px 3px; animation: link-flow 1.1s linear infinite; }
.st-link-blue { background-image: repeating-linear-gradient(90deg, var(--navy) 0 9px, transparent 9px 18px); }
.st-link-green { background-image: repeating-linear-gradient(90deg, var(--green) 0 9px, transparent 9px 18px); }
.st-link::after { content: ""; position: absolute; right: -2px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right: 0; border-left-width: 9px; }
.st-link-blue::after { border-left-color: var(--navy); }
.st-link-green::after { border-left-color: var(--green); }
/* Two-way link (MIN Find): an arrowhead at each end */
.st-link-both { width: 96px; }
.st-link-both::before { content: ""; position: absolute; left: -2px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left: 0; border-right-width: 9px; }
.st-link-green.st-link-both::before { border-right-color: var(--green); }
@keyframes link-flow { to { background-position: 18px 0; } }

/* Transaction history: three states, no records */
.stage-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lane { display: grid; gap: 10px; align-content: start; padding: 22px 20px; border-radius: var(--radius); background: var(--ice); }
.lane strong { font-family: var(--display); font-stretch: 110%; font-weight: 650; font-size: 1.1rem; color: var(--ink); letter-spacing: -.008em; }
.lane p { font-size: .9rem; color: var(--text); }
.lane-mark { display: block; width: 14px; height: 14px; border-radius: 50%; }
.lane-mark-navy { background: var(--navy); }
.lane-mark-green { background: var(--green); }
.lane-mark-amber { background: var(--amber); }
.stage-caption { max-width: 62ch; font-size: .98rem; color: var(--text); }

/* ---------- Compare ---------- */
.compare { background: var(--white); }
.compare-table { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-row > span { padding: 20px 26px; display: flex; align-items: center; gap: 14px; }
.compare-row > span:first-child { color: var(--muted); border-right: 1px solid var(--line); }
.compare-row > span:last-child { color: var(--ink); font-weight: 500; background: var(--ice); }
.compare-head > span { padding: 14px 26px; font-family: var(--display); font-stretch: 120%; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.compare-head > span:first-child { color: var(--muted); background: var(--white); }
.compare-head > span:last-child { color: var(--white); background: var(--navy); }
.compare-row:not(.compare-head) > span:first-child::before {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px;
  background:
    linear-gradient(45deg, transparent 44%, var(--line-strong) 44%, var(--line-strong) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--line-strong) 44%, var(--line-strong) 56%, transparent 56%);
}
.compare-row:not(.compare-head) > span:last-child::before {
  content: ""; flex: 0 0 auto; width: 13px; height: 7px; margin-top: -3px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg);
}
.compare-path { flex-wrap: wrap; row-gap: 8px; }
.compare-path b { padding: 5px 10px; border-radius: 4px; color: var(--white); font-family: var(--display); font-stretch: 106%; font-weight: 600; font-size: .82rem; }
.compare-path i { width: 16px; height: 2px; background: var(--line-strong); }
/* Two-way connectors: data goes out and results come back */
.compare-path i.cp-both { position: relative; width: 22px; background: var(--muted); }
.compare-path i.cp-both::before, .compare-path i.cp-both::after {
  content: ""; position: absolute; top: 50%; width: 6px; height: 6px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted);
}
.compare-path i.cp-both::before { left: -1px; transform: translateY(-50%) rotate(-135deg); }
.compare-path i.cp-both::after { right: -1px; transform: translateY(-50%) rotate(45deg); }
.compare-path small { flex-basis: 100%; font-size: .8rem; font-weight: 400; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { background: var(--ice); }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

/* Rate card: a volume ladder. Bar length is the band's ceiling relative to 300 loans. */
.rate-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.rate-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 20px 28px; }
.rate-row + .rate-row { border-top: 1px solid var(--line); }
.rate-head { padding: 14px 28px; background: var(--navy); }
.rate-head > span { font-family: var(--display); font-stretch: 120%; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--white); }
.rate-volume { display: grid; gap: 9px; color: var(--ink); font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: 1.02rem; letter-spacing: -.005em; }
.rate-bar { display: block; height: 4px; width: var(--w); min-width: 12px; border-radius: 2px; background: var(--navy); }
.rate-bar-open { background: linear-gradient(90deg, var(--navy) 55%, rgba(0, 47, 121, 0)); }
.rate-price { display: flex; align-items: baseline; gap: 4px; justify-content: flex-end; white-space: nowrap; }
.rate-price b { font-family: var(--mono); font-weight: 500; font-size: 1.5rem; letter-spacing: -.01em; color: var(--ink); line-height: 1; }
.rate-price b.is-free { color: var(--green-deep); }
.rate-price small { font-size: .84rem; color: var(--muted); }
.rate-enterprise { background: var(--ice); }
.rate-enterprise .rate-price { gap: 14px; }
.rate-enterprise .rate-price b { font-family: var(--display); font-stretch: 110%; font-weight: 650; font-size: 1.05rem; color: var(--ink); }
.rate-enterprise .rate-price a { font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: .95rem; color: var(--navy); text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.rate-enterprise .rate-price a:hover { color: var(--navy-deep); }

.pricing-includes { display: grid; gap: 18px; padding-top: 6px; }
.pricing-includes h3 { font-family: var(--display); font-stretch: 122%; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); font-weight: 650; }
/* One item per line: eight aligned rows that end close to the card's bottom edge. */
.includes-list { list-style: none; display: grid; gap: 9px; }
.includes-list li { position: relative; padding-left: 22px; font-size: 1rem; color: var(--ink); font-weight: 500; }
.includes-list li::before {
  content: ""; position: absolute; left: 1px; top: .55em; width: 11px; height: 6px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.pricing-includes .strong { padding-top: 6px; border-top: 1px solid var(--line-strong); }
.pricing-includes .button { justify-self: start; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq .section-head { margin-bottom: 0; }
.faq .section-head .button { margin-top: 8px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; color: var(--ink); font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: 1.05rem; letter-spacing: -.005em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px;
  background: linear-gradient(var(--navy), var(--navy)) center/100% 2px no-repeat, linear-gradient(var(--navy), var(--navy)) center/2px 100% no-repeat;
  transition: transform .2s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-answer { display: grid; gap: 12px; padding: 0 0 24px; max-width: 60ch; }
.faq-answer p { margin: 0; }
.faq-answer ul { list-style: none; display: grid; gap: 6px; padding: 2px 0; }
.faq-answer li { position: relative; padding-left: 22px; }
.faq-answer li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 2px; background: var(--green); }

/* ---------- Closing CTA + demo booking ---------- */
.closing { padding: clamp(72px, 9vw, 128px) 0; background: var(--navy); color: rgba(255, 255, 255, .82); position: relative; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background: linear-gradient(90deg, var(--blue) 0 50%, var(--green) 50% 100%);
}
.closing-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.closing-statement { display: grid; gap: 6px; margin-bottom: 26px; font-size: clamp(1.7rem, 2.9vw, 2.5rem); }
.closing-statement .line { display: block; }
.line-blue { color: #8FB4F2; }
.line-green { color: #7ED66F; }
.line-white { color: var(--white); }
.closing .strong { color: var(--white); }
.closing-contact { margin-top: 26px; font-size: .95rem; color: rgba(255, 255, 255, .7); }
.closing-contact a { color: var(--white); }
.closing-cta {
  display: grid; gap: 14px; justify-items: start;
  padding: 30px 30px 26px; background: var(--white); color: var(--text); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.closing-cta h3 { color: var(--ink); }
.closing-cta p { font-size: .98rem; color: var(--text); }
.closing-cta .button { width: 100%; }
.cta-fine { font-size: .82rem; color: var(--muted); justify-self: center; }

/* ---------- Footer ----------
   Structure follows oncyberlink.com (company, account, contact, product; trademark line;
   copyright bar) in eRAMP Connect colors: deep navy ground, white text, green headings. */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .72); font-size: .93rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, .7fr); gap: 40px;
  padding: 56px 0 40px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand img { height: 46px; width: auto; margin-bottom: 18px; padding: 8px 12px; background: var(--white); border-radius: var(--radius); }
.footer-brand p { max-width: 36ch; color: var(--white); font-weight: 500; }
.footer-brand address { margin-top: 14px; font-style: normal; line-height: 1.7; color: rgba(255, 255, 255, .72); }
.footer-phone { display: block; margin-top: 6px; }
.footer-phone a { font-family: var(--mono); font-size: .95em; }
.footer-col h4 { margin-bottom: 14px; font-family: var(--display); font-stretch: 120%; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col li { display: grid; }
.footer-col li span { font-size: .76rem; color: rgba(255, 255, 255, .55); }
.footer-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 40px; flex-wrap: wrap; padding: 26px 0 30px; }
.footer-trademarks { max-width: 78ch; font-size: .8rem; line-height: 1.6; color: rgba(255, 255, 255, .55); flex: 1 1 480px; }
.footer-social { list-style: none; display: flex; gap: 10px; flex: 0 0 auto; }
.footer-social a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .1); color: var(--white); transition: background .18s var(--ease);
}
.footer-social a:hover { background: var(--green); text-decoration: none; }
.footer-bar { background: #00123A; }
.footer-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding: 16px 0; font-size: .8rem; color: rgba(255, 255, 255, .6); }
.footer-bar-inner p { margin: 0; }
.footer-legal-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-legal-links a {
  color: rgba(255, 255, 255, .8); white-space: nowrap;
  font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: .8rem; letter-spacing: .01em;
}
.footer-legal-links a[aria-current="page"] { color: var(--white); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; }

/* ---------- Legal pages (terms.html) ----------
   A document, not a landing page: one measure, generous leading, the
   document's own section numbers, and a sticky table of contents whose
   rule runs navy to green like the heritage timeline. */
.legal-head { padding: clamp(44px, 6vw, 80px) 0 0; background: var(--ice); }
.legal-head .shell { padding-bottom: clamp(32px, 4vw, 48px); }
.legal-head h1 { max-width: 22ch; font-size: clamp(2rem, 3.4vw, 3rem); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 26px 0 0; }
.legal-meta div { display: grid; gap: 4px; }
.legal-meta dt { font-family: var(--display); font-stretch: 120%; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.legal-meta dd { margin: 0; font-family: var(--mono); font-size: .95rem; color: var(--ink); }

.legal-grid {
  display: grid; grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px);
  align-items: start; padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 112px);
}

.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc-title { margin-bottom: 14px; font-family: var(--display); font-stretch: 120%; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--navy); }
.toc-list { list-style: none; position: relative; display: grid; padding-left: 18px; }
.toc-list::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 1px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy) 60%, var(--green) 100%);
  opacity: .28;
}
.toc-list li { position: relative; }
.toc-list a {
  display: grid; grid-template-columns: 2ch 1fr; gap: 10px; align-items: baseline;
  padding: 6px 0 6px 8px; color: var(--muted); text-decoration: none; font-size: .88rem; line-height: 1.4;
  transition: color .15s;
}
.toc-num { font-family: var(--mono); font-size: .78rem; color: var(--muted); text-align: right; }
.toc-list a:hover { color: var(--ink); }
.toc-list a.is-active { color: var(--ink); font-weight: 500; }
.toc-list a.is-active .toc-num { color: var(--navy); }
.toc-list a.is-active::before {
  content: ""; position: absolute; left: -18px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: var(--navy);
}

.legal-body { max-width: 68ch; }
.legal-body p { line-height: 1.7; }
.legal-body a { color: var(--navy); }

.legal-notice { margin-bottom: clamp(36px, 4vw, 52px); padding: 24px 26px; border-left: 3px solid var(--navy); background: var(--ice); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.legal-notice h2 { margin-bottom: 12px; font-size: 1.1rem; font-stretch: 110%; color: var(--navy); }
.legal-notice p { font-size: .98rem; color: var(--ink); }

.legal-section { padding-top: 12px; }
.legal-section + .legal-section { margin-top: clamp(36px, 4vw, 52px); }
.legal-section h2 { display: flex; gap: 14px; align-items: baseline; margin-bottom: 16px; font-size: clamp(1.35rem, 2vw, 1.6rem); text-wrap: pretty; }
.sec-num { flex: 0 0 auto; font-family: var(--mono); font-weight: 500; font-size: .8em; color: var(--navy); letter-spacing: 0; }
.legal-section h3 { margin: 24px 0 8px; font-size: 1.02rem; color: var(--ink); }
.legal-list { list-style: none; display: grid; gap: 8px; margin: 0 0 1em; }
.legal-list li { position: relative; padding-left: 22px; line-height: 1.6; }
.legal-list li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 2px; background: var(--green); }
.legal-caps { font-size: .93rem; letter-spacing: .01em; color: var(--ink); }
.legal-address { margin-top: 6px; padding: 20px 22px; font-style: normal; line-height: 1.6; color: var(--ink); background: var(--ice); border-radius: var(--radius-lg); border-top: 3px solid var(--green); }
.legal-address strong { display: block; margin-bottom: 4px; font-family: var(--display); font-stretch: 110%; font-weight: 650; }
.addr-row { display: flex; gap: 12px; margin-top: 4px; }
.addr-row > span:first-child { min-width: 5.5ch; font-size: .78rem; color: var(--muted); align-self: center; }
.legal-end { margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--line); font-size: .9rem; }
.legal-end a { color: var(--muted); text-decoration: none; font-family: var(--display); font-stretch: 108%; font-weight: 600; }
.legal-end a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
/* Only hide-before-reveal when JS is running; content is always readable without it. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tabs { grid-template-columns: 1fr; }
  .tablist { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .tablist [role="tab"] { border-left: 0; border-top: 3px solid rgba(255, 255, 255, .14); border-radius: 0 0 var(--radius) var(--radius); }
  .tablist [role="tab"][aria-selected="true"] { border-top-color: var(--green); }
  .tablist [role="tab"] span { display: none; }
}
@media (max-width: 960px) {
  .hero-grid, .heritage-grid, .faq-grid, .closing-grid { grid-template-columns: 1fr; }
  .why-grid, .pricing-grid { grid-template-columns: 1fr; }
  .flow-compare { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-visual { padding-top: 8px; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: grid; gap: 4px; position: absolute; top: var(--header-h); left: 0; right: 0;
    padding: 12px 24px 20px; background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(11, 31, 63, .3);
  }
  .site-nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--ice-2); font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 32px, var(--shell)); }
  .header-actions .button { display: none; }
  .cd-link { height: 96px; }
  .cd-link-label { max-width: 18ch; font-size: .8rem; }
  .cd-node strong { font-size: 1.25rem; }
  .stage { min-height: 0; }
  .stage-flow { grid-template-columns: 1fr; justify-items: start; gap: 10px; }
  .st-hub { width: 100%; }
  .st-link { width: 3px; height: 44px; margin-left: 20px; background-size: 3px 18px; animation-name: link-flow-v; }
  .st-link-blue { background-image: repeating-linear-gradient(180deg, var(--navy) 0 9px, transparent 9px 18px); }
  .st-link-green { background-image: repeating-linear-gradient(180deg, var(--green) 0 9px, transparent 9px 18px); }
  .st-link::after { right: auto; top: auto; bottom: -2px; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-width: 9px; }
  .st-link-blue::after { border-left-color: transparent; border-top-color: var(--navy); }
  .st-link-green::after { border-left-color: transparent; border-top-color: var(--green); }
  @keyframes link-flow-v { to { background-position: 0 18px; } }
  .stage-lanes { grid-template-columns: 1fr; }
  .tablist { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > span:first-child { border-right: 0; }
  .compare-head { display: none; }
  .compare-row > span { padding: 14px 18px; }
  .rate-row { padding: 16px 18px; gap: 16px; }
  .rate-head { padding: 12px 18px; }
  .rate-price b { font-size: 1.3rem; }
  .rate-enterprise .rate-price { flex-direction: column; align-items: flex-end; gap: 4px; }
  .stage-flow-2 { grid-template-columns: 1fr; }
  .stage-flow-2 .st-hub { justify-self: stretch; }
  .st-link-both { width: 3px; height: 44px; }
  .st-link-both::before { left: 50%; top: -2px; transform: translateX(-50%); border: 6px solid transparent; border-top: 0; border-bottom-width: 9px; }
  .st-link-green.st-link-both::before { border-right-color: transparent; border-bottom-color: var(--green); }
  .header-login { font-size: .84rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
  .footer-meta { flex-direction: column; padding-bottom: 26px; }
  .footer-trademarks { flex-basis: auto; }
  .footer-bar-inner { flex-direction: column; align-items: flex-start; }
}

/* Legal page: table of contents stacks above the document on narrow screens */
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 36px; }
  .toc { position: static; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .toc-list { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .toc-list a.is-active::before { display: none; }
}
@media (max-width: 560px) {
  .toc-list { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .logo-marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 12px; }
  .logo-item[aria-hidden="true"] { display: none; }
  .logo-marquee { mask-image: none; -webkit-mask-image: none; }
  .cd-line-main, .cd-line-return, .st-link { animation: none; }
  .button, .site-nav a::after, .faq-list summary::after { transition: none; }
}
