/* === Bevillingen.no — Tokens & Base === */
/* Self-hosted Geist (latin subset) — replaces the Google Fonts @import.
   Same files as Bil/dist/fonts (variable wght, byte-copied). */
@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: #FAF7F0;
  --bg-elev: #FFFFFF;
  --bg-soft: #F1ECDF;
  --ink: #1A1612;
  --ink-2: #322B23;
  --muted: #786C5B;
  --muted-2: #A89C87;
  --line: #E6DECD;
  --line-strong: #D2C6AC;

  /* Default accent: hub indigo (overridden per page via data-exam) */
  --accent: #3D3A99;
  --accent-deep: #25236C;
  --accent-soft: #ECEBF7;
  --accent-ink: #14133F;

  --signal: #D8A437;          /* warm gold — license-y */
  --signal-deep: #A0761A;
  --signal-soft: #F8EBC6;

  --good: #1F7A52;
  --good-soft: #DDEEE3;
  --bad: #B53326;
  --bad-soft: #F8DED9;

  --plate-ink: #1A1612;

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

  --shadow-sm: 0 1px 2px rgba(26,22,18,0.04), 0 1px 1px rgba(26,22,18,0.03);
  --shadow:    0 4px 14px rgba(26,22,18,0.06), 0 2px 4px rgba(26,22,18,0.04);
  --shadow-lg: 0 24px 48px -12px rgba(26,22,18,0.18), 0 8px 16px rgba(26,22,18,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;
}

/* Hub — neutral indigo / warm beige */
[data-exam="hub"] {
  --accent: #3D3A99;
  --accent-deep: #25236C;
  --accent-soft: #ECEBF7;
  --accent-ink: #14133F;
}

/* Etablererprøven — warm sienna / hospitality */
[data-exam="etablerer"] {
  --bg: #FBF6EE;
  --bg-soft: #F1E7D3;
  --line: #E4D6B8;
  --line-strong: #CFBE99;
  --accent: #B4541F;
  --accent-deep: #7F3812;
  --accent-soft: #F7E3D2;
  --accent-ink: #3F1A09;
  --signal: #D8A437;
}

/* Skjenkebevilling — wine red / bar & restaurant */
[data-exam="skjenke"] {
  --bg: #FBF6F3;
  --bg-soft: #F2E5DF;
  --line: #E8D2CA;
  --line-strong: #D2B0A4;
  --accent: #8B2D3E;
  --accent-deep: #5C1822;
  --accent-soft: #F4DDE1;
  --accent-ink: #2F0A12;
  --signal: #D8A437;
}

/* Salgsbevilling — deep teal / retail (vinmonopol vibe) */
[data-exam="salg"] {
  --bg: #F4F7F4;
  --bg-soft: #E2EAE2;
  --line: #C9D6C9;
  --line-strong: #A7BAA7;
  --accent: #1A5A4F;
  --accent-deep: #0E372F;
  --accent-soft: #D5E6E0;
  --accent-ink: #052119;
  --signal: #D8A437;
}

[data-theme="dark"] {
  --bg: #14110D;
  --bg-elev: #1D1812;
  --bg-soft: #19150F;
  --ink: #F6F1E6;
  --ink-2: #DDD3BF;
  --muted: #9E947F;
  --muted-2: #6A6253;
  --line: #2A2418;
  --line-strong: #3A3221;
  --accent-soft: #2A2238;
  --signal-soft: #2A2210;
  --good-soft: #102818;
  --bad-soft: #2A1310;
}

* { 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 */
.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; }

/* 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; }
