/* =====================================================================
   TheorieBuddie homepage — extra laag bovenop styles.css (ontwerp "Nachtrit")
   Alleen wat de homepage extra heeft: nachtweg-achtergrond, kinetische titel,
   examenkaart, marquee, kaarten met renders, stappen, cijfers, galerij,
   garantiezegel en de slotoproep. Alle klassen hebben het voorvoegsel hm-
   zodat ze de gedeelde stylesheet niet raken. 24-09-2026.
   ===================================================================== */
:root{ --hm-ease:cubic-bezier(.2,.7,.2,1); }

/* ---------- hero ---------- */
.hero.hm-hero{ position:relative; min-height:100svh; display:flex; align-items:center; padding:118px 0 72px; overflow:hidden; isolation:isolate; perspective:none; }
.hero.hm-hero::before{ display:none; }
#nightroad{ position:absolute; inset:0; width:100%; height:100%; z-index:-2; }
.hm-fade{ position:absolute; inset:0; z-index:-1; pointer-events:none; background:
  radial-gradient(60% 50% at 50% 100%, rgba(244,185,66,.10), transparent 70%),
  linear-gradient(180deg, rgba(7,13,26,.35) 0%, rgba(7,13,26,0) 40%, rgba(7,13,26,.85) 100%); }
.hm-hero .wrap{ display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; position:relative; z-index:1; }
.hm-badge{ display:inline-flex; align-items:center; gap:8px; background:rgba(244,185,66,.08); border:1px solid rgba(244,185,66,.25); color:var(--gold-hi); border-radius:999px; padding:7px 12px; font-size:12.5px; font-weight:600; margin-bottom:22px; }
.hm-badge i{ width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 0 rgba(61,190,122,.6); animation:hm-pulse 2s infinite; }
@keyframes hm-pulse{ 0%{ box-shadow:0 0 0 0 rgba(61,190,122,.6); } 70%{ box-shadow:0 0 0 9px rgba(61,190,122,0); } 100%{ box-shadow:0 0 0 0 rgba(61,190,122,0); } }
.hm-hero h1{ font-size:clamp(40px,6.6vw,74px); line-height:1.04; letter-spacing:-.03em; }
.kin-line{ display:block; overflow:hidden; padding-bottom:.08em; margin-bottom:-.08em; }
.kin-word{ display:inline-block; transform:translateY(110%); opacity:0; animation:hm-kin .9s var(--hm-ease) forwards; }
.kin-word.g{ color:var(--gold); position:relative; }
.kin-word.g::after{ content:""; position:absolute; left:0; right:0; bottom:.06em; height:.12em; background:linear-gradient(90deg,var(--gold),transparent); border-radius:4px; transform:scaleX(0); transform-origin:left; animation:hm-draw .8s var(--hm-ease) 1.1s forwards; opacity:.7; }
@keyframes hm-kin{ to{ transform:translateY(0); opacity:1; } }
@keyframes hm-draw{ to{ transform:scaleX(1); } }
.hm-hero .hero-sub{ font-size:clamp(17px,1.6vw,20px); color:var(--ink-2); margin:22px 0 30px; max-width:560px; }
.hm-hero .hero-cta{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.hm-hero .hero-assure{ margin-top:26px; }

/* examenkaart (met echte 3D-render, op desktop met licht kantelen) */
.hm-device{ position:relative; perspective:1400px; }
.hm-card{ position:relative; background:linear-gradient(180deg,#F8F5EE,#EDE7DA); border-radius:22px; padding:14px; color:#0F1A2E;
  box-shadow:0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08), 0 0 80px -20px rgba(244,185,66,.25);
  transform:rotateY(-8deg) rotateX(4deg); transition:transform .6s var(--hm-ease); animation:hm-float 7s ease-in-out infinite; }
@keyframes hm-float{ 0%,100%{ transform:rotateY(-8deg) rotateX(4deg) translateY(0); } 50%{ transform:rotateY(-8deg) rotateX(4deg) translateY(-10px); } }
.hm-card .top{ display:flex; justify-content:space-between; align-items:center; font:600 12px/1 var(--sans); color:#5C6478; padding:4px 6px 12px; }
.hm-card .top b{ color:#0F1A2E; }
.hm-card .img{ position:relative; border-radius:14px; overflow:hidden; aspect-ratio:16/10; background:#dfe6ee; }
.hm-card .img img{ width:100%; height:100%; object-fit:cover; display:block; }
.hm-card .img iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; opacity:0; transition:opacity .8s; }
.hm-card .img iframe.on{ opacity:1; }
.hm-card .img .live{ position:absolute; left:9px; bottom:9px; z-index:2; font:700 9.5px/1 var(--sans); letter-spacing:.06em; text-transform:uppercase; color:#fff; background:rgba(15,26,46,.72); padding:5px 8px; border-radius:999px; pointer-events:none; opacity:0; transition:opacity .8s; }
.hm-card .img .live.on{ opacity:1; }
.hm-card .q{ font:700 16px/1.35 var(--display); padding:14px 6px 8px; color:#0F1A2E; }
.hm-opts{ display:grid; gap:7px; padding:0 6px 6px; }
.hm-opt{ display:flex; align-items:center; gap:10px; background:#fff; border:1px solid rgba(15,26,46,.08); border-radius:10px; padding:10px 12px; font-size:13.5px; font-weight:500; transition:all .3s; }
.hm-opt i{ width:18px; height:18px; border-radius:50%; border:2px solid rgba(15,26,46,.18); flex:0 0 auto; display:grid; place-items:center; }
.hm-opt.ok{ background:#E9F7EF; border-color:#3DBE7A; color:#1e6b43; }
.hm-opt.ok i{ border-color:#3DBE7A; background:#3DBE7A; }
.hm-opt.ok i::after{ content:""; width:9px; height:5px; border:2px solid #fff; border-top:0; border-right:0; transform:rotate(-45deg) translate(1px,-1px); }
.hm-chip{ position:absolute; background:#fff; color:#0F1A2E; border-radius:14px; padding:10px 14px; font-size:13px; font-weight:600; box-shadow:0 18px 40px -14px rgba(0,0,0,.6); display:flex; align-items:center; gap:10px; }
.hm-chip.a{ right:-18px; top:36px; animation:hm-float 6s ease-in-out infinite reverse; }
.hm-chip.b{ left:-22px; bottom:-16px; animation:hm-float 8s ease-in-out infinite; }
.hm-chip .dot{ width:26px; height:26px; border-radius:8px; display:grid; place-items:center; color:#fff; font-size:13px; }
.hm-chip small{ display:block; font-weight:400; color:#5C6478; font-size:11.5px; }
@media (max-width:960px){
  .hm-hero .wrap{ grid-template-columns:1fr; gap:38px; }
  .hero.hm-hero{ padding-top:100px; min-height:auto; }
  .hm-card{ transform:none; animation:none; }
  .hm-device{ padding:6px 0 0; display:grid; gap:12px; }
  .hm-device .chips{ display:flex; gap:10px; flex-wrap:wrap; }
  .hm-chip{ position:static; animation:none; flex:1 1 auto; }
}

/* ---------- marquee ---------- */
.hm-marquee{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:rgba(255,255,255,.02); overflow:hidden; padding:14px 0; --dur:44s; }
.hm-marquee-track{ display:flex; gap:44px; white-space:nowrap; width:max-content; animation:hm-mq var(--dur) linear infinite; }
.hm-marquee:hover .hm-marquee-track{ animation-play-state:paused; }
.hm-marquee span{ display:inline-flex; align-items:center; gap:12px; font:600 14px/1 var(--sans); color:var(--ink-2); letter-spacing:.02em; }
.hm-marquee b{ font-family:var(--display); color:var(--gold); font-size:18px; }
.hm-marquee em{ width:5px; height:5px; border-radius:50%; background:var(--gold); opacity:.6; font-style:normal; }
@keyframes hm-mq{ to{ transform:translateX(-50%); } }

/* ---------- secties ---------- */
.hm-alt{ background:linear-gradient(180deg,var(--marine),var(--night)); }
.hm-head{ max-width:720px; margin-bottom:46px; }
.hm-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.hm-head.center .eyebrow{ justify-content:center; }
.hm-head h2{ font-size:clamp(30px,4.4vw,50px); line-height:1.08; }
.hm-head .lead{ margin-top:16px; }
.hm-head.center .lead{ margin-left:auto; margin-right:auto; }

/* kaarten met renders */
.hm-grid3{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:900px){ .hm-grid3{ grid-template-columns:1fr; } }
.hm-card2{ background:linear-gradient(180deg,var(--surface-2),var(--surface)); border:1px solid var(--line); border-radius:var(--r-lg); padding:22px; position:relative; overflow:hidden; transition:transform .35s var(--hm-ease), border-color .3s, box-shadow .35s; }
.hm-card2:hover{ transform:translateY(-4px); border-color:rgba(244,185,66,.35); box-shadow:0 30px 60px -30px rgba(0,0,0,.8); }
.hm-card2 .num{ position:absolute; right:18px; top:10px; font:800 64px/1 var(--display); color:rgba(255,255,255,.05); }
.hm-card2 .shot{ border-radius:12px; overflow:hidden; aspect-ratio:16/10; margin-bottom:18px; border:1px solid rgba(255,255,255,.06); }
.hm-card2 .shot img{ width:100%; height:100%; object-fit:cover; transform:scale(1.02); transition:transform .8s var(--hm-ease); }
.hm-card2:hover .shot img{ transform:scale(1.07); }
.hm-card2 h3{ margin-bottom:8px; font-size:21px; line-height:1.2; }
.hm-card2 p{ color:var(--muted); font-size:15px; }
.hm-tag{ display:inline-block; font:600 11.5px/1 var(--sans); letter-spacing:.1em; text-transform:uppercase; color:var(--gold); margin-bottom:10px; }

/* versus */
.hm-versus{ margin-top:22px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.hm-versus > div{ border-radius:var(--r-lg); padding:22px 24px; border:1px solid var(--line); background:rgba(255,255,255,.02); }
.hm-versus .us{ border-color:rgba(244,185,66,.45); background:linear-gradient(180deg,rgba(244,185,66,.10),rgba(244,185,66,.02)); }
.hm-versus h4{ font-family:var(--display); font-size:15px; margin-bottom:12px; color:var(--muted); }
.hm-versus .us h4{ color:var(--ink); }
.hm-versus ul{ display:grid; gap:9px; color:var(--ink-2); font-size:14.5px; }
.hm-versus li{ display:flex; gap:9px; align-items:flex-start; }
.hm-versus li::before{ content:"·"; color:var(--muted); font-weight:800; }
.hm-versus .us li::before{ content:"✓"; color:var(--green); font-weight:800; }
@media (max-width:700px){ .hm-versus{ grid-template-columns:1fr; } }

/* stappen */
.hm-steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; position:relative; }
.hm-steps::before{ content:""; position:absolute; left:8%; right:8%; top:38px; height:1px; background:linear-gradient(90deg,transparent,var(--gold),transparent); opacity:.5; }
.hm-step{ padding:0 22px; text-align:center; position:relative; }
.hm-step .ball{ width:76px; height:76px; border-radius:50%; margin:0 auto 20px; display:grid; place-items:center; background:radial-gradient(circle at 30% 30%,#1c2a48,#0d1730); border:1px solid rgba(244,185,66,.4); box-shadow:0 0 40px -10px rgba(244,185,66,.6); font:800 26px/1 var(--display); color:var(--gold); }
.hm-step h3{ margin-bottom:8px; font-size:21px; }
.hm-step p{ color:var(--muted); font-size:15px; }
@media (max-width:900px){
  .hm-steps{ grid-template-columns:1fr; gap:34px; }
  .hm-steps::before{ display:none; }
  .hm-step{ text-align:left; display:grid; grid-template-columns:64px 1fr; gap:16px; padding:0; }
  .hm-step .ball{ width:56px; height:56px; margin:0; font-size:20px; }
}

/* cijfers */
.hm-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:54px; }
.hm-stat{ background:rgba(255,255,255,.03); border:1px solid var(--line); border-radius:var(--r); padding:22px 18px; text-align:center; }
.hm-stat b{ display:block; font:800 clamp(30px,3.6vw,44px)/1 var(--display); color:var(--gold); font-variant-numeric:tabular-nums; }
.hm-stat span{ display:block; margin-top:8px; color:var(--muted); font-size:13.5px; }
@media (max-width:700px){ .hm-stats{ grid-template-columns:1fr 1fr; } }

/* galerij */
.hm-gal{ display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; padding:6px 24px 22px; margin:0 -24px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.hm-gal::-webkit-scrollbar{ display:none; }
.hm-gal figure{ flex:0 0 min(78vw,420px); scroll-snap-align:start; margin:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; }
.hm-gal img{ aspect-ratio:16/10; object-fit:cover; width:100%; height:auto; }
.hm-gal figcaption{ padding:14px 16px; font-size:14px; color:var(--ink-2); display:flex; justify-content:space-between; gap:10px; }
.hm-gal figcaption small{ color:var(--muted); white-space:nowrap; }
@media (max-width:640px){ .hm-gal{ margin:0 -18px; padding-left:18px; padding-right:18px; } }

/* live 3D-kaarten (pages.dev) */
.hm-live{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:18px; max-width:940px; margin:0 auto; }
.hm-live > div{ background:var(--surface); border-radius:18px; overflow:hidden; border:1px solid var(--line); }
.hm-live .fr{ position:relative; aspect-ratio:16/11; background:#0d1730; }
.hm-live iframe{ width:100%; height:100%; border:0; display:block; }
.hm-live .cap{ padding:13px 16px; font-family:var(--display); font-weight:800; color:var(--ink); font-size:15px; }

/* garantie */
.hm-guar{ display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center; background:linear-gradient(135deg,rgba(244,185,66,.12),rgba(244,185,66,.02) 60%); border:1px solid rgba(244,185,66,.3); border-radius:26px; padding:clamp(28px,5vw,56px); position:relative; overflow:hidden; }
.hm-guar::after{ content:""; position:absolute; right:-120px; top:-120px; width:360px; height:360px; border-radius:50%; background:radial-gradient(circle,rgba(244,185,66,.25),transparent 70%); pointer-events:none; }
.hm-guar h2{ font-size:clamp(28px,3.6vw,42px); line-height:1.1; }
.hm-guar .lead{ margin-top:16px; }
.hm-guar .btn{ margin-top:22px; }
.hm-seal{ width:min(280px,70vw); margin:0 auto; aspect-ratio:1; border-radius:50%; display:grid; place-items:center; text-align:center; background:radial-gradient(circle at 35% 30%,#1a2745,#0b1428); border:2px solid var(--gold); box-shadow:0 0 0 10px rgba(244,185,66,.08), 0 0 80px -20px rgba(244,185,66,.7); font-family:var(--display); padding:26px; animation:hm-glow 6s ease-in-out infinite; }
.hm-seal b{ display:block; font-size:44px; color:var(--gold); line-height:1; }
.hm-seal span{ display:block; font-size:14px; color:var(--ink-2); margin-top:8px; font-weight:600; }
@keyframes hm-glow{ 0%,100%{ box-shadow:0 0 0 10px rgba(244,185,66,.08), 0 0 80px -20px rgba(244,185,66,.7); } 50%{ box-shadow:0 0 0 18px rgba(244,185,66,.04), 0 0 100px -20px rgba(244,185,66,.9); } }
@media (max-width:860px){ .hm-guar{ grid-template-columns:1fr; } }

/* slot */
.hm-final{ text-align:center; padding:clamp(80px,12vw,150px) 0; position:relative; overflow:hidden; }
.hm-final::before{ content:""; position:absolute; inset:0; background:radial-gradient(50% 60% at 50% 100%,rgba(244,185,66,.18),transparent 70%); pointer-events:none; }
.hm-final .wrap{ position:relative; }
.hm-final h2{ font-size:clamp(34px,6vw,64px); margin-bottom:18px; line-height:1.04; }
.hm-final .lead{ margin-left:auto; margin-right:auto; }
.hm-final .hero-cta{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:30px; }
.hm-final .payoff{ margin-top:26px; font-family:var(--display); font-weight:700; color:var(--gold); font-size:15px; letter-spacing:.02em; }

/* pakketten-noot */
.hm-note{ text-align:center; color:var(--muted); font-size:14px; margin-top:26px; }
.hm-note a{ color:var(--gold); text-decoration:underline; text-underline-offset:3px; }

@media (prefers-reduced-motion:reduce){
  .kin-word{ transform:none; opacity:1; animation:none; }
  .kin-word.g::after{ transform:scaleX(1); animation:none; }
  .hm-marquee-track{ animation:none; }
  .hm-card, .hm-chip, .hm-seal, .hm-badge i{ animation:none; }
}

/* pakketten op de homepage: vinkjes zonder svg in de li's */
.plan .inc li{ position:relative; padding-left:26px; }
.plan .inc li::before{ content:""; position:absolute; left:0; top:3px; width:16px; height:16px; border-radius:50%; background:rgba(61,190,122,.15); border:1px solid rgba(61,190,122,.6); background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%233DBE7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-size:12px; background-repeat:no-repeat; background-position:center; }

/* ---------- live 3D-scenes (25-09-2026): echte scènes uit de cursus in plaats van plaatjes ---------- */
.live3d{ position:relative; width:100%; height:100%; overflow:hidden; background:#E9ECEF; }
.hm-card2 .shot .live3d, .hm-live .fr .live3d{ position:absolute; inset:0; }
.hm-card2 .shot{ position:relative; }
.live3d > img{ width:100%; height:100%; object-fit:cover; display:block; }
.live3d iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; opacity:0; transition:opacity .6s; pointer-events:none; background:transparent; }
.live3d iframe.on{ opacity:1; }
.live3d.actief iframe{ pointer-events:auto; }
.l3-go{ position:absolute; inset:0; z-index:3; display:flex; align-items:flex-start; justify-content:flex-start; padding:10px; background:transparent; border:0; cursor:pointer; font:inherit; color:inherit; }
.l3-go span, .l3-tag{ display:inline-flex; align-items:center; gap:6px; font:700 11px/1 var(--sans); letter-spacing:.04em; color:#fff; background:rgba(7,13,26,.78); border:1px solid rgba(244,185,66,.45); padding:7px 10px; border-radius:999px; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.l3-go span b{ color:var(--gold); font-weight:800; }
.l3-go:hover span, .l3-go:focus-visible span{ border-color:var(--gold); }
.live3d.actief .l3-go{ display:none; }
.l3-tag{ position:absolute; left:10px; top:10px; z-index:3; pointer-events:none; display:none; font-weight:600; }
.live3d.actief .l3-tag{ display:inline-flex; }
.hm-card2:hover .shot .live3d img{ transform:none; }
.hm-live .fr{ aspect-ratio:16/11; }
.hm-live .cap{ display:flex; justify-content:space-between; gap:10px; font-weight:700; }
.hm-live .cap small{ color:var(--muted); font-weight:500; white-space:nowrap; }
.hm-live{ max-width:none; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); }
.hm-card .img .l3-go{ padding:8px; }

/* ---------- mobiele fix 25-09-2026: grid-kolommen mogen nooit breder worden dan het scherm ----------
   Een <img width="1200"> in een grid-kolom met "1fr" duwde de kolom op de telefoon naar 1000+ px,
   waardoor bijna alles buiten beeld viel. minmax(0,…) en min-width:0 houden alles binnen het scherm. */
.hm-hero .wrap{ grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); }
.hm-hero .wrap > *, .hm-grid3 > *, .hm-live > *, .hm-guar > *, .hm-steps > *, .hm-versus > *{ min-width:0; }
.hm-card, .hm-card .img, .live3d, .live3d > img{ max-width:100%; }
@media (max-width:960px){ .hm-hero .wrap{ grid-template-columns:minmax(0,1fr); } }
@media (max-width:420px){ .hm-live{ grid-template-columns:minmax(0,1fr); } .hm-badge{ font-size:11.5px; white-space:normal; } }
@media (max-width:960px){ .hm-device{ grid-template-columns:minmax(0,1fr); } .hm-device > *{ min-width:0; } }
.hm-card .img.live3d{ height:auto; aspect-ratio:16/10; }
.hm-card .img.live3d > img{ position:absolute; inset:0; }
