/* ============================================================
   Paycheck Access platform sub-page — page-specific styles
   Shares: faq-list/row, sources, howfit-card, section-inline-cta
           platform-cta (from platform.css)
   ============================================================ */

/* --- Hero: 3 phone composition --- */

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

.pa-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 70% -10%, rgba(143, 196, 176, 0.18), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(0, 77, 48, 0.05), transparent 60%);
}

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

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

.pa-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;
}

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

.pa-hero__anchor {
  display: inline-flex; align-items: center;
  gap: 6px;
  color: var(--g-700);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
}

.pa-hero__anchor .arrow {
  width: 16px; height: 16px;
  transition: transform var(--duration-base) var(--ease-out);
}

.pa-hero__anchor:hover .arrow { transform: translateY(2px); }

/* 3 phones */
.pa-hero__phones {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.95;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 16px;
  align-items: center;
}

.pa-phone {
  background: #0F172A;
  padding: 7px;
  box-shadow: var(--shadow-photo-glow);
  border-radius: 30px;
  aspect-ratio: 9 / 19.5;
  position: relative;
}

.pa-phone__inner {
  width: 100%; height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}

.pa-phone img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.pa-phone--a { transform: rotate(-4deg) translateY(20px); }
.pa-phone--b { transform: rotate(0deg) translateY(-12px) scale(1.08); z-index: 2; }
.pa-phone--c { transform: rotate(4deg) translateY(20px); }

@media (max-width: 1100px) {
  .pa-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .pa-hero__phones { min-height: 460px; }
}

@media (max-width: 560px) {
  .pa-hero__phones { grid-template-columns: 1fr 1.1fr; min-height: 420px; }
  .pa-phone--c { display: none; }
}

/* ============================================================
   Section 2 — Compact launch note (below product cards)
   ============================================================ */

.launch-note {
  margin-top: 24px;
  padding: 10px 16px;
  background: var(--surface-cream);
  border-left: 2px solid var(--p-ewa);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  display: inline-block;
}

.launch-note--quiet strong {
  color: var(--g-700);
  font-weight: 600;
}

.launch-note__eyebrow,
.launch-note__body { display: none; }

/* ============================================================
   Section 3 — What this is (3-up TOC cards)
   ============================================================ */

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

.pa-toc-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card-dense);
  display: flex; flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-in-out);
}

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

.pa-toc-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;
}

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

.pa-toc-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--g-700);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  margin-top: 4px;
}

.pa-toc-card__cta .arrow {
  width: 14px; height: 14px;
  transition: transform var(--duration-base) var(--ease-out);
}

.pa-toc-card:hover .pa-toc-card__cta .arrow { transform: translateX(3px); }

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

/* ============================================================
   Sections 4-6 — Product sections (EWA / Loans / Card)
   2-col: narrative left, structured callouts right
   ============================================================ */

.product-section {
  scroll-margin-top: 96px;
}

.product-section__head {
  display: flex; flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  max-width: 720px;
}

.product-section__head h2 {
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.product-narrative p {
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 18px 0;
}

.product-narrative p:last-child { margin-bottom: 0; }

.product-callouts {
  display: flex; flex-direction: column;
  gap: 16px;
}

.product-callout {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-card-dense);
  border-left: 3px solid transparent;
}

/* Sage left stripe on EWA section callouts */
.product-callouts--ewa .product-callout {
  border-left-color: var(--p-ewa);
}

/* Amber on Workplace Loans, rose on Patch Card if we want category color */
.product-callouts--loans .product-callout {
  border-left-color: var(--p-loans);
}
.product-callouts--card .product-callout {
  border-left-color: var(--p-card);
}

.product-callout__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--g-700);
  margin: 0 0 12px 0;
}

.product-callout__list {
  display: flex; flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-callout__list li {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex; gap: 10px;
}

.product-callout__list li::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--g-700);
  margin-top: 4px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8.5 6.5 12 13 5'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

/* EWA pull-stat block (fills space in left column) */
.ewa-stat {
  margin-top: 28px;
  padding: 24px 28px;
  background: rgba(143, 196, 176, 0.18);  /* p-ewa wash */
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--p-ewa);
  display: flex; flex-direction: column;
  gap: 8px;
}

.ewa-stat__num {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--o-700);
  font-variant-numeric: tabular-nums;
}

.ewa-stat__body {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}

/* Workplace Loans example — dashboard-card aesthetic */
.loan-example {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  margin-top: 28px;
  box-shadow: var(--shadow-elevated-ring);
  overflow: hidden;
}

.loan-example__chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: rgba(232, 196, 112, 0.18); /* p-loans wash */
  border-bottom: 1px solid rgba(0, 46, 29, 0.06);
}

.loan-example__chrome-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--p-loans);
}

.loan-example__chrome-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.loan-example__body {
  padding: 20px 24px 24px;
}

.loan-example__table {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 24px;
  margin: 0;
}

.loan-example__row {
  display: contents;
}

.loan-example__row dt,
.loan-example__row dd {
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--surface-divider);
}

.loan-example__row dt {
  color: var(--text-secondary);
  font-weight: 400;
}

.loan-example__row dd {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.loan-example__row-accent {
  color: var(--p-loans-ink) !important;
}

.loan-example__row--total dt,
.loan-example__row--total dd {
  border-bottom: none;
  padding-top: 14px;
  font-size: 17px;
}

.loan-example__row--total dd {
  font-weight: 700;
}

.loan-example__row:not(.loan-example__row--total):last-child dt,
.loan-example__row:not(.loan-example__row--total):last-child dd {
  border-bottom: 1px solid var(--surface-divider);
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-section__head { margin-bottom: 28px; }
}

/* ============================================================
   Closing CTA — dark surface so it separates clearly from the
   cream "More on the platform" section above it
   ============================================================ */

.pa-cta-dark {
  background: var(--dg-700);
  color: #fff;
  padding-block: 96px;
  margin-top: 0;
}

.pa-cta-dark__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pa-cta-dark__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--p-ewa);
  display: inline-flex; align-items: center; gap: 8px;
}

.pa-cta-dark__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.pa-cta-dark h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}

.pa-cta-dark__support {
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 560px;
}

.pa-cta-dark__cta {
  margin-top: 16px;
}

.pa-cta-dark__btn {
  background: #fff;
  color: var(--g-700);
}
.pa-cta-dark__btn:hover {
  background: var(--surface-cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-button);
}

@media (max-width: 720px) {
  .pa-cta-dark { padding-block: 64px; }
}

/* Mobile fixes for hero CTAs cut off — make them full-width and wrap properly at narrow widths */
@media (max-width: 540px) {
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero__ctas .btn,
  .hero__ctas .btn--lg,
  .twoways__card .cta-row .btn {
    width: 100%;
    padding-inline: 16px;
    font-size: 15px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    height: auto;
    min-height: 52px;
  }
  /* Hide arrow icon on full-width mobile CTAs to give text room */
  .hero__ctas .btn .arrow {
    flex-shrink: 0;
  }
  /* Header Talk to us — drop the arrow icon on mobile, keep button clean */
  .site-header__right .btn--sm .arrow { display: none; }
}

/* Footer logo: limit width to avoid awkward stretching on narrow viewports */
.site-footer__brand .logo {
  display: inline-flex;
  max-width: 180px;
}
.site-footer__brand .logo img {
  height: 36px;
  width: auto;
  max-width: 100%;
}

/* Comparison table — add a clearer "scroll →" indicator on mobile */
@media (max-width: 720px) {
  .wc-compare-wrap {
    position: relative;
  }
  .wc-compare-wrap::after {
    content: "Scroll →";
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 2;
    background: var(--g-700);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 4px 10px;
    border-radius: 999px;
    pointer-events: none;
    box-shadow: var(--shadow-card-dense);
  }
}
.pa-cta-dark + .site-footer,
.pa-cta-dark ~ .sources + .site-footer { margin-top: 0; }

.more-on-platform {
  background: var(--surface-cream);
  padding-block: 80px;
  border-radius: 0;
}

.more-on-platform__head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.more-on-platform__head h3 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}

.more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin-inline: auto;
}

.more-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card-dense);
  display: flex; flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-in-out);
}

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

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

.more-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--g-700);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.more-card__cta .arrow {
  width: 14px; height: 14px;
  transition: transform var(--duration-base) var(--ease-out);
}

.more-card:hover .more-card__cta .arrow { transform: translateX(3px); }

@media (max-width: 720px) {
  .more-grid { grid-template-columns: 1fr; }
}


/* Loan example — sharper dashboard-module appearance */
.loan-example {
  border: 1px solid rgba(0, 46, 29, 0.10);
  box-shadow: var(--shadow-card-lg), 0 24px 48px -28px rgba(0, 46, 29, 0.16);
}
.loan-example__chrome {
  background: linear-gradient(to right, rgba(232, 196, 112, 0.22), rgba(232, 196, 112, 0.10));
  padding: 14px 22px;
}
.loan-example__chrome-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.loan-example__body { padding: 24px 26px 26px; }
.loan-example__row dt { font-size: 14px; }
.loan-example__row dd { font-size: 16px; }
.loan-example__row--total dt,
.loan-example__row--total dd {
  font-size: 18px;
  color: var(--g-700);
}
.loan-example__row-accent { color: var(--p-loans-ink) !important; font-weight: 700; }


/* ============================================================
   Loan example v2 — big-stat hero card
   ============================================================ */
.loan-example-v2 {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 32px 36px 28px;
  margin-top: 28px;
  box-shadow: var(--shadow-card-lg);
  border-left: 4px solid var(--p-loans);
}
.loan-example-v2__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-loans-ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.loan-example-v2__label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--p-loans);
}
.loan-example-v2__hero {
  display: flex; align-items: baseline; gap: 6px;
  margin: 14px 0 4px;
  line-height: 1;
}
.loan-example-v2__hero-num {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--g-700);
  font-variant-numeric: tabular-nums;
}
.loan-example-v2__hero-unit {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: -0.02em;
}
.loan-example-v2__lede {
  margin: 0 0 22px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}
.loan-example-v2__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--surface-divider);
}
.loan-example-v2__cell {
  display: flex; flex-direction: column;
  gap: 4px;
}
.loan-example-v2__cell-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
  text-transform: none;
}
.loan-example-v2__cell-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.loan-example-v2__foot {
  margin: 18px 0 0 0;
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}

@media (max-width: 540px) {
  .loan-example-v2 { padding: 24px 22px; }
  .loan-example-v2__row { gap: 8px; }
}
