/* =============================================================
   Schoolbaas.nl — Custom CSS
   Gebruikt naast Tailwind CDN (utility-classes worden door
   Tailwind gegenereerd; hier staan alleen de extra stijlen).
   ============================================================= */

/* --- Base ---------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
body {
  background-color: #FAF7F2;
  color: #0B1120;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection {
  background-color: #DDD6FE;
  color: #4C1D95;
}
h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: #0B1120;
}
* { box-sizing: border-box; }

/* --- Layout helpers ------------------------------------------ */
.container-px {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px) {
  .container-px { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  .container-px { padding-left: 2.5rem; padding-right: 2.5rem; }
}

.container-tight {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px) {
  .container-tight { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  .container-tight { padding-left: 2.5rem; padding-right: 2.5rem; }
}

.container-wide {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px) {
  .container-wide { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  .container-wide { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* --- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s ease-out;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  line-height: 1;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.3);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s ease-out;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  background-color: #0B1120;
  color: #fff;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1;
}
.btn-primary:hover {
  background-color: #6D28D9;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.08), 0 24px 60px -12px rgba(124, 58, 237, 0.32);
  color: #fff;
  text-decoration: none;
}
.btn-primary:active { transform: translateY(0); }

.btn-coral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s ease-out;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  color: #fff;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  line-height: 1;
  background: linear-gradient(to bottom right, #F43F5E, #E11D48);
  box-shadow: 0 10px 30px -10px rgba(244, 63, 94, 0.6);
}
.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(244, 63, 94, 0.7);
  color: #fff;
  text-decoration: none;
}
.btn-coral:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s ease-out;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  color: #0B1120;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1;
  border: 1px solid rgba(11, 17, 32, 0.08);
}
.btn-ghost:hover {
  background: #fff;
  border-color: rgba(11, 17, 32, 0.15);
  color: #0B1120;
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s ease-out;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1;
  color: #0B1120;
  border: 1px solid rgba(11, 17, 32, 0.15);
  background: transparent;
}
.btn-outline:hover {
  border-color: rgba(11, 17, 32, 0.3);
  background: rgba(11, 17, 32, 0.05);
  color: #0B1120;
  text-decoration: none;
}

/* --- Chip ---------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(11, 17, 32, 0.08);
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1E293B;
  box-shadow: 0 6px 20px -8px rgba(15, 23, 42, 0.18);
}

/* --- Eyebrow ------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6D28D9;
}

/* --- Card ---------------------------------------------------- */
.card {
  background-color: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04), 0 24px 48px -16px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(11, 17, 32, 0.05);
}

/* --- Gradient text ------------------------------------------- */
.gradient-text {
  background: linear-gradient(to bottom right, #6D28D9, #8B5CF6, #F43F5E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Soft divider -------------------------------------------- */
.soft-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, rgba(11, 17, 32, 0.1), transparent);
}

/* --- Grain effect -------------------------------------------- */
.grain { position: relative; }
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.45'/></svg>");
  opacity: 0.04;
  mix-blend-mode: multiply;
}

/* --- No scrollbar -------------------------------------------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Letter spacing ------------------------------------------ */
.tracking-tightest { letter-spacing: -0.04em; }

/* --- Animations ---------------------------------------------- */
@keyframes float-up-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Reveal (scroll-triggered) ------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* --- Floating photo card ------------------------------------- */
.photo-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04), 0 24px 48px -16px rgba(15, 23, 42, 0.12);
  outline: 1px solid rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  display: inline-block;
}
.photo-card-xs  { width: 5rem;  height: 6rem;  border-radius: 1rem; }
.photo-card-sm  { width: 7rem;  height: 8rem;  border-radius: 1rem; }
.photo-card-md  { width: 9rem;  height: 11rem; border-radius: 1.5rem; }
.photo-card-lg  { width: 12rem; height: 14rem; border-radius: 1.5rem; }

.photo-card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.photo-card-sheen {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  pointer-events: none;
}
.photo-card-frame {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}
.photo-card-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.9;
}
.photo-card-locked-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  background: rgba(11,17,32,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-card-lock-icon {
  background: rgba(255,255,255,0.9);
  border-radius: 9999px;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.photo-card-float {
  animation: float-up-down 6s ease-in-out infinite;
}
.photo-card-float-slow {
  animation: float-up-down 8s ease-in-out infinite 0.6s;
}

/* --- Nav ----------------------------------------------------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: 1.25rem;
  transition: padding-top 0.3s;
}
#site-header.scrolled { padding-top: 0.75rem; }

#nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: 9999px;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s;
}
#site-header.scrolled #nav-inner {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px);
  border-color: rgba(11, 17, 32, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -8px rgba(15, 23, 42, 0.08);
}

#mobile-menu {
  display: none;
  margin-top: 0.5rem;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
#mobile-menu.open { display: block; }

/* --- FAQ accordion ------------------------------------------- */
.faq-item { border-bottom: 1px solid rgba(11, 17, 32, 0.08); }
.faq-item:last-child { border-bottom: none; }

.faq-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: #0B1120;
}

.faq-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11, 17, 32, 0.15);
  transition: all 0.2s;
  background: #fff;
  color: #0B1120;
}
.faq-icon.open {
  background: #0B1120;
  color: #fff;
  border-color: #0B1120;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-answer.open { max-height: 600px; }

/* --- Sticky CTA --------------------------------------------- */
#sticky-cta {
  position: fixed;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 40;
  transform: translateY(6rem);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
#sticky-cta.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
@media (min-width: 768px) { #sticky-cta { display: none; } }

/* --- Progress bar in mockup ---------------------------------- */
.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #8B5CF6, #F43F5E);
  border-radius: 9999px;
  width: 60%;
}

/* --- Legal page styles --------------------------------------- */
.prose-legal h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #0B1120;
  scroll-margin-top: 7rem;
}
@media (min-width: 640px) {
  .prose-legal h2 { font-size: 1.875rem; }
}
.prose-legal h2:first-child { margin-top: 0; }

.prose-legal h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #0B1120;
  scroll-margin-top: 7rem;
}
@media (min-width: 640px) {
  .prose-legal h3 { font-size: 1.25rem; }
}

.prose-legal p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 1rem;
}
.prose-legal ul,
.prose-legal ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.prose-legal ul { list-style-type: disc; }
.prose-legal ol { list-style-type: decimal; }
.prose-legal li { margin-bottom: 0.5rem; }

.prose-legal strong { color: #0B1120; font-weight: 600; }

.prose-legal a {
  color: #6D28D9;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose-legal a:hover { color: #5B21B6; }

.prose-legal hr {
  margin: 2.5rem 0;
  border: none;
  border-top: 1px solid rgba(11, 17, 32, 0.08);
}
.prose-legal code {
  background: #F5F3FF;
  color: #6D28D9;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: monospace;
}
.prose-legal blockquote {
  border-left: 4px solid #8B5CF6;
  background: rgba(245, 243, 255, 0.6);
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 0.75rem 0.75rem 0;
  color: #475569;
}

/* TOC sidebar links */
.toc-link {
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  color: #475569;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
  border-left: 2px solid transparent;
}
.toc-link:hover {
  color: #0B1120;
  background-color: rgba(11, 17, 32, 0.04);
}
.toc-link.active {
  color: #6D28D9;
  font-weight: 600;
  border-left-color: #6D28D9;
  background-color: rgba(109, 40, 217, 0.06);
}

.legal-note {
  border-radius: 1rem;
  border: 1px solid #FCD34D;
  background: rgba(253, 230, 138, 0.3);
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #475569;
}
.legal-note strong { color: #F59E0B; }

/* --- Shadow-inset-card utility ------------------------------- */
.shadow-inset-card {
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
}

/* --- text-balance -------------------------------------------- */
.text-balance { text-wrap: balance; }
