  /* Layout: én lesekolonne som et dreiebok-ark – timekoder i margen, «telefonen» som blikkfang øverst. */
  :root {
    --bg: #eef0f3;
    --paper: #ffffff;
    --ink: #14171f;
    --muted: #5b6272;
    --line: #d6dae2;
    --accent: #2747d6;
    --accent-ink: #ffffff;
    --accent-text: #2747d6;
    --tag: #e3e8fb;
    --code-bg: #14171f;
    --code-fg: #e8ebf2;
    --ok: #1f8a4c;
    --font-display: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
    --font-body: "Poppins", "Segoe UI", Roboto, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0f1218; --paper: #171b24; --ink: #eef0f5; --muted: #9aa2b3; --line: #2a303d;
      --accent: #7f97ff; --accent-ink: #0f1218; --accent-text: #7f97ff; --tag: #1f2740; --code-bg: #0a0c11; --code-fg: #e8ebf2; --ok: #4cc785;
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0f1218; --paper: #171b24; --ink: #eef0f5; --muted: #9aa2b3; --line: #2a303d;
    --accent: #7f97ff; --accent-ink: #0f1218; --accent-text: #7f97ff; --tag: #1f2740; --code-bg: #0a0c11; --code-fg: #e8ebf2; --ok: #4cc785;
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  body {
    background: var(--bg); color: var(--ink);
    font: 400 17px/1.6 var(--font-body);
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .wrap { max-width: 860px; margin: 0 auto; padding-block: 40px 80px; display: flex; flex-direction: column; gap: 28px; }
  h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
  h1 { font-size: clamp(42px, 7vw, 68px); line-height: 1; font-weight: 800; }
  h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.1; font-weight: 700; }
  h3 { font-size: 20px; font-weight: 700; }
  p { margin: 0; max-width: 65ch; }
  a { color: var(--accent-text); }
  .tc { font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

  /* Hero */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 36px; align-items: center; padding-block: 12px; }
  .hero .lead { font-size: 19px; color: var(--muted); margin-top: 18px; }
  .hero .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
  .chip { background: var(--tag); color: var(--ink); font: 500 13px/1 var(--font-mono); padding: 8px 10px; border-radius: 6px; }
  .phone { position: relative; width: 220px; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 30px; padding: 8px; background: var(--ink); box-shadow: 0 24px 60px rgba(20, 23, 31, 0.25); }
  .phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 23px; display: block; background: #000; }
  .lyd-knapp { position: absolute; top: 18px; right: 18px; font: 500 12px/1 var(--font-mono); background: rgba(20, 23, 31, 0.85); color: #fff; border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
  .phone .res { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); white-space: nowrap; }

  /* Sections */
  section.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  .sec-head { display: flex; flex-direction: column; gap: 8px; }
  .get { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
  .get div { border-top: 2px solid var(--accent); padding-top: 12px; }
  .get b { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; }
  .get span { color: var(--muted); font-size: 15px; }

  ol.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; counter-reset: s; }
  ol.flow li { counter-increment: s; background: var(--bg); border-radius: 10px; padding: 16px; font-size: 15px; }
  ol.flow li::before { content: "0" counter(s) ":00"; display: block; font: 500 12px/1 var(--font-mono); color: var(--accent-text); margin-bottom: 10px; letter-spacing: 0.06em; }
  ol.flow b { display: block; font-size: 16px; margin-bottom: 2px; }

  .steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; counter-reset: st; }
  .steps > li { counter-increment: st; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
  .steps > li::before { content: counter(st); width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 15px/32px var(--font-display); text-align: center; }
  .steps .body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .muted { color: var(--muted); font-size: 15px; }

  .cmd { position: relative; background: var(--code-bg); color: var(--code-fg); border-radius: 10px; padding: 14px 92px 14px 16px; font: 400 14px/1.55 var(--font-mono); overflow-x: auto; white-space: pre; }
  .cmd .lbl { display: block; color: #8f98ad; font-size: 12px; margin-bottom: 4px; white-space: normal; }
  .copy { position: absolute; top: 10px; right: 10px; font: 500 12px/1 var(--font-mono); background: #2a3040; color: #e8ebf2; border: 0; border-radius: 6px; padding: 8px 10px; cursor: pointer; }
  .copy:hover { background: #39415a; }
  .copy:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  .tabs { display: flex; gap: 6px; flex-wrap: wrap; }
  .tabs button { font: 500 14px/1 var(--font-body); border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
  .tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

  .prompts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
  .prompt { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .prompt header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg); }
  .prompt header b { font-size: 15px; }
  .prompt .txt { padding: 14px; font: 400 15px/1.55 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
  .prompt .copy { position: static; }

  .styles { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 12px; }
  .style { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
  .swatch { aspect-ratio: 9 / 10; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.05; }
  .swatch i { font-style: normal; display: block; width: 36px; height: 6px; border-radius: 3px; }
  .style p { padding: 10px 12px 12px; font-size: 14px; color: var(--muted); }
  .style p b { display: block; color: var(--ink); font-size: 15px; }

  .checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
  .checks label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--bg); cursor: pointer; font-size: 15px; }
  .checks input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-text); flex: none; }
  .checks input:checked + span { color: var(--muted); text-decoration: line-through; }
  .progress { font: 500 13px/1 var(--font-mono); color: var(--ok); }

  details { border-bottom: 1px solid var(--line); padding-block: 14px; }
  details:last-child { border-bottom: 0; }
  summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
  summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent-text); }
  details[open] summary::after { content: "–"; }
  details p { margin-top: 10px; color: var(--muted); font-size: 15px; }

  table { border-collapse: collapse; width: 100%; font-size: 15px; }
  .tbl { overflow-x: auto; }
  th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
  th { font: 500 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
  code { font-family: var(--font-mono); font-size: 0.9em; background: var(--tag); padding: 1px 5px; border-radius: 4px; }
  footer { color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }

  @media (max-width: 640px) {
    .hero { grid-template-columns: 1fr; }
    .phone { justify-self: center; width: 200px; margin-bottom: 26px; }
  }
  @media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }

  .knapp { display: inline-block; margin-top: 24px; background: var(--accent); color: var(--accent-ink); font: 700 17px/1 var(--font-body); padding: 16px 22px; border-radius: 10px; text-decoration: none; border: 0; cursor: pointer; }
  .knapp:hover { filter: brightness(1.08); }
  .knapp.stor { width: 100%; font-size: 18px; padding: 18px 22px; margin-top: 8px; }
  .knapp[disabled] { opacity: 0.6; cursor: wait; }
  .kjop { border: 2px solid var(--accent); }
  .pris { display: flex; align-items: baseline; gap: 10px; }
  .pris b { font: 800 56px/1 var(--font-display); letter-spacing: -0.03em; }
  .pris span { color: var(--muted); }
  .haker { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
  .haker li { padding-left: 28px; position: relative; }
  .haker li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
  .samtykke { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; background: var(--bg); padding: 12px 14px; border-radius: 8px; cursor: pointer; }
  .samtykke input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent-text); }
  .feil { color: #c62828; font-weight: 600; margin-top: 10px; }
  .varsel { background: var(--tag); border-radius: 10px; padding: 14px 16px; }
  .last-ned { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
  .last-ned .knapp { margin-top: 0; }
  .lenke-boks { display: flex; gap: 8px; align-items: center; background: var(--bg); border-radius: 8px; padding: 8px 8px 8px 12px; min-width: 0; }
  .lenke-boks code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; }
  .lenke-boks button { position: static; }
  form { display: flex; flex-direction: column; gap: 12px; }

  .topp { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .merke { display: inline-flex; align-items: center; gap: 8px; font: 600 20px/1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
  .merke img { display: block; }
  .topp-kjop { font: 600 14px/1 var(--font-body); color: var(--accent-text); text-decoration: none; white-space: nowrap; }
  .abonner .rad { display: flex; gap: 10px; flex-wrap: wrap; }
  .abonner input[type="email"] { flex: 1 1 220px; min-width: 0; font: 400 17px/1 var(--font-body); padding: 15px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
  .abonner .knapp { margin-top: 0; }
  .ok { color: var(--ok); font-weight: 600; }
  .skjult { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
