:root {
  --cream: #f1ece1; --cream-2: #e8e2d3; --card: #faf6ed; --card-2: #f3eee2;
  --ink: #16140f; --ink-2: #2a261d; --muted: #7d7566; --line: rgba(22, 20, 15, 0.10);
  --peach: #e8b69a; --blue: #a8c0d6; --yellow: #ecd687; --mint: #b8d6b6;
  --electric: #6b3df5; --electric-d: #5a2fd9;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --sans: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }

/* ---------- Delade delar (även undersidorna) ---------- */
nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand .mark { filter: drop-shadow(0 3px 9px rgba(22, 20, 15, 0.14)); border-radius: 9px; }
.wordmark { font-weight: 900; font-size: 22px; letter-spacing: -0.03em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 600 15px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s, background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--electric); color: var(--electric); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--electric); border-color: var(--electric); color: #fff; box-shadow: 0 8px 24px rgba(107, 61, 245, .28); }
.btn.primary:hover { background: var(--electric-d); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(107, 61, 245, .34); }
.btn.big { padding: 15px 26px; font-size: 17px; border-radius: 14px; }
.btn.small { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn.dark:hover { background: var(--electric); border-color: var(--electric); color: #fff; }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
h2 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 900; margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 17px; max-width: 600px; margin-bottom: 28px; }
section { padding: 72px 0; }
section.wrap { padding-top: 72px; padding-bottom: 72px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 2px 12px rgba(22,20,15,.04); }
.card h3 { font-size: 18px; margin: 8px 0 6px; letter-spacing: -0.02em; }
.card p { color: var(--ink-2); font-size: 14.5px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta .fine { font-size: 13px; color: var(--muted); width: 100%; margin-top: 4px; }
.key {
  font-family: var(--mono); font-size: 14px; word-break: break-all; background: var(--cream-2);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; user-select: all;
}
.form { display: flex; gap: 10px; flex-wrap: wrap; }
.form input { flex: 1; min-width: 220px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font: 15px var(--sans); background: #fff; }
.form input:focus { outline: none; border-color: var(--electric); }
.narrow { max-width: 640px; }
footer { padding: 36px 0 48px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 24px; }
footer a { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- Startsidan ---------- */
.home { background: var(--cream); }
/* Himmel: fyra mjuka pastellfläckar som driver långsamt, plus korn */
.sky { position: absolute; inset: 0 0 auto 0; height: 980px; overflow: hidden; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.sky i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 26s ease-in-out infinite alternate; }
.sky .b1 { width: 520px; height: 520px; background: var(--blue); left: -120px; top: -140px; }
.sky .b2 { width: 460px; height: 460px; background: var(--yellow); right: -100px; top: 40px; animation-duration: 32s; opacity: .5; }
.sky .b3 { width: 420px; height: 420px; background: var(--peach); left: 28%; top: 260px; animation-duration: 29s; opacity: .42; }
.sky .b4 { width: 380px; height: 380px; background: #c9b8fb; right: 22%; top: 90px; animation-duration: 36s; opacity: .45; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.sky::after { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

.topnav { display: block; padding: 0; position: sticky; top: 0; z-index: 20; transition: background .25s, box-shadow .25s; }
.topnav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topnav.stuck { background: rgba(241, 236, 225, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.topnav .links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.topnav .links a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.topnav .links a:not(.btn):hover { color: var(--electric); }

.hero { padding-top: 56px; padding-bottom: 40px; text-align: center; }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 { font-size: clamp(42px, 7.4vw, 84px); line-height: .98; letter-spacing: -0.045em; font-weight: 900; max-width: 14ch; margin: 0 auto; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--electric); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); margin: 24px auto 30px; max-width: 540px; text-wrap: balance; }
.hero .cta { justify-content: center; }
.hero .fine { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Scenen */
.scene { margin: 64px auto 0; display: grid; grid-template-columns: 150px 56px minmax(0, 400px) 56px 190px; align-items: center; justify-content: center; text-align: left; position: relative; }
.phone { width: 150px; border-radius: 30px; padding: 7px; background: var(--ink); box-shadow: 0 30px 60px rgba(22, 20, 15, .25), inset 0 0 0 1.5px rgba(255,255,255,.12); transform: rotate(-4deg); }
.phone-screen { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 9 / 18.5; background: #222; }
.cam-art { width: 100%; height: 100%; display: block; }
.rec { position: absolute; top: 10px; left: 10px; font: 600 9.5px var(--mono); letter-spacing: .12em; color: #fff; background: rgba(22,20,15,.55); border-radius: 99px; padding: 3px 8px; display: flex; gap: 5px; align-items: center; opacity: 0; transition: opacity .4s; }
.rec i { width: 6px; height: 6px; border-radius: 50%; background: #ff5a4f; animation: pulse 1.4s ease-in-out infinite; }
.scene[data-stage="3"] .rec { opacity: 1; }
@keyframes pulse { 50% { opacity: .3; } }
.wire { width: 100%; height: 10px; overflow: visible; }
.wire line { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 3 6; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .45; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -9; } }
.scene[data-stage="0"] .w1 line, .scene[data-stage="0"] .w2 line, .scene:not([data-stage="3"]) .w2 line { animation-play-state: paused; opacity: .2; }
.scene[data-stage="1"] .w1 line, .scene[data-stage="2"] .w1 line, .scene[data-stage="3"] .w1 line { stroke: var(--electric); opacity: .9; animation-play-state: running; }
.scene[data-stage="3"] .w2 line { stroke: var(--electric); opacity: .9; animation-play-state: running; }

/* Dockcams fönster: samma gränssnitt som i appen */
.win { border-radius: 14px; background: var(--cream); border: 1px solid rgba(22,20,15,.16); box-shadow: 0 40px 80px rgba(22, 20, 15, .22), 0 6px 18px rgba(22,20,15,.08); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f8efe9; font-size: 12px; color: var(--ink-2); }
.win-bar b { margin-left: auto; font-weight: 400; letter-spacing: .04em; color: var(--muted); }
.win-body { padding: 14px 14px 16px; }
.win-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.win-brand { display: flex; align-items: center; gap: 9px; }
.win-brand img { border-radius: 8px; }
.win-brand strong { display: block; font-size: 17px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.win-brand small { display: block; font: 500 7.5px var(--mono); letter-spacing: .2em; color: var(--muted); margin-top: 4px; }
.win-pill { font: 600 10px var(--mono); padding: 5px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--muted); transition: all .3s; }
.scene[data-stage="3"] .win-pill { background: var(--electric); border-color: var(--electric); color: #fff; }
.win-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.win-title { font: 500 9px var(--mono); letter-spacing: .22em; color: var(--muted); margin-bottom: 11px; }
.win-steps { list-style: none; padding: 0; display: grid; gap: 10px; }
.win-steps li { display: flex; gap: 10px; align-items: flex-start; }
.win-steps .n { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 10px var(--mono); background: var(--cream-2); color: var(--muted); border: 1px solid var(--line); transition: all .35s; }
.win-steps b { font-size: 12.5px; line-height: 20px; font-weight: 600; color: var(--muted); display: block; transition: color .3s; }
.win-steps li.current .n { background: var(--electric); border-color: var(--electric); color: #fff; }
.win-steps li.current b { color: var(--ink); font-weight: 800; }
.win-steps li.done .n { background: var(--mint); border-color: transparent; color: var(--ink); }
.win-steps li.done b { color: var(--ink-2); }
.qr-wrap { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .5s ease, opacity .35s, margin .5s; }
.s1.current .qr-wrap { max-height: 130px; opacity: 1; margin-top: 8px; }
.qr { width: 108px; height: 108px; background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 3px 10px rgba(22,20,15,.08); display: block; }

/* Mötesappens kameraval */
.meet { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: 0 24px 50px rgba(22,20,15,.16); transform: rotate(3deg); }
.meet-head { font: 600 9.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.meet-opt { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 7px 9px; border-radius: 8px; color: var(--ink-2); transition: all .3s; }
.meet-opt i { font-style: normal; font-weight: 800; opacity: 0; }
.meet-opt.on { background: var(--card-2); font-weight: 700; }
.scene[data-stage="3"] .meet-opt.on { background: rgba(107, 61, 245, .1); color: var(--electric); }
.scene[data-stage="3"] .meet-opt.on i { opacity: 1; }
.meet-preview { margin-top: 10px; height: 76px; border-radius: 9px; overflow: hidden; background: var(--cream-2); position: relative; }
.meet-preview svg { width: 100%; height: 100%; display: block; opacity: .15; filter: grayscale(1); transition: opacity .6s, filter .6s; }
.scene[data-stage="3"] .meet-preview svg { opacity: 1; filter: none; }

/* Påstående */
section.statement { text-align: center; padding-top: 100px; padding-bottom: 20px; }
.statement p { font-size: clamp(24px, 3.8vw, 38px); line-height: 1.22; letter-spacing: -0.03em; font-weight: 700; max-width: 22em; margin: 0 auto; text-wrap: balance; }
.statement .quiet { font: 500 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--electric); margin-top: 26px; }

/* Steg */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.step { padding: 28px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.big-n { display: block; font: 900 64px/1 var(--sans); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--electric); margin-bottom: 18px; }
.step h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Rader (Dagg-stil: etikett + rubrik + text) */
.rows { margin-top: 36px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.tag { font: 500 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--electric); }
.row h3 { font-size: 24px; letter-spacing: -.025em; margin-bottom: 6px; }
.row p { color: var(--ink-2); font-size: 16px; max-width: 560px; }

/* Integritet */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.aside { font: 500 13px var(--mono); color: var(--ink-2); padding-left: 14px; border-left: 2px solid var(--electric); max-width: 420px; }
.route { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 18px; box-shadow: 0 18px 50px rgba(22,20,15,.07); }
.route svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.route text { font-size: 13px; fill: var(--ink); font-weight: 700; }
.route .s, .route .lbl { font: 500 10.5px var(--mono); fill: var(--muted); letter-spacing: .04em; }
.route .cloud rect { fill: var(--cream-2); stroke: var(--line); }
.route .dev rect { fill: #fff; stroke: rgba(22,20,15,.18); stroke-width: 1.5; }
.route .dash { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 6; opacity: .6; }
.route .video { fill: none; stroke: var(--electric); stroke-width: 4; stroke-linecap: round; }
.route .pulse { fill: var(--electric); }

/* Pris: mörk sektion */
.dark-wrap { background: var(--ink); color: var(--cream); border-radius: 36px 36px 0 0; margin-top: 40px; position: relative; overflow: hidden; }
.dark-wrap::before { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -200px; border-radius: 50%; background: var(--electric); opacity: .35; filter: blur(110px); }
.dark-wrap .eyebrow { color: #a8a090; }
.dark-wrap .sub { color: #b9b1a1; }
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; position: relative; }
.req-h { font-size: 16px; margin: 6px 0 12px; }
.req { list-style: none; padding: 0; display: grid; gap: 11px; font-size: 15px; color: #d7cfbf; }
.req li { display: flex; gap: 12px; }
.req li::before { content: "→"; color: #b49bff; font-weight: 700; }
.price-card { background: var(--cream); color: var(--ink); border-radius: 26px; padding: 30px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.price-card .eyebrow { color: var(--muted); }
.price { font-size: 64px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.price small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 8px; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 9px; font-size: 15px; }
.price-card li::before { content: "✓"; color: var(--electric); font-weight: 800; margin-right: 10px; }
.fineprint { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.err { font-size: 13px; color: #b5533b; margin-top: 8px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--electric); }
.faq p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; max-width: 720px; }
.faq h2 { margin-bottom: 28px; }

/* Avslut */
section.final { text-align: center; padding: 96px 24px 88px; }
.final .sub { margin: 0 auto 26px; }
.big-mark { margin: 0 auto 26px; border-radius: 18px; box-shadow: 0 18px 40px rgba(22,20,15,.18); }
.site-foot { margin-top: 0; }

/* Skrollreveal (bara med JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .scene { grid-template-columns: 120px 28px minmax(0, 340px) 0 0; }
  .scene .w2, .scene .meet { display: none; }
  .phone { width: 120px; }
}
@media (max-width: 820px) {
  .topnav .links a:not(.btn) { display: none; }
  .trio { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .split, .pricing { grid-template-columns: 1fr; gap: 32px; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  section, section.wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 32px; }
}
@media (max-width: 600px) {
  .scene { grid-template-columns: minmax(0, 1fr); margin-top: 44px; }
  .scene .phone, .scene .w1 { display: none; }
  .win { max-width: 400px; margin: 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sky i, .wire line, .rec i { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
