/* An unframed, in-page CRM walkthrough that cycles through core workflows. */
.marketing-hero-visual {
  position: relative;
  display: block;
  width: 100%;
  max-width: 820px;
  min-height: 520px;
  justify-self: stretch;
  transform: none;
  direction: rtl;
}

.crm-story-scene {
  position: absolute;
  inset: 0 0 44px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: clamp(18px, 2.5vw, 32px);
  border: 1px solid #e5ebf1;
  border-radius: 26px;
  background: linear-gradient(145deg, #fff 20%, #f7f9fc);
  box-shadow: 0 28px 75px rgba(16, 36, 63, .1);
  opacity: 0;
  transform: translateY(16px) scale(.985);
  animation: crmStoryScene 18s ease-in-out infinite;
}

.scene-clients { animation-delay: 0s; }
.scene-followups { animation-delay: 6s; }
.scene-projects { animation-delay: 12s; }

@keyframes crmStoryScene {
  0%, 3% { opacity: 0; transform: translateY(16px) scale(.985); }
  7%, 29% { opacity: 1; transform: translateY(0) scale(1); }
  33%, 100% { opacity: 0; transform: translateY(-9px) scale(.99); }
}

.story-scene-top { display:flex; align-items:center; gap:12px; color:#183451; }
.story-brand-mark { display:grid; place-items:center; width:46px; height:46px; flex:none; border-radius:15px; color:#fff; background:#17375f; box-shadow:inset 0 -3px #c7a66b; font:800 24px Georgia,serif; }
.story-brand-mark img { display:block; width:100%; height:100%; object-fit:contain; }
.story-scene-top>span:nth-child(2) { display:grid; gap:3px; }
.story-scene-top small,.story-scene-top i { color:#8290a0; font-size:.75rem; font-style:normal; }
.story-scene-top strong { color:#17375f; font-size:1.1rem; }
.story-scene-top>i { margin-inline-start:auto; padding:8px 12px; border:1px solid #e3eaf0; border-radius:99px; background:#fff; white-space:nowrap; }
.story-client-board,.story-followup-board,.story-project-board { align-self:center; width:min(100%,680px); margin-inline:auto; padding:clamp(17px,2vw,26px); border:1px solid #e3eaf0; border-radius:20px; background:#fff; box-shadow:0 12px 34px rgba(18,43,71,.055); }
.story-board-title { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; color:#183451; font-weight:800; }
.story-board-title>b { padding:7px 11px; border:1px solid #e7ebf0; border-radius:9px; color:#68798e; font-size:.72rem; font-weight:600; }
.story-board-title i { margin-inline-start:8px; color:#4162ed; font-style:normal; }
.story-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.story-kpis article { display:grid; gap:5px; min-width:0; padding:13px; border:1px solid #e8edf2; border-radius:13px; background:#fbfcfe; }
.story-kpis small,.story-kpis article>i { color:#8290a0; font-size:.68rem; font-style:normal; }
.story-kpis strong { color:#17375f; font-size:1.55rem; }
.story-kpis article>i { color:#288665; }
.story-client-row { display:flex; align-items:center; gap:11px; padding:11px 4px; border-top:1px solid #edf0f4; }
.story-avatar { display:grid; place-items:center; width:38px; height:38px; flex:none; border-radius:12px; color:#315b7e; background:#eaf1f7; font-weight:800; }
.avatar-two { color:#7e6335; background:#f7f0e4; }
.avatar-three { color:#527b68; background:#e8f3ee; }
.story-client-row>span:nth-child(2) { display:grid; gap:3px; min-width:0; }
.story-client-row b,.story-timeline article b { color:#273f58; font-size:.82rem; }
.story-client-row small,.story-timeline article small { color:#8290a0; font-size:.68rem; }
.story-client-row em,.story-timeline article em { margin-inline-start:auto; padding:6px 9px; border-radius:99px; color:#3767bb; background:#eff3ff; font-size:.65rem; font-style:normal; white-space:nowrap; }
.story-timeline { display:grid; }
.story-timeline>div { display:grid; grid-template-columns:58px 18px 1fr; gap:10px; min-height:76px; }
.story-timeline time { padding-top:14px; color:#708197; font-size:.76rem; font-weight:700; }
.story-timeline>div>i { position:relative; width:11px; height:11px; margin-top:17px; border:3px solid #fff; border-radius:50%; background:#5474e8; box-shadow:0 0 0 2px #dce4ff; }
.story-timeline>div:not(:last-child)>i:after { position:absolute; top:8px; right:1px; width:2px; height:52px; content:""; background:#e2e8f0; }
.story-timeline article { position:relative; display:grid; align-content:center; gap:4px; margin-bottom:8px; padding:10px 13px; border:1px solid #e6ebf0; border-radius:12px; background:#fbfcfe; }
.story-timeline article em { position:absolute; left:12px; top:50%; transform:translateY(-50%); }
.story-next-step { display:flex; align-items:center; gap:11px; padding:13px; border-radius:13px; color:#22684e; background:#eef8f2; }
.story-next-step>span { display:grid; place-items:center; width:29px; height:29px; border-radius:9px; color:#fff; background:#43a27b; }
.story-next-step>div { display:grid; gap:3px; }
.story-next-step b { font-size:.77rem; }
.story-next-step small { color:#6e8d7c; font-size:.67rem; }
.story-project-card { display:grid; grid-template-columns:120px 1fr auto; align-items:center; gap:16px; margin-top:11px; padding:11px; border:1px solid #e7ecf1; border-radius:14px; background:#fff; }
.story-project-art { display:grid; align-content:center; justify-items:center; gap:3px; min-height:91px; border-radius:10px; color:#fff; background:linear-gradient(145deg,#315e78,#b69261); }
.story-project-art>i { font-size:1.8rem; font-style:normal; }
.story-project-art>small { font-size:.62rem; }
.project-art-two { background:linear-gradient(145deg,#397c88,#8fb9b0); }
.story-project-copy { display:grid; gap:5px; }
.story-project-copy>small,.story-project-copy>span { color:#8290a0; font-size:.68rem; }
.story-project-copy strong { color:#233e59; font-size:.9rem; }
.story-project-copy>span b { margin-inline-start:5px; color:#17375f; }
.story-project-arrow { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; color:#4162ed; background:#eff3ff; }
.story-project-footer { display:flex; align-items:center; gap:8px; margin-top:14px; color:#728197; font-size:.72rem; }
.story-project-footer span { color:#288665; font-size:1rem; }
.story-caption { display:flex; align-items:center; gap:12px; }
.story-caption>span { display:grid; place-items:center; width:38px; height:38px; flex:none; border:1px solid #e3eaf0; border-radius:12px; color:#4162ed; background:#fff; font-weight:800; }
.story-caption>div { display:grid; gap:2px; }
.story-caption small { color:#8895a5; font-size:.7rem; }
.story-caption strong { color:#17375f; font-size:.92rem; }
.story-caption>b { margin-inline-start:auto; color:#4162ed; font-size:.76rem; }
.story-progress { position:absolute; inset:auto 32px 21px; display:flex; gap:6px; height:3px; direction:rtl; }
.story-progress i { flex:1; border-radius:9px; background:#e4eaf0; }
.story-progress i:after { display:block; width:0; height:100%; border-radius:inherit; content:""; background:#4162ed; animation:storyProgress 18s linear infinite; }
.story-progress i:nth-child(2):after { animation-delay:6s; }
.story-progress i:nth-child(3):after { animation-delay:12s; }
@keyframes storyProgress { 0% { width:0; } 30%,100% { width:100%; } }
.story-demo-note { margin:3px 4px 0; text-align:center; color:#9aa5b2; font-size:.7rem; }

@media(max-width:650px) {
  .marketing-hero-visual { min-height:490px; }
  .crm-story-scene { inset:0 0 42px; gap:13px; padding:16px; border-radius:19px; }
  .story-scene-top { gap:8px; }
  .story-brand-mark { width:38px; height:38px; border-radius:12px; font-size:20px; }
  .story-scene-top strong { font-size:.86rem; }
  .story-scene-top small,.story-scene-top>i { font-size:.6rem; }
  .story-scene-top>i { padding:6px 8px; }
  .story-client-board,.story-followup-board,.story-project-board { padding:13px; }
  .story-board-title { margin-bottom:12px; font-size:.8rem; }
  .story-board-title>b { padding:6px 8px; font-size:.58rem; }
  .story-kpis { gap:5px; }
  .story-kpis article { padding:8px; }
  .story-kpis small,.story-kpis article>i { font-size:.56rem; }
  .story-kpis strong { font-size:1.15rem; }
  .story-client-row { gap:8px; padding:9px 2px; }
  .story-avatar { width:32px; height:32px; border-radius:10px; }
  .story-client-row b,.story-timeline article b { font-size:.7rem; }
  .story-client-row small,.story-timeline article small { font-size:.57rem; }
  .story-client-row em,.story-timeline article em { padding:5px 6px; font-size:.53rem; }
  .story-timeline>div { grid-template-columns:46px 14px 1fr; gap:6px; min-height:70px; }
  .story-timeline time { font-size:.64rem; }
  .story-timeline article { padding:9px; }
  .story-timeline article em { left:6px; }
  .story-next-step { padding:9px; }
  .story-next-step b { font-size:.65rem; }
  .story-next-step small { font-size:.56rem; }
  .story-project-card { grid-template-columns:76px 1fr auto; gap:9px; padding:8px; }
  .story-project-art { min-height:74px; }
  .story-project-art>i { font-size:1.4rem; }
  .story-project-art>small,.story-project-copy>small,.story-project-copy>span { font-size:.55rem; }
  .story-project-copy strong { font-size:.72rem; }
  .story-project-arrow { width:28px; height:28px; }
  .story-project-footer { font-size:.58rem; }
  .story-caption>span { width:32px; height:32px; }
  .story-caption small { font-size:.58rem; }
  .story-caption strong { font-size:.76rem; }
  .story-caption>b { font-size:.62rem; }
  .story-progress { inset-inline:20px; }
  .story-demo-note { font-size:.62rem; }
}

@media(prefers-reduced-motion:reduce) {
  .crm-story-scene { animation:none; opacity:0; transform:none; }
  .scene-clients { opacity:1; }
  .story-progress i:after { animation:none; width:0; }
}

