/* The Finn demo (payment/pricing/_finn_demo.html, finn-demo.js), used on the pricing page
   (#finn) and the homepage (#how). One frame holding two apps side by side, as on a desktop:
   TradingView Desktop's chart on the left, Finn's own window on the right (looks taken from
   the Finn app: TitleBar + ModelSwitcher, ChatPage header, MessageList's empty state,
   MessageBubble, StatusChips, ChatInput, VoxMicButton, VoxStrip). Chart colours are
   TradingView's (--lp-tv-*, landing.css).
   Only transform, opacity and filter animate; all of it stops under reduced motion
   (landing.css section 13) and while the demo is paused (.is-paused). */

.fd {
  --fd-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --fd-violet: #7C3AED; --fd-violet-2: #a78bfa; --fd-live: #3DDC97; --fd-think: #9B6BFF;
  --fd-vox: var(--lp-vox, #FFB547);
  --fd-app: #070512; --fd-line: rgba(148, 103, 254, .2);
}
html:not(.js) .fd-js { display: none !important; }

/* ---- head ---- */
.fd-logos { display: inline-flex; align-items: center; gap: var(--lp-sp-2); }
.fd-logos img { width: 40px; height: 40px; border-radius: var(--lp-r-sm); border: 1px solid var(--lp-border-strong); }
.fd-logos-plus { color: var(--lp-faint); font-weight: 600; }
/* Home (#how): Finn's head sits under the section's own h2, one step down. */
.fd-subhead { margin-top: var(--lp-sp-8); }
.fd-subhead h3 {
  font-size: var(--lp-fs-xl); font-weight: 700; line-height: 1.2;
  background: var(--lp-title-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fd-subhead p:not(.lp-eyebrow) { font-size: var(--lp-fs-base); }
/* Home (#how): the other demos on /how-it-works/, as logo chips under the section head. */
.fd-more { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--lp-sp-2); margin-top: var(--lp-sp-4); }
.fd-more-label { color: var(--lp-muted); font-size: var(--lp-fs-sm); margin-right: var(--lp-sp-1); }
.fd-more-chip, .fd-more-all {
  display: inline-flex; align-items: center; gap: var(--lp-sp-2); padding: 6px 12px 6px 6px; border-radius: var(--lp-r-pill);
  border: 1px solid var(--lp-border); background: var(--lp-surface); color: var(--lp-text);
  font-size: var(--lp-fs-sm); font-weight: 600; text-decoration: none;
  transition: transform var(--lp-dur) var(--lp-ease), border-color var(--lp-dur) var(--lp-ease);
}
.fd-more-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.fd-more-all { padding-left: 12px; color: var(--lp-accent); }
.fd-more-chip:hover, .fd-more-all:hover { transform: translateY(-1px); border-color: var(--lp-border-strong); }
.fd-more-chip:focus-visible, .fd-more-all:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 2px; }

/* ---- power ladder (tabs) ---- */
.fd-ladder {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--lp-sp-3);
  max-width: 960px; margin: 0 auto;
}
.fd-step {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--lp-sp-1);
  padding: var(--lp-sp-3) var(--lp-sp-4) var(--lp-sp-3);
  border: 1px solid var(--lp-border); border-radius: var(--lp-r);
  background: var(--lp-surface-2); color: var(--lp-muted);
  font: 500 var(--lp-fs-sm)/1.35 var(--lp-font); text-align: left;
  cursor: pointer; overflow: hidden;
  transition: border-color var(--lp-dur) var(--lp-ease), background-color var(--lp-dur) var(--lp-ease), box-shadow var(--lp-dur) var(--lp-ease);
}
.fd-step::before {   /* the level's charge bar */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--lp-primary), var(--lp-accent));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--lp-ease);
}
.fd-step.is-lit::before { transform: none; }
.fd-step:hover { color: var(--lp-text); border-color: var(--lp-border-strong); }
.fd-step[aria-selected="true"] {
  color: var(--lp-text); border-color: var(--lp-primary);
  background: color-mix(in srgb, var(--lp-primary) 14%, var(--lp-surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-primary) 16%, transparent), 0 10px 30px rgba(4, 2, 18, .4);
}
.fd-step-n { font: 700 var(--lp-fs-xs)/1 var(--fd-mono); color: var(--lp-faint); letter-spacing: .08em; }
.fd-step.is-lit .fd-step-n { color: var(--lp-accent); }
.fd-step-power { color: inherit; font-weight: 600; }
.fd-captions { max-width: 760px; margin: var(--lp-sp-4) auto var(--lp-sp-5); text-align: center; }
.fd-caption { color: var(--lp-muted); font-size: var(--lp-fs-sm); }
.fd-caption strong { color: var(--lp-text); font-weight: 600; }

/* ---- the app window ---- */
.fd-window {
  overflow: hidden;
  border: 1px solid var(--lp-border-strong); border-radius: var(--lp-r-lg);
  background: var(--fd-app);
  box-shadow: var(--lp-shadow), 0 0 80px color-mix(in srgb, var(--lp-primary) 10%, transparent);
}
.fd-split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, 1fr); height: 614px; }

/* each app's own title bar */
.fd-tvbar, .fd-appbar { display: flex; align-items: center; flex: none; height: 34px; padding: 0 var(--lp-sp-3); white-space: nowrap; overflow: hidden; }
.fd-tvbar { gap: var(--lp-sp-3); background: #0f121a; border-bottom: 1px solid var(--lp-tv-grid, #1e222d); }
.fd-lights { display: inline-flex; gap: 6px; }
.fd-lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.fd-lights i + i { background: #febc2e; }
.fd-lights i + i + i { background: #28c840; }
.fd-tvbar-name { color: #9598a1; font-size: var(--lp-fs-xs); font-weight: 600; }
.fd-appbar {
  position: relative; justify-content: flex-end; gap: var(--lp-sp-2); padding-right: var(--lp-sp-2);
  background: linear-gradient(180deg, rgba(7, 11, 20, .98), rgba(4, 8, 22, .96));
  border-bottom: 1px solid rgba(124, 58, 237, .25);
}
.fd-appbar::before {   /* TitleBar's holographic top line */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; opacity: .6;
  background: linear-gradient(90deg, transparent, #7C3AED 20%, #A855F7 40%, #00D1FF 60%, #A855F7 80%, transparent);
}
.fd-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(148, 103, 254, .15), rgba(0, 255, 255, .08));
  border: 1px solid rgba(148, 103, 254, .35); box-shadow: 0 0 10px rgba(148, 103, 254, .2);
  color: #e8e8ff; font: 700 11px/1.2 var(--lp-font); letter-spacing: .02em;
}
.fd-switch svg { flex: none; opacity: .8; }
.fd-crown { color: #f59e0b; opacity: 1 !important; }
.fd-switch-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #f97316, #fb923c); box-shadow: 0 0 8px #f97316; }
.fd-switch[data-fd-provider="anthropic"] .fd-crown { display: none; }
.fd-switch[data-fd-provider="anthropic"] .fd-switch-dot { display: block; }
.fd-appbar-sep { width: 1px; height: 18px; background: rgba(124, 58, 237, .25); }
.fd-winctl { display: inline-flex; color: #9CA3AF; }
.fd-winctl svg { box-sizing: content-box; padding: 6px; }

/* chart */
.fd-chart { display: flex; flex-direction: column; min-width: 0; background: var(--lp-tv-bg, #131722); }
.fd-tvhead {
  display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px var(--lp-sp-3);
  border-bottom: 1px solid var(--lp-tv-grid, #1e222d); color: #d1d4dc; font-size: 13px; white-space: nowrap; overflow: hidden;
}
.fd-tvsym { font-weight: 700; color: #fff; }
.fd-tvsep { color: #787b86; }
.fd-ohlc { display: inline-flex; gap: 8px; margin-left: 6px; color: #787b86; font: 12px/1 var(--fd-mono); }
.fd-ohlc b { font-weight: 500; }
.fd-ohlc .is-up { color: var(--lp-tv-green, #089981); }
.fd-ohlc .is-down { color: var(--lp-tv-red, #F23645); }
.fd-tvhead .lp-sample { margin-left: auto; }
.fd-stage { position: relative; flex: 1; min-height: 0; }
.fd-canvas, .fd-poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fd-canvas { visibility: hidden; }
.fd-has-canvas .fd-canvas { visibility: visible; }
.fd-has-canvas .fd-poster { display: none; }

/* Finn's chat */
.fd-app { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--fd-line); background: linear-gradient(180deg, #06050f, var(--fd-app)); }
.fd-apphead {
  display: flex; align-items: stretch; flex: none; height: 56px; padding: 0 var(--lp-sp-2);
  background: linear-gradient(180deg, rgba(5, 5, 18, .99), rgba(4, 4, 14, .98));
  border-bottom: 1px solid rgba(148, 103, 254, .28);
}
.fd-apphead > span { display: flex; flex-direction: column; justify-content: center; padding: 0 var(--lp-sp-3); border-right: 1px solid rgba(148, 103, 254, .12); }
.fd-live { align-items: center; gap: 6px; color: #00ff88; font: 800 8px/1 var(--lp-font); letter-spacing: .15em; }
.fd-live i, .fd-tvpill i { width: 8px; height: 8px; border-radius: 50%; background: #00ff88; box-shadow: 0 0 10px #00ff88; animation: fd-pulse 2s ease-in-out infinite; }
.fd-cell small { color: #9898c8; font: 700 8px/1 var(--fd-mono); letter-spacing: .15em; text-transform: uppercase; }
.fd-cell > span, .fd-cell > b { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: #f0f0ff; font: 800 15px/1 var(--lp-font); letter-spacing: .04em; }
.fd-cell--price > b { font-family: var(--fd-mono); font-size: 14px; }
.fd-cell em { font: 700 9px/1 var(--fd-mono); font-style: normal; color: #b48eff; padding: 3px 6px; border-radius: 6px; background: rgba(148, 103, 254, .15); border: 1px solid rgba(148, 103, 254, .3); }
.fd-apphead > .fd-tvpill {
  flex-direction: row; align-items: center; gap: 6px; align-self: center; margin-left: auto; padding: 7px 10px;
  border: 1px solid rgba(0, 255, 136, .3); border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 255, 136, .12), rgba(0, 255, 255, .08));
  color: #00ff88; font: 800 9px/1 var(--lp-font); letter-spacing: .14em; white-space: nowrap;
}

.fd-thread { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: var(--lp-sp-4) var(--lp-sp-4) var(--lp-sp-2); scrollbar-width: thin; scrollbar-color: rgba(148, 103, 254, .3) transparent; }
.fd-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--lp-sp-3); padding: var(--lp-sp-4); text-align: center; }
.fd-empty[hidden] { display: none; }
.fd-empty-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: rgba(148, 103, 254, .08); border: 1px solid rgba(148, 103, 254, .22);
  color: #a07aff; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.fd-empty-pill i { width: 5px; height: 5px; border-radius: 50%; background: #9467fe; box-shadow: 0 0 6px rgba(148, 103, 254, .8); }
.fd-empty-title {
  max-width: 260px; font-size: 18px; font-weight: 800; line-height: 1.25;
  background: linear-gradient(135deg, #fff 0%, #c4b0ff 45%, #7dd3fc 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fd-log { display: flex; flex-direction: column; gap: var(--lp-sp-3); }
.fd-msg { display: flex; min-width: 0; animation: fd-in .35s var(--lp-ease) both; }
.fd-msg--me { justify-content: flex-end; }
.fd-bubble {
  max-width: 86%; padding: 10px 15px;
  background: linear-gradient(135deg, #5B21B6 0%, #6759d1 40%, #7C3AED 100%);
  border: 1px solid rgba(124, 58, 237, .6); border-radius: 20px 20px 6px 20px;
  box-shadow: 0 8px 30px rgba(124, 58, 237, .45), 0 2px 0 rgba(168, 85, 247, .3) inset;
  color: #fff; font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere;
}
.fd-card {
  position: relative; width: 100%; overflow: hidden;
  border: 1px solid rgba(124, 58, 237, .3); border-radius: 16px;
  background: linear-gradient(160deg, rgba(10, 16, 32, .97), rgba(7, 11, 20, .98));
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6), 0 0 40px rgba(124, 58, 237, .1);
}
.fd-card::before {   /* the glowing left bar */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, rgba(124, 58, 237, 0), rgba(124, 58, 237, .9) 20%, rgba(168, 85, 247, .7) 50%, rgba(124, 58, 237, .9) 80%, rgba(124, 58, 237, 0));
  box-shadow: 0 0 16px rgba(124, 58, 237, .6);
}
.fd-voice .fd-msg--ai:last-child .fd-card::before { background: linear-gradient(to bottom, transparent, var(--fd-vox) 30%, var(--fd-violet) 70%, transparent); }
.fd-card-head {
  display: flex; align-items: center; gap: var(--lp-sp-3); padding: 10px 14px;
  background: linear-gradient(90deg, rgba(124, 58, 237, .18), rgba(168, 85, 247, .08) 50%, transparent);
  border-bottom: 1px solid rgba(124, 58, 237, .2);
}
.fd-av { display: flex; flex: none; width: 36px; height: 36px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(124, 58, 237, .5); box-shadow: 0 0 18px rgba(124, 58, 237, .4); }
.fd-av img { width: 100%; height: 100%; object-fit: cover; }
.fd-av--vox { border: 0; border-radius: 50%; overflow: visible; box-shadow: none; filter: drop-shadow(0 0 8px rgba(124, 58, 237, .45)); }
.fd-who { display: flex; flex-direction: column; min-width: 0; }
.fd-who b { color: #E9D5FF; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-shadow: 0 0 12px rgba(124, 58, 237, .5); }
.fd-who small { display: inline-flex; align-items: center; gap: 4px; color: #9CA3AF; font-size: 12px; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.fd-chips:empty { display: none; }
.fd-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: rgba(59, 130, 246, .1); border: 1px solid rgba(59, 130, 246, .3);
  color: #c9d3f5; font-size: 11.5px; animation: fd-in .3s var(--lp-ease) both;
}
.fd-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3b82f6; animation: fd-pulse 1.2s ease-in-out infinite; }
.fd-chip.is-done { color: #8a8ac0; background: rgba(148, 103, 254, .07); border-color: rgba(148, 103, 254, .14); }
.fd-chip.is-done::before { display: none; }
.fd-chip code { font: 11px/1.4 var(--fd-mono); color: inherit; background: none; padding: 0; }
.fd-card-body { padding: 10px 14px 12px; }
.fd-text { color: #e5e7eb; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.fd-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; border-radius: 2px; background: #9467fe; box-shadow: 0 0 8px rgba(148, 103, 254, .7); animation: fd-blink 1s steps(2) infinite; }
.fd-wait { display: inline-flex; gap: 6px; margin-right: 8px; vertical-align: middle; }
.fd-wait i { width: 6px; height: 6px; border-radius: 50%; background: #9467fe; opacity: .5; animation: fd-pulse 1.2s ease-in-out infinite; }
.fd-wait i:nth-child(2) { animation-delay: .2s; }
.fd-wait i:nth-child(3) { animation-delay: .4s; }
.fd-wait-l { color: #9090b8; font: 12px var(--fd-mono); }
.fd-extra { margin-top: 10px; animation: fd-in .35s var(--lp-ease) both; }
.fd-table { width: 100%; border-collapse: collapse; font: 12px/1.4 var(--fd-mono); color: #d1d5db; }
.fd-table th, .fd-table td { padding: 5px 8px; border-bottom: 1px solid rgba(148, 103, 254, .14); text-align: left; }
.fd-table th { color: #9898c8; font-weight: 700; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.fd-table td:last-child, .fd-table th:last-child { text-align: right; }
.fd-extra .lp-sample { margin-top: 6px; font-size: 10px; }

/* the voice strip and composer */
.fd-strip {
  display: flex; align-items: center; gap: 8px; margin: 0 var(--lp-sp-3) var(--lp-sp-2); padding: 7px 10px;
  border-radius: 12px; background: rgba(17, 24, 39, .7); border: 1px solid rgba(61, 220, 151, .3);
  color: #e8e6f5; font-size: 12px; font-weight: 600; animation: fd-in .3s var(--lp-ease) both;
}
.fd-strip[hidden] { display: none; }
.fd-strip-dot { --c: var(--fd-live); width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.fd-strip[data-state="thinking"] .fd-strip-dot { --c: var(--fd-think); animation: fd-pulse 1.2s ease-in-out infinite; }
.fd-strip[data-state="speaking"] .fd-strip-dot { --c: var(--fd-vox); animation: fd-pulse 1.2s ease-in-out infinite; }
.fd-strip-end { display: grid; place-items: center; width: 26px; height: 26px; margin-left: auto; border-radius: 8px; color: #fca5a5; background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .28); }
.fd-composer {
  flex: none; margin: 0 var(--lp-sp-3) var(--lp-sp-3); border-radius: 16px;
  background: rgba(10, 8, 28, .92); border: 1px solid rgba(124, 58, 237, .35);
  box-shadow: 0 0 24px rgba(124, 58, 237, .12);
}
.fd-input { position: relative; min-height: 42px; padding: 11px 16px 4px; color: #F3F4F6; font-size: 14px; line-height: 1.5; }
.fd-ph { color: #7080a0; }
.fd-input.has-text .fd-ph { display: none; }
.fd-input.has-text::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -3px; background: #c4b5fd; animation: fd-blink 1s steps(2) infinite; }
.fd-row { display: flex; align-items: center; gap: 8px; padding: 4px 10px 10px; }
.fd-model { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; color: #e8e8ff; background: rgba(148, 103, 254, .13); border: 1px solid rgba(148, 103, 254, .35); font: 11px/1.2 var(--fd-mono); white-space: nowrap; }
.fd-model svg { color: #c4a3ff; opacity: .7; }
.fd-model[hidden] { display: none; }
.fd-mic, .fd-send {
  position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px;
  background: rgba(17, 24, 39, .5); border: 1px solid rgba(124, 58, 237, .35); color: #c4b5fd;
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.fd-mic { margin-left: auto; }
.fd-mic i { display: none; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--fd-live)); box-shadow: 0 0 6px var(--c, var(--fd-live)); }
.fd-mic.is-live { color: var(--fd-live); border-color: rgba(61, 220, 151, .45); background: linear-gradient(135deg, rgba(61, 220, 151, .16), rgba(124, 58, 237, .18)); box-shadow: 0 0 16px rgba(61, 220, 151, .25); }
.fd-mic.is-live i { display: block; }
.fd-mic[data-state="thinking"] i { --c: var(--fd-think); animation: fd-pulse 1.2s ease-in-out infinite; }
.fd-mic[data-state="speaking"] i { --c: var(--fd-vox); animation: fd-pulse 1.2s ease-in-out infinite; }
.fd-send { color: #9CA3AF; border-color: rgba(75, 85, 99, .3); }
.fd-send.is-ready { color: #fff; border-color: rgba(124, 58, 237, .6); background: linear-gradient(135deg, #5B21B6, #7C3AED 50%, #A855F7); box-shadow: 0 0 24px rgba(124, 58, 237, .55); }

/* ---- controls under the window ---- */
.fd-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--lp-sp-3) var(--lp-sp-5); margin-top: var(--lp-sp-4); }
.fd-play { display: flex; gap: var(--lp-sp-2); }
.fd-ico-play, .is-paused .fd-ico-pause { display: none; }
.is-paused .fd-ico-play { display: inline; }
.fd-voxbox { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lp-sp-2) var(--lp-sp-3); }
.fd-vox {
  display: inline-flex; align-items: center; gap: var(--lp-sp-2); min-height: 38px; padding: 6px 14px 6px 8px;
  border: 1px solid color-mix(in srgb, var(--fd-vox) 40%, transparent); border-radius: var(--lp-r-pill);
  background: var(--lp-vox-dim, rgba(255, 181, 71, .14)); color: var(--lp-vox-strong, #FFC978);
  font: 600 var(--lp-fs-sm)/1.2 var(--lp-font); cursor: pointer;
  transition: border-color var(--lp-dur) var(--lp-ease), box-shadow var(--lp-dur) var(--lp-ease);
}
.fd-vox:hover { border-color: var(--fd-vox); }
.fd-vox[aria-pressed="true"] { border-color: var(--fd-vox); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fd-vox) 18%, transparent); }
.fd-vox-track { position: relative; width: 30px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid color-mix(in srgb, var(--fd-vox) 40%, transparent); transition: background-color var(--lp-dur) var(--lp-ease); }
.fd-vox-track span { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--lp-vox-strong, #FFC978); transition: transform var(--lp-dur) var(--lp-ease); }
.fd-vox[aria-pressed="true"] .fd-vox-track { background: var(--fd-vox); }
.fd-vox[aria-pressed="true"] .fd-vox-track span { transform: translateX(12px); background: #1a1206; }
.fd-vox-note { color: var(--lp-muted); font-size: var(--lp-fs-xs); }
.fd-vox-note a { color: var(--lp-vox-strong, #FFC978); text-decoration: underline; text-underline-offset: 2px; }

/* ---- footer ---- */
.fd-foot { display: flex; flex-direction: column; align-items: center; gap: var(--lp-sp-4); margin-top: var(--lp-sp-6); text-align: center; }
.fd-caveats { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--lp-sp-2) var(--lp-sp-5); margin: 0; padding: 0; list-style: none; color: var(--lp-muted); font-size: var(--lp-fs-sm); }
.fd-caveats li { display: inline-flex; align-items: center; gap: var(--lp-sp-2); }
.fd-caveats svg { flex: none; color: var(--lp-green); }
.fd-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--lp-sp-3); }
.fd-platforms { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--lp-sp-2); color: var(--lp-muted); font-size: var(--lp-fs-xs); }

/* ---- motion ---- */
@keyframes fd-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fd-pulse { 50% { opacity: .35; } }
@keyframes fd-blink { 50% { opacity: 0; } }
.fd.is-paused *, .fd.is-paused *::before, .fd.is-paused *::after { animation-play-state: paused !important; }
.fd-still .fd-msg, .fd-still .fd-chip, .fd-still .fd-extra { animation: none; }

/* ---- small screens: chat under the chart ---- */
@media (max-width: 899px) {
  .fd-split { grid-template-columns: minmax(0, 1fr); height: auto; }
  .fd-stage { flex: none; height: clamp(240px, 58vw, 360px); }
  .fd-app { height: 534px; border-left: 0; border-top: 1px solid var(--fd-line); }
}
@media (max-width: 640px) {
  .fd-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--lp-sp-2); }
  .fd-step { padding: var(--lp-sp-2) var(--lp-sp-3); font-size: 13px; }
  .fd-ohlc { display: none; }
  .fd-controls { justify-content: center; }
  .fd-voxbox { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .fd-cell--price { display: none !important; }
  .fd-apphead > span { padding: 0 var(--lp-sp-2); }
  .fd-thread { padding: var(--lp-sp-3) var(--lp-sp-3) var(--lp-sp-2); }
  .fd-bubble, .fd-text { font-size: 13.5px; }
  .fd-app { height: 504px; }
  .fd-winctl svg { padding: 4px; }
}
