/* ============================================================
   Working Capital platform sub-page — page-specific styles
   Shares: faq-list/row, sources, howfit-card, more-on-platform,
   pa-cta-dark (from paycheck-access.css), product-section/grid/
   narrative/callouts.
   ============================================================ */

/* --- Hero: single product visual, no phone --- */

.wc-hero {
  position: relative;
  padding-top: 152px;
  padding-bottom: 96px;
  overflow: hidden;
}

.wc-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 80% -10%, rgba(180, 155, 202, 0.20), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(0, 77, 48, 0.04), transparent 60%);
}

.wc-hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: center;
}

.wc-hero__copy {
  display: flex; flex-direction: column;
  gap: 24px;
  max-width: 560px;
}

.wc-hero h1 {
  font-size: clamp(38px, 4.8vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}

.wc-hero__subhead {
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  margin: 0;
  max-width: 540px;
}

.wc-hero__product {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: 420px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-elevated-ring);
  overflow: hidden;
  transform: rotate(-1deg);
}

.wc-hero__product::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 30px;
  background: #F4F1EC;
  border-bottom: 1px solid rgba(0,46,29,0.06);
  z-index: 2;
}
.wc-hero__product::after {
  content: "";
  position: absolute;
  top: 11px; left: 14px;
  width: 36px; height: 8px;
  background:
    radial-gradient(circle at 4px 4px, #E2746A 3.5px, transparent 4px),
    radial-gradient(circle at 16px 4px, #E2C36A 3.5px, transparent 4px),
    radial-gradient(circle at 28px 4px, #7DB58A 3.5px, transparent 4px);
  z-index: 3;
}

.wc-hero__product img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

@media (max-width: 1100px) {
  .wc-hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================================
   Section 2 — "The basics" icon-led fact cards
   ============================================================ */

.wc-basics-cards {
  display: flex; flex-direction: column;
  gap: 16px;
}

.wc-basics-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-card-dense);
  border-left: 3px solid var(--p-factoring);
  display: flex; flex-direction: column;
  gap: 12px;
}

.wc-basics-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--g-50);
  color: var(--g-700);
  display: inline-flex; align-items: center; justify-content: center;
}

.wc-basics-card__title {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.wc-basics-card__body {
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   Section 3 — How it works: horizontal flow stepper
   ============================================================ */

.wc-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: wc-step;
}

/* Connector line behind the numbered circles */
.wc-stepper::before {
  content: "";
  position: absolute;
  top: 30px;
  left: calc(((100% / 4) / 2));
  right: calc(((100% / 4) / 2));
  height: 2px;
  background: linear-gradient(
    to right,
    var(--g-200) 0%,
    var(--g-200) 100%
  );
  background-image:
    repeating-linear-gradient(
      to right,
      var(--g-300) 0 6px,
      transparent 6px 12px
    );
  background-color: transparent;
  z-index: 0;
}

.wc-stepper__item {
  position: relative;
  z-index: 1;
  display: flex; flex-direction: column;
  gap: 0;
  padding: 0;
}

.wc-stepper__num {
  width: 60px; height: 60px;
  border-radius: 999px;
  background: var(--g-700);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow:
    0 0 0 6px var(--surface-canvas),
    var(--shadow-button);
  margin-bottom: 20px;
}

.wc-stepper__card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 22px 24px 24px;
  box-shadow: var(--shadow-card-dense);
  display: flex; flex-direction: column;
  gap: 10px;
  flex: 1;
}

.wc-stepper__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--g-700);
}

/* Patch design system says "Never use text-transform: uppercase".
   Drop uppercase, use sentence case with weight + color instead. */
.wc-stepper__eyebrow {
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 13px;
}

.wc-stepper__title {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-wrap: pretty;
}

.wc-stepper__copy {
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
}

/* Tablet: 2x2 */
@media (max-width: 960px) {
  .wc-stepper { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .wc-stepper::before { display: none; }
}

/* Mobile: stacked with vertical connector */
@media (max-width: 540px) {
  .wc-stepper {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 28px;
  }
  .wc-stepper::before {
    display: block;
    top: 30px;
    bottom: 30px;
    left: 30px;
    right: auto;
    width: 2px;
    height: auto;
    background-image:
      repeating-linear-gradient(
        to bottom,
        var(--g-300) 0 6px,
        transparent 6px 12px
      );
  }
  .wc-stepper__item { padding-left: 50px; }
  .wc-stepper__num {
    position: absolute;
    left: -28px;
    top: 0;
    width: 52px; height: 52px;
    font-size: 16px;
    margin: 0;
  }
}

/* Retain old wc-step-card class in case the page references it elsewhere; harmless */

/* ============================================================
   Section 4.5 — Comparison table
   ============================================================ */

.wc-compare-wrap {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  position: relative;
}

.wc-compare {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.wc-compare th,
.wc-compare td {
  padding: 16px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--surface-divider);
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.wc-compare thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  padding-top: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--surface-divider);
  background: var(--surface-card);
}

.wc-compare tbody th {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  width: 22%;
  background: var(--gr-50);
}

.wc-compare tbody td {
  color: var(--text-secondary);
}

/* Patch column emphasis */
.wc-compare__patch-h {
  background: rgba(180, 155, 202, 0.18) !important;
  color: var(--p-factoring-ink) !important;
  position: relative;
}

.wc-compare__patch-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.wc-compare__patch-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--p-factoring);
}

.wc-compare__patch {
  background: rgba(180, 155, 202, 0.08);
  color: var(--text-primary) !important;
  font-weight: 600;
}

.wc-compare tbody tr:last-child th,
.wc-compare tbody tr:last-child td {
  border-bottom: none;
}

.wc-compare__disclaimer {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-tertiary);
  margin: 16px 0 0 0;
  max-width: 880px;
}

.wc-compare__closer {
  margin: 32px 0 0 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  text-wrap: balance;
}

.wc-compare__closer a {
  color: var(--g-700);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 720px) {
  .wc-compare-wrap {
    /* hint at horizontal scroll on mobile */
    background:
      linear-gradient(to right, var(--surface-card) 30%, rgba(255,255,255,0)) left center,
      linear-gradient(to left, var(--surface-card) 30%, rgba(255,255,255,0)) right center;
    background-size: 40px 100%, 40px 100%;
    background-repeat: no-repeat;
    background-attachment: local, local;
  }
}

/* ============================================================
   Section 3 — How it works (4 numbered steps, 2-col layout)
   ============================================================ */

.wc-steps {
  display: flex; flex-direction: column;
  gap: 24px;
}

.wc-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--surface-divider);
}

.wc-step:last-child { border-bottom: none; padding-bottom: 0; }

.wc-step__num {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--g-50);
  color: var(--g-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.wc-step h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.wc-step p {
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   Section 4 — Why factoring fits (3-up plum-tinted cards)
   ============================================================ */

.why-fits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.why-fits-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card-dense);
  border-top: 3px solid var(--p-factoring);
  display: flex; flex-direction: column;
  gap: 12px;
}

.why-fits-card h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  text-wrap: pretty;
}

.why-fits-card p {
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 900px) {
  .why-fits-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Section 5 — Built for your industry
   Single-col with narrative + structured vertical callouts
   ============================================================ */

.industry-callouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.industry-callouts__row {
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-dense);
  border-left: 3px solid var(--p-factoring);
}

.industry-callouts__row strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.industry-callouts__row span {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.industry-callouts__more {
  grid-column: 1 / -1;
  font-size: 13px;
  font-style: italic;
  color: var(--text-tertiary);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .industry-callouts { grid-template-columns: 1fr; }
}

/* ============================================================
   Section 6 — Premium Finance contextual mention
   Compact cream callout, H3 sized
   ============================================================ */

.pf-mention {
  background: var(--surface-cream);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  border-left: 3px solid var(--p-premfin);
}

.pf-mention__body {
  display: flex; flex-direction: column;
  gap: 8px;
}

.pf-mention__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--p-premfin-ink);
  display: inline-flex; align-items: center; gap: 8px;
}

.pf-mention__eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--p-premfin);
}

.pf-mention h3 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  text-wrap: pretty;
}

.pf-mention p {
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
  max-width: 60ch;
}

@media (max-width: 720px) {
  .pf-mention { grid-template-columns: 1fr; padding: 28px 24px; }
}
