/* careeraid.dk – fælles stilark
   Mobil først. Farver og mål ligger som variabler øverst. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Mono";
  src: url("../fonts/atkinson-mono.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --black-2: #161616;
  --ink: #141414;
  --ink-soft: #5c5c5c;
  --accent: #000;
  --tint: #f0efec;
  --sand: #c4b094;
  --sand-tint: #efe8dc;
  --paper: #f6f6f4;
  --card: #fff;
  --line: #e3e3df;
  --good: #141414;
  --good-tint: #ecebe7;
  --bad: #b3261e;
  --bad-tint: #f8e9e7;

  --radius-xl: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 28px -16px rgba(0, 0, 0, 0.2);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --wrap: 1140px;
  --gutter: 20px;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* ---------- Grundlag ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

p {
  margin: 0 0 1em;
}

figure {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.site-header :focus-visible,
.hero :focus-visible,
.plan :focus-visible,
.how :focus-visible,
.guide-card-side :focus-visible {
  outline-color: var(--sand);
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 6.4vw, 4rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.036em;
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 2.4rem 0 0.7rem;
}

strong {
  font-weight: 750;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--sand);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ---------- Topbjælke ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: baseline;
}
.brand-dot {
  color: var(--sand);
}
.brand-tld {
  font-weight: 500;
  color: #8a8a86;
}
.brand:hover {
  text-decoration: none;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 650;
}
.nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
}
.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav .nav-lang {
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* ---------- Knapper ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.2s,
    border-color 0.2s;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: #fff;
  color: #000;
}
.btn-primary:hover {
  background: var(--sand);
}
.btn-dark {
  background: #000;
  color: #fff;
}
.btn-dark:hover {
  background: #222;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-soft {
  background: var(--tint);
  color: var(--accent);
}
.btn-soft:hover {
  background: #e6e5e1;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

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

.hero {
  position: relative;
  color: #fff;
  background-color: var(--black);
  background-image: radial-gradient(at 85% 0%, rgba(255, 255, 255, 0.07) 0, transparent 50%);
  border-radius: 0 0 0 64px;
  padding: 40px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--sand);
  margin: 0 0 18px;
}
.hero-kicker a {
  color: inherit;
}
.hero .lead {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  max-width: 36rem;
  margin: 22px 0 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  margin: 22px 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}
.hero-note a {
  color: #fff;
}

/* Glaskort i guidens hero: "I guiden får du" */
.glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 22px 22px 8px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.glass h2 {
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--sand);
  margin-bottom: 12px;
}
.glass ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: g;
}
.glass li {
  counter-increment: g;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}
.glass li:first-child {
  border-top: 0;
}
.glass li::before {
  content: counter(g);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(196, 176, 148, 0.16);
  color: var(--sand);
  font-weight: 800;
  font-size: 0.85rem;
}

/* Invitationskort i forsidens hero (skriver sig selv) */
.invite {
  position: relative;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
  padding: 20px 20px 16px;
  max-width: 460px;
  margin-top: 16px;
}
.invite-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  font-weight: 800;
}
.invite-head .avatar,
.note-head .avatar {
  display: grid;
}
.invite-head strong {
  display: block;
  line-height: 1.25;
}
.invite-head span {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.invite-text {
  font-size: 0.98rem;
  line-height: 1.55;
  min-height: 12.5em;
}
.invite-text p {
  margin: 0 0 0.8em;
}
.invite-text p:last-child {
  margin-bottom: 0;
}
.invite-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}
.invite-send {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}
.toast {
  position: absolute;
  right: 12px;
  top: -38px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.toast-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--good-tint);
  color: var(--good);
  flex: none;
}
.toast-icon svg {
  width: 16px;
  height: 16px;
}
.is-done .toast {
  opacity: 1;
  transform: none;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.18em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Sektioner og layout ---------- */

.section {
  padding: 64px 0;
}
.section-head {
  max-width: 44rem;
  margin-bottom: 28px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-top: 12px;
}

/* Guidens layout: indholdsfortegnelse + tekst */
.guide {
  padding: 40px 0 24px;
}
.guide-grid {
  display: grid;
  gap: 32px;
}
.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 10px;
}
.toc-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: 0;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color 0.2s;
}
.toc a:hover {
  background: var(--tint);
}
.toc-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-soft);
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.toc a[aria-current="true"] .toc-no {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.toc a[aria-current="true"] {
  color: var(--accent);
}

.content {
  min-width: 0;
  max-width: 46rem;
}

.step {
  padding: 8px 0 56px;
}
.step + .step {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.step-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.step-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--black);
  color: var(--sand);
  font-weight: 800;
  font-size: 1.15rem;
}
.step-no--pill {
  width: auto;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.95rem;
}
.step-sub {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.step > p,
.step > ul,
.step > ol {
  max-width: 40rem;
}

/* Lister */
.list {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}
.list li {
  margin: 0.35em 0;
}
.list li::marker {
  color: var(--accent);
}
.list--check {
  list-style: none;
  padding: 0;
}
.list--check li {
  position: relative;
  padding-left: 30px;
}
.list--check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Kort og bokse */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}
.card p {
  margin: 0;
  color: var(--ink-soft);
}
.cards {
  display: grid;
  gap: 12px;
  margin: 20px 0 8px;
}

.callout {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
  background: var(--tint);
}
.callout > :last-child {
  margin-bottom: 0;
}
.callout-title {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}
.callout--warm {
  background: var(--sand-tint);
}
.callout--bad {
  background: var(--bad-tint);
}
.callout--strong {
  background: var(--black);
  color: #fff;
}
.callout--strong .callout-title {
  color: var(--sand);
}

.big-line {
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 28px 0;
  max-width: 38rem;
}

/* Formel: Titel + søgeord + filtre */
.formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 20px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.formula-label {
  width: 100%;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.formula .chip {
  background: var(--tint);
  color: var(--accent);
  font-weight: 750;
  padding: 7px 14px;
  border-radius: 999px;
  line-height: 1.3;
}
.formula .plus {
  font-weight: 800;
  color: var(--ink-soft);
}

/* Operatorer: navn til venstre, forklaring til højre */
.defs {
  margin: 18px 0 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.defs-row {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}
.defs-row:first-child {
  border-top: 0;
}
.defs dt {
  font-family: var(--mono);
  font-weight: 800;
  color: var(--accent);
  font-size: 1.05rem;
}
.defs dd {
  margin: 0;
}
.defs dd small {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Søgefelt med boolean-søgning */
.query {
  margin: 14px 0;
}
.query-label {
  display: block;
  font-weight: 750;
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.query-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
}
.query-box > svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--ink-soft);
}
.query code {
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.55;
  word-break: break-word;
  color: var(--ink);
}
.op {
  font-weight: 800;
  color: var(--accent);
}

/* Beskedskabeloner */
.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 18px 0;
  overflow: hidden;
}
.note-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 0;
}
.note-head .avatar {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
}
.note-head strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
}
.note-head span {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.note-body {
  padding: 14px 18px 4px;
}
.note-body p {
  margin: 0 0 0.85em;
}
.ph {
  background: var(--sand-tint);
  color: #4d3f28;
  font-weight: 650;
  border-radius: 6px;
  padding: 0 0.22em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Værktøjslinje under skabeloner: tegnmåler + kopiér */
.tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line);
  background: #fafaf8;
}
.query .tools {
  border: 0;
  background: none;
  padding: 8px 0 0;
  justify-content: flex-end;
}
.meter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.meter-bar {
  width: 84px;
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.meter-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.9s var(--ease-out);
}
.meter.is-over .meter-fill {
  background: var(--bad);
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.copy-btn svg {
  width: 16px;
  height: 16px;
}
.copy-btn.is-copied {
  background: var(--good-tint);
  border-color: var(--good-tint);
  color: var(--good);
}

/* Eksempler: dårligt / bedre */
.ex {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
  background: var(--card);
  border: 1px solid var(--line);
}
.ex-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.98rem;
  margin-bottom: 10px;
}
.ex-label svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.ex--bad {
  background: var(--bad-tint);
  border-color: transparent;
}
.ex--bad .ex-label {
  color: var(--bad);
}
.ex--good .ex-label {
  color: var(--good);
}
.ex-text {
  border-left: 3px solid rgba(0, 0, 0, 0.14);
  padding-left: 14px;
  margin-bottom: 14px;
}
.ex-text p {
  margin-bottom: 0.7em;
}
.ex-why {
  margin: 0;
  font-weight: 650;
}
.ex-why em {
  font-style: normal;
}
.pair {
  display: grid;
  gap: 4px;
}

/* Før / bedre (overskrifter og erfaring) */
.ba {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}
.ba-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ba-before,
.ba-after {
  padding: 14px 18px;
}
.ba-before {
  background: #f7f7f5;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.ba-before .ba-text {
  text-decoration: line-through;
  text-decoration-color: rgba(179, 38, 30, 0.75);
  text-decoration-thickness: 2px;
}
.ba-tag {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.ba-before .ba-tag {
  color: var(--bad);
}
.ba-after .ba-tag {
  color: var(--good);
}
.ba-after p {
  margin: 0 0 0.6em;
}
.ba-after p:last-child {
  margin-bottom: 0;
}

/* Tidslinje: de ser dig flere gange */
.timeline {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  position: relative;
}
.timeline li {
  position: relative;
  padding: 0 0 18px 40px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: -8px;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::before {
  display: none;
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--accent);
}
.timeline li:last-child::after {
  background: var(--sand);
  border-color: var(--sand);
}
.timeline strong {
  display: block;
}

/* AND / OR / NOT som cirkeldiagrammer */
.venn-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0 24px;
}
.venn {
  --v: var(--ink);
  --v-tint: var(--tint);
  display: grid;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.venn-body p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}
.venn-body p:last-child {
  margin-bottom: 0;
}
.venn-body .venn-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--ink);
}
.venn-op {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1rem;
  padding: 3px 12px;
  border-radius: 999px;
  background: #000;
  color: #fff;
}
.venn-title {
  font-weight: 750;
  line-height: 1.3;
}
.venn-body .venn-ex {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--v-tint);
  border-radius: 10px;
  padding: 8px 12px;
}
.venn-ex .op {
  color: var(--v);
}
.venn svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  justify-self: center;
  color: var(--v);
  overflow: visible;
}
.v-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}
.v-dash {
  stroke-dasharray: 6 6;
}
.v-fill {
  fill: var(--sand);
  opacity: 0.8;
}
.venn text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
}
@media (min-width: 40rem) {
  .venn {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    column-gap: 22px;
  }
}

/* Gør / undgå */
.do-dont {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}
.dd-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.dd-list h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.dd-list h4 svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  flex: none;
}
.dd-list--do h4 {
  color: var(--good);
}
.dd-list--do h4 svg {
  background: var(--good-tint);
}
.dd-list--dont h4 {
  color: var(--bad);
}
.dd-list--dont h4 svg {
  background: var(--bad-tint);
}
.dd-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dd-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.dd-list li:first-child {
  border-top: 0;
}
.dd-list li strong {
  display: block;
  margin-bottom: 2px;
}
.dd-list li span {
  color: var(--ink-soft);
}

/* ---------- 7-dagesplan (mørk sektion) ---------- */

.plan {
  color: #fff;
  background-color: var(--black);
  background-image: radial-gradient(at 0% 100%, rgba(255, 255, 255, 0.06) 0, transparent 50%);
  border-radius: 0 64px 0 0;
  padding: 64px 0 72px;
  margin-top: 24px;
}
.plan-inner {
  max-width: 50rem;
}
.plan h2 {
  margin-top: 10px;
}
.plan .section-head p {
  color: rgba(255, 255, 255, 0.8);
}
.plan-kicker {
  color: var(--sand);
  font-weight: 700;
  margin: 0;
}
.plan-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.plan-item label {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition:
    background-color 0.25s,
    border-color 0.25s;
}
.plan-item label:hover {
  background: rgba(255, 255, 255, 0.1);
}
.plan-item input {
  appearance: none;
  -webkit-appearance: none;
  margin: 2px 0 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background-color 0.25s,
    border-color 0.25s;
}
.plan-item input::after {
  content: "";
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: translateY(-2px) rotate(-45deg) scale(0);
  transition: transform 0.35s var(--ease-out);
}
.plan-item input:checked {
  background: var(--sand);
  border-color: var(--sand);
}
.plan-item input:checked::after {
  transform: translateY(-2px) rotate(-45deg) scale(1);
}
.plan-item input:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
}
.plan-item input:checked + .plan-text .plan-day {
  color: var(--sand);
}
.plan-item:has(input:checked) label {
  background: rgba(196, 176, 148, 0.1);
  border-color: rgba(196, 176, 148, 0.45);
}
.plan-day {
  display: block;
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.35;
  transition: color 0.25s;
}
.plan-desc {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}
.plan-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 20px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
}
.plan-progress {
  font-weight: 700;
  color: #fff;
}
.link-btn {
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: none;
  border: 0;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.closing {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.closing p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 38rem;
}
.closing .closing-line {
  font-size: clamp(1.45rem, 3.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 34rem;
  margin-top: 18px;
}
.closing-line span {
  background-image: linear-gradient(transparent 84%, var(--sand) 84%, var(--sand) 96%, transparent 96%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Forside ---------- */

.guide-card {
  display: grid;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.guide-card-main {
  padding: 26px 22px;
}
.guide-card-main h3 {
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 8px 0 12px;
}
.tag {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--accent);
  background: var(--tint);
  border-radius: 999px;
  padding: 4px 12px;
}
.guide-card .defs {
  border: 0;
  border-radius: 0;
  margin: 18px 0 0;
  background: none;
}
.guide-card .defs-row {
  padding: 12px 0;
  grid-template-columns: 6.4rem 1fr;
}
.guide-card .defs dt {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 700;
}
.guide-card .defs-row--hl {
  background: var(--tint);
  margin: 4px -12px 0;
  padding: 12px;
  border-radius: 12px;
  border-top: 0;
}
.guide-card .defs-row--hl dt {
  color: var(--accent);
}
.guide-card-side {
  background: var(--black);
  color: #fff;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.guide-card-side h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--sand);
}
.guide-card-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.guide-card-side li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}
.guide-card-side li svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--sand);
  margin-top: 1px;
}
.guide-card-side .actions {
  margin-top: auto;
  padding-top: 8px;
}
.guide-card-side .btn {
  width: 100%;
}

.mat-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

/* Gratis personlighedstests (forsiden) */
.tests {
  padding-top: 0;
}
.test-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.test-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.test-card h3 {
  margin: 0;
  font-size: 1.2rem;
}
.test-card p {
  margin: 0;
  color: var(--ink-soft);
}
.test-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.test-meta li {
  font-size: 0.85rem;
  font-weight: 650;
  background: var(--tint);
  border-radius: 999px;
  padding: 3px 10px;
}
.test-link {
  margin-top: auto;
  padding-top: 4px;
  font-weight: 750;
  color: var(--accent);
}
.mat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.2s;
}
.mat-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: #bdbdb7;
}
.mat-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.mat-card p {
  margin: 0;
  color: var(--ink-soft);
}
.mat-link {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 750;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.mat-card:hover .mat-link {
  text-decoration-thickness: 2px;
}

.soon {
  margin-top: 16px;
  border: 1.5px dashed #cfcfca;
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--ink-soft);
}
.soon strong {
  color: var(--ink);
}

.how {
  color: #fff;
  background-color: var(--black);
  background-image: radial-gradient(at 0% 100%, rgba(255, 255, 255, 0.06) 0, transparent 50%);
  border-radius: 0 64px 0 0;
  padding: 64px 0;
}
.how h2 {
  max-width: 30rem;
}
.how-steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
  counter-reset: how;
}
.how-steps li {
  counter-increment: how;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
}
.how-steps li::before {
  content: counter(how);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(196, 176, 148, 0.16);
  color: var(--sand);
  font-weight: 800;
}
.how-steps strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.how-steps span {
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Bund ---------- */

.site-footer {
  padding: 40px 0 48px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: grid;
  gap: 8px;
}
.site-footer p {
  margin: 0;
}
.site-footer .brand {
  color: var(--ink);
  font-size: 1.05rem;
}

.print-only {
  display: none;
}

/* ---------- Bevægelse ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
[data-enter] {
  animation: rise 0.9s var(--ease-out) both;
}
[data-enter="2"] {
  animation-delay: 0.12s;
}
[data-enter="3"] {
  animation-delay: 0.22s;
}
[data-enter="4"] {
  animation-delay: 0.32s;
}
[data-enter="5"] {
  animation-delay: 0.45s;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@supports (animation-timeline: view()) {
  [data-reveal] {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 2% cover 22%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.is-done .toast {
  animation: float 5s ease-in-out 0.8s infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-enter],
  [data-reveal],
  .is-done .toast,
  .caret {
    animation: none !important;
  }
  .btn,
  .toast,
  .meter-fill,
  .plan-item input::after {
    transition: none !important;
  }
}

/* ---------- Større skærme ---------- */

@media (min-width: 40rem) {
  :root {
    --gutter: 28px;
  }
  .cards--2 {
    grid-template-columns: 1fr 1fr;
  }
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .ba-item--row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }
  .ba-item--row .ba-before {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
}

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
  }
  .hero {
    border-radius: 0 0 0 140px;
    padding: 72px 0 112px;
  }
  .plan,
  .how {
    border-radius: 0 140px 0 0;
    padding: 96px 0;
  }
  .section {
    padding: 96px 0;
  }
  .do-dont {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .pair {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  .pair .ex {
    margin: 8px 0;
  }
  .guide-card {
    grid-template-columns: 1.5fr 1fr;
  }
  .mat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mat-card {
    padding: 32px 30px;
  }
  .guide-card-main {
    padding: 36px;
  }
  .guide-card-side {
    padding: 36px 30px;
  }
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .how-steps li {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }
  .guide {
    padding-top: 64px;
  }
  .guide-grid {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 64px;
  }
  .toc {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow: auto;
  }
  .toc-mobile-note {
    display: none;
  }
}

/* ---------- Print ---------- */

@media print {
  @page {
    margin: 16mm 16mm 18mm;
  }
  :root {
    --shadow: none;
  }
  html {
    scroll-behavior: auto;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.45;
    overflow: visible;
  }
  .guide-grid,
  .content {
    width: 100%;
    max-width: 100%;
  }
  .note,
  .card,
  .callout,
  .venn,
  .defs,
  .query-box,
  .dd-list,
  .formula,
  .plan-item label {
    margin-right: 2px;
  }
  .site-header,
  .skip,
  .actions,
  .tools,
  .toc,
  .plan-foot,
  .hero-note,
  .no-print,
  .site-footer nav {
    display: none !important;
  }
  .print-only {
    display: block;
  }
  [data-enter],
  [data-reveal] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .wrap {
    max-width: none;
    padding: 0;
  }
  .hero,
  .plan,
  .how {
    background: none !important;
    color: #000;
    border-radius: 0;
    padding: 0 0 12pt;
  }
  .hero .lead,
  .plan .section-head p,
  .plan-desc,
  .closing p,
  .glass li {
    color: #000;
  }
  .hero-kicker,
  .plan-kicker,
  .glass h2 {
    color: #000;
  }
  .glass {
    border: 1px solid #999;
    background: none;
  }
  .glass li {
    border-color: #ccc;
  }
  .glass li::before {
    background: none;
    border: 1px solid #000;
    color: #000;
  }
  h1 {
    font-size: 24pt;
  }
  h2 {
    font-size: 17pt;
  }
  h3 {
    font-size: 13pt;
    margin-top: 14pt;
  }
  .guide {
    padding: 0;
  }
  .guide-grid {
    display: block;
  }
  .content {
    max-width: none;
  }
  .step {
    padding: 12pt 0;
  }
  .step + .step {
    padding-top: 14pt;
  }
  .step-head,
  h3 {
    break-after: avoid;
  }
  .step-no {
    background: none;
    color: #000;
    border: 1.5px solid #000;
  }
  .note,
  .ex,
  .ba-item,
  .card,
  .callout,
  .query,
  .defs-row,
  .dd-list li,
  .plan-item,
  .timeline li,
  .venn,
  .formula {
    break-inside: avoid;
  }
  .venn {
    border: 1px solid #999;
  }
  .note,
  .card,
  .ex,
  .ba-item,
  .dd-list,
  .defs,
  .formula,
  .query-box {
    border: 1px solid #999;
    box-shadow: none;
  }
  .callout,
  .ex--bad,
  .callout--strong {
    background: none !important;
    color: #000;
    border: 1px solid #999;
  }
  .callout--strong .callout-title {
    color: #000;
  }
  .ph {
    background: none;
    color: #000;
    font-weight: 700;
  }
  .plan-item label {
    background: none !important;
    border: 1px solid #999;
    color: #000;
  }
  .plan-item input {
    border-color: #000;
    background: none !important;
  }
  .plan-item input::after {
    display: none;
  }
  .plan-day {
    color: #000 !important;
  }
  .closing {
    border-color: #999;
  }
  .closing .closing-line {
    color: #000;
  }
  .closing-line span {
    background: none;
  }
  a {
    color: #000;
    text-decoration: none;
  }
  .site-footer {
    padding: 12pt 0 0;
    color: #000;
  }
}

/* Forsidens gitre: flere kolonner på store skærme */
@media (min-width: 48rem) {
  .test-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 64rem) {
  .mat-grid,
  .test-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media print {
  .tests {
    display: none;
  }
}
