/* ============================================================
   MAXLINQ — effects.css
   Dynamische laag: hero-aurora · woordanimaties · marquee ·
   tellers · spotlight-cards · tilt · AI-gesprekssimulator ·
   glow-secties · prijskaarten · demo-banner
   Laden ná style.css.
   ============================================================ */

/* ---------- Hero & page-hero: zachte aurora-achtergrond ---------- */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

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

.hero::before,
.page-hero::before {
  width: 46rem;
  height: 46rem;
  top: -22rem;
  right: -14rem;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.16), transparent 65%);
  animation: aurora-a 22s ease-in-out infinite alternate;
}

.hero::after,
.page-hero::after {
  width: 34rem;
  height: 34rem;
  bottom: -18rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(143, 216, 206, 0.22), transparent 65%);
  animation: aurora-b 26s ease-in-out infinite alternate;
}

@keyframes aurora-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6rem, 4rem, 0) scale(1.15); }
}

@keyframes aurora-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(5rem, -3rem, 0) scale(1.12); }
}

/* Fijn puntraster over de hero, vervaagt naar onder */
.hero .container::before,
.page-hero .container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(26, 26, 26, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 78%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 78%);
  pointer-events: none;
}

.hero .container,
.page-hero .container {
  position: relative;
}

/* ---------- Eyebrow met pulserend bolletje ---------- */
.eyebrow--pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow--pulse::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.45);
  animation: pulse-dot 2.2s ease-out infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(15, 118, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
}

/* ---------- Kop: woord-voor-woord onthulling ---------- */
.words-ready .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(1.5deg);
  animation: word-in 0.6s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes word-in {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* ---------- Roterend woord in de kop ---------- */
.rotator {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  color: var(--accent);
  white-space: nowrap;
}

.rotator > span {
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  line-height: 1.12;
  pointer-events: none;
}

/* Enkel het actieve woord staat in de tekststroom en bepaalt de breedte;
   de overige woorden worden absoluut gestapeld -> geen gereserveerde lege ruimte
   (de regel is zo breed als het woord dat er staat, niet als het langste). */
.rotator > span:not(.is-active) {
  position: absolute;
  top: 0;
  left: 0;
}

.rotator > span.is-active {
  position: relative;
  opacity: 1;
}

/* wrapWords geeft de rotator de .w-klasse (inline-block) -- dat is hier net goed. */
.words-ready .rotator {
  display: inline-block;
}

/* ---------- Marquee (doorlopende strook) ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-card);
  overflow: hidden;
  padding-block: 0.9rem;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  width: max-content;
}

.marquee__track.is-running {
  animation: marquee var(--marquee-dur, 30s) linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 2.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

@keyframes marquee {
  to { transform: translate3d(var(--marquee-shift, -50%), 0, 0); }
}

/* ---------- Cijfers / tellers ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}

@media (min-width: 860px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  text-align: center;
  padding-inline: 0.5rem;
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw + 0.5rem, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat__num em {
  font-style: normal;
  color: var(--accent);
}

/* Lange eenheid (bv. "werkdagen") kleiner onder het cijfer — blijft in proportie met de korte stats */
.stat__num--stacked em {
  display: block;
  font-size: 0.32em;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-top: 0.2em;
}

.stat__label {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ---------- Spotlight-hover op kaarten (cursorvolgende gloed) ---------- */
.spot {
  position: relative;
}

.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(15, 118, 110, 0.12),
    transparent 65%
  );
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
  pointer-events: none;
}

.spot:hover::after { opacity: 1; }

/* Tilt-kaarten: zachte 3D-reactie (JS zet de transform) */
.has-tilt {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.18s ease-out, box-shadow var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
}

/* ---------- Scroll-voortgangsbalk ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Reveal-upgrade: iets meer beweging + stagger ---------- */
[data-reveal] {
  transform: translateY(22px);
  transition-delay: var(--rd, 0ms);
  transition-duration: 0.55s;
}

[data-reveal].is-visible {
  transform: none;
}

/* ---------- Live-badge (bij de AI-teaser) ---------- */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.9rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(143, 216, 206, 0.14);
  border: 1px solid rgba(143, 216, 206, 0.35);
  color: var(--accent-glow);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.live-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-glow);
  animation: pulse-dot-light 1.8s ease-out infinite;
}

@keyframes pulse-dot-light {
  0%   { box-shadow: 0 0 0 0 rgba(143, 216, 206, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(143, 216, 206, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 216, 206, 0); }
}

/* ---------- Donkere blokken met gloed (AI-teaser & demo) ---------- */
.ai-teaser--glow,
.demo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ai-teaser--glow::before,
.demo::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  top: -16rem;
  right: -10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 216, 206, 0.28), transparent 62%);
  filter: blur(60px);
  animation: aurora-a 18s ease-in-out infinite alternate;
}

.ai-teaser--glow::after,
.demo::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  bottom: -14rem;
  left: -8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.5), transparent 62%);
  filter: blur(60px);
  animation: aurora-b 24s ease-in-out infinite alternate;
}

/* Lichtlijn die over de bovenrand glijdt */
.ai-teaser--glow > .glowline,
.demo > .glowline {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 38%;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  animation: glowline 5.5s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes glowline {
  0%   { transform: translateX(-110%); }
  60%, 100% { transform: translateX(290%); }
}

/* Waveform in "live"-stand: sneller en feller */
.waveform--live rect {
  animation-duration: 0.85s !important;
}

/* ============================================================
   AI-GESPREKSSIMULATOR
   ============================================================ */
.sim {
  width: min(26.5rem, 100%);
  background: linear-gradient(165deg, #0d2421, var(--accent-deep) 70%);
  border: 1px solid rgba(143, 216, 206, 0.22);
  border-radius: var(--radius-l);
  box-shadow: 0 30px 70px -30px rgba(10, 71, 66, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--ink-invert);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sim__top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(143, 216, 206, 0.16);
}

.sim__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border-radius: 50%;
  background: rgba(143, 216, 206, 0.16);
  color: var(--accent-glow);
}

.sim__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.sim__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(246, 244, 238, 0.75);
}

.sim__statusdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot-light 1.6s ease-out infinite;
}

.sim__replay {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(143, 216, 206, 0.28);
  border-radius: 50%;
  background: transparent;
  color: var(--accent-glow);
  cursor: pointer;
  transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.sim__replay:hover {
  background: rgba(143, 216, 206, 0.14);
  transform: rotate(-40deg);
}

.sim__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem;
  height: 17.5rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.sim__msg {
  max-width: 86%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  animation: msg-in 0.32s var(--ease) both;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sim__msg--ai {
  align-self: flex-start;
  background: rgba(143, 216, 206, 0.16);
  border: 1px solid rgba(143, 216, 206, 0.22);
  border-bottom-left-radius: 4px;
  color: #f3fbf9;
}

.sim__msg--caller {
  align-self: flex-end;
  background: rgba(246, 244, 238, 0.94);
  color: var(--ink);
  border-bottom-right-radius: 4px;
}

.sim__msg--sys {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px dashed rgba(143, 216, 206, 0.4);
  color: var(--accent-glow);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

.sim__typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 0.7rem 0.9rem;
  background: rgba(143, 216, 206, 0.16);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}

.sim__typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-glow);
  animation: typing 1s ease-in-out infinite;
}

.sim__typing i:nth-child(2) { animation-delay: 0.15s; }
.sim__typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-3px); }
}

.sim__foot {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.15rem;
  border-top: 1px solid rgba(143, 216, 206, 0.16);
}

.sim__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  flex: none;
}

.sim__wave i {
  width: 4px;
  height: 30%;
  border-radius: 2px;
  background: var(--accent-glow);
  opacity: 0.5;
  transition: opacity var(--speed) var(--ease);
}

.sim.is-speaking .sim__wave i {
  opacity: 1;
  animation: sim-wave 0.8s ease-in-out infinite alternate;
}

.sim__wave i:nth-child(odd)  { animation-delay: 0.1s; }
.sim__wave i:nth-child(3n)   { animation-delay: 0.25s; }
.sim__wave i:nth-child(4n)   { animation-delay: 0.4s; }

@keyframes sim-wave {
  from { height: 22%; }
  to   { height: 100%; }
}

.sim__hint {
  font-size: 0.78rem;
  color: rgba(246, 244, 238, 0.65);
}

/* Hero-indeling op de AI Voice-pagina: tekst + simulator */
.page-hero__split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .page-hero__split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
  .page-hero__split .sim { justify-self: end; }
}

/* ---------- Demo-banner (terugbel-demo) ---------- */
.demo {
  display: grid;
  gap: 2rem;
  padding: clamp(2.25rem, 5vw, 3.5rem);
  background: var(--accent-deep);
  border-radius: var(--radius-l);
  color: var(--ink-invert);
}

@media (min-width: 920px) {
  .demo {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.demo h2 {
  color: #fff;
  margin-block: 0.75rem 0.9rem;
}

.demo__text > p:last-child {
  color: rgba(246, 244, 238, 0.85);
  max-width: 46ch;
}

.demo__actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  justify-self: start;
}

@media (min-width: 920px) {
  .demo__actions { justify-self: end; align-items: flex-end; }
}

.demo__note {
  font-size: 0.875rem;
  color: rgba(246, 244, 238, 0.7);
}

/* ---------- Prijskaarten: bedragen ---------- */
.plan__price {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.plan__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.plan__per {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-left: 0.15rem;
}

.plan__meta {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.plan--featured {
  box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -28px rgba(15, 118, 110, 0.55);
}

.plan--featured .plan__amount { color: var(--accent-strong); }

.plans-note {
  margin-top: 2rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Reduced motion: alles rustig ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after,
  .page-hero::before, .page-hero::after,
  .ai-teaser--glow::before, .ai-teaser--glow::after,
  .demo::before, .demo::after,
  .glowline,
  .eyebrow--pulse::before,
  .live-badge__dot,
  .sim__statusdot,
  .marquee__track {
    animation: none !important;
  }

  .words-ready .w {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .rotator > span { transition: none; }

  .marquee { overflow-x: auto; }

  .has-tilt { transition: none; }
}

/* ---------- Prijsframe-callout boven de prijskaarten ---------- */
.callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 760px;
  margin: 0 auto 2.25rem;
  padding: 1.1rem 1.35rem;
  background: var(--accent-soft);
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: var(--radius-m);
}

.callout__badge {
  flex: none;
  margin-top: 0.15rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.callout p {
  font-size: 0.975rem;
  color: var(--ink-soft);
}

.callout strong {
  color: var(--ink);
}

/* Kieshulp-lijstje binnen de prijs-callout */
.callout--choices { align-items: flex-start; }

.callout__choices {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.callout__choices strong { color: var(--ink); }

/* ---------- SEO-basis "?"-uitleg ---------- */
.seo-basis {
  max-width: 760px;
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.seo-basis__title { margin: 0 0 0.75rem; font-weight: 700; color: var(--ink); }
.seo-basis__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.seo-basis__term { font-size: 0.975rem; color: var(--ink); }
.seo-basis__toggle {
  margin-left: 0.4rem;
  width: 1.25rem; height: 1.25rem; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-size: 0.78rem; font-weight: 700; line-height: 1; cursor: pointer;
}
.seo-basis__toggle:hover { background: var(--accent); color: #fff; }
.seo-basis__toggle:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.seo-basis__hint {
  margin: 0.35rem 0 0; padding-left: 0.85rem;
  border-left: 2px solid var(--accent);
  font-size: 0.9rem; color: var(--ink-soft); max-width: 60ch;
}


/* ---------- Mobiel: zware blur-animaties uit (scroll-stabiliteit) ---------- */
@media (max-width: 899px) {
  .hero::before,
  .page-hero::before,
  .hero::after,
  .page-hero::after,
  .ai-teaser--glow::before,
  .demo::before,
  .ai-teaser--glow::after,
  .demo::after {
    animation: none;
    filter: blur(40px);
  }
}
