/*
  De Doorbraak Code - Stylesheet
  Visuele richting: warm beige fond, donkerrode tekst, lila + oranje accenten
  Typografie: Brandon Grotesque (body) + Voyage (titels)
*/

/* ==========================================================================
   Webfonts
   ========================================================================== */

@font-face {
  font-family: "Brandon Grotesque";
  src: url("assets/brandon-grotesque-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Voyage";
  src: url("assets/voyage-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Voyage";
  src: url("assets/voyage-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Merkkleuren (single source of truth)
   ========================================================================== */

:root {
  /* Hoofdkleuren huisstijl — beige fond als basis */
  --kleur-fond: #f7edeb;                /* lichte koele beige — pagina-achtergrond */
  --kleur-fond-vlak: #f0e0db;           /* iets donkerder beige — kaarten op fond */
  --kleur-tekst: #4b0e2d;               /* donkerrood — lopende tekst */
  --kleur-tekst-zacht: rgba(75, 14, 45, 0.7);
  --kleur-tekst-zachter: rgba(75, 14, 45, 0.5);
  --kleur-tekst-zachtst: rgba(75, 14, 45, 0.32);
  --kleur-lijn: rgba(75, 14, 45, 0.18);
  --kleur-lijn-sterk: rgba(75, 14, 45, 0.4);

  /* Accentkleuren */
  --kleur-actie: #eb9226;               /* oranje — primaire actieknoppen */
  --kleur-actie-hover: #4b0e2d;         /* donkerrood — hover op knop */
  --kleur-accent-koel: #b7ace6;         /* lila — Sleutel-titel, sterke accenten */
  --kleur-accent: #fed5dd;              /* lichtroze — zacht accent */

}

/* ==========================================================================
   Reset & basis
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Brandon Grotesque", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--kleur-tekst);
  background-color: var(--kleur-fond);
  min-height: 100vh;
  /* Subtiele warme gloed boven in het scherm — geeft sfeer */
  background-image: radial-gradient(
    ellipse at 50% 20%,
    rgba(235, 146, 38, 0.08) 0%,
    transparent 60%
  );
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 40px;
}

@media (min-width: 768px) {
  .container {
    padding: 64px 32px 56px;
  }
}

/* Logo */
.header {
  text-align: center;
  margin-bottom: 64px;
}

.header__brand {
  display: inline-block;
  margin: 0;
  font-family: "Voyage", "Brandon Grotesque", serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--kleur-tekst);
  text-transform: uppercase;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .header__brand {
    font-size: 48px;
    letter-spacing: 0.08em;
  }
}

/* ==========================================================================
   Sections (drie stappen: inleiding, formulier, output)
   ========================================================================== */

.section {
  display: none;
  animation: fadeIn 0.6s ease-out;
}

.section--active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Typografie
   ========================================================================== */

.day-marker {
  display: inline-block;
  font-family: "Voyage", "Brandon Grotesque", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: var(--kleur-accent-koel);
  padding: 10px 22px;
  margin: 0 0 32px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .day-marker {
    font-size: 26px;
    padding: 12px 26px;
  }
}

.prose {
  font-size: 17px;
  line-height: 1.8;
}

.prose p {
  margin: 0 0 24px;
}

.prose .lead {
  font-weight: 400;
  margin-bottom: 32px;
}

.prose .emphasis {
  font-weight: 400;
}

@media (min-width: 768px) {
  .prose {
    font-size: 18px;
  }
}

/* ==========================================================================
   Knoppen
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  padding: 16px 36px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease,
    color 0.2s ease;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  margin-top: 32px;
}

.btn--primary {
  background-color: var(--kleur-actie);
  color: var(--kleur-fond);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 14px;
  font-weight: 700;
}

.btn--primary:hover {
  background-color: var(--kleur-actie-hover);
  color: var(--kleur-fond);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--secondary {
  background-color: transparent;
  color: var(--kleur-tekst);
  border: 1px solid rgba(75, 14, 45, 0.4);
}

.btn--secondary:hover {
  border-color: var(--kleur-tekst);
  background-color: rgba(75, 14, 45, 0.05);
}

/* ==========================================================================
   Formulier
   ========================================================================== */

.form {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.field {
  display: flex;
  flex-direction: column;
}

.label {
  display: block;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 12px;
  color: var(--kleur-tekst);
}

.hint {
  font-size: 14px;
  color: rgba(75, 14, 45, 0.55);
  margin: 0 0 16px;
  font-style: italic;
  line-height: 1.6;
}

.input,
.textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--kleur-tekst);
  background-color: var(--kleur-fond-vlak);
  border: none;
  padding: 14px 16px;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
  resize: vertical;
  border-radius: 2px;
}

.input:focus,
.textarea:focus {
  outline: none;
  background-color: #ffffff;
  box-shadow: 0 0 0 2px var(--kleur-accent-koel);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(75, 14, 45, 0.4);
}

.textarea {
  min-height: 120px;
  margin-top: 4px;
}

/* Checkbox grid voor de gebieden */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}

@media (min-width: 600px) {
  .checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Scrollbare variant — voor de Sleutel-lijst op dag 3 (31 items) */
.checkbox-grid--scrollable {
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid rgba(75, 14, 45, 0.12);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background-color: var(--kleur-accent-koel);
  border: 1px solid var(--kleur-accent-koel);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  font-size: 15px;
  user-select: none;
}

.checkbox:hover {
  background-color: #a89cdc;
  border-color: #a89cdc;
  transform: translateY(-1px);
}

.checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #ffffff;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  position: relative;
  background-color: transparent;
}

.checkbox input[type="checkbox"]:checked {
  background-color: #ffffff;
  border-color: #ffffff;
}

.checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--kleur-accent-koel);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox input[type="checkbox"]:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.checkbox:has(input[type="checkbox"]:checked) {
  background-color: var(--kleur-tekst);
  border-color: var(--kleur-tekst);
}

.checkbox:has(input[type="checkbox"]:checked) input[type="checkbox"]:checked::after {
  border-color: var(--kleur-tekst);
}

.error {
  color: var(--kleur-accent);
  font-size: 14px;
  margin: 16px 0 0;
  min-height: 1.4em;
}

/* Lege error-paragraaf neemt geen ruimte in — anders ontstaat onder de
   submit-knop een witte zone van form-gap (48px) + margin (16px) +
   min-height (~20px) die niet bedoeld is zolang er geen foutmelding is. */
.form .error:empty {
  display: none;
}

/* ==========================================================================
   Laadanimatie
   ========================================================================== */

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 0;
  text-align: center;
}

.loading-pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--kleur-accent);
  animation: pulse 1.6s ease-in-out infinite;
  margin-bottom: 32px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.5;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.loading-text {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--kleur-tekst-zacht);
  margin: 0;
}

.loading-text::after {
  content: "";
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}

/* ==========================================================================
   Output: samenvatting van de input + de spiegeling
   ========================================================================== */

.summary {
  margin-bottom: 56px;
  padding: 32px;
  background-color: var(--kleur-accent-koel);
  border-radius: 2px;
  color: #ffffff;
}

.summary-title {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 24px;
}

.summary-list {
  display: grid;
  gap: 20px;
  margin: 0;
}

.summary-list dt {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
}

.summary-list dd {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.6;
}

/* De daadwerkelijke spiegeling */
.response {
  margin-top: 32px;
}

.response-content {
  font-size: 17px;
  line-height: 1.85;
  word-wrap: break-word;
}

@media (min-width: 768px) {
  .response-content {
    font-size: 18px;
  }
}

/* ==========================================================================
   Spiegeling — de prose voor het Code-blok
   ========================================================================== */

.response-prose {
  margin-bottom: 56px;
}

.response-prose p {
  margin: 0 0 1.6em;
  font-weight: 400;
  color: rgba(75, 14, 45, 0.92);
}

.response-prose p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Bewustzijns-overgang — subtiel ingekaderd, cursief, lichte inspring
   Tussen de spiegeling en de "Voor jou is deze sleutel verschenen"-regel
   ========================================================================== */

.response-overgang {
  margin: 48px 0 56px;
  padding: 32px 0;
  border-top: 1px solid rgba(75, 14, 45, 0.12);
  border-bottom: 1px solid rgba(75, 14, 45, 0.12);
  padding-left: 20px;
  padding-right: 20px;
  font-style: italic;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(75, 14, 45, 0.82);
}

.response-overgang p {
  margin: 0 0 1.4em;
  font-weight: 400;
}

.response-overgang p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .response-overgang {
    margin: 56px 0 64px;
    padding: 36px 0;
    padding-left: 32px;
    padding-right: 32px;
    font-size: 17px;
  }
}

/* ==========================================================================
   Pagina-titel (boven spiegeling en Sleutel-pagina)
   ========================================================================== */

.page-title {
  font-family: "Voyage", "Brandon Grotesque", serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--kleur-tekst);
  margin: 0 0 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(75, 14, 45, 0.25);
}

@media (min-width: 768px) {
  .page-title {
    font-size: 48px;
    margin-bottom: 56px;
  }
}

/* ==========================================================================
   Doorklik-knop "Ontgrendel de sleutel"
   ========================================================================== */

.unlock-cta {
  margin-top: 64px;
  padding-top: 48px;
  text-align: center;
  border-top: 1px solid rgba(75, 14, 45, 0.22);
  animation: unlockFadeIn 1.2s ease-out;
}

@keyframes unlockFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.unlock-cta .btn {
  margin-top: 0;
  padding: 18px 48px;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   Terug-knop op de Sleutel-pagina
   ========================================================================== */

.back-cta {
  margin-top: 56px;
  text-align: center;
  animation: unlockFadeIn 1.2s ease-out;
}

.back-cta .btn {
  margin-top: 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  color: var(--kleur-tekst-zacht);
}

.back-cta .btn:hover {
  color: var(--kleur-tekst);
}

/* ==========================================================================
   Het Code-blok — een verheven blok met mooie typografie
   ========================================================================== */

.code-block {
  margin: 64px 0;
  padding: 48px 40px;
  background-color: var(--kleur-tekst);
  color: #ffffff;
  border-radius: 2px;
  position: relative;
}

@media (max-width: 600px) {
  .code-block {
    padding: 36px 24px;
    margin: 48px 0;
  }
}

/* De Sleutel-naam bovenaan — prominent */
.code-block__sleutel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.code-block__symbol {
  display: inline-block;
  font-size: 22px;
  color: var(--kleur-accent-koel);
  line-height: 1;
}

.code-block__sleutel-naam {
  font-family: "Voyage", "Brandon Grotesque", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .code-block__sleutel-naam {
    font-size: 26px;
  }
}

/* De intro-tekst onder de Sleutel-naam */
.code-block__intro {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  font-style: italic;
}

@media (min-width: 768px) {
  .code-block__intro {
    font-size: 17px;
  }
}

/* Elk van de drie secties: verlangen, loslaten, mantra */
.code-block__section {
  margin-bottom: 28px;
}

.code-block__section:last-child {
  margin-bottom: 0;
}

.code-block__label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kleur-accent-koel);
  margin-bottom: 10px;
}

.code-block__body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #ffffff;
}

@media (min-width: 768px) {
  .code-block__body {
    font-size: 17px;
  }
}

/* Mantra: krijgt iets meer prominentie */
.code-block__section--mantra {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.code-block__mantra {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  font-style: italic;
}

@media (min-width: 768px) {
  .code-block__mantra {
    font-size: 22px;
  }
}

/* ==========================================================================
   Bewustzijns-afsluiting — zacht, ingetogen
   ========================================================================== */

.response-afsluiting {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(75, 14, 45, 0.1);
  font-size: 16px;
  line-height: 1.85;
  color: rgba(75, 14, 45, 0.78);
}

.response-afsluiting p {
  margin: 0 0 1.4em;
  font-weight: 400;
}

.response-afsluiting p:last-child {
  margin-bottom: 0;
  font-size: 18px;
  color: rgba(75, 14, 45, 0.92);
  margin-top: 1.6em;
}

@media (min-width: 768px) {
  .response-afsluiting {
    font-size: 17px;
  }
}

/* ==========================================================================
   Streaming cursor (knipperend streepje tijdens schrijven)
   ========================================================================== */

.response-prose.streaming p:last-child::after,
.response-afsluiting.streaming p:last-child::after,
.code-block.streaming::after {
  content: "▎";
  display: inline-block;
  color: var(--kleur-accent);
  animation: blink 1s step-end infinite;
  margin-left: 4px;
  font-weight: 400;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* ==========================================================================
   API error state
   ========================================================================== */

.api-error {
  padding: 32px;
  background-color: rgba(75, 14, 45, 0.08);
  border: 1px solid rgba(75, 14, 45, 0.3);
  text-align: center;
}

.api-error p {
  margin: 0 0 8px;
  font-size: 16px;
}

.api-error-detail {
  font-size: 13px;
  color: rgba(75, 14, 45, 0.6);
  font-family: monospace;
  word-break: break-word;
}

/* ==========================================================================
   Selectie-styling
   ========================================================================== */

::selection {
  background-color: var(--kleur-accent);
  color: var(--kleur-fond);
}

/* ==========================================================================
   Openingsanimatie — beeldvullende headerfoto, daginfo verschijnt apart.
   Niet skipbaar.

   Tijdlijn:
   - 0.0s  : foto fade-in start
   - 0.5s  : foto volledig in beeld
   - 1.0s  : daginfo-tekst fade + slide-up vanaf onderen
   - 1.6s  : daginfo volledig zichtbaar
   - 2.8s  : hele compositie (foto + tekst) glijdt omhoog weg
   - 3.7s  : animatie voltooid
   ========================================================================== */

.opening {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--kleur-fond);
  overflow: hidden;
  pointer-events: none;
  /* De hele overlay glijdt omhoog weg na 2.8s */
  animation: opening-slide-up 0.9s cubic-bezier(0.7, 0, 0.3, 1) 2.8s forwards;
}

/* De foto zit in een box met EXACT de foto-verhouding, gecentreerd in het
   scherm en passend gemaakt. Daardoor zit het logo altijd op dezelfde plek
   BINNEN de box, op elk scherm. De daginfo-tekst zit ook in die box en is
   dus altijd correct uitgelijnd onder het logo. Rondom de box: donkerrode fond. */
.opening__picture {
  position: absolute;
  inset: 0;
  display: block;
}

.opening__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Beeldvullend. Tekst + logo staan al in de foto, met marge van de randen. */
  object-fit: cover;
  object-position: center;
  /* Foto fade-in op pageload */
  opacity: 0;
  animation: opening-fade-in 0.5s ease-out forwards;
}

@keyframes opening-fade-in {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes opening-slide-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

.opening--gone {
  display: none;
}

/* ==========================================================================
   Liefs, Dolly handtekening — afsluiting op pagina 3b
   Klein, links uitgelijnd onder de afsluitende tekst
   ========================================================================== */

.signature {
  margin-top: 32px;
  text-align: left;
  animation: signatureFadeIn 1.4s ease-out;
}

.signature__image {
  display: block;
  width: 95px;
  height: auto;
  opacity: 0.95;
}

@media (min-width: 768px) {
  .signature__image {
    width: 110px;
  }
}

@keyframes signatureFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Toegangscode-scherm — verschijnt na opening, voor wie nog niet auth'd is
   ========================================================================== */

.auth {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background-color: var(--kleur-fond);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background-image: radial-gradient(
    ellipse at 50% 30%,
    rgba(75, 14, 45, 0.08) 0%,
    transparent 60%
  );
  animation: authFadeIn 0.5s ease-out;
}

.auth.is-hidden {
  display: none;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.auth__inner {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.auth__title {
  font-family: "Voyage", "Brandon Grotesque", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--kleur-tekst);
  margin: 0 0 12px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .auth__title {
    font-size: 34px;
  }
}

.auth__lede {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(75, 14, 45, 0.85);
  margin: 0 0 40px;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.auth__input {
  width: 100%;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: var(--kleur-tekst);
  background-color: transparent;
  border: 1px solid rgba(75, 14, 45, 0.3);
  border-bottom: 1px solid rgba(75, 14, 45, 0.3);
  padding: 16px;
  transition: border-color 0.2s ease;
}

.auth__input:focus {
  outline: none;
  border-color: var(--kleur-accent);
}

.auth__input::placeholder {
  color: rgba(75, 14, 45, 0.35);
  letter-spacing: 0.04em;
  text-transform: none;
}

.auth__submit {
  margin-top: 8px;
  width: 100%;
}

.auth__error {
  color: var(--kleur-accent);
  font-size: 14px;
  font-weight: 400;
  margin: 8px 0 0;
  min-height: 1.4em;
  text-align: center;
}

.auth__hint {
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: rgba(75, 14, 45, 0.45);
  margin: 32px 0 0;
  line-height: 1.6;
}

/* ==========================================================================
   PDF-download knop op de Sleutel-pagina
   ========================================================================== */

.download-cta {
  margin-top: 40px;
  text-align: left;
  animation: signatureFadeIn 1.4s ease-out;
}

.download-cta .btn {
  margin-top: 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 12px 24px;
}

.download-status {
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: rgba(75, 14, 45, 0.6);
  margin: 16px 0 0;
}


/* ==========================================================================
   Paperclip met monogram — sticky rechtsboven
   Verschijnt pas na de openingsanimatie (.is-hidden wordt door JS verwijderd)
   ========================================================================== */

.paperclip {
  position: fixed;
  top: 0;
  right: 24px;
  z-index: 100;
  width: 64px;
  height: 88px;
  background-color: var(--kleur-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  /* Subtiele schaduw zodat het paperclip uit het fond 'steekt' */
  box-shadow: 0 4px 16px rgba(75, 14, 45, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.1);
  /* Fade-in wanneer de is-hidden-klasse wordt verwijderd */
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.paperclip.is-hidden {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.paperclip__monogram {
  display: block;
  width: 42px;
  height: 42px;
  background-image: url("assets/monogram-donkerrood.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Op mobiel iets kleiner zodat hij niet over het Doorbraak-logo valt */
@media (max-width: 600px) {
  .paperclip {
    width: 52px;
    height: 72px;
    right: 16px;
  }
  .paperclip__monogram {
    width: 34px;
    height: 34px;
  }
}

/* Hover: heel subtiel — paperclip is geen actieve knop maar voelt levend */
.paperclip:hover {
  box-shadow: 0 6px 20px rgba(75, 14, 45, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Afzender-credit — subtiel onderaan elke pagina
   ========================================================================== */

.credit {
  position: relative;
  text-align: center;
  padding: 32px 24px 24px;
}

.privacy-note {
  max-width: 540px;
  margin: 0 auto 18px;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--kleur-tekst-zachtst);
  font-style: normal;
  letter-spacing: 0.01em;
}

.credit__byline {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kleur-tekst-zachtst);
  font-style: italic;
}

@media (min-width: 768px) {
  .credit {
    padding: 40px 32px 32px;
  }
  .privacy-note {
    font-size: 12px;
    margin-bottom: 22px;
  }
  .credit__byline {
    font-size: 12px;
  }
}

/* ==========================================================================
   Reduced motion: respecteer gebruikersvoorkeuren
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .opening {
    animation-duration: 0.3s;
    animation-delay: 2.4s;
  }
  .opening__image {
    animation: none;
    opacity: 1;
  }
  .signature {
    animation: none;
  }
  .paperclip {
    transition: none;
  }
}
