/*
 * bd-account.css: /account/ after the paywall redesign (2026-11-01). Loaded only by the membership service's account
 * page (membership/templates/account.html, Site.account(): css_url, account_css_url), after bd-membership.css.
 * Below, verbatim: docs/paywall/prototype-one-screen-2026-11-01/v3/full-flow/IMPLEMENTATION-SPEC.md Appendix A (the
 * prototype stylesheet with production hook names). Behaviour: bd-membership.js Account and AccountCheckoutHost.
 */
/* bd-account.css: /account/ (v5, part AC): the paywall's visual language (S/v4/src/new.css.html, bd-membership.css tokens).
   Ids in brackets are the manifest's change ids. */
:root {
  --a-bg: #0a0a0a; --a-panel: #141414; --a-field: #1a1a1a; --a-line: #707070; --a-rule: #2a2a2a;
  --a-text: #fff; --a-soft: #a0a0a0; --a-accent: #ffe135; --a-accent-hover: #ffd700; --a-on-accent: #0a0a0a;
  --a-danger: #ffb3ac; --a-danger-line: #e0564d;
  --a-head: 'Satoshi', system-ui, -apple-system, sans-serif;
  --a-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.acct-page { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--a-bg); color: var(--a-text);
  font: 400 16px/1.55 var(--a-ui); -webkit-font-smoothing: antialiased; }
.acct-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* [AC1] the paper's own header: a 4 px yellow rule and the wordmark, as on the paywall sheet */
.acct-head { display: flex; justify-content: center; align-items: center; padding: 18px 16px 16px;
  background: linear-gradient(var(--a-accent), var(--a-accent)) top / 100% 4px no-repeat, var(--a-bg); border-bottom: 1px solid var(--a-rule); }
.acct-logo { display: block; width: 190px; line-height: 0; }
.acct-logo svg { display: block; width: 100%; height: auto; }
.acct-logo:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 4px; }

.acct { flex: 1 0 auto; width: 100%; max-width: 34rem; margin: 0 auto; padding: 32px 16px 40px; }
.acct-loading { margin: 0; color: var(--a-soft); font-size: 15px; }
.acct-kicker { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--a-soft); }

/* [AC2] the headline: Satoshi 900 italic uppercase, the last words yellow */
.acct-title { margin: 0 0 14px; font: italic 900 34px/.96 var(--a-head); letter-spacing: -.02em; text-transform: uppercase; color: var(--a-text); }
.acct-title em { font-style: italic; color: var(--a-accent); white-space: nowrap; }
.acct-title:focus { outline: none; }
.acct-lede { margin: 0 0 22px; max-width: 46ch; font-size: 16px; line-height: 1.55; color: #d6d6d6; }
.acct-lede strong { color: var(--a-text); font-weight: 700; overflow-wrap: anywhere; }

/* fields: visible label above, #1a1a1a with the #707070 border, 52 px */
.acct-form { display: grid; gap: 8px; margin: 0 0 18px; }
.acct-label { font-size: 13px; font-weight: 600; color: var(--a-text); }
.acct-input { width: 100%; min-height: 52px; padding: 12px 14px; font: 400 16px/1.3 var(--a-ui); color: var(--a-text); background: var(--a-field);
  border: 1px solid var(--a-line); border-radius: 2px; -webkit-appearance: none; appearance: none; }
.acct-input:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; border-color: var(--a-accent); }
.acct-input[aria-invalid='true'], .acct-input[aria-invalid='true']:focus-visible { border-color: var(--a-danger-line); box-shadow: 0 0 0 1px var(--a-danger-line);
  outline: 2px solid var(--a-danger-line); outline-offset: 2px; }
.acct-input--code { max-width: 13rem; font-size: 24px; font-weight: 600; letter-spacing: .32em; font-variant-numeric: tabular-nums; }
.acct-hint { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: var(--a-soft); }
/* [AC6] what happened and what to do, under the field, no "Error:" prefix */
.acct-msg { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 500; color: var(--a-danger); }
.acct-msg:empty { display: none; }
.acct-msg--card { margin-top: 12px; }

/* buttons: one yellow per screen; secondary outlined white */
.acct-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin: 0; padding: 0 20px;
  font: 800 14.5px/1.2 var(--a-ui); letter-spacing: .05em; text-transform: uppercase; text-align: center; text-decoration: none;
  border-radius: 2px; border: 1.5px solid transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.acct-btn--yellow { margin-top: 6px; background: var(--a-accent); border-color: var(--a-accent); color: var(--a-on-accent); }
.acct-btn--yellow:hover { background: var(--a-accent-hover); border-color: var(--a-accent-hover); }
.acct-btn--yellow:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.acct-btn--outline { min-height: 48px; background: transparent; color: var(--a-text); border-color: #8a8a8a; font-weight: 700; font-size: 14px; }
.acct-btn--outline:hover { border-color: #fff; }
.acct-btn--outline:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.acct-btn[disabled], .acct-btn[aria-busy='true'] { opacity: .6; cursor: progress; }

/* links that don't move the reader forward: white, underlined */
.acct-wlink { all: unset; cursor: pointer; color: var(--a-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.acct-wlink:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.acct-wlink[disabled] { color: var(--a-soft); text-decoration: none; cursor: default; font-weight: 500; }
.acct-aside { margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--a-soft); }
.acct-aside--rule { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--a-rule); }
.acct-aside--center { text-align: center; margin-top: 22px; }
.acct-aside--links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.acct-fine { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--a-soft); text-align: center; }
.acct-fine--card { text-align: left; margin-top: 10px; }

/* [AC10] the member card: the gate card's family (panel, 4 px yellow rule), facts as label / value rows */
.acct-card { margin: 0; padding: 18px 18px 20px; background: linear-gradient(var(--a-accent), var(--a-accent)) top / 100% 4px no-repeat, var(--a-panel);
  border: 1px solid var(--a-rule); border-radius: 6px; }
.acct-facts { margin: 0; padding: 0; }
.acct-fact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--a-rule); }
.acct-fact:first-child { padding-top: 4px; }
.acct-fact:last-child { border-bottom: 0; padding-bottom: 4px; }
.acct-fact dt { font-size: 13px; font-weight: 600; color: var(--a-soft); line-height: 1.45; }
.acct-fact__sub { display: block; font-weight: 400; font-size: 14px; color: var(--a-soft); }
.acct-fact dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--a-text); line-height: 1.4; overflow-wrap: anywhere; }
.acct-fact__note { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--a-soft); }
.acct-fact--none dd { color: var(--a-soft); }
.acct-actions { display: grid; gap: 10px; margin-top: 16px; }
.acct-actions .acct-btn--yellow { margin-top: 0; }
.acct-actions--confirm { margin-top: 0; }

/* [AC12] cancel: one step, in place, stated plainly */
.acct-confirm { margin: 16px 0 0; padding: 16px; background: var(--a-bg); border: 1px solid #3a3a3a; border-radius: 4px; }
.acct-confirm__q { margin: 0 0 8px; font: 700 19px/1.3 var(--a-head); color: var(--a-text); }
.acct-confirm__q:focus { outline: none; }
.acct-confirm__text { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: #d6d6d6; }
.acct-confirm__text strong { color: var(--a-text); }
[data-bd-acct-confirm-open] [data-bd-acct-actions], [data-bd-acct-confirm-open] [data-bd-acct-portal-note] { display: none; }

.acct-foot { padding: 22px 16px 32px; border-top: 1px solid var(--a-rule); }
.acct-foot p { max-width: 34rem; margin: 0 auto 8px; font-size: 13.5px; line-height: 1.5; color: var(--a-soft); }
.acct-foot p:last-child { margin-bottom: 0; }
.acct-foot .acct-wlink { font-weight: 500; }

@media (min-width: 768px) {
  .acct-head { padding: 22px 24px 20px; }
  .acct-logo { width: 230px; }
  .acct { max-width: 36rem; padding: 64px 24px 72px; }
  .acct-title { font-size: 44px; }
  .acct-lede { font-size: 17px; }
  .acct-card { padding: 22px 26px 24px; }
  .acct-fact { grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; }
  .acct-actions { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .acct-btn--outline { font-size: 13.5px; padding: 0 14px; }
  /* a canceled member: Resume (yellow) and the Stripe button, each the full width */
  .acct-actions:has(> .acct-btn--yellow:not([hidden])) > .acct-btn { grid-column: 1 / -1; }
  /* the cancel question: its two answers side by side, the same size */
  .acct-actions--confirm { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .acct-actions--confirm > .acct-btn { grid-column: auto !important; font-size: 13.5px; padding: 0 12px; }
  .acct-foot { padding: 28px 24px 40px; }
  .acct-foot p { max-width: 33rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ───── [AC8, AC18] v1's checkout, exactly (S/v3/src/css.html, .pt3 rules re-scoped to .acct-v1) ───── */
/* [C4, A4] stacked plan cards */
.acct-v1 .pt-plans { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.acct-v1 .pt-plan { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 14px; background: #141414; border: 1px solid #3a3a3a; border-radius: 6px; cursor: pointer; }
.acct-v1 .pt-plan.is-selected { background: #17160c; border-color: #ffe135; box-shadow: inset 0 0 0 1px #ffe135; }
.acct-v1 .pt-plan__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.acct-v1 .pt-plan__radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #8a8a8a; display: grid; place-items: center; }
.acct-v1 .pt-plan.is-selected .pt-plan__radio { border-color: #ffe135; }
.acct-v1 .pt-plan.is-selected .pt-plan__radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #ffe135; }
.acct-v1 .pt-plan:has(.pt-plan__input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.acct-v1 .pt-plan__text { display: grid; gap: 2px; min-width: 0; }
.acct-v1 .pt-plan__price { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.2; }
.acct-v1 .pt-plan__sub { font-size: 13px; color: #a0a0a0; line-height: 1.35; }
.acct-v1 .pt-plan__sub strong { color: #fff; font-weight: 700; }
.acct-v1 .pt-plan__badge { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #0a0a0a; background: #ffe135; padding: 4px 7px; border-radius: 2px; white-space: nowrap; }

/* [A5] value lines with yellow ticks */
.acct-v1 .pt-values { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.acct-v1 .pt-values li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.4; color: #e8e8e8; }
.acct-v1 .pt-values li::before { content: ''; position: absolute; left: 2px; top: .28em; width: 12px; height: 7px; border-left: 2px solid #ffe135; border-bottom: 2px solid #ffe135; transform: rotate(-45deg); }
.acct-v1 .pt-values__wide { display: none; }

/* the pay bar [C3, C5, C6]: pinned to the bottom of the screen on phones */
.acct-v1 .pt-bar {
  position: sticky; bottom: 0; z-index: 2; margin: auto calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 0;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: #101010; border-top: 1px solid #2a2a2a; box-shadow: 0 -12px 24px rgba(0, 0, 0, .55);
}
.acct-v1 .pt-consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 10px; margin: 0; padding: 10px 12px;
  background: #0a0a0a; border: 1px solid #2a2a2a; border-radius: 4px; transition: border-color .15s ease, box-shadow .15s ease; }
.acct-v1 .pt-consent .bd-gate__disclosure { font-size: 13px; line-height: 1.45; color: #fff; }   /* [AC19] v1 12.5px -> 13px */
.acct-v1 .pt-consent .bd-gate__disclosure strong { font-weight: 700; }
.acct-v1 .pt-check { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin: 1px 0 0; border: 2px solid #ffe135; border-radius: 3px;
  background: #1a1a1a; cursor: pointer; display: grid; place-items: center; }
.acct-v1 .pt-check:checked { background: #ffe135; }
.acct-v1 .pt-check:checked::after { content: ''; width: 10px; height: 5px; margin-top: -3px; border-left: 2.5px solid #0a0a0a; border-bottom: 2.5px solid #0a0a0a; transform: rotate(-45deg); }
.acct-v1 .pt-check:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.acct-v1 .pt-termslink { font-size: inherit; font-weight: 600; }
/* [D4] an unticked tap: the box pulses yellow twice and a plain line sits right above the pay button */
@keyframes ptPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 225, 53, 0); } 50% { box-shadow: 0 0 0 6px rgba(255, 225, 53, .55); } 100% { box-shadow: 0 0 0 3px rgba(255, 225, 53, .3); } }
.acct-v1 .pt-consent.is-nudged { border-color: #ffe135; box-shadow: 0 0 0 3px rgba(255, 225, 53, .3); animation: ptPulse .2s ease-in-out 2; }
.acct-v1 .pt-nudge { margin: 0 0 8px; font-size: 13px; font-weight: 600; line-height: 1.4; color: #fff; }
.acct-v1 .pt-nudge:empty { display: none; }
.acct-v1 .pt-due { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 2px 8px; }
.acct-v1 .pt-due span { font-size: 13px; color: #a0a0a0; }
.acct-v1 .pt-due strong { font-size: 15px; font-weight: 800; color: #fff; }
/* [B1] the wallet button in Stripe's white theme, 50 px */
.acct-v1 .pt-wallet { display: flex; align-items: center; justify-content: center; gap: .35rem; width: 100%; height: 50px; padding: 0;
  background: #fff; color: #000; border: 0; border-radius: 4px; font: 600 1.2rem/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; cursor: pointer; }
.acct-v1 .pt-wallet:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }

/* [B2] Pay by card: a real secondary button */
.acct-v1 .pt-cardbtn { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; margin-top: 8px; padding: 0;
  background: transparent; color: #fff; border: 1.5px solid #8a8a8a; border-radius: 2px; cursor: pointer;
  font: 700 14px/1 var(--a-ui); letter-spacing: .06em; text-transform: uppercase; }
.acct-v1 .pt-cardbtn:hover { border-color: #fff; }
.acct-v1 .pt-cardbtn:focus-visible { outline: 2px solid #ffe135; outline-offset: 2px; }
.acct-v1 .pt-member { margin: 10px 0 0; font-size: 13px; color: #a0a0a0; text-align: center; }
/* [C5] the full terms in a sheet over the bar; the reassuring sentence in white */
.acct-v1 .pt-terms-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px));
  background: #141414; border-top: 1px solid #3a3a3a; border-radius: 10px 10px 0 0; box-shadow: 0 -24px 48px rgba(0, 0, 0, .7); }
.acct-v1 .pt-terms-sheet[hidden] { display: none; }
.acct-v1 .pt-terms-sheet__title { margin: 0 0 8px; font: 800 13px/1.3 var(--a-ui); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.acct-v1 .pt-terms-sheet__text { margin: 0; font-size: 14.5px; line-height: 1.55; color: #a0a0a0; }
.acct-v1 .pt-terms-sheet__text strong { color: #fff; font-weight: 600; }
.acct-v1 .pt-terms-done { margin-top: 14px; }
/* allowed difference from v1: errors in red (owner note 5), not the yellow pulse */
.acct-v1 .pt-consent.has-error { border-color: var(--a-danger-line); box-shadow: 0 0 0 1px var(--a-danger-line); }
.acct-v1 .pt-nudge { color: var(--a-danger); }
.acct-v1 .pt-wlink { all: unset; cursor: pointer; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.acct-v1 .pt-wlink:focus-visible { outline: 2px solid #ffe135; outline-offset: 2px; }
@media (min-width: 768px) {
  .acct-v1 .pt-values { gap: 8px; margin-bottom: 22px; }
  .acct-v1 .pt-values li { font-size: 15px; }
  /* [AC20] the pay bar stays pinned on desktop too, so Due today and the pay button are visible at every height;
     it takes the phone bar's surface only while it is stuck (data-bd-acct-bar-sentinel, account.js) */
  .acct-v1 .pt-bar { position: sticky; bottom: 0; z-index: 2; margin: 0 -24px; padding: 12px 24px 14px; background: var(--a-bg);
    border-top: 1px solid transparent; box-shadow: none; }
  .acct-v1 .pt-bar.is-stuck { background: #101010; border-top-color: #2a2a2a; box-shadow: 0 -12px 24px rgba(0, 0, 0, .55); }
  .acct-v1 .pt-consent .bd-gate__disclosure { font-size: 14px; line-height: 1.5; }   /* [AC19] */
  .acct-v1 .pt-terms-sheet { padding: 16px 18px 18px; border: 1px solid #3a3a3a; border-radius: 6px; }
}

/* the card path (v1 [B4, A8]): the wallet stays a button above the card fields; the yellow pay button replaces the
   wallet and Pay by card in the bar */
.acct-v1 .pt-cardzone { margin: 0 0 14px; scroll-margin-top: 16px; }
.acct-v1 .pt-card { display: flex; flex-direction: column; gap: .5rem; margin-top: 10px; padding: 12px; background: #141414; border: 1px solid #2a2a2a; border-radius: 4px; }
.acct-v1 .pt-card__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.acct-v1 .pt-card .acct-input { width: 100%; min-width: 0; min-height: 48px; }
.acct-v1 .pt-lock { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 13px; color: #a0a0a0; }
.acct-v1 .pt-lock svg { color: #fff; flex: none; }
.acct-v1 .pt-paycard { width: 100%; min-height: 50px; margin-top: 0; }
.acct-bar-sentinel { display: block; height: 1px; }

/* production additions (not in the prototype): the test-mode line, the Stripe slots, the progress line */
.acct-mode { margin: 0 0 16px; padding: 8px 10px; font-size: 13px; line-height: 1.45; color: var(--a-soft); border: 1px solid #3a3a3a; border-radius: 4px; }
.acct-mode strong { color: var(--a-text); }
.acct-v1 .pt-wallet-slot { width: 100%; min-height: 50px; }
.acct-v1 .pt-wallet-slot[data-state='none'] { display: none; }
.acct-v1 .pt-cardzone .pt-wallet-slot:empty { display: none; }
.acct-v1 .pt-progress { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--a-soft); text-align: center; }
.acct-v1 .pt-progress:empty { display: none; }
.acct-v1 .pt-cardbtn[hidden], .acct-v1 .pt-paycard[hidden] { display: none; }

/* production addition (2026-11-01): in Appendix B the pay bar sits inside <form id="bd-checkout-form">, whose box is only
   as tall as the bar, so position: sticky had no room to move (a sticky box stays inside its containing block). The
   form's box is dissolved; its controls still submit with it. The bar can then travel the whole checkout (.acct-v1), as
   AC20 measures (Due today and the pay button inside the window at 390x664, 1366x768, 1280x800). */
.acct-v1 #bd-checkout-form { display: contents; }

/* Owner, 2026-11-01: "Full terms · Privacy policy" under the agreement, in the box's second column (as on the story
   paywall and /subscribe/). */
.acct-v1 .pt-consent .pt-legal { grid-column: 2; margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: #fff; }
@media (min-width: 48rem) { .acct-v1 .pt-consent .pt-legal { font-size: 14px; } }
