/* b2apayments.com: polished fintech. Lavender white, an indigo-to-violet hero, white cards, an apricot spark. */
:root {
  --bg: #f5f3ff;
  --ink: #17123b;
  --body: #474269;
  --muted: #5c5780;
  --line: #e2dcf9;
  --tint: #eeeaff;
  --indigo: #4b2fe3;
  --violet: #7c3cf0;
  --apricot: #ffb38a;
  --rose: #c4274f;
  --pad: clamp(20px, 5vw, 40px);
  --gut: clamp(8px, 1.6vw, 24px);
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(23, 18, 59, 0.05), 0 16px 40px -18px rgba(58, 38, 201, 0.28);
}
body {
  color: var(--body);
  font: 500 1rem/1.6 var(--sans);
  background: var(--bg);
}
h1, h2, h3, p, ol, ul, dl, dd, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -0.03em; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--pad); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { flex: none; width: 30px; height: 30px; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(23, 18, 59, 0.06);
  transition: border-color 0.15s, color 0.15s;
}
.nav__cta:hover { color: var(--indigo); border-color: var(--indigo); }

/* Hero panel */
.hero__panel {
  position: relative;
  overflow: hidden;
  margin-inline: var(--gut);
  padding: clamp(44px, 7vw, 92px) 20px clamp(170px, 21vw, 280px);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(60% 55% at 92% 0%, rgba(255, 164, 120, 0.42), transparent 70%),
    radial-gradient(55% 70% at 0% 100%, rgba(160, 96, 255, 0.55), transparent 70%),
    linear-gradient(140deg, #24158f 0%, #4229d6 46%, #7b3cf0 100%);
  border-radius: clamp(24px, 3vw, 40px);
}
.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(75% 70% at 50% 0%, #000 25%, transparent 78%);
}
.hero__in { position: relative; max-width: 980px; margin-inline: auto; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
}
.pill i { width: 8px; height: 8px; background: var(--apricot); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 179, 138, 0.28); }
.name {
  margin-top: 22px;
  color: #fff;
  /* Two lines on phones ("B2A" over "Payments.com"), one line from 640px. */
  font-size: clamp(2rem, calc((100vw - 2 * var(--gut) - 40px) / 7.15), 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.name span { display: block; }
.name b { font-weight: 800; color: var(--apricot); }
.pitch {
  max-width: 30em;
  margin: 20px auto 0;
  font-size: clamp(1.0625rem, 2.1vw, 1.3125rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  font-weight: 700;
  text-decoration: none;
  color: #2a1247;
  background: linear-gradient(180deg, #ffc9a8, #ffa57a);
  border-radius: 14px;
  box-shadow: 0 12px 26px -12px rgba(255, 150, 104, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .pill:focus-visible { outline-color: #fff; }
.btn--ghost { color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.4); box-shadow: none; }
.hint { margin-top: 16px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.8); }

/* Mockup: two product cards that sit across the bottom edge of the panel. */
.mock {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: calc(-1 * clamp(134px, 17vw, 226px));
  padding-inline: calc(var(--gut) + 14px);
  animation: rise 0.6s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}
.code, .dash { min-width: 0; border-radius: 20px; }
.code {
  overflow: hidden;
  color: #d9d4f5;
  background: #120d33;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -28px rgba(18, 10, 80, 0.8);
}
.code__bar { display: flex; align-items: center; gap: 6px; padding: 13px 16px; font-size: 0.75rem; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.code__bar i { width: 9px; height: 9px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; }
.code__bar span { margin-left: 8px; padding: 4px 10px; color: #9d96c9; border-radius: 8px; }
.code__bar .is-on { color: #fff; background: rgba(255, 255, 255, 0.1); }
.code__pre { padding: 16px 16px 18px; overflow: hidden; font: 400 0.75rem/1.75 var(--mono); }
.code__pre b { margin-right: 4px; padding: 2px 7px; font-weight: 500; color: #2a1247; background: var(--apricot); border-radius: 6px; }
.code__pre i { font-style: normal; color: #b4a4ff; }
.code__pre em { font-style: normal; color: #ffc6a3; }
.code__pre u { text-decoration: none; color: #fff; }
.code__res { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; font: 400 0.75rem var(--mono); color: #9d96c9; background: rgba(255, 255, 255, 0.05); border-top: 1px solid rgba(255, 255, 255, 0.09); }
.code__ok { padding: 3px 9px; font-weight: 500; color: #fff; background: var(--indigo); border-radius: 999px; }

.dash { padding: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(40, 24, 150, 0.55); }
.dash__top { display: flex; align-items: center; gap: 4px; padding-bottom: 14px; font-size: 0.8125rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.dash__brand { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 800; letter-spacing: -0.02em; }
.dash__brand i { width: 18px; height: 18px; background: linear-gradient(135deg, var(--indigo), var(--violet)); border-radius: 6px; }
.dash__tab { display: none; padding: 5px 10px; color: var(--muted); border-radius: 8px; }
.dash__tab.is-on { display: block; color: var(--indigo); background: var(--tint); }
.dash__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 6px; }
.dash__title b { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em; }
.dash__title span { padding: 4px 10px; font-size: 0.75rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; }
.rows li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding-block: 11px; border-bottom: 1px solid #efebfb; }
.rows li:last-child { border-bottom: 0; }
.rows p { display: grid; gap: 1px; min-width: 0; }
.rows b { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; }
.rows span { font-size: 0.8125rem; line-height: 1.35; color: var(--muted); }
.av { display: grid; place-items: center; width: 38px; height: 38px; font-style: normal; font-weight: 800; color: var(--indigo); background: #e9e4ff; border-radius: 12px; }
.av--2 { color: #9a4313; background: #ffe7d8; }
.av--3 { color: #6a2bc4; background: #f1e3ff; }
.av--4 { color: #2147a8; background: #e2ecff; }
.amt { justify-items: end; text-align: right; font-variant-numeric: tabular-nums; }
.rows .st { padding: 2px 8px; font-size: 0.6875rem; font-weight: 700; color: #3a26c9; background: var(--tint); border-radius: 999px; }
.rows .st--hold { color: #94400f; background: #ffeadb; }
.dash__flag { display: flex; gap: 10px; margin-top: 6px; padding: 12px 14px; font-size: 0.8125rem; line-height: 1.45; color: #6b3410; background: #fff4ec; border: 1px solid #ffdcc5; border-radius: 12px; }
.dash__flag svg { flex: none; margin-top: 1px; color: #c9601f; }

.mock__note { display: grid; justify-items: center; gap: 10px; margin-top: 22px; text-align: center; }
.mock__note p:last-child { max-width: 46em; font-size: 0.8125rem; line-height: 1.55; color: var(--muted); }
.tag { padding: 4px 12px; font-size: 0.75rem; font-weight: 700; color: var(--indigo); background: #fff; border: 1px solid var(--line); border-radius: 999px; }

/* Sections */
.sect { padding-top: clamp(64px, 10vw, 128px); }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 700; color: var(--indigo); }
.kicker::before { content: ""; width: 22px; height: 4px; background: var(--apricot); border-radius: 4px; }
h2 { margin-top: 12px; font-size: clamp(1.875rem, 4.4vw, 2.875rem); line-height: 1.08; }

.cases { display: grid; gap: 16px; margin-top: clamp(26px, 4vw, 44px); }
.cases li { padding: 26px 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.cases__n {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  border-radius: 14px;
  box-shadow: 0 10px 20px -10px rgba(75, 47, 227, 0.8);
}
.cases li:nth-child(2) .cases__n { color: #2a1247; background: linear-gradient(135deg, #ffcfb0, #ff9f72); box-shadow: 0 10px 20px -10px rgba(255, 150, 104, 0.9); }
.cases li:nth-child(3) .cases__n { color: var(--apricot); background: var(--ink); box-shadow: 0 10px 20px -10px rgba(23, 18, 59, 0.7); }
.cases h3 { margin-top: 20px; font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.02em; }
.cases p { margin-top: 8px; }

.why { display: grid; gap: 30px; }
.anatomy { display: flex; margin-top: 26px; font-size: clamp(1.125rem, 5vw, 1.625rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.anatomy span { padding: 12px clamp(10px, 3vw, 18px); background: #fff; border: 1px solid var(--line); border-left-width: 0; }
.anatomy span:first-child { color: #fff; background: linear-gradient(135deg, var(--indigo), var(--violet)); border: 0; border-radius: 14px 0 0 14px; }
.anatomy span:last-child { color: #94400f; background: #ffeadb; border-color: #ffdcc5; border-radius: 0 14px 14px 0; }
.why__count { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }
.b2a { display: flex; align-items: center; max-width: 25rem; margin-top: 30px; font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.b2a__node { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.b2a__node svg { color: var(--indigo); }
.b2a__node--a svg { color: #f08a55; }
.b2a__line { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #b7acee 0 6px, transparent 6px 12px); }
.b2a__line i { position: absolute; top: -5px; left: 0; width: 12px; height: 12px; background: var(--apricot); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(240, 138, 85, 0.6); animation: pay 3.2s 0.6s cubic-bezier(0.6, 0, 0.3, 1) infinite alternate; }
@keyframes pay {
  to { left: calc(100% - 12px); }
}
.why__list { padding: 6px 24px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.why__list div { display: grid; gap: 4px; padding-block: 20px; border-bottom: 1px solid #efebfb; }
.why__list div:last-child { border-bottom: 0; }
.why__list dt { font-size: 0.8125rem; font-weight: 700; color: var(--indigo); }
.why__list dd { font-size: 1.0625rem; line-height: 1.5; color: var(--ink); }

/* Offer */
.offer {
  padding: clamp(64px, 10vw, 128px) var(--pad) clamp(40px, 6vw, 72px);
  background: radial-gradient(70% 90% at 50% 100%, #e3dbff, transparent 75%);
}
.offer__card { max-width: 620px; margin-inline: auto; padding: clamp(24px, 5vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 1px 2px rgba(23, 18, 59, 0.05), 0 40px 80px -40px rgba(58, 38, 201, 0.45); }
.offer__head { text-align: center; }
.offer__head h2 { margin-top: 0; }
.offer__head p { max-width: 26em; margin: 12px auto 0; }
.offer-form {
  --offer-fg: var(--ink);
  --offer-muted: var(--muted);
  --offer-field-bg: #faf9ff;
  --offer-border: #bdb3ea;
  --offer-accent: var(--indigo);
  --offer-accent-fg: #fff;
  --offer-error: var(--rose);
  --offer-radius: 13px;
  --offer-gap: 18px;
  margin-top: 28px;
}
.offer-label { font-weight: 700; }
.offer-input { border-width: 1.5px; transition: border-color 0.15s, box-shadow 0.15s; }
.offer-input:hover { border-color: #9d90e0; }
.offer-input:focus-visible { outline: 0; background: #fff; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(75, 47, 227, 0.18); }
.offer-input[aria-invalid="true"] { background: #fff6f8; border-color: var(--rose); }
.offer-input[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 4px rgba(196, 39, 79, 0.16); }
.offer-amount__prefix { font-weight: 700; color: var(--ink); }
.offer-error { font-weight: 700; }
.offer-error--form { padding: 12px 14px; background: #fff0f3; border: 1px solid #f6c5d1; border-radius: 12px; }
.offer-submit, .offer-bin__btn { transition: transform 0.15s, box-shadow 0.15s; }
.offer-submit {
  min-height: 56px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  box-shadow: 0 16px 30px -16px rgba(75, 47, 227, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.offer-submit:hover, .offer-bin__btn:hover { transform: translateY(-1px); }
.offer-submit[disabled] { transform: none; box-shadow: none; }
.offer-bin { padding: 16px 18px; background: var(--tint); border-color: #d6cff5; }
.offer-bin__label { font-weight: 700; color: var(--indigo); }
.offer-bin__price { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
.offer-bin__btn { color: #2a1247; background: linear-gradient(180deg, #ffc9a8, #ffa57a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.offer-or { font-weight: 700; }
.offer-fineprint { text-align: center; }
.offer-success { padding: 12px 0 4px; text-align: center; }
.offer-success::before {
  content: "";
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  /* A check mark drawn with two gradients, so no icon font or character is needed. */
  background:
    linear-gradient(#fff, #fff) 22px 35px / 21px 4px no-repeat,
    linear-gradient(#fff, #fff) 22px 26px / 4px 13px no-repeat,
    linear-gradient(135deg, var(--indigo), var(--violet));
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--tint);
  transform: rotate(-45deg);
}
.offer-success__title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
.offer-success__body strong { font-weight: 700; color: var(--ink); }

.foot { display: grid; gap: 10px; padding-block: 32px 44px; font-size: 0.8125rem; line-height: 1.55; color: var(--muted); }
.foot__disc { max-width: 62em; }

@media (min-width: 420px) {
  .code__pre, .code__res { font-size: 0.8125rem; }
  .dash { padding: 20px; }
}
@media (min-width: 640px) {
  .name { font-size: clamp(3rem, calc((100vw - 2 * var(--gut) - 40px) / 9.2), 6.5rem); }
  .name span { display: inline; }
  .dash__tab { display: block; }
  .cases { grid-template-columns: repeat(3, 1fr); }
  .cases li { padding: 28px 26px 32px; }
}
@media (min-width: 900px) {
  .mock { grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; padding-inline: calc(var(--pad) + 28px); }
  .code { margin-top: 34px; }
  .code__pre { padding: 20px 22px 22px; line-height: 1.85; }
  .code__bar, .code__res { padding-inline: 22px; }
  .dash { padding: 22px 24px; }
  .why { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
  .why__list { padding-inline: 32px; }
  .why__list div { grid-template-columns: 10.5rem 1fr; gap: 20px; align-items: baseline; }
}
