/* ============================================================
   RelayFX — design system
   Design tokens, type scale and motion for the RelayFX site.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* type */
  --font-sans: "Lexend Deca", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Lexend", "Lexend Deca", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;

  /* surfaces */
  --color-bg: #f6f8fd;
  --color-bg-1: #fff;
  --color-bg-2: #eef2fa;
  --color-bg-3: #e3e9f5;

  /* lines */
  --color-line: #0d144e17;
  --color-line-2: #0d144e29;

  /* ink */
  --color-ink: #0d144e;
  --color-ink-2: #4a5475;
  --color-ink-3: #5f6985;

  /* brand */
  --color-brand: #5890f9;
  --color-brand-2: #2f66e5;
  --color-brand-3: #1d48ae;
  --color-navy: #0d144e;
  --color-soft: #edf3ff;
  --color-action: #2f66e5;
  --color-action-hover: #2455c9;

  /* semantic */
  --color-up: #137c53;
  --color-down: #d93c55;
  --color-gold: #d39410;

  --color-tint: #0d144e;
  --color-inv: #0d144e;
  --color-on-inv: #fff;

  /* panels */
  --panel-bg: #fff;
  --panel-shadow: 0 1px 0 #0d144e08, 0 20px 50px -26px #0d144e33;
  --glass-bg: linear-gradient(180deg, #ffffffd1, #ffffff9e);
  --grid-line: #0d144e0d;

  /* data-viz */
  --viz-price: #2f66e5;
  --viz-accent: #5890f9;
  --viz-accent-soft: #5890f929;
  --viz-accent-faint: #5890f90f;
  --viz-accent-line: #5890f959;
  --viz-up: #1a9e66;
  --viz-up-soft: #1a9e6624;
  --viz-down: #e0415b;
  --viz-gold: #d39410;
  --viz-rule: #0d144e1f;
  --viz-rule-soft: #0d144e0f;
  --viz-muted: #4a547559;

  /* dark island palette */
  --isl-0: #0d144e;
  --isl-1: #0f1754;
  --isl-2: #141c5c;
  --isl-3: #1c2569;
  --isl-line: #96a5ff29;
  --isl-line-2: #96a5ff42;
  --isl-ink-2: #c3cbea;
  --isl-ink-3: #8e98c9;
  --isl-accent: #8fb4ff;
  --isl-glow: #5890f91a;

  /* motion */
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out-quint: cubic-bezier(.83, 0, .17, 1);
}

.dark-island {
  --color-bg: var(--isl-0);
  --color-bg-1: var(--isl-1);
  --color-bg-2: var(--isl-2);
  --color-bg-3: var(--isl-3);
  --color-line: var(--isl-line);
  --color-line-2: var(--isl-line-2);
  --color-ink: #f2f4ff;
  --color-ink-2: var(--isl-ink-2);
  --color-ink-3: var(--isl-ink-3);
  --color-brand: #6f9dff;
  --color-brand-2: var(--isl-accent);
  --color-brand-3: #dbe5ff;
  --color-up: #3ee09a;
  --color-down: #ff7a8a;
  --color-gold: #f5c451;
  --color-tint: #fff;
  --color-inv: #f2f4ff;
  --color-on-inv: #0d144e;
  --panel-bg: radial-gradient(120% 120% at 0% 0%, var(--isl-glow), transparent 50%),
              linear-gradient(180deg, var(--isl-2) 0%, var(--isl-1) 100%);
  --panel-shadow: inset 0 1px 0 #ffffff12, 0 30px 70px -30px #0d144e80;
  --glass-bg: linear-gradient(180deg, #ffffff12, #ffffff08);
  --grid-line: #aab9ff14;
  --viz-price: #cddcff;
  --viz-accent: #6f9dff;
  --viz-accent-soft: #6f9dff38;
  --viz-accent-faint: #6f9dff0f;
  --viz-accent-line: #6f9dff4d;
  --viz-up: #3ee09a;
  --viz-up-soft: #3ee09a24;
  --viz-down: #ff7a8a;
  --viz-gold: #f5c451;
  --viz-rule: #ffffff1f;
  --viz-rule-soft: #ffffff0d;
  --viz-muted: #a9b1d859;
  color: var(--color-ink);
  color-scheme: dark;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  color: var(--color-ink);
  font-family: var(--font-sans);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  background: var(--color-bg);
  margin: 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, blockquote, figure, dl, dd, ul, ol, menu { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; font-family: var(--font-display); }
ul, ol, menu { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { vertical-align: middle; display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
button, a, summary, [role="button"] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--color-action); outline-offset: 3px; border-radius: 6px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
.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;
}

/* ---------- 3. Layout primitives ---------- */
.container-x { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
.section-y { padding-block: clamp(48px, 5.5vw, 80px); }

.noise {
  pointer-events: none; z-index: 100; opacity: .03; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-bg {
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
}

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--color-line);
  box-shadow: var(--panel-shadow);
  position: relative;
}

.mask-fade-x {
  -webkit-mask-image: linear-gradient(90deg, #0000, #000 12% 88%, #0000);
  mask-image: linear-gradient(90deg, #0000, #000 12% 88%, #0000);
}

/* ---------- 4. Type scale ---------- */
.h-display { font-family: var(--font-display); letter-spacing: -.035em; font-weight: 600; line-height: 1; }
.type-hero { font-size: clamp(2.5rem, min(1.2rem + 4vw, 8.2vh), 4.75rem); }
.h-section { font-family: var(--font-display); letter-spacing: -.03em; font-size: clamp(2rem, 1rem + 2.5vw, 3.1rem); font-weight: 600; line-height: 1.06; }
.h-sub { font-family: var(--font-display); letter-spacing: -.035em; font-size: clamp(1.9rem, .9rem + 2.2vw, 2.75rem); font-weight: 600; line-height: 1.05; }
.font-display { font-family: var(--font-display); }
.tabular { font-variant-numeric: tabular-nums; }
.text-balance { text-wrap: balance; }

.kicker {
  font-family: var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-brand-2);
  align-items: center;
  gap: 10px;
  font-size: 12px;
  display: inline-flex;
}
.kicker::before {
  content: "";
  background: var(--color-brand);
  border-radius: 999px;
  width: 6px; height: 6px;
  box-shadow: 0 0 0 4px #5890f92e, 0 0 14px #5890f9b3;
  flex: none;
}

.lead { font-size: 15.5px; line-height: 1.625; color: var(--color-ink-2); }
@media (min-width: 768px) { .lead { font-size: 17px; } }

/* ---------- 5. Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: box-shadow .5s, background-color .5s, border-color .5s, scale .5s;
}
.btn:active { scale: .97; transition-duration: .15s; }

.btn-primary {
  background: var(--color-action);
  color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, 0 10px 26px -12px rgb(47 102 229 / .75);
}
.btn-primary:hover {
  background: var(--color-action-hover);
  box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, 0 16px 36px -12px rgb(47 102 229 / .85);
}
.btn-sheen {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 25%, rgb(255 255 255 / .35) 50%, transparent 75%);
  transition: transform 1100ms var(--ease-out-expo);
}
.btn:hover .btn-sheen { transform: translateX(120%); }

.btn-secondary {
  border: 1px solid var(--color-line-2);
  background: var(--color-bg-1);
  color: var(--color-ink);
  box-shadow: 0 1px 2px #0d144e0f, 0 8px 20px -14px #0d144e4d;
}
.btn-secondary:hover { color: var(--color-action); border-color: #2f66e573; }
.dark-island .btn-secondary { color: #fff; box-shadow: none; background: #ffffff14; border-color: #fff3; }
.btn-secondary-icon { background: var(--color-soft); color: var(--color-action); }
.dark-island .btn-secondary-icon { background: #ffffff1a; color: #fff; }

/* sizes */
.btn-lg { height: 56px; font-size: 16px; padding-left: 28px; padding-right: 8px; }
.btn-lg.is-ghost { padding-left: 10px; padding-right: 28px; }
.btn-sm { height: 36px; font-size: 13.5px; padding-left: 16px; padding-right: 4px; }

.btn-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  color: var(--color-action);
  flex: none;
}
.btn-sm .btn-orb { width: 28px; height: 28px; }
.btn-orb svg { width: 16px; height: 16px; }
.btn-orb .ico-a { transition: transform .5s var(--ease-out-expo); }
.btn-orb .ico-b { position: absolute; transform: translateX(-180%); transition: transform .5s var(--ease-out-expo); }
.btn:hover .btn-orb .ico-a { transform: translateX(180%); }
.btn:hover .btn-orb .ico-b { transform: translateX(0); }

.btn-icon-circle {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 999px; flex: none;
  transition: transform .5s var(--ease-out-expo);
}
.btn:hover .btn-icon-circle { transform: scale(1.1); }

/* store badges */
.store-badge {
  display: inline-flex; flex: none; align-items: center;
  border-radius: 12px;
  background: var(--color-inv);
  color: var(--color-on-inv);
  height: 44px; gap: 10px;
  padding-left: 12px; padding-right: 16px;
  transition: transform .3s, box-shadow .3s;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgb(13 20 78 / .6); }
.store-badge svg { width: 20px; height: 20px; }
.store-badge .sb-top { display: block; opacity: .7; font-size: 9.5px; line-height: 1; }
.store-badge .sb-main { display: block; margin-top: 2px; font-weight: 500; letter-spacing: -.02em; font-size: 14px; line-height: 1; }

.store-rating {
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; padding-left: 2px;
  font-size: 12px; line-height: 1; color: var(--color-ink-3);
}
.store-rating .score { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--color-ink); }
.stars { display: flex; color: var(--color-gold); }
.stars svg { width: 12px; height: 12px; }

/* pill tag */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px;
  border: 1px solid rgb(47 102 229 / .15);
  background: var(--color-soft);
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--color-brand-3);
}
.pill .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--color-gold); flex: none; }

/* Collapse the secondary CTA to its icon on phones */
@media (max-width: 639px) {
  .btn-lg.is-ghost { padding-left: 10px; padding-right: 8px; gap: 0; }
  .btn-lg.is-ghost .btn-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: transform .7s var(--ease-out-expo);
}
.site-header[data-hidden="true"] { transform: translateY(-110%); }
.site-header .nav-shell { position: relative; padding-top: 12px; }
@media (min-width: 768px) { .site-header .nav-shell { padding-top: 16px; } }

.site-nav {
  position: relative;
  display: flex;
  height: 56px;
  align-items: center;
  border-radius: 999px;
  padding-left: 20px;
  padding-right: 8px;
  border: 1px solid transparent;
  transition: background-color .5s, border-color .5s, box-shadow .5s, backdrop-filter .5s;
}
.site-header[data-scrolled="true"] .site-nav {
  background: var(--glass-bg);
  border-color: var(--color-line);
  box-shadow: 0 1px 0 #0d144e08, 0 18px 40px -28px #0d144e4d;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand-mark { height: 26px; width: auto; flex: none; }
.site-footer .brand-mark { height: 30px; }
.brand-word {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600; letter-spacing: -.04em;
  color: var(--color-ink); line-height: 1;
}
.brand-word .fx { color: var(--color-action); }

.nav-list { position: relative; margin-left: 32px; display: none; align-items: center; }
@media (min-width: 1024px) { .nav-list { display: flex; } }
.nav-list > li { position: relative; white-space: nowrap; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; font-size: 14.5px; color: var(--color-ink-2);
  transition: color .25s; border-radius: 999px;
}
.nav-link:hover { color: var(--color-ink); }
.nav-link svg { width: 14px; height: 14px; transition: transform .3s; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-hover-pill {
  pointer-events: none; position: absolute; left: 0; top: 0; height: 100%;
  border-radius: 999px; background: rgb(13 20 78 / .07); opacity: 0;
  transition: transform .3s var(--ease-out-expo), width .3s var(--ease-out-expo), opacity .3s;
}

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; padding-left: 12px; }
.nav-login {
  display: none; white-space: nowrap; padding: 8px 16px;
  font-size: 14.5px; color: var(--color-ink-2); transition: color .25s;
}
.nav-login:hover { color: var(--color-ink); }
@media (min-width: 640px) { .nav-login { display: block; } }

.nav-burger {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 999px; border: 1px solid var(--color-line-2);
  background: rgb(13 20 78 / .05); flex: none;
}
@media (min-width: 1024px) { .nav-burger { display: none; } }
.nav-burger svg { width: 18px; height: 18px; }

/* mega panel */
.nav-panel {
  position: absolute; top: calc(100% + 10px); inset-inline: 0;
  display: none; transform-origin: top;
  overflow: hidden; border-radius: 24px;
  background: var(--color-bg-1); padding: 8px;
  border: 1px solid var(--color-line);
  box-shadow: var(--panel-shadow);
  transition: opacity .3s var(--ease-out-expo), transform .3s var(--ease-out-expo), visibility .3s;
  visibility: hidden; transform: translateY(8px) scale(.985); opacity: 0;
}
@media (min-width: 1024px) { .nav-panel { display: block; } }
.nav-panel[data-open="true"] { visibility: visible; transform: none; opacity: 1; }
.nav-panel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nav-col-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--color-ink-3);
  padding: 10px 14px 6px;
}
.nav-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  border-radius: 12px; padding: 10px 14px; transition: background-color .25s, color .25s;
}
.nav-item:hover { background: rgb(13 20 78 / .05); }
.nav-item .ni-title { display: block; font-size: 14.5px; color: var(--color-ink); }
.nav-item .ni-desc { display: block; margin-top: 2px; font-size: 12.5px; color: var(--color-ink-3); line-height: 1.4; }
.nav-item .ni-arrow { width: 14px; height: 14px; flex: none; opacity: 0; color: var(--color-action); transition: opacity .25s; margin-top: 3px; }
.nav-item:hover .ni-arrow { opacity: 1; }

/* mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--color-bg);
  padding: 20px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease-out-expo), transform .35s var(--ease-out-expo), visibility .35s;
}
.mobile-drawer[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
.mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.md-group + .md-group { margin-top: 18px; }
.md-group-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--color-ink-3); padding: 8px 4px;
}
.md-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 12px; font-size: 15px; color: var(--color-ink-2);
}
.md-link:hover { background: rgb(13 20 78 / .05); color: var(--color-ink); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: 96px; padding-bottom: 8px;
}
@media (min-width: 768px) {
  .hero { padding-bottom: 56px; padding-top: clamp(7.5rem, 15vh, 10rem); }
}
.hero-aura { pointer-events: none; position: absolute; inset-inline: 0; top: 0; height: 980px; }
@media (min-width: 768px) { .hero-aura { height: 1080px; } }
.hero-aura .a1 {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 40% at 50% 62%, rgb(88 144 249 / .16), transparent 70%),
    radial-gradient(28% 32% at 84% 22%, rgb(62 224 154 / .10), transparent 70%),
    radial-gradient(32% 34% at 14% 30%, rgb(140 110 255 / .10), transparent 70%);
}
.hero-aura .a2 { position: absolute; inset-inline: 0; top: 0; height: 192px; background: linear-gradient(to bottom, var(--color-bg), rgb(246 248 253 / .7), transparent); }
.hero-aura .a3 { position: absolute; inset-inline: 0; bottom: 0; height: 288px; background: linear-gradient(to top, var(--color-bg), transparent); }

.hero-grid {
  position: relative; z-index: 10;
  display: grid; grid-template-columns: 1fr;
  align-items: center; gap: 24px;
}
@media (min-width: 768px) { .hero-grid { gap: 48px; } }
@media (min-width: 1280px) {
  .hero-grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 32px; }
}
.hero-copy { position: relative; z-index: 10; text-align: center; }
@media (min-width: 1280px) { .hero-copy { text-align: left; } }

.hero h1 { margin-inline: auto; margin-top: 16px; max-width: 18ch; }
@media (min-width: 768px) { .hero h1 { margin-top: 24px; } }
@media (min-width: 1280px) {
  .hero h1 { margin-inline: 0; font-size: clamp(2.5rem, min(.9rem + 2.9vw, 7.4vh), 4.1rem); }
}
.hero-sub {
  margin-inline: auto; margin-top: 16px; max-width: 38rem;
  text-wrap: balance;
}
@media (min-width: 768px) { .hero-sub { margin-top: 24px; } }
@media (min-width: 1280px) { .hero-sub { margin-inline: 0; } }

.hero-ctas {
  margin-top: 24px; display: flex; align-items: center;
  justify-content: center; gap: 12px; flex-wrap: wrap;
}
@media (min-width: 768px) { .hero-ctas { margin-top: 32px; } }
@media (min-width: 1280px) { .hero-ctas { justify-content: flex-start; } }

.hero-stores {
  margin-top: 28px; display: flex; align-items: flex-start;
  justify-content: center; gap: 16px;
}
@media (min-width: 640px) { .hero-stores { gap: 24px; } }
@media (min-width: 1280px) { .hero-stores { justify-content: flex-start; } }
.hero-store-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* ---------- 8. Hero visual (signal to MT5 relay) ---------- */
.relay-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
@media (min-width: 1280px) { .relay-stage { max-width: none; } }

.relay-card {
  border-radius: 20px;
  border: 1px solid var(--color-line);
  background: var(--color-bg-1);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
}
.relay-card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-line);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}
.relay-card-head .rc-icon {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 9px; flex: none;
}
.relay-card-head .rc-icon svg { width: 15px; height: 15px; }
.relay-card-head .rc-title { font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; }
.relay-card-head .rc-meta { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--color-ink-3); }

.signal-msg {
  margin: 14px 16px;
  border-radius: 14px;
  background: var(--color-bg-2);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--color-ink-2);
}
.signal-msg div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signal-msg b { color: var(--color-ink); font-weight: 600; }
.signal-msg .buy { color: var(--viz-up); font-weight: 600; }
.signal-msg .tp { color: var(--color-action); }
.signal-msg .sl { color: var(--viz-down); }

.relay-arrow { display: grid; place-items: center; margin: 14px 0; }
.relay-arrow .ra-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; border: 1px solid var(--color-line);
  background: var(--color-bg-1); padding: 7px 14px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-action);
  box-shadow: 0 8px 20px -14px #0d144e4d;
}
.relay-arrow .ra-chip .pulse {
  width: 6px; height: 6px; border-radius: 999px; background: var(--color-action);
  box-shadow: 0 0 0 0 rgb(47 102 229 / .5);
  animation: relay-pulse 1.8s ease-out infinite;
  flex: none;
}
@keyframes relay-pulse {
  0%   { box-shadow: 0 0 0 0 rgb(47 102 229 / .5); }
  70%  { box-shadow: 0 0 0 8px rgb(47 102 229 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(47 102 229 / 0); }
}

.ticket-rows { padding: 6px 8px 10px; }
.ticket-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
}
.ticket-row + .ticket-row { border-top: 1px solid var(--color-line); border-radius: 0; }
.ticket-row .tr-badge {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; flex: none;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
}
.tr-badge.is-buy { background: var(--viz-up-soft); color: var(--viz-up); }
.tr-badge.is-sell { background: rgb(224 65 91 / .14); color: var(--viz-down); }
.ticket-row .tr-pair { display: block; font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; }
.ticket-row .tr-sub { display: block; font-size: 11.5px; color: var(--color-ink-3); margin-top: 1px; font-family: var(--font-mono); }
.ticket-row .tr-pnl { display: block; font-family: var(--font-mono); font-size: 13px; font-weight: 600; text-align: right; }
.tr-pnl.up { color: var(--viz-up); }
.tr-pnl.down { color: var(--viz-down); }
.ticket-row .tr-state { font-size: 10.5px; color: var(--color-ink-3); margin-top: 1px; display: block; text-align: right; }

.latency-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 11px 16px;
  border-top: 1px solid var(--color-line);
  background: var(--color-bg-2);
  font-family: var(--font-mono); font-size: 11px; color: var(--color-ink-3);
}
.latency-strip b { color: var(--color-ink); font-weight: 600; }

.float-a { animation: float-bob 7s ease-in-out infinite; }
.float-b { animation: float-bob 9s ease-in-out infinite reverse; }
@keyframes float-bob {
  0%, 100% { transform: translate(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(-.6deg); }
}

/* ---------- 9. Marquee ---------- */
.marquee-row { display: flex; overflow-x: clip; padding-block: 4px; }
.marquee-track {
  display: flex; width: max-content; flex: none;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
}
.marquee-track.reverse { animation-direction: reverse; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.broker-chip {
  position: relative; display: grid; place-items: center;
  height: 84px; width: 190px; flex: none;
  border-radius: 16px; border: 1px solid var(--color-line);
  background: var(--color-bg-1);
  transition: transform .5s var(--ease-out-expo), border-color .5s, box-shadow .5s, color .5s;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  letter-spacing: -.02em; color: var(--color-ink-2);
  margin-right: 12px;
}
@media (min-width: 768px) { .broker-chip { width: 220px; } }
.broker-chip:hover {
  transform: translateY(-4px);
  border-color: var(--color-line-2);
  box-shadow: 0 20px 40px -20px rgb(13 20 78 / .35);
  color: var(--color-ink);
}
.broker-chip .bc-sub { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--color-ink-3); text-align: center; }

/* ---------- 10. Stats ---------- */
.stat-grid {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 32px;
  border-block: 1px solid var(--color-line);
  padding-block: 32px;
}
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-inline: 8px; }
@media (min-width: 768px) {
  .stat { padding-inline: 32px; border-left: 1px solid var(--color-line); }
  .stat:first-child { padding-left: 0; border-left: 0; }
}
.stat dt { margin-top: 6px; max-width: 16rem; font-size: 14px; line-height: 1.375; color: var(--color-ink-3); }
.stat dd { font-family: var(--font-display); font-size: clamp(1.9rem, 1rem + 2vw, 2.75rem); font-weight: 600; letter-spacing: -.03em; }

/* ---------- 11. Cards ---------- */
.card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--color-line);
  background: var(--color-bg-1);
  padding: 24px;
  transition: transform .5s var(--ease-out-expo), border-color .5s, box-shadow .5s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--color-line-2);
  box-shadow: 0 24px 48px -28px rgb(13 20 78 / .35);
}
.card-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--color-soft); color: var(--color-action);
  margin-bottom: 16px;
}
.dark-island .card-icon { background: #ffffff14; color: var(--color-brand-2); }
.card-icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.card p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--color-ink-2); }

.card-list { margin-top: 14px; display: grid; gap: 8px; }
.card-list li { display: flex; gap: 9px; font-size: 13.5px; color: var(--color-ink-2); line-height: 1.5; }
.card-list svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--color-up); }

/* ---------- 12. Dark island ---------- */
.dark-island {
  position: relative; overflow: hidden;
  border-radius: 28px;
  background: var(--color-bg);
  box-shadow: 0 50px 120px -50px rgb(13 20 78 / .7);
  padding: 36px 20px 0;
}
@media (min-width: 640px) { .dark-island { border-radius: 36px; padding-inline: 28px; padding-top: 40px; } }
@media (min-width: 768px) { .dark-island { padding-inline: 56px; padding-top: 56px; } }
.dark-island .isl-grid {
  pointer-events: none; position: absolute; inset: 0; opacity: .6;
  -webkit-mask-image: radial-gradient(70% 90% at 80% 60%, #000, transparent);
  mask-image: radial-gradient(70% 90% at 80% 60%, #000, transparent);
}
.dark-island .isl-glow-a {
  pointer-events: none; position: absolute; right: -96px; top: 50%;
  width: 560px; height: 560px; transform: translateY(-50%); border-radius: 999px;
  background: radial-gradient(circle, rgb(91 140 255 / .32), transparent 65%);
}
.dark-island .isl-glow-b {
  pointer-events: none; position: absolute; left: -96px; top: -128px;
  width: 420px; height: 420px; border-radius: 999px;
  background: radial-gradient(circle, rgb(62 224 154 / .10), transparent 65%);
}
.dark-island .relay-card,
.dark-island .ticket-row,
.dark-island .latency-strip { background: var(--color-bg-1); }
.dark-island .relay-card-head { background: linear-gradient(180deg, #ffffff0a, #ffffff04); }
.dark-island .signal-msg { background: #ffffff0d; }
.dark-island .latency-strip { background: #ffffff08; }

/* island two-column layout */
@media (min-width: 1024px) {
  .dark-island .island-grid { grid-template-columns: 1.15fr 1fr; gap: 40px; }
  .dark-island .island-grid > div:first-child { padding-block: 64px; }
  .dark-island { padding-bottom: 0; }
}

/* ---------- 13. Reviews ---------- */
.review {
  width: 360px; flex: none;
  border-radius: 18px; border: 1px solid var(--color-line);
  background: var(--color-bg-1); padding: 20px;
  margin-right: 12px;
}
.review blockquote { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--color-ink-2); }
.review figcaption { margin-top: 12px; font-size: 12.5px; color: var(--color-ink-3); }
.review figcaption b { color: var(--color-ink); font-weight: 500; }

/* ---------- 14. Pricing ---------- */
.price-grid { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.price-card {
  display: flex; flex-direction: column;
  border-radius: 22px; border: 1px solid var(--color-line);
  background: var(--color-bg-1); padding: 26px;
  transition: border-color .4s, box-shadow .4s, transform .4s var(--ease-out-expo);
}
.price-card:hover { transform: translateY(-3px); box-shadow: 0 28px 56px -30px rgb(13 20 78 / .35); }
.price-card.featured { border-color: rgb(47 102 229 / .35); box-shadow: 0 28px 56px -30px rgb(47 102 229 / .45); }
.price-card .pc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-card .pc-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.price-card .pc-amount { margin-top: 14px; font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.price-card .pc-amount .pc-per { font-size: 14px; font-weight: 400; color: var(--color-ink-3); letter-spacing: 0; }
.price-card .pc-desc { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--color-ink-2); }
.price-card ul { margin-top: 18px; display: grid; gap: 9px; flex: 1; }
.price-card li { display: flex; gap: 9px; font-size: 13.5px; color: var(--color-ink-2); line-height: 1.5; }
.price-card li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--color-action); }
.price-card .pc-cta { margin-top: 22px; }
.price-tag {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; background: var(--color-soft); color: var(--color-brand-3);
  padding: 4px 10px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- 15. Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--color-line); background: var(--color-bg-1); }
.footer-grid {
  display: grid; gap: 40px;
  padding-top: 48px; padding-bottom: 40px;
}
@media (min-width: 768px) { .footer-grid { gap: 48px; padding-top: 64px; padding-bottom: 56px; } }
@media (min-width: 1280px) { .footer-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; } }
.footer-cols { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.footer-col-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--color-ink-3); margin-bottom: 12px;
}
.footer-col a { display: block; padding-block: 5px; font-size: 14px; color: var(--color-ink-2); transition: color .25s; }
.footer-col a:hover { color: var(--color-action); }
.footer-bottom {
  border-top: 1px solid var(--color-line);
  padding-block: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--color-ink-3);
}
.footer-disclaimer { padding-bottom: 28px; font-size: 12px; line-height: 1.6; color: var(--color-ink-3); max-width: 70ch; }

/* ---------- 16. Reveal / entrance motion ---------- */
.rd-intro { animation: rd-rise .9s cubic-bezier(.33, 1, .68, 1) var(--d, 0s) backwards; }
@keyframes rd-rise { from { opacity: .01; transform: translateY(var(--rise, 12px)); } }

.rd-word-mask {
  vertical-align: top; margin-bottom: -.1em; padding-bottom: .1em;
  display: inline-block; overflow: clip;
}
.rd-word { animation: rd-word .9s cubic-bezier(.33, 1, .68, 1) var(--d, 0s) backwards; display: inline-block; }
@keyframes rd-word { from { opacity: .01; transform: translateY(18%); } }

[data-rise] { opacity: .01; transform: translateY(14px); }
[data-rise].is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
  transition-delay: var(--d, 0s);
}

[data-split] .sp-mask { display: inline-block; overflow: clip; vertical-align: top; margin-bottom: -.1em; padding-bottom: .1em; }
[data-split] .sp-word { display: inline-block; transform: translateY(100%); opacity: .01; }
[data-split].is-in .sp-word {
  transform: none; opacity: 1;
  transition: transform .9s var(--ease-out-expo), opacity .9s var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 38ms);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-rise], [data-split] .sp-word { opacity: 1 !important; transform: none !important; }
}

/* ---------- 17. Utilities ---------- */
.text-brand-2 { color: var(--color-brand-2); }
.text-ink-2 { color: var(--color-ink-2); }
.text-ink-3 { color: var(--color-ink-3); }
.text-action { color: var(--color-action); }
.mt-5 { margin-top: 20px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.max-w-46 { max-width: 46rem; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================
   18. Channels — any signal channel on Earth
   ============================================================ */
.channel-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .channel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.channel-card {
  border-radius: 18px;
  border: 1px solid var(--color-line);
  background: var(--color-bg-1);
  padding: 18px;
  transition: transform .5s var(--ease-out-expo), border-color .5s, box-shadow .5s;
}
.channel-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-line-2);
  box-shadow: 0 24px 48px -28px rgb(13 20 78 / .35);
}
.ch-top { display: flex; align-items: center; gap: 11px; }
.ch-avatar {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 12px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: -.02em;
}
.ch-id { min-width: 0; flex: 1; }
.ch-name {
  display: block; font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ch-handle {
  display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 11px;
  color: var(--color-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ch-tag {
  flex: none; border-radius: 999px; padding: 3px 9px;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .1em; text-transform: uppercase;
}
.ch-tag.is-public { background: var(--color-soft); color: var(--color-brand-3); }
.ch-tag.is-vip    { background: #f3edff; color: #5a35e0; }
.ch-tag.is-free   { background: var(--viz-up-soft); color: var(--viz-up); }
.ch-tag.is-yours  { background: #fff3e0; color: #a86d06; }

.ch-foot {
  margin-top: 16px; padding-top: 13px;
  border-top: 1px solid var(--color-line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--color-ink-3);
}
.ch-live { display: inline-flex; align-items: center; gap: 6px; color: var(--viz-up); }
.ch-dot {
  width: 6px; height: 6px; border-radius: 999px; background: currentColor; flex: none;
  animation: ch-blink 2.4s ease-in-out infinite;
}
@keyframes ch-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ============================================================
   19. Numbered steps
   ============================================================ */
.step-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.step {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--color-line);
  background: var(--color-bg-1);
  padding: 28px 24px 26px;
  transition: transform .5s var(--ease-out-expo), border-color .5s, box-shadow .5s;
  overflow: hidden;
}
.step:hover {
  transform: translateY(-3px);
  border-color: var(--color-line-2);
  box-shadow: 0 24px 48px -28px rgb(13 20 78 / .35);
}
.step::after {
  content: "";
  position: absolute; inset-inline: 24px; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--color-action), transparent);
  opacity: 0; transition: opacity .5s;
}
.step:hover::after { opacity: 1; }
.step-num {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--color-soft); color: var(--color-action);
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.step p { margin-top: 9px; font-size: 14.5px; line-height: 1.62; color: var(--color-ink-2); }

/* ============================================================
   20. Trade lifecycle
   ============================================================ */
.lifecycle { display: grid; gap: 2px; }
@media (min-width: 900px) { .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 32px; } }

.lc-step {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--color-line);
}
.lc-step:first-child { border-top: 0; }
@media (min-width: 900px) { .lc-step:nth-child(2) { border-top: 0; } }

.lc-time {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--color-ink-3); padding-top: 2px; letter-spacing: .02em;
}
.lc-step.is-key .lc-time { color: var(--color-brand-2); font-weight: 600; }
.lc-title { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.015em; }
.lc-desc { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.6; color: var(--color-ink-2); }
.lc-desc b { color: var(--color-ink); font-weight: 600; font-family: var(--font-mono); font-size: 12.5px; }

/* ============================================================
   21. Billing switch + duo pricing
   ============================================================ */
.billing-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: var(--color-bg-1);
  box-shadow: 0 1px 2px #0d144e0f, 0 8px 20px -14px #0d144e4d;
}
.bs-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  border-radius: 999px;
  background: var(--color-action);
  box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, 0 8px 20px -10px rgb(47 102 229 / .8);
  transition: transform .45s var(--ease-out-expo), width .45s var(--ease-out-expo);
  width: 0;
}
.bs-opt {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding-inline: 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  color: var(--color-ink-2);
  white-space: nowrap;
  transition: color .35s;
}
.bs-opt:hover { color: var(--color-ink); }
.bs-opt.is-active { color: #fff; }
.bs-save {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .06em;
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--viz-up-soft); color: var(--viz-up);
  transition: background-color .35s, color .35s;
}
.bs-opt.is-active .bs-save { background: rgb(255 255 255 / .22); color: #fff; }

@media (max-width: 520px) {
  .billing-switch { width: 100%; }
  .bs-opt { flex: 1; justify-content: center; padding-inline: 10px; font-size: 13px; }
  .bs-save { display: none; }
}

.price-duo { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .price-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.price-card .pc-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 3px; }
.pc-amount .pc-cur { font-size: 24px; line-height: 1; }
.pc-amount .pc-per { font-size: 14px; font-weight: 400; color: var(--color-ink-3); letter-spacing: 0; }
.pc-equiv {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-ink-3);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
}
.pc-equiv-main { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--color-ink); }
.pc-equiv-save {
  font-family: var(--font-mono); font-size: 10.5px;
  border-radius: 999px; padding: 3px 8px;
  background: var(--viz-up-soft); color: var(--viz-up);
}
.pc-equiv[data-hidden="true"] { visibility: hidden; }
.price-card li b { color: var(--color-ink); font-weight: 600; }
.price-note {
  margin-top: 20px; text-align: center;
  font-size: 12.5px; line-height: 1.6; color: var(--color-ink-3);
  max-width: 44rem; margin-inline: auto;
}

/* ======== INNER PAGES (22-28) ======== */

/* ============================================================
   22. Inner page hero (pricing, features, channels, brokers,
       group admins, about, contact)
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  padding-top: 104px; padding-bottom: 8px;
}
@media (min-width: 768px) { .page-hero { padding-top: clamp(7rem, 13vh, 9rem); padding-bottom: 24px; } }
.page-hero .hero-aura { height: 620px; }
.page-hero-copy { position: relative; z-index: 10; max-width: 48rem; }
.page-hero-title { font-size: clamp(2.3rem, 1rem + 3.4vw, 3.9rem); }
.page-hero-lead { max-width: 42rem; }

.feat-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-jump-link {
  display: inline-flex; align-items: center; height: 38px; padding-inline: 16px;
  border-radius: 999px; border: 1px solid var(--color-line-2);
  background: var(--color-bg-1);
  font-size: 13.5px; letter-spacing: -.01em; color: var(--color-ink-2);
  box-shadow: 0 1px 2px #0d144e0f;
  transition: color .3s, border-color .3s, transform .3s var(--ease-out-expo);
}
.feat-jump-link:hover { color: var(--color-action); border-color: #2f66e573; transform: translateY(-2px); }

/* ============================================================
   23. Plan comparison table
   ============================================================ */
.cmp-wrap {
  border-radius: 20px; border: 1px solid var(--color-line);
  background: var(--color-bg-1); overflow-x: auto;
  box-shadow: var(--panel-shadow);
}
.cmp-table { width: 100%; border-collapse: collapse; text-align: left; }
.cmp-table th, .cmp-table td { padding: 13px 16px; vertical-align: top; }
.cmp-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--color-bg-1);
  border-bottom: 1px solid var(--color-line-2);
  font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; color: var(--color-ink-3);
  white-space: nowrap;
}
.cmp-table thead th:not(:first-child), .cmp-table tbody td { width: 104px; text-align: center; }
@media (min-width: 768px) { .cmp-table thead th:not(:first-child), .cmp-table tbody td { width: 150px; } }
.cmp-head-featured { color: var(--color-action); }
.cmp-table tr.cmp-group th {
  padding-top: 24px; padding-bottom: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--color-brand-2);
  font-weight: 400;
}
.cmp-table tbody tr:not(.cmp-group) { border-top: 1px solid var(--color-line); }
.cmp-table tbody tr:not(.cmp-group):hover { background: var(--color-bg-2); }
.cmp-table tbody th[scope="row"] {
  font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--color-ink-2);
  font-family: var(--font-sans);
}
.cmp-yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px;
  background: var(--viz-up-soft); color: var(--viz-up); }
.cmp-yes svg { width: 13px; height: 13px; }
.cmp-no { color: var(--viz-muted); font-size: 15px; }
.cmp-txt { font-size: 13px; line-height: 1.4; color: var(--color-ink); }
@media (max-width: 520px) {
  .cmp-table th, .cmp-table td { padding: 11px 10px; }
  .cmp-table tbody th[scope="row"] { font-size: 13px; }
  .cmp-table thead th:not(:first-child), .cmp-table tbody td { width: 72px; }
}

/* ============================================================
   24. FAQ accordion
   ============================================================ */
.faq {
  border-radius: 20px; border: 1px solid var(--color-line);
  background: var(--color-bg-1); overflow: hidden;
  box-shadow: var(--panel-shadow);
  max-width: 54rem;
}
.faq-item + .faq-item { border-top: 1px solid var(--color-line); }
.faq-q { margin: 0; }
.faq-btn {
  display: flex; width: 100%; gap: 16px; align-items: flex-start; justify-content: space-between;
  padding: 20px 22px;
  text-align: left; font-size: 15.5px; font-weight: 500; letter-spacing: -.015em; line-height: 1.45;
  color: var(--color-ink);
  transition: color .3s, background-color .3s;
}
.faq-btn:hover { color: var(--color-action); background: var(--color-bg-2); }
.faq-ico {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--color-soft); color: var(--color-action);
  transition: transform .45s var(--ease-out-expo);
}
.faq-ico svg { width: 15px; height: 15px; }
.faq-ico .faq-bar { transform-origin: 12px 12px; transition: opacity .3s, transform .45s var(--ease-out-expo); }
.faq-btn[aria-expanded="true"] .faq-ico { transform: rotate(180deg); }
.faq-btn[aria-expanded="true"] .faq-bar { opacity: 0; transform: scaleY(0); }
.faq-a { padding: 0 22px 20px; animation: faq-open .5s var(--ease-out-expo); }
.faq-a-inner { max-width: 46rem; font-size: 14.5px; line-height: 1.68; color: var(--color-ink-2); }
.faq-a-inner p + p { margin-top: 10px; }
.faq-a-inner a { color: var(--color-action); text-decoration: underline; text-underline-offset: 3px; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }

/* ============================================================
   25. Channels page — parsing
   ============================================================ */
.parse-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .parse-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; } }
.parse-sample {
  border-radius: 18px; border: 1px solid var(--color-line);
  background: var(--panel-bg); padding: 22px;
}
.parse-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--color-ink-3); margin-bottom: 10px;
}
.sig-sample {
  margin: 0; border-radius: 12px; border: 1px solid var(--color-line);
  background: var(--color-bg-2); padding: 14px;
  overflow-x: auto;
}
.sig-sample code {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
  color: var(--color-ink); white-space: pre;
}
.parse-read { display: grid; gap: 1px; }
.parse-read > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-top: 1px solid var(--color-line);
}
.parse-read > div:first-child { border-top: 0; }
.parse-read dt { font-size: 13px; color: var(--color-ink-3); }
.parse-read dd { font-family: var(--font-mono); font-size: 12.5px; color: var(--color-ink); text-align: right; }
.parse-list { display: grid; gap: 14px; align-content: start; }
.parse-item { display: flex; gap: 14px; align-items: flex-start; }
.parse-item .card-icon { margin: 0; flex: none; width: 38px; height: 38px; border-radius: 11px; }
.parse-item h3 { font-size: 16px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.parse-item p { margin-top: 6px; font-size: 14px; line-height: 1.62; color: var(--color-ink-2); }
.parse-item p b { font-family: var(--font-mono); font-size: 12.5px; color: var(--color-ink); font-weight: 500; }

/* ============================================================
   26. Broker directory
   ============================================================ */
.brk-tools { display: grid; gap: 12px; }
@media (min-width: 900px) { .brk-tools { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; } }
.brk-search {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 46px; padding-inline: 16px;
  border-radius: 999px; border: 1px solid var(--color-line-2);
  background: var(--color-bg-1);
  box-shadow: 0 1px 2px #0d144e0f;
  transition: border-color .3s, box-shadow .3s;
}
.brk-search:focus-within { border-color: #2f66e573; box-shadow: 0 0 0 4px #5890f91f; }
.brk-search svg { width: 17px; height: 17px; flex: none; color: var(--color-ink-3); }
.brk-search input { width: 100%; font-size: 14.5px; }
.brk-search input::placeholder { color: var(--color-ink-3); }
.brk-search input::-webkit-search-cancel-button { cursor: pointer; }

.brk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .brk-chips { justify-content: flex-end; } }
.brk-chip {
  height: 38px; padding-inline: 16px; border-radius: 999px;
  border: 1px solid var(--color-line-2); background: var(--color-bg-1);
  font-size: 13.5px; letter-spacing: -.01em; color: var(--color-ink-2);
  transition: color .3s, background-color .3s, border-color .3s;
}
.brk-chip:hover { color: var(--color-action); border-color: #2f66e573; }
.brk-chip.is-active { background: var(--color-action); border-color: var(--color-action); color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, 0 8px 20px -12px rgb(47 102 229 / .8); }

.brk-count { margin-top: 20px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--color-ink-3); }

.brk-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .brk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .brk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.brk-card {
  display: flex; align-items: center; gap: 12px;
  border-radius: 16px; border: 1px solid var(--color-line);
  background: var(--color-bg-1); padding: 14px 16px;
  transition: transform .5s var(--ease-out-expo), border-color .5s, box-shadow .5s;
}
.brk-card:hover { transform: translateY(-3px); border-color: var(--color-line-2);
  box-shadow: 0 24px 48px -28px rgb(13 20 78 / .35); }
.brk-card[hidden] { display: none; }
.brk-mark {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--color-soft); color: var(--color-brand-3);
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: -.02em;
}
.brk-card[data-cat="prop"] .brk-mark { background: #fff3e0; color: #a86d06; }
.brk-body { min-width: 0; flex: 1; }
.brk-name { display: block; font-size: 14.5px; font-weight: 500; letter-spacing: -.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brk-sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--color-ink-3); line-height: 1.4; }
.brk-plats { display: flex; gap: 4px; flex: none; }
.brk-plat {
  border-radius: 999px; padding: 3px 7px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em;
  background: var(--color-bg-2); color: var(--color-ink-3);
}
.brk-empty { margin-top: 24px; font-size: 14.5px; color: var(--color-ink-2); }
.brk-empty a { color: var(--color-action); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   27. About page — is / is not, team
   ============================================================ */
.isnt-list { display: grid; gap: 11px; }
.isnt-list li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.6; color: var(--color-ink-2); }
.isnt-list svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--color-up); }
.isnt-x {
  display: grid; place-items: center; flex: none;
  width: 16px; height: 16px; margin-top: 3px; border-radius: 999px;
  background: #d93c5518; color: var(--color-down); font-size: 12px; line-height: 1;
}

.team-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.team-card {
  border-radius: 20px; border: 1px solid var(--color-line);
  background: var(--color-bg-1); padding: 24px;
  transition: transform .5s var(--ease-out-expo), border-color .5s, box-shadow .5s;
}
.team-card:hover { transform: translateY(-3px); border-color: var(--color-line-2);
  box-shadow: 0 24px 48px -28px rgb(13 20 78 / .35); }
.team-avatar {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--color-soft); color: var(--color-action);
  font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.02em;
}
.team-role { margin-top: 16px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--color-brand-2); }
.team-name { margin-top: 8px; font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.team-bio { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--color-ink-2); }

/* ============================================================
   28. Contact page — form, support channels, status
   ============================================================ */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; } }
.contact-card { padding: 28px; }
.contact-card:hover { transform: none; box-shadow: none; border-color: var(--color-line); }
.contact-side { display: grid; gap: 12px; align-content: start; }
.contact-meta {
  margin-top: 12px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .06em; color: var(--color-brand-2);
}

.contact-form { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 7px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; color: var(--color-ink); }
.field-opt { color: var(--color-ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; border-radius: 12px; border: 1px solid var(--color-line-2);
  background: var(--color-bg-1); padding: 12px 14px;
  font-size: 14.5px; line-height: 1.5; color: var(--color-ink);
  box-shadow: 0 1px 2px #0d144e0d;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6985' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 38px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #2f66e573; box-shadow: 0 0 0 4px #5890f91f;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--color-action); outline-offset: 2px; }
.field-hint { font-size: 12.5px; line-height: 1.5; color: var(--color-ink-3); }
.field-check { display: flex; align-items: center; gap: 10px; }
.field-check input { width: 18px; height: 18px; flex: none; padding: 0; accent-color: var(--color-action); cursor: pointer; }
.field-check label { font-weight: 400; color: var(--color-ink-2); font-size: 14px; }

.status-row { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .status-row { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 32px; } }
.status-list { display: grid; gap: 1px; }
.status-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--color-line);
  font-family: var(--font-mono); font-size: 11.5px;
}
.status-list li:first-child { border-top: 0; }
.status-note { color: var(--color-ink-3); letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; }

/* ============================================================
   29. Spotlight cards + feature suite ("Simplified complexity")
   ============================================================ */

/* cursor-following border glow, as on the reference site */
.spotlight { isolation: isolate; position: relative; }
.spotlight::before,
.spotlight::after {
  content: "";
  border-radius: inherit;
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s var(--ease-out-expo);
}
.spotlight::before {
  z-index: 2;
  padding: 1px;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), #5890f98c, transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.spotlight::after {
  z-index: 0;
  background: radial-gradient(600px circle at var(--mx, -999px) var(--my, -999px), #5890f912, transparent 40%);
}
.spotlight:hover::before,
.spotlight:hover::after { opacity: 1; }

.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size .5s var(--ease-out-expo);
  padding-bottom: 2px;
}
a:hover .link-underline { background-size: 100% 1px; }

.suite-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 32px;
}
.view-all {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  color: var(--color-brand-2);
  transition: color .3s;
}
.view-all:hover { color: var(--color-ink); }
.va-orb {
  position: relative; display: grid; place-items: center;
  width: 24px; height: 24px; overflow: hidden;
  border-radius: 999px; border: 1px solid currentColor;
  opacity: .9;
}
.va-orb svg { width: 14px; height: 14px; }
.va-orb .ico-a { transition: transform .5s var(--ease-out-expo); }
.va-orb .ico-b { position: absolute; transform: translateX(-180%); transition: transform .5s var(--ease-out-expo); }
.view-all:hover .va-orb .ico-a { transform: translateX(180%); }
.view-all:hover .va-orb .ico-b { transform: translateX(0); }

/* rail: horizontal snap scroller on phones, grid from md */
.rail {
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-inline: -20px;
  padding-inline: 20px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 86%; scroll-snap-align: center; min-width: 0; }
@media (min-width: 768px) {
  .rail {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible; margin-inline: 0; padding-inline: 0;
  }
  .rail > * { flex: initial; }
}
@media (min-width: 1200px) { .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.sp-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: var(--panel-bg);
  border: 1px solid var(--color-line);
  box-shadow: var(--panel-shadow);
}
.sp-copy { position: relative; z-index: 1; padding: 24px 24px 0; }
@media (min-width: 640px) { .sp-copy { padding: 28px 28px 0; } }
.sp-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--color-line);
  background: var(--color-bg);
  color: var(--color-ink-2);
  transition: color .5s, border-color .5s;
}
.sp-icon svg { width: 20px; height: 20px; }
.sp-card:hover .sp-icon { color: var(--color-action); border-color: rgb(47 102 229 / .4); }
.sp-card h3 { margin-top: 20px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.sp-card > .sp-copy p { margin-top: 8px; font-size: 15px; line-height: 1.625; color: var(--color-ink-2); }

.sp-stage {
  position: relative; z-index: 1;
  margin-top: auto;
  min-height: 200px;
  color: var(--color-action);
}
.sp-stage-pad { padding: 20px 24px 24px; }
@media (min-width: 640px) { .sp-stage-pad { padding: 20px 28px 28px; } }
.sp-stage > svg { width: 100%; height: 200px; display: block; }

/* floating chips */
.sp-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: var(--color-bg-1);
  box-shadow: 0 10px 24px -14px rgb(13 20 78 / .5);
  padding: 7px 13px;
  font-size: 12px; color: var(--color-ink-2);
  white-space: nowrap; max-width: calc(100% - 32px);
  overflow: hidden; text-overflow: ellipsis;
}
.sp-chip b { color: var(--color-ink); font-weight: 500; font-family: var(--font-mono); font-size: 11px; }
.sp-chip-tv { left: 20px; bottom: 18px; }
.sp-chip-trail { right: 20px; bottom: 18px; }
.chip-dot {
  width: 6px; height: 6px; border-radius: 999px; flex: none;
  background: var(--color-action);
  animation: relay-pulse 1.8s ease-out infinite;
}
.chip-dot.is-up { background: var(--viz-up); }

.sp-legend {
  position: absolute; left: 20px; top: 12px;
  display: flex; gap: 14px;
  font-size: 11px; color: var(--color-ink-3);
}
.sp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-swatch { width: 14px; height: 2px; border-radius: 2px; display: inline-block; }
.lg-swatch.is-dash {
  background: repeating-linear-gradient(90deg, var(--viz-up) 0 4px, transparent 4px 7px);
}

/* --- viz 1: line draw --- */
.viz-tv .tv-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .viz-tv .tv-line {
  animation: viz-draw 1.5s var(--ease-out-expo) .15s forwards;
}
.viz-tv .tv-dot { opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-in .viz-tv .tv-dot {
  animation: viz-pop .5s var(--ease-out-expo) forwards;
  animation-delay: calc(.45s + var(--i) * .16s);
}
@keyframes viz-draw { to { stroke-dashoffset: 0; } }
@keyframes viz-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

/* --- viz 2: entry / target ladder --- */
.ladder { display: grid; gap: 9px; }
.lad-row {
  display: grid; grid-template-columns: 66px 1fr 38px;
  align-items: center; gap: 10px;
  font-size: 11.5px; color: var(--color-ink-3);
}
.lad-k { font-family: var(--font-mono); font-size: 10.5px; white-space: nowrap; }
.lad-v { text-align: right; font-family: var(--font-mono); font-size: 10.5px; color: var(--color-ink-2); }
.lad-bar {
  height: 10px; border-radius: 999px;
  background: var(--viz-accent-faint);
  position: relative; overflow: hidden;
}
.lad-bar::after {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: 0; border-radius: 999px;
  background: var(--color-action);
}
.is-in .lad-bar::after {
  animation: lad-grow .9s var(--ease-out-expo) forwards;
  animation-delay: calc(.1s + var(--i) * .09s);
}
.lad-row.is-tp .lad-bar::after { background: var(--viz-up); }
.lad-row.is-sl .lad-bar::after { background: var(--viz-down); }
.lad-row.is-entry .lad-bar::after { background: var(--color-action); }
@keyframes lad-grow { to { width: var(--w); } }

/* --- viz 3: trailing stop --- */
.viz-trail .tr-price,
.viz-trail .tr-stop { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .viz-trail .tr-price { animation: viz-draw 1.4s var(--ease-out-expo) .1s forwards; }
.is-in .viz-trail .tr-stop  { animation: viz-draw 1.4s var(--ease-out-expo) .45s forwards; }
.viz-trail .tr-hit { opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-in .viz-trail .tr-hit { animation: viz-pop .5s var(--ease-out-expo) 1.7s forwards; }

/* --- viz 4: terminal --- */
.term {
  border-radius: 16px; border: 1px solid var(--color-line);
  background: var(--color-bg); padding: 14px;
  display: grid; gap: 11px;
}
.term-tabs {
  display: inline-flex; gap: 2px; padding: 3px;
  border-radius: 999px; background: var(--color-bg-2);
  font-size: 11px; width: max-content;
}
.term-tabs span { padding: 4px 12px; border-radius: 999px; color: var(--color-ink-3); }
.term-tabs .is-on { background: var(--color-bg-1); color: var(--color-ink); box-shadow: 0 1px 2px #0d144e14; }
.term-pair { font-size: 13px; color: var(--color-ink-2); }
.term-pair b { color: var(--color-ink); font-weight: 600; }
.term-pair .is-buy { color: var(--viz-up); font-weight: 600; }
.term-field { display: grid; grid-template-columns: 54px 1fr 32px; align-items: center; gap: 10px; }
.tf-label { font-size: 11px; color: var(--color-ink-3); }
.tf-val { font-family: var(--font-mono); font-size: 10.5px; color: var(--color-ink-2); text-align: right; }
.tf-track { height: 6px; border-radius: 999px; background: var(--viz-accent-faint); position: relative; overflow: hidden; }
.tf-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: var(--color-action); }
.is-in .tf-fill { animation: lad-grow 1s var(--ease-out-expo) .35s forwards; }
.term-row { display: flex; flex-wrap: wrap; gap: 8px; }
.term-pill {
  border-radius: 999px; padding: 5px 11px;
  font-size: 11px; color: var(--color-ink-2);
  border: 1px solid var(--color-line);
}
.term-pill b { font-family: var(--font-mono); font-size: 10.5px; }
.term-pill.is-up { color: var(--viz-up); border-color: rgb(26 158 102 / .3); background: var(--viz-up-soft); }
.term-pill.is-down { color: var(--viz-down); border-color: rgb(224 65 91 / .28); background: rgb(224 65 91 / .1); }
.term-cta {
  margin-top: 2px; border-radius: 999px;
  background: var(--color-action); color: #fff;
  text-align: center; padding: 9px; font-size: 13px; font-weight: 500;
  box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, 0 8px 20px -10px rgb(47 102 229 / .8);
}
.term-ok {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--viz-up);
  opacity: 0;
}
.term-ok svg { width: 13px; height: 13px; }
.is-in .term-ok { animation: viz-fade-up .6s var(--ease-out-expo) 1.1s forwards; }
@keyframes viz-fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --- viz 5: safe --- */
.safe-wrap { display: grid; place-items: center; gap: 12px; text-align: center; padding-block: 10px; }
.safe-ring {
  position: relative; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 999px;
  background: var(--color-soft); color: var(--color-action);
}
.safe-ring svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.safe-pulse {
  position: absolute; inset: 0; border-radius: 999px;
  border: 1px solid var(--color-action); opacity: .55;
  animation: safe-ping 2.6s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes safe-ping { 0% { transform: scale(.85); opacity: .6; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.safe-label { font-size: 14px; font-weight: 500; color: var(--color-ink); }
.safe-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.safe-tags span {
  border-radius: 999px; border: 1px solid var(--color-line);
  padding: 4px 10px; font-size: 11px; color: var(--color-ink-3);
}

/* --- viz 6: allocation --- */
.alloc { display: grid; gap: 12px; }
.alloc-row { display: grid; grid-template-columns: 68px 1fr 36px; align-items: center; gap: 10px; }
.al-k { font-family: var(--font-mono); font-size: 11px; color: var(--color-ink-2); }
.al-v { text-align: right; font-size: 11.5px; color: var(--color-ink-3); }
.al-bar { height: 8px; border-radius: 999px; background: var(--viz-accent-faint); position: relative; overflow: hidden; }
.al-bar::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 0;
  border-radius: 999px; background: var(--color-action);
}
.alloc-row:nth-child(2) .al-bar::after { background: var(--viz-accent); }
.alloc-row:nth-child(3) .al-bar::after { background: #8fb4ff; }
.alloc-row:nth-child(4) .al-bar::after { background: #b9ceff; }
.is-in .al-bar::after {
  animation: lad-grow 1s var(--ease-out-expo) forwards;
  animation-delay: calc(.15s + var(--i) * .1s);
}

/* --- support strip --- */
.support-strip {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 24px;
  border-radius: 16px; border: 1px solid var(--color-line);
  background: var(--color-bg-1);
  padding: 16px 20px;
}
.ss-lead { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.ss-lead b { font-weight: 500; }
.ss-icon {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--color-soft); color: var(--color-action);
}
.ss-icon svg { width: 18px; height: 18px; }
.ss-links { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ss-links a {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; border: 1px solid var(--color-line);
  padding: 6px 14px; font-size: 13.5px; color: var(--color-ink-2);
  transition: border-color .3s, color .3s;
}
.ss-links a:hover { border-color: rgb(47 102 229 / .4); color: var(--color-ink); }
.ss-links svg { width: 16px; height: 16px; color: var(--color-action); }

/* ============================================================
   30. Centred pricing header (reference-site layout)
   ============================================================ */
.pricing-head { max-width: 46rem; margin-inline: auto; text-align: center; }
.pricing-sub {
  margin-top: 24px; margin-inline: auto; max-width: 34rem;
  font-size: 17px; line-height: 1.625; color: var(--color-ink-2);
  text-wrap: pretty;
}
.pricing-controls {
  margin-top: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.billing-note { min-height: 20px; font-size: 13px; color: var(--color-ink-3); text-align: center; }
.billing-note .text-up { color: var(--viz-up); }

.plan-included {
  margin-top: 32px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 24px;
  max-width: 56rem;
  font-size: 13.5px; color: var(--color-ink-2);
  text-align: center;
}
.pi-label { width: 100%; color: var(--color-ink-3); }
.pi-item { display: inline-flex; align-items: center; gap: 6px; }
.pi-item svg { width: 14px; height: 14px; flex: none; color: var(--viz-up); }

.price-duo { max-width: 860px; margin-inline: auto; margin-top: 40px; }
.pc-tagline { margin-top: 6px; font-size: 14.5px; color: var(--color-ink-3); }
.price-card .pc-amount { margin-top: 26px; }
.price-card > ul { margin-top: 20px; }
.price-card.spotlight { border-radius: 22px; }

/* ============================================================
   31. Two-column split (copy left / visual right)
   ============================================================ */
.split-2 { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
@media (min-width: 1024px) { .split-2 { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* numbered flow steps */
.flow-steps { margin-top: 28px; display: grid; }
.flow-steps li {
  display: flex; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line);
}
.flow-steps li:first-child { border-top: 1px solid var(--color-line); }
.fs-icon {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 12px;
  background: rgb(13 20 78 / .06); color: var(--color-brand-3);
}
.fs-icon svg { width: 17px; height: 17px; }
.flow-steps h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.fs-num {
  margin-right: 8px; font-family: var(--font-mono);
  font-size: 12px; font-weight: 400; color: var(--color-brand-2);
}
.flow-steps p { margin-top: 4px; font-size: 14.5px; line-height: 1.625; color: var(--color-ink-2); }
.fs-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.fs-tags span {
  border-radius: 999px; border: 1px solid var(--color-line);
  background: var(--color-bg-1);
  padding: 3px 10px; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-ink-3);
}

/* ============================================================
   32. Relay flow animation (channels -> RelayFX -> brokers)
   ============================================================ */
.relay-flow-wrap { display: grid; place-items: center; }
.relay-flow {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 520 / 580;
  container-type: inline-size;
}
.rf-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.rf-wire {
  fill: none;
  stroke: var(--color-line-2);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 5 6;
}
.rf-pulse {
  fill: none;
  stroke: var(--color-action);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 26 520;
  stroke-dashoffset: 546;
  filter: drop-shadow(0 0 5px rgb(47 102 229 / .55));
  animation: rf-travel 3.2s linear infinite;
  animation-delay: calc(var(--i) * .26s);
}
.rf-pulse.is-out { stroke: var(--viz-up); filter: drop-shadow(0 0 5px rgb(26 158 102 / .5)); animation-delay: calc(1.2s + (var(--i) - 3) * .26s); }
@keyframes rf-travel { from { stroke-dashoffset: 546; } to { stroke-dashoffset: 0; } }

/* nodes are positioned in the same 520x580 coordinate space as the wires */
.rf-node, .rf-hub, .rf-label {
  position: absolute;
  left: calc(var(--x) / 520 * 100%);
  top: calc(var(--y) / 580 * 100%);
  transform: translate(-50%, -50%);
}

.rf-node {
  display: flex; align-items: center; gap: 8px;
  border-radius: 14px;
  border: 1px solid var(--color-line);
  background: var(--color-bg-1);
  box-shadow: 0 10px 26px -18px rgb(13 20 78 / .55);
  padding: 8px 11px;
  white-space: nowrap;
  animation: rf-bob 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * .35s);
}
@keyframes rf-bob { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 5px)); } }

.rf-tg {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 8px;
  background: #e8f1ff; color: #2aabee;
}
.rf-tg svg { width: 15px; height: 15px; }
.rf-ch-text { display: grid; line-height: 1.25; }
.rf-ch-text b { font-size: 12px; font-weight: 500; color: var(--color-ink); }
.rf-ch-text i {
  font-style: normal; font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-ink-3);
}

.rf-bk { flex-direction: column; align-items: center; gap: 1px; padding: 9px 14px; }
.rf-bk b { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: -.02em; color: var(--color-ink); }
.rf-bk i {
  font-style: normal; font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .06em; color: var(--color-ink-3);
}

/* hub */
.rf-hub { width: 112px; height: 112px; display: grid; place-items: center; }
.rf-hub-inner {
  position: relative; z-index: 2;
  display: grid; place-items: center; gap: 2px;
  width: 112px; height: 112px;
  border-radius: 999px;
  background: var(--color-bg-1);
  border: 1px solid rgb(47 102 229 / .35);
  box-shadow: 0 18px 44px -22px rgb(47 102 229 / .75), 0 0 0 8px rgb(47 102 229 / .05);
}
.rf-hub-mark { width: 46px; height: 32px; }
.rf-hub-name {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: -.03em; color: var(--color-ink); line-height: 1;
}
.rf-hub-name span { color: var(--color-action); }
.rf-hub-ring {
  position: absolute; inset: 0; border-radius: 999px;
  border: 1px solid var(--color-action); opacity: .5;
  animation: rf-ping 3s cubic-bezier(0, 0, .2, 1) infinite;
}
.rf-hub-ring.is-b { animation-delay: 1.5s; }
@keyframes rf-ping { 0% { transform: scale(.92); opacity: .55; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

.rf-hub-chip {
  position: absolute; z-index: 3;
  left: 50%; bottom: -14px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; border: 1px solid var(--color-line);
  background: var(--color-bg-1);
  padding: 4px 11px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .06em; color: var(--color-action);
  box-shadow: 0 8px 20px -14px rgb(13 20 78 / .5);
}

.rf-label {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-ink-3); white-space: nowrap;
}
.rf-label-top { left: 50%; top: 2.4%; }
.rf-label-bottom { left: 50%; top: 95.5%; }

/* Three channel chips sit on a 520-unit row, so each may use ~150 units before it
   collides with its neighbour. Stay compact by default and only grow when there is room. */
.rf-node { padding: 6px 8px; gap: 6px; border-radius: 11px; }
.rf-tg { width: 20px; height: 20px; border-radius: 6px; }
.rf-tg svg { width: 12px; height: 12px; }
.rf-ch-text b { font-size: 10.5px; }
.rf-ch-text i { font-size: 7.5px; }
.rf-bk { padding: 7px 11px; }
.rf-bk b { font-size: 11.5px; }
.rf-bk i { font-size: 7.5px; }
.rf-hub, .rf-hub-inner { width: 88px; height: 88px; }
.rf-hub-mark { width: 36px; height: 25px; }
.rf-hub-name { font-size: 10.5px; }

@container (min-width: 470px) {
  .rf-node { padding: 8px 11px; gap: 8px; border-radius: 14px; }
  .rf-tg { width: 26px; height: 26px; border-radius: 8px; }
  .rf-tg svg { width: 15px; height: 15px; }
  .rf-ch-text b { font-size: 12px; }
  .rf-ch-text i { font-size: 9px; }
  .rf-bk { padding: 9px 14px; }
  .rf-bk b { font-size: 13px; }
  .rf-bk i { font-size: 9px; }
  .rf-hub, .rf-hub-inner { width: 112px; height: 112px; }
  .rf-hub-mark { width: 46px; height: 32px; }
  .rf-hub-name { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .rf-pulse { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; opacity: .5; }
  .rf-node { animation: none; }
  .rf-hub-ring { animation: none; opacity: .25; }
}

/* ============================================================
   33. iPhone mockup
   ============================================================ */
.phone-wrap { position: relative; display: grid; place-items: center; padding-block: 8px 28px; }
@media (min-width: 1024px) { .phone-wrap { padding-bottom: 0; align-self: end; } }

.phone {
  position: relative;
  width: 268px;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #2b3566 0%, #141c47 42%, #0a1030 100%);
  box-shadow:
    0 0 0 1.5px rgb(255 255 255 / .14),
    inset 0 1px 0 rgb(255 255 255 / .22),
    0 50px 90px -40px rgb(0 0 0 / .75);
}
@media (min-width: 640px) { .phone { width: 290px; } }

.phone-island {
  position: absolute; z-index: 3;
  left: 50%; top: 21px; transform: translateX(-50%);
  width: 88px; height: 24px; border-radius: 999px;
  background: #05080f;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06);
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: linear-gradient(180deg, #0e1646 0%, #0b1138 55%, #090e2e 100%);
  display: flex; flex-direction: column;
  padding: 0 14px 10px;
  color: #eef1ff;
}

.ps-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px 0; font-size: 11.5px; font-weight: 600;
}
.ps-time { letter-spacing: -.02em; }
.ps-status { display: inline-flex; align-items: center; gap: 5px; color: #eef1ff; }
.ps-status svg { height: 10px; width: auto; }

.ps-head { display: flex; align-items: center; gap: 9px; padding-top: 22px; }
.ps-avatar {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 999px;
  background: linear-gradient(140deg, #3b82f6, #00c2ff);
  font-size: 12px; font-weight: 600; color: #06102e;
}
.ps-hello { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.ps-hello b { font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
.ps-hello i { font-style: normal; font-size: 9.5px; color: #8e98c9; font-family: var(--font-mono); }
.ps-bell { position: relative; flex: none; color: #c3cbea; }
.ps-bell svg { width: 17px; height: 17px; }
.ps-dot {
  position: absolute; top: -1px; right: -1px;
  width: 7px; height: 7px; border-radius: 999px;
  background: #3ee09a; border: 1.5px solid #0b1138;
}

.ps-balance {
  margin-top: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(255 255 255 / .09), rgb(255 255 255 / .04));
  border: 1px solid rgb(150 165 255 / .18);
  padding: 14px 14px 0;
  overflow: hidden;
}
.ps-label { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: #8e98c9; }
.ps-value { display: block; margin-top: 5px; font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: -.04em; }
.ps-delta {
  display: inline-flex; align-items: center; gap: 3px; margin-top: 5px;
  font-size: 10.5px; font-weight: 500; color: #3ee09a;
}
.ps-delta svg { width: 11px; height: 11px; }
.ps-spark { display: block; width: calc(100% + 28px); margin: 6px -14px -1px; height: 54px; }
.ps-spark-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .ps-spark-line { animation: viz-draw 1.8s var(--ease-out-expo) .3s forwards; }

.ps-section { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-inline: 2px; }
.ps-sec-title { font-size: 11.5px; font-weight: 600; letter-spacing: -.01em; }
.ps-sec-more {
  font-family: var(--font-mono); font-size: 9px; color: #8e98c9;
  border: 1px solid rgb(150 165 255 / .25); border-radius: 999px; padding: 1px 7px;
}

.ps-trade {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 9px;
  padding: 9px 2px;
  border-bottom: 1px solid rgb(150 165 255 / .12);
}
.ps-badge {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 22px; border-radius: 7px;
  font-family: var(--font-mono); font-size: 8px; font-weight: 600;
}
.ps-badge.is-buy { background: rgb(62 224 154 / .16); color: #3ee09a; }
.ps-badge.is-sell { background: rgb(255 122 138 / .16); color: #ff7a8a; }
.ps-trade-mid { display: grid; line-height: 1.3; min-width: 0; }
.ps-trade-mid b { font-size: 11.5px; font-weight: 500; }
.ps-trade-mid i { font-style: normal; font-family: var(--font-mono); font-size: 8.5px; color: #8e98c9; }
.ps-trade-end { display: grid; line-height: 1.3; text-align: right; }
.ps-trade-end b { font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.ps-trade-end b.up { color: #3ee09a; }
.ps-trade-end b.down { color: #ff7a8a; }
.ps-trade-end i { font-style: normal; font-size: 8.5px; color: #8e98c9; }

.ps-tabbar {
  margin-top: auto; padding-top: 12px;
  display: flex; align-items: center; justify-content: space-around;
  border-top: 1px solid rgb(150 165 255 / .14);
  color: #6f7aad;
}
.ps-tabbar svg { width: 17px; height: 17px; }
.ps-tabbar .is-on { color: #6f9dff; }

.float-phone { animation: float-bob 7s ease-in-out infinite; }

.phone-toast {
  position: absolute; z-index: 4;
  left: 50%; bottom: 8%;
  transform: translateX(-50%);
  width: min(290px, 92%);
  display: flex; align-items: center; gap: 11px;
  border-radius: 16px;
  padding: 11px 13px;
  background: rgb(255 255 255 / .94);
  border: 1px solid rgb(255 255 255 / .6);
  box-shadow: 0 24px 50px -22px rgb(0 0 0 / .6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
@media (min-width: 1024px) { .phone-toast { left: auto; right: -6%; bottom: 16%; transform: none; } }
.pt-icon {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 10px;
  background: #eef3ff;
}
.pt-icon svg { width: 22px; height: 16px; }
.pt-body { display: grid; line-height: 1.3; min-width: 0; }
.pt-body b { font-size: 12px; font-weight: 600; color: #0d144e; letter-spacing: -.01em; }
.pt-body i { font-style: normal; font-size: 10.5px; color: #4a5475; }
.float-toast { animation: float-bob 7s ease-in-out infinite reverse; }

.app-quote {
  margin-top: 40px; max-width: 30rem;
  border-radius: 16px; border: 1px solid var(--color-line);
  background: rgb(255 255 255 / .06); padding: 20px;
}
.app-quote blockquote { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--color-ink-2); }
.app-quote figcaption { margin-top: 8px; font-size: 13px; color: var(--color-ink-3); }

@media (min-width: 1024px) {
  .dark-island .island-grid > div:first-child { padding-block: 64px; }
}

/* ============================================================
   34. Footer social row
   ============================================================ */
.footer-social { margin-top: 24px; display: flex; gap: 8px; }
.footer-social a {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--color-navy); color: #fff;
  transition: transform .3s, background-color .3s;
}
.footer-social a:hover { transform: translateY(-2px); background: var(--color-action); }
.footer-social svg { width: 16px; height: 16px; }

/* ============================================================
   35. Coming soon page
   ============================================================ */
.cs-main { position: relative; min-height: 100vh; display: grid; align-items: center; overflow: hidden; }
.cs-inner { position: relative; z-index: 2; text-align: center; padding-block: 140px 80px; }
.cs-icon {
  display: grid; place-items: center; margin-inline: auto;
  width: 84px; height: 84px; border-radius: 24px;
  background: var(--color-bg-1);
  border: 1px solid var(--color-line);
  box-shadow: 0 30px 60px -30px rgb(13 20 78 / .5);
}
.cs-icon svg { width: 52px; height: 38px; }
.cs-title { margin-top: 28px; }
.cs-sub { margin-top: 20px; margin-inline: auto; max-width: 36rem; font-size: 17px; line-height: 1.625; color: var(--color-ink-2); }
.cs-stores { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cs-store {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 12px; border: 1px dashed var(--color-line-2);
  background: var(--color-bg-1);
  padding: 11px 18px; color: var(--color-ink-3);
  font-size: 14px;
}
.cs-store svg { width: 20px; height: 20px; }
.cs-store b { color: var(--color-ink); font-weight: 500; }
.cs-form {
  margin-top: 36px; margin-inline: auto; max-width: 440px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cs-form input {
  flex: 1 1 220px; min-width: 0;
  height: 52px; padding-inline: 20px;
  border-radius: 999px; border: 1px solid var(--color-line-2);
  background: var(--color-bg-1); color: var(--color-ink);
  font-size: 15px;
}
.cs-form input::placeholder { color: var(--color-ink-3); }
.cs-form input:focus { outline: 2px solid var(--color-action); outline-offset: 2px; }
.cs-note { margin-top: 14px; font-size: 12.5px; color: var(--color-ink-3); }
.cs-ok {
  margin-top: 14px; font-size: 13.5px; color: var(--viz-up);
  display: none; align-items: center; justify-content: center; gap: 7px;
}
.cs-ok[data-on="true"] { display: flex; }
.cs-ok svg { width: 15px; height: 15px; }
.cs-back { margin-top: 36px; display: inline-flex; }

/* ============================================================
   36. v4 — matched to the reference site's measured values
   ============================================================ */

/* ---- 36a. Pricing: 54px figure, dark featured card ---- */
.price-card .pc-amount { font-size: 54px; letter-spacing: -.04em; line-height: 1; }
.pc-amount .pc-cur { font-size: 32px; line-height: 1; }
.price-card .pc-value { font-weight: 500; }
.price-card { border-radius: 28px; padding: 24px; }
@media (min-width: 640px) { .price-card { padding: 28px; } }
@media (min-width: 768px) { .price-card { padding: 32px; } }
.price-card.spotlight { border-radius: 28px; }

/* featured plan: navy card with a blue glow from the top edge */
.price-card.featured {
  background:
    radial-gradient(120% 80% at 50% 0%, rgb(111 157 255 / .2), rgb(0 0 0 / 0) 60%),
    linear-gradient(rgb(20 28 92), rgb(13 20 78));
  border-color: transparent;
  box-shadow: inset 0 1px 0 #ffffff12, 0 40px 90px -40px rgb(13 20 78 / .8);
}
.price-card.featured .pc-name,
.price-card.featured .pc-amount { color: #f2f4ff; }
.price-card.featured .pc-tagline { color: var(--isl-ink-3); }
.price-card.featured .pc-per { color: var(--isl-ink-3); }
.price-card.featured li { color: var(--isl-ink-2); }
.price-card.featured li b { color: #f2f4ff; }
.price-card.featured li svg { color: var(--isl-accent); }
.price-card.featured .pc-equiv { color: var(--isl-ink-3); }
.price-card.featured .pc-equiv-main { color: #f2f4ff; }
.price-card.featured .pc-equiv-save { background: rgb(62 224 154 / .16); color: #3ee09a; }
.price-card.featured .price-tag { background: rgb(255 255 255 / .12); color: #dbe5ff; }
.price-card.featured::before {
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), #8fb4ffcc, transparent 45%);
}

/* animated conic rim, as on the reference featured plan */
.price-card.featured::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg),
    transparent 0deg, rgb(143 180 255 / .75) 40deg, transparent 110deg,
    transparent 180deg, rgb(143 180 255 / .45) 220deg, transparent 300deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  animation: conic-spin 7s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes conic-spin { to { --angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .price-card.featured::after { animation: none; } }

/* ---- 36b. Section rhythm at the tail of the page ---- */
/* reference: pricing pb 48 | admins pt 0 pb 16 | final CTA pt 16 pb 56 (md 24 / 80) */
.admins-section { padding-top: 0; padding-bottom: 16px; }
.final-cta-section { padding-top: 16px; padding-bottom: 56px; }
@media (min-width: 768px) {
  .final-cta-section { padding-top: 24px; padding-bottom: 80px; }
}

/* ---- 36c. Group admin: soft blue panel + white tiles ---- */
.admin-box {
  position: relative; overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgb(47 102 229 / .1);
  background: var(--color-soft);
  padding: 32px 20px;
}
@media (min-width: 640px) { .admin-box { border-radius: 36px; padding: 32px; } }
@media (min-width: 768px) { .admin-box { padding: 56px; } }

.admin-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .admin-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }

.admin-copy .h-sub { margin-top: 20px; }
.admin-lead {
  margin-top: 20px;
  max-width: 34rem;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink-2);
  text-wrap: pretty;
}
@media (min-width: 768px) { .admin-lead { margin-top: 24px; font-size: 17px; } }
.admin-cta { margin-top: 32px; }

.admin-tiles { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .admin-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.admin-tile {
  display: flex; align-items: center; gap: 12px;
  border-radius: 16px;
  border: 1px solid var(--color-line);
  background: var(--color-bg-1);
  padding: 16px;
  box-shadow: 0 12px 30px -22px rgb(13 20 78 / .45);
  transition: transform .45s var(--ease-out-expo), border-color .45s, box-shadow .45s;
}
.admin-tile:hover {
  transform: translateY(-3px);
  border-color: rgb(47 102 229 / .3);
  box-shadow: 0 20px 40px -24px rgb(13 20 78 / .5);
}
.at-icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--color-soft); color: var(--color-action);
  transition: transform .45s var(--ease-out-expo);
}
.admin-tile:hover .at-icon { transform: scale(1.08); }
.at-icon svg { width: 19px; height: 19px; }
.at-text { display: grid; line-height: 1.35; min-width: 0; }
.at-text b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; color: var(--color-ink); }
.at-text i { font-style: normal; font-size: 12.5px; color: var(--color-ink-3); }

/* ---- 36d. Final CTA panel ---- */
.final-cta {
  position: relative; overflow: hidden;
  border-radius: 40px;
  background: var(--color-bg);
  box-shadow: 0 50px 120px -50px rgb(13 20 78 / .7);
  padding: 80px 20px 96px;
  text-align: center;
}
@media (min-width: 768px) { .final-cta { padding: 112px 40px 128px; } }
.final-cta-inner { position: relative; z-index: 1; }
.final-cta-sub {
  margin-top: 20px; margin-inline: auto; max-width: 34rem;
  font-size: 17px; line-height: 1.625; color: var(--color-ink-2);
  text-wrap: pretty;
}
.final-cta-actions { margin-top: 32px; display: flex; justify-content: center; }
.final-cta-note {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  font-size: 13.5px; color: var(--color-ink-3);
}
.final-cta-note span { display: inline-flex; align-items: center; gap: 6px; }
.final-cta-note svg { width: 14px; height: 14px; color: var(--color-up); }

/* ---- 36e. Phone geometry matched to the reference (240px / ratio 0.478) ---- */
.phone { width: 240px; aspect-ratio: 240 / 502; border-radius: 40px; padding: 9px; }
@media (min-width: 768px) { .phone { width: 280px; border-radius: 46px; padding: 10px; } }
.phone-screen { border-radius: 32px; padding: 0 12px 8px; }
@media (min-width: 768px) { .phone-screen { border-radius: 37px; padding: 0 14px 10px; } }
.phone-island { top: 18px; width: 80px; height: 22px; }
@media (min-width: 768px) { .phone-island { top: 21px; width: 88px; height: 24px; } }
.float-phone { animation-duration: 8s; }
.phone { filter: drop-shadow(0 40px 60px rgb(0 0 0 / .45)); }

/* a little tighter inside the smaller frame */
.ps-value { font-size: 23px; }
@media (min-width: 768px) { .ps-value { font-size: 25px; } }
.ps-balance { margin-top: 14px; padding: 12px 12px 0; border-radius: 16px; }
.ps-spark { height: 48px; width: calc(100% + 24px); margin-inline: -12px; }
.ps-trade { padding: 8px 2px; }
.ps-head { padding-top: 20px; }

/* ---- 36f. Session & news filter visual ---- */
.sess { display: grid; gap: 10px; }
.sess-row { display: grid; grid-template-columns: 58px 1fr 28px; align-items: center; gap: 10px; }
.sess-k { font-family: var(--font-mono); font-size: 10.5px; color: var(--color-ink-3); }
.sess-track {
  position: relative; height: 12px; border-radius: 999px;
  background: var(--viz-accent-faint);
}
.sess-fill {
  position: absolute; top: 0; bottom: 0;
  left: var(--l); width: 0; border-radius: 999px;
}
.sess-fill.is-on { background: var(--color-action); }
.sess-fill.is-off { background: var(--viz-muted); }
.is-in .sess-fill {
  animation: sess-grow .9s var(--ease-out-expo) forwards;
  animation-delay: calc(.15s + var(--i, 0) * .12s);
}
@keyframes sess-grow { to { width: var(--w); } }
.sess-news { position: absolute; top: 50%; left: var(--l); transform: translate(-50%, -50%); }
.sess-news i {
  display: block; width: 10px; height: 10px; border-radius: 999px;
  background: var(--viz-down); border: 2px solid var(--color-bg-1);
  box-shadow: 0 0 0 0 rgb(224 65 91 / .5);
  animation: news-ping 2s ease-out infinite 1.1s;
}
@keyframes news-ping {
  0% { box-shadow: 0 0 0 0 rgb(224 65 91 / .5); }
  70% { box-shadow: 0 0 0 9px rgb(224 65 91 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(224 65 91 / 0); }
}
.sess-v { font-family: var(--font-mono); font-size: 9.5px; text-align: right; }
.sess-v.is-on { color: var(--viz-up); }
.sess-v.is-off { color: var(--color-ink-3); }
.sess-hours {
  display: flex; justify-content: space-between;
  padding-left: 68px; margin-top: 2px;
  font-family: var(--font-mono); font-size: 8.5px; color: var(--viz-muted);
}
.sess-note {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--color-ink-2);
}
.sess-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--viz-down); flex: none; }

/* ---- 36g. Backtest visual ---- */
.sp-stage .viz-bt { height: 150px; }
.viz-bt .bt-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .viz-bt .bt-line { animation: viz-draw 1.6s var(--ease-out-expo) .2s forwards; }
.viz-bt .bt-area { opacity: 0; }
.is-in .viz-bt .bt-area { animation: viz-fade-up .9s var(--ease-out-expo) .6s forwards; }
.bt-stats {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 0 24px 24px;
}
@media (min-width: 640px) { .bt-stats { padding-inline: 28px; padding-bottom: 28px; } }
.bt-stats span { display: grid; gap: 2px; }
.bt-stats b { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.03em; color: var(--color-ink); }
.bt-stats i { font-style: normal; font-size: 10.5px; color: var(--color-ink-3); }

/* ---- 36h. Track performance: donut + legend ---- */
.perf { display: flex; align-items: center; gap: 18px; }
.perf-donut { position: relative; flex: none; width: 124px; height: 124px; }
.perf-donut svg { width: 100%; height: 100%; }
/* Each segment is a full-circumference dash rotated to its own start angle, revealed
   by transitioning stroke-dashoffset. A transition takes var() reliably; a keyframe
   interpolating stroke-dasharray from a var() does not. */
.dn-seg {
  stroke-dasharray: 339.3;
  stroke-dashoffset: 339.3;
  transition: stroke-dashoffset 1.1s var(--ease-out-expo);
  transition-delay: calc(.2s + var(--i) * .15s);
}
.is-in .dn-seg { stroke-dashoffset: var(--end); }
@media (prefers-reduced-motion: reduce) {
  .dn-seg { transition: none; stroke-dashoffset: var(--end); }
}
.dn-center {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center; gap: 1px;
}
.dn-center b { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.03em; color: var(--color-ink); }
.dn-center i { font-style: normal; font-size: 9.5px; color: var(--color-ink-3); }
.perf-legend { display: grid; gap: 9px; flex: 1; min-width: 0; }
.perf-legend span {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--color-ink-2);
  opacity: .01; transform: translateX(6px);
}
.is-in .perf-legend span {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease-out-expo), transform .6s var(--ease-out-expo);
  transition-delay: calc(.4s + var(--i) * .1s);
}
.perf-legend i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.perf-legend b { margin-left: auto; font-weight: 600; color: var(--color-ink); }

@media (max-width: 400px) {
  .perf { gap: 14px; }
  .perf-donut { width: 104px; height: 104px; }
}

/* ============================================================
   37. Broker / prop-firm layers
   Chip geometry copied from the reference: 190x84, 16px radius,
   logo capped at 48px tall, mono until hover.
   ============================================================ */
.mt-6 { margin-top: 24px; }   /* was referenced in markup but never defined */

.broker-layers { margin-top: 36px; }
.layer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  margin-bottom: 12px;
}
.layer-label-2 { margin-top: 28px; }

.broker-chip {
  position: relative;
  display: grid; place-items: center;
  height: 84px; width: 190px; flex: none;
  border-radius: 16px;
  border: 1px solid var(--color-line);
  background: var(--color-bg-1);
  margin-right: 12px;
  transition: transform .5s var(--ease-out-expo), border-color .5s, box-shadow .5s;
}
@media (min-width: 768px) { .broker-chip { width: 220px; } }
.broker-chip:hover {
  transform: translateY(-4px);
  border-color: var(--color-line-2);
  box-shadow: 0 20px 40px -20px rgb(13 20 78 / .35);
}

.broker-logo {
  width: auto;
  max-width: 150px;
  height: 30px;
  object-fit: contain;
  opacity: .7;
  filter: grayscale(1) brightness(.55) contrast(1.2);
  transition: opacity .5s, filter .5s;
}
@media (min-width: 768px) { .broker-logo { max-width: 172px; height: 32px; } }
.broker-chip:hover .broker-logo { opacity: 1; filter: none; }

.broker-go {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center;
  width: 20px; height: 20px;
  color: var(--color-action);
  opacity: 0;
  transition: opacity .4s;
}
.broker-chip:hover .broker-go { opacity: 1; }
.broker-go svg { width: 12px; height: 12px; }

/* ============================================================
   38. Channel + broker nodes in the relay flow get real logos
   ============================================================ */
.rf-bk-logo {
  width: auto; max-width: 84px; height: 17px;
  object-fit: contain;
  filter: grayscale(1) brightness(.5) contrast(1.2);
  opacity: .85;
  transition: opacity .4s, filter .4s;
}
a.rf-node:hover .rf-bk-logo { opacity: 1; filter: none; }
@container (min-width: 470px) {
  .rf-bk-logo { max-width: 100px; height: 20px; }
}
a.rf-node { text-decoration: none; }
a.rf-node:hover { border-color: rgb(47 102 229 / .35); }
.rf-node .rf-go {
  position: absolute; top: 5px; right: 6px;
  width: 10px; height: 10px; color: var(--color-action);
  opacity: 0; transition: opacity .35s;
}
a.rf-node:hover .rf-go { opacity: 1; }
.rf-node .rf-go svg { width: 100%; height: 100%; }

/* ============================================================
   39. v6 — broker chips, round flow nodes, language switcher
   ============================================================ */

/* ---- 39a. broker chips: bigger logo, no hover arrow ---- */
.broker-go { display: none !important; }      /* the arrow is gone */

.broker-logo {
  width: auto;
  max-width: 150px;
  height: 44px;
  object-fit: contain;
  opacity: .7;
  filter: grayscale(1) brightness(.55) contrast(1.2);
  transition: opacity .5s var(--ease-out-expo), filter .5s var(--ease-out-expo);
}
@media (min-width: 768px) { .broker-logo { max-width: 176px; height: 48px; } }
.broker-chip:hover .broker-logo { opacity: 1; filter: none; }

.broker-chip {
  transition: transform .5s var(--ease-out-expo), border-color .5s, box-shadow .5s;
}

/* ---- 39b. relay flow: round avatar + name underneath ---- */
.rf-node {
  display: grid;
  justify-items: center;
  gap: 9px;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  white-space: nowrap;
  text-decoration: none;
  animation: rf-bob 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * .35s);
}
.rf-node:hover { border-color: transparent; }

.rf-ava {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--color-bg-1);
  border: 1px solid var(--color-line);
  box-shadow: 0 14px 30px -18px rgb(13 20 78 / .55);
  overflow: hidden;
  transition: transform .5s var(--ease-out-expo), box-shadow .5s, border-color .5s;
}
.rf-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.rf-node:hover .rf-ava {
  transform: translateY(-3px) scale(1.04);
  border-color: rgb(47 102 229 / .45);
  box-shadow: 0 20px 38px -18px rgb(47 102 229 / .55);
}

.rf-name {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--color-brand-2);
  transition: color .35s;
}
a.rf-node:hover .rf-name { color: var(--color-brand-3); }

@container (max-width: 430px) {
  .rf-ava { width: 50px; height: 50px; }
  .rf-name { font-size: 10.5px; }
}

/* hub: logo circle with the name set beside it */
.rf-hub { width: auto; height: auto; }
.rf-hub-inner { width: 104px; height: 104px; }
.rf-hub-mark { width: 44px; height: 31px; }
.rf-hub-side {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 2px;
  white-space: nowrap;
  text-align: left;
}
.rf-hub-side b {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600; letter-spacing: -.03em;
  color: var(--color-ink);
}
.rf-hub-side i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .04em;
  color: var(--color-ink-3);
}
@container (max-width: 430px) {
  .rf-hub-inner { width: 78px; height: 78px; }
  .rf-hub-mark { width: 34px; height: 24px; }
  .rf-hub-side { left: calc(100% + 10px); }
  .rf-hub-side b { font-size: 14px; }
  .rf-hub-side i { font-size: 8.5px; }
}

/* ---- 39c. language switcher ---- */
.lang {
  position: relative;
  flex: none;
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--color-line-2);
  background: var(--color-bg-1);
  color: var(--color-ink-2);
  font-size: 13.5px; font-weight: 500;
  box-shadow: 0 1px 2px #0d144e0f;
  transition: color .3s, border-color .3s, box-shadow .3s;
}
.lang-btn:hover { color: var(--color-ink); border-color: #2f66e573; }
.lang-btn svg.globe { width: 15px; height: 15px; color: var(--color-action); }
.lang-btn .chev { width: 12px; height: 12px; transition: transform .3s; opacity: .7; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-code { font-variant-numeric: tabular-nums; }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 172px;
  border-radius: 14px;
  border: 1px solid var(--color-line);
  background: var(--color-bg-1);
  box-shadow: var(--panel-shadow);
  padding: 6px;
  display: grid; gap: 2px;
  z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(.98);
  transform-origin: top right;
  transition: opacity .25s var(--ease-out-expo), transform .25s var(--ease-out-expo), visibility .25s;
}
.lang-menu[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
.lang-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-ink-2);
  text-align: left;
  transition: background-color .2s, color .2s;
}
.lang-opt:hover { background: rgb(13 20 78 / .05); color: var(--color-ink); }
.lang-opt .flag { font-size: 15px; line-height: 1; }
.lang-opt .tick { margin-left: auto; width: 14px; height: 14px; color: var(--color-action); opacity: 0; }
.lang-opt[aria-current="true"] { color: var(--color-ink); font-weight: 500; }
.lang-opt[aria-current="true"] .tick { opacity: 1; }

/* Below the desktop breakpoint the header is logo + CTA + burger and there is no
   room for a fourth control: a 54px switcher pushed the burger off-screen at 390px.
   The mobile drawer carries its own switcher, so hide this one. */
@media (max-width: 1023px) {
  .site-nav .lang { display: none; }
}

/* in the mobile drawer the switcher sits inline */
.mobile-drawer .lang { width: 100%; }
.mobile-drawer .lang-btn { width: 100%; justify-content: center; height: 48px; }
.mobile-drawer .lang-menu { left: 0; right: 0; }

/* ---- 39d. login page ---- */
.auth-main { position: relative; min-height: 100vh; display: grid; align-items: center; overflow: hidden; }
.auth-wrap { position: relative; z-index: 2; padding-block: 140px 80px; }
.auth-card {
  max-width: 440px; margin-inline: auto;
  border-radius: 24px;
  border: 1px solid var(--color-line);
  background: var(--color-bg-1);
  box-shadow: var(--panel-shadow);
  padding: 32px 26px;
}
@media (min-width: 640px) { .auth-card { padding: 38px 34px; } }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head h1 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.auth-head p { margin-top: 8px; font-size: 14.5px; color: var(--color-ink-2); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--color-ink-2); }
.field input {
  height: 50px; padding-inline: 16px;
  border-radius: 12px;
  border: 1px solid var(--color-line-2);
  background: var(--color-bg);
  color: var(--color-ink);
  font-size: 15px;
  transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder { color: var(--color-ink-3); }
.field input:focus {
  outline: none;
  border-color: var(--color-action);
  box-shadow: 0 0 0 3px rgb(47 102 229 / .15);
}
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--color-ink-2); }
.check input { width: 16px; height: 16px; accent-color: var(--color-action); }
.auth-link { font-size: 13.5px; color: var(--color-action); }
.auth-link:hover { text-decoration: underline; }
.auth-alt {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--color-line);
  text-align: center; font-size: 14px; color: var(--color-ink-2);
}
.auth-note {
  margin-top: 18px;
  display: flex; align-items: flex-start; gap: 9px;
  border-radius: 12px;
  background: var(--color-soft);
  padding: 12px 14px;
  font-size: 12.5px; line-height: 1.55; color: var(--color-brand-3);
}
.auth-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }

/* ---- 39e. legal pages ---- */
.legal { padding-block: 130px 72px; }
.legal-head { max-width: 46rem; }
.legal-updated {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; border: 1px solid var(--color-line);
  background: var(--color-bg-1); padding: 6px 13px;
  font-family: var(--font-mono); font-size: 11px; color: var(--color-ink-3);
}
.legal-body { max-width: 46rem; margin-top: 40px; }
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600; letter-spacing: -.02em;
  margin-top: 40px; margin-bottom: 12px;
  scroll-margin-top: 100px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  margin-top: 22px; margin-bottom: 8px;
}
.legal-body p { font-size: 15px; line-height: 1.75; color: var(--color-ink-2); margin-bottom: 14px; }
.legal-body ul { display: grid; gap: 9px; margin: 0 0 16px; }
.legal-body li {
  position: relative; padding-left: 20px;
  font-size: 15px; line-height: 1.7; color: var(--color-ink-2);
}
.legal-body li::before {
  content: ""; position: absolute; left: 4px; top: .65em;
  width: 5px; height: 5px; border-radius: 999px; background: var(--color-action);
}
.legal-body strong { color: var(--color-ink); font-weight: 600; }
.legal-body a { color: var(--color-action); }
.legal-body a:hover { text-decoration: underline; }
.legal-callout {
  border-radius: 16px;
  border: 1px solid rgb(47 102 229 / .18);
  background: var(--color-soft);
  padding: 18px 20px;
  margin: 24px 0;
}
.legal-callout p { margin: 0; color: var(--color-brand-3); font-size: 14.5px; }
.legal-callout p + p { margin-top: 10px; }
.legal-toc {
  border-radius: 16px; border: 1px solid var(--color-line);
  background: var(--color-bg-1); padding: 18px 20px;
  margin-top: 28px;
}
.legal-toc p {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--color-ink-3); margin-bottom: 10px;
}
.legal-toc ol { display: grid; gap: 6px; counter-reset: toc; }
.legal-toc a { font-size: 14px; color: var(--color-ink-2); }
.legal-toc a:hover { color: var(--color-action); }

/* ============================================================
   40. Translated-text safety
   Spanish, Russian and Italian run longer than the English they
   replace, which pushed a few blocks past the viewport at 390px.
   Let long words wrap and stop flex/grid children refusing to shrink.
   ============================================================ */
h1, h2, h3, h4, p, li, blockquote, dt, dd, figcaption, label, button, a {
  overflow-wrap: break-word;
}
.price-card, .card, .sp-card, .step, .channel-card, .admin-tile,
.rf-node, .review, .lc-step, .flow-steps li, .stat, .footer-col,
.price-duo > *, .grid-2 > *, .grid-3 > *, .rail > *, .split-2 > * {
  min-width: 0;
}
.price-card { max-width: 100%; }
.pc-amount { flex-wrap: wrap; }
.billing-switch { max-width: 100%; }
.bs-opt { min-width: 0; }
.cmp-table-wrap, .legal-body table { max-width: 100%; overflow-x: auto; }
.marquee-row, .mask-fade-x { max-width: 100%; overflow-x: clip; }
.support-strip, .ss-lead, .ss-links { min-width: 0; flex-wrap: wrap; }
.sp-chip { max-width: calc(100% - 24px); }

/* Flow nodes are positioned by percentage and centred on their point, so a longer
   translated label pushed the outer ones past the viewport. Let the label wrap,
   cap the node width, and clip the stage as a backstop. */
.relay-flow { overflow: hidden; }
.rf-node { max-width: 30%; white-space: normal; }
.rf-name { white-space: normal; text-align: center; line-height: 1.25; }
.rf-hub { white-space: nowrap; }
.rf-label { white-space: normal; text-align: center; max-width: 90%; }
@media (max-width: 520px) {
  .rf-hub-side b { font-size: 13px; }
  .rf-hub-side i { font-size: 8px; }
}

/* The header CTA label is longer in Russian ("Начать бесплатно") and pushed the
   fixed header a couple of pixels past the viewport. Cap it on narrow screens.
   Clipping .site-nav is not an option here: the mega-panels live inside it. */
@media (max-width: 460px) {
  .nav-right .btn-sm { max-width: 58vw; }
  .nav-right .btn-sm > span.relative,
  .nav-right .btn-sm > span:not(.btn-orb):not(.btn-sheen) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
}

/* A long translated label could make a full-size CTA wider than a 375px viewport.
   Let the label shrink rather than the button pushing the page sideways. */
@media (max-width: 460px) {
  .btn-lg { max-width: 100%; }
  .btn-lg > span:not(.btn-orb):not(.btn-sheen):not(.btn-icon-circle) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ============================================================
   41. Hero dashboard — tilted browser window + phone
   ============================================================ */
.hero-stage { position: relative; }
.stage-3d {
  position: relative;
  width: 100%;
  perspective: 1800px;
  perspective-origin: 60% 40%;
  padding-block: 10px 40px;
}
@media (min-width: 1280px) { .stage-3d { padding-bottom: 20px; } }

/* --- browser window --- */
.dash-frame {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg-1);
  border: 1px solid var(--color-line);
  box-shadow:
    0 1px 0 rgb(255 255 255 / .6) inset,
    0 40px 90px -40px rgb(13 20 78 / .55),
    0 10px 30px -18px rgb(13 20 78 / .3);
  transform: rotateX(7deg) rotateY(-13deg) rotateZ(1.2deg) scale(.98);
  transform-origin: 70% 50%;
  transition: transform .9s var(--ease-out-expo);
}
.hero-stage:hover .dash-frame {
  transform: rotateX(3deg) rotateY(-6deg) rotateZ(.4deg) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .dash-frame { transform: none; transition: none; }
}
@media (max-width: 1023px) {
  .dash-frame { transform: rotateX(4deg) rotateY(-7deg) scale(.99); }
}

.dash-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  background: linear-gradient(180deg, #fbfcff, #f2f5fc);
  border-bottom: 1px solid var(--color-line);
}
.dash-chrome .dot { width: 8px; height: 8px; border-radius: 999px; flex: none; }
.dash-chrome .r { background: #ff5f57; }
.dash-chrome .y { background: #febc2e; }
.dash-chrome .g { background: #28c840; }
.dash-url {
  margin-left: 10px;
  flex: 1;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.dash-body {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 150px;
  background: var(--color-bg);
  min-height: 330px;
}
/* The hero column is ~676px at desktop, so the rail has to survive well below
   760px or the connected-account panel never shows. */
.dash-body { grid-template-columns: 46px minmax(0, 1fr) 138px; }
@media (max-width: 520px) {
  .dash-body { grid-template-columns: 36px minmax(0, 1fr); }
  .dash-rail { display: none; }
}
@media (min-width: 900px) { .dash-body { grid-template-columns: 46px minmax(0, 1fr) 152px; } }

/* sidebar */
.dash-side {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 0;
  background: var(--color-bg-1);
  border-right: 1px solid var(--color-line);
}
.ds-logo { width: 24px; height: 17px; margin-bottom: 8px; }
.ds-logo svg { width: 100%; height: 100%; }
.ds-item {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  color: var(--color-ink-3);
}
.ds-item svg { width: 14px; height: 14px; }
.ds-item.is-on { background: var(--color-soft); color: var(--color-action); }
.ds-last { margin-top: auto; }

/* main */
.dash-main { padding: 12px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.dash-top { display: flex; align-items: center; gap: 8px; }
.dt-title { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
.dt-acct {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; border: 1px solid var(--color-line);
  background: var(--color-bg-1); padding: 2px 8px;
  font-family: var(--font-mono); font-size: 8px; color: var(--color-ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dot-live {
  width: 5px; height: 5px; border-radius: 999px; background: var(--viz-up); flex: none;
  box-shadow: 0 0 0 0 rgb(26 158 102 / .5);
  animation: relay-pulse 2s ease-out infinite;
}
.dt-right { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
.dt-bell { position: relative; color: var(--color-ink-3); }
.dt-bell svg { width: 13px; height: 13px; }
.dt-bell i { position: absolute; top: -1px; right: -1px; width: 5px; height: 5px; border-radius: 999px; background: var(--viz-down); }
.dt-avatar {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px;
  background: linear-gradient(140deg, #3b82f6, #00c2ff);
  font-size: 9px; font-weight: 600; color: #06102e;
}

.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.kpi {
  display: grid; gap: 1px;
  border-radius: 9px; border: 1px solid var(--color-line);
  background: var(--color-bg-1); padding: 7px 8px;
  min-width: 0;
}
.kpi i { font-style: normal; font-family: var(--font-mono); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-ink-3); }
.kpi b { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.kpi u { text-decoration: none; font-size: 8px; color: var(--color-ink-3); }
.kpi u.up { color: var(--viz-up); }

.dash-chart {
  border-radius: 10px; border: 1px solid var(--color-line);
  background: var(--color-bg-1); padding: 9px 10px 0;
  overflow: hidden;
}
.dc-head { display: flex; align-items: center; justify-content: space-between; }
.dc-head b { font-size: 10px; font-weight: 600; }
.dc-range { display: inline-flex; gap: 3px; }
.dc-range i {
  font-style: normal; font-family: var(--font-mono); font-size: 7.5px;
  padding: 2px 5px; border-radius: 5px; color: var(--color-ink-3);
}
.dc-range i.on { background: var(--color-soft); color: var(--color-action); }
.dc-svg { display: block; width: 100%; height: 92px; margin-top: 4px; }
.dc-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .dc-line, .hero-stage .dc-line { animation: viz-draw 2s var(--ease-out-expo) .5s forwards; }

.dash-trades { border-radius: 10px; border: 1px solid var(--color-line); background: var(--color-bg-1); padding: 8px 10px; display: grid; gap: 5px; }
.dtr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1px; }
.dtr-head b { font-size: 10px; font-weight: 600; }
.dtr-head i { font-style: normal; font-family: var(--font-mono); font-size: 7.5px; color: var(--color-ink-3); }
.dtr { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 7px; }
.tag {
  font-style: normal; font-family: var(--font-mono); font-size: 7px; font-weight: 600;
  padding: 2px 4px; border-radius: 4px;
}
.tag.buy { background: var(--viz-up-soft); color: var(--viz-up); }
.tag.sell { background: rgb(224 65 91 / .14); color: var(--viz-down); }
.dtr b { font-size: 9.5px; font-weight: 600; }
.dtr s { text-decoration: none; font-family: var(--font-mono); font-size: 7.5px; color: var(--color-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtr u { text-decoration: none; font-family: var(--font-mono); font-size: 9px; font-weight: 600; }
.dtr u.up, .dp-row u.up { color: var(--viz-up); }
.dtr u.down, .dp-row u.down { color: var(--viz-down); }

/* right rail */
.dash-rail { padding: 12px 12px 12px 0; display: grid; gap: 8px; align-content: start; }
.dr-card { border-radius: 10px; border: 1px solid var(--color-line); background: var(--color-bg-1); padding: 8px 9px; display: grid; gap: 5px; }
.dr-title { font-family: var(--font-mono); font-size: 7px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-ink-3); }
.dr-title.mt { margin-top: 3px; }
.dr-broker, .dr-tg { display: flex; align-items: center; gap: 6px; }
.dr-broker img { width: 20px; height: 20px; border-radius: 999px; object-fit: cover; }
.dr-broker b, .dr-tg b { display: block; font-size: 9.5px; font-weight: 600; }
.dr-broker i, .dr-tg i { display: block; font-style: normal; font-family: var(--font-mono); font-size: 7px; color: var(--color-ink-3); }
.dr-tg-ico { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: #e8f1ff; color: #2aabee; flex: none; }
.dr-tg-ico svg { width: 11px; height: 11px; }
.dr-pill {
  display: inline-flex; align-items: center; gap: 5px; width: max-content;
  border-radius: 999px; padding: 2px 7px;
  font-family: var(--font-mono); font-size: 7.5px;
}
.dr-pill.ok { background: var(--viz-up-soft); color: var(--viz-up); }
.dr-note { font-family: var(--font-mono); font-size: 7px; color: var(--color-ink-3); }
.dr-ch { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; }
.dr-ch .ava {
  font-style: normal; display: grid; place-items: center;
  width: 17px; height: 17px; border-radius: 999px;
  font-size: 7px; font-weight: 600; color: #fff;
}
.ava.a1 { background: #1f2a6b; } .ava.a2 { background: #4b2545; } .ava.a3 { background: #14364f; }
.dr-ch b { font-size: 9px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-ch u { text-decoration: none; font-family: var(--font-mono); font-size: 7px; }
.dr-ch u.up { color: var(--viz-up); }
.dr-set { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 8.5px; color: var(--color-ink-2); }
.dr-set b { font-family: var(--font-mono); font-size: 8.5px; color: var(--color-ink); }
.sw { width: 18px; height: 10px; border-radius: 999px; background: var(--color-bg-3); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 1.5px; left: 1.5px; width: 7px; height: 7px; border-radius: 999px; background: #fff; transition: transform .3s; }
.sw.on { background: var(--color-action); }
.sw.on::after { transform: translateX(8px); }

/* --- phone in front --- */
.dash-phone {
  position: absolute;
  left: -4%;
  bottom: -6%;
  z-index: 3;
  width: 148px;
  aspect-ratio: 240 / 502;
  border-radius: 26px;
  padding: 5px;
  background: linear-gradient(160deg, #2b3566 0%, #141c47 42%, #0a1030 100%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .14), inset 0 1px 0 rgb(255 255 255 / .22), 0 40px 70px -30px rgb(0 0 0 / .7);
  transform: rotateX(5deg) rotateY(9deg) rotateZ(-2deg);
}
@media (min-width: 640px) { .dash-phone { width: 168px; left: -2%; } }
@media (min-width: 1280px) { .dash-phone { width: 182px; left: -6%; bottom: -8%; } }
.dash-phone .phone-island { top: 10px; width: 48px; height: 13px; }
.dp-screen {
  height: 100%; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #0e1646 0%, #0b1138 55%, #090e2e 100%);
  color: #eef1ff; padding: 0 8px 6px;
  display: flex; flex-direction: column;
}
.dp-top { display: flex; align-items: center; justify-content: space-between; padding: 7px 2px 0; font-size: 7px; font-weight: 600; }
.dp-sig svg { height: 6px; width: auto; }
.dp-head { display: flex; align-items: center; gap: 5px; padding-top: 12px; }
.dp-av { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 999px; background: linear-gradient(140deg,#3b82f6,#00c2ff); font-size: 7px; font-weight: 600; color: #06102e; }
.dp-head b { display: block; font-size: 8.5px; font-weight: 600; }
.dp-head i { display: block; font-style: normal; font-size: 6px; color: #8e98c9; font-family: var(--font-mono); }
.dp-bal {
  margin-top: 9px; border-radius: 11px; padding: 8px 8px 0;
  background: linear-gradient(180deg, rgb(255 255 255 / .09), rgb(255 255 255 / .04));
  border: 1px solid rgb(150 165 255 / .18);
  overflow: hidden;
}
.dp-bal i { display: block; font-style: normal; font-family: var(--font-mono); font-size: 5.5px; letter-spacing: .12em; text-transform: uppercase; color: #8e98c9; }
.dp-bal b { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: -.03em; }
.dp-bal u { text-decoration: none; font-size: 7px; color: #3ee09a; }
.dp-spark { display: block; width: calc(100% + 16px); margin: 3px -8px -1px; height: 34px; }
.dp-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 5px; padding: 6px 1px; border-bottom: 1px solid rgb(150 165 255 / .12); }
.dp-row b { font-size: 8px; font-weight: 500; }
.dp-row u { text-decoration: none; font-family: var(--font-mono); font-size: 8px; font-weight: 600; }
.dp-tabs { margin-top: auto; padding-top: 7px; display: flex; justify-content: space-around; border-top: 1px solid rgb(150 165 255 / .14); }
.dp-tabs i { width: 11px; height: 3px; border-radius: 2px; background: #2a3573; }
.dp-tabs i.on { background: #6f9dff; }

/* --- floating broker badges --- */
.fb {
  position: absolute; z-index: 4;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--color-bg-1);
  box-shadow: 0 18px 36px -16px rgb(13 20 78 / .55), 0 0 0 1px rgb(13 20 78 / .06);
  overflow: hidden;
}
.fb img { width: 100%; height: 100%; object-fit: cover; }
.fb-1 { width: 54px; height: 54px; top: -3%; left: 18%; animation: float-bob 7s ease-in-out infinite; }
.fb-2 { width: 44px; height: 44px; top: 16%; right: -3%; animation: float-bob 8.5s ease-in-out infinite reverse; }
.fb-3 { width: 40px; height: 40px; bottom: 14%; right: 6%; animation: float-bob 9.5s ease-in-out infinite; }
@media (max-width: 639px) { .fb-1 { width: 42px; height: 42px; } .fb-2 { width: 34px; height: 34px; } .fb-3 { display: none; } }

/* --- floating toast --- */
.dash-toast {
  position: absolute; z-index: 5;
  right: -2%; bottom: 2%;
  display: flex; align-items: center; gap: 8px;
  max-width: 230px;
  border-radius: 13px;
  padding: 9px 11px;
  background: rgb(255 255 255 / .96);
  border: 1px solid rgb(255 255 255 / .6);
  box-shadow: 0 24px 46px -20px rgb(0 0 0 / .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (max-width: 1023px) { .dash-toast { right: 0; bottom: -4%; max-width: 200px; } }
@media (max-width: 480px) { .dash-toast { display: none; } }
.dt-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--viz-up-soft); color: var(--viz-up); flex: none; }
.dt-ic svg { width: 13px; height: 13px; }
.dash-toast b { display: block; font-size: 10.5px; font-weight: 600; color: #0d144e; letter-spacing: -.01em; }
.dash-toast i { display: block; font-style: normal; font-size: 9.5px; color: #4a5475; }

/* ============================================================
   42. Hero: the dashboard now lives inside a tilted iPad
   ============================================================ */
.ipad {
  position: relative;
  width: 100%;
  aspect-ratio: 1194 / 834;          /* iPad Pro 11", landscape */
  border-radius: 30px;
  padding: 13px;
  background:
    linear-gradient(145deg, #5d6478 0%, #2b3142 26%, #1b2030 55%, #343b4d 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / .16),
    inset 0 1px 0 rgb(255 255 255 / .3),
    0 50px 110px -45px rgb(13 20 78 / .65),
    0 16px 40px -22px rgb(13 20 78 / .4);
  transform: rotateX(7deg) rotateY(-13deg) rotateZ(1.2deg) scale(.97);
  transform-origin: 70% 50%;
  transition: transform .9s var(--ease-out-expo);
}
@media (min-width: 640px) { .ipad { border-radius: 34px; padding: 15px; } }
.hero-stage:hover .ipad { transform: rotateX(3deg) rotateY(-6deg) rotateZ(.4deg) scale(1); }
@media (prefers-reduced-motion: reduce) { .ipad { transform: none; transition: none; } }
@media (max-width: 1023px) { .ipad { transform: rotateX(4deg) rotateY(-7deg) scale(.99); } }

/* front camera on the landscape edge, as on current iPads */
.ipad-cam {
  position: absolute;
  top: 50%; left: 6px;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 999px;
  background: #0b0e16;
  box-shadow: inset 0 0 0 1px rgb(120 170 255 / .35);
}
@media (min-width: 640px) { .ipad-cam { left: 7px; width: 5px; height: 5px; } }

.ipad-screen {
  position: relative;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .5);
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) { .ipad-screen { border-radius: 21px; } }

/* iPadOS status bar */
.ios-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 12px 3px;
  background: var(--color-bg-1);
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink);
  flex: none;
}
.ios-time { font-size: 8px; font-weight: 600; letter-spacing: -.01em; }
.ios-right { display: inline-flex; align-items: center; gap: 4px; }
.ios-wifi { height: 7px; width: auto; }
.ios-bat { height: 7px; width: auto; }

/* the dashboard fills the remaining screen */
.ipad-screen .dash-body { flex: 1; min-height: 0; }

/* the iPad is shorter than the old window, so tighten the inner spacing */
.ipad-screen .dash-main { padding: 9px; gap: 7px; }
.ipad-screen .dash-rail { padding: 9px 9px 9px 0; gap: 6px; }
.ipad-screen .dc-svg { height: 74px; }
.ipad-screen .dash-trades { gap: 4px; }
@media (min-width: 900px) {
  .ipad-screen .dash-main { padding: 11px; gap: 9px; }
  .ipad-screen .dc-svg { height: 88px; }
}

/* ============================================================
   43. Hero device: MacBook (lid + base) with the dashboard inside
   Supersedes the iPad frame in section 42.
   ============================================================ */
.macbook {
  position: relative;
  width: 100%;
  transform: rotateX(6deg) rotateY(-11deg) rotateZ(.8deg) scale(.97);
  transform-origin: 70% 50%;
  transition: transform .9s var(--ease-out-expo);
  filter: drop-shadow(0 44px 80px rgb(13 20 78 / .42));
}
.hero-stage:hover .macbook { transform: rotateX(2deg) rotateY(-5deg) rotateZ(.2deg) scale(1); }
@media (prefers-reduced-motion: reduce) { .macbook { transform: none; transition: none; } }
@media (max-width: 1023px) { .macbook { transform: rotateX(3deg) rotateY(-6deg) scale(.99); } }

/* lid */
.mb-lid {
  position: relative;
  border-radius: 14px 14px 5px 5px;
  padding: 11px 11px 14px;
  background: linear-gradient(160deg, #5a6176 0%, #2c3243 30%, #1b2030 62%, #3a4255 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / .16),
    inset 0 1px 0 rgb(255 255 255 / .28);
}
@media (min-width: 640px) { .mb-lid { border-radius: 17px 17px 6px 6px; padding: 13px 13px 17px; } }

.mb-cam {
  position: absolute;
  top: 5px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 999px;
  background: #0b0e16;
  box-shadow: inset 0 0 0 1px rgb(120 170 255 / .4);
}
@media (min-width: 640px) { .mb-cam { top: 6px; width: 5px; height: 5px; } }

.mb-display {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .55);
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) { .mb-display { border-radius: 7px; } }

/* base / hinge */
.mb-base {
  display: block;
  position: relative;
  width: 112%;
  margin-left: -6%;
  height: 12px;
  border-radius: 0 0 11px 11px;
  background: linear-gradient(180deg, #c3c9d6 0%, #9aa2b4 38%, #70778c 70%, #4d5467 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .75),
    0 10px 18px -8px rgb(13 20 78 / .5);
}
@media (min-width: 640px) { .mb-base { height: 14px; } }
/* the thumb notch on the front lip */
.mb-base i {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 15%; height: 5px;
  border-radius: 0 0 7px 7px;
  background: linear-gradient(180deg, #878ea2, #aeb5c6);
}

/* the dashboard fills the display */
.mb-display .dash-body { flex: 1; min-height: 0; }
.mb-display .ios-status { display: none; }          /* a laptop has no iOS status bar */
.mb-display .dash-main { padding: 9px; gap: 7px; }
.mb-display .dash-rail { padding: 9px 9px 9px 0; gap: 6px; }
.mb-display .dc-svg { height: 72px; }
.mb-display .dash-trades { gap: 4px; }
@media (min-width: 900px) {
  .mb-display .dash-main { padding: 11px; gap: 9px; }
  .mb-display .dc-svg { height: 84px; }
}

/* the phone overlaps the laptop, as on the reference layout */
.dash-phone { bottom: 2%; }
@media (min-width: 1280px) { .dash-phone { bottom: 0; } }

/* The phone must scale with the laptop, not sit at a fixed pixel width, or it
   swamps the dashboard. On the reference layout it is about a quarter as wide. */
.dash-phone {
  width: 27%;
  min-width: 88px;     /* keeps the ratio near 1:4 even on a 360px screen */
  max-width: 190px;
  left: 1%;
  bottom: -1%;
  border-radius: 7.5%/3.6%;
  padding: 3.2%;
}
@media (min-width: 1280px) { .dash-phone { left: -2%; bottom: -3%; } }
.dash-phone .phone-island { top: 6%; width: 32%; height: 2.6%; }
.dp-screen { border-radius: 6%/2.9%; }

/* Phone UI scales with the phone, not with the page: container units keep the
   mockup looking identical whether it renders at 110px or 190px wide. */
.dash-phone { container-type: inline-size; }
.dp-screen { padding: 0 5.5cqw 4cqw; }
.dp-top { padding: 5cqw 1.5cqw 0; font-size: 5.2cqw; }
.dp-sig svg { height: 4.2cqw; }
.dp-head { gap: 3.4cqw; padding-top: 8cqw; }
.dp-av { width: 11.5cqw; height: 11.5cqw; font-size: 5cqw; }
.dp-head b { font-size: 5.8cqw; }
.dp-head i { font-size: 4.2cqw; }
.dp-bal { margin-top: 6cqw; padding: 5cqw 5cqw 0; border-radius: 7.5cqw; }
.dp-bal i { font-size: 3.6cqw; letter-spacing: .08em; }
.dp-bal b { font-size: 10.5cqw; margin-top: 1cqw; white-space: nowrap; }
.dp-bal u { font-size: 4.6cqw; }
.dp-spark { width: calc(100% + 11cqw); margin: 2cqw -5.5cqw -1px; height: 22cqw; }
.dp-row { gap: 3cqw; padding: 4cqw 0.5cqw; }
.dp-row b { font-size: 5.4cqw; }
.dp-row u { font-size: 5.4cqw; }
.dp-row .tag { font-size: 4cqw; padding: 1cqw 2cqw; border-radius: 2cqw; }
.dp-tabs { padding-top: 4.5cqw; }
.dp-tabs i { width: 7cqw; height: 1.8cqw; }

/* At 360px the header CTA was still wide enough to push the burger off-screen.
   Shrink the label progressively; the burger must always be reachable. */
@media (max-width: 420px) {
  .site-nav { padding-left: 14px; padding-right: 6px; }
  .brand-word { font-size: 17px; }
  .brand-mark { height: 22px; }
  .nav-right { gap: 4px; padding-left: 6px; }
  .nav-right .btn-sm { max-width: 46vw; padding-left: 12px; font-size: 12.5px; }
}
@media (max-width: 370px) {
  .nav-right .btn-sm > span.relative,
  .nav-right .btn-sm > span:not(.btn-orb):not(.btn-sheen) { display: none; }
  .nav-right .btn-sm { max-width: none; padding: 0 4px 0 6px; gap: 0; }
}

/* A broker card's flex children would not shrink below their content, so on a
   320px screen the card pushed past the viewport. Let them shrink and wrap. */
.brk-card { flex-wrap: wrap; min-width: 0; }
.brk-card > * { min-width: 0; }
.brk-card .brk-meta, .brk-card > span { overflow-wrap: break-word; }
.brk-plats { flex: none; margin-left: auto; }
@media (max-width: 360px) {
  .brk-card { padding: 12px; gap: 9px; }
  .brk-plats { margin-left: 0; width: 100%; }
}

/* ============================================================
   44. Hero console — the RelayFX dashboard on the MacBook
   The laptop display is its own container, so the console
   reflows on its own width rather than the viewport's: the
   hero stage is ~676px at xl but ~1240px between 900 and 1280.
   ============================================================ */
.mb-display { container-type: inline-size; container-name: dash; }
.mb-display .dash-body { grid-template-columns: 104px minmax(0, 1fr); }

/* ---- sidebar ---- */
.mb-display .dash-side {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 2px; padding: 9px 7px; min-width: 0;
}
.ds-brand { display: flex; align-items: center; gap: 6px; padding: 2px 4px 11px; }
.ds-brand-mark { width: 21px; height: 15px; flex: none; }
.ds-brand b { font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: -.04em; color: var(--color-ink); line-height: 1; }
.ds-brand b i { font-style: normal; color: var(--color-action); }

.dash-side .ds-item {
  display: flex; align-items: center; gap: 7px;
  width: auto; height: auto; padding: 5.5px 7px; border-radius: 7px;
  font-size: 8px; letter-spacing: -.01em; color: var(--color-ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: dash-rise .7s var(--ease-out-expo) backwards;
}
.dash-side .ds-item svg { width: 11px; height: 11px; flex: none; }
.dash-side .ds-item.is-on { background: var(--color-soft); color: var(--color-action); font-weight: 500; }
.dash-side .ds-last { margin-top: 0; }
.dash-side .ds-item:nth-of-type(1) { animation-delay: .50s; }
.dash-side .ds-item:nth-of-type(2) { animation-delay: .54s; }
.dash-side .ds-item:nth-of-type(3) { animation-delay: .58s; }
.dash-side .ds-item:nth-of-type(4) { animation-delay: .62s; }
.dash-side .ds-item:nth-of-type(5) { animation-delay: .66s; }
.dash-side .ds-item:nth-of-type(6) { animation-delay: .70s; }
.dash-side .ds-item:nth-of-type(7) { animation-delay: .74s; }

.ds-promo {
  margin-top: auto; display: grid; gap: 2px;
  border-radius: 9px; padding: 9px;
  background: radial-gradient(120% 120% at 0% 0%, #5890f933, transparent 55%), linear-gradient(160deg, #1b2a6b, #0d144e);
  animation: dash-rise .8s var(--ease-out-expo) .9s backwards;
}
.ds-promo b { font-size: 8px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; color: #fff; }
.ds-promo i { font-style: normal; font-size: 6.5px; line-height: 1.4; color: #aebbe8; }

/* ---- console grid ---- */
.dash-content {
  display: grid; min-width: 0; min-height: 0; overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px; padding: 10px;
}
@container dash (min-width: 600px) { .dash-content { gap: 9px; padding: 11px; } }
.dash-content > .dash-top { grid-column: 1 / -1; }
.dash-content > .dash-kpis { grid-column: 1 / -1; }
.dash-accts { grid-column: 1; grid-row: 3; }
.dash-content > .dash-chart { grid-column: 2; grid-row: 3; }
.dash-feed { grid-column: 3; grid-row: 3 / span 2; }
.dash-content > .dash-trades { grid-column: 1 / 3; grid-row: 4; }

.dash-panel {
  display: flex; flex-direction: column; gap: 5px;
  border-radius: 10px; border: 1px solid var(--color-line);
  background: var(--color-bg-1); padding: 8px 9px;
  min-width: 0; min-height: 0; overflow: hidden;
  animation: dash-rise .8s var(--ease-out-expo) backwards;
}
.dash-accts { animation-delay: .86s; }
.dash-content > .dash-chart { animation-delay: .94s; }
.dash-feed { animation-delay: 1.02s; }
.dash-content > .dash-trades { animation-delay: 1.10s; }

.pnl-head { display: flex; align-items: baseline; gap: 6px; }
.pnl-head b { font-size: 9px; font-weight: 600; letter-spacing: -.01em; }
.pnl-head s { text-decoration: none; margin-left: auto; font-family: var(--font-mono); font-size: 6.5px; color: var(--color-ink-3); flex: none; }

/* ---- header ---- */
.mb-display .dash-top { align-items: flex-start; }
.dt-greet b { display: block; font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: -.03em; }
.dt-greet i { display: block; font-style: normal; font-size: 7.5px; color: var(--color-ink-3); margin-top: 2px; }
.dt-lat {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; border: 1px solid var(--color-line);
  background: var(--color-bg-1); padding: 2.5px 8px;
  font-family: var(--font-mono); font-size: 7.5px; color: var(--color-action);
}

/* ---- KPIs ---- */
.dash-kpis { gap: 8px; }
.mb-display .kpi { padding: 8px 9px; border-radius: 9px; gap: 2px; animation: dash-rise .8s var(--ease-out-expo) backwards; }
.mb-display .kpi:nth-child(1) { animation-delay: .60s; }
.mb-display .kpi:nth-child(2) { animation-delay: .67s; }
.mb-display .kpi:nth-child(3) { animation-delay: .74s; }
.mb-display .kpi:nth-child(4) { animation-delay: .81s; }
.mb-display .kpi i { font-size: 6.5px; }
.mb-display .kpi b { font-size: 13.5px; }
.mb-display .kpi u { display: inline-flex; align-items: center; gap: 3px; font-size: 7px; }
.mb-display .kpi u svg { width: 8px; height: 8px; flex: none; }

/* ---- connected accounts ---- */
.acct { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; animation: dash-rise .7s var(--ease-out-expo) backwards; }
.acct:nth-of-type(1) { animation-delay: 1.06s; }
.acct:nth-of-type(2) { animation-delay: 1.14s; }
.acct:nth-of-type(3) { animation-delay: 1.22s; }
.acct-mark {
  display: grid; place-items: center; flex: none;
  width: 18px; height: 18px; border-radius: 6px;
  background: var(--color-soft); color: var(--color-brand-3);
  font-style: normal; font-family: var(--font-display);
  font-size: 6.5px; font-weight: 700; letter-spacing: -.02em;
}
.acct-id { min-width: 0; }
.acct-id b { display: block; font-size: 8.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-id i { display: block; font-style: normal; font-family: var(--font-mono); font-size: 6px; color: var(--color-ink-3); margin-top: 1px; }
.acct-val { text-align: right; flex: none; }
.acct-val b { display: block; font-family: var(--font-mono); font-size: 8px; font-weight: 600; }
.acct-val u { display: block; text-decoration: none; font-family: var(--font-mono); font-size: 6px; color: var(--viz-up); margin-top: 1px; }
.acct-add {
  margin-top: auto; padding-top: 5px; display: flex; align-items: center; gap: 5px;
  border-top: 1px dashed var(--color-line-2);
  font-size: 7.5px; color: var(--color-action);
}
.acct-add svg { width: 9px; height: 9px; flex: none; }

/* ---- performance chart ---- */
.dash-content > .dash-chart { padding-bottom: 0; }
.mb-display .dc-head { align-items: baseline; }
.mb-display .dc-head b { font-size: 9px; }
.dc-ret { font-family: var(--font-mono); font-size: 8px; font-weight: 600; color: var(--viz-up); }
.mb-display .dc-range { margin-left: auto; flex: none; }
.dc-wrap { position: relative; flex: 1; min-height: 0; margin: 0 -9px -1px; }
.mb-display .dash-chart .dc-svg { width: 100%; height: 100%; margin-top: 0; }
.dc-area { opacity: 0; animation: viz-fade-up 1s var(--ease-out-expo) 1.25s forwards; }
.dc-tip {
  position: absolute; top: 2px; right: 9px;
  display: grid; gap: 1px; text-align: right;
  animation: dash-rise .8s var(--ease-out-expo) 1.5s backwards;
}
.dc-tip b { font-family: var(--font-mono); font-size: 8px; font-weight: 600; color: var(--viz-up); }
.dc-tip i { font-style: normal; font-size: 6px; color: var(--color-ink-3); }

/* ---- telegram signal feed ---- */
.feed-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px;
  padding: 5px 0; border-top: 1px solid var(--color-line);
  animation: dash-rise .7s var(--ease-out-expo) backwards;
}
.feed-row:first-of-type { border-top: 0; padding-top: 1px; }
.feed-row:nth-of-type(1) { animation-delay: 1.18s; }
.feed-row:nth-of-type(2) { animation-delay: 1.28s; }
.feed-row:nth-of-type(3) { animation-delay: 1.38s; }
.feed-row:nth-of-type(4) { animation-delay: 1.48s; }
.feed-ava {
  position: relative; display: grid; place-items: center; flex: none;
  width: 17px; height: 17px; border-radius: 999px;
  font-style: normal; font-family: var(--font-display);
  font-size: 6.5px; font-weight: 700; color: #fff;
}
.feed-ava.a1 { background: #1f2a6b; }
.feed-ava.a2 { background: #4b2545; }
.feed-ava.a3 { background: #14364f; }
.feed-row.is-new .feed-ava::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  border: 1px solid var(--color-action);
  animation: safe-ping 2.8s cubic-bezier(0, 0, .2, 1) infinite 1.6s;
}
.feed-b { min-width: 0; display: grid; gap: 1px; }
.feed-top { display: flex; align-items: baseline; gap: 5px; }
.feed-top b { font-size: 7.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-top s { text-decoration: none; margin-left: auto; flex: none; font-family: var(--font-mono); font-size: 5.5px; color: var(--color-ink-3); }
.feed-sig { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 7px; font-weight: 600; color: var(--color-ink); }
.feed-px { font-family: var(--font-mono); font-size: 6px; color: var(--color-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-foot {
  margin-top: auto; padding-top: 5px; display: flex; align-items: center; gap: 5px;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-mono); font-size: 6.5px; color: var(--color-ink-3);
}

/* ---- active trades ---- */
.dash-content > .dash-trades { gap: 0; }
.dash-trades .pnl-head { margin-bottom: 3px; }
.trd {
  display: grid; grid-template-columns: minmax(0, 1fr) 32px 50px 68px 52px;
  align-items: center; gap: 5px; padding: 3.5px 0;
  animation: dash-rise .7s var(--ease-out-expo) backwards;
}
.trd + .trd { border-top: 1px solid var(--color-line); }
.trd-h { padding: 0 0 3px; border-bottom: 1px solid var(--color-line-2); animation: none; }
.trd-h s { font-family: var(--font-mono); font-size: 5.8px; letter-spacing: .07em; text-transform: uppercase; color: var(--color-ink-3); }
.trd:nth-of-type(2) { animation-delay: 1.24s; }
.trd:nth-of-type(3) { animation-delay: 1.32s; }
.trd:nth-of-type(4) { animation-delay: 1.40s; }
.trd:nth-of-type(5) { animation-delay: 1.48s; }
.trd-sym { display: flex; align-items: center; gap: 6px; min-width: 0; }
.trd-sym b { font-size: 8.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trd-dot {
  display: grid; place-items: center; flex: none;
  width: 15px; height: 15px; border-radius: 5px;
  font-style: normal; font-family: var(--font-display);
  font-size: 6px; font-weight: 700; letter-spacing: -.02em;
}
.trd-dot.d1 { background: #fff3e0; color: #a86d06; }
.trd-dot.d2 { background: var(--color-soft); color: var(--color-brand-3); }
.trd-dot.d3 { background: #f3edff; color: #5a35e0; }
.trd-dot.d4 { background: var(--viz-up-soft); color: var(--viz-up); }
.trd s { text-decoration: none; font-family: var(--font-mono); font-size: 7px; color: var(--color-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trd u { text-decoration: none; text-align: right; font-family: var(--font-mono); font-size: 7.5px; font-weight: 600; }
.trd u.up { color: var(--viz-up); }
.trd u.down { color: var(--viz-down); }
.trd .tag { justify-self: start; }

@keyframes dash-rise { from { opacity: 0; transform: translateY(7px); } }

/* ---- console reflow on narrow laptop displays ----
   The display is 16/10, so its height falls with its width. Below ~600px there is
   only room for the header, the KPI row and one panel; showing four would slice
   each of them mid-row, so the console drops whole panels instead. */
@container dash (max-width: 600px) {
  .mb-display .dash-body { grid-template-columns: 34px minmax(0, 1fr); }
  .mb-display .dash-side { padding: 8px 5px; align-items: center; }
  .ds-brand { padding: 2px 0 9px; }
  .ds-brand b, .ds-promo { display: none; }
  .dash-side .ds-item { justify-content: center; padding: 5px; font-size: 0; gap: 0; }
  .dash-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 7px; padding: 9px;
  }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .dash-accts, .dash-feed, .dash-content > .dash-trades { display: none; }
  .dash-content > .dash-chart { grid-column: 1; grid-row: 3; }
}
@container dash (max-width: 420px) {
  .dash-content { gap: 6px; padding: 8px; }
  .dt-greet i, .dt-lat { display: none; }
  /* the display is only ~200px tall here, so the KPI block gives up its
     delta lines rather than squeezing the curve out of the chart panel */
  .mb-display .kpi { padding: 5px 7px; }
  .mb-display .kpi b { font-size: 11px; }
  .mb-display .kpi u { display: none; }
}

/* ============================================================
   45. Hero app — the RelayFX phone beside the laptop
   ============================================================ */
/* The phone sits on the laptop's right shoulder, milled from the same titanium
   as the MacBook lid so the two read as one product family. */
.stage-3d .dash-phone {
  left: auto; right: -1%; bottom: -6%;
  width: 26%; min-width: 94px; max-width: 184px;
  border-radius: 9% / 4.3%;
  padding: 3%;
  background: linear-gradient(160deg, #5a6176 0%, #2c3243 30%, #1b2030 62%, #3a4255 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / .2),
    inset 0 1px 0 rgb(255 255 255 / .34),
    0 44px 74px -28px rgb(13 20 78 / .7),
    0 10px 24px -14px rgb(13 20 78 / .5);
  filter: none;
}
@media (min-width: 1280px) { .stage-3d .dash-phone { right: -2%; bottom: -8%; } }
/* past 1440 there is gutter to spare, so the phone slides out far enough to let
   the signal feed behind it read as a panel rather than a sliver */
@media (min-width: 1440px) { .stage-3d .dash-phone { right: -6%; } }
@media (min-width: 1600px) { .stage-3d .dash-phone { right: -9%; } }

/* The stock float-bob keyframe animates `transform` outright, which wipes the
   3D tilt for the whole cycle. The hero phone carries its rotation through. */
@keyframes phone-bob-3d {
  0%, 100% { transform: rotateX(5deg) rotateY(-9deg) rotateZ(1.6deg) translateY(0); }
  50%      { transform: rotateX(5deg) rotateY(-9deg) rotateZ(1.6deg) translateY(-11px); }
}
.stage-3d .dash-phone.float-phone { animation: phone-bob-3d 8s ease-in-out infinite; }

/* machined side buttons, catching the same light as the lid */
.dp-rails { position: absolute; inset: 0; pointer-events: none; }
.stage-3d .dash-phone::before,
.stage-3d .dash-phone::after,
.dp-rails::before,
.dp-rails::after {
  content: ""; position: absolute; width: 1.5%; border-radius: 1px;
  background: linear-gradient(180deg, #878ea3 0%, #4a5265 48%, #2b3142 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 1px 2px rgb(0 0 0 / .35);
}
.stage-3d .dash-phone::before { left: -1.1%; top: 16%; height: 4.5%; }
.stage-3d .dash-phone::after  { left: -1.1%; top: 24%; height: 9%; }
.dp-rails::before { left: -1.1%; top: 35%; height: 9%; }
.dp-rails::after  { right: -1.1%; top: 28%; height: 13%; }

/* black bezel, then the glass */
.stage-3d .dash-phone .dp-screen {
  position: relative;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .85), inset 0 0 0 2.5px rgb(120 170 255 / .07);
}
.stage-3d .dash-phone .dp-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 6;
  background: linear-gradient(116deg, rgb(255 255 255 / .17) 0%, rgb(255 255 255 / .05) 20%, transparent 42%);
}
.stage-3d .dash-phone .phone-island {
  top: 5.6%; width: 30%; height: 2.9%;
  background: #04070e;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
}

/* the alert floats clear of the phone, on the opposite corner */
.stage-3d .dash-toast { right: auto; left: -2%; bottom: 4%; }
@media (max-width: 1023px) { .stage-3d .dash-toast { left: 0; bottom: -3%; } }

.dp-head { gap: 3cqw; }
.dp-logo { display: grid; place-items: center; flex: none; width: 11.5cqw; height: 11.5cqw; border-radius: 3cqw; background: rgb(255 255 255 / .1); }
.dp-logo svg { width: 7.5cqw; height: 5.4cqw; }
.dp-id { min-width: 0; flex: 1; }
.dp-bell { position: relative; flex: none; color: #c3cbea; }
.dp-bell svg { width: 5.4cqw; height: 5.4cqw; }
.dp-bell i { position: absolute; top: -0.4cqw; right: -0.4cqw; width: 2.2cqw; height: 2.2cqw; border-radius: 999px; background: #3ee09a; }

.dp-kpis { margin-top: 5cqw; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6cqw; }
.dp-kpi {
  position: relative; overflow: hidden;
  display: grid; gap: 0.6cqw; align-content: start;
  border-radius: 4.4cqw; padding: 3.4cqw 3.6cqw;
  background: linear-gradient(180deg, rgb(255 255 255 / .09), rgb(255 255 255 / .04));
  border: 1px solid rgb(150 165 255 / .18);
  animation: dash-rise .8s var(--ease-out-expo) backwards;
}
.dp-kpi.is-wide { grid-column: 1 / -1; padding-bottom: 0; }
.dp-kpi:nth-child(1) { animation-delay: .75s; }
.dp-kpi:nth-child(2) { animation-delay: .84s; }
.dp-kpi:nth-child(3) { animation-delay: .93s; }
.dp-kpi i { font-style: normal; font-family: var(--font-mono); font-size: 3.4cqw; letter-spacing: .1em; text-transform: uppercase; color: #8e98c9; }
.dp-kpi b { font-family: var(--font-display); font-size: 6.4cqw; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.dp-kpi.is-wide b { font-size: 10cqw; }
.dp-kpi u { text-decoration: none; font-size: 3.9cqw; color: #8e98c9; white-space: nowrap; }
.dp-kpi u.up { color: #3ee09a; }
.dp-spark { display: block; width: calc(100% + 7.2cqw); margin: 1.6cqw -3.6cqw -1px; height: 15cqw; }
.dp-spark-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: viz-draw 1.8s var(--ease-out-expo) 1.1s forwards; }

.dp-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 2cqw; margin-top: 5cqw; padding-inline: 1cqw; }
.dp-sec b { font-size: 4.6cqw; font-weight: 600; letter-spacing: -.02em; }
.dp-sec s { text-decoration: none; font-size: 3.6cqw; color: #6f9dff; }

.dp-row { animation: dash-rise .7s var(--ease-out-expo) backwards; }
.dp-row:nth-of-type(1) { animation-delay: 1.02s; }
.dp-row:nth-of-type(2) { animation-delay: 1.10s; }
.dp-row:nth-of-type(3) { animation-delay: 1.18s; }
.dp-row:nth-of-type(4) { animation-delay: 1.26s; }
.dp-row .tag { justify-self: start; }

.dp-tabs i { width: auto; height: auto; border-radius: 0; background: none; color: #6f7aad; display: grid; place-items: center; }
.dp-tabs i svg { width: 5cqw; height: 5cqw; }
.dp-tabs i.on { background: none; color: #6f9dff; }

@media (prefers-reduced-motion: reduce) {
  .dash-side .ds-item, .ds-promo, .dash-panel, .mb-display .kpi,
  .acct, .feed-row, .trd, .dp-kpi, .dp-row, .dc-tip { animation: none; }
  .stage-3d .dash-phone.float-phone { animation: none; transform: rotateX(5deg) rotateY(-9deg) rotateZ(1.6deg); }
  .dc-area { opacity: 1; animation: none; }
  .feed-row.is-new .feed-ava::after { animation: none; opacity: .3; }
}
