/* ============================================================
   B2B Point product page (b2b-platform.html) — prefix b2p-
   Depends on the shared components in css/styles.css.
   ============================================================ */

/* ---- Hero ---- */
.b2p-hero .svc-hero-copy h1 { max-width: 15ch; text-wrap: balance; }
.b2p-hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(400px, 1.15fr); align-items: center; }
.b2p-board { margin-top: 16px; }
.b2p-board .ec-board-meta > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Supply-chain board */
.b2p-chain-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr); align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); }
.b2p-node { min-width: 0; padding: 14px 14px 13px; }
.b2p-node i { display: block; font-size: 9px; font-style: normal; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.b2p-node b { display: block; margin-top: 5px; font-size: 13px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.b2p-node small { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.35; color: var(--muted); }
.b2p-link { position: relative; display: grid; place-items: center; }
.b2p-link::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; border-top: 1px solid var(--text); }
.b2p-link::after { content: ""; position: absolute; right: 4px; top: 50%; width: 6px; height: 6px; border-top: 1px solid var(--text); border-right: 1px solid var(--text); transform: translateY(-50%) rotate(45deg); }
.b2p-link em { position: relative; z-index: 1; padding: 1px 2px; transform: translateY(-9px); background: var(--bg); font-size: 8px; font-style: normal; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.b2p-chain-down { display: grid; grid-template-columns: repeat(3, 1fr); height: 18px; background: var(--bg); }
.b2p-chain-down span { position: relative; }
.b2p-chain-down span::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--text); }
.b2p-hub { padding: 14px 18px 16px; background: color-mix(in srgb, var(--accent) 34%, var(--bg)); border-top: 1px solid var(--text); border-bottom: 1px solid var(--text); }
.b2p-hub-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.b2p-hub-head i { padding: 5px 7px; background: var(--text); color: var(--bg); font-size: 9px; font-style: normal; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.b2p-hub-head b { font-size: 13px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.b2p-hub-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.b2p-hub-chips li { padding: 4px 8px; border: 1px solid var(--text); background: var(--bg); font-size: 11px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.b2p-feeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; list-style: none; margin: 0; padding: 0; background: var(--line); }
.b2p-feeds li { min-width: 0; padding: 10px 14px 11px; background: var(--surface); }
.b2p-feeds i { display: block; font-size: 9px; font-style: normal; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.b2p-feeds b { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

/* ---- 01 Roles ---- */
.b2p-role-k { font-size: 10px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.b2p-roles h3 { font-size: 19px; }
.b2p-hybrid { margin-top: 28px; }

/* ---- 01b The gap (inside "Who it is for") ---- */
.b2p-gap-head { margin-top: clamp(48px, 6vw, 72px); }
.b2p-gap-head h3 { margin-top: 10px; max-width: 30ch; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; }
.b2p-gap { list-style: none; margin: 28px 0 0; padding: 0; border: 1px solid var(--line); background: var(--surface); }
.b2p-gap li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.b2p-gap li:first-child { border-top: 0; }
.b2p-gap-problem, .b2p-gap-fix { min-width: 0; padding: 26px; }
.b2p-gap-fix { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); border-left: 1px solid var(--line); }
.b2p-gap-k { font-size: 10px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.b2p-gap-fix .b2p-gap-k { color: var(--text); }
.b2p-gap h3 { margin-top: 10px; font-size: 20px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; }
.b2p-gap-problem p:not(.b2p-gap-k) { margin-top: 10px; font-size: var(--fz-14-5); line-height: 1.55; color: var(--muted); }
.b2p-gap-fix p:not(.b2p-gap-k) { margin-top: 10px; font-size: var(--fz-15); line-height: 1.5; color: var(--text); }

/* ---- 02 Feature matrix ---- */
.b2p-matrix { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin-top: 44px; border: 1px solid var(--text); background: var(--line); }
.b2p-group { min-width: 0; background: var(--surface); }
.b2p-group header { padding: 16px 16px 12px; border-bottom: 1px solid var(--text); }
.b2p-group h3 { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.b2p-group ul { list-style: none; margin: 0; padding: 4px 0 6px; }
.b2p-group li { position: relative; padding: 7px 16px 7px 34px; border-top: 1px solid var(--line); font-size: var(--fz-13); line-height: 1.4; letter-spacing: -0.01em; }
.b2p-group li:first-child { border-top: 0; }
.b2p-group li::before { content: ""; position: absolute; left: 16px; top: calc(0.7em + 1px); width: 9px; height: 9px; border: 1px solid var(--text); border-radius: 50%; background: var(--text); }
.b2p-group li::after { content: ""; position: absolute; left: 19px; top: calc(0.7em + 3.5px); width: 3px; height: 1.8px; border-left: 1px solid var(--surface); border-bottom: 1px solid var(--surface); transform: rotate(-45deg); }
.b2p-custom { margin-top: 28px; }

/* ---- 03 Integrations ---- */
.b2p-int { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.b2p-int-copy .sec-lede { margin-top: 18px; }
.b2p-int-copy h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.b2p-int-note { margin-top: 20px; font-size: var(--fz-14); line-height: 1.5; color: var(--muted); }
.b2p-int-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.b2p-hubboard { margin-top: 0; }
.b2p-hubmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; list-style: none; margin: 0; padding: 0; background: var(--line); }
.b2p-hubmap li { min-width: 0; padding: 16px 14px 14px; background: var(--bg); }
.b2p-hubmap li b { display: block; font-size: 13px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.b2p-hubmap li small { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.35; color: var(--muted); }
.b2p-hubmap li i { display: inline-block; margin-bottom: 8px; padding: 4px 7px; background: var(--text); color: var(--bg); font-size: 9px; font-style: normal; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.b2p-hubmap-core { background: color-mix(in srgb, var(--accent) 38%, var(--bg)) !important; outline: 1px solid var(--text); outline-offset: -1px; }
.b2p-hubmap-core small { color: var(--text) !important; }
.b2p-systems { margin-top: clamp(40px, 5vw, 56px); }
.b2p-systems img[src*="merit"] { height: 15px; }
.b2p-sys-text span { opacity: 1 !important; padding: 3px 8px; border: 1px solid var(--line); font-weight: 500 !important; color: var(--muted) !important; }

/* ---- 04 Product line (one row per product) ---- */
.b2p-products { list-style: none; margin: 44px 0 0; padding: 0; border: 1px solid var(--line); background: var(--surface); }
.b2p-product { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) auto; align-items: center; gap: 18px 24px; padding: 18px 24px; border-top: 1px solid var(--line); }
.b2p-product:first-child { border-top: 0; }
.b2p-prod-name { font-size: 20px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.b2p-prod-tag { min-width: 0; font-size: var(--fz-14-5); line-height: 1.4; color: var(--muted); }
.b2p-prod-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; list-style: none; margin: 0; padding: 0; }
.b2p-prod-chips li { padding: 4px 8px; border: 1px solid var(--text); background: var(--bg); font-size: 11px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; white-space: nowrap; }
.b2p-products + .sec-cta { margin-top: clamp(28px, 4vw, 40px); }

/* ---- 05 Built around you ---- */
.b2p-quote { margin: 28px 0 0; padding: 26px 28px; border: 1px solid var(--text); background: var(--surface); }
.b2p-quote p { font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.3; max-width: 40ch; }
.b2p-quote footer { margin-top: 10px; font-size: 10.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* ---- 06 Deployment ---- */
.b2p-fit { grid-template-columns: repeat(3, 1fr); }
.b2p-fit h3 { font-size: 19px; }
.b2p-fit .ec-fit-foot b { font-size: 18px; }

/* ---- 07 Process (five steps) ---- */
.b2p-process { grid-template-columns: repeat(5, 1fr); }
.b2p-process .process-step h3 { font-size: 19px; }
.b2p-process .process-step p:not(.why-num) { font-size: var(--fz-14); }
.b2p-process-note { margin-top: 24px; }

/* ---- 08 Pricing ---- */
.b2p-monthly { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.b2p-monthly strong { display: inline; font-size: 20px; margin-top: 0; }
.b2p-monthly + .svc-tier-for { margin-top: 14px; }

/* ---- 09 Why WPX: three cards ---- */
.why-grid.b2p-why { grid-template-columns: repeat(3, 1fr); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .b2p-hero-grid { grid-template-columns: 1fr 1.05fr; }
  .b2p-matrix { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b2p-int { grid-template-columns: 1fr; }
  .b2p-hubboard { margin-top: 8px; }
  .b2p-fit { grid-template-columns: 1fr; max-width: 640px; }
  .b2p-process { grid-template-columns: 1fr 1fr; }
  .b2p-process .process-step:last-child { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--line); }
  .b2p-product { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 10px 20px; }
  .b2p-prod-chips { grid-column: 1 / -1; justify-content: flex-start; }
  .b2p-why .why-card:nth-child(2) { border-right: 1px solid var(--line); }
  .b2p-why .why-card:nth-child(3) { border-top: 0; }
}
@media (max-width: 900px) {
  .b2p-hero .svc-hero-copy h1 { max-width: none; }
  .b2p-hero-grid { grid-template-columns: 1fr; }
  .b2p-board { margin-top: 8px; }
  .b2p-gap li { grid-template-columns: minmax(0, 1fr); }
  .b2p-gap-problem { padding: 22px 22px 18px; }
  .b2p-gap-fix { padding: 20px 22px 22px; border-left: 0; border-top: 1px solid var(--line); }
  .b2p-product { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .why-grid.b2p-why { grid-template-columns: 1fr; }
  .b2p-why .why-card:nth-child(n) { border-right: 0; border-top: 1px solid var(--line); }
  .b2p-why .why-card:first-child { border-top: 0; }
}
@media (max-width: 640px) {
  .b2p-chain-row { grid-template-columns: 1fr; }
  .b2p-link { height: 28px; }
  .b2p-link em { transform: translateX(14px); }
  .b2p-link::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1px solid var(--text); }
  .b2p-link::after { right: auto; left: 50%; top: auto; bottom: 4px; transform: translateX(-50%) rotate(135deg); }
  .b2p-chain-down { grid-template-columns: 1fr; }
  .b2p-feeds { grid-template-columns: repeat(2, 1fr); }
  .b2p-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2p-group header { padding: 14px 12px 10px; }
  .b2p-group h3 { font-size: 14px; }
  .b2p-group li { padding: 7px 12px 7px 30px; }
  .b2p-group li::before { left: 12px; }
  .b2p-group li::after { left: 15px; }
  .b2p-hubmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2p-hubmap-core { grid-column: 1 / -1; }
  .b2p-product { padding: 16px 16px; gap: 8px 10px; }
  .b2p-prod-name { font-size: 18px; }
  .b2p-prod-chips li { white-space: normal; }
  .b2p-process { grid-template-columns: 1fr; }
  .b2p-process .process-step:last-child { grid-column: auto; }
  .b2p-gap-problem { padding: 20px 18px 18px; }
  .b2p-gap-fix { padding: 18px; }
  .b2p-quote { padding: 22px 20px; }
}
@media (max-width: 480px) {
  .b2p-group li { font-size: 12.5px; padding: 7px 10px 7px 26px; }
  .b2p-group li::before { left: 10px; }
  .b2p-group li::after { left: 13px; }
}
