/* ── subscribe.css — the All-Access page ("make the switch") ───────────────────────────────────
   Page-local. The big hardware switch is the homepage closer's .rx-sw, scaled up: chassis, a plate that is
   thrown across with --ease-throw (a control reporting its own state), a top highlight + tight bottom shadow.
   Colours are tokens only. The price beside it whisper-fades (js/subscribe.js?v=18). */

/* One centred stage: "make the" with the switch right beside it, then price, email, terms, button */
.sub-stage { min-height: calc(100vh - var(--head-h, 12rem)); display: grid; place-items: center; padding: var(--s7) var(--gutter) var(--s8); }
.sub-form { width: min(100%, 44rem); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); text-align: center; }
.sub-head { width: max-content; max-width: 100vw; justify-self: start; position: relative; left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s3) var(--s4); }
.sub-title { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(4.8rem, 9vw, 8.4rem); line-height: .9; letter-spacing: var(--track-display); }
.sub-switch { display: grid; justify-items: center; }
.sub-price { margin: 0; font-family: var(--font-display); font-size: clamp(3.6rem, 6vw, 5.2rem); line-height: .95; letter-spacing: var(--track-display); }
.sub-price small { font-family: var(--font-data); font-size: .3em; letter-spacing: var(--track-data); margin-left: .35em; }
.sub-price em { display: block; margin-top: var(--s1); font-family: var(--font-data); font-size: var(--fs-data); font-style: normal; letter-spacing: var(--track-data); text-transform: uppercase; color: var(--fg-muted); }

/* the switch is the homepage's .rx-sw, same size, same flat plate, same throw */
.sub-sw {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  width: 24rem; height: 5.2rem; padding: 0; cursor: pointer;
  border: 1.5px solid var(--fg); border-radius: var(--r-ctl); background: var(--fg); color: var(--ground);
  font-family: var(--font-data); font-size: var(--fs-data); letter-spacing: var(--track-data); text-transform: uppercase;
}
.sub-sw-plate {
  position: absolute; top: .35rem; left: .35rem; width: calc(50% - .35rem); height: calc(100% - .7rem); border-radius: calc(var(--r-ctl) - .15rem);
  background: var(--switch-plate); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ground) 18%, transparent);
}
.sub-sw[aria-checked="true"] .sub-sw-plate { transform: translateX(100%); }
.sub-sw-lab { position: relative; z-index: 1; display: grid; place-items: center; color: color-mix(in srgb, var(--ground) 62%, transparent); }
.sub-sw[aria-checked="false"] .sub-sw-lab:first-of-type, .sub-sw[aria-checked="true"] .sub-sw-lab:last-of-type { color: var(--ground); }
.sub-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Same slide as the homepage switch. WHY `.sub-sw .x`: base.css puts a colour-only `transition` on
   `.sheet *:not(img):not(video)` (0,1,2), which beats a one-class selector and made the plate snap with no
   slide; two classes (0,2,0) win and the transform is listed explicitly. Long ease-in-out, no overshoot. */
.sub-sw .sub-sw-plate { transition: transform 1000ms cubic-bezier(.65, 0, .25, 1), background-color var(--dur-theme) var(--ease-throw); will-change: transform; }
.sub-sw .sub-sw-lab { transition: color 520ms ease-in-out 160ms; }
@media (prefers-reduced-motion: reduce) { .sub-sw .sub-sw-plate, .sub-sw .sub-sw-lab { transition: none; } }

/* form fields: left-aligned label over a full-width field, one line only (the levels meter is hidden here), consent and button centred */
#subscribe .field { text-align: left; }
#subscribe .field-meter { display: none; }
#subscribe .field-consent { display: flex; align-items: flex-start; justify-content: center; gap: var(--s2); margin: 0; text-align: left; }
#subscribe .field-consent input { flex: none; margin: 0; }
#subscribe .field-consent label { margin: 0; line-height: 1.5; }
#subscribe .p-buy-row { display: flex; justify-content: center; margin: 0; }
#subscribe .form-submit { width: 100%; justify-content: center; text-align: center; }
#subscribe .form-status { margin: 0; min-height: 0; }
