/* ==========================================================================
   Genprosys Grow — minimal light UI
   One accent, hairline rules, flat surfaces. No decorative gradients.
   ========================================================================== */

:root {
  /* Ink */
  --ink: #0B0B0F;
  --ink-2: #3C3C43;
  --muted: #6E6E76;
  --muted-2: #8E8E96;

  /* Surface */
  --bg: #FFFFFF;
  --bg-2: #F5F5F7;
  --bg-3: #FAFAFB;
  --line: #E5E5E9;
  --line-2: #D6D6DC;

  /* Accent — the only chromatic colour in the UI */
  --accent: #0B5FFF;
  --accent-dark: #0947C4;
  --accent-tint: #EEF3FF;

  /* Data-only semantics */
  --neg: #B3261E;
  --neg-tint: #FBEFEE;

  --shadow-sm: 0 1px 2px rgba(11, 11, 15, 0.04);
  --shadow-md: 0 8px 28px rgba(11, 11, 15, 0.07);
  --shadow-lg: 0 24px 64px rgba(11, 11, 15, 0.10);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --pill: 980px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1120px;
  --narrow: 760px;
  --header-h: 60px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Anchors must clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 1.25rem); }

a, button { -webkit-tap-highlight-color: rgba(11, 95, 255, 0.12); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: inherit;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p { margin: 0 0 1rem; }
strong { color: var(--ink); font-weight: 600; }

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

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: var(--narrow); }

.skip-link {
  position: absolute;
  left: -999px;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding: 0.75rem 1.35rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }
.btn:active { transform: scale(0.97); }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-dark); color: #fff !important; }

.btn-secondary {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line-2);
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink) !important; }

.btn-ghost { background: transparent; color: var(--muted) !important; border-color: var(--line); }
.btn-ghost:hover { color: var(--ink) !important; border-color: var(--line-2); }

/* Quiet inline link CTA */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
}
.link-cta::after { content: "›"; font-size: 1.1em; line-height: 1; transition: transform 0.2s var(--ease); }
.link-cta:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
.logo-mark svg { width: 26px; height: 26px; }
.logo-mark rect { fill: var(--accent); }
.logo-mark .lm-edge { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: 0.75; }
.logo-mark .lm-node { fill: #fff; }
.logo-type {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo-type-alt { color: var(--muted); font-weight: 500; margin-left: 0.28em; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-inline: auto;
}
.nav a {
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 0;
  background: transparent;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 6rem 0; }
.section.tight { padding: 4rem 0; }
.section.alt { background: var(--bg-2); }
.section.ink { background: var(--ink); }

.section-head { max-width: 620px; margin-bottom: 3rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  margin-bottom: 0.6rem;
}
.section-head p { font-size: 1.0625rem; color: var(--muted); margin-bottom: 0; }
.section-head.center p { margin-inline: auto; }

.section-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.9rem;
}
.section-kicker.blue { color: var(--accent); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: clamp(4rem, 9vw, 7rem) 0 3rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.05;
  margin-bottom: 1.1rem;
  max-width: 16ch;
  margin-inline: auto;
}
.hero-lead {
  font-size: clamp(1.0625rem, 1.8vw, 1.3125rem);
  color: var(--muted);
  max-width: 38ch;
  margin: 0 auto 2rem;
  letter-spacing: -0.01em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}
/* Primary button, then the quiet link centred on its own line beneath it */
.hero-cta.stacked {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1.1rem;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  text-align: center;
}
.hero-cta.stacked .btn {
  min-width: 13rem;
  width: 100%;
  box-sizing: border-box;
}
/* Match button width so the label sits dead-centre under "Book a demo" */
.hero-cta.stacked .link-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
/* Balance the trailing › so the words themselves look centred under the button */
.hero-cta.stacked .link-cta::before {
  content: "›";
  visibility: hidden;
  font-size: 1.1em;
  line-height: 1;
}
.hero-note {
  font-size: 0.8125rem;
  color: var(--muted-2);
  margin: 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  white-space: nowrap;
  max-width: 100%;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip > div {
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat-strip > div:first-child { border-left: 0; }
.stat-strip .s-num {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-strip .s-label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   Pipeline — node graph
   -------------------------------------------------------------------------- */
.pipe {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
}

.pipe-figure { display: block; width: 100%; height: auto; }
.pipe-figure text {
  font-family: var(--font);
  fill: var(--muted);
  letter-spacing: -0.01em;
}

/* Edges */
.pipe-figure .e {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}
.pipe-figure .ep {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-dasharray: 16 1000;
  stroke-dashoffset: 1016;
  opacity: 0;
}
.pipe-figure .edge.is-flowing .e { stroke: var(--line-2); }
.pipe-figure .edge.is-flowing .ep {
  opacity: 1;
  animation: pipe-flow 1.6s linear infinite;
}

@keyframes pipe-flow {
  from { stroke-dashoffset: 1016; }
  to { stroke-dashoffset: 0; }
}

/* Nodes */
.pipe-figure .node rect {
  fill: var(--bg);
  stroke: var(--line);
  stroke-width: 1.5;
  transition: stroke 0.45s var(--ease), fill 0.45s var(--ease);
}
.pipe-figure .node .n-title {
  fill: var(--muted-2);
  font-size: 13px;
  font-weight: 500;
  transition: fill 0.45s var(--ease);
}
.pipe-figure .pipe-step-num {
  fill: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.55;
  transition: fill 0.45s var(--ease), opacity 0.45s var(--ease);
}
.pipe-figure .pipe-step-num.is-on { fill: var(--accent); opacity: 1; }

.pipe-figure .node.is-on rect { stroke: var(--accent); fill: var(--accent-tint); }
.pipe-figure .node.is-on .n-title { fill: var(--ink); font-weight: 600; }

.pipe-figure .node.out-parked.is-on rect { stroke: var(--line-2); fill: var(--bg-2); }
.pipe-figure .node.out-parked.is-on .n-title { fill: var(--muted); }
.pipe-figure .edge.to-parked.is-flowing .ep { stroke: var(--muted-2); opacity: 0.55; }

/* Caption + stage selector */
.pipe-caption {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  min-height: 3.5rem;
}
.pipe-caption .pc-num {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.pipe-caption .pc-title { color: var(--ink); font-weight: 600; letter-spacing: -0.015em; }
.pipe-caption .pc-desc { color: var(--muted); font-size: 0.9375rem; margin: 0.15rem 0 0; }

.pipe-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
  justify-content: center;
}
.pipe-stage {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--pill);
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.pipe-stage:hover { color: var(--ink); border-color: var(--line-2); }
.pipe-stage[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pipe-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* Mobile vertical chain */
.pipe-chain { display: none; }
.pipe-chain-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.85rem;
  position: relative;
  padding-bottom: 1.5rem;
}
.pipe-chain-item:last-child { padding-bottom: 0; }
.pipe-chain-item::before {
  content: "";
  position: absolute;
  left: 13.5px;
  top: 28px;
  bottom: 0;
  width: 1.5px;
  background: var(--line);
}
.pipe-chain-item:last-child::before { display: none; }
.pipe-chain-item::after {
  content: "";
  position: absolute;
  left: 13.5px;
  top: 28px;
  width: 1.5px;
  height: 0;
  background: var(--accent);
  transition: height 0.5s var(--ease);
}
.pipe-chain-item.is-on:not(:last-child)::after { height: calc(100% - 28px); }
.pipe-chain-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted-2);
  background: var(--bg);
  position: relative;
  z-index: 1;
  transition: all 0.35s var(--ease);
}
.pipe-chain-item.is-on .pipe-chain-dot {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.pipe-chain-body h3 { font-size: 0.9375rem; margin: 0.25rem 0 0.2rem; color: var(--muted); transition: color 0.35s var(--ease); }
.pipe-chain-item.is-on .pipe-chain-body h3 { color: var(--ink); }
.pipe-chain-body p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  opacity: 0.55;
  transition: opacity 0.35s var(--ease);
}
.pipe-chain-item.is-on .pipe-chain-body p { opacity: 1; }

/* The stage currently arriving gets a pulse */
.pipe-chain-item.is-current .pipe-chain-dot { animation: dot-pulse 1.9s var(--ease) infinite; }
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(11, 95, 255, 0.35); }
  70% { box-shadow: 0 0 0 12px rgba(11, 95, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 95, 255, 0); }
}
.pipe-figure .node.is-current rect { animation: node-pulse 1.9s var(--ease) infinite; }
@keyframes node-pulse {
  0%, 100% { stroke-width: 1.5; }
  50% { stroke-width: 2.6; }
}

/* Channel chips */
.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.channel-pill {
  padding: 0.4rem 0.9rem;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.channel-pill.is-live {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}
.card h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; }
.card p { font-size: 0.9375rem; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.section.alt .card { background: var(--bg); border-color: transparent; }

.card-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: var(--bg-3);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

/* Numbered step list */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.steps > div {
  padding: 0 2rem;
  border-left: 1px solid var(--line);
}
.steps > div:first-child { padding-left: 0; border-left: 0; }
.steps > div:last-child { padding-right: 0; }
.steps .st-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.steps h3 { font-size: 1.125rem; margin-bottom: 0.4rem; }
.steps p { font-size: 0.9375rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   Problem / funnel
   -------------------------------------------------------------------------- */
.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.funnel { display: flex; flex-direction: column; gap: 1.25rem; }
.funnel-row { display: grid; gap: 0.4rem; }
.funnel-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.875rem;
}
.funnel-label { color: var(--muted); }
.funnel-value { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.funnel-track {
  height: 8px;
  border-radius: var(--pill);
  background: var(--bg-2);
  overflow: hidden;
}
.section.alt .funnel-track { background: #E9E9ED; }
.funnel-fill {
  width: 0;
  height: 100%;
  border-radius: var(--pill);
  background: var(--muted-2);
  transition: width 0.9s var(--ease);
}
.funnel-fill.is-accent { background: var(--accent); }
.funnel-fill.is-neg { background: var(--neg); opacity: 0.55; }

/* --------------------------------------------------------------------------
   Stats / questions
   -------------------------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.stat-box {
  padding: 1rem 1.1rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--bg);
}
.stat-box .num {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}
.stat-box.danger .num { color: var(--neg); }
.stat-box.ok .num { color: var(--accent); }
.stat-box .label { font-size: 0.8125rem; color: var(--muted); margin-top: 0.2rem; }

.q-list { display: grid; gap: 0; }
.q-item {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.q-item:last-child { border-bottom: 0; }
.q-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 1rem;
}
.q-item.ok span { color: var(--accent); }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.pill.strong { border-color: var(--line-2); color: var(--ink); }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* --------------------------------------------------------------------------
   Industries
   -------------------------------------------------------------------------- */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.vertical-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  background: var(--bg);
  color: inherit;
  min-height: 170px;
  transition: background 0.2s var(--ease);
}
.vertical-card:hover { background: var(--bg-3); color: inherit; }
.vertical-card .v-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.vertical-card h3 { font-size: 0.9375rem; margin: 0; }
.vertical-card p { font-size: 0.8125rem; color: var(--muted); margin: 0; flex: 1; line-height: 1.45; }
.vertical-card .more { font-size: 0.8125rem; font-weight: 500; color: var(--accent); }
.vertical-card.featured .v-icon { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --------------------------------------------------------------------------
   Lender examples
   -------------------------------------------------------------------------- */
.sub-head {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 4rem 0 1.5rem;
}

.micro-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.55rem;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.scenario {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  padding: 1.5rem;
}
.scenario-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.scenario-head h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.scenario-source {
  font-size: 0.8125rem;
  color: var(--muted-2);
  margin: 0.2rem 0 1.25rem;
}
.scenario-body {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  flex: 1;
}
.scenario-asks { display: grid; gap: 0.5rem; }
.scenario-asks li {
  position: relative;
  font-size: 0.875rem;
  color: var(--ink-2);
  padding-left: 1.1rem;
  line-height: 1.4;
}
.scenario-asks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line-2);
}
.scenario-foot {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.scenario-foot p { font-size: 0.875rem; color: var(--muted); margin: 0; line-height: 1.5; }

.verdict {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.verdict.is-pass { color: var(--accent); border-color: var(--accent); background: var(--accent-tint); }
.verdict.is-park { color: var(--muted); background: var(--bg-2); }

/* Mock CRM record panel */
.record-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  overflow: hidden;
  margin-top: 1.25rem;
}
.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}
.record-id {
  min-width: 0;
}
.record-id strong {
  display: block;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.record-sub {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted-2);
  overflow-wrap: anywhere;
}

.record-list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.record-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
/* Hairline between the two columns, none on the outer edge */
.record-list > div:nth-child(odd) { border-right: 1px solid var(--line); }
.record-list dt {
  font-size: 0.8125rem;
  color: var(--muted);
  flex-shrink: 0;
}
.record-list dd {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}

.record-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: var(--bg-3);
}
.record-foot .calc-disclaimer { margin: 0; max-width: 62ch; }

/* --------------------------------------------------------------------------
   Calculator
   -------------------------------------------------------------------------- */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.calc-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  background: var(--bg);
}
.calc-panel h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.5rem;
}
.field { margin-bottom: 1.5rem; }
.field:last-of-type { margin-bottom: 0; }
.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.field label output {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--pill);
  background: var(--line);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 4px rgba(11, 11, 15, 0.18);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 4px rgba(11, 11, 15, 0.18);
  cursor: pointer;
}

.calc-results { display: grid; gap: 0; }
.result-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.result-box:last-child { border-bottom: 0; }
.result-box .r-label { font-size: 0.875rem; color: var(--muted); }
.result-box .r-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.result-box .r-note { font-size: 0.75rem; color: var(--muted-2); margin-top: 0.15rem; }
.result-box.highlight {
  margin-top: 0.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  background: var(--accent-tint);
  align-items: center;
}
.result-box.highlight .r-value { font-size: 1.5rem; color: var(--accent); }
.result-box.highlight .r-label { color: var(--ink); font-weight: 500; }

.calc-disclaimer {
  font-size: 0.8125rem;
  color: var(--muted-2);
  margin: 1.25rem 0 0;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  background: var(--bg);
}
.price-card.recommended { border-color: var(--ink); }
.price-badge {
  position: absolute;
  top: -0.7rem;
  left: 1.75rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--pill);
}
.price-card h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.price-amount {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.price-amount span { font-size: 0.9375rem; font-weight: 400; color: var(--muted); letter-spacing: -0.01em; }
.price-card .blurb { font-size: 0.9375rem; color: var(--muted); }
.price-card ul { margin: 1.25rem 0 1.75rem; display: grid; gap: 0.6rem; flex: 1; }
.price-card li {
  font-size: 0.875rem;
  color: var(--ink-2);
  padding-left: 1.4rem;
  position: relative;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 10px; height: 5px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.compare-wrap {
  margin-top: 3rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 0.875rem; }
.compare-table th, .compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}
.compare-table th { color: var(--ink); font-weight: 600; font-size: 0.8125rem; }
.compare-table td:first-child { color: var(--ink-2); }
.compare-table th.rec, .compare-table td.rec { background: var(--bg-3); color: var(--ink); }
.compare-table tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { padding: 0 0 6rem; }
.cta-panel {
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}
.cta-panel h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  margin-bottom: 0.75rem;
}
.cta-panel p { color: rgba(255, 255, 255, 0.65); max-width: 44ch; margin: 0 auto 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.cta-panel .btn-secondary { color: #fff !important; border-color: rgba(255, 255, 255, 0.28); }
.cta-panel .btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

/* Platform note */
.platform-band {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  background: var(--bg);
}
.platform-band p { margin: 0; color: var(--muted); font-size: 0.9375rem; max-width: 62ch; }

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.035em; margin-bottom: 0.5rem; }
.page-hero p { color: var(--muted); font-size: 1.0625rem; max-width: 52ch; margin: 0; }

.legal-content { padding: 3rem 0 5rem; max-width: 700px; font-size: 0.9375rem; }
.legal-content h2 { font-size: 1.125rem; margin-top: 2.5rem; margin-bottom: 0.6rem; }
.legal-content ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 1rem; color: var(--muted); }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content p { color: var(--muted); }

.v-hero { padding: clamp(3rem, 7vw, 5rem) 0 2.5rem; }
.v-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin-bottom: 1rem;
}
.v-detail { display: grid; gap: 1.5rem; }
.v-detail-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.v-detail-card.featured-detail { border-color: var(--ink); }
.v-detail-card h2 { font-size: 1.375rem; margin-bottom: 0.75rem; }
.v-detail-card p { font-size: 0.9375rem; color: var(--muted); }
.v-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.v-meta .v-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 3rem 0 1.5rem; }
.contact-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.contact-card h2 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.contact-card p { font-size: 0.9375rem; color: var(--muted); }
.contact-card dl { margin: 0; }
.contact-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  font-weight: 600;
  margin-top: 1.25rem;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0.2rem 0 0; color: var(--ink); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: 0.875rem; max-width: 30ch; margin: 0 0 1rem; }
.site-footer h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1rem;
}
.site-footer li { margin-bottom: 0.6rem; }
.site-footer li a { color: var(--ink-2); font-size: 0.875rem; }
.site-footer li a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.footer-bottom p { font-size: 0.75rem; color: var(--muted-2); margin: 0 0 0.4rem; }
.footer-bottom p:last-child { margin-bottom: 0; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 200;
  max-width: 640px;
  margin-inline: auto;
}
.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.cookie-inner strong { font-size: 0.9375rem; }
.cookie-inner p { margin: 0.2rem 0 0; font-size: 0.8125rem; color: var(--muted); }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; will-change: auto; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .nav-cta {
    display: inline-flex;
    margin-top: 1rem;
    border-bottom: 0;
    padding: 0.8rem 1.35rem;
    color: #fff;
    font-size: 0.9375rem;
  }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }

  .problem-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .calc-layout { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; gap: 1rem; }
  .sub-head { margin-top: 3rem; }
  .cards-3, .steps { grid-template-columns: 1fr; }
  .steps > div { padding: 1.5rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps > div:first-child { padding-top: 0; border-top: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .vertical-grid { grid-template-columns: repeat(2, 1fr); }
  .v-detail-card { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .pipe-figure, .pipe-caption, .pipe-controls { display: none; }
  .pipe-chain { display: block; }
  .pipe-stages { display: none; }
  .pipe { padding: 1.5rem 1.35rem; }
}

@media (max-width: 700px) {
  :root { --header-h: 56px; }

  body { font-size: 16px; }
  .container { width: min(100% - 2rem, var(--container)); }

  .section { padding: 3.5rem 0; }
  .section.tight { padding: 2.5rem 0; }
  .section-head { margin-bottom: 2rem; }

  /* Hero */
  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.75rem); max-width: 14ch; }
  .hero-lead { font-size: 1.0625rem; max-width: 34ch; margin-bottom: 1.75rem; }
  /* Keep eyebrow on a single line; scale type slightly so it fits narrow screens */
  .eyebrow {
    font-size: clamp(0.625rem, 2.85vw, 0.75rem);
    padding: 0.28rem 0.65rem 0.28rem 0.5rem;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 100%;
  }
  .eyebrow .dot { width: 5px; height: 5px; }
  .hero-cta.stacked {
    gap: 0.9rem;
    width: min(100%, 22rem);
  }
  .hero-cta.stacked .btn { width: 100%; max-width: none; }

  .cards-2, .cards-3 { grid-template-columns: 1fr; gap: 1rem; }
  .card { padding: 1.35rem; }

  /* Stats as a 2×2 square grid */
  .stat-strip {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .stat-strip > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.35rem 0.85rem;
    aspect-ratio: 1;
    min-height: 0;
    border-left: 1px solid var(--line);
    border-top: 0;
  }
  .stat-strip > div:nth-child(odd) { border-left: 0; }
  .stat-strip > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat-strip .s-num { font-size: 1.65rem; }
  .stat-strip .s-label {
    font-size: 0.75rem;
    line-height: 1.3;
    max-width: 16ch;
  }

  .vertical-grid { grid-template-columns: 1fr; }
  .vertical-card { min-height: 0; padding: 1.25rem; }

  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .contact-card, .calc-panel, .price-card, .scenario { padding: 1.35rem; }

  /* Lead example: single-column stack (no horizontal scroll) */
  .record-head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
  }
  .record-head .verdict { flex-shrink: 0; }
  .record-list {
    grid-template-columns: 1fr;
  }
  .record-list > div {
    padding: 0.8rem 1.15rem;
    border-right: 0 !important;
  }
  .record-list > div:nth-child(odd) { border-right: 0; }
  .record-list dt,
  .record-list dd {
    font-size: 0.8125rem;
  }
  .record-foot {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.15rem;
  }
  .v-detail-card { padding: 1.35rem; }
  .platform-band { padding: 1.35rem; }

  .price-amount { font-size: 2.15rem; }
  .cta-band { padding-bottom: 3.5rem; }

  /* Scrollable tables keep a hint of the next column */
  .compare-wrap { border-radius: var(--r); }
  .compare-table { min-width: 560px; font-size: 0.8125rem; }
  .compare-table th, .compare-table td { padding: 0.8rem 0.9rem; }

  /* Channel chips scroll horizontally instead of wrapping into a block */
  .channels {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    margin-inline: -1rem;
    padding-inline: 1rem;
  }
  .channels::-webkit-scrollbar { display: none; }
  .channel-pill { flex: 0 0 auto; }

  .scenario-head h4 { font-size: 0.9375rem; }

  .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
  .cookie-inner { flex-direction: column; align-items: stretch; padding: 1rem; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }



  /* Touch feedback */
  .card:active, .vertical-card:active, .scenario:active { background: var(--bg-3); }
}

@media (max-width: 420px) {
  /* Keep stats as 2×2; only tighten type/padding on the narrowest phones */
  .stat-strip > div { padding: 1.1rem 0.65rem; }
  .stat-strip .s-num { font-size: 1.45rem; }
  .stat-strip .s-label { font-size: 0.7rem; max-width: 15ch; }
  .scenario-head { flex-direction: column; gap: 0.5rem; }
}

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