/* wa-lint: skip */
/* Shared layout/components for Claude design stand-cd-* layouts.
   Loaded by stand-cd-* layouts before their stand-specific CSS.
   Contains the building blocks that are identical across stands:

   - .ask           — typed "spoken question" headline
   - .scrollcue     — bouncing "↓ Læs mere" anchor between stage 1 & 2
   - .info-section  — stage 2 reveal-on-scroll copy section
   - .reveal        — fade-up animation hook
   - .stand-cd-body — body content slot under the hero
   - .hero (base)   — single-stage Claude design hero shell

   Stand-specific CSS may override .stage-only / .phone / .tablet etc.
   to suit the per-stand UI mockup. */

/* Generic Claude design hero — full viewport, no internal padding.
   Two-column variants (e.g. floorplan) override .hero to grid.
   NB (ugdk-8cg.5): denne regel rammer enhver .hero på siden — wrapper i
   stand-cd-* templates har derfor også fået `ug-cd-hero` adjacent class for
   R1, men selve styling-kontrakten lever på .hero. cd-app.css definerer
   et background-gradient på .hero — de to regler co-exister bevidst. */
.hero { display: block; min-height: 100vh; position: relative; }

/* ─── Phone-mockup statusbar-ikon-cluster (signal + battery i top-right) ───
   Erstatter inline style="display:flex; gap:5px; align-items:center" på
   <span> inde i .phone__statusbar. ugdk-8cg.5 wa-migration: bruges fra
   stand-cd-floorplan.njk + stand-cd-udstillere.njk. */
.phone-statusbar__icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ─── Eyebrow tag — accent-colored uppercase label with pulsing dot.
   Used by floorplan's hero__copy and udstillere's info-reveal. ─── */
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.hero__pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ─── Spoken question above device — used by ask-pattern stands ─── */
.ask {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 200;
  color: var(--primary);
  letter-spacing: -0.01em;
  text-align: center;
  max-width: 760px;
  line-height: 1.3;
  min-height: 1.4em;
}
@media (max-width: 480px) {
  .ask {
    font-size: clamp(20px, 6.5vw, 28px);
    line-height: 1.35;
  }
  .info-inner h1, .arrangoer-headline {
    line-height: 1.15;
  }
}
.ask b {
  font-weight: 700;
  color: var(--accent);
}
.ask .askcaret {
  display: inline-block;
  width: 2px; height: 0.9em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: -2px;
  animation: blink 0.7s steps(2,start) infinite;
}
.ask .askcaret.hidden { display: none; }

/* ─── Scroll cue — anchor between stage 1 (animation) and stage 2 (copy) ─── */
.scrollcue {
  position: absolute;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  background: none; border: none;
  font-family: inherit;
  z-index: 6;
  animation: cueBounce 2.4s ease-in-out infinite;
}
.scrollcue .arrow { font-size: 18px; color: var(--accent); line-height: 1; }
@keyframes cueBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ─── Customer-proof-strip: smal band der vises lige under hero med
   "Bruges af [logoer]" + valgfri kort citat. Bygger troværdighed
   FØR den lange forklaring. ─── */
.proof-strip {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}
.proof-strip__customers {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.proof-strip__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.proof-strip__logo {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-30);
  letter-spacing: -0.01em;
  opacity: 0.75;
}
.proof-strip__quote {
  margin: 0;
  padding: 0 24px;
  border-left: 2px solid var(--accent);
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  max-width: 460px;
}
.proof-strip__quote-text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--primary);
  font-style: italic;
}
.proof-strip__quote-mark {
  display: none;
}
.proof-strip__cite {
  font-size: 11px;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

@media (max-width: 720px) {
  .proof-strip { padding: 14px 16px; gap: 16px; }
  .proof-strip__customers { gap: 12px; }
  .proof-strip__logo { font-size: 12px; }
  .proof-strip__quote { padding: 0 12px; max-width: 100%; font-size: 13px; }
}

/* ─── Stage 2: reveal-on-scroll copy section ─── */
.info-section {
  background: var(--bg);
  padding: 64px 0 72px;
}
.info-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}
.info-inner h1 {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 200;
  color: var(--primary);
  margin: 0 0 24px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.info-inner h1 b { font-weight: 700; color: var(--accent); }
.info-inner p {
  font-size: 19px; line-height: 1.55;
  color: var(--brand-30);
  margin: 0;
  max-width: 50ch;
}
.info-inner .actions {
  margin-top: 32px;
  display: flex; gap: 12px;
}
.info-inner .meta {
  display: grid; gap: 32px;
}
.info-inner .meta > div {
  display: flex; flex-direction: column; gap: 4px;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}
.info-inner .meta b {
  font-size: 32px; font-weight: 700; color: var(--primary); line-height: 1;
}
.info-inner .meta span {
  font-size: 13px; color: var(--muted);
}

/* ─── Arrangør-segment: dedikeret "for dig som arrangør"-blok der
   eksplicit adresserer B2B-køberen efter den besøgende-fokuserede
   info-reveal. Visuelt distinct (mørkere baggrund) så det er klart
   at det her er TIL ARRANGØREN, ikke til besøgende. ─── */
.arrangoer-section {
  background: var(--primary);
  color: rgb(255, 255, 255);
  padding: 64px 0 72px;
}
.arrangoer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 60px;
}
/* .arrangoer-eyebrow konsolideret til base `.eyebrow eyebrow--accent eyebrow--tight`
   (eyebrow.md whitelist). Template-brug erstattet i info-reveal.njk under wa-migration
   (ugdk-8cg.5). Font-weight 800 → 700 (Figtree slutter ved 700 - browser renderede
   allerede 700; ærlig regel uden visuel forskel - se eyebrow.md afsnit C). */
.arrangoer-headline {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: rgb(255, 255, 255);
}
.arrangoer-headline b { font-weight: 700; color: var(--accent); }
.arrangoer-body {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0 0 28px;
  max-width: 60ch;
}
.arrangoer-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px 32px;
}
.arrangoer-bullets li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.arrangoer-bullets__num {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.arrangoer-bullets__text {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
}

.arrangoer-pricing {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
}
.arrangoer-pricing__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.arrangoer-pricing__text {
  font-size: 15px;
  color: rgba(255,255,255,0.88);
  flex: 1 1 auto;
  min-width: 220px;
}
.arrangoer-pricing__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.arrangoer-pricing__cta:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .arrangoer-section { padding: 48px 0 56px; }
  .arrangoer-inner { padding: 0 24px; }
  .arrangoer-bullets { grid-template-columns: 1fr; gap: 18px; }
  .arrangoer-pricing { padding: 12px 16px; gap: 12px; border-radius: 16px; }
}

/* Mobile h1 word-wrap fix — undgå at lange ord overflower viewport-kant */
@media (max-width: 480px) {
  .info-inner h1, .arrangoer-headline {
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* ─── Stage 2 mobile fallback: stak grid-cellerne, smaller padding ──────────
   Default .info-inner er 2-col grid (1.3fr 1fr) med 80px gap og 60px padding,
   hvilket forårsager 533px wide indhold på 375px viewport (det højre meta-
   panel placeres på left: 416px). Under 720px stables til én kolonne. */
@media (max-width: 720px) {
  .info-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }
  .info-inner .meta { gap: 20px; }
}

/* ─── Fade-up reveal — JS toggles .in via IntersectionObserver ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─── Content-type karusel — overblik over de 7 indholdstyper ───
   Horisontal scroll med snap-x; native touch-swipe + mouse-drag på desktop;
   prev/next-pile på siderne; klikbare pagination-dots under. */
.content-karusel {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.content-karusel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 24px;
  padding: 8px 24px 24px;
  margin: 0 -24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.content-karusel__track::-webkit-scrollbar { display: none; }
.content-karusel__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.content-karusel__track.is-dragging .ct-card { cursor: grabbing; }

.ct-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: rgb(255, 255, 255);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px 20px;
  display: flex; flex-direction: column;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--primary);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  min-height: 200px;
}
.ct-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -16px rgba(49,79,89,0.22);
  border-color: rgba(184,90,58,0.45);
}
.ct-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.ct-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(184,90,58,0.12);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.ct-card__icon svg { width: 22px; height: 22px; }
.ct-card__label {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.ct-card__teaser {
  font-size: 13px;
  line-height: 1.45;
  color: var(--brand-30);
  margin: 0;
  flex: 1 1 auto;
}
.ct-card__more {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 4px;
}
.ct-card__badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(127,190,198,0.18);
  color: var(--brand-50);
}

/* Prev/next-pile — vises kun fra ≥640px (touch-swipe er nok på mobil). */
.content-karusel__nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  border: 1px solid var(--line);
  color: var(--primary);
  cursor: pointer;
  z-index: 4;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(49,79,89,0.15);
  transition: transform .2s, box-shadow .2s, opacity .2s;
  font-family: inherit;
}
.content-karusel__nav:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 10px 24px -6px rgba(49,79,89,0.22);
}
.content-karusel__nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.content-karusel__nav[disabled] {
  opacity: 0;
  pointer-events: none;
}
.content-karusel__nav svg { width: 20px; height: 20px; }
.content-karusel__nav--prev { left: -20px; }
.content-karusel__nav--next { right: -20px; }

@media (min-width: 640px) {
  .content-karusel__nav { display: inline-flex; }
}

/* Scroll-progress-bar — viser hvor langt karusellen er scrolled.
   Mere meningsfuld end dots når flere cards er synlige samtidig. */
.content-karusel__progress {
  position: relative;
  height: 3px;
  width: 200px;
  max-width: 60%;
  margin: 16px auto 0;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.content-karusel__progress-bar {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 25%;
  background: var(--accent);
  border-radius: 999px;
  transition: left .25s ease, width .25s ease;
}
.content-karusel__hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px auto 0;
  max-width: 90%;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
}
.content-karusel__count {
  color: var(--brand-30);
}
.content-karusel__swipe {
  color: var(--accent);
  opacity: 0.7;
}
@media (min-width: 900px) {
  /* På desktop er prev/next-knapperne synlige, så swipe-hint er overflødig */
  .content-karusel__swipe { display: none; }
}

@media (min-width: 900px) {
  .content-karusel__track {
    padding: 8px 8px 24px;
    margin: 0;
  }
  .ct-card { flex: 0 0 260px; }
  .content-karusel__nav--prev { left: -24px; }
  .content-karusel__nav--next { right: -24px; }
}

/* ─── Lightbox modal — content-type detail overlay.
   Renders ÉN gang i indhold-layout; populeres dynamisk via cd-stand-indhold.js. */
.ct-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.ct-modal.is-open { opacity: 1; pointer-events: auto; }

.ct-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,30,35,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.ct-modal__card {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  background: rgb(255, 255, 255);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.ct-modal.is-open .ct-modal__card { transform: translateY(0) scale(1); }

.ct-modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background .2s, transform .2s;
  padding: 0;
}
.ct-modal__close svg { width: 16px; height: 16px; }
.ct-modal__close:hover { background: rgb(255, 255, 255); transform: scale(1.05); }
.ct-modal__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ct-modal__hero {
  background: linear-gradient(180deg, var(--cream) 0%, rgb(255, 255, 255) 100%);
  padding: 28px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.ct-modal__body {
  padding: 36px 36px 32px;
  display: flex; flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.ct-modal__pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}
.ct-modal__pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.ct-modal__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.ct-modal__teaser {
  font-size: 15px;
  line-height: 1.5;
  color: var(--brand-30);
  margin: 0;
}
.ct-modal__bullets {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.ct-modal__bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--brand-30);
}
.ct-modal__bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.ct-modal__cta {
  margin-top: auto;
  padding-top: 14px;
  display: flex; gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .ct-modal { padding: 12px; }
  .ct-modal__card {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
  }
  .ct-modal__hero {
    min-height: 220px;
    padding: 22px;
  }
  .ct-modal__body {
    padding: 24px 24px 22px;
  }
  .ct-modal__title { font-size: 24px; }
}
