/* Frivillig Vervet — landingsside.
   Designtokens speiler appens (src/index.css): navy-bakgrunn, blå/amber-aksent,
   Inter til brødtekst og Outfit til overskrifter, glassmorphism-kort. */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;

  --card-bg: rgba(17, 24, 39, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(255, 255, 255, 0.15);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --color-primary: #3b82f6;
  --color-accent: #f59e0b;
  --color-cyan: #06b6d4;
  --color-success: #10b981;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a { color: inherit; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }

.brand-logo {
  width: 38px; height: 38px; border-radius: 10px; display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  background: linear-gradient(to right, #ffffff, #d1d5db);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(10, 14, 23, 0.7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}

.site-nav { display: flex; align-items: center; gap: 0.5rem; }
.site-nav > a:not(.btn) {
  padding: 0.5rem 0.85rem; color: var(--text-secondary);
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  border-radius: var(--radius-sm); transition: color var(--transition-fast);
}
.site-nav > a:not(.btn):hover { color: var(--text-primary); }

@media (max-width: 720px) {
  .site-nav > a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: var(--transition-normal);
}
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.02rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #2563eb);
  color: #fff; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #4f46e5, var(--color-primary));
}

.btn-secondary {
  background: var(--bg-tertiary); color: var(--text-primary);
  border-color: var(--card-border);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--card-hover-border); }

.btn-ghost { background: transparent; color: var(--text-primary); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

/* ---------- Layout helpers ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem); }

.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.85rem; }
.section-head p { color: var(--text-secondary); font-size: 1.05rem; }

.eyebrow {
  display: inline-block; margin-bottom: 0.75rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center; overflow: hidden;
  min-height: 92vh;
  display: flex; align-items: center;
  padding-top: clamp(5rem, 10vw, 8rem); padding-bottom: clamp(4rem, 8vw, 6rem);
  background-image:
    linear-gradient(to bottom, rgba(10, 14, 23, 0.74) 0%, rgba(10, 14, 23, 0.82) 55%, rgba(10, 14, 23, 0.97) 100%),
    url("img/hero.jpg");
  background-size: cover;
  background-position: center 30%;
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }

.pill {
  display: inline-block; margin-bottom: 1.5rem;
  padding: 0.4rem 1rem; font-size: 0.82rem; font-weight: 600;
  color: var(--color-primary);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 9999px;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800;
  margin-bottom: 1.25rem;
  background: linear-gradient(to bottom right, #ffffff 40%, #b6c2d4);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-secondary); max-width: 640px; margin: 0 auto 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-note { margin-top: 1.5rem; font-size: 0.88rem; color: var(--text-secondary); }

/* ---------- Trust strip ---------- */
.trust {
  padding-top: 0; text-align: center;
}
.trust p {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1rem;
}
.trust ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: center;
}
.trust li { font-family: var(--font-display); font-weight: 600; color: var(--text-secondary); font-size: 1.1rem; }

/* ---------- Glass card ---------- */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}
.glass-card:hover { border-color: var(--card-hover-border); transform: translateY(-3px); }

/* ---------- Features ---------- */
.feature-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
@media (max-width: 920px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-illust {
  width: 88px; height: 88px; display: block; margin-bottom: 1.1rem;
}

.feature-grid h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.feature-grid p { color: var(--text-secondary); font-size: 0.97rem; }
.feature-grid p strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Audience ---------- */
.audience-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
@media (max-width: 820px) { .audience-grid { grid-template-columns: 1fr; } }

.audience-col {
  padding: 1.75rem;
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}
.audience-col h3 { font-size: 1.3rem; margin-bottom: 1rem; color: #fff; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.check-list li {
  position: relative; padding-left: 1.75rem;
  color: var(--text-secondary); font-size: 0.97rem;
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--color-success); font-weight: 800;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  max-width: 760px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; align-items: start;
}
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card { display: flex; flex-direction: column; gap: 1.25rem; position: relative; }
.price-card h3 { font-size: 1.4rem; }
.price-card .price { font-family: var(--font-display); color: var(--text-secondary); font-size: 1rem; }
.price-card .price span { font-size: 2.2rem; font-weight: 800; color: #fff; }
.price-card .btn { margin-top: auto; }

.price-card-featured {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.12);
}
.badge-featured {
  position: absolute; top: -0.8rem; right: 1.5rem;
  padding: 0.3rem 0.85rem; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: #fff; background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 9999px;
}

/* ---------- CTA ---------- */
.cta-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(245, 158, 11, 0.08));
  border-color: rgba(59, 130, 246, 0.2);
}
.cta-card h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 0.75rem; }
.cta-card p { color: var(--text-secondary); margin-bottom: 1.75rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem; max-width: var(--maxw); margin: 0 auto;
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.92rem; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--text-primary); }
.footer-legal { width: 100%; color: var(--text-muted); font-size: 0.82rem; }

/* ---------- Dypsider (funksjoner/bransje) ---------- */
.page-hero {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3rem);
}
.page-hero-inner { max-width: 760px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 1rem; }
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text-primary); }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; color: #fff; }
.prose p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 1.03rem; }
.prose p strong { color: var(--text-primary); font-weight: 600; }
.prose .check-list { margin: 1rem 0 1.5rem; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--card-border); border-radius: var(--radius-md);
  padding: 1rem 1.25rem; margin-bottom: 0.85rem; background: var(--card-bg);
}
.faq summary { font-family: var(--font-display); font-weight: 600; cursor: pointer; color: #fff; font-size: 1.05rem; }
.faq details[open] summary { margin-bottom: 0.65rem; }
.faq details p { color: var(--text-secondary); font-size: 0.98rem; margin: 0; }

/* Relaterte lenker */
.related { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem;
}
@media (max-width: 720px) { .related-grid { grid-template-columns: 1fr; } }
.related-grid a {
  display: block; padding: 1.1rem 1.25rem; text-decoration: none;
  border: 1px solid var(--card-border); border-radius: var(--radius-md);
  background: var(--card-bg); color: var(--text-primary); font-weight: 600;
  transition: var(--transition-normal);
}
.related-grid a:hover { border-color: var(--card-hover-border); transform: translateY(-2px); }

/* Flerkolonne-footer */
.footer-cols { align-items: flex-start; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; min-width: 150px; }
.footer-col h4 { font-size: 0.95rem; color: #fff; margin-bottom: 0.2rem; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--text-primary); }
.footer-brand-col { max-width: 240px; gap: 0.85rem; }
.footer-tagline { color: var(--text-muted); font-size: 0.88rem; }

/* «Les mer»-lenke i funksjonskort og bransjekolonner */
.card-link {
  display: inline-block; margin-top: 0.9rem;
  color: var(--color-primary); font-weight: 600; font-size: 0.92rem; text-decoration: none;
  transition: color var(--transition-fast);
}
.card-link:hover { color: var(--color-accent); }
.audience-col .card-link { margin-top: 1.1rem; }

/* Sammenligningstabell (konkurrent-/alternativsider) */
.cmp-wrap { max-width: 860px; margin: 1.5rem auto 0; overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.cmp-table th, .cmp-table td {
  text-align: left; padding: 0.85rem 1rem; vertical-align: top;
  border-bottom: 1px solid var(--card-border);
}
.cmp-table thead th { color: #fff; font-family: var(--font-display); font-weight: 600; }
.cmp-table thead th:first-child { color: var(--text-secondary); font-weight: 500; }
.cmp-table tbody th { color: var(--text-primary); font-weight: 600; }
.cmp-table td { color: var(--text-secondary); }
/* Fremhev vår kolonne (siste) */
.cmp-table thead th:last-child,
.cmp-table tbody td:last-child { background: rgba(59, 130, 246, 0.06); color: var(--text-primary); }
.cmp-table thead th:last-child { color: var(--color-primary); }
.cmp-yes::before { content: "✓ "; color: var(--color-success); font-weight: 700; }
.cmp-partial::before { content: "~ "; color: var(--color-accent); font-weight: 700; }
.cmp-no::before { content: "– "; color: var(--text-muted); font-weight: 700; }
@media (max-width: 600px) { .cmp-table th, .cmp-table td { padding: 0.6rem 0.6rem; font-size: 0.9rem; } }

/* Landskaps-/hub-kort på /sammenlign */
.landscape-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 860px; margin: 1.5rem auto 0; }
@media (max-width: 720px) { .landscape-grid { grid-template-columns: 1fr; } }
.landscape-card {
  display: block; padding: 1.25rem 1.4rem; text-decoration: none;
  border: 1px solid var(--card-border); border-radius: var(--radius-md);
  background: var(--card-bg); transition: var(--transition-normal);
}
.landscape-card:hover { border-color: var(--card-hover-border); transform: translateY(-2px); }
.landscape-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.3rem; }
.landscape-card .cat { color: var(--color-accent); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.landscape-card p { color: var(--text-secondary); font-size: 0.92rem; margin-top: 0.4rem; }
