/* The "wow" layer (js/components/wow.js): hero entrance, particle field, floating chips, scroll-linked window,
   magnetic and shining buttons, click ripples, card spotlight, marquee, scroll progress, page entrance, animated band
   rings and confetti. Test screens (body.in-test) get none of it; reduced motion turns it all off (end of file). */

/* ---------- scroll progress ---------- */
.wow-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--wp, 0)); background: linear-gradient(90deg, #60a5fa, #c49563, #f472b6, #fbbf24); box-shadow: 0 0 12px rgba(196, 149, 99, .7); transition: transform .08s linear; }
body.in-test .wow-progress { display: none; }

/* ---------- page entrance ---------- */
@keyframes wowPageIn { from { opacity: 0; transform: translateY(14px) scale(.995); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
body:not(.in-test) .view-root { animation: wowPageIn .55s cubic-bezier(.16, 1, .3, 1) both; }

/* ---------- hero ---------- */
.lp-hero { isolation: isolate; }
.lp-hero::after { content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--wow-a, 0deg) at 50% 40%, rgba(59, 130, 246, .42), rgba(99, 102, 241, .32), rgba(30, 64, 175, .1), rgba(56, 189, 248, .3), rgba(59, 130, 246, .42));
  filter: blur(70px); opacity: .9; animation: wowSpin 18s linear infinite; }
@property --wow-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes wowSpin { to { --wow-a: 360deg; } }
.wow-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .85; }
.lp-hero .container { z-index: 1; }

/* Headline: words rise out of a blur, one after another; the second line shimmers. */
.wow-word { display: inline-block; opacity: 0; transform: translateY(.55em) rotateX(-40deg); filter: blur(10px); transform-origin: 50% 100%;
  animation: wowWord .9s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes wowWord { to { opacity: 1; transform: none; filter: none; } }
.lp-hero h1 { perspective: 800px; }
.lp-hero h1 em { background: linear-gradient(100deg, #bfe0ff 0%, #ffffff 20%, #8a5a2b 40%, #f9a8d4 60%, #bfe0ff 80%, #ffffff 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: wowShimmer 6s linear infinite; }
.lp-hero h1 em.wow-word { display: block; animation: wowWord 1s cubic-bezier(.16, 1, .3, 1) forwards, wowShimmer 6s linear infinite; animation-delay: calc(var(--i) * 70ms + 120ms), 0s; }
@keyframes wowShimmer { to { background-position: -250% 0; } }
.lp-hero-lead, .lp-hero-cta { animation: wowFadeUp .9s cubic-bezier(.16, 1, .3, 1) both; }
.lp-hero-lead { animation-delay: .75s; }
.lp-hero-cta { animation-delay: .95s; }
@keyframes wowFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* The exam window: tilted back in 3D, flattens as the page scrolls (--t: 1 → 0), with a breathing glow. */
.lp-hero-window { perspective: 1400px; position: relative; animation: wowRise 1.2s cubic-bezier(.16, 1, .3, 1) .55s both; }
@keyframes wowRise { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: translateY(1px); } }
.lp-hero-window .lp-window { transform: rotateX(calc(var(--t, 1) * 16deg)) scale(calc(1 - var(--t, 1) * .04)); transform-origin: 50% 100%; transition: transform .1s linear; will-change: transform;
  box-shadow: 0 -10px 60px rgba(8, 24, 80, .35), 0 0 calc(40px + var(--t, 1) * 50px) rgba(59, 130, 246, .45); }
.lp-hero-window::before { content: ""; position: absolute; inset: -2px -2px 0; border-radius: 18px 18px 0 0; z-index: -1; background: linear-gradient(120deg, #60a5fa, #6366f1, #38bdf8, #60a5fa); background-size: 300% 300%; filter: blur(14px); opacity: .55; animation: wowGlow 8s ease-in-out infinite; }
@keyframes wowGlow { 50% { background-position: 100% 50%; opacity: .8; } }

/* Floating chips around the window */
.wow-chips { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.wow-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; font: 700 .86rem/1.1 var(--font-display); color: #0f172a;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .45), inset 0 0 0 1px rgba(255, 255, 255, .7);
  opacity: 0; animation: wowChipIn .8s cubic-bezier(.34, 1.56, .64, 1) forwards, wowBob 5s ease-in-out infinite; animation-delay: calc(1.2s + var(--i) * .18s), calc(2s + var(--i) * .4s); }
.wow-chip b { font-size: 1.1rem; background: linear-gradient(135deg, #2563eb, #9333ea); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wow-chip small { display: block; font-weight: 600; font-size: .7rem; color: #64748b; }
.wow-chip svg { width: 18px; height: 18px; color: #2563eb; flex: none; }
.wow-chip:nth-child(1) { left: -4%; top: 14%; }
.wow-chip:nth-child(2) { right: -5%; top: 8%; }
.wow-chip:nth-child(3) { left: -2%; top: 58%; }
.wow-chip:nth-child(4) { right: -3%; top: 52%; }
@keyframes wowChipIn { from { opacity: 0; transform: scale(.6) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes wowBob { 50% { translate: 0 -10px; } }
/* Phones and tablets: two chips, sitting on the window itself so they never cover the buttons above it. */
@media (max-width: 900px) { .wow-chip:nth-child(n+3) { display: none; } .wow-chip:nth-child(1) { left: 3%; top: 22%; } .wow-chip:nth-child(2) { right: 3%; top: 40%; } }
@media (max-width: 560px) { .wow-chip { padding: 7px 10px; font-size: .74rem; } .wow-chip b { font-size: .9rem; } }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; }
.wow-shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: wowShine 3.6s ease-in-out infinite; animation-delay: 1.8s; }
@keyframes wowShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
[data-magnetic] { transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s; will-change: transform; }
[data-magnetic]:hover { box-shadow: 0 18px 40px -10px rgba(37, 99, 235, .55); }
.wow-ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0); background: currentColor; opacity: .25; animation: wowRipple .6s ease-out forwards; }
@keyframes wowRipple { to { transform: scale(1); opacity: 0; } }

/* ---------- card spotlight (follows the pointer) ---------- */
.lp-section-card, .pf-test, .lp-feature, .lp-why .card { position: relative; }
.lp-section-card::before, .pf-test::before, .lp-feature::before, .lp-why .card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(99, 102, 241, .14), transparent 45%); z-index: 0; }
.lp-section-card:hover::before, .pf-test:hover::before, .lp-feature:hover::before, .lp-why .card:hover::before { opacity: 1; }
.lp-section-card > *, .pf-test > *, .lp-feature > *, .lp-why .card > * { position: relative; z-index: 1; }
.lp-section-card .icon-tile, .lp-why .card .icon-tile { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.lp-section-card:hover .icon-tile, .lp-why .card:hover .icon-tile { transform: rotate(-8deg) scale(1.15); }

/* ---------- marquee ---------- */
.wow-marquee { overflow: hidden; padding: 18px 0; background: linear-gradient(90deg, #0b1437, #1e1b4b, #0b1437); color: #c7d2fe; border-block: 1px solid rgba(255, 255, 255, .08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wow-track { display: flex; width: max-content; gap: 44px; animation: wowMarquee 38s linear infinite; }
.wow-marquee:hover .wow-track { animation-play-state: paused; }
.wow-track span { display: inline-flex; align-items: center; gap: 12px; font: 700 clamp(.95rem, 1.6vw, 1.15rem) var(--font-display); letter-spacing: .02em; white-space: nowrap; }
.wow-track span::before { content: "✦"; color: #f9a8d4; font-size: .8em; }
@keyframes wowMarquee { to { transform: translateX(-50%); } }

/* ---------- section titles: the gradient sweeps in when they appear ---------- */
.lp-section .lp-head h2 { background: linear-gradient(100deg, var(--text) 40%, #6366f1 50%, var(--text) 60%); background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-section .lp-head.wow-in h2 { animation: wowSweep 1.6s cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes wowSweep { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- band rings fill up from zero ---------- */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.ring { transition: --p 1.6s cubic-bezier(.16, 1, .3, 1); }
.ring.wow-ring-start { --p: 0 !important; }

/* ---------- confetti ---------- */
.wow-confetti { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }

/* ---------- reduced motion: everything still, nothing hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  .wow-progress, .wow-particles, .wow-confetti, .lp-hero::after, .lp-hero-window::before { display: none !important; }
  .wow-word, .wow-chip, .lp-hero-lead, .lp-hero-cta, .lp-hero-window, body:not(.in-test) .view-root { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .wow-track { animation: none; }
  .wow-shine::after { display: none; }
  .lp-hero h1 em, .lp-section .lp-head h2 { animation: none !important; }
  .lp-section .lp-head h2 { color: var(--text); background: none; }
  .lp-hero-window .lp-window { transform: none; }
}

/* ---------- Premium (js/pages/premium.js, the header button, the free-plan strip and the paywall) ---------- */
.pf-premium-btn, .pm-buy { color: #3b2300 !important; border: 0; font-weight: 800; background: linear-gradient(135deg, #fde68a, #fbbf24 45%, #f59e0b); box-shadow: 0 8px 22px -8px rgba(245, 158, 11, .8), inset 0 1px 0 rgba(255, 255, 255, .7); }
.pf-premium-btn:hover, .pm-buy:hover { filter: brightness(1.05); transform: translateY(-1px); }
.pf-premium-btn svg, .pm-buy svg { color: #92400e; }
.pf-premium-btn { margin-right: 6px; animation: pmPulse 2.8s ease-in-out infinite; }
@keyframes pmPulse { 50% { box-shadow: 0 8px 28px -4px rgba(245, 158, 11, .95), inset 0 1px 0 rgba(255, 255, 255, .7); } }
.pf-pro { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; padding: 5px 10px; border-radius: 99px; font: 800 .74rem/1 var(--font-display); letter-spacing: .06em; color: #3b2300; text-decoration: none; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 4px 14px -4px rgba(245, 158, 11, .8); }
.pf-pro svg { width: 14px; height: 14px; }
.pm-badge { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #3b2300; font-weight: 800; }
@media (max-width: 640px) { .pf-premium-btn span { display: none; } }

.pm { max-width: 980px; }
.pm-hero { position: relative; text-align: center; padding: clamp(36px, 6vw, 64px) 20px; border-radius: 28px; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 120% at 50% 0%, #4338ca 0%, #1e1b4b 60%, #0b1026 100%); box-shadow: 0 40px 80px -30px rgba(30, 27, 75, .7); }
.pm-hero::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from var(--wow-a, 0deg), transparent 0 40%, rgba(251, 191, 36, .35), transparent 60% 100%); animation: wowSpin 9s linear infinite; }
.pm-hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 10px 0 8px; }
.pm-hero h1 em { font-style: normal; background: linear-gradient(100deg, #fde68a, #fbbf24, #fff7d6, #f59e0b, #fde68a); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: wowShimmer 5s linear infinite; }
.pm-hero > p { max-width: 520px; margin: 0 auto; color: rgba(255, 255, 255, .82); }
.pm-crown { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: linear-gradient(135deg, #fde68a, #f59e0b); color: #78350f; box-shadow: 0 18px 40px -10px rgba(245, 158, 11, .9); animation: pmFloat 4s ease-in-out infinite; transform-style: preserve-3d; }
.pm-crown svg { width: 36px; height: 36px; }
@keyframes pmFloat { 50% { transform: translateY(-8px) rotateY(18deg) rotateX(8deg); } }
.pm-usage { max-width: 360px; margin: 22px auto 0; text-align: left; font-size: .9rem; }
.pm-usage i { display: block; height: 8px; margin: 8px 0 6px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.pm-usage u { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #fde68a, #f59e0b); }
.pm-usage small { color: rgba(255, 255, 255, .75); }
.pm-cta { display: grid; justify-items: center; gap: 10px; margin-top: 26px; }
.pm-cta .pm-buy { padding: 16px 28px; font-size: 1.05rem; border-radius: 16px; }
.pm-note { max-width: 440px; margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.pm-cta .btn-ghost { color: rgba(255, 255, 255, .85); }
.pm-have { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 14px; background: rgba(52, 211, 153, .18); color: #d1fae5; }
.pm-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; perspective: 1400px; }
.pm-plan { position: relative; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s; transform-style: preserve-3d; }
.pm-plan:hover { transform: translateY(-4px); }
.pm-plan h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.5rem; }
.pm-plan-sub { margin: 4px 0 16px; color: var(--muted); }
.pm-plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.pm-plan li { display: flex; gap: 10px; align-items: flex-start; }
.pm-plan li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--success); }
.pm-plan-pro { color: #fff; border: 0; background: linear-gradient(160deg, #312e81, #1e1b4b 60%, #0f172a); box-shadow: 0 30px 70px -25px rgba(49, 46, 129, .8), 0 0 0 2px rgba(251, 191, 36, .55); }
.pm-plan-pro:hover { transform: translateY(-4px); }
.pm-plan-pro h2 { color: #fde68a; }
.pm-plan-pro h2 svg { color: #fbbf24; }
.pm-plan-pro .pm-plan-sub { color: rgba(255, 255, 255, .7); }
.pm-plan-pro li svg { color: #fbbf24; }
.pm-ribbon { position: absolute; top: 24px; right: 24px; padding: 6px 12px; border-radius: 99px; font: 800 .72rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: #3b2300; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 8px 18px -6px rgba(245, 158, 11, .8); }
.pm-foot { text-align: center; margin-top: 18px; font-size: .88rem; }
@media (max-width: 720px) { .pm-plans { grid-template-columns: minmax(0, 1fr); } .pm-plan-pro { transform: none; } }

.pm-strip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px; border-radius: 14px; background: linear-gradient(90deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; color: #78350f; }
.pm-strip > svg { width: 20px; height: 20px; flex: none; color: #d97706; }
.pm-strip span { flex: 1; }
.pm-strip.out { background: linear-gradient(90deg, #fff1f2, #ffe4e6); border-color: #fecdd3; color: #9f1239; }
.pm-wall { display: grid; justify-items: center; gap: 12px; text-align: center; padding: clamp(28px, 6vw, 56px); }
.pm-wall > svg { width: 56px; height: 56px; color: #f59e0b; }
.pm-wall h1 { margin: 0; }
@media (prefers-reduced-motion: reduce) { .pf-premium-btn, .pm-crown, .pm-hero::before { animation: none; } }

/* Free and Premium marks on the catalogue cards and mocks */
.pf-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pm-free { background: #dcfce7; color: #15803d; font-weight: 800; letter-spacing: .02em; }
.pm-lock { display: inline-flex; align-items: center; gap: 4px; color: #3b2300; font-weight: 800; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 6px 14px -6px rgba(245, 158, 11, .8); }
.pm-lock svg { width: 13px; height: 13px; }
.pf-locked { position: relative; }
.pf-locked h3, .pf-locked .muted, .pf-locked .fm-lib { opacity: .62; }
.pf-locked .pf-go { color: #b45309; }
.pf-locked:hover { border-color: #fbbf24; }

/* =====================================================================================================
   3D — every section gets depth. Tilted elements keep their children in 3D (preserve-3d), and the children sit at
   different depths, so a card that leans towards the pointer comes apart in layers.
   ===================================================================================================== */
.lp-section-card, .pf-test, .pm-plan, .lp-why .card, .kpi, .pf-auth-card { transform-style: preserve-3d; }
.lp-section-card .icon-tile { transform: translateZ(40px); }
.lp-section-card strong { transform: translateZ(40px); display: block; }
.lp-section-card h3 { transform: translateZ(28px); }
.lp-section-card .lp-section-go { transform: translateZ(34px); display: inline-flex; }
.lp-section-card:hover .icon-tile { transform: translateZ(55px) rotate(-8deg) scale(1.1); }
.pf-test .pf-test-top { transform: translateZ(36px); }
.pf-test h3 { transform: translateZ(28px); }
.pf-test .pf-go { transform: translateZ(44px); display: inline-flex; }
.lp-why .card h4 { transform: translateZ(26px); }
.kpi strong { display: block; transform: translateZ(30px); }

/* Icons as solid blocks: an extruded edge under each tile. */
.lp-why .card .icon-tile, .lp-section-card .icon-tile {
  box-shadow: 1px 1px 0 color-mix(in srgb, var(--tone, var(--primary)) 55%, #000 10%), 2px 2px 0 color-mix(in srgb, var(--tone, var(--primary)) 50%, #000 15%),
    3px 3px 0 color-mix(in srgb, var(--tone, var(--primary)) 45%, #000 20%), 4px 4px 0 color-mix(in srgb, var(--tone, var(--primary)) 40%, #000 25%),
    5px 5px 0 color-mix(in srgb, var(--tone, var(--primary)) 35%, #000 30%), 10px 14px 22px -6px rgba(15, 23, 42, .35); }
.lp-why .card { transform-style: preserve-3d; }
.lp-why .card .icon-tile { transform: translateZ(45px); }
.lp-why .card:hover .icon-tile { transform: translateZ(60px) rotate(-8deg) scale(1.12); }

/* Hero headline: the white words stand out of the page in layers. */
/* Hero headline: a thin edge and a soft shadow lift the white words off the blue without blurring them. */
.lp-hero h1 span.wow-word { text-shadow: 0 2px 0 rgba(99, 102, 241, .45), 0 14px 32px rgba(5, 12, 45, .5); }

/* Glass cubes turning in the hero (wide screens). */
.wow-cubes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.wow-cube { position: absolute; width: var(--s); height: var(--s); transform-style: preserve-3d; animation: wowCube var(--d, 18s) linear infinite; }
.wow-cube i { position: absolute; inset: 0; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .45); background: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(165, 180, 252, .08)); box-shadow: inset 0 0 22px rgba(255, 255, 255, .25); backdrop-filter: blur(2px); }
.wow-cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.wow-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.wow-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.wow-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.wow-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.wow-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.wow-cube:nth-child(1) { --s: 74px; --d: 22s; left: 6%; top: 18%; }
.wow-cube:nth-child(2) { --s: 46px; --d: 16s; right: 8%; top: 12%; animation-direction: reverse; }
.wow-cube:nth-child(3) { --s: 32px; --d: 12s; right: 16%; top: 46%; }
@keyframes wowCube { from { transform: rotateX(0) rotateY(0) rotateZ(0) translateY(0); } 50% { transform: rotateX(180deg) rotateY(240deg) rotateZ(40deg) translateY(-18px); } to { transform: rotateX(360deg) rotateY(480deg) rotateZ(80deg) translateY(0); } }
.lp-hero { perspective: 1200px; }
@media (max-width: 900px) { .wow-cube:nth-child(n+2) { display: none; } .wow-cube:nth-child(1) { --s: 40px; left: 4%; top: 6%; } }

/* "All in one place": each window turns in from the side and squares up as it reaches the middle (--fr: 1 → 0). */
.lp-feature-visual { perspective: 1300px; }
.lp-feature-visual .lp-window { transform: rotateY(calc(var(--fr, 1) * -22deg)) rotateX(calc(var(--fr, 1) * 6deg)) translateZ(calc(var(--fr, 1) * -40px)); transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s;
  box-shadow: calc(var(--fr, 1) * 30px) 30px 60px -20px rgba(15, 23, 42, .35); will-change: transform; }
.lp-feature.flip .lp-feature-visual .lp-window { transform: rotateY(calc(var(--fr, 1) * 22deg)) rotateX(calc(var(--fr, 1) * 6deg)) translateZ(calc(var(--fr, 1) * -40px)); box-shadow: calc(var(--fr, 1) * -30px) 30px 60px -20px rgba(15, 23, 42, .35); }
.lp-feature:hover .lp-feature-visual .lp-window { transform: rotateY(-5deg) rotateX(3deg) translateZ(30px); box-shadow: 0 40px 70px -25px rgba(30, 41, 99, .55); }
.lp-feature.flip:hover .lp-feature-visual .lp-window { transform: rotateY(5deg) rotateX(3deg) translateZ(30px); }

/* "Choose your section": a 3D floor of light moving towards the viewer. */
.lp-choose { position: relative; overflow: hidden; isolation: isolate; }
.lp-choose::before { content: ""; position: absolute; left: -50%; right: -50%; bottom: -5%; height: 75%; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(191, 219, 254, .55) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(191, 219, 254, .55) 1.5px, transparent 1.5px); background-size: 64px 64px;
  transform: perspective(420px) rotateX(64deg); transform-origin: 50% 100%; animation: wowFloor 2.6s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%); }
@keyframes wowFloor { to { background-position: 0 64px; } }
.lp-choose::after { content: ""; position: absolute; left: 50%; top: 18%; width: 60%; height: 40%; transform: translateX(-50%); z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(129, 140, 248, .45), transparent); filter: blur(30px); }

/* Page banners: the icon tile turns in 3D. */
.pf-banner-ic { transform-style: preserve-3d; animation: wowIcon 7s ease-in-out infinite; box-shadow: 4px 6px 0 rgba(255, 255, 255, .08), 0 18px 30px -12px rgba(0, 0, 0, .45); }
@keyframes wowIcon { 0%, 100% { transform: rotateY(0) rotateX(0); } 25% { transform: rotateY(25deg) rotateX(8deg); } 75% { transform: rotateY(-25deg) rotateX(-6deg); } }

@media (prefers-reduced-motion: reduce) {
  .wow-cubes, .lp-choose::before { display: none; }
  .pf-banner-ic { animation: none; }
  .lp-feature-visual .lp-window, .lp-feature.flip .lp-feature-visual .lp-window { transform: none; }
}
/* Laptop widths: the header holds the full menu and the Premium button, which shows its crown only. */
@media (max-width: 1500px) { .pf-premium-btn span { display: none; } .pf-premium-btn { padding-inline: 10px; } }

/* =====================================================================================================
   Catalogue cards (js/pages/tests.js): a number tile; the kind of test, its title and badge; the passages of a whole
   test; then its size and Start. A Premium test is the same card, quieter, with the Premium mark and "View plans".
   ===================================================================================================== */
.pf-tests { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.tc { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 18px; border-radius: 18px; color: var(--text); overflow: hidden; }
.tc:hover { text-decoration: none; }
.tc-tile { position: relative; align-self: stretch; display: grid; align-content: center; justify-items: center; gap: 2px; min-height: 96px; border-radius: 14px; color: #fff; overflow: hidden;
  background: var(--grad-night); box-shadow: 0 12px 24px -14px rgba(11, 29, 92, .8), inset 0 1px 0 rgba(255, 255, 255, .18); transform: translateZ(30px); }
.tc-tile::before { content: ""; position: absolute; inset: 0; opacity: .3; background: repeating-radial-gradient(circle at 0 110%, transparent 0 14px, rgba(255, 255, 255, .22) 15px 16px); }
.tc-tile small { position: relative; font: 800 .62rem var(--font-display); letter-spacing: .22em; color: rgba(255, 255, 255, .75); }
.tc-tile b { position: relative; font: 800 2.1rem/1 var(--font-display); letter-spacing: -.03em; }
.tc-main { display: flex; flex-direction: column; min-width: 0; }
.tc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.tc-kicker { font: 800 .72rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.tc-head .badge { flex: none; }
.tc h3 { margin: 4px 0 0; font: 700 1.08rem/1.3 var(--font-display); letter-spacing: -.01em; color: var(--text); transform: none; }
.tc-parts { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: tp; display: grid; gap: 3px; }
.tc-parts li { counter-increment: tp; display: flex; gap: 8px; font-size: .86rem; color: var(--text-2); min-width: 0; }
.tc-parts li::before { content: counter(tp); flex: none; width: 18px; height: 18px; margin-top: 1px; display: grid; place-items: center; border-radius: 5px; font: 700 .68rem/1 var(--font); color: var(--primary); background: var(--primary-50); }
.tc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-top: auto; padding-top: 14px; }
.tc-meta { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.tc-meta svg { width: 15px; height: 15px; }
.tc-start { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 10px; color: #fff; font: 700 .9rem var(--font-display); white-space: nowrap;
  background: var(--grad-primary); box-shadow: 0 8px 18px -10px rgba(30, 64, 175, .8); transition: transform .15s, box-shadow .15s; }
.tc-start svg { width: 16px; height: 16px; transition: transform .2s; }
.tc:hover .tc-start { transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(30, 64, 175, .85); }
.tc:hover .tc-start svg { transform: translateX(3px); }

.tc-locked { background: var(--surface); }
.tc-locked .tc-tile { background: linear-gradient(150deg, #64748b, #334155); box-shadow: 0 12px 24px -16px rgba(15, 23, 42, .6); }
.tc-locked h3, .tc-locked .tc-parts li { color: var(--muted); }
.tc-locked .tc-kicker { color: var(--muted); }
.tc-locked .tc-plans { color: #78350f; background: #fff7e0; box-shadow: inset 0 0 0 1px #fcd34d; }
.tc-locked:hover { border-color: #fcd34d; }
.tc-locked:hover .tc-plans { box-shadow: inset 0 0 0 1px #f59e0b, 0 10px 20px -12px rgba(245, 158, 11, .8); }
.tc-locked::before, .tc-locked::after { display: none; }

@media (max-width: 560px) {
  .tc { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .tc-tile { min-height: 72px; border-radius: 12px; }
  .tc-tile small { font-size: .5rem; letter-spacing: .16em; }
  .tc-tile b { font-size: 1.6rem; }
  .tc h3 { font-size: 1rem; }
  .tc-tile { align-self: start; }
  .tc-meta { font-size: .78rem; gap: 4px; }
  .tc-meta svg { display: none; }
  .tc-start { padding: 8px 14px; font-size: .86rem; }
}
/* Phones: the page banner gives the list more room. */
@media (max-width: 560px) {
  .pf-banner { gap: 12px; padding: 18px; }
  .pf-banner-ic { display: none; }
  .pf-banner p { font-size: .9rem; }
}
