/*
   De publieke pagina's: startpagina, contact, privacy, voorwaarden.

   Bewust een eigen stijl, los van het beheerportaal. Dit is de etalage: altijd donker, met de
   aurora-achtergrond en het glaswerk van de oude wachtpagina, want die beviel. Alles achter een
   aanmelding houdt zijn eigen licht/donker-thema.
*/

.public {
    --p-bg: #070b16;
    --p-ink: #f3f5fb;
    --p-muted: #9aa5c4;
    --p-line: rgba(255, 255, 255, .10);
    --p-glass: rgba(255, 255, 255, .045);
    --p-brand: #6366f1;
    --p-brand-2: #22d3ee;
    --p-brand-3: #f472b6;
    --p-radius: 22px;

    color-scheme: dark;
    background: var(--p-bg);
    color: var(--p-ink);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* --- achtergrond: aurora, raster, korrel --- */

/*
   Hetzelfde aurora-beeld als op de oude wachtpagina, maar geschilderd met verlopen in plaats van
   met drie grote onscherpe vlakken. Een `filter: blur(90px)` over een half scherm moet bij elke
   scrollbeweging opnieuw berekend worden; dat scheurt het beeld op tragere toestellen en kost
   nodeloos veel. Een radiaal verloop is één keer tekenen en ziet er identiek uit.
*/
.public-bg {
    position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
    background:
        radial-gradient(60vmax 55vmax at 8% -8%, rgba(79, 70, 229, .55), transparent 62%),
        radial-gradient(52vmax 48vmax at 96% 12%, rgba(8, 145, 178, .45), transparent 62%),
        radial-gradient(46vmax 42vmax at 62% 108%, rgba(219, 39, 119, .30), transparent 62%);
}

.public-bg .blob { display: none; }

.public-bg .raster {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 72%);
}

.public-bg .noise {
    position: absolute; inset: 0; opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- geraamte --- */

.public-shell { position: relative; z-index: 1; }
.public-wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

.public-header {
    display: flex; align-items: center; gap: 14px;
    padding: 22px clamp(16px, 4vw, 32px);
    width: min(1120px, 100%); margin: 0 auto;
}

.public-mark {
    width: 42px; height: 42px; border-radius: 13px; flex: none;
    background: linear-gradient(135deg, var(--p-brand), var(--p-brand-2));
    display: grid; place-items: center;
    box-shadow: 0 10px 24px -8px rgba(99, 102, 241, .9);
}

.public-mark svg { width: 25px; height: 25px; color: #fff; }

.public-word { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; color: var(--p-ink); text-decoration: none; }
.public-word span { color: var(--p-muted); font-weight: 500; }

.public-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.public-nav a { color: #c3cbe6; text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 4px; }
.public-nav a:hover { color: #fff; }

/* Op een telefoon past de hele balk niet: dan blijft enkel de knop staan die telt. */
@media (max-width: 560px) {
    .public-nav a:not(.p-btn) { display: none; }
}

/* --- knoppen --- */

.p-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 22px; border: 0; border-radius: 14px; cursor: pointer;
    font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none;
    color: #0b1020;
    background: linear-gradient(135deg, var(--p-brand-2), var(--p-brand));
    box-shadow: 0 12px 28px -10px rgba(99, 102, 241, .95);
    transition: transform .15s ease, filter .2s ease;
}

.p-btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.p-btn:active { transform: translateY(0); }
.p-btn-sm { padding: 10px 16px; font-size: .88rem; border-radius: 12px; }

.p-btn-ghost {
    background: var(--p-glass); color: var(--p-ink);
    border: 1px solid var(--p-line); box-shadow: none;
}

.p-btn-ghost:hover { border-color: rgba(99, 102, 241, .55); background: rgba(99, 102, 241, .12); }

/* --- glaswerk --- */

.p-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .028));
    border: 1px solid var(--p-line);
    border-radius: calc(var(--p-radius) + 6px);
    padding: clamp(22px, 4vw, 34px);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px -20px rgba(2, 6, 23, .85), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.p-badge {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--p-line); background: var(--p-glass);
    font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #c9d2ee;
}

.p-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 2.2s infinite;
}

@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* --- kop --- */

.p-hero { padding: clamp(28px, 7vw, 70px) 0 clamp(24px, 5vw, 48px); }
.p-hero h1 { margin: 22px 0 0; font-size: clamp(2.2rem, 6.2vw, 3.9rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.p-hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--p-brand-2), var(--p-brand) 45%, var(--p-brand-3));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-lead { margin: 20px 0 0; color: var(--p-muted); font-size: clamp(1rem, 2.3vw, 1.16rem); line-height: 1.65; max-width: 56ch; }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.p-actions .p-note { color: var(--p-muted); font-size: .86rem; }

/* de handtekening die zichzelf tekent */
.p-sign { margin-top: 38px; border: 1px dashed var(--p-line); border-radius: var(--p-radius); background: rgba(255, 255, 255, .02); padding: 18px 20px 12px; }
.p-sign svg { width: 100%; height: 78px; display: block; overflow: visible; }
.p-sign path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 5s ease-in-out infinite; }
@keyframes draw {
    0% { stroke-dashoffset: 1400; opacity: 1; }
    45% { stroke-dashoffset: 0; opacity: 1; }
    85% { stroke-dashoffset: 0; opacity: 1; }
    97%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
.p-signline { margin-top: 6px; border-top: 1px solid var(--p-line); padding-top: 9px; display: flex; justify-content: space-between; font-size: .76rem; color: var(--p-muted); letter-spacing: .04em; }

/* --- secties --- */

.p-section { padding: clamp(34px, 6vw, 64px) 0; }
.p-section h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.025em; margin: 0 0 10px; font-weight: 800; }
.p-section > .p-lead { margin-bottom: 30px; }
.p-eyebrow { color: var(--p-brand-2); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }

.p-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .p-grid-2 { grid-template-columns: repeat(2, 1fr); } .p-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.p-step { position: relative; }
.p-step .num {
    width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
    background: rgba(99, 102, 241, .16); border: 1px solid rgba(99, 102, 241, .45);
    color: #c7d2fe; font-weight: 800; font-size: .95rem; margin-bottom: 14px;
}
.p-step h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; }
.p-step p { margin: 0; color: var(--p-muted); font-size: .93rem; line-height: 1.6; }

.p-feature { display: flex; gap: 12px; align-items: flex-start; }
.p-feature svg { width: 20px; height: 20px; color: var(--p-brand-2); flex: none; margin-top: 2px; }
.p-feature h3 { margin: 0 0 4px; font-size: .98rem; font-weight: 700; }
.p-feature p { margin: 0; color: var(--p-muted); font-size: .9rem; line-height: 1.55; }

/* --- prijzen --- */

.p-plans { display: grid; gap: 16px; }
@media (min-width: 860px) { .p-plans { grid-template-columns: repeat(3, 1fr); } }

.p-plan { display: flex; flex-direction: column; }
.p-plan.is-featured { border-color: rgba(99, 102, 241, .55); box-shadow: 0 30px 80px -20px rgba(79, 70, 229, .55), inset 0 1px 0 rgba(255, 255, 255, .1); }
.p-plan h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.p-price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.p-price b { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.p-price span { color: var(--p-muted); font-size: .9rem; }
.p-plan ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.p-plan li { display: flex; gap: 9px; align-items: flex-start; color: #dbe2f7; font-size: .92rem; }
.p-plan li svg { width: 17px; height: 17px; color: #34d399; flex: none; margin-top: 2px; }
.p-plan .p-btn, .p-plan .p-btn-ghost { margin-top: 22px; }
.p-plan-foot { margin-top: auto; }

/* --- formulieren --- */

.p-form { display: grid; gap: 14px; }
.p-field label { display: block; font-size: .88rem; font-weight: 600; color: #c3cbe6; margin-bottom: 6px; }
.p-field input, .p-field select, .p-field textarea {
    width: 100%; padding: 14px 16px; border-radius: 14px;
    border: 1px solid var(--p-line); background: rgba(0, 0, 0, .28);
    color: var(--p-ink); font: inherit; font-size: .95rem; outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.p-field input::placeholder, .p-field textarea::placeholder { color: #6f7b9b; }
.p-field input:focus, .p-field select:focus, .p-field textarea:focus {
    border-color: rgba(99, 102, 241, .8); box-shadow: 0 0 0 4px rgba(99, 102, 241, .18);
}
.p-field .p-hint { margin: 6px 0 0; font-size: .8rem; color: #71809f; }
.p-field-error { color: #fca5a5; font-size: .85rem; margin-top: 6px; }

.p-notice {
    display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px;
    border: 1px solid var(--p-line); background: var(--p-glass); font-size: .92rem; line-height: 1.55;
}
.p-notice-ok { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .10); }
.p-notice-bad { border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .10); }

/* --- lopende tekst (privacy, voorwaarden) --- */

.p-prose { max-width: 72ch; }
.p-prose h2 { font-size: 1.25rem; margin: 32px 0 8px; font-weight: 800; }
.p-prose h3 { font-size: 1rem; margin: 22px 0 6px; font-weight: 700; }
.p-prose p, .p-prose li { color: #c8d0e8; line-height: 1.7; font-size: .95rem; }
.p-prose ul { padding-left: 20px; display: grid; gap: 6px; }
.p-prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .92rem; }
.p-prose th, .p-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--p-line); color: #c8d0e8; }
.p-prose th { color: var(--p-ink); font-weight: 700; }
.p-todo { color: #fcd34d; font-weight: 600; }

/* --- voet --- */

.public-footer {
    margin-top: 40px; padding: 26px clamp(16px, 4vw, 32px) 40px;
    border-top: 1px solid var(--p-line);
    width: min(1120px, 100%); margin-inline: auto;
    display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
    font-size: .85rem; color: #71809f;
}

.public-footer a { color: #a9b4d4; text-decoration: none; border-bottom: 1px solid transparent; }
.public-footer a:hover { border-color: #a9b4d4; }
.public-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media@media (prefers-reduced-motion: reduce) {
    .p-sign path, .p-dot { animation: none !important; }
    .p-sign path { stroke-dashoffset: 0; }
}
