/* ─────────────────────────────────────────────────────────────────────────────
   Design System — "General Intelligence Company"
   Tokens: colors, typography, spacing, radius, shadows, layout
   Fonts: PPMondwest (headings) | DM Sans (body — closest structural match to 'af')
───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --color-night-sky:     #1f1f29;
  --color-cofounder-blue: #0081c0;
  --color-action-azure:  #41a1cf;
  --color-pitch-black:   #000000;
  --color-canvas-white:  #ffffff;
  --color-off-white:     #fefffc;
  --color-ash-gray:      #f9faf7;
  --color-cool-gray:     #eef1ed;
  --color-steel-gray:    #dee2de;
  --color-dark-charcoal: #171717;
  --color-charcoal:      #2c2c2c;
  --color-rich-black:    #282834;
  --color-slate-gray:    #444141;
  --color-medium-gray:   #646464;
  --color-light-gray:    #b4b8b4;

  /* Aliases (existing usage in theme.css) */
  --bg:              #0f0f1a;
  --bg-2:            #13131f;
  --accent:          #e8a83e;
  --accent-dim:      rgba(232, 168, 62, 0.15);
  --lavender:        #c8c4e8;
  --lavender-dim:    rgba(200, 196, 232, 0.08);
  --cream:           #f5f0e8;
  --cream-dim:       rgba(245, 240, 232, 0.7);
  --muted:           #7a7899;
  --night-sky:       #1f1f29;
  --action-azure:    #41a1cf;
  --canvas-white:    #ffffff;
  --dark-charcoal:   #171717;

  /* Typography scale */
  --font-caption:       13px;
  --font-button-label:  16px;
  --font-subheading:    18px;
  --font-heading:       40px;
  --font-heading-lg:    48px;
  --font-display:       54px;

  /* Font families */
  /* 'af' = DM Sans (closest structural match: same x-height, weight spread, spacing specs) */
  --font-heading:  'PPMondwest', 'PP Mondwest', Georgia, serif;
  --font-display:  'PPMondwest', 'PP Mondwest', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  /* Spacing (4px base unit) */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;

  /* Border radius */
  --radius-nav:        50.496px;
  --radius-button:     4px;
  --radius-cards-large: 24px;
  --radius-cards-medium: 16px;
  --radius-cards-small: 12px;
  --radius-nav-items-sm: 8px;

  /* Shadows */
  --shadow-sm:       0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-subtle:   0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-subtle-2: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-subtle-3: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-sm-2:      0 1px 3px rgba(0, 0, 0, 0.06);

  /* Layout */
  --layout-section-gap:  32px;
  --layout-card-padding: 16px;
  --layout-element-gap:   8px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Base heading defaults — PPMondwest */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.0200em;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(31, 31, 41, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50.496px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 8px 0px;
  margin: 12px 16px;
  padding: 10px 20px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--canvas-white);
  letter-spacing: 0.01em;
}
.nav-items {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.12); color: var(--canvas-white); }
.nav-cta {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--canvas-white);
  background: var(--night-sky);
  border: 1px solid #282834;
  border-radius: 8px;
  padding: 7px 16px;
  cursor: pointer;
  margin-left: 8px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* Responsive nav */
@media (max-width: 640px) {
  .nav-items .nav-item { display: none; }
  .nav { margin: 8px 10px; }
}

/* Demo CTA waitlist form — light background override */
.demo-cta-inner .waitlist-input {
  background: #ffffff;
  border-color: rgba(23, 23, 23, 0.15);
  color: #171717;
}
.demo-cta-inner .waitlist-input::placeholder { color: #a0a0a0; }
.demo-cta-inner .waitlist-input:focus { border-color: #41a1cf; }
.demo-cta-inner .waitlist-btn {
  background: #1f1f29;
  color: #ffffff;
}
.demo-cta-inner .waitlist-btn:hover { opacity: 0.85; }
.demo-cta-inner .waitlist-success { color: #0081c0; }

/* ── Hero — Night Sky dark restyle ─────────────────────────────────────────── */
.hero {
  background-color: var(--night-sky);
  background-image: linear-gradient(rgba(31, 31, 41, 0.45), rgba(31, 31, 41, 0.45)), url('https://pub-629428d185ca4960a0a73c850d32294b.r2.dev/company_168086/images/9daf81f4-016c-4cda-8cfc-d77f0b0db4fa.jpeg');
  background-size: cover;
  background-position: center;
  padding: 100px 2rem 100px;
  border-bottom: 1px solid rgba(65, 161, 207, 0.08);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.hero-text {
  max-width: 800px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--action-azure);
  margin-bottom: 1.5rem;
  font-weight: 500;
  opacity: 0.9;
}
.hero-headline {
  font-family: 'PP Mondwest', var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--canvas-white);
  letter-spacing: -1.08px;
  margin-bottom: 1.5rem;
}
.hero-lede {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--canvas-white);
  line-height: 1.2;
  max-width: 58ch;
  margin: 0 auto 2rem;
  opacity: 0.85;
}

/* Hero CTA */
.hero-cta {
  display: inline-block;
  background: var(--night-sky);
  color: var(--canvas-white);
  border: 1px solid #282834;
  border-radius: 6px;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
  margin-top: 0.25rem;
}
.hero-cta:hover { opacity: 0.85; }

/* Hero overlay card — for any content blocks on the hero */
.hero-overlay-card {
  background: rgba(222, 226, 222, 0.16);
  border-radius: 24px;
  padding: 16px;
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero { padding: 70px 1.5rem 70px; }
  .hero-headline { font-size: 36px; letter-spacing: -0.8px; }
  .hero-lede { font-size: 16px; }
  .hero-text { max-width: 100%; }
}

/* ── LANDING BODY SECTIONS — Light Theme ──────────────────────────────────── */

/* Section heading (PPMondwest, 40px) */
.section-heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: #000000;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.section-subhead {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #646464;
  font-style: italic;
  margin-bottom: 3rem;
  line-height: 1.5;
}

/* How */
.how {
  background: #ffffff;
  padding: 5rem 2rem;
}
.how-inner { max-width: 1200px; margin: 0 auto; }
.how-heading-row {
  margin-bottom: 3rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}
.step {
  background: #fefffc;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: rgba(0,0,0,0.08) 0px 1px 1px 0px, rgba(0,0,0,0.08) 0px 4px 5px 0px;
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: #646464;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 0.75rem;
}
.step-body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #171717;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

/* Value */
.value {
  background: #fefffc;
  padding: 5rem 2rem;
}
.value-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.value-heading-row {
  margin-bottom: 3rem;
}
.value-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.value-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: rgba(0,0,0,0.08) 0px 1px 1px 0px, rgba(0,0,0,0.08) 0px 4px 5px 0px;
}
.value-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: #f9faf7;
}
.value-icon svg path,
.value-icon svg circle { stroke: #171717; }
.value-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 0.75rem;
}
.value-body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #171717;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

/* Modes */
.modes {
  background: #ffffff;
  padding: 5rem 2rem;
}
.modes-inner { max-width: 1200px; margin: 0 auto; }
.mode-heading-row {
  margin-bottom: 3rem;
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 0;
}
.mode-card {
  background: #fefffc;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: rgba(0,0,0,0.08) 0px 1px 1px 0px, rgba(0,0,0,0.08) 0px 4px 5px 0px;
}
.mode-card-accent { background: #f9faf7; }
.mode-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #646464;
  font-weight: 500;
  margin-bottom: 1rem;
}
.mode-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 0.75rem;
}
.mode-body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #171717;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

/* Stories */
.stories {
  background: #ffffff;
  padding: 5rem 2rem;
}
.stories-inner { max-width: 720px; margin: 0 auto; }
.stories-heading-row {
  margin-bottom: 0.5rem;
}
.stories-intro {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #646464;
  font-style: italic;
  margin-bottom: 3rem;
  line-height: 1.5;
}
.story-card {
  background: #fefffc;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: rgba(0,0,0,0.08) 0px 1px 1px 0px, rgba(0,0,0,0.08) 0px 4px 5px 0px;
}
.story-block { margin-bottom: 0; }
.story-header {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 0.5rem;
}
.story-moments {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #646464;
  font-style: italic;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.story-body p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #171717;
  line-height: 1.8;
  margin-bottom: 1.1em;
  letter-spacing: -0.012em;
}
.story-body p:last-of-type { margin-bottom: 0; }
.story-signoff {
  font-style: italic;
  color: #646464 !important;
  font-size: 0.9rem !important;
  margin-top: 1.5em !important;
}
.story-saga-cta {
  color: #646464 !important;
  font-size: 0.9rem !important;
  margin-top: 1.5em !important;
}
.story-divider {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid #dee2de;
  margin-bottom: 2rem;
}
.story-divider-ornament {
  font-size: 0.85rem;
  color: #a0a0a0;
  letter-spacing: 0.4em;
}
.stories-closing-note {
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  color: #646464;
  padding-top: 2.5rem;
  border-top: 1px solid #dee2de;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

/* Manifesto */
.manifesto {
  background: #fefffc;
  padding: 5rem 2rem;
  border-top: 1px solid #dee2de;
}
.manifesto-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: #171717;
  line-height: 1.4;
  margin-bottom: 2rem;
  letter-spacing: -0.3px;
}
.manifesto-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #646464;
  line-height: 1.65;
  letter-spacing: -0.012em;
}

/* Closing */
.closing {
  background: #ffffff;
  padding: 6rem 2rem;
  border-top: 1px solid #dee2de;
}
.closing-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: #000000;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.closing-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #171717;
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.65;
  letter-spacing: -0.012em;
}

/* Footer */
.footer {
  border-top: 1px solid #dee2de;
  padding: 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font-family: var(--font-body);
  font-weight: 600;
  color: #171717;
  font-size: 0.95rem;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #646464;
}

/* Waitlist form — shared component for light-background CTA sections */
.waitlist-wrap { max-width: 480px; }
.waitlist-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
/* Ghost Input Field */
.waitlist-input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1rem;
  border-radius: 0px;
  border: 1px solid transparent;
  background: #f9faf7;
  color: #444141;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  border-bottom: 1px solid rgba(23,23,23,0.15);
}
.waitlist-input::placeholder { color: #a0a0a0; }
.waitlist-input:focus { border-bottom-color: #41a1cf; }
/* Solid Dark Button */
.waitlist-btn {
  white-space: nowrap;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  border: 1px solid #282834;
  background: #1f1f29;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.waitlist-btn:hover { opacity: 0.88; }
.waitlist-btn:disabled { opacity: 0.6; cursor: default; }
.waitlist-error {
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #d94f3e;
}
.waitlist-success {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #1f1f29;
  font-weight: 500;
  padding: 0.5rem 0;
}
/* Light CTA override (stories, manifesto, closing) */
.stories-waitlist,
.closing-waitlist {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #dee2de;
  display: flex;
  justify-content: center;
}
.stories-waitlist .waitlist-wrap,
.closing-waitlist .waitlist-wrap {
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.stories-waitlist .waitlist-row,
.closing-waitlist .waitlist-row { justify-content: center; }

/* Responsive */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .value-cards-grid { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .how, .value, .modes, .manifesto, .closing, .stories { padding: 3.5rem 1.5rem; }
  .story-card { padding: 1.5rem; }
  .section-heading { font-size: 2rem; }
}
/* ── Demo section ──────────────────────────────────────────────────────────── */
.demo {
  background: #ffffff;
  padding: 5rem 2rem;
  border-top: 1px solid rgba(23, 23, 23, 0.07);
  border-bottom: 1px solid rgba(23, 23, 23, 0.07);
}
.demo-inner { max-width: 760px; margin: 0 auto; }

.demo-header { text-align: center; margin-bottom: 3.5rem; }
.demo-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0081c0;
  font-weight: 500;
  margin-bottom: 1rem;
}
.demo-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: #171717;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.demo-subhead {
  font-size: 1rem;
  color: #646464;
  line-height: 1.65;
  max-width: 52ch;
  margin: 0 auto;
}

/* Step visibility */
.demo-step-hidden { display: none !important; }

/* Step labels */
.demo-step-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

/* Profile cards */
.demo-profiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.demo-profile-card {
  background: #f9faf7;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.demo-profile-card:hover {
  border-color: #41a1cf;
  box-shadow: 0 2px 8px rgba(65, 161, 207, 0.15);
}
.demo-profile-selected {
  border-color: #0081c0 !important;
  background: #0081c0 !important;
}
.demo-profile-selected .demo-profile-name,
.demo-profile-selected .demo-profile-age,
.demo-profile-selected .demo-profile-tags { color: #ffffff; }
.demo-profile-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #171717;
}
.demo-profile-age {
  font-size: 0.82rem;
  color: #646464;
}
.demo-profile-tags {
  font-size: 0.78rem;
  color: #a0a0a0;
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* Moment input */
#demo-step-moment { margin-top: 2.5rem; }
.demo-moment-surface {
  background: #f9faf7;
  border: 1px solid rgba(23, 23, 23, 0.07);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.demo-voice-row { display: flex; align-items: center; gap: 1rem; }
.demo-voice-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #646464;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.demo-voice-btn:hover {
  border-color: rgba(23, 23, 23, 0.25);
  background: rgba(255, 255, 255, 0.18);
}
.demo-voice-recording {
  border-color: #e0503e !important;
  color: #e0503e !important;
  background: rgba(224, 80, 62, 0.06) !important;
}
.demo-voice-status { font-size: 0.82rem; color: #646464; }
.demo-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #646464;
  font-size: 0.8rem;
}
.demo-or::before, .demo-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(23, 23, 23, 0.1);
}
.demo-moment-input {
  width: 100%;
  background: #f9faf7;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 0px;
  padding: 0.85rem 1rem;
  color: #171717;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.demo-moment-input::placeholder { color: #a0a0a0; }
.demo-moment-input:focus { border-color: #41a1cf; }
.demo-moment-hint { font-size: 0.82rem; color: #e0503e; min-height: 1.2em; }
.demo-weave-btn {
  align-self: flex-start;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  border: 1px solid #41a1cf;
  background: transparent;
  color: #171717;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.demo-weave-btn:hover:not(:disabled) { background: #41a1cf; color: #ffffff; }
.demo-weave-btn:disabled { opacity: 0.4; cursor: default; border-color: rgba(23,23,23,0.2); }

/* Loading — use ID selector to match the element; no !important so .demo-step-hidden wins */
#demo-step-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
  margin-top: 2rem;
}
.demo-loading-inner { text-align: center; }
.demo-loading-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(65, 161, 207, 0.2);
  border-top-color: #41a1cf;
  border-radius: 50%;
  animation: demo-spin 0.9s linear infinite;
  margin: 0 auto 1.25rem;
}
@keyframes demo-spin { to { transform: rotate(360deg); } }
.demo-loading-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: #646464;
}

/* Playback */
#demo-step-play { margin-top: 2rem; }
.demo-play-header { margin-bottom: 1.5rem; }
.demo-story-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: #171717;
  margin-bottom: 1rem;
}
.demo-audio-controls { display: flex; align-items: center; gap: 1rem; }
.demo-play-pause {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(23, 23, 23, 0.12);
  background: #f9faf7;
  color: #171717;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.demo-play-pause:hover { background: #eef0ec; }
.demo-progress-wrap { flex: 1; display: flex; align-items: center; gap: 0.75rem; }
.demo-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(23, 23, 23, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.demo-progress-fill {
  height: 100%;
  background: #41a1cf;
  border-radius: 2px;
  width: 0;
  transition: width 0.5s linear;
}
.demo-time-current { font-size: 0.78rem; color: #646464; white-space: nowrap; }
.demo-story-text {
  max-height: 260px;
  overflow-y: auto;
  border-top: 1px solid rgba(23, 23, 23, 0.07);
  padding-top: 1.25rem;
  margin-top: 1rem;
}
.demo-story-text p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #646464;
  line-height: 1.8;
  margin-bottom: 1em;
}
.demo-story-text p:last-child { margin-bottom: 0; }

/* Post-demo CTA */
#demo-step-cta { margin-top: 2rem; }
.demo-cta-inner {
  background: #f9faf7;
  border: 1px solid rgba(65, 161, 207, 0.2);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
}
.demo-cta-headline {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: #171717;
  margin-bottom: 0.6rem;
}
.demo-cta-body {
  font-size: 0.95rem;
  color: #646464;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.demo-cta-inner .waitlist-wrap { margin: 0 auto; }
.demo-cta-inner .waitlist-row { justify-content: center; }
.demo-try-again {
  margin-top: 1.25rem;
  background: none;
  border: none;
  color: #a0a0a0;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-try-again:hover { color: #646464; }

/* Rate limit state */
.demo-ratelimit-inner {
  text-align: center;
  padding: 2.5rem;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 12px;
}
.demo-ratelimit-text {
  font-size: 0.95rem;
  color: #646464;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Demo responsive */
@media (max-width: 640px) {
  .demo-profiles { grid-template-columns: 1fr; }
  .demo-cta-inner { padding: 1.75rem 1.25rem; }
  .demo { padding: 3.5rem 1.5rem; }
  .demo-story-text { max-height: 200px; }
}
