  /* Typsnitten ligger på sidan själv, så att besökare inte skickas till Google. */
  @font-face { font-family: Garamond; src: url(/fonts/garamond.woff2) format("woff2"); font-weight: 500; font-display: swap; }
  @font-face { font-family: Inter; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
  @font-face { font-family: Cormorant; src: url(/fonts/cormorant.woff2) format("woff2"); font-weight: 600; font-display: swap; }

  :root {
    --ink: #14213d;
    --ink-soft: #3b4660;
    --muted: #6b7385;
    --paper: #f7f4ee;
    --card: #ffffff;
    --line: #e4ded3;
    --accent: #b5652b;
    --accent-soft: #f3e4d6;
    --radius: 18px;
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  }
  a { color: inherit; }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

  header { padding: 22px 0; }
  header .wrap { display: flex; align-items: center; justify-content: space-between; }
  .logo {
    font-family: Cormorant, Georgia, serif;
    font-weight: 600;
    font-size: 25px;
    letter-spacing: 0.18em;
    text-decoration: none;
  }
  .header-cta {
    font-size: 15px; font-weight: 500; text-decoration: none;
    padding: 9px 16px; border: 1px solid var(--ink); border-radius: 999px;
  }

  /* Toppen: lugn och centrerad, med luft runt. */
  .hero { padding-top: 40px; padding-bottom: 32px; text-align: center; }
  .hero-copy { max-width: 760px; margin: 0 auto; }
  .hero h1 { font-size: clamp(34px, 5.2vw, 60px); letter-spacing: -0.02em; line-height: 1.06; margin-top: 24px; }
  .hero h1 em { font-style: normal; color: var(--accent); }
  .hero .lead { margin: 18px auto 26px; max-width: 52ch; font-size: clamp(17px, 2vw, 19px); color: var(--ink-soft); }
  .hero-note { font-size: 14px; color: var(--muted); margin-top: 16px; }
  /* Scenen under */
  .stage { position: relative; height: 470px; margin: 28px calc(50% - min(620px, 50vw - 12px)) 0; }
  .wash { position: absolute; inset: 0; width: 100%; height: 100%; }
  .wash-ink { animation: drift 26s ease-in-out infinite alternate; transform-origin: 50% 50%; }
  @keyframes drift { to { transform: translate(-18px, 8px) scale(1.04); } }
  .links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .links path { fill: none; stroke: rgba(20,33,61,.5); stroke-width: 1.3; stroke-dasharray: 5 5; animation: flow 1.6s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -10; } }
  .stage .demo-thumb { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(470px, 86%); margin: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 12px 16px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 30px 60px -28px rgba(20,33,61,.55); }
  .stage .demo-thumb:hover { transform: translate(-50%, calc(-50% - 3px)); box-shadow: 0 36px 70px -28px rgba(20,33,61,.6); }
  .stage .thumb-frame { width: 100%; height: auto; aspect-ratio: 236 / 150; }
  .stage .thumb-text { padding: 0 6px; }
  .stage .thumb-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .stage .thumb-play svg { width: 22px; height: 22px; }
  .float { position: absolute; z-index: 1; text-align: left; font-size: 12.5px; color: var(--ink); background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.95); border-radius: 14px; padding: 12px 14px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 18px 40px -22px rgba(20,33,61,.5); animation: bob 7s ease-in-out infinite; }
  .float small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
  @keyframes bob { 50% { transform: translateY(-7px); } }
  .f-mail { left: 4%; top: 14%; width: 268px; }
  .f-draw { left: 9%; top: 66%; width: 200px; animation-delay: -2.5s; }
  .f-price { right: 5%; top: 30%; width: 190px; animation-delay: -4.5s; }
  .f-head { display: flex; gap: 10px; align-items: center; font-weight: 600; }
  .f-head small { margin: 0 0 2px; font-weight: 400; }
  .f-av { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
  .f-files { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
  .f-file { font-size: 9.5px; font-weight: 700; padding: 2px 5px; border-radius: 4px; color: #fff; }
  .f-pdf { background: #c2412d; } .f-step { background: var(--ink); margin-left: 6px; }
  .f-tags { display: flex; flex-wrap: wrap; gap: 5px; }
  .f-tags span { font: 600 11.5px ui-monospace, Menlo, monospace; padding: 3px 7px; border-radius: 6px; background: var(--accent-soft); color: #7a4318; }
  .f-price strong { display: block; font: 600 24px ui-monospace, Menlo, monospace; letter-spacing: -.02em; }
  .f-ok { display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 600; color: #fff; background: #16a34a; padding: 4px 9px; border-radius: 999px; }
  /* Korten tonar fram ett i taget när sidan laddas. */
  .js .float, .js .links { opacity: 0; transition: opacity .8s; }
  .js .stage.go .float, .js .stage.go .links { opacity: 1; }
  .js .stage.go .f-draw { transition-delay: .35s; } .js .stage.go .f-price { transition-delay: .7s; } .js .stage.go .links { transition-delay: 1s; }
  @media (prefers-reduced-motion: reduce) { .wash-ink, .float, .links path { animation: none; } }
  @media (max-width: 960px) {
    .float, .links { display: none; }
    .stage { height: auto; margin-left: -20px; margin-right: -20px; padding: 36px 20px; }
    .stage .demo-thumb, .stage .demo-thumb:hover { position: relative; left: auto; top: auto; transform: none; width: 100%; max-width: 520px; margin: 0 auto; }
  }
  a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
  .eyebrow {
    display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--accent);
    background: var(--accent-soft); padding: 5px 12px; border-radius: 999px;
  }
  h1, h2, h3 { font-family: Garamond, Georgia, serif; font-weight: 500; line-height: 1.15; margin: 0; }
  h1 { font-size: clamp(40px, 7.5vw, 70px); margin-top: 20px; }
  .lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-soft); max-width: 46ch; margin: 22px 0 32px; }
  .btn {
    display: inline-block; background: var(--ink); color: var(--paper);
    font-weight: 600; text-decoration: none; padding: 15px 26px; border-radius: 999px;
    font-size: 17px; border: 0; cursor: pointer;
  }
  .btn:hover { background: #0c162b; }
  .hero-note { font-size: 15px; color: var(--muted); margin-top: 14px; }
  /* Demon under rubriken: kundens mejl → ritningen läses → kalkylatorn godkänner → offert-PDF i verkstadens mall.
     Styrs av skriptet längst ner: varje element med data-at tänds så många millisekunder in i varvet. */
  .demo { position: relative; margin-top: 0; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 40px 80px -40px rgba(20,33,61,.35), 0 2px 6px rgba(20,33,61,.04); overflow: hidden; transition: opacity .8s; }
  .demo-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
  .demo-brand { font-family: Cormorant, Georgia, serif; font-weight: 600; letter-spacing: .18em; font-size: 16px; }
  .demo-status { font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
  .demo-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: demo-pulse 1.2s infinite; }
  .demo-status.done { color: #2f6b45; background: #e3efe6; }
  .demo-status.done::before { background: #2f6b45; animation: none; }
  @keyframes demo-pulse { 50% { opacity: .25; } }
  .demo-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); opacity: .7; }
  .demo-panes { display: grid; grid-template-columns: 0.9fr 1.22fr 1.28fr; }
  .pane { position: relative; padding: 20px 22px 24px; border-right: 1px solid var(--line); min-height: 480px; transition: background .5s; }
  .pane:last-child { border-right: 0; }
  .pane.active { background: #fbf8f3; }
  .pane-head { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; transition: color .4s; }
  .pane-head b { width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font: 500 13px Garamond, Georgia, serif; letter-spacing: 0; flex: none; transition: background .4s, color .4s; }
  .pane.active .pane-head, .pane.passed .pane-head { color: var(--accent); }
  .pane.passed .pane-head b { background: var(--accent); color: #fff; border-color: var(--accent); }

  .rv { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
  .rv.on { opacity: 1; transform: none; }

  .inbox { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
  .mail { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.5; background: var(--card); }
  .mail-from { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .mail-av { width: 30px; height: 30px; border-radius: 50%; background: #dfe4ee; color: var(--ink-soft); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
  .mail-from strong { display: block; font-size: 14px; }
  .mail-from span { font-size: 12px; color: var(--muted); }
  .mail-subj { font-weight: 600; margin-bottom: 4px; }
  .mail p { margin: 0; color: var(--ink-soft); }
  .mark { white-space: nowrap; border-radius: 4px; padding: 0 2px; margin: 0 -2px; transition: background .4s, box-shadow .4s; }
  .mark.on { background: rgba(181,101,43,.14); box-shadow: inset 0 -1.5px 0 var(--accent); }
  .files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .file { font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; display: inline-flex; gap: 6px; align-items: center; background: var(--paper); }
  .file i { font-style: normal; font-size: 10px; color: #fff; background: #b44a3a; border-radius: 3px; padding: 1px 4px; }
  .file i.step { background: #3c6aa8; }
  .fwd { margin-top: 12px; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-soft); }
  .fwd svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  .sheet { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; }
  .sheet svg { display: block; width: 100%; height: auto; }
  .dl { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease-in-out; }
  .dl.thin { stroke-width: .8; opacity: .55; }
  .dl.center { opacity: .4; stroke-width: .8; }
  .dl.on { stroke-dashoffset: 0; }
  .dt { font: 500 12px Inter, sans-serif; fill: var(--ink-soft); opacity: 0; transition: opacity .5s; }
  .dt.small { font-size: 10.5px; }
  .dt.on { opacity: 1; }
  .demo .scan { stroke: var(--accent); stroke-width: 2; opacity: 0; }
  .demo .scan.on { animation: demo-scan 1.6s ease-in-out forwards; }
  @keyframes demo-scan { 0% { opacity: 0; transform: translateX(0); } 10%, 90% { opacity: .9; } 100% { opacity: 0; transform: translateX(410px); } }
  .hit { fill: rgba(181,101,43,.1); stroke: var(--accent); stroke-width: 1.3; opacity: 0; transition: opacity .35s; }
  .hit.on { opacity: 1; }
  .facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
  .fact { font-size: 12.5px; border-radius: 999px; padding: 4px 10px; background: var(--accent-soft); color: #7a4318; }
  .fact b { font-weight: 600; }
  .fact.warn { background: #fdf0d8; color: #7a5a10; box-shadow: inset 0 0 0 1px #edd39a; }
  .ask { margin-top: 12px; border-left: 2px solid #edd39a; padding: 2px 0 2px 10px; font-size: 12.5px; color: var(--ink-soft); }
  .ask b { display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #7a5a10; }
  .eu { margin-top: 8px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
  .eu svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

  .ops { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
  .ops th { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: right; padding: 0 0 6px; }
  .ops th:nth-child(2) { text-align: left; }
  .ops td { padding: 6px 0; vertical-align: top; border-top: 1px solid var(--line); text-align: right; color: var(--ink-soft); white-space: nowrap; }
  .ops td:first-child { color: var(--muted); text-align: left; width: 26px; }
  .ops td:nth-child(2) { text-align: left; color: var(--ink); white-space: normal; line-height: 1.3; }
  .op-m { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
  .op-m em { font-style: normal; font-weight: 600; color: var(--accent); }
  .ops td.edit { transition: background .3s, color .3s; border-radius: 4px; }
  .ops td.edit.flash { background: rgba(181,101,43,.16); color: var(--ink); font-weight: 600; }
  .ops td + td + td { padding-left: 10px; }
  .ops tr { opacity: 0; transition: opacity .4s; }
  .ops tr.on { opacity: 1; }
  .calc { margin-top: 12px; font-size: 12.5px; }
  .calc > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 2px 0; color: var(--ink-soft); }
  .calc > div > span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .calc b { font-weight: 600; color: var(--ink); }
  .own { font-size: 10.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; }
  .sum { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; }
  .sum > span { font-size: 13px; color: var(--muted); }
  .sum strong { font: 500 30px Garamond, Georgia, serif; font-variant-numeric: lining-nums tabular-nums; }
  .review { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
  .review-av { width: 24px; height: 24px; border-radius: 50%; background: #dfe4ee; display: grid; place-items: center; font-size: 10px; font-weight: 600; flex: none; }
  .approve { margin-top: 12px; width: 100%; border: 0; border-radius: 999px; padding: 11px; font: 600 14px Inter, sans-serif; background: var(--ink); color: var(--paper); transition: transform .15s, background .4s; }
  .approve.press { transform: scale(.96); }
  .approve.ok { background: #2f6b45; }
  .cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 3; fill: var(--ink); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; opacity: 0; pointer-events: none; transition: left .9s cubic-bezier(.3,.7,.3,1), top .9s cubic-bezier(.3,.7,.3,1), opacity .3s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
  .cursor.on { opacity: 1; }
  .cursor.press { transform: scale(.85); }
  .pdf { margin-top: 12px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); }
  .pdf-icon { width: 30px; height: 38px; flex: none; }
  .pdf strong { display: block; font-size: 13.5px; }
  .pdf span { font-size: 12px; color: var(--muted); }
  /* Förhandsbilden i toppen. Demon öppnas stor i ett fönster ovanpå sidan först när man trycker. */
  .demo-thumb { display: flex; align-items: center; gap: 20px; margin-top: 40px; padding: 10px 22px 10px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 40px -26px rgba(20,33,61,.45); font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: transform .25s, box-shadow .25s; }
  .demo-thumb:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -26px rgba(20,33,61,.55); }
  .thumb-frame { position: relative; flex: none; width: 236px; height: 150px; border-radius: 12px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
  .thumb-frame .demo { position: absolute; left: 0; top: 0; width: 1100px; transform: scale(.2145); transform-origin: 0 0; box-shadow: none; pointer-events: none; }
  .thumb-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(20,33,61,.6); transition: transform .25s; }
  .thumb-play svg { width: 20px; height: 20px; fill: var(--paper); margin-left: 3px; }
  .demo-thumb:hover .thumb-play { transform: scale(1.08); }
  .thumb-frame::after { content: ""; position: absolute; inset: 0; background: rgba(247,244,238,.35); }
  .thumb-text strong { display: block; font: 500 22px Garamond, Georgia, serif; line-height: 1.2; }
  .thumb-text span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
  .demo-modal { width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
  .demo-modal[open] { animation: modal-in .4s cubic-bezier(.2,.7,.2,1); }
  .demo-modal::backdrop { background: rgba(20,33,61,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  @keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
  .modal-fit { transform-origin: 50% 0; }
  .demo-modal .demo-note { color: rgba(255,255,255,.75); }
  .demo-modal .demo-note button { color: #fff; }
  .modal-close { position: absolute; z-index: 5; right: 0; top: -46px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--ink); font-size: 15px; cursor: pointer; }
  .modal-close:hover { background: #fff; }
  @media (max-width: 600px) {
    .demo-thumb { flex-direction: column; align-items: stretch; gap: 12px; padding: 10px 10px 16px; width: 100%; }
    .thumb-frame { width: 100%; height: auto; aspect-ratio: 236 / 150; }
    .thumb-text { padding: 0 6px; }
    .demo-modal { width: calc(100vw - 16px); }
  }
  /* Demon ser ut som appen: mörk toppmeny, brödsmulor med status, stegraden med fyra steg, vita kort på grå botten. */
  .demo.app { --paper: #f4f5f7; --card: #fff; --ink: #111827; --ink-soft: #374151; --muted: #6b7280; --line: #e5e7eb; --accent: #4353ff; --accent-soft: #eef0ff; background: #f4f5f7; border-radius: 14px; color: var(--ink); }
  .demo.app, .demo.app * { font-family: Inter, system-ui, sans-serif; }
  .app-top { display: flex; align-items: center; gap: 12px; background: #0f1629; color: #cbd5e1; padding: 9px 14px; font-size: 13px; }
  .app-logo { width: 24px; height: 24px; border-radius: 6px; background: #4353ff; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
  .app-nav { display: flex; gap: 4px; }
  .app-nav b { background: #1e293b; color: #fff; border-radius: 6px; padding: 4px 10px; font-weight: 500; }
  .app-nav span { padding: 4px 10px; }
  .app-shop { margin-left: auto; }
  .app-crumbs { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
  .app-crumbs strong { color: var(--ink); font-weight: 500; }
  .demo.app .demo-status { background: transparent; color: var(--ink-soft); padding: 0; font-weight: 500; font-size: 13px; }
  .demo.app .demo-status::before { background: #f59e0b; }
  .demo.app .demo-status.done { background: transparent; color: var(--ink-soft); }
  .demo.app .demo-status.done::before { background: #22c55e; }
  .demo.app .demo-bar { background: #fff; padding: 10px 14px; justify-content: flex-start; }
  .demo.app .demo-steps { align-items: center; gap: 10px; }
  .demo.app .demo-steps > i { width: 36px; height: 1px; background: var(--line); }
  .demo.app .demo-steps button, .step-offer { border: 0; background: transparent; padding: 3px 10px 3px 3px; border-radius: 999px; font: 500 13.5px Inter, sans-serif; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
  .demo.app .demo-steps b { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #d1d5db; display: grid; place-items: center; font: 500 12px Inter, sans-serif; color: var(--muted); }
  .demo.app .demo-steps button.done b { border-color: #86efac; color: transparent; position: relative; }
  .demo.app .demo-steps button.done b::after { content: "✓"; position: absolute; color: #16a34a; font-size: 12px; }
  .demo.app .demo-steps button[aria-current="step"], .step-offer.cur { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .demo.app .demo-steps button[aria-current="step"] b, .step-offer.cur b { background: var(--accent); border-color: var(--accent); color: #fff; }
  .demo.app .demo-panes { gap: 12px; padding: 12px; background: #f4f5f7; }
  .demo.app .pane { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
  .demo.app .pane.active { background: #fff; box-shadow: 0 0 0 2px var(--accent-soft); }
  .demo.app .pane-head { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 600; }
  .demo.app .pane-head b, .demo.app .pane.passed .pane-head b { background: transparent; color: var(--muted); border-color: #d1d5db; font: 500 12px Inter, sans-serif; }
  .demo.app .pane.active .pane-head, .demo.app .pane.passed .pane-head { color: var(--ink); }
  .demo.app .fact { background: var(--accent-soft); color: #3730a3; }
  .demo.app .fact.warn { background: #fef3c7; color: #92400e; box-shadow: inset 0 0 0 1px #fcd34d; }
  .demo.app .mark.on { background: rgba(67,83,255,.1); box-shadow: inset 0 -1.5px 0 var(--accent); }
  .demo.app .hit { fill: rgba(67,83,255,.08); }
  .demo.app .ops td, .demo.app .calc > div > span:last-child, .demo.app .sum strong { font-family: ui-monospace, Menlo, monospace; }
  .demo.app .sum strong { font-weight: 500; font-size: 28px; }
  .demo.app .approve { background: var(--accent); color: #fff; }
  .demo.app .approve.ok { background: #16a34a; }
  .demo.app .ops td.edit.flash { background: rgba(67,83,255,.12); }
  @media (max-width: 860px) {
    .app-nav span, .app-shop, .crumb-path { display: none; }
    .app-crumbs { justify-content: space-between; }
    .demo.app .demo-steps > i { width: 10px; }
    .demo.app .demo-steps button span, .step-offer span { display: none; }
    .demo.app .demo-steps button[aria-current="step"] span, .step-offer.cur span { display: inline; }
  }
  .demo-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }
  .demo-note button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0 0 0 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
  .demo-note button[hidden] { display: none; }
  .demo-steps { display: flex; gap: 6px; }
  .demo-steps button { font: 600 12.5px Inter, sans-serif; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px 5px 6px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; transition: color .3s, border-color .3s, background .3s; }
  .demo-steps button b { width: 20px; height: 20px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font: 500 12px Garamond, Georgia, serif; }
  .demo-steps button:hover { color: var(--ink); border-color: #cfc6b8; }
  .demo-steps button[aria-current="step"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

  @media (max-width: 860px) {
    .demo { border-radius: 20px; }
    .demo-bar { padding: 12px 16px; }
    .demo-brand { display: none; }
    .demo-steps button { padding: 4px; }
    .demo-steps button span { display: none; }
    .demo-panes { grid-template-columns: 1fr; }
    .pane { grid-area: 1 / 1; border-right: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; min-height: 0; padding: 18px 16px 20px; }
    .pane.active { opacity: 1; visibility: visible; transition: opacity .5s; background: transparent; }
  }
  @media (prefers-reduced-motion: reduce) {
    .rv, .dl, .dt, .hit, .ops tr, .demo, .mark, .pane { transition: none; }
    .demo-status::before { animation: none; }
  }




  section { padding: 64px 0; }
  .section-title { font-size: clamp(30px, 4.8vw, 44px); max-width: 22ch; }
  .section-intro { color: var(--ink-soft); max-width: 52ch; margin: 14px 0 0; }

  .steps { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: repeat(3, 1fr); }
  .step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
  .step-num {
    font-family: Garamond, Georgia, serif; font-size: 15px; color: var(--accent);
    border: 1px solid var(--accent); width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; margin-bottom: 16px;
  }
  .step h3 { font-size: 24px; margin-bottom: 8px; }
  .step p { margin: 0; color: var(--ink-soft); font-size: 16px; }

  .faq-grid { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: repeat(2, 1fr); }
  .faq-grid h3 { font-size: 23px; margin-bottom: 8px; }
  .faq h3 button { all: unset; display: block; }
  @media (max-width: 860px) {
    .faq-grid { gap: 10px; }
    .faq { padding: 0; }
    .faq h3 { font-size: 20px; margin: 0; }
    .faq h3 button { box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; }
    .faq h3 button::after { content: "+"; font: 400 24px Inter, sans-serif; color: var(--accent); transition: transform .25s; }
    .faq h3 button[aria-expanded="true"]::after { transform: rotate(45deg); }
    .faq h3 button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }
    .faq p { padding: 0 20px 18px; }
    .js .faq p { display: none; }
    .js .faq button[aria-expanded="true"] + p, .js .faq h3:has(button[aria-expanded="true"]) + p { display: block; }
  }

  .faq-grid p { margin: 0; color: var(--ink-soft); font-size: 16px; }

  .trust { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 48px; }
  .trust .section-intro { color: #c9cedb; }
  /* Sekretessavtalet i det blå fältet: namnteckningarna skrivs och stämpeln slås ner när man scrollar dit. */
  .trust-top { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; align-items: center; }
  .nda { width: 100%; max-width: 200px; justify-self: end; overflow: visible; }
  .nda path, .nda circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .nda-paper { stroke: rgba(255,255,255,.22); stroke-width: 1.2; }
  .nda-title { stroke: rgba(255,255,255,.32); stroke-width: 3; }
  .nda-text { stroke: rgba(255,255,255,.13); stroke-width: 2; }
  .nda-line { stroke: rgba(255,255,255,.22); stroke-width: 1; }
  .nda-sig { stroke: #e2a979; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s ease-in-out .8s; }
  .nda-sig.two { transition-delay: 2s; }
  .nda-seal { stroke: #e2a979; stroke-width: 1.4; opacity: 0; transform: scale(.6); transform-origin: 150px 176px; transition: opacity .5s 3.3s, transform .5s cubic-bezier(.3,1.5,.5,1) 3.3s; }
  .trust.in .nda-sig { stroke-dashoffset: 0; }
  .trust.in .nda-seal { opacity: .9; transform: none; }
  @media (max-width: 860px) {
    .trust-top { grid-template-columns: 1fr; gap: 28px; }
    .nda { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .nda-sig { stroke-dashoffset: 0; transition: none; }
    .nda-seal { opacity: .9; transform: none; transition: none; }
  }

  .trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 28px; }
  .trust-item h3 { font-size: 22px; margin-bottom: 6px; color: #fff; }
  .trust-item p { margin: 0; color: #c9cedb; font-size: 16px; }

  .fit { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .fit ul { margin: 0; padding: 0; list-style: none; }
  .fit li { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .fit li:first-child { border-top: 1px solid var(--line); }

  .team { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; max-width: 380px; }
  .person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 16px; align-items: center; }
  .avatar {
    width: 64px; height: 64px; border-radius: 50%; flex: none; object-fit: cover;
    background: var(--accent-soft); color: var(--accent);
    display: grid; place-items: center; font-family: Garamond, Georgia, serif; font-size: 22px;
  }
  .person strong { display: block; font-size: 18px; }
  .person a { font-size: 15px; color: var(--ink-soft); display: block; }
  .person a[href^="tel"] { font-variant-numeric: lining-nums; text-decoration: none; }

  .book { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
  .form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
  /* Den mörka panelen (klassen heter .sky av historiska skäl): mörkblå som skannern, med kopparsken
     som glider långsamt åt olika håll. Används i bokningsformuläret och rutan längst ner på sidorna. */
  .sky { position: relative; overflow: hidden; isolation: isolate; color: #fff; border: 1px solid #1c2944;
    background: radial-gradient(120% 90% at 30% 0%, #18253f 0%, #0e172b 55%, #0a1122 100%); box-shadow: 0 30px 70px -30px rgba(8,14,27,.65); }
  .sky::before, .sky::after { content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none; }
  .sky::before {
    background: radial-gradient(30% 22% at 24% 30%, rgba(224,145,90,.2), transparent 70%),
                radial-gradient(24% 18% at 80% 62%, rgba(255,199,150,.12), transparent 70%);
    animation: sky1 16s ease-in-out infinite alternate; }
  .sky::after {
    background: radial-gradient(28% 22% at 70% 22%, rgba(224,145,90,.12), transparent 70%),
                radial-gradient(1px 1px at 50% 50%, rgba(224,145,90,.0), transparent);
    animation: sky2 20s ease-in-out infinite alternate; }
  .sky .btn { background: #e0915a; color: #0b1222; }
  .sky .btn:hover { background: #ffc796; }
  @keyframes sky1 { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(8%, -6%) rotate(10deg); } 100% { transform: translate(-6%, 5%) rotate(-6deg); } }
  @keyframes sky2 { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-9%, 7%) rotate(-12deg); } 100% { transform: translate(7%, -4%) rotate(8deg); } }
  @media (prefers-reduced-motion: reduce) { .sky::before, .sky::after { animation: none; } }
  #boka-form { padding: 32px; }
  #boka-form .form-title, #boka-form label { color: #fff; }
  #boka-form .form-lead, #boka-form .opt { color: rgba(255,255,255,.82); }
  #boka-form input, #boka-form textarea { background: #fff; border-color: transparent; box-shadow: 0 1px 2px rgba(10,30,80,.12); }
  #boka-form input:focus, #boka-form textarea:focus { border-color: #e0915a; box-shadow: 0 0 0 3px rgba(224,145,90,.4); }
  #boka-form .form-msg { color: #fff; }
  #boka-form .form-msg.fel { background: rgba(20,33,61,.35); padding: 12px 14px; border-radius: 12px; }
  #boka-form .form-msg a { color: #fff; }
  #boka-form .form-done p { color: rgba(255,255,255,.88); }
  #boka-form .form-done .check { background: #e0915a; color: #0b1222; }
  #boka { background: radial-gradient(60% 70% at 78% 55%, rgba(224,145,90,.12), transparent 70%); }
  .form-title { font-size: 24px; margin: 0 0 4px; }
  .form-lead { margin: 0 0 20px; color: var(--ink-soft); }
  .form-card label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
  .form-card .opt { font-weight: 400; color: var(--muted); }
  .form-card input, .form-card textarea { display: block; box-sizing: border-box; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s; }
  .form-card textarea { resize: vertical; min-height: 104px; }
  .form-card input::placeholder, .form-card textarea::placeholder { color: #9aa0ad; }
  .form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .form-card .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form-card button[disabled] { opacity: .6; cursor: wait; }
  .form-msg { margin: 14px 0 0; color: var(--ink-soft); }
  .form-msg:empty { display: none; }
  .form-msg.fel { color: #b42318; }
  .form-done { text-align: center; padding: 36px 8px; }
  .form-done .check { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: #e7f4ec; color: #16a34a; display: grid; place-items: center; font-size: 28px; }
  .form-done p { color: var(--ink-soft); margin: 6px 0 0; }

  footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 32px; }
  footer p { max-width: 70ch; }

  @media (max-width: 760px) {
    .hero { padding-top: 36px; padding-bottom: 24px; }
    section { padding: 48px 0; }
    .steps, .trust-grid, .fit, .book, .faq-grid { grid-template-columns: 1fr; }
    .team { grid-template-columns: 1fr; }
    .trust { padding: 32px 24px; border-radius: 22px; }
    .header-cta { display: none; }
    .form-card { padding: 20px; }
    .form-row { grid-template-columns: 1fr; }
    #boka-form { padding: 24px 20px; }
  }

  /* Den röda tråden: kapitelrubriker, mjuk scroll och avsnitt som glider fram när man scrollar dit. */
  html { scroll-behavior: smooth; }
  .chapter { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
  .chapter::before { content: ""; width: 28px; height: 1px; background: currentColor; }
  .trust .chapter { color: #e2a979; }
  .js .reveal > * { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in > * { opacity: 1; transform: none; }
  .js .reveal.in > *:nth-child(2) { transition-delay: .12s; }
  .js .reveal.in > *:nth-child(3) { transition-delay: .24s; }
  .js .reveal.in > *:nth-child(4) { transition-delay: .36s; }
  .js .faq-grid .step { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
  .js .reveal.in .faq-grid .step { opacity: 1; transform: none; }
  .js .reveal.in .faq-grid .step:nth-child(2) { transition-delay: .3s; }
  .js .reveal.in .faq-grid .step:nth-child(3) { transition-delay: .45s; }
  .js .reveal.in .faq-grid .step:nth-child(4) { transition-delay: .6s; }


  .model-sec { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
  .model-view { position: relative; aspect-ratio: 1.35; border-radius: 28px; }
  .model-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .mtag { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(20,33,61,.4); opacity: 0; transition: opacity .5s; pointer-events: none; }
  .mtag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: var(--accent); }
  .sky .mtag::after { background: rgba(255,255,255,.85); }
  .mtag.hl { color: #7a4318; border-color: #e2b58f; background: var(--accent-soft); }
  .mtag.on { opacity: 1; }
  .mtag.below { transform: translate(-50%, 0); }
  .mtag.below::after { top: auto; bottom: 100%; }
  .readout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin: 26px 0 0; }
  .readout div { padding: 10px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
  .readout dt { color: var(--muted); }
  .readout dd { margin: 0; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
  .readout .ok { color: #2f6b45; }
  .fit-head { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
  .fit-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .fit-chips li { font-size: 14.5px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 13px; }
  @media (max-width: 860px) {
    .model-sec { grid-template-columns: 1fr; gap: 24px; }
    .model-view { order: -1; aspect-ratio: 1.7; }
  }
  @media (max-width: 520px) {
    .readout { gap: 0 16px; margin-top: 20px; }
    .readout div { flex-direction: column; gap: 0; font-size: 14px; padding: 8px 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal > *, .js .faq-grid .step { opacity: 1; transform: none; transition: none; }
    }
  .site-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 15px; }

  /* ---------- Flera sidor ---------- */
  /* Menyn */
  .main-nav { display: flex; gap: 26px; font-size: 15px; }
  .main-nav a { text-decoration: none; color: var(--ink-soft); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
  .main-nav a:hover { color: var(--ink); }
  .main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
  @media (max-width: 860px) {
    header .wrap { flex-wrap: wrap; row-gap: 10px; }
    .main-nav { order: 3; width: 100%; gap: 20px; font-size: 14px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
    .main-nav::-webkit-scrollbar { display: none; }
  }
  @media (max-width: 760px) { header .header-cta { display: inline-block; font-size: 14px; padding: 7px 13px; } }
  /* Toppen på undersidorna */
  .page-hero { padding-top: 48px; padding-bottom: 16px; }
  .page-hero h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.02em; line-height: 1.08; margin-top: 4px; }
  .page-hero .lead { margin: 18px 0 0; max-width: 56ch; }
  .page-hero .demo-thumb { margin-top: 32px; }
  /* Tre skäl på startsidan */
  .reasons { padding-top: 24px; }
  .reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .reason { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
  .reason:hover { transform: translateY(-3px); border-color: #d8cfc1; box-shadow: 0 18px 40px -26px rgba(20,33,61,.45); }
  .reason .r-num { font: 600 12.5px ui-monospace, Menlo, monospace; color: var(--accent); letter-spacing: .08em; }
  .reason h3 { font-size: 25px; margin: 10px 0 8px; }
  .reason p { margin: 0 0 18px; color: var(--ink-soft); font-size: 16px; }
  .reason .r-more { margin-top: auto; font-size: 14.5px; font-weight: 600; color: var(--ink); }
  .reason .r-more::after { content: " →"; transition: margin .2s; }
  .reason:hover .r-more::after { margin-left: 4px; }
  /* Blått band med en knapp, längst ner på varje sida */
  .cta-band { padding: 24px 0 56px; }
  .cta-sky { display: flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: 26px; padding: 40px 44px; }
  .cta-sky h2 { font-size: clamp(28px, 3.6vw, 38px); color: #fff; }
  .cta-sky p { margin: 8px 0 0; color: rgba(255,255,255,.85); max-width: 48ch; }
  .btn-light { background: #fff; color: var(--ink); flex: none; }
  .btn-light:hover { background: #eef4fd; }
  /* Stegen på Så fungerar det */
  .steps.four { grid-template-columns: repeat(4, 1fr); }
  /* Om oss */
  .founders { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
  .founder { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
  .founder .avatar { width: 64px; height: 64px; font-size: 24px; margin-bottom: 16px; }
  .founder h2 { font-size: 28px; }
  .founder .role { margin: 2px 0 12px; font-size: 14px; color: var(--accent); font-weight: 600; letter-spacing: .04em; }
  .founder p { color: var(--ink-soft); margin: 0 0 16px; }
  .founder a { display: block; color: var(--ink-soft); font-size: 15px; }
  .founder a[href^="tel"] { text-decoration: none; }
  .more-link { margin-top: 20px; font-size: 15px; color: var(--ink-soft); }
  @media (max-width: 960px) { .steps.four { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 760px) {
    .reason-grid, .founders, .steps.four { grid-template-columns: 1fr; }
    .cta-sky { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
    .page-hero { padding-top: 28px; }
    .main-nav { gap: 16px; font-size: 13.5px; }
  }

  /* ---------- Skannern (Så fungerar det) ---------- */
  /* En mörk kontrollpanel där axeln skannas med kopparljus. */
  .scan-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 28px; }
  .scan-intro .section-intro { margin: 0; }
  .scan { --cu: #e0915a; --cu-hi: #ffc796; --cu-glow: rgba(224,145,90,.55); --hud: #e9e1d6; --hud-dim: #8f97a6;
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; border-radius: 26px; overflow: hidden; color: var(--hud);
    background: radial-gradient(70% 90% at 38% 45%, #18253f 0%, #0d1628 60%, #080e1b 100%);
    box-shadow: 0 40px 90px -40px rgba(8,14,27,.9), inset 0 0 0 1px rgba(224,145,90,.18); }
  /* fint rutnät, som på en mätskärm */
  .scan::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(224,145,90,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(224,145,90,.07) 1px, transparent 1px);
    background-size: 32px 32px; -webkit-mask-image: radial-gradient(75% 85% at 38% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(75% 85% at 38% 50%, #000 40%, transparent 100%); }
  .scan-view { position: relative; min-height: 460px; cursor: grab; touch-action: pan-y; }
  .scan-view:active { cursor: grabbing; }
  .scan-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--cu); opacity: .7; pointer-events: none; }
  .corner.tl { left: 18px; top: 18px; border-left-width: 1.5px; border-top-width: 1.5px; }
  .corner.tr { right: 18px; top: 18px; border-right-width: 1.5px; border-top-width: 1.5px; }
  .corner.bl { left: 18px; bottom: 18px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
  .corner.br { right: 18px; bottom: 18px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
  .scan-top { position: absolute; left: 48px; top: 19px; margin: 0; font: 600 11.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--cu-hi); display: flex; align-items: center; gap: 8px; }
  .rec { width: 7px; height: 7px; border-radius: 50%; background: var(--cu); box-shadow: 0 0 10px 2px var(--cu-glow); animation: rec 1.1s ease-in-out infinite; }
  .scan.done .rec { animation: none; background: #5fd38a; box-shadow: 0 0 10px 2px rgba(95,211,138,.5); }
  @keyframes rec { 50% { opacity: .25; } }
  .scan-hint { position: absolute; left: 48px; bottom: 16px; margin: 0; font: 500 11px ui-monospace, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--hud-dim); opacity: 0; transition: opacity .6s; }
  .scan.done .scan-hint { opacity: .8; }
  .stag { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 16px)); white-space: nowrap; pointer-events: none;
    font: 600 12.5px ui-monospace, Menlo, monospace; color: var(--hud); padding: 5px 10px; border-radius: 6px;
    background: rgba(13,22,40,.78); border: 1px solid rgba(224,145,90,.55); box-shadow: 0 0 18px -4px var(--cu-glow); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; transition: opacity .4s; }
  .stag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 16px; background: linear-gradient(var(--cu), transparent); }
  .stag.dim { transform: translate(-50%, 16px); }
  .stag.dim::after { top: auto; bottom: 100%; background: linear-gradient(transparent, var(--cu)); }
  .stag.hot { color: #1a0f06; background: var(--cu-hi); border-color: var(--cu-hi); box-shadow: 0 0 24px -2px var(--cu-glow); }
  .stag.on { opacity: 1; }
  .scan-side { position: relative; display: flex; flex-direction: column; padding: 26px 26px 22px; border-left: 1px solid rgba(224,145,90,.16); background: linear-gradient(180deg, rgba(8,14,27,.35), rgba(8,14,27,.6)); }
  .scan-log { list-style: none; margin: 0; padding: 0; font: 13px/1.2 ui-monospace, Menlo, monospace; }
  .scan-log li { display: flex; align-items: baseline; gap: 6px; padding: 9px 0; border-bottom: 1px dashed rgba(224,145,90,.18); }
  .scan-log li span { color: var(--hud-dim); flex: 1; }
  .scan-log li b { color: var(--hud); font-weight: 600; }
  .scan-log li em { font-style: normal; color: var(--hud-dim); }
  .scan-log li.ok b { color: #6fdc96; }
  .js .scan-log li { opacity: .12; transition: opacity .35s, transform .35s; }
  .js .scan-log li.on { opacity: 1; }
  .js .scan-log li.on b { animation: blip .6s; }
  @keyframes blip { 0% { color: var(--cu-hi); text-shadow: 0 0 12px var(--cu-glow); } }
  .scan-time { margin-top: auto; padding-top: 22px; }
  .scan-time span { display: block; font: 600 11px ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--hud-dim); }
  .scan-time strong { display: block; font: 600 44px/1.1 ui-monospace, Menlo, monospace; letter-spacing: -.03em; color: var(--cu-hi); text-shadow: 0 0 24px var(--cu-glow); }
  .scan-time small { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--hud-dim); }
  .js .scan-time { opacity: 0; transition: opacity .6s; }
  .js .scan.done .scan-time { opacity: 1; }
  .scan-again { align-self: flex-start; margin-top: 16px; font: 600 12px ui-monospace, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--cu-hi); background: transparent; border: 1px solid rgba(224,145,90,.5); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: background .2s; }
  .scan-again:hover { background: rgba(224,145,90,.12); }
  .js .scan-again { visibility: hidden; }
  .js .scan.done .scan-again { visibility: visible; }
  #matning .fit-head { margin-top: 32px; }
  @media (max-width: 860px) {
    .scan-intro { grid-template-columns: 1fr; gap: 12px; }
    .scan { grid-template-columns: 1fr; border-radius: 20px; }
    .scan-view { min-height: 0; aspect-ratio: 1.15; }
    .scan-side { border-left: 0; border-top: 1px solid rgba(224,145,90,.16); padding: 20px; }
    .scan-time strong { font-size: 36px; }
    .stag { font-size: 11px; padding: 4px 8px; }
    .scan-top { left: 44px; font-size: 10.5px; }
  }
  @media (prefers-reduced-motion: reduce) { .rec { animation: none; } }

  /* ---------- De fyra stegen: en mörk kontrollpanel, varje ruta med en scen bakom texten (steg.js) ---------- */
  .flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 36px; background: rgba(224,145,90,.18); border: 1px solid #1c2944; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(8,14,27,.7); }
  .fstep { position: relative; isolation: isolate; padding: 178px 24px 28px; background: radial-gradient(130% 80% at 60% 0%, #16223b 0%, #0d1528 55%, #0a1122 100%); color: #e9e1d6; }
  .fstep canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
  .fstep::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: box-shadow .35s; }
  .fstep:hover::after { box-shadow: inset 0 0 0 1px rgba(255,199,150,.3), inset 0 0 50px rgba(224,145,90,.08); }
  .fhead { position: absolute; left: 20px; right: 20px; top: 18px; display: flex; justify-content: space-between; align-items: center; font: 600 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
  .fnum { color: #ffc796; }
  .fstate { display: flex; align-items: center; gap: 7px; color: #8f97a6; font-weight: 500; font-size: 10.5px; transition: color .3s; }
  .fstate::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3a4560; }
  .fstep.playing .fstate { color: #ffc796; }
  .fstep.playing .fstate::before { background: #e0915a; box-shadow: 0 0 8px 2px rgba(224,145,90,.6); animation: rec 1s steps(2) infinite; }
  .fstep.done .fstate { color: #cfe9d8; }
  .fstep.done .fstate::before { background: #5fd38a; box-shadow: 0 0 8px 2px rgba(95,211,138,.45); }
  .fbar { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: linear-gradient(90deg, rgba(224,145,90,0), #ffc796); box-shadow: 0 0 12px rgba(255,199,150,.8); }
  .fstep.playing .fbar { width: 100%; transition: width var(--dur, 2.5s) linear; }
  .fstep.done .fbar { width: 100%; opacity: .3; transition: opacity .8s; }
  .ftext h3 { color: #f6efe5; font-size: 23px; margin-bottom: 8px; }
  .ftext p { margin: 0; color: #a9b1bf; font-size: 15.5px; line-height: 1.6; }
  .ftext mark { position: relative; color: inherit; background: none; transition: color .3s, text-shadow .3s; }
  .ftext mark::before { content: ""; position: absolute; inset: -1px -4px; opacity: 0; transition: opacity .25s;
    --c: linear-gradient(#ffc796, #ffc796);
    background: var(--c) left top / 5px 1px, var(--c) left top / 1px 5px, var(--c) right top / 5px 1px, var(--c) right top / 1px 5px,
      var(--c) left bottom / 5px 1px, var(--c) left bottom / 1px 5px, var(--c) right bottom / 5px 1px, var(--c) right bottom / 1px 5px;
    background-repeat: no-repeat; }
  .ftext mark.lock { color: #ffe1c6; text-shadow: 0 0 14px rgba(224,145,90,.7); }
  .ftext mark.lock::before { animation: lock-flash 1.1s ease-out; }
  @keyframes lock-flash { 0% { opacity: 0; transform: scale(1.35); } 15% { opacity: 1; transform: none; } 60% { opacity: 1; } 100% { opacity: 0; } }
  /* Ruta 2: texten under laserlinjen är ännu inte avläst */
  .js .fstep[data-fx="read"] .ftext { -webkit-mask-image: linear-gradient(#000 calc(var(--scan, 0px) - 6px), rgba(0,0,0,.3) calc(var(--scan, 0px) + 18px)); mask-image: linear-gradient(#000 calc(var(--scan, 0px) - 6px), rgba(0,0,0,.3) calc(var(--scan, 0px) + 18px)); }
  @media (max-width: 960px) { .flow { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 600px) { .flow { grid-template-columns: 1fr; } }
  /* Förhandsbilden av demon på Så fungerar det: mörk panel som resten av sidan, med kopparfärgad startknapp */
  .page-hero .demo-thumb { background: radial-gradient(120% 120% at 20% 0%, #18253f 0%, #0e172b 60%, #0a1122 100%); border-color: #1c2944; color: #f6efe5; box-shadow: 0 30px 60px -30px rgba(8,14,27,.7); }
  .page-hero .demo-thumb:hover { box-shadow: 0 34px 64px -28px rgba(8,14,27,.8), 0 0 0 1px rgba(255,199,150,.3); }
  .page-hero .thumb-frame { border-color: rgba(224,145,90,.3); }
  .page-hero .thumb-frame::after { background: linear-gradient(180deg, rgba(10,17,34,.4), rgba(10,17,34,.68)); }
  .page-hero .thumb-play { background: #e0915a; box-shadow: 0 0 0 0 rgba(224,145,90,.55), 0 10px 26px -6px rgba(224,145,90,.7); animation: play-pulse 2.4s ease-out infinite; }
  .page-hero .thumb-play svg { fill: #0b1222; }
  .page-hero .thumb-text span { color: #a9b1bf; }
  @keyframes play-pulse { 0% { box-shadow: 0 0 0 0 rgba(224,145,90,.55), 0 10px 26px -6px rgba(224,145,90,.7); } 70%, 100% { box-shadow: 0 0 0 16px rgba(224,145,90,0), 0 10px 26px -6px rgba(224,145,90,.7); } }
  @media (prefers-reduced-motion: reduce) { .page-hero .thumb-play { animation: none; } }
  /* Frågorna på Så fungerar det: mörka paneler med en liten kopparetikett, som resten av sidan */
  .faq-grid.dark { counter-reset: q; }
  .faq-grid.dark .step { position: relative; counter-increment: q; background: radial-gradient(130% 100% at 20% 0%, #17233d 0%, #0d1528 60%, #0a1122 100%); border-color: #1c2944; color: #e9e1d6; transition: box-shadow .3s, opacity .7s, transform .7s; }
  .faq-grid.dark .step::before { content: "FRÅGA 0" counter(q); display: block; margin-bottom: 12px; font: 600 10.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .16em; color: #e0915a; }
  .faq-grid.dark .step:hover { box-shadow: inset 0 0 0 1px rgba(255,199,150,.3), 0 24px 50px -30px rgba(8,14,27,.7); }
  .faq-grid.dark h3, .faq-grid.dark h3 button { color: #f6efe5; }
  .faq-grid.dark p { color: #a9b1bf; }
  .faq-grid.dark h3 button::after { color: #ffc796; }
  @media (max-width: 860px) { .faq-grid.dark .step::before { margin: 0; padding: 16px 20px 0; } }
  /* Fler varianter av den mörka panelen, och sekretessavtalet på Säkerhet */
  .flow.two { grid-template-columns: 1fr 1fr; }
  .flow.three { grid-template-columns: repeat(3, 1fr); }
  @media (max-width: 860px) { .flow.two, .flow.three { grid-template-columns: 1fr; } }
  .nda-doc { position: absolute; left: 0; right: 0; top: 50px; height: var(--band, 300px); display: grid; place-items: center; pointer-events: none; }
  .nda-doc .sheet { grid-area: 1 / 1; height: calc(var(--band, 300px) - 10px); aspect-ratio: 300 / 390; border-radius: 3px; box-shadow: 0 34px 50px -24px rgba(0,0,0,.75), 0 2px 6px rgba(0,0,0,.35); }
  .nda-doc .back { background: linear-gradient(#e9e2d5, #d9d0c1); transform: rotate(5deg) translate(16px, 4px); opacity: .7; }
  .nda-doc .front { transform: rotate(-2.5deg); }
  .d-brand { font: 600 8px Inter, sans-serif; letter-spacing: 3px; fill: #14213d; }
  .d-meta, .d-label { font: 400 6.5px Inter, sans-serif; fill: #8a8f9c; }
  .d-title { font: 500 20px Garamond, Georgia, serif; letter-spacing: 3.5px; fill: #14213d; }
  .d-rule { stroke: #b5652b; stroke-width: 1; }
  .d-parties { font: 500 10px Garamond, Georgia, serif; font-style: italic; fill: #3b4660; }
  .d-body text { font: 400 6.6px Inter, sans-serif; fill: #5b6273; }
  .d-body .d-h { font-weight: 600; font-size: 7.4px; fill: #14213d; }
  .d-line { stroke: #c9c1b3; stroke-width: .6; }
  .d-date { font: 500 9px Garamond, Georgia, serif; font-style: italic; fill: #3b4660; }
  .d-sig { fill: none; stroke: #1e2d55; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
  .d-ring { font: 600 4.6px Inter, sans-serif; letter-spacing: .5px; fill: #5a2e10; }
  .d-seal { transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 1.5px 1.5px rgba(90,46,16,.45)); }
  .d-pen { opacity: 0; filter: drop-shadow(2px 4px 3px rgba(20,33,61,.35)); }
  /* Tillfällig bokningsruta (mejl och telefon) */
  #boka-mejl { padding: 32px; }
  #boka-mejl .form-title { color: #fff; }
  #boka-mejl .form-lead { color: rgba(255,255,255,.82); }
  #boka-mejl .boka-ring { margin: 18px 0 0; font-size: 14.5px; color: rgba(255,255,255,.75); }
  #boka-mejl .boka-ring a { color: #ffc796; white-space: nowrap; }
