/* Homepage Meta Partnership + Meta Blueprint credentials.
   Additive only. Uses the existing IAM tokens. */

.mpc-partnership {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at 88% -10%, rgba(37, 99, 235, 0.12), transparent 58%),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 48%, #f8fbff 100%);
  border-top: 1px solid #e5eef8;
  border-bottom: 1px solid #e5eef8;
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.mpc-mark {
  position: absolute;
  right: -4%;
  top: -18%;
  width: min(42vw, 480px);
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(-12deg);
}

.mpc-mark img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.mpc-creds {
  background: #fff;
  border-bottom: 1px solid var(--iam-line, #d7e3f2);
  padding: clamp(3rem, 5vw, 4.75rem) 0;
}

.mpc-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--iam-max-width, 1240px);
  margin: 0 auto;
  padding: 0 var(--iam-pad-x, 1.25rem);
  box-sizing: border-box;
}

.mpc-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--iam-brand, #0a84ff);
}

.mpc-official {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.32rem 0.75rem 0.32rem 0.5rem;
  border: 1px solid #c9dbfb;
  border-radius: 999px;
  background: #fff;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
}

.mpc-official img {
  width: 1.2rem;
  height: 0.88rem;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.mpc-title {
  margin: 0.85rem 0 0;
  font-family: var(--iam-font-display, "Kumbh Sans", sans-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #0f172a;
}

.mpc-partnership .mpc-title span {
  color: #2563eb !important;
}

.mpc-lead {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  color: #334155;
  font-size: 1rem;
  line-height: 1.65;
}

.mpc-lead strong {
  color: #2563eb;
  font-weight: 700;
}

.mpc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 980px) {
  .mpc-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 2.5rem;
  }
}

.mpc-features {
  list-style: none;
  margin: 1.45rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .mpc-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
}

.mpc-feature {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

@media (min-width: 720px) {
  .mpc-feature {
    padding: 0 1.1rem;
  }

  .mpc-feature:first-child {
    padding-left: 0;
  }

  .mpc-feature + .mpc-feature {
    border-left: 1px solid #dbe7f6;
  }
}

.mpc-feature__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  background: #eaf2ff;
  color: #2563eb;
}

.mpc-feature__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.mpc-feature h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.mpc-feature p {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: #64748b;
}

.mpc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.mpc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.72rem 1.15rem;
  border-radius: 0.85rem;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.mpc-btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

.mpc-btn:hover {
  transform: translateY(-1px);
}

.mpc-btn--primary {
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.22);
}

.mpc-btn--primary:hover {
  background: #1e40af;
  color: #fff;
}

.mpc-btn--ghost {
  background: #fff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.mpc-btn--ghost:hover {
  background: #f8fbff;
  color: #1e40af;
}

.mpc-partner-card {
  background: #fff;
  border: 1px solid #dbe7f8;
  border-radius: 1.35rem;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
  padding: 1.55rem 1.45rem 1.35rem;
  min-width: 0;
}

.mpc-partner-card__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mpc-partner-card__brand img {
  width: 2.45rem;
  height: 1.78rem;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.mpc-partner-card__brand span {
  font-weight: 800;
  font-size: 1.7rem;
  color: #0f172a;
  letter-spacing: -0.04em;
}

.mpc-partner-card__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.35rem;
  align-items: center;
}

@media (min-width: 420px) {
  .mpc-partner-card__row {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, auto);
    gap: 1.1rem;
  }
}

.mpc-partner-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.mpc-chip {
  display: inline-flex;
  margin-top: 0.45rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
}

.mpc-partner-card__rule {
  display: none;
  width: 1px;
  align-self: stretch;
  background: #e2e8f0;
}

@media (min-width: 420px) {
  .mpc-partner-card__rule {
    display: block;
  }
}

.mpc-verified {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mpc-shield {
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  color: #2563eb;
}

.mpc-shield svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mpc-partnership .mpc-shield svg path:first-child {
  fill: #2563eb !important;
  stroke: none !important;
}

.mpc-partnership .mpc-shield svg path:last-child {
  fill: none !important;
  stroke: #fff !important;
}

.mpc-verified p {
  margin: 0;
  line-height: 1.15;
  font-weight: 800;
  font-size: 1.05rem;
}

.mpc-verified strong {
  display: block;
  color: #0f172a;
}

.mpc-verified span {
  color: #2563eb;
}

.mpc-footnote {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1.6rem 0 0;
  padding: 0.95rem 1.05rem;
  border-radius: 1rem;
  background: #f3f7fd;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.55;
}

.mpc-footnote span {
  flex: 0 0 auto;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  border: 1.5px solid #94a3b8;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 800;
  font-style: italic;
  display: grid;
  place-items: center;
}

.mpc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
  margin: 1rem 0 0;
  color: var(--iam-steel, #4b5870);
  font-size: 0.9rem;
}

.mpc-meta strong {
  color: var(--iam-ink, #0b1220);
  font-weight: 700;
}

.mpc-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  .mpc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .mpc-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mpc-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--iam-line, #d7e3f2);
  border-radius: 1rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  padding: 1.15rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.mpc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 94, 239, 0.28);
  box-shadow: 0 16px 32px rgba(21, 94, 239, 0.1);
}

.mpc-card__logo {
  height: 1.35rem;
  width: auto;
  max-width: 9.5rem;
  display: block;
}

.mpc-card__badge {
  width: 4.25rem;
  height: auto;
  margin: 1rem auto 0.85rem;
  display: block;
}

.mpc-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--iam-ink, #0b1220);
  min-height: 2.7em;
}

.mpc-card__holder,
.mpc-card__issuer,
.mpc-card__id {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--iam-steel, #4b5870);
}

.mpc-card__id {
  font-variant-numeric: tabular-nums;
}

.mpc-card .mpc-btn {
  width: 100%;
  margin-top: auto;
}

.mpc-disclaimer {
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  color: var(--iam-steel, #4b5870);
  max-width: 52rem;
}

.mpc-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  isolation: isolate;
}

.mpc-modal.is-open {
  display: flex !important;
}

.mpc-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(8, 16, 32, 0.62);
}

.mpc-modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 2rem));
  max-height: min(88vh, 980px);
  min-height: 12rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(8, 16, 32, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mpc-modal.is-full .mpc-modal__panel {
  width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 0;
}

.mpc-modal__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--iam-line, #d7e3f2);
  background: #f7f9fc;
}

.mpc-modal__bar p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--iam-ink, #0b1220);
  flex: 1 1 auto;
  min-width: 0;
}

.mpc-modal__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mpc-icon-btn {
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid var(--iam-line, #d7e3f2);
  background: #fff;
  color: #155eef;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.mpc-icon-btn:hover,
.mpc-icon-btn:focus-visible {
  border-color: #155eef;
}

.mpc-icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mpc-modal__stage {
  overflow: auto;
  background: #eef2f7;
  padding: 1rem;
  flex: 1 1 auto;
  min-height: 18rem;
  display: grid;
  place-items: center;
  user-select: none;
  -webkit-user-select: none;
}

.mpc-modal__stage img {
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  pointer-events: none;
  transform-origin: center top;
}

.mpc-modal__note {
  padding: 0.65rem 0.9rem 0.8rem;
  font-size: 0.78rem;
  color: var(--iam-steel, #4b5870);
  border-top: 1px solid var(--iam-line, #d7e3f2);
}

.mpc-auth {
  padding: 1.5rem 1.35rem 1.4rem;
}

.mpc-auth h3 {
  margin: 0;
  font-size: 1.2rem;
}

.mpc-auth p {
  margin: 0.6rem 0 0;
  color: var(--iam-steel, #4b5870);
}

@media print {
  .mpc-modal,
  .mpc-modal * {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mpc-card,
  .mpc-feature,
  .mpc-btn {
    transition: none;
  }
}
