/* Revenue OS hero flow animation — supplied as source of truth.
   Namespaced entirely under .revenue-os-animation so it cannot leak
   into (or be affected by) the rest of the site's CSS. Only the host
   rule below differs from the original standalone file: the full-page
   centering/background/min-height was for the animation's standalone
   demo page and is dropped here since this is embedded inside the
   existing hp-hero-grid's second column, not a page of its own. */
.revenue-os-animation {
    /* aligned to the site's actual tokens: --hp-green is the same mint
       used everywhere else (cards, badges, pills), and violet/amber
       here match this same page's own --rev-exec/--rev-recover tri-lane
       coding in the "How Finnoto Works" section below, so the hero and
       that section read as one consistent color system. */
    --accent-rgb: 61,240,179;
    --mint: var(--hp-green, #3df0b3);
    --emerald: #20d99c;
    --exec: #aaa9ff;
    --recon: var(--hp-green, #3df0b3);
    --recover: #ffae66;
    --text: #e8eeeb;
    --muted: #8c9692;
    --muted-2: var(--hp-dtext-4, #7f8987);
    --panel: var(--hp-panel, #0a0c0b);
    --panel-2: var(--hp-panel-2, #0d0f0e);
    --line: rgba(255,255,255,.08);
    --line-strong: rgba(255,255,255,.14);
    --on-accent: #06110d;
    --glow: rgba(61,240,179,.55);
    position: relative;
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
}

.revenue-os-animation .flowviz {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 400/600;
    height: auto;
    margin: 0 auto;
}

.revenue-os-animation .flowviz>svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.revenue-os-animation .fv-line {
    fill: none;
    stroke: rgba(255,255,255,.07);
    stroke-width: 1.4;
}
.revenue-os-animation .fv-line.exec { stroke: rgba(139,139,255,.2); }
.revenue-os-animation .fv-line.recon { stroke: rgba(var(--accent-rgb),.2); }
.revenue-os-animation .fv-line.recover { stroke: rgba(255,174,102,.2); }

.revenue-os-animation .fv-dot {
    filter: drop-shadow(0 0 4px rgba(var(--accent-rgb),.7));
}
.revenue-os-animation .fv-dot.violet {
    filter: drop-shadow(0 0 5px rgba(139,139,255,.8));
}
.revenue-os-animation .fv-dot.amber {
    filter: drop-shadow(0 0 5px rgba(255,174,102,.85));
}
.revenue-os-animation .fv-orbit {
    transform-box: fill-box;
    transform-origin: center;
    animation: revenue-os-orbitspin 26s linear infinite;
}
@keyframes revenue-os-orbitspin {
    to { transform: rotate(360deg); }
}

.revenue-os-animation .fv-cov {
    position: absolute;
    left: 50%;
    top: 5.5%;
    transform: translate(-50%,-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(160deg,var(--panel-2),var(--panel));
    border: 1px solid var(--line);
    box-shadow: 0 14px 30px -20px rgba(0,0,0,.9);
    white-space: nowrap;
}
.revenue-os-animation .fv-cov .cl {
    font-size: 8.5px; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--muted-2); padding-right: 2px;
}
.revenue-os-animation .fv-cov .cb {
    width: 21px; height: 21px; border-radius: 50%; display: grid;
    place-items: center; font-size: 9px; font-weight: 700; color: var(--text);
    background: linear-gradient(160deg,#16323a,#0c1318);
    border: 1px solid var(--line-strong); margin-left: -7px;
    box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.revenue-os-animation .fv-cov .cb:first-of-type { margin-left: 0; }
.revenue-os-animation .fv-cov .cn {
    font-size: 10px; font-weight: 700; color: var(--mint); margin-left: 4px;
}

.revenue-os-animation .fv-pillar {
    position: absolute; transform: translate(-50%,-50%); width: 134px;
    border-radius: 13px; padding: 11px 12px;
    background: linear-gradient(160deg,var(--panel-2),var(--panel));
    border: 1px solid var(--line);
    box-shadow: 0 16px 34px -22px rgba(0,0,0,.9);
}
.revenue-os-animation .fv-pillar .ph {
    display: flex; align-items: center; justify-content: space-between;
    gap: 6px; margin-bottom: 8px;
}
.revenue-os-animation .fv-pillar .picon {
    width: 26px; height: 26px; border-radius: 8px; display: grid;
    place-items: center; flex-shrink: 0;
}
.revenue-os-animation .fv-pillar .ptag {
    font-size: 8px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; padding: 3px 7px; border-radius: 999px;
}
.revenue-os-animation .fv-pillar .ptitle {
    font-family: 'Geist', system-ui, sans-serif;
    font-weight: 700; font-size: 13.5px; line-height: 1;
}
.revenue-os-animation .fv-pillar .pdesc {
    font-size: 10px; color: var(--muted-2); margin-top: 3px;
}
.revenue-os-animation .fv-pillar.exec { border-color: rgba(139,139,255,.28); }
.revenue-os-animation .fv-pillar.exec .picon,
.revenue-os-animation .fv-pillar.exec .ptag { background: rgba(139,139,255,.14); color: var(--exec); }
.revenue-os-animation .fv-pillar.recon { border-color: rgba(var(--accent-rgb),.28); }
.revenue-os-animation .fv-pillar.recon .picon,
.revenue-os-animation .fv-pillar.recon .ptag { background: rgba(var(--accent-rgb),.14); color: var(--recon); }
.revenue-os-animation .fv-pillar.recover { border-color: rgba(255,174,102,.28); }
.revenue-os-animation .fv-pillar.recover .picon,
.revenue-os-animation .fv-pillar.recover .ptag { background: rgba(255,174,102,.14); color: var(--recover); }
.revenue-os-animation .fv-pillar.p-recon { left: 50%; top: 18%; }
.revenue-os-animation .fv-pillar.p-exec { left: 18%; top: 28%; }
.revenue-os-animation .fv-pillar.p-recover { left: 82%; top: 28%; }

.revenue-os-animation .fv-hub {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 150px; border-radius: 20px;
    background: radial-gradient(120% 120% at 50% 0,var(--panel-2),var(--panel));
    border: 1px solid var(--line-strong); padding: 16px 14px; text-align: center;
    box-shadow: 0 30px 70px -28px rgba(0,0,0,.9),0 0 0 5px rgba(var(--accent-rgb),.04),inset 0 1px 0 rgba(255,255,255,.05);
}
.revenue-os-animation .fv-hub .hmark {
    width: 40px; height: 40px; border-radius: 12px; margin: 0 auto;
    background: linear-gradient(140deg,var(--mint),var(--emerald));
    display: grid; place-items: center; color: var(--on-accent);
    font-family: 'Geist', system-ui, sans-serif; font-weight: 800; font-size: 20px;
    box-shadow: 0 8px 22px -6px var(--glow);
    animation: revenue-os-hubpulse 3.2s ease-in-out infinite;
}
@keyframes revenue-os-hubpulse {
    0%,100% { box-shadow: 0 8px 22px -6px var(--glow),0 0 0 0 rgba(var(--accent-rgb),.22); }
    50% { box-shadow: 0 8px 26px -6px var(--glow),0 0 0 7px rgba(var(--accent-rgb),0); }
}
.revenue-os-animation .fv-hub .hname { font-family: 'Geist', system-ui, sans-serif; font-weight: 800; font-size: 18px; margin-top: 9px; }
.revenue-os-animation .fv-hub .hsub { font-size: 8.5px; color: var(--muted-2); letter-spacing: .07em; text-transform: uppercase; margin-top: 2px; }
.revenue-os-animation .fv-hub .htick { font-size: 10px; color: var(--muted); margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }

.revenue-os-animation .fv-term {
    position: absolute; transform: translate(-50%,-50%); width: 104px;
    border-radius: 12px; padding: 10px 8px; text-align: center;
    background: linear-gradient(160deg,var(--panel-2),var(--panel));
    border: 1px solid var(--line); box-shadow: 0 16px 34px -22px rgba(0,0,0,.9);
}
.revenue-os-animation .fv-term .ti {
    width: 24px; height: 24px; border-radius: 7px; display: grid;
    place-items: center; margin: 0 auto 6px;
}
.revenue-os-animation .fv-term .tt { font-family: 'Geist', system-ui, sans-serif; font-weight: 700; font-size: 12.5px; line-height: 1; }
.revenue-os-animation .fv-term .td { font-size: 8.5px; color: var(--muted-2); margin-top: 3px; }
.revenue-os-animation .fv-term.pay { border-color: rgba(var(--accent-rgb),.32); }
.revenue-os-animation .fv-term.pay .ti { background: rgba(var(--accent-rgb),.14); color: var(--recon); }
.revenue-os-animation .fv-term.dis { border-color: rgba(255,174,102,.3); }
.revenue-os-animation .fv-term.dis .ti { background: rgba(255,174,102,.14); color: var(--recover); }
.revenue-os-animation .fv-term.rep { border-color: rgba(139,139,255,.3); }
.revenue-os-animation .fv-term.rep .ti { background: rgba(139,139,255,.14); color: var(--exec); }
.revenue-os-animation .fv-term.t-pay { left: 50%; top: 74%; }
.revenue-os-animation .fv-term.t-dis { left: 21%; top: 74%; }
.revenue-os-animation .fv-term.t-rep { left: 79%; top: 74%; }

.revenue-os-animation .fv-books {
    position: absolute; left: 50%; top: 93%; transform: translate(-50%,-50%);
    display: flex; align-items: center; gap: 6px; padding: 7px 13px;
    border-radius: 999px; background: linear-gradient(160deg,var(--panel-2),var(--panel));
    border: 1px solid rgba(var(--accent-rgb),.25);
    box-shadow: 0 16px 34px -22px rgba(0,0,0,.9); white-space: nowrap;
}
.revenue-os-animation .fv-books .cl {
    font-size: 8.5px; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--muted-2); padding-right: 2px;
}
.revenue-os-animation .fv-books .cb {
    height: 21px; min-width: 21px; padding: 0 5px; border-radius: 6px;
    display: grid; place-items: center; font-size: 8.5px; font-weight: 700;
    color: var(--text); background: linear-gradient(160deg,#16323a,#0c1318);
    border: 1px solid var(--line-strong); margin-left: -5px;
    box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.revenue-os-animation .fv-books .cb:first-of-type { margin-left: 0; }
.revenue-os-animation .fv-books .ck {
    display: inline-flex; align-items: center; gap: 4px; font-size: 9px;
    font-weight: 700; color: var(--mint); margin-left: 4px;
}

@media(max-width: 880px) {
    .revenue-os-animation .flowviz { max-width: 340px; }
    .revenue-os-animation .fv-pillar { width: 112px; }
}
@media(prefers-reduced-motion:reduce) {
    .revenue-os-animation .fv-orbit,
    .revenue-os-animation .fv-hub .hmark { animation: none; }
}
