/* ───────────────────────────────────────────────────────────
   SolidMotion Offertes — stylesheet
   Brand tokens afgeleid van solidmotion.nl
   ─────────────────────────────────────────────────────────── */

:root {
  --color-bg: #FFFFFF;
  --color-surface: #F5F7FA;
  --color-surface-2: #EDF0F5;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-strong: rgba(0, 0, 0, 0.16);

  --color-accent: #049DFF;
  --color-accent-2: #6366f1;
  --color-accent-3: #a855f7;
  --color-accent-dim: rgba(4, 157, 255, 0.1);
  --gradient-brand: linear-gradient(135deg, #049DFF, #6366f1, #a855f7);

  --color-text: #0A0A0A;
  --color-text-2: #2D2D2D;
  --color-muted: rgba(10, 10, 10, 0.55);
  --color-muted-2: rgba(10, 10, 10, 0.35);

  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.08);

  --font-base: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Sora', 'DM Sans', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-hero: clamp(2.4rem, 5.5vw, 4.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --container-max: 920px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.10);
  --shadow-accent: 0 2px 12px rgba(4, 157, 255, 0.3);
  --shadow-accent-strong: 0 6px 24px rgba(4, 157, 255, 0.4);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 0.18s;
  --dur-base: 0.32s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ── Cursor glow (desktop only) ────────────────────────── */

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4, 157, 255, 0.13) 0%, transparent 60%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
  mix-blend-mode: multiply;
}
.cursor-glow.is-active { opacity: 1; }

@media (hover: none) { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } }

body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--color-accent); text-decoration: none; }

/* ── Entrance animaties ─────────────────────────────────── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.offerte-hero > .container > *,
section .section-label,
section .section-title,
section .section-intro,
section > .container > *,
.posten > .post,
.voorwaarden > li,
.totaal,
.acceptatie {
  opacity: 0;
  animation: fade-up 0.7s var(--ease-out) forwards;
}

.offerte-hero > .container > *:nth-child(1) { animation-delay: 0.08s; }
.offerte-hero > .container > *:nth-child(2) { animation-delay: 0.18s; }
.offerte-hero > .container > *:nth-child(3) { animation-delay: 0.26s; }
.offerte-hero > .container > *:nth-child(4) { animation-delay: 0.34s; }
.offerte-hero > .container > *:nth-child(5) { animation-delay: 0.42s; }

.posten > .post:nth-child(1) { animation-delay: 0.10s; }
.posten > .post:nth-child(2) { animation-delay: 0.18s; }
.posten > .post:nth-child(3) { animation-delay: 0.26s; }
.posten > .post:nth-child(4) { animation-delay: 0.34s; }
.posten > .post:nth-child(5) { animation-delay: 0.42s; }
.posten > .post:nth-child(6) { animation-delay: 0.50s; }

.voorwaarden > li:nth-child(1) { animation-delay: 0.08s; }
.voorwaarden > li:nth-child(2) { animation-delay: 0.14s; }
.voorwaarden > li:nth-child(3) { animation-delay: 0.20s; }
.voorwaarden > li:nth-child(4) { animation-delay: 0.26s; }
.voorwaarden > li:nth-child(5) { animation-delay: 0.32s; }

/* Reveal-on-scroll fallback voor secties verder op de pagina */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  animation: none !important;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .offerte-hero > .container > *,
  section .section-label,
  section .section-title,
  section .section-intro,
  section > .container > *,
  .posten > .post,
  .voorwaarden > li,
  .totaal,
  .acceptatie,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ── Loader ─────────────────────────────────────────────── */

.loader {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader__dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-brand);
  animation: pulse-loader 1.4s ease-in-out infinite;
}
@keyframes pulse-loader {
  0%, 100% { transform: scale(0.6); opacity: 0.4; }
  50%      { transform: scale(1);   opacity: 1;   }
}

/* ── Container ──────────────────────────────────────────── */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ── Header / hero ──────────────────────────────────────── */

.offerte-hero {
  position: relative;
  padding: var(--space-12) 0 var(--space-16);
  background: var(--color-bg);
  overflow: hidden;
  isolation: isolate;
}
.offerte-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: var(--gradient-brand);
  filter: blur(120px);
  opacity: 0.18;
  border-radius: 50%;
  z-index: -1;
  animation: float-blob 18s ease-in-out infinite;
}
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-40px, 30px) scale(1.06); }
  66%      { transform: translate(20px, -20px) scale(0.96); }
}

.offerte-hero__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-12);
}
.offerte-hero__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
}
.offerte-hero__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-accent);
}
.offerte-hero__meta {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-align: right;
}
.offerte-hero__meta strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
}

.offerte-hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.9rem;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.offerte-hero__label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.offerte-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.offerte-hero h1 .accent {
  background: var(--gradient-brand);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-drift 8s ease-in-out infinite;
}
@keyframes gradient-drift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.offerte-hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-2);
  max-width: 620px;
  line-height: 1.6;
}

.offerte-hero__factsheet {
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.fact { padding: 0 var(--space-3); }
.fact + .fact { border-left: 1px solid var(--color-border); }
.fact__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.fact__value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  transition: color var(--dur-fast) ease;
}
.fact__value.is-pulsing {
  animation: pulse-fact 0.5s var(--ease-out);
}
@keyframes pulse-fact {
  0%   { color: var(--color-text); transform: scale(1); }
  40%  { color: var(--color-accent); transform: scale(1.06); }
  100% { color: var(--color-text); transform: scale(1); }
}
@media (max-width: 600px) {
  .fact + .fact { border-left: none; border-top: 1px solid var(--color-border); padding-top: var(--space-3); margin-top: var(--space-3); }
}

/* ── Section ───────────────────────────────────────────── */

section { padding: var(--space-12) 0; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}
.section-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.section-intro {
  color: var(--color-text-2);
  max-width: 640px;
  margin-bottom: var(--space-10);
}

/* ── Intro tekst ───────────────────────────────────────── */

.intro-block {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-text-2);
}
.intro-block p + p { margin-top: var(--space-4); }

/* ── Posten lijst ───────────────────────────────────────── */

.posten {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.post {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2) var(--space-6);
  align-items: start;
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-base) ease,
              box-shadow var(--dur-base) ease,
              transform var(--dur-base) var(--ease-out);
  position: relative;
}
.post::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--dur-base) ease;
  filter: blur(8px);
}
.post:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.post:hover::after { opacity: 0.4; }

.post--optional {
  background: var(--color-surface);
  border-style: dashed;
}
.post--optional.is-checked {
  background: var(--color-bg);
  border-style: solid;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}

.post__title-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.post__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}
.post__desc {
  grid-column: 1 / 2;
  color: var(--color-text-2);
  margin-top: var(--space-2);
  font-size: var(--text-base);
  line-height: 1.65;
}
.post__price {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-text);
  white-space: nowrap;
}
.post__price-sub {
  display: block;
  font-family: var(--font-base);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-muted);
  margin-top: 2px;
}
.post__badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* checkbox voor optional */
.post__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid var(--color-border-strong);
  background: var(--color-bg);
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}
.post__check svg {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: scale(0.3) rotate(-20deg);
  transition: opacity var(--dur-base) var(--ease-out),
              transform 0.4s cubic-bezier(.34, 1.56, .64, 1);
  color: #fff;
}
.post--optional.is-checked .post__check {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.05);
}
.post--optional.is-checked .post__check svg {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.post--optional { cursor: pointer; user-select: none; }
.post--optional:active { transform: scale(0.99); }

/* ── Totaal blok ───────────────────────────────────────── */

.totaal {
  margin-top: var(--space-8);
  padding: var(--space-8);
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.totaal::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: var(--gradient-brand);
  filter: blur(100px);
  opacity: 0.45;
  border-radius: 50%;
  pointer-events: none;
}
.totaal__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-2) 0;
  position: relative;
}
.totaal__row + .totaal__row { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.totaal__label {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}
.totaal__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}
.totaal__row--final { margin-top: var(--space-3); padding-top: var(--space-5); }
.totaal__row--final .totaal__label {
  color: #fff;
  font-size: var(--text-lg);
  font-weight: 600;
}
.totaal__row--final .totaal__value {
  font-size: var(--text-3xl);
  background: linear-gradient(135deg, #fff, #b8d6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.35s var(--ease-out);
}
.totaal__value.is-pulsing {
  animation: pulse-total 0.55s var(--ease-out);
}
@keyframes pulse-total {
  0%   { transform: scale(1);    filter: brightness(1); }
  35%  { transform: scale(1.08); filter: brightness(1.3); }
  100% { transform: scale(1);    filter: brightness(1); }
}

/* ── Voorwaarden ───────────────────────────────────────── */

.voorwaarden {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.voorwaarden li {
  position: relative;
  padding-left: var(--space-8);
  color: var(--color-text-2);
}
.voorwaarden li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 18px;
  height: 18px;
  background: var(--color-accent-dim);
  border-radius: 50%;
}
.voorwaarden li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.9em;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

/* ── Acceptatie blok ───────────────────────────────────── */

.acceptatie {
  margin-top: var(--space-8);
  padding: var(--space-10);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}
.acceptatie__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.acceptatie__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.acceptatie__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
}
.acceptatie__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-2);
}
.field input,
.field textarea {
  font: inherit;
  padding: 0.85rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}
.field textarea { resize: vertical; min-height: 100px; }
@media (max-width: 600px) {
  .acceptatie__form { grid-template-columns: 1fr; }
}

/* ── Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) ease,
              background var(--dur-base) ease,
              color var(--dur-base) ease,
              border-color var(--dur-base) ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { box-shadow: var(--shadow-accent-strong); }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%);
  transform: translateX(-110%);
  transition: transform 0.55s ease;
}
.btn-primary:hover::after { transform: translateX(110%); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn-lg { padding: 1rem 2.25rem; font-size: var(--text-lg); }

.action-bar {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

/* ── Footer ────────────────────────────────────────────── */

.offerte-footer {
  margin-top: var(--space-20);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.offerte-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: end;
}
.offerte-footer strong { color: var(--color-text); }
@media (max-width: 600px) {
  .offerte-footer__grid { grid-template-columns: 1fr; }
}

/* ── Success state ─────────────────────────────────────── */

.success-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  animation: scale-in 0.5s var(--ease-out);
}
.success-state__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-6);
  border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: success-pop 0.6s var(--ease-out);
  position: relative;
}
.success-state__icon::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--color-success);
  opacity: 0.4;
  animation: success-ring 1.6s ease-out infinite;
}
@keyframes success-pop {
  0%   { transform: scale(0) rotate(-45deg); }
  60%  { transform: scale(1.15) rotate(0); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes success-ring {
  0%   { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}
.success-state__icon svg {
  animation: success-check 0.5s 0.25s var(--ease-out) both;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}
@keyframes success-check {
  to { stroke-dashoffset: 0; }
}
.success-state h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.success-state p {
  color: var(--color-text-2);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Landing (geen offerte-slug) ───────────────────────── */

.landing {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12);
}
.landing__inner { max-width: 500px; }
.landing h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.landing p { color: var(--color-muted); margin-bottom: var(--space-6); }

/* ── Error ─────────────────────────────────────────────── */

.error-state {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: var(--space-8);
}
.error-state h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}
.error-state p { color: var(--color-muted); max-width: 440px; margin-bottom: var(--space-6); }

/* ── PDF generation mode (html2pdf) ────────────────────── */
@keyframes pdf-spin {
  to { transform: rotate(360deg); }
}

.is-generating-pdf,
.is-generating-pdf * {
  /* Stop animations en force eindstaat */
  animation-duration: 0.001s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition: none !important;
}
.is-generating-pdf .offerte-hero > .container > *,
.is-generating-pdf .posten > .post,
.is-generating-pdf .voorwaarden > li,
.is-generating-pdf .totaal,
.is-generating-pdf .acceptatie,
.is-generating-pdf section .section-label,
.is-generating-pdf section .section-title,
.is-generating-pdf section .section-intro,
.is-generating-pdf .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Verberg interactieve/decoratieve elementen in PDF */
.is-generating-pdf .cursor-glow,
.is-generating-pdf #acceptatie-section,
.is-generating-pdf .offerte-hero::before,
.is-generating-pdf .totaal::before,
.is-generating-pdf .post::after,
.is-generating-pdf .post--optional:not(.is-checked),
.is-generating-pdf .scroll-wave {
  display: none !important;
}

/* Gradient text rendert niet in canvas — fallback naar solid */
.is-generating-pdf .offerte-hero h1 .accent {
  background: none !important;
  -webkit-text-fill-color: var(--color-accent) !important;
  color: var(--color-accent) !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  animation: none !important;
}
.is-generating-pdf .totaal__row--final .totaal__value {
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

/* Page break hints — laat post-blokken niet over pagina's heen breken */
.is-generating-pdf .post,
.is-generating-pdf .totaal,
.is-generating-pdf .offerte-footer {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* Geen hover-effects in PDF */
.is-generating-pdf .post:hover {
  transform: none !important;
  box-shadow: var(--shadow-sm) !important;
  border-color: var(--color-border) !important;
}

/* Optionele extras die wel gekozen zijn: laat checkmark zien zonder hover-effect */
.is-generating-pdf .post--optional.is-checked .post__check {
  transform: none !important;
}

/* ── Print stylesheet (fallback voor Cmd/Ctrl+P) ───────── */

@media print {
  @page { size: A4; margin: 18mm 15mm; }

  body { background: #fff; color: #000; }
  .offerte-hero::before,
  .totaal::before,
  .acceptatie,
  .action-bar,
  .offerte-hero__nav .pdf-btn,
  .post--optional:not(.is-checked) {
    display: none !important;
  }
  .offerte-hero { padding: 0 0 var(--space-8); }
  .offerte-hero h1 .accent { -webkit-text-fill-color: var(--color-accent); }
  section { padding: var(--space-6) 0; page-break-inside: avoid; }
  .post {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  .totaal { background: #f5f7fa; color: #000; }
  .totaal__label { color: #555; }
  .totaal__row--final .totaal__value { -webkit-text-fill-color: var(--color-accent); }
  .totaal__row + .totaal__row { border-top-color: #ddd; }
  .container { max-width: 100%; }
  a { color: #000; }
}
