/* ==================================================
   VOICE CALL PAGE (/voice-call) — scenes only. Shared product-page pieces are in product-v3.css,
   the base design in home-v2.css. Accent: the voice-call icon's sky blue (.pv-page--voice).
   ================================================== */

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

/* the loop is 9 s: ringing (0–3 s), answered with audio playing (3–8.5 s), reset */
.vc-ring { transform-box: fill-box; transform-origin: center; animation: vc-ring 1.8s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes vc-ring { 0% { transform: scale(0.85); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }
.vc-answer-ring { transform-box: fill-box; transform-origin: center; animation: vc-ring 1.4s ease-out infinite; }
.vc-ringing { animation: vc-ringing 9s linear infinite; }
@keyframes vc-ringing { 0%, 32% { opacity: 1; } 34%, 100% { opacity: 0; } }
.vc-wavebox, .vc-timer { opacity: 0; animation: vc-show 9s ease-out infinite; }
@keyframes vc-show { 0%, 33% { opacity: 0; } 36%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
.vc-wave { transform-box: fill-box; transform-origin: center; animation: vc-wave 0.9s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes vc-wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

.vc-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: vc-float-in 9s ease-out infinite;
}
.vc-float__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; }
.vc-float__icon--shot { background: #E8F6FD; }
.vc-float__icon--ok   { background: #ECFDF3; }
.vc-float__icon--miss { background: #FDF2F8; }
.vc-float__icon img { display: block; }
.vc-float__body { display: flex; flex-direction: column; line-height: 1.25; }
.vc-float__body strong { font-size: 13px; font-weight: 600; color: var(--f2h-ink); }
.vc-float__body em { font-size: 12px; font-style: normal; color: var(--f2h-muted); font-family: 'Inter', ui-monospace, monospace; }
.vc-float__body b { font-weight: 700; color: #12B76A; }
.vc-float__dot { width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: #0EA5E9; animation: vc-ping 1.2s ease-out infinite; }
.vc-float--shot { left: -12px; top: 64px;    animation-delay: 0.2s; }
.vc-float--ok   { right: -8px; top: 200px;   animation-delay: 3.2s; }
.vc-float--miss { left: -4px;  bottom: 96px; animation-delay: 4s; }
@keyframes vc-float-in { 0% { opacity: 0; transform: translateY(8px); } 4%, 90% { opacity: 1; transform: translateY(0); } 97%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes vc-ping { 0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.5); } 100% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); } }

/* desktop: the hero card must fit one screen, same rule as the other product pages */
@media (min-width: 1025px) {
    .pv-page .vc-demo { min-height: 0; max-width: min(520px, 100%); }
    .pv-page .vc-demo__phone { width: clamp(180px, calc((100vh - 270px) / 2), 268px); }
    .pv-page .vc-float--shot { top: 22%; left: 0; }
    .pv-page .vc-float--ok   { top: 40%; right: 0; }
    .pv-page .vc-float--miss { bottom: 0; left: 0; } /* below the call buttons (they end at 81% of the phone) */
}

/* call journey strip: panel → Fast2SMS → operator → handset, with a dot travelling each hop */
.vc-journey { padding: 28px 32px 22px; border-radius: var(--f2h-radius); }
.vc-journey .pv-scene { max-width: 1000px; margin: 0 auto; }
.vc-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; }
.vc-journey__legend li { display: inline-flex; align-items: center; gap: 8px; }
.vc-journey__legend i { width: 10px; height: 10px; border-radius: 50%; }

/* campaign report mock: donut + per-number table */
.vc-report { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: start; padding: 4px 0 6px; }
.vc-donut { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 8px 0 12px; }
.vc-donut svg { display: block; width: 110px; height: 110px; font-family: 'Inter', sans-serif; }
.vc-donut__seg { transition: stroke-dasharray 0.6s ease; }
.vc-donut ul { margin: 0; padding: 0; list-style: none; font-size: 11px; line-height: 17px; color: #475467; }
.vc-donut li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.vc-donut i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.vc-report .pv-table { margin: 0; }
.vc-report__scroll { min-width: 0; overflow-x: auto; }
.vc-report .pv-table th, .vc-report .pv-table td { padding: 8px 10px; }

/* IVR flow builder mock */
.vc-ivr { display: block; width: 100%; height: auto; padding: 10px 8px 6px; background: #FAFBFD; background-image: radial-gradient(#E4E7EC 1px, transparent 1px); background-size: 14px 14px; }

/* cloud number mock */
.vc-cloud { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 14px; }
.vc-cloud__num, .vc-cloud__agents { padding: 12px 14px; border-radius: 12px; background: #F8F9FC; border: 1px solid #EEF0F4; }
.vc-cloud small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #98A2B3; }
.vc-cloud__num strong { display: block; margin-top: 8px; font-size: 19px; font-weight: 700; letter-spacing: 0.01em; color: var(--f2h-ink); white-space: nowrap; }
.vc-cloud__num > span { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vc-agent { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid #EEF0F4; font-size: 12px; }
.vc-agent:first-of-type { border-top: 0; margin-top: 4px; }
.vc-agent b { font-weight: 600; color: var(--f2h-ink); }
.vc-agent em { font-style: normal; color: #98A2B3; font-size: 11px; }
.vc-cloud__log { grid-column: 1 / -1; }
.vc-play { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 12px; background: #E8F6FD; color: #0284C7; font-size: 11px; font-weight: 600; }

/* scenario scripts read like speech */
.vc-script { font-style: italic; }

/* price cards */
.vc-price { display: block; margin: 10px 0 2px; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: var(--pv-accent); }
.vc-price em { font-size: 13px; font-style: normal; font-weight: 500; color: var(--f2h-muted); }
.vc-prices { margin-bottom: 20px; }
.vc-pulse__table { align-self: center; }
.vc-pulse__table .pv-table { margin: 0; font-size: 13.5px; }
.vc-pulse__table .pv-table th, .vc-pulse__table .pv-table td { padding: 11px 16px; }
.vc-pulse__table .pv-table b { color: var(--f2h-ink); }
.vc-pulse__note { margin: 0; padding: 12px 16px 14px; border-top: 1px solid #F2F4F7; font-size: 12.5px; line-height: 19px; color: var(--f2h-muted); }

/* feature tiles that use a mono panel icon */
.vc-feature-tile { width: 100%; height: 100%; border-radius: inherit; }

@media (max-width: 1200px) {
    .vc-demo { max-width: 460px; min-height: 520px; }
    .vc-float--shot, .vc-float--miss { left: 0; }
}
@media (max-width: 1024px) {
    .vc-demo { min-height: 0; padding: 20px 0 8px; }
    .vc-demo__phone { width: 240px; }
    .vc-float--shot { left: 0;  top: 30px; }
    .vc-float--ok   { right: 0; top: 170px; }
    .vc-float--miss { left: 0;  bottom: 8px; }
}
@media (max-width: 767px) {
    .vc-demo__phone { width: 210px; }
    .vc-float { padding: 8px 12px 8px 8px; }
    .vc-float__body strong { font-size: 12px; }
    .vc-float__body em { font-size: 11px; }
    .vc-float--shot { top: 10px; }
    .vc-float--ok   { top: 140px; }
    .vc-float--miss { bottom: 0; }
    .vc-journey { padding: 18px 14px 14px; }
    .vc-report { grid-template-columns: 1fr; }
    .vc-donut { flex-direction: row; justify-content: center; padding: 10px 12px 0; }
    .vc-cloud { grid-template-columns: 1fr; }
    .vc-cloud__num strong { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .vc-float, .vc-wavebox, .vc-timer { opacity: 1; transform: none; animation: none; }
    .vc-ringing { display: none; }
    .vc-ring, .vc-answer-ring, .vc-wave, .vc-float__dot { animation: none; }
}
