/* Startsidornas avsnitt */
/* Sektion 2–10. Alla markeringar på skärmarna kommer från uppmätta positioner i appen (CSS-px i 428 × 926). */
.bx { --ink: var(--text); --ink-2: var(--text-secondary); }
.bx-h { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; color: var(--ink); margin: 0; }
.bx-h b { font-weight: 800; }
.bx-kick { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-dark); }
.bx-kick::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.bx-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 520px; }
.rv { transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.js-rv .rv:not(.in) { transform: translateY(26px); }
.reassure { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.reassure span { display: inline-flex; align-items: center; gap: 6px; }
.reassure svg { width: 15px; height: 15px; fill: none; stroke: #3E8E6A; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* telefon + skärm. .scr har exakt appens proportioner så att markeringarna hamnar rätt. */
.dev { position: relative; container-type: inline-size; aspect-ratio: 452 / 1006; border-radius: 15% / 6.8%; padding: 0; background: linear-gradient(150deg, #4A423C 0%, #1C1815 18%, #0E0C0B 55%, #2B2521 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 3px #0B0908, 0 2px 2px rgba(0, 0, 0, .25), 0 50px 90px -40px rgba(43, 36, 32, .6); }
.dev::before { content: ""; position: absolute; top: 3.1%; left: 50%; width: 28%; height: 2.6%; transform: translateX(-50%); border-radius: 99px; background: #050404; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); z-index: 7; }
.dev::after { content: ""; position: absolute; right: -0.9%; top: 24%; width: 1%; height: 10%; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #1A1614, #3A332E); }
.dev-s { position: absolute; top: 1.17%; bottom: 1.17%; left: 2.6%; right: 2.6%; border-radius: 12.6% / 5.7%; overflow: hidden; background: #FAF7F3; }
.dev-s::before { content: "15:24"; position: absolute; inset: 0 0 auto; height: 5%; padding-left: 10cqw; display: flex; align-items: center; font: 700 4.1cqw/1 -apple-system, "Segoe UI", system-ui, sans-serif; letter-spacing: -.01em; color: #1F1A17; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 12'%3E%3Cg fill='%231F1A17'%3E%3Crect x='0' y='7' width='3' height='4' rx='1'/%3E%3Crect x='5' y='5' width='3' height='6' rx='1'/%3E%3Crect x='10' y='3' width='3' height='8' rx='1'/%3E%3Crect x='15' y='1' width='3' height='10' rx='1'/%3E%3Crect x='24' y='1.5' width='18' height='9' rx='2.5' fill='none' stroke='%231F1A17' stroke-opacity='.45'/%3E%3Crect x='26' y='3.5' width='12' height='5' rx='1.2'/%3E%3Crect x='43' y='4.5' width='1.6' height='3' rx='.8' fill-opacity='.45'/%3E%3C/g%3E%3C/svg%3E") no-repeat right 8cqw center / 13cqw auto; z-index: 5; }
/* Skärmbilderna är tagna kl. 15:24 ("God dag"); tema- och mejlbilderna kl. 18:48 ("God kväll"). Klassen kv sätts i sections.js. */
.dev-s.kv::before { content: "18:48"; }
/* Amerikanska /en (lang="en"; brittiska /uk är en-GB): 12-timmarsklocka som på en amerikansk iPhone – utan AM/PM i statusraden. */
html[lang="en"] .dev-s::before { content: "3:24"; }
html[lang="en"] .dev-s.kv::before { content: "6:48"; }
.dev-s::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(118deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 32%); pointer-events: none; z-index: 8; }
.scr { position: absolute; top: 5%; left: 0; width: 100%; aspect-ratio: 428 / 926; transform-origin: 0 0; }
.scr > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dev.android { border-radius: 9% / 4.2%; }
.dev.android::before { width: 4%; height: 1.9%; border-radius: 50%; top: 2.4%; }
.dev.android .dev-s { border-radius: 7% / 3.2%; }
.mk { position: absolute; border-radius: 10px; border: 2.5px solid var(--primary); pointer-events: none; }
.mk.glow { border-color: transparent; background: rgba(201, 113, 74, .16); box-shadow: 0 0 0 2px rgba(201, 113, 74, .55); opacity: var(--o, 0); transition: opacity .3s; }

/* ---------- 2. Problemet ---------- */
.pb { position: relative; height: 260vh; }
.pb-stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.pb-copy { position: absolute; top: 8vh; left: 0; right: 0; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; z-index: 4; }
.pb-copy .bx-h { font-size: clamp(32px, 5vw, 64px); max-width: 900px; }
.pb-end { position: absolute; bottom: 5vh; left: 0; right: 0; margin: 0 auto; text-align: center; z-index: 4; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: clamp(19px, 2.4vw, 28px); font-weight: 300; letter-spacing: -.02em; color: var(--ink); opacity: calc(.25 + .75 * var(--p, 0)); }
.pb-end b { font-weight: 800; color: var(--primary-dark); }
.pb-phone { position: absolute; left: 50%; top: 56%; width: min(250px, 50vw); transform: translate(-50%, -50%) scale(calc(.86 + .14 * var(--p, 0))); z-index: 2; }
.pb-phone .scr > img { opacity: calc(.2 + .8 * var(--p, 0)); }
.pb-phone .dev { box-shadow: 0 0 0 calc(var(--pop, 0) * 14px) rgba(201, 113, 74, .16), 0 50px 90px -40px rgba(43, 36, 32, .55); }
.pb-fly { position: absolute; left: 0; top: 0; z-index: 3; transform-origin: 0 0; will-change: transform; }
.pc { width: 230px; padding: 13px 15px; border-radius: 16px; background: var(--surface); box-shadow: 0 18px 40px -18px rgba(43, 36, 32, .35); font-size: 14px; line-height: 1.4; color: var(--ink); }
.pc small { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 3px; letter-spacing: .02em; }
.pc b { font-weight: 800; }
.pc.bubble { background: #E9EEF7; border-bottom-left-radius: 4px; }
.pc.group { background: #E6F0EA; }
.pc.note { background: #FBE7A6; border-radius: 3px; font-family: "Segoe Print", "Bradley Hand", cursive; font-size: 15px; }
.pc.pink { background: #F7D1C4; }
.pc.mail { border-left: 4px solid var(--primary); }
.pi { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 14px 30px -14px rgba(43, 36, 32, .4); }
.pi svg { width: 28px; height: 28px; fill: none; stroke: var(--c, var(--primary-dark)); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding-block: 30px; border-block: 1px solid var(--border); }
.trust span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--text); }
.trust svg { width: 18px; height: 18px; fill: none; stroke: var(--primary-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- telefonen som står kvar ---------- */
.ft { padding-block: 40px; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 80px; }
.ft.flip .ft-grid { grid-template-columns: 390px minmax(0, 1fr); }
.ft.flip .ft-stage { order: -1; }
.chap { padding-block: 12vh 2vh; display: flex; flex-direction: column; gap: 16px; }
.chap .bx-h { font-size: clamp(36px, 4.6vw, 58px); }
.beats { list-style: none; margin: 5vh 0 0; padding: 0; display: flex; flex-direction: column; }
.beat { min-height: 30vh; display: flex; flex-direction: column; gap: 6px; padding: 2px 0 0 24px; border-left: 2px solid var(--border); transition: border-color .35s, opacity .35s; }
.beat h3 { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 23px; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.beat p { margin: 0; max-width: 440px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.beat time { align-self: flex-start; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.ft.js .beat { opacity: .34; }
.ft.js .beat.on { opacity: 1; border-color: var(--primary); }
.ft-stage { position: sticky; top: 8vh; height: 84vh; display: flex; align-items: center; justify-content: center; }
.ft-stage::before { content: ""; position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--primary-light), transparent); }
.ft-stage .dev { height: min(76vh, 730px); }
.ft .scr { transition: transform .75s cubic-bezier(.3, .8, .2, 1); }
.ft .scr > img { opacity: 0; transition: opacity .45s; }
.ft .scr > img.show { opacity: 1; }
.ft .mk.ring { box-shadow: 0 0 0 200vmax rgba(31, 26, 23, .3); transition: left .75s cubic-bezier(.3, .8, .2, 1), top .75s cubic-bezier(.3, .8, .2, 1), width .75s cubic-bezier(.3, .8, .2, 1), height .75s cubic-bezier(.3, .8, .2, 1); }

/* ---------- prova själv ---------- */
.try { padding-block: 40px 100px; }
.try-in { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 64px; align-items: center; padding: 56px; border-radius: 36px; background: var(--surface); border: 1px solid var(--border); }
.try .bx-h { font-size: clamp(32px, 4vw, 50px); margin-top: 14px; }
.chips { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.chip { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 18px; border: 1.5px solid var(--border); background: var(--bg); font: inherit; font-size: 16.5px; font-weight: 600; color: var(--text); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.chip:hover { border-color: var(--primary); }
.chip:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.chip[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-light); }
.chip i { flex: 0 0 38px; height: 38px; border-radius: 12px; background: var(--primary-light); display: grid; place-items: center; }
.chip[aria-pressed="true"] i { background: var(--surface); }
.chip svg { width: 20px; height: 20px; fill: none; stroke: var(--primary-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.try-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.try .dev { width: 100%; }
.try .mk { opacity: 0; transition: opacity .4s; }
.try .mk.on { opacity: 1; box-shadow: 0 0 0 200vmax rgba(31, 26, 23, .22); }
.try-shutter { position: absolute; left: calc(178 / 428 * 100%); top: calc(790 / 926 * 100%); width: calc(72 / 428 * 100%); aspect-ratio: 1; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .9); opacity: 0; pointer-events: none; }
.try-shutter.press { animation: press .45s ease-out; }
@keyframes press { 0% { opacity: 1; transform: scale(1); } 40% { opacity: 1; transform: scale(.82); } 100% { opacity: 0; transform: scale(1.25); } }
.try-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.try-flash.go { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.try-thumb { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 0; overflow: visible; opacity: 0; pointer-events: none; transition: left .7s cubic-bezier(.3, .8, .2, 1), top .7s cubic-bezier(.3, .8, .2, 1), width .7s cubic-bezier(.3, .8, .2, 1), height .7s cubic-bezier(.3, .8, .2, 1), border-radius .7s, opacity .3s; }
.try-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .45); }
.try-thumb i { position: absolute; right: -8%; top: -8%; width: 42%; aspect-ratio: 1; border-radius: 50%; background: #3E8E6A; color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; opacity: 0; transform: scale(.4); transition: opacity .25s .6s, transform .35s .6s cubic-bezier(.3, 1.6, .5, 1); }
.try-thumb.full { opacity: 1; }
.try-thumb.small { opacity: 1; left: calc(22 / 428 * 100%); top: calc(791 / 926 * 100%); width: calc(58 / 428 * 100%); height: calc(58 / 926 * 100%); border-radius: 10px; }
.try-thumb.small i { opacity: 1; transform: scale(1); }

/* ---------- synk ---------- */
.sync { position: relative; background: #1E1916; color: #F5EFE8; padding-block: 130px; overflow: hidden; }
.sync::before { content: ""; position: absolute; right: -10%; top: 50%; width: 70vw; max-width: 980px; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 113, 74, .30), rgba(201, 113, 74, .08) 55%, transparent); pointer-events: none; }
.sync .bx-h { --ink: #F5EFE8; font-size: clamp(40px, 5.4vw, 72px); }
.sync .bx-kick { color: #E0916B; }
.sync-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.sync-points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 22px; }
.sync-points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.sync-points svg { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: rgba(224, 145, 107, .14); stroke: #E0916B; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sync-points b { display: block; font-size: 18px; color: #F5EFE8; }
.sync-points span { color: #C9BFB2; font-size: 16px; }
.sync-stage { position: relative; height: clamp(600px, 58vw, 760px); perspective: 1600px; }
.sync-ph { position: absolute; top: 50%; width: 50%; transform-style: preserve-3d; }
.sync-ph .dev { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 0 0 3px #0B0908, 0 70px 110px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .4); }
.sync-ph.a { left: 0; transform: translateY(-47%) rotateY(14deg) rotateZ(-3deg) scale(.92); z-index: 1; }
.sync-ph.b { right: 0; transform: translateY(-53%) rotateY(-10deg) rotateZ(2deg); z-index: 2; }
.sync-ph .scr { transform: scale(1.04); }
.sync-tag { position: absolute; top: -48px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(245, 239, 232, .08); border: 1px solid rgba(245, 239, 232, .14); color: #F5EFE8; font-size: 13.5px; font-weight: 700; white-space: nowrap; backdrop-filter: blur(6px); }
.sync-tag i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; }
.sync .mk { border-color: #E0916B; z-index: 2; animation: syncpulse 3.6s ease-out infinite; }
.sync-ph.b .mk { animation-delay: 1.1s; }
@keyframes syncpulse { 0% { box-shadow: 0 0 0 0 rgba(224, 145, 107, .7); } 35% { box-shadow: 0 0 0 10px rgba(224, 145, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 145, 107, 0); } }
.sync-chip { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #F5EFE8; color: #2B2420; font-size: 13.5px; font-weight: 800; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .6); white-space: nowrap; }
.sync-chip svg { width: 16px; height: 16px; fill: none; stroke: #C9714A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: spin 3.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* CTA-band */
.band { padding-block: 64px; }
.band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 24px; padding: 34px 40px; border-radius: 28px; background: var(--primary-light); }
.band-in p { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: clamp(22px, 2.6vw, 30px); font-weight: 300; letter-spacing: -.02em; color: var(--text); }
.band-in p b { font-weight: 800; }
.band-in .reassure { flex-basis: 100%; justify-content: flex-start; }

/* ---------- familjen ---------- */
.fam { padding-block: 120px 60px; }
.fam-head, .faq-head { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; margin-bottom: 56px; }
.fam-head .bx-h, .faq-head .bx-h { font-size: clamp(38px, 5vw, 64px); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); padding: 28px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; min-width: 0; }
.tile h3 { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.015em; color: var(--text); }
.tile p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-secondary); }
.tile .crop { margin: auto -28px -28px; padding-top: 14px; overflow: hidden; }
.tile .crop img { display: block; width: 100%; height: auto; border-top: 1px solid var(--border); }
.devs .explain { align-items: start; }
.safe-head { margin: 88px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.safe-h { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 300; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.03em; line-height: 1.05; color: var(--text); }
.safe-h b { font-weight: 800; }
.safe-head p { margin: 0; max-width: 560px; font-size: 17px; color: var(--text-secondary); }
/* Två hem, ett barn */
.twohome { margin-top: 24px; padding: clamp(28px, 4vw, 52px); border-radius: 32px; background: linear-gradient(180deg, #F6EEE6 0%, #FAF7F3 100%); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 34px; }
.th2-head { max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.th2-h { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: clamp(32px, 4vw, 48px); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; color: var(--text); }
.th2-h b { font-weight: 800; }
.th2-head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.th2-stage { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); align-items: center; }
.home { position: relative; padding: 20px; border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px var(--border), 0 26px 50px -34px rgba(43, 36, 32, .55); display: flex; flex-direction: column; gap: 14px; }
.home-top { display: flex; align-items: center; gap: 10px; font: 800 15px/1 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--text); }
.home-top svg { width: 30px; height: 30px; padding: 6px; border-radius: 10px; box-sizing: border-box; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: var(--primary-light); }
.kid { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--bg); }
.kid .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #7B6BAF; color: #fff; font: 800 16px/1 "Plus Jakarta Sans", system-ui, sans-serif; }
.kid b { display: block; font-size: 16px; color: var(--text); }
.kid small { font-size: 13px; color: var(--muted); }
.lk { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-size: 12.5px; font-weight: 700; }
.lk svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.blk { border-radius: 16px; padding: 6px 14px 8px; }
.blk.shared { background: rgba(201, 113, 74, .08); box-shadow: inset 0 0 0 1.5px rgba(201, 113, 74, .35); }
.blk.own { background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); }
.blk-h { display: block; padding: 6px 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-dark); }
.blk.own .blk-h { color: var(--muted); }
.r { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(43, 36, 32, .07); font-size: 14px; }
.blk-h + .r { border-top: 0; }
.r span { color: var(--text-secondary); }
.r b { font-weight: 700; color: var(--text); text-align: right; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pill { font-style: normal; padding: 2px 9px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--border); font-size: 13px; }
.pill.new { background: var(--primary); color: #fff; box-shadow: none; }
.toast { position: absolute; left: 50%; bottom: -16px; transform: translate(-50%, 6px); white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: #2B2420; color: #fff; font-size: 13px; font-weight: 700; opacity: 0; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5); }
.th2-mid { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.wire { position: relative; width: 100%; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(201, 113, 74, .55) 0 8px, transparent 8px 14px); }
.wire .dot { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 6px rgba(201, 113, 74, .2); opacity: 0; }
.mid-badge { padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--border); font-size: 12.5px; font-weight: 800; color: var(--primary-dark); }
/* 7 s loop: allergi läggs till hos mamma -> punkt reser över -> syns hos pappa */
.twohome.in .pill.new { animation: th2-a 7s ease infinite; }
.twohome.in .h-b .pill.new { animation-name: th2-b; }
.twohome.in .h-a .toast { animation: th2-ta 7s ease infinite; }
.twohome.in .h-b .toast { animation: th2-tb 7s ease infinite; }
.twohome.in .wire .dot { animation: th2-dot 7s ease-in-out infinite; }
.twohome.in .h-a .r-alg { animation: th2-ra 7s ease infinite; }
.twohome.in .h-b .r-alg { animation: th2-rb 7s ease infinite; }
@keyframes th2-a { 0%, 8% { opacity: 0; transform: scale(.6); } 14%, 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes th2-b { 0%, 42% { opacity: 0; transform: scale(.6); } 48%, 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes th2-ta { 0%, 8% { opacity: 0; transform: translate(-50%, 6px); } 14%, 34% { opacity: 1; transform: translate(-50%, 0); } 40%, 100% { opacity: 0; transform: translate(-50%, 6px); } }
@keyframes th2-tb { 0%, 44% { opacity: 0; transform: translate(-50%, 6px); } 50%, 76% { opacity: 1; transform: translate(-50%, 0); } 82%, 100% { opacity: 0; transform: translate(-50%, 6px); } }
@keyframes th2-dot { 0%, 18% { left: 0; opacity: 0; } 22% { opacity: 1; } 40% { left: 100%; opacity: 1; } 44%, 100% { left: 100%; opacity: 0; } }
@keyframes th2-ra { 0%, 10%, 36%, 100% { background: transparent; } 14%, 30% { background: rgba(201, 113, 74, .14); } }
@keyframes th2-rb { 0%, 44%, 74%, 100% { background: transparent; } 48%, 68% { background: rgba(201, 113, 74, .14); } }
.r-alg { margin-inline: -8px; padding-inline: 8px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .twohome.in * { animation: none !important; } .pill.new { opacity: 1; } }
.th2-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.th2-keys > div { display: flex; gap: 12px; align-items: flex-start; }
.th2-keys i { flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 6px; }
.k-shared { background: rgba(201, 113, 74, .12); box-shadow: inset 0 0 0 1.5px rgba(201, 113, 74, .5); }
.k-own { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--border); }
.th2-keys p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.th2-keys b { color: var(--text); }
.th2-steps { list-style: none; margin: 0; padding: 26px 0 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.th2-steps li { display: flex; gap: 14px; }
.th2-steps li > span { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font: 800 14px/1 "Plus Jakarta Sans", system-ui, sans-serif; }
.th2-steps h4 { margin: 3px 0 6px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 17px; font-weight: 800; color: var(--text); }
.th2-steps p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
.th2-note { margin: -10px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
@media (max-width: 960px) {
  .th2-stage { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .th2-mid { height: 110px; flex-direction: row; }
  .wire { position: absolute; left: 50%; top: 0; width: 3px; height: 100%; background: repeating-linear-gradient(180deg, rgba(201, 113, 74, .55) 0 8px, transparent 8px 14px); }
  .wire .dot { left: 50% !important; margin: -8px 0 0 -8px; }
  .twohome.in .wire .dot { animation-name: th2-dotv; }
  .mid-badge { position: relative; }
  .th2-keys, .th2-steps { grid-template-columns: minmax(0, 1fr); }
}
@keyframes th2-dotv { 0%, 18% { top: 0; opacity: 0; } 22% { opacity: 1; } 40% { top: 100%; opacity: 1; } 44%, 100% { top: 100%; opacity: 0; } }
/* Scrollsignal */
.scroll-cue { position: fixed; right: 32px; bottom: 28px; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--text-secondary); opacity: 0; animation: sc-in .8s ease 1.2s forwards; transition: opacity .4s ease, transform .4s ease; }
.scroll-cue.gone { opacity: 0 !important; transform: translateY(10px); pointer-events: none; animation: none; }
.sc-mouse { width: 24px; height: 38px; border-radius: 13px; box-sizing: border-box; border: 2px solid currentColor; display: flex; justify-content: center; padding-top: 7px; opacity: .75; }
.sc-mouse i { width: 3px; height: 7px; border-radius: 3px; background: var(--primary); animation: sc-dot 1.8s cubic-bezier(.6, 0, .4, 1) infinite; }
.sc-txt { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.scroll-cue:hover .sc-mouse, .scroll-cue:focus-visible .sc-mouse { opacity: 1; color: var(--primary); }
@keyframes sc-in { to { opacity: 1; } }
@keyframes sc-dot { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sc-mouse i { animation: none; } }
@media (max-width: 960px) { .scroll-cue { right: 16px; bottom: 18px; } .sc-txt { display: none; } }
/* Karusell */
.car { position: relative; }
.car-stick { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-top: 64px; box-sizing: border-box; overflow: hidden; }
.car-head { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.car-head .bx-h { font-size: clamp(30px, 3.6vw, 48px); margin-top: 10px; }
.car-progress { flex: 0 0 200px; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.car-progress i { display: block; height: 100%; width: calc(var(--cp, 0) * 100%); background: var(--primary); border-radius: 4px; }
.car-track { display: flex; gap: 36px; padding-left: max(16px, calc((100vw - 1120px) / 2 + 16px)); padding-right: 10vw; will-change: transform; }
.car-card { flex: 0 0 clamp(260px, 24vw, 340px); display: flex; flex-direction: column; gap: 10px; }
.car-vis { height: clamp(280px, calc(100vh - 400px), 560px); display: flex; align-items: center; justify-content: center; padding: 22px; border-radius: 30px; background: var(--primary-light); }
.car-vis .dev { height: 100%; }
.car-card h3 { margin: 6px 0 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.015em; color: var(--text); }
.car-card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-secondary); }
.car-card:nth-child(2n) .car-vis { background: #EFE8DE; }
@media (max-width: 960px) {
  .car { height: auto !important; padding-block: 60px; }
  .car-stick { position: static; height: auto; }
  .car-progress { display: none; }
  .car-track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 16px; padding-bottom: 8px; scrollbar-width: none; }
  .car-card { flex-basis: 78vw; scroll-snap-align: center; }
  .car-vis { height: 62vh; }
}
/* Färgteman */
.themes { position: relative; height: calc(var(--n) * 62vh + 100vh); }
.th-stick { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--th-bg, #FAF7F3); transition: background .7s ease; }
.th-stick::before { content: ""; position: absolute; right: 8%; top: 50%; width: min(760px, 70vw); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(closest-side, var(--th-soft, #F3E6DC), transparent); transition: background .7s ease; }
.th-grid { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: center; }
.th-copy { display: flex; flex-direction: column; gap: 18px; }
.th-copy .bx-h { font-size: clamp(40px, 5.6vw, 76px); transition: color .7s; }
.th-copy .bx-h b { color: var(--th-c, #C9714A); transition: color .7s; }
.th-name { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.02em; color: var(--text); transition: color .7s; }
.th-name i { width: 22px; height: 22px; border-radius: 50%; background: var(--th-c, #C9714A); box-shadow: 0 0 0 5px color-mix(in srgb, var(--th-c, #C9714A) 22%, transparent); transition: background .5s, box-shadow .5s; }
.th-tag { margin: 0; max-width: 460px; min-height: 3.2em; font-size: 19px; line-height: 1.6; color: var(--text-secondary); transition: color .7s; }
.th-dots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.th-dot { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: linear-gradient(135deg, var(--b) 0 50%, var(--c) 50% 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .25s, box-shadow .25s; }
.th-dot:hover { transform: scale(1.08); }
.th-dot:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.th-dot.on { transform: scale(1.12); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px var(--th-bg, #FAF7F3), 0 0 0 5px var(--th-c, #C9714A); }
.th-note { margin: 4px 0 0; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .7s; }
.th-phone .dev { width: 100%; max-width: 330px; margin-inline: auto; }
.th-phone .scr > img { opacity: 0; transition: opacity .55s ease; }
.th-phone .scr > img.show { opacity: 1; }
.th-stick.is-dark .bx-h, .th-stick.is-dark .th-name { color: #F5EFE8; }
.th-stick.is-dark .bx-kick { color: #E0916B; }
.th-stick.is-dark .th-tag { color: #C9BFB2; }
.th-stick.is-dark .th-note { color: #A0968A; }
.end.dark { background: linear-gradient(180deg, #1E1A16 0%, #241E1A 60%, #2B221C 100%); }
.end.dark .bx-h { color: #F5EFE8; }
.end.dark .bx-h b { color: #E0916B; }
.end.dark .reassure { color: #C9BFB2; }
.end.dark .reassure svg { stroke: #7BC4A0; }
.end.dark .store-badge { background: #F5EFE8; color: #1F1A17; }
.end.dark .store-badge svg[fill="#fff"] { fill: #1F1A17; }
.end.dark .burst { background: #2B2420; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); }
.th-stick.is-dark .dev-s, .end.dark .dev-s { background: #292420; }
.th-stick.is-dark .dev-s::before, .end.dark .dev-s::before { color: #F5EFE8; background: #292420 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 12'%3E%3Cg fill='%23F5EFE8'%3E%3Crect x='0' y='7' width='3' height='4' rx='1'/%3E%3Crect x='5' y='5' width='3' height='6' rx='1'/%3E%3Crect x='10' y='3' width='3' height='8' rx='1'/%3E%3Crect x='15' y='1' width='3' height='10' rx='1'/%3E%3Crect x='24' y='1.5' width='18' height='9' rx='2.5' fill='none' stroke='%23F5EFE8' stroke-opacity='.45'/%3E%3Crect x='26' y='3.5' width='12' height='5' rx='1.2'/%3E%3Crect x='43' y='4.5' width='1.6' height='3' rx='.8' fill-opacity='.45'/%3E%3C/g%3E%3C/svg%3E") no-repeat right 8cqw center / 13cqw auto; }
.th-stick .dev-s, .th-stick .dev-s::before { transition: background-color .55s ease, color .55s ease; }
/* Mejla in kallelser */
.mail { padding-block: 20px 110px; }
.mail-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.mail-head .bx-h { font-size: clamp(36px, 4.6vw, 58px); }
.msteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.msteps li { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mvis { height: 470px; display: flex; align-items: center; justify-content: center; padding: 22px; border-radius: 28px; background: var(--primary-light); }
.mvis .dev { height: 100%; width: auto; }
.mvis .shot { width: 100%; }
.mail .inv-cap span { color: #fff; background: var(--primary); }
.mail .inv-cap h3 { color: var(--text); }
.mail .inv-cap p { color: var(--text-secondary); }
.mailcard { width: 100%; border-radius: 16px; background: #fff; box-shadow: 0 18px 36px -20px rgba(43, 36, 32, .45), 0 0 0 1px var(--border); overflow: hidden; font-size: 13.5px; color: #2B2420; }
.mc-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F4F1EC; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 12.5px; color: #5B5147; }
.mc-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D8D0C5; }
.mc-bar span { margin-left: 8px; }
.mc-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--border); }
.mc-row b { color: #8A8075; font-weight: 600; }
.mc-addr { justify-self: start; padding: 1px 8px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }
.mc-body { padding: 14px; line-height: 1.55; }
.mc-body p { margin: 0 0 10px; }
.mc-send { margin: 0 14px 14px; display: inline-block; padding: 8px 16px; border-radius: 999px; background: #2B2420; color: #fff; font-weight: 700; font-size: 13px; }
.mail-note { margin: 28px 0 0; font-size: 15px; font-weight: 600; color: var(--text-secondary); }
/* Inom familjen: tre förklarande kort med numrerade markeringar */
.explain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.ex { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 24px 50px -36px rgba(43, 36, 32, .45); min-width: 0; }
.ex h3 { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.015em; color: var(--text); }
.ex > p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-secondary); }
.shot { position: relative; margin-top: 6px; border-radius: 18px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--border), 0 14px 28px -18px rgba(43, 36, 32, .45); }
.shot img { display: block; width: 100%; height: auto; }
.pin { position: absolute; border: 2px solid var(--primary); border-radius: 10px; background: rgba(201, 113, 74, .07); }
.pin::after { content: attr(data-n); position: absolute; right: -6px; top: -9px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font: 800 12px/1 "Plus Jakarta Sans", system-ui, sans-serif; box-shadow: 0 0 0 3px var(--surface); }
.legend { list-style: none; counter-reset: lg; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.legend li { counter-increment: lg; position: relative; padding-left: 32px; min-height: 22px; font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); }
.legend li::before { content: counter(lg); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font: 800 12px/1 "Plus Jakarta Sans", system-ui, sans-serif; }
.legend b { color: var(--text); font-weight: 700; }
.ex-foot { margin: 2px 0 0 !important; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px !important; font-weight: 600; color: var(--text-secondary); }
.ten { margin-top: 24px; display: flex; align-items: center; gap: 24px; padding: 26px 32px; border-radius: 28px; background: var(--primary-light); }
.ten h3 { margin: 0 0 4px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 22px; font-weight: 800; color: var(--text); }
.ten p { margin: 0; font-size: 15.5px; color: var(--text-secondary); }
.ten .big-num { font-size: 72px; }
/* Familjen: två tydliga grupper – inom familjen och med andra familjer */
.grp { margin-top: 24px; }
.grp + .grp { margin-top: 72px; }
.grp-label { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.grp-label b { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--text); padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.grp-label b i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-light); }
.grp-label b svg { width: 16px; height: 16px; fill: none; stroke: var(--primary-dark); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.grp-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.t-a, .t-b, .t-d, .t-e { grid-column: span 3; }
.t-a .crop img, .t-b .crop img, .t-d .crop img { height: 280px; object-fit: cover; object-position: top; }
.t-e { background: var(--primary-light); border-color: var(--primary-light); flex-direction: row; align-items: center; gap: 22px; }
.t-e .big-num { flex: 0 0 auto; }
.inv { border-radius: 36px; background: #2B2420; color: #F5EFE8; padding: 56px; overflow: hidden; position: relative; }
.inv::before { content: ""; position: absolute; right: -15%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 113, 74, .28), transparent); }
.inv-head { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.inv-head .bx-h { --ink: #F5EFE8; font-size: clamp(32px, 4vw, 52px); margin-top: 14px; }
.inv-head .bx-kick { color: #E0916B; }
.inv-head p { margin: 0; color: #C9BFB2; font-size: 17.5px; line-height: 1.6; }
.inv-head p b { color: #F5EFE8; }
.inv-steps { position: relative; list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.inv-steps li { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.inv-steps .dev { width: min(230px, 100%); margin-inline: auto; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 0 0 3px #0B0908, 0 50px 80px -40px rgba(0, 0, 0, .8); }
.inv-steps .mk { border-color: #E0916B; box-shadow: 0 0 0 4px rgba(224, 145, 107, .25); }
.inv-cap { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.inv-cap span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #E0916B; color: #2B2420; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.inv-cap h3 { margin: 0 0 4px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 19px; font-weight: 800; color: #F5EFE8; }
.inv-cap p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #C9BFB2; }
.inv-reply { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.inv-reply span { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 12px 7px 7px; border-radius: 999px; background: rgba(245, 239, 232, .08); border: 1px solid rgba(245, 239, 232, .14); font-size: 13.5px; font-weight: 700; color: #F5EFE8; }
.inv-reply i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #3E8E6A; color: #fff; font-style: normal; font-size: 12px; }
.inv-note { position: relative; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid rgba(245, 239, 232, .12); color: #C9BFB2; font-size: 15px; }
.t-c { grid-column: auto; margin-top: 18px; background: var(--surface); border-color: var(--border); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; }
.t-c h3 { color: var(--text); }
.t-c p { color: var(--text-secondary); }
.link-art { display: flex; align-items: center; justify-content: center; }
.link-art span { padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 13px; white-space: nowrap; }
.link-art i { flex: 1 1 24px; max-width: 46px; height: 2px; background: repeating-linear-gradient(90deg, #E0916B 0 5px, transparent 5px 9px); }
.link-art em { flex: 0 0 44px; height: 44px; border-radius: 50%; background: #E3A868; color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.big-num { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 96px; line-height: .85; font-weight: 800; letter-spacing: -.05em; color: var(--primary-dark); }

/* ---------- enheter ---------- */
.devs { padding-block: 100px 40px; }
.devs-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.devs-head .bx-h { font-size: clamp(38px, 5vw, 64px); }
.devs-stage { position: relative; padding: 2% 0 9%; }
.devs-stage::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 3%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(43, 36, 32, .28), transparent); filter: blur(6px); }
.devs-stage::after { content: ""; position: absolute; left: 50%; top: 42%; width: 80%; aspect-ratio: 2; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, var(--primary-light), transparent); z-index: -1; }
.laptop { position: relative; width: 72%; margin: 0 auto; }
.laptop-lid { position: relative; padding: 1.5% 1.5% 3.4%; border-radius: 2.4% / 3.8%; background: linear-gradient(180deg, #2A2420, #0E0C0B 12%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 0 0 2.5px #080706, 0 40px 70px -40px rgba(43, 36, 32, .55); }
.laptop-lid::before { content: ""; position: absolute; top: .8%; left: 50%; width: .7%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #2E3A40; box-shadow: 0 0 0 1px #050404; }
.laptop-lid::after { content: "Bestyr"; position: absolute; bottom: .9%; left: 50%; transform: translateX(-50%); font: 700 clamp(7px, .8vw, 11px)/1 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: .08em; color: rgba(245, 239, 232, .28); }
.laptop-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #FAF7F3; }
.laptop-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.laptop-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 35%); pointer-events: none; }
.laptop-base { position: relative; height: 0; padding-bottom: 3.2%; margin-inline: -9%; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(180deg, #F2EEE8 0%, #D8D0C5 45%, #A99F93 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 30px -18px rgba(43, 36, 32, .6); }
.laptop-base::before { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 38%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #C9C0B4, #DCD5CB); }
.dpos { position: absolute; bottom: 2%; z-index: 2; }
.dpos.i { right: 3%; width: 21%; transform: rotate(3deg); }
.dpos.a { left: 3%; width: 19.5%; bottom: 3%; transform: rotate(-3deg); }
.devs-cap { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--muted); }
.devs-stage .laptop .devs-cap { bottom: -40px; }
.safe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 72px; }
.safe .tile .crop { max-height: 260px; }
.zone-art { margin-top: auto; padding-top: 20px; display: grid; place-items: center; }
.zone-art svg { width: 100%; max-width: 300px; height: auto; }

/* ---------- vanliga frågor ---------- */
.faq { padding-block: 100px 110px; }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 20px; background: var(--surface); border: 1px solid var(--border); padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; font-size: 18px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: grid; place-items: center; font-size: 20px; font-weight: 700; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; border-radius: 8px; }
.faq details p { margin: 0 0 20px; font-size: 16.5px; line-height: 1.6; color: var(--text-secondary); max-width: 680px; }

/* ---------- avslutning ---------- */
.end { position: relative; padding-block: 140px 0; text-align: center; overflow: hidden; background: linear-gradient(180deg, var(--bg), var(--primary-light)); }
.end .bx-h { font-size: clamp(42px, 7vw, 96px); max-width: 1000px; margin-inline: auto; position: relative; z-index: 2; }
.end .bx-h b { display: block; color: var(--primary-dark); }
.end-cta { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 40px; }
.end-phone { position: relative; width: min(300px, 64vw); margin: 64px auto 0; height: 330px; overflow: hidden; z-index: 2; }
.burst { position: absolute; left: 50%; bottom: 200px; z-index: 1; transform: translate(calc(-50% + var(--x) * var(--q, 0)), calc(var(--y) * var(--q, 0))) scale(calc(.4 + .6 * var(--q, 0))) rotate(calc(var(--r) * var(--q, 0))); opacity: calc(var(--q, 0) * 1.2); }

/* ---------- mobilknappen ---------- */
.mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(250, 247, 243, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--border); transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.mcta.show { transform: none; }
.mcta a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 800; font-size: 16.5px; text-decoration: none; }
.mcta small { display: block; text-align: center; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--text-secondary); }

@media (max-width: 960px) {
  .ft-grid, .ft.flip .ft-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ft-stage, .ft.flip .ft-stage { order: -1; top: 0; height: 52vh; z-index: 5; background: var(--bg); padding-block: 10px; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); }
  .ft-stage::before { width: 90%; }
  .ft-stage .dev { height: calc(52vh - 24px); }
  .chap { padding-block: 6vh 1vh; }
  .try-in { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; gap: 32px; }
  .try .dev { width: min(280px, 80%); margin-inline: auto; }
  .sync { padding-block: 80px; }
  .sync-stage { height: 128vw; max-height: 620px; margin-top: 24px; }
  .sync-ph { width: 54%; }
  .sync-ph.a { left: 0; }
  .sync-ph.b { right: 0; }
  .sync-tag { top: -40px; font-size: 12px; }
  .sync-chip { top: auto; bottom: 2%; font-size: 12.5px; }
  .sync-grid, .devs-head, .safe { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .t-a, .t-b, .t-c, .t-d, .t-e { grid-column: auto; }
  .t-c { grid-template-columns: minmax(0, 1fr); }
  .explain { grid-template-columns: minmax(0, 1fr); }
  .msteps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .th-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .th-copy { gap: 10px; }
  .th-copy .bx-h { font-size: 34px; }
  .th-name { margin-top: 4px; font-size: 24px; }
  .th-tag { font-size: 15.5px; min-height: 3em; }
  .th-note { display: none; }
  .th-dot { width: 28px; height: 28px; }
  .th-phone .dev { max-width: none; width: auto; height: 46vh; }
  .mvis { height: 440px; }
  .ten { flex-direction: column; align-items: flex-start; gap: 8px; }
  .inv { padding: 32px 20px; }
  .inv-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .inv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
  .inv-steps .dev { width: 92%; }
  .inv-cap { grid-template-columns: minmax(0, 1fr); }
  .laptop { width: 86%; }
  .devs-stage { padding-bottom: 34%; }
  .dpos.i { width: 31%; right: 2%; }
  .dpos.a { width: 29%; left: 2%; }
  .devs-cap { display: none; }
  .pc { width: 168px; font-size: 12.5px; padding: 10px 12px; }
  .pi { width: 44px; height: 44px; border-radius: 14px; }
  .pi svg { width: 22px; height: 22px; }
  .band-in { padding: 26px 22px; justify-content: center; text-align: center; }
  .band-in .reassure { justify-content: center; }
}
@media (max-width: 760px) { .mcta { display: block; } }
@media (prefers-reduced-motion: reduce) {
  .rv, .ft .scr, .ft .mk.ring, .ft .scr > img, .mcta { transition: none; }
  .sync .mk, .sync-chip svg { animation: none; }
  .js-rv .rv:not(.in) { transform: none; }
}

/* ---------- mobilrättningar 2026-11-18 ---------- */
/* Sidan får aldrig gå att dra i sidled (iOS struntar i overflow-x: hidden på body; clip bryter inte sticky). */
html, body { overflow-x: clip; }
@media (max-width: 900px) {
  /* Telefonen överst: centrerad, och mellan ingressen och Prova gratis-knappen. */
  .hero.wrap .hero-copy { display: contents; }
  .hero.wrap { gap: 20px; }
  .hero-copy > * { order: 2; }
  .hero-copy > .eyebrow, .hero-copy > h1, .hero-copy > h1 + p { order: 0; }
  .hero.wrap .hero-visual { order: 1; }
  .hero .hv2 .hv-front { margin-inline: auto; }
}
@media (max-width: 640px) {
  /* "En dag med Bestyr" saknar kantmarginal på mobil – telefonytan ska då inte gå ut 16 px åt sidorna. */
  #i-vardagen .ft-stage { margin-inline: 0; }
}
@media (max-width: 420px) {
  /* Flikarna under telefonen: italienska/spanska/franska är långa – tätare, och på två rader om de ändå inte får plats. */
  .hero .hv-tabs { gap: 2px; width: max-content; max-width: calc(100vw - 32px); flex-wrap: wrap; justify-content: center; border-radius: 20px; }
  .hero .hv-tabs span { padding: 6px 8px; font-size: 10.5px; }
}

/* Hero-telefonen */
.hv2 { height: 600px; }
.hv2 .hv-back { position: absolute; top: 46px; left: calc(50% - 236px); width: 206px; transform: rotate(-7deg); opacity: .96; }
.hv2 .hv-back .dev { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 0 0 3px #0B0908, 0 30px 60px -24px rgba(43,36,32,.45); }
.hv2 .hv-front { position: relative; z-index: 1; margin-left: 130px; width: 246px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hv2 .hv-front .dev { width: 100%; }
.hv2 .hv-front .scr > img { opacity: 0; transition: opacity .6s ease; }
.hv2 .hv-front .scr > img.show { opacity: 1; }
.hv-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--border), 0 10px 24px -14px rgba(43,36,32,.35); white-space: nowrap; }
.hv-tabs span { padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text-secondary); cursor: pointer; transition: background .3s, color .3s; }
.hv-tabs span.on { background: var(--primary); color: #fff; }
.hv-float { position: absolute; z-index: 3; display: flex; gap: 12px; align-items: center; width: 250px; padding: 12px 16px; border-radius: 18px; background: var(--surface); box-shadow: 0 18px 40px rgba(43,36,32,.16), 0 0 0 1px rgba(43,36,32,.04); opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.hv-float.show { opacity: 1; transform: none; }
.hv-float strong { display: block; font-size: 14px; font-weight: 800; color: var(--text); }
.hv-float small { display: block; font-size: 13px; font-weight: 600; color: #6E655C; line-height: 1.4; }
.hv-l { left: -30px; top: 400px; }
.hv-r { right: -96px; top: 432px; width: 236px; }
@media (max-width: 1240px) { .hv-r { right: -20px; } }
.hv-ic { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--primary-light); }
.hv-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--primary-dark); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.hv-av { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 15px; }
@media (max-width: 900px) {
  .hv2 { height: auto; padding-block: 8px; }
  .hv2 .hv-back, .hv2 .hv-float { display: none; }
  .hv2 .hv-front { margin-left: 0; width: 230px; }
  .hv-tabs span { padding: 6px 9px; font-size: 11px; }
}
