/**
 * SalesDesk — How It Works: Shared Styles
 * Loaded on /how-it-works/brokers.php, dealers.php, sales-exec.php
 *
 * Requires: global.css (tokens), public-fonts.css (--font-d = Sora)
 * Load order in layout-public.php via $extraCss after browse.css.
 *
 * Sections:
 *   1.  Scrollbar
 *   2.  Layout & width
 *   3.  Color modifier tokens
 *   4.  Role switcher
 *   5.  Hero
 *   6.  Section labels & titles
 *   7.  Overview diagram
 *   8.  Steps (numbered, with connector)
 *   9.  Dark feature block
 *  10.  Feature grid cards
 *  11.  Info callout
 *  12.  Two-column split
 *  13.  Pay steps grid
 *  14.  Browser mockup
 *  15.  Commission calculator
 *  16.  Broker network mock list
 *  17.  Lead pipeline
 *  18.  Approval timeline
 *  19.  Scope card (can / principal handles)
 *  20.  Analytics dashboard mock
 *  21.  Broker CTA nudge card
 *  22.  FAQ
 *  23.  Cross-link cards
 *  24.  Final CTA
 *  25.  Responsive
 */


/* ══════════════════════════════════════
   1. SCROLLBAR
   ══════════════════════════════════════ */
::-webkit-scrollbar          { width: 7px; height: 7px; }
::-webkit-scrollbar-track    { background: transparent; }
::-webkit-scrollbar-thumb    { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::-webkit-scrollbar-corner   { background: transparent; }

/* Firefox */
* { scrollbar-width: thin; scrollbar-color: var(--border2) transparent; }


/* ══════════════════════════════════════
   2. LAYOUT & WIDTH
   ══════════════════════════════════════ */

/* Override narrow default — these pages use pub-page-wide */
.hiw-page-body .pub-page-wide {
  max-width: 1200px;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.hiw-section { margin-bottom: 4rem; }


/* ══════════════════════════════════════
   3. COLOR MODIFIER TOKENS
   Applied as modifier classes: --c-p, --c-green, --c-amber, --c-purple
   ══════════════════════════════════════ */

/* Icon circles */
.hiw-icon-circle {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; flex-shrink: 0;
  border: 2px solid transparent;
}
.hiw-icon-circle--p      { background: var(--p-light);  border-color: var(--p-b);   color: var(--p); }
.hiw-icon-circle--green  { background: var(--gr-bg);    border-color: var(--gr-b);  color: var(--green); }
.hiw-icon-circle--amber  { background: var(--amb-bg);   border-color: var(--amb-b); color: var(--amber); }
.hiw-icon-circle--purple { background: var(--pur-bg);   border-color: var(--pur-b); color: var(--purple); }
.hiw-icon-circle--faint  { background: var(--bg);       border-color: var(--border); color: var(--faint); }

/* Icon squares / rounded-rect */
.hiw-icon-box {
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); flex-shrink: 0;
}
.hiw-icon-box--p      { background: var(--p-light);  color: var(--p); }
.hiw-icon-box--green  { background: var(--gr-bg);    color: var(--green); }
.hiw-icon-box--amber  { background: var(--amb-bg);   color: var(--amber); }
.hiw-icon-box--purple { background: var(--pur-bg);   color: var(--purple); }

/* Pill badges (inline labels) */
.hiw-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; font-family: var(--mono);
  padding: 2px 9px; border-radius: var(--r-full);
  border: 1px solid transparent; white-space: nowrap;
}
.hiw-pill--p      { background: var(--p-light);  color: var(--p);     border-color: var(--p-b); }
.hiw-pill--green  { background: var(--gr-bg);    color: var(--green); border-color: var(--gr-b); }
.hiw-pill--amber  { background: var(--amb-bg);   color: var(--amber); border-color: var(--amb-b); }
.hiw-pill--purple { background: var(--pur-bg);   color: var(--purple);border-color: var(--pur-b); }

/* Callout info strip */
.hiw-callout {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 14px; border-radius: var(--r-md);
  font-size: 12px; line-height: 1.6;
  border: 1px solid transparent;
  margin-top: 8px;
}
.hiw-callout--p      { background: var(--p-light);  color: var(--p);     border-color: var(--p-b); }
.hiw-callout--green  { background: var(--gr-bg);    color: var(--green); border-color: var(--gr-b); }
.hiw-callout--amber  { background: var(--amb-bg);   color: var(--amber); border-color: var(--amb-b); }
.hiw-callout i { flex-shrink: 0; margin-top: 1px; }


/* ══════════════════════════════════════
   4. ROLE SWITCHER
   ══════════════════════════════════════ */
.hiw-switcher {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 2rem; flex-wrap: wrap;
}

.hiw-switcher__pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px;
  background: var(--white); color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
  font-family: var(--font-d);
  text-decoration: none;
  transition: border-color .18s, color .18s, background .18s;
}
.hiw-switcher__pill:hover {
  border-color: var(--p); color: var(--p);
  text-decoration: none;
}

.hiw-switcher__pill--p      { background: var(--p);     color: #fff; border-color: var(--p); }
.hiw-switcher__pill--green  { background: var(--green); color: #fff; border-color: var(--green); }
.hiw-switcher__pill--amber  { background: var(--amber); color: #fff; border-color: var(--amber); }

.hiw-switcher__pill--p:hover,
.hiw-switcher__pill--green:hover,
.hiw-switcher__pill--amber:hover { opacity: .9; color: #fff; }


/* ══════════════════════════════════════
   5. HERO
   ══════════════════════════════════════ */
.hiw-hero {
  text-align: center;
  padding: 1rem 0 3.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.hiw-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 700;
  font-family: var(--font-d);
  border: 1px solid transparent;
  margin-bottom: 1.5rem;
}
.hiw-hero__eyebrow--p      { background: var(--p-light);  color: var(--p);     border-color: var(--p-b); }
.hiw-hero__eyebrow--green  { background: var(--gr-bg);    color: var(--green); border-color: var(--gr-b); }
.hiw-hero__eyebrow--amber  { background: var(--amb-bg);   color: var(--amber); border-color: var(--amb-b); }

.hiw-hero__title {
  font-family: var(--font-d);
  font-size: clamp(30px, 6vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hiw-hero__title .accent--p      { color: var(--p); }
.hiw-hero__title .accent--green  { color: var(--green); }
.hiw-hero__title .accent--amber  { color: var(--amber); }

.hiw-hero__lead {
  font-size: 16px; color: var(--muted);
  line-height: 1.75; margin-bottom: 2rem;
}

.hiw-hero__actions {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hiw-hero__btn--green { background: var(--green) !important; }
.hiw-hero__btn--amber { background: var(--amber) !important; }

.hiw-hero__trust {
  display: flex; gap: 20px;
  justify-content: center; flex-wrap: wrap;
}

.hiw-hero__trust-item {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}
.hiw-hero__trust-item i { font-size: 11px; color: var(--green); }


/* ══════════════════════════════════════
   6. SECTION LABELS & TITLES
   ══════════════════════════════════════ */
.hiw-section-head { text-align: center; margin-bottom: 2rem; }

.hiw-overline {
  font-family: var(--font-d);
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); display: block; margin-bottom: 8px;
}

.hiw-heading {
  font-family: var(--font-d);
  font-size: 24px; font-weight: 800;
  letter-spacing: -.02em; color: var(--text);
  margin: 0;
}

.hiw-subheading {
  font-size: 14px; color: var(--muted);
  margin-top: 8px; line-height: 1.7;
  max-width: 540px; margin-left: auto; margin-right: auto;
}


/* ══════════════════════════════════════
   7. OVERVIEW DIAGRAM
   ══════════════════════════════════════ */
.hiw-diagram__shell {
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem;
  border: 1px solid transparent;
  position: relative; overflow: hidden;
}
.hiw-diagram__shell--blue   { background: linear-gradient(145deg,#f8faff,#eef2ff); border-color: var(--border); }
.hiw-diagram__shell--green  { background: linear-gradient(145deg,#f0fdf8,#ecfdf5); border-color: var(--gr-b); }
.hiw-diagram__shell--amber  { background: linear-gradient(145deg,#fffbeb,#fef9c3); border-color: var(--amb-b); }

.hiw-diagram__shell::before,
.hiw-diagram__shell::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.hiw-diagram__shell::before { top: -40px; right: -40px; width: 200px; height: 200px; background: rgba(15,76,158,.04); }
.hiw-diagram__shell::after  { bottom: -30px; left: -30px; width: 150px; height: 150px; background: rgba(15,76,158,.03); }

.hiw-diagram__nodes {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0; align-items: center;
  position: relative; z-index: 1;
}

.hiw-diagram__nodes--5col {
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
}

.hiw-diagram__node { text-align: center; }

.hiw-diagram__node-icon {
  width: 72px; height: 72px;
  margin: 0 auto 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.hiw-diagram__node-icon--lg { width: 80px; height: 80px; }
.hiw-diagram__node-icon--sm { width: 64px; height: 64px; }

.hiw-diagram__node-icon--p-grad {
  background: linear-gradient(135deg,var(--p),#2563eb);
  border: none; color: #fff;
  box-shadow: 0 8px 24px rgba(15,76,158,.3);
}
.hiw-diagram__node-icon--green-grad {
  background: linear-gradient(135deg,#f0fdf4,#dcfce7);
  border: 2px solid var(--gr-b); color: var(--green);
  box-shadow: 0 4px 16px rgba(21,128,61,.12);
}
.hiw-diagram__node-icon--amber-grad {
  background: linear-gradient(135deg,var(--amb-bg),#fef9c3);
  border: 2px solid var(--amb-b); color: var(--amber);
  box-shadow: 0 4px 16px rgba(180,83,9,.10);
}

.hiw-diagram__you-badge {
  position: absolute; top: -8px; right: -8px;
  background: #f59e0b; color: #fff;
  font-size: 9px; font-weight: 800;
  font-family: var(--font-d); letter-spacing: .03em;
  border-radius: var(--r-full); padding: 2px 6px;
}
.hiw-diagram__you-badge--tl { top: -8px; right: -28px; }

.hiw-diagram__node-icon-wrap { position: relative; display: inline-block; margin-bottom: 12px; }

.hiw-diagram__node-title {
  font-family: var(--font-d); font-size: 14px; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.hiw-diagram__node-title--p     { color: var(--p); font-size: 15px; font-weight: 800; }
.hiw-diagram__node-title--green { color: var(--green); font-size: 15px; font-weight: 800; }

.hiw-diagram__node-sub {
  font-size: 11px; color: var(--muted); line-height: 1.5;
  max-width: 120px; margin: 0 auto;
}
.hiw-diagram__node-sub--sm { max-width: 100px; }

.hiw-diagram__arrow {
  text-align: center; padding: 0 6px;
}
.hiw-diagram__arrow-label {
  font-size: 9px; color: var(--faint);
  margin-bottom: 3px; white-space: nowrap;
}
.hiw-diagram__arrow-line {
  display: flex; align-items: center; gap: 2px;
}
.hiw-diagram__arrow-track {
  height: 2px; width: 32px; border-radius: 1px;
}
.hiw-diagram__arrow-track--bp { background: linear-gradient(90deg,var(--gr-b),var(--p-b)); }
.hiw-diagram__arrow-track--pa { background: linear-gradient(90deg,var(--p-b),var(--amb-b)); }
.hiw-diagram__arrow-track--ag { background: linear-gradient(90deg,var(--amb-b),var(--gr-b)); }

.hiw-diagram__flow-strip {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15,76,158,.1);
  display: flex; align-items: center;
  justify-content: center; gap: 6px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.hiw-diagram__flow-label { font-size: 12px; color: var(--muted); }

.hiw-diagram__key-strip {
  margin-top: 2rem;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 600;
  text-align: center;
  display: flex; align-items: center;
  justify-content: center; gap: 8px;
}
.hiw-diagram__key-strip--green {
  background: rgba(21,128,61,.08);
  border: 1px solid rgba(21,128,61,.2);
  color: var(--green);
}

/* Vertical hierarchy diagram (sales exec) */
.hiw-diagram__vertical {
  display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 1;
}
.hiw-diagram__vrow { text-align: center; margin-bottom: 1.5rem; }
.hiw-diagram__vrow:last-child { margin-bottom: 0; }

.hiw-diagram__vconnector {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 1.5rem;
}
.hiw-diagram__vline { width: 2px; height: 20px; border-radius: 1px; }
.hiw-diagram__vline--amber { background: var(--amb-b); }
.hiw-diagram__vline--p     { background: var(--p-b); }
.hiw-diagram__vline--green { background: var(--gr-b); }

.hiw-diagram__vbranch {
  display: flex; justify-content: center; gap: 32px;
}
.hiw-diagram__vbranch-item {
  display: flex; flex-direction: column; align-items: center;
}
.hiw-diagram__branch-box {
  border-radius: var(--r-lg); padding: 12px 16px;
  text-align: center; width: 140px;
  border: 1.5px solid transparent;
  margin-top: 8px;
}
.hiw-diagram__branch-box--p     { background: var(--p-light);  border-color: var(--p-b); }
.hiw-diagram__branch-box--green { background: var(--gr-bg);    border-color: var(--gr-b); }

.hiw-diagram__branch-icon  { font-size: 18px; display: block; margin-bottom: 6px; }
.hiw-diagram__branch-title {
  font-family: var(--font-d); font-size: 12px; font-weight: 700; color: var(--text);
}
.hiw-diagram__branch-sub   { font-size: 10px; color: var(--muted); margin-top: 2px; }


/* ══════════════════════════════════════
   8. STEPS
   ══════════════════════════════════════ */
.hiw-steps { display: flex; flex-direction: column; gap: 0; }

.hiw-step {
  display: flex; gap: 20px;
  margin-bottom: 2rem; align-items: flex-start;
}

.hiw-step__track {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
}

.hiw-step__icon {
  width: 52px; height: 52px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  font-size: 20px;
}

.hiw-step__connector {
  width: 2px; height: 40px;
  background: var(--border);
  margin-top: 8px; border-radius: 1px;
}

.hiw-step__content { flex: 1; padding-top: 12px; }

.hiw-step__meta {
  display: flex; align-items: center;
  gap: 10px; margin-bottom: 8px; flex-wrap: wrap;
}

.hiw-step__num {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--r-full);
  border: 1px solid transparent;
}
.hiw-step__num--p      { background: var(--p-light);  color: var(--p);     border-color: var(--p-b); }
.hiw-step__num--green  { background: var(--gr-bg);    color: var(--green); border-color: var(--gr-b); }
.hiw-step__num--amber  { background: var(--amb-bg);   color: var(--amber); border-color: var(--amb-b); }
.hiw-step__num--purple { background: var(--pur-bg);   color: var(--purple);border-color: var(--pur-b); }

.hiw-step__title {
  font-family: var(--font-d); font-size: 16px; font-weight: 700;
  color: var(--text); margin: 0;
}

.hiw-step__body {
  font-size: 13px; color: var(--muted);
  line-height: 1.75; margin: 0 0 8px;
}


/* ══════════════════════════════════════
   9. DARK FEATURE BLOCK
   ══════════════════════════════════════ */
.hiw-dark-block {
  border-radius: var(--r-xl);
  padding: 2.5rem;
  color: #fff;
  position: relative; overflow: hidden;
}
.hiw-dark-block--p     { background: linear-gradient(135deg,#08143c,var(--p)); }
.hiw-dark-block--green { background: linear-gradient(135deg,#14532d,var(--green)); }
.hiw-dark-block--amber { background: linear-gradient(135deg,#78350f,var(--amber)); }

.hiw-dark-block::before {
  content: ''; position: absolute;
  top: -20px; right: -20px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.hiw-dark-block::after {
  content: ''; position: absolute;
  bottom: -20px; left: 40%;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.hiw-dark-block__inner { position: relative; z-index: 1; }

.hiw-dark-block__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.8);
  margin-bottom: 1.25rem;
  letter-spacing: .05em; text-transform: uppercase;
}

.hiw-dark-block__title {
  font-family: var(--font-d);
  font-size: 26px; font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.02em; line-height: 1.2;
}

.hiw-dark-block__body {
  font-size: 14px; color: rgba(255,255,255,.65);
  margin-bottom: 2rem; line-height: 1.7; max-width: 540px;
}

.hiw-dark-block__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.hiw-dark-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); padding: 16px;
}
.hiw-dark-card--centered { text-align: center; }

.hiw-dark-card__icon {
  font-size: 20px; color: rgba(255,255,255,.5);
  margin-bottom: 10px; display: block;
}
.hiw-dark-card__title {
  font-family: var(--font-d); font-size: 13px; font-weight: 700;
  margin-bottom: 6px;
}
.hiw-dark-card__body  { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.6; }

/* Attribution protection grid (2-col dark cards) */
.hiw-dark-block__grid--2col {
  grid-template-columns: 1fr 1fr;
}


/* ══════════════════════════════════════
   10. FEATURE GRID CARDS
   ══════════════════════════════════════ */
.hiw-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.hiw-feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.hiw-feature-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  margin-bottom: 12px; font-size: 16px;
}

.hiw-feature-card__title {
  font-family: var(--font-d); font-size: 13px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}

.hiw-feature-card__body { font-size: 12px; color: var(--muted); line-height: 1.6; }


/* ══════════════════════════════════════
   11. TWO-COLUMN SPLIT
   ══════════════════════════════════════ */
.hiw-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: center;
}

.hiw-split__overline {
  font-family: var(--font-d); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 10px;
}

.hiw-split__title {
  font-family: var(--font-d); font-size: 24px; font-weight: 800;
  letter-spacing: -.02em; color: var(--text);
  margin-bottom: 1rem; line-height: 1.2;
}

.hiw-split__body { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 1.25rem; }

.hiw-feature-list { display: flex; flex-direction: column; gap: 10px; }

.hiw-feature-list__item { display: flex; gap: 12px; align-items: flex-start; }

.hiw-feature-list__icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  flex-shrink: 0; font-size: 14px;
}

.hiw-feature-list__title { font-size: 13px; font-weight: 700; color: var(--text); }
.hiw-feature-list__sub   { font-size: 12px; color: var(--muted); }


/* ══════════════════════════════════════
   12. PAY STEPS GRID
   ══════════════════════════════════════ */
.hiw-pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.hiw-pay-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px;
  box-shadow: var(--shadow-sm); position: relative;
}

.hiw-pay-card__icon {
  width: 36px; height: 36px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; font-size: 16px;
}

.hiw-pay-card__step-badge {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  border-radius: var(--r-full); padding: 2px 7px;
  border: 1px solid transparent;
}

.hiw-pay-card__title { font-family: var(--font-d); font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.hiw-pay-card__body  { font-size: 12px; color: var(--muted); line-height: 1.6; }


/* ══════════════════════════════════════
   13. BROWSER / STOREFRONT MOCKUP
   ══════════════════════════════════════ */
.hiw-mockup {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hiw-browser-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
}

.hiw-browser-dots { display: flex; gap: 5px; }
.hiw-browser-dot  { width: 10px; height: 10px; border-radius: 50%; }
.hiw-browser-dot--red    { background: #fc5c57; }
.hiw-browser-dot--yellow { background: #fdbc40; }
.hiw-browser-dot--green  { background: #33c748; }

.hiw-browser-url {
  flex: 1; background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  font-size: 10px; color: var(--faint);
  font-family: var(--mono);
}

.hiw-mockup__hero {
  background: linear-gradient(140deg,#08143c,var(--p));
  padding: 20px; color: #fff;
}

.hiw-mockup__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 16px; font-weight: 700;
  margin-bottom: 10px;
}

.hiw-mockup__name { font-family: var(--font-d); font-size: 16px; font-weight: 800; margin-bottom: 3px; }
.hiw-mockup__sub  { font-size: 12px; color: rgba(255,255,255,.6); }

.hiw-mockup__stats {
  display: flex; gap: 16px; margin-top: 14px;
}
.hiw-mockup__stat-num { font-family: var(--font-d); font-size: 16px; font-weight: 700; }
.hiw-mockup__stat-lbl { font-size: 10px; color: rgba(255,255,255,.5); }

.hiw-mockup__body { padding: 14px; }
.hiw-mockup__list-title { font-family: var(--font-d); font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 10px; }

.hiw-mockup__car-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.hiw-mockup__car-img {
  height: 80px;
  background: linear-gradient(135deg,#1e293b,#334155);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3); font-size: 24px;
}
.hiw-mockup__car-body { padding: 10px; }
.hiw-mockup__car-name { font-family: var(--font-d); font-size: 12px; font-weight: 700; color: var(--text); }
.hiw-mockup__car-price { font-family: var(--font-d); font-size: 14px; font-weight: 800; color: var(--p); margin-top: 2px; }


/* ══════════════════════════════════════
   14. COMMISSION CALCULATOR
   ══════════════════════════════════════ */
.hiw-calc { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.hiw-calc__controls { padding: 2rem; border-bottom: 1px solid var(--border); }
.hiw-calc__sliders  { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.hiw-calc__slider-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--faint); display: block; margin-bottom: 8px;
}
.hiw-calc__slider-label--green { color: var(--green); } /* commission rate */

.hiw-calc__display {
  font-family: var(--font-d); font-size: 18px; font-weight: 700;
  color: var(--text); margin-top: 8px;
}

.hiw-calc__type-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }

.hiw-calc__type-label {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--bg);
  border-radius: var(--r-md); cursor: pointer;
  font-size: 13px; color: var(--text);
}

.hiw-calc__monthly-wrap { margin-top: 12px; }

.hiw-calc__result { padding: 2rem; background: linear-gradient(135deg,#f8faff,#eef2ff); }
.hiw-calc__result-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }

.hiw-calc__result-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.hiw-calc__result-label  { font-size: 11px; color: var(--faint); margin-bottom: 6px; }
.hiw-calc__result-value  { font-family: var(--font-d); font-size: 20px; font-weight: 800; }
.hiw-calc__result-value--text   { color: var(--text); }
.hiw-calc__result-value--red    { color: var(--red); }
.hiw-calc__result-value--p      { color: var(--p); }

.hiw-calc__disclaimer { font-size: 11px; color: var(--faint); text-align: center; margin: 0; }


/* ══════════════════════════════════════
   15. BROKER NETWORK MOCK LIST
   ══════════════════════════════════════ */
.hiw-broker-list {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md);
}
.hiw-broker-list__header {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 14px 18px;
  font-family: var(--font-d); font-size: 13px; font-weight: 700; color: var(--text);
}
.hiw-broker-list__body { padding: 16px; }

.hiw-broker-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.hiw-broker-row:last-of-type { border-bottom: none; }

.hiw-broker-row__avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,var(--p),#2563eb);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 12px; font-weight: 700; color: #fff;
}
.hiw-broker-row__name  { font-size: 13px; font-weight: 600; color: var(--text); }
.hiw-broker-row__meta  { font-size: 11px; color: var(--faint); }
.hiw-broker-list__note { padding-top: 10px; font-size: 11px; color: var(--faint); text-align: center; }


/* ══════════════════════════════════════
   16. LEAD PIPELINE
   ══════════════════════════════════════ */
.hiw-pipeline {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md);
}

.hiw-pipeline__stages {
  display: grid; border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.hiw-pipeline__stages--6col { grid-template-columns: repeat(6,1fr); }

.hiw-pipeline__stage {
  padding: 12px 8px; text-align: center;
  border-right: 1px solid var(--border);
}
.hiw-pipeline__stage:last-child { border-right: none; }
.hiw-pipeline__stage-icon  { font-size: 14px; display: block; margin-bottom: 5px; }
.hiw-pipeline__stage-label { font-family: var(--font-d); font-size: 10px; font-weight: 700; color: var(--text); }

.hiw-pipeline__body { padding: 20px; }

.hiw-pipeline__sample-label { font-size: 12px; color: var(--faint); margin-bottom: 12px; }

.hiw-pipeline__lead-card {
  background: var(--bg); border: 1.5px solid var(--p-b);
  border-radius: var(--r-lg); padding: 16px;
}
.hiw-pipeline__lead-head {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 10px;
}
.hiw-pipeline__lead-name { font-family: var(--font-d); font-size: 14px; font-weight: 700; color: var(--text); }
.hiw-pipeline__lead-contact { font-size: 12px; color: var(--muted); margin-top: 2px; }

.hiw-pipeline__lead-meta {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.hiw-pipeline__lead-meta-item { font-size: 12px; color: var(--muted); }
.hiw-pipeline__lead-meta-item strong { color: var(--text); }

.hiw-pipeline__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.hiw-pipeline__btn {
  padding: 7px 14px; border-radius: var(--r-md);
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: var(--sans); border: 1px solid transparent;
  transition: background .15s;
}
.hiw-pipeline__btn--amber  { background: var(--amb-bg); border-color: var(--amb-b); color: var(--amber); }
.hiw-pipeline__btn--purple { background: var(--pur-bg); border-color: var(--pur-b); color: var(--purple); }
.hiw-pipeline__btn--green  { background: var(--gr-bg);  border-color: var(--gr-b);  color: var(--green); }
.hiw-pipeline__btn--red    { background: var(--red-bg); border-color: var(--red-b); color: var(--red); }


/* ══════════════════════════════════════
   17. VERIFICATION CARD
   ══════════════════════════════════════ */
.hiw-verification {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 2rem; box-shadow: var(--shadow-md);
}
.hiw-verification__inner {
  display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
}
.hiw-verification__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gr-bg); border: 2px solid var(--gr-b);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 26px; color: var(--green);
}
.hiw-verification__title { font-family: var(--font-d); font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.hiw-verification__body  { font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 1rem; }
.hiw-verification__cta   {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; background: var(--green); color: #fff;
  border-radius: var(--r-md); font-family: var(--font-d);
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background .18s;
}
.hiw-verification__cta:hover { background: #166534; text-decoration: none; }


/* ══════════════════════════════════════
   18. APPROVAL TIMELINE (EXEC PAGE)
   ══════════════════════════════════════ */
.hiw-timeline { position: relative; }

.hiw-timeline__line {
  position: absolute; left: 25px; top: 26px; bottom: 26px;
  width: 2px; background: var(--border); border-radius: 1px;
}

.hiw-timeline__item {
  display: flex; gap: 20px;
  position: relative;
}
.hiw-timeline__item + .hiw-timeline__item { margin-top: 28px; }

.hiw-timeline__icon {
  width: 52px; height: 52px; border-radius: 50%;
  flex-shrink: 0; position: relative; z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  font-size: 18px;
}
.hiw-timeline__icon--dim { opacity: .7; }

.hiw-timeline__content { flex: 1; padding-top: 12px; }

.hiw-timeline__meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px; flex-wrap: wrap;
}
.hiw-timeline__title  { font-family: var(--font-d); font-size: 15px; font-weight: 700; color: var(--text); margin: 0; }
.hiw-timeline__body   { font-size: 13px; color: var(--muted); line-height: 1.75; margin: 0; }

@keyframes hiw-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hiw-spin { animation: hiw-spin 2s linear infinite; }


/* ══════════════════════════════════════
   19. SCOPE CARD (CAN / PRINCIPAL HANDLES)
   ══════════════════════════════════════ */
.hiw-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.hiw-scope__col {
  background: var(--white); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.hiw-scope__col--can     { border: 1.5px solid var(--gr-b); }
.hiw-scope__col--principal { border: 1.5px solid var(--border); }

.hiw-scope__header {
  padding: 14px 18px; border-bottom: 1px solid transparent;
  display: flex; align-items: center; gap: 8px;
}
.hiw-scope__header--can {
  background: var(--gr-bg); border-color: var(--gr-b);
}
.hiw-scope__header--principal {
  background: var(--bg); border-color: var(--border);
}
.hiw-scope__header-title {
  font-family: var(--font-d); font-size: 13px; font-weight: 800;
}
.hiw-scope__header-title--can       { color: var(--green); }
.hiw-scope__header-title--principal { color: var(--muted); }

.hiw-scope__body { padding: 16px; }

.hiw-scope__item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.hiw-scope__item:last-child { border-bottom: none; }

.hiw-scope__item-icon {
  flex-shrink: 0; margin-top: 3px; font-size: 11px;
}
.hiw-scope__item-icon--green   { color: var(--green); }
.hiw-scope__item-icon--faint   { color: var(--faint); font-size: 10px; }

.hiw-scope__item-text--can       { color: var(--text); }
.hiw-scope__item-text--principal { color: var(--muted); }


/* ══════════════════════════════════════
   20. ANALYTICS DASHBOARD MOCK
   ══════════════════════════════════════ */
.hiw-dash {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md);
}
.hiw-dash__header {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.hiw-dash__header-title { font-family: var(--font-d); font-size: 15px; font-weight: 700; color: var(--text); }
.hiw-dash__header-sub   { font-size: 12px; color: var(--faint); margin-top: 1px; }

.hiw-dash__stats {
  display: grid; border-bottom: 1px solid var(--border);
}
.hiw-dash__stats--4col { grid-template-columns: repeat(4,1fr); }

.hiw-dash__stat {
  padding: 20px 16px; text-align: center;
  border-right: 1px solid var(--border);
}
.hiw-dash__stat:last-child { border-right: none; }

.hiw-dash__stat-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; font-size: 14px;
}
.hiw-dash__stat-value { font-family: var(--font-d); font-size: 22px; font-weight: 800; color: var(--text); }
.hiw-dash__stat-label { font-size: 11px; color: var(--faint); margin-top: 2px; }

.hiw-dash__leads { padding: 16px 20px; }
.hiw-dash__leads-title { font-family: var(--font-d); font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 12px; }

.hiw-dash__lead-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.hiw-dash__lead-row:last-of-type { border-bottom: none; }

.hiw-dash__lead-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 11px; font-weight: 700;
  border: 1px solid transparent;
}
.hiw-dash__lead-name { font-size: 13px; font-weight: 600; color: var(--text); }
.hiw-dash__lead-car  { font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hiw-dash__note      { margin-top: 8px; font-size: 11px; color: var(--faint); text-align: center; }


/* ══════════════════════════════════════
   21. BROKER CTA NUDGE CARD
   ══════════════════════════════════════ */
.hiw-nudge {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 2rem; box-shadow: var(--shadow-md);
}
.hiw-nudge__inner  { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.hiw-nudge__icon   {
  width: 56px; height: 56px; border-radius: var(--r-lg);
  background: var(--p-light); border: 1.5px solid var(--p-b);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 22px; color: var(--p);
}
.hiw-nudge__title  { font-family: var(--font-d); font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.hiw-nudge__body   { font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 1rem; }
.hiw-nudge__link   { font-size: 13px; color: var(--p); font-weight: 600; text-decoration: none; }
.hiw-nudge__link:hover { text-decoration: underline; }


/* ══════════════════════════════════════
   22. FAQ
   ══════════════════════════════════════ */
.hiw-faq { display: flex; flex-direction: column; gap: 8px; }

.hiw-faq__item {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--white); overflow: hidden;
}

.hiw-faq__question {
  padding: 16px 18px;
  font-size: 14px; font-weight: 600; color: var(--text);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; user-select: none;
  transition: background .15s;
}
.hiw-faq__question:hover { background: var(--bg); }
.hiw-faq__question::-webkit-details-marker { display: none; }

.hiw-faq__question-icon {
  font-size: 11px; color: var(--faint); flex-shrink: 0;
  transition: transform .2s ease;
}
details[open] .hiw-faq__question-icon { transform: rotate(45deg); }

.hiw-faq__answer {
  padding: 0 18px 16px;
  font-size: 13px; color: var(--muted);
  line-height: 1.75; border-top: 1px solid var(--border);
}


/* ══════════════════════════════════════
   23. CROSS-LINK CARDS
   ══════════════════════════════════════ */
.hiw-crosslinks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.hiw-crosslink {
  display: flex; gap: 14px; padding: 18px;
  background: var(--white);
  border-radius: var(--r-lg);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: box-shadow .18s;
}
.hiw-crosslink:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.hiw-crosslink--p      { border-color: var(--p-b); }
.hiw-crosslink--green  { border-color: var(--gr-b); }
.hiw-crosslink--amber  { border-color: var(--amb-b); }

.hiw-crosslink__icon {
  width: 42px; height: 42px; border-radius: var(--r-md);
  flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: 16px;
}
.hiw-crosslink__title { font-family: var(--font-d); font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.hiw-crosslink__body  { font-size: 12px; color: var(--muted); line-height: 1.5; }


/* ══════════════════════════════════════
   24. FINAL CTA
   ══════════════════════════════════════ */
.hiw-cta {
  text-align: center; border-radius: var(--r-xl);
  padding: 3rem 2rem; color: #fff;
  position: relative; overflow: hidden;
}
.hiw-cta--p     { background: linear-gradient(135deg,#08143c,var(--p)); }
.hiw-cta--green { background: linear-gradient(135deg,#14532d,var(--green)); }
.hiw-cta--amber { background: linear-gradient(135deg,#78350f,var(--amber)); }

.hiw-cta::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.06); pointer-events: none;
}

.hiw-cta__inner { position: relative; z-index: 1; }

.hiw-cta__title {
  font-family: var(--font-d); font-size: 28px; font-weight: 800;
  margin-bottom: 10px; letter-spacing: -.02em; line-height: 1.15;
}

.hiw-cta__body {
  font-size: 15px; color: rgba(255,255,255,.65);
  margin-bottom: 2rem;
  max-width: 420px; margin-left: auto; margin-right: auto; line-height: 1.7;
}

.hiw-cta__btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 16px 48px; font-size: 16px; font-weight: 700;
  font-family: var(--font-d); background: #fff;
  border: none; cursor: pointer; border-radius: var(--r-md);
  text-decoration: none; transition: opacity .18s;
}
.hiw-cta__btn:hover { opacity: .9; text-decoration: none; }
.hiw-cta__btn--p     { color: var(--p); }
.hiw-cta__btn--green { color: var(--green); }
.hiw-cta__btn--amber { color: var(--amber); }

.hiw-cta__sub {
  margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.45);
}
.hiw-cta__sub a { color: rgba(255,255,255,.7); }
.hiw-cta__sub2  { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.35); }
.hiw-cta__sub2 a { color: rgba(255,255,255,.6); }


/* ══════════════════════════════════════
   25. RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 900px) {
  .hiw-split          { grid-template-columns: 1fr; gap: 24px; }
  .hiw-split__visual  { order: -1; } /* mockup above text on mobile */
  .hiw-dark-block__grid--2col { grid-template-columns: 1fr; }
  .hiw-scope          { grid-template-columns: 1fr; }
  .hiw-diagram__nodes--5col { grid-template-columns: 1fr; gap: 16px; }
  .hiw-diagram__nodes--5col .hiw-diagram__arrow { display: none; }
  .hiw-calc__sliders  { grid-template-columns: 1fr; }
  .hiw-calc__result-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hiw-dash__stats--4col { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 680px) {
  .hiw-diagram__nodes { grid-template-columns: 1fr; gap: 16px; }
  .hiw-diagram__nodes .hiw-diagram__arrow { display: none; }
  .hiw-diagram__nodes--5col { grid-template-columns: 1fr; }
  .hiw-crosslinks     { grid-template-columns: 1fr; }
  .hiw-dark-block__grid { grid-template-columns: 1fr; }
  .hiw-feature-grid   { grid-template-columns: 1fr 1fr; }
  .hiw-pay-grid       { grid-template-columns: 1fr 1fr; }
  .hiw-pipeline__stages--6col { grid-template-columns: repeat(3,1fr); }
  .hiw-calc__type-row { grid-template-columns: 1fr; }
  .hiw-calc__result-grid { grid-template-columns: 1fr; }
  .hiw-dash__stats--4col { grid-template-columns: repeat(2,1fr); }
  .hiw-cta__title     { font-size: 22px; }
  .hiw-verification__inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hiw-hero__title    { font-size: 28px; }
  .hiw-switcher       { gap: 6px; }
  .hiw-switcher__pill { padding: 7px 14px; font-size: 12px; }
  .hiw-feature-grid   { grid-template-columns: 1fr; }
  .hiw-pay-grid       { grid-template-columns: 1fr; }
  .hiw-dark-block     { padding: 1.5rem; }
  .hiw-cta            { padding: 2rem 1.25rem; }
  .hiw-scope          { grid-template-columns: 1fr; }
  .hiw-vbranch        { flex-direction: column; align-items: center; }
  .hiw-diagram__vbranch { flex-direction: column; align-items: center; gap: 16px; }
  .hiw-broker-list    { border-radius: var(--r-lg); }
  .hiw-pipeline__stages--6col { grid-template-columns: repeat(2,1fr); }
}