/* "The problem" scene (preview 29.11.2026), same language as the hero animation (flow-anim.css):
   thin ink lines, white cards, one orange accent, the bee. One 16 s loop:
   1. three systems show three versions of one customer (the mismatch marks light up),
   2. quotes fly into one inbox and the count climbs,
   3. tasks pile up beside the owner, who sways under the load,
   4. the bee flies in and circles the owner: "We map this first".
   BASE state = the finished picture (reduced motion, no animation support); motion only in the no-preference query. */
.problem-anim{ --pa-ink:#16181D; --pa-card:#FFFFFF; --pa-muted:#4A4F5A; --pa-line:#8A8F99; --pa-accent:#B8451A; --pa-tint:#FBEEE8;
  margin: 30px 0 0; max-width: 460px; }
.problem-anim svg{ display:block; width:100%; height:auto; overflow:visible; }
.problem-anim text{ font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif; fill: var(--pa-ink); }
.problem-anim .pa-cap{ font-size: 15px; font-weight: 700; fill: var(--pa-accent); }
.problem-anim .pa-sys rect, .problem-anim .pa-inbox rect, .problem-anim .pa-task rect{ fill: var(--pa-card); stroke: var(--pa-ink); stroke-width: 1.5; }
.problem-anim .pa-sys-t{ font-size: 13px; font-weight: 700; text-anchor: middle; }
.problem-anim .pa-cust{ font-size: 13px; text-anchor: middle; fill: var(--pa-accent); }
.problem-anim .pa-neq{ font-size: 22px; font-weight: 700; text-anchor: middle; fill: var(--pa-accent); }
.problem-anim .pa-line{ fill:none; stroke: var(--pa-line); stroke-width: 1.5; stroke-dasharray: 4 4; }
.problem-anim .pa-inbox text{ font-size: 14px; font-weight: 600; text-anchor: middle; }
.problem-anim .pa-badge circle{ fill: var(--pa-accent); }
.problem-anim .pa-n{ font-size: 12px; font-weight: 700; text-anchor: middle; fill: #fff; opacity: 0; }
.problem-anim .pa-n4{ opacity: 1; }
.problem-anim .pa-env{ opacity: 0; }
.problem-anim .pa-env rect{ fill: var(--pa-card); stroke: var(--pa-ink); stroke-width: 1.3; }
.problem-anim .pa-env path{ fill:none; stroke: var(--pa-ink); stroke-width: 1.2; }
.problem-anim .pa-owner circle, .problem-anim .pa-owner path{ fill: var(--pa-card); stroke: var(--pa-ink); stroke-width: 1.6; }
.problem-anim .pa-owner-in{ transform-box: fill-box; transform-origin: 50% 100%; }
.problem-anim .pa-desk{ stroke: var(--pa-ink); stroke-width: 2; stroke-linecap: round; }
.problem-anim .pa-label{ font-size: 13px; font-weight: 600; text-anchor: middle; fill: var(--pa-muted); }
.problem-anim .pa-task rect{ fill: var(--pa-tint); stroke: var(--pa-accent); }
.problem-anim .pa-task text{ font-size: 12px; font-weight: 600; text-anchor: middle; }
.problem-anim .pa-ring{ fill:none; stroke: var(--pa-accent); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 0; }
.problem-anim .pa-map{ font-size: 14px; font-weight: 700; text-anchor: end; fill: var(--pa-accent); }
.problem-anim .pa-wing{ fill:#fff; fill-opacity:.9; stroke: var(--pa-ink); stroke-width:1.1; transform-box: fill-box; transform-origin: 50% 100%; }

@media (prefers-reduced-motion: no-preference){
  .problem-anim .pa-line{ animation: pa-flow 1.2s linear infinite; }
  .problem-anim .pa-neq{ animation: pa-neq 16s ease-in-out infinite both; }
  .problem-anim .pa-cust{ animation: pa-cust 16s ease-in-out infinite both; }
  .problem-anim .pa-env1{ animation: pa-env 16s ease-in infinite both; }
  .problem-anim .pa-env2{ animation: pa-env 16s ease-in infinite both; animation-delay: 1.3s; }
  .problem-anim .pa-env3{ animation: pa-env 16s ease-in infinite both; animation-delay: 2.6s; }
  .problem-anim .pa-n1{ animation: pa-n1 16s steps(1) infinite both; }
  .problem-anim .pa-n2{ animation: pa-n2 16s steps(1) infinite both; }
  .problem-anim .pa-n3{ animation: pa-n3 16s steps(1) infinite both; }
  .problem-anim .pa-n4{ animation: pa-n4 16s steps(1) infinite both; }
  .problem-anim .pa-t1{ animation: pa-t1 16s cubic-bezier(.3,1.5,.5,1) infinite both; }
  .problem-anim .pa-t2{ animation: pa-t2 16s cubic-bezier(.3,1.5,.5,1) infinite both; }
  .problem-anim .pa-t3{ animation: pa-t3 16s cubic-bezier(.3,1.5,.5,1) infinite both; }
  .problem-anim .pa-t4{ animation: pa-t4 16s cubic-bezier(.3,1.5,.5,1) infinite both; }
  .problem-anim .pa-owner-in{ animation: pa-sway 16s ease-in-out infinite both; }
  .problem-anim .pa-ring{ animation: pa-ring 16s ease-in-out infinite both; }
  .problem-anim .pa-map{ animation: pa-map 16s ease-in-out infinite both; }
  .problem-anim .pa-bee{ animation: pa-bee 16s ease-in-out infinite both; }
  .problem-anim .pa-wing{ animation: pa-flutter .18s ease-in-out infinite alternate; }
  .problem-anim .pa-wing2{ animation-delay: .09s; }
}
@keyframes pa-flow{ to{ stroke-dashoffset: -16; } }
@keyframes pa-neq{ 0%,10%{opacity:0} 14%,92%{opacity:1} 97%,100%{opacity:0} }
@keyframes pa-cust{ 0%,9%{fill: var(--pa-ink)} 13%,92%{fill: var(--pa-accent)} 97%,100%{fill: var(--pa-ink)} }
@keyframes pa-env{ 0%,14%{opacity:0; transform: translate(0,0)} 16%{opacity:1} 24%{opacity:1; transform: translate(110px,-2px)} 26%,100%{opacity:0; transform: translate(118px,-2px)} }
@keyframes pa-n1{ 0%{opacity:0} 18%{opacity:1} 26%,100%{opacity:0} }
@keyframes pa-n2{ 0%{opacity:0} 26%{opacity:1} 34%,100%{opacity:0} }
@keyframes pa-n3{ 0%{opacity:0} 34%{opacity:1} 42%,100%{opacity:0} }
@keyframes pa-n4{ 0%{opacity:0} 42%{opacity:1} 96%,100%{opacity:0} }
@keyframes pa-t1{ 0%,40%{opacity:0; transform: translateY(-14px)} 43%,94%{opacity:1; transform:none} 98%,100%{opacity:0} }
@keyframes pa-t2{ 0%,46%{opacity:0; transform: translateY(-14px)} 49%,94%{opacity:1; transform:none} 98%,100%{opacity:0} }
@keyframes pa-t3{ 0%,52%{opacity:0; transform: translateY(-14px)} 55%,94%{opacity:1; transform:none} 98%,100%{opacity:0} }
@keyframes pa-t4{ 0%,58%{opacity:0; transform: translateY(-14px)} 61%,94%{opacity:1; transform:none} 98%,100%{opacity:0} }
@keyframes pa-sway{ 0%,60%{transform:none} 63%{transform: rotate(-4deg)} 66%{transform: rotate(3deg)} 69%{transform: rotate(-2deg)} 72%,100%{transform:none} }
@keyframes pa-ring{ 0%,74%{stroke-dashoffset: 100} 86%,94%{stroke-dashoffset: 0} 98%,100%{stroke-dashoffset: 100} }
@keyframes pa-map{ 0%,84%{opacity:0} 88%,94%{opacity:1} 98%,100%{opacity:0} }
@keyframes pa-bee{ 0%,68%{opacity:0; transform: translate(80px,-190px)} 70%{opacity:1} 76%{transform: translate(-40px,-120px)} 82%{transform: translate(-150px,-10px)} 88%,94%{opacity:1; transform: none} 98%,100%{opacity:0; transform: translate(40px,-30px)} }
@keyframes pa-flutter{ from{ transform: scaleY(1) } to{ transform: scaleY(.35) } }
