/* wa-lint: skip */
/* ==========================================================================
   /ai/filosofi/ — Vores AI-filosofi
   "Harness, ikke erstatning." Filosofisk landingsside med AI-områdets
   lyseblå undertone (rgb(214, 228, 240) / brand-cool). Tre touchpoints, modlag-sektion,
   forberedelses-løfter og kort filosofisk lukning.

   Bygger på samme strukturelle mønster som /om/ men med eget visuelt
   anker (Planner/Generator/Evaluator-diagram) og blå-tonet farveakse.
   ========================================================================== */

.ai-page {
  --ai-diagram-color: var(--brand-primary);
}

/* ── Breadcrumb ───────────────────────────────────────────────────────── */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.ai-hero {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 0%, rgba(127,168,182,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(214,228,240,0.32) 0%, transparent 60%);
}
.ai-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.ai-hero__copy {
  max-width: 600px;
}
.ai-hero__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: rgba(127,168,182,0.14);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-l);
}
.ai-hero__title {
  font-family: var(--font);
  font-size: var(--fs-hero-title);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-l);
}
.ai-hero__title-light {
  display: block;
  font-weight: var(--fw-light);
  color: var(--brand-primary);
}
.ai-hero__title-bold {
  display: block;
  font-weight: var(--fw-bold);
  color: var(--accent);
}
.ai-hero__lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--text);
  max-width: 60ch;
  margin: 0 0 var(--space-m);
}
.ai-hero__lede em {
  font-style: italic;
  color: var(--accent);
  font-weight: var(--fw-semibold);
}
.ai-hero__pitch {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  color: var(--text);
  max-width: 60ch;
  margin: 0 0 var(--space-xl);
  padding: var(--space-m) var(--space-l);
  background: var(--bg);
  border-left: 3px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.ai-hero__pitch strong { color: var(--brand-primary); font-weight: var(--fw-bold); }
.ai-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
}
.ai-hero__actions .btn {
  min-height: 44px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.ai-hero__actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(49,79,89,0.18);
}

/* ── Hero diagram — Planner/Generator/Evaluator ───────────────────────── */
.ai-hero__diagram {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  color: var(--ai-diagram-color);
  filter: drop-shadow(0 8px 32px rgba(49,79,89,0.08));
}
.ai-hero__diagram svg {
  width: 100%;
  height: auto;
  display: block;
}
.ai-hero__diagram-pulse {
  transform-origin: center;
  animation: aiDiagramPulse 2.6s ease-out infinite;
}
@keyframes aiDiagramPulse {
  0%   { opacity: 0.55; r: 70; }
  100% { opacity: 0; r: 95; }
}
/* Strøm-animation langs flow-stierne — dasharray-shift skaber illusion
   af bevægelse uden at flytte selve elementerne. */
.ai-hero__diagram-flow {
  stroke-dasharray: 4 5;
  animation: aiFlowShift 4s linear infinite;
}
.ai-hero__diagram-flow--2 { animation-delay: 1.2s; }
.ai-hero__diagram-flow--3 { animation-delay: 2.4s; }
@keyframes aiFlowShift {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -36; }
}
/* Noder lyser subtilt op i sekvens — markerer flowet */
.ai-hero__node {
  transform-origin: center;
  transform-box: fill-box;
}
.ai-hero__node--planner   { animation: aiNodePulse 4s ease-in-out infinite; }
.ai-hero__node--generator { animation: aiNodePulse 4s ease-in-out infinite 1.3s; }
@keyframes aiNodePulse {
  0%, 80%, 100% { opacity: 0.85; }
  40%           { opacity: 1; filter: drop-shadow(0 0 8px rgba(127,168,182,0.5)); }
}

/* ── Sections — generelt ──────────────────────────────────────────────── */
.ai-section {
  padding: var(--space-xl) 0;
}
.ai-section--subtle {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(214,228,240,0.42) 100%);
  position: relative;
}
.ai-section--subtle::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(49,79,89,0.07) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}
.ai-section--subtle > * { position: relative; z-index: 1; }

.ai-section--contrast {
  background: var(--brand-primary);
  color: rgb(255, 255, 255);
  position: relative;
  overflow: hidden;
}
.ai-section--contrast::before {
  content: "";
  position: absolute;
  inset: -50% 0 -50% 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(214,228,240,0.18) 0%, transparent 55%);
  pointer-events: none;
}
.ai-section--contrast > * { position: relative; z-index: 1; }
.ai-section--contrast .ai-section__head { color: rgb(255, 255, 255); }
.ai-section--contrast .ai-section__head em { color: rgb(255, 196, 170); }
.ai-section--contrast .ai-section__lead { color: rgba(255,255,255,0.92); }

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-l);
}

.ai-section__head {
  font-family: var(--font);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-l);
  color: var(--text);
}
.ai-section__head em {
  font-style: italic;
  color: var(--accent);
}
.ai-section__lead {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--text);
  max-width: 60ch;
  margin: 0 0 var(--space-l);
}
.ai-section__body {
  font-size: var(--fs-lg);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 60ch;
}
.ai-section__note {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-muted);
  margin: var(--space-l) 0 0;
  padding: var(--space-m) var(--space-l);
  background: rgba(127,168,182,0.10);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-primary);
}
.ai-section__note a {
  color: var(--brand-primary);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.ai-section__note a:hover { color: var(--accent); border-bottom-style: solid; }

/* ── Tre touchpoints — besøgende/udstiller/arrangør ──────────────────── */
.ai-touch {
  list-style: none;
  padding: 0;
  margin: var(--space-l) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}
.ai-touch__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-m);
  padding: var(--space-l);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.ai-touch__item:hover {
  transform: translateX(4px);
  border-color: rgba(127,168,182,0.55);
  box-shadow: 0 6px 18px rgba(49,79,89,0.06);
}
.ai-touch__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(127,168,182,0.14);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .25s, color .25s, transform .25s;
}
.ai-touch__icon svg { width: 24px; height: 24px; }
.ai-touch__item:hover .ai-touch__icon {
  background: rgba(184,90,58,0.16);
  color: var(--accent);
  transform: rotate(-4deg) scale(1.05);
}
.ai-touch__role {
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}
.ai-touch__title {
  font-size: 18px;
  font-weight: var(--fw-bold);
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.35;
}
.ai-touch__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ── Hvad vi IKKE bruger AI til ──────────────────────────────────────── */
.ai-not {
  list-style: none;
  padding: 0;
  margin: var(--space-l) 0 0;
}
.ai-not li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-m);
  padding: var(--space-l) 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  align-items: flex-start;
}
.ai-not li:last-child { border-bottom: 1px solid rgba(255,255,255,0.16); }
.ai-not__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(184,90,58,0.22);
  color: rgb(255, 196, 170);
  font-size: 18px;
  font-weight: var(--fw-bold);
  line-height: 1;
}
.ai-not strong {
  display: block;
  color: rgb(255, 255, 255);
  font-size: 17px;
  font-weight: var(--fw-bold);
  margin-bottom: 4px;
}
.ai-not li > div {
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Det vi forbereder — 3 nummererede løfter ────────────────────────── */
.ai-prep {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}
.ai-prep__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-m);
  padding: var(--space-l);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.ai-prep__item:hover {
  transform: translateX(4px);
  border-color: rgba(127,168,182,0.55);
  box-shadow: 0 6px 18px rgba(49,79,89,0.06);
}
.ai-prep__num {
  display: inline-flex;
  align-items: flex-start;
  font-family: var(--font);
  font-weight: var(--fw-bold);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand-primary);
}
.ai-prep__title {
  font-size: 18px;
  font-weight: var(--fw-bold);
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.35;
}
.ai-prep__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* ── Pull-quote ───────────────────────────────────────────────────────── */
.ai-pullquote {
  margin: var(--space-xl) 0 0;
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(127,168,182,0.10) 0%, rgba(184,90,58,0.06) 100%);
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--accent);
}
.ai-pullquote blockquote {
  margin: 0;
  padding: 0;
}
.ai-pullquote p {
  font-family: var(--font);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: var(--fw-medium);
  line-height: 1.4;
  color: var(--text);
  margin: 0;
  font-style: italic;
}

/* ── CTA ──────────────────────────────────────────────────────────────── */
.ai-cta {
  position: relative;
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--brand-primary) 0%, color-mix(in srgb, var(--brand-primary) 70%, rgb(0, 0, 0)) 100%);
  color: rgb(255, 255, 255);
  text-align: center;
  overflow: hidden;
}
.ai-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(214,228,240,0.20) 0%, transparent 60%);
  pointer-events: none;
}
.ai-cta__halo {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(184,90,58,0.30), 0 0 32px var(--accent);
  animation: aiCtaPulse 2.4s ease-in-out infinite;
}
@keyframes aiCtaPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1; transform: translateX(-50%) scale(1.15); }
}
.ai-cta__head {
  position: relative;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: var(--fw-bold);
  margin: var(--space-xl) 0 var(--space-m);
  color: rgb(255, 255, 255);
  letter-spacing: -0.01em;
}
.ai-cta__lede {
  position: relative;
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  max-width: 56ch;
  margin: 0 auto var(--space-xl);
  line-height: 1.55;
}
.ai-cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  justify-content: center;
}
.ai-cta__actions .btn { min-height: 44px; }
.ai-cta__btn-light {
  border-color: rgba(255,255,255,0.45);
  color: rgb(255, 255, 255);
  background: transparent;
}
.ai-cta__btn-light:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgb(255, 255, 255);
  color: rgb(255, 255, 255);
}

/* ── Scroll-reveal ──────────────────────────────────────────────────────
   Default-state: alt indhold er synligt (opacity: 1) — derefter overruler
   inline-scriptet det ved at sætte html.reveal-armed *synkront før første
   paint* hvis IntersectionObserver er tilgængelig og prefers-reduced-motion
   ikke er sat. Det betyder:

   • no-JS / crawlers / screenshot-værktøjer → ser indholdet (ingen tom hvid)
   • JS med IO → fader pænt ind når sektioner scroller i view
   • prefers-reduced-motion → klassen sættes aldrig, indhold er bare visible

   Tidligere brugte vi html.js som gate — men html.js sættes også når der ER
   et reveal-fallback (no IntersectionObserver), og hvis IO så af en eller
   anden grund ikke trigger (Lighthouse crawl, fetch før layout, headless
   uden viewport-event), endte siden med 80% tom plads (ugdk-fix). */
html.reveal-armed .ai-page [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(24px);
}
html.reveal-armed .ai-page [data-reveal] {
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
html.reveal-armed .ai-section:not(.is-revealed) .ai-touch__item,
html.reveal-armed .ai-section:not(.is-revealed) .ai-prep__item {
  opacity: 0;
  transform: translateY(12px);
}
html.reveal-armed .ai-touch__item,
html.reveal-armed .ai-prep__item {
  transition: opacity .5s ease-out, transform .5s ease-out;
}
html.reveal-armed .ai-section.is-revealed .ai-touch__item:nth-child(1),
html.reveal-armed .ai-section.is-revealed .ai-prep__item:nth-child(1) { transition-delay: .12s; }
html.reveal-armed .ai-section.is-revealed .ai-touch__item:nth-child(2),
html.reveal-armed .ai-section.is-revealed .ai-prep__item:nth-child(2) { transition-delay: .24s; }
html.reveal-armed .ai-section.is-revealed .ai-touch__item:nth-child(3),
html.reveal-armed .ai-section.is-revealed .ai-prep__item:nth-child(3) { transition-delay: .36s; }

/* ── Mobil tilpasninger ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .ai-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }
  .ai-hero__diagram { max-width: 480px; order: 2; }
}

@media (max-width: 768px) {
  .ai-hero { padding: var(--space-2xl) 0 var(--space-l); }
  .ai-hero__title { font-size: clamp(30px, 7vw, 44px); }
  .ai-hero__diagram { max-width: 360px; }
  .ai-hero__actions { flex-direction: column; align-items: stretch; }
  .ai-hero__actions .btn { width: 100%; justify-content: center; }
  .ai-section { padding: var(--space-l) 0; }
  .ai-touch__item { grid-template-columns: 48px 1fr; padding: var(--space-m); }
  .ai-touch__icon { width: 40px; height: 40px; }
  .ai-touch__icon svg { width: 22px; height: 22px; }
  .ai-not li { grid-template-columns: 32px 1fr; gap: var(--space-s); }
  .ai-prep__item { grid-template-columns: 48px 1fr; padding: var(--space-m); }
  .ai-prep__num { font-size: 28px; }
  .ai-cta__actions { flex-direction: column; align-items: stretch; }
  .ai-cta__actions .btn { width: 100%; justify-content: center; }
  .ai-pullquote { padding: var(--space-l); }
}

@media (max-width: 480px) {
  .ai-hero__kicker { font-size: 12px; padding: 5px 12px; }
  .ai-section__head { font-size: 26px; }
}

/* ── Reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ai-hero__diagram-pulse,
  .ai-hero__diagram-flow,
  .ai-hero__node--planner,
  .ai-hero__node--generator,
  .ai-cta__halo { animation: none; }
  .ai-touch__item,
  .ai-prep__item,
  .ai-hero__actions .btn,
  .ai-touch__icon { transition: none; }
  html.reveal-armed .ai-page [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.reveal-armed .ai-touch__item,
  html.reveal-armed .ai-prep__item { opacity: 1; transform: none; transition: none; }
}

/* ── Dark mode — auto via tokens ─────────────────────────────────────── */
[data-theme="dark"] .ai-hero {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(127,168,182,0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(127,168,182,0.10) 0%, transparent 60%);
}
[data-theme="dark"] .ai-hero__pitch { background: var(--surface); }
[data-theme="dark"] .ai-section--subtle {
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 80%, var(--brand-primary)) 100%);
}
[data-theme="dark"] .ai-section--subtle::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
}
[data-theme="dark"] .ai-section--contrast {
  background: color-mix(in srgb, var(--brand-primary) 35%, rgb(0, 0, 0));
}
[data-theme="dark"] .ai-touch__item,
[data-theme="dark"] .ai-prep__item {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .ai-pullquote {
  background: linear-gradient(135deg, rgba(127,168,182,0.16) 0%, rgba(184,90,58,0.10) 100%);
}
[data-theme="dark"] .ai-cta {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 50%, rgb(0, 0, 0)) 0%, rgb(10, 20, 24) 100%);
}
[data-theme="dark"] .ai-section__note {
  background: rgba(127,168,182,0.18);
}
