/* Narrow-screen layout and touch sizing, shared by both site languages. */
@media (max-width: 700px) {
  .adaptive-section > .demo-device-panel {
    min-height: 700px;
  }
  .demo-device-tabs {
    gap: 3px;
    width: max-content;
    max-width: 100%;
    padding: 4px;
  }
  .demo-device-tabs button {
    min-height: 44px;
    padding: 9px 14px;
    white-space: nowrap;
  }
  .demo-phone {
    width: min(310px, 100%);
    height: auto;
    aspect-ratio: 332 / 660;
    flex-shrink: 0;
  }
  .demo-phone-screen {
    height: 100%;
  }
  .demo-watch {
    width: min(270px, 100%);
    max-width: 100%;
    flex-shrink: 0;
  }
  .watch-case {
    width: calc(100% - 14px);
    max-width: 264px;
  }
  .watch-band {
    left: 18%;
    right: 18%;
  }
  .phone-content {
    padding: 12px;
    min-height: 0;
  }
  .phone-app-heading {
    gap: 8px;
    padding: 12px;
  }
  .phone-app-heading b {
    font-size: 13px;
    white-space: nowrap;
  }
  .phone-app-heading button {
    min-height: 44px;
    padding: 7px 10px;
  }
  .phone-compose input,
  .conversation-form input,
  .bridge-command textarea {
    font-size: 16px !important;
  }
  .phone-compose button {
    width: 44px;
    min-height: 44px;
  }
  .phone-bottom-nav button {
    min-height: 48px;
  }
  .portable-row,
  .portable-back,
  .portable-approve,
  .phone-example {
    min-height: 44px;
  }
  .watch-content .portable-row,
  .watch-content .portable-back,
  .watch-content .portable-approve {
    min-height: 40px;
  }
  .portable-row small,
  .portable-route,
  .portable-bubble {
    overflow-wrap: anywhere;
  }
  .portable-demo-hint {
    max-width: 100%;
    padding: 0 4px;
  }
  .conversation-sidebar {
    flex-basis: clamp(100px, 30vw, 125px);
  }
  .conversation-sidebar button {
    min-height: 44px;
  }
  .conversation-form button,
  .conversation-close {
    min-width: 40px;
    min-height: 40px;
  }
  .conversation-heading {
    padding: 12px;
    gap: 8px;
  }
  .conversation-heading h3 {
    font-size: 15px;
  }
  .adaptive-caption {
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
  }
  .workspace-switcher {
    gap: 6px;
    padding: 10px;
  }
  .workspace-switcher button {
    min-height: 40px;
    padding: 6px 9px;
  }
  .bridge-example-tools {
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }
  header {
    max-width: calc(100% - 24px);
    padding-left: 12px;
    padding-right: 12px;
  }
  header .wordmark {
    font-size: 18px;
    letter-spacing: 0.18em;
    gap: 8px;
  }
  header .nav-orbi {
    width: 36px;
    height: 36px;
  }
  .language-toggle button {
    min-width: 36px;
    min-height: 40px;
    font-size: 12px;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 16px 22px;
  }
  .first-screen .hero-copy p,
  html[lang="it"] .first-screen .hero-copy p {
    font-size: 16px;
    line-height: 1.6;
  }
  .section-heading h2,
  .freedom-scenes h2,
  html[lang="it"] .freedom-scenes h2 {
    font-size: clamp(30px, 8.5vw, 40px);
    overflow-wrap: break-word;
  }
  .section-heading p {
    font-size: 16px;
    line-height: 1.6;
  }
  .provider-item {
    min-width: 0;
  }
  .provider-item b {
    white-space: normal;
    line-height: 1.3;
    min-height: 2.6em;
    display: grid;
    place-items: center;
    font-size: 12px;
  }
  .provider-status {
    font-size: 12px;
  }
  .price-card {
    padding: 26px 22px;
  }
  .price-head {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
  }
  .price-tag {
    font-size: 12px;
  }
  .price-card li {
    font-size: 14px;
    line-height: 1.6;
  }
  .price-card > small,
  .pricing-note {
    font-size: 13px;
    line-height: 1.6;
  }
  .billing-switch button {
    min-height: 44px;
  }
  .faqs summary {
    font-size: 16px;
    line-height: 1.5;
  }
  .faqs p {
    font-size: 15px;
    line-height: 1.65;
  }
  .freedom-photo-scene {
    min-height: 680px;
  }
  footer {
    flex-wrap: wrap;
    gap: 18px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .bridge-chat .bridge-browser {
    margin-left: 0;
    max-width: 100%;
  }
  .bridge-chat .bridge-chat-thread {
    min-width: 0;
  }
  .bridge-chat .bridge-message {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 360px) {
  .demo-device-tabs button {
    padding-left: 11px;
    padding-right: 11px;
    font-size: 13px;
  }
  .phone-app-heading b {
    font-size: 12px;
    letter-spacing: 0;
  }
  .phone-app-heading button {
    padding-left: 8px;
    padding-right: 8px;
  }
  .phone-talk > img {
    width: 110px;
    height: 110px;
  }
  .phone-talk h3 {
    font-size: 25px;
  }
  .phone-talk p {
    margin-bottom: 14px;
  }
  .conversation-task,
  .conversation-messages {
    padding: 10px;
  }
}
@media (max-width: 700px) {
  .demo-phone {
    position: relative;
    min-height: 0;
  }
  .demo-phone-screen {
    position: absolute;
    inset: 7px;
    height: auto;
    min-height: 0;
  }
}
