/* Ferotect hero 2.0: video, glaskort och rörelsegrafik.
   Fristående från sajtens stora css: allt ligger under .fx-hero och .fx-viz så att inget annat påverkas.
   Laddning: stillbilden (poster) syns direkt, videon tonar in när den kan spelas. Aldrig något snurrande hjul. */
/* Menyns höjd innan skriptet hunnit mäta (samma värden som det mäter), så att heron inte hoppar vid laddning */
:root { --fx-head: 85px; }
@media (min-width: 601px) { :root { --fx-head: 116px; } }
@media (min-width: 1100px) { :root { --fx-head: 122px; } }
:root {
  --fx-blue: #19A8FF;
  --fx-blue-deep: #0088CC;
  --fx-navy: #0a1628;
  --fx-ink: #0d1726;
  --fx-grad: linear-gradient(135deg, #19A8FF, #0088CC);
  --fx-glow: 0 4px 20px rgba(25, 168, 255, .45);
  --fx-spring: cubic-bezier(.34, 1.56, .64, 1);
  --fx-out: cubic-bezier(.22, 1, .36, 1);
}

/* Toppraden och menyn ligger genomskinligt över videon på startsidan */
.index-page .topbar { background: transparent !important; background-image: none !important; }
.index-page header { background: transparent !important; background-image: none !important; }

/* Loggan som vektor: skarp på alla skärmar. Samma mått som den gamla bilden. */
.logo-img.fx-logo { height: 34px !important; width: auto !important; margin: 0 !important; max-width: none !important; }
@media (max-width: 768px) { .logo-img.fx-logo { height: 28px !important; } }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.fx-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%);
  margin-top: calc(-1 * var(--fx-head, 96px)); padding-top: var(--fx-head, 96px);
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  background: var(--fx-navy);
}
.fx-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; transform-origin: 50% 0;
  transform: scale(calc(1 - var(--p, 0) * .06)); border-radius: calc(var(--p, 0) * 36px); }
.fx-media img, .fx-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.fx-media img { animation: fx-drift 22s ease-in-out infinite alternate; }
@keyframes fx-drift { to { transform: scale(1.06) translate3d(-1%, -1%, 0); } }
.fx-media video, .fx-phone video { opacity: 0; transition: opacity 1.2s var(--fx-out); }
.fx-hero.is-playing .fx-media video, .fx-phone.is-playing video { opacity: 1; }
.fx-grade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10, 22, 40, .78) 0%, rgba(10, 22, 40, .45) 42%, rgba(10, 22, 40, .08) 75%),
  linear-gradient(180deg, rgba(10, 22, 40, .55) 0%, transparent 28%, transparent 65%, rgba(10, 22, 40, .7) 100%); }
/* Ljusstråle som sveper över bilden en gång vid start, samma motiv som i "Se ditt nya tak" */
.fx-beam { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; transform: translateX(-5vw); background: #fff; box-shadow: 0 0 12px 3px rgba(25, 168, 255, .9), 0 0 40px 10px rgba(25, 168, 255, .35); opacity: 0; animation: fx-beam 2.4s cubic-bezier(.45, 0, .55, 1) .9s both; }
.fx-beam::after { content: ""; position: absolute; top: 0; bottom: 0; right: 2px; width: 160px; background: linear-gradient(270deg, rgba(25, 168, 255, .28), transparent); }
@keyframes fx-beam { 0% { transform: translateX(-5vw); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(108vw); opacity: 0; } }
/* Fint rutnät i perspektiv längst ner: lite framtid, mycket diskret */
.fx-grid { position: absolute; left: -40%; right: -40%; bottom: -10%; height: 45%; background-image: linear-gradient(rgba(25, 168, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 168, 255, .22) 1px, transparent 1px); background-size: 64px 64px; transform: perspective(380px) rotateX(64deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(0deg, #000, transparent 85%); mask-image: linear-gradient(0deg, #000, transparent 85%); opacity: .55; animation: fx-gridflow 9s linear infinite; }
@keyframes fx-gridflow { to { background-position: 0 64px, 0 0; } }
.fx-bubbles { position: absolute; inset: 0; pointer-events: none; }
.fx-bubbles i { position: absolute; bottom: -40px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .45), rgba(25, 168, 255, .12)); border: 1px solid rgba(255, 255, 255, .25); animation: fx-bubble var(--d) linear var(--w) infinite; }
@keyframes fx-bubble { 0% { transform: translateY(0) scale(.4); opacity: 0; } 10% { opacity: .7; } 60% { opacity: .35; } to { transform: translateY(-105vh) scale(1); opacity: 0; } }

.fx-inner { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 20px 120px; display: grid; gap: 28px; align-items: center;
  transform: translateY(calc(var(--p, 0) * -40px)); opacity: calc(1 - var(--p, 0) * .7); }
.fx-card { position: relative; max-width: 600px; padding: clamp(24px, 3.2vw, 40px); border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .25);
  transform: perspective(1200px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s var(--fx-out);
  animation: fx-card-in 1s var(--fx-out) .1s both; }
@keyframes fx-card-in { from { opacity: 0; transform: perspective(1200px) translate3d(-24px, 30px, -80px) rotateY(10deg) rotateX(6deg); } }
.fx-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, .14), transparent 60%); }
.fx-kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 Inter, system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .92); margin: 0 0 16px; }
.fx-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fx-blue); animation: fx-ping 2.2s var(--fx-out) infinite; }
@keyframes fx-ping { 0% { box-shadow: 0 0 0 0 rgba(25, 168, 255, .6); } 70%, to { box-shadow: 0 0 0 10px rgba(25, 168, 255, 0); } }
.fx-card h1 { margin: 0; color: #fff; font: 800 clamp(34px, 4.6vw, 60px)/1.04 Inter, system-ui, sans-serif; letter-spacing: -.035em; text-wrap: balance; text-shadow: none; }
.fx-card h1 .w { display: inline-block; vertical-align: top; }
.fx-card h1 .w > span { display: inline-block; animation: fx-word 1.15s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 40ms + 200ms); }
.fx-card h1 .hl { background: linear-gradient(135deg, #7fd0ff, #19A8FF 50%, #bfe8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes fx-word { from { transform: translate3d(0, .42em, 0); opacity: 0; } }
.fx-lead { margin: 18px 0 0; max-width: 34em; color: rgba(255, 255, 255, .88); font: 400 clamp(16px, 1.25vw, 18px)/1.65 Inter, system-ui, sans-serif; }
.fx-rise { animation: fx-up .8s var(--fx-out) both; animation-delay: calc(var(--i, 0) * 80ms + 500ms); }
@keyframes fx-up { from { opacity: 0; transform: translateY(16px); } }

.fx-ctas { display: grid; gap: 10px; margin-top: 26px; grid-template-columns: 1fr; max-width: 460px; }
.fx-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 28px; border-radius: 999px; font: 700 16px/1 Inter, system-ui, sans-serif; letter-spacing: -.01em; text-decoration: none; color: #fff; background: var(--fx-grad); box-shadow: var(--fx-glow); transition: transform .4s var(--fx-spring), box-shadow .3s; white-space: nowrap; }
.fx-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(25, 168, 255, .6); color: #fff; }
.fx-btn:active { transform: scale(.97); }
.fx-btn svg { transition: transform .35s var(--fx-spring); }
.fx-btn:hover svg { transform: translateX(4px); }
.fx-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-170%) skewX(-18deg); animation: fx-shine 5s ease-in-out 2s infinite; }
@keyframes fx-shine { 0% { transform: translateX(-170%) skewX(-18deg); } 25%, to { transform: translateX(240%) skewX(-18deg); } }
/* "Se ditt nya tak": syns hela tiden men tar inte över. Liten levande före/efter-bild. */
.fx-viz { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 16px 6px 6px; border-radius: 999px; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .4s var(--fx-spring), background .3s, border-color .3s; }
.fx-viz:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #fff; }
.fx-viz .ba { position: relative; flex: 0 0 auto; width: 62px; height: 46px; border-radius: 999px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.fx-viz .ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-viz .ba .a { animation: fx-wipe 5s cubic-bezier(.65, 0, .35, 1) infinite; }
.fx-viz .ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; box-shadow: 0 0 8px 2px rgba(25, 168, 255, .9); animation: fx-wipeline 5s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes fx-wipe { 0%, 12% { clip-path: inset(0 0 0 100%); } 45%, 70% { clip-path: inset(0 0 0 0); } 95%, to { clip-path: inset(0 0 0 100%); } }
@keyframes fx-wipeline { 0%, 12% { transform: translateX(60px); } 45%, 70% { transform: translateX(0); } 95%, to { transform: translateX(60px); } }
.fx-viz b { display: block; font: 700 15px/1.2 Inter, system-ui, sans-serif; letter-spacing: -.01em; }
.fx-viz small { display: block; font: 500 12.5px/1.3 Inter, system-ui, sans-serif; color: rgba(255, 255, 255, .75); margin-top: 2px; }
.fx-viz .go { margin-left: auto; opacity: .85; transition: transform .35s var(--fx-spring); }
.fx-viz:hover .go { transform: translateX(3px); }
.fx-viz .new { display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 999px; font: 800 9.5px/1 Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; background: #0B6CB0; color: #fff; vertical-align: 2px; }
.fx-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font: 600 14px/1.3 Inter, system-ui, sans-serif; }
.fx-links a { color: rgba(255, 255, 255, .9); text-decoration: none; display: inline-flex; gap: 7px; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .28); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.fx-links a:hover { color: #fff; border-color: #fff; }
.fx-links svg { width: 15px; height: 15px; }

/* Förtroende: små glasbrickor som flyter in */
.fx-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.fx-trust > span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; font: 600 12.5px/1 Inter, system-ui, sans-serif; color: rgba(255, 255, 255, .92); background: rgba(10, 22, 40, .35); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.fx-trust .stars { color: #FBBC04; letter-spacing: 1px; }
.fx-trust svg { width: 14px; height: 14px; color: #7fd0ff; }

/* Scroll-ledtråd */
.fx-scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .55); opacity: calc(1 - var(--p, 0) * 3); }
.fx-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: fx-scroll 1.8s var(--fx-out) infinite; }
@keyframes fx-scroll { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(14px); opacity: 0; } }

/* Mobil, surfplatta och halv skärm: videon i hela heron, texten direkt på filmen, ingen ruta */
@media (max-width: 1179px) {
  .fx-hero { align-items: end; }
  .fx-media img, .fx-media video { object-position: 50% 26%; }
  .fx-grade { background: linear-gradient(180deg, rgba(10, 22, 40, .62) 0%, rgba(10, 22, 40, 0) 17%, rgba(10, 22, 40, 0) 32%, rgba(10, 22, 40, .62) 54%, rgba(10, 22, 40, .93) 74%, #0a1628 100%); }
  .fx-grid { opacity: .3; height: 30%; }
  .fx-inner { padding: 0 22px calc(28px + env(safe-area-inset-bottom)); max-width: 700px; margin: 0; }
  .fx-card { max-width: 640px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; animation: fx-up .9s var(--fx-out) .1s both; }
  .fx-card::after { display: none; }
  .fx-card h1 { font-size: clamp(40px, 11.2vw, 74px); line-height: .98; letter-spacing: -.04em; text-shadow: none; filter: drop-shadow(0 4px 22px rgba(0, 0, 0, .35)); }
  .fx-kicker { margin-bottom: 14px; font-size: 11.5px; }
  .fx-lead { font-size: 16px; margin-top: 14px; color: rgba(255, 255, 255, .86); max-width: 30em; }
  .fx-lead .more { display: none; }
  .fx-scroll { display: none; }
  .fx-links { margin-top: 16px; gap: 8px 18px; font-size: 13.5px; }
  .fx-viz { background: rgba(10, 22, 40, .35); }
}
@media (min-width: 761px) and (max-width: 1179px) {
  .fx-inner { padding: 0 48px 56px; }
  .fx-media img, .fx-media video { object-position: 50% 32%; }
}

/* ── Sektion: Se ditt nya tak ─────────────────────────────────────────── */
.fx-viz-section { position: relative; width: 100vw; margin-left: calc(-50vw + 50%); padding: clamp(64px, 9vw, 120px) 20px; overflow: hidden; color: #fff;
  background: radial-gradient(900px 500px at 80% 0%, rgba(25, 168, 255, .25), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(0, 136, 204, .2), transparent 60%), linear-gradient(180deg, #0a1628, #10233c); }
.fx-viz-section::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(25, 168, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 168, 255, .07) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 70%); pointer-events: none; }
.fx-viz-wrap { position: relative; max-width: 1180px; margin: 0 auto; display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .fx-viz-wrap { grid-template-columns: 1fr 1.15fr; } }
.fx-viz-section .fx-kicker { color: #7fd0ff; }
.fx-viz-section h2 { margin: 0; color: #fff; font: 800 clamp(30px, 4vw, 50px)/1.06 Inter, system-ui, sans-serif; letter-spacing: -.035em; text-wrap: balance; }
.fx-viz-section h2 em { font-style: normal; background: linear-gradient(135deg, #7fd0ff, #19A8FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-viz-section p.sub { margin: 16px 0 0; color: rgba(255, 255, 255, .78); font: 400 17px/1.65 Inter, system-ui, sans-serif; max-width: 32em; }
.fx-steps { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.fx-steps li { display: flex; gap: 12px; align-items: center; font: 600 15px/1.4 Inter, system-ui, sans-serif; color: rgba(255, 255, 255, .9); }
.fx-steps li span { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(25, 168, 255, .16); border: 1px solid rgba(25, 168, 255, .35); color: #7fd0ff; font-weight: 800; font-size: 13px; }
.fx-viz-section .fx-btn { margin-top: 28px; }
.fx-viz-section .fine { margin: 12px 0 0; font: 500 13px/1.4 Inter, system-ui, sans-serif; color: rgba(255, 255, 255, .6); }

.fx-demo { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 1018 / 932; background: #0a1628; box-shadow: 0 50px 120px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); user-select: none; -webkit-user-select: none; touch-action: pan-y; transform: perspective(1400px) rotateY(var(--ry, -6deg)) rotateX(var(--rx, 2deg)); transition: transform .6s var(--fx-out); }
.fx-demo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-demo .after { clip-path: inset(0 0 0 var(--pos, 100%)); }
.fx-demo input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; z-index: 5; }
.fx-demo .line { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; transform: translateX(calc(var(--pos, 100%) - 100%)); z-index: 3; pointer-events: none; }
.fx-demo .line::before { content: ""; position: absolute; top: 0; bottom: 0; right: -1px; width: 2px; background: #fff; box-shadow: 0 0 12px 3px rgba(25, 168, 255, .9), 0 0 36px 8px rgba(25, 168, 255, .35); }
.fx-demo .knob { position: absolute; top: 50%; left: 100%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0d1726; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.fx-demo .tag { position: absolute; top: 14px; z-index: 4; font: 700 11px/1 Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #fff; padding: 7px 10px; border-radius: 999px; background: rgba(10, 22, 40, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
.fx-demo .tag.l { left: 14px; } .fx-demo .tag.r { right: 14px; }
.fx-demo .label { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 4; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; font: 700 13px/1 Inter, system-ui, sans-serif; color: #fff; padding: 9px 14px 9px 9px; border-radius: 999px; background: rgba(10, 22, 40, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .2); pointer-events: none; }
.fx-demo .label i { width: 16px; height: 16px; border-radius: 50%; background: var(--c, #222); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.fx-demo .label.flip { animation: fx-flip .6s var(--fx-spring) both; }
@keyframes fx-flip { from { opacity: 0; transform: translateX(-50%) perspective(400px) rotateX(-80deg); } }
.fx-swap { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.fx-swap button { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; font: 600 13.5px/1 Inter, system-ui, sans-serif; cursor: pointer; transition: transform .35s var(--fx-spring), background .2s, border-color .2s; }
.fx-swap button:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .12); }
.fx-swap button[aria-pressed="true"] { border-color: var(--fx-blue); background: rgba(25, 168, 255, .18); box-shadow: 0 0 0 3px rgba(25, 168, 255, .18); }
.fx-swap button i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.fx-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--fx-out), transform .9s var(--fx-out); transition-delay: calc(var(--i, 0) * 90ms); }
.fx-reveal.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fx-hero *, .fx-hero *::before, .fx-hero *::after, .fx-viz-section *, .fx-viz-section *::before, .fx-viz-section *::after { animation: none !important; transition: none !important; }
  .fx-media video, .fx-bubbles, .fx-beam { display: none; }
  .fx-reveal { opacity: 1; transform: none; }
}

/* ── Videon: helskärm på mobil, ett skarpt 3D-kort på dator ─────────────── */
.fx-phone { display: none; }
.fx-story { display: flex; gap: 5px; }
.fx-story i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.fx-story i b { display: block; height: 100%; width: 0; background: #fff; box-shadow: 0 0 8px rgba(25, 168, 255, .9); }
.fx-story i.done b { width: 100%; }
.fx-cap { display: inline-flex; align-items: center; gap: 9px; margin-top: 10px; padding: 8px 12px 8px 8px; border-radius: 999px; font: 700 13px/1 Inter, system-ui, sans-serif; color: #fff; background: rgba(10, 22, 40, .5); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fx-cap .n { display: grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--fx-grad); font-size: 11px; letter-spacing: .02em; }
.fx-cap .t { display: inline-block; }
.fx-cap.swap .t { animation: fx-capin .55s var(--fx-spring) both; }
@keyframes fx-capin { from { opacity: 0; transform: translateY(8px) rotateX(-60deg); } }
/* Stora skärmar: skarp video i ett 3D-kort, suddig kopia bakom */
@media (min-width: 1180px) {
  .fx-media img, .fx-media video { filter: blur(26px) saturate(1.25) brightness(.62); transform: scale(1.15); }
  .fx-media img { animation: none; }
  .fx-grade { background: radial-gradient(ellipse 60% 80% at 75% 50%, rgba(25, 168, 255, .16), transparent 60%), linear-gradient(90deg, rgba(10, 22, 40, .7) 0%, rgba(10, 22, 40, .35) 55%, rgba(10, 22, 40, .45) 100%), linear-gradient(180deg, rgba(10, 22, 40, .5) 0%, transparent 25%, transparent 70%, rgba(10, 22, 40, .75) 100%); }
  .fx-inner { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 90px); padding-top: 40px; padding-bottom: 90px; }
  .fx-phone { display: block; position: relative; height: min(74vh, 700px); aspect-ratio: 9 / 16; margin-right: clamp(0px, 3vw, 40px);
    transform: perspective(1600px) rotateY(var(--pry, -12deg)) rotateX(var(--prx, 4deg)); transition: transform .8s var(--fx-out); transform-style: preserve-3d;
    animation: fx-phone-in 1.3s var(--fx-out) .25s both; }
  @keyframes fx-phone-in { from { opacity: 0; transform: perspective(1600px) translate3d(60px, 30px, -160px) rotateY(-30deg) rotateX(8deg); } }
  .fx-phone .screen { position: absolute; inset: 0; border-radius: 30px; overflow: hidden; background: #0a1628;
    box-shadow: 0 60px 120px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .18), 0 0 60px rgba(25, 168, 255, .25); }
  .fx-phone .screen img, .fx-phone .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .fx-phone .screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, transparent 30%), linear-gradient(180deg, rgba(10, 22, 40, .45) 0%, transparent 22%, transparent 72%, rgba(10, 22, 40, .6) 100%); }
  .fx-phone .hud { position: absolute; z-index: 2; left: 16px; right: 16px; top: 16px; }
  .fx-phone .fx-cap { position: absolute; z-index: 2; left: 16px; bottom: 16px; margin: 0; }
  .fx-phone .ring { position: absolute; inset: -14px; border-radius: 42px; border: 1px solid rgba(25, 168, 255, .35); pointer-events: none; animation: fx-ringpulse 4s ease-in-out infinite; }
  @keyframes fx-ringpulse { 50% { inset: -22px; border-color: rgba(25, 168, 255, .12); } }
  /* Brickor som svävar runt videon */
  .fx-float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 14px; border-radius: 16px; font: 700 13px/1.15 Inter, system-ui, sans-serif; color: #fff;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
    transform: translateZ(60px); animation: fx-float-in .9s var(--fx-spring) both, fx-bob 6s ease-in-out infinite; }
  .fx-float small { display: block; font-weight: 500; color: rgba(255, 255, 255, .72); font-size: 11.5px; margin-top: 3px; }
  .fx-float .stars { color: #FBBC04; letter-spacing: 1px; }
  .fx-float .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--fx-grad); box-shadow: var(--fx-glow); flex: 0 0 auto; }
  .fx-float .ic svg { width: 18px; height: 18px; }
  .fx-float.f1 { left: -46%; top: 14%; animation-delay: 1.1s, 1.1s; }
  .fx-float.f2 { right: -30%; top: 46%; animation-delay: 1.3s, 2.2s; }
  .fx-float.f3 { left: -38%; bottom: 12%; animation-delay: 1.5s, 3.1s; }
  @keyframes fx-float-in { from { opacity: 0; transform: translateZ(60px) translateY(16px) scale(.85); } }
  @keyframes fx-bob { 50% { translate: 0 -8px; } }
  .fx-trust { display: none; }
}
@media (min-width: 1180px) and (max-width: 1340px) {
  .fx-float.f2 { display: none; }
  .fx-float.f1 { left: -26%; } .fx-float.f3 { left: -22%; }
}
@media (prefers-reduced-motion: reduce) { .fx-phone video { display: none; } }
