/* === Bilteorien Landing — Tokens & Base === */
/* Self-hosted Geist (latin subset) — replaces the Google Fonts @import. */
@font-face{font-family:'Geist';font-style:normal;font-weight:100 900;font-display:swap;src:url('dist/fonts/geist-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:100 900;font-display:swap;src:url('dist/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  --bg: #FAF8F4;
  --bg-elev: #FFFFFF;
  --bg-soft: #F2EFE8;
  --ink: #0E1726;
  --ink-2: #2A3346;
  --muted: #6B7589;
  --muted-2: #9AA3B5;
  --line: #E8E3D8;
  --line-strong: #D6CFBF;

  --accent: #1B7FD6;          /* sky */
  --accent-deep: #0F5BA8;
  --accent-soft: #E6F1FB;
  --accent-ink: #06335E;

  --signal: #E8B23A;          /* warning amber, road sign */
  --signal-deep: #B5841A;
  --signal-soft: #FBF1D6;

  --good: #1F8A5B;
  --good-soft: #E2F2EA;
  --bad: #C2362B;
  --bad-soft: #FCE7E4;

  --plate: #FFCE2E;           /* NO license plate yellow */
  --plate-ink: #0E1726;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15,30,55,0.04), 0 1px 1px rgba(15,30,55,0.03);
  --shadow:    0 4px 14px rgba(15,30,55,0.06), 0 2px 4px rgba(15,30,55,0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15,30,55,0.18), 0 8px 16px rgba(15,30,55,0.06);

  --container: 1200px;
  --gutter: 24px;

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #0B1220;
  --bg-elev: #121A2C;
  --bg-soft: #0F1828;
  --ink: #F4F6FB;
  --ink-2: #D8DEEC;
  --muted: #9099AE;
  --muted-2: #6B7589;
  --line: #1F2A40;
  --line-strong: #2A3654;
  --accent-soft: #0F2238;
  --signal-soft: #2A2210;
  --good-soft: #0E2418;
  --bad-soft: #2A1310;
}

[data-accent="emerald"] {
  --accent: #1F8A5B;
  --accent-deep: #146043;
  --accent-soft: #E2F2EA;
  --accent-ink: #0B3A26;
}
[data-accent="indigo"] {
  --accent: #4B47C8;
  --accent-deep: #312E91;
  --accent-soft: #ECEBFA;
  --accent-ink: #1C1A52;
}
[data-accent="rust"] {
  --accent: #C45A2C;
  --accent-deep: #8E3F1C;
  --accent-soft: #FAEAE0;
  --accent-ink: #4A1F0D;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Section rhythm */
section { padding: 96px 0; position: relative; }
@media (max-width: 760px) { section { padding: 64px 0; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: middle;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 600; }
h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.028em; }
h3 { font-size: 22px; letter-spacing: -0.02em; }
p  { margin: 0; color: var(--ink-2); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--muted); }

.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 56px; }
.section-head h2 { color: var(--ink); }
.section-head p { font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; font-size: 15px;
  padding: 12px 18px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 6px 14px -4px color-mix(in oklab, var(--accent) 60%, transparent);
}
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: 16px 24px; font-size: 16px; }
.btn-block { width: 100%; }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* Cards */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); font-weight: 500;
}
.pill .dot-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--good) 60%, transparent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--good) 60%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Progress bar primitive */
.bar {
  height: 6px; background: var(--bg-soft); border-radius: 999px; overflow: hidden;
}
.bar > span {
  display: block; height: 100%; background: var(--accent); border-radius: 999px;
}

/* Utility */
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stack { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.grid { display: grid; }

/* Norway flag accent strip used in some places */
.no-flag-strip {
  display: inline-flex; height: 12px; border-radius: 2px; overflow: hidden;
  border: 1px solid var(--line);
}
.no-flag-strip i { display: block; height: 100%; }
.no-flag-strip i.r { background: #BA0C2F; width: 8px; }
.no-flag-strip i.w { background: #fff; width: 4px; }
.no-flag-strip i.b { background: #00205B; width: 10px; }
.no-flag-strip i.w2 { background: #fff; width: 4px; }
.no-flag-strip i.r2 { background: #BA0C2F; width: 8px; }

/* Subtle road-line decoration */
.road-line {
  position: absolute; left: 0; right: 0; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 12px, transparent 12px 24px);
}

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed; bottom: 12px; left: 12px; right: 12px;
  z-index: 40;
  display: none;
  background: var(--ink); color: var(--bg);
  padding: 14px 18px; border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  align-items: center; justify-content: space-between; gap: 12px;
}
.mobile-cta strong { color: var(--bg); }
.mobile-cta .price { color: color-mix(in oklab, var(--bg) 70%, var(--accent)); font-family: var(--font-mono); }
@media (max-width: 760px) { .mobile-cta { display: flex; } body { padding-bottom: 80px; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Selection */
::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); color: var(--ink); }

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* === Skip-to-content link (a11y / WCAG 2.4.1) — added 2026-05-20 === */
.skip-link {
  position: absolute;
  top: -64px;
  left: 8px;
  background: #000;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font: 600 14px/1.2 system-ui, -apple-system, sans-serif;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- Acquisition modal (Takk post-purchase survey) ---------- */
/* Hard-gated: no close button, no Esc, no click-outside.
   Uses --accent (Bil's theme accent — emerald/sky/etc per data-accent). */

.ack-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 38, 0.55);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.ack-overlay.is-open { opacity: 1; pointer-events: auto; }

.ack-modal {
  background: var(--card, #fff);
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.32), 0 2px 4px rgba(0,0,0,0.06);
  border: 1px solid var(--line, rgba(0,0,0,0.08));
  padding: 28px 24px 24px;
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.ack-overlay.is-open .ack-modal { transform: translateY(0) scale(1); }

.ack-eyebrow {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.ack-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 6px;
}
.ack-sub {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 20px;
  line-height: 1.5;
}

.ack-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}
.ack-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card, #fff);
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.12s ease, background 0.12s ease;
  min-height: 48px;
  user-select: none;
  position: relative;
}
.ack-option:hover { border-color: var(--accent); }
.ack-option:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.ack-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.ack-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.ack-radio {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--card, #fff);
  position: relative;
  transition: border-color 0.12s ease;
}
.ack-option.is-selected .ack-radio { border-color: var(--accent); }
.ack-option.is-selected .ack-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--accent);
  border-radius: 999px;
}

.ack-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink, #fff);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 20px -8px var(--accent);
  transition: filter 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.ack-submit:hover:not(:disabled) { filter: brightness(0.92); transform: translateY(-1px); }
.ack-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.ack-error {
  font-size: 13px;
  color: #c1432a;
  margin: 10px 0 0;
  text-align: center;
}

.ack-thanks { text-align: center; padding: 24px 8px; }
.ack-thanks-emoji { font-size: 36px; margin-bottom: 8px; }
.ack-thanks-text { font-size: 16px; color: var(--ink); font-weight: 600; }

body.ack-locked { overflow: hidden; }

@media (max-width: 480px) {
  .ack-modal { padding: 22px 18px 18px; border-radius: 16px; }
  .ack-title { font-size: 20px; }
  .ack-option { padding: 11px 12px; font-size: 14.5px; }
}