/* Phone-sized layouts keep the demo readable instead of scaling it down to
   the space left below the introduction. Desktop geometry is unchanged. */
@media (max-width: 700px) {
  .hero-fitted .hero-sequence > .page-shell {
    height: auto;
    min-height: 100svh;
  }
  .hero-fitted .page-shell > main { flex: 0 0 auto; display: block; }
  .hero-fitted .hero {
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto;
    gap: 24px;
    padding-bottom: 28px;
  }
  .hero-fitted .hero > .experience {
    --mobile-phone-width: clamp(188px, 56vw, 252px);
    --mobile-card-top: calc(var(--mobile-phone-width) * 1.28);
    width: 100%;
    max-width: 470px;
    height: calc(var(--mobile-card-top) + 340px);
    min-height: 0;
    margin: 0 auto;
  }
  .hero-fitted .hero .experience-stage {
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    transform: none;
  }
  .hero-fitted .hero .device-area {
    top: 8px;
    right: -4px;
    width: var(--mobile-phone-width);
  }
  .hero-fitted .hero .conversation {
    top: var(--mobile-card-top);
    right: -4px;
    bottom: auto;
    left: auto;
    width: min(318px, calc(100% - 68px));
    min-height: 0;
    padding: 18px 16px 16px;
    border-radius: 17px;
  }
  .hero-fitted .hero .conversation-topline {
    display: flex;
    font-size: 7.5px;
    letter-spacing: .085em;
  }
  .hero-fitted .hero .conversation-index { font-size: 9px; }
  .hero-fitted .hero .question-row { min-height: 34px; margin: 16px 0 17px; gap: 7px; }
  .hero-fitted .hero .question {
    font-size: 11px;
    line-height: 1.5;
    padding: 8px 10px;
    border-radius: 11px 11px 3px 11px;
  }
  .hero-fitted .hero .user-symbol { display: flex; width: 21px; height: 21px; }
  .hero-fitted .hero .answer-heading { font-size: 9px; margin-bottom: 10px; }
  .hero-fitted .hero .answer-space { height: 100px; }
  .hero-fitted .hero .answer { font-size: 18px; line-height: 1.3; }
  .hero-fitted .hero .waveform-wrap { height: 42px; margin: 0 -5px 12px; }
  .hero-fitted .hero .conversation-bottom { padding-top: 10px; }
  .hero-fitted .hero .scenario-tabs { gap: 3px; }
  .hero-fitted .hero .scenario { font-size: 10px; padding: 8px 5px; min-height: 34px; }
  .hero-fitted .hero .recording-caption {
    position: absolute;
    top: 5px;
    left: -33px;
    margin: 0;
  }
  .hero-fitted .hero .recording-caption > span { display: none; }
  .hero-fitted .hero #motion-toggle { width: 26px; height: 26px; margin: 0; }
}
@media (max-width: 350px) {
  .hero-fitted .hero .conversation { width: calc(100% - 49px); padding-inline: 14px; }
  .hero-fitted .hero .answer { font-size: 17px; }
  .hero-fitted .hero .user-symbol { display: none; }
  .hero-fitted .hero .scenario { font-size: 9px; }
}
