/* LumiHue – samme mørke palette som appen */
:root {
  color-scheme: dark;
  --bg: #111518;
  --fg: #f2f4f2;
  --border: #344047;
  --muted: #a8b5bc;
  --accent: #dcf99d;
  --accent-fg: #182016;
  --card: #1a2024;
  --shell: 960px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: #1a2024;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.shell {
  width: min(var(--shell), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Video i fuld højde */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Blød overgang fra videoen til siden */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

/* Lille pil: der er mere nedenunder */
.more {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: rgba(242, 244, 242, 0.85);
  transform: translateX(-50%);
}

.more:hover {
  color: var(--fg);
  text-decoration: none;
}

.more svg {
  animation: nudge 1.6s ease-in-out infinite alternate;
}

@keyframes nudge {
  from {
    transform: translateY(-3px);
  }
  to {
    transform: translateY(5px);
  }
}

/* Logo og kort intro, centreret under videoen */
.intro {
  padding: 96px 0 72px;
  text-align: center;
}

.brand {
  width: auto;
  height: 44px;
  margin: 0 auto 40px;
}

.lead {
  margin: 0 auto 32px;
  max-width: 24em;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.points {
  display: grid;
  gap: 36px;
  margin: 0 auto;
  padding: 0;
  max-width: 36em;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Det hvide ord står øverst, den grå forklaring tæt nedenunder i mindre skrift */
.points strong {
  display: block;
  margin-bottom: 1px;
  color: var(--fg);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
}

footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

footer p {
  margin: 0 auto;
  max-width: 60em;
}

/* Cookievalg: lille kort nederst, til højre på brede skærme */
.consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 30;
  max-width: 420px;
  margin-left: auto;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.consent[hidden] {
  display: none;
}

.consent-text {
  margin: 0 0 12px;
}

.consent-text strong {
  color: var(--fg);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.consent button {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}

.consent-no:hover {
  border-color: var(--muted);
}

.consent-yes {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}

.consent-yes:hover {
  filter: brightness(1.04);
}

.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}

.linklike:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: no-preference) {
  .consent {
    animation: consent-in 0.3s ease-out;
  }

  @keyframes consent-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Smalle skærme */
@media (max-width: 760px) {
  .brand {
    height: 36px;
    margin-bottom: 32px;
  }

  .more {
    bottom: 20px;
  }

  .intro {
    padding: 64px 0 48px;
  }

  /* Mens cookievalget er åbent, viger pilen for banneret */
  body.consent-open .more {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .more svg {
    animation: none;
  }
}
