/* /buy (design A, the one pill): the plan's name, and one glass control that becomes each step. */
.by { padding-top: clamp(28px, 5vw, 70px); }
.by-face { width: clamp(110px, 11vw, 150px); margin-bottom: 4px; }
.by-plan { font-size: clamp(96px, 17vw, 240px); min-height: .82em; }
.by-plan.by-ask { font-size: clamp(56px, 8vw, 104px); }
.by-sub { margin: 14px 0 0; font: 400 clamp(22px, 2.4vw, 30px)/1.1 var(--display); color: var(--mute); font-variant-numeric: tabular-nums; }
.by-sub:empty { display: none; }
.by-stage { width: min(460px, 100%); margin-top: clamp(30px, 4vw, 44px); display: grid; gap: 14px; text-align: left; }
.by-stage .btn { width: 100%; min-height: 58px; font-size: 16.5px; }
.by-stage .fine { margin: 6px 0 0; text-align: center; }

/* The pill: an address, a password, or a code, with its one round button. */
.by-pill { display: flex; align-items: center; gap: 8px; min-height: 62px; padding: 6px 6px 6px 22px; border-radius: 999px; background: var(--card); border: 1px solid var(--card-line); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 18px 50px rgba(10, 12, 30, .16); }
.by-pill input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 17px/1 var(--text); outline: none; }
.by-pill input::placeholder { color: var(--mute); }
.by-pill:focus-within { border-color: var(--ink); }
.by-pill[data-tone="needs"] { border-color: var(--needs); }
.by-pill[aria-disabled="true"] { opacity: .55; }
.by-chip { flex: none; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 9px 12px; margin-left: -10px; border: 0; border-radius: 999px; background: var(--line); color: var(--ink); font: 400 14.5px/1 var(--text); cursor: pointer; }
.by-go { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--btn); color: var(--btn-ink); cursor: pointer; }
.by-go:disabled { opacity: .5; cursor: default; }
.by-go svg { width: 22px; height: 22px; }
.by-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: by-spin .8s linear infinite; }
@keyframes by-spin { to { transform: rotate(1turn); } }

/* One input drawn as six slots: paste and the phone's code suggestion land in the real field. */
.by-code { position: relative; padding: 10px; border-radius: 28px; background: var(--card); border: 1px solid var(--card-line); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.by-code input { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 1em; outline: none; }
.by-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; pointer-events: none; }
.by-slot { display: grid; place-items: center; aspect-ratio: 5 / 6; border-radius: 14px; border: 1px solid var(--line); font: 450 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.by-code:focus-within .by-slot.is-at { border-color: var(--ink); box-shadow: 0 0 0 3px var(--line); }
.by-code[data-tone="needs"] .by-slot { border-color: var(--needs); }

/* What happened, in a sentence, with the site's status colors. */
.by-note { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 15.5px; line-height: 1.45; text-wrap: pretty; }
.by-note::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-1px); background: var(--tone, var(--ink)); }
.by-note[data-tone="work"] { --tone: var(--work); }
.by-note[data-tone="needs"] { --tone: var(--needs); }
.by-note[data-tone="done"] { --tone: var(--done); }
.by-note b { font-weight: 500; }
.by-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 0; }
.by-link { padding: 8px 2px; border: 0; background: none; color: var(--mute); font: 400 15px/1 var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; cursor: pointer; }
.by-link:hover { color: var(--ink); }
/* Sign in with Apple, in the pill's shape: Apple's black button under a day sky and its white one
   at night (Apple's guidelines allow only these two). sky.js sets the root's color-scheme by the
   hour; light-dark() reads it. Browsers without light-dark() keep the black. */
.by-or { display: flex; align-items: center; gap: 12px; margin: 2px 0; color: var(--mute); font: 400 14px/1 var(--text); }
.by-or::before, .by-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.by-apple { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; border: 0; border-radius: 999px; background: #000; color: #fff; background: light-dark(#000, #fff); color: light-dark(#fff, #000); font: 500 17px/1 -apple-system, BlinkMacSystemFont, var(--text); cursor: pointer; }
.by-apple svg { width: 17px; height: 20px; margin-top: -3px; }
.by-apple:disabled { opacity: .55; cursor: default; }
.by-apple:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* /account (design A): the plan again, how much of it is left, credit, and the history. */
.acct-grid { width: min(860px, 100%); margin-top: 36px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; text-align: left; }
.acct-ring { display: grid; place-items: center; align-content: center; padding: 22px; border-radius: 28px; }
.acct-ring svg { width: 170px; height: 170px; }
.acct-ring p { margin: 6px 0 0; text-align: center; font-size: 14px; color: var(--mute); }
.acct-side { display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: 28px; }
.acct-meter { display: grid; gap: 6px; }
.acct-meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; }
.acct-meter-top b { font-weight: 500; }
.acct-meter-top span { color: var(--mute); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.acct-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.acct-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.acct-credit { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.acct-credit b { font: 450 32px/1 var(--display); font-variant-numeric: tabular-nums; }
.acct-credit span { color: var(--mute); font-size: 14px; text-align: right; }
.acct-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-hist { grid-column: 1 / -1; padding: 8px 22px 10px; border-radius: 28px; }
.acct-hist h2 { margin: 14px 0 6px; font: 500 24px/1 var(--display); }
.acct-hist > p { margin: 8px 0 12px; color: var(--mute); font-size: 15px; }
.acct-act { list-style: none; margin: 0; padding: 0; }
.acct-act li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 2px 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; }
.acct-act time { color: var(--mute); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.acct-act .what b { display: block; font-weight: 500; }
.acct-act .what span { color: var(--mute); font-size: 13.5px; }
.acct-act .amt { text-align: right; font-variant-numeric: tabular-nums; }
.acct-act .amt a { display: block; color: var(--mute); font-size: 13px; }
.acct-foot { width: min(860px, 100%); margin-top: 14px; }
@media (max-width: 760px) {
  .acct-grid { grid-template-columns: minmax(0, 1fr); }
  .acct-act li { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 2px 10px; }
}
