/* === Narrative Styles === */
/* Single-page scroll narrative for AI Is Not Creative */

/* === Variables === */
:root {
  --bg: #fafafa;
  --bg-alt: #f0f0f0;
  --card: #ffffff;
  --border: #e5e5e5;
  --text: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --accent: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-rgb: 29, 78, 216;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

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

/* === Base === */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Progress Bar === */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 1000;
  transition: width 100ms linear;
}

/* === Narrative Container === */
.narrative {
  width: 100%;
}

/* === Section Base === */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg);
}

.section__content {
  max-width: 680px;
  width: 100%;
}

/* === Section Variants === */
.section--claim {
  background: var(--bg);
}

.section--question {
  background: var(--bg);
}

.section--experiment {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--commitment {
  background: var(--bg);
}

.section--reveal {
  background: var(--bg);
  min-height: auto;
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.section--distinction {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--objections {
  background: var(--bg);
}

.section--return {
  background: var(--bg);
}

.section--deeper {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

/* === Typography === */
.narrative h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
}

.narrative h2 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-lg);
}

.narrative p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

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

.narrative .lead {
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.6;
}

.narrative .muted {
  color: var(--text-muted);
}

.narrative .emphasis {
  color: var(--accent);
  font-weight: 500;
}

.narrative strong {
  font-weight: 600;
}

/* === Section: Claim === */
.claim__title {
  font-size: 3.5rem;
  text-align: center;
}

.claim__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}

.claim__hook {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* === Section: Question === */
.question__text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.question__text p {
  margin-bottom: var(--space-lg);
}

/* === Section: Experiment === */
.experiment__prompt {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.experiment__details {
  margin-bottom: var(--space-lg);
}

.experiment__list {
  list-style: none;
  margin: var(--space-lg) 0;
}

.experiment__list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
  color: var(--text-secondary);
}

.experiment__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.experiment__hypothesis {
  font-style: italic;
  color: var(--text-secondary);
  margin-top: var(--space-xl);
}

/* === Section: Commitment === */
.commitment__question {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.commitment__options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 500px;
  margin: 0 auto;
}

.commitment__option {
  padding: var(--space-lg) var(--space-xl);
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: left;
  font-family: inherit;
}

.commitment__option:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.commitment__option--selected {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.commitment__option--selected:hover {
  background: var(--accent);
}

.commitment__label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.commitment__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.commitment__option--selected .commitment__desc {
  color: rgba(255, 255, 255, 0.8);
}

.commitment__selection {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.commitment__continue {
  display: block;
  margin: var(--space-2xl) auto 0;
  padding: var(--space-md) var(--space-2xl);
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
}

.commitment__continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.commitment__continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* === Section: Reveal === */
.reveal__initial {
  text-align: center;
}

.reveal__prompt {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.reveal__start {
  padding: var(--space-md) var(--space-2xl);
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
}

.reveal__start:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.reveal__sessions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.reveal__session {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-md);
}

.reveal__session-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

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

.reveal__session-item {
  padding: 6px 8px;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background var(--transition-fast);
}

.reveal__session-item--consensus-high {
  background: rgba(var(--accent-rgb), 0.15);
}

.reveal__session-item--consensus-medium {
  background: rgba(var(--accent-rgb), 0.08);
}

.reveal__session-item--consensus-low {
  background: rgba(var(--accent-rgb), 0.03);
}

.reveal__session-more {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reveal__start {
  text-align: center;
  padding: var(--space-2xl);
}

.reveal__waiting {
  color: var(--text-muted);
  font-style: italic;
}

.reveal__result {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}

.reveal__controls {
  text-align: center;
  margin-top: var(--space-xl);
}

.reveal__next {
  padding: var(--space-sm) var(--space-xl);
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
  margin: 0 var(--space-sm);
}

.reveal__next:hover {
  background: var(--accent);
  color: white;
}

.reveal__counter {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

.reveal__headline {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.reveal__stats {
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}

.reveal__stat {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
}

.reveal__stat:last-child {
  border-bottom: none;
}

.reveal__stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 80px;
}

.reveal__stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
}

.reveal__prediction {
  text-align: center;
  padding: var(--space-lg);
  background: var(--accent-light);
  border-radius: 8px;
  margin-top: var(--space-xl);
}

.reveal__prediction-label {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Density visualization */
.reveal__density {
  margin: var(--space-2xl) 0;
}

.reveal__density-canvas {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
}

.reveal__density-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* Invention reveal (fake brands) */
.reveal__invention {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}

.reveal__invention-intro {
  font-size: 1.1rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  color: var(--text-secondary);
}

.reveal__invention-intro em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 600;
}

.reveal__invention-finding {
  margin-top: var(--space-xl);
}

.reveal__invention-point {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

/* === Section: Distinction === */
.distinction__highlight {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin: var(--space-lg) 0;
}

.distinction__comparison {
  margin: var(--space-2xl) 0;
}

.distinction__item {
  padding: var(--space-lg);
  background: var(--bg);
  border-radius: 8px;
  margin-bottom: var(--space-md);
}

.distinction__item:last-child {
  margin-bottom: 0;
}

.distinction__item-label {
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.distinction__item-text {
  color: var(--text-secondary);
}

/* === Section: Objections === */
.objections__intro {
  margin-bottom: var(--space-2xl);
}

.objection {
  margin-bottom: var(--space-2xl);
}

.objection:last-child {
  margin-bottom: 0;
}

.objection__quote {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
  border-left: 3px solid var(--accent);
}

.objection__response {
  color: var(--text-secondary);
  line-height: 1.7;
}

.objection__response p {
  margin-bottom: var(--space-md);
}

/* === Section: Return === */
.return__text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.return__conclusion {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--accent);
}

.return__tagline {
  color: var(--text-muted);
  font-weight: 400;
  margin-top: var(--space-md);
  font-size: 1.1rem;
}

/* === Section: Deeper === */
.deeper__title {
  margin-bottom: var(--space-lg);
}

.deeper__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.deeper__cta {
  display: inline-block;
  padding: var(--space-md) var(--space-2xl);
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.deeper__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

/* === Scroll-triggered reveals === */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === Responsive === */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: var(--space-2xl) var(--space-md);
  }

  .narrative h1,
  .claim__title {
    font-size: 2.25rem;
  }

  .narrative h2 {
    font-size: 1.5rem;
  }

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

  .commitment__options {
    gap: var(--space-sm);
  }

  .commitment__option {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  .narrative h1,
  .claim__title {
    font-size: 1.875rem;
  }

  .experiment__prompt {
    font-size: 1.5rem;
  }

  .reveal__headline {
    font-size: 2rem;
  }

  .distinction__highlight {
    font-size: 1.25rem;
  }

  .return__conclusion {
    font-size: 1.25rem;
  }
}
