/* Konfirmasjonsquiz — produkt-stylesheet (varm nordisk branding)
   Brukes på alle produkt- og gjest-sider. theme-applier.js overstyrer
   variablene på gjest-sider basert på kundens valgte tema. */

:root {
  /* Default-palett: Varm Nordisk (samme som landing) */
  --bg: #fbf7f1;
  --bg-deep: #f3ece1;
  --primary: #3d5a4a;
  --primary-soft: #5a7a6a;
  --accent: #7ea886;
  --accent-soft: #a8c4ad;
  --text: #2a2620;
  --text-soft: #6b5f50;
  --gold: #d4a84b;
  --line: #e8dfcf;
  --card: #ffffff;
  --shadow: 0 24px 48px -24px rgba(42, 38, 32, 0.18), 0 8px 18px -10px rgba(42, 38, 32, 0.10);
  --radius: 22px;
  --bg-grad-1: radial-gradient(circle at 12% 8%, var(--bg-deep), transparent 45%);
  --bg-grad-2: radial-gradient(circle at 88% 92%, var(--accent-soft), transparent 50%);
  --bg-base: var(--bg);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: 'Quicksand', 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg-grad-1), var(--bg-grad-2), var(--bg-base);
  color: var(--text);
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Subtile bakgrunns-aksenter */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.4;
}
body::before {
  width: 320px; height: 320px;
  background: var(--accent-soft);
  top: -120px; left: -120px;
}
body::after {
  width: 280px; height: 280px;
  background: var(--gold);
  bottom: -80px; right: -100px;
  opacity: 0.25;
}

h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: 1.9rem; line-height: 1.15; margin-bottom: 4px; }
h2 { font-size: 1.5rem; line-height: 1.2; }
h3 { font-size: 1.1rem; line-height: 1.3; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Kort */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  width: 100%;
  max-width: 480px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.card.wide { max-width: 720px; text-align: left; }
.card.wide h1 { text-align: center; }

.subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 18px;
  line-height: 1.5;
}
.subtitle.small {
  font-size: 0.85rem;
  font-style: normal;
  font-family: 'Quicksand', sans-serif;
  opacity: 0.85;
  margin-top: -4px;
}

.emoji-row {
  font-size: 1.8rem;
  margin-bottom: 14px;
  letter-spacing: 0.2em;
  line-height: 1;
}

/* Eyebrow (i product) */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

/* Skjema-elementer */
label {
  display: block;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 14px 0 6px;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="file"],
select,
textarea {
  width: 100%;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 8px;
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}
textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.char-counter {
  text-align: right;
  font-size: 0.82rem;
  color: var(--text-soft);
  opacity: 0.8;
  margin-top: 2px;
  margin-bottom: 14px;
}

/* Knapper */
.btn,
button[type="button"]:not(.btn-text):not(.btn-secondary):not(.option):not(.theme-card):not(.plan-card):not(.radio-card):not(.faq-q):not(.theme-chip),
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--bg);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 20px -8px rgba(61, 90, 74, 0.4);
  width: 100%;
  margin-top: 8px;
}
.btn-primary {
  background: var(--primary);
  color: var(--bg);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  width: 100%;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 20px -8px rgba(61, 90, 74, 0.4);
}
.btn:hover, .btn-primary:hover,
button[type="button"]:not(.btn-text):not(.btn-secondary):not(.option):not(.theme-card):not(.plan-card):not(.radio-card):not(.faq-q):not(.theme-chip):hover {
  background: #2f4a3c;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 12px 28px -8px rgba(61, 90, 74, 0.5);
}
button:disabled, .btn:disabled, .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: var(--bg);
  color: var(--primary);
  border: 1.5px solid var(--line);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-text {
  background: transparent;
  color: var(--text-soft);
  font-size: 0.9rem;
  padding: 8px 0;
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  border: none;
}
.btn-text:hover { color: var(--primary); }

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}
.btn-row .btn-primary, .btn-row .btn-secondary, .btn-row .btn { flex: 1; min-width: 140px; }

.error {
  background: rgba(232, 90, 134, 0.08);
  color: #b94c70;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-top: 12px;
  text-align: left;
}

/* Floating decor (subtile emojis) */
.floating-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.floating-decor span {
  position: absolute;
  font-size: 1.6rem;
  opacity: 0.35;
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}
.floating-decor > *:nth-child(1) { top: 6%; left: 5%; animation-delay: 0s; }
.floating-decor > *:nth-child(2) { top: 14%; right: 7%; animation-delay: 1.2s; }
.floating-decor > *:nth-child(3) { bottom: 10%; left: 8%; animation-delay: 2.4s; }
.floating-decor > *:nth-child(4) { bottom: 18%; right: 10%; animation-delay: 3.6s; }
.floating-decor > *:nth-child(5) { top: 38%; left: 2%; animation-delay: 1.8s; }
.floating-decor > *:nth-child(6) { top: 50%; right: 3%; animation-delay: 5s; }
.floating-decor > *:nth-child(7) { top: 28%; left: 14%; animation-delay: 0.6s; }
.floating-decor > *:nth-child(8) { bottom: 30%; right: 18%; animation-delay: 4.2s; }
.floating-decor > *:nth-child(9) { top: 70%; left: 18%; animation-delay: 2.8s; }

/* Quiz */
.q-counter {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}
.progress {
  height: 6px;
  background: var(--bg-deep);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.question-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}
.question-text {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.option {
  background: var(--bg);
  border: 1.5px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease, background 0.15s ease;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.option:hover { border-color: var(--primary); transform: translateY(-1px); }
.option.disabled { cursor: not-allowed; opacity: 0.7; }
.option.correct {
  background: rgba(126, 168, 134, 0.18);
  border-color: var(--accent);
  color: var(--text);
}
.option.wrong {
  background: rgba(232, 90, 134, 0.10);
  border-color: #c97b8e;
  color: var(--text);
}

.feedback {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem;
  min-height: 24px;
  margin: 8px 0 10px;
}
.feedback.right { color: var(--accent); }
.feedback.wrong-text { color: #b94c70; }

/* Selfie-kamera */
.camera-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-deep);
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  margin: 14px 0;
  display: flex; align-items: center; justify-content: center;
}
.camera-wrap video, .camera-wrap img, .camera-wrap canvas {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.camera-wrap video { transform: scaleX(-1); }

/* Resultat */
.score-display {
  font-family: 'Lora', serif;
  font-size: 4rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 8px;
}
.score-label {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: 22px;
}

/* Toppliste */
.leaderboard {
  background: var(--bg-deep);
  border-radius: 16px;
  padding: 18px 16px;
  margin: 18px 0;
  text-align: left;
}
.leaderboard h3 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  text-align: center;
}
.leaderboard ol, .leaderboard ul {
  list-style: none;
  display: grid;
  gap: 4px;
}
.leaderboard li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.leaderboard li.you {
  border-color: var(--primary);
  background: rgba(126, 168, 134, 0.12);
}
.leaderboard li.empty-state {
  background: transparent;
  border: 1px dashed var(--line);
  text-align: center;
  justify-content: center;
  color: var(--text-soft);
  font-style: italic;
  padding: 20px;
}
.avatar, .avatar-fallback {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid var(--bg);
}
.avatar-fallback {
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.leaderboard .name {
  flex: 1;
  font-weight: 600;
  color: var(--text);
}
.leaderboard .score {
  font-weight: 700;
  color: var(--primary);
  font-family: 'Lora', serif;
  font-style: italic;
}
.empty-state {
  font-style: italic;
  color: var(--text-soft);
  text-align: center;
  padding: 20px 0;
}

/* Wizard */
.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}
.wizard-progress .step {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Lora', serif;
  font-style: italic;
}
.wizard-progress .step.active {
  background: var(--primary);
  color: var(--bg);
  transform: scale(1.1);
}
.wizard-progress .step.done {
  background: var(--accent);
  color: var(--bg);
}
.wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 12px;
}
.wizard-footer .btn-primary { width: auto; min-width: 160px; margin-top: 0; }

.hero-preview {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  margin: 12px auto;
  display: block;
}

/* Spørsmålredigerer (wizard step 2) */
.question-editor {
  background: var(--bg);
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0;
  border: 1.5px solid var(--line);
}
.question-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.q-num {
  background: var(--primary);
  color: var(--bg);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'Lora', serif;
  font-style: italic;
}
.q-text { width: 100%; margin-bottom: 8px; }
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.q-correct { margin-bottom: 0; }
.remove {
  background: transparent;
  color: #b94c70;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* Tema-velger (wizard step 3) */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.theme-card {
  border: 2.5px solid transparent;
  border-radius: 14px;
  padding: 22px 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: transform 0.15s, border-color 0.2s;
}
.theme-card:hover { transform: translateY(-2px); }
.theme-card.selected { border-color: var(--primary); }
.theme-card.dark { color: #fff; }
.theme-emoji { font-size: 1.6rem; margin-bottom: 8px; }
.theme-label { font-weight: 700; }

/* Icon-velger (wizard step 3) */
.icon-counter {
  text-align: right;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.icon-counter strong { color: var(--primary); font-family: 'Lora', serif; font-style: italic; }

.icon-selected-row {
  background: var(--bg-deep);
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 22px;
  min-height: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.icon-empty-hint {
  font-style: italic;
  color: var(--text-soft);
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
}
.icon-selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--card);
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  padding: 6px 10px 6px 12px;
  font-size: 1.4rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s, background 0.15s;
}
.icon-selected-pill:hover {
  background: var(--bg-deep);
  transform: translateY(-1px);
}
.icon-remove {
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 700;
  line-height: 1;
  margin-left: 2px;
}

.icon-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 4px 4px 0;
  margin-bottom: 18px;
}
.icon-categories::-webkit-scrollbar {
  width: 6px;
}
.icon-categories::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
.icon-category-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 6px;
}
.icon-btn {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 1.5rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s, border-color 0.15s, background 0.15s;
  line-height: 1;
}
.icon-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.icon-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
}

/* Pris-kort (flat 299) */
.price-card {
  background: linear-gradient(135deg, var(--bg-deep), var(--accent-soft));
  border-radius: 18px;
  padding: 22px 20px;
  margin: 18px 0;
  text-align: center;
  border: 1.5px solid var(--line);
}
.price-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-amount {
  font-family: 'Lora', serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--primary);
  margin: 4px 0 4px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.price-mva {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 14px;
  font-style: italic;
}
.price-features {
  list-style: none;
  padding: 0; margin: 0;
  font-size: 0.95rem;
  text-align: left;
  display: inline-block;
}
.price-features li {
  padding: 4px 0 4px 26px;
  position: relative;
}
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

/* Sammendragskort (checkout / success) */
.summary-card {
  background: var(--bg-deep);
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0;
  border: 1px solid var(--line);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.95rem;
}
.summary-row span:first-child { color: var(--text-soft); }
.summary-row strong { color: var(--text); font-weight: 600; }

/* Info-boks (forklarende tekst) */
.info-box {
  background: var(--bg-deep);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0 18px;
  text-align: left;
}
.info-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-family: 'Lora', serif;
  font-size: 1.05rem;
}
.info-box p {
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.info-box p:last-child { margin-bottom: 0; }

/* Radio-kort (PDF-tidspunkt o.l.) */
.radio-group { display: grid; gap: 10px; margin: 8px 0 16px; }
.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.radio-card.selected {
  border-color: var(--primary);
  background: var(--bg-deep);
}
.radio-card input[type="radio"] {
  accent-color: var(--primary);
  width: 18px; height: 18px;
}
.radio-card div { display: flex; flex-direction: column; }
.radio-card strong { font-size: 1rem; }
.radio-card span { font-size: 0.85rem; opacity: 0.7; }

/* Samtykke-checkbox (terms) */
.consent {
  background: var(--bg-deep);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;
}
.consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.consent label { display: inline; margin: 0; font-weight: 400; }
.consent a { color: var(--primary); text-decoration: underline; }

/* Hilsen-kort (memory.html) */
.greeting-card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 10px 0;
  border-left: 4px solid var(--accent);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.greeting-name {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  font-family: 'Lora', serif;
  font-style: italic;
}
.greeting-msg {
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: 'Lora', serif;
  font-style: italic;
}

/* Lenke-boks (success.html) */
.link-box {
  background: var(--bg-deep);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  word-break: break-all;
  margin: 8px 0;
  color: var(--primary);
}

/* Dashboard */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.quiz-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.quiz-item {
  background: var(--bg-deep);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.quiz-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.quiz-name {
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Lora', serif;
  color: var(--text);
}
.quiz-status {
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.quiz-meta {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 6px 0 12px;
  font-family: 'Courier New', monospace;
}
.quiz-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.quiz-actions button {
  flex: 1;
  min-width: 110px;
  margin-top: 0;
  padding: 9px 14px;
  font-size: 0.9rem;
}

/* Site footer (på gjest-sider) */
.site-footer {
  text-align: center;
  margin-top: 32px;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.site-footer a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 8px;
}
.site-footer a:hover { text-decoration: underline; }

/* Legal-sider */
.card.legal { text-align: left; max-width: 720px; }
.card.legal h1 { text-align: center; }
.card.legal h2 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 28px;
  margin-bottom: 8px;
}
.card.legal h3 {
  font-size: 1rem;
  margin-top: 16px;
  margin-bottom: 6px;
}
.card.legal p, .card.legal ul, .card.legal li {
  font-size: 0.95rem;
  line-height: 1.55;
}
.card.legal ul { padding-left: 22px; margin: 6px 0; }
.card.legal li { margin-bottom: 4px; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 0.9rem;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th {
  background: var(--bg-deep);
  font-weight: 700;
}

/* Ansvarlig responsivt */
@media (max-width: 480px) {
  .card { padding: 24px 18px; }
  h1 { font-size: 1.6rem; }
  .question-text { font-size: 1.15rem; }
  .score-display { font-size: 3rem; }
  .options-grid { grid-template-columns: 1fr; }
}
