/* Revenue hero story: Conversation + Context -> Signals -> Attention -> Action.
   Evolves the original CRM -> action translator; reuses .rev-hero-card, .rev-hero-grid/.rev-hero-col,
   .rev-hero-label, .rev-crm-line, .rev-reveal, .revenue-signal, .rev-insight-badge, .rev-arrow-*, .revenue-action.
   Loaded after each page's inline styles. Driven by assets/js/rev-story.js. */
.rs { max-width: 980px; padding: 28px 22px; transition: box-shadow .8s ease, border-color .8s ease; border: 1px solid transparent; }
@media (min-width: 768px) { .rs { padding: 34px 40px 38px; } }
.rs.rs-risk { border-color: rgba(239,68,68,0.28); box-shadow: 0 0 70px -24px rgba(239,68,68,0.4); }
.rs-body { transition: opacity .5s ease; text-align: left; }
.rs-body.rs-fading { opacity: 0; }

.rs-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px dashed var(--color-p-border-line); }
.rs-deal-name { font-family: var(--font-geist, inherit); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--color-p-text); margin-right: 10px; }
.rs-deal-amount { font-size: 15px; font-weight: 700; color: var(--color-p-text); }
.rs-deal-meta { display: block; margin-top: 4px; font-size: 13px; color: var(--color-p-text-secondary); }
.rs-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; transition: color .5s ease, background-color .5s ease, border-color .5s ease, transform .5s cubic-bezier(0.22, 1, 0.36, 1); }
.rs-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rs-status[data-state="ok"] { color: var(--color-p-success); background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25); }
.rs-status[data-state="risk"] { color: #EF4444; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); transform: scale(1.06); }

.rs .rev-hero-grid { margin-top: 22px; }
.rs .rev-hero-label { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.rs .rev-crm-line { transition: opacity .5s ease, transform .5s ease, background-color .5s ease; padding: 9px 8px; margin: 0 -8px; border-radius: 8px; }
.rs .rev-crm-line.hit { background: rgba(20,184,166,0.07); }
.rs .rev-crm-line.hit .rev-crm-line-value { color: var(--color-p-teal); }
.rs-quote { --rev-reveal-y: 8px; margin: 0 0 8px; padding: 10px 14px; border-radius: 10px; border-left: 2px solid var(--color-p-border-hover); background: var(--color-p-bg-secondary); font-size: 13.5px; line-height: 1.4; color: var(--color-p-text); transition: opacity .5s ease, transform .5s ease, border-color .5s ease, background-color .5s ease; }
.rs-quote small { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-p-muted); }
.rs-quote.hit { border-left-color: var(--color-p-teal); background: rgba(20,184,166,0.07); }

/* processing: both sources converge into Performy */
.rs-engine { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: 8px; }
.rs-engine-row { position: relative; width: 100%; height: 44px; }
.rs-engine-row::before { content: ""; position: absolute; top: 22px; left: 25%; right: 25%; height: 1px; background: var(--color-p-teal); opacity: .55; transform: scaleX(0); transition: transform .8s cubic-bezier(0.22, 1, 0.36, 1); }
.rs-drop { position: absolute; top: 0; width: 1px; height: 22px; background: var(--color-p-teal); opacity: .55; transform: scaleY(0); transform-origin: top; transition: transform .5s ease; }
.rs-drop--l { left: 25%; } .rs-drop--r { left: 75%; }
.rs-engine-pill { position: absolute; left: 50%; top: 22px; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px; background: var(--color-p-bg-secondary); border: 1px solid var(--color-p-border); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--color-p-text-secondary); white-space: nowrap; transition: color .5s ease, border-color .5s ease, box-shadow .6s ease; }
.rs-engine-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-p-border-hover); transition: background-color .4s ease; }
.rs-engine.on .rs-engine-row::before, .rs-engine.on .rs-drop { transform: none; }
.rs-engine.on .rs-engine-pill { color: var(--color-p-teal); border-color: rgba(20,184,166,0.45); box-shadow: 0 0 34px -6px rgba(20,184,166,0.45); }
.rs-engine.on .rs-engine-dot { background: var(--color-p-teal); animation: rs-blink .7s ease-in-out 3; }
@keyframes rs-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.rs-stem { width: 1px; height: 16px; background: var(--color-p-teal); opacity: .55; transform: scaleY(0); transform-origin: top; transition: transform .4s ease; }
.rs-engine.done .rs-stem { transform: none; }

.rs-signals { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.rs-signals .revenue-signal { --rev-reveal-y: 8px; font-size: 14px; padding: 10px 16px; transition: opacity .45s ease, transform .45s cubic-bezier(0.22, 1, 0.36, 1); }

/* attention -> action */
.rs-outcome { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.rs-outcome .rev-arrow-wrap { margin: 0; flex-shrink: 0; }
.rs-outcome .rev-insight-badge { flex-shrink: 0; white-space: nowrap; font-size: 16px; padding: 14px 18px; }
.rs-action { flex: 1; max-width: 460px; --rev-reveal-y: 10px; padding: 20px 24px; border-radius: 16px; background: linear-gradient(135deg, rgba(232,108,93,0.16), rgba(232,108,93,0.05)); border: 1px solid rgba(232,108,93,0.5); box-shadow: 0 0 46px -12px rgba(232,108,93,0.5); transition: opacity .6s ease, transform .6s cubic-bezier(0.22, 1, 0.36, 1); }
.rs-action.visible { animation: rs-action-glow 2.4s ease-in-out .8s infinite; }
.rs-action .revenue-action-label { font-size: 11px; letter-spacing: .12em; margin-bottom: 6px; }
.rs-action .revenue-action-text { font-family: var(--font-geist, inherit); font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
@keyframes rs-action-glow { 0%, 100% { box-shadow: 0 0 46px -12px rgba(232,108,93,0.5); } 50% { box-shadow: 0 0 60px -6px rgba(232,108,93,0.75); } }

@media (max-width: 767px) {
    .rs-engine-row::before { display: none; }
    .rs-drop--r { display: none; }
    .rs-drop--l { left: 50%; }
    .rs-outcome { flex-direction: column; gap: 12px; }
    .rs-outcome .rev-arrow-pulse { transform: rotate(90deg); }
    .rs-action { max-width: none; width: 100%; padding: 18px 20px; }
    .rs-action .revenue-action-text { font-size: 18px; }
    .rs-deal-name { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .rs-action.visible { animation: none; } .rs-engine.on .rs-engine-dot { animation: none; } }
