/* call.css — styles for the single voice-call screen (Views/Home/Index.cshtml).
   Extracted from the page's inline <style> so it's browser-cacheable and free of
   Razor @@-escaping (which VS's CSS validator flags). Class prefix: .cs- (call screen). */

/* This page is the whole screen — hide any shared chrome that might exist. */
.topnav, .footer { display: none !important; }
.main-content { padding: 0 !important; max-width: none !important; }

.cs-stage {
    min-height: 100dvh;
    display: flex; flex-direction: column; align-items: center;
    justify-content: space-between;
    padding: clamp(26px, 6vh, 60px) 16px;
    position: relative; overflow: hidden; text-align: center;
    background:
        radial-gradient(900px 480px at 16% -10%, rgba(244, 123, 32, .18) 0%, transparent 60%),
        radial-gradient(720px 440px at 90% 8%, rgba(211, 32, 39, .12) 0%, transparent 55%),
        radial-gradient(680px 440px at 50% 112%, rgba(122, 182, 72, .14) 0%, transparent 60%),
        linear-gradient(180deg, #fffdf9 0%, #fdf6ec 58%, #faf1e3 100%);
}
/* soft floating brand blobs in the background */
.cs-stage::before, .cs-stage::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(72px);
    pointer-events: none; z-index: 0;
}
.cs-stage::before {
    width: 360px; height: 360px; left: -130px; top: 20%;
    background: rgba(244, 123, 32, .24);
    animation: cs-drift 11s ease-in-out infinite alternate;
}
.cs-stage::after {
    width: 320px; height: 320px; right: -120px; bottom: 12%;
    background: rgba(211, 32, 39, .15);
    animation: cs-drift 13s ease-in-out infinite alternate-reverse;
}
@keyframes cs-drift { from { transform: translateY(-16px); } to { transform: translateY(20px); } }
.cs-stage > * { position: relative; z-index: 1; }

/* ── TOP: brand ─────────────────────────────────────────────── */
.cs-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; animation: cs-rise .7s ease both; }
.cs-logo {
    width: clamp(180px, 40vw, 264px); height: auto; display: block;
    filter: drop-shadow(0 8px 20px rgba(192, 31, 37, .22));
    animation: cs-logo-bob 5s ease-in-out infinite;
}
@keyframes cs-logo-bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-1deg); } }
.cs-wordmark {
    margin: 6px 0 0; font-weight: 900; letter-spacing: .02em; line-height: 1;
    font-size: clamp(1.5rem, 5vw, 2.1rem); color: #b3471f;
}
.cs-wordmark span { color: #d32027; }
/* designed location line — red map pin + thin fading lines either side */
.cs-tagline {
    margin: 12px 0 0;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    color: #b3471f; font-size: clamp(.72rem, 2.3vw, .92rem);
    font-weight: 700; letter-spacing: .26em; text-transform: uppercase; text-indent: .26em;
}
.cs-tagline::before, .cs-tagline::after { content: ""; height: 2px; border-radius: 2px; width: clamp(28px, 8vw, 58px); }
.cs-tagline::before { background: linear-gradient(90deg, transparent, #d32027); }
.cs-tagline::after  { background: linear-gradient(90deg, #d32027, transparent); }
.cs-tagline .pin { width: 1.05em; height: 1.05em; flex: none; color: #d32027;
    filter: drop-shadow(0 2px 4px rgba(211, 32, 39, .35)); animation: cs-pin-bob 2.6s ease-in-out infinite; }
@keyframes cs-pin-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.cs-hint { margin: 18px auto 0; max-width: 340px; color: #6b5b4d; font-size: clamp(.86rem, 2.6vw, .98rem); line-height: 1.5; }
.cs-hint b { color: #b3471f; }

/* ── MIDDLE: phone orb + live status ────────────────────────── */
.cs-middle { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cs-orb {
    width: clamp(150px, 34vw, 210px); height: clamp(150px, 34vw, 210px); border-radius: 50%;
    background:
        linear-gradient(#ffffff, #fffaf3) padding-box,
        conic-gradient(from 210deg, #f47b20, #d32027, #f4a020, #7ab648, #f47b20) border-box;
    border: 4px solid transparent;
    box-shadow: 0 18px 50px rgba(211, 32, 39, .16), 0 4px 14px rgba(28, 25, 23, .08);
    display: flex; align-items: center; justify-content: center; position: relative;
    animation: cs-float 4.5s ease-in-out infinite, cs-rise .7s .1s ease both;
}
@keyframes cs-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.cs-orb svg { width: 44%; height: 44%; color: #d32027; filter: drop-shadow(0 3px 6px rgba(211, 32, 39, .25)); }
/* slow rotating ring of conic colour for a little life when idle */
.cs-orb::before {
    content: ""; position: absolute; inset: -14px; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 78%, rgba(244,123,32,.5) 88%, transparent 100%);
    animation: cs-spin 6s linear infinite; opacity: .5;
}
@keyframes cs-spin { to { transform: rotate(360deg); } }
/* pulsing ring while a call is live (JS adds .active to #phoneOrb) */
.cs-orb.active { animation: none; }
.cs-orb.active::before { animation: none; opacity: 0; }
.cs-orb.active svg { color: #16a34a; }
.cs-orb.active::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 3px solid #22c55e; opacity: .7; animation: cs-pulse 1.6s ease-out infinite;
}
@keyframes cs-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.3); opacity: 0; } }

/* live status under the orb (shown only during a call) */
.cs-status { display: flex; align-items: center; gap: 10px; color: #57534e; font-size: .95rem; }
.cs-status .status-orb { width: 10px; height: 10px; border-radius: 50%; background: #a8a29e; transition: background .2s; }
.cs-status .status-orb.listening { background: #22c55e; }
.cs-status .status-orb.thinking  { background: #f59e0b; }
.cs-status .status-orb.speaking,
.cs-status .status-orb.greeting  { background: #ea580c; }
.cs-status .elapsed { font-variant-numeric: tabular-nums; color: #78716c; }
.cs-status .meter { width: 64px; height: 6px; border-radius: 4px; background: #f0e6da; overflow: hidden; }
.cs-status .meter-bar { height: 100%; width: 0; border-radius: 4px;
    background: linear-gradient(90deg, #7ab648, #f4a020, #d32027); transition: width .08s linear; }

.cs-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px;
    padding: 10px 16px; font-size: .95rem; max-width: 420px; }

/* ── BOTTOM: the call button (green ↔ red, swapped in place by JS) ── */
.cs-bottom { display: flex; justify-content: center; width: 100%; }
.cs-call-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-width: min(320px, 84vw); padding: 19px 42px; border: none; border-radius: 999px;
    font-size: 1.25rem; font-weight: 800; letter-spacing: .03em; color: #fff; cursor: pointer;
    position: relative; overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    animation: cs-rise .7s .2s ease both;
}
.cs-call-btn::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
    animation: cs-shine 3.2s ease-in-out infinite; }
@keyframes cs-shine { 0%,60% { left: -80%; } 100% { left: 130%; } }
.cs-call-btn svg { width: 26px; height: 26px; }
.cs-call-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.cs-call-btn:active { transform: scale(.97); }
.cs-green { background: linear-gradient(180deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
    box-shadow: 0 12px 30px rgba(22,163,74,.40), inset 0 1px 0 rgba(255,255,255,.35); }
.cs-red { background: linear-gradient(180deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
    box-shadow: 0 12px 30px rgba(220,38,38,.40), inset 0 1px 0 rgba(255,255,255,.30); }
.cs-red::after { animation: none; }

@keyframes cs-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── order confirmation — appears only after an order is placed ── */
.cs-confirm { position: fixed; inset: 0; z-index: 50; background: rgba(28,25,23,.45); }
.cs-confirm-card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: #fff; border-radius: 18px; padding: 30px 26px; max-width: 380px; width: calc(100% - 32px);
    text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.25); animation: cs-rise .35s ease both; }
.cs-confirm-card .tick { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
    background: #16a34a; color: #fff; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; }
.cs-confirm-card h2 { margin: 0 0 10px; color: #1c1917; }
.cs-confirm-card .label { color: #78716c; font-size: .85rem; display: block; }
.cs-confirm-card code { font-size: 1.15rem; font-weight: 700; color: #ea580c; }
.cs-confirm-card .confirm-phone { margin-top: 8px; }
.cs-confirm-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.cs-confirm-actions a { padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 700;
    background: #16a34a; color: #fff; }

/* JS-required elements that must EXIST but never show on this minimal screen */
.cs-stash { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .cs-logo, .cs-orb, .cs-orb::before, .cs-call-btn::after, .cs-stage::before, .cs-stage::after,
    .cs-tagline .pin { animation: none !important; }
}
