/* =========================================
   VOX DATA SITE — style.css
   Direction: David AI aesthetic
   ========================================= */

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

:root {
  --bg:          #efede6;
  --bg-light:    #f5f3ed;
  --bg-alt:      #e3dfd5;
  --bg-access:   #eae7e0;
  --bg-footer:   #17150e;
  --border:      #d0cdc5;
  --text:        #1a1a1a;
  --text-body:   #3a3835;
  --text-sec:    #7a7770;
  --text-muted:  #9e9b94;
  --text-dim:    #b5b2aa;
  --sidebar-w:   160px;
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

/* ---- SIDEBAR ---- */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  z-index: 100;
  background: var(--bg);
}

.logo {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 2.5rem;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.nav-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
  display: flex;
  align-items: center;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-bar {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--text);
  margin-right: 0.5rem;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}

.nav-link.active .nav-bar,
.nav-link:hover .nav-bar {
  opacity: 1;
}

/* ---- MAIN ---- */

.main {
  margin-left: var(--sidebar-w);
}

/* ---- HERO ---- */

.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
}

.hero-inner {
  padding: 5rem 7rem 5rem 4rem;
  max-width: 860px;
}

.hero-viz {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 72px;
  margin-bottom: 3.5rem;
}

.viz-bar {
  width: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}

.viz-gap {
  width: 10px;
  flex-shrink: 0;
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.hero-h1 em {
  font-style: italic;
  color: var(--text-sec);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 380px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  padding: 0.65rem 1.5rem;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.15s;
}

.cta-pill:hover {
  background: #333;
}

.cta-arrow {
  font-size: 0.72rem;
  opacity: 0.55;
}

/* ---- STATS BAR (removed) ---- */

.stats-bar { display: none; }

.stat {
  padding: 1.75rem 2.5rem 1.75rem 0;
  flex-shrink: 0;
}

.stat:not(:last-child) {
  padding-right: 2.5rem;
  margin-right: 2.5rem;
  border-right: 1px solid var(--border);
}

.stat-n {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-n em {
  font-style: italic;
  font-size: 1.4rem;
}

.stat-l {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- DIVIDER ---- */

.divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 0 2rem;
  gap: 0.55rem;
}

.divider-line {
  width: 1px;
  height: 44px;
  background: var(--border);
}

.divider-num {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.divider-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sec);
}

/* Simple divider — no number circle */
.divider-simple {
  padding: 2.5rem 0 1.5rem;
}

.divider-simple .divider-line {
  height: 32px;
}

/* ---- MISSION ---- */

.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--sans);
  margin-bottom: 1.25rem;
}

.section-text {
  padding: 2rem 7rem 5rem 4rem;
}

.section-text-inner {
  max-width: 780px;
}

.section-h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.section-h2 em {
  font-style: italic;
  color: var(--text-sec);
}

.section-body {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  max-width: 520px;
  font-weight: 400;
}

/* ---- DATASETS ---- */

.section-datasets {
  padding: 0 0 4rem;
}

.shelf-label {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.ds-section-label {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-sec);
  padding: 2.5rem 4rem 1rem;
  border-top: 1px solid var(--border);
}

.datasets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 4rem;
}

.dataset-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
}

.dataset-card:hover {
  background: rgba(255,255,255,0.55);
}

.ds-badge {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-sec);
}

.ds-mark {
  width: 28px;
  height: 3px;
  background: var(--c, var(--text-sec));
  border-radius: 2px;
  margin-bottom: 1.1rem;
}

.ds-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.ds-stat {
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.ds-detail {
  font-size: 0.74rem;
  color: var(--text-body);
  font-weight: 400;
  line-height: 1.55;
}

/* ---- ON DEMAND ---- */

.on-demand {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 0.5rem;
}

.od-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.od-item {
  flex: 1;
  min-width: 160px;
}

.od-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.od-desc {
  font-size: 0.76rem;
  color: var(--text-body);
  line-height: 1.6;
  font-weight: 400;
}

/* ---- COMING SOON CARDS ---- */

.ds-card-coming {
  opacity: 0.55;
}

/* ---- FULL-WIDTH ON-DEMAND CARDS ---- */

.dataset-card--full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 28px 140px 1fr 2fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
}

.dataset-card--full .ds-mark {
  margin-bottom: 0;
  flex-shrink: 0;
}

.dataset-card--full .ds-name {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.dataset-card--full .ds-stat {
  margin-bottom: 0;
}

.dataset-card--full .ds-detail {
  margin-bottom: 0;
}

/* ---- FEATURED CONVERSATIONS ---- */

.conv-sticky-outer {
  height: 270vh;
  position: relative;
}

.conv-sticky-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.conv-section-tag {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-sec);
  z-index: 2;
}

.conv-chat-area {
  flex: 0 0 58%;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.chat-inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.5rem;
  padding-bottom: 2rem;
  will-change: transform;
}

.conv-info {
  flex: 0 0 42%;
  padding: 0 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
}

.conv-name {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}

.conv-stat {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.65rem;
  line-height: 1.65;
}

.conv-detail {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.8;
  font-weight: 400;
}

.conv-modalities {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.conv-modalities em {
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
}

/* ---- CHAT BUBBLES ---- */

.chat-msg-wrap {
  display: flex;
  position: relative;
}

.chat-msg-wrap--right {
  justify-content: flex-end;
}

.chat-msg-wrap--left {
  justify-content: flex-start;
  align-items: flex-end;
  gap: 7px;
}

.chat-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.85;
}

.chat-bubble {
  max-width: 74%;
  padding: 0.55rem 0.95rem;
  border-radius: 18px;
  font-size: 0.83rem;
  line-height: 1.5;
  position: relative;
  font-family: var(--sans);
  box-shadow: 0 1px 2px rgba(0,0,0,0.07);
}

.chat-bubble--left {
  background: #ffffff;
  color: var(--text);
  border-radius: 18px;
  border: 1px solid var(--border);
}

.chat-bubble--right {
  background: #2a2820;
  color: #f0ede6;
  border-radius: 18px;
}

.chat-bubble--voice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
}

.chat-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
}

.chat-wave-bar {
  width: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}

.chat-voice-dur {
  font-size: 0.65rem;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.chat-play {
  font-size: 0.6rem;
  opacity: 0.65;
  flex-shrink: 0;
}

.chat-bubble--image {
  width: 155px;
  height: 110px;
  padding: 0;
  background: linear-gradient(140deg, #c8c3bb 0%, #d5d0c8 50%, #bfbab2 100%);
  overflow: hidden;
  border-radius: 12px;
}

.chat-bubble--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.06) 0px,
    rgba(255,255,255,0.06) 1px,
    transparent 1px,
    transparent 8px
  );
}

.chat-quote {
  font-size: 0.72rem;
  opacity: 0.5;
  border-left: 2px solid currentColor;
  padding-left: 0.5rem;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.chat-reaction-wrap {
  display: flex;
  gap: 4px;
  padding: 0 4px 4px;
  margin-top: -2px;
  flex-wrap: wrap;
}

.chat-reaction-wrap--right {
  justify-content: flex-end;
}

.chat-reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 7px 2px 5px;
  font-size: 0.75rem;
  cursor: default;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chat-reaction-count {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---- CHAT CONVERSATION HEADERS & SEPARATORS ---- */

.chat-separator {
  height: 1px;
  background: var(--border);
  margin: 0.9rem 0;
}

.chat-conv-header {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sec);
  padding: 0.1rem 0 0.4rem;
}

/* ---- BROWSE MORE CARD ---- */

.browse-card {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.browse-card-body {
  flex: 1;
}

/* legacy – keep for fallback */
.browse-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--border);
  margin: 2.5rem 4rem 0;
  padding-top: 2rem;
  flex-wrap: wrap;
}

.browse-more-title {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.browse-more-desc {
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.65;
  font-weight: 400;
  max-width: 480px;
}

/* ---- ACCESS ---- */

.section-access {
  padding: 2rem 7rem 5rem 4rem;
}

.section-access-inner {
  max-width: 680px;
}

.steps {
  list-style: none;
  margin-top: 2.5rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
  align-items: flex-start;
}

.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-sec);
  width: 1.5rem;
  flex-shrink: 0;
  padding-top: 0.05rem;
}

.step-bonus {
  background: var(--bg-alt);
  margin: 0 -4rem;
  padding-left: 4rem;
  padding-right: 4rem;
  border-top: 1px solid var(--border);
}

.step-num-bonus {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 0.15rem;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
}

.step-link {
  color: var(--text);
  text-underline-offset: 2px;
}

/* ---- FOOTER ---- */

/* ---- SOCIAL PROOF BAND ---- */

.social-proof-band {
  padding: 3.5rem calc(var(--sidebar-w) + 3rem) 3.5rem 4rem;
  background: var(--bg);
  text-align: right;
}

.social-proof-text {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 400;
  color: var(--text-sec);
  line-height: 1.35;
  max-width: none;
}

.social-proof-text em {
  font-style: italic;
  color: var(--text); /* overridden by JS */
  background: none;
}

/* ---- FOOTER ---- */

.footer {
  background: var(--bg-footer);
  padding: 3.5rem 7rem 3.5rem 4rem;
  border-top: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.footer-cta-h {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: #f0ede6;
  margin-bottom: 1.25rem;
}

.footer-cta-h em {
  font-style: italic;
  color: #b8b3a8;
}

.footer .cta-pill {
  background: #f0ede6;
  color: var(--bg-footer);
}

.footer .cta-pill:hover {
  background: #fff;
}

.footer-right {
  text-align: right;
}

.footer-copy {
  font-size: 0.76rem;
  color: #4a4740;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.76rem;
  color: #6a6760;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #a0a09a;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
  }

  .logo {
    margin-bottom: 0;
    margin-right: auto;
  }

  .nav-list {
    flex-direction: row;
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.72rem;
    padding: 0.4rem 0;
  }

  .nav-bar { display: none; }

  .main {
    margin-left: 0;
    padding-top: 3rem;
  }

  .hero-inner {
    padding: 2.5rem 1.25rem;
  }

  .hero-viz {
    height: 48px;
    margin-bottom: 2.5rem;
  }

  .hero-sub {
    font-size: 0.95rem;
    max-width: none;
  }

  .stats-bar {
    padding: 0 1.25rem;
  }

  .stat {
    padding: 1.25rem 1.25rem 1.25rem 0;
  }

  .stat:not(:last-child) {
    padding-right: 1.25rem;
    margin-right: 1.25rem;
  }

  .section-text,
  .section-access {
    padding: 1.5rem 1.25rem 3rem;
  }

  .section-h2 {
    font-size: 1.6rem;
  }

  .section-datasets {
    padding: 0 0 3rem;
  }

  .ds-section-label {
    padding: 2rem 1.25rem 0.75rem;
  }

  .datasets-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 1.25rem;
    gap: 0.75rem;
  }

  .browse-more {
    margin: 2rem 1.25rem 0;
  }

  /* Conv featured card: stack vertically on tablet/mobile */
  .conv-sticky-outer {
    height: auto;
  }

  .conv-sticky-inner {
    position: static;
    height: auto;
    flex-direction: column;
  }

  .conv-chat-area {
    flex: none;
    height: 55vw;
    min-height: 220px;
  }

  .conv-info {
    flex: none;
    padding: 1.5rem 1.25rem;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .conv-name {
    font-size: 2rem;
  }

  .dataset-card--full {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
  }

  .dataset-card--full .ds-stat,
  .dataset-card--full .ds-detail {
    grid-column: 2;
  }

  .social-proof-band {
    padding: 2.5rem 1.25rem;
    text-align: left;
  }

  .social-proof-text {
    font-size: 1.6rem;
  }

  .footer {
    padding: 2.5rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-cta-h {
    font-size: 1.5rem;
  }

  .footer-right {
    text-align: left;
  }

  .footer-contact-row {
    gap: 1.25rem;
  }

  .step-bonus {
    margin: 0 -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Modal responsive */
  .modal {
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .datasets-grid {
    grid-template-columns: 1fr;
  }

  .od-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-h1 {
    font-size: 2.2rem;
  }

  .hero-inner {
    padding: 2rem 1rem;
  }

  .section-text,
  .section-access {
    padding: 1.25rem 1rem 2.5rem;
  }

  .section-h2 {
    font-size: 1.35rem;
  }

  .datasets-grid {
    padding: 0 1rem;
  }

  .ds-section-label {
    padding: 1.5rem 1rem 0.75rem;
  }

  .dataset-card {
    padding: 1.25rem 1rem;
  }

  .conv-chat-area {
    height: 70vw;
    min-height: 250px;
    padding: 1.25rem 1rem;
  }

  .conv-info {
    padding: 1.25rem 1rem;
  }

  .conv-name {
    font-size: 1.6rem;
  }

  .social-proof-text {
    font-size: 1.3rem;
    line-height: 1.45;
  }

  .footer {
    padding: 2rem 1rem;
  }

  .footer-cta-h {
    font-size: 1.3rem;
  }

  .cta-pill {
    font-size: 0.78rem;
    padding: 0.6rem 1.25rem;
  }

  .step {
    gap: 1rem;
  }

  /* Chat bubbles smaller on small screens */
  .chat-bubble {
    max-width: 82%;
    font-size: 0.78rem;
    padding: 0.45rem 0.8rem;
  }

  .chat-bubble--image {
    width: 120px;
    height: 85px;
  }

  .chat-avatar {
    width: 18px;
    height: 18px;
  }

  .chat-reaction-pill {
    font-size: 0.68rem;
    padding: 1px 5px 1px 4px;
  }

  /* Browse card stacks on mobile */
  .browse-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 380px) {
  .hero-h1 {
    font-size: 1.8rem;
  }

  .nav-list {
    gap: 0.6rem;
  }

  .nav-link {
    font-size: 0.65rem;
  }
}

/* ---- CONTACT MODAL ---- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 21, 14, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3rem;
  width: min(520px, 90vw);
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-sec);
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.15s;
}

.modal-close:hover { color: var(--text); }

.modal-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.modal-sub {
  color: var(--text-sec);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-sec);
}

.form-field input,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.6rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text);
  width: 100%;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus { border-color: var(--text-sec); }

.form-field textarea { height: 100px; }

.modal-submit {
  margin-top: 0.25rem;
  width: 100%;
  background: var(--bg-footer);
  color: #efede6;
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 2rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.modal-submit:hover { opacity: 0.75; }

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 0;
  flex-wrap: wrap;
}

.footer-email-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-email-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
}

.footer-email {
  font-size: 0.9rem;
  color: #efede6;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
  letter-spacing: 0.01em;
}

.footer-email:hover { opacity: 1; }

/* ==========================
   MOBILE POLISH
   ========================== */

/* Desktop: slides are transparent wrappers */
.conv-slide {
  display: contents;
}

/* Tab bar: hidden on desktop */
.conv-tabs {
  display: none;
}

@media (max-width: 900px) {
  /* -- Prevent horizontal overflow -- */
  html, body {
    overflow-x: hidden;
  }

  /* -- Tighter dividers -- */
  .divider {
    padding: 1.5rem 0 0.75rem;
  }
  .divider-line {
    height: 20px;
  }
  .divider-simple {
    padding: 1rem 0 0.5rem;
  }
  .divider-simple .divider-line {
    height: 16px;
  }

  /* -- Bigger viz bars, clipped to fit -- */
  .hero-viz {
    height: 64px;
    margin-bottom: 2rem;
    overflow: hidden;
    max-width: 100%;
  }

  /* -- Hero: tighter, no full-height -- */
  .section-hero {
    min-height: auto;
    padding-top: 1rem;
  }

  /* -- Nav: bigger touch targets, fit all items -- */
  .nav-list {
    gap: 0.5rem;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 0.72rem;
    padding: 0.5rem 0.2rem;
    white-space: nowrap;
  }

  /* -- CTA more prominent -- */
  .hero-inner .cta-pill {
    padding: 0.85rem 2.25rem;
    font-size: 0.9rem;
  }

  /* -- Conversation tabs -- */
  .conv-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
  }

  .conv-tab {
    flex: 1;
    padding: 0.85rem 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    cursor: pointer;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    font-family: var(--sans);
    font-weight: 500;
    transition: color 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .conv-tab.active {
    color: var(--text);
    border-bottom-color: var(--text);
  }

  /* -- Conversation slides (mobile) -- */
  .conv-slide {
    display: none;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.75rem 0 1.5rem;
  }

  .conv-slide.active {
    display: flex;
  }

  /* Hide headers on mobile - tabs serve this purpose */
  .conv-slide .chat-conv-header {
    display: none;
  }

  /* Hide "Featured Datasets" tag - tabs replace it */
  .conv-section-tag {
    display: none;
  }

  /* Hide separators on mobile */
  .conv-slide-sep {
    display: none;
  }

  /* -- Chat area: flexible height -- */
  .conv-chat-area {
    height: auto;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .chat-inner {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
  }

  /* -- Sticky wrapper: proper height -- */
  .conv-sticky-inner {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
  }

  /* -- Conv info panel tighter -- */
  .conv-info {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  /* -- Dataset cards: subtle lift -- */
  .dataset-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border-radius: 4px;
  }

  .dataset-card:active {
    background: rgba(255,255,255,0.5);
  }

  /* -- Social proof: centered, bigger -- */
  .social-proof-band {
    text-align: center;
    padding: 2.5rem 1.5rem;
  }

  .social-proof-text {
    font-size: 1.75rem;
    line-height: 1.4;
  }

  /* -- Footer: full-width CTA -- */
  .footer .cta-pill {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
  }

  /* -- Scroll reveal -- */
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  .reveal-on-scroll.revealed {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .hero-viz {
    height: 56px;
  }

  .conv-sticky-inner {
    min-height: 68vh;
  }

  .social-proof-text {
    font-size: 1.5rem;
  }

  .hero-inner .cta-pill {
    display: inline-flex;
    width: auto;
  }
}
