:root {
  --primary: #32cd32;
  --primary-dark: #28a745;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Inter", sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

a { text-decoration: none; color: inherit; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  padding: 24px 0;
  position: absolute;
  width: 100%;
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
}

.logo span { color: var(--primary); }

.nav a {
  color: white;
  transition: color 0.25s ease;
}
.nav a:hover { color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-lg { padding: 16px 40px !important; font-size: 18px; }

/* Login */
.login-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.login-link:hover { color: var(--primary); }

.login-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}
.login-link:hover .login-icon-img {
  opacity: 1;
  transform: translateY(-1px);
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(80deg);
}

/* Hero base */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fff8 0%, #d4fcd4 100%);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url("/images/Sofiahero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scaleX(-1) scale(1.03);
}

.hero-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.45), rgba(0,0,0,0.25)),
    linear-gradient(135deg, rgba(50,205,50,0.25), rgba(50,205,50,0.15));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero .container { position: relative; z-index: 2; }

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1,
.hero-text p,
.hero-text .trust p { color: white; }

.hero-text h1 {
  font-size: clamp(68px, 6vw, 92px);
  line-height: 1.05;
  font-weight: 1200;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-text p {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  max-width: 620px;
  margin-bottom: 40px;
  opacity: 0.96;
}

.hero-buttons a {
  margin-right: 16px;
  margin-bottom: 12px;
  display: inline-block;
}

.hero .btn-outline { border-color: white; color: white; }
.hero .btn-outline:hover { background: white; color: #111; }

/* underline */
.hero-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
  white-space: nowrap;
  color: white;
  overflow: visible;
}

.scribble-underline {
  position: absolute;
  left: -45%;
  bottom: -18px;
  width: 190%;
  height: 46px;
  display: block;
  max-width: none;
  overflow: visible;
  color: var(--primary);
  pointer-events: none;
  transform: rotate(-2deg);
  opacity: 0.98;
}

.scribble-underline path { stroke-dasharray: 900; stroke-dashoffset: 900; }
.hero-animate .hero-underline .scribble-underline path {
  animation: drawHeroUnderline 3000ms cubic-bezier(.2,.85,.2,1) 420ms both;
}
@keyframes drawHeroUnderline {
  from { stroke-dashoffset: 900; opacity: 0.2; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

/* trust / logos */
.trust { margin-top: 80px; text-align: center; color: rgba(255,255,255,0.9); }
.trust p { margin-bottom: 24px; font-size: 16px; }

.logos img {
  height: 40px;
  margin: 0 20px;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.3s;
}
.logos img:hover { opacity: 1; filter: grayscale(0%); }

/* Sections */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: 40px; color: var(--gray-900); margin-bottom: 16px; }
.subtitle { font-size: 20px; color: var(--gray-600); max-width: 700px; margin: 0 auto; }

.features { padding: 120px 0; background: white; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.feature-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 12px;
  transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-8px); }
.feature-card .icon { font-size: 48px; margin-bottom: 20px; }
.feature-card h3 { font-size: 24px; margin-bottom: 12px; color: var(--gray-900); }

.how-it-works { padding: 120px 0; background: var(--gray-100); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  margin-bottom: 64px;
}
.step { text-align: center; }
.step-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  line-height: 60px;
  margin-bottom: 24px;
}
.step h3 { font-size: 24px; margin-bottom: 12px; }

.testimonials { padding: 120px 0; background: white; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.testimonial { background: var(--gray-100); padding: 32px; border-radius: 12px; }
.quote { font-size: 18px; line-height: 1.6; margin-bottom: 20px; font-style: italic; }
.author { font-weight: 600; color: var(--gray-900); }

/* Pricing CTA */
.pricing-cta {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
}
.pricing-cta h2 { font-size: 42px; margin-bottom: 16px; }
.pricing-cta .large { font-size: 24px; margin-bottom: 32px; opacity: 0.95; }
.pricing-cta .small { margin-top: 24px; opacity: 0.8; font-size: 16px; }

/* Footer */
footer { background: var(--gray-900); color: white; padding: 80px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 60px;
}
footer h4 { margin-bottom: 20px; color: white; }
footer a {
  display: block;
  margin-bottom: 12px;
  color: #cbd5e1;
  transition: color 0.3s;
}
footer a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 30px;
  text-align: center;
  color: #94a3b8;
}

.text-center { text-align: center; }

/* FAQ */
.faq { padding: 120px 0; background: white; }
.faq-grid { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
.faq-item {
  background: var(--gray-100);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}
.faq-item[open] { background: #eef2ff; box-shadow: 0 10px 25px rgba(99, 102, 241, 0.1); }
.faq-item summary {
  padding: 24px 28px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--gray-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s;
}
.faq-item[open] summary::after { content: "−"; transform: translateY(-50%); }
.faq-item p { padding: 0 28px 28px 28px; color: var(--gray-700); line-height: 1.7; margin-top: -10px; }

/* Pricing page (desktop/base) */
.pricing-calculator {
  padding: 100px 0;
  background: #f8fff8;
          /* Diskret mørkere “fade” fra toppen */
        background: linear-gradient(
          180deg,
          rgba(16, 80, 16, 0.22) 0%,
          rgba(16, 80, 16, 0.12) 14%,
          rgba(16, 80, 16, 0) 38%
        );
      
}

.pricing-calculator h1 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 60px;
  color: var(--gray-900);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1300px;
  margin: 0 auto;
}

.products-column { display: flex; flex-direction: column; gap: 24px; }

.product-card {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(50,205,50,0.15);
}

.product-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  margin: 0;
  padding: 0 8px;
  text-align: center;
}

.product-content { flex: 1; }
.product-content h3 { font-size: 18px; margin: 0 0 8px 0; color: var(--gray-900); }
.product-content p { color: var(--gray-600); margin: 0 0 20px 0; }

.usage-select {
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  width: 100%;
  background: white;
  appearance: none;
  color: var(--gray-900);
}

.pro-support {
  background: #ecfdf5;
  border: 2px solid var(--primary);
  padding: 28px;
  border-radius: 16px;
  margin-top: 20px;
}

.tag {
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.pro-support h3 { margin: 16px 0; font-size: 20px; color: var(--gray-900); }

.pro-support ul { list-style: none; padding-left: 0; }
.pro-support li { padding-left: 28px; position: relative; margin-bottom: 12px; color: var(--gray-700); }
.pro-support li::before { content: "✓"; color: var(--primary); font-weight: bold; position: absolute; left: 0; }

.result-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  height: fit-content;
  position: sticky;
  top: 100px;
  width: 90%;
}

.result-card h2 { font-size: 28px; margin-bottom: 16px; }
#totalPrice { font-size: 48px; font-weight: 800; color: var(--primary); margin-bottom: 24px; }
.price-info { opacity: 0.9; margin-bottom: 20px; }

.included-list { list-style: none; padding: 0; margin-bottom: 32px; }
.included-list li { padding-left: 32px; position: relative; margin-bottom: 14px; font-size: 16px; }
.included-list li::before {
  content: "✓";
  background: var(--primary);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 60%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 2px;
}
.result-card .small { opacity: 0.7; font-size: 14px; margin-top: 20px; }

.pricing-table { padding: 80px 0; background: white; }
.table-header { text-align: center; margin-bottom: 48px; }
.table-header h2 { font-size: 40px; color: var(--gray-900); margin-bottom: 16px; }
.table-header .subtitle { font-size: 20px; color: var(--gray-600); }

.plans-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--gray-200); }
th { background: var(--gray-100); font-weight: 600; color: var(--gray-900); position: sticky; left: 0; }
.tier-header { text-align: center; }
.tier-name { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.tier-price { font-size: 32px; font-weight: 700; color: var(--primary); }
.tier-desc { color: var(--gray-600); font-size: 14px; }

.recommended { position: relative; }
.recommended::before {
  content: "Anbefalet";
  position: absolute;
  top: 3px;
  right: 35px;
  background: var(--primary);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
}

.feature-check { text-align: center; color: var(--primary); font-size: 20px; }
.feature-no { text-align: center; color: #cbd5e1; font-size: 20px; }

.pricing-table tbody tr { transition: all 0.25s ease; cursor: default; position: relative; }
.pricing-table tbody tr:hover {
  background: #ecfdf5 !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(50, 205, 50, 0.18);
  border-radius: 12px;
  z-index: 1;
}
.pricing-table tbody td:first-child { border-radius: 12px 0 0 12px; }
.pricing-table tbody td:last-child  { border-radius: 0 12px 12px 0; }
.pricing-table tbody tr:hover td { background: transparent; }

/* Animations */
.reveal.reveal-strong {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(2px);
  transition: opacity 850ms ease, transform 850ms ease, filter 850ms ease;
}
.reveal.reveal-strong.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

.steps-strong .step-item { opacity: 0; transform: translateY(46px) scale(0.985); filter: blur(2px); }
.steps-strong.is-visible .step-item { animation: stepInStrong 900ms cubic-bezier(.2,.95,.2,1) both; }
.steps-strong.is-visible .step-item:nth-child(1) { animation-delay: 0ms; }
.steps-strong.is-visible .step-item:nth-child(2) { animation-delay: 400ms; }
.steps-strong.is-visible .step-item:nth-child(3) { animation-delay: 800ms; }

@keyframes stepInStrong {
  0% { opacity: 0; transform: translateY(46px) scale(0.985); filter: blur(2px); }
  70% { opacity: 1; transform: translateY(-4px) scale(1.01); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.steps-strong.is-visible .step-number { animation: popStrong 720ms cubic-bezier(.2,1.2,.2,1) both; }
.steps-strong.is-visible .step-item:nth-child(1) .step-number { animation-delay: 180ms; }
.steps-strong.is-visible .step-item:nth-child(2) .step-number { animation-delay: 700ms; }
.steps-strong.is-visible .step-item:nth-child(3) .step-number { animation-delay: 1220ms; }

@keyframes popStrong {
  0% { transform: scale(0.78); }
  55% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

/* FAQ “scribble circle” base (desktop) */
.faq-title-wrap { position: relative; }
.faq-title { position: relative; display: inline-block; padding: 12px 18px; }
.scribble-circle {
  position: absolute;
  left: 50%;
  top: 40%;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  transform: translate(-50%, -50%) rotate(-2deg) scale(1.5);
  transform-origin: center;
  color: var(--primary);
  pointer-events: none;
  opacity: 0.95;
}
.scribble-circle path { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.faq-title-wrap.is-visible .scribble-circle path { animation: drawCircle 1500ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes drawCircle { from { stroke-dashoffset: 1400; opacity: 0.2; } to { stroke-dashoffset: 0; opacity: 1; } }

/* ===== Header: hamburger base (skjult på desktop) ===== */
.hamburger {
  display: none;
}


