/* AI-effekter, bara på Bli partner (22 nov). Hör ihop med partner-ai.js. */

/* nätverket bakom hela sidan */
/* syns i kanterna, nästan osynligt där texten står, så att det aldrig stör läsningen */
.ai-net { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .9;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 5%, rgba(0,0,0,.08) 20%, rgba(0,0,0,.08) 80%, #000 95%, #000 100%);
          mask-image: linear-gradient(to right, #000 0, #000 5%, rgba(0,0,0,.08) 20%, rgba(0,0,0,.08) 80%, #000 95%, #000 100%); }
@media (max-width: 760px) { .ai-net { opacity: .35; } }

/* korten under "Vi kan erbjuda bättre villkor": ett ljussvep går över kanten, ett kort i taget */
#ai .hw { position: relative; overflow: hidden; }
#ai .hw::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 40%, rgba(255,226,97,.10) 48%, rgba(255,240,190,.22) 50%, rgba(255,226,97,.10) 52%, transparent 60%);
  transform: translateX(-120%); animation: ai-sweep 7s ease-in-out infinite; }
#ai .hw:nth-child(2)::after { animation-delay: 1.2s; }
#ai .hw:nth-child(3)::after { animation-delay: 2.4s; }
@keyframes ai-sweep { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
#ai .hw .ic { box-shadow: 0 0 0 0 rgba(255,226,97,.45); animation: ai-ping 3.5s ease-out infinite; }
#ai .hw:nth-child(2) .ic { animation-delay: 1.2s; }
#ai .hw:nth-child(3) .ic { animation-delay: 2.4s; }
@keyframes ai-ping { 0% { box-shadow: 0 0 0 0 rgba(255,226,97,.45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255,226,97,0); } }

/* jämförelsen: en liten lysande punkt framför varje "Med Saga" */
.vag .vs-row:not(.vs-cols) .s { position: relative; padding-left: 16px; }
.vag .vs-row:not(.vs-cols) .s::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%;
  background: #FFE261; box-shadow: 0 0 8px rgba(255,226,97,.8); animation: ai-dot 2.8s ease-in-out infinite; }
.vag .vs-row:nth-child(3) .s::before { animation-delay: .5s; }
.vag .vs-row:nth-child(4) .s::before { animation-delay: 1s; }
.vag .vs-row:nth-child(5) .s::before { animation-delay: 1.5s; }
.vag .vs-row:nth-child(6) .s::before { animation-delay: 2s; }
.vag .paper .vs-row:not(.vs-cols) .s::before { background: #01664F; box-shadow: 0 0 8px rgba(1,102,79,.6); }
@keyframes ai-dot { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* Varför Saga: texten och tabellen i balans, avslutande rad under båda */
.vag .two.why { align-items: center; }
.vag .p-close { max-width: none !important; margin: 44px auto 0 !important; text-align: center; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: clamp(1.4rem, 2.2vw, 1.8rem) !important; line-height: 1.35 !important; color: var(--cream); }
.vag .paper .p-close { color: #0D2C23; }

/* korten: en stjärna i stället för siffror, eftersom de inte är steg */
.vag main .hw .ic { font-size: 1rem; }

/* stegen: "När du växer, växer vi." som egen rad under stegen */
.vag .rm-end { position: relative; z-index: 1; text-align: center; margin: 30px auto 0; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--sun, #FFE066); }

@media (prefers-reduced-motion: reduce) {
  #ai .hw::after, #ai .hw .ic, .vag .vs-row .s::before { animation: none; }
}
