/* ==================================================
   BULK SMS PAGE (/bulk-sms) — 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 */
.sms-demo { position: relative; width: 100%; max-width: 520px; min-height: 560px; margin: 0 auto; }
.sms-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 */
.sms-msg { opacity: 0; transform: translateY(10px); transform-box: fill-box; animation: sms-pop 9s ease-out infinite; }
.sms-msg--1 { animation-delay: 1.5s; }
.sms-msg--2 { animation-delay: 4s; }
.sms-msg--3 { animation-delay: 6.5s; }
@keyframes sms-pop { 0% { opacity: 0; transform: translateY(10px); } 4%, 88% { opacity: 1; transform: translateY(0); } 96%, 100% { opacity: 0; transform: translateY(0); } }

.sms-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: sms-float-in 9s ease-out infinite;
}
.sms-float__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; }
.sms-float__icon--api  { background: #F2F4F7; }
.sms-float__icon--ok   { background: #ECFDF3; }
.sms-float__icon--hook { background: #FDF2F8; }
.sms-float__icon img { display: block; }
.sms-float__body { display: flex; flex-direction: column; line-height: 1.25; }
.sms-float__body strong { font-size: 13px; font-weight: 600; color: var(--f2h-ink); }
.sms-float__body em { font-size: 12px; font-style: normal; color: var(--f2h-muted); font-family: 'Inter', ui-monospace, monospace; }
.sms-float__body b { font-weight: 700; color: #12B76A; }
.sms-float__dot { width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: #1556CF; animation: sms-ping 1.2s ease-out infinite; }
.sms-float--api  { left: -12px; top: 64px;    animation-delay: 0.2s; }
.sms-float--dlr  { right: -8px; top: 190px;   animation-delay: 1.7s; }
.sms-float--hook { left: -4px;  bottom: 96px; animation-delay: 2.4s; }
@keyframes sms-float-in { 0% { opacity: 0; transform: translateY(8px); } 4%, 90% { opacity: 1; transform: translateY(0); } 97%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes sms-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 → Fast2SMS → operator → handset, with a dot travelling each hop */
.sms-journey { padding: 28px 32px 22px; border-radius: var(--f2h-radius); }
.sms-journey .pv-scene { max-width: 1000px; margin: 0 auto; }
.sms-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; }
.sms-journey__legend li { display: inline-flex; align-items: center; gap: 8px; }
.sms-journey__legend i { width: 10px; height: 10px; border-radius: 50%; }

@media (max-width: 1200px) {
    .sms-demo { max-width: 460px; min-height: 520px; }
    .sms-float--api, .sms-float--hook { left: 0; }
}
@media (max-width: 1024px) {
    .sms-demo { min-height: 0; padding: 20px 0 8px; }
    .sms-demo__phone { width: 240px; }
    .sms-float--api  { left: 0;  top: 30px; }
    .sms-float--dlr  { right: 0; top: 160px; }
    .sms-float--hook { left: 0;  bottom: 60px; }
}
@media (max-width: 767px) {
    .sms-demo__phone { width: 210px; }
    .sms-float { padding: 8px 12px 8px 8px; }
    .sms-float__body strong { font-size: 12px; }
    .sms-float__body em { font-size: 11px; }
    .sms-float--api  { top: 10px; }
    .sms-float--dlr  { top: 130px; }
    .sms-float--hook { bottom: 30px; }
    .sms-journey { padding: 18px 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .sms-msg, .sms-float { opacity: 1; transform: none; animation: none; }
    .sms-float__dot { animation: none; }
}
