/* =============================================
   REOS demo — page-specific styles
   Extends css/style.css + css/products.css (pratham.au design system)
   ============================================= */

.reos-accent { color: #22c55e !important; }

/* --- Demo mode banner --- */
.demo-banner {
    background: linear-gradient(90deg, rgba(34,197,94,.12), rgba(59,130,246,.12));
    border-bottom: 1px solid rgba(34,197,94,.25);
    padding: 0.6rem 0;
    font-size: 0.85rem;
    text-align: center;
    color: #d1d5db;
}
.demo-banner a { color: #4ade80; font-weight: 600; text-decoration: none; }
.demo-banner a:hover { text-decoration: underline; }

/* --- Agent flow / pipeline diagram (hero) --- */
.flow-arrow { text-align: center; }
.flow-arrow i { color: rgba(34,197,94,.5); }

/* --- KPI tiles (dashboard mockup) --- */
.kpi-tile {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    height: 100%;
}
.kpi-tile .kpi-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 0.4rem;
}
.kpi-tile .kpi-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #f9fafb;
    line-height: 1;
}
.kpi-tile .kpi-foot {
    font-size: 0.72rem;
    color: #4ade80;
    margin-top: 0.4rem;
}

/* --- Sparkline mini (pure CSS bars) --- */
.mini-spark {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 26px;
    margin-top: 0.5rem;
}
.mini-spark span {
    flex: 1;
    background: linear-gradient(180deg, rgba(34,197,94,.9), rgba(34,197,94,.25));
    border-radius: 2px 2px 0 0;
}

/* --- Task / lead list rows --- */
.demo-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
.demo-list-row:last-child { margin-bottom: 0; }
.demo-list-row .drow-main { color: #e5e7eb; font-weight: 500; }
.demo-list-row .drow-sub { color: #6b7280; font-size: 0.75rem; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.status-hot { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.status-warm { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.status-new { background: rgba(59,130,246,.12); color: #60a5fa; border: 1px solid rgba(59,130,246,.3); }
.status-nurture { background: rgba(139,92,246,.12); color: #a78bfa; border: 1px solid rgba(139,92,246,.3); }
.status-done { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }

.dot-live {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,.7);
    animation: pulse-green 2s infinite;
    display: inline-block;
}
.dot-idle { width: 8px; height: 8px; border-radius: 50%; background: #4b5563; display: inline-block; }
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,.7); }
    70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* --- Agent fleet grid --- */
.agent-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    height: 100%;
}
.agent-card .agent-name { font-weight: 600; font-size: 0.85rem; color: #e5e7eb; }
.agent-card .agent-cat { font-size: 0.7rem; color: #6b7280; margin-top: 0.15rem; }
.agent-card .agent-meta { font-size: 0.7rem; color: #4ade80; margin-top: 0.5rem; }

/* --- Content calendar grid --- */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}
.cal-day {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 0.6rem 0.5rem;
    min-height: 150px;
}
.cal-day .cal-day-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
.cal-post {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    color: #d1d5db;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    padding: 0.25rem 0.4rem;
    margin-bottom: 0.3rem;
}
@media (max-width: 992px) {
    .cal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Bar chart mockup (pure CSS) --- */
.bar-mock-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
}
.bar-mock-row .bar-label { width: 130px; color: #9ca3af; flex-shrink: 0; }
.bar-mock-track {
    flex: 1;
    height: 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    overflow: hidden;
}
.bar-mock-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #22c55e, #4ade80);
}
.bar-mock-val { width: 34px; text-align: right; color: #d1d5db; font-weight: 600; flex-shrink: 0; }

/* --- Donut mockup (conic-gradient) --- */
.donut-mock {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.donut-mock::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--donut-stops));
}
.donut-mock::after {
    content: '';
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    background: #0a0a0c;
}
.donut-center { position: relative; z-index: 1; text-align: center; }
.donut-center .dc-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.4rem; color: #f9fafb; }
.donut-center .dc-label { font-size: 0.65rem; color: #6b7280; text-transform: uppercase; }

.legend-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: #9ca3af; margin-bottom: 0.4rem; }
.legend-swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

/* --- Activity feed (live ticker) --- */
.activity-feed {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.activity-feed::-webkit-scrollbar { width: 6px; }
.activity-feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.activity-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
    animation: fade-in-row 0.4s ease;
}
.activity-row .a-time { color: #4b5563; font-size: 0.7rem; white-space: nowrap; margin-left: auto; }
.activity-row .a-text { color: #d1d5db; }
.activity-row .a-text b { color: #4ade80; font-weight: 600; }
@keyframes fade-in-row {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Demo shell tabs --- */
.demo-tab-btn {
    background: transparent;
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 0.6rem 1.1rem;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.demo-tab-btn:hover { color: #e5e7eb; border-color: #374151; }
.demo-tab-btn.active {
    background: rgba(34,197,94,.1);
    border-color: rgba(34,197,94,.5);
    color: #4ade80;
}
.demo-panel { display: none; }
.demo-panel.active { display: block; animation: fade-in-row 0.35s ease; }
