.acct-nav { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.acct-nav .nav-link {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 550; color: var(--muted); text-decoration: none;
}
.acct-nav .nav-link:hover { color: var(--ink); background: var(--fill); }
.acct-nav .nav-login { height: 38px; padding: 0 16px; font-size: 13.5px; }
@keyframes acct-pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }

.bill-page { padding: clamp(28px, 6vw, 64px) 0 72px; }
.bill-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(22px, 3.4vw, 34px);
}
.bill-page h1 { margin: 6px 0 10px; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.05; letter-spacing: -0.035em; }
.bill-page .lede { margin: 0 0 22px; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 60ch; }
.acct-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; }
.acct-head form { margin-top: 6px; }
.bill-page .fine { margin: 10px 0 0; color: var(--faint); font-size: 13px; line-height: 1.45; text-align: left; }
.bill-page .center { text-align: center; }
.note { margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.note p { margin: 0; }
.note p + p { margin-top: 6px; }
.note.ok { background: #eef8f0; color: #17532a; border: 1px solid rgba(23, 83, 42, 0.14); }
.note.warn { background: var(--accent-soft); color: var(--accent-text); border: 1px solid rgba(var(--accent-rgb), 0.22); }

.notfound { text-align: center; padding-top: clamp(56px, 12vh, 120px); }
.notfound .lede { margin-inline: auto; }
.notfound .acct-actions { justify-content: center; }
.auth-card { max-width: 460px; margin: 0 auto; }
/* Auth pages are short: the card sits in the middle of the space above the footer. */
.page-auth .wrap { display: flex; flex-direction: column; justify-content: center; }
.page-auth .foot { margin-top: 0; }
.auth-card h1 { font-size: clamp(26px, 3.6vw, 34px); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; pointer-events: none; }
.auth-form { display: grid; gap: 10px; }
.auth-form label, .field-label { font-size: 13.5px; font-weight: 600; }
.auth-form input[type="email"], .auth-form input[name="code"], .auth-form input[name="note"], .inline-form input[type="email"], .inline-form input[type="text"] {
  height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--fill);
  font: inherit; font-size: 15px; color: var(--ink); width: 100%;
}
.auth-form input[name="code"] { font-size: 22px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
.heard { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; border: 0; }
.heard legend { margin-bottom: 8px; }
.heard-choice {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--fill); font-size: 14px; cursor: pointer;
}
.heard-choice:has(input:checked) { border-color: rgba(var(--accent-rgb), 0.6); background: var(--accent-soft); color: var(--accent-text); }
.heard-choice input { accent-color: var(--accent); margin: 0; }
.auth-again { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.auth-form input:focus, .inline-form input:focus, .heard-choice:has(input:focus-visible) {
  outline: none; background: var(--surface); border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.price-head { text-align: center; margin: 0 auto 30px; max-width: 720px; }
.price-head .lede { margin: 0 auto; }
.price-note { max-width: 900px; margin: 0 auto 18px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.featured { border-color: rgba(var(--accent-rgb), 0.45); }
.plan h2 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.plan .price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-size: 46px; letter-spacing: -0.04em; line-height: 1; }
.plan .price span { color: var(--muted); font-size: 15px; }
.plan .was { color: var(--faint); text-decoration: line-through; font-size: 18px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.4; }
.plan li svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--accent); }
.plan form { margin-top: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text);
  font: 600 12px/1 var(--mono);
}
.billing-switch { display: flex; justify-content: center; gap: 4px; width: max-content; margin: 0 auto 18px; padding: 4px; border-radius: 999px; background: var(--fill); }
.billing-switch a { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.billing-switch a[aria-current] { background: var(--solid); color: var(--on-solid); }
.billing-switch span { margin-left: 4px; color: var(--accent-text); font: 600 11px/1 var(--mono); }
.billing-switch a[aria-current] span { color: inherit; opacity: 0.8; }
.plan .plan-saving { margin: -8px 0 0; text-align: left; color: var(--accent-text); }
.plans.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; }
.plan-credits { margin: 0; font-size: 16px; }
.plan-credits small { display: block; margin-top: 2px; color: var(--accent-text); font: 600 12px/1.3 var(--mono); }
.plan form .fine { margin-top: 8px; }
.extra-credits { max-width: 1080px; margin: 18px auto 0; }
.extra-credits h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.02em; }
.extra-credits p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.extra-credits .fine { margin: 0; text-align: left; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.price-foot { max-width: 1080px; margin: 22px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.price-foot div { font-size: 14px; color: var(--muted); line-height: 1.5; }
.price-foot b { display: block; color: var(--ink); margin-bottom: 4px; }

.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.acct-grid h2 { margin: 0 0 14px; font-size: 18px; letter-spacing: -0.02em; }
.acct-grid > .bill-card { scroll-margin-top: 88px; }
@media (min-width: 761px) { .acct-grid > .earn-card { grid-column: 2; grid-row: 1 / span 2; } }
.set-list { margin: 0; display: grid; }
.set-list > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.set-list > div:first-child { border-top: 0; padding-top: 0; }
.set-list > div:last-child { padding-bottom: 0; }
.set-list dt { font-size: 13.5px; font-weight: 600; color: var(--muted); padding-top: 1px; }
.set-list dd { margin: 0; min-width: 0; display: grid; gap: 6px; justify-items: start; font-size: 14.5px; }
.set-list dd b { font-weight: 600; overflow-wrap: anywhere; }
.set-list dd small { color: var(--faint); font-size: 13px; line-height: 1.45; }
.set-list .btn { height: 38px; padding: 0 14px; font-size: 13.5px; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.stat { background: var(--fill); border-radius: 14px; padding: 12px 14px; }
.stat b { display: block; font-size: 22px; letter-spacing: -0.03em; }
.stat span { font-size: 12.5px; color: var(--muted); }
.quota-bar { height: 10px; border-radius: 999px; background: var(--fill); overflow: hidden; margin: 10px 0 6px; }
.quota-bar span { display: block; height: 100%; background: var(--accent); }
.acct-sub { margin: 20px 0 4px; font-size: 15px; letter-spacing: -0.01em; }
.acct-sub + .fine { text-align: left; }
.big-num { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; margin: 0; }
.ref-link { display: flex; gap: 8px; align-items: center; margin: 8px 0 4px; }
.ref-link input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--fill); font: 500 13.5px var(--mono); color: var(--ink);
}
.ref-link .btn { height: 44px; }
.inline-form { display: flex; gap: 8px; margin-top: 6px; }
.inline-form .btn { height: 48px; }
.rules { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.code-chip { font: 600 13px var(--mono); background: var(--accent-soft); color: var(--accent-text); padding: 4px 8px; border-radius: 8px; }

.payout-card { grid-column: 1 / -1; }
.payout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.payout-head h2 { margin: 0; }
.payout-rule { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--ink); max-width: 70ch; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  font: 600 12px/1 var(--mono); background: var(--fill); color: var(--muted); white-space: nowrap;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.ready { background: #eef8f0; color: #17532a; }
.status-pill.action { background: var(--accent-soft); color: var(--accent-text); }
.status-pill.review { background: #fff6e0; color: #7a5300; }
.payout-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.payout-block { background: var(--fill); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.payout-block h3, .history-title { margin: 0 0 8px; font-size: 15px; letter-spacing: -0.01em; }
.payout-block .fine { margin-top: 6px; }
.payout-block .acct-actions { margin-top: 12px; }
.connect-form { margin-top: 12px; }
.connect-form select {
  flex: 1; min-width: 0; height: 48px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); font: inherit; font-size: 15px; color: var(--ink);
}
.mode-form { display: grid; gap: 8px; }
.mode-opt {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
}
.mode-opt:has(input:checked) { border-color: rgba(var(--accent-rgb), 0.6); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12); }
.mode-opt input { margin-top: 3px; accent-color: var(--accent); }
.mode-opt b { display: block; font-size: 14.5px; }
.mode-opt small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.mode-form .btn { justify-self: start; }
.withdraw-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.withdraw-box p { margin: 0 0 8px; font-size: 14px; }
.history-title { margin-top: 20px; }
.payout-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.payout-history li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
  padding: 10px 14px; border-radius: 12px; background: var(--fill); font-size: 14px;
}
.hist-status { color: var(--muted); font-size: 13px; }
.key-list li { grid-template-columns: 1fr auto; }
.key-list small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.hist-status.failed, .hist-status.reversed, .hist-status.partially_reversed { color: var(--accent-text); }

.sheet-quota { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.sheet-quota b { color: var(--ink); }
.step-error .error-action { margin-top: 10px; }

@media (max-width: 760px) {
  .plans, .plans.three, .packs, .acct-grid, .price-foot, .payout-cols { grid-template-columns: 1fr; }
  .payout-history li { grid-template-columns: 1fr auto; }
  .payout-history .hist-status { grid-column: 1 / -1; }
  .acct-nav .nav-link { padding: 0 8px; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat b { font-size: 18px; }
}
@media (max-width: 560px) {
  .set-list > div { grid-template-columns: 1fr; }
  .acct-nav .nav-link { display: none; }
}

/* Account settings: change email, delete account */
.set-more { display: grid; gap: 10px; justify-items: start; width: 100%; }
.set-more > summary { list-style: none; display: inline-flex; cursor: pointer; user-select: none; }
.set-more > summary::-webkit-details-marker { display: none; }
.set-more[open] > summary { background: var(--fill-2); }
.set-more form { display: grid; gap: 6px; width: 100%; margin-top: 10px; }
.set-more .inline-form { margin-top: 0; }
.set-more .inline-form input { flex: 1; min-width: 0; }
.set-list .note { margin: 0; }
.del-card h2 { margin: 22px 0 8px; font-size: 15px; letter-spacing: -0.01em; }
.del-list { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.del-list b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.del-list.give-up { color: var(--accent-text); }
.del-card .auth-form { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.del-card .acct-actions { margin-top: 18px; }
.btn.danger { background: #b3261e; color: #fff; }
.btn.danger:hover { background: #9a1f18; }
@media (max-width: 560px) {
  .set-more .inline-form { flex-direction: column; }
}

/* Log in, code and welcome: the landing's look. One card with layered shadows, the field with its button inside,
   and the three steps of signing up beside it. */
.auth {
  display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 300px); justify-content: center; align-items: center; gap: clamp(28px, 5vw, 72px);
  min-height: calc(100dvh - 220px); padding: clamp(32px, 6vw, 80px) 0;
}
.auth:not(:has(.auth-next)) { grid-template-columns: minmax(0, 560px); }
.auth-box {
  padding: clamp(26px, 3.6vw, 40px); border-radius: 22px; background: var(--surface);
  box-shadow: 0 0 0 1px rgba(20, 18, 16, 0.07), 0 1px 1px rgba(20, 18, 16, 0.03), 0 4px 10px -2px rgba(20, 18, 16, 0.06), 0 22px 44px -18px rgba(20, 18, 16, 0.22);
}
.auth-step { margin: 0 0 14px; font: 500 12.5px/1 var(--mono); color: var(--muted); }
.auth-step b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px; border-radius: 6px; background: var(--accent); color: var(--on-accent); }
.auth-box h1 { margin: 0; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.02; font-weight: 500; letter-spacing: -0.045em; text-wrap: balance; }
.auth-lede { margin: 14px 0 24px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.auth-lede b { color: var(--ink); overflow-wrap: anywhere; }
.auth-field {
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
}
.auth-field:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.auth-field input {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 12px; border: 0; background: transparent; color: var(--ink); font-size: 16px;
}
.auth-field input:focus { outline: none; }
.auth-code input { font: 500 22px/1 var(--mono); letter-spacing: 0.35em; }
.auth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; height: 48px; padding: 0 16px 0 18px; border: 0; border-radius: 12px;
  background: var(--solid); color: var(--on-solid); font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.4), 0 1px 2px rgba(20, 18, 16, 0.24), 0 8px 20px -10px rgba(20, 18, 16, 0.5);
  transition: transform 0.15s var(--ease), background 0.2s var(--ease);
}
.auth-btn:hover { background: var(--solid-hover); }
.auth-btn:active { transform: scale(0.97); }
.auth-btn svg { width: 16px; height: 16px; }
.auth-btn.wide { width: 100%; height: 52px; margin-top: 18px; }
.auth-checks { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.auth-checks li { display: inline-flex; align-items: center; gap: 6px; }
.auth-checks svg { width: 15px; height: 15px; color: var(--accent-text); }
.auth-fine { margin: 18px 0 0; font-size: 13.5px; color: var(--faint); }
.auth-fine.center { text-align: center; }
.auth-fine a { color: var(--muted); }
.auth-again { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }
.auth-again button, .auth-again a {
  padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 550; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line-2, var(--line)); text-underline-offset: 3px;
}
.auth-again button:hover, .auth-again a:hover { color: var(--ink); }
.auth-label { display: block; margin: 20px 0 8px; font-size: 14px; font-weight: 600; }
.auth-label span { font-weight: 400; color: var(--faint); }
.auth-input {
  width: 100%; height: 50px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.auth-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.auth-welcome .heard-choice { padding: 10px 14px; font-size: 14.5px; background: var(--bg); }
.auth-welcome .heard + .heard { margin-top: 10px; }
/* The three steps: a line with a square on each, the current one in orange. */
.auth-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.auth-next li { position: relative; display: grid; gap: 4px; padding-left: 40px; counter-increment: step; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.auth-next li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--fill); color: var(--muted); font: 600 13px/1 var(--mono);
}
.auth-next li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 32px; bottom: -18px; width: 1px; background: var(--line); }
.auth-next li.on::before { background: var(--accent); color: var(--on-accent); }
.auth-next b { color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 820px) {
  .auth { grid-template-columns: minmax(0, 520px); align-items: start; min-height: 0; }
  .auth-next { padding: 0 6px; }
}
@media (max-width: 480px) {
  .auth-field { flex-direction: column; align-items: stretch; padding: 8px; }
  .auth-btn { width: 100%; }
}

/* Pricing: the landing's plan cards. A big light price, the price of one video, cards with layered shadows. */
.page-pricing .price-head h1 { font-weight: 500; letter-spacing: -0.05em; font-size: clamp(36px, 5.4vw, 64px); }
.page-pricing .eyebrow { font: 500 12.5px/1 var(--mono); color: var(--accent-text); text-transform: none; letter-spacing: 0.02em; }
.page-pricing .plans.three { gap: 14px; }
.page-pricing .plan {
  border: 0; border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(20, 18, 16, 0.07), 0 1px 2px rgba(20, 18, 16, 0.05), 0 6px 16px -10px rgba(20, 18, 16, 0.18);
}
.page-pricing .plan.featured { box-shadow: 0 0 0 2px var(--ink), 0 22px 44px -18px rgba(20, 18, 16, 0.22); }
.page-pricing .plan h2 { font-size: 19px; font-weight: 600; }
.page-pricing .plan .price b { font-size: clamp(46px, 4.6vw, 60px); font-weight: 500; letter-spacing: -0.05em; }
.plan-per { margin: -6px 0 0; font: 500 13px/1.3 var(--mono); color: var(--accent-text); }
.page-pricing .plan ul { color: var(--muted); }
.page-pricing .plan form { margin-top: auto; }
.page-pricing .extra-credits {
  border: 0; border-radius: 20px; box-shadow: 0 0 0 1px rgba(20, 18, 16, 0.07), 0 6px 16px -10px rgba(20, 18, 16, 0.18);
}
