/* buddy.college — shared styles for the account pages (verify-email, invites, accept-invite).
   Same tokens as index.html / about.html: Archivo + Archivo Expanded, the court/turf palette, light + dark. */
:root {
  --court: #0A84FF; --court-ink: #0869d6; --turf: #15B65A; --clay: #FF7A1A;
  --grape: #7B61FF; --coral: #FF3B5C; --ink: #10151C; --muted: #5B6572;
  --paper: #F7F8F6; --surface: #ffffff; --line: rgba(16, 21, 28, 0.10);
  --warn: #B35400; --danger: #C8203F; --ok: #0E8A43;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Archivo Expanded", "Archivo", sans-serif;
  --focus: 0 0 0 3px color-mix(in srgb, var(--court) 45%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F2F4F7; --muted: #9aa3b0; --paper: #0C0F14; --surface: #161B22; --line: rgba(255,255,255,0.12);
    --warn: #FFA24D; --danger: #FF6B83; --ok: #3DDC84;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: hidden; }
.shell { max-width: 720px; margin: 0 auto; padding: 0 24px; min-height: 100vh; display: flex; flex-direction: column; }

header.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 6px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.wordmark .glyph { font-weight: 400; }
.wordmark .tld { color: var(--muted); }
.nav a.back { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s; }
.nav a.back:hover { border-color: var(--court); }

main { flex: 1; padding: 48px 0 40px; }
.tag { font-size: 14px; font-weight: 600; color: var(--court); margin-bottom: 12px; }
h1 { font-family: var(--display); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(32px, 5.4vw, 52px); margin-bottom: 16px; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.02em; margin-bottom: 10px; }
p { font-size: 16.5px; max-width: 60ch; margin-bottom: 14px; }
p.dim, .dim { color: var(--muted); }
[tabindex="-1"]:focus { outline: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 24px; margin-top: 22px; }
.card + .card { margin-top: 16px; }

.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
label.lbl { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
input[type="email"] {
  flex: 1; min-width: 220px; font-family: var(--sans); font-size: 16px; padding: 14px 16px; color: var(--ink);
  border-radius: 13px; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); background: var(--paper);
}
input[type="email"]::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
input[type="email"]:focus { outline: none; border-color: var(--court); box-shadow: var(--focus); }
input[aria-invalid="true"] { border-color: var(--danger); }

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-weight: 700; font-size: 15.5px;
  color: #fff; background: var(--court); border: none; padding: 14px 24px; border-radius: 13px; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .14s;
}
.btn:hover { background: var(--court-ink); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--court); background: transparent; }
.btn.small { padding: 9px 14px; font-size: 14px; border-radius: 11px; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--court); outline-offset: 3px; }
a.inline { color: var(--court); font-weight: 600; }

.note { font-size: 15px; font-weight: 600; margin-top: 12px; min-height: 1.5em; }
.note:empty { display: none; }
.note.ok { color: var(--ok); }
.note.warn { color: var(--warn); }
.note.err { color: var(--danger); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--court) 25%, transparent); border-top-color: var(--court); animation: spin .8s linear infinite; display: inline-block; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

.quota { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.quota .big { font-family: var(--display); font-weight: 900; font-size: 44px; letter-spacing: -0.03em; line-height: 1; color: var(--court); }
.pips { display: inline-flex; gap: 6px; margin-left: 4px; }
.pips span { width: 12px; height: 12px; border-radius: 50%; background: var(--court); }
.pips span.used { background: transparent; border: 2px solid color-mix(in srgb, var(--ink) 25%, transparent); }

ul.invites { list-style: none; margin-top: 8px; }
ul.invites li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
ul.invites li:first-child { border-top: none; }
ul.invites .who { font-weight: 600; word-break: break-all; }
ul.invites .when { font-size: 13px; color: var(--muted); display: block; font-weight: 500; }
.badge { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.badge.PENDING { color: var(--warn); }
.badge.ACCEPTED { color: var(--ok); }
.badge.EXPIRED, .badge.REVOKED { color: var(--muted); }

.signedin { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.signedin b { color: var(--ink); word-break: break-all; }
.email-strong { font-weight: 700; word-break: break-all; }

footer { padding: 14px 0 40px; color: var(--muted); font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer a { color: var(--ink); text-decoration: none; font-weight: 600; }

@media (max-width: 520px) {
  .shell { padding: 0 16px; }
  main { padding-top: 32px; }
  .card { padding: 22px 18px 20px; }
  .row { flex-direction: column; }
  .row input, .row .btn { width: 100%; }
  footer { justify-content: center; text-align: center; }
}
