/* GenBroker V2.13.1. Mobile layout refinements only. */
/* The transparent hand frame is 750x1030; the live display occupies x=39.73%..85.33%.
   Center that display, rather than the full hand silhouette, inside the hero column. */
@media (max-width: 700px) {
  body[data-page="home"] .hero-product-v5 .phone-shell-v5 {
    transform: translate(-12.5%, 48px) !important;
  }

  /* Keep a full-size touch target while making the floating circle unobtrusive. */
  .scroll-top {
    right: 7px;
    bottom: 9px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .scroll-top::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid #d8dee7;
    border-radius: 50%;
    background: rgba(255, 255, 255, .91);
    box-shadow: 0 7px 18px rgba(15, 23, 42, .12);
    pointer-events: none;
  }
  .scroll-top svg { position: relative; z-index: 1; width: 18px; height: 18px; }
  .scroll-top:hover { background: transparent; }
}
@media (max-width: 430px) {
  body[data-page="home"] .hero-product-v5 .phone-shell-v5 {
    transform: translate(-12.5%, 42px) !important;
  }
}

/* Below 620px, present Telegram/CRM status chips above the illustration instead
   of floating over the message display and disappearing beyond the viewport. */
@media (max-width: 620px) {
  body[data-page="home"] .tg-tablet-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "status next" "device device";
    gap: 10px 8px;
    align-items: start;
    justify-items: stretch;
    min-width: 0;
    padding-bottom: 8px;
  }
  body[data-page="home"] .tg-tablet-status {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: auto;
    max-width: none;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 9px;
    border-radius: 14px;
    box-shadow: 0 9px 22px rgba(17,23,38,.08);
  }
  body[data-page="home"] .tg-tablet-status-main { grid-area: status; }
  body[data-page="home"] .tg-tablet-status-next { grid-area: next; }
  body[data-page="home"] .tg-tablet-status-icon {
    width: 29px;
    height: 29px;
    min-width: 29px;
    flex: 0 0 29px;
    border-radius: 9px;
  }
  body[data-page="home"] .tg-tablet-status-icon svg { width: 16px; height: 16px; }
  body[data-page="home"] .tg-tablet-status-copy { min-width: 0; overflow-wrap: anywhere; }
  body[data-page="home"] .tg-tablet-status-copy small {
    margin-bottom: 3px;
    font-size: 9px;
    letter-spacing: .03em;
    line-height: 1.15;
  }
  body[data-page="home"] .tg-tablet-status-copy strong {
    font-size: 12px;
    line-height: 1.16;
  }
  body[data-page="home"] .tg-tablet-status-copy span {
    font-size: 10px;
    line-height: 1.22;
  }
  body[data-page="home"] .tg-tablet-shell {
    grid-area: device;
    width: 110%;
    max-width: none;
    margin-left: -5%;
    margin-right: -5%;
    align-self: start;
    transform: translateY(6px);
  }
}
@media (max-width: 360px) {
  body[data-page="home"] .tg-tablet-status { padding: 8px 7px; gap: 6px; }
  body[data-page="home"] .tg-tablet-status-icon { width: 26px; height: 26px; min-width: 26px; flex-basis: 26px; }
  body[data-page="home"] .tg-tablet-status-copy span { display: none; }
}
