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

/* ═══════════════════════════════════════════ */
/* BASE STYLES */
/* ═══════════════════════════════════════════ */

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
}

/* ═══════════════════════════════════════════ */
/* ANIMATIONS */
/* ═══════════════════════════════════════════ */

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

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

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

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

/* ═══════════════════════════════════════════ */
/* LAYOUT */
/* ═══════════════════════════════════════════ */

.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.content {
  max-width: 640px;
  width: 100%;
  animation: fadeUp 0.5s ease;
}

.content-questions {
  max-width: 500px;
  width: 100%;
}

.content-generating {
  max-width: 380px;
  width: 100%;
  text-align: center;
}

.content-results {
  max-width: 720px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease;
}

/* ═══════════════════════════════════════════ */
/* TYPOGRAPHY */
/* ═══════════════════════════════════════════ */

.brand-text {
  color: #174F43;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 40px;
}

h1 {
  font-family: 'Inter', sans-serif;
  font-size: 2.8rem;
  line-height: 1.12;
  color: #1a1a1a;
  margin-bottom: 20px;
}

h1 .accent {
  color: #174F43;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.9rem;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 26px;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  color: #1a1a1a;
  margin-bottom: 10px;
}

h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #174F43;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.subtitle {
  color: #4a5568;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════ */
/* HERO SECTION */
/* ═══════════════════════════════════════════ */

.hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.stat-box {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  flex: 1;
}

.stat-label {
  color: #718096;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-weight: 600;
}

.stat-value {
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.stat-arrow {
  color: #174F43;
  font-size: 1.8rem;
  line-height: 1;
  align-self: center;
}

.hero-story {
  color: #4a5568;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-story strong {
  color: #1a1a1a;
}

/* ═══════════════════════════════════════════ */
/* VIDEO SECTION */
/* ═══════════════════════════════════════════ */

.video-section {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 48px;
}

.video-label {
  color: #174F43;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}

.video-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 20px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000000;
  margin-bottom: 16px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-caption {
  color: #718096;
  font-size: 13px;
  line-height: 1.6;
  font-style: italic;
}

/* ═══════════════════════════════════════════ */
/* PROBLEM/SOLUTION SECTION */
/* ═══════════════════════════════════════════ */

.problem-section {
  margin-bottom: 48px;
}

.problem-box {
  background: #fef5e7;
  border: 1px solid #f9e79f;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}

.problem-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.problem-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.problem-text {
  color: #4a5568;
  font-size: 14px;
  line-height: 1.7;
}

.solution-intro {
  color: #4a5568;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.solution-intro strong {
  color: #1a1a1a;
}

.solution-cta {
  color: #174F43;
  font-weight: 600;
  font-size: 15px;
}

/* ═══════════════════════════════════════════ */
/* GENERATOR INTRO */
/* ═══════════════════════════════════════════ */

.generator-intro {
  margin-bottom: 40px;
}

.generator-intro h2 {
  margin-bottom: 16px;
}

.generator-intro p {
  color: #4a5568;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════ */
/* WELCOME PAGE COMPONENTS */
/* ═══════════════════════════════════════════ */

.eva-explanation {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
}

.eva-explanation p {
  color: #4a5568;
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.eva-explanation p:last-child {
  margin-bottom: 0;
}

.eva-explanation strong {
  color: #1a1a1a;
}

.how-it-works {
  margin-bottom: 36px;
}

.how-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.how-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #174F43;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.how-content h5 {
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.how-content p {
  color: #718096;
  font-size: 13px;
  line-height: 1.6;
}

.time-estimate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 20px;
  color: #718096;
  font-size: 13px;
  margin-bottom: 32px;
}

.time-estimate svg {
  width: 14px;
  height: 14px;
}

.small-text {
  color: #a0aec0;
  font-size: 12px;
  margin-top: 48px;
}

/* ═══════════════════════════════════════════ */
/* BUTTONS */
/* ═══════════════════════════════════════════ */

.btn-primary {
  background: #174F43;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #1a5c4e;
}

.btn-primary:disabled {
  background: #e2e8f0;
  color: #a0aec0;
  cursor: default;
}

.btn-secondary {
  color: #718096;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
}

.btn-back {
  color: #a0aec0;
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-download {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #718096;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-download:hover {
  background: #f7fafc;
  border-color: #174F43;
  color: #1a1a1a;
}

/* ═══════════════════════════════════════════ */
/* QUESTIONS PAGE */
/* ═══════════════════════════════════════════ */

.progress-container {
  margin-bottom: 48px;
}

.progress-bar {
  background: #e2e8f0;
  border-radius: 2px;
  height: 2px;
}

.progress-fill {
  background: #174F43;
  height: 2px;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.progress-text {
  color: #a0aec0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  display: block;
  margin-top: 10px;
}

.question-slide {
  animation: slideIn 0.3s ease;
  position: relative;
}

.tooltip-trigger {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #718096;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: help;
  margin-left: 8px;
  vertical-align: middle;
}

.tooltip-content {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

.tooltip-content p {
  color: #4a5568;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.tooltip-content p:last-child {
  margin-bottom: 0;
}

.tooltip-content strong {
  color: #1a1a1a;
}

textarea {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px 17px;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  width: 100%;
  resize: none;
  margin-bottom: 40px;
  transition: border-color 0.2s;
  line-height: 1.6;
}

textarea::placeholder {
  color: #a0aec0;
}

textarea:focus {
  border-color: #174F43;
  outline: none;
}

.freq-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.freq-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 18px;
  color: #718096;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.freq-btn.active {
  background: #f0fdf4;
  border-color: #174F43;
  color: #1a1a1a;
}

.error-box {
  background: #2a1818;
  border: 1px solid #4a2222;
  border-radius: 6px;
  padding: 10px 15px;
  margin-bottom: 18px;
  color: #d88080;
  font-size: 13px;
}

.nav-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* ═══════════════════════════════════════════ */
/* GENERATING PAGE */
/* ═══════════════════════════════════════════ */

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #174F43;
  border-radius: 50%;
  margin: 0 auto 34px;
  animation: spin 0.8s linear infinite;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.check-circle.checked {
  background: #174F43;
  border: none;
}

.check-mark {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.check-label {
  color: #a0aec0;
  font-size: 14px;
  transition: color 0.3s ease;
}

.check-label.checked {
  color: #1a1a1a;
}

/* ═══════════════════════════════════════════ */
/* RESULTS PAGE */
/* ═══════════════════════════════════════════ */

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
}

.result-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.85rem;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.result-subtitle {
  color: #a0aec0;
  font-size: 13px;
}

.result-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tabs {
  display: flex;
  gap: 3px;
  background: #f7fafc;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 14px;
}

.tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 11px 4px;
  color: #a0aec0;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab.active {
  background: #ffffff;
  color: #1a1a1a;
  font-weight: 600;
}

.tab-explainer {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.tab-explainer p {
  color: #718096;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.whats-next {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 26px;
}

.whats-next h4 {
  margin-bottom: 18px;
}

.next-step {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.next-step:last-child {
  margin-bottom: 0;
}

.next-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #174F43;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.next-content p {
  color: #4a5568;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.next-content strong {
  color: #1a1a1a;
}

.code-container {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 26px;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 15px;
  border-bottom: 1px solid #e2e8f0;
}

.code-filename {
  color: #a0aec0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.copy-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 4px 13px;
  color: #718096;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn.copied {
  background: #f0fdf4;
  border-color: #34d399;
  color: #34d399;
}

.code-content {
  padding: 22px;
}

pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #2d3748;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.guide-phases {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.phase-item {
  display: flex;
  gap: 16px;
}

.phase-number {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #174F43;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #174F43;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
}

.phase-content {
  flex: 1;
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.phase-title {
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
}

.phase-time {
  color: #a0aec0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.phase-step {
  color: #718096;
  font-size: 13px;
  padding: 2.5px 0;
}

.phase-arrow {
  color: #cbd5e0;
  margin-right: 8px;
}

/* ═══════════════════════════════════════════ */
/* CTA BOX */
/* ═══════════════════════════════════════════ */

.cta-box {
  background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #d1fae5;
  border-radius: 12px;
  padding: 30px;
}

.cta-content {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.cta-icon {
  font-size: 30px;
  flex-shrink: 0;
}

.cta-text {
  color: #4a5568;
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.cta-highlight {
  color: #2d3748;
}

.cta-link {
  display: inline-block;
  background: #174F43;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.cta-link:hover {
  background: #1a5c4e;
}

.cta-note {
  color: #a0aec0;
  font-size: 12px;
  margin-top: 12px;
}

/* ═══════════════════════════════════════════ */
/* WHO AM I SECTION */
/* ═══════════════════════════════════════════ */

.who-am-i-section {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px;
  margin-top: 60px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 720px;
  clear: both;
  text-align: center;
}

.who-am-i-title {
  color: #174F43;
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
}

.who-am-i-content {
  display: flex !important;
  gap: 32px;
  align-items: flex-start;
  flex-direction: row !important;
}

.who-am-i-image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 28px;
}

.who-am-i-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.who-am-i-text {
  text-align: left;
}

.who-am-i-text h3 {
  color: #174F43;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.who-am-i-text p {
  color: #4a5568;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.who-am-i-text p:last-of-type {
  margin-bottom: 24px;
}

.who-am-i-cta {
  display: inline-block;
  background: transparent;
  border: 1px solid #174F43;
  color: #174F43;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.who-am-i-cta:hover {
  background: #174F43;
  color: #ffffff;
}

@media (max-width: 768px) {
  .who-am-i-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .who-am-i-section {
    padding: 28px 24px;
  }
  
  .who-am-i-text {
    text-align: center;
  }
}

/* ═══════════════════════════════════════════ */
/* RESPONSIVE */
/* ═══════════════════════════════════════════ */

@media (max-width: 640px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .stat-arrow {
    display: none;
  }
  
  .stat-value {
    font-size: 1.8rem;
  }
  
  .video-section {
    padding: 20px;
  }
  
  .video-title {
    font-size: 1.25rem;
  }
}

/* ═══════════════════════════════════════════ */
/* UTILITY */
/* ═══════════════════════════════════════════ */

.hidden {
  display: none;
}
