/* AI Literacy Kit — fælles stylesheet
   Ét regelsæt pr. komponent. Ret farverne i :root, hvis du vil have et andet udtryk. */

:root {
  --ink: #0d1218;
  --ink-soft: #232c36;
  --muted: #5e6875;
  --line: #e4e8ee;
  --line-soft: #eef1f5;
  --bg: #ffffff;
  --bg-alt: #f7f9fa;
  --accent: #1a5c4b;
  --accent-2: #2c8a70;
  --accent-soft: #e8f2ee;
  --warm: #b8611f;
  --radius: 18px;
  --max: 1120px;
  --shadow-xs: 0 1px 2px rgba(13, 18, 24, 0.05);
  --shadow-sm: 0 2px 4px rgba(13, 18, 24, 0.04), 0 10px 26px -18px rgba(13, 18, 24, 0.32);
  --shadow-md: 0 20px 44px -26px rgba(13, 18, 24, 0.34), 0 2px 6px rgba(13, 18, 24, 0.04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.66;
  letter-spacing: 0.001em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #d9ece5; color: var(--ink); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 760px; }

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.6);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

.brand .logo {
  width: 30px;
  height: 30px;
  flex: none;
  margin-right: 10px;
  filter: drop-shadow(0 6px 12px rgba(26, 92, 75, 0.35));
}

.brand span { color: var(--accent); margin-left: 4px; }

nav.top { display: flex; gap: 22px; align-items: center; }

nav.top a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  padding-bottom: 2px;
}

nav.top a:hover { color: var(--accent); }

nav.top a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

nav.top a:not(.btn):hover::after { transform: scaleX(1); }

/* ---------- Sprogbjælke: kun flag ---------- */

.langbar {
  border-bottom: 1px solid var(--line-soft);
  background: #fbfcfd;
}

.langbar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.langbar a {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 10px;
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.langbar a:hover { opacity: 1; background: #eef1f4; }

.langbar a.on {
  opacity: 1;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-xs);
}

.flag {
  width: 24px;
  height: 17px;
  flex: none;
  border-radius: 4px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), 0 1px 2px rgba(13, 18, 24, 0.1);
}

.flag-dk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 13'%3E%3Crect width='18' height='13' fill='%23c8102e'/%3E%3Crect x='5' width='2.4' height='13' fill='%23fff'/%3E%3Crect y='5.3' width='18' height='2.4' fill='%23fff'/%3E%3C/svg%3E"); }
.flag-gb { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 13'%3E%3Crect width='18' height='13' fill='%23012169'/%3E%3Cpath d='M0 0 18 13M18 0 0 13' stroke='%23fff' stroke-width='2.6'/%3E%3Cpath d='M0 0 18 13M18 0 0 13' stroke='%23c8102e' stroke-width='1.1'/%3E%3Cpath d='M9 0V13M0 6.5H18' stroke='%23fff' stroke-width='4.2'/%3E%3Cpath d='M9 0V13M0 6.5H18' stroke='%23c8102e' stroke-width='2.4'/%3E%3C/svg%3E"); }
.flag-de { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 13'%3E%3Crect width='18' height='4.34' fill='%23000'/%3E%3Crect y='4.33' width='18' height='4.34' fill='%23dd0000'/%3E%3Crect y='8.66' width='18' height='4.34' fill='%23ffce00'/%3E%3C/svg%3E"); }
.flag-sv { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 13'%3E%3Crect width='18' height='13' fill='%230066aa'/%3E%3Crect x='5' width='2.4' height='13' fill='%23fecc00'/%3E%3Crect y='5.3' width='18' height='2.4' fill='%23fecc00'/%3E%3C/svg%3E"); }
.flag-no { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 13'%3E%3Crect width='18' height='13' fill='%23ba0c2f'/%3E%3Crect x='4.6' width='3.2' height='13' fill='%23fff'/%3E%3Crect y='4.9' width='18' height='3.2' fill='%23fff'/%3E%3Crect x='5.4' width='1.6' height='13' fill='%2300247f'/%3E%3Crect y='5.7' width='18' height='1.6' fill='%2300247f'/%3E%3C/svg%3E"); }
.flag-fi { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 13'%3E%3Crect width='18' height='13' fill='%23fff'/%3E%3Crect x='5' width='2.6' height='13' fill='%230053a5'/%3E%3Crect y='5.2' width='18' height='2.6' fill='%230053a5'/%3E%3C/svg%3E"); }
.flag-fr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 13'%3E%3Crect width='6' height='13' fill='%230055a4'/%3E%3Crect x='6' width='6' height='13' fill='%23fff'/%3E%3Crect x='12' width='6' height='13' fill='%23ef4135'/%3E%3C/svg%3E"); }
.flag-es { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 13'%3E%3Crect width='18' height='3.25' fill='%23aa151b'/%3E%3Crect y='3.25' width='18' height='6.5' fill='%23f1bf00'/%3E%3Crect y='9.75' width='18' height='3.25' fill='%23aa151b'/%3E%3C/svg%3E"); }

/* ---------- Type ---------- */

h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.18; margin: 0 0 14px; }

h1 {
  font-size: clamp(33px, 4.2vw, 49px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 780;
}

h2 {
  font-size: clamp(25px, 2.9vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.032em;
  font-weight: 700;
}

h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.018em; }

p { margin: 0 0 16px; }

.lead {
  font-size: clamp(17.5px, 1.45vw, 19.5px);
  line-height: 1.62;
  color: var(--ink-soft);
}

.muted { color: var(--muted); }

.small { font-size: 14px; line-height: 1.6; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Sections ---------- */

section { padding: 84px 0; }
section[id] { scroll-margin-top: 88px; }
section.tight { padding: 58px 0; }

section.alt {
  background: linear-gradient(180deg, #f8fafb 0%, #f5f7f9 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 80px;
  color: #e9f2ef;
  background: #08110f url("assets/hero-ai.jpg") right center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(95deg, rgba(6, 14, 12, 0.97) 0%, rgba(6, 14, 12, 0.92) 40%, rgba(6, 14, 12, 0.6) 68%, rgba(6, 14, 12, 0.3) 100%),
    radial-gradient(620px 320px at 88% 92%, rgba(44, 138, 112, 0.3), transparent 72%);
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  align-items: start;
}

.hero h1 { margin-bottom: 20px; color: #fff; text-wrap: balance; }
.hero .lead { margin-bottom: 28px; color: #c9d7d3; }
.hero .eyebrow { color: #8fd3bd; }
.hero .trust { color: #c9d7d3; }
.hero .trust li::before { background: rgba(255, 255, 255, 0.18); color: #a8e3cf; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  white-space: nowrap;
  padding: 13px 22px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 650;
  font-size: 15.5px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-xs);
  transition: transform 0.14s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 12px 26px -16px rgba(26, 92, 75, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-primary:hover {
  background: linear-gradient(160deg, #30957a, #175245);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: #c9d2db;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: none;
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-warm { background: var(--warm); color: #fff; }
.btn-warm:hover { background: #9c4f16; }

/* ---------- Trust-liste ---------- */

.trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 15px;
  color: var(--ink-soft);
}

.trust li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.trust li::before {
  content: "✓";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 10.5px;
  line-height: 1;
  display: grid;
  place-items: center;
}

/* ---------- Cards ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-xs);
}

.card.hero-card {
  background: linear-gradient(160deg, rgba(12, 22, 20, 0.9) 0%, rgba(7, 15, 13, 0.86) 100%);
  color: #e9f2ef;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 34px 80px -46px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card.hero-card h3 { color: #fff; }
.card.hero-card .muted { color: #b9c8c3; }

.hero-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 15px;
}

.hero-card li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 20px;
}

.hero-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

.hero-card .price-line {
  margin: 6px 0 4px;
  font-size: clamp(34px, 3.4vw, 42px);
  font-weight: 750;
  letter-spacing: -0.04em;
  color: #fff;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid-3 .card,
.grid-2 .card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.grid-3 .card:hover,
.grid-2 .card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}

/* ---------- Nummererede trin ---------- */

.numbered { list-style: none; padding: 0; margin: 0; counter-reset: n; }

.numbered li {
  counter-increment: n;
  padding-left: 46px;
  position: relative;
  margin-bottom: 22px;
}

.numbered li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 1px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}

/* ---------- Priser ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.plan.featured {
  position: relative;
  border-color: rgba(26, 92, 75, 0.34);
  box-shadow: 0 26px 60px -36px rgba(26, 92, 75, 0.6);
}

.plan.featured::after {
  content: "Mest købt";
  position: absolute;
  top: -12px;
  left: 26px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan h3 { margin-bottom: 4px; }

.plan .price {
  margin: 10px 0 2px;
  font-size: 40px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.plan .price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 26px;
  font-size: 15px;
  flex-grow: 1;
}

.plan ul li { position: relative; padding-left: 20px; margin-bottom: 9px; }

.plan ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
}

/* Badge-tekst pr. sprog */
body.lang-en .plan.featured::after { content: "Most bought"; }
body.lang-de .plan.featured::after { content: "Am häufigsten gekauft"; }
body.lang-sv .plan.featured::after { content: "Mest köpt"; }
body.lang-no .plan.featured::after { content: "Mest kjøpt"; }
body.lang-fi .plan.featured::after { content: "Suosituin"; }
body.lang-fr .plan.featured::after { content: "Le plus choisi"; }
body.lang-es .plan.featured::after { content: "Más elegido"; }

/* ---------- Tabel ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; }

th, td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f6f8fa;
  padding: 13px 18px;
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

tbody tr { transition: background 0.14s ease; }
tbody tr:hover { background: #fafcfc; }
tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */

details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

details summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 16.5px;
  list-style: none;
  position: relative;
  padding-right: 34px;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  display: grid;
  place-items: center;
}

details[open] summary { color: var(--accent); }
details[open] summary::after { content: "–"; }

details p {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--ink-soft);
}

/* ---------- Citat og mærker ---------- */

.quote {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
}

.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  padding: 4px 11px;
  border-radius: 20px;
  margin-right: 6px;
}

/* ---------- Footer ---------- */

footer.site {
  background: linear-gradient(180deg, #0d1218 0%, #0f1a18 100%);
  color: #a9b3bf;
  padding: 52px 0 60px;
  font-size: 14px;
}

footer.site a { color: #dfe4ea; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

footer.site .foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

footer.site .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 820px;
}

/* ---------- Noter ---------- */

.notice {
  background: #fff8ec;
  border: 1px solid #f0d9b5;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14.5px;
  color: #6b4a1f;
  margin-bottom: 26px;
}

.sr-note {
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

/* ---------- Fokus ---------- */

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Responsivt ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(6, 14, 12, 0.96) 0%, rgba(6, 14, 12, 0.9) 55%, rgba(6, 14, 12, 0.94) 100%);
  }
}

@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .langbar .wrap { gap: 2px; padding-top: 7px; padding-bottom: 7px; }
  .langbar a { padding: 3px; }
  .flag { width: 22px; height: 16px; }
  .card { padding: 22px; }
  .plan { padding: 22px; }
  nav.top { gap: 16px; }
}

@media (max-width: 700px) {
  nav.top a.hide-sm { display: none; }
}

.hint {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.hint-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hint-btn:hover,
.hint-btn:focus-visible {
  background: var(--accent);
  color: #fff;
}

.hint-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: 320px;
  max-width: calc(100vw - 40px);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  display: none;
}

.hint-pop strong { display: block; margin-bottom: 6px; }
.hint-pop ul { margin: 0; padding-left: 16px; }
.hint-pop li { margin-bottom: 4px; }

.hint:hover .hint-pop,
.hint.is-open .hint-pop {
  display: block;
}



.hint-pop p { margin: 8px 0 0; }

.hint.is-up .hint-pop {
  top: auto;
  bottom: calc(100% + 10px);
}
