/* ============================================================
   Novel Funding - Homepage  (v2)
   Editorial, sharp-cornered, warm cream + navy.
   Type: Manrope. Brand orange #F47B20, blue #1E78C8.
   ============================================================ */

:root {
  /* brand - pulled from updated logo */
  --orange: #F07020;
  --orange-600: #D45E12;
  --orange-700: #A8480A;
  --orange-50: #FCE6D5;
  --blue: #005898;
  --blue-700: #004577;
  --blue-50: #DDE8F2;

  /* warm neutrals - very light, no beige */
  --cream: #FBF8F2;
  --cream-2: #F5F0E5;
  --cream-3: #ECE5D2;
  --paper: #FFFFFF;
  --navy: #0B2540;
  --navy-2: #122E4D;
  --ink: #14181F;
  --ink-2: #4A5562;
  --ink-3: #717C8A;
  --border: #ECE5D2;
  --border-strong: #D8CFB8;
  --border-paper: #F0EADB;

  --shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.05);
  --shadow-md: 0 8px 24px rgba(20, 24, 31, 0.07);
  --shadow-lg: 0 24px 50px rgba(20, 24, 31, 0.10);

  /* sharp */
  --r-xs: 2px;
  --r: 3px;
  --r-md: 4px;
  --r-lg: 6px;

  --container: 1480px;
  --container-wide: 1640px;
}

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

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
/* Subtle paper-grain texture overlay - kept very faint */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.48  0 0 0 0 0.35  0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 2; }

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
.container.wide { max-width: var(--container-wide); }

/* ------------------------ Buttons ------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: none;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-orange {
  background: var(--orange);
  color: #fff;
}
.btn-orange:hover { background: var(--orange-600); color: #fff; box-shadow: 0 4px 14px rgba(240,112,32,0.28); }
.btn-orange:active { background: var(--orange-700); box-shadow: none; }
.btn-blue {
  background: var(--blue); color: #fff;
}
.btn-blue:hover { background: var(--blue-700); color: #fff; box-shadow: 0 4px 14px rgba(0,88,152,0.25); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-block { width: 100%; height: 56px; font-size: 16px; }
.btn .arrow { display: inline-flex; transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ------------------------ Top utility bar ------------------------ */
.topbar {
  background: var(--navy);
  color: #E8E2D2;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.topbar .left { display: flex; align-items: center; gap: 10px; }
.topbar .left svg { color: var(--orange); }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.topbar a svg { color: var(--orange); }
.topbar a:hover { color: var(--orange); }

/* ------------------------ Nav ------------------------ */
.nav {
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.nav .logo { flex-shrink: 0; }
.nav .logo img { height: 40px; width: auto; max-width: none; display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 6px 0;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--blue); }
.nav .nav-cta { display: flex; align-items: center; gap: 20px; }
.nav .phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}
.nav .phone-link svg { color: var(--blue); }
.hamburger {
  display: none;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-xs);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--ink);
}

/* ============================================================
   HERO - unified surface with soft atmospheric gradient, floating form card
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 700px at 88% -10%, rgba(240, 112, 32, 0.09), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(0, 88, 152, 0.07), transparent 65%),
    linear-gradient(180deg, #FFFCF5 0%, var(--cream) 60%, #F6F1E6 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: start;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 56px max(40px, calc((100vw - var(--container-wide)) / 2 + 40px)) 80px;
}
.hero-left {
  position: relative;
  padding-top: 24px;
}
/* Decorative orange tick under headline area */
.hero-left::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -28px;
  width: 88px;
  height: 3px;
  background: var(--orange);
  display: none;
}

.hero-right {
  display: flex;
  align-items: center;
}
.hero-right-inner {
  width: 100%;
  max-width: 620px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px 36px 32px;
  box-shadow: 0 1px 0 rgba(20,24,31,0.04), 0 24px 60px -20px rgba(20, 24, 31, 0.18), 0 8px 24px -12px rgba(20,24,31,0.08);
  position: relative;
}
.hero-right-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 88px;
  height: 3px;
  background: var(--orange);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--orange-700);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.hero h1 {
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 28px;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 .ink-accent {
  position: relative;
  white-space: nowrap;
  display: inline-block;
}
.hero h1 .ink-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 7 Q 50 2 100 6 T 198 5' stroke='%23F47B20' stroke-width='3' fill='none' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
}

.hero .sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 40px;
  text-wrap: pretty;
}

.trust-row {
  display: flex;
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-right: 24px;
}
.trust-item + .trust-item { padding-left: 24px; border-left: 1px solid var(--border); }
.trust-item .num {
  font-weight: 800;
  font-size: 36px;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.trust-item .lbl {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* ------------------------ Form ------------------------ */
.form-head { margin-bottom: 28px; }
.form-head h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  color: var(--ink);
}
.form-head p {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,88,152,.14);
}
.field input::placeholder { color: var(--ink-3); }

/* Invalid state - light rose fill + red border so the field stands
   out beyond the inline error text below it. Cleared the moment
   the user starts typing again (JS removes aria-invalid on input
   so the rule no longer matches). */
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  background: #FEF2F2;       /* rose-50 */
  border-color: #DC2626;     /* red-600 */
}
.field input[aria-invalid="true"]:focus,
.field select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(220,38,38,.18);
}

/* Pill-group invalid state - the urgency + TIB pill rows can't use
   aria-invalid on an <input>, so JS adds .pill-group-invalid to the
   group when no pill has been selected. Cleared on first pill click. */
.pill-group-invalid .pill {
  border-color: #DC2626;        /* red-600 */
  background: #FEF2F2;          /* rose-50 */
}
.pill-group-invalid .pill[aria-pressed="true"] {
  /* If somehow a pill IS pressed and we still flagged invalid (race
     or stale state), don't fight the pressed style - let the user
     see the selection clearly. */
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Headless address autocomplete dropdown. The input itself is a
   regular .field input (so browser autofill works); the dropdown
   is a sibling <ul> we render below it. See attachPlacesAutocomplete
   in index.html. */
.hero-acwrap { position: relative; }
.hero-ac-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 300px;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(20,24,31,0.10);
  font-family: inherit;
}
.hero-ac-item {
  padding: 10px 14px;
  cursor: pointer;
  color: var(--ink);
}
.hero-ac-item.highlighted,
.hero-ac-item:hover { background: var(--cream-2); }
.hero-ac-main { font-size: 15px; font-weight: 600; line-height: 1.3; }
.hero-ac-sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.3; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2314181F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

/* Slider */
.slider-wrap {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 18px 16px;
  margin-bottom: 14px;
}
.slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.slider-head .lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.slider-head .amt {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.slider-head .amt .cur { color: var(--ink-3); font-size: 18px; margin-right: 2px; }

input[type="range"].slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--blue) var(--pct, 25%), var(--border-strong) var(--pct, 25%));
  border-radius: 999px;
  outline: none;
}
input[type="range"].slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px var(--orange), 0 2px 6px rgba(240,112,32,.4);
  cursor: pointer;
}
input[type="range"].slider::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px var(--orange), 0 2px 6px rgba(240,112,32,.4);
  cursor: pointer;
}
.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 10px;
  font-weight: 600;
}

/* Pills */
.pill-row { margin-bottom: 14px; }
.pill-row > .lbl {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill-group { display: grid; gap: 8px; }
.pill-group.cols-4 { grid-template-columns: repeat(4, 1fr); }
.pill-group.cols-3 { grid-template-columns: repeat(3, 1fr); }
/* Inline pills - sized to live INSIDE a .field next to a text input,
   matching the input's 52px height. Used by the "In business 1+
   year?" Yes/No on step 1. */
.pill-group-inline {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.pill.pill-inline {
  height: 52px;
}
.pill {
  border: 1.5px solid var(--border-strong);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r);
  height: 48px;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
  line-height: 1.1;
}
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] {
  border-color: var(--orange);
  background: var(--orange-50);
  color: var(--orange-700);
}
.form-foot { margin-top: 14px; text-align: center; }
.form-foot .strong { display: block; color: var(--ink); font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.form-foot .muted { color: var(--ink-3); font-size: 15px; line-height: 1.5; }

/* Hero step pips (4 steps in the hero card before /apply) */
.step-pips { display: flex; gap: 8px; align-items: center; justify-content: flex-start; margin-bottom: 18px; }
.step-pip { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: background .15s ease, width .15s ease, border-radius .15s ease; }
.step-pip.done { background: var(--blue); }
.step-pip.active { background: var(--orange); width: 28px; border-radius: 4px; }

/* Hero stage swap-area (vanilla JS replaces innerHTML between steps) */
#heroStage { position: relative; }
#heroStage.is-transitioning { opacity: 0; transition: opacity .12s ease; }

/* Hero step kicker (small label above each morphed step's heading) */
.hero-step-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.16em; color: var(--orange-700); text-transform: uppercase; margin-bottom: 14px; }
.hero-step-kicker::before { content: ""; width: 24px; height: 2px; background: var(--orange); }

/* Google Places confirmation card (step 2 result) */
.gp-card { border: 1.5px solid var(--orange); background: var(--orange-50); border-radius: var(--r-md); padding: 16px; margin: 14px 0; display: flex; gap: 14px; align-items: flex-start; }
.gp-card .gp-thumb { width: 64px; height: 64px; border-radius: var(--r-md); background: #FFFCF5 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8480A' stroke-width='1.5'><path d='M3 21h18M5 21V7l7-4 7 4v14M9 9h.01M15 9h.01M9 13h.01M15 13h.01M9 17h.01M15 17h.01'/></svg>") center / 28px no-repeat; background-size: cover; flex-shrink: 0; }
.gp-card .gp-name { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 4px; letter-spacing: -0.01em; }
.gp-card .gp-meta { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.gp-card .gp-actions { display: flex; gap: 8px; margin-top: 14px; }
.gp-card .gp-actions .btn { flex: 1; height: 44px; font-size: 14px; }

/* Hero lookup spinner */
.gp-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--orange-50); border-top-color: var(--orange); border-radius: 50%; animation: gp-spin 0.7s linear infinite; vertical-align: middle; }
@keyframes gp-spin { to { transform: rotate(360deg); } }

/* "Already saved" reassurance line */
.hero-saved { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: #15803D; font-weight: 700; margin-bottom: 16px; }
.hero-saved::before { content: "✓"; display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; background: #DCFCE7; color: #15803D; border-radius: 50%; font-size: 11px; }

/* Hero handoff success state (step 4) */
.hero-handoff { text-align: center; padding: 12px 0 4px; }
.hero-handoff .check { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: var(--orange-50); color: var(--orange-700); border-radius: 50%; font-size: 24px; font-weight: 800; margin-bottom: 14px; }
.hero-handoff h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--ink); }
.hero-handoff p { color: var(--ink-2); font-size: 15px; margin: 0 auto 18px; max-width: 400px; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 88px 0; position: relative; }
.section.cream { background: var(--cream); }
.section.alt { background: var(--cream-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.navy { background: var(--navy); color: var(--cream); }
.section.navy .lead { color: rgba(232, 226, 210, 0.78); }
.section.paper { background: var(--paper); border-top: 1px solid var(--border-paper); border-bottom: 1px solid var(--border-paper); }

.section-head { margin-bottom: 64px; max-width: 820px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-kicker { justify-content: center; }
.section h2.heading {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 18px;
  text-wrap: balance;
}
.section.navy h2.heading { color: #fff; }
.section .lead {
  font-size: 20px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
  text-wrap: pretty;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-700);
  margin-bottom: 24px;
}
.section.navy .section-kicker { color: var(--orange); }
.section-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
}

/* ------------------------ Trust strip (navy editorial band) ------------------------ */
.trust-strip {
  background: var(--navy);
  color: var(--cream);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.trust-strip::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 8px 16px;
  border-left: 1px solid rgba(255,255,255,0.10);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
.stat:first-child { border-left: none; }
.stat .num {
  font-size: clamp(48px, 4.8vw, 72px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 14px;
  font-feature-settings: 'tnum';
}
.stat .num .accent { color: var(--orange); }
.stat .lbl {
  font-size: 13px;
  font-weight: 700;
  color: rgba(232, 226, 210, 0.78);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat-tagline {
  max-width: 920px;
  margin: 56px auto 0;
  color: rgba(232, 226, 210, 0.82);
  font-size: 19px;
  line-height: 1.6;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.10);
  text-align: center;
}
.stat-tagline strong { color: #fff; font-weight: 700; }

/* ------------------------ "Common reasons" - scrollable list panel ------------------------ */
.know-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}
.know-grid p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 20px;
}
.know-grid p:first-of-type {
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}

.reasons-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 1px 0 rgba(20,24,31,0.04), 0 12px 32px -12px rgba(20,24,31,0.12);
  height: 540px;
  max-height: 540px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.reasons-head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cream);
  flex-shrink: 0;
}
.reasons-head .count {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.reasons-head .count .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-right: 8px; vertical-align: 2px; }
.reasons-head .hint {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.reasons-list {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  position: relative;
}
.reasons-list::-webkit-scrollbar { width: 8px; }
.reasons-list::-webkit-scrollbar-track { background: var(--cream); }
.reasons-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.reasons-list::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

.reason-item {
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--border-paper);
  position: relative;
  transition: background .15s ease;
}
.reason-item:last-child { border-bottom: none; }
.reason-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.reason-item:nth-child(even)::before { background: var(--blue); }
.reason-item:hover { background: #FCFAF5; }
.reason-item:hover::before { transform: scaleY(1); }
.reason-item .icon {
  width: 38px; height: 38px;
  border-radius: var(--r-xs);
  background: var(--cream);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}
.reason-item .body { flex: 1; min-width: 0; }
.reason-item .head {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.3;
}
.reason-item .meta {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  line-height: 1.5;
}

/* Soft fade at top/bottom of the scroll area to hint scrollability */
.reasons-box::after {
  content: "";
  position: absolute;
  left: 1px; right: 9px; bottom: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--paper));
  pointer-events: none;
}

/* ------------------------ How it works ------------------------ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.how-card {
  background: var(--paper);
  border: 1px solid var(--border-paper);
  border-radius: var(--r);
  padding: 40px;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.how-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.how-card .step {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.18em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--orange);
}
.how-card h3 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}
.how-card p { font-size: 17px; color: var(--ink-2); line-height: 1.6; margin: 0; }

/* ------------------------ Programs (navy band, LIGHT cards - readable) ------------------------ */
.section.programs-section {
  background: var(--navy);
  color: var(--cream);
  border-top: 4px solid var(--orange);
  position: relative;
}
.section.programs-section h2.heading { color: #fff; }
.section.programs-section .lead { color: rgba(232, 226, 210, 0.78); }
.section.programs-section .section-kicker { color: var(--orange); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.program-card {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}
.program-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.program-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-xs);
  background: var(--orange-50);
  border: none;
  color: var(--orange);
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.program-card:nth-child(even) .program-icon {
  background: var(--blue-50);
  color: var(--blue);
}
.program-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  text-wrap: balance;
  line-height: 1.2;
  color: var(--ink);
}
.program-card p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
}
.program-card .learn {
  font-weight: 700;
  font-size: 13px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.program-card .learn svg { transition: transform .15s ease; }
.program-card .learn:hover { color: var(--orange); }
.program-card .learn:hover svg { transform: translateX(3px); }

/* ------------------------ Example businesses ------------------------ */
.section.industries-section { background: var(--cream-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.examples-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.example-card {
  background: var(--paper);
  border: 1px solid var(--border-paper);
  border-radius: var(--r);
  padding: 22px 22px 24px;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 110px;
  position: relative;
  overflow: hidden;
}
.example-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.example-card:nth-child(even)::before { background: var(--blue); }
.example-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 6px 18px -8px rgba(20,24,31,0.12);
  transform: translateY(-2px);
}
.example-card:hover::before { transform: scaleY(1); }
.example-industry {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.example-card:nth-child(even) .example-industry { color: var(--orange); }
.example-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}

/* ------------------------ Promise (editorial 2-col) ------------------------ */
.section.promise-section { background: var(--paper); border-top: 1px solid var(--border-paper); border-bottom: 1px solid var(--border-paper); }
.promise-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.promise-grid .lhs h2.heading { font-size: clamp(40px, 4.6vw, 60px); margin-bottom: 24px; }
.promise-grid .lhs p { font-size: 19px; color: var(--ink-2); line-height: 1.65; margin: 0; max-width: 440px; }
.promise-list {
  display: block;
  max-width: none;
  margin: 0;
}
.promise-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.4;
  border-bottom: 1px solid var(--border);
}
.promise-item:first-child { padding-top: 0; }
.promise-item:last-child { border-bottom: none; padding-bottom: 0; }
.promise-item .check {
  width: 32px; height: 32px;
  border-radius: var(--r-xs);
  background: var(--orange);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ------------------------ Final CTA ------------------------ */
.final-cta {
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(1000px 460px at 50% 0%, rgba(240,112,32,0.10), transparent 70%),
    radial-gradient(800px 380px at 50% 100%, rgba(0,88,152,0.06), transparent 70%),
    var(--cream);
  position: relative;
  border-top: 1px solid var(--border);
}
.final-cta::before {
  content: "";
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 3px;
  background: var(--orange);
}

.final-cta h2 {
  font-size: clamp(44px, 5.6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 20px;
  text-wrap: balance;
}
.final-cta p {
  font-size: 20px;
  color: var(--ink-2);
  margin: 0 0 40px;
}
.final-cta .btn { padding: 0 36px; height: 62px; font-size: 17px; }
.final-cta-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.final-cta-actions .btn { margin: 0; }
/* ------------------------ Footer ------------------------ */
footer {
  background: var(--navy);
  color: rgba(232, 226, 210, 0.82);
  padding: 88px 0 32px;
  border-top: 4px solid var(--orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.4fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-cta {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-md);
  padding: 28px;
  position: relative;
}
.footer-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 64px;
  height: 3px;
  background: var(--orange);
}
.footer-cta .kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  display: block;
}
.footer-cta h4 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 18px;
  text-transform: none;
}
.footer-cta .big-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.footer-cta .big-phone svg { color: var(--orange); }
.footer-cta .big-phone:hover { color: var(--orange); }
.footer-cta .btn { width: 100%; height: 52px; font-size: 15px; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.footer-logo .mark {
  width: 40px; height: 40px;
  background: var(--orange);
  border-radius: var(--r-xs);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}
.footer-tag { color: rgba(232, 226, 210, 0.85); line-height: 1.6; margin: 0 0 20px; font-size: 16px; max-width: 340px; }
.footer-contact { font-size: 16px; line-height: 1.9; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-contact a:hover { color: var(--orange); }
.footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(232, 226, 210, 0.85); font-size: 16px; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: rgba(232, 226, 210, 0.82); line-height: 1.7; font-size: 15px; margin: 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 14px;
  color: rgba(232, 226, 210, 0.55);
}
.footer-bottom a { color: #fff; font-weight: 600; }
.footer-bottom a:hover { color: var(--orange); }

/* ------------------------ Sticky mobile bar ------------------------ */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: none;
  background: var(--cream);
  border-top: 1.5px solid var(--border-strong);
  box-shadow: 0 -6px 16px rgba(20,24,31,0.10);
  z-index: 60;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.sticky-bar.visible { display: flex; }
.sticky-bar .btn { flex: 1; height: 52px; font-size: 16px; padding: 0; }

/* ------------------------ Mobile menu ------------------------ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: var(--cream);
  box-shadow: -12px 0 40px rgba(20,24,31,0.12);
  z-index: 100;
  padding: 32px 28px;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.mobile-menu.open { display: block; transform: translateX(0); }
.mobile-menu .close {
  background: transparent;
  border: 1.5px solid var(--ink);
  width: 44px; height: 44px;
  border-radius: var(--r-xs);
  margin-bottom: 24px;
  display: grid; place-items: center;
  color: var(--ink);
}
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 24px; width: 100%; }
.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 31, 51, 0.55);
  z-index: 99;
}
.menu-backdrop.open { display: block; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .hero-grid { padding: 80px 40px; gap: 56px; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 64px 40px; gap: 48px; }
  .hero-left::after { left: 0; }
  .hero-right-inner { max-width: 720px; margin: 0 auto; }

  /* Inline phone in nav hides on tablet to keep the bar single-line - phone is still in the topbar */
  .nav .phone-link { display: none; }
  .nav-links { gap: 22px; }

  .know-grid { grid-template-columns: 1fr; gap: 48px; }
  .reasons-box { height: 480px; }
  .how-grid { grid-template-columns: 1fr; gap: 20px; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid { grid-template-columns: 1fr; gap: 40px; }
  .examples-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 16px 12px; border-left: 1px solid rgba(255,255,255,0.10); min-height: 0; }
  .stat:first-child { padding-left: 0; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Hamburger kicks in earlier so 4 nav links don't overflow at tablet */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .topbar { font-size: 13px; }
  .topbar .container { height: auto; padding: 8px 20px; flex-wrap: wrap; gap: 6px 16px; justify-content: center; text-align: center; }
  .nav .container { height: 72px; }
  .nav .logo img { height: 30px; }
  /* Wide wordmark + Apply button + hamburger don't fit a phone width. Drop
     the nav Apply CTA here - it's still in the hamburger menu, the hero, and
     the sticky bottom bar - so the logo has room and stops colliding. Use the
     child combinator so the menu/sticky-bar Apply buttons (deeper in .nav-cta)
     are NOT hidden. */
  .nav .nav-cta > .btn { display: none; }

  .hero-grid { padding: 40px 20px 56px; gap: 36px; }
  .hero-right-inner { padding: 28px 24px 24px; }
  .trust-row { gap: 0; }
  .trust-item { padding-right: 12px; }
  .trust-item + .trust-item { padding-left: 12px; }
  .trust-item .num { font-size: 26px; }
  .trust-item .lbl { font-size: 12px; }

  .form-head h2 { font-size: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .slider-head .amt { font-size: 24px; }
  .pill-group.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .pill-group.cols-3 { grid-template-columns: 1fr; }
  .pill { font-size: 14px; padding: 0 10px; }

  .section { padding: 72px 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip { padding: 56px 0; }

  .programs-grid { grid-template-columns: 1fr; }
  .program-card { padding: 28px 20px; }
  .promise-grid { grid-template-columns: 1fr; gap: 28px; }
  .promise-item { font-size: 19px; padding: 18px 0; }
  .examples-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .example-card { padding: 16px 16px 18px; min-height: 96px; }
  .example-name { font-size: 16px; }

  .promise-list { grid-template-columns: 1fr; gap: 0; max-width: 100%; }

  .final-cta { padding: 64px 0; }
  .final-cta h2 { font-size: 36px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  body.has-sticky { padding-bottom: 84px; }
}


/* ============================================================
   How It Works page
   ============================================================ */

/* Active nav link */
.nav-links a.is-active { color: var(--blue); position: relative; }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--orange);
}

/* Page hero - compact: kicker + lead only */
.page-hero {
  position: relative;
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 500px at 92% -10%, rgba(240, 112, 32, 0.08), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(0, 88, 152, 0.06), transparent 65%),
    linear-gradient(180deg, #FFFCF5 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: 880px; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero .lead {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 500;
  max-width: 820px;
  margin: 0;
  text-wrap: pretty;
}

/* Reality / 2-col editorial section */
.reality-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.reality-grid h2.heading { margin-bottom: 0; }
.reality-copy {
  padding-top: 38px;
}
.reality-copy p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 20px;
}
/* (italic muted variant removed - all paragraphs share the same style) */
.reality-copy p:last-child { margin-bottom: 0; }

/* Pullquote */
.pullquote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.pullquote .section-kicker { justify-content: center; }
.pullquote p {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 16px 0 0;
  text-wrap: balance;
}
.pullquote p.punchline {
  font-size: clamp(20px, 2vw, 24px);
  color: var(--blue);
  font-weight: 700;
  margin-top: 24px;
  letter-spacing: -0.015em;
}

/* ===== System flow - hand-drawn ===== */
.sys-section {
  padding: 88px 0 80px;
  position: relative;
}
.sys-section::after {
  /* subtle dotted-grid texture to feel like a sketchpad */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  opacity: 0.6;
  z-index: 0;
}
.sys-section .container { position: relative; z-index: 1; }

.sys-flow {
  position: relative;
  max-width: 1200px;
  margin: 56px auto 0;
  /* Reserve height: 3 top cards + curves + hub */
  min-height: 620px;
}
.sys-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.sys-card {
  position: absolute;
  top: 0;
  width: calc(33.333% - 32px);
  max-width: 340px;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 24px 28px 26px;
  z-index: 2;
  box-shadow: 0 1px 0 rgba(20,24,31,0.04), 0 18px 40px -16px rgba(0,0,0,0.35);
  transition: transform .2s ease;
}
.sys-card:hover { transform: translateY(-3px); }
.sys-card-1 { left: 0; }
.sys-card-2 { left: 50%; transform: translateX(-50%); }
.sys-card-2:hover { transform: translateX(-50%) translateY(-3px); }
.sys-card-3 { right: 0; }

.sys-card-tab {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-700);
  background: var(--orange-50);
  border-radius: var(--r);
  padding: 5px 10px;
  margin-bottom: 18px;
}
.sys-card-tab.is-blue { color: var(--blue-700); background: var(--blue-50); }
.sys-card-icon {
  width: 44px;
  height: 44px;
  background: var(--orange-50);
  color: var(--orange);
  border-radius: var(--r-xs);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.sys-card-icon.is-blue { background: var(--blue-50); color: var(--blue); }
.sys-card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
  text-wrap: balance;
}
.sys-card p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

.sys-hub {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  z-index: 2;
}
.sys-hub-card {
  background: var(--orange);
  color: #fff;
  border-radius: var(--r-md);
  padding: 22px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 14px 36px -10px rgba(240, 112, 32, 0.55);
  border: 2px solid #fff;
  position: relative;
}
.sys-hub-card::before {
  /* inner dashed border for hand-drawn feel */
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px dashed rgba(255,255,255,0.5);
  border-radius: 4px;
  pointer-events: none;
}
.sys-hub-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.sys-hub-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.sys-hub-tag {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.92;
  margin-top: 4px;
}

/* ===== Industry map ===== */
.industry-map { width: 100%; }

.im-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.im-search {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0 14px;
  height: 52px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.im-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,88,152,0.14);
}
.im-search svg:first-child { color: var(--ink-3); margin-right: 10px; flex-shrink: 0; }
.im-search input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  padding: 0;
}
.im-search input::placeholder { color: var(--ink-3); }
.im-search input::-webkit-search-cancel-button { display: none; }
.im-clear {
  background: var(--cream-2);
  border: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.im-clear:hover { background: var(--ink); color: #fff; }

.im-panel {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(20,24,31,0.04), 0 12px 32px -16px rgba(20,24,31,0.12);
  height: clamp(620px, 75vh, 760px);
}

.im-list-wrap {
  background: var(--cream);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.im-list-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream-2);
  flex-shrink: 0;
}
.im-list-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.im-list-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.im-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}
.im-list::-webkit-scrollbar { width: 8px; }
.im-list::-webkit-scrollbar-track { background: var(--cream); }
.im-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.im-list::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

.im-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  padding: 14px 20px 14px 17px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.im-list-item:hover { background: rgba(240, 112, 32, 0.06); }
.im-list-item.is-active {
  background: var(--paper);
  border-left-color: var(--orange);
  color: var(--ink);
}
.im-list-item.is-active .im-list-arrow { color: var(--orange); }
.im-list-name { flex: 1; line-height: 1.3; }
.im-list-name mark { background: rgba(0,88,152,0.18); color: inherit; font-weight: 800; padding: 0 2px; border-radius: 2px; }
.im-list-count {
  font-size: 12px;
  font-weight: 800;
  background: var(--cream-2);
  color: var(--ink-3);
  border-radius: 999px;
  padding: 3px 9px;
  letter-spacing: 0.02em;
}
.im-list-item.is-active .im-list-count { background: var(--orange-50); color: var(--orange-700); }
.im-list-arrow {
  display: inline-flex;
  color: var(--ink-3);
  transition: transform .15s ease;
}

.im-skeleton { opacity: 0.5; pointer-events: none; }
.im-empty, .im-error {
  padding: 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}
.im-error { color: var(--orange-700); }

.im-detail {
  padding: 36px 36px 28px;
  overflow-y: auto;
  min-height: 0;
}
.im-detail::-webkit-scrollbar { width: 8px; }
.im-detail::-webkit-scrollbar-track { background: var(--paper); }
.im-detail::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.im-detail-head { padding-bottom: 24px; border-bottom: 1px solid var(--border-paper); margin-bottom: 24px; }
.im-detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-700);
  margin-bottom: 12px;
}
.im-detail-kicker::before { content: ""; width: 24px; height: 2px; background: var(--orange); }
.im-detail h3 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 12px;
  text-wrap: balance;
}
.im-detail h3 mark { background: rgba(0,88,152,0.18); color: inherit; padding: 0 4px; border-radius: 2px; }
.im-detail-head p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}

.im-detail-subs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.im-detail-sublabel {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.im-detail-subcount {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.04em;
}

.im-subs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border-paper);
}
.im-sub {
  padding: 16px 16px 16px 18px;
  border-bottom: 1px solid var(--border-paper);
  border-left: 2px solid transparent;
  position: relative;
}
.im-sub:nth-child(odd) { border-right: 1px solid var(--border-paper); }
.im-sub:hover { background: rgba(240, 112, 32, 0.04); border-left-color: var(--orange); }
.im-sub:nth-child(even):hover { border-left-color: var(--blue); }
.im-sub-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.3;
}
.im-sub-name mark { background: rgba(0,88,152,0.18); color: inherit; padding: 0 2px; border-radius: 2px; }
.im-sub-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Factors grid */
.factors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 28px;
}
.factor {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .15s ease, transform .15s ease;
}
.factor:hover { border-color: var(--blue); transform: translateY(-2px); }
.factor-icon {
  width: 40px; height: 40px;
  background: var(--blue-50);
  color: var(--blue);
  border-radius: var(--r-xs);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.factor:nth-child(even) .factor-icon { background: var(--orange-50); color: var(--orange); }
.factor-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.factors-foot {
  max-width: 760px;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  font-style: italic;
  border-left: 3px solid var(--orange);
  padding-left: 20px;
  margin: 8px 0 0;
}

/* Insurance analogy */
.analogy {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.analogy .section-kicker { justify-content: center; }
.analogy h2.heading { font-size: clamp(36px, 4vw, 52px); }
.analogy p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

/* Responsive - How It Works */
@media (max-width: 1080px) {
  .reality-grid { grid-template-columns: 1fr; gap: 32px; }
  .reality-copy { padding-top: 0; }
  .sys-flow { min-height: 0; }
  .sys-flow { display: grid; gap: 18px; grid-template-columns: 1fr; }
  .sys-lines { display: none; }
  .sys-card { position: relative; width: 100%; max-width: 100%; top: auto; left: auto !important; right: auto; transform: none !important; }
  .sys-card:hover { transform: translateY(-3px) !important; }
  .sys-hub { position: relative; bottom: auto; left: auto; transform: none; width: 100%; max-width: 100%; margin-top: 8px; }
  .im-panel { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .im-list-wrap { border-right: none; border-bottom: 1px solid var(--border); }
  .im-list { max-height: 320px; }
  .im-detail { padding: 28px 24px; }
  .im-detail h3 { font-size: 26px; }
  .im-subs { grid-template-columns: 1fr; }
  .im-sub:nth-child(odd) { border-right: none; }
  .factors-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .page-hero { padding: 56px 0 48px; }
  .page-hero h1 { font-size: 38px; }
  .page-hero .lead { font-size: 17px; }

  .pullquote p { font-size: 22px; }
  .sys-section { padding: 72px 0; }
  .sys-card { padding: 22px 24px; }
  .sys-card h3 { font-size: 18px; }
  .sys-hub-card { padding: 20px 24px; }
  .sys-hub-name { font-size: 20px; }

  /* Mobile: industry map becomes a drill-in view ----------- */
  .im-panel {
    grid-template-columns: 1fr;
    position: relative;
    height: auto;
    min-height: 520px;
    overflow: hidden;
  }
  .im-list-wrap { border-right: none; border-bottom: none; }
  .im-list { max-height: 520px; }

  /* Default mobile state: show list, hide detail */
  .im-panel .im-detail { display: none; }
  /* Drilled state: hide list, show detail full-width */
  .im-panel.is-drilled .im-list-wrap { display: none; }
  .im-panel.is-drilled .im-detail { display: block; }

  /* Subtle slide-in animations when switching panes */
  @keyframes im-slide-in-right {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  @keyframes im-slide-in-left {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  .im-panel.is-drilled .im-detail {
    animation: im-slide-in-right .22s ease-out both;
  }
  .im-panel:not(.is-drilled) .im-list-wrap {
    animation: im-slide-in-left .22s ease-out both;
  }
  @media (prefers-reduced-motion: reduce) {
    .im-panel.is-drilled .im-detail,
    .im-panel:not(.is-drilled) .im-list-wrap { animation: none; }
  }
  /* -------------------------------------------------------- */

  .im-search { height: 48px; }
  .im-list-item { padding: 12px 16px 12px 13px; font-size: 14px; }
  .im-detail { padding: 22px 18px 24px; }
  .im-detail h3 { font-size: 22px; }
  .im-detail-head p { font-size: 15px; }
  .im-sub-name { font-size: 14px; }
  .im-sub-desc { font-size: 13px; }

  .factors-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .factor { padding: 14px 12px; gap: 10px; }
  .factor-icon { width: 34px; height: 34px; }
  .factor-name { font-size: 13px; }
  .factors-foot { font-size: 15px; padding-left: 16px; }

  .analogy p { font-size: 17px; }
}

/* Back button: visible on mobile only */
.im-detail-back { display: none; }
@media (max-width: 760px) {
  .im-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 14px 8px 10px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
  }
  .im-detail-back:hover,
  .im-detail-back:focus-visible {
    background: var(--orange-50);
    border-color: var(--orange);
    color: var(--orange-700);
    outline: none;
  }
  .im-detail-back svg { flex-shrink: 0; }
}


/* ============================================================
   Affiliate page
   ============================================================ */

/* Add headline to page-hero for affiliate */
.page-affiliate .page-hero h1 {
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 12px 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
.page-affiliate .page-hero .lead { font-weight: 400; color: var(--ink-2); font-size: 19px; }
.page-affiliate .page-hero .lead strong { color: var(--ink); font-weight: 700; }
.page-affiliate .page-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* ===== Commission diagram ===== */
.commission-diagram {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 40px 40px 32px;
  box-shadow: 0 1px 0 rgba(20,24,31,0.04), 0 12px 32px -16px rgba(20,24,31,0.10);
}

.cd-tier { padding: 24px 0; }
.cd-tier + .cd-tier { border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 32px; }
.cd-tier-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.cd-tier-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-50);
  padding: 4px 10px;
  border-radius: var(--r);
}
.cd-tier-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cd-flow {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  align-items: stretch;
  gap: 0;
}
.cd-node {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4px;
  min-height: 100px;
}
.cd-node-label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.cd-node-meta {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}
.cd-node-novel {
  background: var(--navy);
  border-color: var(--navy);
}
.cd-node-novel .cd-node-label { color: #fff; }
.cd-node-novel .cd-node-meta { color: rgba(232, 226, 210, 0.78); }

.cd-node-payout {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.cd-payout-pct {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.cd-payout-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.92);
  margin-top: 4px;
}
.cd-payout-avg {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-top: 2px;
}
.cd-node-payout-2 {
  background: var(--blue);
  border-color: var(--blue);
}

.cd-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--orange);
}
.cd-arrow .cd-arrow-line {
  flex: 1;
  height: 2px;
  background: var(--orange);
}
.cd-arrow-2 .cd-arrow-line { background: var(--blue); }
.cd-arrow-2 { color: var(--blue); }

.cd-tier-note {
  font-size: 15px;
  color: var(--ink-2);
  margin: 18px 0 0;
  line-height: 1.55;
}

.cd-disclaimer {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--cream);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  text-align: center;
}

/* ===== Status grid + Timeline mock ===== */
.status-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
  margin-top: 32px;
}
.timeline-mock { position: relative; }
.tm-window {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 1px 0 rgba(20,24,31,0.04), 0 16px 40px -16px rgba(20,24,31,0.18);
  overflow: hidden;
}
.tm-window-head {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tm-window-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.tm-window-loc {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 6px;
}
.tm-window-status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-50);
  padding: 4px 10px;
  border-radius: var(--r);
}

.tm-events {
  list-style: none;
  padding: 18px 24px 12px;
  margin: 0;
  position: relative;
}
.tm-events::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: var(--border-strong);
}
.tm-event {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0 10px 18px;
}
.tm-dot {
  position: relative;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--paper);
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 0 1px var(--blue);
}
.tm-event.tm-neg .tm-dot { background: var(--ink-3); box-shadow: 0 0 0 1px var(--ink-3); }
.tm-event-body { flex: 1; min-width: 0; }
.tm-event-head {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.tm-event.tm-neg .tm-event-head { color: var(--ink-2); }
.tm-event-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  font-weight: 500;
}

.tm-chat {
  border-top: 1px solid var(--border-paper);
  padding: 16px 18px 18px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tm-chat-bubble {
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  max-width: 88%;
  line-height: 1.4;
  align-self: flex-end;
}
.tm-chat-bubble-broker {
  align-self: flex-start;
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.tm-chat-bubble-broker .tm-chat-from { color: rgba(255,255,255,0.85); }
.tm-chat-from {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.tm-chat-input {
  margin-top: 6px;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-3);
}

.status-features {
  display: grid;
  gap: 24px;
}
.status-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.status-feature-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-xs);
  background: var(--blue-50);
  color: var(--blue);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.status-feature:nth-child(even) .status-feature-icon { background: var(--orange-50); color: var(--orange); }
.status-feature h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.status-feature p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}

/* Warning block */
.warning-block {
  max-width: 980px;
  margin: 0 auto;
  background: #FFF8EE;
  border: 1px solid #E8C99A;
  border-left: 4px solid var(--orange);
  border-radius: var(--r-md);
  padding: 32px 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.warning-mark {
  width: 56px; height: 56px;
  border-radius: var(--r-xs);
  background: var(--orange);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.warning-body { flex: 1; }
.warning-body .section-kicker { margin-bottom: 12px; }
.warning-heading {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--ink);
  text-wrap: balance;
}
.warning-body p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 14px;
}
.warning-body p:last-child { margin-bottom: 0; }

/* Payout timeline */
.payout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}
.payout-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
}
.payout-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-700);
  background: var(--orange-50);
  padding: 5px 10px;
  border-radius: var(--r);
  margin-bottom: 16px;
}
.payout-tag.is-blue { color: var(--blue-700); background: var(--blue-50); }
.payout-card h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  color: var(--ink);
}
.payout-sub {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 28px;
}

.payout-line {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 8px 0 4px;
}
.pl-step {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.pl-step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink-3);
  margin-bottom: 10px;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--ink-3);
}
.pl-step-dot.is-orange {
  background: var(--orange);
  box-shadow: 0 0 0 1.5px var(--orange);
}
.pl-step-dot.is-blue {
  background: var(--blue);
  box-shadow: 0 0 0 1.5px var(--blue);
}
.pl-step-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.pl-step-day {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pl-track {
  flex: 1;
  height: 2px;
  background: var(--border-strong);
  align-self: flex-start;
  margin-top: 7px;
}
.pl-track-fast { background: var(--orange); }
.pl-track-slow {
  background-image: linear-gradient(to right, var(--blue) 50%, transparent 50%);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  background-color: transparent;
}

.payout-foot {
  max-width: 880px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* Heads Up section */
.headsup-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
}
.headsup-grid h2.heading { font-size: clamp(32px, 3.6vw, 44px); }
.headsup-grid p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0 0 16px;
}
.headsup-grid p:last-child { margin-bottom: 0; }
.headsup-grid .section-kicker { margin-bottom: 16px; }

.hu-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 1px 0 rgba(20,24,31,0.04), 0 16px 40px -16px rgba(20,24,31,0.16);
  overflow: hidden;
}
.hu-card-head {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hu-card-title { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.hu-card-meta { font-size: 12px; color: rgba(232, 226, 210, 0.78); font-weight: 600; }
.hu-list { list-style: none; padding: 0; margin: 0; }
.hu-list li {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-paper);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
}
.hu-list li:last-child { border-bottom: none; }
.hu-name {
  grid-column: 1;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.hu-loc {
  grid-column: 1;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}
.hu-countdown {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  background: var(--blue-50);
  padding: 6px 10px;
  border-radius: var(--r);
  letter-spacing: 0.03em;
}
.hu-countdown.is-warn { color: var(--orange); background: var(--orange-50); }
.hu-empty {
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
}

/* Join section */
.join-section {
  background: linear-gradient(180deg, var(--cream) 0%, #F6F1E6 100%);
  border-top: 1px solid var(--border);
}
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.join-copy .section-kicker { margin-bottom: 16px; }
.join-copy h2.heading { font-size: clamp(40px, 4.6vw, 60px); margin-bottom: 18px; }
.join-copy p {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 28px;
}
.join-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.join-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.join-list svg {
  color: var(--orange);
  background: var(--orange-50);
  border-radius: var(--r);
  padding: 4px;
  flex-shrink: 0;
}

.join-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px;
  box-shadow: 0 1px 0 rgba(20,24,31,0.04), 0 16px 40px -16px rgba(20,24,31,0.18);
  position: relative;
}
.join-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 88px;
  height: 3px;
  background: var(--orange);
}
.join-card .field { margin-bottom: 16px; }
.join-card label .req { color: var(--orange); font-weight: 800; }
.join-card label .opt { color: var(--ink-3); font-weight: 600; text-transform: none; letter-spacing: 0; }
.join-card textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  resize: vertical;
  line-height: 1.5;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.join-card textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,88,152,0.14);
}
.agreement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0 18px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  cursor: pointer;
}
.agreement input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--orange);
  cursor: pointer;
}
.form-foot-small {
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  margin: 14px 0 0;
}

/* Responsive */
@media (max-width: 1080px) {
  .cd-flow { grid-template-columns: 1fr; gap: 12px; }
  .cd-arrow {
    transform: none;
    height: 28px;
    width: 100%;
    flex-direction: column;
  }
  .cd-arrow .cd-arrow-line {
    flex: 0 0 22px;
    width: 2px;
    height: auto;
  }
  .cd-arrow svg {
    transform: rotate(90deg);
  }
  .status-grid { grid-template-columns: 1fr; gap: 48px; }
  .payout-grid { grid-template-columns: 1fr; }
  .headsup-grid { grid-template-columns: 1fr; gap: 48px; }
  .join-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 760px) {
  .commission-diagram { padding: 24px 20px 20px; }
  .cd-tier-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cd-tier-name { font-size: 18px; }
  .cd-payout-pct { font-size: 28px; }
  .warning-block { flex-direction: column; padding: 24px 22px; gap: 16px; }
  .warning-mark { width: 44px; height: 44px; }
  .payout-card { padding: 22px 18px; }
  .payout-card h3 { font-size: 20px; }
  .payout-line { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pl-step { flex-direction: row; align-items: center; gap: 12px; text-align: left; }
  .pl-step-dot { margin-bottom: 0; }
  .pl-track { width: 2px; height: 22px; align-self: flex-start; margin-left: 7px; margin-top: 0; }
  .pl-track-slow { background-image: linear-gradient(to bottom, var(--blue) 50%, transparent 50%); background-size: 2px 8px; background-repeat: repeat-y; }
  .join-card { padding: 24px 20px; }
}


/* ============================================================
   About + Careers pages
   ============================================================ */

/* About: 3-step values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px 32px 32px;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.value-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px -14px rgba(20,24,31,0.12);
}
.value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 56px;
  height: 3px;
  background: var(--orange);
}
.value-card:nth-child(2)::before { background: var(--blue); }
.value-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--orange);
  margin-bottom: 24px;
}
.value-card:nth-child(2) .value-num { color: var(--blue); }
.value-card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
  text-wrap: balance;
}
.value-card p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

/* About: page hero h1 specific */
.page-about .page-hero h1,
.page-careers .page-hero h1 {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 12px 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
.page-about .page-hero .lead,
.page-careers .page-hero .lead {
  font-weight: 400;
  color: var(--ink-2);
  font-size: 19px;
}
.page-careers .page-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Careers: roles grid */
.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.role-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px 36px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.role-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px -16px rgba(20,24,31,0.16);
  transform: translateY(-2px);
}
.role-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 88px;
  height: 3px;
  background: var(--orange);
}
.role-card:nth-child(2)::before { background: var(--blue); }
.role-head { margin-bottom: 28px; }
.role-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-700);
  background: var(--orange-50);
  padding: 4px 10px;
  border-radius: var(--r);
  margin-bottom: 16px;
}
.role-tag.is-blue { color: var(--blue-700); background: var(--blue-50); }
.role-card h3 {
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--ink);
}
.role-card .role-head p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}
.role-section { margin-bottom: 24px; flex: 1; }
.role-section-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.role-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.role-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.role-list svg {
  color: var(--orange);
  background: var(--orange-50);
  border-radius: var(--r);
  padding: 3px;
  flex-shrink: 0;
  margin-top: 1px;
}
.role-card:nth-child(2) .role-list svg { color: var(--blue); background: var(--blue-50); }
.role-apply { align-self: flex-start; }

/* Equal opportunity block */
.eo-block {
  max-width: 980px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--r-md);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.eo-mark {
  width: 44px; height: 44px;
  border-radius: var(--r-xs);
  background: var(--blue);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.eo-block .section-kicker { margin-bottom: 10px; }
.eo-block p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}

/* Responsive */
@media (max-width: 1080px) {
  .values-grid { grid-template-columns: 1fr; gap: 16px; }
  .value-card { padding: 28px 24px 24px; }
  .roles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .role-card { padding: 28px 22px; }
  .role-card h3 { font-size: 24px; }
  .role-card .role-head p { font-size: 16px; }
  .eo-block { flex-direction: column; padding: 22px 20px; gap: 14px; }
}


/* ============================================================
   Contact page
   ============================================================ */

.page-contact .page-hero h1 {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 12px 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
.page-contact .page-hero .lead {
  font-weight: 400;
  color: var(--ink-2);
  font-size: 19px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-methods .section-kicker { margin-bottom: 16px; }
.contact-methods h2.heading { font-size: clamp(32px, 3.4vw, 44px); margin-bottom: 14px; }
.contact-lead {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 36px;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.contact-method:last-child { border-bottom: 1px solid var(--border); }
.contact-method-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-xs);
  background: var(--blue-50);
  color: var(--blue);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-method:nth-child(even) .contact-method-icon { background: var(--orange-50); color: var(--orange); }
.contact-method-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.contact-method-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  transition: color .12s ease;
}
.contact-method-value:hover { color: var(--orange); }
.contact-method-meta {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 500;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px;
  box-shadow: 0 1px 0 rgba(20,24,31,0.04), 0 16px 40px -16px rgba(20,24,31,0.18);
  position: relative;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 88px;
  height: 3px;
  background: var(--orange);
}
.contact-card .form-head { margin-bottom: 24px; }
.contact-card .form-head h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.contact-card .form-head p {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0;
}
.contact-card textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  resize: vertical;
  line-height: 1.5;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.contact-card textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,88,152,0.14);
}
.contact-card label .req { color: var(--orange); font-weight: 800; }
.contact-card label .opt {
  color: var(--ink-3);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 760px) {
  .contact-card { padding: 24px 20px; }
  .contact-method-value { font-size: 18px; }
}
