:root {
  --bg: #ffffff;
  --bg-soft: #fbfbfc;
  --bg-elevated: #eef0f4;
  --bg-card: #f7f8fa;
  --border: #e7e9ee;
  --border-strong: #d7dae2;
  --text: #0f172a;
  --text-dim: #64748b;
  --text-faint: #98a1b3;
  --accent: #e4123b;
  --accent-2: #b10e2c;
  --accent-soft: rgba(228, 18, 59, 0.10);
  --success: #16a34a;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(15, 23, 42, 0.07); }

.btn-text {
  background: transparent;
  color: var(--text-dim);
  font-weight: 500;
  padding: 8px 4px;
}
.btn-text:hover { color: var(--text); }

.btn-lg { padding: 16px 28px; font-size: 1rem; width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-group .btn-lg { width: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }
.nav-signin { color: var(--text-dim); }

/* ---------- Builder / Hero Wizard ---------- */
.builder {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 32px 80px;
  overflow: hidden;
}
.builder-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 700px;
  background: radial-gradient(circle, rgba(228, 18, 59, 0.08) 0%, rgba(177, 14, 44, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

@keyframes stageIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.stage-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.stage-sub { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 32px; }
.stage-note { color: var(--text-faint); font-size: 0.85rem; margin-top: 20px; }

/* Hero content */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-headline {
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #0f172a, #475569);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 32px;
}
.url-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.url-form.center { max-width: 480px; margin-left: auto; margin-right: auto; }
.url-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.url-input:focus { border-color: var(--accent); }
.url-input::placeholder { color: var(--text-faint); }

.hero-fineprint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  font-size: 0.85rem;
}
.hero-fineprint .fineprint-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
}
.hero-fineprint .check { color: var(--success); font-weight: 700; }

/* Voice demo panel */
.voice-demo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.voice-demo.pulse-attn { animation: attnPulse 1.2s ease 2; }
@keyframes attnPulse {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow); }
}
.voice-demo-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.voice-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.voice-avatar-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.5;
  animation: avatarPulse 2s ease-out infinite;
}
@keyframes avatarPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}
.voice-name { font-weight: 600; font-size: 0.95rem; }
.voice-status { font-size: 0.82rem; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.dot-online { width: 7px; height: 7px; border-radius: 50%; background: var(--success); display: inline-block; }
.dot-connecting { background: var(--accent); animation: dotBlink 1s infinite; }
.dot-error { background: var(--accent-2); }
@keyframes dotBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.voice-hangup-btn { margin-left: auto; }
.hidden { display: none !important; }

.voice-transcript {
  min-height: 180px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  padding-right: 4px;
}
.voice-hint { color: var(--text-faint); font-size: 0.88rem; padding: 40px 10px; text-align: center; }
.bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  max-width: 88%;
  animation: bubbleIn 0.25s ease;
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble-ai {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.bubble-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 16px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; border-bottom-left-radius: 4px; }
.bubble-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); animation: typingDot 1s infinite ease-in-out; }
.bubble-typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.voice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 42, 0.03);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

/* Checklist (creating step) */
.checklist { list-style: none; text-align: left; margin: 0 0 28px; max-width: 420px; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-faint);
  font-size: 0.98rem;
  transition: color 0.2s ease;
}
.checklist li .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.25s ease;
}
.checklist li.done { color: var(--text); }
.checklist li.done .check {
  background: var(--success);
  border-color: var(--success);
  color: #05060a;
}
.checklist li.done .check::after { content: '✓'; }

.progress-track { height: 6px; border-radius: 999px; background: var(--bg-elevated); overflow: hidden; max-width: 420px; margin: 0; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; transition: width 0.4s ease; }

/* Detected / confirm step */
.detected-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin: 16px 0 4px;
}
.detected-fact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}
.detected-fact .check { color: var(--success); font-weight: 700; }

/* Success stage */
.dashboard-mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 8px 0 32px;
  text-align: left;
  box-shadow: var(--shadow);
}
.dashboard-head { font-weight: 700; color: var(--text-dim); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.dashboard-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 1rem; border-top: 1px solid var(--border); }
.dashboard-row:first-of-type { border-top: none; }
.dashboard-row .check { color: var(--success); font-weight: 700; }

/* ---------- Generic sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 100px 32px; }
.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}
.section-title.center { text-align: center; }

.card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 0.95rem; }

.reason-list, .feature-list {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reason-list { text-align: center; align-items: center; }
.reason-list li, .feature-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.35rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.feature-list { margin: 0 0 36px; }
.reason-list .check, .feature-list .check { color: var(--success); font-size: 1.1rem; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-number, .stat-number-static {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.stat-label { color: var(--text-dim); font-size: 0.9rem; margin-top: 8px; }
.disclaimer { text-align: center; color: var(--text-faint); font-size: 0.8rem; margin-top: 40px; }

/* Live demo */
.live-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.live-demo-visual { position: relative; display: flex; align-items: center; justify-content: center; height: 280px; }
.pulse-ring {
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.4;
  animation: ringGrow 2.4s ease-out infinite;
}
.pulse-ring.delay { animation-delay: 1.2s; }
@keyframes ringGrow { 0% { transform: scale(0.6); opacity: 0.5; } 100% { transform: scale(2.2); opacity: 0; } }
.pulse-core {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  box-shadow: 0 20px 50px rgba(228, 18, 59, 0.3);
}

/* Integrations */
.integration-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}
.integration-icon {
  width: 68px; height: 68px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.integration-icon:hover { transform: translateY(-4px); border-color: var(--accent); }
.stage-note.center { text-align: center; }

/* Enterprise */
.enterprise-box {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
}
.enterprise-box .section-title { margin-bottom: 14px; }
.enterprise-box .stage-sub { margin-bottom: 28px; }
.enterprise-box .btn { width: auto; }

.footer-cta-section { text-align: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 32px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; gap: 24px; color: var(--text-dim); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-faint); font-size: 0.82rem; }

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Chat modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }

/* Voice call modal */
.voice-call-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  max-width: 380px;
}
.voice-call-card .voice-demo-head { flex-direction: column; margin-bottom: 0; }
.voice-call-card .voice-avatar { width: 72px; height: 72px; font-size: 2rem; }
.voice-call-card .voice-name { font-size: 1.05rem; margin-top: 4px; }
.voice-call-card .voice-status { justify-content: center; margin-top: 4px; }
.btn-hangup {
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
}
.btn-hangup:hover { background: #8a0a22; }

/* ---------- Builder (constructor) page ---------- */
.builder-topbar { border-bottom: 1px solid var(--border); }
.builder-topbar-inner { max-width: 1280px; margin: 0 auto; padding: 18px 32px; }

.builder-page-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  padding: 48px 32px 120px;
  align-items: start;
}

.builder-sidebar { position: sticky; top: 40px; }
.sidebar-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  padding-left: 4px;
}

.side-steps { list-style: none; display: flex; flex-direction: column; }
.side-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.side-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.side-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.side-step-label { font-weight: 600; font-size: 0.95rem; color: var(--text-faint); padding-top: 4px; transition: color 0.2s ease; }
.side-step.active .side-step-circle,
.side-step.done .side-step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.side-step.done .side-step-circle { font-size: 0; }
.side-step.done .side-step-circle::after { content: '✓'; font-size: 0.8rem; }
.side-step.active .side-step-label,
.side-step.done .side-step-label { color: var(--text); }

.sidebar-foot { margin-top: 8px; }
.sidebar-tagline { color: var(--text-faint); font-size: 0.82rem; margin-bottom: 14px; }
.sidebar-back { font-size: 0.88rem; color: var(--text-dim); }
.sidebar-back:hover { color: var(--text); }

/* Accumulating step cards */
.step-card {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 36px;
  margin-bottom: 24px;
}
.step-card.visible { display: block; animation: stageIn 0.45s ease; }

.card-title { display: flex; align-items: center; gap: 8px; }

.btn:disabled, .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}

.step-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.builder-url-inline { max-width: 460px; }

/* Form fields */
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 18px; }
.field-group { margin-bottom: 18px; max-width: 460px; }
.field-group.wide { max-width: none; }
.field-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.field-label .req { color: var(--accent); }
.field-input, .field-select, .field-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.field-input:focus, .field-select:focus, .field-textarea:focus { border-color: var(--accent); }
.field-textarea { resize: vertical; min-height: 70px; }
.field-phone-row { display: flex; gap: 10px; }
.field-phone-row .field-select { max-width: 110px; }

.check-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.92rem; }
.check-row input[type="checkbox"] { accent-color: var(--accent); width: 17px; height: 17px; cursor: pointer; }
.check-option-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.check-option-row { display: flex; align-items: center; gap: 10px; }
.check-option-row input[type="text"] {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-family: var(--font);
  font-size: 0.9rem;
}

/* Detected-from-website info box */
.info-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 18px 0;
  max-width: 640px;
}
.info-box-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }
.info-box-row { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; padding: 4px 0; color: var(--text); }

.confirm-actions { display: flex; gap: 12px; margin-top: 22px; }
.confirm-actions .btn { width: auto; }

/* Avatar / agent identity block */
.avatar-block { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 22px; }
.avatar-photo {
  width: 96px; height: 96px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  flex-shrink: 0;
}
.avatar-fields { flex: 1; min-width: 200px; }
.avatar-fields .field-group { max-width: none; margin-bottom: 14px; }

/* Voice options */
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0 4px; }
.voice-option {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease;
}
.voice-option.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.voice-option-head { display: flex; align-items: center; gap: 12px; }
.voice-play {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.8rem;
}
.voice-play.playing { background: var(--accent); }
.voice-option-name { font-weight: 700; font-size: 0.92rem; }
.voice-option-style { font-size: 0.8rem; color: var(--text-dim); }
.waveform { height: 2px; background-image: repeating-linear-gradient(to right, var(--border-strong) 0 3px, transparent 3px 6px); }
.voice-select-btn { align-self: flex-start; }

/* Voice Speed Control */
.voice-speed-card {
  margin-top: 18px;
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 16px);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.voice-speed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.voice-speed-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(2,132,199,0.25);
}
.voice-speed-slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.speed-label {
  font-size: 0.85rem;
  color: var(--text-dim, #64748b);
  font-weight: 600;
  user-select: none;
}
.speed-range-input {
  flex: 1;
  height: 6px;
  border-radius: 4px;
  accent-color: #0284c7;
  cursor: pointer;
}
.speed-presets-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.speed-preset-btn {
  border-radius: 999px !important;
  font-size: 0.8rem !important;
  padding: 5px 14px !important;
  border: 1px solid var(--border, #e2e8f0) !important;
  transition: all 0.2s ease !important;
}
.speed-preset-btn.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  font-weight: 700 !important;
}

/* Working hours */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 10px;
  margin: 16px 0 22px;
  width: 100%;
  box-sizing: border-box;
}
.day-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}
.day-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
  margin-bottom: 8px;
  width: 100%;
}
.day-card-head label { cursor: pointer; user-select: none; }
.day-card-head input[type="checkbox"] { accent-color: #e11d48; width: 16px; height: 16px; cursor: pointer; margin: 0; }
.time-inputs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}
.time-dash { color: #94a3b8; font-size: 0.75rem; line-height: 1; margin: 1px 0; }
.day-card input.day-input {
  width: 100%;
  max-width: 80px;
  box-sizing: border-box;
  padding: 6px 4px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
  outline: none;
  transition: all 0.15s ease;
  margin: 0;
}
.day-card input.day-input:focus { border-color: #e11d48; background: #ffffff; box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12); }
.day-card input.day-input:disabled { opacity: 0.45; background: #f1f5f9; cursor: not-allowed; }
.day-card.disabled { opacity: 0.5; background: #f8fafc; }

/* Subtabs in Card 1 */
.card-subtabs {
  display: flex;
  gap: 8px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 22px;
  padding-bottom: 2px;
}
.subtab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.subtab-btn:hover { color: var(--text); }
.subtab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.badge-optional {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.2);
  color: var(--accent);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 600;
}

/* Info Notice Box */
.info-notice {
  background: rgba(225, 29, 72, 0.05);
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.info-notice-icon { font-size: 1.25rem; flex-shrink: 0; }

/* Upload Grid & Cards */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.upload-card {
  border: 1.5px dashed var(--border-strong);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
.upload-card:hover, .upload-card.drag-over {
  border-color: var(--accent);
  background: rgba(225, 29, 72, 0.04);
}
.upload-card-icon { font-size: 2.2rem; margin-bottom: 8px; flex-shrink: 0; }
.upload-card-title { font-weight: 700; font-size: 0.94rem; color: var(--text-primary); margin-bottom: 6px; min-height: 24px; display: flex; align-items: center; justify-content: center; }
.upload-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.38;
  margin-bottom: 16px;
  min-height: 52px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.upload-card-btn {
  pointer-events: none;
  margin-top: auto;
}
.upload-file-input {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.file-list-preview {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}
.file-item-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-primary);
  text-align: left;
}
.file-item-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}
.file-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 4px;
  line-height: 1;
}

/* Sample file helper links */
.sample-link-wrapper {
  margin-top: 10px;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}
.sample-file-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
  display: inline-block;
  cursor: pointer;
  position: relative;
  z-index: 10;
  padding: 4px 6px;
}
.sample-file-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Discovery details editable card */
.discovery-details-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 20px 0;
}

/* Scheduling options cards */
.scheduling-options-grid.three-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}
.sched-card {
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  padding: 18px 16px;
  background: #ffffff;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}
.sched-card:hover {
  border-color: var(--accent);
  background: rgba(225, 29, 72, 0.02);
}
.sched-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
  background: rgba(225, 29, 72, 0.03);
}
.sched-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sched-card-head input[type="radio"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}
.sched-card-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 1;
}
.sched-icon { font-size: 1.25rem; flex-shrink: 0; }
.sched-title { font-weight: 700; font-size: 0.88rem; color: #0f172a; line-height: 1.25; }
.sched-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.38; margin: 0; }
.sched-subfield {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-strong);
  width: 100%;
  box-sizing: border-box;
}
#btnConnectGoogle {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  margin-top: 4px;
}
.google-status-badge {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 5px 10px;
  border-radius: 8px;
}

/* ---------- MCP Status Badges ---------- */
.mcp-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.mcp-status-badge.disconnected {
  color: #64748b;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.mcp-status-badge.connected {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.3);
}
.mcp-card.connected-card {
  border-color: #bbf7d0 !important;
  background: rgba(240, 253, 244, 0.4) !important;
}

/* ---------- ROI Slogan Banner ---------- */
.roi-banner {
  max-width: 820px;
  margin: 44px auto 0;
  padding: 36px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  border: 1.5px solid rgba(225, 29, 72, 0.35);
  position: relative;
  overflow: hidden;
}
.roi-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.roi-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(225, 29, 72, 0.2);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #fb7185;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.roi-slogan {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.roi-sub {
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .live-demo-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 860px) {
  .builder-page-shell { grid-template-columns: 1fr; gap: 32px; }
  .builder-sidebar { position: static; top: auto; }
  .side-steps { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .side-step { flex-direction: column; align-items: flex-start; border-bottom: none; margin: 0; padding: 0; flex: 1 1 120px; }
}
@media (max-width: 560px) {
  .section { padding: 64px 20px; }
  .builder { padding: 40px 20px 60px; }
  .builder-page-shell { padding: 32px 20px 80px; }
  .btn-group { flex-direction: column; }
  .btn-group .btn-lg { width: 100%; }
}
