/* ============================================================
   For Partners hub — page-specific styles
   ============================================================ */

/* --- Hero: layered composition (dashboard center + 5 partner tiles) --- */

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

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

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

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

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

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

/* Layered visual stage */
.partners-hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4.4;
  min-height: 520px;
}

.partners-hero__dashboard {
  position: absolute;
  inset: 8% 4% 8% 8%;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-elevated-ring);
  overflow: hidden;
  z-index: 5;
}

.partners-hero__dashboard::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;
}
.partners-hero__dashboard::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;
}

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

/* Floating partner-type tiles */
.partners-hero__tile {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 6px;
  box-shadow: var(--shadow-photo-glow);
  overflow: hidden;
  z-index: 6;
}

.partners-hero__tile img {
  width: 100%; height: 100%;
  border-radius: 36px;
  object-fit: cover;
  display: block;
}

/* tile positions — staggered around the dashboard */
.partners-hero__tile--a {        /* top-left */
  top: 2%; left: -2%;
  width: 22%; aspect-ratio: 1;
  transform: rotate(-4deg);
}
.partners-hero__tile--b {        /* top-right */
  top: -2%; right: 0%;
  width: 18%; aspect-ratio: 1;
  transform: rotate(3deg);
}
.partners-hero__tile--c {        /* mid-right */
  top: 38%; right: -4%;
  width: 20%; aspect-ratio: 1;
  transform: rotate(5deg);
}
.partners-hero__tile--d {        /* bottom-left */
  bottom: -2%; left: 2%;
  width: 22%; aspect-ratio: 1;
  transform: rotate(4deg);
}
.partners-hero__tile--e {        /* bottom-right */
  bottom: 4%; right: 8%;
  width: 18%; aspect-ratio: 1;
  transform: rotate(-3deg);
}

@media (max-width: 1100px) {
  .partners-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .partners-hero__stage { min-height: 480px; aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .partners-hero__tile--b,
  .partners-hero__tile--c,
  .partners-hero__tile--e { display: none; }
  .partners-hero__tile--a { width: 28%; }
  .partners-hero__tile--d { width: 28%; }
  .partners-hero__dashboard { inset: 6% 8% 6% 8%; }
}

/* ============================================================
   Industry bridge (small strip above partner-type grid)
   ============================================================ */

.industry-bridge {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--surface-divider);
}

.industry-bridge__intro {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
  margin: 0 0 16px 0;
}

.industry-bridge__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.industry-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.industry-tag__icon {
  display: inline-flex;
  color: var(--g-700);
}

/* Parallel intro above the partner-channel cards */
.channels-intro {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
  margin: 0 0 16px 0;
}

/* ============================================================
   Section 2 — Partner types (5-up tile grid)
   ============================================================ */

.partner-types__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.partner-type {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-card-dense);
  display: flex; flex-direction: column;
  gap: 14px;
}

.partner-type__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;
}

.partner-type__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

.partner-types__closer {
  margin-top: 56px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-weight: 500;
  max-width: 880px;
  text-wrap: pretty;
}

.partner-types__closer em {
  font-style: normal;
  color: var(--g-700);
}

@media (max-width: 1100px) {
  .partner-types__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .partner-types__grid > *:nth-child(4) { grid-column: 1 / span 1; }
}
@media (max-width: 720px) {
  .partner-types__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .partner-types__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Section 3 — The problem (2-col, narrative + callouts)
   ============================================================ */

/* ============================================================
   Section 3 — The problem (full-width head + 4-up stat row)
   ============================================================ */

.problem-head { max-width: 100%; }

.problem-head__body {
  display: flex; flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin-top: 8px;
}

.problem-head__body p {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

.problem-head__body .link-arrow {
  margin-top: 6px;
  align-self: flex-start;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

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

.stat-card__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--g-700);
  margin-bottom: 2px;
}

.stat-card__num {
  font-size: clamp(36px, 3.8vw, 52px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--o-700);
  margin: 4px 0 8px 0;
  font-variant-numeric: tabular-nums;
}

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

.stat-card__source {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text-tertiary);
  margin: 4px 0 0 0;
  font-weight: 400;
}

@media (max-width: 1080px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
}

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

/* Sources block (sits between final section and footer) */
.sources {
  padding: 56px 0 24px;
  border-top: 1px solid var(--surface-divider);
}

.sources__h {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
  margin: 0 0 12px 0;
  text-transform: none;
}

.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;
  letter-spacing: 0;
}

.sources__list li::marker {
  color: var(--text-muted);
}

/* ============================================================
   Section 4 — The platform (sided containers)
   ============================================================ */

.platform-sided {
  display: flex; flex-direction: column;
  gap: 40px;
}

.platform-side-block {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card-lg);
  border-top: 4px solid transparent;
}

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

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

.platform-side-block__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.platform-side-block__head h3 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-wrap: pretty;
}

.platform-side-block__head p {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
  max-width: 340px;
}

.platform-side-block__cards {
  display: grid;
  gap: 24px;
}

.platform-side-block--working .platform-side-block__cards {
  grid-template-columns: 1fr 1fr;
}

.platform-side-block--paycheck .platform-side-block__cards {
  grid-template-columns: repeat(3, 1fr);
}

.platform-prod-card {
  background: var(--surface-canvas);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 14px;
  border: 1px solid var(--surface-divider);
  transition: border-color var(--duration-base) var(--ease-in-out),
              transform var(--duration-base) var(--ease-out);
}

.platform-prod-card:hover {
  border-color: rgba(0, 77, 48, 0.18);
  transform: translateY(-2px);
}

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

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

.platform-prod-card__foot {
  margin-top: 4px;
}

.platform-sided__note {
  margin-top: 20px;
  font-size: 14px;
  font-style: italic;
  color: var(--text-tertiary);
}

@media (max-width: 900px) {
  .platform-side-block { padding: 28px; }
  .platform-side-block--working .platform-side-block__cards,
  .platform-side-block--paycheck .platform-side-block__cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Section 5 — Why partnership (4 cards)
   ============================================================ */

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

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

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

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

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

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

/* ============================================================
   Section 6 — How it works (3 numbered steps)
   ============================================================ */

.howit {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  box-shadow: var(--shadow-card-dense);
}

.howit__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  position: relative;
}

.howit__grid::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 24px;
  height: 1px;
  background: rgba(0, 77, 48, 0.15);
  z-index: 0;
}

.howit__step {
  position: relative;
  z-index: 1;
  display: flex; flex-direction: column;
  gap: 16px;
}

.howit__num {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--g-700);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: var(--shadow-button);
}

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

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

@media (max-width: 900px) {
  .howit { padding: 48px 28px; }
  .howit__grid { grid-template-columns: 1fr; gap: 24px; }
  .howit__grid::before { display: none; }
}

/* ============================================================
   Section 7 — FAQ (V1.1 treatment: green numbered circles, cards)
   ============================================================ */

.faq-list {
  display: flex; flex-direction: column;
  gap: 20px;
  max-width: 920px;
}

.faq-row {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-card-dense);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
}

.faq-row__num {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--g-700);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: var(--shadow-button);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.faq-row__body { display: flex; flex-direction: column; gap: 10px; }

.faq-row__q {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-wrap: pretty;
}

.faq-row__a {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
  max-width: 760px;
}

@media (max-width: 720px) {
  .faq-list { gap: 16px; }
  .faq-row {
    padding: 22px 22px;
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }
  .faq-row__num { width: 36px; height: 36px; font-size: 13px; }
}

/* ============================================================
   Section 8 — Tailored partner material (3 sub-page cards)
   ============================================================ */

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

.tailored-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-in-out);
}

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

.tailored-card__photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
}

.tailored-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.tailored-card:hover .tailored-card__photo img { transform: scale(1.04); }

.tailored-card__body {
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 12px;
  flex: 1;
}

.tailored-card__pill {
  display: inline-flex; align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--g-700);
  background: var(--g-50);
  letter-spacing: -0.01em;
}

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

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

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

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

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

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

/* ============================================================
   Section 9 — Inquiry form
   ============================================================ */

.form-section {
  background: var(--surface-cream);
  padding-block: 96px;
}

.form-wrap {
  max-width: 720px;
  margin-inline: auto;
}

.form-head {
  text-align: center;
  margin-bottom: 40px;
  display: flex; flex-direction: column;
  gap: 12px;
  align-items: center;
}

.form-head h2 { margin: 0; }
.form-head .lede {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
  letter-spacing: -0.02em;
  max-width: 560px;
}

.form-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.form-field label .opt {
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: 4px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--surface-canvas);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  font: 400 15px/1.4 var(--font-sans);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: border-color var(--duration-base) var(--ease-in-out),
              box-shadow var(--duration-base) var(--ease-in-out);
}

.form-field textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
  font-family: var(--font-sans);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--g-700);
  box-shadow: 0 0 0 3px rgba(0, 77, 48, 0.12);
}

.form-footer {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.form-footer .legal {
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
  max-width: 360px;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px; }
  .form-section { padding-block: 64px; }
}


/* ============================================================
   Orange inline section CTAs (partners.html only)
   Two specific uses of --o-700 on this page:
   1) Stat numbers in problem cards
   2) The three inline "scroll to form" link-arrows
   ============================================================ */

.section-inline-cta .link-arrow,
.problem-narrative .link-arrow--quiet {
  color: var(--o-700);
}

.section-inline-cta .link-arrow:hover,
.problem-narrative .link-arrow--quiet:hover {
  color: var(--o-800);
}
