/* ==========================================================
   Grunderside fra Digitelle - Stylesheet
   ========================================================== */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Self-hosted font --- */
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/Outfit-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* --- Custom Properties --- */
:root {
  /* Digitelle Typography System (Utopia, 320-1400px) */
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'Courier New', monospace;

  --text-4xl: clamp(1.8rem, calc(3.7vw + 1.06rem), 4.5rem);
  --text-3xl: clamp(1.6rem, calc(2.89vw + 1.02rem), 3.55rem);
  --text-2xl: clamp(1.42rem, calc(1.84vw + 1.05rem), 2.66rem);
  --text-xl: clamp(1.27rem, calc(1.08vw + 1.05rem), 2.0rem);
  --text-l: clamp(1.13rem, calc(0.55vw + 1.02rem), 1.5rem);
  --text-m: clamp(1.0rem, calc(0.19vw + 0.96rem), 1.13rem);
  --text-s: 1rem;
  --text-xs: 1rem;

  /* Colors */
  --primary: #2AABB3;
  --primary-dark: #228E95;
  --primary-light: #E8F7F8;
  --accent: #FF6B35;
  --accent-dark: #E55A25;
  --heading: #1A1A2E;
  --text: #4A4A5A;
  --text-light: #636370;
  --bg: #FFFFFF;
  --bg-alt: #F8F9FB;
  --border: #E5E7EB;

  /* Layout & effects */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --transition: 0.25s ease;
  --max-w: 1290px;
  --nav-h: 72px;
}

/* --- Base Typography --- */
body {
  font-family: var(--font-sans);
  font-size: var(--text-m);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--font-sans);
  color: var(--heading);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--heading);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-l); }
h4 { font-size: var(--text-xl); }
p, li, blockquote { max-width: 70ch; margin-top: 0.5em; }

/* --- Utilities --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--heading); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; text-align: center; padding: clamp(60px, 8vw, 100px) 0; }
.section--cta h2 { color: #fff; }
.section__header { text-align: center; max-width: 650px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section__sub { color: var(--text-light); margin-top: 12px; font-size: var(--text-l); }
.section--cta .section__sub { color: rgba(255,255,255,0.85); }

.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.badge--light {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--white { background: #fff; color: var(--primary-dark); }
.btn--white:hover { background: var(--primary-light); }
.btn--sm { padding: 10px 24px; font-size: var(--text-m); }
.btn--lg { padding: 16px 32px; font-size: var(--text-l); }

/* Animations */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.fade-in__child { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in__child.is-visible { opacity: 1; transform: translateY(0); }
body.body--menu-open { overflow: hidden; }

/* ==========================================================
   NAVIGATION
   ========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition), background var(--transition);
}
.nav--scrolled { background: rgba(255,255,255,0.97); box-shadow: 0 1px 12px rgba(0,0,0,0.08); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo { display: flex; flex-direction: column; line-height: 1.15; }
.nav__logo-main { font-weight: 800; font-size: var(--text-l); color: var(--heading); }
.nav__logo-sub { font-size: 1rem; color: var(--primary); font-weight: 500; }
.nav__menu { display: flex; gap: 28px; }
.nav__link {
  font-size: var(--text-m);
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--primary); }
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.nav__cta { margin-left: 16px; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px 0; }
.nav__hamburger span { display: block; height: 2px; background: var(--heading); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav__hamburger--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger--active span:nth-child(2) { opacity: 0; }
.nav__hamburger--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(40px, 6vw, 80px);
  background: linear-gradient(170deg, #fff 60%, var(--primary-light) 100%);
}
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero__content .badge { margin-bottom: 16px; }
.hero__sub { font-size: var(--text-l); color: var(--text-light); margin: 20px 0 28px; max-width: 520px; }
.hero__ctas { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero__link { color: var(--primary); font-weight: 600; font-size: var(--text-s); transition: color var(--transition); }
.hero__link:hover { color: var(--primary-dark); }
.hero__trust { display: flex; align-items: center; gap: 8px; font-size: var(--text-s); color: var(--text-light); margin-top: 20px; }
.hero__trust svg { flex-shrink: 0; }

/* Hero mockup */
.hero__visual { display: flex; justify-content: center; }
.hero__mockup { width: 100%; max-width: 480px; }
.mockup__browser {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.mockup__dots { display: flex; gap: 6px; padding: 12px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.mockup__dots span { width: 10px; height: 10px; border-radius: 50%; }
.mockup__dots span:nth-child(1) { background: #FF5F57; }
.mockup__dots span:nth-child(2) { background: #FFBD2E; }
.mockup__dots span:nth-child(3) { background: #28C840; }
.mockup__content { padding: 20px; }
.mockup__header { height: 20px; width: 60%; background: var(--heading); border-radius: 4px; margin-bottom: 16px; opacity: 0.15; }
.mockup__hero { height: 80px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: var(--radius); margin-bottom: 16px; opacity: 0.6; }
.mockup__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mockup__grid div { height: 50px; background: var(--bg-alt); border-radius: 4px; border: 1px solid var(--border); }

/* ==========================================================
   TRUST BAR
   ========================================================== */
.trust-bar { padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
.trust-bar__inner { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: var(--text-s); color: var(--text-light); flex-wrap: wrap; }
.trust-bar__inner strong { color: var(--heading); }
.trust-bar__sep { color: var(--border); }

/* ==========================================================
   PROBLEM SECTION
   ========================================================== */
.problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.problem__card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.problem__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.problem__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.problem__card h3 { margin-bottom: 8px; }
.problem__cta { text-align: center; font-size: var(--text-l); color: var(--heading); max-width: none; }

/* ==========================================================
   FEATURES GRID
   ========================================================== */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { font-size: var(--text-s); color: var(--text-light); }

/* ==========================================================
   DEMOS
   ========================================================== */
.demos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.demo-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.demo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.demo-card__img {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: var(--text-s); color: #fff;
}
.demo-card__img--renhold { background: linear-gradient(135deg, #2AABB3, #1D8A91); }
.demo-card__img--handverker { background: linear-gradient(135deg, #FF6B35, #E55A25); }
.demo-card__img--trener { background: linear-gradient(135deg, #6C63FF, #5548D9); }
.demo-card__body { padding: 20px; }
.demo-card__body h3 { margin-bottom: 4px; }
.demo-card__body p { font-size: var(--text-s); color: var(--text-light); }

/* ==========================================================
   PROCESS
   ========================================================== */
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.process__steps::before {
  content: '';
  position: absolute;
  top: 36px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.process__step { text-align: center; position: relative; z-index: 1; }
.process__number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700; font-size: var(--text-s);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.process__icon { color: var(--primary); margin-bottom: 12px; display: flex; justify-content: center; }
.process__step h3 { margin-bottom: 6px; }
.process__step p { font-size: var(--text-s); color: var(--text-light); max-width: 220px; margin: 0 auto; }
.process__note { text-align: center; margin-top: 32px; color: var(--text-light); font-size: var(--text-m); max-width: none; margin-left: auto; margin-right: auto; }

/* ==========================================================
   PRICING
   ========================================================== */
.pricing__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 800px; margin: 0 auto; }
.pricing-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card--featured { border-color: var(--primary); }
.pricing-card__badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 5px 16px;
  border-radius: var(--radius-full);
}
.pricing-card__header { text-align: center; margin-bottom: 24px; }
.pricing-card__header h3 { margin-bottom: 12px; }
.pricing-card__price { font-size: 2.5rem; font-weight: 800; color: var(--heading); line-height: 1; }
.pricing-card__price span { font-size: 1rem; font-weight: 400; }
.pricing-card__period { font-size: var(--text-s); color: var(--text-light); margin-top: 4px; }
.pricing-card__plus { font-size: var(--text-s); color: var(--text); font-weight: 500; margin-top: 8px; }
.pricing-card__features {
  flex: 1;
  margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.pricing-card__features li {
  padding-left: 28px;
  position: relative;
  font-size: var(--text-s);
}
.pricing-card__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-light);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5l2 2 4-4' stroke='%232AABB3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.pricing-card .btn { width: 100%; }
.pricing__note { text-align: center; margin-top: 28px; font-size: var(--text-s); color: var(--text-light); max-width: none; margin-left: auto; margin-right: auto; }
.pricing__note a { color: var(--primary); font-weight: 500; text-decoration: underline; }

/* ==========================================================
   SERVICE / DRIFTSAVTALEN
   ========================================================== */
.service__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.service__text .badge { margin-bottom: 12px; }
.service__text h2 { margin-bottom: 20px; }
.service__list { display: flex; flex-direction: column; gap: 14px; }
.service__list li { display: flex; align-items: center; gap: 12px; font-size: var(--text-m); }
.service__list svg { flex-shrink: 0; }
.service__highlight {
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 32px;
}
.service__highlight blockquote {
  font-size: var(--text-l);
  font-weight: 600;
  color: var(--heading);
  line-height: 1.5;
  font-style: italic;
}

/* ==========================================================
   GROWTH / MERSALG
   ========================================================== */
.growth__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.growth-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}
.growth-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }
.growth-card__icon { color: var(--primary); margin-bottom: 12px; display: flex; justify-content: center; }
.growth-card h3 { font-size: var(--text-m); }

/* ==========================================================
   ABOUT
   ========================================================== */
.about__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.about__text h2 { margin-bottom: 16px; }
.about__text p { margin-bottom: 12px; }
.about__contact {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.about__contact h3 { margin-bottom: 12px; }
.about__contact p { margin-bottom: 10px; font-size: var(--text-s); }
.about__contact a { color: var(--primary); font-weight: 500; }
.about__contact a:hover { text-decoration: underline; }
.about__partner { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-light); font-size: var(--text-s); }

/* ==========================================================
   FAQ
   ========================================================== */
.faq__list { max-width: 720px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: var(--text-m);
  font-weight: 500;
  color: var(--heading);
  text-align: left;
  gap: 16px;
}
.faq__chevron { flex-shrink: 0; transition: transform 0.3s ease; color: var(--text-light); }
.faq__item--open .faq__chevron { transform: rotate(180deg); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq__answer p { padding-bottom: 20px; color: var(--text); font-size: var(--text-m); line-height: 1.6; }

/* ==========================================================
   FINAL CTA
   ========================================================== */
.section--cta .btn { margin-top: 24px; }
.cta__contact { margin-top: 20px; display: flex; justify-content: center; gap: 12px; font-size: var(--text-s); }
.cta__contact a { color: rgba(255,255,255,0.85); }
.cta__contact a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { background: var(--heading); color: rgba(255,255,255,0.6); padding-top: 48px; font-size: var(--text-s); }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__logo { font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 8px; display: block; }
.footer__logo span { font-weight: 400; font-size: var(--text-s); color: var(--primary); }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a:hover { color: #fff; }
.footer__contact { display: flex; flex-direction: column; gap: 6px; }
.footer__contact a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; font-size: var(--text-xs); }

/* ==========================================================
   RESPONSIVE - Tablet (< 1024px)
   ========================================================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__mockup { max-width: 380px; }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .process__steps::before { display: none; }
  .growth__grid { grid-template-columns: repeat(2, 1fr); }
  .service__inner { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================
   RESPONSIVE - Mobile (< 768px)
   ========================================================== */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Mobile nav */
  .nav__menu {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 99;
  }
  .nav__menu--open { display: flex; }
  .nav__menu .nav__link { font-size: 1.2rem; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  /* Grids to single column */
  .problem__grid,
  .features__grid,
  .demos__grid { grid-template-columns: 1fr; }

  .process__steps { grid-template-columns: 1fr; gap: 24px; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; }
  .growth__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }

  .hero__inner { gap: 32px; }
  .btn--lg { padding: 14px 24px; font-size: var(--text-s); }
}
