/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #faf8f4;
  color: #334155;
  line-height: 1.6;
  font-size: 16px;
}

/* Layout */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 16px 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.brand {
  display: inline-block;
  text-decoration: none;
}

.powered-by {
  font-size: 11px;
  color: #71717a;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.powered-by:hover {
  color: #a1a1aa;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex: 1;
  margin-left: 48px;
}

.nav a {
  color: #64748b;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #1e293b;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  white-space: nowrap;
}

.btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Hero Section */
.hero {
  padding: 60px 0 80px;
  background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #1e293b;
}

.hero > p {
  font-size: 20px;
  color: #475569;
  margin-bottom: 40px;
  max-width: 700px;
  line-height: 1.7;
}

.hero strong {
  color: #1e293b;
  font-weight: 600;
}

.cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 60px 0;
}

section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e293b;
}

section > p {
  font-size: 18px;
  color: #475569;
  margin-bottom: 48px;
  max-width: 800px;
}

section > h3 {
  margin-top: 48px;
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
}

/* Cards */
.cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.card:hover {
  background: #ffffff;
  border-color: #60a5fa;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1e293b;
}

.card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1e293b;
}

.card p {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
}

/* Contact Form */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input {
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}

input:focus {
  outline: none;
  border-color: #60a5fa;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

input::placeholder {
  color: #64748b;
}

.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.check span {
  flex: 0 1 auto;
  text-align: left;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  cursor: pointer;
  margin: 2px 0 0 0;
  padding: 0;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e2e8f0;
  margin-top: 60px;
  padding: 40px 0;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

/* Modal & Dialog */
dialog {
  border: none;
  border-radius: 20px;
  width: min(95%, 1000px);
  max-height: 90vh;
  background: #0f0f14;
  color: #e4e4e7;
  padding: 0;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal {
  padding: 40px;
  overflow-y: auto;
  max-height: 90vh;
}

.modal header {
  margin-bottom: 32px;
}

.modal h3 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.modal h4 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.modal > header > p {
  color: #a1a1aa;
  font-size: 16px;
}

/* Step System */
.steps {
  position: relative;
}

.step {
  animation: fadeIn 0.4s ease;
}

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

.step p {
  color: #a1a1aa;
  margin-bottom: 24px;
  font-size: 16px;
}

.step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  justify-content: center;
}

.step-dot {
  width: 40px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.step-dot.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Voice Recording */
.recorder {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  font-size: 13px;
  font-weight: 600;
}

.pill.recording {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.prompt-box {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.prompt-box h5 {
  font-size: 16px;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 8px;
}

.prompt-box p {
  color: #a1a1aa;
  font-size: 14px;
  margin: 0;
}

.transcript {
  min-height: 80px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #e4e4e7;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.transcript:empty::before {
  content: 'Your transcription will appear here...';
  color: #52525b;
  font-style: italic;
}

/* Results & Loading */
.result {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  white-space: pre-wrap;
  color: #e4e4e7;
  line-height: 1.8;
  font-size: 15px;
}

.muted {
  color: #475569;
  font-size: 14px;
  font-style: italic;
}

.hidden {
  display: none !important;
}

.success {
  color: #4ade80;
  font-weight: 600;
  padding: 16px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 12px;
  margin-top: 20px;
  text-align: center;
}

/* Company Insights Editable */
.company-insights-editable {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.insight-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.insight-field label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.insight-field input,
.insight-field select,
.insight-field textarea {
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
}

.insight-field input:focus,
.insight-field select:focus,
.insight-field textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.insight-field textarea {
  resize: vertical;
  min-height: 60px;
}

/* Editor */
.editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .editor {
    grid-template-columns: 1fr;
  }
}

textarea {
  width: 100%;
  min-height: 300px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #1e293b;
  font-size: 14px;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
  line-height: 1.6;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: #60a5fa;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.preview {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  overflow: auto;
  min-height: 300px;
  max-height: 500px;
  font-size: 15px;
  line-height: 1.7;
}

.preview h1,
.preview h2,
.preview h3 {
  color: #ffffff;
  margin-top: 24px;
  margin-bottom: 12px;
}

.preview h1 {
  font-size: 28px;
}

.preview h2 {
  font-size: 24px;
}

.preview h3 {
  font-size: 20px;
}

.preview p {
  margin-bottom: 16px;
  color: #d4d4d8;
}

.preview ul,
.preview ol {
  margin-left: 24px;
  margin-bottom: 16px;
  color: #d4d4d8;
}

.preview li {
  margin-bottom: 8px;
}

/* Modal Footer */
.modal-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header .wrap {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    margin-top: 16px;
    justify-content: center;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero > p {
    font-size: 18px;
  }

  section h2 {
    font-size: 28px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 24px;
  }
}

/* Inquiry Page Specific Styles */
.inquiry-page {
  padding: 40px 24px 80px;
  max-width: 900px;
}

.inquiry-header {
  text-align: center;
  margin-bottom: 10px;
}

.inquiry-header h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e293b;
}

.inquiry-header > p {
  font-size: 18px;
  color: #475569;
  margin-bottom: 16px;
}

.inquiry-step {
  margin-bottom: 32px;
  margin-top: 0;
}

.step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.step-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.optional {
  font-size: 16px;
  font-weight: 400;
  color: #94a3b8;
}

.btn-skip {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #a1a1aa;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-skip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
}

.btn.large {
  padding: 16px 32px;
  font-size: 17px;
  width: 100%;
  margin-top: 24px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #a1a1aa;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  border-color: rgba(255, 255, 255, 0.2);
}

.voice-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
  flex-wrap: wrap;
}

.live-transcript {
  min-height: 100px;
  padding: 20px;
  background: rgba(59, 130, 246, 0.05);
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  color: #e4e4e7;
  font-size: 16px;
  line-height: 1.8;
  margin: 20px 0;
  font-style: italic;
}

.live-transcript:empty::before {
  content: 'Your words will appear here in real-time as you speak...';
  color: #52525b;
}

.all-responses {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.response-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  line-height: 1.7;
}

.response-item:last-child {
  border-bottom: none;
}

.response-item strong {
  color: #60a5fa;
  display: block;
  margin-bottom: 4px;
}

.recommendation-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.recommendation-box h3 {
  font-size: 24px;
  color: #1e293b;
  margin-bottom: 20px;
}

.recommendation-box h4 {
  font-size: 20px;
  color: #2563eb;
  margin-bottom: 12px;
}

.recommendation-box p {
  color: #334155;
  line-height: 1.8;
  margin-bottom: 12px;
}

.report-summary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.report-summary h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 16px;
}

.summary-section {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  line-height: 1.7;
}

.summary-section:last-child {
  border-bottom: none;
}

.summary-section strong {
  color: #a1a1aa;
  display: block;
  margin-bottom: 8px;
}

.contact-section {
  margin-top: 32px;
}

.contact-section h3 {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 12px;
}

.contact-section > p {
  color: #a1a1aa;
  margin-bottom: 24px;
}

.simple-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.simple-form .check {
  margin: 0;
  padding: 0;
  gap: 12px;
  width: auto;
  max-width: 100%;
}

.simple-form input:not([type="checkbox"]) {
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.simple-form input:focus {
  outline: none;
  border-color: #60a5fa;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.simple-form input::placeholder {
  color: #64748b;
}

.button-group {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.button-group .btn {
  flex: 1;
}

@media (max-width: 768px) {
  .button-group {
    flex-direction: column;
  }
  
  .button-group .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .inquiry-header h1 {
    font-size: 32px;
  }
  
  .step-card {
    padding: 24px;
  }
  
  .step-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Transcript Editor Styles */
.edit-field {
  margin-bottom: 20px;
}

.edit-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #a1a1aa;
  margin-bottom: 8px;
}

.edit-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.2s ease;
}

.edit-field textarea::placeholder {
  color: #64748b;
}

.edit-field textarea:focus {
  outline: none;
  border-color: #60a5fa;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Report Section Styles */
.report-section {
  margin-bottom: 48px;
}

.report-loading {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
  border-radius: 12px;
  margin-bottom: 32px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.report-loading p {
  font-size: 16px;
  color: #475569;
  font-weight: 500;
}

.dispatch-report {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 32px;
}

.dispatch-report h1 {
  font-size: 28px;
  color: #0f172a;
  margin-bottom: 8px;
}

.dispatch-report h2 {
  font-size: 22px;
  color: #1e293b;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.dispatch-report h3 {
  font-size: 18px;
  color: #334155;
  margin-top: 24px;
  margin-bottom: 12px;
}

.dispatch-report p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 16px;
}

.dispatch-report ul {
  margin: 16px 0;
  padding-left: 24px;
}

.dispatch-report li {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 8px;
}

.dispatch-report strong {
  color: #1e293b;
  font-weight: 600;
}

/* Lead Capture Section */
.lead-capture-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(251, 191, 36, 0.08) 100%);
  border-radius: 12px;
  padding: 32px;
  margin-top: 32px;
}

.lead-capture-section h3 {
  font-size: 22px;
  color: #0f172a;
  margin-bottom: 8px;
}

.lead-capture-section > p {
  color: #475569;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Legacy report container */
.report-container {
  margin-bottom: 32px;
}

.report-display {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 32px;
  max-height: 600px;
  overflow-y: auto;
}

.report-display h1 {
  font-size: 28px;
  color: #0f172a;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  padding-bottom: 16px;
}

.report-display h2 {
  font-size: 22px;
  color: #2563eb;
  margin-top: 32px;
  margin-bottom: 16px;
}

.report-display h3 {
  font-size: 18px;
  color: #3b82f6;
  margin-top: 24px;
  margin-bottom: 12px;
}

.report-display p {
  color: #334155;
  line-height: 1.8;
  margin-bottom: 16px;
}

.report-display ul, .report-display ol {
  color: #334155;
  margin-left: 24px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.report-display li {
  margin-bottom: 8px;
}

.report-display strong {
  color: #0f172a;
}

.result-box {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
}

.result-box h4 {
  font-size: 18px;
  color: #60a5fa;
  margin-bottom: 16px;
}

.result-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-box li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  line-height: 1.7;
}

.result-box li:last-child {
  border-bottom: none;
}

.result-box li:before {
  content: "•";
  color: #60a5fa;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Legal Pages Styles */
.legal-page {
  max-width: 900px;
  padding: 60px 24px 80px;
  line-height: 1.8;
}

.legal-page h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.legal-page .updated {
  color: #71717a;
  font-size: 14px;
  margin-bottom: 48px;
}

.legal-page section {
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  margin-top: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.legal-page h3 {
  font-size: 20px;
  font-weight: 600;
  color: #e4e4e7;
  margin-bottom: 16px;
  margin-top: 32px;
}

.legal-page p {
  color: #d4d4d8;
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-page ul {
  margin-left: 24px;
  margin-bottom: 20px;
  color: #d4d4d8;
}

.legal-page ul li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-page a {
  color: #60a5fa;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.legal-page a:hover {
  color: #93c5fd;
}

.legal-page strong {
  color: #ffffff;
  font-weight: 600;
}

.site-footer a {
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #e4e4e7;
}

.powered-by-footer {
  font-size: 13px;
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 600;
}

.powered-by-footer:hover {
  color: #e4e4e7;
}

/* Logo Styles */
.brand .logo {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.brand .logo:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .brand .logo {
    height: 40px;
  }
}

/* AI Readiness Assessment Styles */
.readiness-section {
  margin: 32px 0;
  padding: 24px;
  background: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
}

.readiness-header {
  text-align: center;
  margin-bottom: 32px;
}

.readiness-score {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.readiness-label {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.readiness-label .emoji {
  font-size: 32px;
}

.readiness-description {
  color: #475569;
  font-size: 15px;
}

.readiness-dimensions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dimension-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dimension-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dimension-label {
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
}

.dimension-score {
  font-weight: 700;
  color: #60a5fa;
  font-size: 14px;
}

.dimension-bar-container {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.dimension-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.dimension-description {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

/* Rubric Display Styles */
.rubric-toggle-container {
  margin-top: 24px;
  text-align: center;
}

.rubric-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #60a5fa;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rubric-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.4);
}

.readiness-rubric {
  margin-top: 24px;
  padding: 24px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.rubric-intro {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.rubric-intro p {
  color: #475569;
  font-size: 14px;
  margin: 0;
}

.rubric-dimension {
  margin-bottom: 24px;
}

.rubric-dimension:last-child {
  margin-bottom: 0;
}

.rubric-dimension-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.rubric-levels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rubric-level {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.rubric-level.current-level {
  background: rgba(59, 130, 246, 0.10);
  border: 2px solid #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.level-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #e2e8f0;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  flex-shrink: 0;
}

.rubric-level.current-level .level-number {
  background: #3b82f6;
  color: #ffffff;
}

.level-description {
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}

.rubric-level.current-level .level-description {
  color: #0f172a;
  font-weight: 500;
}

/* Approved Responses Section in Step 4 */
.approved-responses-section {
  margin: 32px 0;
  padding: 24px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
}

.approved-responses-section h3 {
  color: #10b981;
  font-size: 20px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-subtitle {
  color: #a1a1aa;
  font-size: 14px;
  margin-bottom: 24px;
}

.approved-response-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.approved-response-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.response-label {
  font-size: 14px;
  font-weight: 600;
  color: #10b981;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.response-text {
  font-size: 16px;
  color: #e4e4e7;
  line-height: 1.6;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid rgba(16, 185, 129, 0.4);
}

/* Mobile optimizations for readiness meter */
@media (max-width: 768px) {
  .readiness-section {
    padding: 20px;
    margin: 24px 0;
  }

  .readiness-score {
    font-size: 36px;
  }

  .readiness-label {
    font-size: 20px;
  }

  .readiness-label .emoji {
    font-size: 28px;
  }

  .dimension-label,
  .dimension-score {
    font-size: 13px;
  }

  .dimension-description {
    font-size: 12px;
  }
}

/* Input Mode Toggle */
.input-mode-toggle {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  max-width: 300px;
}

.mode-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #a1a1aa;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mode-btn:hover {
  color: #e4e4e7;
}

.mode-btn.active {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

/* Questions Container */
.questions-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 24px 0;
}

.question-card {
  background: #fafafa;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s ease;
}

.question-card.active {
  border-color: #60a5fa;
  background: #f0f9ff;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.question-number {
  font-size: 12px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.question-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.question-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.question-input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  margin-top: 12px;
}

.question-input:focus {
  outline: none;
  border-color: #60a5fa;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.question-input::placeholder {
  color: #64748b;
}

.question-input:disabled {
  background: #f1f5f9;
  color: #334155;
  cursor: not-allowed;
  border-color: #cbd5e1;
}

.voice-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  font-size: 14px;
  color: #60a5fa;
}

.voice-status.recording {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.btn-voice-action {
  min-width: 120px;
}

.btn-skip {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #a1a1aa;
}

.btn-skip:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #e4e4e7;
}

/* Mobile optimizations for Step 2 */
@media (max-width: 768px) {
  .input-mode-toggle {
    max-width: 100%;
  }

  .mode-btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .question-card {
    padding: 16px;
  }

  .question-text {
    font-size: 15px;
  }

  .question-number {
    font-size: 11px;
  }

  .question-actions {
    flex-direction: column;
  }

  .btn-voice-action {
    width: 100%;
    min-width: auto;
  }
}

/* Step 3 Validation Section */
.readiness-update-notice {
  margin: 24px 0;
  padding: 16px;
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
}

.readiness-update-notice h4 {
  font-size: 18px;
  font-weight: 700;
  color: #e4e4e7;
  margin-bottom: 8px;
}

.readiness-update-notice p {
  color: #a1a1aa;
  font-size: 14px;
  margin: 0;
}

.validation-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.validation-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #e4e4e7;
  margin-bottom: 20px;
}

.validation-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.validation-actions .btn {
  min-width: 200px;
}

@media (max-width: 768px) {
  .validation-actions {
    flex-direction: column;
  }
  
  .validation-actions .btn {
    width: 100%;
    min-width: auto;
  }
}

/* Step 4 - Final Readiness & Engineer Review */
.readiness-final {
  margin: 24px 0 32px 0;
  padding: 20px;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.readiness-final h3 {
  font-size: 20px;
  font-weight: 700;
  color: #e4e4e7;
  margin-bottom: 16px;
}

.engineer-review-section {
  margin-top: 40px;
  padding: 24px;
  background: rgba(168, 85, 247, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.engineer-review-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.engineer-review-section p {
  color: #a1a1aa;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .readiness-final {
    padding: 16px;
  }
  
  .engineer-review-section {
    padding: 20px 16px;
  }
  
  .engineer-review-section h3 {
    font-size: 20px;
  }
}

/* Comprehensive Mobile Optimization */
@media (max-width: 768px) {
  /* Touch Targets - Minimum 44px */
  .btn {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn.large {
    min-height: 52px;
    font-size: 17px;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="url"],
  textarea,
  .question-input {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px 16px;
  }
  
  textarea,
  .question-input {
    min-height: 100px;
  }
  
  /* Step Cards */
  .step-card {
    padding: 20px 16px;
  }
  
  .step-card h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .step-card > p {
    font-size: 15px;
    margin-bottom: 20px;
  }
  
  /* Readiness Display */
  .readiness-section {
    margin: 20px 0;
  }
  
  .readiness-header {
    padding: 16px;
  }
  
  .readiness-score {
    font-size: 32px;
  }
  
  .readiness-label {
    font-size: 16px;
  }
  
  .dimension-row {
    padding: 12px;
  }
  
  .dimension-label {
    font-size: 13px;
  }
  
  .dimension-description {
    font-size: 12px;
  }
  
  /* Form Fields */
  .simple-form {
    gap: 16px;
  }
  
  .simple-form input:not([type="checkbox"]) {
    width: 100%;
  }
  
  .check {
    font-size: 15px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    align-items: flex-start;
    width: auto;
    max-width: 100%;
  }
  
  input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    margin-top: 2px;
  }
  
  /* Recommendation Box */
  .recommendation-box {
    padding: 16px;
    margin: 20px 0;
  }
  
  .recommendation-box h3,
  .recommendation-box h4 {
    font-size: 18px;
  }
  
  /* Report Display */
  .report-display {
    font-size: 15px;
    padding: 16px;
  }
  
  .report-display h1 {
    font-size: 24px;
  }
  
  .report-display h2 {
    font-size: 20px;
  }
  
  .report-display h3 {
    font-size: 18px;
  }
  
  /* Header Navigation */
  .nav {
    display: none; /* Hide nav on mobile, show only logo and CTA */
  }
  
  .site-header .wrap {
    gap: 16px;
  }
  
  /* Footer */
  .site-footer {
    padding: 32px 16px;
    font-size: 14px;
  }
  
  /* General Spacing */
  .wrap {
    padding: 0 16px;
  }
  
  /* Success Messages */
  .success {
    font-size: 15px;
    padding: 16px;
  }
  
  /* Edit Fields */
  .edit-field {
    margin-bottom: 16px;
  }
  
  .edit-field label {
    font-size: 14px;
    margin-bottom: 8px;
  }
}

/* Voice AI Call Interface */
.voice-preflight {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border-radius: 12px;
  margin: 24px 0;
}

.voice-preflight h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

/* Voice call compact layout */
.voice-call-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.timer-display {
  text-align: center;
  margin-bottom: 8px;
}

.timer-countdown {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
}

.voice-visualizer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 24px;
}

#voice-visualizer {
  display: block;
  margin: 0 auto;
}

.voice-status-text {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
}

.transcript-preview {
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 24px;
  min-height: 200px;
}

.transcript-preview h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.live-transcript {
  max-height: 300px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
}

.transcript-message {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
}

.transcript-message.user {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #3b82f6;
}

.transcript-message.ai {
  background: rgba(251, 191, 36, 0.1);
  border-left: 3px solid #f59e0b;
}

.transcript-message .speaker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.transcript-message.user .speaker {
  color: #3b82f6;
}

.transcript-message.ai .speaker {
  color: #f59e0b;
}

.voice-call-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .voice-call-header {
    flex-direction: column;
    text-align: center;
  }

  .timer-countdown {
    font-size: 28px;
  }

  .voice-call-actions {
    flex-direction: column;
    width: 100%;
  }

  .voice-call-actions .btn {
    width: 100%;
  }
}
