/* ============================================================
   Patch Website V1 — sitewide styles
   Imports design tokens, then defines page chrome + section
   primitives used across all 12 pages.
   ============================================================ */

@import url("patch-tokens.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ============================================================
   Reset + base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Sectioning utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 32px;
}

@media (max-width: 720px) {
  .container { padding-inline: 20px; }
}

.section {
  padding-block: 64px;
}
.solve-section + .section.platform-section { padding-top: 32px; }

.section--tight {
  padding-block: 56px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  margin-bottom: 4px;
}

.section-head h2 {
  margin: 0;
}

.section-head .lede {
  font-size: var(--type-body-lg-size);
  line-height: var(--type-body-lg-lh);
  letter-spacing: var(--type-body-lg-ls);
  color: var(--text-secondary);
  max-width: 640px;
}

@media (max-width: 720px) {
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 36px; }
}

/* ============================================================
   Header (sticky, transparent over hero, canvas-filled on scroll)
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition:
    background-color var(--duration-base) var(--ease-in-out),
    border-color var(--duration-base) var(--ease-in-out),
    box-shadow var(--duration-base) var(--ease-in-out);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(0, 46, 29, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.site-header__logo img {
  height: 34px;
  width: auto;
  display: block;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header__nav a {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: color var(--duration-base) var(--ease-in-out),
              background-color var(--duration-base) var(--ease-in-out);
}

.site-header__nav a:hover {
  color: var(--g-700);
  background: rgba(0, 77, 48, 0.05);
}

.site-header__nav a[aria-current="page"] {
  color: var(--g-700);
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__phone {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.site-header__phone:hover { color: var(--g-700); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  color: var(--text-primary);
  align-items: center; justify-content: center;
  cursor: pointer;
}

@media (max-width: 960px) {
  .site-header__nav,
  .site-header__phone { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--surface-canvas);
  display: none;
  flex-direction: column;
  padding: 24px;
}

.mobile-drawer.is-open { display: flex; }

.mobile-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px;
  margin-bottom: 24px;
}

.mobile-drawer__nav {
  display: flex; flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mobile-drawer__nav a {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  padding: 16px 0;
  border-bottom: 1px solid var(--surface-divider);
}

.mobile-drawer__footer {
  padding-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}

/* ============================================================
   Buttons (extending tokens)
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-in-out),
              color var(--duration-base) var(--ease-in-out),
              border-color var(--duration-base) var(--ease-in-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-in-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible { outline: 2px solid var(--g-700); outline-offset: 3px; }

.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 24px; font-size: 16px; }

.btn--primary {
  background: var(--g-700);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn--primary:hover { background: var(--g-800); transform: translateY(-1px); }
.btn--primary:active { background: var(--g-900); transform: translateY(0); }

.btn--secondary {
  background: var(--surface-card);
  color: var(--g-700);
  border-color: rgba(0, 77, 48, 0.18);
  box-shadow: var(--shadow-card-dense);
}
.btn--secondary:hover {
  border-color: rgba(0, 77, 48, 0.36);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--surface-border);
}
.btn--ghost:hover {
  background: var(--surface-alt);
}

.btn--outline-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.btn--outline-dark:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

.btn .arrow {
  width: 16px; height: 16px;
  transition: transform var(--duration-base) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(2px); }

/* text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--g-700);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.link-arrow .arrow {
  width: 16px; height: 16px;
  transition: transform var(--duration-base) var(--ease-out);
}
.link-arrow:hover .arrow { transform: translateX(3px); }

.link-arrow--quiet {
  color: var(--text-primary);
  font-weight: 500;
}
.link-arrow--quiet:hover { color: var(--g-700); }

/* Inline section-break CTA (centered text link below a section) */
.section-inline-cta {
  margin-top: 40px;
  display: flex;
  justify-content: flex-start;
}

.section-inline-cta .link-arrow {
  font-size: 16px;
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  gap: 8px;
}

@media (max-width: 720px) {
  .section-inline-cta { margin-top: 28px; }
}

/* ============================================================
   Eyebrow
   ============================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--type-eyebrow-size);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--g-700);
}

.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
}

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-in-out);
}

.card--lg { padding: 40px; box-shadow: var(--shadow-card-lg); }
.card--dense { box-shadow: var(--shadow-card-dense); }
.card--clickable { cursor: pointer; }
.card--clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-lg);
}

/* Product pill (sits at top of a product card) */
.pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  background: var(--surface-alt);
  width: max-content;
  max-width: 100%;
}

.pill .pill__swatch {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.pill--factoring { background: rgba(180, 155, 202, 0.18); color: var(--p-factoring-ink); }
.pill--factoring .pill__swatch { background: var(--p-factoring); }

.pill--premfin { background: rgba(201, 169, 128, 0.18); color: var(--p-premfin-ink); }
.pill--premfin .pill__swatch { background: var(--p-premfin); }

.pill--ewa { background: rgba(143, 196, 176, 0.22); color: var(--p-ewa-ink); }
.pill--ewa .pill__swatch { background: var(--p-ewa); }

.pill--loans { background: rgba(232, 196, 112, 0.22); color: var(--p-loans-ink); }
.pill--loans .pill__swatch { background: var(--p-loans); }

.pill--card { background: rgba(216, 153, 153, 0.22); color: var(--p-card-ink); }
.pill--card .pill__swatch { background: var(--p-card); }

/* ============================================================
   Footer (sitewide)
   ============================================================ */

.site-footer {
  background: var(--dg-800);
  color: rgba(255, 255, 255, 0.78);
  padding-block: 80px 32px;
  margin-top: 80px;
}

.site-footer a { color: inherit; }
.site-footer a:hover { color: #fff; }

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-footer__brand .logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
}

.site-footer__brand .logo img {
  height: 40px;
  width: auto;
  display: block;
}

.site-footer__tagline {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
  margin-bottom: 24px;
}

.site-footer__contact {
  display: flex; flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__contact a { color: inherit; }
.site-footer__contact a:hover { color: #fff; }

.site-footer__col h5 {
  margin: 0 0 16px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.site-footer__col ul {
  display: flex; flex-direction: column;
  gap: 10px;
}

.site-footer__col li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--duration-base) var(--ease-in-out);
}

.site-footer__col li a:hover { color: #fff; }

.site-footer__col li .ext {
  display: inline-flex; align-items: center;
  gap: 4px;
}

.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: -0.01em;
}

.site-footer__legal {
  display: flex; gap: 24px;
  flex-wrap: wrap;
}

.site-footer__legal a:hover { color: #fff; }

.site-footer__disclosure {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 720px;
  line-height: 1.5;
  margin-top: 16px;
}

@media (max-width: 960px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* ============================================================
   Hero (homepage / generic two-col hero)
   ============================================================ */

.hero {
  position: relative;
  padding-top: 152px;      /* clearance for fixed header */
  padding-bottom: 96px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(0, 77, 48, 0.07), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(0, 77, 48, 0.04), transparent 60%);
}

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

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

.hero__copy .eyebrow {
  margin-bottom: 4px;
}

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

.hero h1 .accent {
  color: var(--g-700);
}

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

.hero__ctas {
  display: flex; gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* hero visual stage */
.hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  min-height: 480px;
}

.hero__desktop {
  position: absolute;
  inset: 0 0 8% 6%;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-elevated-ring);
  overflow: hidden;
  transform: rotate(-1.2deg);
}

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

.hero__desktop::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 26px;
  background: #F4F1EC;
  border-bottom: 1px solid rgba(0,46,29,0.06);
  z-index: 2;
}
.hero__desktop::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 12px;
  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;
}

.hero__phone {
  position: absolute;
  right: -2%;
  bottom: -4%;
  width: 34%;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  background: #0F172A;
  padding: 8px;
  box-shadow: var(--shadow-photo-glow);
  transform: rotate(4deg);
  z-index: 2;
}

.hero__phone-inner {
  width: 100%; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
}

.hero__phone img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 960px) {
  .hero { padding-top: 120px; padding-bottom: 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { min-height: 360px; aspect-ratio: 5 / 4; }
}

@media (max-width: 540px) {
  .hero__phone { display: none; }
  .hero__desktop { inset: 0; transform: none; }
}

/* ============================================================
   "What Patch is" — 3-col product grid under 2 side labels
   ============================================================ */

.platform-section {
  background: var(--surface-canvas);
}

.platform-section__sides {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.platform-side {
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--surface-divider);
  display: flex; align-items: baseline; gap: 12px;
}

.platform-side__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
}

.platform-side__hint {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.platform-side--working {
  border-bottom-color: var(--p-factoring);
}

.platform-side--paycheck {
  border-bottom-color: var(--p-ewa);
}

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

.platform-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  gap: 16px;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-in-out);
}

.platform-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-lg);
}

.platform-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}

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

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

.platform-card__divider {
  height: 1px;
  background: var(--surface-divider);
  margin: 4px 0;
}

.platform-card__points {
  display: flex; flex-direction: column;
  gap: 8px;
}

.platform-card__points li {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex; gap: 10px;
}

.platform-card__points li::before {
  content: "";
  display: inline-block;
  width: 14px; height: 1px;
  background: var(--text-tertiary);
  margin-top: 9px;
  flex-shrink: 0;
}

.platform-card__products {
  display: flex; flex-direction: column;
  gap: 10px;
}

.platform-card__products li {
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.platform-card__products li strong {
  font-weight: 600;
  color: var(--text-primary);
}

.platform-card__products li span {
  color: var(--text-secondary);
}

.platform-card__note {
  font-size: 13px;
  line-height: 1.4;
  font-style: italic;
  color: var(--text-tertiary);
  margin: 0;
}

.platform-card__foot {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--surface-divider);
}

@media (max-width: 900px) {
  .platform-grid { grid-template-columns: 1fr; }
  .platform-section__sides {
    display: none;
  }
  .platform-card {
    position: relative;
  }
}

/* ============================================================
   Hero — simplified lo-fi product mock (dashboard + phone)
   Replaces the dense product PNG with stylized HTML elements.
   ============================================================ */

.hero__desktop--lofi { background: #fff; }
.hero__desktop--lofi img { display: none; }

.lofi-dash {
  position: absolute;
  inset: 26px 0 0 0;
  padding: 28px 32px;
  display: flex; flex-direction: column;
  gap: 16px;
}

.lofi-dash__greet {
  display: flex; flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}

.lofi-dash__hello {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.lofi-dash__date {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}

.lofi-dash__tile {
  background: var(--surface-canvas);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--surface-border);
  display: flex; flex-direction: column;
  gap: 6px;
}

.lofi-dash__tile--primary {
  background: var(--g-50);
  border-color: rgba(0, 77, 48, 0.12);
}

.lofi-dash__tile-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--g-700);
  text-transform: none;
}

.lofi-dash__tile-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.lofi-dash__tile-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: -0.02em;
  margin-left: 2px;
}

.lofi-dash__tile-delta {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  letter-spacing: -0.01em;
}

.lofi-dash__tile-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}

.lofi-dash__tile-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--success);
  background: rgba(45, 158, 144, 0.14);
  padding: 3px 8px;
  border-radius: 999px;
}

.lofi-dash__tile-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}

/* Lo-fi phone (simplified worker app — EWA only) */
.hero__phone--lofi { background: #0F172A; }
.hero__phone--lofi img { display: none; }

.lofi-phone {
  padding: 22px 16px 16px;
  height: 100%;
  display: flex; flex-direction: column;
  gap: 14px;
}

.lofi-phone__status {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.lofi-phone__ewa {
  background: var(--g-50);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex; flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(0, 77, 48, 0.12);
}

.lofi-phone__ewa-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--p-ewa-ink);
}

.lofi-phone__ewa-body {
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
  font-weight: 500;
}

.lofi-phone__ewa-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--g-700);
  letter-spacing: -0.01em;
  margin-top: 4px;
}

/* ============================================================
   Platform section — category group labels
   ============================================================ */

.platform-section__group-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 16px;
}

.platform-section__group-label--working { grid-column: span 2; }
.platform-section__group-label--paycheck { grid-column: span 1; }

.platform-section__group-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--g-700);
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px;
  border-bottom: 3px solid currentColor;
}

.platform-section__group-label--working { color: #6D4F8F; }
.platform-section__group-label--paycheck { color: #2F7A5E; }

.platform-section__group-label::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
}

.platform-section__group-label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: currentColor;
}

@media (max-width: 900px) {
  .platform-section__group-labels { display: none; }
}

/* Two paths — markers without numbered circles */
.twoways__card .marker {
  display: inline-flex; align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--g-700);
  gap: 8px;
}

.twoways__card .marker::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: currentColor;
}

/* Founder — tighter vertical padding */
.founder { padding-block: 64px; }

.home-platform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.home-platform__card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-lg);
  display: flex; flex-direction: column;
  border-top: 6px solid transparent;
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-in-out);
}

.home-platform__card--working {
  --accent: var(--p-factoring);
  --accent-eyebrow: #6D4F8F;
  --accent-wash: rgba(180, 155, 202, 0.12);
  border-top-color: var(--p-factoring);
}

.home-platform__card--paycheck {
  --accent: var(--p-ewa);
  --accent-eyebrow: #2F7A5E;
  --accent-wash: rgba(143, 196, 176, 0.14);
  border-top-color: var(--p-ewa);
}

.home-platform__top {
  background: var(--accent-wash);
  padding: 44px 44px 32px;
  display: flex; flex-direction: column;
  gap: 12px;
}

.home-platform__eyebrow {
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-lh);
  letter-spacing: var(--type-eyebrow-ls);
  font-weight: 500;
  color: var(--accent-eyebrow);
}

.home-platform__title {
  font-size: clamp(32px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-wrap: pretty;
}

.home-platform__body {
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
  max-width: 38em;
}

.home-platform__list {
  display: flex; flex-direction: column;
  gap: 20px;
  padding: 32px 44px 36px;
  list-style: none;
  margin: 0;
  background: var(--surface-card);
  flex: 1;
}

.home-platform__list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
}

.home-platform__icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-md);
  background: var(--prod-wash, var(--accent-wash));
  color: var(--prod-ink, var(--accent-eyebrow));
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Per-product accents (override the card-level wash + ink) */
.home-platform__icon--factoring {
  --prod-wash: rgba(180, 155, 202, 0.28);
  --prod-ink: var(--p-factoring-ink);
}
.home-platform__icon--premfin {
  --prod-wash: rgba(201, 169, 128, 0.28);
  --prod-ink: var(--p-premfin-ink);
}
.home-platform__icon--ewa {
  --prod-wash: rgba(143, 196, 176, 0.32);
  --prod-ink: var(--p-ewa-ink);
}
.home-platform__icon--loans {
  --prod-wash: rgba(232, 196, 112, 0.32);
  --prod-ink: var(--p-loans-ink);
}
.home-platform__icon--card {
  --prod-wash: rgba(216, 153, 153, 0.32);
  --prod-ink: var(--p-card-ink);
}

.home-platform__product {
  display: flex; flex-direction: column;
  gap: 2px;
}

.home-platform__product-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.3;
}

.home-platform__product-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

@media (max-width: 720px) {
  .home-platform__grid { grid-template-columns: 1fr; }
  .home-platform__top { padding: 32px 28px 24px; }
  .home-platform__list { padding: 24px 28px 32px; }
}

.home-platform__cta {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* Italic secondary hint under the Two paths lede */
.twoways__hint {
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
}

/* ============================================================
   Two ways in — 2 large cards
   ============================================================ */

.twoways {
  background: var(--surface-canvas);
}

.twoways__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.twoways__card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card-lg);
  display: flex; flex-direction: column;
  gap: 22px;
  min-height: 360px;
}

.twoways__card .marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--g-700);
}

.twoways__card .marker .num {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--o-700);
  color: var(--text-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.twoways__card h3 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0;
  text-wrap: pretty;
}

.twoways__card p {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

.twoways__card .cta-row {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .twoways__grid { grid-template-columns: 1fr; }
  .twoways__card { min-height: auto; }
}

/* ============================================================
   Why it works — 3-col structural arguments
   ============================================================ */

.whyworks {
  background: var(--surface-canvas);
}

.whyworks__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-lg);
  overflow: hidden;
}

.whyworks__card {
  background: transparent;
  border-radius: 0;
  padding: 40px;
  box-shadow: none;
  display: flex; flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--surface-divider);
}

.whyworks__card:last-child { border-right: none; }

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

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

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

@media (max-width: 900px) {
  .whyworks__grid { grid-template-columns: 1fr; }
  .whyworks__card {
    border-right: none;
    border-bottom: 1px solid var(--surface-divider);
    padding: 32px;
  }
  .whyworks__card:last-child { border-bottom: none; }
}

/* ============================================================
   Founder voice — cream surface
   ============================================================ */

.founder {
  background: var(--surface-cream);
  padding-block: 96px;
  margin-block: 40px;
  border-radius: 0;
}

.founder__inner {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 32px;
}

.founder__eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--g-700);
  letter-spacing: -0.02em;
}

.founder__quote {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}

.founder__attrib {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 4px;
}

.founder__attrib .name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.founder__attrib .role {
  font-size: 14px;
  color: var(--text-secondary);
}

.founder__attrib .context {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.founder__support {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0;
}

@media (max-width: 720px) {
  .founder { padding-block: 64px; }
  .founder__inner { gap: 24px; }
}



/* ============================================================
   "What we solve" — editorial stat moment (canvas, no cards)
   ============================================================ */

.solve-section {
  background: var(--surface-canvas);
  padding-block: 96px 72px;
}

.solve-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin: 48px 0 40px;
}

.solve-stat {
  display: flex; flex-direction: column;
  gap: 12px;
  border-top: 2px solid var(--surface-divider);
  padding-top: 20px;
}

.solve-stat__num {
  font-size: clamp(64px, 8vw, 112px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--g-700);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
}

.solve-stat__body {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
  font-weight: 500;
  max-width: 30ch;
}

.solve-stat__source {
  font-size: 12px;
  font-style: italic;
  color: var(--text-tertiary);
  letter-spacing: 0;
}

/* Cream-card closer treatment (matches CPAs / Payroll Companies problem closers) */
.solve-closer-card {
  margin: 0 auto;
  max-width: 1000px;
  background: var(--surface-cream);
  border-radius: var(--radius-xl);
  border-left: 3px solid var(--g-700);
  padding: 32px 40px;
  text-align: center;
  box-shadow: var(--shadow-card-dense);
}
.solve-closer-card p {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}
.solve-closer-card p strong {
  color: var(--g-700);
  font-weight: 600;
}

/* Page-level sources block above footer */
.home-sources {
  padding: 56px 0 24px;
  border-top: 1px solid var(--surface-divider);
}
.home-sources__h {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
  margin: 0 0 12px 0;
}
.home-sources__list {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
  display: flex; flex-direction: column;
  gap: 6px;
  max-width: 880px;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .solve-closer-card { padding: 24px 24px; }
}

@media (max-width: 900px) {
  .solve-stats { grid-template-columns: 1fr; gap: 32px; }
  .solve-section { padding-block: 64px; }
}


/* ============================================================
   Mobile overflow fix — prevent horizontal scroll
   ============================================================ */
html, body { overflow-x: hidden; max-width: 100%; }

@media (max-width: 720px) {
  .hero__copy,
  .partners-hero__copy,
  .businesses-hero__copy,
  .platform-hero__copy,
  .pa-hero__copy,
  .wc-hero__copy,
  .pf-hero__copy,
  .ib-hero__copy,
  .cpas-hero__copy,
  .pc-hero__copy,
  .about-hero__copy,
  .contact-hero__inner {
    max-width: 100%;
  }
  .hero h1,
  .partners-hero h1,
  .businesses-hero h1,
  .platform-hero h1,
  .pa-hero h1,
  .wc-hero h1,
  .pf-hero h1,
  .ib-hero h1,
  .cpas-hero h1,
  .pc-hero h1,
  .about-hero h1,
  .contact-hero h1 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
  .hero__visual,
  .partners-hero__stage,
  .businesses-hero__stage,
  .platform-hero__stage,
  .pa-hero__phones,
  .wc-hero__product,
  .pf-hero__product,
  .ib-hero__stage,
  .cpas-hero__stage,
  .pc-hero__stage,
  .about-hero__photo {
    max-width: 100%;
  }
}

/* ============================================================
   Desktop hero column widening (≥1440px)
   ============================================================ */
@media (min-width: 1440px) {
  .hero__copy,
  .partners-hero__copy,
  .businesses-hero__copy,
  .platform-hero__copy {
    max-width: 680px;
  }
  .hero__grid,
  .partners-hero__grid,
  .businesses-hero__grid,
  .platform-hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

/* Footer column titles (formerly h5) */
.site-footer__coltitle {
  margin: 0 0 16px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
