/* ═══════════════════════════════════════════════════════════
   MELIORAS · EXTRAS
   Footer business info + legal links, contact GDPR text,
   Resources categories, Programmer & Forløb page, waiting list,
   legal pages. Built on the tokens in styles.css.
═══════════════════════════════════════════════════════════ */

/* ── Footer: business information + legal links ──────────── */
.site-footer {
  flex-wrap: wrap;
}
.site-footer__bottom {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid rgba(74, 70, 67, 0.12);
  font-size: 0.8rem;
  line-height: 1.6;
}
.site-footer__business {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-style: normal;
}
.site-footer__business a,
.site-footer__legal a {
  color: var(--ink);
  transition: color 180ms ease;
}
.site-footer__business a:hover,
.site-footer__legal a:hover {
  color: var(--sage-deep);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.site-footer__legal a {
  text-decoration: underline;
  text-decoration-color: rgba(66, 61, 57, 0.28);
  text-underline-offset: 3px;
}

/* ── Contact form: GDPR text below the button ─────────────── */
.con-form__gdpr {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}
.con-form__gdpr a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Resources: whole card scrolls to its category ────────── */
.res-card {
  position: relative;
}
.res-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.res-card__body,
.res-card__btn {
  position: relative;
  z-index: 2;
}
.res-card__body {
  pointer-events: none; /* clicks on the text fall through to the card link */
}
.res-card__btn {
  pointer-events: auto;
}

/* ── Resources: category sections ─────────────────────────── */
.res-cats {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 86px) clamp(40px, 6vw, 80px);
}
.res-cat {
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-space, 112px) + 12px);
}
.res-cat__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.res-cat__media {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 18px 50px rgba(30, 47, 36, 0.08);
}
.res-cat__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.res-cat__title {
  margin: 4px 0 0 !important;
  color: var(--ink);
  font-family: var(--font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem) !important;
  line-height: 1.12 !important;
}
.res-cat__text {
  max-width: 460px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.2vw, 1.05rem);
  line-height: 1.7;
}
.res-cat__items {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(28px, 4vw, 44px);
}
.res-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: center;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-light);
  box-shadow: 0 14px 40px rgba(30, 47, 36, 0.05);
}
.res-item__media {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  background: var(--paper-dark);
}
.res-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.res-item__label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(196, 154, 108, 0.16); /* see-through gold box */
  color: var(--sage-deep);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.res-item__title {
  margin: 10px 0 0 !important;
  color: var(--ink);
  font-family: var(--font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 1.42rem !important;
  line-height: 1.25 !important;
}
.res-item__text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}
.res-item__btn {
  margin-top: 16px;
}

/* ── Programmer & Forløb page ─────────────────────────────── */
.programs-page main {
  display: block;
  background: var(--paper);
}
.prog-hero {
  padding: clamp(140px, 18vh, 220px) clamp(20px, 6vw, 86px) clamp(60px, 8vw, 100px);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(196, 154, 108, 0.12), rgba(196, 154, 108, 0) 60%),
    linear-gradient(180deg, var(--paper-light) 0%, var(--paper) 100%);
  text-align: center;
}
.prog-hero__inner {
  width: min(860px, 100%);
  margin: 0 auto;
}
.prog-hero__title {
  margin: 6px auto 0 !important;
  color: var(--ink);
  font-family: var(--font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem) !important;
  line-height: 1.15 !important;
}
.prog-hero__title span {
  display: block;
}
.prog-hero__lead {
  width: min(600px, 100%);
  margin: clamp(22px, 3vw, 30px) auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.75;
}
.prog-hero__lead p {
  margin: 0 0 14px;
}
.prog-hero__lead {
  text-align: left;
}
/* Line between the intro and the first section */
.prog-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  background: var(--paper);
}
.prog-divider::before,
.prog-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(196, 154, 108, 0), rgba(196, 154, 108, 0.55));
}
.prog-divider::after {
  background: linear-gradient(90deg, rgba(196, 154, 108, 0.55), rgba(196, 154, 108, 0));
}
.prog-divider span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
}
.prog-section {
  padding: clamp(60px, 8vw, 110px) clamp(20px, 6vw, 86px);
}
.prog-get,
.prog-fit {
  background: var(--paper-light);
}
.prog-wrap {
  width: min(760px, 100%);
  margin: 0 auto;
}
.prog-wrap--wide {
  width: min(1100px, 100%);
}
.prog-head {
  margin-bottom: clamp(22px, 3vw, 34px);
  text-align: center;
}
.prog-title {
  margin: 0 !important;
  color: var(--ink);
  font-family: var(--font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem) !important;
  line-height: 1.15 !important;
  text-align: center;
}
.prog-sub {
  margin: 12px auto 0;
  max-width: 560px;
  color: var(--sage-deep);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.6;
}
.prog-text {
  margin-top: clamp(20px, 3vw, 30px);
  color: var(--ink);
  font-size: clamp(0.96rem, 1.2vw, 1.04rem);
  line-height: 1.8;
}
.prog-text p {
  margin: 0 0 16px;
}
.prog-text--center {
  text-align: center;
}
.prog-emphasis {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12em;
}
.prog-list {
  margin: 4px 0 22px;
  padding: 0;
  list-style: none;
}
.prog-list li {
  position: relative;
  padding: 9px 0 9px 28px;
  border-bottom: 1px solid var(--line);
}
.prog-list li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--clay);
}
.prog-method {
  margin: clamp(26px, 4vw, 40px) 0;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 24px;
  background: var(--paper-dark);
  text-align: center;
}
.prog-method__intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.prog-method__steps {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(0.84rem, 1.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.7;
}
.prog-tools__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.prog-tool {
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-light);
  box-shadow: 0 14px 40px rgba(30, 47, 36, 0.05);
}
.prog-tool__name {
  margin: 0 !important;
  color: var(--ink);
  font-family: var(--font-body) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  font-size: 0.86rem !important;
  letter-spacing: 0.08em;
  line-height: 1.4 !important;
}
.prog-tool__text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
}
.prog-cta {
  padding: clamp(80px, 11vw, 140px) clamp(20px, 6vw, 86px);
  background:
    radial-gradient(110% 80% at 50% 120%, rgba(196, 154, 108, 0.16), rgba(196, 154, 108, 0) 60%),
    var(--paper-dark);
  text-align: center;
}
.prog-cta__inner {
  width: min(620px, 100%);
  margin: 0 auto;
}
.prog-cta__title {
  margin: 0 !important;
  color: var(--ink);
  font-family: var(--font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  line-height: 1.12 !important;
}
.prog-cta__tagline {
  margin: 10px 0 0;
  color: var(--sage-deep);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
}
.prog-cta__text {
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.7;
}
.prog-cta__btn {
  margin-top: clamp(24px, 3vw, 34px);
  cursor: pointer;
}
.prog-cta__note {
  margin: 16px auto 0;
  max-width: 440px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}
.prog-core {
  margin-top: 8px !important;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.prog-end {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2em;
}

/* ── Waiting list dialog ──────────────────────────────────── */
.waitlist {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: clamp(28px, 4vw, 40px);
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(30, 30, 24, 0.25);
  overflow: auto;
}
.waitlist::backdrop {
  background: rgba(40, 36, 32, 0.45);
  backdrop-filter: blur(4px);
}
.waitlist__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.waitlist__close:hover {
  background: var(--paper-dark);
}
.waitlist__title {
  margin: 0 !important;
  padding-right: 30px;
  color: var(--ink);
  font-family: var(--font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: clamp(1.6rem, 3vw, 2rem) !important;
  line-height: 1.15 !important;
}
.waitlist__text {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}
.waitlist__form {
  margin-top: 20px;
}
.waitlist__field {
  display: block;
  margin-bottom: 14px;
}
.waitlist__field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}
.waitlist__field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(66, 61, 57, 0.22);
  border-radius: 12px;
  background: var(--paper-light);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}
.waitlist__field input:focus {
  outline: 2px solid rgba(74, 70, 67, 0.5);
  outline-offset: 1px;
}
.waitlist__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.waitlist__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  cursor: pointer;
}
.waitlist__consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ink);
}
.waitlist__privacy {
  margin: 10px 0 0;
  font-size: 0.82rem;
}
.waitlist__privacy a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.waitlist__error {
  margin: 12px 0 0;
  color: #9b3b2f;
  font-size: 0.86rem;
}
.waitlist__submit {
  width: 100%;
  margin-top: 20px;
  cursor: pointer;
}
.waitlist__submit[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.waitlist__tagline {
  margin: 18px 0 0;
  color: var(--sage-deep);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
}

/* ── Legal pages (privacy policy, cookie policy) ──────────── */
.legal-page h1 {
  color: var(--ink);
  font-family: var(--font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem) !important;
  line-height: 1.12 !important;
}
.legal-page .entry-content h2,
.legal-page .entry-content h3 {
  margin: 2.2em 0 0.5em;
  color: var(--ink);
  font-family: var(--font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 1.5rem !important;
  line-height: 1.25 !important;
}
.legal-page .entry-content h3 {
  font-size: 1.2rem !important;
}
.legal-page .entry-content p,
.legal-page .entry-content li {
  font-size: 0.98rem;
  line-height: 1.8;
}
.legal-page .entry-content ul {
  padding-left: 1.2em;
}
.legal-page .entry-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .prog-tools__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .site-footer__bottom {
    display: block;
    margin-top: 28px;
  }
  .site-footer__business {
    display: grid;
    gap: 2px;
  }
  .site-footer__legal {
    margin-top: 14px;
  }
  .res-cat__head {
    grid-template-columns: 1fr;
  }
  .res-item {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
  }
  .res-item__btn {
    width: 100%;
  }
  .prog-tools__grid {
    grid-template-columns: 1fr;
  }
  .prog-hero {
    padding-top: clamp(120px, 16vh, 160px);
  }
}
@media (max-width: 420px) {
  .res-item {
    grid-template-columns: 1fr;
  }
  .res-item__media {
    max-width: 160px;
  }
}

/* ─────────────────────────────────────────
   Newsletter signup (homepage): consent checkbox, privacy line, messages
───────────────────────────────────────── */
.ml-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.nl-extra {
  width: min(560px, 100%);
  margin: 16px auto 0;
  text-align: left;
}
.nl-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  line-height: 1.55;
  cursor: pointer;
}
.nl-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #fff;
}
.nl-privacy {
  margin: 8px 0 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  line-height: 1.5;
}
.nl-privacy a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nl-error {
  margin: 10px 0 0 28px;
  color: #ffd9cf;
  font-size: 0.86rem;
}
.nl-done {
  width: min(560px, 100%);
  margin: 2rem auto 0;
  padding: 18px 24px;
  border-radius: 18px;
  background: rgba(20, 38, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Download dialog: small note under the optional newsletter box */
.waitlist__note {
  margin: 6px 0 0 28px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
[data-download-title] {
  font-style: italic;
}
[data-download-text] strong {
  color: var(--ink);
  font-weight: 600;
}
/* Home: Benefits text can have several paragraphs and bold words */
.benefits-copy > p:not(.section-eyebrow) + p:not(.section-eyebrow) {
  margin-top: 14px;
}
.benefits-copy strong {
  color: var(--ink);
  font-weight: 600;
}
