/* phaf DATA CONNECTOR — site styles. No rounded corners, colour only as accent. */
:root {
  --text: #101828;
  --text-2: #475467;
  --text-3: #344054;
  --border: #EAECF0;
  --border-strong: #D0D5DD;
  --bg: #ffffff;
  --bg-muted: #F7F8FA;
  --accent: #4F46E5;
  --accent-dark: #3730A3;
  --accent-soft: #EEF0FF;
  --accent-line: #C7D2FE;
  --ok: #067647; --ok-bg: #ECFDF3; --ok-dot: #17B26A;
  --err: #B42318; --err-dot: #F04438;
  --warn: #B54708;
  --path: #528BFF;
  --c-flow: #475467; --c-tr: #C11574; --c-mft: #0B7A6E; --c-edi: #B54708; --c-db: #1570EF; --c-app: #4F46E5;
  --dark: #101828; --dark-2: #0C111D; --dark-line: #344054;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { border-bottom: 1px solid var(--border); padding: 88px 0; }
.section--muted { background: var(--bg-muted); }
.section--dark { background: var(--dark); color: #fff; }
.section--tight { padding: 40px 0; }
.mono { font-family: var(--mono); }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 12px; text-transform: uppercase; }
.eyebrow--mft { color: var(--c-mft); } .eyebrow--edi { color: var(--c-edi); } .eyebrow--light { color: #A5B4FC; }
.display { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 24px; }
.h1 { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 16px; }
.h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.h2--lg { font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 560px; }
.body { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 640px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.section--dark .body, .section--dark .small { color: #D0D5DD; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; } .mb-48 { margin-bottom: 48px; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.link-arrow { font-weight: 600; font-size: 15px; text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--outline { background: #fff; color: var(--text); border-color: var(--text); }
.btn--block { width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 460px; min-width: 0; }
.split--top { align-items: flex-start; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 260px), 100%), 1fr)); }
.grid--fill { grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 220px), 100%), 1fr)); }
.grid--lines { gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.grid--lines > * { background: #fff; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid--wide-gap { gap: 40px 48px; }

/* ---------- Header ---------- */
.topbar { background: var(--accent); color: #fff; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: #fff; }
.topbar__right { display: flex; gap: 6px 16px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.topbar__right a { text-decoration: none; }
.topbar__lang { display: flex; gap: 4px; }
.topbar__lang .is-off { color: #E0E7FF; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: 12px; }
.brand__name { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand__tag { font-family: var(--mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.08em; }
.nav__menu { display: flex; gap: 2px; flex: 1 1 auto; flex-wrap: wrap; }
.nav__item { display: flex; align-items: center; gap: 5px; height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--text-3); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; }
.nav__item:hover { color: var(--text); }
.nav__item[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.nav__item.is-active { color: var(--text); font-weight: 700; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); }
.nav__toggle { display: none; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border-strong); box-shadow: 0 16px 32px rgba(16, 24, 40, 0.10); }
.mega[hidden] { display: none; }
.mega__inner { display: flex; flex-wrap: wrap; gap: 28px 40px; padding-top: 28px; padding-bottom: 32px; }
.mega__tabs { flex: 0 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--border); padding-right: 20px; }
.mega__tab { text-align: left; padding: 12px 14px; border: 0; background: transparent; cursor: pointer; color: var(--text); }
.mega__tab[aria-selected="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.mega__tab b { display: block; font-size: 15px; }
.mega__tab span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-2); }
.mega__groups { flex: 999 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 32px; }
.mega__panel { display: contents; }
.mega__panel[hidden] { display: none; }
.mega__h { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-2); margin-bottom: 10px; }
.mega__groups a { display: block; padding: 8px 0; text-decoration: none; color: var(--text); font-size: 15px; font-weight: 500; }
.mega__groups a:hover { color: var(--accent); }
.promo { flex: 0 1 280px; min-width: 0; background: var(--bg-muted); border: 1px solid var(--border); padding: 22px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.promo__k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--accent); }
.promo__t { font-size: 18px; font-weight: 700; line-height: 1.3; }
.promo__d { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.promo__cta { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #D0D5DD; }
.site-footer a { color: #98A2B3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__main { display: flex; flex-wrap: wrap; gap: 40px 48px; padding-top: 64px; padding-bottom: 40px; }
.footer__brand { flex: 1 1 260px; max-width: 320px; }
.footer__brand .brand { color: #fff; margin-bottom: 18px; }
.footer__brand .brand__tag { color: #98A2B3; }
.footer__brand p { font-size: 14px; line-height: 1.65; margin-bottom: 20px; color: #98A2B3; }
.footer__brand .footer__company { color: #D0D5DD; }
.footer__brand .footer__company a { color: #fff; font-weight: 600; }
.footer__social { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer__social a { color: #D0D5DD; }
.footer__cols { flex: 999 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px 24px; }
.footer__title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: #fff; margin-bottom: 14px; }
.footer__cols li { margin-bottom: 10px; font-size: 14px; }
.footer__bottom { border-top: 1px solid var(--dark-line); }
.footer__bottom .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: #98A2B3; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Components ---------- */
.canvas { border: 1px solid var(--border); background-color: var(--bg-muted); background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 20px 20px; padding: 28px; }
.canvas__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.canvas__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
.canvas__legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 22px; font-size: 12px; color: var(--text-2); }
.canvas__legend .mono { margin-left: auto; }
.line { display: inline-block; width: 16px; height: 2px; background: var(--path); vertical-align: middle; margin-right: 6px; }
.line--err { height: 0; background: none; border-top: 2px dashed var(--err-dot); }
.node { background: #fff; border: 1px solid var(--border); padding: 14px; }
.node--sel { border: 2px solid var(--accent); padding: 13px; }
.node__type { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.node__id { font-family: var(--mono); font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.node__meta { font-size: 12px; color: var(--text-2); }
.t-flow { color: var(--c-flow); } .t-tr { color: var(--c-tr); } .t-mft { color: var(--c-mft); } .t-edi { color: var(--c-edi); } .t-db { color: var(--c-db); } .t-app { color: var(--c-app); }

.flowline { display: flex; align-items: center; min-width: 900px; }
.flowline__wire { flex: 1; height: 2px; background: var(--path); min-width: 32px; }
.flowline .node { width: 190px; flex: 0 0 auto; }
.flowline .node--sel { width: 210px; }
.flowline__out { display: flex; flex-direction: column; gap: 22px; }
.flowline__out > div { display: flex; align-items: center; }
.flowline__ok { width: 48px; height: 2px; background: var(--ok-dot); }
.flowline__err { width: 48px; border-top: 2px dashed var(--err-dot); }
.flowline__out .node { width: 170px; padding: 10px 12px; font-family: var(--mono); font-size: 12px; }
.scroll-x { overflow-x: auto; }

.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 6px; }
.badge--ok { color: var(--ok); background: var(--ok-bg); }
.badge--soon { color: var(--text-2); border: 1px solid var(--border-strong); padding: 1px 5px; font-weight: 500; }
.badge--live { font-size: 12px; color: var(--ok); background: var(--ok-bg); padding: 4px 8px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; border: 1px solid var(--text); padding: 4px 8px; }
.tag--accent { color: var(--accent); border-color: var(--accent-line); padding: 2px 6px; letter-spacing: 0; }
.dot { display: inline-block; width: 10px; height: 10px; background: var(--c, var(--text-2)); flex: 0 0 auto; }
.dot--hollow { background: none; border: 1.5px solid #98A2B3; }

.logo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.logo-strip div { height: 56px; border: 1px dashed var(--border-strong); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--text-2); }

.card { border: 1px solid var(--border); padding: 26px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.card--top { border-top: 3px solid var(--accent); }
.card--top-dark { border-top: 3px solid var(--text); }
.card__cta { margin-top: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
a.card { color: var(--text); text-decoration: none; }
a.card:hover { border-color: var(--border-strong); }

.numbered__n { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 14px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 1px solid var(--text); }
.steps > div { padding: 24px 32px 0 0; }

.checklist li { margin-bottom: 12px; font-size: 15px; color: var(--text-3); }
.checklist li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

.route-card { border: 1px solid var(--border); background: var(--bg-muted); padding: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.route-card div { display: flex; justify-content: space-between; gap: 12px; }
.route-card hr { border: 0; height: 1px; background: var(--border-strong); margin: 6px 0; width: 100%; }

.cat-tile { padding: 22px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.cat-tile__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.cat-tile__name { font-size: 17px; font-weight: 700; margin-top: 8px; }
.cat-tile__ex { font-size: 13px; line-height: 1.5; color: var(--text-2); }

.brand-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.brand-row span, .brand-row a { width: 56px; height: 56px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.brand-row img { width: 26px; height: 26px; }
.brand-row a.more { width: auto; padding: 0 18px; font-size: 14px; font-weight: 600; text-decoration: none; }

.code { border: 1px solid var(--border); background: var(--bg-muted); padding: 22px; font-family: var(--mono); font-size: 13px; line-height: 1.9; overflow-x: auto; }
.code--dark { border-color: var(--dark-line); background: var(--dark-2); color: #D0D5DD; line-height: 1.75; }
.code__label { color: #98A2B3; margin-bottom: 10px; }
.code pre { margin: 0; font: inherit; white-space: pre; }
.m-get { color: var(--ok); font-weight: 600; } .m-post { color: var(--accent-dark); font-weight: 600; } .m-patch { color: var(--warn); font-weight: 600; } .m-del { color: var(--err); font-weight: 600; } .m-soap { color: var(--c-tr); font-weight: 600; }
.code--dark .m-post { color: #A5B4FC; } .c-ok { color: #75E0A7; } .c-err { color: #F97066; } .c-dim { color: #98A2B3; } .c-accent { color: #A5B4FC; }
.note { margin-top: 20px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.section--dark .note { color: #98A2B3; }

.cta-band { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.cta-band p { margin-top: 12px; font-size: 16px; color: var(--text-2); max-width: 640px; }

/* Connectors catalog */
.stats { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 28px; font-size: 14px; }
.stats span { display: flex; align-items: center; gap: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search { flex: 1 1 260px; min-width: 0; height: 44px; border: 1px solid var(--border-strong); padding: 0 14px; font: inherit; font-size: 15px; color: var(--text); background: #fff; }
.seg { display: flex; flex-wrap: wrap; border: 1px solid var(--border-strong); }
.seg button { height: 42px; padding: 0 14px; border: 0; background: #fff; color: var(--text-3); font-size: 13px; font-weight: 500; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pills button { height: 40px; padding: 0 14px; border: 1px solid var(--border-strong); background: #fff; color: var(--text-3); font-size: 13px; font-weight: 500; cursor: pointer; }
.pills button[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: #fff; font-weight: 600; }
.cat { padding: 40px 0; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 24px 48px; }
.cat[hidden] { display: none; }
.cat__info { flex: 1 1 260px; min-width: 0; max-width: 320px; }
.cat__title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cat__title h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.cat__info p { font-size: 15px; line-height: 1.55; color: var(--text-2); margin-bottom: 14px; }
.cat__grid { flex: 999 1 600px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); align-content: start; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.conn { background: #fff; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px; display: flex; gap: 12px; align-items: center; min-height: 72px; }
.conn[hidden] { display: none; }
.conn__icon { flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.conn__icon img { width: 24px; height: 24px; object-fit: contain; }
.conn__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; align-items: flex-start; }
.conn__name { font-size: 14px; font-weight: 600; line-height: 1.25; }
.empty { padding: 64px 0; font-size: 16px; color: var(--text-2); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); background: #fff; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
th { text-align: left; padding: 14px 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-2); border-bottom: 1px solid var(--border); text-transform: uppercase; }
td { padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
td.nowrap { white-space: nowrap; }
td.strong { font-weight: 700; }
td.mono { font-size: 13px; }
td.muted { line-height: 1.5; }

.form-panel { border: 1px solid var(--border); }
.form-panel__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg-muted); font-size: 14px; font-weight: 700; }
.form-panel__body { padding: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-panel__body .full { grid-column: 1 / -1; }
.field-label { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field-value { border: 1px solid var(--border-strong); padding: 10px 12px; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.form-panel__foot { padding: 0 20px 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border-strong); padding: 10px 14px; font-size: 13px; color: var(--text-3); }
.chip--strong { border-color: var(--text); font-weight: 600; color: var(--text); }

.api-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.api-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 16px; font-weight: 700; }
.api-card__call { margin-top: auto; background: var(--bg-muted); border: 1px solid var(--border); padding: 10px 12px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--text-3); overflow-wrap: anywhere; }

.edi-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); font-family: var(--mono); font-size: 12px; }
.edi-trio > div { background: #fff; padding: 16px; line-height: 1.7; overflow: hidden; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.edi-trio > div:first-child { background: #FEF4E6; }
.cap { padding: 28px; }
.cap__k { font-family: var(--mono); font-size: 12px; color: var(--c-edi); margin-bottom: 14px; }
.std-list { border-top: 1px solid var(--text); }
.std-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; align-items: center; }
.std-list b { display: flex; align-items: center; gap: 8px; }

/* Pricing */
.tier { border: 1px solid var(--border); padding: 32px; display: flex; flex-direction: column; gap: 20px; position: relative; background: #fff; }
.tier--hl { border: 2px solid var(--accent); padding: 31px; }
.tier__flag { position: absolute; top: -13px; left: 30px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 8px; }
.tier h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.tier__quote { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--text-3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; }
.tier ul li { margin-bottom: 10px; font-size: 15px; }
.tier ul li.lead-in { color: var(--text-2); }
.tier__opt { margin-top: auto; font-size: 13px; color: var(--text-2); }
.mods__tier { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 2px solid var(--text); padding-bottom: 12px; margin-bottom: 4px; }
.mods__tier h3 { font-size: 22px; font-weight: 800; }
.mod { display: flex; flex-wrap: wrap; gap: 16px 40px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.mod__info { flex: 1 1 260px; min-width: 0; max-width: 340px; }
.mod__name { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.mod__detail { flex: 999 1 520px; min-width: 0; }
.mod__caps { font-size: 14px; line-height: 1.6; color: var(--text-3); margin-bottom: 10px; }
.mod__list { font-family: var(--mono); font-size: 12px; line-height: 1.8; color: var(--text-2); }
.mods-group { margin-bottom: 48px; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; border: 1px solid var(--border-strong); padding: 0 12px; height: 46px; font: inherit; font-size: 15px; background: #fff; color: var(--text); }
.form textarea { height: auto; padding: 12px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.flash { padding: 14px 16px; font-size: 15px; margin-bottom: 20px; }
.flash--ok { background: var(--ok-bg); color: var(--ok); }
.flash--err { background: #FEF3F2; color: var(--err); }
.field-error { font-size: 13px; color: var(--err); margin-top: 4px; }

.trademark { font-size: 12px; color: var(--text-2); padding-bottom: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { flex-wrap: wrap; }
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .nav__menu, .nav__actions { display: none; width: 100%; }
  .site-header.is-open .nav__menu { display: flex; flex-direction: column; align-items: stretch; }
  .site-header.is-open .nav__actions { display: flex; padding-bottom: 8px; }
  .mega { position: static; box-shadow: none; }
  .mega__tabs { border-right: 0; padding-right: 0; flex-basis: 100%; }
  .site-header { position: relative; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .canvas__grid, .form, .form-panel__body { grid-template-columns: 1fr; }
  .edi-trio { grid-template-columns: 1fr; }
  .split > * { flex-basis: 100%; }
  .cta-band { padding-top: 64px; padding-bottom: 64px; }
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

.btn { transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(79, 70, 229, .18); }
.btn--ghost:hover, .btn--outline:hover { box-shadow: 0 6px 16px rgba(16, 24, 40, .08); }
.link-arrow, .card__cta, .promo__cta { transition: letter-spacing .2s, color .2s; }
.link-arrow:hover, a.card:hover .card__cta, .card:hover .card__cta, .promo:hover .promo__cta { letter-spacing: .02em; }

.card, .cat-tile, .api-card, .cap, .tier, .route-card, .conn { transition: transform .25s ease, box-shadow .25s ease, border-color .25s, background-color .25s; }
.card:hover, .tier:hover, .api-card:hover, .cap:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16, 24, 40, .08); }
.cat-tile:hover { background: var(--bg-muted); }
.cat-tile .dot, .mod__name .dot { transition: transform .25s; }
.cat-tile:hover .dot { transform: scale(1.6) rotate(45deg); }
.conn:hover { background: var(--bg-muted); }
.conn__icon img, .brand-row img { transition: transform .25s ease; }
.conn:hover .conn__icon img, .brand-row span:hover img { transform: scale(1.18); }
.brand-row span { transition: border-color .2s, transform .2s; }
.brand-row span:hover { border-color: var(--accent); transform: translateY(-3px); }

.mega:not([hidden]) { animation: megaIn .22s ease-out; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav__item svg { transition: transform .2s; }
.nav__item[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Hero canvas: animated flow */
.canvas__grid { position: relative; grid-template-rows: 1fr 1fr; }
.node { transition: border-color .3s, box-shadow .3s, transform .3s; position: relative; z-index: 1; }
.node.is-pulse { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: translateY(-2px); }
.node.is-pulse .node__meta::after { content: " · processing…"; color: var(--accent); }
:lang(pl) .node.is-pulse .node__meta::after { content: " · przetwarzanie…"; }
.wire { position: absolute; z-index: 0; overflow: hidden; }
.wire--a { left: calc(50% - 18px); width: 36px; top: calc((100% - 28px) / 4); height: 2px; background: var(--path); }
.wire--b { left: calc(75% + 9px); top: calc((100% - 28px) / 2); height: 28px; width: 2px; background: var(--path); }
.wire--c { left: calc(50% - 18px); width: 36px; top: calc((100% - 28px) * 3 / 4 + 28px); height: 2px; background: var(--path); }
.wire::after { content: ""; position: absolute; width: 8px; height: 8px; background: var(--accent); top: -3px; left: -8px; animation: flowX 1.8s linear infinite; }
.wire--b::after { left: -3px; top: -8px; animation: flowY 1.8s linear infinite .6s; }
.wire--c::after { animation: flowXr 1.8s linear infinite 1.2s; left: auto; right: -8px; }
@keyframes flowX { from { left: -8px; } to { left: 100%; } }
@keyframes flowXr { from { right: -8px; } to { right: 100%; } }
@keyframes flowY { from { top: -8px; } to { top: 100%; } }
.live-dot { display: inline-block; width: 6px; height: 6px; background: var(--ok-dot); margin-right: 6px; vertical-align: middle; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* Flowline (API page): packets on the wires */
.flowline__wire { position: relative; overflow: hidden; }
.flowline__wire::after { content: ""; position: absolute; top: -3px; left: -8px; width: 8px; height: 8px; background: var(--accent); animation: flowX 2s linear infinite; }
.flowline__wire + .node + .flowline__wire::after { animation-delay: 1s; }
.flowline__ok, .flowline__err { position: relative; overflow: hidden; }
.flowline__ok::after { content: ""; position: absolute; top: -3px; left: -8px; width: 8px; height: 8px; background: var(--ok-dot); animation: flowX 2s linear infinite 1.6s; }

/* Code blocks: lines appear one by one */
.type-lines > * { opacity: 0; transform: translateX(-6px); transition: opacity .35s ease, transform .35s ease; transition-delay: calc(var(--i, 0) * 110ms); }
.type-lines.is-in > * { opacity: 1; transform: none; }
.c-err, .code .m-del { animation: errPulse 2.4s ease-in-out infinite; }
@keyframes errPulse { 0%, 100% { opacity: 1; } 50% { opacity: .75; } }

/* Hero intro */
.display .w { display: inline-block; opacity: 0; transform: translateY(14px); animation: wordIn .6s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 70ms); }
@keyframes wordIn { to { opacity: 1; transform: none; } }

.tier--hl { animation: hlGlow 3s ease-in-out infinite; }
@keyframes hlGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); } 50% { box-shadow: 0 0 0 6px rgba(79, 70, 229, .10); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .type-lines > *, .display .w { opacity: 1 !important; transform: none !important; }
}

/* ---------- Secondary pages ---------- */
.eyebrow--tr { color: var(--c-tr); } .eyebrow--flow { color: var(--c-flow); } .eyebrow--db { color: var(--c-db); } .eyebrow--app { color: var(--accent); }
.page-hero { padding-top: 40px; }
.narrow { max-width: 860px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 40px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }

.related { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }
.related__links { display: flex; flex-wrap: wrap; gap: 10px; }
.related__links a { border: 1px solid var(--border-strong); padding: 10px 14px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text); transition: border-color .2s, color .2s, transform .2s; }
.related__links a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.vflow { display: flex; flex-direction: column; align-items: stretch; }
.vflow__node { padding: 14px 16px; }
.vflow__wire { position: relative; align-self: center; width: 2px; height: 26px; background: var(--path); overflow: hidden; }
.vflow__wire::after { content: ""; position: absolute; left: -3px; top: -8px; width: 8px; height: 8px; background: var(--accent); animation: flowY 1.6s linear infinite; animation-delay: calc(var(--i) * .4s); }
.vflow__err { margin-top: 18px; font-size: 12px; color: var(--text-2); }

.mini-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.mini-steps li { background: #fff; border: 1px solid var(--border); padding: 14px 16px; display: flex; gap: 14px; align-items: baseline; }
.mini-steps .mono { color: var(--accent); font-size: 12px; }

.icon-cloud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 420px; justify-self: end; margin-left: auto; }
.icon-cloud span { aspect-ratio: 1; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; background: #fff; animation: floaty 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.pill-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--border-strong); font-size: 13px; font-weight: 500; color: var(--text-3); text-decoration: none; transition: border-color .2s, color .2s; }
.pill-link:hover { border-color: var(--text); color: var(--text); }
a.conn { text-decoration: none; color: var(--text); }

.article-steps { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.article-steps li { display: flex; gap: 24px; padding: 0 0 40px 28px; position: relative; }
.article-steps li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: var(--accent); }
.article-steps__n { color: var(--accent); font-size: 13px; padding-top: 3px; }
.article-steps li > div { min-width: 0; flex: 1; }

.text-blocks { display: grid; gap: 32px; }
.text-blocks > div { border-top: 1px solid var(--border); padding-top: 24px; }

.faq details { border-top: 1px solid var(--border); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; }

.aside-list { display: grid; gap: 12px; }
.aside-list > a, .aside-list > div { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border); padding: 16px 18px; text-decoration: none; color: var(--text); transition: border-color .2s; }
.aside-list > a:hover { border-color: var(--accent); }
.mega__groups a.is-current { color: var(--accent); }

/* ---------- Documentation (installation guide) ---------- */
.doc-hero { padding-bottom: 32px; }
.doc-section { padding-top: 40px; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 48px; align-items: start; }
.doc__nav, .doc__toc { position: sticky; top: 96px; font-size: 14px; }
.doc__nav-h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin: 0 0 10px; }
.doc__nav ol, .doc__nav ul, .doc__toc ul { list-style: none; margin: 0; padding: 0; }
.doc__nav ol { counter-reset: docnav; }
.doc__nav ol li { counter-increment: docnav; }
.doc__nav a, .doc__toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--border); color: var(--text-2); text-decoration: none; line-height: 1.35; }
.doc__nav ol a::before { content: counter(docnav, decimal-leading-zero) "  "; font-family: var(--mono); font-size: 11px; color: var(--text-2); opacity: .7; }
.doc__nav a:hover, .doc__toc a:hover { color: var(--accent); border-left-color: var(--accent-line); }
.doc__nav a[aria-current="page"] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; background: var(--accent-soft); }
.doc__body { max-width: 760px; font-size: 16px; line-height: 1.7; color: var(--text-3, #344054); }
.doc__body > *:first-child { margin-top: 0; }
.doc__body h2 { font-size: 26px; line-height: 1.25; margin: 56px 0 16px; color: var(--text, #101828); scroll-margin-top: 96px; }
.doc__body h3 { font-size: 18px; margin: 32px 0 10px; color: var(--text, #101828); scroll-margin-top: 96px; }
.doc__body p, .doc__body ul, .doc__body ol { margin: 0 0 16px; }
.doc__body li { margin-bottom: 6px; }
.doc__body code { font-family: var(--mono); font-size: .86em; background: var(--bg-muted); border: 1px solid var(--border); padding: 1px 5px; overflow-wrap: anywhere; }
.doc__body kbd { font-family: var(--mono); font-size: 12px; border: 1px solid var(--border-strong, #D0D5DD); border-bottom-width: 2px; padding: 1px 6px; background: #fff; }
.doc-lead { font-size: 18px; line-height: 1.6; color: var(--text-2); }
.doc-code { margin: 8px 0 20px; border: 1px solid var(--dark-line, #1D2939); background: var(--dark-2, #101828); }
.doc-code__head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--dark-line, #1D2939); font-family: var(--mono); font-size: 11px; color: #98A2B3; }
.doc-code__copy { font: inherit; color: #D0D5DD; background: transparent; border: 1px solid #344054; padding: 3px 10px; cursor: pointer; }
.doc-code__copy:hover { border-color: #A5B4FC; color: #fff; }
.doc-code pre { margin: 0; padding: 14px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.65; color: #E4E7EC; }
.doc-code pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; }
.doc-note { margin: 8px 0 20px; padding: 14px 18px; border: 1px solid var(--accent-line); border-left-width: 4px; background: var(--accent-soft); font-size: 15px; }
.doc-note p:last-child, .doc-note ul:last-child { margin-bottom: 0; }
.doc-note__t { font-weight: 700; margin-bottom: 4px !important; color: var(--text, #101828); }
.doc-note--warn { border-color: #FEC84B; background: #FFFAEB; }
.doc-note--tip { border-color: #ABEFC6; background: var(--ok-bg); }
.doc-table { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--border); }
.doc-table table { min-width: 560px; font-size: 14px; }
.doc-table th { padding: 10px 14px; }
.doc-table td { padding: 12px 14px; line-height: 1.5; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-steps { list-style: none; padding: 0; counter-reset: dstep; border-top: 1px solid var(--border); }
.doc-steps li { counter-increment: dstep; display: grid; grid-template-columns: 48px 1fr; padding: 14px 0; border-bottom: 1px solid var(--border); margin: 0; }
.doc-steps li::before { content: counter(dstep, decimal-leading-zero); font-family: var(--mono); color: var(--accent); grid-row: span 2; padding-top: 2px; }
.doc-steps a { text-decoration: none; }
.doc-steps span { color: var(--text-2); font-size: 15px; }
.doc-check { list-style: none; padding: 0; }
.doc-check li { position: relative; padding-left: 28px; }
.doc-check li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border: 1.5px solid var(--text-2); border-radius: 3px; }
.doc-arch { display: grid; grid-template-columns: 1fr auto 1.3fr auto 1fr; gap: 12px; align-items: center; margin: 12px 0 16px; padding: 20px; border: 1px solid var(--border); background: var(--bg-muted); font-size: 13px; }
.doc-arch__col { display: flex; flex-direction: column; gap: 8px; }
.doc-arch__col--server { border: 1px dashed var(--accent-line); padding: 12px; background: #fff; }
.doc-arch__k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin: 0 !important; }
.doc-arch__box { border: 1px solid var(--border); background: #fff; padding: 8px 10px; font-weight: 600; color: var(--text, #101828); }
.doc-arch__box span { display: block; font-weight: 400; font-family: var(--mono); font-size: 11px; color: var(--text-2); overflow-wrap: anywhere; }
.doc-arch__box--main { border-color: var(--accent); background: var(--accent-soft); }
.doc-arch__mini { font-family: var(--mono); font-size: 10px; color: var(--text-2); text-align: center; }
.doc-arch__arrow { font-family: var(--mono); font-size: 10px; color: var(--accent); writing-mode: horizontal-tb; text-align: center; max-width: 90px; }
.doc-arch__arrow::after { content: "→"; display: block; font-size: 20px; }
.doc__pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border); }
.doc__pager a { display: flex; flex-direction: column; text-decoration: none; font-weight: 600; padding: 12px 16px; border: 1px solid var(--border); min-width: 200px; }
.doc__pager a:hover { border-color: var(--accent); }
.doc__pager span { font-size: 12px; font-weight: 400; color: var(--text-2); }
.doc__pager-next { text-align: right; margin-left: auto; }
@media (max-width: 1180px) { .doc { grid-template-columns: 200px minmax(0, 1fr); } .doc__toc { display: none; } }
@media (max-width: 820px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc__nav { position: static; border: 1px solid var(--border); padding: 14px; }
  .doc-arch { grid-template-columns: 1fr; }
  .doc-arch__arrow::after { content: "↓"; }
  .doc-arch__arrow { max-width: none; }
  .doc__pager a { min-width: 0; flex: 1; }
}
.doc-table td:first-child code { white-space: nowrap; overflow-wrap: normal; }
