/* Landing prototype C, hero window: ported from proto/b/b.css (product window, lead card, floating toast), plus the hybrid page fixes. Names the tokens of /styles.css. */
:root {
  --b-av-fg: #fff;
  --b-av-1: linear-gradient(135deg, #52b596, #2a6e5b);
  --b-av-2: linear-gradient(135deg, #7088ea, #3c4ead);
  --b-av-3: linear-gradient(135deg, #cf9f66, #7a5430);
  --b-av-4: linear-gradient(135deg, #d97795, #8c3a57);
  --b-av-5: linear-gradient(135deg, #5ca9d8, #2d6990);
  --b-av-6: linear-gradient(135deg, #b487d8, #6a3e8c);
  --b-av-7: linear-gradient(135deg, #949bb6, #4e556c);

  --b-radius-tile: 24px;
  --b-radius-win: 20px;
  --b-tile-bg: var(--color-bg-1);
  --b-tile-in: var(--color-bg-2);
  --b-line: var(--border-soft-2);
  --b-paid: var(--color-status-online);
  --b-wait: var(--color-status-idle);
  --b-paid-bg: color-mix(in srgb, var(--color-status-online) 16%, transparent);
  --b-wait-bg: color-mix(in srgb, var(--color-status-idle) 16%, transparent);
  --b-sel: var(--surface-glass-active);
  --b-out: color-mix(in srgb, var(--color-accent-700) 85%, var(--color-bg-2));
  --b-out-fg: var(--color-fg-1);
  --b-section-gap: clamp(96px, 12vw, 168px);
}
:root[data-theme="light"] {
  --b-tile-bg: var(--color-bg-2);
  --b-tile-in: var(--color-bg-1);
  --b-out: color-mix(in srgb, var(--color-accent-100) 55%, var(--color-bg-2));
}

/* Stage: the product window */
.b-stage {
  position: relative;
  margin-top: clamp(48px, 5.5vw, 72px);
  perspective: 2000px;
}
.b-stage::before {
  content: "";
  position: absolute;
  inset: 8% 6% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow-strong), transparent);
  filter: blur(40px);
  opacity: 0.8;
}
.b-win {
  position: relative;
  border-radius: var(--b-radius-win);
  border: 1px solid var(--border-soft-3);
  background: var(--color-bg-1);
  box-shadow: var(--shadow-modal), 0 0 0 6px var(--accent-halo);
  overflow: hidden;
  text-align: left;
  transform-origin: 50% 0;
}
.b-win::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 72%, var(--color-bg-0));
  opacity: 0.55;
}
.b-tbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-soft-1);
  background: var(--color-bg-0);
  color: var(--color-fg-3);
  font-size: 12px;
  font-weight: 600;
}
.b-tbar i { width: 11px; height: 11px; border-radius: 50%; background: var(--color-bg-3); }
.b-tbar span { margin-left: 10px; }

.b-app {
  display: grid;
  grid-template-columns: 64px 78px 296px minmax(0, 1fr) 248px;
  height: 540px;
  font-size: 13px;
}
.b-app svg { width: 16px; height: 16px; flex: none; }
.b-rail,
.b-folders {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-right: 1px solid var(--border-soft-1);
  background: var(--color-bg-0);
}
.b-rail svg.b-rail-mark { width: 34px; height: 34px; margin-bottom: 10px; }
.b-ri,
.b-fd {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 100%;
  padding: 8px 0;
  border-radius: 12px;
  color: var(--color-fg-3);
  font-size: 10.5px;
  font-weight: 700;
}
.b-ri svg,
.b-fd svg { width: 18px; height: 18px; }
.b-ri.on,
.b-fd.on { background: var(--b-sel); color: var(--color-accent-text); }
.b-fd b {
  position: absolute;
  top: 4px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-capsule);
  background: var(--color-accent-400);
  color: var(--color-fg-on-accent);
  font-size: 9.5px;
  line-height: 16px;
  text-align: center;
}
.b-rail-me {
  margin-top: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-accent-400);
}

.b-list {
  padding: 0 8px;
  border-right: 1px solid var(--border-soft-1);
  overflow: hidden;
}
.b-lhead {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 6px;
}
.b-lhead strong { font-size: 15px; font-weight: 800; }
.b-model {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px 0 3px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-soft-1);
  background: var(--color-bg-2);
  color: var(--color-fg-2);
  font-size: 11.5px;
  font-weight: 600;
}
.b-model img { width: 18px; height: 18px; border-radius: 50%; }
.b-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-accent);
  color: var(--color-accent-text);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.b-sort svg { width: 13px; height: 13px; }
.b-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin: 0 4px 8px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border-soft-1);
  background: var(--color-bg-2);
  color: var(--color-fg-3);
  font-size: 12.5px;
}
.b-search svg { width: 14px; height: 14px; }

.b-row {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 60px;
  padding: 0 8px;
  border-radius: 12px;
}
.b-row.on { background: var(--b-sel); }
.b-rt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.b-l1,
.b-l2 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.b-l1 b { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.b-l1 time { margin-left: auto; color: var(--color-fg-3); font-size: 11px; }
.b-l2 { color: var(--color-fg-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.b-cnt { flex: none; }
.b-app svg.b-hg { width: 13px; height: 13px; color: var(--b-wait); }
.b-cnt {
  margin-left: auto;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: var(--radius-capsule);
  background: var(--color-accent-400);
  color: var(--color-fg-on-accent);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}

/* Avatars + $ chip */
.b-av {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--b-av-fg);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.b-av.sm { width: 30px; height: 30px; font-size: 11px; }
.b-av.xs { width: 18px; height: 18px; }
.b-av.lg { width: 56px; height: 56px; font-size: 18px; }
.b-av-1 { background: var(--b-av-1); }
.b-av-2 { background: var(--b-av-2); }
.b-av-3 { background: var(--b-av-3); }
.b-av-4 { background: var(--b-av-4); }
.b-av-5 { background: var(--b-av-5); }
.b-av-6 { background: var(--b-av-6); }
.b-av-7 { background: var(--b-av-7); }
.b-av-c1 { background: linear-gradient(135deg, var(--color-accent-100), var(--color-accent-400)); color: var(--color-fg-on-accent); }
.b-av-c2 { background: linear-gradient(135deg, var(--color-accent-200), var(--color-accent-700)); color: var(--color-fg-on-accent); }
.b-usd {
  position: absolute;
  left: -4px;
  bottom: -4px;
  height: 17px;
  padding: 0 5px;
  border-radius: var(--radius-capsule);
  border: 1.5px solid var(--color-bg-1);
  background: var(--color-accent-400);
  color: var(--color-fg-on-accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 14px;
  white-space: nowrap;
}
.b-row.on .b-usd { border-color: var(--color-bg-2); }
.b-usd.lg {
  position: static;
  height: 28px;
  padding: 0 12px;
  border: 0;
  font-size: 13px;
  line-height: 28px;
}

/* Chat pane */
.b-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    radial-gradient(var(--tg-wallpaper-dot) 1px, transparent 1.4px) 0 0 / 18px 18px,
    var(--tg-wallpaper-base);
}
.b-chead {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-soft-1);
  background: var(--color-bg-1);
}
.b-chead b { display: block; font-size: 13.5px; }
.b-chead small { display: block; color: var(--b-paid); font-size: 11px; font-weight: 600; }
.b-msgs {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 18px;
}
.b-day {
  align-self: center;
  margin-bottom: auto;
  padding: 3px 10px;
  border-radius: var(--radius-capsule);
  background: var(--color-bg-2);
  color: var(--color-fg-3);
  font-size: 11px;
  font-weight: 600;
}
.b-bub {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.35;
}
.b-bub.in { align-self: flex-start; background: var(--tg-bubble-in-bg); border-bottom-left-radius: 5px; }
.b-bub.out { align-self: flex-end; background: var(--b-out); color: var(--b-out-fg); border-bottom-right-radius: 5px; }
.b-pay {
  align-self: flex-end;
  display: grid;
  gap: 4px;
  width: 220px;
  padding: 12px 14px;
  border-radius: 16px;
  border-bottom-right-radius: 5px;
  border: 1px solid var(--border-accent);
  background: var(--b-out);
  box-shadow: 0 12px 32px -14px var(--accent-glow-strong);
}
.b-pay-top { display: flex; align-items: center; gap: 6px; color: var(--color-accent-text); font-size: 11.5px; font-weight: 700; }
.b-pay-top svg { width: 13px; height: 13px; }
.b-pay-amt { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.b-pay-st {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-self: start;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-capsule);
  background: var(--b-paid-bg);
  color: var(--b-paid);
  font-size: 11.5px;
  font-weight: 800;
}
.b-pay-st svg { width: 13px; height: 13px; }
.b-comp {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin: 0 12px 12px;
  padding: 0 6px 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border-soft-1);
  background: var(--color-bg-2);
  color: var(--color-fg-3);
  font-size: 12.5px;
}
.b-sell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-accent);
  color: var(--color-accent-text);
  font-size: 12px;
  font-weight: 800;
}
.b-sell svg { width: 13px; height: 13px; }
.b-send {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-accent-400);
  color: var(--color-fg-on-accent);
}
.b-send svg { width: 14px; height: 14px; }

/* Lead card */
.b-lead {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px;
  border-left: 1px solid var(--border-soft-1);
  background: var(--color-bg-1);
}
.b-lead-id { display: grid; justify-items: center; gap: 8px; padding-bottom: 6px; text-align: center; }
.b-lead-id b { font-size: 15px; }
.b-tags { display: flex; gap: 6px; }
.b-tags i,
.b-tagrow i {
  height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-soft-2);
  color: var(--color-fg-2);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
}
.b-kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--color-bg-2);
  color: var(--color-fg-3);
  font-size: 12px;
}
.b-kv b { color: var(--color-fg-1); font-size: 16px; font-weight: 800; }
.b-kv b.b-acc { color: var(--color-accent-text); }
.b-note {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--border-soft-2);
  color: var(--color-fg-2);
  font-size: 12px;
  line-height: 1.4;
}
.b-note svg { width: 14px; height: 14px; margin-top: 1px; color: var(--color-fg-3); }
.b-voice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--color-bg-2);
}
.b-vplay { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-accent-400); color: var(--color-fg-on-accent); }
.b-app .b-vplay svg { width: 11px; height: 11px; }
.b-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 22px; }
.b-wave i { flex: 1; height: 40%; border-radius: 2px; background: var(--color-fg-3); opacity: 0.6; }
.b-wave i:nth-child(3n) { height: 85%; }
.b-wave i:nth-child(3n + 1) { height: 60%; }
.b-wave i:nth-child(5n) { height: 100%; }
.b-tr { color: var(--color-accent-text); font-size: 11px; font-weight: 800; }

/* Floating chips around the window */
.b-chipf {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px 0 12px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-soft-3);
  background: var(--chrome-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--shadow-2), var(--inset-highlight);
  color: var(--color-fg-1);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.b-chipf svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
}
.b-chipf-1 { right: 48px; top: -22px; }
.b-chipf-1 svg { background: var(--b-paid-bg); color: var(--b-paid); }
.b-chipf-2 { left: 48px; bottom: -22px; }
.b-chipf-2 svg { background: var(--b-sel); color: var(--color-accent-text); }


/* ---- Hybrid: hero fit ------------------------------------------------------- */
.c-hero .c-h1 {
  font-size: clamp(38px, 5.2vw, 74px);
  letter-spacing: -0.018em;
}
.c-hero .c-ctas { margin-top: 26px; }
.c-hero .b-stage { margin-top: clamp(40px, 4.4vw, 60px); }
.b-sys {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-capsule);
  background: var(--b-paid-bg);
  color: var(--b-paid);
  font-size: 11.5px;
  font-weight: 700;
}
.b-app .b-sys svg { width: 12px; height: 12px; }
.c-hero .b-chipf { right: calc(var(--gutter) + 56px); top: -22px; }
.c-hero .b-chipf svg { background: var(--b-paid-bg); color: var(--b-paid); }

/* ---- Hybrid: safety band ---------------------------------------------------- */
.c-safe { padding-top: clamp(72px, 8vw, 112px); }
.c-safe-card {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 28px 36px;
  border-radius: var(--radius-section);
  border: 1px solid var(--border-soft-2);
  background:
    radial-gradient(40% 90% at 66% 50%, var(--accent-halo), transparent 70%),
    var(--color-bg-1);
  box-shadow: var(--shadow-2), var(--inset-highlight);
}
.c-safe-text .c-h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.c-safe-cap { margin-top: 10px; color: var(--color-fg-2); font-size: 15px; line-height: 1.45; }
.c-sf {
  display: grid;
  grid-template-columns: 132px minmax(28px, 1fr) auto minmax(28px, 1fr) 216px;
  align-items: center;
  height: 132px;
}
.c-sf-col { display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.c-sf-team { gap: 16px; }
.c-sf-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 3px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-soft-2);
  background: var(--color-bg-2);
  color: var(--color-fg-1);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}
.c-sf-pill img,
.c-sf-pill .c-av { width: 26px; height: 26px; flex: none; border-radius: 50%; font-size: 11px; }
.c-sf-ok { width: 14px; height: 14px; margin-left: auto; color: var(--color-status-online); }
.c-sf-st { margin-left: auto; font-size: 11.5px; font-style: normal; font-weight: 700; }
.c-sf-on { color: var(--color-status-online); }
.c-sf-off {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-capsule);
  background: color-mix(in srgb, var(--color-status-error) 16%, transparent);
  color: var(--color-status-error);
}
.c-sf-off svg { width: 11px; height: 11px; }
.c-sf-theo { border-color: color-mix(in srgb, var(--color-status-error) 45%, var(--border-soft-2)); }
.c-sf-theo .c-av,
.c-sf-theo .c-sf-name { opacity: 0.55; }
.c-sf-wire { width: 100%; height: 132px; overflow: visible; }
.c-sf-wire path { fill: none; vector-effect: non-scaling-stroke; stroke-width: 1.75; }
.c-sf-wire .w { stroke: color-mix(in srgb, var(--color-accent-200) 55%, transparent); }
.c-sf-wire .w-cut { stroke: color-mix(in srgb, var(--color-status-error) 55%, transparent); stroke-dasharray: 3 5; }
.c-sf-core { display: grid; justify-items: center; gap: 8px; }
.c-sf-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--color-bg-0);
  box-shadow: 0 0 0 1px var(--border-accent), 0 0 0 7px var(--accent-halo), 0 18px 48px -12px var(--accent-glow-strong);
}
.c-sf-mark svg { width: 44px; height: 44px; }
.c-sf-cap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-fg-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.c-sf-cap svg { width: 12px; height: 12px; color: var(--color-accent-text); }

/* ---- Hybrid: film ------------------------------------------------------------ */
.c-film-frame.is-playing .c-film-play,
.c-film-frame.is-playing .c-film-poster { display: none; }
.c-film-play { padding: 0; color: inherit; font: inherit; }

/* ---- Hybrid: motion --------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .b-win { animation: b-rise 1100ms var(--ease-out) both 120ms; }
  .c-hero .b-chipf { animation: b-pop 600ms var(--ease-out) both 1300ms, b-bob 6s ease-in-out infinite 2s; }
}
@keyframes b-rise {
  from { opacity: 0; transform: rotateX(14deg) translateY(40px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes b-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
@keyframes b-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .b-win,
  .c-hero .b-chipf { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .b-stage::before { display: none; }
  .b-chipf { background: var(--color-bg-1); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---- Hybrid: responsive ----------------------------------------------------- */
@media (max-width: 1180px) {
  .b-app { grid-template-columns: 60px 74px 280px minmax(0, 1fr); }
  .b-lead { display: none; }
}
@media (max-width: 980px) {
  .c-safe-card { grid-template-columns: minmax(0, 1fr); gap: 20px; text-align: center; }
  .c-sf { max-width: 640px; margin-inline: auto; width: 100%; }
}
@media (max-width: 767px) {
  .b-app { grid-template-columns: 56px minmax(0, 1fr); height: 440px; }
  .b-folders,
  .b-chat { display: none; }
  .c-hero .b-chipf { right: auto; left: 50%; top: -20px; translate: -50% 0; height: 40px; font-size: 13px; }
  .c-hero .b-stage { margin-top: 44px; }
  .c-safe-card { padding: 22px 16px; }
  .c-sf { grid-template-columns: auto minmax(10px, 1fr) auto minmax(10px, 1fr) auto; height: 92px; }
  .c-sf-models { flex-direction: row; gap: 0; }
  .c-sf-models .c-sf-pill { padding: 0; border: 0; background: none; height: auto; margin-left: -8px; }
  .c-sf-models .c-sf-pill:first-child { margin-left: 0; }
  .c-sf-models .c-sf-pill img { width: 34px; height: 34px; box-shadow: 0 0 0 2px var(--color-bg-1); }
  .c-sf-name,
  .c-sf-models .c-sf-ok { display: none; }
  .c-sf-team { gap: 8px; }
  .c-sf-pill { height: 32px; font-size: 12.5px; padding-right: 8px; }
  .c-sf-wire { height: 92px; }
  .c-sf-mark { width: 52px; height: 52px; border-radius: 16px; }
  .c-sf-mark svg { width: 36px; height: 36px; }
  .c-sf-cap { font-size: 11px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .c-hero .b-chipf { animation: b-pop 600ms var(--ease-out) both 1300ms; }
}

/* ---- Hybrid: #after, chats side by side ------------------------------------- */
.c-after .c-win-body { grid-template-columns: 64px 78px 288px minmax(0, 1fr); height: 480px; font-size: 13px; }
.c-after .c-win-body svg { width: 16px; height: 16px; flex: none; }
.c-after .c-rail svg.c-rail-mark { width: 34px; height: 34px; }
.c-mavw { position: relative; display: grid; place-items: center; }
.c-mavw .c-badge { position: absolute; top: -3px; right: -5px; }
.c-mav.is-on { box-shadow: 0 0 0 2px var(--color-bg-0), 0 0 0 4px var(--color-accent-400); }
.c-win-bar em.c-pcount { display: inline-flex; align-items: center; gap: 5px; }
.c-win-bar em.c-pcount svg { width: 13px; height: 13px; }
.c-win-body .c-panes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  place-items: stretch;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  gap: 1px;
  background: var(--border-soft-1);
}
.c-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    radial-gradient(var(--tg-wallpaper-dot) 1px, transparent 1.4px) 0 0 / 18px 18px,
    var(--tg-wallpaper-base);
}
.c-pane.is-focus::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1.5px var(--color-accent-200);
}
.c-ph {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-soft-1);
  background: var(--color-bg-1);
  font-size: 13px;
}
.c-ph .c-av { width: 26px; height: 26px; font-size: 10px; }
.c-ph svg { margin-left: auto; color: var(--color-fg-3); }
.c-win-body .c-ph svg { width: 13px; height: 13px; }
.c-pm { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 12px; }
.c-pm .c-b { max-width: 88%; padding: 7px 11px; font-size: 12.5px; margin: 0; }
.c-pay.c-pay-sm { width: 100%; max-width: 200px; padding: 11px 12px; display: grid; gap: 2px; }
.c-pay-sm b { margin-top: 2px; font-size: 22px; }
.c-pay-sm .c-pay-st { margin-top: 6px; display: inline-flex; }
.c-pay-sm .c-pay-st.c-st-wait,
.c-pay-sm .c-pay-st > .c-st-wait,
.c-pay-sm .c-pay-st > .c-st-paid { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--radius-capsule); font-size: 11.5px; font-weight: 700; }
.c-pay-sm .c-pay-st.c-st-wait { justify-self: start; }
.c-win-body .c-pay-sm svg { width: 12px; height: 12px; }
.c-vm {
  align-self: flex-start;
  display: grid;
  gap: 7px;
  width: 92%;
  padding: 9px 10px;
  border-radius: 16px 16px 16px 6px;
  background: var(--tg-bubble-in-bg);
}
.c-vm-top { display: flex; align-items: center; gap: 7px; }
.c-vplay { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--color-accent-400); color: var(--color-fg-on-accent); }
.c-win-body .c-vplay svg { width: 11px; height: 11px; }
.c-vm .c-wave { flex: 1; }
.c-vm small { color: var(--color-fg-3); font-size: 11px; }
.c-vm-tr {
  padding: 7px 9px;
  border-radius: 10px;
  border-left: 2px solid var(--color-accent-200);
  background: color-mix(in srgb, var(--color-bg-0) 40%, transparent);
  color: var(--color-fg-1);
  font-size: 12px;
  font-style: italic;
  line-height: 1.35;
}
.c-pc {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  margin: 0 10px 10px;
  padding: 0 5px 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft-1);
  background: var(--color-bg-2);
  color: var(--color-fg-3);
  font-size: 12px;
}
.c-pc .c-sell { height: 26px; padding: 0 9px; font-size: 11.5px; }
.c-win-body .c-pc .c-sell svg { width: 12px; height: 12px; }

/* Callouts pinned on the window */
.c-co {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--border-accent);
  background: var(--chrome-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-2);
  color: var(--color-fg-1);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}
.c-co::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-100);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent-200) 30%, transparent);
}
.c-co-1 { bottom: -18px; left: 40px; }
.c-co-2 { bottom: -18px; left: 330px; }
.c-co-3 { top: -18px; right: 92px; }

/* Money ledger: fixed slots, set by c.js */
.c-board .c-feed { height: calc(4 * var(--c-slot) - 8px); }

@media (max-width: 760px) {
  .c-after .c-win-body { grid-template-columns: 56px minmax(0, 1fr); height: 400px; }
  .c-after .c-list { display: none; }
  .c-win-body .c-panes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-pane-1 { display: none; }
  .c-co-1,
  .c-co-2 { display: none; }
  .c-co-3 { right: 50%; translate: 50% 0; }
  .c-pm { padding: 10px 8px; }
  .c-pc { margin: 0 6px 8px; padding-left: 8px; }
  .c-pc .c-sell { display: none; }
}
.c-after .c-ft .c-badge { top: 3px; right: 11px; }

/* Pay-card status pill inside a pane: one swap cell, never wraps */
.c-pay.c-pay-sm { display: flex; flex-direction: column; align-items: flex-start; }
.c-pay-sm .c-pay-st > .c-swap { display: inline-grid; height: auto; padding: 0; background: none; }
.c-pay-sm .c-swap > span,
.c-pay-sm .c-pay-st.c-st-wait {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--radius-capsule);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.c-vm .c-wave { min-width: 0; overflow: hidden; }

/* Film: the frame takes the film's own shape, so nothing is cropped */
.c-film-frame { aspect-ratio: 1120 / 522; background: var(--color-bg-0); }
.c-film-frame video { object-fit: contain; background: var(--color-bg-0); }

/* Final CTA: air between the headline and the line under it */
.c-final .c-final-sub { margin-top: 20px; }
.c-final .c-final-card { padding-block: clamp(44px, 5.5vw, 72px); }

:root { --c-section: clamp(72px, 8vw, 116px); }

@media (max-width: 767px) {
  .c-hero .b-stage { margin-top: 84px; }
  .c-hero .b-chipf { top: -62px; }
}

/* Before: the spreadsheet stays readable; phones sit to its right */
@media (min-width: 761px) {
  .c-desk .c-sheet { width: 40%; left: 5%; }
  .c-desk .c-phone-1 { left: 47%; top: 32%; }
  .c-desk .c-phone-2 { left: 60%; top: 11%; }
  .c-desk .c-phone-3 { left: 73%; top: 28%; }
}
.c-film-frame { box-shadow: var(--shadow-2), 0 40px 120px -60px var(--accent-glow-strong); }
.c-film-frame.is-playing { aspect-ratio: 16 / 9; background: var(--c-device); }
.c-film-frame.is-playing video { background: var(--c-device); }
@media (max-width: 767px) {
  .c-sf-team { align-items: flex-start; }
  .c-sf-team .c-sf-pill { width: max-content; }
  .c-sf-team .c-sf-st { margin-left: 2px; }
  .c-vm small { display: none; }
  .c-pm .c-b { max-width: 96%; }
}

/* Hero above the fold at 1440x900: the paid Dropp card shows without scrolling */
@media (min-width: 768px) {
  .c-hero { padding-top: clamp(20px, 2.4vw, 32px); }
  .c-hero .c-h1 { margin-top: 20px; font-size: clamp(38px, 4.8vw, 68px); }
  .c-hero .c-sub { margin-top: 16px; }
  .c-hero .c-ctas { margin-top: 22px; }
  .c-hero .b-stage { margin-top: 44px; }
  .c-hero .b-app { height: 500px; }
  .c-hero .b-msgs { justify-content: flex-start; padding-top: 14px; }
  .c-hero .b-day { margin-bottom: 4px; }
}
/* The toast never shrinks its icon when it is centred on a phone */
.c-hero .b-chipf { width: max-content; }
.c-hero .b-chipf svg { flex: none; box-sizing: border-box; }
