@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #0F1729;
  --bg-surface: #1A2438;
  --bg-input: #212D42;
  --bg-elevated: #253350;
  --border: #2A3A52;
  --border-focus: #F4C34D;
  --accent: #F4C34D;
  --accent-hover: #F5D06E;
  --accent-text: #0F1729;
  --secondary: #5B8DEF;
  --success: #4ADE80;
  --error: #F87171;
  --text-primary: #E8ECF1;
  --text-secondary: #8899AA;
  --text-muted: #5A6A7A;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 200ms ease;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
p { color: var(--text-secondary); }
.mono { font-family: var(--mono); }

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 0;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-primary);
  transition: all var(--transition);
  flex-shrink: 0;
}

.step-dot.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(244, 195, 77, 0.15);
}

.step-dot.completed {
  border-color: var(--success);
  background: var(--success);
  color: var(--bg-primary);
}

.step-line {
  width: 60px;
  height: 2px;
  background: var(--border);
  transition: background var(--transition);
}

.step-line.completed {
  background: var(--success);
}

.step-label {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

.step-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-step {
  display: none;
  animation: fadeSlideIn 300ms ease forwards;
}

.form-step.active {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.field-group {
  margin-bottom: 28px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.field-label .required {
  color: var(--accent);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 15px;
  transition: all var(--transition);
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 195, 77, 0.1);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238899AA'%3E%3Cpath d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.field-help {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.field-error {
  font-size: 13px;
  color: var(--error);
  margin-top: 6px;
  display: none;
}

.field-group.error input,
.field-group.error textarea,
.field-group.error select {
  border-color: var(--error);
}

.field-group.error .field-error {
  display: block;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.checkbox-item:hover {
  border-color: var(--text-muted);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-item span {
  font-size: 14px;
  color: var(--text-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-large {
  padding: 18px 40px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

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

.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.step-transition {
  text-align: center;
  padding: 40px 0 20px;
}

.step-transition p {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
}

.form-section-header {
  margin-bottom: 32px;
}

.form-section-header h2 {
  margin-bottom: 8px;
}

.form-section-header p {
  font-size: 15px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.card-locked {
  position: relative;
  overflow: hidden;
}

.card-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, var(--bg-surface) 90%);
  pointer-events: none;
}

.preview-section {
  margin-bottom: 24px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.preview-header .section-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.preview-header .word-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

.lock-icon {
  color: var(--text-muted);
  font-size: 14px;
}

.preview-hint {
  margin: 0;
  padding: 0 16px 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.brief-content {
  line-height: 1.75;
}

.brief-content h1 { font-size: 1.5rem; margin: 32px 0 16px; color: var(--text-primary); }
.brief-content h2 { font-size: 1.25rem; margin: 28px 0 12px; color: var(--accent); }
.brief-content h3 { font-size: 1.1rem; margin: 20px 0 8px; }
.brief-content p { margin-bottom: 16px; }
.brief-content ul, .brief-content ol { margin: 12px 0; padding-left: 24px; }
.brief-content li { margin-bottom: 8px; color: var(--text-secondary); }
.brief-content strong { color: var(--text-primary); }
.brief-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.brief-content th, .brief-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; font-size: 14px; }
.brief-content th { background: var(--bg-input); color: var(--text-secondary); font-weight: 500; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; }

.brief-content code {
  font-family: var(--mono);
  background: var(--bg-input);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--accent);
}

.kill-metric {
  border-left: 3px solid var(--accent);
  background: var(--bg-input);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}

.diagnostic-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.diagnostic-section h2 {
  color: var(--secondary);
  margin-bottom: 24px;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  gap: 24px;
}

.loading-message {
  font-size: 16px;
  color: var(--text-secondary);
  animation: pulse 2s ease-in-out infinite;
}

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

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.shimmer {
  background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-elevated) 50%, var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius);
  height: 20px;
  margin-bottom: 12px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.pricing-cta {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 40px 0;
}

.pricing-cta .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--mono);
  margin: 16px 0 8px;
}

.pricing-cta .price-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto 20px;
}

.hero .subhead {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero .below-cta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.social-proof-bar {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.section {
  padding: 80px 0;
}

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

.feature-item {
  margin-bottom: 28px;
}

.feature-item strong {
  color: var(--accent);
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--accent);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }

  .container { padding: 0 16px; }
  .form-container { padding: 0 16px; }

  .hero { padding: 60px 0 40px; }

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

  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }

  .step-line { width: 30px; }
  .step-dot { width: 32px; height: 32px; font-size: 13px; }

  .card { padding: 20px; }
}

.suggestion-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  max-width: 100%;
  word-break: break-word;
}

.suggestion-chip:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent);
}

.suggestion-chip .chip-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.suggestion-chip .chip-text {
  flex: 1;
}

.suggestion-chip.applied {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent);
  opacity: 0.7;
  cursor: default;
}

.suggestion-feedback {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.field-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
}

.field-status.strong {
  background: rgba(76, 175, 80, 0.12);
  color: #4caf50;
}

.field-status.good {
  background: rgba(255, 193, 7, 0.12);
  color: #ffc107;
}

.field-status.needs_work {
  background: rgba(244, 67, 54, 0.12);
  color: #f44336;
}

.apply-all-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.apply-all-bar p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.apply-all-bar .count {
  color: var(--accent);
  font-weight: 600;
}

.btn-apply-all {
  flex-shrink: 0;
  padding: 8px 20px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-apply-all:hover {
  opacity: 0.85;
}

.edit-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.edit-header h1 {
  margin-bottom: 8px;
}

.edit-header p {
  color: var(--text-secondary);
  font-size: 15px;
}
