:root {
  --bg: #0f1115; --bg2: #161a21; --card: #1b2029; --line: #2a303b;
  --text: #e8ebf0; --muted: #9aa3b2; --accent: #4d8dff; --accent-2: #2f6fe0; --ok: #46c28a;
  --radius: 14px; --maxw: 1040px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbfbfd; --bg2: #f1f3f7; --card: #ffffff; --line: #dde1e8;
    --text: #151922; --muted: #5a6475; --accent: #2f6fe0; --accent-2: #2559b8; --ok: #1d8a5b;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--text); }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-size: 16px; }
.btn:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg2); }
.btn.small { padding: 8px 16px; font-size: 15px; }
.hero { padding: 84px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 auto 18px; max-width: 760px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { color: var(--muted); font-size: 14px; margin-top: 16px; }
.demo { max-width: 640px; margin: 48px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-align: left; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.demo .bar { display: flex; gap: 7px; padding: 12px 14px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.demo .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.demo .page { padding: 26px 28px 30px; min-height: 150px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.55; }
.demo .page .t { white-space: pre-wrap; }
.demo .caret { display: inline-block; width: 2px; height: 1.15em; background: var(--accent); vertical-align: text-bottom; margin-left: 1px; animation: blink 1s steps(2) infinite; }
.demo .cap { padding: 10px 28px 16px; font: 14px/1.4 system-ui, sans-serif; color: var(--muted); }
@keyframes blink { 50% { opacity: 0; } }
section { padding: 64px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; margin: 0 0 12px; text-align: center; }
p.sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 38px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px 24px; }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.price { max-width: 460px; margin: 0 auto; text-align: center; }
.price .amount { font-size: 54px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0; }
.price ul { list-style: none; padding: 0; margin: 18px 0 24px; text-align: left; display: inline-block; }
.price li { padding-left: 28px; position: relative; margin: 8px 0; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.dl { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 720px; margin: 0 auto; }
.dl .card { text-align: center; }
.dl .card .btn { margin-top: 14px; }
.note { font-size: 14px; color: var(--muted); }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 10px auto; max-width: 760px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.legal h1 { font-size: 34px; letter-spacing: -0.02em; }
.legal h2 { text-align: left; font-size: 22px; margin-top: 34px; }
.legal .draft { background: #3a2f12; color: #ffd98a; border: 1px solid #6b5520; border-radius: 10px; padding: 12px 16px; font-size: 15px; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .legal .draft { background: #fff5d6; color: #6b4e00; border-color: #e9cf85; } }
footer { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { gap: 18px; flex-wrap: wrap; }
@media (max-width: 720px) { nav .hide-sm { display: none; } .hero { padding-top: 56px; } .demo .page { font-size: 18px; padding: 20px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .demo .caret { animation: none; } }

/* ------------------------------------------------------------------ scroll-scenen */
.scene-track { position: relative; }
.scene-sticky { position: relative; height: calc(100vh - 62px); min-height: 420px; padding: 12px 0 24px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; overflow: hidden; }
.stage { position: relative; overflow: hidden; border-radius: 22px; background: radial-gradient(120% 120% at 50% 0%, var(--bg2), var(--bg)); }
.laptop { position: absolute; left: 0; top: 0; width: 1328px; height: 790px; transform-origin: 0 0; } /* ingen will-change: den gjorde att scenen ritades i en storlek och sedan förstorades som en bild (suddig) */
.lap-bezel { position: absolute; left: 0; top: 0; width: 1328px; height: 768px; background: #0b0c0f; border-radius: 26px;
  box-shadow: 0 0 0 2px #23262d inset, 0 40px 80px rgba(0,0,0,.35); }
.lap-base { position: absolute; left: -40px; top: 768px; width: 1408px; height: 22px; background: linear-gradient(#2b2f37, #14161a);
  border-radius: 0 0 26px 26px; }
.lap-screen { position: absolute; left: 24px; top: 24px; width: 1280px; height: 720px; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #2b3a67 0%, #5b4a8a 45%, #b0638a 100%); }
.win { position: absolute; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); }
.win .tb { display: flex; gap: 7px; padding: 10px 12px; }
.win .tb i { width: 11px; height: 11px; border-radius: 50%; display: block; background: rgba(128,128,128,.55); }
/* programmets fönster: förenklad kopia av det riktiga huvudfönstret (mörkt tema, samma färger som programmet) */
.app-win { left: 48px; top: 74px; width: 430px; height: 572px; background: #181b22; color: #e8ebf0; font-size: 10px; line-height: 1.35;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif; display: flex; flex-direction: column; }
.app-win .tb { background: #13161c; align-items: center; }
.app-win .tb-t { margin-left: 6px; font-size: 9px; color: #9aa3b2; }
.app-in { padding: 9px 14px 8px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ap-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ap-top b { font-size: 14px; letter-spacing: -0.01em; margin-right: auto; }
.ap-logo { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; background: #2563d9; color: #fff; font-weight: 800; font-size: 11.5px; }
.ap-seg { display: flex; padding: 2px; background: #1f232b; border-radius: 7px; }
.ap-seg i { font-style: normal; font-size: 8px; font-weight: 700; padding: 3px 7px; border-radius: 5px; color: #9aa3b2; }
.ap-seg i.on { background: #323947; color: #e8ebf0; }
.ap-ico { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; background: #272d37; font-size: 9px; font-weight: 700; }
.ap-card { background: #20252e; border: 1px solid #333a46; border-radius: 10px; }
.ap-ed { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 8px 10px 6px; }
.ap-edh { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ap-edh b { font-size: 10px; }
.ap-badge { font-size: 7px; font-weight: 700; padding: 2px 7px; border-radius: 7px; background: #263552; color: #a9c6ff; white-space: nowrap; }
.ap-ghosts { margin-left: auto; display: flex; gap: 9px; }
.ap-ghosts i { font-style: normal; font-size: 8px; color: #c9cfd9; }
.ap-ghosts i.acc { color: #8fb6ff; font-weight: 600; }
.a-box { background: #1a1e25; border: 1px solid #333a46; border-radius: 7px; padding: 8px 10px; flex: 1; font-size: 10.5px; line-height: 1.5; overflow: hidden; }
.a-box .h { font-size: 14px; font-weight: 700; display: block; margin-bottom: 3px; }
.a-box .li { display: block; padding-left: 14px; position: relative; }
.a-box .li::before { content: "•"; position: absolute; left: 3px; }
.ap-count { font-size: 7.5px; color: #9aa3b2; margin-top: 5px; }
.ap-set { margin-top: 8px; padding: 8px 10px 9px; }
.ap-row, .ap-row2 { display: flex; align-items: center; gap: 8px; }
.ap-row b, .ap-row2 b { font-size: 10px; }
.ap-slider { flex: 1; height: 4px; border-radius: 2px; background: #333a46; position: relative; }
.ap-slider::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 13%; background: #2563d9; border-radius: 2px; }
.ap-slider::after { content: ""; position: absolute; left: 13%; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #2563d9; margin-left: -6px; }
.ap-val { font-size: 8.5px; font-weight: 700; padding: 3px 7px; border: 1px solid #333a46; border-radius: 6px; background: #1a1e25; white-space: nowrap; }
.ap-hint { font-size: 7px; color: #9aa3b2; margin: 4px 0 8px; }
.ap-muted { font-size: 7.5px; color: #9aa3b2; }
.ap-more { margin-left: auto; font-size: 8px; font-weight: 600; color: #8fb6ff; }
.ap-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.ap-pills span { font-size: 7.5px; font-weight: 700; padding: 4px 7px; border-radius: 8px; background: #272d37; color: #9aa3b2; white-space: nowrap; }
.ap-pills span.on { background: #263552; color: #a9c6ff; }
.ap-start { margin-top: 9px; }
.ap-start .go { height: 37px; display: grid; place-items: center; border-radius: 9px; background: #2563d9; color: #fff; font-size: 11px; font-weight: 700;
  white-space: pre; transition: background .2s, box-shadow .2s; }
.ap-start .go.pressed { background: #1d52b8; box-shadow: 0 0 0 3px rgba(37,99,217,.45); }
.ap-keys { text-align: center; font-size: 7.5px; color: #9aa3b2; margin-top: 4px; white-space: pre; }
.ap-progcard { margin-top: 9px; padding: 9px 10px; background: #20252e; border: 1px solid #333a46; border-radius: 10px; display: none; }
.ap-progrow { display: flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ap-prog { flex: 1; height: 6px; background: #333a46; border-radius: 3px; overflow: hidden; }
.ap-prog i { display: block; height: 100%; width: 0; background: #2563d9; }
.ap-pbtns { display: flex; gap: 6px; margin-top: 8px; }
.ap-pbtns i { flex: 1; font-style: normal; text-align: center; padding: 6px 0; border-radius: 7px; background: #272d37; font-size: 8.5px; font-weight: 700; white-space: pre; }
.ap-pbtns i.stop { background: #331b1e; color: #ff9a9e; border: 1px solid #6b2a2e; }
.a-status { color: #9aa3b2; font-size: 7.5px; text-align: center; margin-top: auto; padding-top: 6px; min-height: 18px; }
/* dokumentfönstret: neutralt, inte en kopia av något program */
.doc-win { left: 520px; top: 54px; width: 712px; height: 640px; background: #e9ebee; display: flex; flex-direction: column; }
.doc-win .tb { background: #dfe2e6; }
.doc-tools { display: flex; gap: 8px; padding: 8px 14px; background: #eceef1; border-bottom: 1px solid #d3d7dc; }
.doc-tools i { display: block; height: 14px; border-radius: 4px; background: #cdd2d9; }
.doc-page { background: #fff; color: #1d2128; margin: 22px auto 0; width: 600px; flex: 1; padding: 46px 54px; border-radius: 3px 3px 0 0;
  box-shadow: 0 1px 6px rgba(0,0,0,.18); font: 19px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; overflow: hidden; }
.doc-page .d-h { font-size: 34px; font-weight: 700; margin: 0 0 14px; line-height: 1.2; }
.doc-page p { margin: 0 0 14px; }
.doc-page .d-li { padding-left: 26px; position: relative; margin: 0 0 6px; }
.doc-page .d-li::before { content: "•"; position: absolute; left: 6px; }
.doc-page .caret { display: inline-block; width: 2px; height: 1.1em; background: #3d7fd6; vertical-align: text-bottom; margin-left: 1px; animation: blink 1s steps(2) infinite; }
.scene-caps { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0 16px; }
.scene-caps span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--muted); font-size: 14px; transition: all .25s; }
.scene-caps span.on { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.scene-note { text-align: center; color: var(--muted); font-size: 13px; margin: 0; padding: 0 16px; }
.madefor { max-width: 760px; margin: 0 auto; text-align: center; }
.madefor h2 { margin-bottom: 10px; }
.madefor p { color: var(--muted); margin: 0 0 8px; }
footer .tm { flex-basis: 100%; font-size: 13px; opacity: .85; margin: 0; }
.static-scene .scene-track { height: auto; }
.static-scene .scene-sticky { position: static; height: auto; padding: 8px 0 24px; }
@media (max-width: 720px) { .scene-caps span { font-size: 12.5px; padding: 5px 10px; } }

.replay { visibility: hidden; margin: 0 auto; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 14px; cursor: pointer; }
.replay:hover { background: var(--bg2); }

/* "Allt som ingår": två listor, det du ställer in och det som sköts automatiskt */
.incl { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.incl .card > p { margin-bottom: 4px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { padding-left: 28px; position: relative; margin: 10px 0; font-size: 16px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* etiketten i scenens dokument som säger vad programmet gör just nu */
.doc-label { position: absolute; left: 50%; bottom: 56px; padding: 10px 20px; border-radius: 999px; background: #2563d9; color: #fff;
  font: 600 22px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; white-space: nowrap; box-shadow: 0 8px 22px rgba(37,99,217,.35);
  opacity: 0; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.doc-label.on { opacity: 1; transform: translate(-50%, 0); }

/* skrivfel som lämnas kvar: röd vågig linje som rättstavningen i ett dokument */
.typo-mark { text-decoration: underline wavy #e5484d; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-skip-ink: none; }

/* vanliga frågor: en ruta med tunna linjer mellan frågorna, + blir x när svaret är öppet */
.faq { max-width: 780px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 28px; }
.faq details { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: 0; max-width: none; }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0;
  font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; transition: transform .2s;
  background: linear-gradient(var(--muted), var(--muted)) center / 14px 2px no-repeat, linear-gradient(var(--muted), var(--muted)) center / 2px 14px no-repeat; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: -6px 0 22px; color: var(--muted); line-height: 1.65; max-width: 680px; }
@media (max-width: 720px) { .faq { padding: 2px 18px; } .faq summary { font-size: 16px; padding: 17px 0; } }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* bilden av Skrivinställningar bredvid listorna */
.incl { display: grid; gap: 28px; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: start; }
.incl-lists { display: grid; gap: 18px; }
.shot { margin: 0; position: sticky; top: 86px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
@media (max-width: 860px) {
  .incl { grid-template-columns: minmax(0, 1fr); }
  .shot { position: static; max-width: 380px; margin: 0 auto; order: 2; }     /* på mobil: listorna först, bilden efter */
}

/* systemkrav, version och omdömen */
.req { list-style: none; padding: 0; margin: 4px 0 18px; color: var(--muted); font-size: 15px; }
.req li { margin: 4px 0; }
.version { text-align: center; margin: 16px 0 0; }
.reviews { max-width: 900px; margin: 0 auto 32px; }
.reviews h3 { text-align: center; margin: 0 0 16px; }
.review { margin: 0; }
.review blockquote { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.review figcaption { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ mobil: scenen utan datorram (ett fönster i taget) */
@media (max-width: 719px) {
  .scene-sticky { height: auto; min-height: 0; padding: 4px 0 20px; justify-content: flex-start; gap: 14px; }
  .stage { border-radius: 18px; border: 1px solid var(--line); }
  .lap-bezel, .lap-base { display: none; }
  .lap-screen { background: none; border-radius: 0; overflow: visible; height: 1100px; }
  .doc-win { height: 960px; }
  .win { transition: opacity .45s ease; }
  /* programfönstret: smalare och med större text, så att det går att läsa på en telefon */
  .app-win { width: 340px; height: 560px; font-size: 11px; }
  .ap-top b { font-size: 15px; } .ap-seg i { font-size: 9px; } .ap-ico { font-size: 10px; }
  .ap-edh b { font-size: 11.5px; } .ap-badge { font-size: 8.5px; } .ap-ghosts i { font-size: 9.5px; }
  .a-box { font-size: 12px; } .a-box .h { font-size: 15.5px; } .ap-count { font-size: 9px; }
  .ap-row b, .ap-row2 b { font-size: 11.5px; } .ap-val { font-size: 10px; } .ap-hint, .ap-muted, .ap-more { font-size: 9.5px; }
  .ap-pills span { font-size: 9.5px; padding: 5px 8px; } .ap-start .go { font-size: 13px; height: 42px; }
  .ap-keys, .a-status { font-size: 9.5px; } .ap-progrow { font-size: 10.5px; } .ap-pbtns i { font-size: 10px; }
  /* dokumentet: större text, så att den inte blir liten när fönstret skalas ner */
  .doc-page { font-size: 27px; } .doc-page .d-h { font-size: 46px; } .doc-page .d-li { padding-left: 34px; }
  .doc-label { font-size: 28px; bottom: 70px; padding: 12px 24px; }
  .hero { padding: 48px 0 28px; }
  .scene-note { font-size: 12.5px; }
}

/* ikoner i programfönstret (som i programmet sedan 4.36): spela, paus och stopp ritas, inte skrivs som tecken */
.ap-start .go { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ap-start .go::before { content: ""; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; border-radius: 1px; }
.ap-pbtns i { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ap-pbtns i::before { content: ""; width: 8px; height: 9px; background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px 8px); }
.ap-pbtns i.stop::before { width: 8px; height: 8px; background: currentColor; border-radius: 2px; }
.ap-ico svg { display: block; }

/* ------------------------------------------------------------------ "Så ser det ut": bild och kort text i omväxlande rader */
.shots { padding: 72px 0 24px; }
.shots .sub { margin-bottom: 8px; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; margin: 84px 0; }
.srow:nth-of-type(even) .sfig { order: 2; }
.sfig { margin: 0; position: relative; justify-self: center; width: 100%; max-width: 500px; }
.sfig::before { content: ""; position: absolute; inset: 8% -6%; z-index: 0; border-radius: 40px; filter: blur(60px); opacity: .55;
  background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); }
.sfig img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.40); }
.stext { max-width: 440px; }
.stext .kick { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.stext h3 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.stext p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
@media (max-width: 860px) {
  .shots { padding-top: 48px; }
  .srow { grid-template-columns: minmax(0, 1fr); gap: 26px; margin: 56px 0; }
  .srow:nth-of-type(even) .sfig { order: 0; }
  .sfig { max-width: 420px; }
  .stext { max-width: none; }
  .stext p { font-size: 17px; }
}

/* ------------------------------------------------------------------ scenen: pekaren och Skrivinställningar som öppnas */
.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 26px; margin: -2px 0 0 -2px; pointer-events: none; opacity: 0; z-index: 30; transform-origin: 0 0;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
.cursor.on { opacity: 1; }
.cursor .cur-in { position: relative; width: 100%; height: 100%; transform-origin: 2px 2px; }   /* motskalan sitter här, inte på .cursor (se scene.js cursorScale) */
.cursor .cur-in::after { content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(110,165,255,.95); opacity: 0; }
.cursor.click .cur-in::after { animation: clk .55s ease-out; }
@keyframes clk { from { opacity: 1; transform: scale(.35); } to { opacity: 0; transform: scale(1.8); } }
.a-box.flash { animation: pastefl .7s ease-out; }
@keyframes pastefl { from { background: #243a63; } to { background: #1a1e25; } }
.ap-pills span.pop { animation: pillpop .6s ease-out; }
@keyframes pillpop { 0% { transform: scale(.85); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
.set-win { left: 48px; top: 74px; width: 430px; height: 572px; background: #181b22; color: #e8ebf0; font-size: 10px; line-height: 1.35; z-index: 5;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif; display: flex; flex-direction: column; opacity: 0; pointer-events: none;
  transform: scale(.96); transition: opacity .3s ease, transform .3s ease; }
.set-win.open { opacity: 1; transform: none; }
.set-win .tb { background: #13161c; align-items: center; }
.set-win .tb-t { margin-left: 6px; font-size: 9px; color: #9aa3b2; }
.sd-in { padding: 8px 14px 10px; flex: 1; display: flex; flex-direction: column; gap: 5px; min-height: 0; }
.sd-h { text-align: center; font-size: 15px; font-weight: 700; margin-top: 2px; }
.sd-sub { text-align: center; color: #9aa3b2; font-size: 8px; margin-bottom: 2px; }
.sd-lab { font-size: 9.5px; font-weight: 700; margin-top: 3px; }
.sd-seg, .sd-seg2 { display: flex; background: #2a2f3a; border-radius: 6px; padding: 0; overflow: hidden; }
.sd-seg i, .sd-seg2 i { flex: 1; white-space: nowrap; font-style: normal; text-align: center; padding: 6px 0; font-size: 9.5px; color: #aeb6c4; transition: background .25s, color .25s; }
.sd-seg i.on, .sd-seg2 i.on { background: #2563d9; color: #fff; font-weight: 600; }
.sd-card { padding: 7px 10px; }
.sd-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.sd-row + .sd-row { border-top: 1px solid #2a303b; }
.sd-chip { flex: none; width: 24px; height: 24px; border-radius: 7px; background: #263552; color: #a9c6ff; display: grid; place-items: center; }
.sd-chip svg { width: 13px; height: 13px; }
.sd-tx { flex: 1; min-width: 0; }
.sd-tx b { display: block; font-size: 10.5px; }
.sd-tx small { display: block; color: #9aa3b2; font-size: 7.5px; }
.sd-sw { position: relative; flex: none; width: 28px; height: 15px; border-radius: 8px; background: #3a4150; transition: background .25s; }
.sd-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #e8ebf0; transition: transform .25s; }
.sd-sw.on { background: #2563d9; }
.sd-sw.on::after { transform: translateX(13px); }
.sd-sub2 { margin: 2px 0 0 10px; padding-left: 10px; border-left: 2px solid #2a303b; }
.sd-oft { display: flex; justify-content: space-between; font-size: 9px; margin-top: 3px; }
.sd-oft span { color: #8fb6ff; font-weight: 700; }
.sd-track { position: relative; height: 5px; border-radius: 3px; background: #333a46; margin: 8px 0 7px; }
.sd-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; background: #2563d9; border-radius: 3px; transition: width .6s ease; }
.sd-track u { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #e8ebf0; transition: left .6s ease; }
.sd-row.sm .sd-tx b { font-size: 9.5px; }
.sd-think .sd-row { padding-top: 0; }
.sd-btns { display: flex; justify-content: space-between; margin-top: auto; }
.sd-btns i { font-style: normal; padding: 7px 18px; border-radius: 7px; background: #272d37; font-size: 9.5px; }
.sd-btns i.pri { background: #2563d9; color: #fff; font-weight: 700; transition: background .2s; }
.sd-btns i.pri.down { background: #1d52b8; }
@media (max-width: 719px) {
  .set-win { width: 340px; height: 560px; }
  .sd-h { font-size: 16px; } .sd-sub { font-size: 9px; } .sd-lab { font-size: 11px; }
  .sd-seg i, .sd-seg2 i { font-size: 10.5px; } .sd-tx b { font-size: 11.5px; } .sd-tx small { font-size: 9px; }
  .sd-oft { font-size: 9.5px; } .sd-row.sm .sd-tx b { font-size: 10.5px; } .sd-btns i { font-size: 11px; }
}

/* ------------------------------------------------------------------ färger och bakgrund (4.38-hemsidan): djup, glöd och lugnare ytor */
:root { --glow: rgba(77,141,255,.22); --h1a: #ffffff; --h1b: #9fc2ff; --shadow: 0 30px 80px rgba(0,0,0,.40); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --glow: rgba(47,111,224,.16); --h1a: #151922; --h1b: #2f6fe0; --shadow: 0 30px 70px rgba(30,50,90,.18); } }
body { background:
  radial-gradient(1100px 520px at 50% -140px, var(--glow), transparent 70%),
  radial-gradient(700px 420px at 100% 38%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
  var(--bg);
  background-attachment: scroll; }
header.top { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.2); }
.hero { padding: 96px 0 56px; }
.hero h1 { font-size: clamp(38px, 7vw, 68px); line-height: 1.04; letter-spacing: -0.035em;
  background: linear-gradient(180deg, var(--h1a) 30%, var(--h1b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); }
.btn { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #fff), var(--accent)); box-shadow: 0 6px 22px -6px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #fff), var(--accent)); filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: color-mix(in srgb, var(--card) 60%, transparent); box-shadow: none; }
.btn.ghost:hover { background: var(--bg2); filter: none; }
.stage { box-shadow: 0 0 0 1px var(--line), 0 40px 120px -30px var(--glow), var(--shadow); }
section.alt { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg2) 80%, transparent) 18%, color-mix(in srgb, var(--bg2) 80%, transparent) 82%, transparent); border: 0; }
.card, .step { box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 34px -18px rgba(0,0,0,.45); transition: transform .2s, border-color .2s; }
.card:hover, .step:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.price.card:hover, .dl .card:hover { transform: none; }
.sfig img { box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .card, .step, .btn { transition: none; } .card:hover, .step:hover, .btn:hover { transform: none; } }

/* ------------------------------------------------------------------ rättelser: rubrikens g, och scenen med ren bakgrund */
.hero h1 { padding-bottom: .16em; margin-bottom: 8px; }        /* gradienttext klipper annars svansarna (g, y, p) */
.lap-bezel, .lap-base { display: none; }
.lap-screen { background: none; border-radius: 0; overflow: visible; height: 1100px; }
.stage { background:
    radial-gradient(60% 55% at 50% 38%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%),
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 1.6px) 0 0 / 24px 24px,
    linear-gradient(180deg, var(--bg2), var(--bg)); border: 1px solid var(--line); }
.win { box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.07); }
.app-win { transition: opacity .45s ease, filter .35s ease; }
.app-win.dim { filter: brightness(.55) saturate(.8); }
.doc-win { opacity: 0; transform: translateX(70px) scale(.97); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.doc-win.show { opacity: 1; transform: none; }
.cursor { width: 26px; height: 31px; }
.cursor svg { width: 100%; height: 100%; }
.doc-label.ok { background: #1f9d63; box-shadow: 0 8px 22px rgba(31,157,99,.4); }
.scene-caps span { padding: 8px 16px; font-size: 14px; }
.scene-caps span.on { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.replay { margin-top: 2px; }
.scene-sticky { height: auto; min-height: 0; justify-content: flex-start; padding: 16px 0 28px; }
.stage { flex: none; }

/* förklaringsbubblor vid sidorna av programfönstret (bara på bred skärm) */
.stage .callout { position: absolute; width: min(260px, 24%); padding: 14px 16px; border-radius: 14px; transform: translateY(-50%);
  background: color-mix(in srgb, var(--card) 82%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px);
  box-shadow: 0 18px 44px -18px rgba(0,0,0,.55); opacity: 0; pointer-events: none; z-index: 40;
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.stage .callout.l { left: 3%; transform: translate(-18px, -50%); }
.stage .callout.r { right: 3%; transform: translate(18px, -50%); }
.stage .callout.on { opacity: 1; transform: translate(0, -50%); }
.callout b { display: block; font-size: 15px; letter-spacing: -0.01em; margin-bottom: 4px; }
.callout span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.callout::before { content: ""; position: absolute; top: 18px; width: 3px; height: 22px; border-radius: 2px; background: var(--accent); }
.callout.l::before { left: -1px; } .callout.r::before { right: -1px; }
@media (max-width: 1000px) { .stage .callout { display: none; } }
.hero { padding-bottom: 28px; }
section.scene { padding: 8px 0 28px; }
@media (max-width: 719px) { .hero { padding: 40px 0 8px; } section.scene { padding-top: 0; } }
.srow { margin: 64px 0; }
@media (max-width: 860px) { .srow { margin: 48px 0; } }

/* ------------------------------------------------------------------ delad topp (4.40): text till vänster, programfönstret till höger */
.hero { text-align: left; padding: 64px 0 40px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero h1 { margin-left: 0; margin-right: 0; max-width: 620px; font-size: clamp(36px, 5vw, 60px); }
.hero p.lead { margin-left: 0; margin-right: 0; max-width: 540px; }
.hero .cta { justify-content: flex-start; }
.hero-app { display: block; width: 100%; max-width: 440px; height: auto; justify-self: end; border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); }
@media (max-width: 900px) {
  .hero { padding: 40px 0 16px; }
  .hero-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-app { justify-self: center; max-width: 360px; }
}

/* ------------------------------------------------------------------ 4.42: ny layout (inspirerad av Raycast, Linear m.fl.): flytande meny, fakta-rad, luftigare sektioner, omdömen, slut-CTA, stor sidfot */
header.top { top: 10px; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
header.top .wrap { pointer-events: auto; max-width: 1040px; height: 56px; margin-top: 10px; padding: 0 10px 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 14px 36px -14px rgba(0,0,0,.55); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; }
.brand::before { content: "P"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent-2); color: #fff; font-weight: 800; font-size: 14px; }
header.top .btn.small { padding: 8px 18px; border-radius: 999px; }
header.top .lang { padding: 5px 13px; }
.hero { padding: 56px 0 36px; }
.hero h1 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); padding-bottom: 0; }
.hero .cta .btn { padding: 14px 24px; border-radius: 12px; }
.hero-app { border-radius: 16px; }

.facts { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts .ic { flex: none; color: var(--accent); margin-top: 1px; }
.facts b { display: block; font-size: 15.5px; line-height: 1.3; }
.facts span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

section { padding: 72px 0; }
@media (max-width: 719px) { section { padding: 52px 0; } }
h2 { letter-spacing: -0.03em; }
p.sub { font-size: 18px; margin-bottom: 36px; }
.stext .kick { display: none; }
.srow { margin: 44px 0; }
@media (max-width: 860px) { .srow { margin: 36px 0; } }

.feat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.feat { padding: 28px 0 30px; border-top: 1px solid var(--line); }
.feat h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.015em; }
.feat p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
@media (max-width: 760px) { .feat-list { grid-template-columns: minmax(0, 1fr); } }

.incl2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.incl2 h3 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.02em; }
.incl2 > div > p { margin: 0 0 20px; color: var(--muted); }
@media (max-width: 860px) { .incl2 { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.step { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 26px 8px 8px 0; box-shadow: none; }
.step:hover { transform: none; border-color: var(--line); }
.step h3 { font-size: 20px; }
.price { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--accent) 55%, transparent), 0 12px 30px -16px rgba(0,0,0,.5); }
.dl .card { padding: 28px 24px; }

.reviews-sec .sub { margin-bottom: 30px; }
.rev-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 8px; }
.review { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.review blockquote { margin: 0 0 12px; font-size: 17px; line-height: 1.6; }
.review figcaption { color: var(--muted); font-size: 14px; }
.rev-empty { max-width: 560px; margin: 0 auto; padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.rev-cta { text-align: center; margin: 26px 0 12px; }
.rev-cta .btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 12px; }
.rev-note { text-align: center; max-width: 580px; margin: 0 auto; }

.final { text-align: center; padding: 104px 0 112px; border-top: 1px solid var(--line);
  background: radial-gradient(60% 90% at 50% 105%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 72%); }
.final h2 { font-size: clamp(32px, 5.4vw, 52px); margin-bottom: 12px; }
.final p { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.btn.big { padding: 16px 32px; font-size: 18px; border-radius: 14px; }

footer { padding: 56px 0 44px; }
footer .foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px 48px; justify-content: stretch; }
.foot-brand .brand { font-size: 18px; }
.foot-brand p { margin: 12px 0 0; max-width: 360px; font-size: 14.5px; line-height: 1.55; }
footer h4 { margin: 0 0 14px; font-size: 14px; color: var(--text); }
footer nav { flex-direction: column; align-items: flex-start; gap: 10px; }
footer nav a { font-size: 14.5px; }
.foot-grid .tm { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; }
@media (max-width: 720px) { footer .foot-grid { grid-template-columns: minmax(0, 1fr); } header.top .wrap { padding-left: 14px; } }

/* 4.42: två priskort (prenumeration + livstidslicens) */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; text-align: left; }
.plan h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.plan .amount { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 0; line-height: 1.05; }
.plan .per { color: var(--muted); font-size: 15px; margin-top: 4px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 26px; position: relative; font-size: 15.5px; line-height: 1.45; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan .btn { width: 100%; justify-content: center; text-align: center; }
.plan-main { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--accent) 55%, transparent), 0 12px 30px -16px rgba(0,0,0,.5); }
.plan-badge { position: absolute; top: -12px; right: 24px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plans-common { text-align: center; color: var(--text); max-width: 620px; margin: 30px auto 0; font-size: 16px; }
.plans-note { text-align: center; max-width: 620px; margin: 12px auto 0; }
.plan.card:hover { transform: none; }
@media (max-width: 719px) { .plans { grid-template-columns: minmax(0, 1fr); } .plan-main { order: -1; } .plan-badge { right: 20px; } }


/* 4.42: tillgänglighet. Vit text på knapparna ska ha minst 4,5:1 mot bakgrunden (var 3,2:1 i mörkt tema), och den som
   använder tangentbordet ska alltid se var fokus är. */
.btn, .plan-badge { background: linear-gradient(180deg, #2f6fe0, #2a62d1); color: #fff; }
.btn:hover { background: linear-gradient(180deg, #2f6fe0, #2a62d1); filter: brightness(.92); }
.btn.ghost, .btn.ghost:hover { background: transparent; color: var(--text); filter: none; }
.plan-badge { background: #2a62d1; }
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible { outline-color: var(--text); }
.legal-date { color: var(--muted); font-size: 15px; margin: -6px 0 28px; }

.btn.soon { cursor: default; opacity: .85; }
.btn.soon:hover { transform: none; filter: none; }

/* Guidesidor (läsning): samma kolumn som villkoren, men med ingress, listor och en knapp. */
.legal .lead { font-size: 19px; line-height: 1.6; color: var(--text); margin: 0 0 8px; }
.legal ul, .legal ol { padding-left: 22px; margin: 12px 0; }
.legal li { margin: 8px 0; line-height: 1.6; }
.legal .guide-cta { margin: 40px 0 8px; }
.legal .guide-more { list-style: none; padding: 0; }
.legal .guide-more a { color: var(--accent); }
