/* Responsive creation hierarchy keeps the model and direct input reachable.
   Mobile shows the home first; the header action and step rail lead straight to the prompt. */
@media (max-width: 1050px) {
  .header-label { display: none; }
  .studio { grid-template-columns: 330px minmax(0, 1fr); }
  .design-panel { padding-left: 28px; padding-right: 22px; }
  .scene-origin { display: block; width: 100%; margin: 3px 0 0 14px; }
  .scene-heading { flex-wrap: wrap; }
  .footer { flex-wrap: wrap; }
  .footer > span { width: 100%; }
}
@media (max-width: 700px) {
  .header { height: 64px; gap: 12px; padding: 0 20px; }
  .header .wordmark { font-size: 40px; }
  .header nav { gap: 14px; }
  .header nav > a:not(.button) { display: none; }
  .header .button.small { font-size: 10px; padding: 11px 13px; min-height: 40px; }
  .studio { display: flex; flex-direction: column; align-items: stretch;
    margin: 0; border: 0; border-radius: 0; }
  .design-panel { display: contents; }
  .hero-copy { order: 0; padding: 24px var(--gutter) 12px; margin: 0; }
  .hero-copy .eyebrow { font-size: 8px; }
  .hero-copy h1 { font-size: 40px; margin: 12px 0; }
  .hero-copy h1 br { display: none; }
  .hero-copy > p:last-child { font-size: 11px; }
  .hero-copy > p:last-child br { display: none; }
  .scene-panel { order: 2; width: 100%; height: auto; margin: 0; animation: none; }
  .scene-heading { padding: 12px 18px; flex-wrap: nowrap; gap: 10px; }
  .scene-heading h2 { font-size: 11px; }
  .scene-origin { font-size: 9px; }
  .view-toggle { gap: 0; }
  .view-toggle button { padding: 9px 8px; font-size: 9px; }
  .canvas-wrap { min-height: 260px; height: 260px; flex: auto; }
  .view-caption { top: 12px; left: 18px; font-size: 9px; }
  .scene-toolbar { padding: 8px 16px; }
  .material-picker button { gap: 5px; padding: 10px 6px; font-size: 10px; }
  .material-picker button > span { width: 11px; height: 11px; }
  .save-view { font-size: 10px; min-height: 44px; }
  .scene-footer { padding: 10px 18px; font-size: 9px; }
  .scene-footer > span:last-child { font-size: 8px; }
  #prompt-form { order: 3; margin: 24px var(--gutter) 0; }
  .presets { order: 4; margin: 0 var(--gutter); }
  .customize-home { order: 5; margin: 0 var(--gutter) 24px; }
  textarea { min-height: 80px; font-size: 16px; line-height: 1.5; }
  .dimension-controls { gap: 24px; }
  .dimension-controls label, .garden-toggle { font-size: 12px; }
  select { min-height: 35px; font-size: 12px; }
  .presets button { min-height: 40px; font-size: 11px; }
  .studio-note { padding: 16px 22px 0; flex-direction: column; gap: 6px; }
  .studio-note > span { text-align: left; }
  .hero-assurance { padding: 12px 22px 24px; flex-direction: column; gap: 10px; }
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .section-top {
    flex-direction: column;
    gap: 22px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 36px;
  }
  .steps li {
    padding-top: 18px;
  }
  .steps h3 {
    margin-top: 15px;
  }
  .steps p {
    max-width: 440px;
  }
  .trial {
    flex-direction: column;
    gap: 40px;
  }
  .trial h2 {
    font-size: 40px;
  }
  .price {
    margin: 0;
    min-width: 0;
    border-top: 1px solid #ffffff30;
    padding-top: 25px;
  }
  .price strong {
    font-size: 105px;
  }
  .price-line, .price > span:last-child {
    display: none;
  }
  .questions {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer {
    gap: 20px;
  }
  .footer nav {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 15px;
  }
  dialog {
    padding: 22px;
  }
  .generating {
    left: 12px;
    bottom: 58px;
    padding: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
