/* testimonials-phone.css — desktop-monitor frame, scoped to .tm-phone */
.tm-phone{
  --tm-green:#008069; --tm-green-dark:#075e54; --tm-wall:#efeae2;
  width:100%; max-width:1100px; margin:0 auto; padding:8px 12px 4px; outline-offset:6px;
}
.tm-phone *{box-sizing:border-box}
.tm-phone__stage{
  display:grid; grid-template-columns:minmax(0,720px) minmax(220px,1fr);
  gap:clamp(20px,4vw,48px); align-items:center; justify-content:center;
}

/* monitor (fixed proportions, same for every screenshot) */
.tm-phone__monitor{display:flex; flex-direction:column; align-items:center; width:100%; min-width:0}
.tm-phone__device{
  width:100%; aspect-ratio:16/10; padding:clamp(6px,1.4%,12px);
  background:#111418; border-radius:14px;
  box-shadow:0 0 0 1.5px #2b3037 inset, 0 14px 30px -14px rgba(0,0,0,.35);
}
.tm-phone__screen{
  height:100%; overflow:hidden; display:flex; flex-direction:column;
  background:var(--tm-wall); border-radius:6px;
}
.tm-phone__neck{width:12%; height:clamp(18px,4vw,34px); background:linear-gradient(#2b3037,#1a1e23)}
.tm-phone__base{width:30%; height:7px; background:#2b3037; border-radius:4px 4px 8px 8px}

/* WhatsApp-style top bar */
.tm-phone__header{
  display:flex; align-items:center; gap:8px; flex:none;
  padding:7px 14px; background:var(--tm-green-dark); color:#fff;
}
.tm-phone__avatar{display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#c4ccd0}
.tm-phone__title{font-size:13px; font-weight:600}
.tm-phone__dots{margin-inline-start:auto; display:flex; gap:5px}
.tm-phone__dots i{width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.55)}

/* chat viewport: contained, never cropped, never upscaled */
.tm-phone__chat{
  flex:1 1 auto; min-height:0; display:flex; align-items:center; justify-content:center;
  padding:6px; touch-action:pan-y; user-select:none; -webkit-user-select:none;
  transition:opacity .15s ease;
}
.tm-phone__chat.is-fading{opacity:0}
.tm-phone__img{
  display:block; width:auto; height:auto; max-width:100%; max-height:100%;
  object-fit:contain; border-radius:4px; -webkit-user-drag:none; pointer-events:none;
}

/* info panel (left side in RTL) */
.tm-phone__info{display:flex; flex-direction:column; align-items:center; text-align:center; min-width:0}
.tm-phone__name{margin:0 0 4px; font-size:clamp(1.15rem,2.2vw,1.6rem); font-weight:700; color:inherit; overflow-wrap:anywhere}
.tm-phone__sub{margin:0 0 22px; font-size:.88rem; opacity:.65}
.tm-phone__controls{display:flex; align-items:center; justify-content:center; gap:14px}
.tm-phone__mid{display:flex; align-items:center; gap:10px; min-width:96px; justify-content:center}
.tm-phone__count{font-size:.95rem; font-variant-numeric:tabular-nums; opacity:.8}
.tm-phone__arrow,.tm-phone__pause{
  display:grid; place-items:center; cursor:pointer; color:var(--tm-green-dark);
  background:#fff; border:1px solid rgba(0,0,0,.12); border-radius:50%;
  transition:background .15s,color .15s;
}
.tm-phone__arrow{width:44px; height:44px}
.tm-phone__pause{width:32px; height:32px}
.tm-phone__arrow:hover,.tm-phone__pause:hover{background:var(--tm-green); color:#fff}
.tm-phone :is(button):focus-visible,.tm-phone:focus-visible{outline:2px solid var(--tm-green); outline-offset:2px}
.tm-phone__bar{width:min(240px,100%); height:3px; margin-top:20px; background:rgba(0,0,0,.08); border-radius:2px; overflow:hidden}
.tm-phone__bar span{display:block; height:100%; width:0; background:var(--tm-green)}

/* tablet/mobile: stack, monitor on top */
@media (max-width:991px){
  .tm-phone__stage{grid-template-columns:minmax(0,1fr); gap:22px}
  .tm-phone__monitor{max-width:720px; margin:0 auto}
}
@media (max-width:640px){
  .tm-phone__device{aspect-ratio:1/1; border-radius:10px}
  .tm-phone__neck{height:14px}
  .tm-phone__sub{margin-bottom:16px}
}
@media (prefers-reduced-motion:reduce){
  .tm-phone__chat,.tm-phone__arrow,.tm-phone__pause{transition:none}
}
