/* /plans: three plan cards and a comparison table. legal.css and guide.css first. */
.wrap.wide { max-width: 1040px; }
.wrap.wide > * { min-width: 0; }   /* grid items: let the table scroll inside .scroll, not widen the page */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: 16px; background: var(--glass-hi); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22); }
.plan h2 { font: 600 18px/24px var(--font-display); }
.plan .price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan .price strong { font: 700 32px/1 var(--font-display); letter-spacing: -.02em; }
.plan .price s { color: var(--fg-3); font-size: 15px; }
.plan .price span, .plan .desc { color: var(--fg-2); font-size: 14px; line-height: 20px; }
.plan .btn { justify-self: start; margin-top: 4px; }

.scroll { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overscroll-behavior-x: contain; }
.scroll:focus-visible { outline-offset: -2px; }
table.compare { min-width: 680px; table-layout: fixed; font-size: 14px; line-height: 20px; }
.compare td:first-child, .compare th[scope="row"] { width: 34%; }
.compare th, .compare td { padding: 11px 12px 11px 0; }
.compare td { position: relative; }   /* keeps the hidden .vh labels inside the scroller, so they do not widen the page */
.compare thead th { font: 600 15px/20px var(--font-display); color: var(--fg); position: sticky; top: 0; background: var(--space); }
.compare th[scope="row"] { font: 400 14px/20px var(--font-sans); color: var(--fg); position: sticky; left: 0; background: var(--space); padding-left: 0; }
.compare th[scope="row"] small { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--fg-3); }
.compare tr.group th { padding-top: 28px; font: 600 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--teleport); border-bottom-color: rgba(124,231,255,.3); }
.compare .mark { color: var(--teleport); font-weight: 600; margin-right: 2px; }
.compare td.no, .compare td.notin { color: var(--fg-3); }
.compare .later { display: block; font-size: 12px; line-height: 16px; color: var(--fg-3); }
.compare .later a { color: var(--fg-3); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; line-height: 18px; color: var(--fg-2); text-decoration: none; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3); }
.pill:hover { color: var(--teleport); box-shadow: inset 0 0 0 .5px var(--teleport); }
.compare td.soon { color: var(--fg-3); }

/* Variants for Sergej's decision: planned rows hidden, or the not-in-Tele rows folded away */
.compare.hide-planned [data-planned], .compare.hide-notin [data-notin] { display: none; }

/* Yearly or monthly for Teams, without scripts: two radios before the cards */
.pricing { display: grid; gap: 14px; }
.billing { justify-self: center; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--glass-hi); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22); }
.billing label { padding: 6px 16px; border-radius: 999px; font: 500 14px/20px var(--font-sans); color: var(--fg-2); cursor: pointer; }
.billing label span { color: var(--teleport); font-size: 12px; margin-left: 4px; }
#bill-y:checked ~ .billing [for="bill-y"], #bill-m:checked ~ .billing [for="bill-m"] { color: var(--fg); background: rgba(255,255,255,.14); }
#bill-y:focus-visible ~ .billing [for="bill-y"], #bill-m:focus-visible ~ .billing [for="bill-m"] { outline: 2px solid var(--teleport); outline-offset: 2px; }
#bill-y:checked ~ .plans .m, #bill-m:checked ~ .plans .y { display: none; }
[hidden] { display: none !important; }
.faq { margin-top: 40px; }
.faq h3 { margin-top: 20px; }
.buy-teams { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.buy-teams label { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/20px var(--font-sans); color: var(--fg-2); }
.buy-teams input { width: 76px; height: 40px; padding: 0 10px; border: 0; border-radius: 12px; font: 500 15px/20px var(--font-sans); color: var(--fg); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 .5px var(--line, rgba(255,255,255,.22)); }
.buy-teams input:focus-visible { outline: 2px solid var(--teleport); outline-offset: 2px; }
.plan .total { font-size: 13px; line-height: 18px; color: var(--fg-3, var(--fg-2)); }
.buy-err { margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--mac-pink, #ff6b9a); overflow-wrap: anywhere; }
.pricing .sandbox { margin-top: 8px; font-size: 13px; color: var(--fg-2); }
.tbb { width: 32px; height: 32px; border-radius: 16px; border: 0; background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.tbb:hover { background: rgba(255,255,255,.1); }
.thanks { position: fixed; inset: 50% auto auto 50%; translate: -50% -50%; margin: 0; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px 26px 20px; border: 0; border-radius: 24px; color: var(--fg); background: rgba(14,15,44,.92); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22), 0 40px 90px rgba(0,0,0,.55); }
.thanks[open] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: start; align-content: start; }
.thanks::backdrop { background: rgba(5,6,26,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.thanks h2 { font-size: 30px; letter-spacing: -.03em; margin: 0; }
.thanks .lead { font-size: 16px; line-height: 23px; }
.thanks .x { position: absolute; top: 12px; right: 12px; margin: 0; }
.thanks .x .tbb { font: 400 20px/1 var(--font-sans); color: var(--fg-2); }
.th-lic { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; }
.th-lic > .btn { width: 100%; }
.th-lic .hint { font-size: 13px; line-height: 18px; color: var(--fg-2); }
.lic { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22); }
.lic code { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 12px/17px var(--font-mono); color: var(--fg); user-select: all; }
.lic .btn { flex: none; }
.wait { display: inline-flex; gap: 6px; height: 10px; }
.wait[hidden] { display: none; }
.wait i { width: 7px; height: 7px; background: var(--teleport); animation: wait 1.2s ease-in-out infinite; }
.wait i:nth-child(2) { animation-delay: .15s; } .wait i:nth-child(3) { animation-delay: .3s; }
@keyframes wait { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .wait i { animation: none; } }
.th-txn { font: 11px/16px var(--font-mono); color: var(--fg-2); user-select: all; overflow-wrap: anywhere; }
