/* ============================================
   Samsøs Trolde – Landingsside
   Design: børnevenlig, varme farver, mobil-først
   ============================================ */

:root {
  /* Primær – natur/ø/hav */
  --color-primary: #2d5a4a;
  --color-primary-dark: #1e3d32;
  --color-primary-light: #3d7a64;
  /* Sekundær – accenter */
  --color-accent: #e8a838;
  --color-accent-light: #f5c96a;
  --color-accent-soft: #fef3dc;
  /* Baggrund */
  --color-bg: #faf9f6;
  --color-bg-section: #fff;
  --color-bg-hero: linear-gradient(160deg, #e8f0ec 0%, #d4e5df 50%, #c2d9d0 100%);
  /* Tekst */
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  /* UI */
  --color-border: #e0e0e0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.12);
  /* Typografi */
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.35rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --line-tight: 1.3;
  --line-normal: 1.6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--line-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #e8a838, #f5c96a, #ffffff);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  transition: opacity 0.2s ease-out;
  z-index: 60;
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-primary);
}

.logo:hover {
  text-decoration: none;
  color: var(--color-primary-dark);
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--color-accent-soft);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--color-bg-section);
  padding: 5rem 1.5rem 2rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.header.nav-open .nav {
  visibility: visible;
  opacity: 1;
}

.nav-close {
  display: block;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-close:hover,
.nav-close:focus-visible {
  background: rgba(0, 0, 0, 0.08);
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav a {
  display: block;
  padding: 0.85rem 1rem;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.nav a:hover {
  background: var(--color-accent-soft);
  text-decoration: none;
}

.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-primary-dark) !important;
  margin-top: 0.5rem;
}

.nav-cta:hover {
  background: var(--color-accent-light) !important;
  text-decoration: none !important;
}

/* ========== Main sections ========== */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: var(--line-tight);
}

.section-intro {
  margin: 0 0 1.5rem;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.section p {
  margin: 0 0 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.section-cta {
  margin-top: 1.5rem !important;
}

.cta-note {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 3rem 1.25rem 4rem;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.35)),
    url("assets/div-assets/Samsos-Trolde-Cover.jpg") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.hero-logo {
  margin: 0 auto 1rem;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.hero-tagline {
  margin: 0 0 1.5rem;
  font-size: var(--text-xl);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.cta {
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta:hover {
  text-decoration: none;
  transform: scale(1.03);
}

.cta:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.cta img {
  display: block;
  border-radius: var(--radius-sm);
}

.cta-primary img {
  box-shadow: var(--shadow);
}

.cta-primary:hover img {
  box-shadow: var(--shadow-hover);
}

.cta-secondary {
  padding: 0.85rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: var(--text-lg);
  border-radius: var(--radius);
}

.cta-secondary:hover {
  background: var(--color-accent-light);
  text-decoration: none;
}

.cta-large img {
  width: 220px;
  height: auto;
}

/* ========== App beskrivelse ========== */
.section-app {
  background: var(--color-bg-section);
}

/* ========== Sådan fungerer det ========== */
.section-how {
  background: var(--color-accent-soft);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
  background: var(--color-bg-section);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.step-num {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.step h3 {
  margin: 0 0 0.25rem;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary-dark);
}

.step p {
  margin: 0;
  grid-column: 2;
  font-size: var(--text-base);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ========== Skærmbilleder – karussel med mobilramme (som Pyt-Knap) ========== */
.section-screens {
  background: var(--color-bg-section);
}

.screens-header { text-align: center; margin-bottom: 1.5rem; }
.screenshot-carousel { margin: 0 auto 2rem; max-width: 100%; }
.screenshot-carousel__inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.phone-frame { background: #000; border-radius: 40px; border: 8px solid #1f2937; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); overflow: hidden; }
.phone-frame--main { width: 100%; max-width: 280px; aspect-ratio: 9/19; }
.phone-frame--main img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: #000; min-width: 0; min-height: 0; }
.phone-frame--preview { width: 100%; max-width: 185px; aspect-ratio: 9/19; }
.phone-frame--preview img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: #000; min-width: 0; min-height: 0; }
.screenshot-carousel__main { flex-shrink: 0; order: 2; }
.screenshot-carousel__preview { display: none; flex-shrink: 0; opacity: 0.5; }
.screenshot-carousel__inner .screenshot-carousel__main,
.screenshot-carousel__inner .screenshot-carousel__preview { align-self: center; }
.screenshot-carousel__preview--prev { order: 1; }
.screenshot-carousel__preview--next { order: 3; }
@media (min-width:768px) {
  .screenshot-carousel__inner {
    flex-wrap: nowrap;
    gap: 2rem;
    align-items: center;
  }
  .screenshot-carousel__preview { display: block; }
  .screenshot-carousel__preview--prev { transform: rotate(-6deg); }
  .screenshot-carousel__preview--next { transform: rotate(6deg); }
}
.screenshot-carousel__nav { display: flex; justify-content: center; gap: 1rem; }
.screenshot-carousel__btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--color-primary); background: #fff; color: var(--color-primary); font-size: 1.25rem; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.screenshot-carousel__btn:hover { background: var(--color-primary); color: #fff; transform: scale(1.05); }
.screenshot-carousel__btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }


/* ========== Trolde-oversigt ========== */
.section-trolde {
  background: var(--color-accent-soft);
}

.trolde-visual {
  margin: 1.5rem 0 0;
  text-align: center;
}

.trolde-visual img {
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.trolde-visual figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ========== Historien bag ========== */
.section-story {
  background: var(--color-bg-section);
}

.container-split {
  max-width: 900px;
}

.story-content h2 {
  margin-top: 0;
}

.story-image {
  margin: 2rem 0 0;
  text-align: center;
}

.story-image img {
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.story-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.trolde-visual img:hover,
.story-image img:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* ========== Pressen ========== */
.section-press {
  background: var(--color-bg);
}

.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.press-item {
  padding: 1.5rem;
  background: var(--color-bg-section);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.press-item img {
  max-height: 40px;
  width: auto;
  margin-bottom: 0.75rem;
}

.press-item p {
  margin: 0 0 0.5rem;
}

.press-item a {
  font-weight: 600;
}

.press-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ========== Download CTA ========== */
.section-download {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.section-download h2 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.section-download .cta-apple img {
  filter: none;
}

.section-download .cta-apple:hover img {
  filter: none;
}

/* Samme højde på begge download-knapper i download-sektionen */
.section-download .download-buttons .store-badge,
.section-download .download-buttons .cta-apple img {
  height: 60px;
  width: auto;
}

.play-store-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.store-badge {
  height: 44px;
  max-height: none;
  width: auto;
}

.section-store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-link-disabled {
  opacity: 0.7;
}

.play-store-msg {
  margin: 0 !important;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.download-qr-label {
  margin-top: 1.25rem !important;
  font-size: 0.95rem;
  opacity: 0.95;
}

.download-qr {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 10px;
  background: #fff;
  border-radius: var(--radius-sm);
}

.download-qr:hover {
  text-decoration: none;
}

.download-qr img {
  display: block;
}

.download-note {
  margin-top: 1rem !important;
  font-size: 0.95rem;
  opacity: 0.9;
}

.download-note a {
  color: #fff;
  text-decoration: underline;
}

/* ========== Footer ========== */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 1.25rem;
  text-align: center;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-contact {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ========== Desktop ========== */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    padding: 0;
    visibility: visible;
    opacity: 1;
    background: transparent;
  }

  .nav-close {
    display: none;
  }

  .nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .nav a {
    padding: 0.5rem 0.85rem;
    min-height: auto;
    font-size: 1rem;
  }

  .nav-cta {
    margin-top: 0;
    padding: 0.5rem 1rem !important;
  }

  .hero {
    padding: 4rem 1.25rem 5rem;
  }

  .hero-logo {
    width: 160px;
    height: 160px;
  }

  .section {
    padding: 4rem 0;
  }

  .section h2 {
    font-size: var(--text-3xl);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .container-split {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
  }

  .story-image {
    margin: 0;
  }

  .story-image img {
    max-width: 280px;
  }

  .press-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}
