/* Economics of AI — Interactive Learning Resource */
/* Editorial aesthetic: Spectral + Inter, blue-gray-teal palette */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Design Tokens ── */
:root {
  /* Palette */
  --navy: #1e3a5f;
  --teal: #3d7a9c;
  --teal-light: #5299b8;
  --teal-subtle: rgba(61, 122, 156, 0.08);
  --teal-glow: rgba(61, 122, 156, 0.15);

  --bg: #f5f7fa;
  --bg-warm: #eef1f6;
  --card: #ffffff;
  --text: #1a2332;
  --text-secondary: #4a5568;
  --text-muted: #7b8a9e;
  --border: #d4dae3;
  --border-light: #e8ecf1;
  --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.06);
  --shadow-md: 0 4px 16px rgba(30, 58, 95, 0.08);
  --shadow-lg: 0 8px 30px rgba(30, 58, 95, 0.10);

  /* Typography */
  --font-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

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

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--teal-light);
}

code {
  font-size: 0.88em;
  background: var(--bg-warm);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: var(--navy);
}

/* ── Header ── */
.header {
  background: #2d5a7a;
  color: #fff;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.12);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hamburger {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.hamburger:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.header-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.header-title-link {
  color: inherit;
  text-decoration: none;
}

.header-title-link:hover {
  color: inherit;
  opacity: 0.85;
}

.header-progress {
  font-size: 0.82rem;
  opacity: 0.7;
  font-weight: 500;
}

/* ── Navigation Drawer ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 35, 50, 0.4);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: var(--card);
  z-index: 201;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(30, 58, 95, 0.12);
  border-right: 1px solid var(--border-light);
}

.nav-drawer.open {
  left: 0;
}

.nav-header {
  background: #2d5a7a;
  color: #fff;
  padding: 1.5rem 1.25rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-list {
  list-style: none;
  padding: var(--space-sm) 0;
}

.nav-list li a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.nav-list li a:hover,
.nav-list li a.active {
  background: var(--teal-subtle);
  border-left-color: var(--teal);
  color: var(--teal);
}

.nav-list li a.section-divider {
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-top: 1.25rem;
  padding-bottom: 0.35rem;
  pointer-events: none;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 8px rgba(61, 122, 156, 0.25);
}

.btn-primary:hover {
  background: var(--teal-light);
  box-shadow: 0 4px 12px rgba(61, 122, 156, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(61, 122, 156, 0.2);
}

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

.btn-secondary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #254a75;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 8px rgba(61, 122, 156, 0.2);
}

.btn-outline:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: transparent;
  color: var(--teal);
  box-shadow: none;
}

/* ── Main Content ── */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-md);
}

/* Desktop: two-column layout for slides + notes panel */
@media (min-width: 961px) {
  .main.page-content {
    max-width: 1280px;
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .main.page-content .slide-container {
    flex: 0 0 65%;
    max-width: 65%;
  }

  .main.page-content .custom-prompt-panel {
    flex: 0 0 calc(35% - var(--space-lg));
    position: sticky;
    top: 70px; /* header height + gap */
    align-self: flex-start;
    margin-top: 0;
    padding-left: var(--space-md);
    border-left: 1px solid var(--border-light);
  }

  .main.page-content .custom-prompt-textarea {
    min-height: 200px;
  }
}

/* ══════════════════════════════════════════
   INDEX PAGE — Intro + Intake Form
   ══════════════════════════════════════════ */

/* Layout wrapper — stacks on mobile, side-by-side on desktop */
.intro-layout {
  max-width: 580px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
}

.intro-section {
  margin-bottom: var(--space-xl);
}

.intro-section h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.intro-section .intro-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--teal-subtle);
  border: 1px solid rgba(61, 122, 156, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  margin-bottom: var(--space-lg);
}

.intro-section p {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.intro-section p:last-of-type {
  margin-bottom: 0;
}

/* Intake Card */
.intake-container {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.intake-container h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.intake-container .subtitle {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}

/* Form */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group label .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 88px;
}

.form-group .hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.45;
}

.intake-privacy {
  margin-top: var(--space-lg);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ══════════════════════════════════════════
   SLIDES PAGE
   ══════════════════════════════════════════ */

.slide-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.slide-image-wrapper {
  position: relative;
  width: 100%;
  background: var(--navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.slide-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hotspot Circles */
.hotspot-circle {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(30, 58, 95, 0.25);
  color: rgba(30, 58, 95, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(30, 58, 95, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  user-select: none;
}

/* Invisible hover bridge — extends hit area so cursor can reach the tooltip */
.hotspot-circle::after {
  content: '';
  position: absolute;
  inset: -14px;
}

.hotspot-circle:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 3px 14px rgba(61, 122, 156, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%) scale(1.12);
}

/* Hotspot — Master circle variant */
.hotspot-circle.hotspot-master {
  width: 34px;
  height: 34px;
  background: rgba(30, 58, 95, 0.3);
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  border-width: 2px;
}

.hotspot-circle.hotspot-master:hover {
  background: var(--teal);
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
}

/* ── Hotspot Tooltip (frosted glass) ── */
.hotspot-tooltip {
  position: absolute;
  background: rgba(26, 40, 58, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.88);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  width: auto;
  min-width: 200px;
  max-width: min(420px, 80vw);
  max-height: 70vh;
  overflow-y: auto;
  white-space: normal;
  text-align: left;
  z-index: 20;
  box-shadow: 0 8px 32px rgba(20, 30, 50, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tooltip arrow — shared base */
.hotspot-tooltip::before {
  content: '';
  position: absolute;
  border: 7px solid transparent;
}

/* Default: tooltip below the circle */
.hotspot-tooltip.tooltip-below {
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
}

.hotspot-tooltip.tooltip-below::before {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: rgba(26, 40, 58, 0.82);
}

/* Above the circle */
.hotspot-tooltip.tooltip-above {
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
}

.hotspot-tooltip.tooltip-above::before {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: rgba(26, 40, 58, 0.82);
}

/* Shift right (circle near left edge) */
.hotspot-tooltip.tooltip-shift-right {
  left: -10px;
  transform: translateX(0);
}

.hotspot-tooltip.tooltip-shift-right::before {
  left: 22px;
  transform: none;
}

/* Shift left (circle near right edge) */
.hotspot-tooltip.tooltip-shift-left {
  left: auto;
  right: -10px;
  transform: translateX(0);
}

.hotspot-tooltip.tooltip-shift-left::before {
  left: auto;
  right: 22px;
  transform: none;
}

/* Tooltip scrollbar styling */
.hotspot-tooltip::-webkit-scrollbar {
  width: 4px;
}

.hotspot-tooltip::-webkit-scrollbar-track {
  background: transparent;
}

.hotspot-tooltip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.hotspot-circle:hover .hotspot-tooltip,
.hotspot-tooltip:hover {
  opacity: 1;
  pointer-events: auto;
}

/* Slide Navigation */
.slide-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-md);
  gap: var(--space-md);
}

.slide-nav .btn {
  min-width: 100px;
}

/* Mobile Prompt List */
.mobile-prompts {
  display: none;
  margin-top: var(--space-md);
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.mobile-prompts h3 {
  padding: 0.7rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-warm);
}

.mobile-prompt-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-prompt-item:last-child {
  border-bottom: none;
}

.mobile-prompt-item:hover {
  background: var(--teal-subtle);
  color: var(--text);
}

.mobile-prompt-item:active {
  background: var(--teal-glow);
}

.mobile-prompt-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .mobile-prompts {
    display: block;
  }
}

/* ── Custom Prompt Panel ── */
.custom-prompt-panel {
  margin-top: var(--space-md);
}

.custom-prompt-heading {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.custom-prompt-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.6;
  resize: vertical;
}

.custom-prompt-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.custom-prompt-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

/* ── Footer Bar ── */
.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 0.6rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  box-shadow: 0 -2px 8px rgba(30, 58, 95, 0.05);
}

.footer-bar .prompt-count {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-bar .prompt-count strong {
  color: var(--teal);
  font-weight: 700;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 300;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.25);
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════
   HELP PAGE
   ══════════════════════════════════════════ */

.help-container {
  max-width: 620px;
  margin: var(--space-xl) auto var(--space-2xl);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.help-container h1 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.help-container .help-subtitle {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  font-size: 0.92rem;
  line-height: 1.55;
}

.help-container h2 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.help-container ul {
  padding-left: 1.25rem;
  margin-bottom: var(--space-md);
}

.help-container li {
  margin-bottom: var(--space-sm);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.help-container .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(61, 122, 156, 0.25);
}

.help-steps {
  list-style: none;
  padding: 0;
}

.help-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.help-container .help-back {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

/* ── Contact Card ── */
.contact-card {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.contact-card h2 {
  margin-top: 0;
}

.contact-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

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

/* ── FAQ ── */
.faq-item {
  margin-bottom: var(--space-lg);
}

.faq-item h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Preview Modal ── */
.preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 35, 50, 0.6);
  backdrop-filter: blur(3px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
}

.preview-overlay.open {
  display: flex;
}

.preview-modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  width: 90vw;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(30, 58, 95, 0.2);
  border: 1px solid var(--border-light);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.preview-header h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.preview-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.preview-close:hover {
  color: var(--text);
  background: var(--bg-warm);
}

.preview-body {
  overflow-y: auto;
  padding: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.preview-body::-webkit-scrollbar {
  width: 5px;
}

.preview-body::-webkit-scrollbar-track {
  background: transparent;
}

.preview-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* Help page action buttons */
.help-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.help-actions .btn {
  flex: 1;
}

.help-empty-note {
  text-align: center;
  padding: var(--space-lg);
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── Spacing for fixed footer ── */
.page-content {
  padding-bottom: var(--space-3xl);
}

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

@media (max-width: 640px) {
  .header {
    padding: 0.7rem 1rem;
  }

  .header-title {
    font-size: 0.92rem;
  }

  .intro-layout {
    padding: var(--space-xl) var(--space-md) var(--space-lg);
  }

  .intro-section h1 {
    font-size: 1.55rem;
  }

  .intro-section p {
    font-size: 1rem;
  }

  .intake-container {
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .help-container {
    margin: var(--space-md);
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .slide-nav .btn {
    min-width: 80px;
    font-size: 0.85rem;
    padding: 0.55rem 0.85rem;
  }

  .hotspot-circle {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  .hotspot-circle.hotspot-master {
    width: 30px;
    height: 30px;
  }

  .hotspot-tooltip {
    min-width: 160px;
    max-width: min(300px, 80vw);
    max-height: 60vh;
    font-size: 0.68rem;
    padding: 0.6rem 0.8rem;
  }

  .footer-bar {
    padding: 0.55rem 1rem;
  }
}

/* Tablet — tighter single column, reduced spacing to minimize scroll */
@media (min-width: 641px) and (max-width: 960px) {
  .intro-layout {
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
  }

  .intro-section {
    margin-bottom: var(--space-md);
  }

  .intro-section p {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: var(--space-sm);
  }

  .form-group {
    margin-bottom: var(--space-md);
  }
}

/* Desktop — side-by-side layout, fits in one viewport */
@media (min-width: 961px) {
  .intro-layout {
    max-width: 1060px;
    display: flex;
    align-items: flex-start;
    gap: var(--space-2xl);
    padding: var(--space-2xl) var(--space-xl);
    min-height: calc(100vh - 48px); /* below header if present */
    align-items: center;
  }

  .intro-section {
    flex: 1;
    margin-bottom: 0;
  }

  .intro-section .intro-badge {
    margin-bottom: var(--space-md);
  }

  .intro-section h1 {
    font-size: 1.85rem;
  }

  .intro-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
  }

  .intake-container {
    flex: 0 0 400px;
    padding: var(--space-lg) var(--space-lg) var(--space-md);
  }

  .intake-container h2 {
    font-size: 1.15rem;
  }

  .form-group {
    margin-bottom: var(--space-md);
  }

  .form-group textarea {
    min-height: 72px;
  }
}
