/* ============================================================
   Homepage v2 — page-specific styles for the new diagram + product rows
   ============================================================ */

/* Larger section spacing for visual breathing room */
.section--lg { padding-block: 96px; }
@media (max-width: 720px) { .section--lg { padding-block: 64px; } }

/* Centered section heads */
.section-head--center {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  align-items: center;
}
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lede { margin-inline: auto; }

/* ============================================================
   How Patch works diagram
   ============================================================ */
.v2-diagram {
  margin: 56px auto 24px;
  max-width: 880px;
  display: flex; flex-direction: column;
  align-items: center;
}

.v2-d-tier {
  width: 100%;
  display: flex;
  justify-content: center;
}

.v2-d-tier-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin: 18px 0 10px;
}

.v2-d-connector {
  width: 2px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(0,77,48,0.3) 0%, rgba(0,77,48,0.15) 100%);
}

/* Tier 1: Patch */
.v2-d-patch {
  background: var(--g-700);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 40px;
  text-align: center;
  display: flex; flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card-lg);
  min-width: 360px;
}
.v2-d-patch__mark {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.v2-d-patch__line {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
}

/* Tier 2: Categories */
.v2-d-tier--categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.v2-d-cat {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card-dense);
}
.v2-d-cat__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.v2-d-cat__sub {
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
}
.v2-d-cat__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.v2-d-cat__list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.v2-d-dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.v2-d-dot--factoring { background: var(--p-factoring); }
.v2-d-dot--premfin { background: var(--p-premfin); }
.v2-d-dot--ewa { background: var(--p-ewa); }
.v2-d-dot--loans { background: var(--p-loans); }
.v2-d-dot--card { background: var(--p-card); }

/* Tier 3: Channels */
.v2-d-tier--channels {
  flex-wrap: wrap;
  gap: 10px;
}
.v2-d-chip {
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* Tier 4: Businesses */
.v2-d-biz {
  background: var(--surface-cream);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  text-align: center;
  display: flex; flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(0, 77, 48, 0.08);
}
.v2-d-biz__label {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.v2-d-biz__sub {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}
.v2-d-biz__verticals {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  margin-top: 8px;
}
.v2-d-biz__verticals span {
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}
.v2-d-biz__verticals span:not(:last-child)::after {
  content: " ·";
  margin-left: 4px;
  color: var(--text-muted);
}

.v2-d-foot {
  margin: 32px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}

@media (max-width: 720px) {
  .v2-d-tier--categories { grid-template-columns: 1fr; }
  .v2-d-patch { min-width: 0; padding: 22px 24px; }
  .v2-d-patch__mark { font-size: 24px; }
}

/* ============================================================
   Products section — stacked rows with product visuals
   ============================================================ */
.v2-prodsection .section-head { margin-bottom: 56px; }

.v2-prod-row { margin-bottom: 64px; }
.v2-prod-row:last-of-type { margin-bottom: 0; }

.v2-prod-row__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-700);
  margin: 0 0 24px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--surface-divider);
}
.v2-prod-row__sub {
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
}

.v2-prod-grid {
  display: grid;
  gap: 24px;
}
.v2-prod-grid--two { grid-template-columns: 1fr 1fr; }
.v2-prod-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.v2-prod-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-lg);
  display: flex; flex-direction: column;
  border-left: 5px solid transparent;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-in-out);
}
.v2-prod-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-lg), 0 24px 48px -24px rgba(0, 46, 29, 0.18);
}
.v2-prod-card--factoring { border-left-color: var(--p-factoring); }
.v2-prod-card--premfin { border-left-color: var(--p-premfin); }
.v2-prod-card--ewa { border-left-color: var(--p-ewa); }
.v2-prod-card--loans { border-left-color: var(--p-loans); }
.v2-prod-card--card { border-left-color: var(--p-card); }

.v2-prod-card__visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--surface-divider);
}
.v2-prod-card__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.v2-prod-card__body {
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 14px;
  flex: 1;
}
.v2-prod-card__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-primary);
}
.v2-prod-card__copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  flex: 1;
}
.v2-prod-card__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--surface-divider);
}
.v2-prod-card__pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.v2-prod-card__pill--live {
  background: var(--g-50);
  color: var(--g-700);
}
.v2-prod-card__pill--live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--success);
}
.v2-prod-card__pill--soon {
  background: var(--surface-alt);
  color: var(--text-secondary);
}

.v2-prodsection__cta {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

@media (max-width: 960px) {
  .v2-prod-grid--three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .v2-prod-grid--two, .v2-prod-grid--three { grid-template-columns: 1fr; }
  .v2-prod-row { margin-bottom: 48px; }
  .v2-prodsection .section-head { margin-bottom: 40px; }
}


/* ============================================================
   v2 — Background tints for section rhythm
   ============================================================ */
.v2-bg--white { background: var(--surface-card); }
.v2-bg--cream { background: var(--surface-cream); }

/* Stronger eyebrows site-wide on v2 — orange underline accent */
.v2-howworks .eyebrow,
.v2-prodsection .eyebrow { display: none; }

/* For other sections on this page, strengthen the eyebrow */
.solve-section .eyebrow,
.twoways .eyebrow,
.whyworks .eyebrow,
.founder .founder__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-700);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 6px;
}
.solve-section .eyebrow::after,
.twoways .eyebrow::after,
.whyworks .eyebrow::after,
.founder .founder__eyebrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 3px;
  background: var(--o-700);
  border-radius: 2px;
}
.section-head--center .eyebrow::after { left: 50%; transform: translateX(-50%); }
.solve-section .eyebrow .dot,
.twoways .eyebrow .dot,
.whyworks .eyebrow .dot { display: none; }

/* Stat callouts — orange % accent */
.solve-section .solve-stat__num { color: var(--text-primary); }
.solve-section .solve-stat__num::first-letter { color: var(--text-primary); }
.solve-section .solve-stat {
  position: relative;
  padding-top: 24px;
}
.solve-section .solve-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 4px;
  background: var(--o-700);
  border-radius: 2px;
}

/* ============================================================
   v2 — Diagram (stronger, varied tier treatments)
   ============================================================ */
.v2-diagram {
  margin: 64px auto 0;
  max-width: 880px;
  display: flex; flex-direction: column;
  align-items: stretch;
}

.v2-d-line {
  width: 3px;
  height: 40px;
  background: var(--g-700);
  margin: 0 auto;
  border-radius: 2px;
}

/* Tier 1: Patch */
.v2-d-patch {
  background: var(--g-700);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 56px;
  text-align: center;
  display: flex; flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card-lg);
  align-self: center;
  min-width: 420px;
}
.v2-d-patch__mark {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.v2-d-patch__line {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.01em;
}

/* Generic box container */
.v2-d-box {
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-card-dense);
}
.v2-d-box__header {
  display: flex; flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  text-align: center;
}
.v2-d-box__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
  position: relative;
}
.v2-d-box__eyebrow::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--o-700);
  border-radius: 2px;
}
.v2-d-box__sub {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  max-width: 56ch;
  margin-inline: auto;
}

/* Products container */
.v2-d-box--products {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
}
.v2-d-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.v2-d-sub {
  background: var(--surface-canvas);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  border-top: 4px solid transparent;
}
.v2-d-sub--working { border-top-color: var(--p-factoring); background: rgba(180, 155, 202, 0.08); }
.v2-d-sub--paycheck { border-top-color: var(--p-ewa); background: rgba(143, 196, 176, 0.10); }
.v2-d-sub__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.v2-d-sub__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.v2-d-sub__list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.v2-d-dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.v2-d-dot--factoring { background: var(--p-factoring); }
.v2-d-dot--premfin { background: var(--p-premfin); }
.v2-d-dot--ewa { background: var(--p-ewa); }
.v2-d-dot--loans { background: var(--p-loans); }
.v2-d-dot--card { background: var(--p-card); }

/* Channels container */
.v2-d-box--channels { background: var(--surface-cream); }
.v2-d-channels {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px;
}
.v2-d-chip {
  background: var(--surface-card);
  border: 1px solid rgba(0, 77, 48, 0.18);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* SMBs container — orange-tinted destination */
.v2-d-box--smbs {
  background: rgba(255, 82, 25, 0.07);
  border: 1px solid rgba(255, 82, 25, 0.18);
}
.v2-d-smb {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
}
.v2-d-smb__label {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--g-700);
}
.v2-d-smb__sub {
  font-size: 15px;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}
.v2-d-smb__verticals {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 12px 0 8px;
}
.v2-d-smb__verticals li {
  background: var(--surface-card);
  border: 1px solid rgba(0, 46, 29, 0.12);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.v2-d-smb__note {
  margin: 12px 0 0 0;
  font-size: 13px;
  color: var(--text-tertiary);
  max-width: 52ch;
}

@media (max-width: 720px) {
  .v2-d-patch { min-width: 0; padding: 28px 32px; }
  .v2-d-patch__mark { font-size: 32px; }
  .v2-d-products { grid-template-columns: 1fr; }
  .v2-d-box { padding: 24px 22px; }
  .v2-d-smb__label { font-size: 22px; }
}

/* ============================================================
   v2 — Product cards: icons, bullet lists, row spacing
   ============================================================ */
.v2-prod-row { margin-bottom: 88px; }
.v2-prod-row:last-of-type { margin-bottom: 0; }

.v2-prod-row__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-700);
  margin: 0 0 28px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--surface-divider);
  display: flex;
  align-items: center;
  gap: 12px;
}
.v2-eyebrow-rule {
  display: inline-block;
  width: 24px; height: 3px;
  background: var(--o-700);
  border-radius: 2px;
}

.v2-prod-card__icon {
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  align-items: center; justify-content: center;
  margin-bottom: -2px;
}
.v2-prod-card--factoring .v2-prod-card__icon { background: rgba(180, 155, 202, 0.18); color: var(--p-factoring-ink); }
.v2-prod-card--premfin .v2-prod-card__icon { background: rgba(201, 169, 128, 0.20); color: var(--p-premfin-ink); }
.v2-prod-card--ewa .v2-prod-card__icon { background: rgba(143, 196, 176, 0.22); color: var(--p-ewa-ink); }
.v2-prod-card--loans .v2-prod-card__icon { background: rgba(232, 196, 112, 0.22); color: var(--p-loans-ink); }
.v2-prod-card--card .v2-prod-card__icon { background: rgba(216, 153, 153, 0.22); color: var(--p-card-ink); }

.v2-prod-card__bullets {
  list-style: none;
  margin: 4px 0 0 0;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 8px;
}
.v2-prod-card__bullets li {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  padding-left: 18px;
  position: relative;
}
.v2-prod-card__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 2px;
  background: var(--g-700);
}

/* Fix image crop for paycheck-access phone screenshots — show full screen content */
.v2-prod-card--ewa .v2-prod-card__visual,
.v2-prod-card--loans .v2-prod-card__visual,
.v2-prod-card--card .v2-prod-card__visual {
  aspect-ratio: 4 / 3;
  background: var(--surface-cream);
  display: flex; align-items: center; justify-content: center;
  padding: 18px 0;
}
.v2-prod-card--ewa .v2-prod-card__visual img,
.v2-prod-card--loans .v2-prod-card__visual img,
.v2-prod-card--card .v2-prod-card__visual img {
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: var(--shadow-photo-glow);
}


/* ============================================================
   v2 — Canvas surface (matches hero offwhite)
   ============================================================ */
.v2-bg--canvas { background: var(--surface-canvas); }

/* Force diagram lede to single-line on desktop */
@media (min-width: 880px) {
  .v2-howworks .section-head--center .lede {
    white-space: nowrap;
    max-width: none;
  }
}

/* ============================================================
   v2 diagram — unified white + orange palette
   ============================================================ */

/* Tighten container max width slightly so it doesn't feel airy */
.v2-diagram { max-width: 820px; gap: 0; }
.v2-d-line { height: 32px; }

/* Sub-cards: unify to soft cream with orange accent (instead of plum/sage tints) */
.v2-d-sub--working,
.v2-d-sub--paycheck {
  background: var(--surface-card);
  border: 1px solid rgba(255, 82, 25, 0.16);
  border-top: 4px solid var(--o-700);
  box-shadow: var(--shadow-card-dense);
}

/* Products container: tighter padding */
.v2-d-box--products { padding: 24px 28px; }
.v2-d-products { gap: 12px; }
.v2-d-sub { padding: 20px 22px; }

/* Channels container: slightly tighter */
.v2-d-box--channels { padding: 24px 28px; }
.v2-d-channels { gap: 8px; }

/* SMBs container: tighter padding */
.v2-d-box--smbs { padding: 28px 32px; }

/* ============================================================
   Product section — bigger row eyebrows for Working capital + Paycheck access
   ============================================================ */
.v2-prod-row__eyebrow {
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 18px;
}
.v2-prod-row__eyebrow .v2-prod-row__sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-tertiary);
}
.v2-eyebrow-rule {
  width: 32px;
  height: 4px;
}


/* ============================================================
   v2 diagram — second iteration: tier headers inline, wider, simplified palette
   ============================================================ */

/* Widen diagram and Patch box */
.v2-diagram { max-width: 1080px; }
.v2-d-patch {
  min-width: 0;
  width: 100%;
  max-width: 540px;
  padding: 48px 56px;
}

/* Patch brand lockup (wordmark + chip) */
.v2-d-patch__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.v2-d-patch__chip {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--g-500);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.v2-d-patch__word {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}

/* Hide the old mark span if it's still present elsewhere */
.v2-d-patch__mark { display: none; }

/* Tier headers inline (replace stacked eyebrow + sub) */
.v2-d-box {
  padding: 32px 36px;
  text-align: left;
}
.v2-d-box__header { display: none; }
.v2-d-box__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  padding-bottom: 12px;
  position: relative;
}
.v2-d-box__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 3px;
  background: var(--o-700);
  border-radius: 2px;
}
.v2-d-box__sub {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 8px 0 18px 0;
  max-width: 64ch;
}

/* Simplified palette: products + smbs both white with border */
.v2-d-box--products {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
}
.v2-d-box--channels {
  background: var(--surface-cream);
  border: none;
}
.v2-d-box--smbs {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
}

/* Sub-cards: keep cream + orange-top accent treatment */
.v2-d-sub__label {
  margin-bottom: 14px;
}
.v2-d-sub__aud {
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}

/* Channels: align chips to flex-start now that container is left-aligned */
.v2-d-channels {
  justify-content: flex-start;
}

/* SMB verticals: left-aligned now */
.v2-d-smb__verticals {
  justify-content: flex-start;
  margin: 8px 0 14px;
}
.v2-d-smb__note {
  text-align: left;
  margin: 4px 0 0 0;
}
.v2-d-smb { align-items: stretch; text-align: left; }
.v2-d-smb__label, .v2-d-smb__sub { display: none; }

/* Mobile */
@media (max-width: 720px) {
  .v2-d-patch { padding: 32px 28px; }
  .v2-d-patch__word { font-size: 36px; }
  .v2-d-patch__chip { width: 36px; height: 36px; font-size: 22px; }
  .v2-d-box { padding: 24px 22px; }
}


/* Sub-card top stripe — green (replaces orange) */
.v2-d-sub--working,
.v2-d-sub--paycheck {
  border-top-color: var(--g-700);
  border-color: rgba(0, 77, 48, 0.16);
}

/* Force the SMB italic note to one line on desktop */
@media (min-width: 880px) {
  .v2-d-smb__note { white-space: nowrap; }
}


/* Tighten "How Patch works" section vertical rhythm */
.v2-howworks { padding-block: 56px 56px; }
.v2-howworks .section-head { margin-bottom: 32px; }
.v2-howworks .section-head .lede { margin-bottom: 0; }
.v2-diagram { margin-top: 32px; padding-bottom: 0; }

/* Logo lockup in green Patch box */
.v2-d-patch__logo {
  width: auto;
  height: 64px;
  display: block;
}
.v2-d-patch__chip,
.v2-d-patch__word { display: none; }

@media (max-width: 720px) {
  .v2-d-patch__logo { height: 48px; }
}


/* Bolder sub copy in diagram boxes for legibility */
.v2-d-box__sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}


/* ============================================================
   How Patch works — mobile polish (≤720px)
   ============================================================ */
@media (max-width: 720px) {
  .v2-howworks { padding-block: 48px 48px; }
  .v2-howworks .section-head h2 { font-size: clamp(28px, 7vw, 36px); }
  .v2-howworks .section-head .lede { white-space: normal; font-size: 15px; }

  .v2-diagram { max-width: 100%; }

  /* Patch box */
  .v2-d-patch { padding: 28px 24px; max-width: 100%; gap: 14px; }
  .v2-d-patch__logo { height: 44px; }
  .v2-d-patch__line { font-size: 14px; }

  /* Tier connector line a bit shorter on mobile */
  .v2-d-line { height: 24px; }

  /* All containers consistent tight padding */
  .v2-d-box { padding: 22px 20px; }
  .v2-d-box__title { font-size: 16px; padding-bottom: 10px; }
  .v2-d-box__sub { font-size: 14px; margin: 6px 0 14px; }

  /* Products sub-cards stack with tighter gap */
  .v2-d-products { grid-template-columns: 1fr; gap: 10px; }
  .v2-d-sub { padding: 18px 18px; }
  .v2-d-sub__label { font-size: 14px; }
  .v2-d-sub__aud { display: block; margin-top: 2px; font-size: 12px; }

  /* Channels chips wrap nicely */
  .v2-d-channels { gap: 6px; }
  .v2-d-chip { padding: 8px 12px; font-size: 13px; }

  /* SMB verticals chips */
  .v2-d-smb__verticals { gap: 6px; }
  .v2-d-smb__verticals li { padding: 5px 10px; font-size: 12px; }

  /* Override the desktop nowrap so the note can wrap on mobile */
  .v2-d-smb__note { white-space: normal !important; font-size: 13px; }
}


/* ============================================================
   Diagram — shorter Patch bar + icon chips
   ============================================================ */
.v2-d-patch { padding: 22px 40px; gap: 6px; }
.v2-d-patch__logo { height: 44px; }
.v2-d-patch__line { font-size: 13px; }

.v2-d-chip {
  display: inline-flex; align-items: center; gap: 8px;
}
.v2-d-chip__icon {
  color: var(--g-700);
  display: inline-flex;
}
.v2-d-vert-icon {
  display: inline-flex;
  color: var(--g-700);
  margin-right: 6px;
  vertical-align: -2px;
}


/* ============================================================
   Diagram — channel + SMB cards (homepage version, lighter than partners-v2)
   ============================================================ */
.v2-d-channels--cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  justify-content: stretch;
}
.hv2-ch-card,
.hv2-smb-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 18px 18px;
  box-shadow: var(--shadow-card-dense);
  border: 1px solid var(--surface-border);
  display: flex; flex-direction: column;
  gap: 8px;
}
.hv2-ch-card__icon,
.hv2-smb-card__icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--g-50);
  color: var(--g-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.hv2-ch-card__name,
.hv2-smb-card__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.hv2-ch-card__desc,
.hv2-smb-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.hv2-smbs-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 1080px) {
  .v2-d-channels--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hv2-smbs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .v2-d-channels--cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hv2-smbs-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 480px) {
  .v2-d-channels--cards { grid-template-columns: 1fr; }
  .hv2-smbs-grid { grid-template-columns: 1fr; }
}


/* Diagram — Platform (was Products) tier: shorter footprint */
.v2-d-box--products { padding: 20px 24px; }
.v2-d-box--products .v2-d-box__title { margin-bottom: 4px; padding-bottom: 8px; }
.v2-d-box--products .v2-d-box__sub { margin: 4px 0 14px; font-size: 13px; }
.v2-d-box--products .v2-d-products { gap: 10px; }
.v2-d-box--products .v2-d-sub { padding: 14px 16px; border-top-width: 3px; }
.v2-d-box--products .v2-d-sub__label { margin-bottom: 8px; font-size: 13px; }
.v2-d-box--products .v2-d-sub__list { gap: 6px; }
.v2-d-box--products .v2-d-sub__list li { font-size: 14px; }
.v2-d-box--products .v2-d-dot { width: 8px; height: 8px; }


/* All 2-up platform card rows — shorter product UI image (matches WC home pattern) */
.v2-prod-grid--two .v2-prod-card__visual {
  aspect-ratio: 16 / 7;
}


/* ============================================================
   v2 mobile responsiveness pass — sitewide fixes (≤480px)
   Targets common 2-up rows, hero CTAs, card metas, eyebrow rules,
   tap-target sizes, horizontal-overflow guards, form fields.
   ============================================================ */

/* Global guard: prevent ANY horizontal scroll on mobile body */
@media (max-width: 720px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .container { padding-inline: 16px; }
}

/* ============================================================
   Hero CTAs — full-width buttons on small phones
   ============================================================ */
@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__ctas .btn,
  .hero__ctas .btn--lg {
    width: 100%;
    min-height: 52px;
    padding-inline: 18px;
    font-size: 15px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    height: auto;
  }
}

/* ============================================================
   v2 product cards — meta row stacks at small widths so pill + CTA stop colliding
   ============================================================ */
@media (max-width: 480px) {
  .v2-prod-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .v2-prod-card__pill { align-self: flex-start; }
}

/* ============================================================
   v2 product rows — eyebrows wrap cleanly; audience sub-tags drop to own line
   ============================================================ */
@media (max-width: 540px) {
  .v2-prod-row__eyebrow {
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.3;
  }
  .v2-prod-row__sub {
    display: block;
    width: 100%;
    font-size: 13px;
  }
}

/* ============================================================
   v2 diagram — Patch bar shrinks gracefully + spacing tightens
   ============================================================ */
@media (max-width: 480px) {
  .v2-d-patch { padding: 18px 18px; gap: 6px; flex-direction: column; text-align: center; }
  .v2-d-patch__logo { height: 36px; }
  .v2-d-patch__line { font-size: 12px; }
  .v2-d-box { padding: 20px 18px; }
  .v2-d-box__title { font-size: 16px; }
  .v2-d-box__sub { font-size: 14px; }
  .v2-d-line { height: 20px; width: 2px; }
}

/* Section--lg breathing — tighter on small screens */
@media (max-width: 480px) {
  .section--lg { padding-block: 48px; }
  .section { padding-block: 48px; }
}

/* ============================================================
   Forms — full-width fields + comfortable tap targets
   ============================================================ */
@media (max-width: 540px) {
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-field--full { grid-column: 1; }
  .form-field input,
  .form-field select,
  .form-field textarea {
    min-height: 48px;
    font-size: 16px; /* iOS — prevents zoom on focus */
  }
  .form-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .form-footer .btn { width: 100%; min-height: 52px; }
  .form-footer .legal { text-align: center; }
  .form-card { padding: 24px 20px; }
}

/* ============================================================
   Contact two-col → 1-col, large links stay readable
   ============================================================ */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-direct { position: static; }
}
@media (max-width: 480px) {
  .contact-direct__link--lg { font-size: 20px; word-break: break-word; }
  .contact-direct--v2 { padding: 26px 22px; }
}

/* ============================================================
   Working Capital comparison table — clearer scroll hint at small sizes
   ============================================================ */
@media (max-width: 540px) {
  .wc-compare-wrap::after {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 10px;
  }
}

/* ============================================================
   Stat rows — ensure they always stack at narrow widths
   ============================================================ */
@media (max-width: 480px) {
  .stat-row,
  .solve-stats,
  .outcomes-grid { grid-template-columns: 1fr; gap: 14px; }
  .stat-card,
  .solve-stat,
  .outcome-card { padding: 20px 22px; }
}

/* ============================================================
   Card padding tightening — many cards have 28-32px on desktop;
   reduce on mobile so cards aren't mostly padding
   ============================================================ */
@media (max-width: 480px) {
  .v2-prod-card__body,
  .why-card,
  .belief-card,
  .closing-path,
  .platform-prod-card { padding: 22px 22px; }
}

/* ============================================================
   Footer — links wrap cleanly at narrow widths
   ============================================================ */
@media (max-width: 480px) {
  .site-footer__legal { flex-direction: column; gap: 8px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}


/* ============================================================
   v2 mobile fixes — Round 2
   ============================================================ */

/* Fix 1 + 2: Hero CTA buttons full-width across ALL hero variants */
@media (max-width: 540px) {
  .hero__ctas,
  .partners-hero__copy .hero__ctas,
  .businesses-hero__copy .hero__ctas,
  .platform-hero__copy .hero__ctas,
  .pa-hero__copy .hero__ctas,
  .wc-hero__copy .hero__ctas,
  .pf-hero__copy .hero__ctas,
  .ib-hero__copy .hero__ctas,
  .cpas-hero__copy .hero__ctas,
  .pc-hero__copy .hero__ctas {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .hero__ctas .btn,
  .hero__ctas .btn--lg,
  .hero__ctas .btn--primary,
  .twoways__card .cta-row .btn,
  .twoways__card .cta-row .btn--primary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-inline: 16px !important;
    font-size: 15px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.2 !important;
    height: auto !important;
    min-height: 52px !important;
    justify-content: center !important;
  }
  /* Container padding gives some breathing room on edges */
  .container { padding-inline: 16px !important; }
}

/* Fix 3: Homepage diagram mobile layouts */
@media (max-width: 720px) {
  .v2-d-products { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
}
@media (max-width: 480px) {
  /* Override the previous 1-col rules — keep 2-col on mobile for channels + SMBs */
  .v2-d-channels--cards { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .hv2-smbs-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  /* Products sub-cards stay 2-col tightly */
  .v2-d-products { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .v2-d-sub { padding: 14px 14px !important; }
  .v2-d-sub__label { font-size: 13px !important; }
  .v2-d-sub__list li { font-size: 13px !important; }
}

/* Fix 4: Three-card sections — force stacked on mobile despite inline styles */
@media (max-width: 720px) {
  .howfit-grid[style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }
}

/* Fix 5: businesses-v2 "Built for businesses like yours" — 2-col on mobile */
@media (max-width: 720px) {
  .industries-grid { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }
}
@media (max-width: 380px) {
  .industries-grid { grid-template-columns: 1fr !important; }
}

/* Fix 6: WC comparison table scroll indicator — top-left above Structure label */
@media (max-width: 720px) {
  .wc-compare-wrap::after {
    left: 16px;
    right: auto;
    top: 16px;
  }
}
