/* Galaxy Gadgetz: waarom bij ons. Vier beloftes met een kleine animatie.
   De kaarten komen in beeld met .is-in op de sectie; de animatie per kaart loopt
   met .is-play op de kaart (script.js zet die bij in beeld komen en opnieuw bij hover).
   .is-reset zet een kaart zonder overgang terug naar de beginstand.
   Bij 'minder beweging' staat direct de eindstand. */

.gg-why { padding: var(--gg-section-y) 0; background: var(--gg-paper); overflow: hidden; }
.gg-why__head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.gg-why__head .gg-eyebrow { justify-content: center; }
.gg-why__title { margin: 8px 0 0; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; }

.gg-why__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .gg-why__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.gg-why__item {
  display: flex; flex-direction: column; padding: 14px 14px 20px; border-radius: 22px;
  background: #fff; border: 1px solid var(--gg-line); box-shadow: 0 10px 30px rgba(90, 40, 120, .06);
  opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i) * 120ms);
}
.gg-why.is-in .gg-why__item { opacity: 1; transform: none; }
.gg-why__item.is-reset *, .gg-why__item.is-reset *::before, .gg-why__item.is-reset *::after { transition: none !important; animation: none !important; }
.gg-why__item-title { margin: 16px 6px 4px; font-size: var(--gg-fs-lg, 1.2rem); letter-spacing: -0.015em; }
.gg-why__item-text { margin: 0 6px; font-size: var(--gg-fs-sm); color: var(--gg-muted); line-height: 1.45; }
.gg-why__actions { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 36px); }

/* gedeeld beeldvlak */
.gg-why__art {
  position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  background: linear-gradient(150deg, #FBF1F7 0%, #F3ECFB 100%);
}

/* ---------- levering: vrachtwagen rijdt van Besteld naar Thuis ---------- */
.gg-why__road { position: absolute; left: 14%; right: 14%; top: 56%; height: 4px; border-radius: 4px; background: rgba(17, 17, 20, .1); }
.gg-why__road-fill { position: absolute; inset: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gg-pink), var(--gg-purple, #7B2CBF)); }
.gg-why__dot { position: absolute; top: 56%; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; border: 3px solid var(--gg-pink); }
.gg-why__dot--a { left: calc(14% - 6px); }
.gg-why__dot--b { right: calc(14% - 6px); border-color: rgba(17, 17, 20, .18); transition: border-color .3s ease 1.6s; }
.gg-why__truck { position: absolute; left: 14%; top: 56%; width: 34px; height: 34px; margin: -38px 0 0 -17px; fill: none; stroke: var(--gg-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gg-why__eta { position: absolute; left: 50%; top: 16%; translate: -50% 0; white-space: nowrap; padding: 4px 10px; border-radius: 99px; background: #fff; font-family: var(--gg-mono); font-size: var(--gg-fs-2xs); font-weight: 600; color: var(--gg-ink); box-shadow: 0 4px 12px rgba(90, 40, 120, .12); opacity: 0; transition: opacity .4s ease 1.7s; }
.gg-why__ends { position: absolute; left: 10%; right: 10%; top: 70%; display: flex; justify-content: space-between; font-size: var(--gg-fs-2xs); color: var(--gg-muted); font-family: var(--gg-mono); }
.gg-why__item.is-play .gg-why__road-fill { animation: gg-why-fill 1.6s cubic-bezier(.45, 0, .2, 1) .3s forwards; }
.gg-why__item.is-play .gg-why__truck { animation: gg-why-drive 1.6s cubic-bezier(.45, 0, .2, 1) .3s forwards; }
.gg-why__item.is-play .gg-why__dot--b { border-color: var(--gg-purple, #7B2CBF); }
.gg-why__item.is-play .gg-why__eta { opacity: 1; }
@keyframes gg-why-fill { to { width: 100%; } }
@keyframes gg-why-drive { 0% { left: 14%; } 100% { left: 86%; } }

/* ---------- echte mensen: vraag, typ-puntjes, antwoord ---------- */
.gg-why__art--chat { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 12%; }
.gg-why__bubble { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: var(--gg-fs-xs); line-height: 1.3; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.gg-why__bubble--q { align-self: flex-end; background: var(--gg-ink); color: #fff; border-bottom-right-radius: 4px; transition-delay: .3s; }
.gg-why__bubble--typing { align-self: flex-start; display: inline-flex; gap: 4px; background: #fff; transition-delay: .9s; }
.gg-why__bubble--typing i { width: 6px; height: 6px; border-radius: 50%; background: #B9B9C1; animation: gg-why-typing 1s infinite ease-in-out; }
.gg-why__bubble--typing i:nth-child(2) { animation-delay: .15s; } .gg-why__bubble--typing i:nth-child(3) { animation-delay: .3s; }
.gg-why__bubble--a { align-self: flex-start; background: #fff; color: var(--gg-ink); border-bottom-left-radius: 4px; box-shadow: 0 4px 12px rgba(90, 40, 120, .1); transition-delay: 2.1s; }
.gg-why__item.is-play .gg-why__bubble { opacity: 1; transform: none; }
.gg-why__item.is-play .gg-why__bubble--typing { animation: gg-why-hide .01s linear 2s forwards; }
@keyframes gg-why-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes gg-why-hide { to { opacity: 0; height: 0; padding: 0; margin: -4px 0; } }

/* ---------- eerlijke prijs: nep-'van'-prijs wordt weggestreept ---------- */
.gg-why__art--price { display: grid; place-items: center; }
.gg-why__tag {
  position: relative; display: grid; justify-items: center; gap: 2px; padding: 14px 22px 14px 30px; border-radius: 10px 18px 18px 10px;
  background: #fff; box-shadow: 0 8px 20px rgba(90, 40, 120, .12); rotate: -6deg;
}
.gg-why__tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #F3ECFB; box-shadow: inset 0 0 0 1.5px rgba(17, 17, 20, .15); }
.gg-why__fake { position: relative; font-size: var(--gg-fs-sm); color: var(--gg-muted); text-decoration: none; transition: opacity .4s ease 1.3s; }
.gg-why__fake::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 2px; background: var(--gg-pink); transform: scaleX(0); transform-origin: left; transition: transform .5s ease .7s; }
.gg-why__real { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); font-weight: 800; letter-spacing: -0.03em; color: var(--gg-ink); }
.gg-why__stamp { position: absolute; right: 12%; bottom: 14%; padding: 3px 10px; border-radius: 99px; font-family: var(--gg-mono); font-size: var(--gg-fs-2xs); font-weight: 600; color: #fff; background: var(--gg-purple, #7B2CBF); opacity: 0; scale: .6; transition: opacity .3s ease 1.6s, scale .4s cubic-bezier(.34, 1.56, .64, 1) 1.6s; }
.gg-why__item.is-play .gg-why__fake::after { transform: scaleX(1); }
.gg-why__item.is-play .gg-why__fake { opacity: .35; }
.gg-why__item.is-play .gg-why__stamp { opacity: 1; scale: 1; }

/* ---------- bedenktijd: ring loopt vol tot 14 dagen ---------- */
.gg-why__art--return { display: grid; place-items: center; }
.gg-why__ring { width: 58%; max-width: 132px; rotate: -90deg; }
.gg-why__ring circle { fill: none; stroke-width: 10; }
.gg-why__ring-bg { stroke: rgba(17, 17, 20, .08); }
.gg-why__ring-fg { stroke: var(--gg-pink); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s cubic-bezier(.45, 0, .2, 1) .3s, stroke 1.6s ease .3s; }
.gg-why__item.is-play .gg-why__ring-fg { stroke-dashoffset: 0; stroke: var(--gg-purple, #7B2CBF); }
.gg-why__ring-num { position: absolute; display: grid; justify-items: center; line-height: 1; }
.gg-why__ring-num b { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gg-why__ring-num small { margin-top: 2px; font-family: var(--gg-mono); font-size: var(--gg-fs-2xs); color: var(--gg-muted); }

@media (max-width: 599.98px) {
  .gg-why__grid { gap: 10px; }
  .gg-why__item { padding: 10px 10px 14px; border-radius: 18px; }
  .gg-why__item-title { margin: 12px 4px 2px; font-size: var(--gg-fs-md, 1rem); }
  .gg-why__item-text { margin: 0 4px; font-size: var(--gg-fs-xs); }
  .gg-why__bubble { font-size: 10.5px; padding: 6px 9px; }
  .gg-why__art--chat { padding: 0 8%; gap: 6px; }
  .gg-why__eta { top: 10%; white-space: nowrap; font-size: 9.5px; padding: 3px 8px; }
  .gg-why__truck { width: 26px; height: 26px; margin: -30px 0 0 -13px; }
  .gg-why__ends { font-size: 9.5px; }
  .gg-why__tag { padding: 9px 14px 9px 22px; rotate: -5deg; scale: .82; }
  .gg-why__tag::before { left: 8px; width: 7px; height: 7px; margin-top: -3.5px; }
  .gg-why__stamp { right: 6%; bottom: 8%; font-size: 9.5px; padding: 2px 8px; }
}

/* minder beweging: geen animatie, meteen de eindstand */
@media (prefers-reduced-motion: reduce) {
  .gg-why *, .gg-why *::before, .gg-why *::after { animation: none !important; transition: none !important; }
  .gg-why__item { opacity: 1; transform: none; }
  .gg-why__road-fill { width: 100%; }
  .gg-why__truck { left: 86%; }
  .gg-why__eta, .gg-why__bubble--q, .gg-why__bubble--a, .gg-why__stamp { opacity: 1; transform: none; scale: 1; }
  .gg-why__bubble--typing { display: none; }
  .gg-why__fake { opacity: .35; } .gg-why__fake::after { transform: scaleX(1); }
  .gg-why__ring-fg { stroke-dashoffset: 0; stroke: var(--gg-purple, #7B2CBF); }
}
