/* RenewSmart insurance tips bot, mobile-first. Tokens match the marketing site. */

:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f7f2;
  --text-dim: #c6c6bc;
  --text-faint: #8b8b82;
  --accent: #c8ff00;
  --accent-2: #e8ff6a;
  --accent-soft: rgba(200, 255, 0, 0.14);
  --accent-glow: rgba(200, 255, 0, 0.45);
  --user: #c8ff00;
  --user-text: #111111;
  --warn: #ffd84d;
  --warn-soft: rgba(255, 216, 77, 0.12);
  --ok: #c8ff00;
  --ok-soft: rgba(200, 255, 0, 0.12);
  --pink: #ff3cac;
  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Archivo Black", "Space Grotesk", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 16px;
  --radius-sm: 12px;
  --header-h: 60px;
  --gutter: 16px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --composer-bg: rgba(8, 9, 12, 0.92);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { background: var(--bg); }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(76, 141, 255, 0.12), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 80;
  background: var(--accent); color: #071018; font-weight: 600;
  padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.bot-app {
  min-height: 100%;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(12, 14, 19, 0.65), rgba(8, 9, 12, 0.2));
  border-inline: 1px solid var(--line);
}

.bot-header {
  position: sticky; top: 0; z-index: 40;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
  padding: 8px var(--gutter);
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  background: rgba(8, 9, 12, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; min-width: 0;
}
.logo-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.logo-name {
  font-family: "Archivo Black", var(--font-display), sans-serif;
  font-weight: 400;
  font-size: 1.08rem; letter-spacing: -0.04em; line-height: 1.1;
}
.logo-tag {
  font-size: 0.7rem; color: var(--text-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.wordmark {
  font-family: "Archivo Black", var(--font-display, sans-serif), sans-serif;
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}
.wm-a { color: #f4f4ef; }
.wm-b { color: var(--lime, #C8FF00); }
.avatar svg { display: block; width: 28px; height: 28px; }


.header-meta { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.progress {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-faint); letter-spacing: 0.04em;
}

.icon-btn, .btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: inherit; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.icon-btn {
  min-height: 40px; min-width: 40px; padding: 0 10px;
  border-radius: 10px; background: var(--surface); color: var(--text-dim);
  border: 1px solid var(--line-strong); font-size: 0.8rem; font-weight: 600;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn[hidden] { display: none !important; }

.transcript {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 18px var(--gutter) 16px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}

.row { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.row-bot { justify-content: flex-start; }
.row-user { justify-content: flex-end; }

.avatar { width: 28px; height: 28px; border-radius: 8px; flex: none; margin-bottom: 2px; }

.bubble {
  max-width: min(92%, 540px);
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.98rem;
}
.bubble p { margin: 0 0 0.6em; }
.bubble p:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: 0.3em 0 0.2em; padding-left: 1.15em; }
.bubble li { margin: 0.2em 0; }
.bubble strong { font-weight: 650; }
.bubble a { color: var(--accent-2); text-underline-offset: 3px; }
.bubble-bot {
  background: var(--surface); border: 1px solid var(--line);
  border-bottom-left-radius: 6px; color: var(--text);
}
.bubble-user {
  background: var(--user); color: var(--user-text);
  border-bottom-right-radius: 6px; font-weight: 600;
}
.bubble-wide { max-width: 100%; width: 100%; padding: 0; background: none; border: 0; }

.typing { display: inline-flex; gap: 5px; padding: 12px 16px; align-items: center; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint);
  animation: bounce 1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.results {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.results-head {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--accent-soft), transparent 80%), var(--surface-2);
}
.eyebrow {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-2); margin: 0 0 6px;
}
.results-head h2 {
  font-family: var(--font-display); font-size: 1.2rem;
  letter-spacing: -0.03em; margin: 0 0 8px; line-height: 1.2;
}
.summary { margin: 0; color: var(--text-dim); font-size: 0.88rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  font-size: 0.72rem; padding: 4px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid rgba(76, 141, 255, 0.25);
}

.tip-list { list-style: none; margin: 0; padding: 4px 0; }
.tip-list > li { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.tip-num {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-2); margin: 0 0 4px;
}
.tip-list h3 { margin: 0 0 6px; font-size: 1rem; letter-spacing: -0.02em; line-height: 1.3; }
.tip-body { margin: 0 0 8px; color: var(--text); font-size: 0.94rem; }
.tip-why { margin: 0 0 6px; color: var(--text-dim); font-size: 0.88rem; }
.tip-why span {
  color: var(--text-faint); font-weight: 650; font-size: 0.75rem;
  letter-spacing: 0.04em; text-transform: uppercase; display: block; margin-bottom: 2px;
}
.tip-source { margin: 0; color: var(--text-faint); font-size: 0.75rem; }

.panel {
  margin: 12px 16px; padding: 12px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.panel-truth { background: var(--ok-soft); border-color: rgba(125, 206, 160, 0.28); }
.panel-warn { background: var(--warn-soft); border-color: rgba(232, 184, 109, 0.28); margin-bottom: 4px; }
.panel h3 { margin: 0 0 6px; font-size: 0.95rem; }
.panel p, .panel li { font-size: 0.88rem; color: var(--text); }
.panel ul { margin: 0.3em 0 0; padding-left: 1.1em; }

.cta-block { padding: 8px 16px 18px; }
.btn-primary {
  background: var(--accent); color: #071018; font-weight: 700;
  border-radius: 12px; min-height: 48px; padding: 10px 16px;
  width: 100%; font-size: 1rem;
  box-shadow: 0 0 0 1px rgba(76, 141, 255, 0.4), 0 8px 24px var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.05); color: #071018; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 12px;
  min-height: 44px; padding: 8px 14px; width: 100%;
  font-weight: 600; margin-top: 8px;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.price-note { text-align: center; margin: 8px 0 0; color: var(--text-faint); font-size: 0.8rem; }

.affiliates { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.affiliates p { margin: 0 0 8px; color: var(--text-faint); font-size: 0.78rem; }
.affiliates ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.affiliates a { color: var(--accent-2); text-underline-offset: 3px; font-size: 0.88rem; }
.affiliates a:hover { color: #fff; }

.step-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  width: 100%;
}

.step-visual {
  margin: 10px 0 14px;
  padding: 0;
  border-radius: var(--radius-sm, 12px);
  overflow: hidden;
  background: #050505;
  border: 1px solid var(--line, rgba(255,255,255,0.08));
}
.step-visual img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto;
  background: #050505;
  max-height: 240px;
  object-fit: contain;
}

.step-card {
  padding: 10px 12px 12px;
}
.step-visual {
  margin: 8px 0 10px;
}
.step-flag {
  margin: 6px 0 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--warn, #ffd84d);
}
.step-test {
  margin: 8px 0 0;
  padding: 8px 10px;
  font-size: 0.88rem;
}
.why-toggle {
  margin: 8px 0 0;
  border-radius: var(--radius-sm, 12px);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  background: var(--surface-2, #1a1a1a);
  padding: 0 12px;
  font-size: 0.88rem;
}
.why-toggle summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2, #e8ff6a);
  padding: 8px 0;
  list-style: none;
}
.why-toggle summary::-webkit-details-marker { display: none; }
.why-toggle p { margin: 0 0 8px; color: var(--text-dim, #c6c6bc); }
.tip-list .why-toggle { margin-top: 8px; }
@media (min-width: 800px) {
  .step-visual img { max-width: 320px; max-height: 300px; }
}


.step-card h3 { margin: 0 0 6px; font-size: 1.05rem; letter-spacing: -0.02em; }
.step-kicker {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-2); margin: 0 0 6px;
}
.step-test {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(76, 141, 255, 0.22);
  font-size: 0.9rem;
}
.step-test strong { display: block; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 4px; }

.composer {
  flex: none;
  position: relative;
  z-index: 20;
  padding: 8px var(--gutter) 6px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--composer-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.quick-replies:empty { display: none; margin: 0; }
.reply {
  appearance: none;
  border: 1px solid rgba(76, 141, 255, 0.35);
  background: var(--accent-soft); color: var(--text);
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  min-height: 40px; padding: 6px 12px; border-radius: 999px;
  cursor: pointer; text-align: left;
}
.reply:hover, .reply:focus-visible {
  background: rgba(76, 141, 255, 0.26); border-color: var(--accent);
}

.composer-row { display: flex; gap: 8px; align-items: center; }
.composer input[type="text"] {
  flex: 1; min-width: 0; min-height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); font-family: inherit; font-size: 1rem; padding: 8px 12px;
}
.composer input::placeholder { color: var(--text-faint); }
.send-btn {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: #071018; border: 0;
  cursor: pointer; font-weight: 800; font-size: 1.1rem;
}
.send-btn:hover { filter: brightness(1.05); }
.fine-print { margin: 6px 2px 2px; color: var(--text-faint); font-size: 0.7rem; line-height: 1.4; }

.bot-footer {
  padding: 4px var(--gutter) 14px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  color: var(--text-faint); font-size: 0.7rem; line-height: 1.45;
}
.site-footer p { margin: 0; }

@media (min-width: 720px) {
  body { font-size: 17px; }
  .bot-app {
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    min-height: 0;
    margin: 12px auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
  }
  :root { --gutter: 22px; --header-h: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .typing span { animation: none; opacity: 0.7; }
  .transcript { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* Preview lock and PWA install */
.preview-block { padding: 16px 16px 8px; }
.lock-card {
  margin: 8px 16px 16px;
  padding: 16px 16px 18px;
  scroll-margin-bottom: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface-2);
}
.lock-card h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.lock-card .btn-primary { margin-top: 12px; width: 100%; text-decoration: none; }
.lock-card ul { margin: 8px 0 0; padding-left: 1.15em; }
.lock-card li { margin: 0.25em 0; font-size: 0.9rem; }

.install-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.install-btn:hover { background: var(--surface-2); }
.install-btn[hidden] { display: none !important; }

.install-sheet {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 60;
  max-width: 420px;
  margin: 0 auto;
  left: 16px;
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.install-sheet[hidden] { display: none !important; }
.install-sheet h3 { margin: 0 0 8px; font-size: 1.05rem; }
.install-sheet p { margin: 0 0 8px; color: var(--text-dim); font-size: 0.9rem; }
.install-sheet ol { margin: 0 0 12px; padding-left: 1.2em; color: var(--text); font-size: 0.9rem; }
.install-sheet .btn { width: 100%; margin-top: 6px; }

@media (display-mode: standalone), (display-mode: fullscreen) {
  body.standalone-like .site-nav,
  html.standalone-preview .site-nav,
  html.standalone-preview .nav-toggle,
  html.standalone-preview .header-cta { display: none; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.price-chip {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(200, 255, 0, 0.12);
  border: 1px solid rgba(200, 255, 0, 0.28);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
}

/* Licence key + welcome back */
.licence-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.licence-box h3 { margin: 0 0 8px; font-size: 0.98rem; }
.licence-lead, .licence-box label.licence-lead {
  display: block;
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.licence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.licence-row input {
  flex: 1 1 12rem;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 0 12px;
}
.licence-row .btn { flex: 0 0 auto; margin-top: 0; width: auto; min-width: 9rem; }
.licence-status { margin: 8px 0 0; font-size: 0.85rem; color: var(--text-dim); }
.licence-status.is-ok { color: var(--lime); }
.licence-status.is-error { color: #ffb4b4; }
.save-note { margin: 10px 0 0; font-size: 0.8rem; color: var(--text-faint); }

.welcome-card {
  margin: 8px 0 0;
  padding: 16px 16px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface-2);
}
.welcome-card .eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  padding-right: 0;
}
.welcome-card h2 {
  font-family: var(--font-display, inherit);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.2;
}
.progress-label { margin: 0 0 8px; font-weight: 600; font-size: 0.92rem; }
.progress-track {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--lime, #C8FF00);
  border-radius: 999px;
  width: 0;
}
.savings-so-far { margin: 12px 0 0; color: var(--text-dim); font-size: 0.95rem; }
.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.welcome-actions .btn { margin: 0; width: auto; min-width: 8.5rem; }
.text-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--text-faint);
  font-family: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px 0 0;
}
.text-btn:hover { color: var(--text); }

/* Mode picker, affiliation, Compare the Market follow-along */
.mode-picker-actions {
  flex-direction: column;
  align-items: stretch;
}
.mode-picker-actions .btn {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 56px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  text-align: left;
  padding: 10px 14px;
  white-space: normal;
}
.mode-picker-hint {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-dim, #c6c6bc);
}
.step-affiliate {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--text-faint, #8b8b82);
}

.ctm-tip-list {
  margin: 0 0 4px;
  padding-left: 1.15em;
  color: var(--text-dim, #c6c6bc);
  font-size: 0.92rem;
}
.ctm-tip-list li { margin: 0.45em 0; }
.ctm-tip-actions {
  flex-direction: column;
  align-items: stretch;
}
.ctm-tip-actions .btn,
.ctm-tip-actions a.btn {
  width: 100%;
  min-height: 44px;
}



.open-beside-btn[hidden],
#open-beside-btn[hidden],
#open-beside-header[hidden],
#open-beside-bar[hidden] {
  display: none !important;
}
.open-beside-btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--lime, #c8ff00);
  color: #111;
}
.open-beside-btn:hover { filter: brightness(1.06); color: #111; }
.header-meta .open-beside-btn,
.header-tools .open-beside-btn {
  min-height: 36px;
}
.open-beside-note {
  margin: 0;
  padding: 8px var(--gutter);
  background: var(--accent-soft, rgba(200,255,0,0.1));
  color: var(--text);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line);
}
.open-beside-note[hidden] { display: none !important; }
.open-beside-sites {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.open-beside-sites .btn { min-height: 40px; padding: 8px 14px; font-size: 0.88rem; }
.mode-picker-sites { display: grid; gap: 10px; }
.walk-start-card .open-beside-btn { margin-top: 8px; }

.ctm-follow[hidden] { display: none !important; }
.ctm-follow {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
}
.ctm-follow-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(8, 9, 12, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line, rgba(255,255,255,0.08));
}
.ctm-follow-progress {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-dim, #c6c6bc);
}
.open-ctm-bar {
  flex: none;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.ctm-follow-stage {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px 12px;
  -webkit-overflow-scrolling: touch;
}
.ctm-follow-stage .step-card,
.ctm-follow-stage .ctm-tip-card {
  width: 100%;
  max-width: none;
  margin: 0;
}
.ctm-follow-nav {
  position: sticky;
  bottom: 0;
  z-index: 6;
  flex: none;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 9, 12, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line, rgba(255,255,255,0.08));
}
.ctm-follow-nav .btn,
.ctm-follow-nav a.btn {
  flex: 1;
  min-height: 44px;
  margin: 0;
}
.ctm-follow-nav .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

body.is-ctm-follow .bot-app,
.bot-app.is-ctm-follow {
  max-width: none;
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
}
body.is-ctm-follow .bot-header {
  display: none;
}
body.is-ctm-follow .composer {
  padding-top: 6px;
}
body.is-ctm-follow .quick-replies { display: none; }
body.is-ctm-follow .fine-print {
  display: none;
}

/* Narrow phone (~360) and short half-screens: keep the step card as the main thing */
@media (max-width: 400px), (max-height: 700px) {
  .ctm-follow-stage .step-visual {
    margin: 6px 0 8px;
  }
  .ctm-follow-stage .step-visual img {
    max-width: 200px;
    max-height: 150px;
  }
  .ctm-follow-stage .step-card h3 { font-size: 1rem; margin-bottom: 4px; }
  .ctm-follow-stage .step-card p { font-size: 0.92rem; }
  .ctm-follow-bar { padding: 6px 10px; }
  .ctm-follow-stage { padding: 8px 10px 10px; }
}

/* Half a laptop screen (~640 wide) */
@media (min-width: 500px) and (max-width: 700px) {
  .bot-app.is-ctm-follow {
    max-width: none;
  }
  .ctm-follow-stage .step-visual img {
    max-width: 240px;
    max-height: 180px;
  }
  .ctm-follow-stage .step-card {
    padding: 14px 16px 16px;
  }
}

/* display:flex on .transcript would otherwise ignore the hidden attribute */
.transcript[hidden],
body.is-ctm-follow .transcript {
  display: none !important;
}

.ctm-follow-progress {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mode-picker-actions .btn-primary .mode-picker-hint {
  color: #111111;
  opacity: 0.72;
}

.ctm-follow-bar .btn,
.ctm-follow-bar .open-ctm-bar {
  width: auto;
  margin-top: 0;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 0.78rem;
  flex: 0 0 auto;
}


.price-stuck-card .price-stuck-fair {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(76, 141, 255, 0.22);
  font-size: 0.9rem;
}
.price-stuck-card .price-stuck-list {
  margin: 8px 0 0;
  padding-left: 1.15em;
}
.price-stuck-card .price-stuck-list li {
  margin: 0.4em 0;
  font-size: 0.92rem;
}

a.btn.is-opening-soon,
button.is-opening-soon {
  pointer-events: none;
  cursor: default;
  opacity: 0.85;
}
