/**
 * home-hero-lys.css — forsidens hero i "lysstribe"-stil (2026-10-07).
 *
 * Mørk scene med lysstriber (home-hero-lys.js tegner dem med WebGL), overskrift med kursiv
 * fremhævning, mintgrøn hovedknap, et glaskort med plejeforløbet som flow og tal, der tæller op.
 * Alt er afgrænset til .hero--lys, så resten af forsiden er urørt. Uden WebGL står en CSS-glød i stedet.
 */

html .hero.hero--lys {
  --lys-bund: #040a15;
  --lys-mint: #5eead4;
  --lys-turkis: #2dd4bf;
  --lys-himmel: #7dd3fc;
  --lys-tekst: #e8f2ff;
  --lys-daempet: rgba(214, 228, 248, .72);
  --lys-udtoning: linear-gradient(180deg, #000 calc(100% - 150px), transparent);
  background: none;
  color: var(--lys-tekst);
}
/* Heroens egen mørke bund og lysstriberne toner ud forneden, så siden glider over i 3D-baggrunden */
.hero--lys .hero-lys-bund {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 62% 58%, rgba(45, 212, 191, .16), transparent 70%),
    radial-gradient(45% 40% at 85% 20%, rgba(125, 211, 252, .12), transparent 70%),
    var(--lys-bund);
  -webkit-mask-image: var(--lys-udtoning);
          mask-image: var(--lys-udtoning);
}
html .hero.hero--lys::before {
  background: linear-gradient(90deg, rgba(4, 10, 21, .78) 0%, rgba(4, 10, 21, .35) 42%, transparent 66%);
  z-index: 1;
  -webkit-mask-image: var(--lys-udtoning);
          mask-image: var(--lys-udtoning);
}
html .hero.hero--lys::after { opacity: .05; z-index: 1; }

.hero-lys {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease;
  -webkit-mask-image: var(--lys-udtoning);
          mask-image: var(--lys-udtoning);
}
.hero--lys.lys-paa .hero-lys { opacity: 1; }

.hero--lys .hero-inner,
.hero--lys .stats { z-index: 2; }

/* ── Tekst ── */
.hero--lys .hero-kicker {
  gap: 9px;
  padding: 5px 6px 5px 12px;
  color: #d7e6fb;
  background: rgba(10, 22, 42, .62);
  border: 1px solid rgba(94, 234, 212, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.hero--lys .hero-kicker-nyt {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 4px; padding: 4px 10px 4px 8px; border-radius: 999px;
  background: rgba(94, 234, 212, .12); border: 1px solid rgba(94, 234, 212, .35);
  color: var(--lys-mint); font-weight: 850; text-decoration: none; letter-spacing: .02em; text-transform: none; white-space: nowrap;
}
.hero--lys .hero-kicker-nyt::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lys-mint);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, .7); animation: lysPrik 2.4s ease-out infinite;
}
.hero--lys .hero-kicker-nyt:hover { background: rgba(94, 234, 212, .2); }
@keyframes lysPrik { 70%, 100% { box-shadow: 0 0 0 8px rgba(94, 234, 212, 0); } }

.hero--lys h1 {
  color: #f4f8ff;
  text-shadow: 0 2px 30px rgba(2, 8, 20, .6);
}
.hero--lys h1 span,
.hero--lys h1 span .ord {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--lys-mint);
  text-shadow: 0 0 40px rgba(45, 212, 191, .45), 0 0 12px rgba(94, 234, 212, .25);
}
.hero--lys .hero-copy > p { color: var(--lys-daempet); }

/* ── Knapper ── */
.hero--lys .btn-hero:not(.btn-hero-secondary) {
  background: linear-gradient(180deg, #7ff3df, #3fd8be);
  color: #04221e;
  box-shadow: 0 14px 40px -10px rgba(45, 212, 191, .7), 0 0 0 1px rgba(255, 255, 255, .35) inset;
}
.hero--lys .btn-hero:not(.btn-hero-secondary):hover { background: linear-gradient(180deg, #9af7e8, #52e2c9); }
.hero--lys .btn-hero-secondary {
  background: rgba(10, 22, 42, .55);
  border-color: rgba(214, 228, 248, .28);
  color: #e8f2ff;
}
.hero--lys .btn-hero-secondary:hover { background: rgba(20, 38, 66, .7); border-color: rgba(94, 234, 212, .5); }
.hero--lys .hero-proof { color: rgba(214, 228, 248, .66); }

/* ── Glaskortet: plejeforløbet som flow ── */
.hero--lys .hero-preview {
  color: var(--lys-tekst);
  background: linear-gradient(180deg, rgba(14, 28, 52, .86), rgba(8, 18, 36, .9));
  border: 1px solid rgba(148, 197, 255, .16);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(94, 234, 212, .06), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.hero--lys .hero-preview::before {
  background: radial-gradient(closest-side, rgba(45, 212, 191, .28), rgba(56, 130, 246, .16) 55%, transparent 75%);
}
.hero--lys .preview-top { border-bottom-color: rgba(148, 197, 255, .12); }
.hero--lys .preview-dot { background: rgba(214, 228, 248, .2) !important; }
.hero--lys .preview-title { color: rgba(214, 228, 248, .6); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.hero--lys .preview-title::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%;
  background: var(--lys-mint); box-shadow: 0 0 10px var(--lys-mint); vertical-align: 1px;
}
.hero--lys .preview-question { color: #f4f8ff; font-size: .86rem; }

/* Trinrækken: tre noder på en linje */
.hero--lys .preview-flow { position: relative; gap: 10px; }
.hero--lys .preview-flow::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 1px;
  background: linear-gradient(90deg, rgba(94, 234, 212, .5), rgba(125, 211, 252, .35));
}
.hero--lys .preview-flow span {
  position: relative;
  background: #0c1a31;
  color: rgba(214, 228, 248, .62);
  border: 1px solid rgba(148, 197, 255, .16);
  border-radius: 999px;
}
.hero--lys.hero .hero-preview[data-phase="1"] .preview-flow span:nth-child(1),
.hero--lys.hero .hero-preview[data-phase="2"] .preview-flow span:nth-child(2),
.hero--lys.hero .hero-preview[data-phase="3"] .preview-flow span:nth-child(3) {
  background: rgba(45, 212, 191, .16);
  color: var(--lys-mint);
  border-color: rgba(94, 234, 212, .6);
  box-shadow: 0 0 18px rgba(45, 212, 191, .3);
}

/* Panelerne vises alle sammen som en pipeline; det aktive lyser */
.hero--lys .preview-stage {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding-left: 22px;
}
.hero--lys .preview-stage::before {
  content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(94, 234, 212, .55), rgba(125, 211, 252, .3), rgba(167, 139, 250, .35));
}
.hero--lys .preview-stage::after {
  content: ""; position: absolute; left: 3px; top: 14px; width: 8px; height: 26px; border-radius: 8px;
  background: radial-gradient(closest-side, #ffffff, var(--lys-mint) 45%, transparent);
  filter: blur(.4px);
  animation: lysLoeb 2.6s cubic-bezier(.5, 0, .5, 1) infinite;
}
@keyframes lysLoeb {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(var(--loeb, 230px)); opacity: 0; }
}
.hero--lys.hero .preview-panel {
  display: block;
  animation: none;
  position: relative;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 26, 49, .78);
  border: 1px solid rgba(148, 197, 255, .13);
  opacity: .58;
  transition: opacity .45s ease, border-color .45s ease, box-shadow .45s ease, background .45s ease;
}
.hero--lys .preview-panel::before {
  content: ""; position: absolute; left: -21px; top: 16px; width: 10px; height: 10px; border-radius: 50%;
  background: #0c1a31; border: 2px solid rgba(148, 197, 255, .4);
  transition: background .45s ease, border-color .45s ease, box-shadow .45s ease;
}
.hero--lys.hero .preview-panel.is-aktiv {
  opacity: 1;
  background: rgba(16, 38, 64, .92);
  border-color: rgba(94, 234, 212, .55);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, .18), 0 0 34px -6px rgba(45, 212, 191, .4);
}
.hero--lys .preview-panel.is-aktiv::before { background: var(--lys-mint); border-color: var(--lys-mint); box-shadow: 0 0 12px var(--lys-mint); }
.hero--lys .preview-panel-label { color: rgba(214, 228, 248, .55); margin-bottom: 5px; }
.hero--lys .preview-panel-note { display: none; }
.hero--lys .preview-choice {
  padding: 0; border: 0; background: none; color: #f4f8ff; font-size: .82rem;
}
.hero--lys .preview-detail {
  margin: 0; padding: 0; border: 0; background: none; color: #dbe8fa; font-size: .76rem;
}
.hero--lys .preview-result {
  padding: 0; border: 0; background: none; border-radius: 0;
}
.hero--lys .preview-result strong { color: var(--lys-mint); font-size: .8rem; }
.hero--lys .preview-result p {
  color: rgba(214, 228, 248, .78);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero--lys .preview-meta span {
  color: #bdf5ea; background: rgba(45, 212, 191, .1); border-color: rgba(94, 234, 212, .35);
}
.hero--lys .hero-preview .preview-choice,
.hero--lys .hero-preview .preview-detail,
.hero--lys .hero-preview .preview-result { box-shadow: none; }
.hero--lys .preview-replay {
  background: rgba(12, 26, 49, .9); color: #dbe8fa; border-color: rgba(148, 197, 255, .25);
}
.hero--lys .preview-replay:hover { background: rgba(20, 42, 72, .95); }
.hero--lys .hero-orbit-maerke {
  color: #c9fff4;
  background: rgba(8, 20, 38, .8);
  border-color: rgba(94, 234, 212, .4);
}

/* ── Tallene ── */
.hero--lys .stats {
  background: rgba(8, 18, 36, .66);
  border-color: rgba(148, 197, 255, .14);
}
.hero--lys .stat { flex: 1 1 130px; border-right-color: rgba(148, 197, 255, .12); text-align: left; padding: 14px 20px 16px; }
.hero--lys .stat-num {
  color: #f4f8ff;
  text-shadow: 0 0 26px rgba(94, 234, 212, .35);
  transform: none;
  font-variant-numeric: tabular-nums;
}
.hero--lys .stat-label { color: rgba(214, 228, 248, .62); }
.hero--lys .stat::after {
  content: "";
  display: block;
  height: 6px;
  margin-top: 10px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, var(--lys-mint) calc(var(--fyld, 1) * 100%), transparent 0) ,
    rgba(148, 197, 255, .1);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 10px);
          mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 10px);
  box-shadow: 0 0 12px rgba(45, 212, 191, .25);
}

@media (max-width: 820px) {
  html .hero.hero--lys::before { background: linear-gradient(180deg, rgba(4, 10, 21, .55), rgba(4, 10, 21, .2) 55%, rgba(4, 10, 21, .5)); }
  .hero--lys .stat { text-align: center; }
}
@media (max-width: 520px) {
  .hero--lys .hero-kicker {
    flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; box-shadow: none;
    font-size: .68rem; letter-spacing: .1em; color: rgba(214, 228, 248, .7);
  }
  .hero--lys .hero-kicker > svg { display: none; }
  .hero--lys .hero-kicker-nyt { margin-left: 0; font-size: .74rem; }
  .hero--lys .preview-stage { padding-left: 20px; gap: 8px; }
  .hero--lys .preview-flow span { font-size: .58rem; padding: 6px 2px; }
  .hero--lys .stat { padding: 10px 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--lys .preview-stage::after,
  .hero--lys .hero-kicker-nyt::before { animation: none; }
  .hero--lys .preview-stage::after { display: none; }
  .hero-lys { transition: none; }
}
