/* ============================================================
   partners-v2.html — page-specific styles
   Adds: compressed Patch + Products tiers, expanded Channels grid,
   v2 eyebrow underline on partners sections, alternating bg rhythm.
   ============================================================ */

/* Hero — slight tightening on this page only */
.partners-hero { padding-top: 152px; padding-bottom: 80px; }

/* ============================================================
   Apply v2 eyebrow treatment to all partners.html sections
   ============================================================ */
.partners-hero .eyebrow,
.section:not(.v2-howworks):not(.v2-prodsection) .eyebrow,
.form-section .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;
}
.partners-hero .eyebrow::after,
.section:not(.v2-howworks):not(.v2-prodsection) .eyebrow::after,
.form-section .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%); }
.partners-hero .eyebrow .dot,
.section .eyebrow .dot,
.form-section .eyebrow .dot { display: none; }

/* ============================================================
   Diagram — Partners variant: compressed Patch + Products
   ============================================================ */

/* Compressed horizontal Patch bar (replaces home-v2 vertical anchor) */
.pv2-diagram { max-width: 1080px; }

.pv2-d-patch {
  background: var(--g-700);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-card-lg);
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}
.pv2-d-patch__brand { display: inline-flex; align-items: center; }
.pv2-d-patch__logo { height: 42px; width: auto; display: block; }
.pv2-d-patch__line {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.01em;
}

/* Compressed Products tier */
.pv2-products-box {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  padding: 22px 28px;
}
.pv2-products-box .v2-d-box__title { margin-bottom: 14px; padding-bottom: 8px; }
.pv2-products { gap: 12px; }
.pv2-products .v2-d-sub { padding: 16px 18px; }
.pv2-products .v2-d-sub__label { margin-bottom: 10px; font-size: 13px; }
.pv2-products .v2-d-sub__list { gap: 8px; }
.pv2-products .v2-d-sub__list li { font-size: 14px; }

/* ============================================================
   Channels tier — expanded with 5 cards
   ============================================================ */
.pv2-channels-box {
  background: var(--surface-cream);
  padding: 36px 40px;
}
.pv2-channels-box .v2-d-box__title { padding-bottom: 14px; }
.pv2-channels-box .v2-d-box__sub { margin-bottom: 28px; max-width: 100%; }

.pv2-channels-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.pv2-ch-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-card-dense);
  display: flex; flex-direction: column;
  gap: 10px;
}
.pv2-ch-card__icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--g-50);
  color: var(--g-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.pv2-ch-card__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.3;
}
.pv2-ch-card__desc {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 1080px) {
  .pv2-channels-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pv2-channels-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pv2-channels-box { padding: 26px 22px; }
  .pv2-d-patch { padding: 20px 22px; gap: 14px; flex-direction: column; text-align: center; }
  .pv2-d-patch__logo { height: 36px; }
}
@media (max-width: 480px) {
  .pv2-channels-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   Hero — slightly larger people image tiles (per latest iteration)
   ============================================================ */
.partners-hero__tile--a { width: 26%; }
.partners-hero__tile--b { width: 22%; }
.partners-hero__tile--c { width: 24%; }
.partners-hero__tile--d { width: 26%; }

@media (max-width: 640px) {
  .partners-hero__tile--a { width: 32%; }
  .partners-hero__tile--d { width: 32%; }
}

/* ============================================================
   FAQ section — white background break, stronger separation
   from How partnership works above (now canvas)
   ============================================================ */
.faq-section { padding-block: 96px; }
.faq-section .section-head { margin-bottom: 48px; }

/* How partnership works — bigger top spacing to feel distinct */
.how-partnership-section { padding-block: 96px; }
.how-partnership-section .howit {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-card-lg);
}

/* Inline CTA blocks (formerly orange text links, now centered buttons) */
.section-inline-cta--btn {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* Problem-section inline button — left-aligned, slight top margin */
.problem-inline-btn {
  margin-top: 18px;
  width: max-content;
  max-width: 100%;
  align-self: flex-start;
}

@media (max-width: 720px) {
  .how-partnership-section .howit { padding: 36px 24px; }
  .faq-section { padding-block: 64px; }
  .how-partnership-section { padding-block: 64px; }
}


/* Why partner — tighten spacing after dropping the lede */
section.section.v2-bg--white:has(.why-grid) .section-head { margin-bottom: 40px; }
.why-grid { gap: 20px; }


/* ============================================================
   SMBs box — expanded with 6 vertical cards in a 3x2 grid
   ============================================================ */
.pv2-smbs-box {
  padding: 36px 40px;
}
.pv2-smbs-box .v2-d-box__sub { margin-bottom: 28px; max-width: 100%; }

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

.pv2-smb-card {
  background: var(--surface-canvas);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.pv2-smb-card__icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--g-50);
  color: var(--g-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.pv2-smb-card__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.3;
}
.pv2-smb-card__desc {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
}

/* Override the desktop nowrap on smb__note now that the box is much wider/taller */
.pv2-smbs-box .v2-d-smb__note {
  white-space: normal;
  text-align: left;
  margin: 4px 0 0 0;
}
/* Hide the unused v2-d-smb__verticals chip list inside this expanded box (cards now carry the verticals) */
.pv2-smbs-box .v2-d-smb__verticals { display: none; }

@media (max-width: 1080px) {
  .pv2-smbs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pv2-smbs-box { padding: 26px 22px; }
  .pv2-smbs-grid { gap: 10px; }
}
@media (max-width: 480px) {
  .pv2-smbs-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   SMB box — compact 6-across card row
   ============================================================ */
.pv2-smbs-grid--compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.pv2-smb-card--compact {
  padding: 16px 14px;
  gap: 8px;
}
.pv2-smb-card--compact .pv2-smb-card__icon {
  width: 32px; height: 32px;
}
.pv2-smb-card--compact .pv2-smb-card__name {
  font-size: 13px;
  font-weight: 700;
}
.pv2-smb-card--compact .pv2-smb-card__desc {
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .pv2-smbs-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .pv2-smbs-grid--compact { grid-template-columns: 1fr 1fr; }
}

/* Italic closing note inside SMB box, slightly larger */
.pv2-smbs-box .v2-d-smb__note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* ============================================================
   Closing typographic moment below the diagram
   ============================================================ */
.pv2-diagram-closer {
  margin: 56px auto 0;
  max-width: 880px;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pv2-diagram-closer__line1 {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-weight: 400;
  margin: 0;
}
.pv2-diagram-closer__line2 {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--g-700);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.pv2-diagram-closer__rule {
  display: block;
  width: 100px;
  height: 4px;
  background: var(--o-700);
  border-radius: 2px;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .pv2-diagram-closer { margin-top: 40px; }
  .pv2-diagram-closer__rule { width: 72px; height: 3px; }
}


/* ============================================================
   v2 product card — browser frame visual (Premium Finance / Working Capital)
   ============================================================ */
.v2-visual--browser {
  background: var(--surface-cream) !important;
  aspect-ratio: 16 / 10;
  padding: 20px 18px 0;
  overflow: hidden;
}
.v2-browser-frame {
  background: #fff;
  border-radius: 10px 10px 0 0;
  box-shadow: var(--shadow-card-lg);
  overflow: hidden;
  height: 100%;
  position: relative;
}
.v2-browser-frame__chrome {
  position: absolute; top: 0; left: 0; right: 0;
  height: 22px;
  background: #F4F1EC;
  border-bottom: 1px solid rgba(0,46,29,0.06);
  z-index: 2;
}
.v2-browser-frame__chrome::before {
  content: "";
  position: absolute; top: 8px; left: 10px;
  width: 32px; height: 7px;
  background:
    radial-gradient(circle at 3.5px 3.5px, #E2746A 3px, transparent 3.5px),
    radial-gradient(circle at 14px 3.5px, #E2C36A 3px, transparent 3.5px),
    radial-gradient(circle at 24.5px 3.5px, #7DB58A 3px, transparent 3.5px);
}
.v2-browser-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
  display: block;
}

/* ============================================================
   v2 product card — 3-phone composite for Paycheck Access
   ============================================================ */
.v2-visual--phones {
  background: var(--surface-cream) !important;
  aspect-ratio: 16 / 11;
  padding: 24px 16px;
  display: flex; align-items: center; justify-content: center;
}
.v2-phones {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
}
.v2-phones__phone {
  background: #0F172A;
  padding: 4px;
  border-radius: 16px;
  aspect-ratio: 9 / 19.5;
  height: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-photo-glow);
  flex-shrink: 0;
  transform: rotate(-3deg);
}
.v2-phones__phone--center {
  transform: rotate(0) translateY(-6px) scale(1.05);
  z-index: 2;
}
.v2-phones__phone:last-child { transform: rotate(3deg); }
.v2-phones__phone > img {
  width: 100%; height: 100%;
  border-radius: 12px;
  object-fit: cover; object-position: top center;
  display: block;
}

/* ============================================================
   Payroll Companies — full-width feature card (Paycheck Access lead)
   ============================================================ */
.pc-feature-card {
  display: flex; flex-direction: column;
  padding: 36px;
  gap: 24px;
  border-left: 5px solid var(--p-ewa);
  margin-bottom: 24px;
}
.pc-feature-card__head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.pc-feature-card__subs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pc-subprod {
  background: var(--surface-cream);
  border-radius: var(--radius-md);
  padding: 18px 18px;
  border-top: 3px solid var(--p-ewa);
}
.pc-subprod__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.pc-subprod__desc {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 720px) {
  .pc-feature-card { padding: 28px 24px; }
  .pc-feature-card__subs { grid-template-columns: 1fr; }
}

/* ============================================================
   Payroll Companies — horizontal secondary card (Working Capital below)
   ============================================================ */
.pc-secondary-card--horizontal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--p-factoring);
  box-shadow: var(--shadow-card-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-in-out);
}
.pc-secondary-card--horizontal:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-lg), 0 24px 48px -24px rgba(0, 46, 29, 0.18);
}
.pc-secondary-card__visual {
  background: var(--surface-cream);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  min-height: 240px;
}
.pc-secondary-card__visual img {
  width: 100%;
  height: 100%;
  max-width: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.pc-secondary-card__body {
  padding: 32px 36px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.pc-secondary-card__body h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}
.pc-secondary-card__sub {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0;
}
.pc-secondary-card__copy {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
}
.pc-secondary-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--g-700);
  font-weight: 600;
  font-size: 14px;
  margin-top: 6px;
}
.pc-secondary-card__cta .arrow {
  width: 14px; height: 14px;
  transition: transform var(--duration-base) var(--ease-out);
}
.pc-secondary-card--horizontal:hover .pc-secondary-card__cta .arrow {
  transform: translateX(3px);
}

@media (max-width: 720px) {
  .pc-secondary-card--horizontal { grid-template-columns: 1fr; }
  .pc-secondary-card__visual { min-height: 180px; padding: 20px; }
  .pc-secondary-card__body { padding: 24px; }
}


/* ============================================================
   Horizontal card variant — body left, visual right (~1/3 width)
   Used on IB Premium Finance card
   ============================================================ */
.v2-prod-card--horizontal {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0;
}
.v2-prod-card--horizontal .v2-prod-card__body {
  padding: 40px 44px;
  order: 1;
}
.v2-prod-card--horizontal .v2-prod-card__visual {
  order: 2;
  aspect-ratio: auto;
  height: 100%;
  border-bottom: none;
  border-left: 1px solid var(--surface-divider);
}

/* For browser-frame visual inside horizontal cards, keep cream + tuck the frame down */
.v2-prod-card--horizontal .v2-visual--browser {
  padding: 24px 18px 0;
  background: var(--surface-cream) !important;
}
.v2-prod-card--horizontal .v2-visual--browser .v2-browser-frame {
  height: 100%;
  min-height: 220px;
}

@media (max-width: 900px) {
  .v2-prod-card--horizontal { grid-template-columns: 1fr; }
  .v2-prod-card--horizontal .v2-prod-card__visual {
    aspect-ratio: 16 / 10;
    height: auto;
    border-left: none;
    border-bottom: 1px solid var(--surface-divider);
    order: 1;
  }
  .v2-prod-card--horizontal .v2-prod-card__body { padding: 28px; order: 2; }
}

/* ============================================================
   Make the 3-phone composite background warmer cream
   ============================================================ */
.v2-prod-card .v2-visual--phones,
.v2-prod-card--ewa .v2-prod-card__visual.v2-visual--phones,
.v2-prod-card--loans .v2-prod-card__visual.v2-visual--phones,
.v2-prod-card--card .v2-prod-card__visual.v2-visual--phones {
  background: var(--surface-cream) !important;
}


/* ============================================================
   v2 product row — H3 subhead below the row eyebrow
   ============================================================ */
.v2-prod-row__title {
  margin: 0 0 28px 0;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text-primary);
  text-wrap: balance;
}

@media (max-width: 720px) {
  .v2-prod-row__title { margin-bottom: 20px; }
}

/* ============================================================
   Paycheck Access 3-phone composite — make full cream background
   override the home-v2 baseline padding/aspect-ratio so the cream
   fills the entire visual area edge to edge.
   ============================================================ */
.v2-prod-card .v2-prod-card__visual.v2-visual--phones {
  background: var(--surface-cream) !important;
  aspect-ratio: 16 / 11;
  padding: 24px 18px 16px;
}


/* ============================================================
   Partnership shape — standout pull-quote treatment
   ============================================================ */
.ib-partnership-pullquote {
  margin: 20px 0 24px;
  padding: 24px 32px;
  background: var(--surface-cream);
  border-left: 4px solid var(--g-700);
  border-radius: var(--radius-md);
  max-width: 760px;
}
.ib-partnership-pullquote p {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--g-700);
  text-wrap: balance;
}

@media (max-width: 720px) {
  .ib-partnership-pullquote { padding: 20px 22px; }
}


/* ============================================================
   Payroll Companies — Paycheck Access feature card sub-products
   with phone visuals (like home-v2 hero phone composite but inside the card)
   ============================================================ */
.pc-feature-card__subs--phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pc-subprod-phone {
  display: flex; flex-direction: column;
  gap: 12px;
}
.pc-subprod-phone__visual {
  background: var(--surface-cream);
  border-radius: var(--radius-md);
  padding: 10px 8px 6px;
  display: flex; justify-content: center;
  aspect-ratio: 4 / 3;
}
.pc-subprod-phone__device {
  background: #0F172A;
  padding: 5px;
  border-radius: 16px;
  aspect-ratio: 9 / 19.5;
  max-height: 240px;
  height: 100%;
  width: auto;
  box-shadow: var(--shadow-photo-glow);
  overflow: hidden;
  flex-shrink: 0;
}
.pc-subprod-phone__device img {
  width: 100%; height: 100%;
  border-radius: 10px;
  object-fit: cover; object-position: top center;
  display: block;
}
.pc-subprod-phone__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.pc-subprod-phone__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

@media (max-width: 720px) {
  .pc-feature-card__subs--phones { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   Working Capital secondary horizontal card on Payroll page
   (mirrors IB Premium Finance horizontal layout)
   ============================================================ */
.pc-working-card {
  margin-top: 24px;
}


.builtfor-group__subline {
  margin: 0 0 22px 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 720px;
}


/* IB Premium Finance row subline — pairs with v2-prod-row__title */
.v2-prod-row__subline {
  margin: -16px 0 22px 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 720px;
}


/* Problem section CTA row — sits below stat cards */
.problem-cta-row {
  margin-top: 36px;
  display: flex;
  justify-content: flex-start;
}
@media (max-width: 540px) {
  .problem-cta-row .problem-inline-btn { width: 100%; justify-content: center; }
}
