/* TradeRun · Coming Soon v0.7 "RUN" — design round stylesheet.
   One face on every glyph: Press Start 2P (Player2), self-hosted, latin + cyrillic subsets.
   Layout in container units of .cs, so a real viewport and a fixed design artboard lay out alike.
   The vanishing point is always the centre of .cs. */

@font-face {
  font-family: "Press Start 2P"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/__cs/a/c2a20dcb95ec8f4d/press-start-2p-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Press Start 2P"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/__cs/a/afec86997fdaf54a/press-start-2p-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0e1a; --surface-2: #161b27; --border-hi: #2a3349;
  --fg: #e8edf5; --fg-dim: #aab3c5; --fg-mute: #828da1;
  --neon-green: #39ff14; --neon-cyan: #00f0ff; --neon-magenta: #ff63d4; --neon-amber: #ffb000;
  --text-heading: var(--neon-magenta); --text-row: var(--neon-cyan);
  --danger: #ff3864;
  --gold: #c98200;                       /* the R of tr-full.png, measured */
  --ease-arcade: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 120ms;
  --pixel: "Press Start 2P", "Courier New", monospace;
}
html, body { margin: 0; height: 100%; background: var(--bg); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--neon-green); color: var(--bg); }

.cs {
  position: relative; width: 100%; height: 100svh; min-height: 560px; overflow: hidden;
  container: cs / size; background: var(--bg); color: var(--fg); font-family: var(--pixel);
}
.cs *, .cs *::before, .cs *::after { box-sizing: border-box; }

/* atmosphere (globals.css .atmos): three slow blooms; the corridor carries the rest of the motion */
.cs-atmos { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cs-bloom { position: absolute; width: 62cqw; height: 62cqw; min-width: 560px; min-height: 560px; border-radius: 50%; }
.cs-bloom--a { top: -20cqw; left: -14cqw; background: radial-gradient(circle, rgba(57,255,20,.15), rgba(57,255,20,.05) 44%, transparent 70%); }
.cs-bloom--b { top: 16cqh; right: -22cqw; background: radial-gradient(circle, rgba(0,240,255,.12), rgba(0,240,255,.04) 44%, transparent 70%); }
.cs-bloom--c { bottom: -30cqw; left: 24cqw; background: radial-gradient(circle, rgba(255,99,212,.12), rgba(255,99,212,.04) 44%, transparent 68%); }
@media (prefers-reduced-motion: no-preference) {
  .cs-bloom--a { animation: cs-atm-a 46s ease-in-out infinite alternate; }
  .cs-bloom--b { animation: cs-atm-b 58s ease-in-out infinite alternate; }
  .cs-bloom--c { animation: cs-atm-c 68s ease-in-out infinite alternate; }
}
@keyframes cs-atm-a { to { transform: translate3d(9cqw, 6cqh, 0) scale(1.14); } }
@keyframes cs-atm-b { to { transform: translate3d(-11cqw, -8cqh, 0) scale(1.1); } }
@keyframes cs-atm-c { to { transform: translate3d(7cqw, -7cqh, 0) scale(1.18); } }
.cs-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* the mark's resting place; the <img> is the no-script fallback, the canvas draws it once ready */
.cs-mark { position: absolute; left: 61cqw; top: 50%; width: min(27cqw, 400px); aspect-ratio: 4721 / 2458; transform: translateY(-50%); }
.cs-mark__art { display: block; width: 100%; height: 100%; }
.cs-mark[data-drawn="1"] .cs-mark__art { visibility: hidden; }

/* top bar */
.cs-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: flex-end; padding: 22px 5cqw 0; z-index: 3; }
.cs-lang { display: flex; gap: 2px; padding: 4px; }
.cs-lang__btn { font-family: var(--pixel); font-size: 10px; letter-spacing: .06em; color: var(--fg-mute); background: none; border: 0; padding: 12px 10px; min-height: 44px; min-width: 44px; cursor: pointer; transition: color 160ms var(--ease-arcade); }
.cs-lang__btn:hover { color: var(--fg); }
.cs-lang__btn[aria-pressed="true"] { color: var(--neon-green); }
.cs-lang__btn:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 0; }
.cs-lang__btn:active { transform: translateY(2px); }

/* ── one column: name, status, the product plate, the notify plate ─────────────────────── */
.cs-col { position: absolute; left: 5cqw; top: 0; bottom: 0; width: min(31cqw, 456px); z-index: 2;
  display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 84px 0 48px; }
.cs-title { margin: 0 0 16px; font-weight: 400; display: flex; flex-direction: column; gap: 18px; }

/* TRADERUN: set tight on the font's own 8-pixel grid (56px = 7px per font pixel, tracking −4px),
   TRADE in white and RUN in the gold of the mark's R, extruded toward the vanishing point. */
.cs-name { position: relative; display: block; font-size: 56px; line-height: 1; letter-spacing: -1px; white-space: nowrap;
  --depth: .012; --vx: 50cqw; --vy: 50cqh; }
.cs-name__face { position: relative; }
.cs-name .t { color: var(--fg); }
.cs-name .r { color: var(--gold); }
.cs-x { position: absolute; left: 0; top: 0; transform-origin: var(--vx) var(--vy); pointer-events: none; user-select: none; }
.cs-x .t { color: color-mix(in srgb, var(--fg) var(--m), #05070d); }
.cs-x .r { color: color-mix(in srgb, var(--gold) var(--m), #05070d); }
.cs-x:nth-child(1)  { transform: scale(calc(1 - var(--depth) * 1.000)); --m: 14%; }
.cs-x:nth-child(2)  { transform: scale(calc(1 - var(--depth) * 0.900)); --m: 17%; }
.cs-x:nth-child(3)  { transform: scale(calc(1 - var(--depth) * 0.800)); --m: 20%; }
.cs-x:nth-child(4)  { transform: scale(calc(1 - var(--depth) * 0.700)); --m: 23%; }
.cs-x:nth-child(5)  { transform: scale(calc(1 - var(--depth) * 0.600)); --m: 26%; }
.cs-x:nth-child(6)  { transform: scale(calc(1 - var(--depth) * 0.500)); --m: 29%; }
.cs-x:nth-child(7)  { transform: scale(calc(1 - var(--depth) * 0.400)); --m: 32%; }
.cs-x:nth-child(8)  { transform: scale(calc(1 - var(--depth) * 0.300)); --m: 35%; }
.cs-x:nth-child(9)  { transform: scale(calc(1 - var(--depth) * 0.200)); --m: 39%; }
.cs-x:nth-child(10) { transform: scale(calc(1 - var(--depth) * 0.100)); --m: 44%; }

.cs-status { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1; color: var(--fg); letter-spacing: .02em; }
.cs-status__dot { width: 10px; height: 10px; background: var(--neon-green); box-shadow: 0 0 10px rgba(57,255,20,.55); flex: none; }
@media (prefers-reduced-motion: no-preference) { .cs-status__dot { animation: cs-blink 1.6s steps(2, end) infinite; } }
@keyframes cs-blink { 50% { opacity: .25; } }

/* ── glass: translucent chamfered plate, one hairline edge lit from the side facing the centre ── */
.glass { position: relative; --cut: 10px; --light-dir: 270deg; padding: 20px 22px 18px; }
.glass::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .06), transparent 55%),
    linear-gradient(var(--light-dir), rgba(30, 36, 52, .58), rgba(12, 16, 26, .76));
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.glass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(var(--light-dir), rgba(220, 255, 230, .5), rgba(255, 255, 255, .16) 45%, rgba(255, 255, 255, .08));
  clip-path: polygon(evenodd,
    var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut), var(--cut) 0,
    calc(var(--cut) + .42px) 1px, 1px calc(var(--cut) + .42px), 1px calc(100% - var(--cut) - .42px), calc(var(--cut) + .42px) calc(100% - 1px), calc(100% - var(--cut) - .42px) calc(100% - 1px), calc(100% - 1px) calc(100% - var(--cut) - .42px), calc(100% - 1px) calc(var(--cut) + .42px), calc(100% - var(--cut) - .42px) 1px, calc(var(--cut) + .42px) 1px);
}
.glass > * { position: relative; z-index: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass::before { background: rgba(14, 18, 29, .92); } }
@media (prefers-reduced-transparency: reduce) { .glass::before { background: rgba(14, 18, 29, .94); } }

/* product plate: the claim in magenta (the same role as the form title), a green pixel marker that
   rhymes with the button, the explanation in the reading grey */
.cs-info__title { margin: 0; display: flex; gap: 12px; align-items: baseline; font-size: 14px; line-height: 1.75; color: var(--text-heading); text-wrap: balance; }
.cs-info__title::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--neon-green); box-shadow: 0 0 8px rgba(57,255,20,.5); transform: translateY(-1px); }
.cs-info__body { margin: 12px 0 0 20px; font-size: 12px; line-height: 1.95; color: #c9d0dc; text-wrap: pretty; }
/* accents from the design system, one role each: cyan names the idea, violet the range, a single
   amber touch on who sees it. The reading colour between them stays calm. */
.hl { color: inherit; }
.hl--c { color: var(--neon-cyan); }
.hl--v { color: #b269f8; }                 /* --text-section: the violet that clears AA on every surface */
.hl--a { color: var(--neon-amber); }

/* notify plate */
.cs-panel__title { margin: 0 0 16px; font-size: 12px; line-height: 1.6; font-weight: 400; color: var(--text-heading); display: flex; align-items: center; gap: 12px; }
.cs-demo { font-size: 8px; letter-spacing: .08em; padding: 4px 6px 3px; color: var(--bg); background: var(--neon-amber); line-height: 1; }
.cs-label { display: block; font-size: 9px; letter-spacing: .1em; color: var(--fg-mute); margin: 0 0 8px; }
.cs-row { display: flex; gap: 12px; align-items: stretch; }
.cs-input {
  flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 14px; font-family: var(--pixel); font-size: 12px; color: var(--fg);
  background: rgba(6, 9, 16, .74); border: 1px solid var(--border-hi); border-radius: 0;
  box-shadow: inset 2px 2px 0 0 rgba(0,0,0,.65), inset -1px -1px 0 0 rgba(255,255,255,.05);
  outline: none; -webkit-appearance: none; appearance: none;
}
.cs-input::placeholder { color: var(--fg-mute); opacity: 1; }
.cs-input:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
.cs-input[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 2px 2px 0 0 rgba(0,0,0,.65), 0 0 0 1px var(--danger), 0 0 14px rgba(255,56,100,.25); }
.cs-input[readonly] { color: var(--fg-dim); }
.cs-msg { margin: 10px 0 0; font-size: 9px; line-height: 1.9; color: var(--fg-dim); }
.cs-msg:empty { display: none; }
.cs-msg--error { color: var(--danger); }
.cs-consent { margin: 14px 0 0; font-size: 8px; line-height: 2; color: var(--fg-mute); }
.cs-done { display: none; }
.cs-done__title { margin: 0 0 10px; font-size: 12px; line-height: 1.6; color: var(--text-row); }
.cs-done__title--error { color: var(--danger); }
/* the answer's title takes focus so a screen reader lands on it; it is not a control, so no ring */
.cs-done__title:focus { outline: none; }
.cs-done__body { margin: 0 0 16px; font-size: 10px; line-height: 2; color: var(--fg-dim); overflow-wrap: anywhere; }
.cs-done__body b { font-weight: 400; color: var(--fg); }
.cs-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cs-link { font-family: var(--pixel); font-size: 9px; letter-spacing: .06em; color: var(--fg-dim); background: none; border: 0; padding: 14px 4px; min-height: 44px; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 6px; }
.cs-link:hover { color: var(--fg); }
.cs-link:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
.cs-panel[data-state="pending"] .cs-form, .cs-panel[data-state="resent"] .cs-form, .cs-panel[data-state="error"] .cs-form { display: none; }
.cs-panel[data-state="pending"] .cs-done--pending, .cs-panel[data-state="resent"] .cs-done--resent, .cs-panel[data-state="error"] .cs-done--error { display: block; }

/* ── .btn-pixel (globals.css + effects.css values) ───────────────────────────────────────
   The label is centred on its INK, not on its em box (see .btn-label). Measured on EN/RU/UA,
   idle and sending, 1440 and 390 wide: ink centre within ±0.3px of the face centre. */
.btn-pixel {
  font-family: var(--pixel); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 18px; min-height: 40px; background: var(--neon-green); color: var(--bg); border: none; border-radius: 0; cursor: pointer;
  position: relative; overflow: hidden; user-select: none; white-space: nowrap;
  box-shadow: inset -2px -2px 0 0 rgba(0,0,0,.35), inset 2px 2px 0 0 rgba(255,255,255,.45), 0 4px 0 0 #1a8a05, 0 6px 12px -2px rgba(57,255,20,.4);
  transition: transform var(--t-fast) var(--ease-arcade), box-shadow var(--t-fast) var(--ease-arcade), filter var(--t-fast) ease;
}
/* x: the glyph's own right bearing (1 of 8 font pixels) plus the trailing letter-spacing push the
   ink left by ~0.08em; y: capitals sit in the top 7 of 8 font pixels. Both measured, both in em. */
.btn-pixel .btn-label { display: block; transform: translate(var(--ink-dx, 0.09em), var(--ink-dy, 0.0625em)); }
.btn-pixel:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-pixel:active { transform: translateY(3px); box-shadow: inset -2px -2px 0 0 rgba(0,0,0,.35), inset 2px 2px 0 0 rgba(255,255,255,.45), 0 1px 0 0 #1a8a05, 0 2px 4px -2px rgba(57,255,20,.4); }
.btn-pixel:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 3px; }
.btn-pixel--lg { font-size: 12px; padding: 0 22px; min-height: 52px; min-width: 168px; }
.btn-pixel--ghost { background: var(--surface-2); color: var(--fg); box-shadow: inset -2px -2px 0 0 rgba(0,0,0,.4), inset 2px 2px 0 0 rgba(255,255,255,.08), 0 4px 0 0 #050810; }
.btn-pixel::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 36%; background: linear-gradient(105deg, transparent 0 30%, rgba(255,255,255,.45) 30% 55%, rgba(255,255,255,.14) 55% 62%, transparent 62%); transform: translateX(-140%); pointer-events: none; }
.btn-pixel:hover::after { animation: fx-btn-shine 480ms steps(7, end) 1 both; }
@keyframes fx-btn-shine { from { transform: translateX(-140%); } to { transform: translateX(440%); } }
.btn-pixel.is-busy { pointer-events: none; }
.btn-bar { display: none; }
.btn-pixel.is-busy .btn-bar { display: block; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: repeating-linear-gradient(90deg, rgba(10,14,26,.55) 0 6px, transparent 6px 12px); }
@media (prefers-reduced-motion: no-preference) { .btn-pixel.is-busy .btn-bar { animation: cs-bar 600ms steps(6, end) infinite; } }
@keyframes cs-bar { from { background-position: 0 0; } to { background-position: 12px 0; } }

.cs-foot { position: absolute; right: 5cqw; bottom: 3.2cqh; margin: 0; font-size: 8px; letter-spacing: .06em; color: var(--fg-mute); z-index: 2; }

/* DEMO controls and diagnostics (prototype only) */
.cs-demobar { position: absolute; right: 5cqw; top: 76px; z-index: 3; display: flex; gap: 6px; align-items: center; font-size: 8px; color: var(--fg-mute); }
.cs-demobar button { font-family: var(--pixel); font-size: 8px; color: var(--fg-mute); background: rgba(6,9,16,.7); border: 1px solid var(--border-hi); padding: 8px; min-height: 32px; cursor: pointer; }
.cs-demobar button[aria-pressed="true"] { color: var(--neon-amber); border-color: var(--neon-amber); }
.cs-diag { position: absolute; left: 5cqw; top: 30px; z-index: 3; font-size: 8px; line-height: 1.8; color: var(--fg-mute); }
.cs-diag b { font-weight: 400; color: var(--neon-green); }
.cs-diag b.bad { color: var(--danger); }
.cs--clean .cs-diag, .cs--clean .cs-demobar { display: none; }

/* ── phone ─────────────────────────────────────────────────────────────────────────────── */
@container cs (max-width: 700px) {
  .cs-top { padding: 6px 8px 0; }
  .cs-col { left: 12px; right: 12px; width: auto; justify-content: flex-start; gap: 10px; padding: 58px 0 12px; }
  .cs-title { margin: 0 0 8px; padding: 0 6px; gap: 14px; }
  .cs-name { font-size: 40px; letter-spacing: -1px; --depth: .01; }
  .cs-status { font-size: 11px; gap: 10px; }
  .cs-status__dot { width: 8px; height: 8px; }
  .glass { padding: 15px 15px 14px; }
  .cs-info__title { font-size: 11px; line-height: 1.7; gap: 10px; }
  .cs-info__title::before { width: 6px; height: 6px; }
  .cs-info__body { font-size: 11px; line-height: 1.85; margin: 8px 0 0 16px; }
  .cs-panel { margin-top: auto; }
  .cs-panel__title { margin-bottom: 12px; }
  .cs-row { flex-direction: column; gap: 12px; }
  .cs-input { font-size: 16px; height: 52px; }          /* 16px: iOS zooms into anything smaller on focus */
  .btn-pixel--lg { width: 100%; }
  .cs-consent { margin-top: 10px; }
  /* phone: the mark sits on the corridor's own axis (the vanishing point's vertical), 12.5% smaller than
     in v0.6. Its height is the middle of the free band between the explanation plate and the notify
     plate; cs-page.js measures that band and writes --mark-cy (without the script: 52.5%). */
  .cs-mark { left: 50%; top: var(--mark-cy, 52.5%); width: 49cqw; transform: translate(-50%, -50%); }
  .cs-foot { display: none; }
  .cs-demobar { right: 12px; top: 48px; }
  .cs-diag { left: 14px; top: 16px; }
}
@container cs (max-width: 700px) and (max-height: 700px) {
  .cs-col { padding-top: 48px; gap: 8px; }
  .cs-name { font-size: 32px; letter-spacing: -1px; }
  .cs-title { gap: 10px; margin-bottom: 4px; }
  .cs-info__title { font-size: 10px; }
  /* short phones: the same axis, 12% smaller than in v0.6; the band is measured the same way */
  .cs-mark { top: var(--mark-cy, 48.75%); width: 33cqw; }
  .cs-panel__title { margin-bottom: 10px; }
  .cs-input { height: 48px; }
  .btn-pixel--lg { min-height: 48px; }
}
.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; }
