/* ==================================================
   RCS PAGE (/rcs-message) — scenes only. Shared product-page pieces are in product-v3.css,
   the base design in home-v2.css. Accent: the panel's RCS blue (.pv-page--rcs, #1C73E8).
   ================================================== */

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

/* message pieces appear one after another; loop 10 s */
.rcs3-pop { opacity: 0; transform: translateY(10px); transform-box: fill-box; animation: rcs3-pop 10s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes rcs3-pop { 0% { opacity: 0; transform: translateY(10px); } 4%, 90% { opacity: 1; transform: translateY(0); } 97%, 100% { opacity: 0; transform: translateY(0); } }

/* suggested reply chips slide in from the right */
.rcs3-chip { opacity: 0; transform: translateX(14px); transform-box: fill-box; animation: rcs3-chip 10s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes rcs3-chip { 0% { opacity: 0; transform: translateX(14px); } 4%, 90% { opacity: 1; transform: translateX(0); } 97%, 100% { opacity: 0; transform: translateX(0); } }

/* typing dots in the customer reply */
.rcs3-dot { animation: rcs3-dot 1.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes rcs3-dot { 0%, 60%, 100% { opacity: 0.35; } 30% { opacity: 1; } }

.rcs3-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: rcs3-float-in 10s ease-out infinite;
}
.rcs3-float__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; }
.rcs3-float__icon--send { background: #EAF2FE; }
.rcs3-float__icon--read { background: #ECFDF3; }
.rcs3-float__icon--hook { background: #FDF2F8; }
.rcs3-float__icon img { display: block; }
.rcs3-float__body { display: flex; flex-direction: column; line-height: 1.25; }
.rcs3-float__body strong { font-size: 13px; font-weight: 600; color: var(--f2h-ink); }
.rcs3-float__body em { font-size: 12px; font-style: normal; color: var(--f2h-muted); font-family: 'Inter', ui-monospace, monospace; }
.rcs3-float__body b { font-weight: 700; color: #1C73E8; }
.rcs3-float--send { left: -12px; top: 64px;    animation-delay: 0.2s; }
.rcs3-float--read { right: -8px; top: 236px;   animation-delay: 4.2s; }
.rcs3-float--hook { left: -4px;  bottom: 96px; animation-delay: 5.2s; }
@keyframes rcs3-float-in { 0% { opacity: 0; transform: translateY(8px); } 4%, 90% { opacity: 1; transform: translateY(0); } 97%, 100% { opacity: 0; transform: translateY(0); } }

/* journey strip */
.rcs3-journey { padding: 28px 32px 22px; border-radius: var(--f2h-radius); }
.rcs3-journey .pv-scene { max-width: 1000px; margin: 0 auto; }
.rcs3-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; }
.rcs3-journey__legend li { display: inline-flex; align-items: center; gap: 8px; }
.rcs3-journey__legend i { width: 10px; height: 10px; border-radius: 50%; }

/* template builder mock: form + phone preview */
.rcs3-builder { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr); gap: 14px; padding: 14px; }
.rcs3-card {
    overflow: hidden;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid #E4E7EC;
    font-size: 12px;
    line-height: 17px;
    color: #111111;
}
.rcs3-card__media { height: 72px; background: linear-gradient(135deg, #CFE0FB 0%, #EAF2FE 60%, #F8FAFC 100%); position: relative; }
.rcs3-card__media::after { content: ""; position: absolute; left: 14px; bottom: 12px; width: 46px; height: 8px; border-radius: 4px; background: rgba(28, 115, 232, 0.35); }
.rcs3-card__body { padding: 10px 12px 8px; }
.rcs3-card__body b { display: block; font-size: 13px; margin-bottom: 3px; }
.rcs3-card__btn { display: block; padding: 8px 0; border-top: 1px solid #E4E7EC; text-align: center; font-size: 12.5px; font-weight: 600; color: #1C73E8; }
.rcs3-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rcs3-chips span { padding: 5px 10px; border-radius: 16px; border: 1px solid #CFE0FB; background: #FFFFFF; font-size: 11.5px; font-weight: 600; color: #1C73E8; }
.rcs3-sender { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #111111; }
.rcs3-sender i { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #1C73E8; color: #FFFFFF; font-size: 11px; font-style: normal; font-weight: 800; }
.rcs3-sender svg { color: #1C73E8; }

/* the scenario cards hold a mini rich card */
.pv-page--rcs .pv-scenario .rcs3-card { font-size: 12px; }

@media (max-width: 1200px) {
    .rcs3-demo { max-width: 460px; min-height: 520px; }
    .rcs3-float--send, .rcs3-float--hook { left: 0; }
}
@media (max-width: 1024px) {
    .rcs3-demo { min-height: 0; padding: 20px 0 8px; }
    .rcs3-demo__phone { width: 240px; }
    .rcs3-float--send { left: 0;  top: 30px; }
    .rcs3-float--read { right: 0; top: 200px; }
    .rcs3-float--hook { left: 0;  bottom: 60px; }
    .rcs3-builder { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .rcs3-demo__phone { width: 210px; }
    .rcs3-float { padding: 8px 12px 8px 8px; }
    .rcs3-float__body strong { font-size: 12px; }
    .rcs3-float__body em { font-size: 11px; }
    .rcs3-float--send { top: 10px; }
    .rcs3-float--read { top: 170px; }
    .rcs3-float--hook { bottom: 30px; }
    .rcs3-journey { padding: 18px 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .rcs3-pop, .rcs3-chip, .rcs3-float { opacity: 1; transform: none; animation: none; }
    .rcs3-dot { animation: none; }
}
