/* ============================================
   AI COMICS STUDIO — App Styles
   ============================================ */

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

:root {
  --comic-red: #e23636;
  --comic-blue: #2b4162;
  --comic-yellow: #f5c518;
  --comic-dark: #1a1a2e;
  --comic-darker: #0f0f1a;
  --comic-light: #f0e6d3;
  --comic-panel-border: #222;
  --comic-caption: #fffde7;
}

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

body {
  font-family: 'Comic Neue', 'Inter', sans-serif;
  background: var(--comic-darker);
  color: #e0e0e0;
  overflow-x: hidden;
}

/* ============ MARVEL-STYLE CINEMATIC INTRO ============ */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

.intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-filmstrip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.intro-filmstrip .panel {
  position: absolute;
  opacity: 0;
  transform: scale(1.3);
  transition: opacity 0.6s ease, transform 1.2s ease;
  background-size: cover;
  background-position: center;
  filter: contrast(1.2) saturate(1.1);
}

.intro-filmstrip .panel.active {
  opacity: 1;
  transform: scale(1);
}

/* Red sweep overlay like Marvel */
.intro-red-sweep {
  position: absolute;
  inset: 0;
  background: var(--comic-red);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 2;
}

.intro-red-sweep.sweep {
  animation: redSweep 0.6s ease-in-out forwards;
}

@keyframes redSweep {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  50.1% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

.intro-title {
  position: relative;
  z-index: 3;
  text-align: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.6s ease, transform 0.6s ease;
  background: rgba(15, 15, 26, 0.85);
  border: 3px solid var(--comic-red);
  border-radius: 8px;
  padding: 2.5rem 3rem;
  box-shadow: 0 0 60px rgba(226, 54, 54, 0.3), inset 0 0 30px rgba(0,0,0,0.5);
}

.intro-title.show {
  opacity: 1;
  transform: scale(1);
}

.intro-title h1 {
  font-family: 'Bangers', cursive;
  font-size: clamp(3rem, 10vw, 8rem);
  color: var(--comic-yellow);
  text-shadow: 4px 4px 0 var(--comic-red), 8px 8px 0 rgba(0,0,0,0.5);
  letter-spacing: 6px;
  line-height: 1;
}

.intro-title .subtitle {
  font-family: 'Bangers', cursive;
  font-size: clamp(1rem, 3vw, 2rem);
  color: #fff;
  letter-spacing: 4px;
  margin-top: 0.5rem;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.intro-title .tagline {
  font-size: 1rem;
  color: #aaa;
  margin-top: 1rem;
  font-family: 'Inter', sans-serif;
}

.intro-skip {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 4;
  color: #666;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid #333;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.intro-skip:hover {
  color: #fff;
  border-color: #666;
}

/* ============ LANDING PAGE ============ */

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--comic-dark), #16213e 40%, var(--comic-darker));
}

.landing-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.landing h1 {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--comic-yellow);
  text-shadow: 3px 3px 0 var(--comic-red), 6px 6px 0 rgba(0,0,0,0.3);
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.landing p {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.landing-steps {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.landing-step {
  background: rgba(255,255,255,0.05);
  border: 2px solid #333;
  border-radius: 8px;
  padding: 1.2rem 1rem;
  width: 140px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.landing-step:hover {
  border-color: var(--comic-yellow);
  transform: translateY(-4px);
}

.landing-step .step-num {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  color: var(--comic-red);
}

.landing-step .step-label {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 0.3rem;
}

.landing-step .step-arrow {
  color: #555;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--comic-red);
  color: #fff;
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  padding: 1rem 3rem;
  border: none;
  border-radius: 6px;
  letter-spacing: 3px;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--comic-yellow);
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  padding: 0.7rem 2rem;
  border: 2px solid var(--comic-yellow);
  border-radius: 6px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  margin-left: 1rem;
}

.btn-secondary:hover {
  background: rgba(245,197,24,0.1);
}

/* ============ SHOWCASE GALLERY (Landing) ============ */

.showcase {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  width: 100%;
  max-width: 900px;
}

.showcase-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.showcase-strip::-webkit-scrollbar { display: none; }

.showcase-card {
  flex: 0 0 220px;
  height: 300px;
  border: 3px solid #333;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition: transform 0.3s, border-color 0.3s;
}

.showcase-card:hover {
  transform: scale(1.05);
  border-color: var(--comic-yellow);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-card .card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 2rem 0.8rem 0.8rem;
  font-family: 'Bangers', cursive;
  color: var(--comic-yellow);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ============ WORKFLOW CONTAINER ============ */

.workflow {
  display: none;
  position: relative;
  min-height: 100vh;
}

.workflow.active {
  display: block;
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--comic-dark);
  border-bottom: 2px solid #333;
  padding: 0;
}

.progress-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.progress-step {
  flex: 1;
  text-align: center;
  padding: 0.8rem 0.5rem;
  font-family: 'Bangers', cursive;
  font-size: 0.95rem;
  color: #555;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.progress-step.active {
  color: var(--comic-yellow);
}

.progress-step.completed {
  color: #4caf50;
}

.progress-step::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s;
}

.progress-step.active::after {
  background: var(--comic-yellow);
}

.progress-step.completed::after {
  background: #4caf50;
}

.progress-back {
  padding: 0.8rem 1rem;
  color: #888;
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.progress-back:hover { color: #fff; }

.progress-new {
  padding: 0.4rem 0.6rem;
  color: #666;
  cursor: pointer;
  font-size: 0.65rem;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
  border: 1px solid #444;
  border-radius: 3px;
  transition: all 0.2s;
  margin-left: -0.5rem;
}

.progress-new:hover { color: var(--comic-yellow); border-color: var(--comic-yellow); }

/* Step panels */
.step-viewport {
  margin-top: 50px;
  position: relative;
  overflow: hidden;
}

.step-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-panel {
  min-width: 100vw;
  padding: 2rem 1.5rem 4rem;
}

.step-content {
  max-width: 900px;
  margin: 0 auto;
}

.step-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-header h2 {
  font-family: 'Bangers', cursive;
  font-size: 2.2rem;
  color: var(--comic-yellow);
  text-shadow: 2px 2px 0 var(--comic-red);
  letter-spacing: 2px;
}

.step-header p {
  color: #888;
  margin-top: 0.5rem;
}

/* Navigation arrows */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #333;
}

.step-arrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid #444;
  color: #ccc;
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.step-arrow:hover {
  border-color: var(--comic-yellow);
  color: var(--comic-yellow);
}

.step-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.step-arrow.primary {
  background: var(--comic-red);
  border-color: var(--comic-red);
  color: #fff;
}

.step-arrow.primary:hover {
  background: #c0392b;
}

/* ============ STEP 1: TEXT INPUT ============ */

.text-input-area {
  width: 100%;
  min-height: 400px;
  background: var(--comic-dark);
  border: 3px solid #444;
  border-radius: 8px;
  padding: 1.5rem;
  color: var(--comic-light);
  font-size: 1rem;
  line-height: 2;
  resize: vertical;
  font-family: 'Comic Neue', sans-serif;
  transition: border-color 0.3s;
}

.text-input-area:focus {
  outline: none;
  border-color: var(--comic-yellow);
}

.text-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #666;
}

.demo-btn {
  background: var(--comic-blue);
  color: var(--comic-yellow);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.demo-btn:hover { background: #1a3a5c; }

/* ============ STEP 2: STORYBOARD ============ */

.storyboard-output {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sb-page {
  background: var(--comic-dark);
  border: 3px solid #444;
  border-radius: 8px;
  overflow: hidden;
}

.sb-page-header {
  background: linear-gradient(135deg, var(--comic-blue), #1a1a3e);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 3px solid var(--comic-red);
}

.sb-page-num {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  color: var(--comic-yellow);
}

.sb-page-title {
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 1px;
  flex: 1;
}

.sb-page-edit {
  background: transparent;
  border: 1px solid #555;
  color: #888;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.sb-page-edit:hover {
  border-color: var(--comic-yellow);
  color: var(--comic-yellow);
}

.sb-page-body {
  padding: 1rem 1.2rem;
}

.sb-source {
  background: rgba(0,0,0,0.3);
  border-left: 3px solid var(--comic-red);
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.6;
}

.sb-panel {
  background: rgba(0,0,0,0.2);
  border-left: 3px solid var(--comic-yellow);
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.5;
}

.sb-panel strong { color: var(--comic-yellow); }

/* ============ STEP 3: IMAGE GENERATION ============ */

.image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .image-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.img-card {
  background: var(--comic-dark);
  border: 3px solid #444;
  border-radius: 8px;
  overflow: hidden;
}

.img-card-header {
  background: var(--comic-blue);
  padding: 0.6rem 1rem;
  font-family: 'Bangers', cursive;
  color: var(--comic-yellow);
  font-size: 1rem;
  letter-spacing: 1px;
  border-bottom: 3px solid var(--comic-red);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.img-card-prompt {
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  color: #888;
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.5;
  font-family: 'Inter', monospace;
}

.img-card-prompt textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #333;
  color: #aaa;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 0.5rem;
  border-radius: 4px;
  resize: vertical;
  min-height: 80px;
  font-family: 'Inter', monospace;
}

.img-card-prompt textarea:focus {
  outline: none;
  border-color: var(--comic-yellow);
}

.img-card-result {
  position: relative;
  min-height: 200px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-card-result img {
  width: 100%;
  height: auto;
  display: block;
}

.img-card-result .placeholder {
  color: #444;
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.img-gen-btn {
  display: block;
  width: 100%;
  background: var(--comic-red);
  color: #fff;
  border: none;
  padding: 0.6rem;
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.img-gen-btn:hover { background: #c0392b; }
.img-gen-btn:disabled { background: #555; cursor: wait; }

/* ============ STEP 4: COMIC READER ============ */

.comic-reader {
  max-width: 800px;
  margin: 0 auto;
}

.comic-page {
  margin-bottom: 1.5rem;
  border: 4px solid var(--comic-panel-border);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
  position: relative;
  background: #000;
}

.comic-page img {
  width: 100%;
  height: auto;
  display: block;
}

.comic-page-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--comic-red);
  color: #fff;
  font-family: 'Bangers', cursive;
  padding: 4px 12px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  z-index: 2;
}

.comic-page-caption {
  background: var(--comic-caption);
  color: #222;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-top: 3px solid var(--comic-panel-border);
}

/* ============ CHARACTER CARDS ============ */

.char-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 215, 0, 0.05);
  border: 2px solid var(--comic-yellow);
  border-radius: 8px;
}

.char-section-title {
  font-family: 'Bangers', cursive;
  font-size: 1.3rem;
  color: var(--comic-yellow);
  margin: 0 0 0.3rem;
  letter-spacing: 1px;
}

.char-section-desc {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 1rem;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.char-card {
  background: var(--comic-panel-bg);
  border: 2px solid var(--comic-panel-border);
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.char-card-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--comic-yellow);
}

.char-card-detail {
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.4;
}

.char-card-ref {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.char-card-ref img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.char-ref-btn {
  width: 100%;
  padding: 0.5rem;
  background: transparent;
  border: 2px solid var(--comic-yellow);
  color: var(--comic-yellow);
  font-family: 'Bangers', cursive;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
}

.char-ref-btn:hover { background: rgba(255, 215, 0, 0.1); }
.char-ref-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============ STORYBOARD TAGS ============ */

.sb-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  margin: 0.15rem 0.2rem;
  font-weight: 600;
}

.sb-shot {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.4);
}

.sb-angle {
  background: rgba(155, 89, 182, 0.2);
  color: #9b59b6;
  border: 1px solid rgba(155, 89, 182, 0.4);
}

.sb-mood {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.sb-emotion {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.4);
}

/* ============ QUOTA DISPLAY ============ */

.quota-bar {
  position: fixed;
  bottom: 52px;
  left: 0;
  right: 0;
  z-index: 10001;
  background: rgba(15, 15, 26, 0.95);
  border-top: 1px solid #333;
  padding: 0.4rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.75rem;
  color: #666;
}

.quota-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quota-item .count { color: var(--comic-yellow); font-weight: 700; }

/* ============ LOADING ============ */

.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #333;
  border-top-color: var(--comic-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.generating-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 10;
}

.generating-overlay .loading-spinner {
  width: 40px;
  height: 40px;
}

.generating-overlay p {
  color: #888;
  font-size: 0.9rem;
}

/* ============ CTA ============ */

.cta-bar {
  background: linear-gradient(135deg, var(--comic-red), #c0392b);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
  border: 3px solid #222;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.cta-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.05) 10px, rgba(0,0,0,0.05) 20px);
}

.cta-bar * { position: relative; z-index: 1; }

.cta-bar h3 {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  color: var(--comic-yellow);
  letter-spacing: 2px;
  margin-bottom: 0.3rem;
}

.cta-bar p { color: rgba(255,255,255,0.9); font-size: 0.95rem; }

.cta-bar a {
  display: inline-block;
  background: var(--comic-yellow);
  color: var(--comic-dark);
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  padding: 0.6rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 2px;
  margin-top: 0.8rem;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}

/* ============ FIXED FOOTER BAR ============ */

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--comic-dark);
  border-top: 3px solid var(--comic-red);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

footer a { color: var(--comic-yellow); text-decoration: none; }

.footer-cta-text {
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  color: #ccc;
  letter-spacing: 1px;
}

.footer-cta-btn {
  display: inline-block;
  background: var(--comic-red);
  color: #fff;
  font-family: 'Bangers', cursive;
  font-size: 0.9rem;
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.footer-cta-btn:hover {
  transform: translate(-1px, -1px);
  color: #fff;
}

/* pad bottom of page content so it's not hidden behind fixed footer */
body { padding-bottom: 50px; }

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
  .landing h1 { font-size: 2.5rem; }
  .landing-step { width: 110px; padding: 0.8rem 0.5rem; }
  .step-panel { padding: 1.5rem 1rem 3rem; }
  .step-header h2 { font-size: 1.8rem; }
  .text-input-area { min-height: 300px; font-size: 0.95rem; }
  .progress-step { font-size: 0.75rem; padding: 0.6rem 0.3rem; }
  .intro-title h1 { font-size: 3rem; }
}

/* ============ DEMO BADGE ============ */

.demo-badge {
  display: inline-block;
  background: var(--comic-yellow);
  color: var(--comic-dark);
  font-family: 'Bangers', cursive;
  font-size: 0.8rem;
  padding: 0.2rem 0.8rem;
  border-radius: 3px;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* Existing storyboard from showcase */
.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--comic-yellow);
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  letter-spacing: 1px;
  text-decoration: none;
  border: 1px solid var(--comic-yellow);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  transition: background 0.2s;
}

.showcase-link:hover {
  background: rgba(245,197,24,0.1);
}

/* ============ SUBSCRIBE MODAL ============ */
.subscribe-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.subscribe-card {
  background: var(--comic-dark);
  border: 3px solid var(--comic-red);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.subscribe-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #888;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}
.subscribe-close:hover { color: #fff; }

.subscribe-card h3 {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  color: var(--comic-yellow);
  text-shadow: 2px 2px 0 var(--comic-red);
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  text-align: center;
}

.subscribe-card p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.subscribe-card form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.subscribe-card input[type="email"],
.subscribe-card select {
  padding: 0.8rem 1rem;
  border: 2px solid #444;
  border-radius: 6px;
  background: var(--comic-darker);
  color: #e0e0e0;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.subscribe-card input[type="email"]:focus,
.subscribe-card select:focus {
  border-color: var(--comic-yellow);
}

.subscribe-card select {
  cursor: pointer;
}

.subscribe-btn {
  padding: 0.8rem;
  background: var(--comic-red);
  color: #fff;
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  letter-spacing: 2px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.subscribe-btn:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.4);
}

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

.subscribe-result {
  text-align: center;
  padding: 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.subscribe-alt {
  margin-top: 1.2rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #888;
}

.subscribe-alt a {
  color: var(--comic-yellow);
  text-decoration: none;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
  margin-left: 0.5rem;
}

.subscribe-alt a:hover {
  text-decoration: underline;
}
