/* zippr.to's account page (/account/): sign in, what zippr costs, the person's plan and their account. Plan cards for the
   page and the buy button, plain rows for the sign-in box, the account's details and the footer. Built on the site's own
   parts (home.css: the blue page, white sheets, ink pills, Bricolage headlines over
   Atkinson text). Which parts show is account.js's (the hidden attribute); nothing here hides by state. */

[hidden] { display: none !important; }

/* ---------- shared ---------- */
body { padding-bottom: 5rem; }
.ac { padding: clamp(.5rem, 3vw, 2.5rem) var(--gutter) 2rem; }
.ac-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ac-who { font-size: var(--step--1); color: var(--muted); overflow-wrap: anywhere; text-align: right; }
.ac-signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 0; border-radius: 999px;
  background: var(--pill-bg); color: var(--pill-ink); font: inherit; font-size: var(--step--1); font-weight: 600; cursor: pointer; }
.ac-signin:hover { background: var(--pill-hover); }
input { font: inherit; color: var(--field-ink); background: var(--field-bg); }
input::placeholder { color: var(--placeholder); }
.a-btn, .a-link, .pc-close { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.a-btn[disabled], .pill[disabled] { opacity: .6; cursor: progress; }
.ac-wait { max-width: 66rem; margin: 1rem auto; color: var(--muted-on-page); font-weight: 600; }
.ac-wrong { color: #B0242C; font-weight: 600; font-size: var(--step--1); }
.ac-wrong + .a-go, .ac-wrong + .pc-go { margin-top: .2rem; }

/* one line at the top: a payment on hold, a purchase being confirmed, a failure with its next step */
.ac-note { --muted: var(--muted-own); --link: var(--link-own); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .75rem 1.25rem; max-width: 66rem; margin: 0 auto 1.25rem; padding: 1rem 1.25rem;
  background: var(--sheet); border-radius: 18px; border-left: 6px solid var(--accent); box-shadow: var(--shadow); }
.ac-note p { max-width: 60ch; font-weight: 700; }
.ac-note[data-tone="warn"] { border-left-color: #8A4600; }
.ac-note[data-tone="stop"] { border-left-color: #B0242C; }
.ac-note-plain { display: block; }

/* ---------- the plan cards ---------- */
.pc { max-width: 66rem; margin: 0 auto; }
.pc-title { font-size: clamp(2.2rem, calc(1.4rem + 3vw), 3.6rem); }
.pc-lede { margin-top: .5rem; font-size: var(--step-1); color: var(--muted-on-page); font-weight: 600; }
.pc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.pc-cards[data-count="1"] { grid-template-columns: minmax(0, 22rem); }
.pc-cards[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 44rem; }
.pc-card { --muted: var(--muted-own); --link: var(--link-own); display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem;
  background: var(--sheet); border-radius: 22px; box-shadow: var(--shadow); }
.pc-card[data-yours="on"] { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.pc-card[data-yours="hold"] { box-shadow: 0 0 0 3px #8A4600, var(--shadow); }
.pc-name { font-family: var(--display); font-weight: 600; font-size: var(--step-2); }
.pc-price { font-family: var(--display); font-weight: 600; font-size: var(--step-3); }
.pc-price small { font-family: var(--body); font-weight: 400; font-size: var(--step--1); color: var(--muted); }
.pc-say { color: var(--muted); }
.pc-chip { align-self: flex-start; padding: .25rem .75rem; border-radius: 999px; font-size: var(--step--1); font-weight: 700; }
.pc-chip-yes { background: #E1F2E8; color: #17723F; }
.pc-chip-on { background: var(--known-bg); color: var(--known-ink); }
.pc-chip-no { background: #E7EBF2; color: #3E4654; }
.pc-chip-hold { background: #FDEBD3; color: #8A4600; }
.pc-pill { align-self: flex-start; margin-top: auto; }
.pc-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; color: var(--link); font-weight: 600; }
.pc-fine { font-size: var(--step--1); color: var(--muted); }
.ac-under { --muted: var(--muted-on-page); margin-top: 1rem; font-weight: 600; }
.pc-acct { --muted: var(--muted-own); --link: var(--link-own); margin-top: 1.25rem; padding: 1.2rem 1.4rem; background: var(--sheet);
  border-radius: 22px; box-shadow: var(--shadow); }
.pc-h2 { font-size: var(--step-2); }
@media (max-width: 760px) {
  .pc-cards, .pc-cards[data-count="2"] { grid-template-columns: 1fr; max-width: none; }
}

/* ---------- the plain rows: the sign-in box, the account's details, the footer ---------- */
.a-sheet { --muted: var(--muted-own); --link: var(--link-own); max-width: 42rem; margin: clamp(.5rem, 3vw, 2rem) auto 0;
  background: var(--sheet); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(1.25rem, 4vw, 2.4rem); }
.a-h1 { font-size: clamp(1.9rem, calc(1.3rem + 2vw), 2.6rem); }
.a-lede { margin-top: .5rem; color: var(--muted); max-width: 40ch; overflow-wrap: anywhere; }
.a-form { display: grid; gap: .45rem; margin-top: 1.25rem; max-width: 24rem; }
.a-label { font-weight: 700; font-size: var(--step--1); }
.a-field { min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 .9rem; }
.a-field[aria-invalid="true"] { border-color: #B0242C; }
.a-code { letter-spacing: .3em; max-width: 12rem; font-variant-numeric: tabular-nums; }
.a-go { justify-self: start; margin-top: .4rem; }
.a-small { margin-top: 1.1rem; font-size: var(--step--1); color: var(--muted); }
.a-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; }
.a-rows { margin-top: .75rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.a-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; grid-template-areas: "k v btn";
  align-items: center; gap: .3rem 1rem; padding: .8rem 1rem; border-top: 1px solid var(--line); }
.a-row:first-child { border-top: 0; }
.a-k { grid-area: k; font-weight: 700; }
.a-v { grid-area: v; overflow-wrap: anywhere; }
.a-btn { grid-area: btn; justify-self: end; display: inline-flex; align-items: center; min-height: 44px; color: var(--link);
  font-weight: 600; text-decoration: none; white-space: nowrap; }
.a-btn:hover { text-decoration: underline; }
.a-stop { color: #B0242C; }
.a-muted { color: var(--muted); }
.a-foot { max-width: 42rem; margin: 1.25rem auto 0; font-size: var(--step--1); color: var(--muted-on-page); }
.a-foot a { color: var(--accent-on-page); font-weight: 600; }
.a-foot-links { margin-top: .4rem; }
.dd-foot { max-width: 66rem; margin-top: 2.5rem; }
@media (max-width: 600px) {
  .a-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k btn" "v v"; }
}

/* ---------- You're in: a new account's way into zippr for Mac. The numbered steps are the install page's own look
   (its .steps), so the two read as one journey. ---------- */
.ac-steps { counter-reset: ac-step; display: grid; gap: 12px; margin-top: 1.25rem; max-width: 34rem; }
.ac-steps li { counter-increment: ac-step; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px;
  align-items: start; font-size: var(--step-0); line-height: 1.5; overflow-wrap: anywhere; }
.ac-steps li::before { content: counter(ac-step); display: flex; align-items: center; justify-content: center; width: 28px;
  height: 28px; margin-top: -1px; border-radius: 50%; background: var(--accent-own); color: var(--on-accent);
  font: 700 15px/1 var(--display); }
.ac-get { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); }
.ac-get a { color: var(--link); font-weight: 600; }
/* on a Mac, step 1 is the Open zippr button (open-zippr.js): level with its number, as wide as its words */
.ac-steps .ac-step-open { align-items: center; }
.ac-open { justify-self: start; }

/* ---------- the Delete sheet: a dialog over the page ---------- */
dialog.pc-sheet { --muted: var(--muted-own); --link: var(--link-own); margin: auto; width: min(26rem, calc(100% - 2rem)); max-height: calc(100% - 2rem);
  padding: 1.6rem; border: 0; color: var(--ink); background: var(--sheet); border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(17, 24, 39, .55); }
dialog.pc-sheet::backdrop { background: rgba(17, 24, 39, .45); }
.pc-sheet .ac-step { display: grid; gap: .45rem; }
.pc-sheet-title { font-size: var(--step-3); }
.pc-sheet-say { color: var(--muted); overflow-wrap: anywhere; }
.pc-label { margin-top: .5rem; font-weight: 700; font-size: var(--step--1); }
.pc-field { min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 .9rem; }
.pc-code { letter-spacing: .3em; max-width: 12rem; }
.ac-fresh-code { display: grid; gap: .45rem; }
.pc-go { justify-self: start; margin-top: .4rem; }
.pc-sheet .pc-fine a { color: var(--link); font-weight: 600; }
.pc-close { display: inline-flex; align-items: center; min-height: 44px; margin-top: .4rem; color: var(--link); font-weight: 600; }
.pill.dd-stop { background: #B0242C; }
.pill.dd-stop:hover { background: #8F1C23; }
