/* ==========================================================================
   SchoolWise marketing website
   Warm, speels en leesbaar — zonder externe fonts of libraries.
   ========================================================================== */

:root {
    --bg: #FDF9F1;
    --surface: #FFFFFF;
    --ink: #27304F;
    --muted: #5D6582;
    --primary: #5B5BD6;
    --primary-deep: #4544BB;
    --primary-soft: #EEEEFC;
    --sun: #FFB703;
    --sun-soft: #FFF1CE;
    --teal: #2EC4B6;
    --coral: #FF6B6B;
    --green: #7CB518;
    --line: #ECE3D2;
    --radius: 22px;
    --shadow-soft: 0 10px 30px rgba(39, 48, 79, 0.08);
    --shadow-pop: 0 18px 50px rgba(39, 48, 79, 0.16);
    --font-display: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p {
    margin: 0 0 1em;
}

a {
    color: var(--primary);
}

img, svg {
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 760px;
}

.lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 56ch;
}

.eyebrow {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
    box-shadow: var(--shadow-soft);
}

/* --------------------------------------------------------------------------
   Knoppen
   -------------------------------------------------------------------------- */

.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(91, 91, 214, 0.35);
}

.btn-primary:hover {
    background: var(--primary-deep);
}

.btn-ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sun {
    background: var(--sun);
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(255, 183, 3, 0.35);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Header & navigatie
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 249, 241, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.logo-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.logo-word {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.logo-word em {
    font-style: normal;
    color: var(--primary);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-nav a:not(.btn) {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.97rem;
}

.site-nav a:not(.btn):hover,
.site-nav a.is-active {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    border-radius: 3px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 88px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    background: var(--primary-soft);
    top: -120px;
    right: -80px;
}

.hero::after {
    width: 360px;
    height: 360px;
    background: var(--sun-soft);
    bottom: -140px;
    left: -100px;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero-copy h1 {
    margin-bottom: 0.4em;
}

.squiggle {
    position: relative;
    white-space: nowrap;
}

.squiggle::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.08em;
    height: 0.28em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 12 Q 12.5 2, 25 12 T 50 12 T 75 12 T 100 12' fill='none' stroke='%23FFB703' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0 22px;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Demo-kaart (live overzicht)
   -------------------------------------------------------------------------- */

.demo-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow-pop);
    padding: 22px;
}

.demo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.demo-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
}

.demo-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFECEC;
    color: #D64545;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 999px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D64545;
    animation: pulse 1.4s ease-in-out infinite;
}

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

.demo-pin {
    background: var(--primary-soft);
    color: var(--primary-deep);
    font-family: var(--font-display);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.demo-corners {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-corner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    transition: opacity 0.4s ease, box-shadow 0.4s ease;
}

.demo-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    background: var(--tint, var(--primary-soft));
    border-radius: 13px;
}

.demo-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.demo-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
}

.demo-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.is-full .demo-count {
    color: var(--coral);
}

.demo-meter {
    height: 7px;
    background: #EFE8DA;
    border-radius: 999px;
    margin-top: 6px;
    overflow: hidden;
}

.demo-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--primary));
    border-radius: 999px;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-chips {
    display: flex;
    gap: 4px;
    min-width: 118px;
    justify-content: flex-end;
}

.demo-chip {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    font-size: 0.95rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.demo-chip.is-leaving {
    transform: scale(0);
    opacity: 0;
}

.demo-chip.is-entering {
    animation: chip-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chip-pop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.demo-corner.is-locked {
    opacity: 0.6;
}

.demo-corner.is-locked .demo-chips {
    display: none;
}

.demo-lock {
    display: none;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.demo-corner.is-locked .demo-lock {
    display: block;
}

.demo-corner.just-unlocked {
    animation: unlock-glow 1.5s ease;
}

@keyframes unlock-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.7); }
    60% { box-shadow: 0 0 0 14px rgba(255, 183, 3, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0); }
}

.demo-foot {
    margin-top: 14px;
    text-align: center;
    font-size: 0.83rem;
    color: var(--muted);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Secties
   -------------------------------------------------------------------------- */

.section {
    padding: 76px 0;
}

.section-tint {
    background: linear-gradient(180deg, rgba(238, 238, 252, 0.55), rgba(253, 249, 241, 0));
}

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 46px;
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* Stappen */

.steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.step-nr {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--c, var(--primary));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.step-card p {
    color: var(--muted);
    font-size: 0.96rem;
    margin: 0;
}

/* Functies */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-pop);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
    background: var(--tint, var(--primary-soft));
    border-radius: 16px;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.96rem;
    margin: 0;
}

/* Categorieën */

.category-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.category-strip li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.98rem;
    box-shadow: var(--shadow-soft);
}

/* Symbolen */

.symbol-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 720px;
    margin-inline: auto;
}

.symbol-chip {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease;
}

.symbol-chip:hover {
    transform: scale(1.18) rotate(-6deg);
}

.symbol-grid .symbol-chip:nth-child(4n + 1) { background: var(--primary-soft); }
.symbol-grid .symbol-chip:nth-child(4n + 2) { background: var(--sun-soft); }
.symbol-grid .symbol-chip:nth-child(4n + 3) { background: #FFE3E3; }
.symbol-grid .symbol-chip:nth-child(4n + 4) { background: #D9F4F1; }

/* --------------------------------------------------------------------------
   Prijzen
   -------------------------------------------------------------------------- */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.plan-card.is-highlight {
    border-color: var(--primary);
    box-shadow: var(--shadow-pop);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sun);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.78rem;
    padding: 5px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-price {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.3rem;
    margin: 0;
    letter-spacing: -0.02em;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
}

.plan-audience {
    color: var(--muted);
    font-size: 0.94rem;
    min-height: 3em;
}

.plan-features {
    list-style: none;
    margin: 0 0 18px;
    padding: 16px 0 0;
    border-top: 1px dashed var(--line);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.plan-card .btn {
    margin-top: auto;
}

.plan-more {
    text-align: center;
    margin-top: 30px;
    font-weight: 600;
}

.plan-note {
    text-align: center;
    color: var(--muted);
    margin-top: 30px;
}

/* --------------------------------------------------------------------------
   CTA-band, pagina-hero, FAQ
   -------------------------------------------------------------------------- */

.cta-band {
    background: var(--ink);
    color: #fff;
    border-radius: 30px;
    padding: 60px 32px;
    text-align: center;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 26px;
}

.page-hero {
    padding: 66px 0 10px;
    text-align: center;
}

.page-hero .lead {
    margin-inline: auto;
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: var(--shadow-soft);
}

.faq summary {
    font-family: var(--font-display);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 32px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq details p {
    margin: 12px 0 0;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
}

.contact-form-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow-soft);
}

.contact-form label {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: var(--bg);
    border: 2px solid var(--line);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 18px;
    transition: border-color 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form ul {
    list-style: none;
    margin: -12px 0 14px;
    padding: 0;
    color: #D64545;
    font-size: 0.88rem;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-soft);
}

.contact-card h2 {
    font-size: 1.1rem;
}

.contact-card p {
    color: var(--muted);
    margin: 0;
    font-size: 0.96rem;
}

.contact-card-highlight {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.contact-card-highlight p {
    margin-bottom: 16px;
}

.flash {
    border-radius: 16px;
    padding: 16px 22px;
    margin-top: 24px;
    font-weight: 600;
}

.flash-success {
    background: #E9F5D3;
    border: 1px solid #C4E28A;
    color: #3E5C0B;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    margin-top: 40px;
    padding: 56px 0 28px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
}

.footer-brand p {
    margin-top: 14px;
    font-size: 0.95rem;
    max-width: 34ch;
}

.logo-light {
    color: #fff;
}

.logo-light .logo-word em {
    color: #A3A2FF;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h3 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 44px;
    padding-top: 22px;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Reveal-animaties (alleen actief zodra JS geladen is)
   -------------------------------------------------------------------------- */

body.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

body.reveal-ready [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   Responsief
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-demo {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    .steps,
    .feature-grid,
    .plan-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 18px 24px 24px;
        gap: 16px;
        box-shadow: var(--shadow-pop);
    }

    .site-nav .btn {
        text-align: center;
    }

    .nav-open .site-nav {
        display: flex;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 56px 0;
    }

    .hero {
        padding: 48px 0 64px;
    }

    .steps,
    .feature-grid,
    .plan-grid,
    .contact-layout,
    .form-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .plan-card.is-highlight {
        order: -1;
    }

    .demo-chips {
        min-width: 0;
    }

    .contact-form-wrap {
        padding: 24px;
    }

    .cta-band {
        padding: 44px 24px;
    }
}
