/* ===================================================================
   Transformation stage visuals — unified dark canvas (#07152D · white ·
   orange). Each built in 600×500, scaled to fill the sticky column.
   Premium SaaS/agency UI mockups, no placeholders, no empty areas.
   =================================================================== */
.scn { position: relative; width: 600px; height: 500px; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.05); }
.scn__bg { position: absolute; inset: 0; }
.scn__dark { background: radial-gradient(120% 100% at 72% 6%, #122c4e 0%, #0b1d38 42%, #07152D 100%); }
.scn__inner { position: absolute; inset: 0; }
.scn__glow { position: absolute; width: 360px; height: 360px; background: radial-gradient(circle, rgba(249,115,22,0.22), transparent 68%); pointer-events: none; }
.scn__glow--br { right: -130px; bottom: -120px; }
.scn__glow--tr { right: -120px; top: -110px; }
.scn__glow--l { left: -150px; top: 30%; width: 320px; height: 320px; }

.scn__badge { position: absolute; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 7px 13px; border-radius: 999px; z-index: 9; }
.scn__float { position: absolute; background: #fff; border-radius: 15px; box-shadow: 0 22px 44px -16px rgba(0,0,0,0.65); padding: 13px 16px; display: flex; align-items: center; gap: 12px; z-index: 9; }
.scn__float .ic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.scn__float .big { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--slate-900); line-height: 1; }
.scn__float .sm { font-size: 11.5px; color: var(--slate-500); margin-top: 4px; white-space: nowrap; }

/* ---------- Stage 1 — outdated ---------- */
.so__browser { position: absolute; left: 30px; top: 70px; width: 432px; z-index: 2; }
.so__phone { position: absolute; right: 40px; bottom: 30px; width: 122px; z-index: 4; }
.so__warn { top: 28px; right: 28px; background: rgba(239,90,90,0.16); color: #ff9b9b; border: 1px solid rgba(239,90,90,0.4); }
.so__rank { left: 30px; bottom: 32px; background: rgba(255,255,255,0.07); color: var(--slate-300); border: 1px solid rgba(255,255,255,0.15); z-index: 5; }

/* ---------- Stage 2 — blueprint / sketchbook ---------- */
.bp__grid { position: absolute; inset: 0; background:
    repeating-linear-gradient(0deg, rgba(120,170,255,0.07) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(120,170,255,0.07) 0 1px, transparent 1px 38px);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 55%, transparent 100%); mask-image: radial-gradient(120% 100% at 50% 40%, #000 55%, transparent 100%); }
.bp__flow { position: absolute; top: 32px; left: 30px; right: 30px; display: flex; align-items: center; justify-content: space-between; z-index: 4; }
.bp__node { background: rgba(255,255,255,0.05); border: 1.5px solid rgba(160,195,255,0.32); border-radius: 12px; padding: 9px 14px; min-width: 104px; }
.bp__node-k { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--orange-300); letter-spacing: .12em; }
.bp__node-t { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 700; color: #eaf1ff; margin-top: 2px; }
.bp__node.is-goal { border-color: var(--brand); background: rgba(249,115,22,0.16); }
.bp__flow-arrow { flex: 1; height: 2px; margin: 0 8px; position: relative; background: repeating-linear-gradient(90deg, var(--orange-300) 0 6px, transparent 6px 12px); }
.bp__flow-arrow::after { content: ""; position: absolute; right: -2px; top: 50%; transform: translateY(-50%); border-left: 7px solid var(--orange-300); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

.bp__sketch { position: absolute; left: 92px; top: 116px; width: 416px; height: 304px; background: rgba(9,22,42,0.5); border: 1.6px solid rgba(190,214,255,0.45); border-radius: 14px; padding: 20px; z-index: 3; overflow: hidden; }
.bp__cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; opacity: 0.5; pointer-events: none; }
.bp__cols span { border-left: 1px dashed rgba(160,195,255,0.18); }
.bp__cols span:first-child { border-left: 0; }
.bp__row { display: flex; align-items: center; justify-content: space-between; position: relative; }
.bp__logo { width: 64px; height: 22px; border: 1.4px solid rgba(190,214,255,0.5); border-radius: 5px; }
.bp__nav { display: flex; gap: 10px; }
.bp__nav span { width: 34px; height: 7px; background: rgba(190,214,255,0.28); border-radius: 4px; }
.bp__hero { display: grid; grid-template-columns: 1fr 0.85fr; gap: 16px; margin-top: 20px; position: relative; }
.bp__hblock { height: 24px; background: rgba(190,214,255,0.4); border-radius: 5px; }
.bp__hl { height: 9px; background: rgba(190,214,255,0.2); border-radius: 4px; margin-top: 9px; }
.bp__hl.s { width: 70%; }
.bp__cta { margin-top: 14px; width: 92px; height: 30px; border: 1.5px dashed var(--orange-300); border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; color: var(--orange-300); }
.bp__imgbox { border: 1.4px solid rgba(190,214,255,0.45); border-radius: 8px; position: relative; min-height: 96px; }
.bp__imgbox::before, .bp__imgbox::after { content: ""; position: absolute; inset: 0; border-top: 1.4px solid rgba(190,214,255,0.28); }
.bp__imgbox::before { transform: rotate(33deg); transform-origin: center; }
.bp__imgbox::after { transform: rotate(-33deg); transform-origin: center; }
.bp__feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.bp__feats span { height: 40px; border: 1.4px solid rgba(190,214,255,0.28); border-radius: 8px; }
.bp__tag { position: absolute; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: #9fc0ff; background: rgba(120,160,230,0.16); border: 1px solid rgba(140,180,250,0.32); border-radius: 5px; padding: 2px 6px; z-index: 5; }
.bp__note { position: absolute; font-family: 'Caveat', cursive; font-weight: 700; font-size: 22px; color: var(--orange-300); z-index: 6; line-height: 1; max-width: 150px; }
.bp__sticky { position: absolute; font-family: 'Caveat', cursive; font-weight: 700; font-size: 18px; padding: 13px 14px; width: 108px; line-height: 1.05; box-shadow: 0 12px 24px -10px rgba(0,0,0,0.6); z-index: 7; }

/* ---------- Stage 3 — before / after ---------- */
.ba__after { position: absolute; right: 22px; top: 42px; width: 446px; z-index: 3; }
.ba__before { position: absolute; left: 20px; bottom: 32px; width: 246px; z-index: 4; transform: rotate(-3deg); box-shadow: 0 26px 50px -20px rgba(0,0,0,0.7); border-radius: 13px; }
.ba__lbl-after { top: 26px; right: 30px; background: var(--brand); color: #fff; }
.ba__lbl-before { left: 22px; bottom: 196px; background: rgba(7,21,45,0.9); color: var(--slate-200); border: 1px solid rgba(255,255,255,0.2); }
.ba__metric { right: 38px; bottom: 44px; }
.ba__arrow { position: absolute; left: 250px; top: 248px; width: 130px; height: 120px; z-index: 5; pointer-events: none; }

/* ---------- Stage 4 — workflow / automation ---------- */
.wfl__spine { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.wfl__dash { animation: wflFlow 1.1s linear infinite; }
@keyframes wflFlow { to { stroke-dashoffset: -34; } }
@media (prefers-reduced-motion: reduce) { .wfl__dash { animation: none; } }
.wfl__step { position: absolute; left: 0; right: 0; height: 74px; display: flex; align-items: center; z-index: 3; }
.wfl__dot { position: absolute; left: 70px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #07152D; border: 2.5px solid; display: flex; align-items: center; justify-content: center; z-index: 4; }
.wfl__dot span { width: 9px; height: 9px; border-radius: 50%; }
.wfl__card { position: absolute; left: 100px; right: 30px; height: 74px; background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.12); border-radius: 15px; padding: 0 18px; display: flex; align-items: center; gap: 14px; backdrop-filter: blur(4px); box-shadow: 0 14px 30px -20px rgba(0,0,0,0.7); }
.wfl__ic { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; box-shadow: 0 8px 16px -8px rgba(0,0,0,0.6); }
.wfl__txt { flex: 1; min-width: 0; }
.wfl__t { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; letter-spacing: -0.01em; }
.wfl__s { font-size: 12.5px; color: var(--slate-300); margin-top: 2px; }
.wfl__step-n { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.32); font-weight: 700; }
.wfl__auto { position: absolute; left: 70px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--brand); background: rgba(249,115,22,0.15); border: 1px solid rgba(249,115,22,0.4); border-radius: 999px; padding: 3px 9px; z-index: 6; }
.wfl__badge { right: 18px; top: 20px; }

/* ---------- Stage 5 — result dashboard ---------- */
.dsh__main { position: absolute; left: 28px; top: 40px; width: 392px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 20px 22px 16px; z-index: 2; backdrop-filter: blur(4px); box-shadow: 0 18px 40px -22px rgba(0,0,0,0.7); }
.dsh__head { display: flex; align-items: flex-start; justify-content: space-between; }
.dsh__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); font-weight: 700; }
.dsh__big { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: #fff; line-height: 1; margin-top: 8px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.02em; }
.dsh__delta { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 800; color: var(--success-text); background: var(--success-subtle); padding: 4px 9px; border-radius: 999px; }
.dsh__legend { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--slate-400); }
.dsh__legend .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.dsh__chart { width: 100%; height: 132px; margin-top: 12px; display: block; }
.dsh__enddot { position: absolute; right: 34px; top: 78px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(249,115,22,0.25); }

.dsh__bars { position: absolute; left: 28px; bottom: 30px; width: 188px; height: 138px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 16px 18px; z-index: 3; }
.dsh__bars-row { display: flex; align-items: flex-end; gap: 9px; height: 66px; margin-top: 12px; }
.dsh__bar { flex: 1; background: rgba(255,255,255,0.16); border-radius: 5px 5px 2px 2px; }
.dsh__bar.is-top { background: var(--brand); }
.dsh__bars-foot { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--success-text); margin-top: 12px; }

.dsh__kpi { padding: 12px 15px; }
.dsh__kpi--a { right: 26px; top: 150px; }
.dsh__kpi--b { right: 60px; bottom: 70px; }
.dsh__rating { left: 208px; bottom: 34px; background: rgba(255,255,255,0.07); color: var(--orange-200); border: 1px solid rgba(255,255,255,0.15); }

/* ===================================================================
   Sticky-column sizing — the scene fills the left column (≥45% width)
   =================================================================== */
.scn-vp { width: 100%; }

@media (max-width: 900px) {
  .px-vstory__stage > * { max-width: 560px; }
}
