/* Real 3D sections (Toni 2026-11-20), sections3d.js */

/* Ways to talk: cylinder */
.cards.carousel { display: block; position: relative; height: 440px; perspective: 1600px; cursor: grab; touch-action: pan-y; }
.carousel .spin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.carousel .card {
  position: absolute; left: 0; top: 0; width: min(300px, 74vw); margin-left: calc(min(300px, 74vw) / -2); margin-top: -170px;
  min-height: 340px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: border-color 0.3s, box-shadow 0.3s;
}
.carousel .card.front { border-color: rgba(111, 214, 200, 0.6); box-shadow: 0 30px 80px rgba(111, 214, 200, 0.18); }

/* The old way: a card that turns over */
.compare.flip-stage { display: block; perspective: 1600px; height: 190vh; }
.flip { position: sticky; top: calc(50vh - 150px); transform-style: preserve-3d; height: 300px; max-width: 760px; margin: 0 auto; }
.flip .panel { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip .face-b { transform: rotateY(180deg); }

/* How it works: steps unfold */
.steps.fold { perspective: 1200px; overflow: visible; background: none; border: 0; gap: 16px; }
.steps.fold .step { transform-origin: 50% 0; border: 1px solid var(--hair); border-radius: 24px; will-change: transform; }

/* Prices: cover flow */
.prices.flow { display: block; position: relative; height: 430px; perspective: 1400px; transform-style: preserve-3d; touch-action: pan-y; }
.flow .price {
  position: absolute; left: 50%; top: 50%; width: min(300px, 76vw); min-height: 320px; cursor: pointer;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s;
}
.flow .price.front { box-shadow: 0 30px 90px rgba(111, 214, 200, 0.2); }
