/* v32: chat-first desktop layouts; light app preview matching Remi's interface. */
@media (min-width: 901px) {
  .remi-home .remi-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(30px, 3.8vw, 72px);
    align-items: center;
  }
  .remi-home .remi-hero-demo {
    order: 1;
    min-width: 0;
  }
  .remi-home .remi-hero-copy {
    order: 2;
    min-width: 0;
  }
  .remi-home .remi-hero::before {
    right: auto;
    left: 0;
  }
  .remi-home .remi-conversation-card {
    max-width: none;
    width: 100%;
  }
  .remi-seo-page .seo-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
  .remi-seo-page .seo-hero-grid > div:first-child {
    order: 2;
    min-width: 0;
  }
  .remi-seo-page .seo-hero-grid > .seo-conversation {
    order: 1;
    min-width: 0;
  }
  .remi-seo-page .seo-story,
  .remi-seo-page .seo-story-alt {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(28px, 4.5vw, 76px);
  }
  .remi-seo-page .seo-story > .seo-conversation,
  .remi-seo-page .seo-story-alt > .seo-conversation {
    order: 1;
    min-width: 0;
  }
  .remi-seo-page .seo-story > .seo-story-copy,
  .remi-seo-page .seo-story-alt > .seo-story-copy {
    order: 2;
    min-width: 0;
  }
}
/* The homepage is a light Remi workspace preview, not a dark themed app. */
.remi-home .remi-workspace-preview {
  background: #fff;
  border-color: #dbe8f3;
}
.remi-home .remi-app-sidebar {
  background: linear-gradient(165deg, #f8fbff 0%, #edf5fc 100%);
  color: #34546f;
  border-right: 1px solid #d9e7f2;
}
.remi-home .remi-app-sidebar-brand {
  color: #1c4769;
}
.remi-home .remi-app-sidebar-new {
  background: #fff;
  border-color: #d2e3f0;
  color: #285a81;
}
.remi-home .remi-app-sidebar-label {
  color: #6b879e;
}
.remi-home .remi-app-sidebar-entry {
  color: #496b87;
}
.remi-home .remi-app-sidebar-entry.selected {
  background: #e0effb;
  color: #16619c;
}
.remi-home .remi-app-sidebar-entry.muted {
  color: #64839c;
}
.remi-home .remi-app-sidebar-foot {
  border-top-color: #d6e5f1;
  color: #728ca0;
}
.remi-home .remi-conversation-main {
  background: #fff;
}
@media (max-width: 900px) {
  .remi-seo-page .seo-hero-grid > .seo-conversation {
    order: 1;
  }
  .remi-seo-page .seo-hero-grid > div:first-child {
    order: 2;
  }
  .remi-seo-page .seo-story > .seo-conversation,
  .remi-seo-page .seo-story-alt > .seo-conversation {
    order: 1;
  }
  .remi-seo-page .seo-story > .seo-story-copy,
  .remi-seo-page .seo-story-alt > .seo-story-copy {
    order: 2;
  }
}
@media (max-width: 700px) {
  .remi-home .remi-app-sidebar {
    border-right: 0;
    border-bottom: 1px solid #d9e7f2;
  }
}

/* v33 — larger Remi conversation previews on both audience pages.
   On desktop the previews occupy roughly 80% of the height of the homepage chat.
   Keep the description beside the preview, and avoid oversized cards on phones. */
@media (min-width: 901px) {
  .remi-seo-page .seo-hero-grid,
  .remi-seo-page .seo-story,
  .remi-seo-page .seo-story-alt {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: clamp(24px, 3.8vw, 62px);
  }
  .remi-seo-page .seo-hero-grid > .seo-conversation {
    min-height: clamp(420px, 60dvh, 570px);
  }
  .remi-seo-page .seo-story > .seo-conversation,
  .remi-seo-page .seo-story-alt > .seo-conversation {
    min-height: clamp(390px, 54dvh, 500px);
  }
  .remi-seo-page .seo-conversation {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .remi-seo-page .seo-conversation .seo-dialog-row p {
    font-size: clamp(1.05rem, 1.15vw, 1.16rem) !important;
    line-height: 1.68 !important;
    padding: 17px 20px;
  }
  .remi-seo-page .seo-conversation .seo-dialog-row {
    max-width: 86%;
  }
  .remi-seo-page .seo-conversation .seo-result {
    margin-top: auto;
  }
  .remi-seo-page .seo-story-copy {
    max-width: 520px;
  }
}
@media (max-width: 900px) {
  .remi-seo-page .seo-conversation {
    min-height: 0;
  }
  .remi-seo-page .seo-story > .seo-conversation,
  .remi-seo-page .seo-story-alt > .seo-conversation {
    width: 100%;
  }
}
