/**
 * CAPI Control - Enterprise Styling & Layout Additions
 * Sub-Brand of SeaText
 * Ad Signal Governance & Conversions API Proxy
 */

/* ==========================================================================
   1. Interactive CAPICONTROL / ACTIVATE Switch Logo (BotRefund Style)
   ========================================================================== */
header.header-main .header-nav-logo.logo,
.footer-logo-wrap .logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

header.header-main .header-nav-logo.logo {
    padding-right: 8px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
}

header.header-main .logo-seatext,
.footer-logo-wrap .logo-seatext {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 122px !important;
    height: 24px !important;
    font-family: 'Roboto Condensed', var(--font-primary), sans-serif !important;
    font-weight: 900 !important;
    font-size: 1.22rem !important;
    font-style: italic !important;
    letter-spacing: -0.03em !important;
    line-height: 1 !important;
}

header.header-main .word-seatext,
.footer-logo-wrap .word-seatext,
header.header-main .word-activate,
.footer-logo-wrap .word-activate {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    white-space: nowrap !important;
}

header.header-main .word-seatext,
.footer-logo-wrap .word-seatext {
    color: #ffffff !important;
    animation: fade-capicontrol 10s infinite ease-in-out !important;
}

header.header-main .word-activate,
.footer-logo-wrap .word-activate {
    color: #38bdf8 !important;
    animation: fade-activate 10s infinite ease-in-out !important;
}

header.header-main .logo-switch-container,
.footer-logo-wrap .logo-switch-container {
    display: inline-flex !important;
    align-items: center !important;
}

header.header-main .logo-switch-toggle,
.footer-logo-wrap .logo-switch-toggle {
    width: 44px !important;
    height: 22px !important;
    display: inline-block !important;
    position: relative !important;
}

header.header-main .logo-switch-slider,
.footer-logo-wrap .logo-switch-slider {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 22px !important;
    z-index: 1 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    animation: logo-toggle-track-dock 10s infinite cubic-bezier(0.25, 1, 0.5, 1) !important;
}

header.header-main .logo-switch-slider:before,
.footer-logo-wrap .logo-switch-slider:before {
    position: absolute !important;
    content: "" !important;
    height: 16px !important;
    width: 18px !important;
    left: 2px !important;
    bottom: 2px !important;
    background-color: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    z-index: 2 !important;
    animation: logo-toggle-knob-dock 10s infinite cubic-bezier(0.25, 1, 0.5, 1) !important;
}

header.header-main .logo-switch-slider::after,
.footer-logo-wrap .logo-switch-slider::after {
    content: "AI" !important;
    position: absolute !important;
    left: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #ffffff !important;
    font-family: var(--font-secondary), 'Roboto Condensed', sans-serif !important;
    font-weight: 800 !important;
    font-style: italic !important;
    font-size: 11px !important;
    letter-spacing: -0.02em !important;
    line-height: 1 !important;
    pointer-events: none !important;
    z-index: 1 !important;
    animation: logo-toggle-text-loop 10s infinite ease !important;
}

@keyframes fade-capicontrol {
    0%, 48% { opacity: 1; visibility: visible; }
    52%, 96% { opacity: 0; visibility: hidden; }
    100% { opacity: 1; visibility: visible; }
}

@keyframes fade-activate {
    0%, 48% { opacity: 0; visibility: hidden; }
    52%, 96% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes logo-toggle-knob-dock {
    0% { transform: translateX(20px); }
    1% { transform: translateX(0px); }
    6% { transform: translateX(20px); }
    6%, 49% { transform: translateX(20px); }
    51% { transform: translateX(0px); }
    56%, 99% { transform: translateX(20px); }
    100% { transform: translateX(20px); }
}

@keyframes logo-toggle-track-dock {
    0% { background-color: #2563eb; }
    1% { background-color: #383838; }
    6% { background-color: #2563eb; }
    6%, 49% { background-color: #2563eb; }
    51% { background-color: #383838; }
    56%, 99% { background-color: #2563eb; }
    100% { background-color: #2563eb; }
}

@keyframes logo-toggle-text-loop {
    0%, 49% { opacity: 1; }
    51%, 99% { opacity: 0; }
    100% { opacity: 1; }
}

/* ==========================================================================
   2. Status Badges (Institutional, No Emojis)
   ========================================================================== */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--font-secondary), monospace;
}

.badge-production {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.badge-beta {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.badge-beta .beta-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0284c7;
}

/* Sub-Brand Pill in Submenu */
.subbrand-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   3. Authority Stats Bar (Clean SeaText Architecture)
   ========================================================================== */
.authority-stats-section {
    padding: 24px 0 40px;
    border-bottom: 1px solid rgba(27, 27, 27, 0.08);
}

.authority-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 840px) {
    .authority-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .authority-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.authority-stat-card {
    background: #ffffff;
    border: 1px solid rgba(27, 27, 27, 0.08);
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.authority-stat-num {
    font-family: var(--font-primary);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: #1b1b1b;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.authority-stat-num.accent-blue {
    color: #2563eb;
}

.authority-stat-label {
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.authority-stat-desc {
    font-family: var(--font-primary);
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
    margin: 0;
}

/* ==========================================================================
   4. Visual Panels for Agent Split Rows (Institutional & Technical)
   ========================================================================== */
.proof-frame-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(27, 27, 27, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.proof-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(27, 27, 27, 0.06);
}

.proof-card-header strong {
    font-family: var(--font-secondary);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
    text-transform: uppercase;
}

.proof-latency-pill {
    font-family: 'JetBrains Mono', monospace, Consolas, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #a7f3d0;
}

/* Payload Diff Component */
.proof-diff-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .proof-diff-container {
        grid-template-columns: 1fr;
    }
}

.proof-diff-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'JetBrains Mono', monospace, Consolas, sans-serif;
    font-size: 12px;
    line-height: 1.55;
}

.proof-diff-box.is-raw {
    border-color: #fca5a5;
    background: #fef2f2;
}

.proof-diff-box.is-governed {
    border-color: #93c5fd;
    background: #eff6ff;
}

.proof-diff-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    display: block;
}

.is-raw .proof-diff-title { color: #dc2626; }
.is-governed .proof-diff-title { color: #2563eb; }

.proof-diff-code {
    margin: 0;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-all;
}

.proof-meta-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: #334155;
}

.proof-meta-result strong {
    color: #0f172a;
    font-family: var(--font-secondary);
}

/* ==========================================================================
   5. Terminal Architecture Block
   ========================================================================== */
.terminal-block {
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.35);
    border: 1px solid #334155;
}

.terminal-topbar {
    background: #1e293b;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-label {
    font-family: 'JetBrains Mono', monospace, Consolas, sans-serif;
    font-size: 12px;
    color: #94a3b8;
}

.terminal-code {
    padding: 24px;
    margin: 0;
    font-family: 'JetBrains Mono', monospace, Consolas, sans-serif;
    font-size: 13px;
    line-height: 1.65;
    color: #f1f5f9;
    overflow-x: auto;
}

.c-dim { color: #64748b; }
.c-blue { color: #60a5fa; }
.c-green { color: #34d399; }
.c-yellow { color: #fde047; }
.c-purple { color: #c084fc; }

/* ==========================================================================
   6. Comparison Table (Standard CAPI vs CAPI Control)
   ========================================================================== */
.comparison-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 32px 0;
    border: 1px solid rgba(27, 27, 27, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(27, 27, 27, 0.06);
}

.comparison-table th {
    background: #f8fafc;
    font-family: var(--font-secondary);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: #475569;
}

.comparison-table th:nth-child(3) {
    background: #eff6ff;
    color: #1d4ed8;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: #0f172a;
}

.comparison-table td.cell-standard {
    color: #64748b;
}

.comparison-table td.cell-governed {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 500;
}

/* ==========================================================================
   7. Enterprise Pricing Cards (High-Ticket $1M+ GMV)
   ========================================================================== */
.pricing-grid-enterprise {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .pricing-grid-enterprise {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.pricing-card-ent {
    background: #ffffff;
    border: 1px solid rgba(27, 27, 27, 0.08);
    border-radius: 20px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card-ent:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

.pricing-card-ent.is-featured {
    border: 2px solid #2563eb;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

.pricing-featured-tag {
    position: absolute;
    top: -12px;
    left: 28px;
    background: #2563eb;
    color: #ffffff;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-secondary);
}

.pricing-plan-name {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #64748b;
    margin-bottom: 8px;
}

.pricing-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.pricing-amount {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pricing-cadence {
    font-size: 14px;
    color: #64748b;
}

.pricing-spend-target {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(27, 27, 27, 0.08);
}

.pricing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-feature-list li {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
    position: relative;
    padding-left: 22px;
}

.pricing-feature-list li::before {
    content: "✓";
    font-weight: 700;
    color: #2563eb;
    position: absolute;
    left: 0;
    top: 0;
}

.pricing-card-ent .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   8. CAPI Manipulation Engine Framework (Post-Chat Architectural Overview)
   ========================================================================== */
.manipulation-framework-section {
    padding: 64px 0 44px;
    background: #ffffff;
    border-top: 1px solid rgba(27, 27, 27, 0.08);
    border-bottom: 1px solid rgba(27, 27, 27, 0.08);
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 36px;
}

@media (max-width: 960px) {
    .framework-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .framework-grid {
        grid-template-columns: 1fr;
    }
}

.framework-card {
    background: #f8fafc;
    border: 1px solid rgba(27, 27, 27, 0.08);
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.framework-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.3);
}

.framework-step-badge {
    font-family: var(--font-secondary), monospace;
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    width: max-content;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.framework-title {
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.framework-desc {
    font-family: var(--font-primary);
    font-size: 13.5px;
    line-height: 1.5;
    color: #64748b;
    margin: 0 0 14px 0;
}

.framework-outcome {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(27, 27, 27, 0.06);
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}

.framework-outcome span {
    color: #2563eb;
}

/* ==========================================================================
   9. Chat Prompt Chips (Quick suggestions)
   ========================================================================== */
.chat-prompt-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.prompt-chip {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 7px 15px;
    font-family: var(--font-primary), -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.18s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    outline: none;
}

.prompt-chip:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.prompt-chip:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   10. Interactive Activate Switch CTA & A/B Test Guarantee
   ========================================================================== */
.agent-activate-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn-activate-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0f172a;
    color: #ffffff;
    padding: 9px 20px 9px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-family: var(--font-primary), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    user-select: none;
    outline: none;
}

.btn-activate-switch:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    border-color: rgba(37, 99, 235, 0.5);
}

.activate-switch-ui {
    position: relative;
    width: 38px;
    height: 22px;
    background: #334155;
    border-radius: 9999px;
    transition: background-color 0.25s ease;
    display: flex;
    align-items: center;
    padding: 2px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.activate-switch-slider {
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-activate-switch:hover .activate-switch-ui,
.btn-activate-switch.is-active .activate-switch-ui {
    background: #2563eb;
}

.btn-activate-switch:hover .activate-switch-slider,
.btn-activate-switch.is-active .activate-switch-slider {
    transform: translateX(16px);
}

.btn-activate-switch.is-active {
    background: #1e3a8a;
    border-color: #3b82f6;
}

.agent-ab-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-primary), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.18);
    padding: 7px 13px;
    border-radius: 9999px;
    line-height: 1.35;
    white-space: nowrap;
}

.agent-ab-guarantee span {
    color: #1e293b;
    font-weight: 500;
}

.agent-ab-guarantee svg {
    flex-shrink: 0;
    color: #2563eb;
}

/* ==========================================================================
   11. Beta Engines Divider Section
   ========================================================================== */
.beta-lineup-divider {
    text-align: center;
    max-width: 840px;
    margin: 80px auto 48px;
    padding: 32px 24px;
    background: #ffffff;
    border: 1px dashed rgba(37, 99, 235, 0.3);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.beta-divider-badge {
    display: inline-block;
    font-family: var(--font-secondary), monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.beta-divider-title {
    font-family: var(--font-primary);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.beta-divider-desc {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Hot Buyer Shield Flagship Component Styles
   ========================================================================== */
.hotbuyer-staccato-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0 24px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 16px;
}

@media (max-width: 768px) {
    .hotbuyer-staccato-box {
        grid-template-columns: 1fr;
    }
}

.staccato-beat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.staccato-status {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
    align-self: flex-start;
    margin-bottom: 4px;
    font-family: var(--font-secondary), monospace;
}

.beat-crm .staccato-status {
    background: #ecfdf5;
    color: #059669;
}

.beat-fulfillment .staccato-status {
    background: #eff6ff;
    color: #2563eb;
}

.beat-adplatforms .staccato-status {
    background: #f5f3ff;
    color: #7c3aed;
}

.staccato-beat strong {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.staccato-beat span:not(.staccato-status) {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.hotbuyer-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.hotbuyer-tag {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 6px;
    padding: 4px 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.hotbuyer-tag::before {
    content: "•";
    color: #2563eb;
    margin-right: 6px;
    font-weight: 700;
}

/* ==========================================================================
   10. Quality Layer Showcase (How the Entire System Works)
   ========================================================================== */
.quality-layer-section {
    padding: 64px 0 80px;
    background: #fafbfc;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.quality-scenario-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.quality-scenario-tab {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-secondary), -apple-system, BlinkMacSystemFont, sans-serif;
}

.quality-scenario-tab:hover {
    border-color: #2563eb;
    color: #0f172a;
    background: #f8fafc;
}

.quality-scenario-tab.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.quality-system-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    max-width: 1080px;
    margin: 0 auto;
}

.quality-ingress-banner {
    background: #0f172a;
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid #1e293b;
}

.quality-ingress-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quality-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: quality-pulse-green 2s infinite;
}

@keyframes quality-pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.quality-ingress-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    font-family: var(--font-secondary), monospace;
}

.quality-ingress-event {
    font-family: var(--font-secondary), monospace;
    font-size: 13.5px;
    font-weight: 600;
    color: #f8fafc;
}

.quality-ingress-latency {
    font-family: var(--font-secondary), monospace;
    font-size: 11.5px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 10px;
    border-radius: 999px;
}

.quality-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 0;
}

@media (max-width: 860px) {
    .quality-grid {
        grid-template-columns: 1fr;
    }
}

.quality-col-normal {
    padding: 32px 28px;
    background: #f8fafc;
    border-right: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    flex-direction: column;
}

@media (max-width: 860px) {
    .quality-col-normal {
        border-right: none;
        border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    }
}

.quality-col-capicontrol {
    padding: 32px 28px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.quality-col-header {
    margin-bottom: 20px;
}

.quality-badge-muted {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-secondary), monospace;
    margin-bottom: 8px;
}

.quality-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.25);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-secondary), monospace;
    margin-bottom: 8px;
}

.quality-col-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.quality-col-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.quality-payload-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.quality-payload-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
    font-family: var(--font-secondary), monospace;
}

.quality-payload-code {
    font-family: var(--font-secondary), monospace;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.quality-implications-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    margin-bottom: 10px;
    font-family: var(--font-secondary), monospace;
}

.quality-implications-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quality-implications-list li {
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
    position: relative;
    padding-left: 20px;
}

.quality-implications-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 700;
    font-size: 12px;
}

.quality-telemetry-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.quality-telemetry-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 8px;
    font-family: var(--font-secondary), monospace;
    font-size: 13px;
    transition: background 0.15s ease;
}

.quality-telemetry-item:hover {
    background: #f1f5f9;
}

.telemetry-key {
    font-weight: 600;
    color: #334155;
}

.telemetry-val {
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.val-green {
    background: #ecfdf5;
    color: #059669;
}

.val-blue {
    background: #eff6ff;
    color: #2563eb;
}

.val-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.val-policy {
    background: #0f172a;
    color: #38bdf8;
    letter-spacing: 0.02em;
}

.quality-outcome-box {
    background: #eff6ff;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: auto;
}

.quality-outcome-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
    font-family: var(--font-secondary), monospace;
    margin-bottom: 4px;
}

.quality-outcome-val {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.quality-outcome-desc {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.4;
}

.quality-quote-footer {
    background: #f8fafc;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (max-width: 768px) {
    .quality-quote-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
}

.quality-quote-text {
    flex: 1;
}

.quality-quote-text blockquote {
    margin: 0 0 6px 0;
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.quality-quote-text p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}




