:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #4a90e2;
  --blue-600: #3a7bc8;
  --blue-700: #2563eb;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --green-500: #10b981;
  --red-500: #ef4444;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  background: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
  background: var(--slate-900);
  border-bottom: 1px solid var(--slate-800);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link { display: block; }
.logo { height: 36px; width: auto; }

.btn-demo {
  padding: 10px 20px;
  background: var(--blue-500);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-demo:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
}

/* Main */
.main { padding: 48px 24px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 18px;
  color: var(--slate-600);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

/* Form Section */
.form-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
}

.form-step { margin-bottom: 32px; }

.label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 8px;
}

.required { color: var(--red-500); }
.optional {
  color: var(--slate-400);
  font-weight: 400;
  font-size: 13px;
  margin-left: 4px;
}

/* Radio Cards */
.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-card input { display: none; }

.radio-card-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-700);
}

.radio-card input:checked + .radio-card-content {
  border-color: var(--blue-500);
  background: var(--blue-50);
  color: var(--blue-700);
}

.radio-card-content:hover {
  border-color: var(--blue-500);
}

/* Icon removed for professional design */

/* Form Fields */
.form-fields {
  animation: fadeIn 0.3s ease;
}

.form-fields.hidden { display: none; }

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

.field { margin-bottom: 24px; }

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: all 0.2s;
  background: white;
}

.input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.input::placeholder { color: var(--slate-400); }

/* Select-specific styling */
select.input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  border: 2px solid var(--slate-300);
}

select.input:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px var(--blue-100);
}

select.input option {
  padding: 10px 12px;
  background: white;
  color: var(--slate-900);
  border: none;
}

select.input option:hover {
  background: var(--slate-50);
}

select.input option:checked {
  background: linear-gradient(to right, var(--slate-100), var(--slate-50));
  color: var(--slate-900);
  font-weight: 500;
}

/* BizDev field styling - smaller and more compact */
.bizdev-field {
  max-width: 300px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.bizdev-field .label {
  font-size: 13px;
  font-weight: 600;
}

.bizdev-field select.input {
  font-size: 14px;
  padding: 10px 36px 10px 12px;
  border: 2px solid var(--slate-400);
  border-radius: 8px;
}

.bizdev-field select.input:focus {
  border-color: var(--blue-500);
}

.bizdev-field .hint {
  font-size: 12px;
}

.hint {
  font-size: 13px;
  color: var(--slate-500);
  margin-top: 6px;
}

/* Autocomplete */
.autocomplete { position: relative; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--slate-300);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.dropdown.show { display: block; }

.dropdown-item {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--slate-100);
  transition: background 0.15s;
}

.dropdown-item:hover { background: var(--slate-50); }

.dropdown-item img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.dropdown-loading,
.dropdown-empty {
  padding: 20px;
  text-align: center;
  color: var(--slate-500);
  font-size: 14px;
}

/* Brand Preview */
.brand-card {
  display: none;
  margin-top: 12px;
  padding: 16px;
  background: var(--blue-50);
  border: 1px solid var(--blue-500);
  border-radius: var(--radius-md);
  align-items: center;
  gap: 12px;
  position: relative;
}

.brand-card.show { display: flex; }

.brand-card img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.brand-info {
  flex: 1;
}

.brand-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-900);
}

.brand-info p {
  font-size: 13px;
  color: var(--slate-600);
}

/* Clear button on brand card */
.btn-clear-card {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: white;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  color: var(--slate-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-clear-card:hover {
  background: var(--red-500);
  border-color: var(--red-500);
  color: white;
  transform: scale(1.05);
}

.btn-clear-card svg {
  flex-shrink: 0;
}

/* Prompt Checkboxes */
.prompt-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prompt-checkbox input { display: none; }

.prompt-checkbox-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.prompt-checkbox input:checked + .prompt-checkbox-content {
  border-color: var(--blue-500);
  background: var(--blue-50);
}

.prompt-checkbox input:disabled + .prompt-checkbox-content {
  opacity: 0.5;
  cursor: not-allowed;
}

.prompt-checkbox-content:hover {
  border-color: var(--blue-500);
}

.prompt-category {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prompt-text {
  font-size: 14px;
  color: var(--slate-700);
  line-height: 1.4;
}

.prompt-checkbox input:checked + .prompt-checkbox-content .prompt-text {
  color: var(--slate-900);
  font-weight: 500;
}

.prompt-variable {
  font-weight: 700;
  color: var(--slate-900);
}

.prompt-variable-filled {
  font-weight: 600;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 2px 1px;
  border-radius: 4px;
  border: 1px solid var(--blue-200);
}

/* Draggable Variable Chip */
.variable-chip-inline {
  display: flex;
  align-items: center;
}

.variable-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 4px 1px;
  border-radius: 4px;
  border: 1px solid var(--blue-200);
  font-size: 14px;
  cursor: grab;
  user-select: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.variable-chip:active {
  cursor: grabbing;
  opacity: 0.7;
  transform: scale(0.98);
}

.variable-chip:hover {
  border-color: var(--blue-400);
  box-shadow: 0 2px 4px rgba(74, 144, 226, 0.25);
}

.variable-chip.in-text {
  cursor: move;
  margin: 0 2px;
  vertical-align: middle;
}


/* Custom Prompt Builder */
.custom-prompt-builder {
  padding: 20px;
  background: white;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  position: relative;
}

.custom-prompt-builder.active {
  border-color: var(--blue-500);
}

.btn-close-builder {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: white;
  border-radius: var(--radius-sm);
  color: var(--slate-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.btn-close-builder:hover {
  background: var(--slate-100);
  color: var(--slate-700);
}

.custom-prompt-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.custom-prompt-input {
  padding: 10px 12px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: white;
  transition: all 0.2s;
  min-height: 44px;
}

.custom-prompt-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.custom-prompt-input.drag-over {
  border-color: var(--blue-500);
  background: var(--blue-50);
  border-style: solid;
  border-width: 2px;
}

.custom-prompt-editable {
  padding: 10px 12px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: white;
  transition: all 0.2s;
  min-height: 44px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.custom-prompt-editable:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.custom-prompt-editable.drag-over {
  border-color: var(--blue-500);
  background: var(--blue-50);
}

.custom-prompt-editable:empty:before {
  content: attr(data-placeholder);
  color: var(--slate-400);
}

.custom-prompt-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-200);
}

.btn-save-custom {
  padding: 12px 24px;
  background: var(--blue-500);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save-custom:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.btn-add-custom {
  width: 100%;
  padding: 14px;
  background: white;
  border: 2px dashed var(--blue-500);
  border-radius: var(--radius-md);
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-custom:hover {
  background: var(--blue-50);
  border-style: solid;
}

.btn-add-custom:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--slate-300);
  color: var(--slate-400);
}

.btn-remove-custom {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  background: var(--slate-100);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--slate-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0.6;
}

.custom-prompt-item:hover .btn-remove-custom {
  opacity: 1;
}

.btn-remove-custom:hover {
  background: var(--red-500);
  color: white;
  transform: scale(1.1);
}

.custom-prompt-item {
  position: relative;
}

.custom-prompt-checkbox .prompt-checkbox-content {
  border-color: var(--blue-300);
  background: linear-gradient(to right, var(--blue-50), white);
}

.custom-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--blue-500);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 10px;
  line-height: 1;
}

.btn-add {
  width: 100%;
  padding: 10px;
  background: white;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-md);
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.btn-add:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
}

/* Icon Buttons */
.btn-icon {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  color: var(--blue-500);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--blue-50);
  border-color: var(--blue-500);
}

.btn-icon svg {
  flex-shrink: 0;
}

.btn-icon-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: white;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  color: var(--slate-400);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-remove:hover {
  background: var(--red-500);
  border-color: var(--red-500);
  color: white;
}


/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 12px 0;
}

.checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--blue-500);
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 15px;
  color: var(--slate-700);
  line-height: 1.5;
  user-select: none;
}

.checkbox-label:hover .checkbox-text {
  color: var(--slate-900);
}

/* Actions */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--slate-200);
}

.actions.hidden { display: none; }

.btn {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--blue-500);
  color: white;
}

.btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
}

.btn-secondary:hover {
  background: var(--slate-50);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Success State */
.success-state {
  text-align: center;
  padding: 60px 40px;
}

.success-state.hidden { display: none; }

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--green-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: 700;
}

.success-state h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--slate-900);
}

.success-state p {
  font-size: 16px;
  color: var(--slate-600);
}

/* Info Section */
.info-section {
  position: sticky;
  top: 88px;
}

.info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 20px;
}

.info-list {
  list-style: none;
}

.info-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 14px;
  color: var(--slate-700);
  line-height: 1.5;
}

.info-list li:last-child { border-bottom: none; }

.info-list strong {
  display: block;
  color: var(--slate-900);
  margin-bottom: 4px;
  font-weight: 600;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px rgba(0,0,0,0.15);
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-900);
}

.btn-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--slate-400);
  font-size: 24px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-close:hover {
  background: var(--slate-100);
  color: var(--slate-700);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

#jsonContent {
  background: var(--slate-900);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius-md);
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--slate-200);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Navigation Enhancement */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--slate-200);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: white;
}

/* Hero removed - form is the hero */

/* Report Preview Card - Compact sidebar version */
.report-preview-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.report-preview-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 16px;
}

.report-preview-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  transition: all 0.2s;
}

.report-preview-wrapper:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.report-preview-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Info List - Clean professional style */
.info-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list li strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 4px;
}

/* Platform CTA */
.platform-cta {
  margin-top: 20px;
  padding: 20px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-label {
  font-size: 14px;
  color: var(--slate-600);
  margin-bottom: 12px;
}

.cta-link {
  display: inline-block;
  padding: 10px 24px;
  background: var(--slate-900);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.cta-link:hover {
  background: var(--slate-800);
  transform: translateY(-1px);
}

/* Footer */
.footer {
  background: var(--slate-900);
  color: var(--slate-300);
  padding: 48px 24px 24px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--slate-800);
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--slate-400);
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--slate-500);
}

/* Responsive */
@media (max-width: 968px) {
  .content-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .form-section {
    order: 1;
  }

  .info-section {
    position: relative;
    top: 0;
    order: 2;
  }

  .page-header h1 { font-size: 28px; }
  .page-header p { font-size: 16px; }

  .form-section { padding: 28px 24px; }

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

  .actions { flex-direction: column; }

  .nav-links {
    gap: 12px;
  }

  .nav-link {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Mobile Optimizations - Enhanced */
@media (max-width: 640px) {
  body {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Navbar */
  .navbar { padding: 12px 0; }
  .nav-content { padding: 0 16px; }
  .logo { height: 30px; }
  .btn-demo { 
    padding: 8px 16px; 
    font-size: 13px;
  }
  
  /* Main Content */
  .main { padding: 24px 16px; }
  .page-header { 
    margin-bottom: 24px;
    padding-bottom: 16px;
  }
  .page-header h1 { 
    font-size: 22px; 
    line-height: 1.2;
    margin-bottom: 8px;
  }
  .page-header p { 
    font-size: 14px; 
    line-height: 1.5;
  }
  
  /* Reduce spacing in model badges on mobile */
  .page-header > div {
    margin-top: 16px !important;
  }
  
  /* Form Section */
  .form-section {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }
  
  .form-step { margin-bottom: 24px; }
  
  /* Larger touch targets */
  .input {
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 48px; /* Better touch target */
  }
  
  .label {
    font-size: 15px;
    margin-bottom: 10px;
  }
  
  /* Radio Cards */
  .radio-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .radio-card-content {
    padding: 16px;
    min-height: 52px; /* Better touch target */
  }
  
  /* Prompt Checkboxes - Optimized for thumbs */
  .prompt-checkbox-content {
    padding: 16px 14px;
    min-height: 64px; /* Larger touch area */
  }
  
  .prompt-category {
    font-size: 11px;
  }
  
  .prompt-text {
    font-size: 15px;
    line-height: 1.5;
  }
  
  /* Custom Prompt Builder */
  .custom-prompt-builder {
    padding: 16px;
  }
  
  .custom-prompt-input,
  .custom-prompt-editable {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px 14px;
    min-height: 52px;
  }
  
  /* Buttons */
  .btn {
    padding: 16px 20px;
    font-size: 16px;
    min-height: 52px; /* Better touch target */
  }
  
  .btn-icon {
    padding: 10px 14px;
    min-height: 44px;
  }
  
  .btn-add-custom {
    padding: 16px;
    min-height: 52px;
  }
  
  /* Actions */
  .actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 24px;
  }
  
  /* Brand Card */
  .brand-card {
    padding: 14px;
  }
  
  .brand-card img {
    width: 36px;
    height: 36px;
  }
  
  /* Dropdown */
  .dropdown {
    max-height: 240px;
  }
  
  .dropdown-item {
    padding: 14px 16px;
    min-height: 56px; /* Better touch target */
  }
  
  /* Checkbox */
  .checkbox {
    width: 22px;
    height: 22px;
  }
  
  .checkbox-label {
    padding: 14px 0;
  }
  
  .checkbox-text {
    font-size: 16px;
  }
  
  /* Modal */
  .modal { padding: 12px; }
  
  .modal-dialog {
    max-height: 95vh;
    border-radius: var(--radius-md);
  }
  
  .modal-header { 
    padding: 20px 16px;
  }
  
  .modal-body {
    padding: 20px 16px;
  }
  
  .modal-footer {
    padding: 16px;
    flex-direction: column;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
  
  #jsonContent {
    font-size: 12px;
    padding: 16px;
  }
  
  /* Info Section */
  .info-card {
    padding: 24px 20px;
  }
  
  .info-card h3 {
    font-size: 17px;
  }
  
  .info-list li {
    font-size: 15px;
    padding: 12px 0;
  }
  
  /* Report Preview */
  .report-preview-card {
    padding: 16px;
  }
  
  .report-preview-card h3 {
    font-size: 15px;
  }
  
  /* Platform CTA */
  .platform-cta {
    padding: 16px;
  }
  
  /* Footer */
  .footer {
    padding: 32px 16px 20px;
    margin-top: 48px;
  }
  
  .footer-content {
    gap: 24px;
    padding-bottom: 24px;
  }
  
  .footer-logo {
    height: 28px;
  }
  
  /* Success State */
  .success-state {
    padding: 40px 20px;
  }
  
  .success-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }
  
  .success-state h2 {
    font-size: 20px;
  }
  
  .success-state p {
    font-size: 15px;
  }
  
  /* Field Spacing */
  .field {
    margin-bottom: 20px;
  }
  
  .hint {
    font-size: 14px;
    margin-top: 8px;
  }
  
  /* Email field buttons */
  #toggleEmail2 {
    font-size: 12px;
    padding: 8px 12px;
  }
  
  /* Improve tap highlight */
  button, a, .radio-card, .prompt-checkbox, .dropdown-item {
    -webkit-tap-highlight-color: rgba(74, 144, 226, 0.1);
  }
  
  /* Prevent text selection on interactive elements */
  .radio-card-content,
  .prompt-checkbox-content,
  .btn,
  .btn-icon {
    -webkit-user-select: none;
    user-select: none;
  }
}

/* Image Lightbox */
.image-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}

.image-lightbox.show {
  display: flex;
}

.image-lightbox img {
  max-width: 95%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10001;
}

.lightbox-close:hover {
  background: white;
  transform: scale(1.1);
}

.expand-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.report-preview-wrapper:hover .expand-hint {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

