/* Seintje. Koraal op nachtblauw, met een warm crèmewit als ondergrond. */

:root {
	--navy: #151b3d;
	--navy-soft: #20284f;
	--coral: #ff6b4a;
	--coral-dark: #c2401f;
	--coral-soft: #ffe1d8;
	--cream: #fff6ec;
	--white: #ffffff;
	--text: #2a3158;
	--muted: #5d6385;
	--line: #eadfd2;
	--green: #1f9d61;
	--radius: 22px;
	--font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; font-weight: 500; color: var(--text); background: var(--cream); }
h1, h2, h3, p { margin: 0; }
a { color: var(--coral-dark); font-weight: 700; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* Bovenbalk */
.top { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 20px 12px; position: sticky; top: 0; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 900; font-size: 24px; letter-spacing: -.01em; }
.top-nav { display: flex; gap: 4px; }
.top-nav a { color: #d7daee; text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 14px; border-radius: 999px; }
.top-nav a[aria-current="page"] { background: var(--navy-soft); color: #fff; }

.page { max-width: 600px; margin: 0 auto; padding: 20px 16px calc(40px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 24px; }
.h1 { font-size: 28px; font-weight: 900; color: var(--navy); line-height: 1.15; }
.label { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head + .stack, .label + .stack { margin-top: 10px; }
.stat { font-size: 14px; font-weight: 800; color: var(--coral-dark); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.empty { background: var(--white); border-radius: var(--radius); padding: 22px; color: var(--muted); }
.flash { background: var(--navy); color: #fff; border-radius: 16px; padding: 14px 18px; font-weight: 700; }
.error { background: #fde5df; color: #8f2413; border-radius: 12px; padding: 12px 16px; font-weight: 700; margin-bottom: 14px; }
.hint { font-size: 15px; color: var(--muted); }
code { background: var(--cream); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border: 2px solid var(--coral-dark); border-radius: 999px; background: var(--coral-dark); color: #fff; font-family: inherit; font-size: 18px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-dark { background: var(--navy); border-color: var(--navy); }
.btn-line { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Wachtende klant */
.lead-now { background: var(--coral); color: var(--navy); border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 30px -22px rgba(194, 64, 31, .9); }
.lead-head { display: flex; align-items: center; gap: 14px; }
.lead h3 { font-size: 20px; font-weight: 800; line-height: 1.2; color: inherit; overflow-wrap: anywhere; }
.meta { font-size: 15px; font-weight: 700; }
.lead-now .meta { color: var(--navy); opacity: .85; }
.avatar { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--cream); color: var(--coral-dark); display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.avatar-soft { width: 44px; height: 44px; background: var(--coral-soft); font-size: 15px; }
.lead-title { font-size: 26px; font-weight: 900; line-height: 1.1; color: var(--navy); }
.lead-msg { background: rgba(255, 255, 255, .28); border-radius: 14px; padding: 10px 14px; font-weight: 700; white-space: pre-line; overflow-wrap: anywhere; max-height: 9em; overflow: auto; }
.lead-contact { font-weight: 800; overflow-wrap: anywhere; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.lead-actions .btn-dark { flex: 1 1 100%; min-height: 58px; font-size: 20px; }
.lead-actions .btn-line { flex: 1 1 0; white-space: nowrap; }

/* Eerder */
.lead-done { background: var(--white); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.lead-body { flex: 1 1 auto; min-width: 0; }
.lead-done h3 { font-size: 17px; color: var(--navy); }
.lead-done .meta { color: var(--muted); font-weight: 600; font-size: 14px; }
.undo { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); color: var(--navy); font-size: 20px; cursor: pointer; }
.undo:hover { background: var(--coral-soft); }

/* Kaarten en formulieren */
.card { background: var(--white); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card h2 { font-size: 21px; font-weight: 900; color: var(--navy); }
.card h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-top: 10px; }
.card form { display: flex; flex-direction: column; gap: 12px; }
.card form .btn { align-self: flex-start; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 15px; font-weight: 800; color: var(--navy); }
.field input, .field textarea, .team input { width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--navy); font-family: inherit; font-size: 17px; font-weight: 600; }
.field input[readonly], .field textarea[readonly], .team input { background: var(--cream); font-size: 14px; font-family: ui-monospace, Consolas, monospace; cursor: copy; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(255, 107, 74, .3); }
.add summary { font-weight: 800; color: var(--navy); cursor: pointer; min-height: 28px; }
.add[open] summary { margin-bottom: 8px; }
.push-bar { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.push-bar .btn { align-self: flex-start; background: var(--coral); border-color: var(--coral); color: var(--navy); }
.team { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.team li { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-bottom: 2px solid var(--cream); overflow-wrap: anywhere; }
.pill { align-self: flex-start; background: var(--cream); border-radius: 999px; padding: 2px 12px; font-size: 14px; font-weight: 800; color: var(--navy); }
.card > .btn { align-self: flex-start; }

/* Abonnement */
.notice { background: var(--coral-soft); color: var(--navy); border-radius: 16px; padding: 14px 18px; font-weight: 700; }
.plans { display: grid; gap: 12px; }
.plan-current { box-shadow: inset 0 0 0 3px var(--coral); }
.price { color: var(--navy); }
.price strong { font-size: 34px; font-weight: 900; line-height: 1; }
.locked-count { font-size: 20px; font-weight: 900; color: var(--coral-dark); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Inloggen en het openbare formulier */
.is-auth { background: var(--navy); }
.is-auth .page { padding-top: 40px; }
.auth { display: flex; flex-direction: column; gap: 24px; }
.auth-intro { color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.auth-intro h1 { font-size: 40px; font-weight: 900; letter-spacing: -.01em; }
.auth-intro p { color: #d7daee; font-size: 18px; max-width: 22em; }
.auth .card form .btn { align-self: stretch; }
.is-public { background: transparent; }
.is-public .page { padding: 8px; }
.public-form { border: 2px solid var(--line); }
.public-form form .btn { align-self: stretch; }
.powered { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 13px; color: var(--muted); font-weight: 700; }

@media (min-width: 620px) {
	.page { padding-top: 32px; }
	.lead-actions .btn-dark { flex: 2 1 0; }
	.plans { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
