/* FXBITI Affiliates, public landing.
   Same world as the portal: dark slate frame where the brand lives, white work area
   where numbers are read. Orange only as accent (primary button, live markers). */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/inter-700.woff2") format("woff2"); }

:root {
  /* frame */
  --ink: #101216; --ink-2: #191c22; --ink-3: #23272f;
  --ink-line: rgba(255, 255, 255, .08); --ink-line-2: rgba(255, 255, 255, .14);
  --on-ink: #f2f4f7; --on-ink-soft: #c3c8d1; --on-ink-muted: #9aa1ad;
  /* work area */
  --bg: #f4f5f7; --card: #ffffff; --head: #f9fafb;
  --line: #e4e7ec; --line-2: #d0d5dd;
  --text: #101828; --soft: #344054; --muted: #667085;
  /* accent + meaning */
  --orange: #e77e00; --orange-hover: #f08a0c; --orange-ink: #b45f00; --orange-soft: #fff4e5; --on-orange: #1d1203;
  --pos: #067647; --pos-bg: #ecfdf3; --pos-on-ink: #47cd89;
  --wait: #93370d; --wait-bg: #fffaeb;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* type scale: 12 / 13 / 14 / 16 / 18 / 22 + two fluid display sizes */
  --fs-xs: 12px; --fs-s: 13px; --fs-m: 14px; --fs-b: 16px; --fs-l: 18px; --fs-xl: 22px;
  --fs-h2: clamp(28px, 3.3vw, 42px);
  --fs-h1: clamp(36px, 5vw, 62px);

  /* 8px rhythm */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
  --gutter: clamp(16px, 4vw, 32px);
  --sec: clamp(64px, 9vw, 120px);
  --r: 10px; --r-s: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px -8px rgba(16, 24, 40, .14);
  --shadow-ink: 0 2px 4px rgba(0, 0, 0, .25), 0 32px 64px -16px rgba(0, 0, 0, .55);
  --hdr-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--card); color: var(--text);
  font: var(--fs-b)/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--on-orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--orange); color: var(--on-orange); padding: 10px 14px; border-radius: var(--r-s); font-weight: 600; font-size: var(--fs-m); text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--pos); }
.muted { color: var(--muted); }
.i { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent;
  font-size: var(--fs-m); font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .18s cubic-bezier(.16, 1, .3, 1), box-shadow .18s ease, opacity .16s ease;
}
.btn-lg { min-height: 48px; padding: 0 22px; font-size: var(--fs-b); }
.btn-primary { background: var(--orange); color: var(--on-orange); position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; width: 14px; height: 14px; flex-shrink: 0; margin-right: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1203' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}
.btn-primary:hover { background: #d97700; transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .55); }
.btn-primary:hover::after { transform: translateX(3px); }
.btn-ghost { border-color: var(--ink-line-2); color: var(--on-ink); background: transparent; }
.btn-ghost:hover { background: var(--ink-2); border-color: rgba(255, 255, 255, .32); }
.btn:active, .btn-primary:hover:active { transform: translateY(0) scale(.98); box-shadow: none; }
/* one sheen pass across the hero call to action, 1.5s after load */
.btn-primary.sheen::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-120%); animation: sheen 1.1s cubic-bezier(.4, 0, .2, 1) 1 forwards;
}
@keyframes sheen { to { transform: translateX(260%); } }
.link { color: var(--orange-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: var(--ink); color: var(--on-ink); border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease; }
.hdr.condensed { border-bottom-color: var(--ink-line-2); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .8); }
.hdr-in { display: flex; align-items: center; gap: var(--s3); height: var(--hdr-h); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--on-ink); flex-shrink: 0; transform-origin: 0 50%; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.brand img { height: 38px; width: auto; }
.brand span { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--on-ink-soft); padding: 3px 0 3px 14px; border-left: 1px solid var(--ink-line-2); line-height: 16px; }
.hdr.condensed .brand { transform: scale(.86); }
.ftr .brand img { height: 40px; }
.nav { display: flex; gap: 2px; margin-left: 4px; }
.nav a { color: var(--on-ink-soft); text-decoration: none; font-size: var(--fs-m); font-weight: 500; padding: 8px 10px; border-radius: var(--r-s); white-space: nowrap; }
.nav a:hover { color: var(--on-ink); background: var(--ink-2); }
.hdr-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* language dropdown */
.lsel { position: relative; }
.lsel-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 11px; border-radius: 8px;
  border: 1px solid var(--ink-line-2); background: transparent; color: var(--on-ink); cursor: pointer;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; transition: background-color .15s ease, border-color .15s ease;
}
.lsel-btn:hover, .lsel-btn[aria-expanded="true"] { background: var(--ink-2); border-color: rgba(255, 255, 255, .24); }
.lsel-btn .i { width: 16px; height: 16px; color: var(--on-ink-soft); }
.lsel-btn .lsel-chev { width: 14px; height: 14px; transition: transform .2s ease; }
.lsel-btn[aria-expanded="true"] .lsel-chev { transform: rotate(180deg); }
.lsel-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 200px; padding: 6px;
  background: var(--ink-2); border: 1px solid var(--ink-line-2); border-radius: 10px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); transform-origin: 100% 0;
  transition: opacity .16s ease, transform .2s cubic-bezier(.16, 1, .3, 1);
}
.lsel-menu.closed { opacity: 0; transform: translateY(-4px) scale(.98); }
.lsel-h { padding: 8px 10px 4px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-muted); }
.lsel-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 0 10px;
  border-radius: 6px; color: var(--on-ink-soft); text-decoration: none; font-size: var(--fs-m); font-weight: 500;
}
.lsel-menu a:hover, .lsel-menu a:focus-visible { background: var(--ink-3); color: var(--on-ink); outline-offset: -2px; }
.lsel-menu a .i { width: 16px; height: 16px; color: var(--orange); visibility: hidden; }
.lsel-menu a[aria-current="true"] { color: var(--on-ink); }
.lsel-menu a[aria-current="true"] .i { visibility: visible; }
.lsel-nav { display: none; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--ink-line); }
.lbl-short { display: none; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--ink-line-2); background: transparent; color: var(--on-ink); place-items: center; cursor: pointer; }
.menu-btn[aria-expanded="true"] { background: var(--ink-2); }
.drawer { border-top: 1px solid var(--ink-line); background: var(--ink); }
.drawer.anim { transition: opacity .22s ease, transform .3s cubic-bezier(.16, 1, .3, 1); }
.drawer.anim.closed { opacity: 0; transform: translateY(-8px); }
.drawer-in { display: flex; flex-direction: column; padding-block: var(--s1) var(--s3); }
.drawer-in > a { color: var(--on-ink); text-decoration: none; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--ink-line); }
.drawer-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: var(--s3); }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--on-ink); }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8);
  padding-top: clamp(48px, 7vw, 96px); align-items: center;
}
.hero h1 { font-size: var(--fs-h1); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; max-width: 13ch; }
.lead { margin-top: var(--s3); font-size: var(--fs-l); line-height: 1.6; color: var(--on-ink-soft); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s4); }
.terms { grid-column: 1 / -1; margin-top: clamp(72px, 8vw, 112px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink-line); }
.terms > div { padding: var(--s3) var(--s3) var(--s4); }
.terms > div:first-child { padding-left: 0; }
.terms > div + div { border-left: 1px solid var(--ink-line); }
.terms dt { font-size: var(--fs-s); color: var(--on-ink-muted); }
.terms dd { margin-top: 4px; font-size: var(--fs-b); font-weight: 600; color: var(--on-ink); }

.hero-mock { position: relative; min-width: 0; }
.toast {
  position: absolute; left: -32px; bottom: -56px; display: flex; align-items: center; gap: 12px;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px 12px 12px; box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 20px 40px -12px rgba(0, 0, 0, .45); max-width: calc(100% + 32px);
}
.toast-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--pos-bg); color: var(--pos); display: grid; place-items: center; flex-shrink: 0; }
.toast-ic .i { width: 18px; height: 18px; stroke-width: 2.25; }
.toast-tx { display: flex; flex-direction: column; min-width: 0; }
.toast-tx b { font-size: var(--fs-s); font-weight: 600; }
.toast-tx small { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.toast-amt { margin-left: 8px; font-size: var(--fs-l); font-weight: 600; color: var(--pos); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }

/* the app window */
.app { display: flex; background: var(--card); color: var(--text); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-ink); border: 1px solid var(--ink-line); }
.app-rail { width: 52px; flex-shrink: 0; background: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 18px; color: #6b7280; border-right: 1px solid var(--ink-line); }
.app-rail .i { width: 18px; height: 18px; }
.app-rail .i.on { color: var(--on-ink); }
.rail-logo { width: 22px; height: 22px; border-radius: 5px; margin-bottom: 6px; object-fit: cover; }
.app-main { flex: 1; min-width: 0; }
.app-top, .cl-top, .week-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); }
.app-top { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.app-title { font-size: var(--fs-m); font-weight: 600; color: var(--text); }
.app-sub { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.tag { flex-shrink: 0; font-size: var(--fs-xs); font-weight: 500; color: var(--soft); background: var(--bg); border: 1px dashed var(--line-2); border-radius: 999px; padding: 3px 10px; white-space: nowrap; line-height: 1.4; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.kpis > div { padding: 12px 20px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpis > div + div { border-left: 1px solid var(--line); }
.kpis > div > span { font-size: var(--fs-xs); color: var(--muted); }
.kpis b { font-size: var(--fs-xl); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; line-height: 1.3; }
.kpi-bal { background: var(--orange-soft); }
.kpi-bal b { color: var(--orange-ink); }

.stmt { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.stmt th { text-align: left; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); background: var(--head); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stmt th.num { text-align: right; }
.stmt td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stmt th:first-child, .stmt td:first-child { padding-left: 20px; }
.stmt th:last-child, .stmt td:last-child { padding-right: 20px; }
.stmt .tk { font-family: var(--mono); font-size: var(--fs-xs); color: var(--soft); }
.stmt td.pos { font-weight: 600; }
.stmt tr.hl td { background: #fffaf2; }
.stmt tr.hl .tk { color: var(--orange-ink); font-weight: 600; }
.stmt tr.zero td { border-bottom: 0; }
.stmt tr.why td { padding-top: 0; color: var(--soft); font-size: var(--fs-xs); white-space: normal; }
.stmt tr.why td { display: table-cell; }
.stmt tr.why .i { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 6px; color: var(--muted); }
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 12px 20px; font-size: var(--fs-xs); color: var(--muted); }
.fake-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 6px 10px; color: var(--soft); font-weight: 500; font-size: var(--fs-xs); background: var(--card); white-space: nowrap; }
.fake-btn .i { width: 14px; height: 14px; }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec); }
.sec-gray { background: var(--bg); }
.sec-dark { background: var(--ink); color: var(--on-ink); }
.sec-head { max-width: 720px; margin-bottom: var(--s6); }
.sec-head-wide { max-width: 860px; }
.sec h2 { font-size: var(--fs-h2); line-height: 1.12; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.lead-d { margin-top: var(--s2); font-size: var(--fs-l); color: var(--muted); max-width: 60ch; }
.sec-dark .lead-d { color: var(--on-ink-soft); }

/* ---------- scenario ---------- */
.scen { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s8); align-items: center; }
.scen-big { margin-top: var(--s5); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.scen-big span { font-size: clamp(44px, 7.4vw, 104px); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.scen-big small { font-size: var(--fs-l); color: var(--muted); font-weight: 500; }
.scen-badge { display: inline-block; margin-top: var(--s2); font-size: var(--fs-xs); font-weight: 500; color: var(--soft); background: var(--card); border: 1px dashed var(--line-2); border-radius: 999px; padding: 3px 10px; }
.scen-link { display: block; width: fit-content; margin-top: var(--s3); font-size: var(--fs-m); }
.scen-sheet { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: var(--s4); box-shadow: var(--shadow); min-width: 0; }
.scen-sheet dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-m); }
.scen-sheet dt { color: var(--soft); min-width: 0; }
.scen-sheet dd { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.scen-sheet .sub dt { padding-left: var(--s2); color: var(--muted); }
.scen-sheet .sub dd { font-weight: 600; }
.scen-sheet .total { border-bottom: 0; padding-top: var(--s2); }
.scen-sheet .total dt { color: var(--text); font-weight: 600; font-size: var(--fs-b); }
.scen-sheet .total dd { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.02em; }
.scen-note { margin-top: var(--s2); font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }

/* ---------- trace: one trade, five stops ---------- */
.trace { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); position: relative; }
.trace::before { content: ""; position: absolute; left: 6px; right: calc((100% - 4 * var(--s3)) / 5 - 7px); top: 6px; height: 2px; background: var(--line); }
.trace::after { content: ""; position: absolute; left: 6px; right: calc((100% - 4 * var(--s3)) / 5 - 7px); top: 6px; height: 2px; background: var(--orange); transform-origin: left center; transform: scaleX(1); }
.stop { position: relative; padding-top: var(--s4); min-width: 0; }
.stop-mark { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 2px solid var(--orange); z-index: 1; }
.stop-end .stop-mark { background: var(--orange); }
.stop-val { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stop-val.mono { font-size: var(--fs-l); font-weight: 600; letter-spacing: 0; color: var(--orange-ink); }
.stop h3 { margin-top: var(--s1); font-size: var(--fs-b); font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.stop p:not(.stop-val) { margin-top: 6px; font-size: var(--fs-m); color: var(--muted); line-height: 1.55; }

/* the one orchestrated moment: line draws, stops arrive in order */
@media (prefers-reduced-motion: no-preference) {
  .trace.armed::after { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); }
  .trace.armed .stop { opacity: 0; transform: translateY(8px); transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1); }
  .trace.armed.in::after { transform: scaleX(1); }
  .trace.armed.in .stop { opacity: 1; transform: none; }
  .trace.armed.in .stop:nth-child(2) { transition-delay: .18s; }
  .trace.armed.in .stop:nth-child(3) { transition-delay: .36s; }
  .trace.armed.in .stop:nth-child(4) { transition-delay: .54s; }
  .trace.armed.in .stop:nth-child(5) { transition-delay: .72s; }
}

/* ---------- commission ---------- */
.streams { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); align-items: stretch; }
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; min-width: 0; }
.sheet-h { padding: var(--s4) var(--s4) var(--s3); }
.sheet h3 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.sheet-h p { margin-top: var(--s1); color: var(--soft); font-size: var(--fs-b); max-width: 52ch; }
.rates { width: calc(100% - 2 * var(--s4)); margin: 0 var(--s4) var(--s4); border-collapse: collapse; font-size: var(--fs-m); }
.rates th, .rates td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.rates thead th { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; padding-top: 0; }
.rates thead th.num { text-align: right; }
.rates td.num { font-weight: 600; font-size: var(--fs-b); text-align: right; }
.rules { padding: 0 var(--s4) var(--s4); display: grid; gap: 12px; }
.rules li { display: flex; gap: 12px; font-size: var(--fs-m); color: var(--soft); line-height: 1.55; }
.rules .i { width: 18px; height: 18px; color: var(--pos); margin-top: 2px; }
.receipt { margin: auto var(--s4) var(--s4); background: var(--head); border: 1px solid var(--line); border-radius: 8px; padding: var(--s2) 20px; }
.receipt-h { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.receipt dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding: 6px 0; font-size: var(--fs-m); }
.receipt dt { color: var(--soft); min-width: 0; }
.receipt dd { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.receipt .total { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 12px; }
.receipt .total dt { color: var(--text); font-weight: 600; }
.receipt .total dd { font-weight: 600; font-size: var(--fs-l); }

.calc { margin-top: var(--s3); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.calc-in { padding: var(--s4); display: flex; flex-direction: column; }
.calc-rates { margin-top: auto; padding-top: var(--s3); font-size: var(--fs-s); color: var(--muted); }
.calc-rates b { color: var(--text); font-weight: 600; }
.calc h3 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.02em; }
.calc-lead { margin-top: 6px; color: var(--muted); font-size: var(--fs-m); }
.fields { margin-top: var(--s3); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s3); }
.fld { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; font-size: var(--fs-s); font-weight: 500; color: var(--soft); }
.fld input {
  width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; background: var(--card);
  font-size: var(--fs-b); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text);
}
.fld input:hover { border-color: #98a2b3; }
.fld input:focus-visible { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); border-radius: 8px; }
.calc-out { background: var(--ink); color: var(--on-ink); padding: var(--s4); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3); }
.calc-out dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding: 12px 0; border-bottom: 1px solid var(--ink-line); }
.calc-out dt { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-m); color: var(--on-ink-soft); min-width: 0; }
.calc-out dt small { font-size: var(--fs-xs); color: var(--on-ink-muted); font-variant-numeric: tabular-nums; }
.calc-out dd { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; font-size: var(--fs-b); }
.calc-out dl > div.total { border-bottom: 0; padding-top: var(--s3); flex-direction: column; align-items: flex-start; gap: 4px; }
.calc-out .total dt { color: var(--on-ink-soft); font-weight: 500; font-size: var(--fs-m); }
.calc-out .total dd { font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; letter-spacing: -.035em; color: var(--on-ink); line-height: 1.1; white-space: normal; overflow-wrap: anywhere; }
.calc-out dt small { overflow-wrap: anywhere; }
.calc-note { font-size: var(--fs-xs); color: var(--on-ink-muted); line-height: 1.5; }

/* ---------- transparency ---------- */
.tr-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8); align-items: start; }
.checks { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
.checks li { display: flex; gap: var(--s2); padding: var(--s3) 0; border-top: 1px solid var(--ink-line); }
.checks .i { color: var(--orange); margin-top: 2px; }
.checks h3 { font-size: var(--fs-b); font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.checks p { margin-top: 6px; font-size: var(--fs-m); color: var(--on-ink-soft); line-height: 1.55; }
.checks li:last-child { grid-column: 1 / -1; }

.clients, .week { background: var(--card); color: var(--text); border-radius: 12px; border: 1px solid var(--line); min-width: 0; }
.clients { box-shadow: var(--shadow-ink); border-color: var(--ink-line); position: sticky; top: calc(var(--hdr-h) + 24px); }
.cl-top, .week-top { padding: 18px 20px 14px; }
.cl { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.cl th { text-align: left; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); background: var(--head); padding: 8px 12px; border-block: 1px solid var(--line); }
.cl th.num { text-align: right; }
.cl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cl th:first-child, .cl td:first-child { padding-left: 20px; }
.cl th:last-child, .cl td:last-child { padding-right: 20px; }
.cl td b { font-weight: 600; }
.cl td small { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; line-height: 1.45; }
.chip { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--bg); color: var(--soft); border: 1px solid var(--line); vertical-align: 1px; line-height: 1.5; }
.chip-pos { background: var(--pos-bg); color: var(--pos); border-color: #abefc6; }
.chip-wait { background: var(--wait-bg); color: var(--wait); border-color: #fedf89; }
.cl-pay { padding: 14px 20px 18px; }
.cl-pay-h { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.cl-pay-row { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: var(--fs-s); }
.cl-pay-row .mono { color: var(--soft); font-size: var(--fs-xs); }
.cl-pay-row b { font-variant-numeric: tabular-nums; font-weight: 600; }
.cl-pay-row .chip { margin-left: 0; }

/* ---------- payouts ---------- */
.pay-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: center; }
.facts { margin-top: var(--s4); display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
.facts > div { padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: var(--fs-s); color: var(--muted); }
.facts dd { margin-top: 2px; font-weight: 600; font-size: var(--fs-b); }
.week { box-shadow: var(--shadow); }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 4px 20px 20px; }
.days li { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; min-width: 0; }
.d-name { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; white-space: nowrap; }
.d-bar { height: 140px; background: var(--head); border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.d-bar i { display: block; width: 100%; height: var(--v); background: #cfd4dc; }
.b1 { --v: 83.9%; } .b2 { --v: 88.2%; } .b3 { --v: 93.8%; } .b4 { --v: 97.2%; } .b5 { --v: 100%; }
.d-add { font-size: var(--fs-xs); color: var(--pos); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.days b { font-size: var(--fs-s); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.days .fri .d-name { color: var(--orange-ink); font-weight: 600; }
.days .fri .d-bar { border-color: var(--orange); }
.days .fri .d-bar i { background: var(--orange); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.flow li { padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-s); color: var(--soft); position: relative; min-width: 0; }
.flow li + li { border-left: 1px solid var(--line); }
.flow-k { font-size: var(--fs-xs); font-weight: 600; color: var(--text); }
.flow li:first-child .flow-k { color: var(--orange-ink); }

/* ---------- tools ---------- */
.tools-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s8); align-items: center; }
.tool-list { margin-top: var(--s4); }
.tool-list li { display: flex; gap: var(--s2); padding: 18px 0; border-top: 1px solid var(--line-2); }
.tool-list .i { color: var(--text); margin-top: 2px; }
.tool-list h3 { font-size: var(--fs-b); font-weight: 600; line-height: 1.35; }
.tool-list p { margin-top: 4px; font-size: var(--fs-m); color: var(--muted); }
.chat-who { display: flex; align-items: center; gap: 10px; font-size: var(--fs-s); color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 600; flex-shrink: 0; }
.bubble { margin-top: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: 12px 14px; font-size: var(--fs-s); color: var(--soft); line-height: 1.5; }

/* ---------- photos ---------- */
.photo { display: block; width: 100%; height: auto; border-radius: 12px; object-fit: cover; background: var(--ink-2); }
/* photo reveal: a wipe from the bottom plus a soft settle from 1.06 */
.photo.ph-armed { clip-path: inset(100% 0 0 0 round 12px); scale: 1.06; }
.photo.ph-armed.ph-in { clip-path: inset(0 0 0 0 round 12px); scale: 1; transition: clip-path 1s cubic-bezier(.65, 0, .35, 1), scale 1.4s cubic-bezier(.16, 1, .3, 1); }
.photo.ph-in.kb { scale: 1.05; transition: scale 14s linear; }
.mgr-card.pop-armed { opacity: 0; transform: translateY(10px) scale(.98); }
.mgr-card.pop-armed.pop-in { opacity: 1; transform: none; transition: opacity .4s ease-out, transform .5s cubic-bezier(.16, 1, .3, 1); }
.bubble.typing { position: relative; color: transparent; }
.bubble .dots { position: absolute; left: 14px; top: 50%; display: flex; gap: 5px; translate: 0 -50%; }
.bubble .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s ease-in-out infinite; }
.bubble .dots i:nth-child(2) { animation-delay: .15s; } .bubble .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.bubble.typed { transition: color .3s ease; }
/* language swap: a quick crossfade of the text */
:where([data-i18n], [data-usd], [data-usd0], [data-num]) { transition: opacity .16s ease; }
body.xfade :is([data-i18n], [data-usd], [data-usd0], [data-num]):not(title):not(.lsel *) { opacity: 0; }
.mgr { position: relative; min-width: 0; padding-bottom: var(--s6); }
.mgr .photo { aspect-ratio: 3 / 2; }
.mgr-card {
  position: absolute; left: -24px; bottom: 0; width: min(380px, 88%); background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; box-shadow: var(--shadow);
}
.mgr-card .chat-who { gap: 10px; color: var(--text); }
.mgr-card .chat-who b { font-weight: 600; font-size: var(--fs-s); }
.mgr-card .chat-who .tag { margin-left: auto; }
.mgr-card .avatar .i { width: 16px; height: 16px; }
.mgr-card .bubble { margin-top: 10px; }
.broker { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s8); align-items: center; }
.broker-photo .photo { aspect-ratio: 3 / 2; }
.broker-photo, .final-photo { overflow: hidden; border-radius: 12px; }
.broker-list { margin-top: var(--s4); display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
.broker-list > div { padding: 14px 0; border-top: 1px solid var(--line-2); min-width: 0; }
.broker-list dt { font-size: var(--fs-s); color: var(--muted); }
.broker-list dd { margin-top: 2px; font-weight: 600; font-size: var(--fs-b); line-height: 1.4; }

/* ---------- join ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); counter-reset: none; }
.steps li { padding-top: var(--s3); border-top: 2px solid var(--text); }
.steps.line-armed li { position: relative; border-top-color: transparent; }
.steps.line-armed li::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--text); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s cubic-bezier(.16, 1, .3, 1) .1s; }
.steps.line-armed li:nth-child(2)::before { transition-delay: .3s; }
.steps.line-armed li:nth-child(3)::before { transition-delay: .5s; }
.steps.line-armed li.rv-in::before, .steps.line-armed.drawn li::before { transform: scaleX(1); }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: var(--fs-m); font-weight: 600; }
.steps h3 { margin-top: var(--s2); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.02em; }
.steps p { margin-top: var(--s1); color: var(--muted); font-size: var(--fs-b); max-width: 40ch; }
.join-cta { margin-top: var(--s6); display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.join-cta p { color: var(--muted); font-size: var(--fs-m); }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s8); align-items: start; }
.faq-head .lead-d { font-size: var(--fs-b); }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 20px 0; cursor: pointer; font-size: var(--fs-l); font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq .faq-a { display: grid; grid-template-rows: 1fr; }
.faq .faq-a > div { overflow: hidden; min-height: 0; }
.faq.anim .faq-a { grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.16, 1, .3, 1); }
.faq.anim details.is-open .faq-a { grid-template-rows: 1fr; }
.faq.anim details summary .i { transform: none; }
.faq.anim details.is-open summary .i { transform: rotate(180deg); }
.faq summary:hover span { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.faq details p { padding: 0 var(--s6) 22px 0; color: var(--soft); max-width: 68ch; }

/* ---------- final + footer ---------- */
.final { background: var(--ink); color: var(--on-ink); padding-block: var(--sec); }
.final-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8); align-items: center; }
.final .actions { margin-top: var(--s4); }
.final-photo .photo { aspect-ratio: 4 / 5; object-position: center 30%; }
.final h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; font-weight: 600; letter-spacing: -.035em; max-width: 20ch; text-wrap: balance; }
.final-lead { margin-top: var(--s2); font-size: var(--fs-l); color: var(--on-ink-soft); max-width: 48ch; }
.ftr { background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid var(--ink-line); padding-block: var(--s6) var(--s5); font-size: var(--fs-s); }
.ftr-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding-bottom: var(--s3); border-bottom: 1px solid var(--ink-line); }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.ftr-nav a { color: var(--on-ink-soft); text-decoration: none; padding: 6px 0; }
.ftr-nav a:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
.risk { margin-top: var(--s3); max-width: 100ch; line-height: 1.6; }
.risk b { color: var(--on-ink); font-weight: 600; }
.copy { margin-top: var(--s2); }

/* ---------- responsive ---------- */
@media (max-width: 1259px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero h1 { max-width: 16ch; }
  .hero-in { row-gap: var(--s6); }
  .terms { margin-top: var(--s2); }
  .toast { position: relative; left: auto; bottom: auto; margin: -24px 0 0 16px; width: fit-content; max-width: calc(100% - 16px); }
  .scen { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s2); }
  .terms > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .terms > div:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
  .tr-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .clients { position: static; max-width: 640px; }
  .pay-grid, .tools-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .broker, .final-in { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .broker-photo { order: 2; }
  .final-photo { max-width: 520px; }
  .final-photo .photo { aspect-ratio: 3 / 2; }
  .mgr { max-width: 640px; }
  .mgr-card { left: 16px; }
  .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .trace { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: var(--s4); }
  .stop { padding: 0 0 var(--s4); }
  .stop:last-child { padding-bottom: 0; }
  .stop-mark { left: calc(-1 * var(--s4)); top: 4px; }
  .trace::before, .trace::after { display: none; }
  .stop:not(:last-child)::before { content: ""; position: absolute; left: calc(-1 * var(--s4) + 6px); top: 18px; bottom: -4px; width: 2px; background: var(--orange); }
  .stop p:not(.stop-val) { max-width: 52ch; }
  .streams { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --hdr-h: 64px; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .final-in { align-items: stretch; }
  .final .actions .btn { flex: 1 1 0; }
}
@media (max-width: 560px) {
  .app-rail { display: none; }
  .c-lots, .c-share { display: none; }
  .stmt th:first-child, .stmt td:first-child { padding-left: 14px; }
  .stmt th:last-child, .stmt td:last-child { padding-right: 14px; }
  .stmt th, .stmt td { padding-inline: 8px; }
  .app-top, .app-foot { padding-inline: 14px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis > div { padding: 10px 14px; }
  .kpis > div.kpi-bal { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .kpis b { font-size: var(--fs-l); }
  .kpi-bal b { font-size: var(--fs-xl); }
  .toast { margin: -16px 0 0 8px; padding: 10px 12px; gap: 10px; }
  .toast-amt { font-size: var(--fs-b); margin-left: 0; }
  .toast-tx small { white-space: normal; }
  .scen-sheet { padding: 20px; }
  .scen-sheet dl > div { font-size: var(--fs-s); }
  .scen-sheet .sub dt { padding-left: 12px; }
  .days { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 8px 20px 20px; }
  .days li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "n bar bal" "n add add"; align-items: center; column-gap: 12px; row-gap: 0; text-align: left; }
  .d-name { grid-area: n; }
  .d-bar { grid-area: bar; height: 10px; align-items: stretch; border-radius: 999px; }
  .d-bar i { width: var(--v); height: 100%; }
  .week.bars-armed .d-bar i { transform: scaleX(0); transform-origin: 0 50%; }
  .week.bars-armed.bars-in .d-bar i { transform: scaleX(1); }
  .days b { grid-area: bal; font-size: var(--fs-s); text-align: right; }
  .d-add { grid-area: add; text-align: right; }
  .sheet-h { padding: var(--s3) 20px var(--s2); }
  .rates { width: calc(100% - 40px); margin: 0 20px var(--s3); }
  .rules { padding: 0 20px var(--s3); }
  .receipt { margin: auto 20px 20px; padding: 14px 16px; }
  .receipt dl > div { font-size: var(--fs-s); }
  .calc-in, .calc-out { padding: var(--s3) 20px; }
  .terms { grid-template-columns: minmax(0, 1fr); }
  .terms > div, .terms > div + div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding: 12px 0; border-left: 0; }
  .terms > div + div { border-top: 1px solid var(--ink-line); }
  .terms dd { margin-top: 0; text-align: right; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li + li { border-left: 0; border-top: 1px solid var(--line); }
  .flow li { padding: 12px 20px; }
  .faq details p { padding-right: 0; }
  .actions .btn { flex: 1 1 auto; }
  .ftr-top { flex-direction: column; align-items: flex-start; }
  .broker-list { grid-template-columns: minmax(0, 1fr); }
  .mgr { padding-bottom: 0; }
  .mgr-card { position: relative; left: auto; bottom: auto; width: auto; margin: -32px 12px 0; }
  .hdr-in { gap: var(--s2); }
  .brand { gap: 10px; }
  .brand img { height: 28px; }
  .brand span { font-size: 10px; letter-spacing: .12em; padding-left: 10px; }
  .ftr .brand img { height: 34px; }
  .hdr-tools { gap: 8px; }
}
@media (max-width: 760px) {
  .hdr-tools { gap: 8px; }
  .hdr .hdr-cta { min-height: 40px; padding: 0 12px; font-size: var(--fs-s); }
}
/* phones: both buttons stay in the bar; the section links move into the dropdown */
@media (max-width: 640px) {
  .menu-btn, .drawer { display: none !important; }
  .lsel-nav { display: block; }
  .lsel-menu { position: fixed; top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) - 4px); right: 12px; left: auto; min-width: 220px; }
  .hdr .hdr-join::after { display: none; }
  .hdr .lbl-full { display: none; }
  .hdr .lbl-short { display: inline; }
  .lsel-btn { padding: 0 8px; gap: 4px; }
  .lsel-btn > .i:first-child { display: none; }
  .hdr-in { gap: 10px; }
  .hdr-tools { gap: 6px; }
  .hdr .hdr-cta { padding: 0 10px; }
  .brand img { height: 24px; }
}
@media (min-width: 480px) and (max-width: 640px) {
  .lsel-btn > .i:first-child { display: inline-block; }
}
@media (max-width: 419px) {
  .brand span { display: none; }
}

/* ---------- motion (JS adds these classes only when motion is allowed) ---------- */
.splash { display: none; }
.splash.on {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--ink); pointer-events: none;
  transition: opacity .3s ease, transform .32s cubic-bezier(.65, 0, .35, 1);
}
.splash-in { display: grid; justify-items: center; gap: 14px; }
.splash img { height: 46px; width: auto; opacity: 0; transform: scale(.96); transition: opacity .32s ease-out, transform .45s cubic-bezier(.16, 1, .3, 1); }
.splash-line { width: 132px; height: 2px; background: var(--orange); border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.65, 0, .35, 1) .08s; }
.splash-label { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--on-ink-soft); opacity: 0; transition: opacity .3s ease .2s; }
.splash.play img { opacity: 1; transform: none; }
.splash.play .splash-line { transform: scaleX(1); }
.splash.play .splash-label { opacity: 1; }
.splash.out { opacity: 0; transform: translateY(-10px); }
.odo { display: inline-block; white-space: nowrap; }
.odo-d { display: inline-block; height: 1.3em; line-height: 1.3em; overflow: hidden; vertical-align: top; }
.odo-s { display: flex; flex-direction: column; will-change: transform; }
.odo-s > span { display: block; height: 1.3em; line-height: 1.3em; }
.cu-box { position: relative; display: inline-block; font-variant-numeric: tabular-nums; }
.cu-ghost { color: transparent; }
.cu-live { position: absolute; top: 0; left: 0; width: 100%; white-space: nowrap; }
.cu-live.r { text-align: right; } .cu-live.l { text-align: left; }
.stmt tbody tr.enter { animation: row-in .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stmt tr.flash td { animation: warm 1.6s ease-out both; }
@keyframes warm { from { background-color: #ffe0b3; } to { background-color: #fffaf2; } }
.toast.pre { opacity: 0; transform: translateY(14px); }
.toast.show { transition: opacity .45s ease-out, transform .6s cubic-bezier(.16, 1, .3, 1); }
.rv { opacity: 0; transform: translateY(12px); }
.rv.rv-in { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1); }
.week.bars-armed .d-bar i { transform: scaleY(0); transform-origin: 50% 100%; }
.week.bars-armed.bars-in .d-bar i { transform: scaleY(1); transition: transform .8s cubic-bezier(.16, 1, .3, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .lsel-btn, .tag, .chip { border: 1px solid ButtonText; }
  .btn-primary::after { forced-color-adjust: auto; }
  .d-bar i, .trace::after { background: Highlight; }
}
