﻿/* Reduce space under headings and images for tighter layout on interview page */
h1 {
  margin-bottom: 15px;
}

img {
  display: block;
  margin-bottom: 15px;
}
:root {
  /* Risk level result colors */
  .result-low {
    color: #2e7d32; /* grøn */
    font-weight: bold;
  }
  .result-medium {
    color: #ff9800; /* orange */
    font-weight: bold;
  }
  .result-high {
    color: #d32f2f; /* rød */
    font-weight: bold;
  }
  --bg-start: #f3efe9;
  --bg-end: #e6ebf1;
  --ink: #111318;
  --muted: #4b5260;
  --accent: #0d3b43;
  --accent-light: #1a5a66;
  --card: #ffffff;
  --line: rgba(17, 19, 24, 0.12);
  --shadow: 0 20px 50px rgba(10, 12, 18, 0.12);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: "Inter", "Trebuchet MS", sans-serif;
}

body {
  margin: 0;
  font-family: "Inter", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -10% -10% auto -10%;
  height: 60vh;
  background: radial-gradient(circle at 20% 20%, rgba(13, 59, 67, 0.12), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(45, 129, 143, 0.12), transparent 55%);
  filter: blur(10px);
  animation: glow 12s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes glow {
  from {
    transform: translateY(0);
    opacity: 0.7;
  }
  to {
    transform: translateY(18px);
    opacity: 1;
  }
}

h1,
h2,
h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2) 0;
}

p {
  margin: 0 0 var(--space-3) 0;
  color: var(--muted);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) var(--space-6);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-inner {
  display: grid;
  gap: var(--space-3);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent-light);
  margin-bottom: var(--space-1);
}

.hero h1 {
  font-size: clamp(2.4rem, 3.6vw, 3.8rem);
  color: var(--ink);
}

.lead {
  font-size: 1.08rem;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  /* Reduce space below image caption */
  p[style*="color: #444;"] {
    margin-bottom: 0.3em;
  }
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #f2f6f7;
  box-shadow: 0 14px 28px rgba(13, 59, 67, 0.3),
    0 0 0 2px var(--accent-light);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  transition: box-shadow 0.18s, background 0.18s;
}

.btn.primary:hover {
  background: var(--accent-light);
  box-shadow: 0 18px 40px rgba(13, 59, 67, 0.18),
    0 0 0 4px var(--accent-light);
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border-color: rgba(13, 59, 67, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
}

.section {
  padding: var(--space-7) 0 0;
}

.section-head {
  margin-bottom: var(--space-4);
}

.section-head h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
}

.features-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--space-4);
  box-shadow: 0 8px 24px rgba(15, 18, 22, 0.08);
  display: grid;
  gap: var(--space-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 220px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(12, 14, 20, 0.12);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(13, 59, 67, 0.08);
  color: var(--accent);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0;
}

.card p {
  margin-bottom: 0;
}

.card-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.footer {
  padding-top: var(--space-7);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}

@media (max-width: 900px) {
  .hero {
    padding: var(--space-5);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page {
    padding: var(--space-4) var(--space-2) var(--space-5);
  }

  .hero {
    padding: var(--space-4);
  }
}

/* Quiz modernisering */
.quiz {
  max-width: 520px;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
  margin: 2.5rem auto 0 auto;
  background: #fff;
  padding: 2.5rem 2rem 2rem 2rem;
}

.quiz-item {
  background: #fff;
  border-radius: 0;
  padding: 1.5rem 0 1.2rem 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.quiz-item p {
  margin: 0 0 0.7rem 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.13rem;
}

.quiz-item label {
  margin-right: 1.7rem;
  font-size: 1.08rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem 0.2rem 0;
  font-weight: 500;
  transition: color 0.18s;
}

 .quiz-item input[type="radio"] {
  accent-color: var(--accent);
  width: 1.3em;
  height: 1.3em;
  margin-right: 0.5em;
  vertical-align: middle;
  border: none;
  box-shadow: none;
  outline: none;
}

.hero h1 {
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.4rem 0 0 0;
}

