/* Conversation Style Check-In - Main Stylesheet */

:root {
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-primary-light: #a5b4fc;
  --color-secondary: #f59e0b;
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --color-listener: #3b82f6;
  --color-explorer: #8b5cf6;
  --color-connector: #10b981;
  --color-director: #f59e0b;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text-light);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--color-primary);
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

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

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

.btn-secondary:hover {
  background: var(--color-bg);
}

/* Quiz Section */
.quiz-section {
  padding: 40px 0 80px;
}

.quiz-shell {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}

.quiz-progress {
  margin-bottom: 32px;
}

.progress-bar {
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.quiz-card {
  min-height: 200px;
}

.scenario-text {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.5;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.option-btn:hover {
  border-color: var(--color-primary-light);
  background: #f0f0ff;
}

.option-btn.selected {
  border-color: var(--color-primary);
  background: #eef2ff;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

/* Results Panel */
.results-panel {
  text-align: center;
  padding: 20px 0;
}

.result-badge {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 24px 0;
}

.result-badge.listener {
  background: #dbeafe;
  color: #1e40af;
}

.result-badge.explorer {
  background: #ede9fe;
  color: #5b21b6;
}

.result-badge.connector {
  background: #d1fae5;
  color: #065f46;
}

.result-badge.director {
  background: #fef3c7;
  color: #92400e;
}

.result-content {
  text-align: left;
  margin: 32px 0;
}

.result-content h3 {
  margin: 24px 0 12px;
  font-size: 1.1rem;
}

.result-content p {
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: var(--color-surface);
}

.about-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.about-card {
  padding: 24px;
  background: var(--color-bg);
  border-radius: var(--radius);
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.how-it-works {
  max-width: 600px;
  margin: 0 auto;
}

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

.how-it-works ol {
  padding-left: 24px;
}

.how-it-works li {
  margin-bottom: 12px;
  color: var(--color-text-light);
}

/* Styles Section */
.styles-section {
  padding: 80px 0;
}

.styles-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 16px;
}

.section-intro {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.style-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.style-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.style-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.style-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.style-note {
  font-size: 0.85rem;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--color-surface);
}

.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 600px;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.faq-list summary {
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
}

.faq-list p {
  color: var(--color-text-light);
  padding: 8px 0;
}

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

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

.footer-links a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .quiz-shell {
    padding: 20px;
  }
  .scenario-text {
    font-size: 1.1rem;
  }
  .main-nav {
    gap: 16px;
  }
  .main-nav a {
    font-size: 0.85rem;
  }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
