/* Firmalupen landingsside — calm tema, 8px-rytme, Inter */

:root {
  --bg: #ffffff;
  --bg-alt: #fbfdfb;
  --surface: #ffffff;
  --ink: #15201b;
  --muted: #627069;
  --line: #d7e0d9;
  --green: #2f7d55;
  --green-dark: #1f5e3f;
  --green-soft: #eaf4ee;
  --blue: #2e6f95;
  --amber: #9c6a1d;
  --red: #a64036;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px; --s24: 96px;

  --radius: 8px;
  --radius-lg: 12px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

/* ---------- LAYOUT ---------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s6);
}

section {
  padding: clamp(56px, 8vw, 96px) 0;
}

section:nth-child(even) { background: var(--bg-alt); }

/* ---------- TYPOGRAPHY ---------- */

h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }

h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(26px, 3.5vw, 32px);
  margin-bottom: var(--s8);
}

h3 { font-size: 18px; line-height: 1.3; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--s3);
}

.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- TOP NAV ---------- */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4) var(--s6);
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.logo-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--green);
  color: white;
  font-weight: 800;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s6);
}

.nav-links a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--green); text-decoration: none; }

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

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: white;
}

.btn-primary:hover { background: var(--green-dark); }

.btn-primary:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(47,125,85,0.25);
}

.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover { background: var(--bg-alt); border-color: var(--green); }

.btn-link {
  color: var(--green);
  background: transparent;
  font-weight: 500;
  font-size: 15px;
  padding: 0 var(--s3);
  height: auto;
}

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

.btn-full { width: 100%; }

/* ---------- HERO ---------- */

.hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.hero h1 {
  margin-top: var(--s2);
  margin-bottom: var(--s4);
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: var(--s8);
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.hero-trust {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.hero-trust svg {
  flex-shrink: 0;
  color: var(--green);
}

.hero-visual {
  position: relative;
}

.hero-screenshot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: 0 8px 24px -8px rgba(21,32,27,0.12);
  overflow: hidden;
  animation: fade-up 300ms ease-out;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-bg-dots {
  position: absolute;
  inset: -20px;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.5;
  z-index: -1;
  border-radius: 20px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
}

/* ---------- DEMO MOCKUP (SVG-based, fallback for screenshot) ---------- */

.mockup {
  width: 100%;
  background: linear-gradient(180deg, #f3f6fa, #ffffff);
  padding: var(--s4);
  display: flex;
  gap: var(--s3);
  position: relative;
}

.mockup-li {
  flex: 1;
  background: white;
  border-radius: 6px;
  padding: var(--s3);
  display: grid;
  gap: var(--s2);
}

.mockup-li-bar {
  height: 8px;
  border-radius: 4px;
  background: #e1e9f0;
}

.mockup-li-bar.short { width: 50%; }
.mockup-li-bar.med { width: 75%; }
.mockup-li-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #c9d6e3;
}

.mockup-fl {
  width: 220px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px -8px rgba(21,32,27,0.18);
  padding: var(--s3);
  position: relative;
}

.mockup-fl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s3);
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
}

.mockup-fl-head .live {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.mockup-fl h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: var(--s1);
}

.mockup-fl-orgnr {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: var(--s3);
}

.mockup-fl-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 4px 0;
  border-top: 1px solid var(--bg-alt);
}

.mockup-fl-row span:first-child { color: var(--muted); }
.mockup-fl-row span:last-child { font-weight: 600; }

.mockup-fl-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--s2);
}

@media (max-width: 600px) {
  .mockup { flex-direction: column; }
  .mockup-fl { width: 100%; }
}

/* ---------- FEATURES ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.feature-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s6);
  transition: border-color 150ms ease, transform 150ms ease;
}

.feature-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  margin-bottom: var(--s4);
}

.feature-card h3 { margin-bottom: var(--s2); }
.feature-card p { color: var(--muted); font-size: 15px; }

@media (max-width: 800px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ---------- HOW IT WORKS ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s8);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--s8);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
}

.step h3 { margin-bottom: var(--s2); }
.step p { color: var(--muted); font-size: 15px; }

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: var(--s6); }
}

/* ---------- FOR HVEM ---------- */

.audience-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
}

.audience-item {
  display: flex;
  gap: var(--s4);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
}

.audience-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
}

.audience-item h3 { margin-bottom: var(--s1); font-size: 16px; }
.audience-item p { color: var(--muted); font-size: 14px; }

@media (max-width: 700px) {
  .audience-list { grid-template-columns: 1fr; }
}

/* ---------- PRIS ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  max-width: 880px;
  margin: 0 auto;
}

.price-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s8);
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--green);
  border-width: 2px;
}

.price-badge {
  position: absolute;
  top: -10px;
  right: var(--s6);
  background: var(--green);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-card h3 { font-size: 18px; margin-bottom: var(--s2); }
.price-card .price-line {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  margin-bottom: var(--s4);
}
.price-card .price { font-size: 36px; font-weight: 600; line-height: 1; }
.price-card .per { color: var(--muted); font-size: 15px; }
.price-card .price-tagline { color: var(--muted); font-size: 14px; margin-bottom: var(--s6); }

.price-features {
  list-style: none;
  display: grid;
  gap: var(--s2);
  margin-bottom: var(--s6);
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  font-size: 15px;
  color: var(--ink);
}

.price-features li svg {
  flex-shrink: 0;
  color: var(--green);
  margin-top: 2px;
}

@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s6) 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary svg {
  flex-shrink: 0;
  margin-left: var(--s4);
  color: var(--muted);
  transition: transform 200ms ease;
}

.faq-item[open] summary svg { transform: rotate(180deg); }

.faq-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  padding: 0 0 var(--s6);
  max-width: 620px;
}

/* ---------- FINAL CTA ---------- */

.final-cta {
  background: linear-gradient(135deg, var(--green-soft), var(--bg-alt));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.final-cta h2 { max-width: 620px; margin-left: auto; margin-right: auto; margin-bottom: var(--s4); }
.final-cta p { color: var(--muted); max-width: 540px; margin: 0 auto var(--s8); }
.final-cta .hero-ctas { justify-content: center; }

/* ---------- FOOTER ---------- */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: var(--s16) 0 var(--s8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--s8);
  margin-bottom: var(--s8);
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin-top: var(--s3);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--s3);
}

.footer-col ul { list-style: none; display: grid; gap: var(--s2); }
.footer-col a { color: var(--ink); font-size: 14px; }
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: var(--s6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- COOKIE BANNER ---------- */

.cookie-banner {
  position: fixed;
  bottom: var(--s4);
  left: var(--s4);
  right: var(--s4);
  max-width: 600px;
  margin: 0 auto;
  background: var(--ink);
  color: white;
  padding: var(--s4) var(--s6);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  font-size: 14px;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.cookie-banner button {
  background: white;
  color: var(--ink);
  border: 0;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  font: inherit;
  font-size: 13px;
}

.cookie-banner button:hover { background: var(--bg-alt); }

.cookie-banner.hidden { display: none; }

/* ---------- LEGAL PAGES ---------- */

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s12) 0;
}

.legal-content h1 { margin-bottom: var(--s4); }
.legal-content .updated { color: var(--muted); font-size: 14px; margin-bottom: var(--s8); }

.legal-content h2 {
  font-size: 22px;
  margin-top: var(--s8);
  margin-bottom: var(--s3);
}

.legal-content h3 {
  font-size: 16px;
  margin-top: var(--s6);
  margin-bottom: var(--s2);
}

.legal-content p, .legal-content li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: var(--s3);
}

.legal-content ul, .legal-content ol {
  padding-left: var(--s6);
  margin-bottom: var(--s4);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s4) 0;
  font-size: 14px;
}

.legal-content th, .legal-content td {
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.legal-content th {
  background: var(--bg-alt);
  font-weight: 600;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s4);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
