/* ---------------------------------------------------------
   AI voor cardiologen – v3 Premium Dark Accent
--------------------------------------------------------- */

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

html { font-size: 18px; }

:root {
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-light: rgba(13, 148, 136, 0.12);
  --sidebar-bg: #0f172a;
  --sidebar-text: #e2e8f0;
  --sidebar-active: #0d9488;
  --card-bg: #ffffff;
  --page-bg: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.3);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --radius-lg: 20px;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.75;
}

body.marketing { background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); }

[data-ms-content] { display: none; }
body.preview-mode [data-ms-content] { display: block !important; }
body.preview-mode [data-ms-content!members] { display: none !important; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.topbar-inner {
  width: 1100px; max-width: 94%; margin: 0 auto;
  padding: 12px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand {
  font-weight: 700; color: var(--sidebar-bg); text-decoration: none;
  letter-spacing: -0.03em; font-size: 20px;
}

.topbar-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }

.topbar-link {
  color: var(--text); text-decoration: none; padding: 8px 14px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.topbar-link:hover { background: var(--accent-light); color: var(--accent-hover); }

.topbar-link-cta {
  background: var(--accent); color: #fff;
}
.topbar-link-cta:hover { background: var(--accent-hover); }

.marketing-main { padding: 28px 0 60px; }

.landing-container { width: 1100px; max-width: 94%; margin: 0 auto; }

.landing-hero { padding: 32px 0 16px; }

.landing-hero-inner {
  width: 1100px; max-width: 94%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
}

.landing-hero-text h1 {
  font-size: 42px; line-height: 1.12; letter-spacing: -0.04em; margin-bottom: 16px;
  color: var(--sidebar-bg);
}

.landing-lead { font-size: 19px; line-height: 1.65; margin-bottom: 20px; color: var(--text-muted); }

.landing-points { margin: 12px 0 20px 1.5rem; }
.landing-points li { margin-bottom: 10px; color: var(--text); }

.landing-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.landing-cta .btn-primary { margin-top: 0; }

.landing-note { margin-top: 16px; margin-bottom: 0; color: var(--text-muted); font-size: 15px; }

.landing-section { padding: 36px 0; }

.landing-section h2 {
  font-size: 28px; margin-bottom: 20px; letter-spacing: -0.03em;
  color: var(--sidebar-bg);
}

.landing-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.landing-card {
  background: var(--card-bg); border-radius: var(--radius-lg); padding: 22px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.landing-card:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}
.landing-card h3 { font-size: 19px; margin-bottom: 8px; color: var(--sidebar-bg); }
.landing-card p { margin-bottom: 0; color: var(--text-muted); font-size: 15px; }

.access-gate { padding: 50px 0; }
.access-gate .landing-container { max-width: 480px; margin-left: auto; margin-right: auto; }

.access-gate-card {
  background: var(--card-bg); border-radius: var(--radius-lg); padding: 36px 32px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--border); text-align: center;
}
.access-gate-card h2 { margin: 0 0 14px 0; text-align: center; color: var(--sidebar-bg); }
.access-gate-card p { margin: 0 auto 24px auto; max-width: 40ch; text-align: center; color: var(--text-muted); }
.access-gate-card .landing-cta { justify-content: center; margin-top: 10px; margin-bottom: 0; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.form-field { display: block; margin-top: 14px; }
.form-field span { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.form-input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); font-size: 16px; background: var(--card-bg); outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.form-textarea { resize: vertical; min-height: 140px; }

.price-card {
  background: var(--card-bg); border-radius: var(--radius-lg); padding: 24px 28px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.price-card:last-of-type { margin-bottom: 0; }
.price-intro { border-color: rgba(13, 148, 136, 0.4); background: linear-gradient(to bottom, var(--accent-light), var(--card-bg)); }
.price-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 8px; margin-bottom: 12px; }
.price-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.price-sub { margin: 0; color: var(--text-muted); }
.price-amount { font-size: 36px; font-weight: 800; color: var(--sidebar-bg); letter-spacing: -0.04em; }
.price-list { margin: 12px 0 18px 1.25rem; }
.price-list li { margin-bottom: 8px; }
.price-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.price-actions .btn-primary, .price-actions .btn-secondary { flex: 1 1 260px; margin-top: 0; text-align: center; }
.price-note { margin: 14px 0 0; color: var(--text-muted); font-size: 14px; }

.faq {
  background: var(--card-bg); border-radius: var(--radius); padding: 16px 18px;
  border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--sidebar-bg); }

.site-footer {
  padding: 28px 0 44px; border-top: 1px solid var(--border);
  background: #f8fafc;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--accent-hover); }
.footer-copy { color: var(--text-muted); font-size: 14px; }

p { margin-bottom: 20px; }

/* Sidebar – dark */
.sidebar {
  width: 280px; background: var(--sidebar-bg); color: var(--sidebar-text);
  padding: 28px 20px 32px; height: 100vh; position: fixed; top: 0; left: 0;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.site-title {
  text-align: center; font-weight: 700; font-size: 19px; margin-bottom: 26px;
  letter-spacing: -0.03em; color: #fff;
}
.sidebar-hub {
  text-align: center; margin: -14px 0 20px; font-size: 13px; line-height: 1.4;
}
.sidebar-hub a {
  color: #99f6e4; text-decoration: none; border-bottom: 1px solid rgba(153, 246, 228, 0.35);
}
.sidebar-hub a:hover { color: #ccfbf1; border-bottom-color: #ccfbf1; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.memberbar {
  margin: 8px 0 18px; padding: 12px 14px; border-radius: var(--radius);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
}
.memberbar-line { font-size: 13px; color: rgba(226, 232, 240, 0.9); margin-bottom: 8px; line-height: 1.4; }
.memberbar-email { font-weight: 600; word-break: break-word; }
.memberbar-link {
  display: inline-block; margin-right: 8px; margin-bottom: 6px; font-size: 13px;
  color: #99f6e4; text-decoration: none; padding: 6px 10px; border-radius: 8px;
  border: 1px solid rgba(13, 148, 136, 0.4);
}
.memberbar-link:hover { background: rgba(13, 148, 136, 0.2); }
.nav-link {
  font-size: 14px; color: rgba(226, 232, 240, 0.85); text-decoration: none;
  padding: 10px 14px; border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-link-active { background: var(--sidebar-active); color: #fff; font-weight: 600; }

.main-content { margin-left: 280px; padding: 36px 0 44px; display: flex; justify-content: center; }
.content-wrap { width: 880px; max-width: 94%; }

.hero {
  background: var(--card-bg); padding: 28px 28px 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  margin-bottom: 36px;
}
.hero-text { flex: 1; }
.hero-text h2 { font-size: 26px; margin-bottom: 12px; letter-spacing: -0.03em; color: var(--sidebar-bg); }
.hero-lead { font-size: 17px; line-height: 1.7; margin-bottom: 14px; color: var(--text-muted); }
.hero-note { margin-top: 12px; margin-bottom: 0; font-size: 15px; color: var(--text-muted); }
.hero-list { margin: 10px 0 18px 20px; }
.hero-list li { margin-bottom: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.hero-actions .btn-primary { margin-top: 0; }

.intro-block {
  background: var(--card-bg); padding: 26px 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.intro-block h3 { font-size: 21px; margin-bottom: 12px; color: var(--sidebar-bg); }
.intro-list { margin: 14px 0 20px 1.25rem; }
.intro-list li { margin-bottom: 8px; }

.prompt-box {
  background: #f0fdfa; border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 0 12px 12px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px; white-space: pre-wrap; margin: 14px 0;
}

.live-opdracht {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 1px solid rgba(13, 148, 136, 0.35); border-radius: var(--radius-lg);
  padding: 20px 22px; margin: 24px 0;
}
.live-opdracht h4 { margin-bottom: 10px; font-size: 17px; color: var(--sidebar-bg); }
.live-opdracht .live-tip {
  font-size: 14px; color: var(--accent-hover); margin-bottom: 12px; padding: 10px 12px;
  background: rgba(255,255,255,0.7); border-radius: 10px;
}
.live-opdracht .prompt-box { margin: 12px 0 16px; }
.live-opdracht-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.btn-copy {
  font-size: 14px; padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--accent); background: #fff; color: var(--accent-hover); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-copy:hover { background: var(--accent-light); }
.btn-copy.copied { background: #d1fae5; border-color: #059669; color: #047857; }
.difficulty { display: inline-block; font-size: 11px; padding: 4px 10px; border-radius: 8px; margin-left: 8px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.difficulty.makkelijk { background: #d1fae5; color: #065f46; }
.difficulty.moeilijk { background: #fef3c7; color: #92400e; }
.difficulty.medium { background: #e0e7ff; color: #3730a3; }

.mc-block {
  background: #fffbeb; border: 1px solid #fcd34d; border-radius: var(--radius);
  padding: 20px 22px; margin: 24px 0;
}
.mc-block h4 { margin-bottom: 12px; font-size: 16px; color: #92400e; }
.mc-vraag { font-weight: 600; margin-bottom: 12px; }
.mc-opties { list-style: none; margin: 0 0 12px 0; padding: 0; }
.mc-opties li { padding: 10px 14px; margin-bottom: 8px; background: #fff; border-radius: 10px; border: 1px solid var(--border); }
.mc-antwoord { margin-top: 12px; padding: 12px 14px; background: #ecfdf5; border-radius: 10px; border-left: 4px solid #10b981; font-size: 14px; }

/* Zelfde pedagogische blokken als beginnerscursus (stafsecretariaat) */
.try-this-box {
  margin: 22px 0;
  padding: 18px 20px 20px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 14px;
  border-left: 4px solid #2563eb;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}
.try-this-box h4 { margin: 0 0 10px; font-size: 17px; color: #1e3a5f; line-height: 1.3; }
.try-this-box p { margin-bottom: 12px; color: #334155; font-size: 15px; line-height: 1.65; }
.try-this-box p:last-child { margin-bottom: 0; }
.try-this-prompt {
  margin-top: 10px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #1e293b;
}
.mini-template {
  margin: 16px 0 22px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  border-left: 4px solid #0d9488;
}
.mini-template .label { font-weight: 650; font-size: 15px; color: #0f172a; margin-bottom: 8px; }
.mini-template .text {
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #334155;
}
.free-paid-mark { font-weight: 650; color: #0f766e; }
.free-paid-hint { font-size: 0.92rem; color: #475569; margin-top: 10px !important; }

.figuur { margin: 20px 0; text-align: center; }
.figuur img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.figuur-caption { font-size: 13px; color: var(--text-muted); margin-top: 8px; font-style: italic; }

.module-card {
  background: var(--card-bg); padding: 22px 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; gap: 20px; margin-bottom: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.module-card:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}
.module-card h3, .module-card h4 { font-size: 18px; margin-bottom: 8px; color: var(--sidebar-bg); }
.modules-overview h3 { font-size: 24px; margin-bottom: 20px; color: var(--sidebar-bg); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; padding: 10px 20px; font-size: 15px; font-weight: 600;
  border-radius: var(--radius); text-decoration: none; border: none; margin-top: 8px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-light); color: var(--accent-hover); padding: 10px 20px; font-size: 15px; font-weight: 500;
  border-radius: var(--radius); text-decoration: none; border: 1px solid rgba(13, 148, 136, 0.3); margin-top: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-secondary:hover { background: rgba(13, 148, 136, 0.18); transform: translateY(-1px); }
.btn-lg { padding: 12px 24px; font-size: 16px; border-radius: var(--radius); }

.btn-primary:focus-visible, .btn-secondary:focus-visible, .nav-link:focus-visible,
.topbar-link:focus-visible, .brand:focus-visible, .footer-links a:focus-visible, .faq summary:focus-visible {
  outline: 3px solid #fbbf24; outline-offset: 3px;
}

.page-footer { text-align: center; margin-top: 36px; padding-top: 20px; font-size: 14px; color: var(--text-muted); border-top: 1px solid var(--border); }
.module-next { margin-top: 28px; text-align: right; }

.course-governance-note {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid #d97706;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
}
.course-governance-note h3 { margin-bottom: 10px; color: #92400e; }

.simple-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 8px;
  font-size: 0.95rem;
}
.simple-table th,
.simple-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.simple-table thead th { background: #f8fafc; font-weight: 600; }

.module-merge-banner {
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 28px 0 8px;
}
.module-merge-banner h3 { color: var(--accent-hover); margin-bottom: 8px; }

@media (max-width: 980px) {
  html { font-size: 17px; }
  .landing-hero-inner { grid-template-columns: 1fr; }
  .landing-hero-text h1 { font-size: 32px; }
  .landing-grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .sidebar { position: relative; width: 100%; height: auto; padding: 18px 16px; }
  .site-title { margin-bottom: 14px; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .nav-link { padding: 8px 12px; font-size: 14px; }
  .main-content { margin-left: 0; padding: 22px 0 36px; }
  .hero { flex-direction: column; align-items: stretch; }
  .module-card { flex-direction: column; }
}
@media (max-width: 520px) {
  .landing-hero-text h1 { font-size: 26px; }
  .hero-text h2 { font-size: 22px; }
}
