/* ═══════════════════════════════════════════════════════════════
   DeltraPay — marketing site
   Design system: design-system/deltrapay/MASTER.md
   Style: Modern Dark · Variance 6 · Motion 5 · Density 4
   Brand hues taken from the live portal (cyan #06b6c4 / violet #8900ff)
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ───────────────────────────────────────────────────── */
:root {
  /* brand */
  --brand:            #06b6c4;
  --brand-bright:     #22d3ee;
  --brand-deep:       #0897a3;
  --violet:           #8900ff;
  --violet-soft:      #c084fc;

  /* dark theme (default) */
  --bg:               #08090d;
  --bg-elev:          #0e1016;
  --bg-card:          #101319;
  --bg-inset:         #0b0d12;
  --fg:               #eef1f6;
  --fg-muted:         #a6aebc;   /* ≥4.5:1 on --bg and --bg-card */
  --fg-dim:           #7c8598;   /* smallest supporting text — still ≥4.5:1 */
  --border:           #1e222c;
  --border-strong:    #2a303c;
  --ring:             var(--brand-bright);

  --code-bg:          #0a0c11;
  --code-key:         #22d3ee;
  --code-str:         #7dd3a0;
  --code-prop:        #c084fc;
  --code-comment:     #5a6474;

  --live:             #4ade80;
  --soon:             #fbbf24;

  /* spacing — density 4 (standard) */
  --space-xs: 8px;  --space-sm: 12px; --space-md: 16px;
  --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px;

  --radius-sm: 8px; --radius: 14px; --radius-lg: 20px; --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lift: 0 2px 6px rgba(0,0,0,.4), 0 24px 56px -20px rgba(0,0,0,.7);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.16,1,.3,1);
  --wrap: 1200px;
}

[data-theme="light"] {
  --bg:            #ffffff;
  --bg-elev:       #f7f8fa;
  --bg-card:       #ffffff;
  --bg-inset:      #f2f4f7;
  --fg:            #0b0e14;
  --fg-muted:      #4d5765;
  --fg-dim:        #66707d;   /* ≥4.5:1 on white and on --bg-elev */
  --border:        #e3e7ed;
  --border-strong: #cfd5de;
  --ring:          var(--brand-deep);

  --code-bg:       #0a0c11;   /* code stays dark in both themes */
  --live:          #16a34a;
  --soon:          #b45309;

  --shadow-card: 0 1px 2px rgba(16,24,40,.06), 0 12px 28px -12px rgba(16,24,40,.16);
  --shadow-lift: 0 2px 6px rgba(16,24,40,.08), 0 24px 48px -18px rgba(16,24,40,.2);
}

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.022em; margin: 0; }
p { margin: 0; }
a { color: inherit; }

code, pre { font-family: var(--mono); }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #04272e; font-weight: 700;
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor;
        stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Type scale ───────────────────────────────────────────────── */
.h2 {
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -.03em;
}
.lede { color: var(--fg-muted); font-size: 1.0625rem; }
.lede + .lede { margin-top: var(--space-md); }

.grad {
  background: linear-gradient(100deg, var(--brand-bright) 0%, var(--violet-soft) 55%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
[data-theme="light"] .grad {
  background: linear-gradient(100deg, var(--brand-deep) 0%, #7c3aed 60%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--fg-muted);
  margin-bottom: var(--space-md);
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-bright) 18%, transparent);
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-pill);
  font-size: .9375rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  min-height: 44px;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 1rem; min-height: 52px; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  color: #04272e;
  box-shadow: 0 6px 22px -8px color-mix(in srgb, var(--brand) 70%, transparent);
}
.btn--primary:hover { transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn--primary:active { transform: translateY(0) scale(.985); }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--bg-elev); border-color: var(--brand); color: var(--fg); }

.btn .icon { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

/* ── Nav ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--border); }

.nav__inner { display: flex; align-items: center; gap: var(--space-lg); height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800;
         letter-spacing: -.02em; font-size: 1.0625rem; flex-shrink: 0; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; }
.brand__word--accent { color: var(--brand); }

.nav__links { display: flex; gap: var(--space-lg); margin-left: auto; }
.nav__links a {
  text-decoration: none; color: var(--fg-muted); font-size: .9375rem; font-weight: 500;
  padding: 6px 0; position: relative; transition: color .18s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--brand); border-radius: 2px; transition: right .25s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { right: 0; }

.nav__actions { display: flex; align-items: center; gap: var(--space-sm); margin-left: auto; }
.nav__links + .nav__actions { margin-left: var(--space-lg); }

.theme-toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--fg-muted); cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.theme-toggle:hover { color: var(--fg); border-color: var(--brand); background: var(--bg-elev); }
.theme-toggle .icon { width: 17px; height: 17px; }
.icon--sun { display: none; }
[data-theme="light"] .icon--sun { display: block; }
[data-theme="light"] .icon--moon { display: none; }

.nav__burger { display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; }
.nav__burger span { display: block; height: 2px; width: 20px; margin-inline: auto;
  background: var(--fg); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; gap: 4px;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border); background: var(--bg-elev); }
.nav__mobile a { text-decoration: none; color: var(--fg); padding: 13px 0; font-weight: 500;
  border-bottom: 1px solid var(--border); }
.nav__mobile a:last-of-type { border-bottom: 0; }
.nav__mobile .btn { margin-top: var(--space-sm); color: #04272e; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); overflow: hidden; }

.hero__glow {
  position: absolute; inset: -30% -10% auto -10%; height: 780px; pointer-events: none;
  background:
    radial-gradient(60% 46% at 22% 30%, color-mix(in srgb, var(--brand) 26%, transparent) 0%, transparent 68%),
    radial-gradient(52% 42% at 78% 22%, color-mix(in srgb, var(--violet) 22%, transparent) 0%, transparent 66%);
  filter: blur(28px); opacity: .85;
}
[data-theme="light"] .hero__glow { opacity: .34; }

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}

.hero__title {
  font-size: clamp(2.4rem, 1.1rem + 4.6vw, 4.15rem);
  font-weight: 800; letter-spacing: -.038em; margin-bottom: var(--space-lg);
}
.hero__sub { color: var(--fg-muted); font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); max-width: 34em; }
.hero__sub strong { color: var(--fg); font-weight: 600; }

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: var(--space-xl);
  margin: var(--space-2xl) 0 0; padding-top: var(--space-lg);
  border-top: 1px solid var(--border); justify-content: start;
}
.hero__stats dt { font-size: .75rem; color: var(--fg-dim); text-transform: uppercase;
  letter-spacing: .07em; font-weight: 600; margin-bottom: 4px; }
.hero__stats dd { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em;
  font-family: var(--mono); }
.stat-plus { color: var(--brand); }

/* code card */
.hero__visual { position: relative; }

.code-card {
  background: var(--code-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.code-card__bar {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 11px var(--space-md);
  border-bottom: 1px solid #1a1d26; background: #0d0f15;
}
.code-card__dots { display: inline-flex; gap: 6px; }
.code-card__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f3a; }
.code-card__file { font-family: var(--mono); font-size: .78rem; color: #8b94a4; margin-right: auto; }
.code-card__copy {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  background: transparent; border: 1px solid #232732; border-radius: 7px;
  color: #8b94a4; cursor: pointer; transition: color .18s, border-color .18s, background .18s;
}
.code-card__copy:hover { color: var(--brand-bright); border-color: var(--brand-deep); background: #12151d; }
.code-card__copy .icon { width: 14px; height: 14px; }
.code-card__copy.is-copied { color: var(--live); border-color: var(--live); }

.code-card__body {
  margin: 0; padding: var(--space-lg) var(--space-md);
  font-size: .8125rem; line-height: 1.75; color: #c8d0dc;
  overflow-x: auto; tab-size: 2;
}
.code-card__body code { white-space: pre; }
.c-k  { color: var(--code-key); font-weight: 600; }
.c-s  { color: var(--code-str); }
.c-s2 { color: var(--code-str); }
.c-p  { color: var(--code-prop); }
.c-c  { color: var(--code-comment); font-style: italic; }

.route-chip {
  position: absolute; right: -6px; bottom: -18px;
  display: inline-flex; align-items: center; gap: var(--space-xs);
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill); padding: 9px 16px;
  font-size: .8125rem; font-weight: 600; color: var(--fg-muted);
  box-shadow: var(--shadow-card);
}
.route-chip__pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); }
  70%  { box-shadow: 0 0 0 11px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ── Rails marquee ────────────────────────────────────────────── */
.rails {
  border-block: 1px solid var(--border);
  background: var(--bg-elev);
  padding: clamp(48px, 6vw, 80px) 0;
  overflow: hidden;
}
.rails__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.rails__legend {
  display: flex; gap: var(--space-lg); list-style: none; padding: 0;
  margin: var(--space-lg) 0 0; font-size: .875rem; color: var(--fg-muted);
}
.rails__legend li, .rails__count { display: inline-flex; align-items: center; gap: 8px; }
.rails__count { margin-top: var(--space-lg); font-size: .875rem; color: var(--fg-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot--live { background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 20%, transparent); }
.dot--soon { background: var(--soon); box-shadow: 0 0 0 3px color-mix(in srgb, var(--soon) 20%, transparent); }

.marquee {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm);
  height: 420px; overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee__col { overflow: hidden; }
.marquee__track {
  display: flex; flex-direction: column; gap: var(--space-sm);
  will-change: transform;
}
/* track holds the list twice → translating exactly -50% loops seamlessly */
.marquee__col--up   .marquee__track { animation: scroll-up 34s linear infinite; }
.marquee__col--down .marquee__track { animation: scroll-down 34s linear infinite; }
.marquee__col--slow .marquee__track { animation-duration: 46s; }

@keyframes scroll-up   { from { transform: translateY(0); }    to { transform: translateY(-50%); } }
@keyframes scroll-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }

.marquee:hover .marquee__track { animation-play-state: paused; }

/* Real brand logos on white tiles so full-colour marks read in both themes. */
.rail {
  display: grid; place-items: center;
  min-height: 74px; padding: var(--space-md) 18px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.rail:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.rail img {
  max-width: 80%; max-height: 42px; width: auto; height: auto;
  object-fit: contain; display: block;
}

/* ── Sections ─────────────────────────────────────────────────── */
.section { padding: clamp(64px, 8.5vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--alt { background: var(--bg-elev); border-block: 1px solid var(--border); }

.section__head { max-width: 44rem; margin-bottom: clamp(36px, 4.5vw, 64px); }
.section__sub { color: var(--fg-muted); font-size: 1.0625rem; margin-top: var(--space-md); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }

/* ── Flow diagram ─────────────────────────────────────────────── */
.flow {
  display: grid; grid-template-columns: 1fr auto 1.25fr auto 1fr;
  gap: var(--space-md); align-items: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.flow__col { display: grid; gap: var(--space-sm); }
.flow__col--fan { gap: var(--space-xs); }

.flow__node {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-md);
  box-shadow: var(--shadow-card);
}
.flow__tag {
  display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700; color: var(--fg-dim); margin-bottom: var(--space-xs);
}
.flow__tag--accent { color: var(--brand); }
.flow__node code { font-size: .8125rem; color: var(--brand-bright); }
[data-theme="light"] .flow__node code { color: var(--brand-deep); }
.flow__node p { font-family: var(--mono); font-size: .75rem; color: var(--fg-dim); margin-top: 6px; }

.flow__node--switch {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 14%, transparent), var(--shadow-lift);
}
.flow__list { margin: 0; padding-left: 17px; font-size: .8125rem; color: var(--fg-muted); }
.flow__list li { margin-bottom: 3px; }

.flow__node--rail {
  display: flex; align-items: center; gap: var(--space-xs);
  font-size: .8125rem; font-weight: 600; padding: 11px var(--space-sm);
}
.flow__node--rail em { margin-left: auto; font-style: normal; font-size: .7rem;
  color: var(--fg-dim); text-transform: uppercase; letter-spacing: .05em; }
.flow__rail-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.flow__node--rail.is-active { border-color: color-mix(in srgb, var(--live) 45%, var(--border)); }
.flow__node--rail.is-active .flow__rail-dot { background: var(--live); }
.flow__node--rail.is-active em { color: var(--live); }
.flow__node--rail.is-muted { opacity: .55; }

.flow__arrow { color: var(--border-strong); }
.flow__arrow svg { width: 100%; max-width: 70px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Steps ────────────────────────────────────────────────────── */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-lg);
}
.step { border-top: 2px solid var(--border); padding-top: var(--space-md); }
.step__n { font-family: var(--mono); font-size: .8125rem; font-weight: 700; color: var(--brand); }
.step h3 { font-size: 1.0625rem; font-weight: 700; margin: var(--space-xs) 0 var(--space-xs); }
.step p { font-size: .9375rem; color: var(--fg-muted); }
.step code { font-size: .8125rem; color: var(--fg); background: var(--bg-inset);
  padding: 1px 5px; border-radius: 5px; }

/* ── Markets ──────────────────────────────────────────────────── */
.markets {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: var(--space-md);
}
.market {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-md);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.market:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.market header { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.market__iso {
  font-family: var(--mono); font-size: .6875rem; font-weight: 700; letter-spacing: .04em;
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  color: var(--brand-bright); border: 1px solid color-mix(in srgb, var(--brand) 32%, transparent);
  padding: 3px 6px; border-radius: 5px;
}
[data-theme="light"] .market__iso { color: var(--brand-deep); }
.market h3 { font-size: .9375rem; font-weight: 700; margin-right: auto; }
.market__ccy { font-family: var(--mono); font-size: .6875rem; color: var(--fg-dim); }
.market ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.market li {
  font-size: .75rem; color: var(--fg-muted);
  background: var(--bg-inset); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: var(--radius-pill);
}

/* ── Coverage map ─────────────────────────────────────────────── */
.coverage__main {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.map { position: relative; }
.map::before {
  content: ''; position: absolute; inset: 8% 12% 12% 8%; pointer-events: none;
  background: radial-gradient(58% 52% at 46% 46%,
    color-mix(in srgb, var(--brand) 16%, transparent) 0%, transparent 70%);
  filter: blur(34px);
}
.map__svg { position: relative; display: block; width: 100%; height: auto; }

/* Dot map built from Natural Earth 110m geometry: every dot is tagged with the
   country it falls inside, so live and roadmap markets read by colour alone. */
.map__dots circle { r: 2.7; }
.map__dots .d       circle { fill: #333b48; }
.map__dots .d--next circle { fill: color-mix(in srgb, var(--soon) 42%, #2b3038); }
.map__dots .d--live circle { fill: var(--brand); }
[data-theme="light"] .map__dots .d       circle { fill: #ccd4de; }
[data-theme="light"] .map__dots .d--next circle { fill: color-mix(in srgb, var(--soon) 55%, #e2e8f0); }
[data-theme="light"] .map__dots .d--live circle { fill: var(--brand-deep); }

/* Corridor flows — a fast arrowhead streaking along each corridor.
   pathLength="100" normalises every arc so all streaks move at one speed
   regardless of how long the arc actually is. */
.flows .flow {
  fill: none; stroke: var(--brand-bright); stroke-width: .9;
  opacity: .16; stroke-linecap: round;
}
.flows .flow-trace {
  fill: none; stroke: var(--brand-bright); stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 13 100;
  animation: flow-streak 2.1s linear infinite;
  animation-delay: calc(var(--i) * .26s);
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--brand-bright) 70%, transparent));
}
@keyframes flow-streak {
  from { stroke-dashoffset: 115; opacity: 0; }
  12%  { opacity: .95; }
  88%  { opacity: .95; }
  to   { stroke-dashoffset: 0; opacity: 0; }
}
.flows .flow-arrow {
  fill: var(--brand-bright);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--brand-bright) 90%, transparent));
}
[data-theme="light"] .flows .flow { opacity: .22; stroke: var(--brand-deep); }
[data-theme="light"] .flows .flow-trace { stroke: var(--brand-deep); }
[data-theme="light"] .flows .flow-arrow { fill: var(--brand-deep); }

/* Invisible country regions sitting over the dots — the hover/focus targets. */
.map__hit .hit { fill: transparent; stroke: none; pointer-events: all; }
.map__hit .hit.is-live { cursor: pointer; }
.map__hit .hit.is-live:hover,
.map__hit .hit.is-live:focus-visible,
.map__hit .hit.is-live.is-active {
  fill: color-mix(in srgb, var(--brand) 22%, transparent);
  stroke: color-mix(in srgb, var(--brand) 70%, transparent); stroke-width: 1.1;
}
.map__hit .hit.is-next { cursor: help; }
.map__hit .hit.is-next:hover,
.map__hit .hit.is-next:focus-visible,
.map__hit .hit.is-next.is-active {
  fill: color-mix(in srgb, var(--soon) 20%, transparent);
  stroke: color-mix(in srgb, var(--soon) 62%, transparent); stroke-width: 1.1;
}
.map__hit .hit:focus { outline: none; }

.pin { cursor: pointer; }
.pin__core { fill: var(--brand-bright); transition: fill .18s var(--ease); }
.pin__ring { fill: none; stroke: var(--brand-bright); stroke-width: 1.6; opacity: .55;
  transition: opacity .18s var(--ease), stroke-width .18s var(--ease); }
.pin__halo {
  fill: var(--brand-bright); opacity: 0;
  transform-box: fill-box; transform-origin: center;
  animation: pin-blink 2.6s var(--ease) infinite;
  animation-delay: calc(var(--i) * .26s);
}
@keyframes pin-blink {
  0%   { opacity: .42; transform: scale(.26); }
  62%  { opacity: 0;   transform: scale(1); }
  100% { opacity: 0;   transform: scale(1); }
}
.pin:hover .pin__core, .pin:focus-visible .pin__core,
.pin.is-active .pin__core { fill: #fff; }
.pin:hover .pin__ring, .pin:focus-visible .pin__ring,
.pin.is-active .pin__ring { opacity: 1; stroke-width: 2.6; }
.pin:focus { outline: none; }
.pin:focus-visible .pin__halo { opacity: .5; animation: none; transform: scale(1); }

.map__tip {
  position: absolute; z-index: 5; pointer-events: none;
  transform: translate(-50%, -118%);
  min-width: 172px; max-width: 250px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 11px 14px;
  box-shadow: var(--shadow-lift);
}
.map__tip-flag { width: 24px; height: 16px; object-fit: cover; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14); vertical-align: middle; margin-right: 6px; }
.map__tip-iso { font-family: var(--mono); font-size: .625rem; font-weight: 700;
  color: var(--brand); letter-spacing: .06em; }
.map__tip.is-soon .map__tip-iso { color: var(--soon); }
.map__tip-name { display: block; font-size: .9375rem; font-weight: 700; margin-top: 1px; }
.map__tip-ccy { font-family: var(--mono); font-size: .625rem; color: var(--fg-dim); }
.map__tip.is-soon { border-color: color-mix(in srgb, var(--soon) 45%, var(--border-strong)); }
.map__tip-ops.is-soon { color: var(--soon); font-weight: 600; }
.map__tip-ops { margin-top: 6px; font-size: .75rem; line-height: 1.5; color: var(--fg-muted); }

.map__badge {
  position: absolute; left: 2%; bottom: 2%;
  display: flex; align-items: baseline; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 9px 15px; box-shadow: var(--shadow-card);
}
.map__badge-n { font-family: var(--mono); font-size: 1.375rem; font-weight: 800;
  color: var(--brand); letter-spacing: -.03em; }
.map__badge-l { font-size: .6875rem; text-transform: uppercase; letter-spacing: .07em;
  font-weight: 600; color: var(--fg-muted); }

.coverage__lede { color: var(--fg-muted); font-size: 1rem; margin-bottom: var(--space-lg); }

.mkts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  align-items: start;
}
.mkt {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: 8px; padding: 9px 10px; cursor: default;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.mkt:hover, .mkt:focus-visible, .mkt.is-active {
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  background: color-mix(in srgb, var(--brand) 7%, var(--bg-card));
}
.mkt__iso { font-family: var(--mono); font-size: .625rem; font-weight: 700;
  letter-spacing: .04em; color: var(--brand-bright);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  padding: 3px 6px; border-radius: 5px; }
[data-theme="light"] .mkt__iso { color: var(--brand-deep); }
.mkt__name { font-size: .8125rem; font-weight: 600; line-height: 1.25; }
.mkt__ccy { display: none; }   /* currency lives in the tooltip now */
.mkt__flag {
  width: 22px; height: 15px; object-fit: cover; display: block;
  border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
[data-theme="light"] .mkt__flag { box-shadow: 0 0 0 1px rgba(16,24,40,.14); }

.mkt__ops {
  grid-column: 1 / -1; font-size: .75rem; color: var(--fg-muted);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .28s var(--ease), opacity .2s var(--ease), margin-top .28s var(--ease);
}
.mkt:hover .mkt__ops, .mkt:focus-visible .mkt__ops, .mkt.is-active .mkt__ops {
  max-height: 5em; opacity: 1; margin-top: 5px;
}

.next-wrap { margin-top: var(--space-lg); padding-top: var(--space-md);
  border-top: 1px solid var(--border); }
.next-label { display: inline-flex; align-items: center; gap: 8px;
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .07em;
  font-weight: 700; color: var(--fg-dim); }
.next-up { list-style: none; margin: var(--space-sm) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px; }
.next-up li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .75rem; font-weight: 500; color: var(--fg-muted);
  background: var(--bg-card); border: 1px dashed var(--border-strong);
  padding: 4px 11px 4px 8px; border-radius: var(--radius-pill);
}
.next-up img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
[data-theme="light"] .next-up img { box-shadow: 0 0 0 1px rgba(16,24,40,.14); }

.markets__title, .network__head h3 {
  display: flex; align-items: center; gap: var(--space-xs);
  font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--fg-muted); margin-bottom: var(--space-md);
}

/* full network map */
.network {
  margin-top: var(--space-2xl); padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}
.network__head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-lg);
}
.network__head h3 { margin-bottom: 0; }
.network__head .rails__legend { margin: 0; }

.network__region + .network__region { margin-top: var(--space-lg); }
.network__region h4 {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--fg-dim); margin-bottom: var(--space-sm);
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.network__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 6px;
}
.network__grid li {
  display: flex; align-items: center; gap: 8px;
  font-size: .8125rem; color: var(--fg-dim);
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 8px 11px; border-radius: var(--radius-sm);
  position: relative; padding-left: 26px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.network__grid li::before {
  content: ''; position: absolute; left: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--soon); opacity: .75;
}
.network__grid li.is-live { color: var(--fg); border-color: var(--border-strong); }
.network__grid li.is-live::before { background: var(--live); opacity: 1; }
.network__grid li:hover { border-color: var(--brand); }
.network__grid b { font-family: var(--mono); font-size: .6875rem; font-weight: 700;
  color: var(--fg-muted); letter-spacing: .03em; }
.network__grid li.is-live b { color: var(--brand-bright); }
[data-theme="light"] .network__grid li.is-live b { color: var(--brand-deep); }
.network__grid span { margin-left: auto; font-family: var(--mono); font-size: .6875rem;
  color: var(--fg-dim); }

.coverage__note {
  margin-top: var(--space-xl); font-family: var(--mono);
  font-size: .8125rem; color: var(--fg-dim); text-align: center;
}
.coverage__note code { color: var(--brand); font-size: .8125rem; }

/* ── Developers ───────────────────────────────────────────────── */
.dev__docs { margin-top: var(--space-lg); }
.btn__soon {
  font-size: .625rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(4, 39, 46, .22); color: inherit;
  padding: 3px 7px; border-radius: var(--radius-pill); margin-left: 2px;
}
/* A placeholder link must not look or behave like a live one on click. */
.btn[data-placeholder] { cursor: not-allowed; }
.btn[data-placeholder]:hover { transform: none; }
.btn--primary[data-placeholder] { opacity: .82; }
.btn[data-placeholder]:hover .icon { transform: none; }

.dev { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
/* Grid/flex children default to min-width:auto, so a long line inside <pre> would
   widen the whole column instead of scrolling. This lets code-card__body scroll. */
.dev > *, .hero__inner > *, .code-card { min-width: 0; }

.tabs { display: flex; gap: 4px; margin-bottom: var(--space-md); flex-wrap: wrap; }
.tab {
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 8px 15px; min-height: 40px;
  font-family: inherit; font-size: .8125rem; font-weight: 600;
  color: var(--fg-muted); cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
.tab:hover { color: var(--fg); border-color: var(--border-strong); }
.tab.is-active {
  color: var(--brand-bright); border-color: color-mix(in srgb, var(--brand) 50%, transparent);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}
[data-theme="light"] .tab.is-active { color: var(--brand-deep); }

.code-card--flush .code-card__body { min-height: 330px; }

.dev__points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); }
.dev__points h3 { display: flex; align-items: center; gap: var(--space-xs);
  font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.dev__points p { font-size: .9375rem; color: var(--fg-muted); }
.dev__points code { font-size: .8125rem; color: var(--brand-bright);
  background: var(--bg-inset); padding: 1px 5px; border-radius: 5px; }
[data-theme="light"] .dev__points code { color: var(--brand-deep); }
.dev__ico {
  display: inline-grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%; background: color-mix(in srgb, var(--live) 16%, transparent);
  color: var(--live);
}
.dev__ico svg { width: 13px; height: 13px; fill: none; stroke: currentColor;
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ── Cards ────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-lg);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.card--wide { grid-column: span 2; }
.card__ico {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 11px; margin-bottom: var(--space-md);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 20%, transparent),
    color-mix(in srgb, var(--violet) 18%, transparent));
  color: var(--brand-bright);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
}
[data-theme="light"] .card__ico { color: var(--brand-deep); }
.card__ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: var(--space-xs); }
.card p { font-size: .9375rem; color: var(--fg-muted); }
.card code { font-size: .8125rem; color: var(--fg); background: var(--bg-inset);
  padding: 1px 5px; border-radius: 5px; }

/* ── CTA ──────────────────────────────────────────────────────── */
.cta { position: relative; padding: clamp(72px, 9vw, 128px) 0; overflow: hidden; text-align: center;
       border-top: 1px solid var(--border); }
.cta__glow {
  position: absolute; inset: auto -10% -55% -10%; height: 620px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--brand) 24%, transparent) 0%, transparent 70%),
              radial-gradient(38% 42% at 68% 42%, color-mix(in srgb, var(--violet) 20%, transparent) 0%, transparent 68%);
  filter: blur(30px);
}
[data-theme="light"] .cta__glow { opacity: .35; }
.cta__inner { position: relative; max-width: 44rem; }
.cta p { color: var(--fg-muted); font-size: 1.0625rem; margin-top: var(--space-md); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; margin-top: var(--space-xl); }
.cta__fine { font-size: .875rem !important; color: var(--fg-dim) !important; margin-top: var(--space-md); }

/* ── Footer ───────────────────────────────────────────────────── */
.footer { background: var(--bg-elev); border-top: 1px solid var(--border); padding-top: clamp(40px, 5vw, 64px); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-lg);
  padding-bottom: var(--space-xl); }
.footer__brand p { color: var(--fg-muted); font-size: .875rem; margin-top: var(--space-sm); max-width: 26ch; }
.footer__col { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer__col h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--fg-dim); margin-bottom: 4px; }
.footer__col a { text-decoration: none; color: var(--fg-muted); font-size: .875rem;
  transition: color .18s var(--ease); width: fit-content; }
.footer__col a:hover { color: var(--brand); }

.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-xs);
  border-top: 1px solid var(--border); padding-block: var(--space-md) var(--space-lg);
  font-size: .8125rem; color: var(--fg-dim);
}

/* ── Reveal-on-scroll ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--d, 0ms);
}
.no-js .reveal { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner, .dev, .rails__inner, .coverage__main { grid-template-columns: 1fr; }
  .map__svg { max-height: 460px; margin-inline: auto; }
  .hero__visual { max-width: 640px; }
  .route-chip { right: auto; left: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { justify-self: center; transform: rotate(90deg); height: 26px; }
  .flow__arrow svg { max-width: 46px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links, .nav__signin { display: none; }
  .nav__burger { display: flex; }
  .nav__actions { margin-left: auto; }
  .nav__mobile:not([hidden]) { display: flex; }
  .split { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
}

@media (max-width: 640px) {
  .wrap { padding-inline: var(--space-md); }
  .cards, .markets { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .marquee { height: 340px; grid-template-columns: repeat(2, 1fr); }
  .marquee__col--slow { display: none; }
  /* Full-width buttons only where they stack — never in the nav bar. */
  .hero__cta .btn, .cta__actions .btn, .nav__mobile .btn { flex: 1 1 100%; width: 100%; }
  /* The docs label is long; let it wrap instead of forcing the page wider. */
  .dev__docs { width: 100%; white-space: normal; text-align: center; line-height: 1.35; }
  .nav__actions .btn--primary { display: none; }  /* lives in the burger menu */
  .footer__inner { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; }
  .code-card__body { font-size: .75rem; }
}

/* ── Motion preferences ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none !important; }
  /* CSS animation properties do NOT stop SMIL <animateMotion>, so the corridor
     flows have to be removed outright for reduced-motion users. The static base
     arcs stay so the corridors are still legible. */
  .flows .flow-arrow, .flows .flow-trace { display: none; }
  .pin__halo { animation: none !important; opacity: 0; }
  .marquee {
    overflow-y: auto;
    mask-image: none; -webkit-mask-image: none;
  }
}

/* ── Print ────────────────────────────────────────────────────── */
@media print {
  .nav, .cta__glow, .hero__glow, .hero__grid-lines, .marquee { display: none; }
  body { background: #fff; color: #000; }
}


/* ═══════════════════════════════════════════════════════════════
   Contact Sales page
   Form rules from the ui-ux-pro-max skill: visible labels (High),
   role="alert" errors (High), submit feedback (High), blur validation,
   explicit required markers.
   ═══════════════════════════════════════════════════════════════ */
/* A class-level `display` beats the UA [hidden] rule, so restore it globally.
   Without this, .field[hidden] / .code-card[hidden] still render. */
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.contact { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 104px); overflow: hidden; }
.contact__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 620px; pointer-events: none;
  background:
    radial-gradient(56% 44% at 20% 26%, color-mix(in srgb, var(--brand) 22%, transparent) 0%, transparent 68%),
    radial-gradient(48% 40% at 82% 18%, color-mix(in srgb, var(--violet) 18%, transparent) 0%, transparent 66%);
  filter: blur(30px);
}
[data-theme="light"] .contact__glow { opacity: .32; }

.contact__inner {
  position: relative;
  display: grid; grid-template-columns: .82fr 1.18fr;
  gap: clamp(32px, 4.5vw, 64px); align-items: start;
}

.contact__title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 800; letter-spacing: -.035em; margin-bottom: var(--space-md);
}
.contact__lede { color: var(--fg-muted); font-size: 1.0625rem; }

.contact__points { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; gap: var(--space-md); }
.contact__points li { display: flex; gap: var(--space-sm); align-items: flex-start; }
.contact__points strong { display: block; font-size: .9375rem; font-weight: 700; }
.contact__points span { font-size: .875rem; color: var(--fg-muted); }

.contact__alt { margin-top: var(--space-xl); font-size: .875rem; color: var(--fg-muted); }
.contact__alt a { color: var(--brand); font-weight: 600; }

.contact__card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(20px, 2.6vw, 34px);
  box-shadow: var(--shadow-lift);
}

.form { display: grid; gap: var(--space-lg); }
.form__req { font-size: .8125rem; color: var(--fg-muted); margin: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); align-items: start; }

.field { display: grid; gap: 6px; align-content: start; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend {
  font-size: .875rem; font-weight: 600; color: var(--fg); padding: 0;
}
.req { color: var(--brand); }

.field input:not([type="checkbox"]):not([type="radio"]),
.field select, .field textarea {
  width: 100%; font-family: inherit; font-size: .9375rem; color: var(--fg);
  background: var(--bg-inset); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 11px 13px; min-height: 46px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  appearance: none;
}
.field textarea { min-height: 86px; resize: vertical; line-height: 1.55; }
.field input:not([type="checkbox"])::placeholder, .field textarea::placeholder { color: var(--fg-dim); }
.field input:not([type="checkbox"]):hover, .field select:hover, .field textarea:hover { border-color: var(--fg-dim); }
.field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.field input:not([type="checkbox"]).is-invalid, .field select.is-invalid {
  border-color: var(--destructive, #ef4444);
  box-shadow: 0 0 0 3px color-mix(in srgb, #ef4444 18%, transparent);
}

.select-wrap { position: relative; }
.select-wrap select { padding-right: 40px; cursor: pointer; }
.select-wrap__chev {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--fg-dim); pointer-events: none;
}
.field select option { background: var(--bg-elev); color: var(--fg); }

.field__hint { font-size: .8125rem; color: var(--fg-muted); margin: 0; }
.field__err { font-size: .8125rem; color: #f87171; margin: 0; min-height: 0; font-weight: 500; }
.field__err:empty { display: none; }
[data-theme="light"] .field__err { color: #b91c1c; }

/* Countries */
.countries.is-invalid legend { color: #f87171; }
[data-theme="light"] .countries.is-invalid legend { color: #b91c1c; }
.countries__group-label {
  display: flex; align-items: center; gap: 7px;
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .07em;
  font-weight: 700; color: var(--fg-dim); margin: var(--space-xs) 0 0;
}
.countries__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 6px;
}
.chk {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; min-height: 44px; cursor: pointer;
  background: var(--bg-inset); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .8125rem; font-weight: 500; color: var(--fg-muted);
  transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.chk:hover { border-color: var(--fg-dim); color: var(--fg); }
.chk input[type="checkbox"] {
  appearance: auto; -webkit-appearance: checkbox;
  width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  accent-color: var(--brand); flex-shrink: 0; cursor: pointer;
}
.chk img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12); flex-shrink: 0; }
[data-theme="light"] .chk img { box-shadow: 0 0 0 1px rgba(16,24,40,.14); }
.chk:has(input:checked) {
  border-color: color-mix(in srgb, var(--brand) 60%, transparent);
  background: color-mix(in srgb, var(--brand) 11%, var(--bg-inset));
  color: var(--fg);
}
.chk--other { border-style: dashed; }
.chk__plus {
  display: grid; place-items: center; width: 20px; height: 14px;
  font-size: .8125rem; font-weight: 800; color: var(--fg-dim); flex-shrink: 0;
}
.chk--other:has(input:checked) .chk__plus { color: var(--brand); }
.other-market { margin-top: var(--space-sm); }
.chk:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }

.form__submit { width: 100%; }
.form__submit.is-busy { opacity: .72; cursor: wait; }
.form__submit.is-busy .form__submit-label::after {
  content: ''; display: inline-block; width: 13px; height: 13px; margin-left: 9px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  vertical-align: -2px; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form__legal { font-size: .8125rem; color: var(--fg-dim); margin: 0; text-align: center; }

/* Success */
.form__done { text-align: center; padding: var(--space-xl) var(--space-sm); }
.form__done-ico {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: color-mix(in srgb, var(--live) 18%, transparent); color: var(--live);
  margin-bottom: var(--space-md);
}
.form__done-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor;
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form__done h2 { font-size: 1.375rem; font-weight: 800; margin-bottom: var(--space-xs); }
.form__done p { color: var(--fg-muted); font-size: .9375rem; margin-bottom: var(--space-lg); }

@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact__points { max-width: 40rem; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .countries__grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
}
