/* Nexorah Academy — Design System */

:root {
    --c-bg: #fafbfc;
    --c-bg-alt: #f0f4f8;
    --c-card: #ffffff;
    --c-text: #1a2233;
    --c-text-muted: #5a6378;
    --c-border: #e3e7ee;

    --c-brand: #2a4d8a;
    --c-brand-dark: #1e3a6f;
    --c-brand-light: #e8eef9;

    --c-pro: #5a3a8a;
    --c-pro-dark: #43286a;
    --c-pro-light: #efe9fa;

    --c-bundel: #1a7f4f;
    --c-bundel-light: #e0f3ea;

    --c-warn: #c44a2a;
    --c-warn-bg: #fbe9e3;

    --c-success: #1a7f37;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10);

    --radius: 8px;
    --radius-lg: 14px;

    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', 'Consolas', 'Monaco', monospace;

    --max-width: 1100px;
}

/* ---- Base ---- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--c-brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

/* ---- Layout ---- */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

@media (max-width: 720px) {
    section {
        padding: 2.5rem 0;
    }
}

/* ---- Header & nav ---- */

.site-header {
    background: var(--c-card);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--c-brand);
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--c-text-muted);
    margin-left: 0.4rem;
    font-weight: normal;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--c-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--c-brand);
    text-decoration: none;
}

@media (max-width: 720px) {
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
    .nav-links li:not(.nav-cta) {
        display: none;
    }
}

/* ---- Buttons ---- */

.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
    line-height: 1.2;
    font-family: inherit;
}

.btn-primary {
    background: var(--c-brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--c-brand-dark);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-pro {
    background: var(--c-pro);
    color: #fff;
}

.btn-pro:hover {
    background: var(--c-pro-dark);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-bundel {
    background: var(--c-bundel);
    color: #fff;
}

.btn-bundel:hover {
    background: #126b3f;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: #fff;
    color: var(--c-brand);
    border: 1.5px solid var(--c-brand);
}

.btn-outline:hover {
    background: var(--c-brand-light);
    text-decoration: none;
}

.btn-large {
    padding: 1.1rem 2.2rem;
    font-size: 1.1rem;
}

/* ---- Typography ---- */

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--c-text);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    font-weight: 700;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--c-text-muted);
    line-height: 1.5;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: var(--c-brand);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.hero {
    background: linear-gradient(135deg, var(--c-bg) 0%, var(--c-brand-light) 100%);
    padding: 5rem 0 4rem 0;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .lead {
    max-width: 640px;
    margin: 0 auto 2.5rem auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Cards & grids ---- */

.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    color: var(--c-brand);
    margin-bottom: 0.5rem;
}

.card-pro h3 {
    color: var(--c-pro);
}

.price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--c-text);
    margin: 0.5rem 0;
}

.price-old {
    color: var(--c-text-muted);
    text-decoration: line-through;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    font-weight: 400;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    padding-left: 1.7rem;
    position: relative;
    margin-bottom: 0.6rem;
    color: var(--c-text);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--c-success);
    font-weight: 700;
}

.feature-list-no li::before {
    content: '×';
    color: var(--c-warn);
    font-size: 1.1rem;
}

/* ---- Sections ---- */

.section-light {
    background: var(--c-bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .eyebrow {
    margin-bottom: 0.5rem;
}

.section-header p {
    max-width: 640px;
    margin: 1rem auto 0 auto;
    color: var(--c-text-muted);
}

/* ---- Tables ---- */

.compare {
    width: 100%;
    border-collapse: collapse;
    background: var(--c-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.compare th, .compare td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}

.compare th {
    background: var(--c-bg-alt);
    font-weight: 600;
    color: var(--c-text);
}

.compare tr:last-child td {
    border-bottom: none;
}

@media (max-width: 720px) {
    .compare {
        font-size: 0.85rem;
    }
    .compare th, .compare td {
        padding: 0.7rem 0.5rem;
    }
}

/* ---- Veiligheid blok ---- */

.warning-block {
    background: var(--c-warn-bg);
    border-left: 4px solid var(--c-warn);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.warning-block h3 {
    color: var(--c-warn);
    margin-bottom: 0.5rem;
}

/* ---- Forms ---- */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--c-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--c-card);
    color: var(--c-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px var(--c-brand-light);
}

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

.site-footer {
    background: var(--c-text);
    color: #d1d6e0;
    padding: 3rem 0 1.5rem 0;
    margin-top: 4rem;
}

.site-footer a {
    color: #d1d6e0;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 720px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.footer-grid h4 {
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #8a93a5;
}

.footer-disclaimer {
    margin-top: 1rem;
    font-style: italic;
    line-height: 1.5;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-pro {
    background: linear-gradient(135deg, var(--c-bg) 0%, var(--c-pro-light) 100%);
}

.hero-bundel {
    background: linear-gradient(135deg, var(--c-bg) 0%, var(--c-bundel-light) 100%);
}

/* ---- Module list ---- */

.module-list {
    list-style: none;
    counter-reset: mod;
}

.module-list li {
    counter-increment: mod;
    padding: 1.2rem 1.2rem 1.2rem 4rem;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    position: relative;
}

.module-list li::before {
    content: counter(mod);
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    width: 2rem;
    height: 2rem;
    background: var(--c-brand);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 2rem;
    font-weight: 700;
}

.module-list-pro li::before {
    background: var(--c-pro);
}

.module-list strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--c-text);
}

.module-list .module-time {
    font-size: 0.85rem;
    color: var(--c-text-muted);
    font-weight: 400;
}

/* ---- Helpdesk widget ---- */

.hd-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.hd-button {
    background: var(--c-brand);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.9rem 1.4rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    font-size: 0.95rem;
    font-family: inherit;
}

.hd-button:hover {
    background: var(--c-brand-dark);
}

.hd-panel {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    width: 380px;
    max-width: calc(100vw - 3rem);
    height: 540px;
    max-height: calc(100vh - 7rem);
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 1001;
}

.hd-panel.active {
    display: flex;
}

.hd-header {
    padding: 1rem 1.2rem;
    background: var(--c-brand);
    color: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hd-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.hd-header .hd-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.hd-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.hd-msg {
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.hd-msg-bot {
    background: var(--c-brand-light);
    color: var(--c-text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.hd-msg-user {
    background: var(--c-brand);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.hd-input {
    border-top: 1px solid var(--c-border);
    padding: 0.8rem;
    display: flex;
    gap: 0.5rem;
}

.hd-input input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--c-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
}

.hd-input input:focus {
    outline: none;
    border-color: var(--c-brand);
}

.hd-disclaimer {
    padding: 0.5rem 1rem;
    background: var(--c-bg-alt);
    font-size: 0.75rem;
    color: var(--c-text-muted);
    text-align: center;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
