/* Blixtflow – chattens sida. Bygger på ai.css (fakta, reglage, steg, frågor) men har egen rörelse:
   webbläsaren i hjälten står lutad i 3D och rätar upp sig när man skrollar (--cp från chat.js),
   designerna glider i sidled medan sidan skrollar nedåt, och linjen i "Så svarar chatboten" ritas fram. */

/* ==========================================================================
   1. Hjälten
   ========================================================================== */
.chp-hero {
  --cp: 0;
  position: relative; isolation: isolate; overflow: clip;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 26px) 0 calc(var(--sheet-r) + 30px);
  color: #fff; background: var(--natt);
}
.chp-hero__grid {
  position: absolute; left: -20%; right: -20%; bottom: 0; z-index: -1; height: 60%; pointer-events: none;
  background-image: linear-gradient(rgba(200, 168, 242, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 168, 242, .14) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(600px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}
.motion .chp-hero__grid { animation: chp-grid 4s linear infinite; }
.chp-hero__copy { position: relative; z-index: 2; text-align: center; }
.chp-hero__copy .crumbs ol { justify-content: center; }
.chp-title { max-width: 960px; margin: 0 auto 20px; font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.4rem); font-weight: 800; letter-spacing: -.047em; line-height: .97; text-wrap: balance; }
.chp-lead { max-width: 660px; margin-inline: auto; color: var(--on-dark-muted); }
.chp-cta { justify-content: center; }
.chp-trust { justify-content: center; margin-inline: auto; max-width: 820px; }
.chp-trust li { justify-content: flex-start; text-align: left; }
@media (min-width: 640px) { .chp-trust { justify-content: center; } }

.chp-stagewrap { position: relative; z-index: 1; margin-top: clamp(40px, 6vw, 70px); }
.chp-stage { position: relative; perspective: 1400px; perspective-origin: 50% 0; }
.chp-browser {
  position: relative; max-width: 1040px; margin-inline: auto; border-radius: 22px; color: var(--ink); background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 80px 140px -60px rgba(0, 0, 0, .95), 0 50px 160px -60px rgba(155, 93, 229, .8);
  transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--cp)) * 26deg)) scale(calc(.88 + var(--cp) * .12)) translateY(calc((1 - var(--cp)) * -10px));
  will-change: transform;
}
.motion .chp-browser { animation: chp-rise 1.4s .3s var(--ease-out) backwards; }
.chp-browser__bar { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: 22px 22px 0 0; background: #FBF8FE; border-bottom: 1px solid var(--line-2); }
.chp-browser__bar > i { width: 11px; height: 11px; border-radius: 50%; }
.chp-browser__bar > i:nth-child(1) { background: #F28B82; }
.chp-browser__bar > i:nth-child(2) { background: #F6C35A; }
.chp-browser__bar > i:nth-child(3) { background: #7BD389; }
.chp-browser__bar span { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto; padding: 5px 16px; border-radius: 999px; font-size: .78rem; color: var(--muted); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.chp-browser__bar .ic { width: 12px; height: 12px; color: var(--ok); }
.chp-site { overflow: hidden; height: 470px; border-radius: 0 0 22px 22px; background: linear-gradient(180deg, #FFF8F4, #fff 60%); }
.chp-site__nav { display: flex; align-items: center; gap: 22px; padding: 18px 28px; font-size: .84rem; color: #6B5B57; }
.chp-site__nav b { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-size: 1rem; color: #3B2A26; }
.chp-site__nav b i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #F4A28C, #C8796A); }
.chp-site__hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 22px 28px; }
.chp-site__h { font-size: 2.5rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; color: #3B2A26; }
.chp-site__p { max-width: 320px; margin-top: 10px; font-size: .95rem; color: #6B5B57; }
.chp-site__btn { display: inline-block; margin-top: 18px; padding: 10px 20px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: #fff; background: #C8796A; }
.chp-site__img { position: relative; display: block; height: 220px; border-radius: 26px; background: linear-gradient(135deg, #F8D9CC, #EBC2B3 60%, #D9A797); overflow: hidden; }
.chp-site__img i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.chp-site__img i:nth-child(1) { width: 120px; height: 120px; left: 18%; top: 22%; }
.chp-site__img i:nth-child(2) { width: 60px; height: 60px; right: 14%; top: 14%; background: rgba(255, 255, 255, .3); }
.chp-site__img i:nth-child(3) { width: 200px; height: 200px; right: -50px; bottom: -90px; background: rgba(200, 121, 106, .35); }
.chp-site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 6px 28px; }
.chp-site__cards i { height: 90px; border-radius: 16px; background: #FBF1EC; box-shadow: inset 0 0 0 1px #F2E1D9; }

/* Chattfönstret på hemsidan */
.chp-w {
  position: absolute; right: 26px; bottom: 26px; z-index: 3; width: 310px; overflow: hidden; border-radius: 22px; background: #fff;
  box-shadow: 0 0 0 1px rgba(44, 14, 61, .06), 0 40px 80px -24px rgba(44, 14, 61, .55);
  transform-origin: 100% 100%;
}
.chp-w__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: #fff; background: var(--natt); }
.chp-w__logo { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; font-weight: 800; color: var(--natt); background: var(--gnista); }
.chp-w__head b, .chp-bot__head b { display: block; font-size: .9rem; line-height: 1.2; }
.chp-w__head small, .chp-bot__head small { display: flex; align-items: center; gap: 6px; font-size: .72rem; opacity: .85; }
.chp-w__head small i, .chp-bot__head small i { width: 7px; height: 7px; border-radius: 50%; background: #5FD39A; }
.chp-w__body { display: grid; align-content: start; gap: 8px; min-height: 236px; padding: 14px; }
.chp-b { justify-self: start; max-width: 88%; padding: 9px 12px; border-radius: 15px 15px 15px 5px; font-size: .82rem; line-height: 1.4; background: var(--line-2); }
.chp-b--me { justify-self: end; border-radius: 15px 15px 5px 15px; color: #fff; background: var(--primar-ink); }
.chp-b small { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: .68rem; font-weight: 700; color: var(--primar-ink); }
.chp-b small .ic { width: 12px; height: 12px; }
.chp-w__body > :nth-child(1) { grid-row: 1; }
.chp-w__body > :nth-child(2) { grid-row: 2; }
.chp-w__body .chp-typing, .chp-w__body .chp-b--ans { grid-row: 3; grid-column: 1; align-self: start; } /* skriver-prickarna och svaret på samma plats */
.chp-typing { display: flex; opacity: 0; justify-self: start; gap: 4px; padding: 11px 13px; border-radius: 15px; background: var(--line-2); }
.chp-typing i, .chp-dotsx i { width: 6px; height: 6px; border-radius: 50%; background: var(--primar); }
.chp-w__input { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line-2); font-size: .78rem; color: var(--muted); }
.chp-w__input span { flex: 1; }
.chp-w__input i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--natt); }
.chp-w__input .ic { width: 14px; height: 14px; }
.chp-fab { position: absolute; right: 26px; bottom: -28px; z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: var(--natt); box-shadow: 0 0 0 4px #fff, 0 16px 30px -10px rgba(44, 14, 61, .6); }
.chp-fab .ic { width: 24px; height: 24px; }
/* Samtalet spelas upp när sidan laddas */
.motion .chp-w { animation: chp-pop .7s 1.2s var(--spring) backwards; }
.motion .chp-w .chp-b:nth-child(1) { animation: bub-in .5s 1.8s var(--ease-out) backwards; }
.motion .chp-w .chp-b--me { animation: bub-in .5s 2.8s var(--ease-out) backwards; }
.motion .chp-w .chp-typing { animation: chp-typing 1.5s 3.4s both; }
.motion .chp-w .chp-b--ans { animation: bub-in .5s 4.9s var(--ease-out) backwards; }
.motion .chp-typing i, .motion .chp-dotsx i { animation: fm-dot 1s ease-in-out infinite; }
.chp-typing i:nth-child(2), .chp-dotsx i:nth-child(2) { animation-delay: .15s !important; }
.chp-typing i:nth-child(3), .chp-dotsx i:nth-child(3) { animation-delay: .3s !important; }

.chp-orb { position: absolute; z-index: 4; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; color: var(--natt); background: var(--gnista); box-shadow: 0 20px 40px -14px rgba(242, 250, 163, .6); }
.chp-orb .ic { width: 24px; height: 24px; }
.chp-orb--1 { left: 1%; top: 18%; }
.chp-orb--2 { right: 2%; top: 4%; color: #fff; background: var(--primar-ink); box-shadow: 0 20px 40px -14px rgba(126, 69, 201, .8); }
.chp-orb--3 { left: 6%; bottom: 10%; color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(200, 168, 242, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chp-orb { transform: translateY(calc(var(--cp) * -60px)); }
.chp-orb--2 { transform: translateY(calc(var(--cp) * -110px)); }
.motion .chp-orb { animation: chp-pop .7s 1.6s var(--spring) backwards; }

@media (max-width: 899px) {
  .chp-site { height: 520px; }
  .chp-site__hero { grid-template-columns: 1fr; }
  .chp-site__img, .chp-site__cards, .chp-site__nav span { display: none; }
  .chp-site__h { font-size: 1.8rem; }
  .chp-w { right: 50%; width: min(310px, 88%); translate: 50% 0; }
  .chp-orb { display: none; }
}

/* ==========================================================================
   2. Designerna i sidled
   ========================================================================== */
.chp-designs { position: relative; z-index: 1; margin-top: calc(var(--sheet-r) * -1); border-radius: var(--sheet-r) var(--sheet-r) 0 0; color: #fff; background: radial-gradient(80% 70% at 50% 100%, #3e1659, var(--natt-3) 70%); }
.chp-designs__sticky { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 30px; padding: clamp(70px, 9vw, 110px) 0 calc(var(--sheet-r) + 40px); }
.chp-designs.is-pinned .chp-designs__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: calc(var(--header-h) + 24px); padding-bottom: calc(var(--sheet-r) + 24px); overflow: hidden; }
.chp-designs__head { display: grid; gap: 14px; }
.chp-designs__head .lead { max-width: 560px; color: var(--on-dark-muted); }
@media (min-width: 1024px) { .chp-designs__head { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 40px; } }
.chp-track { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.chp-track::-webkit-scrollbar { display: none; }
.chp-designs.is-pinned .chp-track { overflow: visible; }
.chp-track__list { display: flex; gap: 22px; width: max-content; padding: 10px max(var(--gutter), (100vw - var(--maxw)) / 2); will-change: transform; }
.chp-design { flex: none; display: grid; gap: 14px; width: 270px; scroll-snap-align: center; }
.chp-mini {
  overflow: hidden; border-radius: var(--r); background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 70px -30px rgba(0, 0, 0, .8);
  transition: transform .6s var(--spring);
}
.chp-designs.is-pinned .chp-design { transform: translateY(calc(var(--lift, 0) * -1px)) rotate(calc(var(--tilt, 0) * 1deg)); transition: transform .5s var(--ease-out); }
.chp-mini__head { display: flex; align-items: center; gap: 10px; padding: 14px; color: var(--fg); background: var(--bg); }
.is-light .chp-mini__head { border-bottom: 1px solid var(--line); }
.chp-mini__av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: calc(var(--r) / 2); font-weight: 800; color: var(--bg); background: var(--ac); }
.chp-mini__av img { width: 20px; height: 20px; }
.chp-mini__av .ic { width: 17px; height: 17px; color: #B45309; }
.chp-mini__head b { font-size: .88rem; }
.chp-mini__body { display: grid; gap: 7px; min-height: 190px; padding: 12px; }
.chp-mini__b { justify-self: start; max-width: 88%; padding: 8px 11px; border-radius: calc(var(--r) * .6) calc(var(--r) * .6) calc(var(--r) * .6) 4px; font-size: .76rem; line-height: 1.38; background: var(--line-2); }
.chp-mini__b--me { justify-self: end; border-radius: calc(var(--r) * .6) calc(var(--r) * .6) 4px calc(var(--r) * .6); color: var(--fg); background: var(--bg); }
.is-light .chp-mini__b--me { color: #fff; background: var(--ac); }
.chp-mini__in { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-2); }
.chp-mini__in span { flex: 1; height: 26px; border-radius: 13px; background: var(--ljus); }
.chp-mini__in i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--fg); background: var(--bg); }
.is-light .chp-mini__in i { color: #fff; background: var(--ac); }
.chp-mini__in .ic { width: 13px; height: 13px; }
.chp-design__name { display: grid; padding-left: 4px; }
.chp-design__name b { font-size: 1.05rem; }
.chp-design__name span { font-size: .85rem; color: var(--ton); }
.chp-design--more { align-content: center; justify-items: center; gap: 10px; min-height: 300px; padding: 24px; border-radius: 26px; text-align: center; box-shadow: inset 0 0 0 1.5px rgba(242, 250, 163, .35); background: rgba(242, 250, 163, .05); }
.chp-design--more b { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; color: var(--gnista); }
.chp-design--more span { max-width: 180px; font-size: .9rem; color: var(--ton); }
@media (hover: hover) { .chp-design:hover .chp-mini { transform: translateY(-10px) rotate(-1.5deg); } }
.chp-designs__foot { display: flex; align-items: center; gap: 18px; }
.chp-progress { position: relative; flex: 1; max-width: 360px; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.chp-progress i { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, var(--primar), var(--gnista)); transform: scaleX(var(--tp, 0)); transform-origin: left; }
.chp-designs__hint { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 650; color: var(--ton); }
.chp-designs__hint .ic { width: 16px; height: 16px; transform: rotate(90deg); }
.motion .chp-designs__hint .ic { animation: chp-nudge 1.6s ease-in-out infinite; }

/* ==========================================================================
   3. Prova själv
   ========================================================================== */
.chp-demo { padding-top: clamp(70px, 9vw, 120px); }
.chp-demo__grid { display: grid; gap: 34px; align-items: start; }
.chp-bot { --focus: var(--primar-ink); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; height: 620px; overflow: hidden; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 50px 100px -40px rgba(44, 14, 61, .45); }
.chp-bot__head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #5b2a80, var(--natt) 60%); }
.chp-bot__reset { --focus: var(--gnista); display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 7px 12px; border: 0; border-radius: 999px; cursor: pointer; font-size: .78rem; font-weight: 650; color: #fff; background: rgba(255, 255, 255, .1); }
.chp-bot__reset .ic { width: 14px; height: 14px; }
.chp-bot__log { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 18px; scroll-behavior: smooth; overscroll-behavior: contain; }
.chp-msg { max-width: 84%; padding: 11px 14px; border-radius: 18px 18px 18px 5px; font-size: .95rem; line-height: 1.45; background: var(--line-2); animation: bub-in .45s var(--ease-out) both; }
.chp-msg--bot { align-self: flex-start; }
.chp-msg--me { align-self: flex-end; border-radius: 18px 18px 5px 18px; color: #fff; background: var(--primar-ink); }
.chp-msg--sys { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); }
.chp-msg--sys i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .7rem; font-style: normal; color: #fff; background: #15803D; }
.chp-msg--human { background: #E9F7EF; }
.chp-msg small { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: .74rem; font-weight: 700; color: var(--primar-ink); }
.chp-msg small.is-warn { color: #B45309; }
.chp-msg small .ic { width: 13px; height: 13px; }
.chp-dotsx { align-self: flex-start; display: flex; gap: 4px; padding: 13px 15px; border-radius: 18px; background: var(--line-2); }
.chp-bot__sugg { padding: 10px 18px 4px; border-top: 1px solid var(--line-2); }
.chp-bot__sugg > p { margin-bottom: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chp-bot__sugg ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.chp-bot__sugg ul::-webkit-scrollbar { display: none; }
.chp-chip { flex: none; padding: 8px 13px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; font-size: .84rem; font-weight: 650; color: var(--primar-ink); background: var(--soft); transition: background-color .2s, color .2s, transform .3s var(--spring); }
.chp-chip:hover { color: #fff; background: var(--primar-ink); transform: translateY(-2px); }
.chp-chip[disabled] { opacity: .45; cursor: default; transform: none; color: var(--primar-ink); background: var(--soft); }
.chp-bot__form { display: flex; gap: 10px; padding: 12px 14px 14px; }
.chp-bot__form input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; border: 1.5px solid #DDD0EC; border-radius: 999px; font-size: 1rem; background: var(--ljus); }
.chp-bot__form input:focus { outline: none; border-color: var(--primar-ink); box-shadow: 0 0 0 4px rgba(155, 93, 229, .2); }
.chp-bot__send { display: grid; flex: none; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; cursor: pointer; color: var(--natt); background: var(--gnista); transition: transform .3s var(--spring); }
.chp-bot__send:hover { transform: scale(1.08) rotate(-10deg); }
.chp-bot__send .ic { width: 20px; height: 20px; }
.chp-demo__side { position: relative; display: grid; gap: 14px; }
.chp-demo__sideh { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primar-ink); }
.chp-demo__side ul { display: grid; gap: 12px; }
.chp-why { display: flex; gap: 14px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.chp-why__ic { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--gnista); background: var(--natt); }
.chp-why__ic .ic { width: 21px; height: 21px; }
.chp-why b { display: block; margin-bottom: 3px; font-size: 1.02rem; }
.chp-why span span { font-size: .92rem; line-height: 1.55; color: var(--muted); }
.chp-demo__bx { width: 120px; margin: 4px 0 0 auto; }
@media (min-width: 1000px) { .chp-demo__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; } }

.chp-def { padding-top: 0; }

/* ==========================================================================
   5. Linjen som ritas fram
   ========================================================================== */
.chp-flow { background: linear-gradient(180deg, var(--natt), #321147); }
.chp-path { position: relative; max-width: 980px; margin-inline: auto; padding-left: 64px; }
.chp-path__list { display: grid; gap: 22px; }
.chp-path__line { position: absolute; left: 25px; top: 20px; bottom: 20px; width: 3px; border-radius: 3px; background: rgba(200, 168, 242, .15); }
.chp-path__line i { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(var(--gnista), var(--primar)); transform: scaleY(var(--lp, 1)); transform-origin: top; box-shadow: 0 0 18px rgba(242, 250, 163, .5); }
.chp-node { position: relative; }
.chp-node__dot { position: absolute; left: -64px; top: 18px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; color: var(--ton); background: var(--natt-2); box-shadow: inset 0 0 0 1.5px rgba(200, 168, 242, .3); transition: color .4s, background-color .4s, transform .6s var(--spring), box-shadow .4s; }
.chp-node__dot .ic { width: 23px; height: 23px; }
.chp-node__card { padding: 22px 24px; border-radius: 24px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--on-dark-line); transition: opacity .6s, transform .8s var(--ease-out), background-color .4s; }
.chp-node__n { margin-bottom: 6px; font-size: .8rem; font-weight: 800; letter-spacing: .14em; color: var(--gnista); }
.chp-node .h3 { margin-bottom: 6px; }
.chp-node__card > p:last-child { font-size: .98rem; line-height: 1.6; color: var(--on-dark-muted); }
.chp-flow.is-live .chp-node:not(.is-on) .chp-node__card { opacity: .35; transform: translateX(20px); }
.chp-node.is-on .chp-node__dot { color: var(--natt); background: var(--gnista); transform: scale(1.08) rotate(-6deg); box-shadow: 0 0 0 6px rgba(242, 250, 163, .14), 0 16px 34px -10px rgba(242, 250, 163, .6); }
.chp-node.is-on .chp-node__card { background: rgba(255, 255, 255, .07); }
@media (min-width: 900px) {
  .chp-path { padding-left: 0; }
  .chp-path__list { gap: 0; }
  .chp-path__line { left: 50%; margin-left: -1.5px; }
  .chp-node { display: grid; grid-template-columns: 1fr 88px 1fr; align-items: center; min-height: 190px; }
  .chp-node__dot { position: relative; left: auto; top: auto; grid-column: 2; justify-self: center; width: 60px; height: 60px; }
  .chp-node__card { grid-column: 1; grid-row: 1; }
  .chp-node--r .chp-node__card { grid-column: 3; }
  .chp-flow.is-live .chp-node:not(.is-on) .chp-node__card { transform: translateX(-30px); }
  .chp-flow.is-live .chp-node--r:not(.is-on) .chp-node__card { transform: translateX(30px); }
}

/* ==========================================================================
   6. Startskärmen
   ========================================================================== */
.chp-start__grid { display: grid; gap: 40px; align-items: center; }
.chp-feats { display: grid; gap: 10px; }
.chp-feats li { display: flex; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.chp-feats__ic { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--primar-ink); background: var(--soft); }
.chp-feats__ic .ic { width: 20px; height: 20px; }
.chp-feats b { display: block; font-size: 1rem; }
.chp-feats span span { font-size: .9rem; color: var(--muted); }
@media (min-width: 640px) { .chp-feats { grid-template-columns: 1fr 1fr; } }
.chp-home { width: min(100%, 360px); margin-inline: auto; overflow: hidden; border-radius: 30px; background: var(--ljus); box-shadow: 0 0 0 1px var(--line), 0 60px 100px -40px rgba(44, 14, 61, .55); }
.motion .chp-home.is-in { animation: chp-float 7s ease-in-out infinite; }
.chp-home__top { position: relative; padding: 26px 22px 70px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #6b33a0, var(--natt) 65%); }
.chp-home__hi { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }
.chp-home__sub { font-size: .9rem; color: var(--ton); }
.chp-home__avs { position: absolute; right: 22px; top: 26px; display: flex; }
.chp-home__avs i { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -8px; border-radius: 50%; font-size: .75rem; font-style: normal; font-weight: 800; color: #fff; background: var(--c); box-shadow: 0 0 0 3px #3a1650; }
.chp-home__cards { display: grid; gap: 10px; margin-top: -48px; padding: 0 14px 18px; }
.chp-home__card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -18px rgba(44, 14, 61, .4); }
.chp-home__card > span { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--primar-ink); background: var(--soft); }
.chp-home__card .ic { width: 17px; height: 17px; }
.chp-home__card b { font-size: .92rem; }
.chp-home__card small { font-size: .8rem; color: var(--muted); }
.chp-home__card--cta { grid-template-columns: 1fr auto; color: #fff; background: var(--primar-ink); }
.chp-home__card--cta .ic { width: 20px; height: 20px; }
.chp-home__help { grid-template-columns: 1fr; }
.chp-home__help p { display: flex; align-items: center; gap: 12px; }
.chp-home__help ul { display: grid; gap: 4px; margin-top: 6px; }
.chp-home__help li { padding: 7px 10px; border-radius: 10px; font-size: .84rem; background: var(--ljus); }
.chp-home__promo > span { font-size: 1.1rem; font-weight: 800; color: var(--natt); background: var(--gnista); }
.reveal-on .chp-home .chp-home__card { opacity: 0; transform: translateY(20px); }
.reveal-on .chp-home.is-in .chp-home__card { opacity: 1; transform: none; transition: opacity .5s, transform .7s var(--spring); }
.reveal-on .chp-home.is-in .chp-home__card:nth-child(2) { transition-delay: .15s; }
.reveal-on .chp-home.is-in .chp-home__card:nth-child(3) { transition-delay: .3s; }
.reveal-on .chp-home.is-in .chp-home__card:nth-child(4) { transition-delay: .45s; }
@media (min-width: 1000px) { .chp-start__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; } }

/* ==========================================================================
   7. Kalkylatorn med 100 prickar
   ========================================================================== */
.chp-save { padding-top: 0; padding-bottom: calc(clamp(76px, 10vw, 136px) + var(--sheet-r)); }
.chp-calc { display: grid; overflow: hidden; border-radius: 32px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-2); }
.chp-calc__in { display: grid; gap: 24px; padding: 28px 24px; }
.chp-calc__out { --focus: var(--gnista); display: grid; gap: 20px; padding: 28px 24px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, #4d1f6c, var(--natt) 62%); }
.chp-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; }
.chp-dots i { aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: background-color .35s, transform .45s var(--spring), box-shadow .35s; transition-delay: calc(var(--i) * 4ms); }
.chp-dots i.is-bot { background: var(--gnista); transform: scale(1.05); box-shadow: 0 0 10px rgba(242, 250, 163, .45); }
.chp-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .85rem; color: var(--on-dark-2); }
.chp-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chp-legend i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.chp-legend i.is-bot { background: var(--gnista); }
.chp-calc__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chp-calc__nums p { display: grid; gap: 2px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(242, 250, 163, .2); }
.chp-calc__nums b { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; color: var(--gnista); font-variant-numeric: tabular-nums; }
.chp-calc__nums span { font-size: .82rem; line-height: 1.35; color: var(--ton); }
@media (min-width: 900px) {
  .chp-calc { grid-template-columns: 1fr 1fr; }
  .chp-calc__in, .chp-calc__out { padding: 40px 38px; }
}

/* ==========================================================================
   8. Installation
   ========================================================================== */
.chp-install { padding-bottom: calc(clamp(76px, 10vw, 136px) + var(--sheet-r)); background: radial-gradient(60% 50% at 80% 30%, rgba(155, 93, 229, .3), transparent 70%), var(--natt); }
.chp-install__grid { display: grid; gap: 40px; align-items: center; }
.chp-install .lead { margin-top: 16px; }
.chp-install__works { margin-top: 26px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ton); }
.chp-plats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chp-plats li { padding: 8px 15px; border-radius: 999px; font-size: .9rem; font-weight: 650; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(200, 168, 242, .22); }
.reveal-on .chp-plats li { opacity: 0; transform: translateY(10px) scale(.9); }
.reveal-on .is-in .chp-plats li { opacity: 1; transform: none; transition: opacity .4s, transform .6s var(--spring); transition-delay: calc(.3s + var(--i) * 70ms); }
.chp-install__dom { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: .9rem; color: var(--on-dark-2); }
.chp-install__dom .ic { flex: none; width: 20px; height: 20px; color: var(--gnista); }
.chp-code { --focus: var(--gnista); overflow: hidden; border-radius: 24px; background: #120419; box-shadow: 0 0 0 1px rgba(200, 168, 242, .2), 0 60px 100px -40px rgba(0, 0, 0, .9); }
.chp-code__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(200, 168, 242, .12); }
.chp-code__bar > i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.chp-code__bar span { margin-left: 8px; font-size: .78rem; color: var(--ton); }
.chp-code__copy { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 7px 12px; border: 0; border-radius: 10px; cursor: pointer; font-size: .78rem; font-weight: 700; color: var(--natt); background: var(--gnista); }
.chp-code__copy .ic { width: 14px; height: 14px; }
.chp-code__copy span { margin: 0; color: inherit; font-size: inherit; }
.chp-code__copy.is-done { color: #fff; background: var(--ok); }
.chp-code__pre { margin: 0; padding: 22px 20px; overflow-x: auto; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86rem; line-height: 1.8; color: #fff; white-space: pre-wrap; word-break: break-all; }
.c-dim { color: rgba(200, 168, 242, .55); }
.c-line { color: var(--gnista); }
.c-line.is-typing::after { content: ""; display: inline-block; width: 8px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--gnista); animation: caret .8s steps(1) infinite; }
.chp-code__ok { display: flex; align-items: center; gap: 8px; margin: 0 20px; padding: 10px 14px; border-radius: 12px; font-size: .85rem; font-weight: 700; color: #7BE3AE; background: rgba(34, 164, 93, .14); }
.chp-code__ok .ic { width: 16px; height: 16px; stroke-width: 3; }
.reveal-on .chp-code__ok { opacity: 0; transform: translateY(8px); }
.chp-code.is-typed .chp-code__ok { opacity: 1; transform: none; transition: opacity .5s, transform .6s var(--spring); }
.chp-code__note { padding: 12px 20px 18px; font-size: .78rem; color: var(--ton); }
@media (min-width: 1000px) { .chp-install__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }
.chp-howto { margin-top: clamp(64px, 8vw, 104px); }

@keyframes chp-grid { to { background-position: 0 64px; } }
@keyframes chp-rise { from { opacity: 0; translate: 0 140px; } }
@keyframes chp-pop { from { opacity: 0; scale: .6; } }
@keyframes chp-typing { 0% { opacity: 0; } 10%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes chp-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 6px 0; } }
@keyframes chp-float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: -1deg; } }
@media (min-width: 640px) { .chp-bot__sugg ul { flex-wrap: wrap; overflow: visible; } }
