/* Blixtflow – startsidans egna stilar (laddas bara på startsidan). */

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 26px) 0 44px;
  color: #fff; background: var(--natt);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__aurora i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.hero__aurora i:nth-child(1) {
  width: 760px; height: 760px; right: -320px; top: -300px;
  background: radial-gradient(closest-side, rgba(155, 93, 229, .55), rgba(155, 93, 229, .18) 55%, transparent);
}
.hero__aurora i:nth-child(2) {
  width: 620px; height: 620px; left: -360px; top: 30%;
  background: radial-gradient(closest-side, rgba(126, 69, 201, .38), transparent);
}
.hero__aurora i:nth-child(3) {
  width: 520px; height: 520px; left: 50%; bottom: -220px; margin-left: -260px;
  background: radial-gradient(closest-side, rgba(200, 168, 242, .26), transparent);
}
.motion .hero__aurora i:nth-child(1) { animation: drift-a 22s ease-in-out infinite alternate; }
.motion .hero__aurora i:nth-child(2) { animation: drift-b 26s ease-in-out infinite alternate; }
.motion .hero__aurora i:nth-child(3) { animation: drift-a 30s ease-in-out infinite alternate-reverse; }
/* Mönstret Leenden – svagt, bara bakom scenen, aldrig bakom text. */
.hero__smiles {
  position: absolute; inset: 0;
  background: url("/_webbplats/b4/assets/brand/leenden-natt-ruta.svg") 0 0 / 150px 150px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 42%, #000 72%, transparent 98%);
  mask-image: linear-gradient(to bottom, transparent 42%, #000 72%, transparent 98%);
}
.hero__bolt { position: absolute; width: 16px; fill: var(--gnista); opacity: .9; filter: drop-shadow(0 0 10px rgba(242, 250, 163, .55)); }
.hero__bolt--1 { right: 9%; top: 51%; width: 14px; }
.hero__bolt--2 { left: 7%; top: 57%; width: 11px; }
.hero__bolt--3 { right: 16%; bottom: 7%; width: 12px; }
.motion .hero__bolt { animation: twinkle 3.2s ease-in-out infinite; }
.motion .hero__bolt--2 { animation-delay: -1.1s; animation-duration: 3.8s; }
.motion .hero__bolt--3 { animation-delay: -2s; animation-duration: 4.4s; }

.hero__layout { display: grid; gap: 34px; }
.hero__copy { max-width: 640px; }
.hero__title {
  margin: 0 0 22px;
  font-size: clamp(2.9rem, 1.55rem + 5.6vw, 5.5rem);
  font-weight: 800; letter-spacing: -.045em; line-height: .96;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__line > span { display: inline-block; }
.hero__line--flow { color: var(--gnista); }
.motion .hero__line > span { animation: line-up 1s var(--ease-out) backwards; animation-delay: .12s; }
.motion .hero__line--flow > span { animation-delay: .24s; }
.hero__lead { max-width: 540px; }
.hero__actions { display: grid; gap: 12px; margin-top: 30px; }
.hero__actions .btn { width: 100%; }
.hero .trust { margin-top: 26px; }
@media (min-width: 560px) {
  .hero__actions { display: flex; flex-wrap: wrap; }
  .hero__actions .btn { width: auto; }
}

/* Scenen: kanalerna, inkorgsfönstret, siffrorna och Blixten */
.hero__stage { position: relative; }
.stage { position: relative; max-width: 1040px; margin-inline: auto; padding-top: 72px; }
.stage__links { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.stage__links path { fill: none; stroke: rgba(242, 250, 163, .34); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.motion .stage__links path { animation: dash 1.6s linear infinite; }
.stage__note { margin-top: 44px; text-align: center; font-size: .8125rem; color: rgba(255, 255, 255, .6); }

/* Kanalerna – en rad ovanför inkorgen */
.stage__channels { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; }
.chn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 42px; height: 42px; border-radius: 50%;
  color: var(--gnista); background: #3A1650;
  box-shadow: inset 0 0 0 1px rgba(200, 168, 242, .32), 0 14px 28px -12px rgba(0, 0, 0, .7);
  transition: transform .35s var(--spring);
}
.chn .ic { width: 19px; height: 19px; }
.chn span { display: none; font-size: .84rem; font-weight: 650; white-space: nowrap; color: #fff; }
.chn.is-ping { transform: translateY(-5px) scale(1.1); }
.chn.is-ping::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; animation: ring .9s var(--ease-out); }
.motion .chn { animation: pop-in .6s var(--spring) backwards; animation-delay: calc(.8s + var(--n, 0) * .06s); }

/* Inkorgsfönstret */
.win {
  position: relative; z-index: 2; overflow: hidden;
  border-radius: 22px; color: var(--ink); background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 110px -40px rgba(0, 0, 0, .85), 0 30px 90px -40px rgba(155, 93, 229, .65);
}
.motion .win { animation: win-in 1.1s .3s var(--ease-out) backwards; }
.win__bar { position: relative; display: flex; align-items: center; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #F4EFF9; }
.win__dots { display: flex; gap: 6px; }
.win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #DCCDEE; }
.win__name { position: absolute; left: 50%; display: flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 650; white-space: nowrap; color: var(--muted); transform: translateX(-50%); }
.win__name img { width: 15px; height: 15px; }
.win__body { display: grid; grid-template-columns: minmax(0, 1fr); }
.win__rail { display: none; }
.win__list { display: flex; flex-direction: column; min-width: 0; }
.win__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.win__org { font-size: .75rem; font-weight: 650; color: var(--muted); }
.win__title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.win__count {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px;
  font-size: .75rem; font-weight: 800; white-space: nowrap; color: #fff; background: var(--natt);
}
.win__count::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gnista); }
.win__count.is-bump { animation: bump .5s var(--spring); }
.win__views { display: flex; gap: 6px; padding: 0 16px 10px; overflow: hidden; white-space: nowrap; }
.win__views span { padding: 5px 11px; border-radius: 999px; font-size: .72rem; font-weight: 650; color: var(--muted); background: var(--line-2); }
.win__views .is-on { color: #fff; background: var(--primar-ink); }
.win__rows {
  display: flex; flex-direction: column; gap: 6px; height: 214px; padding: 2px 10px 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line-2);
  transition: background-color .45s, box-shadow .45s;
}
.row.is-sel { background: var(--soft); box-shadow: inset 3px 0 0 var(--primar-ink), 0 0 0 1px rgba(155, 93, 229, .22); }
.row.is-new { animation: row-in .8s var(--ease-out) backwards; }
.row__av { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: .78rem; font-weight: 800; letter-spacing: -.02em; color: #fff; background: var(--c); }
.row__av i { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: var(--primar-ink); background: #fff; box-shadow: 0 1px 3px rgba(44, 14, 61, .25); }
.row__av .ic { width: 11px; height: 11px; stroke-width: 2.4; }
.row__main { display: grid; min-width: 0; }
.row__main b { overflow: hidden; font-size: .84rem; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.row__main span { overflow: hidden; font-size: .76rem; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.row__meta { display: grid; justify-items: end; gap: 3px; }
.row__meta small { font-size: .66rem; font-weight: 650; color: var(--muted); }
.row__meta em { padding: 2px 7px; border-radius: 7px; font-style: normal; font-size: .64rem; font-weight: 650; white-space: nowrap; color: var(--primar-ink); background: var(--soft); transition: color .4s, background-color .4s; }
.row.is-done .row__meta em { color: var(--ok); background: var(--ok-soft); }
.row.is-done .row__meta em::before { content: "✓ "; }

/* Konversationen och AI-förslaget */
.win__conv { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--line); background: #FBF9FD; }
.conv__head, .conv__thread { display: none; }
.conv__composer {
  margin: 12px; padding: 12px 14px 12px 92px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 14px 26px -20px rgba(44, 14, 61, .45);
}
.conv__ai { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 650; color: var(--primar-ink); }
.conv__ai .ic { width: 15px; height: 15px; }
.conv__composer.is-thinking .conv__ai .ic { animation: spin-pop 1s var(--ease-out) infinite; }
.conv__draft { min-height: 4.35em; margin: 6px 0 10px; font-size: .86rem; line-height: 1.45; color: var(--ink); transition: opacity .3s; }
.conv__draft.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--primar-ink); animation: caret .8s steps(1) infinite; }
.conv__composer.is-sent .conv__draft { opacity: .4; }
.conv__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.conv__hint { overflow: hidden; min-width: 0; font-size: .72rem; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.conv__composer.is-sent .conv__hint { color: var(--ok); font-weight: 650; }
.conv__send { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: .8rem; font-weight: 650; color: #fff; background: var(--primar-ink); }
.conv__send .ic { width: 14px; height: 14px; }
.conv__send.is-press { animation: send-press .8s var(--ease-out); }
.conv__head { align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.conv__av { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: .74rem; font-weight: 800; color: #fff; background: var(--c); }
.conv__head p { display: grid; min-width: 0; }
.conv__head b { font-size: .9rem; line-height: 1.25; }
.conv__head p span { font-size: .74rem; color: var(--muted); }
.conv__thread { flex: 1; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 0; padding: 16px; overflow: hidden; }
.conv__msg, .conv__out { max-width: 86%; padding: 10px 13px; font-size: .86rem; line-height: 1.45; }
.conv__msg { align-self: flex-start; border-radius: 16px 16px 16px 5px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.conv__out { align-self: flex-end; border-radius: 16px 16px 5px 16px; color: #fff; background: var(--primar-ink); animation: bub-in .5s var(--ease-out) backwards; }
.conv__msg.is-new { animation: bub-in .5s var(--ease-out) backwards; }
.conv__order { display: flex; align-items: center; gap: 10px; align-self: flex-start; padding: 9px 12px; border-radius: 14px; font-size: .78rem; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.conv__order[hidden] { display: none; }
.conv__order-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--primar-ink); background: var(--soft); }
.conv__order-ic .ic { width: 16px; height: 16px; }
.conv__order > span:nth-child(2) { display: grid; }
.conv__order b { font-size: .8rem; }
.conv__order span span { font-size: .72rem; color: var(--ok); font-weight: 650; }
.conv__order em { margin-left: 6px; font-style: normal; font-weight: 800; }

/* Siffrorna runt fönstret */
.stat {
  position: absolute; z-index: 4; display: none; min-width: 150px; padding: 11px 15px 12px;
  border-radius: 16px; color: #fff; background: rgba(44, 14, 61, .9);
  box-shadow: inset 0 0 0 1px rgba(200, 168, 242, .26), 0 24px 48px -18px rgba(0, 0, 0, .75);
}
.stat small { display: block; margin-bottom: 1px; font-size: .6875rem; line-height: 1.3; color: var(--ton); }
.stat b { display: flex; align-items: baseline; gap: 6px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat em { font-style: normal; font-size: .75rem; font-weight: 650; letter-spacing: 0; color: var(--gnista); }
.motion .stat { animation: pop-in .7s 1.3s var(--spring) backwards, bob 6s 2s ease-in-out infinite; }

/* Blixten skriver svaret – svävar vid AI-förslaget */
.hero__blixten { position: absolute; z-index: 5; left: 2px; bottom: -34px; width: 94px; pointer-events: none; }
.motion .hero__blixten { animation: blixten-in 1.1s 1s var(--spring) backwards; }

/* Meddelanden som flyger in (skapas av home.js) */
.fly {
  position: absolute; z-index: 6; left: 0; top: 0;
  display: flex; align-items: center; gap: 8px; max-width: 250px;
  padding: 7px 13px 7px 7px; border-radius: 16px;
  font-size: .8rem; font-weight: 550; line-height: 1.25; white-space: nowrap;
  color: var(--ink); background: #fff;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6);
  pointer-events: none; will-change: transform, opacity;
}
.fly__av { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .66rem; font-weight: 800; color: #fff; background: var(--c); }
.fly__txt { overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 640px) {
  .stage { padding-top: 78px; }
  .win__body { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 440px; }
  .win__list, .win__conv { min-height: 0; }
  .win__list { border-right: 1px solid var(--line); }
  .win__rows { height: auto; flex: 1; }
  .win__conv { border-top: 0; }
  .conv__head { display: flex; }
  .conv__thread { display: flex; }
  .conv__composer { padding-left: 100px; }
  .stat--1 { display: block; right: -8px; top: 64px; }
  .hero__blixten { left: 312px; bottom: -40px; width: 100px; }
}
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + 54px); padding-bottom: 56px; }
  .hero__layout { gap: 56px; }
  .hero__copy { max-width: 880px; margin-inline: auto; text-align: center; }
  .hero__lead { margin-inline: auto; max-width: 620px; }
  .hero__actions, .hero .trust { justify-content: center; }
  .hero__title { font-size: clamp(4.4rem, 3rem + 3.2vw, 6rem); }
  .hero__smiles {
    -webkit-mask-image: radial-gradient(70% 50% at 50% 74%, #000 25%, transparent 75%);
    mask-image: radial-gradient(70% 50% at 50% 74%, #000 25%, transparent 75%);
  }
  .hero__bolt--1 { right: 7%; top: 22%; width: 18px; }
  .hero__bolt--2 { left: 8%; top: 38%; width: 13px; }
  .hero__bolt--3 { right: 10%; bottom: 18%; width: 14px; }
  .stage { padding-top: 88px; }
  .stage__channels { justify-content: center; gap: 12px; }
  .chn { width: auto; height: 42px; padding: 0 16px 0 13px; border-radius: 999px; }
  .chn span { display: inline; }
  .win__body { grid-template-columns: 68px 336px minmax(0, 1fr); height: 520px; }
  .win__rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0; background: var(--natt); }
  .win__logo { width: 30px; height: 30px; margin-bottom: 14px; }
  .win__rail i { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: rgba(255, 255, 255, .55); }
  .win__rail i .ic { width: 20px; height: 20px; }
  .win__rail i.is-on { color: var(--natt); background: var(--gnista); }
  .win__rail b { position: absolute; right: -5px; top: -5px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: .64rem; font-weight: 800; color: #fff; background: #D6363F; box-shadow: 0 0 0 2px var(--natt); }
  .win__rail-end { margin-top: auto; }
  .stat { display: block; }
  .stat--1 { right: -28px; top: 150px; }
  .stat--2 { right: -36px; top: 506px; }
  .stat--3 { left: -36px; top: 170px; }
  .stat--4 { left: -28px; top: 300px; }
  .conv__composer { padding-left: 14px; }
  .hero__blixten { left: -52px; bottom: -64px; width: 160px; }
}
/* Stora skärmar: korten och Blixten får sväva längre ut från fönstret. */
@media (min-width: 1280px) {
  .stat--1 { right: -96px; }
  .stat--2 { right: -118px; }
  .stat--3 { left: -118px; }
  .stat--4 { left: -92px; }
  .hero__blixten { left: -128px; width: 196px; }
}
@media (hover: hover) and (pointer: fine) {
  .stat { transform: translate3d(calc(var(--px, 0) * 22px), calc(var(--py, 0) * 16px), 0); transition: transform 1s var(--ease-out); }
}
/* Fönstret lutar bakåt och rätar upp sig när man skrollar (där webbläsaren kan). */
@supports (animation-timeline: view()) {
  @media (min-width: 1024px) {
    .motion .win { animation: win-in 1.1s .3s var(--ease-out) backwards, win-tilt linear both; animation-timeline: auto, view(); animation-range: normal, entry 0% cover 42%; }
  }
}

/* ==========================================================================
   Kanaler som rullar förbi
   ========================================================================== */
.marquee { position: relative; padding: 6px 0 calc(var(--sheet-r) + 34px); background: var(--natt); }
.marquee__viewport {
  overflow: hidden; padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track { display: flex; gap: 12px; width: max-content; }
.motion .marquee__track { animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee li {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 10px 14px; border-radius: 999px;
  font-size: .9375rem; font-weight: 550; color: #E6D8F8; white-space: nowrap;
  background: #36164A; box-shadow: inset 0 0 0 1px rgba(200, 168, 242, .22), 0 10px 22px -16px rgba(0, 0, 0, .8);
}
.marquee .ic { width: 18px; height: 18px; color: var(--gnista); }

/* ==========================================================================
   Kaos → en inkorg
   ========================================================================== */
.chaos { position: relative; height: 560px; }
.chaos::before { content: ""; position: absolute; inset: 8% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(155, 93, 229, .13), transparent); }
.chaos__count { position: absolute; left: 0; right: 0; bottom: -6px; z-index: 3; display: none; text-align: center; color: var(--natt); }
.chaos__count b { display: block; font-size: clamp(4.5rem, 8vw, 7rem); font-weight: 800; letter-spacing: -.05em; line-height: .9; color: var(--primar-ink); }
.chaos__count span { font-size: 1rem; font-weight: 650; color: var(--muted); }
.chaos__chip {
  position: absolute; z-index: 2; width: min(72%, 270px);
  display: flex; align-items: center; gap: 12px; padding: 13px 16px 13px 13px;
  border-radius: 20px; background: #fff; box-shadow: var(--shadow-2), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden;
}
.home-on .chaos__chip { opacity: 1; visibility: visible; }
.chaos__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; color: var(--primar-ink); background: var(--soft); }
.chaos__txt { display: grid; min-width: 0; }
.chaos__txt small { font-size: .75rem; color: var(--muted); font-weight: 550; }
.chaos__txt b { font-size: 1rem; line-height: 1.25; }
.chaos__txt em { font-style: normal; font-size: .8125rem; font-weight: 650; color: var(--bad); }
.chaos__badge {
  position: absolute; right: -8px; top: -8px; display: grid; place-items: center;
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px;
  font-style: normal; font-size: .75rem; font-weight: 800; color: #fff; background: #D6363F;
  box-shadow: 0 0 0 3px var(--ljus);
}
.motion .chaos__badge { animation: shake 1.8s ease-in-out infinite; }
.chaos__chip--1 { left: 0; top: 0; rotate: -4deg; }
.chaos__chip--2 { right: 0; top: 96px; rotate: 3deg; }
.chaos__chip--3 { left: 2%; top: 200px; rotate: 2deg; }
.chaos__chip--4 { right: 1%; top: 300px; rotate: -3deg; }
.chaos__chip--5 { left: 8%; top: 404px; rotate: -1.5deg; }
.home-on .chaos__chip { animation: bob 5s ease-in-out infinite; }
.home-on .chaos__chip--2 { animation-duration: 5.6s; animation-delay: -1s; }
.home-on .chaos__chip--3 { animation-duration: 6.2s; animation-delay: -2s; }
.home-on .chaos__chip--4 { animation-duration: 5.3s; animation-delay: -3s; }
.home-on .chaos__chip--5 { animation-duration: 6.8s; animation-delay: -1.5s; }
.chaos.is-done .chaos__chip { visibility: hidden; }

.one {
  position: absolute; z-index: 4; left: 50%; top: 50%; width: min(520px, 100%);
  overflow: hidden; border-radius: 26px; background: #fff; color: var(--ink);
  box-shadow: var(--shadow-3), 0 0 0 1px var(--line);
  transform: translate(-50%, -50%);
}
.home-on .one { opacity: 0; transform: translate(-50%, -46%) scale(.86); }
.home-on .chaos.is-done .one { opacity: 1; transform: translate(-50%, -50%); transition: opacity .5s, transform .9s var(--spring); }
.one__bar { display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); font-size: .875rem; color: var(--muted); }
.one__bar b { font-size: .9375rem; color: var(--ink); }
.one__bar em { margin-left: auto; padding: 3px 10px; border-radius: 99px; font-style: normal; font-size: .75rem; font-weight: 800; color: #fff; background: var(--natt); }
.one__row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line-2); }
.one__row > i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-style: normal; font-size: .8125rem; font-weight: 800; color: #fff; background: var(--c); }
.one__row b { display: block; font-size: .9375rem; line-height: 1.3; }
.one__row span span { display: block; font-size: .8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.one__row small { padding: 4px 9px; border-radius: 8px; font-size: .72rem; font-weight: 650; color: var(--primar-ink); background: var(--soft); white-space: nowrap; }
.home-on .one__row { opacity: 0; transform: translateX(-14px); }
.home-on .chaos.is-done .one__row { opacity: 1; transform: none; transition: opacity .4s, transform .6s var(--ease-out); transition-delay: calc(.35s + var(--i) * .12s); }
.one__foot { display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: #FBF9FD; }
.one__ok { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; color: var(--ok); background: var(--ok-soft); }
.one__ok .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.one__foot b { display: block; font-size: .9375rem; color: var(--ok); }
.one__foot span span { font-size: .8125rem; color: var(--muted); }
.home-on .chaos.is-done .one__foot { animation: fade-up .6s 1.1s var(--ease-out) backwards; }
@media (min-width: 720px) {
  .chaos { height: 540px; }
  .chaos__chip { width: 280px; }
  .chaos__chip--1 { left: 2%; top: 4%; }
  .chaos__chip--2 { right: 22%; top: 0; }
  .chaos__chip--3 { right: 0; top: 58%; }
  .chaos__chip--4 { left: 4%; top: 64%; }
  .chaos__chip--5 { left: 34%; top: 33%; }
  .chaos__count { display: block; left: auto; right: 0; top: 0; bottom: auto; text-align: right; }
}

/* ==========================================================================
   Åtta vägar in – flödeskartan
   ========================================================================== */
.flowmap { position: relative; }
.flowmap__pipes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flowmap__pipes path { fill: none; stroke: rgba(200, 168, 242, .3); stroke-width: 1.5; }
.flowmap__pipes .dot { fill: var(--gnista); }
.flowmap__pipes .dot-glow { fill: rgba(242, 250, 163, .22); }
.flowmap__nodes { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 12px 52px; }
.flowmap__node {
  display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 10px 12px;
  border-radius: 14px; font-size: .875rem; font-weight: 650; line-height: 1.2;
  background: #331446; box-shadow: inset 0 0 0 1px rgba(200, 168, 242, .2);
  transition: box-shadow .4s;
}
.flowmap__node .ic { width: 18px; height: 18px; color: var(--gnista); }
.flowmap__node.is-lit { box-shadow: inset 0 0 0 1px rgba(242, 250, 163, .6), 0 0 24px -6px rgba(242, 250, 163, .45); }
.flowmap__hub { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; margin-top: 86px; }
.flowmap__core {
  position: relative; display: grid; justify-items: center; gap: 2px; width: min(260px, 100%); padding: 22px 20px 20px;
  border-radius: 26px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #4a1f66, var(--natt-2) 50%, #2f1142);
  box-shadow: inset 0 0 0 1px rgba(200, 168, 242, .3), 0 30px 70px -30px rgba(155, 93, 229, .8), 0 0 0 8px rgba(155, 93, 229, .08);
}
.flowmap__core img { width: 68px; height: 68px; margin-bottom: 8px; }
.flowmap__core b { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.flowmap__core span { font-size: .875rem; color: var(--ton); }
.motion .flowmap__core.is-pulse { animation: hub-pulse .6s var(--ease-out); }
.flowmap__out { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.flowmap__out li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px 7px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 650; color: var(--natt); background: var(--gnista); }
.flowmap__out .ic { width: 15px; height: 15px; stroke-width: 3; }
@media (min-width: 900px) {
  .flowmap { display: grid; grid-template-columns: 230px 1fr 280px; align-items: center; min-height: 480px; }
  .flowmap__nodes { grid-column: 1; grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 10px; }
  .flowmap__hub { grid-column: 3; margin-top: 0; }
  .flowmap__node { font-size: .9375rem; }
}

/* ==========================================================================
   Funktioner – bento
   ========================================================================== */
.bento { display: grid; gap: 14px; }
.bento__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 26px 24px 24px;
  border-radius: var(--r-3); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.bento__card p { font-size: .96875rem; line-height: 1.55; color: var(--muted); }
.bento__card .pills { margin-top: auto; padding-top: 8px; }
.bento__ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 15px; color: var(--primar-ink); background: var(--soft); }
.bento__ic .ic { width: 22px; height: 22px; }
.bento__go {
  position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  color: var(--natt); background: var(--line-2); transition: transform .4s var(--ease-out), background-color .3s, color .3s;
}
.bento__go .ic { width: 18px; height: 18px; transform: rotate(-45deg); }
@media (hover: hover) {
  .bento__card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(155, 93, 229, .35), var(--shadow-2); }
  .bento__card:hover .bento__go { transform: scale(1.08); background: var(--natt); color: var(--gnista); }
}
.bento__card--ai { color: #fff; background: radial-gradient(120% 100% at 100% 0%, #4d1f6c 0%, var(--natt) 55%); box-shadow: var(--shadow-2); }
.bento__card--ai p { color: var(--on-dark-muted); }
.bento__card--ai .bento__ic { color: var(--gnista); background: rgba(242, 250, 163, .1); }
.bento__card--ai .pills li { color: #fff; background: rgba(255, 255, 255, .09); }
.bento__card--ai .bento__go { display: none; }
.bento__wave { position: absolute; right: 22px; top: 30px; display: flex; align-items: center; gap: 3px; height: 40px; opacity: .9; }
.bento__wave i { display: block; width: 3px; height: 10px; border-radius: 3px; background: var(--gnista); opacity: calc(.35 + .02 * var(--i)); transform-origin: center; }
.motion .bento__wave i { animation: eq 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s); }
.bento__push { position: relative; display: block; height: 70px; margin-top: 6px; }
.bento__notif {
  position: absolute; left: 0; right: 0; top: 6px; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 16px; background: var(--ljus); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); font-size: .8125rem;
}
.bento__notif img { width: 30px; height: 30px; padding: 4px; border-radius: 9px; background: var(--natt); }
.bento__notif > span { display: grid; min-width: 0; }
.bento__notif b { font-size: .8125rem; }
.bento__notif span span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.motion .bento__notif { animation: push-cycle 5s var(--ease-out) infinite; }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--ai, .bento__card--app { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .bento__card { grid-column: span 2; min-height: 260px; padding: 30px 28px 28px; }
  .bento__card--ai, .bento__card--app { grid-column: span 4; }
  .bento__card--ai { padding-right: 34%; }
  .bento__wave { right: 36px; top: 50%; height: 80px; margin-top: -40px; gap: 4px; }
  .bento__wave i { width: 4px; }
  .bento__card--app { padding-right: 42%; }
  .bento__push { position: absolute; right: 28px; top: 50%; width: 36%; margin-top: -40px; height: 80px; }
}

/* ==========================================================================
   Resten av verktygslådan
   ========================================================================== */
.more { padding-top: 0; }
.more__grid { display: grid; gap: 12px; }
.more__item {
  position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 2px; align-items: start;
  padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.more__ic { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--primar-ink); background: var(--soft); }
.more__item h3 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.more__item p { font-size: .9375rem; line-height: 1.5; color: var(--muted); }
@media (hover: hover) { .more__item:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(155, 93, 229, .3), var(--shadow-2); } }
@media (min-width: 640px) { .more__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .more__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .more__item { grid-template-columns: 1fr; row-gap: 8px; padding: 26px 24px; }
  .more__ic { grid-row: auto; margin-bottom: 8px; }
}

/* ==========================================================================
   Branscher
   ========================================================================== */
.industries {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.industries::-webkit-scrollbar { display: none; }
.industry {
  position: relative; flex: 0 0 min(80%, 320px); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 24px; border-radius: var(--r-3);
  background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.industry__ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 16px; color: var(--gnista); background: var(--natt); }
.industry h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.industry p { font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.industry__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: .9375rem; font-weight: 650; color: var(--primar-ink); }
.industry__go .ic { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
@media (hover: hover) {
  .industry:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(155, 93, 229, .35), var(--shadow-2); }
  .industry:hover .industry__go .ic { transform: translateX(4px); }
}
@media (min-width: 768px) {
  .industries { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; }
}
@media (min-width: 1100px) { .industries { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ==========================================================================
   Siffror
   ========================================================================== */
.numbers-sec { background: var(--ljus); padding-bottom: clamp(20px, 4vw, 40px); }
.numbers {
  position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(2, 1fr);
  padding: 8px; border-radius: 28px; color: #fff; background: radial-gradient(100% 140% at 0% 0%, #4d1f6c, var(--natt) 60%);
  box-shadow: var(--shadow-2);
}
.numbers__item { display: flex; flex-direction: column; gap: 12px; padding: 20px 16px; }
.numbers__item:nth-child(2n) { border-left: 1px solid var(--on-dark-line); }
.numbers__item:nth-child(n + 3) { border-top: 1px solid var(--on-dark-line); }
.numbers__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--gnista); background: rgba(242, 250, 163, .1); }
.numbers__item b { display: block; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--gnista); font-variant-numeric: tabular-nums; }
.numbers__item span span { display: block; margin-top: 6px; font-size: .875rem; line-height: 1.35; color: var(--on-dark-muted); }
@media (min-width: 900px) {
  .numbers { grid-template-columns: repeat(4, 1fr); padding: 10px; }
  .numbers__item { flex-direction: row; align-items: center; gap: 16px; padding: 26px 24px; }
  .numbers__item + .numbers__item { border-left: 1px solid var(--on-dark-line); }
  .numbers__item:nth-child(n + 3) { border-top: 0; }
  .numbers__ic { width: 46px; height: 46px; flex: none; }
}

/* ==========================================================================
   Integrationer – omloppsbana
   ========================================================================== */
.integr { padding-top: clamp(56px, 8vw, 100px); overflow-x: clip; }
.orbit {
  --r1x: min(26vw, 105px); --r1y: calc(var(--r1x) * .63);
  --r2x: min(35vw, 161px); --r2y: calc(var(--r2x) * .63);
  position: relative; height: 380px; display: grid; place-items: center;
}
.orbit__ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1.5px dashed rgba(155, 93, 229, .3); transform: translate(-50%, -50%); }
.orbit__ring--1 { width: calc(var(--r1x) * 2); height: calc(var(--r1y) * 2); }
.orbit__ring--2 { width: calc(var(--r2x) * 2); height: calc(var(--r2y) * 2); }
.orbit__core { position: relative; z-index: 2; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 28px; background: var(--natt); box-shadow: 0 26px 60px -20px rgba(44, 14, 61, .7), 0 0 0 10px rgba(155, 93, 229, .08); }
.orbit__core img { width: 66px; height: 66px; }
.orbit__sats { position: absolute; inset: 0; }
.sat {
  position: absolute; left: 50%; top: 50%; z-index: 3; padding: 7px 11px; border-radius: 12px;
  font-size: .75rem; font-weight: 650; white-space: nowrap; color: var(--natt); background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -12px rgba(44, 14, 61, .35);
  transform: translate(-50%, -50%); will-change: transform;
}
.sat { --rx: var(--r1x); --ry: var(--r1y); transform: translate(calc(-50% + cos(var(--a, 0deg)) * var(--rx)), calc(-50% + sin(var(--a, 0deg)) * var(--ry))); }
.sat[data-r="2"] { --rx: var(--r2x); --ry: var(--r2y); }
.sat--soon { color: var(--muted); }
.sat small { font-size: .9em; font-weight: 500; }
@media (min-width: 720px) {
  .orbit { height: 480px; --r1x: 190px; --r2x: 320px; }
  .orbit__core { width: 112px; height: 112px; border-radius: 32px; }
  .orbit__core img { width: 80px; height: 80px; }
  .sat { padding: 9px 15px; font-size: .9rem; border-radius: 14px; }
}

