/* Landing prototype C: "Before / After, three acts".
   Names the tokens of /styles.css. The few literals below are local tokens for
   objects that keep their own colour in both themes (phones, a sticky note,
   avatars, vault thumbnails). */

:root {
  --c-device: #16161b;
  --c-device-edge: rgba(236, 231, 220, 0.16);
  --c-device-shadow: rgba(0, 0, 0, 0.55);
  --c-on-device: #f3eee4;
  --c-on-device-2: rgba(236, 231, 220, 0.68);
  --c-notif: rgba(30, 30, 36, 0.88);
  --c-notif-edge: rgba(236, 231, 220, 0.1);
  --c-tg: #3d8ed8;
  --c-scr-luna: linear-gradient(170deg, #4a2659 0%, #1b1024 55%, #0b0a0e 100%);
  --c-scr-nova: linear-gradient(170deg, #1a4656 0%, #0d1d25 55%, #0a0b0e 100%);
  --c-scr-ivy: linear-gradient(170deg, #4a3c1b 0%, #1e180c 55%, #0b0a08 100%);
  --c-av-mia: linear-gradient(140deg, #e08aa0, #7a2a45);
  --c-av-theo: linear-gradient(140deg, #7fa3ef, #2b3f86);
  --c-th-1: linear-gradient(150deg, #b679d4, #3b1a4c);
  --c-th-2: linear-gradient(150deg, #e3b26a, #5a3a12);
  --c-th-3: linear-gradient(150deg, #63b6d2, #123846);
  --c-th-4: linear-gradient(150deg, #e08aa0, #5a1f33);
  --c-th-5: linear-gradient(150deg, #8fd0a8, #164a33);
  --c-th-6: linear-gradient(150deg, #7fa3ef, #1f2e66);
  --c-sticky: linear-gradient(160deg, #f5e4bd 0%, #e6cb92 100%);
  --c-sticky-ink: #2b2112;
  --c-tape: rgba(255, 255, 255, 0.38);
  --c-grad-text: linear-gradient(92deg, var(--color-accent-100) 0%, var(--color-accent-200) 48%, var(--color-accent-400) 100%);
  --c-section: clamp(88px, 10vw, 148px);
  --c-h2: clamp(34px, 4.6vw, 60px);
  --c-h2-xl: clamp(38px, 5.6vw, 80px);
  --c-slot: 66px;
}
:root[data-theme="light"] {
  --c-device-shadow: rgba(40, 30, 10, 0.32);
  --c-grad-text: linear-gradient(92deg, var(--color-accent-text) 0%, var(--color-accent-500) 55%, var(--color-accent-text) 100%);
}

/* ---- Page frame -------------------------------------------------------------- */
.c-page main {
  overflow-x: clip;
}
.c-head-actions {
  margin-left: auto;
}
.c-center {
  text-align: center;
}
.c-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.c-ctas .btn svg {
  width: 18px;
  height: 18px;
}
.c-dur {
  margin-left: 2px;
  padding: 3px 8px;
  border-radius: var(--radius-capsule);
  background: var(--surface-glass-hover);
  color: var(--color-fg-2);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
sup {
  font-size: 0.7em;
  line-height: 0;
}

/* Avatars */
.c-av {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--c-on-device);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.c-av-mia { background: var(--c-av-mia); }
.c-av-theo { background: var(--c-av-theo); }
.c-f1 { background: color-mix(in srgb, var(--color-status-info) 62%, var(--color-bg-3)); }
.c-f2 { background: color-mix(in srgb, var(--color-status-online) 58%, var(--color-bg-3)); }
.c-f3 { background: color-mix(in srgb, var(--color-status-error) 52%, var(--color-bg-3)); }
.c-f4 { background: color-mix(in srgb, var(--color-accent-400) 72%, var(--color-bg-3)); }
:root[data-theme="light"] .c-f1 { background: var(--color-status-info); }
:root[data-theme="light"] .c-f2 { background: var(--color-status-online); }
:root[data-theme="light"] .c-f3 { background: var(--color-status-error); }
:root[data-theme="light"] .c-f4 { background: var(--color-accent-500); }
img.c-av,
.c-mav img,
.c-mpic img,
.c-acct img,
.c-mchip img,
.c-mini-acct img {
  display: block;
  border-radius: 50%;
}

/* Label swap: both labels share one grid cell, so the box keeps the wider
   width and the old label leaves before the new one arrives. */
.c-swap {
  display: inline-grid;
}
.c-swap > * {
  grid-area: 1 / 1;
  transition: opacity 0.25s var(--ease-out);
}
.c-swap > .c-s2 {
  opacity: 0;
}
.is-paid .c-swap > .c-s1 {
  opacity: 0;
}
.is-paid .c-swap > .c-s2 {
  opacity: 1;
  transition: opacity 0.35s var(--ease-out) 0.25s;
}

/* Toast: "$40 paid · credited to Mia" */
.c-toast {
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 8px;
  border-radius: var(--radius-capsule);
  border: 1px solid color-mix(in srgb, var(--color-status-online) 45%, var(--border-soft-2));
  background: var(--color-bg-1);
  box-shadow: var(--shadow-2), 0 14px 40px -14px color-mix(in srgb, var(--color-status-online) 55%, transparent);
  color: var(--color-fg-1);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.c-toast > svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--color-status-online);
  color: var(--color-bg-0);
}
.c-toast b {
  color: var(--color-status-online);
  font-weight: 800;
}

/* ---- Hero -------------------------------------------------------------------- */
.c-hero {
  position: relative;
  padding-top: clamp(28px, 3.6vw, 52px);
  text-align: center;
}
.c-hero > * {
  animation: c-rise 0.9s var(--ease-out) both;
}
.c-hero > :nth-child(2) { animation-delay: 0.06s; }
.c-hero > :nth-child(3) { animation-delay: 0.14s; }
.c-hero > :nth-child(4) { animation-delay: 0.22s; }
.c-hero > :nth-child(5) { animation-delay: 0.34s; }
@keyframes c-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.c-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 16px 0 13px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-soft-2);
  background: var(--surface-glass);
  color: var(--color-fg-2);
  font-size: 13.5px;
  font-weight: 600;
}
.c-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-status-online);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-status-online) 22%, transparent);
}
.c-h1 {
  margin-top: 24px;
  font-size: clamp(38px, 6vw, 86px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.c-h1 span {
  display: block;
}
.c-grad {
  padding-bottom: 0.08em;
  background: var(--c-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.c-sub {
  margin: 20px auto 0;
  text-wrap: balance;
  color: var(--color-fg-2);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.5;
}

/* Hero flow: models -> the FanEmpire window -> chatters */
.c-flow {
  position: relative;
  display: grid;
  grid-template-columns: 196px minmax(40px, 1fr) 368px minmax(40px, 1fr) 236px;
  align-items: center;
  max-width: 1120px;
  margin: clamp(40px, 4.4vw, 60px) auto 0;
  padding: 50px 40px 22px;
  border-radius: var(--radius-section);
  border: 1px solid var(--border-soft-2);
  background:
    radial-gradient(46% 70% at 50% 46%, var(--accent-glow-strong), transparent 70%),
    color-mix(in srgb, var(--color-bg-1) 72%, transparent);
  box-shadow: var(--shadow-2), var(--inset-highlight);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}
:root[data-theme="light"] .c-flow {
  background:
    radial-gradient(46% 70% at 50% 46%, var(--accent-halo), transparent 70%),
    color-mix(in srgb, var(--color-bg-1) 80%, transparent);
}
.c-flow-models,
.c-flow-team {
  display: grid;
  gap: 12px;
}
.c-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px 0 5px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-soft-2);
  background: var(--color-bg-2);
  color: var(--color-fg-1);
  font-size: 15px;
  font-weight: 650;
  text-align: left;
}
.c-pill .c-av {
  width: 34px;
  height: 34px;
  font-size: 12px;
}
.c-mpic {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
}
.c-mpic img {
  width: 34px;
  height: 34px;
}
.c-ok {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 16px;
  height: 16px;
  padding: 3px;
  border-radius: 50%;
  border: 2px solid var(--color-bg-2);
  background: var(--color-status-online);
  color: var(--color-bg-0);
  box-sizing: content-box;
}
.c-state {
  margin-left: auto;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}
.c-on {
  color: var(--color-status-online);
}
.c-ended {
  justify-self: end;
  padding: 3px 9px;
  border-radius: var(--radius-capsule);
  background: color-mix(in srgb, var(--color-status-error) 16%, transparent);
  color: var(--color-status-error);
}
/* Theo's access ends a beat after load (final state is the default, so
   reduced motion shows it at once). */
.c-pill-theo .c-s1 {
  opacity: 0;
  animation: c-out 0.3s var(--ease-out) 3.6s both;
}
.c-pill-theo .c-s2 {
  opacity: 1;
  animation: c-in-fade 0.4s var(--ease-out) 3.9s both;
}
.c-pill-theo {
  border-color: color-mix(in srgb, var(--color-status-error) 40%, var(--border-soft-2));
  animation: c-theo 0.5s var(--ease-out) 3.6s both;
}
.c-pill-theo .c-av,
.c-pill-theo .c-pname {
  opacity: 0.55;
  animation: c-dim 0.5s var(--ease-out) 3.6s both;
}
@keyframes c-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes c-in-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes c-theo { from { border-color: var(--border-soft-2); } }
@keyframes c-dim { from { opacity: 1; } }
.c-wire {
  width: 100%;
  height: 156px;
  overflow: visible;
}
.c-wire path {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.c-wire-base {
  stroke: color-mix(in srgb, var(--color-accent-200) 38%, transparent);
  stroke-width: 1.75;
}
.c-wire-run {
  stroke: var(--color-accent-100);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 0 34;
  animation: c-dash 2.6s linear infinite;
  filter: drop-shadow(0 0 4px var(--color-accent-200));
}
.c-run-2 { animation-delay: -0.9s; }
.c-run-3 { animation-delay: -1.7s; }
@keyframes c-dash {
  to { stroke-dashoffset: -34; }
}
path.c-wire-theo {
  opacity: 0.16;
  animation: c-wire-off 0.6s var(--ease-out) 3.6s both;
}
path.c-wire-run.c-wire-theo {
  opacity: 0;
  animation: c-dash 2.6s linear infinite, c-wire-off-run 0.6s var(--ease-out) 3.6s both;
}
@keyframes c-wire-off { from { opacity: 1; } }
@keyframes c-wire-off-run { from { opacity: 1; } to { opacity: 0; } }

.c-core {
  position: relative;
  display: grid;
  justify-items: center;
}
.c-toast-hero {
  position: absolute;
  top: -22px;
  left: 50%;
  translate: -50% 0;
  animation: c-toast-in 0.6s var(--ease-out) 1.9s both;
}
@keyframes c-toast-in {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
.c-mini {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border-accent);
  background: var(--color-bg-1);
  box-shadow:
    0 0 0 6px var(--accent-halo),
    0 30px 80px -24px var(--accent-glow-strong),
    0 0 120px -10px var(--accent-glow-strong);
  text-align: left;
}
.c-mini-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-soft-1);
  background: var(--color-bg-0);
  font-size: 14px;
}
.c-mini-mark {
  width: 26px;
  height: 26px;
}
.c-mini-acct {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  margin-left: auto;
  padding: 0 10px 0 4px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-soft-2);
  color: var(--color-fg-2);
  font-size: 12.5px;
  font-weight: 700;
}
.c-mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  margin: 0 6px;
  padding: 0 10px;
  border-radius: 12px;
}
.c-mini-row:first-of-type {
  margin-top: 6px;
}
.c-mini-row:last-child {
  margin-bottom: 6px;
}
.c-mini-row.is-sel {
  background: var(--surface-glass-active);
}
.c-mini-row .c-avw,
.c-mini-row .c-avw .c-av {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  font-size: 12px;
}
.c-mini-row .c-txt {
  gap: 2px;
}
.c-mini-row .c-txt b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}
.c-mini-row .c-pv {
  font-size: 12.5px;
}
.c-mini-row time {
  align-self: flex-start;
  margin-top: 11px;
  color: var(--color-fg-3);
  font-size: 11.5px;
}
.c-paidtxt {
  color: var(--color-status-online);
  font-weight: 650;
}
.c-mini .c-swap > .c-s1 {
  opacity: 0;
  animation: c-out 0.25s var(--ease-out) 1.7s both;
}
.c-mini .c-swap > .c-s2 {
  opacity: 1;
  animation: c-in-fade 0.35s var(--ease-out) 1.95s both;
}
.c-flow-cap {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--color-fg-2);
  font-size: 14px;
  font-weight: 600;
}
.c-flow-cap svg {
  width: 15px;
  height: 15px;
  color: var(--color-accent-text);
}

/* ---- Acts -------------------------------------------------------------------- */
.c-act {
  position: relative;
  padding-top: var(--c-section);
}
.c-act-n {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-accent-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.c-act-n span {
  display: inline-grid;
  place-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.c-h2 {
  margin-top: 16px;
  font-size: var(--c-h2);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.c-h2-xl {
  font-size: var(--c-h2-xl);
  letter-spacing: -0.04em;
}
.c-lead {
  max-width: 32ch;
  margin-top: 18px;
  color: var(--color-fg-2);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
}

/* Act 1: the desk */
.c-before {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.c-desk {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  container-type: inline-size;
  border-radius: var(--radius-section);
  border: 1px solid var(--border-soft-1);
  background:
    radial-gradient(var(--tg-wallpaper-dot) 1px, transparent 1.5px) 0 0 / 18px 18px,
    radial-gradient(110% 90% at 30% 15%, var(--color-bg-2), var(--color-bg-1) 70%);
  box-shadow: var(--shadow-2), var(--inset-highlight);
}
.c-desk > * {
  position: absolute;
  translate: 0 calc(var(--p, 0) * var(--k, 0) * 1px);
}
.c-sheet {
  --k: -14;
  left: 6%;
  top: 9%;
  width: 46%;
  overflow: hidden;
  rotate: -4deg;
  border-radius: 2cqw;
  border: 1px solid var(--border-soft-2);
  background: var(--color-bg-1);
  box-shadow: var(--shadow-2);
  font-size: 1.9cqw;
}
.c-sheet-bar {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  height: 5.4cqw;
  padding: 0 2.2cqw;
  border-bottom: 1px solid var(--border-soft-2);
  color: var(--color-fg-2);
  font-weight: 700;
}
.c-sheet-bar svg {
  width: 2.4cqw;
  height: 2.4cqw;
  color: var(--color-status-online);
}
.c-sheet table {
  width: 100%;
  border-collapse: collapse;
}
.c-sheet th,
.c-sheet td {
  height: 5.1cqw;
  padding: 0 1.8cqw;
  border-right: 1px solid var(--border-soft-1);
  border-bottom: 1px solid var(--border-soft-1);
  color: var(--color-fg-2);
  text-align: left;
  white-space: nowrap;
}
.c-sheet th {
  color: var(--color-fg-3);
  font-size: 1.5cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.c-sheet .c-q {
  background: color-mix(in srgb, var(--color-status-idle) 12%, transparent);
  color: var(--color-status-idle);
  font-weight: 800;
}
.c-sheet .c-n {
  opacity: 0.5;
}
.c-phone {
  width: 21%;
  aspect-ratio: 9 / 19;
  padding: 0.7cqw;
  border-radius: 3.4cqw;
  border: 1px solid var(--c-device-edge);
  background: var(--c-device);
  box-shadow: 0 3cqw 7cqw -1cqw var(--c-device-shadow);
  animation: c-buzz 4.2s ease-in-out infinite;
}
.c-phone-1 { --k: 18; left: 45%; top: 30%; rotate: -10deg; z-index: 1; }
.c-phone-2 { --k: 32; left: 59%; top: 12%; rotate: 3deg; z-index: 2; animation-delay: 1.3s; }
.c-phone-3 { --k: 12; left: 72%; top: 27%; rotate: 9deg; animation-delay: 2.6s; }
@keyframes c-buzz {
  0%, 84%, 100% { transform: none; }
  86% { transform: translate(-0.4cqw, 0.2cqw) rotate(-1.2deg); }
  88% { transform: translate(0.4cqw, -0.2cqw) rotate(1.2deg); }
  90% { transform: translate(-0.3cqw, 0.1cqw) rotate(-0.8deg); }
  92% { transform: translate(0.3cqw, 0) rotate(0.6deg); }
}
.c-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  overflow: hidden;
  padding-top: 1.3cqw;
  border-radius: 2.8cqw;
  color: var(--c-on-device);
}
.c-scr-luna { background: var(--c-scr-luna); }
.c-scr-nova { background: var(--c-scr-nova); }
.c-scr-ivy { background: var(--c-scr-ivy); }
.c-notch {
  width: 6.4cqw;
  height: 1.7cqw;
  border-radius: 1cqw;
  background: var(--c-device);
}
.c-mchip {
  display: inline-flex;
  align-items: center;
  gap: 0.7cqw;
  margin-top: 1.5cqw;
  padding: 0.3cqw 1.2cqw 0.3cqw 0.3cqw;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--c-notif-edge);
  font-size: 1.4cqw;
  font-weight: 700;
}
.c-mchip img {
  width: 2.4cqw;
  height: 2.4cqw;
}
.c-clock {
  margin-top: 1.3cqw;
  font-size: 5cqw;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}
.c-notif {
  position: absolute;
  top: 44%;
  left: 0.9cqw;
  right: 0.9cqw;
  padding: 1cqw 1.1cqw;
  border-radius: 1.7cqw;
  border: 1px solid var(--c-notif-edge);
  background: var(--c-notif);
  text-align: left;
  animation: c-glowpulse 4.2s ease-in-out infinite;
}
.c-phone-2 .c-notif { animation-delay: 1.3s; }
.c-phone-3 .c-notif { animation-delay: 2.6s; }
@keyframes c-glowpulse {
  0%, 82%, 100% { box-shadow: none; }
  88% { box-shadow: 0 0 0 0.3cqw color-mix(in srgb, var(--c-tg) 55%, transparent); }
}
.c-na {
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  color: var(--c-on-device-2);
  font-size: 1.05cqw;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.c-na i {
  width: 1.3cqw;
  height: 1.3cqw;
  border-radius: 0.4cqw;
  background: var(--c-tg);
}
.c-na em {
  margin-left: auto;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}
.c-nt {
  display: block;
  margin-top: 0.5cqw;
  font-size: 1.6cqw;
  font-weight: 800;
}
.c-nb {
  display: block;
  margin-top: 0.2cqw;
  color: var(--c-on-device-2);
  font-size: 1.6cqw;
  letter-spacing: 0.25em;
}
.c-sticky {
  --k: -18;
  bottom: 6%;
  left: 7%;
  z-index: 3;
  width: 27%;
  aspect-ratio: 1.12;
  padding: 3cqw 2.4cqw;
  rotate: -7deg;
  border-radius: 0.6cqw;
  background: var(--c-sticky);
  box-shadow: 0 2.4cqw 5cqw -1cqw var(--c-device-shadow);
  color: var(--c-sticky-ink);
  font-size: 3.6cqw;
  font-style: italic;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.c-sticky::before {
  position: absolute;
  top: -1.4cqw;
  left: 50%;
  width: 9cqw;
  height: 2.6cqw;
  translate: -50% 0;
  rotate: 3deg;
  border-radius: 0.3cqw;
  background: var(--c-tape);
  content: "";
}

/* Act 2: the window */
.c-act-head {
  display: grid;
  justify-items: center;
  text-align: center;
}
.c-act-head .c-lead {
  max-width: 40ch;
}
.c-stage {
  margin-top: clamp(56px, 6vw, 84px);
  perspective: 2000px;
}
.c-win-wrap {
  position: relative;
  max-width: 1100px;
  margin-inline: auto;
}
.c-win {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border-soft-2);
  background: var(--color-bg-1);
  box-shadow:
    var(--shadow-modal),
    0 70px 160px -50px var(--accent-glow-strong);
  transform-origin: 50% 0;
}
.c-win-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-soft-1);
  background: var(--color-bg-0);
}
.c-win-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-soft-3);
}
.c-win-bar span {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  color: var(--color-fg-3);
  font-size: 13px;
  font-weight: 600;
}
.c-win-bar em {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: var(--radius-capsule);
  background: var(--surface-glass-active);
  color: var(--color-accent-text);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
}
.c-win-body {
  display: grid;
  grid-template-columns: 64px 78px 320px minmax(0, 1fr) 250px;
  height: 560px;
  font-size: 14px;
}
.c-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-right: 1px solid var(--border-soft-1);
  background: var(--color-bg-0);
}
.c-rail-mark {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
}
.c-mav {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.c-mav img {
  width: 40px;
  height: 40px;
}
.c-mav.is-on {
  box-shadow: 0 0 0 2px var(--color-bg-0), 0 0 0 4px var(--color-accent-400);
}
.c-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-capsule);
  border: 2px solid var(--color-bg-0);
  background: var(--color-accent-400);
  color: var(--color-fg-on-accent);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
}
.c-frail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 7px;
  border-right: 1px solid var(--border-soft-1);
  background: color-mix(in srgb, var(--color-bg-0) 45%, var(--color-bg-1));
}
.c-ft {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 0 9px;
  border-radius: 12px;
  color: var(--color-fg-2);
  font-size: 11px;
  font-weight: 700;
}
.c-ft svg {
  width: 20px;
  height: 20px;
}
.c-ft.is-on {
  background: var(--surface-glass-active);
  color: var(--color-accent-text);
}
.c-ft .c-badge {
  top: 5px;
  right: 9px;
  border-color: var(--color-bg-1);
}
.c-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--border-soft-1);
}
.c-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid var(--border-soft-1);
}
.c-acct {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 760;
}
.c-acct img {
  width: 24px;
  height: 24px;
}
.c-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-soft-2);
  background: var(--color-bg-2);
  font-size: 11.5px;
  font-weight: 700;
}
.c-seg span {
  padding: 4px 10px;
  border-radius: var(--radius-capsule);
  color: var(--color-fg-3);
}
.c-seg .is-on {
  background: var(--surface-glass-active);
  color: var(--color-accent-text);
}
.c-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  margin: 10px 10px 6px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--border-soft-1);
  background: var(--color-bg-2);
  color: var(--color-fg-3);
  font-size: 13px;
}
.c-search svg {
  width: 15px;
  height: 15px;
}
.c-rows {
  padding: 0 6px;
}
.c-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
  padding: 0 10px;
  border-radius: 12px;
}
.c-row.is-sel {
  background: var(--surface-glass-active);
}
.c-avw {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}
.c-avw .c-av {
  width: 42px;
  height: 42px;
  font-size: 13px;
}
.c-chip {
  position: absolute;
  bottom: -5px;
  left: -6px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-capsule);
  border: 2px solid var(--color-bg-1);
  background: var(--color-accent-200);
  color: var(--color-fg-on-accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
  white-space: nowrap;
}
.c-row.is-sel .c-chip,
.c-mini-row.is-sel .c-chip {
  border-color: var(--color-bg-2);
}
.c-txt {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}
.c-l1,
.c-l2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.c-l1 b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.c-l1 time {
  color: var(--color-fg-3);
  font-size: 12px;
}
.c-pv {
  overflow: hidden;
  color: var(--color-fg-2);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.c-pv .c-s2 {
  color: var(--color-status-online);
  font-weight: 650;
}
.c-hg {
  width: 13px;
  height: 13px;
  color: var(--color-status-idle);
}
.c-hg-jk {
  transition: opacity 0.3s var(--ease-out);
}
.is-paid .c-hg-jk {
  opacity: 0;
}
.c-cnt {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-capsule);
  background: var(--color-accent-400);
  color: var(--color-fg-on-accent);
  font-size: 11px;
  font-weight: 800;
}
.c-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    radial-gradient(var(--tg-wallpaper-dot) 1px, transparent 1.5px) 0 0 / 16px 16px,
    var(--tg-wallpaper-base);
}
.c-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-soft-1);
  background: var(--color-bg-1);
}
.c-chat-head .c-av {
  width: 34px;
  height: 34px;
  font-size: 12px;
}
.c-chat-head b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.c-chat-head small {
  color: var(--color-status-online);
  font-size: 12px;
  font-weight: 600;
}
.c-panes {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 10px;
  border: 1px solid var(--border-accent);
  color: var(--color-accent-text);
}
.c-panes svg {
  width: 18px;
  height: 18px;
}
.c-msgs {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px 18px 14px;
}
.c-b {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}
.c-in {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: var(--tg-bubble-in-bg);
}
.c-out {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: var(--tg-bubble-out-bg);
  color: var(--color-fg-on-accent);
}
.c-voice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px 7px 7px;
}
.c-play {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-accent-400);
  color: var(--color-fg-on-accent);
}
.c-play svg {
  width: 14px;
  height: 14px;
}
.c-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
}
.c-wave i {
  width: 3px;
  height: 40%;
  border-radius: 2px;
  background: var(--color-fg-2);
}
.c-wave i:nth-child(3n) { height: 85%; }
.c-wave i:nth-child(3n + 1) { height: 55%; }
.c-wave i:nth-child(4n) { height: 100%; }
.c-wave i:nth-child(5n) { height: 30%; }
.c-voice small {
  color: var(--color-fg-3);
  font-size: 11.5px;
}
.c-tr {
  padding: 4px 9px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-accent);
  color: var(--color-accent-text);
  font-size: 11.5px;
  font-weight: 700;
}
.c-pay {
  align-self: flex-end;
  width: 236px;
  padding: 14px 16px;
  border-radius: 16px 16px 6px 16px;
  border: 1px solid var(--border-accent);
  background: var(--color-bg-1);
  box-shadow: 0 16px 40px -18px var(--accent-glow-strong);
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.is-paid .c-pay {
  border-color: color-mix(in srgb, var(--color-status-online) 55%, transparent);
  box-shadow: 0 16px 44px -16px color-mix(in srgb, var(--color-status-online) 45%, transparent);
}
.c-pay-top {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-fg-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.c-pay-top svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent-text);
}
.c-pay b {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.c-pay-st {
  margin-top: 10px;
}
.c-pay-st > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-capsule);
  font-size: 12px;
  font-weight: 700;
}
.c-pay-st svg {
  width: 13px;
  height: 13px;
}
.c-st-wait {
  background: color-mix(in srgb, var(--color-status-idle) 14%, transparent);
  color: var(--color-status-idle);
}
.c-st-paid {
  background: color-mix(in srgb, var(--color-status-online) 16%, transparent);
  color: var(--color-status-online);
}
.c-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  margin: 0 12px 12px;
  padding: 0 7px 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border-soft-2);
  background: var(--color-bg-1);
  color: var(--color-fg-3);
}
.c-sell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  margin-left: auto;
  padding: 0 12px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-accent);
  color: var(--color-accent-text);
  font-size: 13px;
  font-weight: 700;
}
.c-sell svg {
  width: 14px;
  height: 14px;
}
.c-send {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-accent-400);
  color: var(--color-fg-on-accent);
}
.c-send svg {
  width: 16px;
  height: 16px;
}
.c-leadc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 16px;
  border-left: 1px solid var(--border-soft-1);
  background: var(--color-bg-1);
}
.c-leadc-top {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 6px;
  text-align: center;
}
.c-leadc-top .c-av {
  width: 64px;
  height: 64px;
  font-size: 20px;
}
.c-leadc-top b {
  font-size: 16px;
  font-weight: 760;
}
.c-tagrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.c-tag {
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-capsule);
  background: var(--surface-glass-active);
  color: var(--color-accent-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
}
.c-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.c-stat {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft-1);
  background: var(--color-bg-2);
}
.c-stat small {
  display: block;
  color: var(--color-fg-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.c-stat b {
  margin-top: 2px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.is-paid .c-stat:first-child b .c-s2 {
  color: var(--color-status-online);
}
.c-pin {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--color-bg-2);
  color: var(--color-fg-2);
  font-size: 13px;
}
.c-pin svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--color-accent-text);
}

/* After: toast breaking the window's top edge */
.c-toast-win {
  position: absolute;
  top: -22px;
  left: 168px;
  opacity: 0;
  transform: translateY(12px) scale(0.94);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.is-paid .c-toast-win {
  opacity: 1;
  transform: none;
}

/* After: annotation callouts (wide screens only) */
.c-call {
  position: absolute;
  z-index: 3;
  display: none;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out) 0.5s;
}
.is-shown .c-call {
  opacity: 1;
}
.c-call b {
  flex: none;
  padding: 6px 12px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-accent);
  background: var(--chrome-bg);
  color: var(--color-fg-1);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.c-call i {
  position: relative;
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, var(--border-accent), var(--color-accent-200));
}
.c-call i::after {
  position: absolute;
  top: 50%;
  right: -5px;
  width: 10px;
  height: 10px;
  translate: 0 -50%;
  border-radius: 50%;
  background: var(--color-accent-100);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent-200) 30%, transparent);
  content: "";
}
.c-call-paid {
  top: 176px;
  left: -176px;
  width: 348px;
}
.c-call-wait {
  top: 274px;
  left: -176px;
  width: 451px;
}
.c-call-panes {
  top: -62px;
  left: calc(100% - 280px);
  height: 129px;
  flex-direction: column;
  translate: -50% 0;
}
.c-call-panes i {
  width: 1.5px;
  height: auto;
  background: linear-gradient(180deg, var(--border-accent), var(--color-accent-200));
}
.c-call-panes i::after {
  top: auto;
  right: auto;
  bottom: -5px;
  left: 50%;
  translate: -50% 0;
}

.c-speed {
  position: absolute;
  z-index: 3;
  right: -28px;
  bottom: -40px;
  display: grid;
  gap: 2px;
  padding: 14px 20px 13px;
  border-radius: 18px;
  border: 1px solid var(--border-accent);
  background: var(--chrome-bg);
  box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
.c-speed b {
  background: var(--c-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.c-speed span {
  color: var(--color-fg-2);
  font-size: 13px;
  font-weight: 600;
}
.c-fn {
  max-width: 1100px;
  margin: 64px auto 0;
  color: var(--color-fg-3);
  font-size: 12.5px;
}

/* Act 3: money board */
.c-money {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.c-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.c-tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-soft-2);
  background: var(--surface-glass);
  color: var(--color-fg-1);
  font-size: 14px;
  font-weight: 600;
}
.c-tags li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-200);
  content: "";
}
.c-board {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: var(--radius-section);
  border: 1px solid var(--border-soft-2);
  background:
    radial-gradient(80% 60% at 50% 0%, var(--accent-halo), transparent 70%),
    var(--color-bg-1);
  box-shadow:
    var(--shadow-modal),
    0 50px 140px -50px var(--accent-glow-strong);
}
.c-live {
  position: absolute;
  top: -14px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-soft-2);
  background: var(--color-bg-1);
  color: var(--color-fg-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.c-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-status-online);
  animation: c-blink 1.6s ease-in-out infinite;
}
@keyframes c-blink {
  50% { opacity: 0.25; }
}
.c-board-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.c-kpi {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 8px;
  padding: 16px 18px 14px;
  border-radius: 18px;
  border: 1px solid var(--border-soft-1);
  background: var(--color-bg-2);
}
.c-kpi svg {
  width: 16px;
  height: 16px;
}
.c-kpi span {
  color: var(--color-fg-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.c-kpi b {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.c-kpi-wait svg { color: var(--color-status-idle); }
.c-kpi-paid svg { color: var(--color-status-online); }
.c-kpi-wait.is-done b { color: var(--color-status-online); }
.c-kpi b.is-bump {
  animation: c-pop 0.45s var(--ease-out);
}
@keyframes c-pop {
  0% { transform: scale(0.85); }
  60% { transform: scale(1.08); }
  100% { transform: none; }
}
/* Fixed slots: rows move by transform only, so the stagger never leaves holes. */
.c-feed {
  position: relative;
  height: calc(4 * var(--c-slot) - 8px);
  margin-top: 12px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 72%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black 72%, transparent);
}
.c-sale {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--border-soft-1);
  background: var(--color-bg-2);
  transform: translateY(calc(var(--slot, 0) * var(--c-slot)));
  transition:
    transform 0.6s var(--ease-out),
    opacity 0.5s var(--ease-out),
    border-color 1.2s var(--ease-out);
}
.c-sale.is-enter {
  opacity: 0;
  transform: translateY(-18px) scale(0.98);
}
.c-sale.is-new {
  border-color: var(--border-accent);
}
.c-sale.is-leave {
  opacity: 0;
}
.c-sale > .c-av {
  width: 38px;
  height: 38px;
  font-size: 12px;
}
.c-sale-who {
  min-width: 0;
}
.c-sale-who b {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
}
.c-sale-who small {
  color: var(--color-fg-3);
  font-size: 12.5px;
}
.c-sale-amt {
  color: var(--color-status-online);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.c-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px 0 4px;
  border-radius: var(--radius-capsule);
  background: var(--surface-glass-active);
  color: var(--color-accent-text);
  font-size: 12.5px;
  font-weight: 700;
}
.c-credit .c-av {
  width: 20px;
  height: 20px;
  font-size: 9.5px;
}
.c-chatters {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft-1);
}
.c-ch {
  display: grid;
  grid-template-columns: 28px 48px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.c-ch b {
  font-weight: 700;
}
.c-ch em {
  font-style: normal;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.c-bar {
  height: 10px;
  overflow: hidden;
  border-radius: var(--radius-capsule);
  background: var(--tile-empty);
}
.c-bar i {
  display: block;
  width: var(--w, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-accent-500), var(--color-accent-100));
  transition: width 0.8s var(--ease-out);
}
.c-bar-mia { --w: 64%; }
.c-bar-theo { --w: 41.5%; }

/* Everything else: three small UI tiles and one chip row */
.c-all {
  padding-top: var(--c-section);
}
.c-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.c-tile {
  padding: 14px 14px 22px;
  border-radius: 24px;
  border: 1px solid var(--border-soft-2);
  background: var(--color-bg-1);
}
.c-tile h3 {
  margin: 18px 8px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.c-tile p {
  margin: 4px 8px 0;
  color: var(--color-fg-2);
  font-size: 14.5px;
  line-height: 1.45;
}
.c-tile-vis {
  position: relative;
  height: 168px;
  overflow: hidden;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border-soft-1);
  background:
    radial-gradient(var(--tg-wallpaper-dot) 1px, transparent 1.5px) 0 0 / 14px 14px,
    var(--color-bg-2);
}
.c-vault {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 44px;
  gap: 8px;
  align-content: start;
}
.c-th {
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--c-on-device);
}
.c-th svg {
  width: 16px;
  height: 16px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  box-sizing: content-box;
}
.c-th1 { background: var(--c-th-1); }
.c-th2 { background: var(--c-th-2); }
.c-th3 { background: var(--c-th-3); }
.c-th4 { background: var(--c-th-4); }
.c-th5 { background: var(--c-th-5); }
.c-th6 { background: var(--c-th-6); }
.c-src {
  display: flex;
  grid-column: 1 / -1;
  gap: 6px;
  margin-top: 2px;
}
.c-src b {
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-soft-2);
  background: var(--color-bg-1);
  color: var(--color-fg-2);
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
}
.c-board-mini,
.c-next {
  display: grid;
  align-content: start;
  gap: 8px;
}
.c-sh,
.c-nx {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 12px 0 6px;
  border-radius: 12px;
  border: 1px solid var(--border-soft-1);
  background: var(--color-bg-1);
  font-size: 13.5px;
  font-weight: 650;
}
.c-sh em,
.c-nx em {
  margin-left: auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.c-sh em {
  color: var(--color-status-online);
}
.c-alert {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  height: 32px;
  margin-top: 2px;
  padding: 0 12px;
  border-radius: var(--radius-capsule);
  background: color-mix(in srgb, var(--color-status-idle) 15%, transparent);
  color: var(--color-status-idle);
  font-size: 12.5px;
  font-weight: 700;
}
.c-alert svg,
.c-next-h svg {
  width: 14px;
  height: 14px;
}
.c-next-h {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  color: var(--color-accent-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.c-nx em {
  padding: 3px 9px;
  border-radius: var(--radius-capsule);
  background: var(--surface-glass-active);
  color: var(--color-accent-text);
}
.c-nx em.c-wb {
  background: color-mix(in srgb, var(--color-status-info) 16%, transparent);
  color: var(--color-status-info);
}
.c-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 920px;
  margin: 28px auto 0;
}
.c-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px 0 14px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-soft-2);
  background: var(--surface-glass);
  color: var(--color-fg-1);
  font-size: 14.5px;
  font-weight: 600;
}
.c-chips svg {
  width: 17px;
  height: 17px;
  color: var(--color-accent-text);
}
.c-chips .c-chip-m {
  display: none;
}

/* Film: a poster and one play button; the video loads on click */
.c-film {
  padding-top: var(--c-section);
}
.c-film-frame {
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  border: 1px solid var(--border-soft-2);
  background: var(--color-bg-1);
  box-shadow:
    var(--shadow-modal),
    0 50px 140px -50px var(--accent-glow-strong);
}
.c-film-poster,
.c-film-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.c-film-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  border: 0;
  background: radial-gradient(40% 50% at 50% 50%, rgba(0, 0, 0, 0.32), transparent 75%);
  cursor: pointer;
}
.c-film-btn {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--color-accent-100), var(--color-accent-400));
  box-shadow:
    0 0 0 10px color-mix(in srgb, var(--color-accent-200) 22%, transparent),
    0 18px 50px -10px var(--accent-glow-strong);
  color: var(--color-fg-on-accent);
  transition: transform var(--motion-base) var(--ease-out);
}
.c-film-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}
.c-film-play:hover .c-film-btn {
  transform: scale(1.06);
}
.c-film-play:focus-visible {
  outline: none;
}
.c-film-play:focus-visible .c-film-btn {
  outline: 3px solid var(--color-accent-100);
  outline-offset: 6px;
}
.c-film-dur {
  padding: 5px 12px;
  border-radius: var(--radius-capsule);
  background: rgba(10, 10, 12, 0.72);
  color: var(--c-on-device);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.c-film-dl {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: var(--c-on-device);
}

/* Questions */
.c-faq {
  padding-top: var(--c-section);
}
.c-qs {
  max-width: 760px;
  margin: 40px auto 0;
  border-top: 1px solid var(--border-soft-2);
}
.c-qs details {
  border-bottom: 1px solid var(--border-soft-2);
}
.c-qs summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.c-qs summary::-webkit-details-marker {
  display: none;
}
.c-qs summary svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--color-fg-3);
  transition: transform var(--motion-base) var(--ease-standard);
}
.c-qs details[open] summary svg {
  transform: rotate(180deg);
  color: var(--color-accent-text);
}
.c-qs summary:hover {
  color: var(--color-accent-text);
}
.c-qs summary:focus-visible {
  outline: 2px solid var(--color-accent-200);
  outline-offset: 2px;
  border-radius: 8px;
}
.c-qs details p {
  max-width: 62ch;
  padding: 0 4px 22px;
  color: var(--color-fg-2);
  font-size: 16px;
  line-height: 1.6;
}

/* Final */
.c-final {
  padding-block: var(--c-section) clamp(64px, 7vw, 104px);
}
.c-final-card {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 96px) clamp(20px, 5vw, 64px);
  border-radius: 36px;
  border: 1px solid var(--border-accent);
  background:
    radial-gradient(70% 110% at 50% 0%, var(--accent-glow-strong), transparent 62%),
    var(--color-bg-1);
  text-align: center;
}
.c-h2-final {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(36px, 5vw, 68px);
}
.c-final-lead {
  max-width: 40ch;
  margin-inline: auto;
}
.c-platforms {
  margin-top: 24px;
  color: var(--color-fg-3);
  font-size: 14px;
}

/* Footer */
.c-footer {
  position: relative;
  z-index: 1;
  padding-bottom: 40px;
  color: var(--color-fg-3);
  font-size: 14px;
}
.c-foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft-1);
}
.c-foot-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.c-foot-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.c-foot-row nav a:hover {
  color: var(--color-fg-1);
}
.c-legal {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft-1);
  color: var(--color-fg-3);
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.85;
}

/* ---- Scroll reveals (only when c.js runs) ------------------------------------ */
html.js [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity 0.7s var(--ease-out),
    translate 0.7s var(--ease-out);
}
html.js [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
}
html.js .c-desk[data-reveal] {
  translate: none;
  transform: scale(0.97);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.9s var(--ease-out);
}
html.js .c-desk[data-reveal].is-in {
  transform: none;
}
html.js .c-win[data-reveal] {
  translate: none;
  transform: rotateX(14deg) scale(0.95);
  transition:
    opacity 0.8s var(--ease-out),
    transform 1.1s var(--ease-out);
}
html.js .c-win[data-reveal].is-in {
  transform: none;
}
html.js .c-bento .c-tile[data-reveal]:nth-child(2) { transition-delay: 0.08s; }
html.js .c-bento .c-tile[data-reveal]:nth-child(3) { transition-delay: 0.16s; }

/* ---- Responsive ---------------------------------------------------------------- */
@media (min-width: 1360px) {
  .c-call {
    display: flex;
  }
}
@media (max-width: 1280px) {
  .c-speed {
    right: 16px;
  }
}
@media (max-width: 1180px) {
  .c-flow {
    grid-template-columns: 180px minmax(28px, 1fr) 340px minmax(28px, 1fr) 216px;
    padding-inline: 28px;
  }
}
@media (max-width: 1120px) {
  .c-win-body {
    grid-template-columns: 64px 78px 320px minmax(0, 1fr);
  }
  .c-leadc {
    display: none;
  }
}
@media (max-width: 980px) {
  .c-before,
  .c-money {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-act-text {
    text-align: center;
  }
  .c-act-text .c-lead {
    margin-inline: auto;
  }
  .c-tags {
    justify-content: center;
  }
  .c-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .c-bento .c-tile:last-child {
    display: none;
  }
  .c-chips .c-chip-m:nth-child(3) {
    display: inline-flex;
  }
  /* Hero flow stacks: models row, the window, the team row. */
  .c-flow {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    max-width: 560px;
    padding: 22px 16px 18px;
  }
  .c-wire {
    display: none;
  }
  .c-flow-models,
  .c-flow-team {
    display: flex;
    justify-content: center;
    gap: 12px;
  }
  .c-flow-models .c-pill {
    height: auto;
    padding: 0;
    border: 0;
    background: none;
  }
  .c-flow-models .c-pname {
    display: none;
  }
  .c-flow-models .c-mpic,
  .c-flow-models .c-mpic img {
    width: 44px;
    height: 44px;
  }
  .c-flow-models .c-ok {
    border-color: var(--color-bg-1);
  }
  .c-core {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 36px;
  }
  .c-core::before,
  .c-core::after {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 28px;
    translate: -50% 0;
    border-radius: 2px;
    background:
      linear-gradient(var(--color-accent-100), var(--color-accent-100)) no-repeat 0 -8px / 100% 8px,
      color-mix(in srgb, var(--color-accent-200) 38%, transparent);
    animation: c-drop 1.8s linear infinite;
    content: "";
  }
  .c-core::before { top: -34px; }
  .c-core::after { bottom: -32px; }
  .c-toast-hero {
    top: -22px;
  }
  .c-mini {
    max-width: 380px;
  }
  .c-flow-team .c-pill {
    gap: 8px;
    padding-right: 10px;
  }
  .c-flow-team .c-pname {
    display: none;
  }
  .c-flow-cap {
    margin-top: 16px;
    font-size: 13px;
  }
}
@keyframes c-drop {
  to { background-position: 0 36px, 0 0; }
}
@media (max-width: 760px) {
  .c-win-body {
    grid-template-columns: 56px minmax(0, 1fr);
    height: auto;
  }
  .c-rail {
    gap: 12px;
  }
  .c-mav,
  .c-mav img {
    width: 36px;
    height: 36px;
  }
  .c-frail,
  .c-chat {
    display: none;
  }
  .c-rows .c-row:nth-child(n + 6) {
    display: none;
  }
  .c-rows {
    padding-bottom: 8px;
  }
  .c-win-bar span {
    display: none;
  }
  .c-toast-win {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    width: max-content;
    margin: 0 auto 14px;
  }
  .c-speed {
    position: relative;
    right: auto;
    bottom: auto;
    width: max-content;
    margin: 18px auto 0;
    text-align: center;
  }
  .c-win-wrap {
    display: grid;
  }
  .c-fn {
    margin-top: 16px;
    text-align: center;
  }
  .c-desk {
    aspect-ratio: 1;
  }
  .c-sheet { left: 5%; top: 6%; width: 62%; font-size: 2.6cqw; }
  .c-sheet-bar { height: 7cqw; }
  .c-sheet th, .c-sheet td { height: 6.4cqw; }
  .c-sheet th { font-size: 2cqw; }
  .c-phone { width: 26%; border-radius: 4.2cqw; }
  .c-screen { padding-top: 1.8cqw; border-radius: 3.6cqw; }
  .c-phone-1 { left: 40%; top: 46%; }
  .c-phone-2 { left: 55%; top: 30%; }
  .c-phone-3 { left: 68%; top: 50%; }
  .c-notch { width: 8cqw; height: 2.2cqw; }
  .c-mchip { font-size: 1.9cqw; }
  .c-mchip img { width: 3cqw; height: 3cqw; }
  .c-clock { font-size: 6.2cqw; }
  .c-notif { padding: 1.3cqw; }
  .c-na { font-size: 1.35cqw; }
  .c-na i { width: 1.8cqw; height: 1.8cqw; }
  .c-nt { font-size: 2.1cqw; }
  .c-nb { font-size: 2.1cqw; }
  .c-sticky { width: 33%; left: 5%; bottom: 5%; font-size: 4.6cqw; }
  .c-bento {
    display: none;
  }
  .c-chips {
    margin-top: 28px;
  }
  .c-chips .c-chip-m {
    display: inline-flex;
  }
}
@media (max-width: 639px) {
  .c-head-cta {
    display: none;
  }
  .header-actions.c-head-actions .c-signin {
    display: inline-flex;
    padding-inline: 16px;
    border: 1px solid var(--border-soft-3);
    color: var(--color-fg-1);
  }
  .c-hero .c-ctas .btn,
  .c-final .c-ctas .btn {
    width: 100%;
  }
  .c-h1 {
    font-size: clamp(34px, 10.4vw, 46px);
    letter-spacing: -0.035em;
  }
  .c-flow {
    margin-top: 40px;
  }
  .c-sale {
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 0 10px;
  }
  .c-sale > .c-av {
    width: 34px;
    height: 34px;
  }
  .c-board {
    padding: 24px 14px 16px;
  }
  .c-chips li {
    height: 38px;
    padding: 0 13px 0 11px;
    font-size: 13.5px;
  }
  .c-qs summary {
    font-size: 16.5px;
  }
  .c-final-card {
    border-radius: 28px;
  }
  .c-foot-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Motion and transparency preferences ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .c-hero > *,
  .c-phone,
  .c-notif,
  .c-wire-run,
  .c-live i,
  .c-toast-hero,
  .c-pill-theo,
  .c-pill-theo *,
  .c-mini .c-swap > *,
  path.c-wire-theo,
  .c-core::before,
  .c-core::after {
    animation: none !important;
  }
  .c-wire-run {
    display: none;
  }
  html.js [data-reveal],
  html.js .c-desk[data-reveal],
  html.js .c-win[data-reveal] {
    opacity: 1;
    translate: none;
    transform: none;
    transition: none;
  }
  .c-desk > * {
    translate: none;
  }
  .c-call,
  .c-toast-win,
  .c-sale {
    transition: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .c-flow,
  .c-speed,
  .c-call b {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--color-bg-1);
  }
}
