/* ==========================================================================
   tillty Guides — fælles stylesheet
   Bygget på tillty Design System v1.0 (https://web.tillty.com/styleguide/)
   Genbruges af alle guides under docs/guides/. Ret kun her, så alle guides
   følger samme udtryk.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fugaz+One&family=Nunito:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --brand-primary: #142251;   /* dark navy */
  --brand-accent: #198aff;    /* bright blue */
  --brand-accent-hover: #0070e0;
  --white: #ffffff;

  /* Semantik */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Baggrunde (lyst tema) */
  --bg-body: #ffffff;
  --bg-elevated: #f4f7fc;
  --bg-sunken: #eef2f9;

  /* Tekst */
  --text-strong: #142251;
  --text-body: #2b3550;
  --text-muted: #6b7693;
  --border: #e2e8f3;

  /* Typografi */
  --font-display: 'Fugaz One', cursive;
  --font-heading: 'Nunito', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;

  /* Spacing-skala */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px;

  /* Radius */
  --r-sm: 4px; --r-md: 8px; --r-lg: 16px; --r-full: 9999px;

  /* Skygger */
  --shadow-xs: 0 1px 2px rgba(20, 34, 81, 0.06);
  --shadow-sm: 0 2px 6px rgba(20, 34, 81, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 34, 81, 0.10);
  --shadow-lg: 0 16px 48px rgba(20, 34, 81, 0.14);
  --shadow-accent: 0 8px 24px rgba(25, 138, 255, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background:
    radial-gradient(1200px 600px at 50% -200px, #e9f2ff 0%, rgba(233,242,255,0) 60%),
    var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

/* ----- Layout ----- */
.guide {
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6) var(--sp-16);
}

/* ----- Top-bjælke / brand ----- */
.guide-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.brand .wordmark {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--brand-primary);
  letter-spacing: 0.5px;
  text-transform: lowercase;
}
.brand .product {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--brand-accent);
  background: #e9f2ff;
  padding: 2px 8px;
  border-radius: var(--r-sm);
}
.topbar-right { display: flex; align-items: center; gap: var(--sp-4); }
.guide-meta {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

/* Sprogskifter (DA | EN) */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 3px;
}
.lang-switch .lang {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: var(--r-full);
  transition: background 150ms ease, color 150ms ease;
}
.lang-switch .lang:hover { color: var(--brand-primary); }
.lang-switch .lang.active { background: var(--brand-accent); color: var(--white); }

/* ----- Hero ----- */
.guide-hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #1d3170 100%);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-12) var(--sp-8);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--sp-12);
  position: relative;
  overflow: hidden;
}
.guide-hero::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(25,138,255,0.45) 0%, rgba(25,138,255,0) 70%);
}
.guide-hero .eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8fc2ff;
  margin: 0 0 var(--sp-3);
}
.guide-hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 var(--sp-4);
  color: var(--white);
}
.guide-hero p {
  font-size: 18px;
  max-width: 60ch;
  margin: 0;
  color: #d7e3ff;
}

/* ----- Sektionstitler ----- */
h2.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--text-strong);
  margin: var(--sp-12) 0 var(--sp-6);
}

/* ----- Trin (steps) ----- */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: var(--sp-8); }

.step {
  display: block;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 300ms ease;
}
.step:hover { box-shadow: var(--shadow-md); }

.step-body { min-width: 0; max-width: 78ch; }
.step-num {
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: var(--brand-accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--shadow-accent);
  margin-bottom: var(--sp-4);
}
.step-num::before { content: counter(step); }
.step h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-strong);
  margin: 0 0 var(--sp-3);
}
.step p { margin: 0 0 var(--sp-3); }
.step p:last-child { margin-bottom: 0; }

/* Fremhævet UI-element i tekst (fx en knap eller et felt) */
.ui {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

/* ----- Skærmbilleder ----- */
.step-media { display: flex; justify-content: center; width: 100%; margin-top: var(--sp-6); }
.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--bg-elevated);
}

/* Wrapper der bærer markører oven på et skærmbillede */
.shot-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  cursor: zoom-in;
}
.shot-wrap::after { /* lille "forstør"-hint i hjørnet */
  content: '⤢';
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1;
  color: var(--white);
  background: rgba(20, 34, 81, 0.55);
  border-radius: var(--r-sm);
  opacity: 0;
  transition: opacity 150ms ease;
}
.shot-wrap:hover::after { opacity: 1; }

/* To skærmbilleder side om side (iPad + iPhone) */
.shots-dual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--sp-6);
  width: 100%;
}
.shots-dual .shot-wrap--tablet { width: 68%; }
.shots-dual .shot-wrap--phone { width: 24%; }

/* Markører (nummererede cirkler + rammer) er brændt ind i selve billederne
   via docs/guides/_assets/annotate.py — ikke CSS-overlays. Det holder dem
   præcise og bevarer dem i lightbox, standalone-fil, PDF og e-mail. */

/* ----- Lightbox (klik for stor) ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3vmin;
  background: rgba(10, 18, 45, 0.86);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox__stage {
  line-height: 0;
  animation: lb-in 200ms ease;
}
.lightbox__stage .shot-wrap { cursor: default; } /* bredden sættes af JS (fit) */
.lightbox__stage .shot-wrap::after { display: none; }
.lightbox__stage .shot {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-lg);
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 44px; height: 44px;
  border: none;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  transition: background 150ms ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.30); }
@keyframes lb-in { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
figure.shot-figure { margin: 0; text-align: center; width: 100%; }
figure.shot-figure figcaption {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--sp-2);
}

/* ----- Callouts ----- */
.callout {
  display: flex;
  gap: var(--sp-3);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-6) 0;
  font-size: 15px;
  border: 1px solid transparent;
}
.callout .ico { font-size: 20px; line-height: 1.5; }
.callout strong { font-family: var(--font-heading); }
.callout--info    { background: #eaf3ff; border-color: #c7e0ff; color: #0b3d80; }
.callout--success { background: #e7f8f1; border-color: #b7ead6; color: #0a6b4d; }
.callout--warning { background: #fef4e6; border-color: #fadcab; color: #8a5a05; }

/* ----- Footer ----- */
.guide-footer {
  margin-top: var(--sp-16);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* ----- Responsivt ----- */
@media (max-width: 760px) {
  .step, .step.reverse { grid-template-columns: 1fr; }
  .step.reverse .step-media { order: 0; }
  .guide-hero h1 { font-size: 30px; }
  .shots-dual { flex-direction: column; align-items: center; }
  .shots-dual .shot-wrap--tablet, .shots-dual .shot-wrap--phone { width: 90%; }
}

/* ----- Print (kunde kan gemme som PDF) ----- */
@media print {
  body { background: #fff; }
  .step { break-inside: avoid; box-shadow: none; border-color: #ccc; }
  .guide-hero { box-shadow: none; }
}
