/* ─────────────────────────────────────────────────────────────────────────────
   BotAudit — Stylesheet
   ───────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0f172a;
  --navy-800:  #1e293b;
  --navy-700:  #334155;
  --navy-600:  #475569;
  --blue:      #3b82f6;
  --blue-dark: #2563eb;
  --blue-glow: rgba(59,130,246,0.15);
  --green:     #10b981;
  --amber:     #f59e0b;
  --red:       #ef4444;
  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-300:  #cbd5e1;
  --gray-500:  #64748b;
  --gray-700:  #374151;
  --text:      #0f172a;
  --text-muted:#64748b;
  --border:    #e2e8f0;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

.hidden { display: none !important; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-primary:disabled {
  background: var(--gray-300);
  border-color: var(--gray-300);
  color: var(--gray-500);
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-300);
}
.btn-ghost:hover { background: var(--gray-100); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* ── Resume Banner ───────────────────────────────────────────────────────────── */
.resume-banner {
  background: #1e3a5f;
  border-bottom: 1px solid #2563eb;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.resume-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.resume-info { color: var(--white); font-size: 14px; display: flex; align-items: center; gap: 12px; }
.resume-info strong { font-weight: 700; }
#resume-url-label { color: #93c5fd; font-size: 13px; }
.resume-actions { display: flex; gap: 8px; }
.resume-dismiss { color: #93c5fd; border-color: #2563eb; }
.resume-dismiss:hover { background: #1d4ed8; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.header {
  background: var(--navy);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 22px; height: 22px; color: var(--white); flex-shrink: 0; }
.logo-text { color: var(--white); font-weight: 700; font-size: 18px; letter-spacing: -.3px; }
.demo-badge {
  background: var(--amber);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: .05em;
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse at 78% 50%, rgba(37,99,235,.13) 0%, transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, #1a2d5a 100%);
  color: var(--white);
  padding: 80px 0 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}
.hero-title .accent { color: var(--blue); }
.hero-subtitle {
  font-size: 17px;
  color: #94a3b8;
  max-width: 480px;
  margin: 0 0 40px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero .btn-ghost { color: #94a3b8; border-color: #334155; }
.hero .btn-ghost:hover { background: #1e293b; color: var(--white); }
.hero-proof {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 13px;
}
.proof-icon { color: var(--green); margin-right: 6px; }

/* ── Hero visual / demo mockup ──────────────────────────────────────────────── */
.hero-visual {
  position: relative;
  height: 500px;
  flex-shrink: 0;
}

/* Demo visual inner wrapper — pushed to right edge */
.demo-visual-wrap {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 460px;
  overflow: visible;
}

/* Chat widget */
.demo-chat-widget {
  position: absolute;
  top: 36px;
  left: 160px;
  width: 300px;
  z-index: 1;
  background: #0f3460;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
  overflow: hidden;
  font-size: 13px;
  color: #1e293b;
}
.demo-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f3460;
  padding: 14px 16px;
  color: #fff;
}
.demo-chat-avatar {
  width: 34px;
  height: 34px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.demo-chat-meta { flex: 1; min-width: 0; }
.demo-chat-name { font-weight: 600; font-size: 14px; }
.demo-chat-online { font-size: 11px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.demo-online-dot { width: 6px; height: 6px; background: #34d399; border-radius: 50%; }
.demo-chat-dots { color: rgba(255,255,255,.4); font-size: 16px; letter-spacing: 3px; }
.demo-chat-body {
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-time-label { text-align: center; font-size: 11px; color: #94a3b8; }
.demo-msg { display: flex; }
.demo-msg-bot { justify-content: flex-start; }
.demo-msg-user { justify-content: flex-end; }
.demo-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.5;
}
.demo-msg-bot .demo-bubble {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  color: #334155;
}
.demo-msg-user .demo-bubble {
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.demo-chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.demo-input-placeholder { flex: 1; color: #94a3b8; font-size: 12px; }
.demo-send-btn {
  width: 28px;
  height: 28px;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* Floating cards */
.demo-float {
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  font-size: 12px;
  z-index: 2;
}
.demo-float-question {
  top: 90px;
  left: 0;
  z-index: 0;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 11px 15px;
  width: 210px;
}
.demo-float-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 5px;
}
.demo-float-qtext { color: #e2e8f0; font-size: 12px; font-style: italic; line-height: 1.4; }

.demo-float-results {
  bottom: 16px;
  left: 0;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 14px;
  width: 256px;
}
.demo-results-header {
  font-weight: 700;
  color: #f59e0b;
  font-size: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-result-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.demo-result-row:last-child { margin-bottom: 0; }
.demo-run-pill {
  font-size: 10px;
  font-weight: 700;
  background: #334155;
  color: #94a3b8;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.demo-run-text { flex: 1; color: #cbd5e1; font-size: 11px; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.demo-dot-ok   { background: #34d399; }
.demo-dot-warn { background: #f59e0b; }

.demo-float-screenshot {
  bottom: 275px;
  right: -40px;
  background: #0f172a;
  border: 1px solid #1e3a5f;
  color: #94a3b8;
  padding: 7px 12px;
  font-size: 12px;
  white-space: nowrap;
}

/* ── Section headings ───────────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 48px;
}

/* ── How It Works ───────────────────────────────────────────────────────────── */
.how-it-works { padding: 80px 0; background: var(--gray-50); }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-content p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.step-arrow { font-size: 24px; color: var(--gray-300); align-self: center; }

/* ── What We Test ───────────────────────────────────────────────────────────── */
.what-we-test { padding: 80px 0; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.category-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.category-icon { font-size: 32px; margin-bottom: 12px; }
.category-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.category-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ── Configure Section ──────────────────────────────────────────────────────── */
.configure-section { padding: 80px 0; background: var(--gray-50); }

.configure-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .configure-layout { grid-template-columns: 1fr; }
  .price-panel { order: -1; position: sticky; top: 60px; z-index: 50; }
  .price-card { padding: 14px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
  .price-card-title { font-size: 14px; margin-bottom: 10px; }
  .price-line-items { gap: 6px; margin-bottom: 10px; }
  .price-total { font-size: 15px !important; }
  .price-included { display: none; }
  .price-guarantee { font-size: 11px; margin-top: 10px; }
}

/* Form blocks */
.form-panel { display: flex; flex-direction: column; gap: 32px; }

.form-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.url-input-wrap {
  position: relative;
}
.url-input-wrap .form-input {
  padding-right: 180px;
}

.bot-check-status {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
}
.bot-check-status.checking { color: var(--text-muted); }
.bot-check-status.ok       { color: #16a34a; }
.bot-check-status.error    { color: var(--red); }
.bot-check-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.step-badge {
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color .15s;
  outline: none;
}
.form-input:focus { border-color: var(--blue); }
.form-input.error { border-color: var(--red); }

.form-hint { color: var(--text-muted); font-size: 13px; margin-top: 10px; line-height: 1.5; }
.form-error { color: var(--red); font-size: 13px; margin-top: 8px; line-height: 1.5; }

/* Before the conversation starts */
.prechat-section { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
.prechat-steps-wrap { margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 0; }
.prechat-subsection { padding: 12px 0; border-bottom: 1px solid var(--border); }
.prechat-subsection:last-child { border-bottom: none; padding-bottom: 0; }
.prechat-subsection:first-child { padding-top: 0; }
.prechat-check-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
.prechat-check-wrap input[type="checkbox"] { accent-color: var(--blue); width: 15px; height: 15px; flex-shrink: 0; }
.prechat-email-row { margin-top: 10px; }
.prechat-steps-body { margin-top: 4px; }
.prechat-steps-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.prechat-step-item { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; font-size: 13px; }
.prechat-step-num { font-size: 11px; font-weight: 700; color: var(--text-muted); background: var(--border); border-radius: 4px; padding: 2px 6px; flex-shrink: 0; }
.prechat-step-text { flex: 1; color: var(--text); }
.prechat-step-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.prechat-step-remove:hover { color: #ef4444; }
.prechat-add-row { display: flex; gap: 8px; }
.prechat-add-row .form-input { flex: 1; }

/* Radio cards */
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-card { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.radio-card input[type="radio"] { flex-shrink: 0; accent-color: var(--blue); align-self: center; }
.radio-card-inner {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  flex: 1;
  transition: border-color .15s, background .15s;
}
.radio-card:has(input:checked) .radio-card-inner {
  border-color: var(--blue);
  background: var(--blue-glow);
}
.radio-card-title { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.radio-card-desc { color: var(--text-muted); font-size: 13px; line-height: 1.5; }

/* Badges */
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
.badge-recommended { background: #dcfce7; color: #166534; }
.badge-free { background: #dbeafe; color: #1d4ed8; }
.optional-badge { font-size: 12px; font-weight: 400; color: var(--text-muted); margin-left: 4px; }

/* Upload */
.upload-section { margin-top: 16px; }
.upload-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.upload-tab {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.upload-tab + .upload-tab { border-left: 1px solid var(--border); }
.upload-tab.active { background: var(--blue); color: var(--white); font-weight: 600; }
.upload-tab:not(.active):hover { background: var(--gray-50); }
.upload-tab-panel.hidden { display: none; }
.upload-template-row { margin-top: 8px; }
.upload-template-link { font-size: 12px; color: var(--blue); text-decoration: none; font-weight: 500; }
.upload-template-link:hover { text-decoration: underline; }
.manual-entry-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.manual-entry-row .form-input { flex: 1; margin-bottom: 0; }
.manual-questions-list { display: flex; flex-direction: column; gap: 6px; }
.manual-q-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
}
.manual-q-num { font-size: 11px; font-weight: 700; color: var(--text-muted); min-width: 20px; flex-shrink: 0; }
.manual-q-text { flex: 1; }
.manual-q-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 0 2px; line-height: 1; }
.manual-q-remove:hover { color: var(--red); }
.manual-q-count { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.upload-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.upload-drop:hover, .upload-drop.drag-over { border-color: var(--blue); background: var(--blue-glow); }
.upload-icon { font-size: 32px; margin-bottom: 8px; }
.upload-text { font-size: 14px; color: var(--text-muted); }
.upload-link { color: var(--blue); font-weight: 600; text-decoration: none; }
.upload-hint { font-size: 12px; color: var(--gray-500); margin-top: 6px; }
.upload-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}
.upload-status.success { background: #dcfce7; color: #166534; }
.upload-status.error   { background: #fee2e2; color: #991b1b; }

/* Runs choice */
.runs-choice { display: flex; gap: 12px; margin-bottom: 16px; }
.runs-option { flex: 1; cursor: pointer; }
.runs-option input { display: none; }
.runs-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  transition: all .15s;
  position: relative;
}
.runs-option:has(input:checked) .runs-card { border-color: var(--blue); background: var(--blue-glow); }
.badge-float {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.badge-float-gold { background: #d97706; }
.runs-num { font-size: 32px; font-weight: 800; color: var(--navy); }
.runs-label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-top: 2px; }
.runs-price-tag { font-size: 12px; color: var(--blue); margin-top: 4px; }
.runs-savings { font-size: 11px; font-weight: 700; color: #16a34a; background: #dcfce7; border-radius: 4px; padding: 1px 5px; margin-left: 3px; }
.runs-why {
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #713f12;
}

/* Toggle */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.toggle-label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 500; }
.toggle-label input { display: none; }
.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--gray-300);
  border-radius: 100px;
  position: relative;
  flex-shrink: 0;
  transition: background .15s;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: var(--white);
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-label input:checked ~ .toggle-switch { background: var(--green); }
.toggle-label input:checked ~ .toggle-switch::after { transform: translateX(20px); }
.toggle-price { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

/* ── Price Panel ────────────────────────────────────────────────────────────── */
.price-panel { position: sticky; top: 80px; }
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.price-card-title { font-weight: 700; font-size: 17px; margin-bottom: 20px; }
.price-line-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.price-line { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-muted); }
.price-line span:last-child { font-weight: 600; color: var(--text); }
.price-divider { height: 1px; background: var(--border); margin: 4px 0; }
.price-total { font-size: 18px !important; font-weight: 800 !important; color: var(--text) !important; }
.price-total span { color: var(--text) !important; }
.price-included { margin-bottom: 20px; }
.price-included-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px; }
.price-included-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.price-included-list li { font-size: 13px; color: var(--text-muted); }
.price-included-list li.included-off { opacity: .4; text-decoration: line-through; }
.price-included-list li.included-off .included-icon { color: #ef4444; text-decoration: none; display: inline-block; }
.price-guarantee { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 14px; line-height: 1.5; }
/* ── Progress Section ───────────────────────────────────────────────────────── */
.progress-section { padding: 80px 0; background: var(--navy); color: var(--white); }
.progress-header { text-align: center; margin-bottom: 32px; }
.progress-header h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.progress-header p { color: #94a3b8; font-size: 16px; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid #334155;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}

.progress-bar-wrap {
  background: #1e293b;
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 100px;
  transition: width .4s ease;
}
.progress-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
}
.progress-stats #progress-count { text-align: left; }
.progress-stats #progress-eta   { text-align: center; }
.progress-stats #progress-pct   { text-align: right; }
#progress-eta {
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
}

/* Partial download bar */
.partial-download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #94a3b8;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.partial-download-bar .btn-ghost { color: #94a3b8; border-color: #334155; }
.partial-download-bar .btn-ghost:hover { background: #334155; color: var(--white); }

/* Progress body: 2-column */
.progress-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 860px) {
  .progress-body { grid-template-columns: 1fr; }
}

.live-feed {
  background: #1e293b;
  border-radius: var(--radius);
  overflow: hidden;
}
.live-feed-title {
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid #334155;
}
.live-feed-items {
  padding: 12px 0;
  min-height: 80px;
}
.feed-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px 14px;
  border-top: 1px solid #334155;
}
.feed-pagination .btn-ghost { color: #94a3b8; border-color: #334155; }
.feed-pagination .btn-ghost:hover:not(:disabled) { background: #334155; color: var(--white); }
.feed-pagination .btn-ghost:disabled { opacity: 0.35; cursor: not-allowed; }
.feed-page-info { color: #64748b; font-size: 12px; min-width: 80px; text-align: center; }
.feed-item {
  padding: 10px 20px;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid #0f172a;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.feed-waiting { color: #64748b; }
.feed-question { color: #e2e8f0; font-weight: 600; padding: 14px 20px 6px; border-bottom: none; }
.feed-question .cat-badge {
  display: inline-block;
  background: #334155;
  color: #94a3b8;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  font-weight: 600;
}
.feed-run { color: #94a3b8; padding-left: 36px; }
.feed-run.success { color: #34d399; }
.feed-run.error   { color: #f87171; }
.feed-run .response-text { color: #cbd5e1; font-size: 12px; margin-top: 3px; }
.feed-run .time-badge { color: #64748b; font-size: 11px; }
.feed-run .feed-thumb {
  display: block;
  margin-top: 8px;
  width: 100%;
  max-width: 220px;
  border-radius: 6px;
  border: 1px solid #334155;
  cursor: pointer;
  transition: opacity .15s;
}
.feed-run .feed-thumb:hover { opacity: .85; }
.feed-complete-msg { color: var(--green); font-weight: 700; font-size: 14px; padding: 16px 20px; }
.feed-error { color: var(--red); font-weight: 600; }

/* Preview panel */
.preview-panel {
  background: #1e293b;
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.preview-panel-title {
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid #334155;
}
.preview-url-bar {
  padding: 8px 14px;
  font-size: 11px;
  color: #64748b;
  background: #0f172a;
  word-break: break-all;
  border-bottom: 1px solid #334155;
}
.preview-iframe-wrap {
  position: relative;
  height: 200px;
  background: #0f172a;
  border-bottom: 1px solid #334155;
}
.preview-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  transform-origin: top left;
  transform: scale(0.6);
  width: 167%;
  height: 167%;
  pointer-events: none;
}
.preview-iframe-blocked {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  background: #0f172a;
  padding: 20px;
  line-height: 1.6;
}
.preview-screenshot-wrap { padding: 14px; }
/* When iframe is hidden, let screenshot area breathe */
#preview-iframe-wrap.hidden + .preview-screenshot-wrap { padding-top: 20px; }
.preview-screenshot-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin-bottom: 10px; }
.preview-screenshot-wrap img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #334155;
  cursor: pointer;
  transition: opacity .15s;
}
.preview-screenshot-wrap img:hover { opacity: .85; }
.preview-screenshot-empty { color: #475569; font-size: 12px; line-height: 1.6; }

/* ── Results Section ────────────────────────────────────────────────────────── */
.refund-notice { display: flex; gap: 16px; align-items: flex-start; background: #fff7ed; border: 1.5px solid #f97316; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.refund-notice-icon { font-size: 24px; flex-shrink: 0; line-height: 1; }
.refund-notice-body { font-size: 14px; line-height: 1.6; }
.refund-notice-body strong { font-size: 15px; display: block; margin-bottom: 6px; color: #9a3412; }
.refund-notice-body p { color: #7c2d12; margin: 0 0 8px; }
.refund-notice-body p:last-child { margin-bottom: 0; }
.refund-link { color: #ea580c; font-weight: 600; }
.refund-actions { margin-top: 14px; }
.results-section { padding: 80px 0; }
.results-header { text-align: center; margin-bottom: 40px; }
.results-header h2 { font-size: 36px; font-weight: 800; }
.results-timestamp { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.summary-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.summary-card-warn { border-color: #fde047; background: #fefce8; }
.summary-card-error { border-color: #fca5a5; background: #fef2f2; }
.summary-num { font-size: 40px; font-weight: 800; margin-bottom: 4px; }
.summary-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }

.results-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 48px; }

/* Result cards */
.results-list { display: flex; flex-direction: column; gap: 16px; }

.result-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.result-card.inconsistent { border-color: #fde047; }
.result-card.has-error    { border-color: #fca5a5; }

.result-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  background: var(--white);
  transition: background .1s;
}
.result-card-header:hover { background: var(--gray-50); }

.result-num {
  width: 32px;
  height: 32px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.result-question-wrap { flex: 1; min-width: 0; }
.result-category { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.result-question { font-size: 15px; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}
.status-pill.consistent   { background: #dcfce7; color: #166534; }
.status-pill.inconsistent { background: #fef9c3; color: #854d0e; }
.status-pill.error        { background: #fee2e2; color: #991b1b; }
.result-chevron { color: var(--gray-300); font-size: 18px; transition: transform .2s; }
.result-card.open .result-chevron { transform: rotate(90deg); }

.result-card-body { display: none; padding: 0 24px 24px; }
.result-card.open .result-card-body { display: block; }

.run-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.run-item {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.run-item-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.run-item-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.run-item-time { font-size: 12px; color: var(--text-muted); }
.run-response { font-size: 14px; line-height: 1.6; color: var(--text); }
.run-error    { font-size: 14px; color: var(--red); font-style: italic; }

.run-screenshot { margin-top: 12px; }
.run-screenshot img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: opacity .15s;
}
.run-screenshot img:hover { opacity: .9; }

.result-expectation {
  margin-top: 16px;
  padding: 12px 16px;
  background: #f0f9ff;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: #0369a1;
}
.result-expectation strong { display: block; margin-bottom: 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* ── Screenshot Lightbox ────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

/* ── Toast ──────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 200;
  box-shadow: var(--shadow-md);
  min-width: 300px;
  max-width: 520px;
}
.toast.error { background: #991b1b; }
.toast-close { background: none; border: none; color: var(--white); cursor: pointer; font-size: 16px; padding: 0; opacity: .7; }
.toast-close:hover { opacity: 1; }

.free-label { color: var(--green); font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer { background: var(--navy); color: #64748b; padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer .logo-text { color: #94a3b8; font-size: 16px; }
.footer-copy { font-size: 13px; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { height: 420px; }
  .hero-subtitle { max-width: none; }
}
@media (max-width: 768px) {
  .form-block { padding: 20px; }
  .url-input-wrap .form-input { padding-right: 140px; }
  .bot-check-status { font-size: 11px; }
  .progress-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .hero-visual { display: none; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .runs-choice { flex-direction: column; }
  .summary-cards { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .container { padding: 0 16px; }
  .toast { min-width: 0; max-width: calc(100% - 32px); }
}
@media (max-width: 480px) {
  .url-input-wrap .form-input { padding-right: 16px; }
  .bot-check-status { position: static; transform: none; margin-top: 6px; justify-content: flex-end; }
  .summary-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
