/* "5 million tokens included" ON / OFF with a lilac light running around the border. */
.plan-tokens{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0 4px;padding:12px 14px;border-radius:14px;background:rgba(164,134,223,.07);border:1px solid rgba(164,134,223,.22)}
.plan-tokens-text{position:relative;min-width:0}
.plan-tokens-label{font-size:13.5px;font-weight:600;line-height:1.35;color:#e9e2fb;text-decoration:underline dotted rgba(205,186,255,.75);text-decoration-thickness:1.5px;text-underline-offset:4px;cursor:help;outline:none}
.plan-tokens-label:focus-visible{border-radius:4px;box-shadow:0 0 0 2px rgba(164,134,223,.7)}
.plan-tokens-tip{position:absolute;left:-6px;bottom:calc(100% + 12px);z-index:30;display:grid;gap:7px;width:min(300px,78vw);padding:14px 16px;border:1px solid rgba(164,134,223,.35);border-radius:14px;background:rgba(18,16,34,.97);box-shadow:0 24px 50px -16px rgba(0,0,0,.75);color:#d9d3ea;font-size:12.8px;font-weight:400;line-height:1.5;text-align:left;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .2s,transform .25s cubic-bezier(.2,.8,.2,1),visibility .2s;pointer-events:none}
.plan-tokens-tip b{color:#fff;font-size:13.5px}
.plan-tokens-tip::after{content:'';position:absolute;left:24px;top:100%;border:7px solid transparent;border-top-color:rgba(18,16,34,.97)}
.plan-tokens-text:hover .plan-tokens-tip,.plan-tokens-label:focus+.plan-tokens-tip{opacity:1;visibility:visible;transform:none}
.tokens-switch{position:relative;flex:none;display:flex;padding:3px;border-radius:12px;isolation:isolate;overflow:hidden}
/* The rotating light: a conic gradient spinning behind a 1.5px gap. */
.tokens-switch::before{content:'';position:absolute;left:50%;top:50%;z-index:-2;width:220%;aspect-ratio:1;background:conic-gradient(from 0deg,transparent 0 55%,rgba(164,134,223,.35) 70%,#c9b3ff 85%,#a486df 92%,transparent 100%);transform:translate(-50%,-50%) rotate(0);animation:tokensSpin 3.2s linear infinite}
.tokens-switch::after{content:'';position:absolute;inset:1.5px;z-index:-1;border-radius:10.5px;background:#191628}
@keyframes tokensSpin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.tokens-switch button{min-width:46px;min-height:32px;padding:0 10px;border:0;border-radius:9px;background:none;color:#8e86a8;font:800 12.5px Inter,system-ui,sans-serif;letter-spacing:.04em;cursor:pointer;transition:background .25s,color .25s,box-shadow .25s}
.tokens-switch button[aria-pressed=true]{background:#a486df;color:#15102a;box-shadow:0 4px 14px -4px rgba(164,134,223,.8)}
.tokens-switch.is-on button[aria-pressed=true]{background:#c9b3ff}
.tokens-switch button:focus-visible{outline:2px solid #e3d8ff;outline-offset:1px}
.plan-tokens-modal{margin:-2px 0 12px}
.plan-tokens-modal[hidden]{display:none}
.plan-tokens-modal .plan-tokens{margin:0}
.plan-tokens-modal .plan-tokens-tip{left:0}
@media(prefers-reduced-motion:reduce){.tokens-switch::before{animation:none}}
/* Nudge (2026-11-21): when the plans come into view the tokens row lights up and the switch
   gives a little bounce, repeating gently until the visitor touches it. */
.plan-tokens{position:relative;transition:border-color .3s,background .3s}
.plan-tokens.is-nudge{border-color:rgba(201,179,255,.6);background:rgba(164,134,223,.12);animation:tokensRowGlow 2.6s ease-in-out infinite}
.plan-tokens.is-nudge::after{content:'';position:absolute;inset:-1px;border-radius:inherit;border:2px solid #c9b3ff;pointer-events:none;opacity:0;animation:tokensRing 2.6s cubic-bezier(.2,.7,.3,1) infinite}
.plan-tokens.is-nudge .tokens-switch{animation:tokensBounce 2.6s cubic-bezier(.3,1.6,.5,1) infinite}
.plan-tokens.is-nudge .tokens-switch::before{animation-duration:1.4s}
@keyframes tokensRowGlow{0%,100%{box-shadow:0 0 0 0 rgba(164,134,223,0)}35%{box-shadow:0 0 26px -4px rgba(164,134,223,.55)}}
@keyframes tokensRing{0%{opacity:.9;transform:scale(1)}60%,100%{opacity:0;transform:scale(1.06,1.35)}}
@keyframes tokensBounce{0%,100%{transform:none}8%{transform:scale(1.12)}16%{transform:scale(.96)}24%{transform:scale(1.04)}32%{transform:none}}
@media(prefers-reduced-motion:reduce){.plan-tokens.is-nudge,.plan-tokens.is-nudge::after,.plan-tokens.is-nudge .tokens-switch{animation:none}.plan-tokens.is-nudge{box-shadow:0 0 0 2px rgba(201,179,255,.6)}}
