/* ============================================================
   Insurance Brokers sub-page — page-specific styles
   ============================================================ */

/* --- Hero: editorial photo + product UI overlay (Mercury-style) --- */

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

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

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

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

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

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

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

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

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

/* Photo + overlay stage */
.ib-hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 12;
  min-height: 480px;
}

.ib-hero__photo {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-photo-glow);
}

.ib-hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.ib-hero__overlay {
  position: absolute;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-elevated-ring);
  overflow: hidden;
  z-index: 5;
}

.ib-hero__overlay--dashboard {
  top: -10%;
  left: -8%;
  width: 72%;
  aspect-ratio: 16 / 10;
  transform: rotate(-3deg);
}

.ib-hero__overlay--dashboard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 24px;
  background: #F4F1EC;
  border-bottom: 1px solid rgba(0,46,29,0.06);
  z-index: 2;
}
.ib-hero__overlay--dashboard::after {
  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);
  z-index: 3;
}

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

/* Phone overlay at bottom-right */
.ib-hero__overlay--phone {
  bottom: -4%;
  right: -2%;
  width: 18%;
  aspect-ratio: 9 / 19.5;
  border-radius: 30px;
  background: #0F172A;
  padding: 6px;
  box-shadow: var(--shadow-photo-glow);
  transform: rotate(5deg);
  overflow: visible;
  z-index: 6;
}

.ib-hero__overlay-phone {
  width: 100%; height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}

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

@media (max-width: 1100px) {
  .ib-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .ib-hero__stage { aspect-ratio: 4/3; min-height: 380px; }
}

@media (max-width: 640px) {
  .ib-hero__overlay--dashboard {
    width: 50%;
    top: auto;
    bottom: -6%;
    left: -4%;
    transform: rotate(-3deg);
  }
  .ib-hero__overlay--phone {
    width: 22%;
    bottom: -4%;
    right: -2%;
  }
  .ib-hero__stage {
    aspect-ratio: 4 / 3.4;
    min-height: 340px;
  }
}

/* ============================================================
   Section 3 — What we built (two sub-groups)
   ============================================================ */

.builtfor-group {
  margin-bottom: 32px;
}

.builtfor-group:last-child { margin-bottom: 0; }

.builtfor-group__head {
  display: flex; flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.builtfor-group__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--g-700);
}

.builtfor-group__title {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-wrap: pretty;
}

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

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

.builtfor-card--premfin { border-top-color: var(--p-premfin); }
.builtfor-card--factoring { border-top-color: var(--p-factoring); }
.builtfor-card--ewa { border-top-color: var(--p-ewa); }

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

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

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

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

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

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

.builtfor-group__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.builtfor-transition {
  margin: 24px 0 36px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  text-align: center;
  max-width: 880px;
  margin-inline: auto;
}

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

/* ============================================================
   Section 4 — How partnership works (2-col with steps)
   ============================================================ */

.partner-steps {
  display: flex; flex-direction: column;
  gap: 16px;
}

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

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

.partner-steps--row .partner-step {
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 28px;
}

.partner-steps--row .partner-step__num { margin-bottom: 4px; }

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

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

.partner-step h4 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

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

/* ============================================================
   Section 5 — What we hear from brokers (Q&A blocks)
   ============================================================ */

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

.qa-block {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-card-dense);
}

.qa-block__q {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  text-wrap: pretty;
  display: flex; gap: 12px;
  align-items: baseline;
}

.qa-block__q::before {
  content: "";
  width: 4px;
  align-self: stretch;
  background: var(--g-700);
  border-radius: 2px;
  flex-shrink: 0;
}

.qa-block__a {
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
  padding-left: 16px;
}

.qa-closer {
  padding: 56px 72px;
  background: var(--g-700);
  color: #fff;
  border-radius: var(--radius-xl);
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 1080px;
  margin-inline: auto;
  text-wrap: balance;
  text-align: center;
}

.qa-closer p { margin: 0; color: inherit; }

.qa-closer strong {
  color: var(--p-ewa);
  font-weight: 600;
}

@media (max-width: 720px) {
  .qa-closer { padding: 44px 28px; font-size: clamp(28px, 7vw, 38px); }
}
