/* Treatz Mobile – zie DESIGN.md. Geen externe fonts of bronnen. */
:root {
  --bg: #0e0617;
  --bg-raised: #111111;
  --bg-field: #0a0a0a;
  --text: #ffffff;
  --muted: #a8adb7;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.22);
  --g1: #22c55e;
  --g2: #01d1b6;
  --grad: linear-gradient(90deg, #22c55e 0%, #01d1b6 100%);
  --on-grad: #04130b;
  --danger: #ff8a8a;
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 640px; z-index: -1;
  background:
    radial-gradient(ellipse 450px 280px at 0% 0%, rgba(34, 197, 94, 0.18), rgba(1, 209, 182, 0.06) 45%, transparent 75%);
  pointer-events: none;
}
a { color: var(--g2); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--g2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* Demo-indicator */
.demo-bar {
  background: rgba(251, 191, 36, 0.1); border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde7a3; font-size: 13px; text-align: center; padding: 7px 16px; line-height: 1.4;
}
.demo-bar strong { letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; background: rgba(251,191,36,.2); padding: 2px 8px; border-radius: 99px; margin-right: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; padding: 18px 0 16px; margin-bottom: 8px; background: rgba(0,0,0,0.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-header a { display: inline-flex; line-height: 0; }
.logo { display: block; height: 44px; width: auto; background: none; border: 0; box-shadow: none; }
.header-note { font-size: 14px; color: var(--muted); }

/* Hero */
.hero { padding: 20px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--g2);
  border: 1px solid rgba(1, 209, 182, 0.35); background: rgba(1, 209, 182, 0.07);
  padding: 6px 14px; border-radius: 99px; margin-bottom: 22px;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); display: inline-block; }
h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 750; margin-bottom: 20px; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.lead strong { color: #fff; font-weight: 600; }
.checks { list-style: none; display: grid; gap: 12px; margin-bottom: 36px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks li::before {
  content: "\2713"; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--grad); color: var(--on-grad); font-size: 13px; font-weight: 800; display: grid; place-items: center;
}

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 14px 16px; background: rgba(255, 255, 255, 0.02); font-size: 14px; color: var(--muted); }
.steps li strong { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: var(--on-grad); font-weight: 700; font-size: 13px; margin-bottom: 10px; }

/* Card + form */
.card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.card h2 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 4px; }
.card .card-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
label, .legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.opt { color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], select {
  width: 100%; background: var(--bg-field); border: 1px solid var(--border-strong); color: #fff;
  border-radius: var(--radius-sm); padding: 13px 14px; font: inherit; font-size: 16px; min-height: 48px;
}
select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
select:invalid, select option[value=""] { color: #6b7280; }
select option { background: var(--bg-field); color: #fff; }
#provider_other { margin-top: 8px; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-field) inset !important; box-shadow: 0 0 0 1000px var(--bg-field) inset !important;
  -webkit-text-fill-color: #fff !important; caret-color: #fff; transition: background-color 9999s ease-out 0s; }
input::placeholder { color: #6b7280; }
input:focus, select:focus { outline: 2px solid var(--g2); outline-offset: 1px; border-color: transparent; }
input[aria-invalid=true], select[aria-invalid=true] { border-color: var(--danger); }
.help { font-size: 13px; color: var(--muted); margin-top: 6px; }
.error { font-size: 13.5px; color: var(--danger); margin-top: 6px; min-height: 0; }
.error:empty { display: none; }
fieldset { border: 0; margin: 0 0 16px; min-width: 0; }
.qual { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 4px; }
.qual-title { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block; border: 1px solid var(--border-strong); border-radius: 99px; padding: 10px 16px; font-size: 14.5px;
  font-weight: 500; cursor: pointer; background: var(--bg-field); min-height: 44px; line-height: 22px;
}
.pill input:checked + span { background: rgba(34, 197, 94, 0.14); border-color: var(--g1); color: #fff; box-shadow: 0 0 0 1px var(--g1) inset; }
.pill input:focus-visible + span { outline: 2px solid var(--g2); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-field); }
.consent input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--g1); }
.consent label { font-weight: 500; margin: 0; font-size: 14.5px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 14px 22px;
  border: 0; border-radius: 12px; font: inherit; font-size: 16.5px; font-weight: 700; cursor: pointer;
  background: var(--grad); color: var(--on-grad); text-decoration: none; transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid var(--border-strong); }
.fine { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.form-error { margin-bottom: 14px; padding: 12px 14px; border: 1px solid rgba(255,138,138,.5); background: rgba(255,138,138,.08); border-radius: var(--radius-sm); color: #ffd0d0; font-size: 14px; }
.form-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* States */
.state h2 { margin: 14px 0 10px; }
.state p { color: var(--muted); margin-bottom: 14px; font-size: 15.5px; }
.state .icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-grad); font-size: 26px; font-weight: 800; }
.state .icon.demo { background: rgba(251,191,36,.18); color: var(--warn); border: 1px solid rgba(251,191,36,.5); font-size: 22px; }
.state .icon.bad { background: rgba(255,138,138,.15); color: var(--danger); border: 1px solid rgba(255,138,138,.5); }
.notice-demo { border: 1px dashed rgba(251,191,36,.55); background: rgba(251,191,36,.07); color: #fde7a3; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
details.payload { margin-top: 16px; font-size: 13px; color: var(--muted); }
details.payload summary { cursor: pointer; }
details.payload pre { margin-top: 8px; background: #0d0d0d; border: 1px solid var(--border); border-radius: 8px; padding: 10px; overflow: auto; max-height: 220px; font-size: 12px; color: #cbd5e1; white-space: pre-wrap; word-break: break-all; }
.hidden { display: none !important; }

/* Pagina’s: confirm + privacy */
.page-narrow { max-width: 720px; margin: 0 auto; padding: 24px 24px 64px; }
.center-card { max-width: 560px; margin: 24px auto 64px; }
.prose h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.prose h2 { font-size: 20px; margin: 32px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { color: #d4d7dd; font-size: 15.5px; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 12px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.prose .todo { background: rgba(251,191,36,.15); color: #fde7a3; border-radius: 4px; padding: 0 5px; font-weight: 600; }
.prose .box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; background: rgba(255,255,255,.02); margin: 16px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--border); padding: 9px 10px 9px 0; vertical-align: top; color: #d4d7dd; }
.prose th { color: #fff; font-weight: 600; }
.table-scroll { overflow-x: auto; }
.back { display: inline-block; margin: 16px 0 12px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0 40px; margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a, .linklike { color: var(--muted); background: none; border: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.site-footer a:hover, .linklike:hover { color: #fff; }
.site-footer, .site-footer a, .site-footer .linklike { color: #868b95; }
.site-footer a, .site-footer .linklike { text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; }

/* Cookiebanner */
.consent-banner {
  position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto;
  background: #202020; border: 1px solid var(--border-strong); border-radius: 18px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.consent-banner h2 { font-size: 17px; margin-bottom: 6px; }
.consent-banner p { font-size: 14px; color: #c7cbd3; margin-bottom: 8px; }
.consent-banner details { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.consent-banner summary { cursor: pointer; }
.consent-actions { display: flex; gap: 12px; margin-top: 12px; }
.consent-actions .btn { flex: 1; min-height: 48px; font-size: 15.5px; }
.btn-reject { background: #f3f4f6; color: #111; }
.consent-demo { color: #fde7a3 !important; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-bottom: 40px; }
  .header-note { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .logo { height: 38px; }
  .card { padding: 20px 18px; border-radius: 18px; }
  .lead { font-size: 16.5px; margin-bottom: 20px; }
  .checks { margin-bottom: 8px; }
  .steps { display: none; }
  .consent-actions { flex-direction: column-reverse; }
  .consent-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.later { padding: 8px 0 48px; }
.later p { color: var(--muted); font-size: 16px; margin: 0; max-width: 640px; }

/* Hero-kop: wit naar Treatz-gradient bij het laden (eenmalig) */
.grad-sweep {
  background-image: linear-gradient(90deg, #22c55e 0%, #01d1b6 40%, #ffffff 60%, #ffffff 100%);
  background-size: 250% 100%; background-position: 100% 0;
  animation: gradSweep 1.6s cubic-bezier(.22,.61,.36,1) .35s forwards;
}
@keyframes gradSweep { to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .grad-sweep { animation: none; background-position: 0 0; } }
@media (max-width: 560px) {
  .hero-copy h1 { font-size: min(7.3vw, 30px); line-height: 1.15; }
  .h1-brand { display: block; font-size: 1.3em; margin-bottom: 2px; }
  .h1-line { display: block; }
  .h1-nowrap { white-space: nowrap; }
}

/* "Lovable"-animatie: tekst kleurt even in de Treatz-gradient en zakt terug naar de eigen tekstkleur */
.lov.lov-run {
  background-image: linear-gradient(90deg, var(--lov-c, #fff) 0%, var(--lov-c, #fff) 38%, #22c55e 50%, #01d1b6 62%, #01d1b6 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: lovSweep 1.8s cubic-bezier(.45,0,.25,1) forwards;
}
@keyframes lovSweep { to { background-position: 0 0; } }

/* Desktop (>=1024px): bredere layout, footer onderaan, grotere glow */
.note-desk { display: none; }
@media (min-width: 1024px) {
  .wrap { max-width: 1280px; padding: 0 32px; }
  .note-desk { display: inline; }
  .hero .eyebrow { display: none; }
  body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
  body > main { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
  body > .site-header, body > .site-footer, body > .demo-bar { flex: 0 0 auto; }
  body::before { height: 1280px;
    background: radial-gradient(ellipse 900px 560px at 0% 0%, rgba(34, 197, 94, 0.18), rgba(1, 209, 182, 0.06) 45%, transparent 75%); }
}

.req { color: var(--muted); font-weight: 400; font-size: 12.5px; }
@media (min-width: 1024px) {
  .field-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .field-row label { margin-bottom: 0; }
  .field-row .req { display: block; margin-top: 2px; }
  .field-row .error, .field-row > :nth-child(n+3) { grid-column: 2; }
}
@media (min-width: 1024px) {
  .hero-copy h1 { font-size: clamp(34px, 3vw, 46px); line-height: 1.12; }
  .h1-brand { display: block; font-size: 1.3em; margin-bottom: 2px; }
  .h1-line { display: block; }
  .h1-nowrap { white-space: nowrap; }
}

/* Hero-indeling op alle schermbreedtes gelijk */
.h1-brand { display: block; font-size: 1.3em; margin-bottom: 2px; }
.h1-line { display: block; }
.h1-nowrap { white-space: nowrap; }

/* Header-tekst: lang vanaf tablet, kort op mobiel; pill in de hero niet meer tonen */
.hero .eyebrow { display: none; }
.note-mob { display: none; }
@media (max-width: 560px) {
  .header-note { display: inline; font-size: 12.5px; text-align: right; }
  .note-long { display: none; }
  .note-mob { display: inline; }
}
.lov[data-lov="view"].lov-run { animation-duration: 3.6s; }

#confirm-root [data-state]:focus{outline:none}
