/* The EZRA demo (showcase/chapters/_ezra.html, ezra-demo.js) on /how-it-works/ (#ezra).
   One app window that mirrors EZRA's own screen (ezpz_ai/templates/ezpzai/index_v9.html):
   the welcome screen on the left (heading, mode tabs, starter cards), the conversation and
   composer on the right; stacked on narrow screens. Colours inside the window are EZRA's own
   tokens (--ez-*, copied from index_v9.html :root); the section around it uses landing.css.
   Only transform and opacity animate; all of it stops under reduced motion (landing.css
   section 13) and while the demo is paused (.is-paused). Everything is ez-*. */

.ez {
  --ez-p: #6759d1; --ez-p1: rgba(103, 89, 209, .08); --ez-p2: rgba(103, 89, 209, .16); --ez-p3: rgba(103, 89, 209, .28);
  --ez-bg: #111118; --ez-bg2: #161622; --ez-bg3: #1a1a26;
  --ez-border: rgba(255, 255, 255, .07); --ez-border2: rgba(255, 255, 255, .12);
  --ez-text: #dcdce8; --ez-muted: rgba(180, 175, 215, .85); --ez-bright: #f0f0f8;
  --ez-green: #10b981; --ez-red: #ef4444; --ez-amber: #f59e0b; --ez-cyan: #38bdf8; --ez-purple: #a78bfa;
  --ez-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ez-h: 700px;
}
html:not(.js) .ez-js { display: none !important; }

/* ---- head ---- */
.ez-head-logo { display: inline-flex; }
.ez-head-logo img {
  width: 48px; height: 48px; border-radius: var(--lp-r-sm); border: 1px solid var(--lp-border-strong);
  box-shadow: 0 0 24px color-mix(in srgb, var(--ez-p) 45%, transparent);
}

/* ---- the window ---- */
.ez-window {
  overflow: hidden;
  border: 1px solid var(--lp-border-strong); border-radius: var(--lp-r-lg);
  background: var(--ez-bg);
  box-shadow: var(--lp-shadow), 0 0 80px color-mix(in srgb, var(--lp-primary) 10%, transparent);
}
.ez-bar {
  position: relative; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px;
  background: linear-gradient(180deg, #0f0f17, #0c0c13); border-bottom: 1px solid rgba(103, 89, 209, .12);
  white-space: nowrap; overflow: hidden;
}
.ez-bar::after {   /* the header's glowing bottom line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 79, 207, .7) 25%, rgba(167, 139, 250, .9) 50%, rgba(103, 89, 209, .7) 75%, transparent);
}
.ez-lights { display: inline-flex; gap: 6px; margin-right: 4px; }
.ez-lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.ez-lights i + i { background: #febc2e; }
.ez-lights i + i + i { background: #28c840; }
.ez-bar-logo { width: 22px; height: 22px; border-radius: 6px; box-shadow: 0 3px 14px rgba(103, 89, 209, .4); }
.ez-bar-name { color: var(--ez-bright); font: 800 14px/1 var(--lp-font); letter-spacing: -.02em; }
.ez-bar-sub { color: var(--ez-muted); font-size: 12px; }
.ez-hmodes {
  display: inline-flex; gap: 2px; margin-left: auto; padding: 3px; border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
}
.ez-hmodes i { padding: 3px 9px; border-radius: 7px; font-style: normal; font-size: 13px; line-height: 1.2; opacity: .45; }
.ez-hmodes i.is-on { opacity: 1; background: linear-gradient(135deg, rgba(91, 79, 207, .26), rgba(124, 58, 237, .16)); }

.ez-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); height: var(--ez-h); }

/* ---- left: the welcome screen ---- */
.ez-home {
  display: flex; flex-direction: column; align-items: center; min-height: 0; overflow-y: auto;
  padding: 22px 22px 20px; text-align: center; border-right: 1px solid rgba(103, 89, 209, .12);
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(103, 89, 209, .1), transparent 70%);
  scrollbar-width: thin; scrollbar-color: rgba(103, 89, 209, .25) transparent;
}
.ez-home-logo {
  width: 56px; height: 56px; border-radius: 14px;
  filter: drop-shadow(0 0 22px rgba(103, 89, 209, .55));
}
.ez-live {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 4px 14px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(103, 89, 209, .18), rgba(139, 92, 246, .1));
  border: 1px solid rgba(139, 92, 246, .38);
  color: var(--ez-purple); font-size: 10px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase;
}
.ez-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ez-p); animation: ez-pulse 2s ease-in-out infinite; }
.lp-main .ez-home-title {
  margin-top: 12px; color: var(--ez-bright);
  font: 800 clamp(20px, 2.2vw, 26px)/1.2 var(--lp-font); letter-spacing: -.02em;
}
.ez-home-title span {
  background: linear-gradient(135deg, #ddd6fe 0%, #a78bfa 35%, #818cf8 65%, #38bdf8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-main .ez-home-sub { margin: 6px 0 14px; color: var(--ez-muted); font-size: 13px; line-height: 1.5; }
.ez-home-sub b { color: var(--ez-bright); font-weight: 600; }

/* mode tabs (.v5-mode-tab) */
.ez-tabs {
  display: flex; gap: 4px; width: 100%; padding: 5px; margin-bottom: 14px;
  background: rgba(255, 255, 255, .022); border: 1px solid rgba(103, 89, 209, .18); border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .03);
}
.lp-main .ez-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 40px;
  padding: 9px 10px; border: 0; border-radius: 12px; background: none; cursor: pointer;
  color: rgba(170, 165, 210, .7); font: 600 13px/1.2 var(--lp-font); white-space: nowrap;
  transition: color .25s var(--lp-ease), background-color .25s var(--lp-ease), box-shadow .25s var(--lp-ease);
}
.ez-tab:hover:not([aria-selected="true"]) { color: rgba(196, 181, 253, .95); background: rgba(103, 89, 209, .1); }
.lp-main .ez-tab[aria-selected="true"] {
  color: #fff; font-weight: 700;
  background: linear-gradient(135deg, #5b4fcf 0%, #7c3aed 100%);
  box-shadow: 0 4px 20px rgba(91, 79, 207, .5), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.ez-tab-i { font-size: 14px; }
.ez-tab-short { display: none; }

/* starter cards (.v5-starter) */
.ez-panel { width: 100%; }
.lp-main .ez-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 2px; list-style: none; }
.ez-grid > li { display: flex; min-width: 0; }
.lp-main .ez-card {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 5px; width: 100%; min-width: 0;
  padding: 11px 12px 12px; border: 1px solid rgba(103, 89, 209, .13); border-radius: 14px;
  background: linear-gradient(150deg, rgba(22, 17, 38, .98) 0%, rgba(13, 9, 22, .96) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
  color: var(--ez-text); font: inherit; text-align: left;
  transition: border-color .25s var(--lp-ease), transform .25s var(--lp-ease), box-shadow .25s var(--lp-ease);
}
button.ez-card { cursor: pointer; }
button.ez-card::after {   /* the "pick me" glow after the first answer (.ez-nudge) */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, .55), 0 0 22px rgba(103, 89, 209, .35); opacity: 0;
}
.ez-nudge .ez-panel:not([hidden]) button.ez-card:not([aria-current="true"])::after { animation: ez-glow 2.8s ease-in-out infinite; }
.ez-nudge .ez-grid > li:nth-child(2) button.ez-card::after { animation-delay: .5s; }
.ez-nudge .ez-grid > li:nth-child(3) button.ez-card::after { animation-delay: 1s; }
.ez-nudge .ez-grid > li:nth-child(4) button.ez-card::after { animation-delay: 1.5s; }
@media (hover: hover) and (pointer: fine) {
  button.ez-card:hover {
    border-color: rgba(103, 89, 209, .45); transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(103, 89, 209, .12), 0 0 28px rgba(103, 89, 209, .08);
  }
}
.lp-main button.ez-card[aria-current="true"] {
  border-color: rgba(139, 92, 246, .7);
  background: linear-gradient(150deg, rgba(48, 36, 92, .98) 0%, rgba(22, 15, 44, .96) 100%);
  box-shadow: 0 0 0 3px rgba(103, 89, 209, .18), 0 10px 30px rgba(0, 0, 0, .45);
}
.ez-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ez-card-i { font-size: 18px; line-height: 1.2; filter: drop-shadow(0 0 6px rgba(103, 89, 209, .35)); }
.ez-card-go {
  padding: 1px 7px; border-radius: 999px; font: 700 9.5px/1.6 var(--ez-mono); letter-spacing: .06em; text-transform: uppercase;
  color: #c4b5fd; background: rgba(103, 89, 209, .18); border: 1px solid rgba(139, 92, 246, .4);
}
.ez-card-go::before { content: "\25B6\00a0"; content: "\25B6\00a0" / ""; font-size: 7px; vertical-align: 1px; }
.ez-card-l { color: #e4e2f8; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.ez-card-h { color: rgba(185, 180, 220, .82); font: 10.5px/1.45 var(--ez-mono); }
.ez-card.is-more { opacity: .6; box-shadow: none; }
.ez-card.is-more .ez-card-go { color: var(--ez-muted); background: none; border-color: var(--ez-border2); }
.ez-card.is-more .ez-card-go::before { content: none; }
.lp-main .ez-more { display: none; color: var(--ez-muted); font-size: 12px; }

/* ---- right: the conversation ---- */
.ez-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--ez-bg); }
.ez-thread {
  position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 18px 18px 8px;
  scrollbar-width: thin; scrollbar-color: rgba(103, 89, 209, .25) transparent;
}
.lp-main .ez-empty {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px;
  color: var(--ez-muted); font-size: 14px; text-align: center;
}
.ez-empty[hidden] { display: none; }
.ez-log { display: flex; flex-direction: column; gap: 18px; }
.ez-ex { display: flex; flex-direction: column; gap: 16px; animation: ez-in .35s var(--lp-ease) both; }

/* the question (.v5-user-query) */
.ez-uq { display: flex; align-items: flex-start; justify-content: flex-end; gap: 10px; }
.ez-uq-col { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 86%; min-width: 0; }
.ez-pip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .4px; opacity: .75;
  background: rgba(103, 89, 209, .15); color: #a78bfa; border: 1px solid rgba(103, 89, 209, .2);
}
.ez-pip[data-mode="swing"] { background: rgba(56, 189, 248, .1); color: #7dd3fc; border-color: rgba(56, 189, 248, .2); }
.ez-pip[data-mode="invest"] { background: rgba(16, 185, 129, .1); color: #34d399; border-color: rgba(16, 185, 129, .2); }
.lp-main .ez-ububble {
  padding: 11px 16px; border-radius: 20px 20px 4px 20px;
  background: linear-gradient(135deg, rgba(91, 79, 207, .2), rgba(124, 58, 237, .12));
  border: 1px solid rgba(103, 89, 209, .26);
  box-shadow: 0 3px 18px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #eceaf8; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere;
}
.ez-uav {
  display: flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; margin-top: 22px;
  border-radius: 50%; background: linear-gradient(135deg, #2e2250, #1e1836); border: 1px solid rgba(103, 89, 209, .3);
  color: rgba(196, 181, 253, .85); font-size: 8px; font-weight: 900; letter-spacing: .5px;
}

/* the answer area (.v5-ai-area) */
.ez-ai { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.ez-aav {
  display: flex; flex: none; width: 36px; height: 36px; overflow: hidden; border-radius: 12px; background: #000;
  box-shadow: 0 0 0 1px rgba(103, 89, 209, .35), 0 4px 20px rgba(103, 89, 209, .3);
}
.ez-aav img { width: 100%; height: 100%; object-fit: cover; }
.ez-ai-body { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }

/* "EZRA is thinking" (.v5-thinking) */
.ez-think { position: relative; padding: 6px 0 4px; animation: ez-in .2s var(--lp-ease) both; }
.ez-think-l { display: block; margin-bottom: 8px; color: rgba(160, 155, 200, .8); font-size: 14px; font-weight: 500; }
.ez-dots { display: flex; gap: 5px; }
.ez-dots i { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--ez-p), #a78bfa); animation: ez-bounce 1.4s ease-in-out infinite; }
.ez-dots i:nth-child(2) { animation-delay: .18s; background: linear-gradient(135deg, #8b5cf6, #38bdf8); }
.ez-dots i:nth-child(3) { animation-delay: .36s; background: linear-gradient(135deg, #38bdf8, #10b981); }
.ez-shimmer { position: relative; display: block; height: 2px; margin-top: 10px; overflow: hidden; border-radius: 2px; max-width: 260px; }
.ez-shimmer::before {
  content: ""; position: absolute; inset: 0; width: 60%;
  background: linear-gradient(90deg, transparent, var(--ez-p), #a78bfa, #38bdf8, transparent);
  animation: ez-sweep 1.8s linear infinite;
}

/* research steps (.v5-research-steps / .v5-step-row) */
.lp-main .ez-steps {
  display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 10px 12px; list-style: none;
  background: rgba(103, 89, 209, .04); border: 1px solid rgba(103, 89, 209, .13); border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .03);
}
.ez-step { display: flex; align-items: center; gap: 12px; padding: 7px 9px; border-radius: 8px; animation: ez-in .25s var(--lp-ease) both; }
.ez-step.is-active { background: var(--ez-p1); box-shadow: inset 0 1px 0 var(--ez-p2), inset 0 0 0 1px var(--ez-p2); }
.ez-step-n {
  flex: none; min-width: 30px; padding: 3px 6px; border-radius: 6px; text-align: center;
  font: 800 11px/1.2 var(--ez-mono); letter-spacing: 1px;
  color: var(--ez-muted); background: var(--ez-p1); border: 1px solid var(--ez-border);
}
.ez-step.is-active .ez-step-n { color: #c4b5fd; background: var(--ez-p2); border-color: var(--ez-p3); }
.ez-step.is-done .ez-step-n { color: var(--ez-green); background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .3); }
.ez-step-t { flex: 1; min-width: 0; color: var(--ez-muted); font-size: 12.5px; font-weight: 500; overflow-wrap: anywhere; }
.ez-step.is-active .ez-step-t { color: var(--ez-text); }
.ez-step.is-done .ez-step-t { color: rgba(255, 255, 255, .42); }
.ez-spin { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ez-p2); border-top-color: var(--ez-p); animation: ez-spin .65s linear infinite; }
.ez-check { flex: none; color: var(--ez-green); font-size: 13px; }
.lp-main .ez-steps-done { animation: ez-in .3s var(--lp-ease) both; }
.lp-main .ez-steps-done summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  color: var(--ez-muted); font: 600 11.5px/1.5 var(--ez-mono);
  background: rgba(16, 185, 129, .06); border: 1px solid rgba(16, 185, 129, .22); list-style: none;
}
.ez-steps-done summary::-webkit-details-marker { display: none; }
.ez-steps-done summary::after { content: "\25BE"; content: "\25BE" / ""; opacity: .7; }
.ez-steps-done[open] summary::after { content: "\25B4"; content: "\25B4" / ""; }
.ez-steps-done[open] .ez-steps { margin-top: 8px; }

/* the answer card (.v5-stream-wrap / .v5-stream-body) */
.ez-answer {
  position: relative; overflow: hidden; border-radius: 18px;
  background: linear-gradient(155deg, rgba(22, 18, 44, .82) 0%, rgba(14, 10, 28, .88) 100%);
  border: 1px solid rgba(103, 89, 209, .22);
  box-shadow: 0 4px 32px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: ez-in .4s var(--lp-ease) both;
}
.ez-answer::before {
  content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 2px; border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, transparent, rgba(103, 89, 209, .65), rgba(139, 92, 246, .45), transparent);
}
.ez-answer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 16px 0 18px; }
.ez-tick {
  padding: 2px 9px; border-radius: 100px; font: 700 11px/1.5 var(--ez-mono); letter-spacing: .4px;
  color: rgba(196, 181, 253, .9); background: rgba(103, 89, 209, .12); border: 1px solid rgba(103, 89, 209, .25);
}
.ez-answer-head .lp-sample { margin-left: auto; font-size: 10px; }
.ez-md { padding: 6px 16px 4px 18px; color: var(--ez-text); font-size: 14.5px; line-height: 1.75; overflow-wrap: anywhere; }
.lp-main .ez-md-h { margin: 12px 0 4px; color: #c4b5fd; font: 600 15px/1.4 var(--lp-font); letter-spacing: 0; }
.lp-main .ez-md p { margin: 0 0 10px; }
.lp-main .ez-md ul { margin: 4px 0 10px; padding-left: 20px; }
.lp-main .ez-md li { margin-bottom: 5px; }
.ez-md li::marker { color: var(--ez-purple); }
.lp-main .ez-md strong { color: #f0eeff; font-weight: 600; }
.ez-caret {
  display: inline-block; width: 2px; height: 14px; margin-left: 2px; vertical-align: -2px; border-radius: 1px;
  background: var(--ez-p); animation: ez-blink .7s steps(1) infinite;
}
.ez-table-wrap { margin: 6px 0 12px; overflow-x: auto; border: 1px solid rgba(103, 89, 209, .14); border-radius: 10px; }
.lp-main .ez-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lp-main .ez-table th {
  padding: 6px 10px; text-align: left; white-space: nowrap;
  background: rgba(103, 89, 209, .1); color: var(--ez-bright); font: 700 11px/1.4 var(--ez-mono); letter-spacing: .5px; text-transform: uppercase;
}
.lp-main .ez-table td { padding: 6px 10px; border-top: 1px solid rgba(255, 255, 255, .05); color: var(--ez-text); }
.ez-table td:first-child { color: var(--ez-bright); font-family: var(--ez-mono); font-size: 12px; white-space: nowrap; }
.ez-table tr { animation: ez-in .25s var(--lp-ease) both; }
.lp-main .ez-chart {
  margin: 8px 0 12px; padding: 10px 12px 8px; border-radius: 12px;
  background: rgba(0, 0, 0, .22); border: 1px solid rgba(103, 89, 209, .18);
  animation: ez-in .3s var(--lp-ease) both;
}
.lp-main .ez-chart-t { margin-bottom: 6px; color: var(--ez-muted); font: 700 10.5px/1.4 var(--ez-mono); letter-spacing: .08em; text-transform: uppercase; }
.ez-chart-stage { position: relative; height: 220px; }
.ez-chart-stage canvas, .ez-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ez-answer-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 4px 16px 12px 18px; padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .05); color: var(--ez-muted); font: 11px/1.4 var(--ez-mono);
  animation: ez-in .3s var(--lp-ease) both;
}
.ez-elapsed::before { content: "\23F1\00a0"; content: "\23F1\00a0" / ""; }

/* the composer (.v5-input-wrap) */
.lp-main .ez-compose { flex: none; margin: 0; padding: 8px 16px 12px; }
.ez-inputwrap {
  display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 8px 14px; border-radius: 22px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(103, 89, 209, .2);
  box-shadow: 0 4px 28px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .22s, box-shadow .22s;
}
.ez-inputwrap:focus-within { border-color: rgba(167, 139, 250, .75); box-shadow: 0 0 0 3px rgba(103, 89, 209, .22), 0 6px 32px rgba(0, 0, 0, .45); }
.ez-field { position: relative; }
.lp-main .ez-input {
  display: block; width: 100%; min-height: 26px; max-height: 96px; margin: 0; padding: 2px 4px 0 0; resize: none;
  border: 0; outline: none; background: transparent; color: #e4e2ff; font: 14.5px/1.6 var(--lp-font);
}
.ez-input::placeholder { color: rgba(175, 170, 215, .72); }
.lp-main .ez-input:focus-visible { outline: none; }   /* the wrap shows focus */
.ez-field.has-typed .ez-input::placeholder { color: transparent; }
.ez-typed { display: none; min-height: 26px; padding: 2px 4px 0 0; color: #e4e2ff; font: 14.5px/1.6 var(--lp-font); overflow-wrap: anywhere; }
.ez-field.has-typed:not(.has-value):not(:focus-within) .ez-typed { display: block; }
.ez-field.has-typed:not(.has-value):not(:focus-within) .ez-input { position: absolute; inset: 0; height: 100%; max-height: none; }
.ez-field.has-typed .ez-typed::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: #c4b5fd; animation: ez-blink .7s steps(1) infinite; }
.ez-cbar { display: flex; align-items: center; gap: 8px; }
.ez-cicon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: rgba(185, 180, 230, .7); }
.ez-cmode {
  padding: 4px 10px; border-radius: 10px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  color: #c4b5fd; background: rgba(103, 89, 209, .14); border: 1px solid rgba(103, 89, 209, .3);
}
.ez-cmode[data-mode="swing"] { color: #7dd3fc; background: rgba(14, 165, 233, .12); border-color: rgba(56, 189, 248, .3); }
.ez-cmode[data-mode="invest"] { color: #34d399; background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .3); }
.lp-main .ez-send {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; margin: 0 0 0 auto; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; color: rgba(190, 185, 230, .6); background: rgba(255, 255, 255, .08);
  transition: transform .18s var(--lp-ease), box-shadow .18s, opacity .18s;
}
.lp-main .ez-send.is-ready {
  color: #fff; background: linear-gradient(135deg, #5b4fcf 0%, #7c3aed 100%);
  box-shadow: 0 3px 16px rgba(91, 79, 207, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.ez-send.is-ready:hover { transform: scale(1.07); }
.lp-main .ez-note { margin: 8px 4px 0; color: var(--ez-muted); font-size: 12px; line-height: 1.45; transition: opacity .25s var(--lp-ease); }
.ez-note b { color: #c4b5fd; font-weight: 600; }
.ez-ready .ez-note { opacity: 0; }
.ez-ready .ez-note.is-on { opacity: 1; }

/* ---- controls and footer ---- */
.ez-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); }
.ez-play { display: flex; gap: var(--lp-sp-2); }
.ez-ico-play, .is-paused .ez-ico-pause { display: none; }
.is-paused .ez-ico-play { display: inline; }
.lp-main .ez-sample-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--lp-sp-2); color: var(--lp-muted); font-size: var(--lp-fs-xs); }
.ez-foot { display: flex; flex-direction: column; align-items: center; gap: var(--lp-sp-4); margin-top: var(--lp-sp-6); text-align: center; }
.ez-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--lp-sp-3); }
.lp-main .ez-foot-note { max-width: 62ch; color: var(--lp-muted); font-size: var(--lp-fs-sm); }
.lp-main .ez-foot-note a { color: var(--lp-accent); font-weight: 600; }
.lp-main .ez-foot-note a:hover { color: var(--lp-text); text-decoration: underline; }

/* ---- motion ---- */
@keyframes ez-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ez-pulse { 50% { opacity: .35; } }
@keyframes ez-blink { 50% { opacity: 0; } }
@keyframes ez-spin { to { transform: rotate(360deg); } }
@keyframes ez-bounce { 0%, 60%, 100% { transform: translateY(0) scale(1); opacity: .5; } 30% { transform: translateY(-7px) scale(1.2); opacity: 1; } }
@keyframes ez-sweep { from { transform: translateX(-100%); } to { transform: translateX(170%); } }
@keyframes ez-glow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.ez.is-paused *, .ez.is-paused *::before, .ez.is-paused *::after { animation-play-state: paused !important; }
.ez-still .ez-ex, .ez-still .ez-step, .ez-still .ez-answer, .ez-still .ez-chart, .ez-still .ez-table tr,
.ez-still .ez-steps-done, .ez-still .ez-answer-foot { animation: none; }

/* ---- narrower: the welcome screen above the conversation ---- */
@media (max-width: 999px) {
  .ez-split { grid-template-columns: minmax(0, 1fr); height: auto; }
  .ez-home { overflow: visible; border-right: 0; border-bottom: 1px solid rgba(103, 89, 209, .14); }
  .ez-chat { height: 640px; }
}
@media (max-width: 640px) {
  .ez-bar-sub { display: none; }
  .ez-home { padding: 18px 12px 16px; }
  .ez-home-logo { width: 44px; height: 44px; }
  .ez-tab-full { display: none; }
  .ez-tab-short { display: inline; }
  .lp-main .ez-grid { grid-template-columns: minmax(0, 1fr); }
  .ez-grid > li.ez-card.is-more { display: none; }
  .lp-main .ez-more { display: block; padding-top: 4px; }
  .ez-chat { height: 600px; }
  .ez-thread { padding: 14px 12px 8px; }
  .lp-main .ez-compose { padding: 8px 10px 10px; }
  .ez-ai { gap: 8px; }
  .ez-aav { width: 30px; height: 30px; border-radius: 10px; }
  .ez-uav { display: none; }
  .ez-uq-col { max-width: 94%; }
  .ez-md { padding-left: 14px; padding-right: 12px; font-size: 14px; }
  .ez-answer-head { padding-left: 14px; padding-right: 12px; }
  .ez-answer-foot { margin-left: 14px; margin-right: 12px; }
  .ez-chart-stage { height: 200px; }
  .ez-step { gap: 8px; padding: 6px 6px; }
  .ez-controls { justify-content: center; }
  .ez-sample-note { justify-content: center; text-align: center; }
}
@media (max-width: 479.98px) {
  .ez-ctas, .ez-ctas .lp-btn { width: 100%; }
  .ez-aav { display: none; }   /* the answer gets the full width */
  .lp-main .ez-chart { padding: 8px 8px 6px; }
  .ez-md { padding-left: 12px; padding-right: 10px; }
}
