/* ecomm homepage.
   Palette R7 of the ecomm brand: graphite ground, the violet-blue #4E4CF2 for buttons, the mark and the focus
   ring, its lighter steps (#8494FC, #A3B2FD) for highlights and links on graphite. One dark theme.
   Type: Archivo for everything (headings 700, interface 600, text 400, tabular figures); code samples use
   the system monospace. Controls have 12 px corners, like the Merchant Portal.
   The contact dialog, notice, back-to-top and footer keep the class names app.js, contact.js and the
   browser tests rely on. */

/* ---------- theme tokens ---------- */
/* The landing has one theme: graphite. */
:root {
  color-scheme: dark;
  --bg: #1e1f21;                 /* neutral-900 */
  --surface: #26272a;
  --surface-2: #18191b;
  --surface-3: #323336;
  --line: #2e2f32;
  --line-2: #45474a;
  --text: #f3f3f5;               /* neutral-100 */
  --text-2: #c4c5c9;
  --text-3: #c4c5c9;
  --brand: #4e4cf2;              /* brand-600: buttons, white text 5.8:1 */
  --brand-hover: #5f5df6;
  --brand-pressed: #3f3cca;
  --on-brand: #ffffff;
  --accent: #8494fc;             /* brand-400: highlights on graphite, 6.0:1 */
  --accent-2: #a3b2fd;           /* brand-300 */
  --on-accent: #1e1f21;
  --accent-soft: #24264a;
  --accent-glow: rgba(132, 148, 252, .3);
  --link: #a3b2fd;
  --logo: #4e4cf2;               /* the brand ring and the focus ring */
  --hero-accent: #9d9ea2;
  --ok-fg: #bae4c1;  --ok-bg: #1a3424;  --ok: #5cb572;  --on-ok: #1e1f21;
  --bad: #dd766f; --bad-fg: #f6beb8; --bad-bg: #3c1f20; --on-bad: #1e1f21;
  --warn-fg: #faad7b; --warn-bg: #3d2a16; --warn: #e8761a;
  --shadow-1: 0 4px 10px rgb(0 0 0 / .3);
  --shadow-card: 0 24px 48px -28px rgb(0 0 0 / .7);
  --nav-bg: rgba(30, 31, 33, .88);
  --toast-bg: #f3f3f5; --toast-fg: #1e1f21;
  --code-bg: #141517; --code-bar: #1b1c1e; --code-text: #f3f3f5;
  --panel-1: #2b2c30; --panel-2: #141517;
  --top-glow: #25264a;           /* the top of the page: graphite with a touch of the brand violet */
  /* Violet tints as r, g, b for rgb(... / alpha): lavender, violet-blue, violet. */
  --violet-1: 132, 148, 252; --violet-2: 78, 76, 242; --violet-3: 112, 78, 238;
}

:root {
  --font: "Archivo", system-ui, sans-serif;
  --code: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-control: 12px;
  --r-card: 16px;
  /* Type scale of the Merchant Portal design system (even px; display and h1 step up at 768 and 1024 px). The site
     adds one larger step for the first screen only (hero 44/56/72) and sets display, h1 and h2 in the brand's 700. */
  --t-hero: 44px; --t-display: 40px; --t-h1: 28px; --t-h2: 24px; --t-h3: 20px; --t-h4: 18px; --t-h5: 16px;
  --t-large: 18px; --t-medium: 14px; --t-small: 12px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (min-width: 768px) { :root { --t-hero: 56px; --t-display: 48px; --t-h1: 32px; } }
@media (min-width: 1024px) { :root { --t-hero: 72px; --t-display: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0; color: var(--text);
  /* One still gradient from the top into the graphite page: no moving shapes, no grain. */
  background: linear-gradient(180deg, var(--top-glow) 0, var(--bg) min(120vh, 1400px)) no-repeat, var(--bg);
  font: 400 var(--t-h5)/1.6 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .5s, color .5s;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--logo); outline-offset: 3px; border-radius: 6px; }
/* In-page links move focus to their section (landing.js); the section itself shows no ring. */
main section[tabindex="-1"]:focus { outline: none; }

/* ---------- brand: the ecomm wordmark and the ring mark on its tile ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand__mark {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--logo); color: #fff;
}
.brand__mark svg { width: 62%; height: auto; }
/* the ecomm wordmark (white letters, the ring in brand-400 for the graphite page) */
.brand__logo { display: block; height: 20px; width: auto; } /* 16 px of letters and 2 px of margin */
.brand__mark--xs { width: 18px; height: 18px; border-radius: 5px; }

/* ---------- type ---------- */
/* Eyebrow: a short label with a brand dot */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 var(--t-small)/1 var(--font); color: var(--text-2);
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
/* Two tones: the second part of every section title, on its own line, in grey (6.2:1 on graphite). */
.h2__muted { color: var(--hero-accent); }
.h2 { margin-top: 18px; font: 700 var(--t-display)/1.08 var(--font); letter-spacing: -.02em; text-wrap: balance; }

/* ---------- buttons: 12 px corners, like the Merchant Portal ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: var(--r-control);
  font: 600 16px/1 var(--font); white-space: nowrap;
  border: 0; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
  will-change: transform;
}
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--primary:active { background: var(--brand-pressed); }
.btn--secondary { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 0.75px #626466; }
.btn--secondary:hover { background: var(--surface-3); }
.btn--light { background: #fff; color: #1e1f21; }
.btn--outline-light { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 0.75px #626466; }
.btn--outline-light:hover { background: var(--surface-3); }
.btn__arrow { transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-control);
  display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--text-2);
  transition: border-color .2s, color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- nav ---------- */
/* Centred by insets and auto margins rather than the CSS translate property: GSAP animates the header's
   transform, folds a CSS translate into it and writes an inline translate: none, which would override any
   width-specific translate. */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 0; right: 0; margin-inline: auto;
  width: min(1240px, calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 10px 10px 20px; border-radius: 16px;
  border: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.nav.is-solid {
  background: var(--nav-bg); border-color: var(--line);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.nav__links { display: flex; gap: 6px; font: 500 var(--t-medium)/1 var(--font); color: var(--text); }
.nav__links a { padding: 10px 12px; border-radius: 10px; white-space: nowrap; transition: background-color .2s, color .2s; }
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn .i-close, .nav__burger[aria-expanded="true"] .i-menu { display: none; }
.nav__burger[aria-expanded="true"] .i-close { display: block; }
/* The section menu of phones (landing.js opens it); wider screens show the links in the header. */
.nav__burger, .nav__menu-cta { display: none; }


.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.scheme { flex: none; }
.scheme--visa { width: calc(var(--w, 300px) * .2); aspect-ratio: 25 / 8.4; }
.scheme--mc { width: calc(var(--w, 300px) * .17); aspect-ratio: 22.9 / 14.2; }

/* ticker */
.ticker { position: relative; height: 52px; overflow: hidden; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 40%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; width: max-content; height: 100%; align-items: center; }
.tx { display: inline-flex; align-items: center; gap: 12px; padding: 0 28px; font: 400 14px/1 var(--font); color: var(--text-2); border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tx b { color: var(--text); font-weight: 600; }

/* UI Kit status badges */
.st { font: 600 11px/1 var(--font); letter-spacing: .02em; padding: 5px 9px; border-radius: 99px; }
.st--ok { color: var(--ok-fg); background: var(--ok-bg); }
.st--warn { color: var(--warn-fg); background: var(--warn-bg); }

/* ---------- FLOW ---------- */
.flow { position: relative; border-top: 1px solid var(--line); }
.flow__pin { min-height: min(100svh, 4000px); display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 4vh, 48px); padding: 110px 0 60px; }
.flow__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; }
.flow__intro { font-size: var(--t-large); color: var(--text-2); max-width: 44ch; }
.flow__map { position: relative; height: clamp(250px, 34vh, 340px); display: flex; align-items: center; justify-content: space-between; }
.flow__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.track { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 3 7; }
.line { fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; }
.line--return { stroke: var(--ok); }
.track--return { stroke: color-mix(in srgb, var(--ok) 35%, transparent); }

.node { position: relative; z-index: 2; width: clamp(120px, 13vw, 170px); display: grid; justify-items: center; text-align: center; gap: 6px; transition: opacity .4s; }
.node__icon {
  width: 76px; height: 76px; border-radius: 16px; margin-bottom: 8px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .4s;
}
.node__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.node__icon--core { width: 96px; height: 96px; border-radius: 20px; background: var(--logo); border-color: var(--logo); color: #fff; }
.node__icon--core svg.core-mark { width: 60px; height: 60px; stroke: none; }
.node__icon--schemes { grid-auto-flow: row; gap: 8px; background: #fff; }
.node__icon--schemes .scheme--visa { width: 40px; height: auto; stroke: none; }
.node__icon--schemes .scheme--mc { width: 32px; height: auto; stroke: none; }
.node__label { font: 600 var(--t-h4)/1.35 var(--font); letter-spacing: -.005em; }
.node__sub { font: 400 13px/1.2 var(--font); color: var(--text-2); }
.node.is-lit .node__icon { border-color: var(--accent); }
.node__status {
  position: absolute; top: -46px; left: -80px; right: -80px; margin-inline: auto; width: max-content; /* no CSS translate: GSAP animates it */
  white-space: nowrap; padding: 7px 11px; border-radius: 99px;
  font: 600 12px/1 var(--font);
  background: var(--ok-bg); color: var(--ok-fg); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
}
.node__check { position: absolute; top: -8px; right: calc(50% - 50px); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); }
.node__check svg { width: 16px; height: 16px; fill: none; stroke: var(--on-ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.packet { position: absolute; left: 0; top: 0; z-index: 3; width: 38px; height: 24px; border-radius: 5px; background: var(--accent); }
.packet i { position: absolute; left: 6px; top: 7px; width: 8px; height: 7px; border-radius: 2px; background: #c8d2fe; }
.packet--back { width: 14px; height: 14px; border-radius: 50%; background: var(--ok); }

.flow__foot { position: relative; }
.flow__progress { height: 2px; border-radius: 2px; background: var(--line); margin-bottom: 26px; overflow: hidden; }
.flow__progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--ok)); transform-origin: left; transform: scaleX(0); }
.flow__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.flow__steps li { opacity: .4; transition: opacity .5s; }
.flow__steps li.is-active { opacity: 1; }
.flow__steps .num { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 8px; border-radius: 99px; font: 600 12px/1 var(--font); color: var(--text-2); background: var(--surface-3); }
.flow__steps li.is-active .num { color: var(--on-accent); background: var(--accent); }
.flow__steps h3 { margin: 12px 0 6px; font: 600 var(--t-h3)/1.3 var(--font); letter-spacing: -.01em; }
.flow__steps p { font-size: var(--t-medium); color: var(--text-2); line-height: 1.5; }

/* ---------- section leads (products, industries, FAQ) ---------- */
.sec-head__lead { margin-top: 16px; font-size: var(--t-large); color: var(--text-2); }

/* ---------- CTA: the page's one brand-blue panel ---------- */
.cta { padding: 0 0 clamp(80px, 10vw, 140px); }
.cta__panel { position: relative; border-radius: var(--r-card); padding: clamp(56px, 7vw, 96px) clamp(28px, 5vw, 72px); background: var(--brand); color: #fff; }
/* Title on the left, the text and the buttons on the right, like the section heads. */
.cta__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.cta__title { grid-row: span 2; margin: 0; font: 700 var(--t-display)/1.08 var(--font); letter-spacing: -.02em; }
.cta__title span { color: rgba(255, 255, 255, .7); } /* 4:1 on the blue, large text */
.cta__inner > p { margin: 0; max-width: 36ch; color: rgba(255, 255, 255, .88); font-size: var(--t-large); }
.cta .hero__ctas { margin-top: 0; }
.cta__panel .btn--light { background: #fff; color: var(--bg); }
.cta__panel .btn--light:hover { background: #e5e6e8; }
.cta__panel a:focus-visible, .cta__panel button:focus-visible { outline-color: #fff; }
@media (max-width: 899.98px) { .cta__inner { grid-template-columns: 1fr; } .cta__title { grid-row: auto; } }

/* ---------- FOOTER ---------- */
.footer a:hover { color: var(--link); }

/* ---------- initial states (motion only) ---------- */
.motion .node__status, .motion .node__check { visibility: hidden; }
/* Shown by the intro timeline; hidden until then so nothing appears and then blinks away. */
.motion .nav, .motion .ticker { visibility: hidden; }
/* SplitText line masks clip overflow: give descenders room without changing layout. */
[data-cta-title] > div { padding-bottom: .16em; margin-bottom: -.16em; }

/* ---------- responsive ---------- */
@media (max-width: 899.98px) {
  .flow__head { grid-template-columns: 1fr; gap: 18px; }
  .flow__map { height: auto; flex-direction: column; gap: 44px; padding: 20px 0 20px 12px; align-items: flex-start; }
  .node { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 16px; row-gap: 4px; width: 100%; }
  .node__icon { grid-row: span 2; width: 64px; height: 64px; margin: 0; }
  .node__icon--core { width: 64px; height: 64px; border-radius: 18px; }
  .node__icon--core svg.core-mark { width: 44px; height: 44px; }
  .node__label { align-self: end; }
  .node__sub { align-self: start; }
  .node__status { position: static; width: auto; margin: 4px 0 0; grid-column: 2; justify-self: start; }
  .node__check { top: -6px; right: auto; left: 48px; }
  .flow__steps { grid-template-columns: 1fr 1fr; gap: 22px; }
  .flow__progress { display: none; }
  .flow__steps li { opacity: 1; }
}
/* Section links stay in the header down to tablet widths; where they would not fit beside it,
   the header's Get Started gives way (the first screen has its own). */
@media (min-width: 769px) and (max-width: 959.98px) {
  .nav .btn--sm { display: none; }
}
@media (max-width: 768.98px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    padding: 10px; border-radius: 24px; font-size: var(--t-large);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  }
  .nav.is-open .nav__links a { padding: 14px 16px; text-align: left; }
  .nav.is-open .nav__menu-cta { display: inline-flex; justify-content: center; height: 48px; margin-top: 8px; }
}
@media (max-width: 560px) {
  .nav .btn--sm { display: none; }
  .brand__logo { height: 17.5px; }
  .brand__mark:not(.brand__mark--xs) { width: 32px; height: 32px; }
  .flow__steps { grid-template-columns: 1fr; }
}
/* payment methods (marks: Visa/Mastercard from UI Kit; Apple Pay/Google Pay are simple-icons placeholders) */
svg.m { display: block; flex: none; height: auto; --m: 1; }
.m--visa { width: calc(var(--m) * 40px); aspect-ratio: 25 / 8.4; }
.m--mc { width: calc(var(--m) * 30px); aspect-ratio: 22.9 / 14.2; }
.m--apple { width: calc(var(--m) * 44px); aspect-ratio: 24 / 15.365; color: #000; }
.m--gpay { width: calc(var(--m) * 46px); aspect-ratio: 24 / 9.531; color: #3c4043; }

/* Scroll cue at the foot of the first screen (media.css places it) */
.scroll-cue { position: absolute; z-index: 3; left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); bottom: 84px; color: var(--text-2); }
.scroll-cue__inner { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; }
.motion .scroll-cue__inner { animation: cue-in .8s 1.6s both var(--ease-out); }
.scroll-cue__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent); transition: border-color .3s, background-color .3s; }
.scroll-cue svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: cue-bob 1.8s ease-in-out infinite; }
.scroll-cue:hover { color: var(--text); }
.scroll-cue:hover .scroll-cue__icon { border-color: var(--accent); background: var(--accent-soft); }
@keyframes cue-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes cue-bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

/* ===================== site furniture (existing behaviour, UI Kit look) ===================== */

/* Back to top (app.js toggles [hidden]) */
.top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: var(--r-control);
  align-items: center; justify-content: center; background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-card); }
.top[hidden] { display: none; }
.top:not([hidden]) { display: flex; animation: top-in .45s var(--ease-out); }
@keyframes top-in { from { opacity: 0; transform: translateY(14px) scale(.9); } }
.top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top:hover { background: var(--brand-hover); }

/* Cookie information notice (app.js): stays below the contact dialog */
.website-cookie-info { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 45; max-width: 760px; margin: auto;
  display: flex; align-items: center; gap: 24px; padding: 20px; border-radius: 16px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-card); font: var(--t-medium)/1.5 var(--font); }
/* The text takes the free width, so OK stands at the right edge with the same 20 px as the text on the left. */
.website-cookie-info > div { flex: 1; min-width: 0; }
.website-cookie-info p { margin: 4px 0 0; color: var(--text-2); }
.website-cookie-info a { color: var(--link); text-decoration: underline; }
.website-cookie-info button { flex: none; border: 0; border-radius: var(--r-control); background: var(--brand); color: var(--on-brand); font: 600 var(--t-medium)/1 var(--font); padding: 13px 24px; cursor: pointer; }
.website-cookie-info button:hover { background: var(--brand-hover); }

/* Contact dialog (app.js + contact.js) */
.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(0, 0, 0, .45); backdrop-filter: blur(6px); -webkit-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: var(--r-card); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
.modal .close { position: absolute; top: 22px; right: 22px; width: 20px; height: 20px; padding: 6px; box-sizing: content-box; border-radius: var(--r-control); background: var(--surface-2); cursor: pointer; }
.modal .close { filter: invert(1); }
.contact-form-panel { width: 100%; min-width: 0; font: var(--t-medium)/1.45 var(--font); }
.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: 700 var(--t-h1)/1.2 var(--font); letter-spacing: -.01em; color: var(--text); }
.contact-form-panel h2 svg { flex: none; width: 44px; height: 44px; padding: 10px; box-sizing: border-box; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.contact-intro { margin: 0 0 16px; color: var(--text-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); color: var(--text); }
.contact-form-panel label span { font-weight: 400; color: var(--text-2); }
.modal .contact-form-panel input, .modal .contact-form-panel textarea { box-sizing: border-box; display: block; width: 100%; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface-2); color: var(--text); 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(--text-3); }
.modal .contact-form-panel input:focus-visible, .modal .contact-form-panel textarea:focus-visible { outline: 2px solid var(--logo); outline-offset: 2px; background: var(--surface); }
.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: var(--r-control); background: var(--brand); color: var(--on-brand); font: 600 16px/1.2 var(--font); cursor: pointer; }
.modal .contact-form-panel .button:hover:not(:disabled) { background: var(--brand-hover); }
.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(--text-2); }
.contact-fallback { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--text-2); }
.contact-form-panel a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.contact-preview { margin: 0 0 4px; padding: 8px 10px; border-radius: var(--r-control); background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; line-height: 1.4; color: var(--text-2); }
.contact-preview[hidden] { display: none; }
[data-contact-captcha] { margin-top: 14px; min-height: 1px; }
[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 [data-contact-captcha], .contact-verification .contact-privacy { margin: 0; }

/* Footer (legal documents and company details unchanged): no panel, on the page's graphite */
.footer { position: relative; z-index: 2; padding: 70px var(--gutter) 30px; background: transparent; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); color: var(--text-2); font: var(--t-medium)/1.65 var(--font); }
.website-footer-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(160px, .7fr) minmax(220px, .9fr) minmax(0, 1fr); gap: 56px; max-width: var(--wrap); margin: 0 auto; align-items: start; }
.website-footer-grid h2 { margin: 0 0 18px; font: 600 14px/1.4 var(--font); color: var(--text); }
.website-footer-brand .logo { margin-bottom: 18px; }
.website-footer-grid p { margin: 0 0 14px; overflow-wrap: break-word; }
.website-footer-email, .website-footer-docs { color: var(--link); font-weight: 500; }
.website-footer-email { display: block; width: fit-content; }
.website-footer-docs { display: block; width: fit-content; margin-top: 10px; }
.website-footer-documents a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 7px 0; color: var(--text); }
.website-footer-documents a span { font-size: 11px; white-space: nowrap; color: var(--text-3); }
.website-footer-documents a:hover, .website-footer-email:hover, .website-footer-docs:hover { color: var(--link); text-decoration: underline; }
.website-footer-bottom { max-width: var(--wrap); margin: 50px auto 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

@media (max-width: 1000px) {
  .website-footer-grid { gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(200px, 1fr); }
  .website-footer-company { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .website-cookie-info { left: 12px; right: 12px; bottom: 12px; padding: 16px; gap: 12px; font-size: 14px; }
  /* 88px at the bottom keeps the last line clear of the floating back-to-top button */
  .footer { padding: 40px 24px 88px; }
  .website-footer-grid { display: flex; flex-direction: column; gap: 32px; }
  .website-footer-grid > div, .website-footer-grid > nav { width: 100%; }
  .website-footer-bottom { margin-top: 24px; }
}
@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; }
}

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

/* Stand: footer "Explore" column */
.website-footer-explore a { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 0; color: var(--text); }
.website-footer-explore a span { font-size: 11px; color: var(--text-3); }
.website-footer-explore a:hover { color: var(--link); text-decoration: underline; }
@media (max-width: 1000px) { .website-footer-explore { order: 2; } }

/* A section whose motion failed to start shows its content statically (landing.js marks it); this outranks the
   hidden initial states and any inline styles the failed setup left behind. */
.motion [data-motion-failed], .motion [data-motion-failed] * { visibility: visible !important; opacity: 1 !important; }
