/* Echo landing page (www.strategi.pro/echo).
   Built from the Echo-landing Option A draft. Sections, in order:
   1. self-hosted fonts  2. frame for the app UI  3. the app's own stylesheet
   (verbatim copy of Echo App.css + history.css)  4. call backdrop
   5. screen-share split view  6. the page. */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/echo-assets/fonts/bricolage-grotesque-latin-wght.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/echo-assets/fonts/dm-mono-latin-400.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/echo-assets/fonts/dm-mono-latin-500.woff2) format('woff2');
}

/* ===== shared/echo-frame.css ===== */
/* Frame for the real Echo UI on the landing pages. Load BEFORE echo-app.css.
   The app bundles history.css, whose `* { margin:0; padding:0 }` applies to the
   whole overlay; :where() keeps that reset at zero specificity, exactly as there. */
:where(.eui) *,
:where(.eui) *::before,
:where(.eui) *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.eui {
  /* The app's own font stack (App.css html/body rule). */
  font-family: -apple-system, 'Segoe UI', system-ui, sans-serif;
  color: #fff;
  font-size: 14px;
  line-height: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  /* The UI is drawn at its real size, then zoomed to fit (set by the page). */
  zoom: var(--eui-zoom, 1);
  width: var(--eui-w, 900px);
  max-width: none;
}

.eui button { font: inherit; }
.eui input { font-family: inherit; }
.eui .control-bar-btn,
.eui .consent-notice__btn,
.eui .h-btn,
.eui .panel-toggle-btn { display: inline-block; user-select: none; }
.eui span.control-bar-btn { cursor: default; }
.eui .chat-input input[readonly] { pointer-events: none; }

/* Collapsed window: one 252px slot above the pill, one below, the pill between
   (INTEL_TOAST_HEIGHT = 252, PILL_HEIGHT = 52 in main/index.ts). */
.eui-pill {
  display: grid;
  grid-template-rows: var(--eui-slot-above, var(--eui-slot, 252px)) 52px var(--eui-slot-below, var(--eui-slot, 252px));
}
/* Phones only (see common.js fit): everything below the bar is zoomed up to a
   readable size; --eui-inner is 1 everywhere else. */
.eui-slot,
.eui-window > .overlay-body,
.eui-window > .bottom-bar,
.eui-window > .overlay-history-inline {
  zoom: var(--eui-inner, 1);
  /* A zoomed box keeps its own units: hold it to the window's real width. */
  width: calc(var(--eui-w, 900px) / var(--eui-inner, 1));
}
.eui-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  min-width: 0;
}
.eui-slot--above { align-items: end; padding-bottom: 8px; }
.eui-pill--top { grid-template-rows: 52px auto; }
.eui-below-stack { display: flex; flex-direction: column; zoom: var(--eui-inner, 1); width: calc(var(--eui-w, 900px) / var(--eui-inner, 1)); }
.eui-below-stack > .eui-slot { zoom: 1; width: auto; }
.eui-below-stack > .eui-slot:empty { padding: 0; }
.eui-slot--below { align-items: start; padding-top: 8px; }
.eui .eui-slot > .intel-bubble { grid-area: 1 / 1; max-width: min(660px, calc(100% - 28px)); }
.eui-slot > .ask-answer { width: min(560px, calc(100% - 28px)); }

/* Expanded window: 900 x 520 in the app. */
.eui-window {
  display: flex;
  flex-direction: column;
  height: var(--eui-h, 520px);
  color: #fff;
  overflow: hidden;
}
.eui-window .overlay-body { min-height: 0; }
/* Overlay.tsx sets the left panel to 70% of the body when AI Notes opens. */
.eui-window .left-panel { flex: none; width: min(70%, calc(100% - 185px)); }
.eui-window .notes-panel { animation: none; }

/* A transcript line or a note arriving: a short settle, no typing effect
   (the app receives whole chunks, never letters). */
@keyframes eui-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.eui .eui-in { animation: eui-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .eui .eui-in { animation: none; }
  .eui .rec-dot { animation: none; }
  .eui rect[style*="wave-bar"] { animation: none !important; }
}

/* ===== shared/echo-app.css ===== */
/* Echo UI: verbatim copy of the app's own stylesheets, so the page shows the real UI.
   Source: Echo/desktop/src/renderer/src/App.css (wave-bar + lines 159-end) and history/history.css (lines 21-end).
   Copied 2026-10-01. Do not edit here: re-copy when the app changes. */
/* ─── Waveform animation ──────────────────────────────────────────────────── */

@keyframes wave-bar {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(var(--bar-scale, 2)); }
}

/* Bars animated via inline style (animating prop) — single play or loop */
rect[style*="wave-bar"] {
  transform-box: fill-box;
  transform-origin: center;
}
/* ─── Echo logo ───────────────────────────────────────────────────────────── */

.echo-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.echo-logo-mark {
  display: flex;
  align-items: center;
}

.echo-logo-wordmark {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: lowercase;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.echo-logo-beta {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 200, 50, 0.6);
  text-transform: uppercase;
  margin-bottom: 1px;
}

/* ─── Top control bar ─────────────────────────────────────────────────────── */

.control-bar {
  position: relative; /* anchor for the ::after seam flash */
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 14px;
  gap: 8px;
  background: rgba(10, 10, 13, 0.68);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 22px 22px 0 0;
  -webkit-app-region: drag;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

/* 999px clamps to a true pill (26 at h=52) and stays correct on resize.
   Full hairline border replaces the inherited bottom-only border: when collapsed
   there is nothing below, so a bottom-only rule reads as a stray underline. */
.control-bar--collapsed {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* When Ask Echo input is in collapsed bar */
.control-bar--collapsed .chat-input {
  flex: 1;
  -webkit-app-region: no-drag;
}

/* Logo in collapsed bar — override scale, use row layout */
.control-bar--collapsed .echo-logo {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  flex: 1;
  transform: none !important;
}

.control-bar--collapsed .echo-logo svg {
  width: 28px;
  height: 20px;
}

.control-bar--collapsed .echo-logo-wordmark {
  font-size: 14px;
  letter-spacing: 0.14em;
}

/* Logo in expanded bar — row layout, left-anchored, spacer pushes buttons right */
.control-bar:not(.control-bar--collapsed) .echo-logo {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  transform: none !important;
  margin-right: auto; /* push all buttons to the right */
}

.control-bar:not(.control-bar--collapsed) .echo-logo svg {
  width: 28px;
  height: 20px;
}

.control-bar:not(.control-bar--collapsed) .echo-logo-wordmark {
  font-size: 14px;
  letter-spacing: 0.14em;
}

.control-bar-btn {
  -webkit-app-region: no-drag;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.control-bar-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

/* Active state — amber (used for History active, Start Call) */
.control-bar-btn--active {
  background: rgba(255, 200, 50, 0.1);
  border-color: rgba(255, 200, 50, 0.28);
  color: rgba(255, 200, 50, 0.95);
}

.control-bar-btn--active:hover {
  background: rgba(255, 200, 50, 0.18);
  color: rgba(255, 200, 50, 1);
}

/* Stop Call — amber tint (call in progress) */
.control-bar-btn--stop {
  background: rgba(255, 200, 50, 0.1);
  border-color: rgba(255, 200, 50, 0.28);
  color: rgba(255, 200, 50, 0.95);
}

.control-bar-btn--stop:hover {
  background: rgba(255, 200, 50, 0.18);
  color: rgba(255, 200, 50, 1);
}

/* Sign Out — red text */
.control-bar-btn--danger {
  color: rgba(255, 90, 90, 0.8);
}

.control-bar-btn--danger:hover {
  color: rgba(255, 90, 90, 1);
  background: rgba(220, 60, 60, 0.1);
}

/* Pulsing red dot inside Stop button */
.rec-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 200, 50, 0.95);
  margin-right: 5px;
  vertical-align: middle;
  animation: rec-pulse 1.4s ease-in-out infinite;
}

@keyframes rec-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.status-indicator {
  font-size: 11px;
  color: rgba(255, 180, 50, 0.7);
  font-style: italic;
  letter-spacing: 0.01em;
}

/* "Missed a few words" (a chunk failed to transcribe): one line in the bar, in
   both modes; shrinks with an ellipsis before it can push the buttons off. */
.status-indicator--stt-miss {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Signed-in account, expanded header only: small, muted, never pushes buttons off. */
.account-email {
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.01em;
}

/* ─── Main overlay shell ──────────────────────────────────────────────────── */

.overlay {
  display: flex;
  flex-direction: column;
  color: white;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.overlay-body {
  position: relative; /* anchor for the absolutely-positioned .intel-stack */
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background: rgba(8, 8, 10, 0.70);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

/* Inline history panel — same background, fills remaining height */
.overlay-history-inline {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: rgba(8, 8, 10, 0.70);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  /* This branch has NO .bottom-bar below it (Overlay.tsx), so it paints the
     overlay's bottom edge and must carry the bottom radii itself. */
  border-radius: 0 0 22px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
}

/* ─── Left panel (transcript + chat) ─────────────────────────────────────── */

.left-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.transcript-scroll {
  flex: 1;
  min-height: 60px;
  overflow-y: auto;
  padding: 14px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.transcript-scroll::-webkit-scrollbar { width: 3px; }
.transcript-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* kept for TranscriptPanel internal div class */
.transcript-panel {
  display: flex;
  flex-direction: column;
}

.transcript-entry {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 10px;
  padding: 8px 0;
  align-items: baseline;
}

.transcript-speaker {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 2px;
}

.transcript-speaker--them {
  color: rgba(110, 180, 255, 0.65);
}

.transcript-speaker--me {
  color: rgba(140, 230, 140, 0.55);
}

.transcript-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
}

/* ─── Resize dividers ────────────────────────────────────────────────────── */

/* Horizontal: between left panel and AI Notes */
.resize-divider {
  width: 5px;
  cursor: col-resize;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
  -webkit-app-region: no-drag;
}

.resize-divider:hover,
.resize-divider:active {
  background: rgba(255, 255, 255, 0.18);
}

/* Vertical: between transcript and chat */
.resize-divider-v {
  height: 5px;
  cursor: row-resize;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
  -webkit-app-region: no-drag;
}

.resize-divider-v:hover,
.resize-divider-v:active {
  background: rgba(255, 255, 255, 0.18);
}

/* ─── Suggestion panel ────────────────────────────────────────────────────── */

@keyframes panel-slide-in {
  from { width: 0; opacity: 0; }
  to   { width: 320px; opacity: 1; }
}

.notes-panel {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: panel-slide-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Collapsed state handled via absolute edge arrow — no collapsed panel in DOM */

.notes-panel-header {
  padding: 11px 14px 8px;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

/* Panel toggle button — "Collapse" in header or arrow at edge */
.panel-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  padding: 3px 7px;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
  -webkit-app-region: no-drag;
  flex-shrink: 0;
}

.panel-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

/* Edge arrow — absolutely pinned to right edge of overlay-body when AI Notes is collapsed */
.panel-edge-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px 0 0 6px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  cursor: pointer;
  padding: 10px 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  -webkit-app-region: no-drag;
  z-index: 10;
}

.panel-edge-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

/* Blip animation when new chip arrives while panel is closed */
@keyframes blip {
  0%, 100% { color: rgba(255, 255, 255, 0.45); border-color: rgba(255,255,255,0.08); }
  40%       { color: rgba(255, 200, 50, 0.95); border-color: rgba(255,200,50,0.4); background: rgba(255,200,50,0.1); }
}

.panel-toggle-btn--blip {
  animation: blip 1.2s ease-in-out infinite;
}

.notes-feed-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ─── Bottom bar ──────────────────────────────────────────────────────────── */

.bottom-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 13, 0.68);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 0 0 22px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  -webkit-app-region: no-drag;
}

/* ─── Chat input ──────────────────────────────────────────────────────────── */

.chat-input {
  display: flex;
  gap: 7px;
  flex: 1;
}

.chat-input input {
  flex: 1;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.chat-input input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.chat-input input:focus {
  border-color: rgba(255, 200, 50, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.chat-input button {
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.chat-input button:hover {
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.95);
}

.chat-input button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ─── Mode toggle ─────────────────────────────────────────────────────────── */

.mode-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.mode-toggle-active {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.mode-toggle-track {
  width: 26px;
  height: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.mode-toggle-track--on {
  background: rgba(255, 200, 50, 0.5);
}

.mode-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: white;
  transition: transform 0.18s;
}

.mode-toggle-track--on .mode-toggle-thumb {
  transform: translateX(11px);
}

/* ─── Live AI Notepad ─────────────────────────────────────────────────────── */

.notepad-feed {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.06) transparent;
}

.notepad-feed::-webkit-scrollbar { width: 3px; }
.notepad-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

@keyframes section-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notepad-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  animation: section-in 0.2s ease-out both;
}

.notepad-topic {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 200, 50, 0.6);
  margin: 0;
}

.notepad-notes {
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.notepad-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ─── Chat history (Ask Echo Q&A) ────────────────────────────────────────── */

.chat-history {
  padding: 10px 18px 4px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.chat-history::-webkit-scrollbar { width: 3px; }
.chat-history::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.chat-message {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 10px;
  align-items: baseline;
}

.chat-message-label {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 2px;
}

.chat-message--user .chat-message-label {
  color: rgba(140, 230, 140, 0.55);
}

.chat-message--echo .chat-message-label {
  color: rgba(255, 200, 50, 0.7);
}

.chat-message-text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

/* ── Live Intel Bubbles: card v3 (docs/design/card-popout-motion.md) ──
   One grid (26px | 1fr | 20px) so every text row shares one left edge.
   The card pops out of the pill (clip-path sliver → full card) and folds back
   into it on dismiss. Animate only clip-path, transform and opacity. */

@keyframes intel-timer {
  from { width: 100%; }
  to   { width: 0%; }
}

@keyframes intel-pop {
  0%   { clip-path: inset(0% 43% 96% 43% round 999px); transform: translateY(-14px); opacity: 0; }
  12%  { opacity: 1; }
  100% { clip-path: inset(0 0 0 0 round 16px); transform: none; opacity: 1; }
}
@keyframes intel-pop-above {
  0%   { clip-path: inset(96% 43% 0% 43% round 999px); transform: translateY(14px); opacity: 0; }
  12%  { opacity: 1; }
  100% { clip-path: inset(0 0 0 0 round 16px); transform: none; opacity: 1; }
}
@keyframes intel-retract {
  0%   { clip-path: inset(0 0 0 0 round 16px); transform: none; opacity: 1; }
  80%  { opacity: 1; }
  100% { clip-path: inset(0% 43% 96% 43% round 999px); transform: translateY(-14px); opacity: 0; }
}
@keyframes intel-retract-above {
  0%   { clip-path: inset(0 0 0 0 round 16px); transform: none; opacity: 1; }
  80%  { opacity: 1; }
  100% { clip-path: inset(96% 43% 0% 43% round 999px); transform: translateY(14px); opacity: 0; }
}
@keyframes intel-content-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes intel-content-out {
  to { opacity: 0; }
}
@keyframes intel-evict {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(6px) scale(0.98); }
}
@keyframes intel-seam {
  0%   { transform: scaleX(0); opacity: 0; }
  35%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1.2); opacity: 0; }
}
@keyframes intel-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes intel-fade-out { to { opacity: 0; } }

.intel-bubble {
  position: relative;
  box-sizing: border-box;
  width: max-content;
  max-width: 660px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 20px;
  column-gap: 12px;
  padding: 12px 14px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 22, 20, 0.95), rgba(13, 12, 11, 0.94));
  border: 1px solid rgba(var(--intel-hue), 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 12px 32px -10px rgba(0, 0, 0, 0.6),
    0 8px 28px -10px rgba(var(--intel-hue), 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.74);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  -webkit-app-region: no-drag;
}

.intel-bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(180px 120% at 0% 0%, rgba(var(--intel-hue), 0.12), transparent 70%);
}

.intel-bubble--term          { --intel-hue: 245, 158, 11; }
.intel-bubble--fact          { --intel-hue: 125, 180, 255; }
.intel-bubble--objection     { --intel-hue: 255, 140, 60; }
.intel-bubble--contradiction { --intel-hue: 239, 83, 80; }

/* Consent reminder at call start (docs/design/consent-reminder-spec.md §2).
   The card shell, motion and 5s fuse, a neutral hue, no ×. */
.intel-bubble.consent-notice {
  --intel-hue: 161, 161, 170;
  max-width: 660px; /* spec says 700px; held to the card cap (IntelCardMotion guard) */
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: end;
  cursor: default;
}
.intel-stack .intel-bubble.consent-notice {
  max-width: min(660px, calc(100% - 28px));
}
/* P3 system notices in the same shell (docs/plans/P3-UI-SPEC.md): short
   one-line text, so the card is held narrower than the consent line. */
.intel-bubble.consent-notice.call-check,
.intel-bubble.consent-notice.call-limit {
  max-width: min(440px, 660px, calc(100% - 28px)); /* 660px: the card cap */
}
.consent-notice.call-check .consent-notice__text,
.consent-notice.call-limit .consent-notice__text,
.consent-notice.call-check .consent-notice__actions,
.consent-notice.call-limit .consent-notice__actions {
  align-self: baseline;
}
.consent-notice.call-check .consent-notice__actions,
.consent-notice.call-limit .consent-notice__actions {
  padding-left: 8px; /* 12px column gap + 8 = 20px between the question and its answers */
}
.consent-notice .intel-bubble__glyph {
  align-self: start;
}
.consent-notice__text {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.86);
}
.consent-notice__actions {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  display: flex;
  gap: 14px;
  white-space: nowrap;
}
.consent-notice__btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  -webkit-app-region: no-drag;
  transition: color 120ms ease;
}
.consent-notice__btn--quiet { color: rgba(255, 255, 255, 0.5); }
.consent-notice__btn--quiet:hover { color: rgba(255, 255, 255, 0.8); }
.consent-notice__btn--primary { color: rgb(255, 200, 50); }
.consent-notice__btn--primary:hover { color: #FFD25E; }
.consent-notice__btn:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

.intel-bubble--anchor-above { transform-origin: bottom center; }

/* Mounted but not yet emerging (two frames for the OS window resize to paint,
   or the 200ms replacement stagger): invisible, but it holds its space. */
.intel-bubble.is-pending { opacity: 0; }

.intel-bubble.is-emerging {
  animation: intel-pop 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: clip-path, transform, opacity;
}
.intel-bubble--anchor-above.is-emerging { animation-name: intel-pop-above; }
.intel-bubble.is-emerging > :not(.intel-bubble__progress) {
  animation: intel-content-in 500ms cubic-bezier(0.33, 1, 0.68, 1) both;
  animation-delay: calc(140ms + var(--i, 0) * 40ms);
}

.intel-bubble--exiting {
  animation: intel-retract 340ms cubic-bezier(0.5, 0, 0.75, 0) forwards;
  pointer-events: none;
}
.intel-bubble--anchor-above.intel-bubble--exiting { animation-name: intel-retract-above; }
.intel-bubble--exiting > :not(.intel-bubble__progress) {
  animation: intel-content-out 160ms ease-in forwards;
}

/* Expanded stack eviction: the evicted card is not next to the bar, so it
   fades down instead of folding into it. */
.intel-evict .intel-bubble {
  animation: intel-evict 220ms ease-in forwards;
  pointer-events: none;
}

.intel-bubble__glyph {
  grid-column: 1;
  grid-row: 1;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(var(--intel-hue), 0.16);
  color: rgb(var(--intel-hue));
  box-shadow: inset 0 0 0 1px rgba(var(--intel-hue), 0.28);
}
.intel-bubble__glyph .intel-glyph { width: 13px; height: 13px; }

.intel-bubble__label {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 22px;
  color: rgb(var(--intel-hue));
}

.intel-bubble__grounded {
  margin-left: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}
.intel-bubble__grounded::before {
  content: "\00B7";
  margin-right: 8px;
}

.intel-bubble__close {
  grid-column: 3;
  grid-row: 1;
  width: 20px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.32);
  font-size: 15px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
}
.intel-bubble__close:hover { color: rgba(255, 255, 255, 0.7); }

.intel-bubble__body {
  grid-column: 2 / 4;
  margin: 6px 0 0;
}
.intel-bubble__body strong {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 600;
}

.intel-bubble__pair {
  grid-column: 2 / 4;
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 5px;
}
.intel-bubble__pair-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.42);
}
.intel-bubble__pair-label--now { color: rgb(var(--intel-hue)); }
.intel-bubble__pair-text {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.intel-bubble__pair-text--now { color: rgba(255, 255, 255, 0.9); }

.intel-bubble__rule {
  grid-column: 2 / 4;
  height: 1px;
  margin: 10px 0 9px;
  background: linear-gradient(90deg, rgba(var(--intel-hue), 0.35), rgba(var(--intel-hue), 0.08));
}

.intel-bubble__move-glyph {
  grid-column: 1;
  justify-self: center;
  align-self: start;
  margin-top: 1px;
  color: rgb(var(--intel-hue));
}
.intel-bubble__move-glyph .intel-glyph { width: 14px; height: 14px; display: block; }

.intel-bubble__move {
  grid-column: 2 / 4;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}
.intel-bubble__move-label {
  color: rgb(var(--intel-hue));
  font-weight: 600;
  margin-right: 6px;
}

.intel-bubble__hint {
  grid-column: 2 / 4;
  margin: 8px 0 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* The burning fuse: the TTL, full inner width, clipped by the card's radius. */
.intel-bubble__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--intel-hue), 0.15), rgba(var(--intel-hue), 0.85));
  animation: intel-timer 20s linear forwards;
}

/* 2-line clamps: the second net under the server caps. */
.intel-bubble__body,
.intel-bubble__move,
.intel-bubble__pair-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* The pill's seam flash: a 1px line in the arriving card's hue along the edge
   the card comes out of. --seam is set inline by Overlay. */
.control-bar::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: -1px;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--seam, 245, 158, 11), 0.95), transparent);
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
}
.control-bar.control-bar--emit-above::after {
  bottom: auto;
  top: -1px;
}
.control-bar--emit::after {
  animation: intel-seam 560ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* Collapsed-mode strip below (or above) the bar — centers the chit under the
   bar's seam. The child rule matters: renderIntelBubble wraps each bubble in
   a keyed div; without it the bubble's max-width has nothing to resolve
   against and centering silently breaks. */
.intel-strip {
  /* One grid cell: a displaced card folding away and its replacement popping
     out share the same spot under the pill (card-popout-motion §2.3). */
  display: grid;
  margin: 8px 0 0;
  -webkit-app-region: no-drag;
  /* Each strip fills one 252px slot of the grown window (main grows it by one
     slot per open strip, SPEC-ask-echo-pill-answer §2), so the pill sits at
     exactly (slots above) x 252 whatever the bubbles' heights. */
  flex: 1 1 0;
}

/* SPEC-ask-echo-pill-answer §0: main has moved the window up, so the pill must
   be drawn at the BOTTOM of the grown window, not right under the card — or it
   visibly jumps up. The spec's fix is `flex: 1 1 auto; align-content: end`;
   basis 0 (from .intel-strip) is kept so that with a strip on each side the
   two split the window evenly and the pill still lands on its own position. */
.intel-strip--above {
  margin: 0 0 8px;
  flex: 1 1 0;
  align-content: end;
}

.intel-strip > div {
  grid-area: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.intel-strip--above > div {
  align-items: flex-end;
}

/* Ask Echo answer on the collapsed pill (SPEC-ask-echo-pill-answer §4): the
   card shell in Echo gold, fixed width so it does not change between states. */
.intel-bubble.ask-answer {
  --intel-hue: 255, 200, 50;
  width: min(560px, calc(100% - 28px));
  cursor: default;
  user-select: text;
}
.intel-bubble.ask-answer--error { --intel-hue: 161, 161, 170; }

.ask-answer__question {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  min-width: 0;
  font-size: 12.5px;
  line-height: 22px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ask-answer__body {
  grid-column: 2 / 4;
  margin-top: 6px;
  padding-right: 6px;
  max-height: 180px; /* 9 lines: what keeps the bubble inside the 252 slot */
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.88);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
.ask-answer__body::-webkit-scrollbar { width: 3px; }
.ask-answer__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
}
.ask-answer__body--fade {
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 20px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 20px), transparent);
}

.ask-answer__thinking {
  grid-column: 2 / 4;
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  font-size: 13.5px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.55);
}
.ask-answer__dots {
  display: inline-flex;
  gap: 4px;
  margin-right: 8px;
}
.ask-answer__dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgb(255, 200, 50);
  animation: ask-dot 1200ms ease-in-out infinite;
}
.ask-answer__dots i:nth-child(2) { animation-delay: 150ms; }
.ask-answer__dots i:nth-child(3) { animation-delay: 300ms; }
@keyframes ask-dot {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

.ask-answer__error {
  grid-column: 2 / 4;
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.ask-answer__error-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.86);
}

/* Thinking <-> Answer: a 160ms cross-fade, no height tween, no re-pop (§8). */
.ask-answer__swap {
  animation: intel-fade-in 160ms linear both;
}
.intel-bubble.is-emerging > .ask-answer__swap {
  animation: intel-content-in 500ms cubic-bezier(0.33, 1, 0.68, 1) both;
  animation-delay: 140ms;
}

/* Expanded-mode stack: same centered-under-bar language. Full-width container
   must not eat clicks on the transcript beneath it. */
.intel-stack {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  -webkit-app-region: no-drag;
}

/* Same evict-wrapper treatment as the strip: full-width so the bubble's
   max-width has a real containing box to resolve against. */
.intel-stack > div {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.intel-stack .intel-bubble {
  pointer-events: auto;
  max-width: min(660px, calc(100% - 28px));
}

/* ── "Hide from screen share" pill toggle (docs/design/stealth-toggle-spec.md) ──
   Red means other people can see Echo. No red means they can't. */
.stealth-toggle {
  -webkit-app-region: no-drag;
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.stealth-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

.stealth-toggle--off {
  width: auto;
  padding: 0 10px 0 8px;
  background: rgba(255, 90, 90, 0.14);
  border-color: rgba(255, 90, 90, 0.45);
  color: rgba(255, 120, 120, 1);
}

.stealth-toggle--off:hover {
  background: rgba(255, 90, 90, 0.22);
  color: #ff8a8a;
}

.stealth-toggle:focus-visible {
  outline: 2px solid rgba(255, 200, 50, 0.75);
  outline-offset: 2px;
}

.stealth-toggle svg {
  flex: none;
  display: block;
}

.stealth-tip {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(18, 18, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 80ms ease, visibility 0s linear 80ms;
  z-index: 5;
}

/* Hover: 400ms delay, 120ms fade in. Keyboard focus / failure: immediate. */
.stealth-toggle:hover .stealth-tip {
  opacity: 1;
  visibility: visible;
  transition: opacity 120ms ease 400ms, visibility 0s linear 400ms;
}

.stealth-toggle:focus-visible .stealth-tip,
.stealth-tip--show {
  opacity: 1;
  visibility: visible;
  transition: opacity 120ms ease, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  /* Card v3: 160ms fades, no clip, no seam. The fuse keeps its real
     duration: it is information, not decoration. */
  .intel-bubble.is-emerging {
    animation: intel-fade-in 160ms linear both;
    will-change: auto;
  }
  .intel-bubble.is-emerging > * {
    animation: none;
  }
  .intel-bubble--exiting {
    animation: intel-fade-out 160ms linear forwards;
  }
  .intel-bubble--exiting > * {
    animation: none;
  }
  .intel-evict .intel-bubble {
    animation: intel-fade-out 160ms linear forwards;
  }
  .control-bar--emit::after {
    animation: none;
  }
  .ask-answer__dots i {
    animation: none;
    opacity: 0.6;
  }
  .intel-bubble.is-emerging > .ask-answer__swap {
    animation: none;
  }
  .stealth-toggle,
  .stealth-tip,
  .stealth-toggle:hover .stealth-tip,
  .stealth-toggle:focus-visible .stealth-tip,
  .stealth-tip--show {
    transition-duration: 0ms;
    transition-delay: 0ms;
  }
}

/* ---- history/history.css ---- */
/* ── Status / loading ── */
.h-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 40px 36px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

.h-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.55);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Call list ── */
.h-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.h-list-header {
  padding: 18px 24px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.h-list-items {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.h-list-items::-webkit-scrollbar { width: 4px; }
.h-list-items::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.h-list-item {
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.12s;
}
.h-list-item:hover { background: rgba(255, 255, 255, 0.04); }

.h-list-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.h-list-date { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.82); flex: 1; min-width: 0; }
.h-list-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.h-list-dur  { font-family: 'DM Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.3); }
.h-list-delete {
  background: none;
  border: none;
  color: rgba(255,255,255,0.0);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.h-list-item:hover .h-list-delete {
  color: rgba(255,255,255,0.4);
}
.h-list-delete:hover {
  color: rgba(255, 80, 80, 0.9) !important;
  background: rgba(255, 80, 80, 0.1);
}
.h-list-delete--confirm {
  color: rgba(255, 80, 80, 0.9) !important;
  background: rgba(255, 80, 80, 0.12) !important;
  border: 1px solid rgba(255, 80, 80, 0.25) !important;
  font-size: 11px;
  font-family: inherit;
  letter-spacing: 0.02em;
  padding: 2px 8px;
}
.h-list-delete--confirm:hover {
  background: rgba(255, 80, 80, 0.22) !important;
}
.h-list-deleting {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  padding: 2px 6px;
}
.h-list-preview {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ── List row states (in progress / generating) ── */
.h-list-dur--live {
  color: rgba(255, 200, 50, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Duplicated from App.css .rec-dot/rec-pulse — the history bundle is self-contained (spec F7) */
.h-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 200, 50, 0.95);
  animation: h-rec-pulse 1.4s ease-in-out infinite;
}
@keyframes h-rec-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.h-list-preview--pending {
  font-style: italic;
  color: rgba(255, 255, 255, 0.22);
}
.h-list-preview--generating {
  color: rgba(255, 200, 50, 0.5);
  animation: h-fade-pulse 1.8s ease-in-out infinite;
}
@keyframes h-fade-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.8; }
}

/* ── Detail view ── */
.h-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.h-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.h-detail-title-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.h-detail-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
}

.h-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-family: inherit;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.h-btn:hover { background: rgba(255,255,255,0.11); color: rgba(255,255,255,0.9); }
.h-btn--primary {
  background: rgba(255, 200, 50, 0.1);
  border-color: rgba(255, 200, 50, 0.25);
  color: rgba(255, 200, 50, 0.85);
}
.h-btn--primary:hover { background: rgba(255, 200, 50, 0.18); color: rgba(255, 200, 50, 1); }

/* ── Generating / interrupted strips (pinned below the detail header) ── */
.h-generating-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  flex-shrink: 0;
  font-size: 12px;
  color: rgba(255, 200, 50, 0.75);
  background: rgba(255, 200, 50, 0.05);
  border-bottom: 1px solid rgba(255, 200, 50, 0.12);
}
.h-generating-strip .h-spinner {
  border-top-color: rgba(255, 200, 50, 0.7);
}
.h-generating-hint {
  color: rgba(255, 255, 255, 0.3);
}
.h-giveup-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  flex-shrink: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Local notes shown while the recap generates ── */
.h-local-notes {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* Duplicated from App.css notepad rules, scoped — self-contained bundle (spec F7) */
.h-local-notes .notepad-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  animation: recap-in 0.2s ease-out both;
}
.h-local-notes .notepad-topic {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 200, 50, 0.6);
  margin: 0;
}
.h-local-notes .notepad-notes {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* ── Detail empty states ── */
.h-detail-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}
.h-detail-empty-sub {
  color: rgba(255, 255, 255, 0.22);
}

/* ── Recap swap-in fade ── */
.h-recap--in {
  animation: recap-in 0.2s ease-out both;
}
@keyframes recap-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Recap markdown content ── */
.h-recap {
  flex: 1;
  overflow-y: auto;
  padding: 28px 36px 48px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.h-recap > h2:first-child { margin-top: 0; }
.h-recap::-webkit-scrollbar { width: 4px; }
.h-recap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.h-recap h1 {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.h-recap h2 {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 200, 50, 0.7);
  margin-top: 28px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 200, 50, 0.12);
}
.h-recap h3 {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 16px;
  margin-bottom: 6px;
}
.h-recap p {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
}
.h-recap strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}
.h-recap em {
  color: rgba(255, 200, 50, 0.75);
  font-style: normal;
}
.h-recap ul, .h-recap ol {
  padding-left: 20px;
  margin-bottom: 10px;
}
.h-recap li {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 3px;
}
.h-recap li input[type="checkbox"] {
  margin-right: 7px;
  accent-color: rgba(255, 200, 50, 0.8);
}
.h-recap code {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 1px 5px;
  color: rgba(255, 200, 50, 0.8);
}
.h-recap pre {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  margin-bottom: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}
.h-recap hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 20px 0;
}
/* Transcript lines — tighter spacing than body paragraphs */
.h-recap p:has(.h-speaker) {
  margin-bottom: 2px;
  line-height: 1.55;
}

/* Transcript speaker labels */
.h-speaker {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 6px;
}
.h-speaker--them { color: rgba(110, 180, 255, 0.75); }
.h-speaker--me   { color: rgba(255, 200, 50, 0.75); }

.h-recap blockquote {
  border-left: 3px solid rgba(255, 200, 50, 0.3);
  padding-left: 14px;
  color: rgba(255,255,255,0.5);
  margin: 10px 0;
}

/* Action-item checkboxes ("[ ]" / "[x]" in the recap) */
.h-check {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: -1px;
  position: relative;
}
.h-check--done {
  background: rgba(255, 200, 50, 0.9);
  border-color: rgba(255, 200, 50, 0.9);
}
.h-check--done::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 0;
  width: 3px;
  height: 7px;
  border: solid #1a1a1a;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* ===== shared/scene.css ===== */
/* The backdrop Echo floats over: a generic video call with a shared dashboard.
   Deliberately muted and unbranded so the only thing with colour is Echo. */
.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(120% 90% at 80% 0%, #2a3442 0%, transparent 60%),
    linear-gradient(180deg, #1c2430 0%, #141a22 100%);
  --s: var(--eui-zoom, 1);
  font-family: -apple-system, 'Segoe UI', system-ui, sans-serif;
}
.callwin {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 6%;
  bottom: 6%;
  border-radius: calc(10px * var(--s));
  background: #202226;
  box-shadow: 0 calc(20px * var(--s)) calc(60px * var(--s)) rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-rows: calc(30px * var(--s)) 1fr calc(54px * var(--s));
  overflow: hidden;
}
.callwin__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(12px * var(--s));
  font-size: calc(11px * var(--s));
  color: rgba(255, 255, 255, 0.5);
  background: #1a1b1e;
}
.callwin__winbtns { display: flex; gap: calc(14px * var(--s)); }
.callwin__winbtns i { width: calc(9px * var(--s)); height: calc(1.5px * var(--s)); background: rgba(255,255,255,0.35); display: block; }
.callwin__main {
  display: grid;
  grid-template-columns: 1fr 24%;
  gap: calc(10px * var(--s));
  padding: calc(10px * var(--s));
  min-height: 0;
}
.share-screen {
  border-radius: calc(6px * var(--s));
  background: #e9ebee;
  color: #2b2f36;
  padding: calc(16px * var(--s)) calc(18px * var(--s));
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: calc(8px * var(--s));
  min-height: 0;
  overflow: hidden;
}
.share-screen__title { font-size: calc(14px * var(--s)); font-weight: 600; }
.share-screen__sub { font-size: calc(11px * var(--s)); color: #6b717b; }
.share-screen svg { width: 100%; height: 100%; display: block; }
.tiles { display: grid; grid-template-rows: 1fr 1fr; gap: calc(10px * var(--s)); min-height: 0; }
.tile {
  border-radius: calc(6px * var(--s));
  background: #2c2f35;
  display: grid;
  place-items: center;
  position: relative;
}
.tile__face {
  width: calc(44px * var(--s));
  height: calc(44px * var(--s));
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: calc(14px * var(--s));
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  background: #4a5260;
}
.tile--speaking { box-shadow: inset 0 0 0 calc(2px * var(--s)) rgba(140, 200, 140, 0.6); }
.tile__name {
  position: absolute;
  left: calc(8px * var(--s));
  bottom: calc(6px * var(--s));
  font-size: calc(10px * var(--s));
  color: rgba(255, 255, 255, 0.65);
}
.callwin__tools {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(12px * var(--s));
  background: #1a1b1e;
}
.callwin__tools i {
  width: calc(30px * var(--s));
  height: calc(30px * var(--s));
  border-radius: 50%;
  background: #33363c;
  display: block;
}
.callwin__tools i.leave { background: #b8473f; width: calc(44px * var(--s)); border-radius: calc(15px * var(--s)); }

/* ===== shared/compare.css ===== */
.compare {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  --x: 50%;
  touch-action: pan-y;
  user-select: none;
}
.compare-layer { position: absolute; inset: 0; }
.compare-you { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.compare-uiwrap { position: absolute; inset: 8% 0 auto 0; display: flex; justify-content: center; }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.compare-handle span::before,
.compare-handle span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -5px;
  border: 5px solid transparent;
}
.compare-handle span::before { left: 6px; border-right-color: #333; }
.compare-handle span::after { right: 6px; border-left-color: #333; }
.compare-label {
  position: absolute;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  font: 600 13px/1 -apple-system, 'Segoe UI', system-ui, sans-serif;
  color: #fff;
  background: rgba(10, 10, 12, 0.72);
  pointer-events: none;
}
.compare-label--you { left: 14px; }
.compare-label--them { right: 14px; }
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare:has(.compare-range:focus-visible) { outline: 2px solid rgb(255, 200, 50); outline-offset: 3px; }
@media (max-width: 640px) { .compare { aspect-ratio: 4 / 4.2; } }

/* ===== option-a/a.css ===== */
/* Option A: one call, start to finish. Dark, because the product is a dark
   glass overlay and this page shows it in its natural setting. */
:root {
  --bg: #0c0d10;
  --bg-2: #121318;
  --ink: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.09);
  --gold: rgb(255, 200, 50);
  --gold-ink: #1a1405;
  --display: 'Bricolage Grotesque Variable', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --body: -apple-system, 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ── Nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(12, 13, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 17px/1 'DM Mono', monospace;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.brand-mark {
  width: 26px;
  height: 18px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 36'%3E%3Cg fill='rgba(255,200,50,0.9)'%3E%3Crect x='0' y='13' width='7' height='10' rx='3.5'/%3E%3Crect x='11' y='10' width='7' height='16' rx='3.5'/%3E%3Crect x='22' y='8' width='7' height='20' rx='3.5'/%3E%3Crect x='33' y='10' width='7' height='16' rx='3.5'/%3E%3Crect x='44' y='13' width='7' height='10' rx='3.5'/%3E%3C/g%3E%3C/svg%3E");
}
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 200, 50, 0.35);
  color: var(--gold);
  background: rgba(255, 200, 50, 0.08);
  transition: background 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.nav-cta:hover { background: rgba(255, 200, 50, 0.16); border-color: rgba(255, 200, 50, 0.55); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--gold-ink);
  font: 650 16px/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 30px -12px rgba(255, 200, 50, 0.55);
  transition: transform 160ms var(--ease), background 160ms ease;
}
.btn-primary:hover { background: #ffd35e; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); }

/* ── Story: sticky stage + steps ── */
.story {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding: 0 clamp(20px, 4vw, 48px);
  max-width: 1480px;
  margin: 0 auto;
}
.story-stage {
  grid-column: 2;
  grid-row: 1 / 3;
  position: sticky;
  top: calc(var(--nav-h) + max(16px, (100vh - var(--nav-h) - var(--stage-h, 580px) - 40px) / 2));
  align-self: start;
  margin-top: calc(var(--nav-h) + 24px);
}
.stage {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  height: var(--stage-h, 580px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.stage-ui {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: calc(12px * var(--eui-zoom, 1));
}
#ui { transition: opacity 220ms ease, transform 320ms var(--ease); }
#ui.is-swapping { opacity: 0; transform: translateY(6px); }
#ui.is-hidden { opacity: 0; }
.stage-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--faint);
  text-align: right;
}

.hero { grid-column: 1; grid-row: 1; }
.steps { grid-column: 1; grid-row: 2; padding-bottom: 20vh; }
.step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  opacity: 0.32;
  transition: opacity 360ms ease;
}
.step.is-active { opacity: 1; }
.step h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -0.02em; }
.step p { color: var(--muted); max-width: 34ch; }
.step--hero { min-height: calc(100vh - var(--nav-h)); padding-top: var(--nav-h); opacity: 1; }
.step--hero h1 { font-size: clamp(40px, 4.3vw, 62px); line-height: 1.02; letter-spacing: -0.03em; }
.step--hero .lede { font-size: 19px; color: var(--muted); max-width: 30ch; margin-top: 8px; }
/* Hero copy, button and meta centred on one axis (desktop and phone). */
.step--hero { align-items: center; text-align: center; }
.step--hero .lede { margin-left: auto; margin-right: auto; max-width: 36ch; text-wrap: balance; }
.step--hero .get { align-items: center; }
.get { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.get-meta { font-size: 14px; color: var(--faint); }
kbd {
  font: 500 13px/1 'DM Mono', monospace;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-width: 2px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Screen share ── */
.share {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 48px) 40px;
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.share h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -0.025em; }
.share-copy p { color: var(--muted); margin-top: 14px; max-width: 34ch; }
.share-sub { font-size: 15px; color: var(--faint); }
.share-visual { box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.8); border-radius: 16px; }

/* ── After the walkthrough: depth and light ──
   The walkthrough sits on flat off-black; from here the page opens up. Light
   comes from two places only: a cool slate wash (the call behind Echo) and a
   warm gold glow (Echo itself), strongest behind the split view and again
   under the download button. Grain keeps the gradients from banding. */
.after {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(48% 34% at 72% 22%, rgba(255, 200, 50, 0.085), transparent 72%),
    radial-gradient(60% 40% at 12% 30%, rgba(74, 98, 134, 0.22), transparent 70%),
    radial-gradient(70% 34% at 50% 92%, rgba(255, 200, 50, 0.075), transparent 70%),
    radial-gradient(90% 50% at 85% 75%, rgba(52, 66, 90, 0.28), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #10131a 22%, #0e1016 70%, #0b0c10 100%);
}
/* Seam with the walkthrough: no visible edge. */
.after::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 160px;
  background: linear-gradient(180deg, var(--bg), transparent);
  z-index: -1;
}
/* A faint horizon line where the light begins. */
.after::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 50, 0.22), transparent);
}
.after-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.share-visual {
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 50px 100px -40px rgba(0, 0, 0, 0.9),
    0 0 120px -30px rgba(255, 200, 50, 0.18);
}

/* Reveal once, on arrival. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.share-visual.reveal { transform: translateY(24px) scale(0.985); }
.share-visual.reveal.is-in { transform: none; }

/* ── Final: the five bars play like live audio, then become the button ──
   Sequence (a.js, once, when the section is in view): bars move ~1.6s, settle,
   spread into one gold slab the exact size of the button, the label rises, the
   headline arrives above and the SHA-256 line under. Reduced motion or no JS:
   the end state, nothing moves. */
.final {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  min-height: min(92vh, 860px);
  padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 26px;
}
.final h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
.cta-wrap { position: relative; display: inline-flex; }
.final-btn { height: 60px; padding: 0 34px; font-size: 17px; border-radius: 14px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 18px 50px -14px rgba(255, 200, 50, 0.6); }
.final-btn span { display: inline-block; }
.morph { position: absolute; inset: 0; pointer-events: none; display: none; }
.morph i {
  position: absolute;
  display: block;
  background: var(--gold);
  border-radius: 999px;
  box-shadow: 0 0 24px -4px rgba(255, 200, 50, 0.55);
}
/* While the sequence runs, the real pieces wait (JS adds .is-seq). */
.final.is-seq .morph { display: block; }
.final.is-seq .final-btn,
.final.is-seq .final-h,
.final.is-seq .sha-wrap { opacity: 0; }
.final .final-btn, .final .final-h, .final .sha-wrap { transition: opacity 420ms var(--ease), transform 520ms var(--ease); }
.final.is-seq .final-h { transform: translateY(18px); }
.final.is-seq .sha-wrap { transform: translateY(-6px); }
.final.show-btn .final-btn { opacity: 1; }
.final .final-btn span { transition: opacity 260ms ease 40ms, transform 360ms var(--ease) 40ms; }
.final.is-seq:not(.show-btn) .final-btn span { opacity: 0; transform: translateY(8px); }
.final.show-h .final-h { opacity: 1; transform: none; }
.final.show-sha .sha-wrap { opacity: 1; transform: none; }
/* One ring of light leaves the button as it forms. */
.cta-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: 0 0 0 0 rgba(255, 200, 50, 0.55);
  opacity: 0;
  pointer-events: none;
}
.final.show-btn .cta-wrap::after { animation: cta-ring 900ms cubic-bezier(0.16, 1, 0.3, 1) 1; }
@keyframes cta-ring {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 200, 50, 0.55); }
  100% { opacity: 0; box-shadow: 0 0 0 26px rgba(255, 200, 50, 0); }
}
.sha {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  max-width: 100%;
  margin: -8px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--faint);
}
.sha-label { letter-spacing: 0.04em; }
/* The checksum sits behind a small "Verify download" toggle so it doesn't read as noise. */
/* min-height reserves the open height (toggle + checksum row), so opening it
   doesn't grow the centred section: the headline, button and the voice field
   behind the button stay exactly where they are. */
.sha-wrap { margin: -8px 0 0; text-align: center; min-height: 60px; }
.sha-wrap > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  color: var(--faint);
  transition: color 160ms ease;
}
.sha-wrap > summary::-webkit-details-marker { display: none; }
.sha-wrap > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}
.sha-wrap[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.sha-wrap > summary:hover { color: var(--muted); }
/* Open: the toggle reads as active, in white. */
.sha-wrap[open] > summary, .sha-wrap[open] > summary:hover { color: var(--ink); }
.sha-wrap .sha { margin: 10px 0 0; }

/* No-JS keeps the full value; it wraps rather than pushing the page sideways. */
.sha code { font-family: 'DM Mono', monospace; color: var(--muted); word-break: break-all; }
.sha code.is-short { word-break: normal; white-space: nowrap; cursor: help; }
.sha-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 24px;
  height: 24px;
  margin: 0 -4px;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--faint);
  font: inherit;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.sha-copy:hover { color: var(--ink); background: var(--line); }
.sha-copy:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sha-copy svg { width: 14px; height: 14px; flex: none; }
.sha-copy.is-done { color: var(--ink); }
.sha-status { font-size: 12px; }
.sha-status:empty { display: none; }
.phone-note { display: none; font-size: 14px; color: var(--muted); }
@media (pointer: coarse) and (max-width: 820px) { .phone-note { display: block; } }
/* Phones can't install Echo: no download buttons up top. The one at the end of the page stays. */
@media (pointer: coarse) and (max-width: 820px) { .nav-cta, .step--hero .get { display: none; } }

.foot {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px clamp(20px, 4vw, 48px) 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--faint);
}
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* ── Narrow: stage pinned under the nav, steps scroll beneath it ── */
@media (max-width: 980px) {
  .story { display: block; padding: 0; }
  .story-stage {
    position: sticky;
    top: var(--nav-h);
    z-index: 5;
    margin: 0;
    padding: 12px 16px 10px;
    background: var(--bg);
    box-shadow: 0 18px 24px -8px var(--bg);
  }
  .stage { border-radius: 14px; }
  .stage-note { text-align: left; font-size: 12px; margin-top: 6px; }
  .steps { padding: 0 20px 30vh; }
  .step { min-height: 50vh; justify-content: flex-start; padding-top: 24px; }
  .step--hero {
    min-height: 0;
    padding: calc(var(--nav-h) + 28px) 20px 36px;
    position: relative;
    z-index: 6;
    background: var(--bg);
    align-items: center;
    text-align: center;
  }
  .step--hero .lede { margin-left: auto; margin-right: auto; }
  .step--hero .get { align-items: center; }
  .share { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-cta { font-size: 13px; padding: 7px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .share-visual.reveal { opacity: 1; transform: none; transition: none; }
}

/* ══ The ending: the voice field ══════════════════════════════════════════ */
.end-field { display: none; }

/* End 1: the voice field. A band of thin gold bars runs through the button
   like the call's waveform. The morph sends one ripple out from the button;
   after that it only moves when you do (pointer, scroll) and settles to a
   still voiceprint. Drawn on canvas; never animates on its own. */
.final.end-1 .end-field {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.final.end-1::before {
  /* the floor the light falls on */
  content: '';
  position: absolute;
  z-index: -2;
  left: 50%;
  top: var(--band-y, 55%);
  width: min(1100px, 120vw);
  height: 340px;
  transform: translate(-50%, -30%);
  background: radial-gradient(50% 40% at 50% 40%, rgba(255, 200, 50, 0.12), transparent 70%);
  pointer-events: none;
}
.final.end-1 .final-h { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7); }


/* ── What they just said ──
   At each card step, the line from the other side that triggered the card,
   as a caption on the call. The card opens a beat later. */
.said {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 7%;
  width: min(86%, 640px);
  margin: 0;
  padding: 10px 14px 11px;
  border-radius: 12px;
  background: rgba(8, 9, 12, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 30px -10px rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 260ms ease, transform 360ms var(--ease);
  pointer-events: none;
}
.said.is-on { opacity: 1; transform: translate(-50%, 0); }
.said-who { display: block; margin-bottom: 2px; font-size: 12px; color: rgba(110, 180, 255, 0.9); }
.said mark { background: none; color: rgb(255, 200, 50); box-shadow: inset 0 -2px 0 rgba(255, 200, 50, 0.55); }
@media (max-width: 980px) {
  .said { bottom: 2%; width: 92%; font-size: 13px; padding: 8px 11px 9px; }
  .said-who { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .said { transition: none; }
}
