/* Poengvakt – nattfly og boardingkort. Marineblå flate øverst, rolige blekkgrå flater under, kobolt på handlinger. */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --raised: #eceff4;
  --text: #0f1a2e;
  --text-2: #4b5565;
  --muted: #6b7487;
  --line: rgba(15, 26, 46, 0.09);
  --accent: #2457d6;
  --accent-hover: #1d47b8;
  --accent-ink: #2457d6;      /* aksent som tekst på lys flate */
  --navy: #0a1628;
  --navy-2: #11223d;
  --on-navy: #eef2f8;
  --on-navy-2: #a7b3c8;
  --sky: #8ab4ff;
  --paper: #ffffff;
  --paper-line: rgba(15, 26, 46, 0.14);
  --warn: #9a4a00;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d14;
    --surface: #11141c;
    --raised: #1a1e28;
    --text: #eef0f5;
    --text-2: #a3a9b8;
    --muted: #7a8296;
    --line: rgba(238, 240, 245, 0.08);
    --accent: #2f62e0;
    --accent-hover: #3b6ef0;
    --accent-ink: #8ab4ff;
    --navy: #070b14;
    --navy-2: #0e1830;
    --paper: #11141c;
    --paper-line: rgba(238, 240, 245, 0.14);
    --warn: #f0a35e;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-underline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-weight: 500; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 16px; line-height: 1.35; }
p { margin: 0; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--accent-ink); margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--text-2); margin-top: 12px; }

/* ---------- Ikoner ---------- */
.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-quiet { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-quiet:hover { background: var(--raised); }
.btn-light { background: var(--on-navy); color: #0a1628; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-light:hover { background: #ffffff; }
.btn-ghost { background: transparent; color: var(--on-navy); border-color: rgba(238, 242, 248, 0.18); }
.btn-ghost:hover { background: rgba(238, 242, 248, 0.06); }
.btn[aria-disabled="true"] { background: var(--raised); color: var(--muted); border-color: transparent; cursor: default; pointer-events: none; }

/* ---------- Toppfelt og navy-flate ---------- */
.navy { background: var(--navy); color: var(--on-navy); }
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--navy) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(238, 242, 248, 0.08); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none; font-size: 17px; font-weight: 600; }
.brand .mark { width: 22px; height: 22px; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.top nav a { color: var(--on-navy-2); text-decoration: none; transition: color 160ms var(--ease); }
.top nav a:hover { color: var(--on-navy); }
.top nav .btn { height: 36px; padding: 0 16px; font-size: 14px; color: #0a1628; }
@media (max-width: 680px) { .top nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 112px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero .eyebrow { color: var(--sky); }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; max-width: 11em; }
.hero .lead { font-size: 19px; line-height: 1.55; color: var(--on-navy-2); max-width: 32rem; margin-top: 20px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: clamp(36px, 9vw, 44px); }
}

/* ---------- Boardingkortet (blikkfanget) ---------- */
.ticket {
  --notch: var(--navy);
  position: relative; background: var(--paper); color: var(--text); border-radius: 16px; padding: 20px 24px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
  max-width: 460px; width: 100%; justify-self: end;
}
.on-light .ticket, .ticket.on-light { --notch: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(15, 26, 46, 0.08); border: 1px solid var(--line); }
.t-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.t-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 14px; }
.t-brand .mark { width: 18px; height: 18px; }
.t-route { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 16px; margin: 28px 0 24px; }
.t-end { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.t-to { text-align: right; align-items: flex-end; }
.t-label { font-size: 12px; color: var(--muted); }
.t-fig { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 28px; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.t-big { font-size: 44px; color: var(--accent-ink); }
.t-unit { font-size: 13px; color: var(--text-2); }
.t-line { position: relative; height: 24px; margin-bottom: 6px; color: var(--muted); }
.t-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed var(--paper-line); }
.t-line .i { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%) rotate(45deg);
  background: var(--paper); padding: 0 2px; box-sizing: content-box; color: var(--accent-ink); }
.t-perf { position: relative; margin: 0 -24px; border-top: 1.5px dashed var(--paper-line); }
.t-perf::before, .t-perf::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--notch); }
.t-perf::before { left: -8px; } .t-perf::after { right: -8px; }
.t-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.t-stats dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.t-stats dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 500; }
.t-extra { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--raised); font-size: 14px; color: var(--text-2); }
.t-extra p + p { margin-top: 6px; }
.t-extra b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.t-cond { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.ticket .btn { width: 100%; }
.t-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
@media (max-width: 420px) { .t-big { font-size: 36px; } .t-fig { font-size: 22px; } .ticket { padding: 16px 20px 20px; } .t-perf { margin: 0 -20px; } }

/* ---------- Tall-stripe ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.facts > div { padding: 32px 24px 32px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.facts span { font-size: 14px; color: var(--text-2); }
@media (max-width: 680px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { padding: 20px 0; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Slik virker det: en rute med tre stopp ---------- */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.route::before { content: ""; position: absolute; top: 15px; left: 32px; right: 32px; border-top: 1.5px dashed var(--paper-line); }
.route li { position: relative; }
.route .stop { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--accent-ink); color: var(--accent-ink); font-family: var(--mono); font-size: 13px; font-weight: 500; margin-bottom: 20px; }
.route li:last-child .stop { background: var(--accent); border-color: var(--accent); color: #fff; }
.route p { color: var(--text-2); margin-top: 8px; font-size: 15px; }
@media (max-width: 760px) {
  .route { grid-template-columns: 1fr; gap: 28px; }
  .route::before { top: 16px; bottom: 16px; left: 15px; right: auto; border-top: 0; border-left: 1.5px dashed var(--paper-line); }
  .route li { padding-left: 52px; }
  .route .stop { position: absolute; left: 0; top: 0; }
}

/* ---------- Kalkulator ---------- */
.calc { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.field { display: block; }
.field + .field { margin-top: 16px; }
.field span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field input, .field select { width: 100%; height: 44px; font: inherit; font-size: 16px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--raised); color: var(--text); transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.field input:hover, .field select:hover { border-color: var(--paper-line); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.field.num input { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.calc .ticket { justify-self: stretch; max-width: none; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Last ned ---------- */
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.dl-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.dl-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; }
.dl-row + .dl-row { border-top: 1px solid var(--line); }
.dl-row h3 { font-size: 15px; }
.dl-row p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.dl-row .btn { height: 36px; padding: 0 14px; font-size: 14px; }
.dl-featured { background: var(--navy); color: var(--on-navy); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.dl-featured .eyebrow { color: var(--sky); margin: 0; }
.dl-featured h3 { font-size: 24px; letter-spacing: -0.01em; }
.dl-featured p { color: var(--on-navy-2); }
.dl-featured .btn { align-self: flex-start; margin-top: auto; }
.dl-featured .btn[aria-disabled="true"] { background: rgba(238, 242, 248, 0.08); color: var(--on-navy-2); }
.dl-hint { font-size: 14px; color: var(--muted); margin-top: 16px; }
@media (max-width: 860px) { .downloads { grid-template-columns: 1fr; } }

/* ---------- Regler ---------- */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 48px; }
.rules > div { display: grid; grid-template-columns: 16px 1fr; gap: 12px; }
.rules .i { margin-top: 4px; color: var(--accent-ink); }
.rules p { color: var(--text-2); font-size: 15px; margin-top: 4px; }
@media (max-width: 680px) { .rules { grid-template-columns: 1fr; } }

/* ---------- Spørsmål ---------- */
.faq { max-width: 720px; }
details { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 500; }
details summary::-webkit-details-marker { display: none; }
details summary .i { color: var(--muted); transition: transform 200ms var(--ease); }
details[open] summary .i { transform: rotate(45deg); }
details p { color: var(--text-2); padding-bottom: 20px; margin-top: -4px; }

/* ---------- Bunn ---------- */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--text-2); }

/* ---------- Undersider ---------- */
.page-head { padding: 56px 0 64px; }
.page-head h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.page-head p { color: var(--on-navy-2); margin-top: 12px; max-width: 36rem; }
.narrow { max-width: 680px; }
.search { display: flex; gap: 8px; margin-top: 24px; max-width: 520px; }
.search input { flex: 1; min-width: 0; height: 44px; font: inherit; font-size: 16px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(238, 242, 248, 0.16);
  background: rgba(238, 242, 248, 0.06); color: var(--on-navy); }
.search input::placeholder { color: var(--on-navy-2); }
.search input:focus { outline: none; border-color: var(--sky); }
.lift { margin-top: -40px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.prose h2 { font-size: 20px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 0; }
.prose li + li { margin-top: 8px; }
.warn { color: var(--warn); font-size: 14px; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--raised); padding: 1px 6px; border-radius: 4px; }
.steps-list { color: var(--text-2); padding-left: 20px; }
.steps-list li + li { margin-top: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 420ms var(--ease) backwards; }
  .rise-2 { animation-delay: 60ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}

/* =====================================================================
   Forsiden: lys og innbydende, med én tydelig installer-knapp,
   en animert nettleser som viser Poengvakt i bruk, og tre trinn under.
   ===================================================================== */
.btn-xl { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 999px; }
.btn-text { background: transparent; color: var(--text); padding: 0 12px; }
.btn-text:hover { color: var(--accent-ink); }
.btn-accent { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent); }

/* Svevende toppfelt */
.top-float { background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: 12px; }
.top-float .wrap { height: auto; display: block; }
.top-bar { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 12px 0 20px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 24px rgba(15, 26, 46, 0.06); }
.top-float .brand { color: var(--text); }
.top-float nav a { color: var(--text-2); }
.top-float nav a:hover { color: var(--text); }
.top-float nav .btn { height: 40px; padding: 0 18px; border-radius: 999px; color: #fff; }
.top-float nav .btn:hover { color: #fff; }

/* Toppseksjon */
.hero-light { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero-light::before { content: ""; position: absolute; inset: -120px 0 auto; height: 640px; z-index: -1;
  background: radial-gradient(60% 60% at 75% 30%, color-mix(in srgb, var(--sky) 30%, transparent), transparent 70%),
              radial-gradient(40% 50% at 10% 10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.hero-light .wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.hero-light h1 { font-size: clamp(40px, 5.4vw, 62px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 600; max-width: 11em; }
.hero-light .lead { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 31rem; margin-top: 20px; }
.hero-light .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--paper-line); margin-right: 14px; }
.trust b { font-family: var(--mono); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .hero-light { padding: 28px 0 24px; }
  .hero-light .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-light h1 { font-size: clamp(34px, 9vw, 46px); }
  .hero-light .lead { font-size: 16px; margin-top: 14px; }
  .hero-light .actions { margin-top: 22px; }
  .trust { margin-top: 18px; font-size: 13px; }
  .demo { justify-self: stretch; }
  .trust span + span::before { margin-right: 6px; }
}

/* ---------- Demo: en liten nettleser som spiller av seg selv ---------- */
.demo { position: relative; margin: 0; width: 100%; max-width: 640px; justify-self: end; container-type: inline-size; }
.bw { position: relative; aspect-ratio: 4 / 3; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 2.6cqw; font-size: 2.3cqw; line-height: 1.35;
  box-shadow: 0 40px 80px -20px rgba(15, 26, 46, 0.28), 0 4px 12px rgba(15, 26, 46, 0.06); }
@media (max-width: 560px) { .bw { aspect-ratio: 4 / 5; } }
.bw-bar { display: flex; align-items: center; gap: 1.8cqw; height: 8.4cqw; padding: 0 2.2cqw; background: var(--raised); border-bottom: 1px solid var(--line); flex: none; }
.bw-dots { display: flex; gap: 0.9cqw; }
.bw-dots span { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--paper-line); }
.bw-url { flex: 1; min-width: 0; height: 5.2cqw; display: flex; align-items: center; gap: 1cqw; padding: 0 2cqw; border-radius: 99px;
  background: var(--surface); color: var(--text-2); font: 400 2cqw/1 var(--mono); white-space: nowrap; overflow: hidden; }
.bw-url svg { width: 2.2cqw; height: 2.2cqw; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.bw-url span { transition: opacity 200ms; }
.bw-ext { position: relative; width: 5cqw; height: 5cqw; display: grid; place-items: center; }
.bw-ext .mark { width: 3.6cqw; height: 3.6cqw; }
.bw-badge { position: absolute; right: -1.4cqw; bottom: -0.6cqw; padding: 0.4cqw 0.7cqw; border-radius: 1cqw; background: var(--accent); color: #fff;
  font: 500 1.5cqw/1 var(--mono); transform: scale(0); transition: transform 320ms var(--ease); }
.demo.badge .bw-badge { transform: scale(1); }
.bw-page { position: relative; flex: 1; overflow: hidden; }

.sc { position: absolute; inset: 0; padding: 3.4cqw 4cqw; opacity: 0; transition: opacity 380ms var(--ease); }
.demo[data-scene="store"] .sc-store, .demo[data-scene="via"] .sc-via, .demo[data-scene="cart"] .sc-cart { opacity: 1; }
.sc h4 { font-size: 3.4cqw; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.bar { display: block; height: 1.3cqw; border-radius: 1cqw; background: var(--raised); margin-top: 1.4cqw; }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }

.st-head { display: flex; align-items: center; gap: 2.4cqw; padding-bottom: 2.6cqw; border-bottom: 1px solid var(--line); }
.st-head b { font-size: 2.8cqw; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 1cqw; }
.st-head i { width: 7cqw; height: 1.2cqw; border-radius: 1cqw; background: var(--raised); }
.st-cart { margin-left: auto; font-size: 1.9cqw; color: var(--muted); }
.st-prod { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; margin-top: 4cqw; align-items: start; }
.st-info .bar.w40 { margin: 0 0 1.6cqw; }
.st-price { font: 500 3cqw/1 var(--mono); margin: 1.6cqw 0 0.6cqw; }
.st-buy { display: inline-block; margin-top: 3cqw; padding: 1.5cqw 3cqw; border-radius: 99px; background: var(--text); color: var(--bg); font-size: 2cqw; font-weight: 500;
  transition: transform 120ms var(--ease); }
.st-img { aspect-ratio: 1; border-radius: 2cqw; display: grid; place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--sky) 40%, var(--surface)), color-mix(in srgb, var(--sky) 12%, var(--surface))); }
.bottle { position: relative; display: block; width: 26%; height: 52%; border-radius: 1.4cqw 1.4cqw 1.8cqw 1.8cqw; background: var(--surface); box-shadow: 0 1cqw 2.4cqw rgba(15, 26, 46, 0.14); }
.bottle::before { content: ""; position: absolute; left: 30%; right: 30%; top: -18%; height: 20%; border-radius: 0.6cqw 0.6cqw 0 0; background: var(--text); }

.sc-via { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4cqw; text-align: center; }
.spin { width: 6cqw; height: 6cqw; border-radius: 50%; border: 0.7cqw solid var(--raised); border-top-color: var(--accent); margin-bottom: 1.4cqw; }
.demo[data-scene="via"] .spin { animation: pv-spin 800ms linear infinite; }
@keyframes pv-spin { to { transform: rotate(360deg); } }
.dim { color: var(--muted); }

.ct-row { display: grid; grid-template-columns: 7cqw 1fr auto; gap: 2.4cqw; align-items: center; margin-top: 3cqw; padding-bottom: 3cqw; border-bottom: 1px solid var(--line); }
.ct-thumb { aspect-ratio: 1; border-radius: 1.2cqw; display: grid; place-items: center; background: color-mix(in srgb, var(--sky) 25%, var(--surface)); }
.ct-thumb .bottle { width: 30%; height: 56%; }
.ct-total { display: flex; justify-content: space-between; margin-top: 2.6cqw; font-weight: 600; font-size: 2.6cqw; }
.sc-cart { padding-right: 50cqw; } /* plass til Poengvakt-kortet til høyre */
.sc-cart .st-buy { margin-top: 3.4cqw; }

/* Det ekte Poengvakt-kortet og fanen (pv-card.js), skalert ned til nettleservinduet */
.pv-card-host { position: absolute; right: 2.4cqw; bottom: 2.4cqw; z-index: 1; transform-origin: bottom right; scale: var(--s, 0.6);
  opacity: 0; translate: 0 2cqw; transition: opacity 240ms var(--ease), translate 240ms var(--ease); pointer-events: none; }
.demo.card-open .pv-card-host { opacity: 1; translate: 0 0; }
.pv-tab-host { position: absolute; right: 0; top: 46%; z-index: 1; transform-origin: right center; scale: var(--s, 0.6);
  translate: 110% -50%; transition: translate 420ms var(--ease); pointer-events: none; }
.demo.tab-in .pv-tab-host { translate: 0 -50%; }

/* Musepekeren */
.cursor { position: absolute; left: 70%; top: 85%; width: 4cqw; height: 4cqw; z-index: 3; pointer-events: none;
  fill: var(--text); stroke: var(--surface); stroke-width: 1.4; stroke-linejoin: round;
  filter: drop-shadow(0 0.4cqw 0.6cqw rgba(0, 0, 0, 0.25));
  transition: left 900ms var(--ease), top 900ms var(--ease), transform 140ms var(--ease), opacity 300ms; }
.cursor.click { transform: scale(0.82); }

.demo-pause { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--text-2); cursor: pointer;
  opacity: 0; transition: opacity 200ms; }
.demo:hover .demo-pause, .demo-pause:focus-visible, .demo.paused .demo-pause { opacity: 1; }
.demo-pause svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.demo-fade .bw-page > * { transition: opacity 400ms; opacity: 0 !important; }

/* ---------- Trinn ---------- */
.steps-sec { padding: 32px 0 72px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { position: relative; padding: 24px 24px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease), transform 300ms var(--ease); }
.steps li.is-active { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 12px 32px -12px color-mix(in srgb, var(--accent) 35%, transparent); transform: translateY(-2px); }
.step-pill { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 500;
  background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-ink); margin-bottom: 16px; transition: background-color 300ms, color 300ms; }
.steps li.is-active .step-pill { background: var(--accent); color: #fff; }
.steps h3 { font-size: 18px; letter-spacing: -0.01em; }
.steps p { color: var(--text-2); font-size: 15px; margin-top: 8px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps-sec { padding-bottom: 48px; } }

/* Utsnitt av kortet i hvert trinn */
.step-media { position: relative; height: 240px; margin: -24px -24px 20px; overflow: hidden; border-radius: 19px 19px 0 0;
  background: radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--sky) 30%, transparent), transparent 75%), var(--raised);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.mini-host { position: absolute; left: 50%; top: var(--y, 20px); translate: -50% 0; transform-origin: top center; scale: var(--s, 0.66);
  filter: drop-shadow(0 10px 24px rgba(10, 22, 40, 0.16)); }
.step-media .cursor { width: 22px; height: 22px; transition: none; }
.steps li { padding-top: 24px; }

/* ---------- Avsluttende oppfordring ---------- */
.cta-band { text-align: center; padding: 88px 0; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.03em; font-weight: 600; }
.cta-band p { color: var(--on-navy-2); margin: 12px auto 28px; max-width: 30rem; }
.home footer { border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .cursor { display: none; }
  .sc, .pv, .bw-badge, .steps li { transition: none; }
}
