/* ==================================================
   QUICK SMS PAGE (/quick-sms-without-dlt) — scenes only. Shared product-page pieces are in
   product-v3.css, the base design in home-v2.css. Accent: the panel's SMS blue (.pv-page--sms).
   ================================================== */

/* hero demo: phone + three floating cards in the hero's right column */
.qs-demo { position: relative; width: 100%; max-width: 520px; min-height: 560px; margin: 0 auto; }
.qs-demo__phone { position: relative; width: 268px; margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(21, 86, 207, 0.16)); }

/* messages arrive one after another; the loop is 9 s */
.qs-msg { opacity: 0; transform: translateY(10px); transform-box: fill-box; animation: qs-pop 9s ease-out infinite; }
.qs-msg--1 { animation-delay: 1.5s; }
.qs-msg--2 { animation-delay: 4s; }
.qs-msg--3 { animation-delay: 6.5s; }
@keyframes qs-pop { 0% { opacity: 0; transform: translateY(10px); } 4%, 88% { opacity: 1; transform: translateY(0); } 96%, 100% { opacity: 0; transform: translateY(0); } }

.qs-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid #EEF0F4;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.10);
    font-family: 'Inter', sans-serif;
    opacity: 0;
    transform: translateY(8px);
    animation: qs-float-in 9s ease-out infinite;
}
.qs-float__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; }
.qs-float__icon--api { background: #F2F4F7; }
.qs-float__icon--ok  { background: #ECFDF3; }
.qs-float__icon--rev { background: #FFF7E6; }
.qs-float__icon--rev img { filter: invert(43%) sepia(78%) saturate(1200%) hue-rotate(10deg) brightness(92%) contrast(95%); }
.qs-float__icon img { display: block; }
.qs-float__body { display: flex; flex-direction: column; line-height: 1.25; }
.qs-float__body strong { font-size: 13px; font-weight: 600; color: var(--f2h-ink); }
.qs-float__body em { font-size: 12px; font-style: normal; color: var(--f2h-muted); font-family: 'Inter', ui-monospace, monospace; }
.qs-float__body b { font-weight: 700; color: #12B76A; }
.qs-float__dot { width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: #1556CF; animation: qs-ping 1.2s ease-out infinite; }
.qs-float--api { left: -12px; top: 64px;    animation-delay: 0.2s; }
.qs-float--dlr { right: -8px; top: 190px;   animation-delay: 1.7s; }
.qs-float--ok  { left: -4px;  bottom: 96px; animation-delay: 2.4s; }
@keyframes qs-float-in { 0% { opacity: 0; transform: translateY(8px); } 4%, 90% { opacity: 1; transform: translateY(0); } 97%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes qs-ping { 0% { box-shadow: 0 0 0 0 rgba(21, 86, 207, 0.5); } 100% { box-shadow: 0 0 0 10px rgba(21, 86, 207, 0); } }

/* message journey strip: panel → review → international gateway → handset, with a dot travelling each hop */
.qs-journey { padding: 28px 32px 22px; border-radius: var(--f2h-radius); }
.qs-journey .pv-scene { max-width: 1000px; margin: 0 auto; }
.qs-journey__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: #475467; }
.qs-journey__legend li { display: inline-flex; align-items: center; gap: 8px; }
.qs-journey__legend i { width: 10px; height: 10px; border-radius: 50%; }

/* desktop: the hero must fit one screen, so the phone scales with the viewport height (same rule as .sms-demo in product-v3.css) */
@media (min-width: 1025px) {
    .pv-page .qs-demo { min-height: 0; max-width: min(520px, 100%); }
    .pv-page .qs-demo__phone { width: clamp(180px, calc((100vh - 270px) / 2), 268px); }
    .pv-page .qs-float--api { top: 22%; left: 0; }
    .pv-page .qs-float--dlr { top: 34%; right: 0; }
    .pv-page .qs-float--ok  { bottom: 14%; left: 0; }
}
@media (max-width: 1200px) {
    .qs-demo { max-width: 460px; min-height: 520px; }
    .qs-float--api, .qs-float--ok { left: 0; }
}
@media (max-width: 1024px) {
    .qs-demo { min-height: 0; padding: 20px 0 8px; }
    .qs-demo__phone { width: 240px; }
    .qs-float--api { left: 0;  top: 95px; }
    .qs-float--dlr { right: 0; top: 160px; }
    .qs-float--ok  { left: 0;  bottom: 60px; }
}
@media (max-width: 767px) {
    .qs-demo__phone { width: 210px; }
    .qs-float { padding: 8px 12px 8px 8px; }
    .qs-float__body strong { font-size: 12px; }
    .qs-float__body em { font-size: 11px; }
    .qs-float--api { top: 80px; }
    .qs-float--dlr { top: 130px; }
    .qs-float--ok  { bottom: 30px; }
    .qs-journey { padding: 18px 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .qs-msg, .qs-float { opacity: 1; transform: none; animation: none; }
    .qs-float__dot { animation: none; }
}
