/* The beta seats on the plan cards (site/tools/public_switch.py copies this file into the public site only; the
   opening, 2026-11-23). html[data-seats] is beta.js's read of the service: absent (no script) or "full" = the
   waitlist, "pending" = asking, "open" = Subscribe; html[data-beta="on"] = the Beta user discount shown. Until the
   card comes into view (and in every other state) the price reads as it normally does: "$49 /mo". Then, once: the
   strike drawn through it, the old price shrinking to the side as the new one arrives with its unit, "first month".
   The card's size never changes during it: the price row is one line of fixed height, the line under it is held. */

.seat-act { display: grid; }
.seat-act > * { grid-area: 1 / 1; }
.plan .seat-act .btn { width: 100%; }
/* "Have a code?" under Subscribe, only while the discount is offered (a code replaces it) */
.plan .code-line { display: none; margin: 8px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.plan.hi .code-line { color: var(--pmuted); }
.plan .code-line a { color: inherit; text-decoration: underline; }
html[data-beta="on"] .plan .code-line { display: block; }
/* (a shorter list keeps its own spacing: the card's spare height goes above the button, not between the bullets) */
.plan ul { align-content: start; }
.plan .full-note { align-self: center; justify-self: center; font-size: 15px; font-weight: 600; color: var(--muted); }
.plan.hi .full-note { color: var(--pmuted); }

/* which action shows: Subscribe while open; "Full for now" (no button: the waitlist has one, under the cards) */
html:not([data-seats="open"]) .when-open, html[data-seats="pending"] .when-full, html[data-seats="open"] .when-full {
  visibility: hidden;
}
/* under the cards: shown or not, never a blank held for the other state */
.seats { margin-top: 18px; }
.seats p { margin: 0; }
.seats .when-open { color: var(--text); font-size: 15px; font-weight: 600; }
.seats .when-open b { font-weight: 800; }
.seats .seats-left[hidden], .seats .seats-plain[hidden] { display: none; }
.seats .when-full p { margin: 0 0 10px; font-size: 15px; color: var(--text); }
html:not([data-seats="open"]) .seats .when-open, html[data-seats="open"] .seats .when-full,
html[data-seats="pending"] .seats .when-full { display: none; }

/* the full state: the download is for members; nothing to buy (credits) */
.member { display: none; font-size: 14px; color: var(--muted); align-self: center; margin-right: 4px; }
html:not([data-seats]) .member, html[data-seats="full"] .member { display: inline; }
html:not([data-seats]) .open-only, html[data-seats="full"] .open-only { display: none; }

/* the waitlist form (the site's .signup look, its own handler in beta.js) */
.beta-wl { display: flex; gap: 8px; max-width: 480px; }
.beta-wl input { flex: 1; min-width: 0; height: 50px; border: 1.5px solid var(--nl2); border-radius: 11px; background: var(--night2); padding: 0 14px; font: inherit; font-size: 15px; color: var(--text); }
.beta-wl input::placeholder { color: var(--faint); }
.beta-wl input:focus { outline: none; border-color: var(--accent); }
@media (max-width: 560px) {
  .beta-wl { flex-direction: column; } .beta-wl .btn { width: 100%; }
  .beta-wl input { flex: none; height: 52px; font-size: 16px; }
}

/* the small print at the body's size and tone (the cold read: the line that carries the truth was the dimmest) */
.plan .per, .plan .beta-line { font-size: 14px; color: var(--text); }
.plan.hi .per, .plan.hi .beta-line { color: var(--ink); }

/* the price row: one line; the parts that come and go change width only (max-width), never the row's height */
.plan .price.beta-price { white-space: nowrap; }
.plan .price .was, .plan .price .now, .plan .price small { display: inline-block; vertical-align: baseline; overflow: clip; }
.plan .price .was { position: relative; font-size: 1em; }
.plan .price .now, .plan .price .u-first { max-width: 0; }
.plan .price .u-mo { max-width: 3em; }
.plan .price .u-first { margin-left: 0; }
.plan .price .was::after {
  content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 3px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
}

/* the line under the price: held while the discount may come (pending, or open before the card is seen), shown with it */
.plan .beta-line { display: none; margin: 8px 0 2px; line-height: 1.45; }
html[data-seats="pending"] .plan .beta-line, html[data-beta="on"] .plan .beta-line { display: block; visibility: hidden; }
html[data-beta="on"] .plan.go .beta-line { visibility: visible; }
.plan .beta-line .off { display: inline-block; margin-right: 6px; font-weight: 800; font-size: 13px; line-height: 1;
  color: var(--night); background: var(--accent); padding: 4px 7px; border-radius: 6px; vertical-align: 1px; }
.plan.hi .beta-line .off { color: var(--paper); background: var(--pacc); }

/* the discount, once the card is seen */
html[data-beta="on"] .plan.go .price .was { font-size: .5em; color: var(--muted); margin-right: 10px; }
html[data-beta="on"] .plan.hi.go .price .was { color: var(--pmuted); }
html[data-beta="on"] .plan.go .price .was::after { transform: scaleX(1); }
html[data-beta="on"] .plan.go .price .now { max-width: 4.2em; }
html[data-beta="on"] .plan.go .price .u-mo { max-width: 0; }
html[data-beta="on"] .plan.go .price .u-first { max-width: 7em; margin-left: 6px; }

/* the timing: the strike first (0.1-0.4 s), then the old price to the side as the new one and its line arrive
   (0.45-0.9 s) */
html[data-beta="on"] .plan.go .price .was::after { transition: transform .3s cubic-bezier(.4, 0, .2, 1) .1s; }
html[data-beta="on"] .plan.go .price .was { transition: font-size .4s cubic-bezier(.4, 0, .2, 1) .45s, color .4s .45s, margin .4s .45s; }
html[data-beta="on"] .plan.go .price .now, html[data-beta="on"] .plan.go .price .u-mo,
html[data-beta="on"] .plan.go .price .u-first { transition: max-width .4s cubic-bezier(.2, .7, .2, 1) .45s, margin .4s .45s; }
html[data-beta="on"] .plan .beta-line { clip-path: inset(0 100% 0 0); }
html[data-beta="on"] .plan.go .beta-line { clip-path: inset(0 0 0 0); transition: clip-path .35s cubic-bezier(.2, .7, .2, 1) .55s; }

/* no motion asked: the final state at once */
@media (prefers-reduced-motion: reduce) {
  html[data-beta="on"] .plan .price *, html[data-beta="on"] .plan .price .was::after, html[data-beta="on"] .plan .beta-line {
    transition: none !important;
  }
}

/* a sentence for screen readers only (the visible prices are hidden from them: one plain line instead) */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the download page's line about plans */
.st-open { display: none; }
html[data-seats="open"] .st-open { display: inline; }
html[data-seats="open"] .st-full, html[data-seats="pending"] .st-full { display: none; }
