/* The ecomm homepage in the "Glass and platform" direction: a light page, big inset panels on the calm brand-blue
   tint, the real Merchant Portal screens as the hero material, a few frosted-glass cards over them, one dark strip
   for developers and the giant wordmark at the end. Archivo only.
   Motion is opt-in (html.motion, set by boot.js); without it every block shows its complete final state. */
:root {
  --font: "Archivo", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --blue: #4e4cf2; --blue-h: #5f5df6; --blue-p: #3f3cca;
  --lav: #8494fc; --lav-2: #a3b2fd; --lav-3: #c4c9ff;
  --ink: #15161a; --ink-2: #5b5e66; --ink-3: #8a8d96;
  --line: rgba(21, 22, 26, .09); --line-2: rgba(21, 22, 26, .15);
  --tint-1: #f4f5ff; --tint-2: #e9ebff; --tint-3: #d5daff;
  --p-line: #e6e8ef; --p-ink-2: #6b6e77;
  --ok: #1f7a3a; --ok-bg: #e6f5ea; --bad: #b4372d; --bad-bg: #fbe9e7; --info: #3f3cca; --info-bg: #ecebff;
  --warn: #8a5300; --warn-bg: #fcf0d9; --mute-bg: #f0f1f5; --sbx: #7a4e00; --sbx-bg: #fbf0d5;
  --night: #0e0f13; --night-line: rgba(255, 255, 255, .09); --night-ink: #f3f3f6; --night-ink-2: #a7a9b4;
  --gut: clamp(16px, 3.4vw, 56px); --edge: clamp(8px, 1.1vw, 16px); --max: 1200px; --head-h: 72px;
  --r-panel: clamp(24px, 2.6vw, 40px); --r-frame: 24px;
  --sec-y: clamp(72px, 7.6vw, 116px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --brand-tile: var(--blue);
}
@media (max-width: 767.98px) { :root { --head-h: 60px; --r-frame: 18px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 400 16px/1.5 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, h4, p, ol, ul, figure, dl, dd, blockquote { margin: 0; }
ol, ul { list-style: none; padding: 0; }
em { font-style: normal; }
code { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--blue); color: #fff; }
.skip:focus { top: 12px; }
.wrap { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px;
  border-radius: 999px; font: 600 15px/1 var(--font); letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .2s, box-shadow .2s, color .2s;
}
.btn--pri { background: var(--blue); color: #fff; }
.btn--pri:hover { background: var(--blue-h); }
.btn--pri:active { background: var(--blue-p); }
.btn--sec { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--sec:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* plus / minus of the accordions: the vertical stroke folds away when open */
.pm { position: relative; flex: none; width: 18px; height: 18px; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 8.25px; width: 18px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform .35s var(--ease); }
.pm::after { transform: rotate(90deg); }
[aria-expanded="true"] .pm::after, details[open] .pm::after { transform: rotate(90deg) scaleX(0); }

/* ---------- header ---------- */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.hd__row { display: flex; align-items: center; gap: 28px; height: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.hd__logo { flex: none; }
.wm { width: 116px; height: 20px; fill: var(--ink); color: var(--blue); }
.hd__nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.hd__nav a { padding: 8px 11px; border-radius: 8px; font: 500 14px/1 var(--font); color: var(--ink-2); transition: color .2s; }
.hd__nav a:hover { color: var(--ink); }
.hd__menu-act { display: none; }
.hd__act { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hd__login { padding: 8px 12px; font: 500 14px/1 var(--font); }
.hd__login:hover { color: var(--blue); }
.hd__contact { display: none; }
.hd__burger { display: none; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
.hd__burger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.hd__burger-x { display: none; }
@media (max-width: 1023.98px) {
  .hd__nav { display: none; }
  .hd__burger { display: grid; }
  .hd.is-open { background: #fff; border-bottom-color: var(--line); }
  .hd.is-open .hd__nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    position: absolute; top: var(--head-h); left: 0; right: 0; padding: 4px var(--gut) 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(21, 22, 26, .35);
  }
  .hd.is-open .hd__nav > a { padding: 15px 0; border-radius: 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .hd.is-open .hd__burger-m { display: none; }
  .hd.is-open .hd__burger-x { display: block; }
}
@media (max-width: 767.98px) {
  .hd__row { gap: 12px; }
  .hd__login, .hd__start { display: none; }
  .hd__contact { display: inline-flex; }
  .hd__act { gap: 4px; }
  .wm { width: 100px; height: 17px; }
  .hd.is-open .hd__menu-act { display: flex; gap: 10px; padding-top: 18px; }
  .hd.is-open .hd__menu-act .btn { flex: 1; }
}

/* ---------- the portal screen (sizes in em, so a screen scales as one picture) ---------- */
.chip { display: inline-flex; align-items: center; gap: .45em; flex: none; height: 2.5em; padding: 0 .85em; border: 1px solid var(--p-line); border-radius: .6em; color: var(--p-ink-2); font-weight: 500; white-space: nowrap; background: #fff; }
.mk { display: inline-grid; place-items: center; flex: none; width: 2.4em; height: 1.6em; border: 1px solid var(--p-line); border-radius: .32em; background: #fff; color: var(--ink); }
.mk svg { width: 78%; height: 72%; }

/* ---------- 2 · why (variant 1: expanding rows) ---------- */
@media (max-width: 767.98px) {
  .pm::before, .pm::after { width: 16px; }
}

/* ---------- 5 · risk window ---------- */
.v { justify-self: start; padding: 4px 8px; border-radius: 6px; font-weight: 700; font-size: 11.5px; letter-spacing: .03em; }

/* ---------- 6 · developers (the one dark strip) ---------- */
.code { position: relative; overflow: hidden; border-radius: 20px; background: #16171d; box-shadow: 0 0 0 1px var(--night-line), 0 40px 80px -40px rgba(0, 0, 0, .7), 0 0 80px -20px rgba(78, 76, 242, .25); }
.code__bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--night-line); }
.code__dots { display: flex; gap: 6px; flex: none; }
.code__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.code__tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.code__tab { flex: none; padding: 8px 12px; border-radius: 8px; font: 500 13px/1 var(--font); color: var(--night-ink-2); transition: color .2s, background-color .2s; }
.code__tab:hover { color: #fff; }
.code__tab[aria-selected="true"] { background: rgba(255, 255, 255, .08); color: #fff; }
.code__pane { min-height: 430px; padding: 18px 22px 20px; overflow-x: auto; }
.code__pane:focus-visible { outline-offset: -3px; }
.code__req { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 13px/1.4 var(--mono); color: #e3e5ef; }
.code__req b { color: var(--lav-2); font-weight: 500; }
.code__req em { margin-left: auto; padding: 4px 9px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--night-ink-2); font: 500 12px/1 var(--font); }
.code__pre { margin: 0; font: 13px/1.7 var(--mono); color: #d9dbe3; white-space: pre; }
.code__pre--res { color: #d9dbe3; }
.ln { display: block; }
.code__resh { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; padding-top: 14px; border-top: 1px dashed var(--night-line); font: 12.5px/1.4 var(--mono); color: var(--night-ink-2); }
.code__resh b { color: #7ee2a8; font-weight: 500; }
.c { color: #fff; font-weight: 600; } .f { color: #8a8d9b; } .m { color: var(--lav-2); } .u { color: #e8e9f0; } .p { color: #6f7280; }
.s { color: #c9d0ff; } .h { color: var(--lav-2); } .v { color: var(--lav); } .k { color: #9ea9fb; } .n { color: #f6c98a; } .x { color: #6f7280; }
.code .v { padding: 0; border-radius: 0; background: none; font: inherit; letter-spacing: 0; }
.code__status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 22px; border-top: 1px solid var(--night-line); font-size: 12.5px; color: var(--night-ink-2); }
.code__status code { font-family: var(--mono); color: #d9dbe3; }
.code__status a { color: var(--lav-2); }
.code__status a:hover { color: #fff; }
.code__mode { display: flex; align-items: center; gap: 7px; color: #f2d28f; }
.code__mode i { width: 7px; height: 7px; border-radius: 50%; background: #f2d28f; }
/* the request types itself once, then the phone rises (home.js adds .is-typing) */
@keyframes ln-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.motion .code__pane[data-type] .ln, .motion .code__pane[data-type] .code__resh { clip-path: inset(0 100% 0 0); }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.motion .is-enter { animation: pane-in .38s var(--ease) both; }
@media (max-width: 767.98px) {
  .code__pane { min-height: 0; padding: 14px 16px 18px; }
  .code__pre { font-size: 12px; }
  .code__status { padding: 10px 16px; }
  .code__status { display: none; }
}

/* ---------- 10 · closing ---------- */
.close { padding: 0 var(--edge) var(--edge); }

/* ---------- footer ---------- */
.ft { padding: 64px 0 40px; font-size: 14px; color: var(--ink-2); }
.ft__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.ft__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ft__logo { margin-bottom: 10px; }
.ft__mail, .ft__docs { color: var(--ink); font-weight: 500; }
.ft__mail:hover, .ft__docs:hover { color: var(--blue); }
.ft__grp summary { display: flex; justify-content: space-between; align-items: center; list-style: none; }
.ft__grp summary::-webkit-details-marker { display: none; }
.ft__grp h2 { margin-bottom: 14px; font: 600 14px/1.4 var(--font); color: var(--ink); }
.ft__grp .pm { display: none; }
.ft__links { display: flex; flex-direction: column; gap: 10px; }
.ft__links a:hover { color: var(--ink); }
.ft__links small { font-size: 11px; color: var(--ink-3); }
.ft__docsl a { display: flex; justify-content: space-between; gap: 16px; }
.ft__co { gap: 0; }
.ft__co p { line-height: 1.6; }
.ft__co p + p { margin-top: 10px; }
.ft__bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
@media (max-width: 1023.98px) { .ft__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 767.98px) {
  .ft { padding: 40px 0 32px; }
  .ft__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ft__brand { padding-bottom: 24px; }
  .ft__grp { border-top: 1px solid var(--line-2); }
  .ft__grp:last-child { border-bottom: 1px solid var(--line-2); }
  .ft__grp summary { padding: 16px 0; cursor: pointer; }
  .ft__grp h2 { margin: 0; font-size: 15px; }
  .ft__grp .pm { display: block; width: 14px; height: 14px; color: var(--ink); }
  .ft__grp .pm::before, .ft__grp .pm::after { width: 14px; top: 6.25px; }
  .ft__links { padding-bottom: 18px; }
  .ft__bottom { margin-top: 24px; padding-top: 0; border-top: 0; }
}

/* ---------- 1b · hero, variant 2 (review) ---------- */
/* the header sits inside the dark panel while the panel is under it (home.js toggles .is-dark) */
.hd.is-night:not(.is-open) { background: rgba(14, 15, 19, .72); border-bottom-color: rgba(255, 255, 255, .08); color: #fff; }
.hd.is-night:not(.is-open) .wm { fill: #fff; color: var(--lav-2); }
.hd.is-night:not(.is-open) .hd__nav a, .hd.is-night:not(.is-open) .hd__login { color: rgba(255, 255, 255, .74); }
.hd.is-night:not(.is-open) .hd__nav a:hover, .hd.is-night:not(.is-open) .hd__login:hover { color: #fff; }
.hd.is-night:not(.is-open) .hd__contact:not(.btn--pri) { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.hd__row { transition: transform .3s var(--ease); }

/* ---------- motion: blocks entering the viewport ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- site furniture: contact dialog and cookie notice (UK; app.js + contact.js) ---------- */
.website-cookie-info { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 45; display: flex; align-items: center; gap: 24px; max-width: 760px; margin: auto; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -24px rgba(36, 38, 120, .4); font-size: 14px; line-height: 1.5; }
.website-cookie-info > div { flex: 1; min-width: 0; }
.website-cookie-info p { margin: 4px 0 0; color: var(--ink-2); }
.website-cookie-info a { color: var(--blue); text-decoration: underline; }
.website-cookie-info button { flex: none; padding: 12px 22px; border-radius: 999px; background: var(--blue); color: #fff; font: 600 14px/1 var(--font); }
.website-cookie-info button:hover { background: var(--blue-h); }
.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; height: 100dvh; padding: 24px; }
.modal .overlay { position: absolute; inset: 0; background: rgba(21, 22, 40, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal .modal-wrapper { position: relative; width: 520px; max-width: 100%; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 28px 32px 24px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(21, 22, 60, .45); }
.modal .close { position: absolute; top: 22px; right: 22px; width: 20px; height: 20px; padding: 6px; box-sizing: content-box; border-radius: 10px; background: #f1f2f6; cursor: pointer; }
.contact-form-panel { width: 100%; min-width: 0; font-size: 14px; line-height: 1.45; }
.modal-wrapper #website-contact { max-width: none; margin: 0; text-align: left; }
.contact-form-panel h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font: 600 26px/1.2 var(--font); letter-spacing: -.02em; }
.contact-form-panel h2 svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--tint-2); color: var(--blue); }
.contact-intro { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-fields > div { min-width: 0; }
.contact-form-panel label { display: block; margin: 12px 0 6px; font: 600 13px/1.3 var(--font); }
.contact-form-panel label span { font-weight: 400; color: var(--ink-2); }
.modal .contact-form-panel input, .modal .contact-form-panel textarea { display: block; width: 100%; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #fafbff; color: var(--ink); font: 14px/1.45 var(--font); }
.modal .contact-form-panel textarea { resize: vertical; min-height: 88px; max-height: 180px; }
.contact-form-panel input::placeholder, .contact-form-panel textarea::placeholder { color: var(--ink-3); }
.modal .contact-form-panel input:focus-visible, .modal .contact-form-panel textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; background: #fff; }
.modal .contact-form-panel .button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 16px 0 0; padding: 10px 24px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: 600 15px/1.2 var(--font); cursor: pointer; }
.modal .contact-form-panel .button:hover:not(:disabled) { background: var(--blue-h); }
.modal .contact-form-panel .button:disabled { opacity: .5; cursor: not-allowed; }
.contact-privacy { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.contact-fallback { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--ink-2); }
.contact-form-panel a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.contact-preview { margin: 0 0 4px; padding: 8px 10px; border-radius: 10px; background: #f5f6fa; border: 1px solid var(--line); font-size: 12px; line-height: 1.4; color: var(--ink-2); }
[data-contact-result] { margin: 10px 0 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
[data-contact-result]:empty { display: none; }
.contact-verification { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; text-align: center; }
.contact-verification .contact-privacy { margin: 0; }
.contact-check { display: grid; gap: 6px; width: 100%; text-align: left; }
.contact-check__track { height: 3px; overflow: hidden; border-radius: 2px; background: var(--tint-2); }
.contact-check__fill { display: block; width: 100%; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s linear; }
.contact-check__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.contact-check[data-state="failed"] .contact-check__text { color: var(--bad); }
.modal .contact-form-panel .contact-check__retry { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) { .website-cookie-info { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; gap: 12px; } }
@media (max-width: 480px) { .modal { padding: 16px; } .modal .modal-wrapper { padding: 24px; max-height: calc(100dvh - 32px); border-radius: 20px; } .contact-fields { grid-template-columns: 1fr; gap: 0; } }
