/* Shared premium motion for the landing page and the application. Everything here switches off for reduced motion. */

/* Smooth page-to-page fade (browsers that support it) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fxFadeOut 0.28s ease both; }
::view-transition-new(root) { animation: fxFadeIn 0.45s ease both; }
@keyframes fxFadeOut { to { opacity: 0; } }
@keyframes fxFadeIn { from { opacity: 0; } }

/* Scroll progress */
#fxProgress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #f7d682, #e9bb58); box-shadow: 0 0 10px rgba(240, 195, 106, 0.55); pointer-events: none; }

/* Entrance: hero children rise in one after another */
.fx-hero > * { opacity: 0; transform: translateY(26px); animation: fxUp 0.95s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
@keyframes fxUp { to { opacity: 1; transform: none; } }

/* Scroll reveal for the application */
.fx .fx-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(.2, .7, .2, 1), transform 0.9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.fx .fx-reveal.in { opacity: 1; transform: none; }

/* Buttons: soft light sweep on hover */
.btn { overflow: hidden; }
.btn:not(.sticky-apply) { position: relative; }
.btn::after { content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transition: left 0.8s ease; }
.btn:hover::after { left: 150%; }
.btn { transition: transform 0.2s ease, box-shadow 0.3s ease, opacity 0.2s; }
.btn:hover { box-shadow: 0 10px 34px rgba(240, 195, 106, 0.38); }

/* Form: focus glow, selection pop, lift */
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px rgba(240, 195, 106, 0.16); }
input, textarea, select { transition: border-color 0.25s ease, box-shadow 0.3s ease, background 0.25s ease; }
.chip span { transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.2s ease; }
.chip input:checked + span { animation: fxPop 0.3s ease; }
.ticket .t-body { transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.3s ease, transform 0.25s ease; }
.ticket input:checked + .t-body { animation: fxPop 0.35s ease; }
@keyframes fxPop { 50% { transform: scale(1.035); } }
@media (hover: hover) {
  .chip span:hover { border-color: var(--gold-2); }
  .ticket .t-body:hover { transform: translateY(-3px); border-color: rgba(240, 195, 106, 0.5); }
  .card { transition: border-color 0.4s ease, box-shadow 0.4s ease; }
  .card:hover { border-color: rgba(240, 195, 106, 0.28); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3); }
}

/* Success: the check pops in with a gold ring */
.done:not(.hidden) .check { animation: fxCheck 0.9s cubic-bezier(.2, 1.3, .4, 1) both, fxRing 1.8s ease-out 0.5s 1 both; }
.done:not(.hidden) h2, .done:not(.hidden) p { animation: fxUp 0.9s cubic-bezier(.2, .7, .2, 1) both; }
.done:not(.hidden) h2 { animation-delay: 0.35s; }
.done:not(.hidden) p { animation-delay: 0.55s; }
@keyframes fxCheck { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fxRing { from { box-shadow: 0 0 0 0 rgba(240, 195, 106, 0.55); } to { box-shadow: 0 0 0 40px rgba(240, 195, 106, 0); } }

@media (prefers-reduced-motion: reduce) {
  .fx-hero > *, .fx .fx-reveal { opacity: 1; transform: none; animation: none; transition: none; }
  #fxProgress, .btn::after { display: none; }
  .chip input:checked + span, .ticket input:checked + .t-body, .done:not(.hidden) * { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Balanced headline wrapping, no lonely last words */
h1, h2, h3, .grad-title, .sec-title, .pull, blockquote { text-wrap: balance; }

/* Site footer */
.site-foot { text-align:center; padding:30px 20px 44px; border-top:1px solid var(--line); font-size:12px; color:var(--gray-500); }
.site-foot p { margin:4px 0; }
.site-foot a { color:var(--gray-300); text-decoration:underline; text-underline-offset:3px; }
.site-foot a:hover { color:var(--gold-1); }

/* Skip link */
.skip { position:absolute; left:-9999px; top:8px; z-index:500; padding:10px 16px; border-radius:20px; background:#f0c36a; color:#1a1206; font-size:13px; font-weight:700; text-decoration:none; }
.skip:focus { left:12px; }

/* Bigger tap targets for footer links */
.site-foot a { display:inline-block; padding:12px 8px; }
.site-foot p { margin:0; }

/* Keep the banner from leaving a lonely last word */
.eb-banner span { text-wrap: balance; }

/* Make the spots-left count stand out */
.tag.hot { background:linear-gradient(135deg,#f7d682,#c4963f); color:#1a1206; border-color:transparent; font-weight:700; display:inline-flex; align-items:center; box-shadow:0 0 22px rgba(240,195,106,0.35); }
.tag.hot::before { content:''; width:7px; height:7px; border-radius:50%; background:#1a1206; margin-right:9px; animation:hotPulse 1.8s ease-in-out infinite; }
@keyframes hotPulse { 50% { opacity:0.25; transform:scale(0.7); } }
.spots-big { font-family:'Fraunces',serif; font-weight:500; font-size:clamp(34px,6.5vw,64px); line-height:1.05; letter-spacing:-0.5px; color:#f0c36a; margin:0 auto 22px; text-wrap:balance; }
.sticky-bar span { font-weight:700; }
@media (prefers-reduced-motion: reduce) { .tag.hot::before { animation:none; } }
