/* Signup / checkout: dark price stage, rolling numbers, sliding controls, glowing hand-off to Stripe. */
body.checkout{--ease:cubic-bezier(.22,1,.36,1);--glow:#8fb4ff;--brand:#fff90a}
body.checkout .page-head>*{animation:co-rise .9s var(--ease) both}
body.checkout .page-head>*:nth-child(2){animation-delay:.06s}
body.checkout .page-head>*:nth-child(3){animation-delay:.12s}
body.checkout .form-card{animation:co-rise 1s var(--ease) both;transition:box-shadow .5s var(--ease),transform .5s var(--ease)}
body.checkout .form-card:nth-of-type(1){animation-delay:.18s}
body.checkout .form-card:nth-of-type(2){animation-delay:.3s}
body.checkout .form-card:focus-within{box-shadow:0 24px 60px -28px #0003,0 0 0 1px #0000000d;transform:translateY(-2px)}
@keyframes co-rise{from{opacity:0;transform:translateY(18px);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}

/* Price stage */
.price-stage{position:relative;overflow:hidden;isolation:isolate;margin:20px 0 26px;padding:34px 24px 30px;border-radius:22px;background:#0b0b0c;color:#fff;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;box-shadow:inset 0 1px 0 #ffffff14,0 30px 60px -30px #000a}
.price-stage::before{content:"";position:absolute;top:10px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:4px;background:#ffffff22}
.aurora{position:absolute;inset:auto -20% -55% -20%;height:120%;z-index:-1;filter:blur(38px);opacity:.75;transition:opacity .8s var(--ease)}
.aurora i{position:absolute;bottom:0;width:45%;height:70%;border-radius:50%;background:radial-gradient(closest-side,var(--c,#3b6fd8),transparent);animation:co-drift 9s ease-in-out infinite alternate}
.aurora i:nth-child(1){left:5%;--c:#2f5fc9}
.aurora i:nth-child(2){left:30%;--c:#5aa0ff;animation-duration:11s;animation-delay:-3s}
.aurora i:nth-child(3){left:55%;--c:#2bb3a3;animation-duration:13s;animation-delay:-6s;opacity:.7}
@keyframes co-drift{from{transform:translate3d(-6%,8%,0) scale(1)}to{transform:translate3d(8%,-6%,0) scale(1.18)}}
.price-stage.pulse .aurora{animation:co-flare 1.1s var(--ease)}
@keyframes co-flare{30%{opacity:1;transform:translateY(-8%)}}
.stage-plan{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#ffffffa0}
.stage-price{display:flex;align-items:flex-start;font-size:clamp(44px,8vw,60px);font-weight:600;letter-spacing:-.04em;line-height:1.05;font-variant-numeric:tabular-nums}
.stage-price .cur{font-size:.55em;margin:.18em .06em 0 0;color:#ffffffc0}
.stage-price .cents{color:#ffffff55}
.digits{display:inline-flex}
.digit{display:inline-block;height:1.05em;overflow:hidden;position:relative}
.digit>span{display:flex;flex-direction:column;transition:transform .9s var(--ease)}
.digit>span>b{font-weight:inherit;height:1.05em}
.digit.sep{width:auto}
.digit.in{animation:co-in .6s var(--ease) both}
@keyframes co-in{from{opacity:0;filter:blur(6px);transform:translateY(.3em)}}
.stage-per{font-size:14px;color:#ffffffb0}
.stage-mins{font-size:12.5px;color:#ffffff70;margin-top:4px}
.stage-per,.stage-mins,.stage-plan{transition:opacity .35s,filter .35s}
.price-stage.swap :is(.stage-per,.stage-mins,.stage-plan){opacity:0;filter:blur(4px)}

/* Billing toggle: sliding pill */
body.checkout .toggle{position:relative;isolation:isolate}
body.checkout .toggle .pill{position:absolute;z-index:-1;top:4px;bottom:4px;border-radius:999px;background:#fff;box-shadow:0 2px 10px #0000001a,0 0 0 1px #0000000a;transition:left .55s var(--ease),width .55s var(--ease)}
body.checkout .toggle.ready button[aria-pressed="true"]{background:transparent!important;box-shadow:none!important}
body.checkout .toggle button{transition:color .3s}

/* Plan choices */
body.checkout #plan-choices .choice{transition:transform .4s var(--ease),border-color .3s,background .3s,box-shadow .4s var(--ease)}
body.checkout #plan-choices .choice:hover{transform:translateY(-2px)}
body.checkout #plan-choices .choice:has(input:checked){border-color:#111;background:#111;color:#fff;box-shadow:0 10px 24px -12px #000a}
body.checkout #plan-choices .choice:has(input:checked) input{accent-color:var(--brand)}
body.checkout #plan-choices .choice:active{transform:scale(.97)}

/* Inputs */
body.checkout .form-card input:not([type=checkbox]):not([type=radio]){transition:border-color .3s,box-shadow .4s var(--ease)}
body.checkout .form-card input:not([type=checkbox]):not([type=radio]):focus{border-color:#111;box-shadow:0 0 0 4px #fff90a66}

/* Submit */
body.checkout #go{position:relative;overflow:hidden;width:100%;min-height:54px;font-size:15.5px;transition:transform .35s var(--ease),box-shadow .4s var(--ease)}
body.checkout #go::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,#ffffff8c 50%,transparent 70%);transform:translateX(-120%);animation:co-sheen 4.5s var(--ease) 1.4s infinite}
body.checkout #go:hover{transform:translateY(-2px);box-shadow:0 14px 30px -14px #b6ad00}
body.checkout #go:active{transform:scale(.98)}
@keyframes co-sheen{0%,70%{transform:translateX(-120%)}100%{transform:translateX(120%)}}

/* Hand-off to Stripe */
.handoff{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#f7f7f7;color:#111;opacity:0;transition:opacity .6s var(--ease)}
.handoff.on{opacity:1}
.handoff .orb{width:14px;height:14px;border-radius:50%;background:#111;box-shadow:0 0 0 6px #fff,0 0 30px 14px #fff90a99,0 0 110px 50px #8fb4ff40;margin-bottom:22px;transform:scale(0);transition:transform .9s var(--ease) .15s}
.handoff.on .orb{transform:scale(1);animation:co-breathe 2.2s ease-in-out 1s infinite}
@keyframes co-breathe{50%{box-shadow:0 0 0 8px #fff,0 0 44px 20px #fff90acc,0 0 150px 70px #8fb4ff55}}
.handoff-title{font-size:19px;font-weight:500;margin:0;opacity:0;filter:blur(8px);transform:translateY(8px);transition:all .9s var(--ease) .35s}
.handoff-title em{font-style:normal;color:#2f5fc9}
.handoff-sub{font-size:13px;color:#00000070;margin:0;opacity:0;transition:opacity .9s var(--ease) .6s}
.handoff.on :is(.handoff-title,.handoff-sub){opacity:1;filter:none;transform:none}
.handoff .edge{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 0 0 #5a8cff00;transition:box-shadow 1.6s var(--ease) .5s}
.handoff.on .edge{box-shadow:inset 0 0 100px 2px #fff90a40,inset 0 -40px 120px -30px #fff90a70}

@media (prefers-reduced-motion:reduce){
  body.checkout *,body.checkout *::before,body.checkout *::after{animation:none!important;transition-duration:.01ms!important}
}
.handoff[hidden]{display:none}
