/* Homepage, phones only: floating card for the template library (partial tl-float, script tl-float.js).
   Without JS it simply sits at the bottom of the screen; with JS it slides in once the hero is passed. */
@property --tlf-a{syntax:"<angle>";inherits:false;initial-value:0deg}
.tlf{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:44;max-width:26rem;margin:0 auto;transition:transform .5s var(--ease),opacity .35s var(--ease),visibility 0s}
.js .tlf{transform:translateY(calc(100% + 28px));opacity:0;visibility:hidden;pointer-events:none;transition:transform .45s var(--ease),opacity .3s var(--ease),visibility 0s .45s}
.js .tlf.on{transform:none;opacity:1;visibility:visible;pointer-events:auto;transition:transform .55s cubic-bezier(.2,.9,.25,1.15),opacity .3s var(--ease),visibility 0s}
html.menu-open .tlf{display:none}

.tlf-link{position:relative;display:flex;align-items:center;gap:.85rem;min-height:4.25rem;padding:.6rem .7rem .6rem 6.4rem;border-radius:20px;background:linear-gradient(180deg,rgba(28,28,34,.92),rgba(14,14,18,.94));-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 18px 40px -12px rgba(0,0,0,.7),0 0 0 1px var(--line);color:var(--fg);-webkit-tap-highlight-color:transparent;transition:transform .2s var(--ease)}
/* A slow blue light running round the edge */
.tlf-link::before{content:"";position:absolute;inset:0;padding:1px;border-radius:inherit;background:conic-gradient(from var(--tlf-a),transparent 0 62%,var(--blue-hi) 78%,transparent 92%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);animation:tlf-spin 5s linear infinite;pointer-events:none}
.tlf-link:active{transform:scale(.98)}
.tlf-link:focus-visible{outline:2px solid var(--blue-hi);outline-offset:3px}

/* Three phone screenshots fanned out, peeking above the card */
.tlf-fan{position:absolute;left:.8rem;bottom:.5rem;width:4.8rem;height:4.6rem}
.tlf-shot{position:absolute;bottom:0;left:50%;width:1.9rem;height:auto;aspect-ratio:390/844;object-fit:cover;object-position:top;border-radius:7px;background:var(--ink-700);box-shadow:0 0 0 1.5px rgba(255,255,255,.16),0 8px 18px -6px rgba(0,0,0,.8);transform-origin:50% 100%;animation:tlf-bob 4.2s ease-in-out infinite}
.tlf-shot:nth-child(1){--tr:-10deg;--x:-100%;animation-delay:-.6s}
.tlf-shot:nth-child(2){--tr:0deg;--x:-50%;z-index:1;width:2.2rem;bottom:.3rem}
.tlf-shot:nth-child(3){--tr:10deg;--x:0%;animation-delay:-1.4s}
.tlf-shot{transform:translateX(var(--x)) rotate(var(--tr))}

.tlf-body{display:grid;flex:1;min-width:0;gap:.12rem}
.tlf-eyebrow{display:flex;align-items:center;gap:.4rem;font:500 .62rem/1.2 var(--mono);letter-spacing:.18em;text-transform:uppercase;color:var(--blue-hi)}
.tlf-dot{width:6px;height:6px;flex:none;border-radius:50%;background:var(--blue-hi);animation:pulse 2.4s ease-in-out infinite}
.tlf-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 1rem/1.25 var(--display);letter-spacing:-.01em}
.tlf-price{font-size:.78rem;line-height:1.3;color:var(--fg-55)}
.tlf-go{display:grid;place-items:center;flex:none;width:2.4rem;height:2.4rem;border-radius:999px;background:var(--blue);color:#fff;box-shadow:0 6px 16px -4px rgba(45,107,255,.6)}
.tlf-go .ar{width:.8rem;height:.8rem}

.tlf-x{position:absolute;top:-.55rem;right:-.35rem;z-index:2;display:grid;place-items:center;width:1.6rem;height:1.6rem;padding:0;border:0;border-radius:999px;background:var(--ink-700);box-shadow:0 0 0 1px var(--line-hi),0 4px 10px rgba(0,0,0,.5);color:var(--fg-65);cursor:pointer}
.tlf-x[hidden]{display:none}
.tlf-x::after{content:"";position:absolute;inset:-.5rem}
.tlf-x svg{width:.7rem;height:.7rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.tlf-x:hover{color:#fff}

@keyframes tlf-spin{to{--tlf-a:360deg}}
@keyframes tlf-bob{0%,100%{transform:translateX(var(--x)) rotate(var(--tr))}50%{transform:translateX(var(--x)) rotate(var(--tr)) translateY(-3px)}}
@media (min-width:768px){.tlf{display:none}}
