/* ============================================================
   ONLYLIKES — effecten
   Alles hier is beweging bovenop de basisstijl. Elk effect staat uit bij
   prefers-reduced-motion en doet niets als het bijbehorende element ontbreekt.
   ============================================================ */

/* voortgangslijn bovenaan in de vier platformkleuren */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none;
  background: linear-gradient(90deg, #fe2c55, #d62976 30%, #ff0033 60%, #0866ff);
  transform-origin: left; transform: scaleX(var(--p, 0));
}

/* kleur-wipe bij platformwissel */
.wipe {
  position: fixed; inset: 0; z-index: 65; pointer-events: none; opacity: 0;
  background: var(--wipe, #fe2c55);
  clip-path: polygon(-30% 0, -10% 0, -30% 100%, -50% 100%);
}
.wipe.is-go { animation: wipe 1.05s cubic-bezier(.65, 0, .25, 1) forwards; }
@keyframes wipe {
  0%   { opacity: .92; clip-path: polygon(-70% 0, -10% 0, -30% 100%, -90% 100%); }
  80%  { opacity: .92; }
  100% { opacity: 0;   clip-path: polygon(110% 0, 170% 0, 150% 100%, 90% 100%); }
}

/* zwevende hartjes, duimen en afspeelknopjes in de hero */
.floaters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.floater {
  position: absolute; bottom: -60px; left: var(--x, 50%); width: var(--s, 22px); height: var(--s, 22px);
  color: var(--c, var(--hl)); opacity: 0;
  animation: floatUp var(--d, 9s) linear var(--delay, 0s) infinite;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c, var(--hl)) 60%, transparent));
}
.floater svg { width: 100%; height: 100%; }
@keyframes floatUp {
  0%   { transform: translate3d(0, 0, 0) rotate(0) scale(.7); opacity: 0; }
  10%  { opacity: .85; }
  50%  { transform: translate3d(calc(var(--drift, 30px) * -1), -55vh, 0) rotate(-14deg) scale(1.05); }
  90%  { opacity: .55; }
  100% { transform: translate3d(var(--drift, 30px), -115vh, 0) rotate(12deg) scale(.9); opacity: 0; }
}

/* spotlight die de muis volgt over de hero */
.hero { --mx: 50%; --my: 40%; }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: var(--spot, 0);
  background: radial-gradient(520px 420px at var(--mx) var(--my), color-mix(in srgb, var(--hl) 22%, transparent), transparent 70%);
  transition: opacity .5s var(--ease);
}
.hero__in { z-index: 1; }

/* glitch op het gemarkeerde woord in de kop */
h1 .hl { position: relative; display: inline-block; }
h1 .hl.is-glitch::before, h1 .hl.is-glitch::after {
  content: attr(data-text); position: absolute; inset: 0; color: inherit; pointer-events: none;
}
h1 .hl.is-glitch::before { color: #25f4ee; animation: glitchA .55s steps(2, end) 1; }
h1 .hl.is-glitch::after  { color: #ff5d8f; animation: glitchB .55s steps(2, end) 1; }
[data-platform="youtube"] h1 .hl.is-glitch::before { color: #fff; }
[data-platform="facebook"] h1 .hl.is-glitch::before { color: #9fd0ff; }
[data-platform="instagram"] h1 .hl.is-glitch::before { color: #ffd6a3; }
@keyframes glitchA {
  0% { transform: translate(-4px, -2px); clip-path: inset(0 0 60% 0); }
  50% { transform: translate(3px, 1px); clip-path: inset(40% 0 20% 0); }
  100% { transform: none; clip-path: inset(0 0 100% 0); }
}
@keyframes glitchB {
  0% { transform: translate(4px, 2px); clip-path: inset(55% 0 0 0); }
  50% { transform: translate(-3px, -1px); clip-path: inset(15% 0 55% 0); }
  100% { transform: none; clip-path: inset(100% 0 0 0); }
}

/* kop per woord binnen laten komen */
.words .w { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(2deg); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.words.in .w { opacity: 1; transform: none; }

/* magnetische knoppen */
.btn--magnet { will-change: transform; }

/* platformtegels: draaiende lichtrand en wiebelend icoon */
.platform { isolation: isolate; }
.platform::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 0;
  background: conic-gradient(from var(--a, 0deg), transparent 0 60%, var(--pc) 80%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s var(--ease);
}
.platform:hover::before { opacity: 1; animation: spin 2.2s linear infinite; }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.platform:hover svg { animation: wiggle .6s var(--ease); }
@keyframes wiggle { 25% { transform: rotate(-12deg) scale(1.15); } 60% { transform: rotate(9deg) scale(1.1); } }

/* tellers in de cijferstrook */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { padding: 1.4rem 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel-soft); position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; inset: auto -20% -70% -20%; height: 120px; background: radial-gradient(closest-side, var(--sc, var(--hl)), transparent); opacity: .18; }
.stat__n { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: -.05em; font-variant-numeric: tabular-nums; line-height: 1; color: var(--ink); }
.stat__n small { font-size: .5em; font-weight: 700; color: var(--sc, var(--hl)); margin-left: .1em; }
.stat__l { margin-top: .5rem; color: var(--ink-soft); font-size: .95rem; }

/* rollende cijfers in de prijstabel */
.roll { display: inline-block; overflow: hidden; height: 1.25em; vertical-align: bottom; line-height: 1.25em; }
.roll__col { display: inline-block; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--i, 0ms); }
.roll__col span { display: block; height: 1.25em; }

/* 'populair' op de meest gekozen staffel */
.steps button[data-populair] { position: relative; overflow: visible; }
.steps button[data-populair]::after {
  content: 'populair'; position: absolute; top: -.85rem; right: -.4rem; font-size: .62rem; font-weight: 800;
  letter-spacing: .06em; padding: .15rem .45rem; border-radius: 999px; background: var(--hl); color: var(--accent-ink);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--hl) 60%, transparent); animation: popPulse 2s infinite;
}
[data-platform="tiktok"] .steps button[data-populair]::after, :root:not([data-platform]) .steps button[data-populair]::after { color: #fff; }
@keyframes popPulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* boost-demo */
.boost { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1rem; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; padding: .7rem 1.2rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel-soft); color: var(--ink); transition: background .2s var(--ease), transform .2s var(--ease); }
.boost:hover { background: var(--hover); transform: translateY(-2px); }
.boost svg { width: 18px; height: 18px; color: var(--hl); }
.boost.is-busy { pointer-events: none; opacity: .7; }
.phone.is-boost { animation: shake .5s var(--ease) 2; }
@keyframes shake { 25% { transform: rotateY(-8deg) rotateX(4deg) translateX(-3px) rotate(-1deg); } 75% { transform: rotateY(-8deg) rotateX(4deg) translateX(3px) rotate(1deg); } }

/* confetti */
#confetti { position: fixed; inset: 0; z-index: 80; pointer-events: none; }

/* exit-intent */
.exit { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, .62); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.exit.is-open { opacity: 1; pointer-events: auto; }
.exit__box { position: relative; width: min(460px, 100%); padding: 2rem 2rem 1.8rem; border-radius: var(--radius-lg); background: var(--ground-2, #0d0f15); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lift); transform: translateY(20px) scale(.96); transition: transform .45s var(--ease); color: var(--ink); }
[data-platform="youtube"] .exit__box, [data-platform="instagram"] .exit__box, [data-platform="facebook"] .exit__box { background: color-mix(in srgb, var(--ground) 85%, #000); }
.exit.is-open .exit__box { transform: none; }
.exit__box h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.exit__box p { color: var(--ink-soft); }
.exit__code { display: inline-block; margin: .4rem 0 1.2rem; padding: .55rem 1rem; border-radius: 12px; border: 1px dashed var(--line-strong); font-weight: 800; letter-spacing: .12em; font-size: 1.15rem; background: var(--panel-soft); }
.exit__close { position: absolute; top: .8rem; right: .8rem; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 1.2rem; cursor: pointer; }

/* stickybalk op de homepage */
.sticky--home .sticky__icons { display: flex; gap: .5rem; }
.sticky--home .sticky__icons a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--pc); transition: transform .2s var(--ease), background .2s var(--ease); }
.sticky--home .sticky__icons a:hover { transform: translateY(-3px); background: var(--hover); }
.sticky--home .sticky__icons svg { width: 20px; height: 20px; }

/* parallax laag */
.parallax { will-change: transform; }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .stat { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .floater, .progress, .wipe, .hero::after { display: none !important; }
  .words .w { opacity: 1; transform: none; }
  .platform:hover::before, .platform:hover svg, .phone.is-boost { animation: none !important; }
  .roll__col { transition: none; }
}
