/* Commercium vs in-house integrations
   Tokens match feature-hero.css (.cm-fh) and commercium-vs-p2p.css. */

.ih {
  --ih-primary: #008CE2;
  --ih-primary-soft: #2BA4EC;
  --ih-primary-deep: #0E7CBB;
  --ih-navy: #113D7E;
  --ih-ink: #1C1D21;
  --ih-text: #353C46;
  --ih-muted: #6B7785;
  --ih-success: #16A571;
  --ih-border: #DDE3EA;
  --ih-card: #FFFFFF;
  --ih-surface: #F4F6F8;
  --ih-surface-soft: #FAFBFC;
  --ih-radius: 24px;
  --ih-radius-sm: 16px;
  --ih-glow: 0 8px 22px rgba(0, 140, 226, 0.32);
  --ih-gradient: linear-gradient(120deg, #0D97D5 0%, #0E7CBB 48%, #113D7E 100%);
  --ih-gradient-azure: linear-gradient(135deg, #2BA4EC 0%, #008CE2 100%);
  --ih-gradient-navy: linear-gradient(160deg, #1B5AA6 0%, #113D7E 60%, #0B254C 100%);
  --ih-font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --ih-font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --ih-font-mono: "JetBrains Mono", ui-monospace, monospace;
  background: var(--ih-surface-soft);
  color: var(--ih-text);
  font-family: var(--ih-font-body);
  font-size: 16px;
  line-height: 1.65;
}

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

.ih h2,
.ih h3,
.ih p,
.ih-hero .ih-bc,
.ih-hero .ih-bc a,
.ih-board,
.ih-board span,
.ih-board p {
  font-family: var(--ih-font-body);
  text-transform: none;
}

.ih-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumb sits inside the shared feature hero */
.ih-hero .ih-bc {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fh-muted, #9AA7B8);
}

.ih-hero .ih-bc a {
  color: var(--fh-muted, #9AA7B8);
  text-decoration: none;
}

.ih-hero .ih-bc a:hover {
  color: var(--fh-ink, #F3F6FB);
  text-decoration: none;
}

.ih-hero .ih-bc i {
  font-size: 11px;
  color: var(--fh-subtle, #6E7B8C);
}

.ih-hero .ih-bc__current {
  color: var(--fh-ink, #F3F6FB);
  font-weight: 600;
}

/* Comparison board */
.ih-board {
  position: relative;
  z-index: 1;
  background: var(--fh-card, #121A2B);
  border: 1px solid var(--fh-border, rgba(255, 255, 255, 0.09));
  border-radius: var(--fh-radius, 28px);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  color: var(--fh-muted, #9AA7B8);
  font-size: 14px;
}

.ih-board__pane {
  padding: 18px 20px 22px;
}

.ih-board__pane--top {
  border-bottom: 1px solid var(--fh-border, rgba(255, 255, 255, 0.09));
  background: var(--fh-surface, #0F1728);
}

.ih-board__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ih-board__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fh-subtle, #6E7B8C);
}

.ih-board__label--brand {
  color: var(--fh-primary, #008CE2);
}

.ih-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--ih-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.ih-badge--warn {
  color: #F5C451;
  background: rgba(245, 196, 81, 0.14);
  border: 1px solid rgba(245, 196, 81, 0.28);
}

.ih-badge--ok {
  color: #7DDFB3;
  background: rgba(22, 165, 113, 0.16);
  border: 1px solid rgba(22, 165, 113, 0.32);
}

.ih-badge i {
  font-size: 7px;
}

.ih-tickets {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ih-ticket {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.ih-ticket__id {
  font-family: var(--fh-font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 11px;
  color: var(--fh-subtle, #6E7B8C);
  white-space: nowrap;
}

.ih-ticket__body {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ih-ticket__note {
  font-family: var(--ih-font-body);
  font-size: 13px;
  color: var(--fh-muted, #9AA7B8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ih-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.ih-dot--warn {
  background: #F5C451;
}

.ih-dot--danger {
  background: #F04438;
}

.ih-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--fh-border, rgba(255, 255, 255, 0.09));
  background: var(--fh-card, #121A2B);
  color: var(--fh-ink, #F3F6FB);
  font-family: var(--fh-font-display, "Poppins", "Segoe UI", system-ui, sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.ih-chip--muted {
  color: var(--fh-muted, #9AA7B8);
}

.ih-chip--hub {
  padding: 8px 14px;
  border: none;
  background: var(--fh-gradient, linear-gradient(120deg, #0D97D5 0%, #0E7CBB 48%, #113D7E 100%));
  color: #fff;
  font-size: 13.5px;
  box-shadow: var(--fh-glow, 0 8px 22px rgba(0, 140, 226, 0.32));
}

.ih-chip--hub i {
  font-size: 6px;
  color: #fff;
}

.ih-hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.ih-hub__col {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ih-hub__col--end {
  justify-content: flex-end;
}

.ih-hub__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ih-hub__meta {
  font-family: var(--fh-font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 11px;
  color: var(--fh-muted, #9AA7B8);
  white-space: nowrap;
}

/* Sections */
.ih-section {
  padding: 88px 0;
  background: var(--ih-surface-soft);
}

.ih-section--sunken {
  background: var(--ih-surface);
}

.ih-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.ih-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(0, 140, 226, 0.28);
  background: rgba(0, 140, 226, 0.12);
  color: var(--ih-primary);
  font-family: var(--ih-font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ih h2 {
  margin: 0 0 16px;
  font-family: var(--ih-font-display) !important;
  font-size: clamp(30px, 4.2vw, 46px) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em;
  color: var(--ih-ink) !important;
  text-transform: none !important;
}

.ih-lead {
  margin: 0 auto;
  max-width: 640px;
  font-family: var(--ih-font-body) !important;
  font-size: 17.5px !important;
  line-height: 1.65 !important;
  color: var(--ih-muted) !important;
}

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

.ih-card {
  padding: 28px;
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius-sm);
  background: var(--ih-card);
  box-shadow: 0 1px 3px rgba(17, 61, 126, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ih-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 140, 226, 0.35);
  box-shadow: 0 18px 40px rgba(17, 61, 126, 0.12);
}

.ih-card--brand {
  border-color: transparent;
  background: var(--ih-gradient-navy);
  box-shadow: 0 18px 40px rgba(17, 61, 126, 0.12);
}

.ih-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(0, 140, 226, 0.12);
  color: var(--ih-primary-deep);
  font-size: 20px;
}

.ih-card--brand .ih-ico {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ih-card h3,
.ih-detail h3 {
  margin: 0 0 10px;
  font-family: var(--ih-font-display) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em;
  color: var(--ih-ink) !important;
  text-transform: none !important;
}

.ih-card p,
.ih-detail p,
.ih-table__cell span {
  margin: 0;
  font-family: var(--ih-font-body) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: var(--ih-muted) !important;
}

.ih-card--brand h3,
.ih-card--brand p {
  color: #fff !important;
}

.ih-card--brand p {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Comparison table */
.ih-table {
  overflow: hidden;
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius-sm);
  background: var(--ih-card);
  box-shadow: 0 1px 3px rgba(17, 61, 126, 0.06);
}

.ih-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
  border-bottom: 1px solid var(--ih-border);
}

.ih-row:last-child {
  border-bottom: none;
}

.ih-row--head {
  background: var(--ih-card);
}

.ih-th {
  padding: 18px 24px;
  font-family: var(--ih-font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ih-muted);
}

.ih-th--ih {
  background: var(--ih-surface);
}

.ih-th--cmm {
  background: var(--ih-gradient);
  color: #fff;
}

.ih-table__cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 24px;
}

.ih-table__cell--area {
  align-items: center;
}

.ih-table__cell--ih {
  background: var(--ih-surface);
}

.ih-table__cell--cmm {
  background: rgba(0, 140, 226, 0.04);
}

.ih-table__area {
  font-family: var(--ih-font-display) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: var(--ih-ink) !important;
}

.ih-table__cell--cmm span {
  font-weight: 600;
  color: var(--ih-ink) !important;
}

.ih-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: rgba(0, 140, 226, 0.12);
  color: var(--ih-primary-deep);
  font-size: 15px;
}

.ih-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex: none;
  border-radius: 50%;
  background: #EEF1F4;
  color: #8A94A3;
  font-size: 11px;
}

.ih-tick--on {
  background: rgba(22, 165, 113, 0.14);
  color: var(--ih-success);
}

.ih-label-mobile {
  display: none;
  font-weight: 700;
}

/* Detail rows */
.ih-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ih-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius-sm);
  background: var(--ih-card);
  box-shadow: 0 1px 3px rgba(17, 61, 126, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ih-detail:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 140, 226, 0.35);
  box-shadow: 0 18px 40px rgba(17, 61, 126, 0.12);
}

.ih-detail__num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--ih-font-mono);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  background: var(--ih-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ih-kicker {
  margin-bottom: 8px;
  font-family: var(--ih-font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ih-muted);
}

.ih-kicker--brand {
  color: var(--ih-navy);
}

.ih-detail__cmm {
  padding: 18px 20px;
  border: 1px solid rgba(0, 140, 226, 0.18);
  border-radius: 14px;
  background: rgba(0, 140, 226, 0.08);
}

.ih-detail__cmm p {
  color: var(--ih-text) !important;
}

/* Summary + CTA */
.ih-band {
  padding: 24px 24px 0;
}

.ih-summary,
.ih-cta {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 28px;
}

.ih-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  background: var(--ih-gradient-navy);
  box-shadow: 0 18px 40px rgba(17, 61, 126, 0.12);
}

.ih-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  opacity: 0.4;
  pointer-events: none;
}

.ih-summary > * {
  position: relative;
}

.ih-pill {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--ih-font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ih-summary h2,
.ih-cta h2 {
  margin: 16px 0 0;
  color: #fff !important;
  font-size: clamp(26px, 3.2vw, 36px) !important;
}

.ih-summary p,
.ih-cta p {
  margin: 16px 0 0;
  font-family: var(--ih-font-body) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.ih-flow-label {
  margin-bottom: 14px;
  font-family: var(--ih-font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.ih-flows {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ih-flow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--ih-font-display);
  font-size: 14px;
  font-weight: 600;
}

.ih-flow i {
  font-size: 7px;
  color: var(--ih-primary-soft);
}

.ih-cta-wrap {
  padding: 24px 24px 24px;
}

.ih-cta {
  padding: 64px 32px;
  text-align: center;
  background: var(--ih-gradient);
  box-shadow: 0 32px 64px rgba(11, 37, 76, 0.16);
}

.ih-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 120% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.ih-cta > * {
  position: relative;
}

.ih-cta h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px) !important;
  font-weight: 800 !important;
}

.ih-cta p {
  max-width: 600px;
  margin: 16px auto 30px;
  font-size: 17.5px !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

.ih-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.ih-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--ih-font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ih-btn:hover {
  transform: translateY(-2px);
  text-decoration: none !important;
}

.ih-btn--white {
  background: #fff;
  color: var(--ih-navy) !important;
}

.ih-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff !important;
}

.ih-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

@media (max-width: 900px) {
  .ih-grid3,
  .ih-detail,
  .ih-summary {
    grid-template-columns: 1fr;
  }

  .ih-row--head {
    display: none;
  }

  .ih-row {
    grid-template-columns: 1fr;
  }

  .ih-label-mobile {
    display: inline;
  }

  .ih-hub {
    grid-template-columns: 1fr;
  }

  .ih-hub__col--end {
    justify-content: flex-start;
  }

  .ih-ticket__note {
    white-space: normal;
  }

  .ih-summary,
  .ih-detail {
    padding: 22px;
  }

  .ih-section {
    padding: 64px 0;
  }
}
