/* Yoken AI — tokens and pieces shared by the site, the account pages and the admin (colours from web/design) */
:root {
  --bg: #04060b; --bg2: #070a12; --text: #e9eefb; --text2: #c3cbe0; --muted: #9aa6c0; --muted2: #7f8aa6; --dim: #66708a;
  --accent: #3ccaff; --on-accent: #021018; --grad: linear-gradient(90deg, #3cdcff, #3b7bff 55%, #a65bff);
  --ok: #3fd47a; --warn: #ffd166; --bad: #ff7a8a; --violet: #a65bff;
  --line: rgba(120,160,255,0.22); --line-soft: rgba(255,255,255,0.08); --fill: rgba(120,160,255,0.06);
  --display: 'Exo 2', sans-serif; --body: Onest, 'Segoe UI', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55;
  background: radial-gradient(1000px 440px at 22% -140px, rgba(59,123,255,0.2), transparent 70%),
    radial-gradient(900px 420px at 86% -180px, rgba(166,91,255,0.16), transparent 70%), var(--bg);
  background-repeat: no-repeat; background-color: var(--bg);
}
a { color: var(--text); } a:hover { color: #fff; }
.glass {
  background: rgba(120,160,255,0.065); backdrop-filter: blur(21px) saturate(150%); -webkit-backdrop-filter: blur(21px) saturate(150%);
  border: 1px solid rgba(120,160,255,0.169);
}
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* logo: eye mark + YOKEN wordmark + glowing AI */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo > img { display: block; height: 30px; width: auto; }
.logo-words { display: inline-flex; flex-direction: column; gap: 4px; }
.logo-words > span:first-child { display: flex; align-items: flex-start; gap: 3px; }
.logo-words img { display: block; height: 17px; width: auto; }
.logo-ai { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 10px; line-height: 1; letter-spacing: 0.06em; margin-top: -2px;
  color: var(--accent); text-shadow: 0 0 6px rgba(60,202,255,0.75), 0 0 14px rgba(60,202,255,0.35); }
.logo-tag { display: block; width: 0; min-width: 100%; font-style: italic; font-size: 9px; line-height: 1; letter-spacing: 0.2em; color: var(--muted2);
  white-space: nowrap; text-align: justify; text-align-last: justify; }

/* page shell for account, auth and admin */
.topbar { position: sticky; top: 0; z-index: 10; padding: 14px 16px 0; }
.topbar nav { max-width: 1240px; margin: 0 auto; border-radius: 16px; padding: 10px 12px 10px 20px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.35); }
.topbar .links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; }
.topbar .links a { text-decoration: none; color: var(--muted); }
.topbar .links a[aria-current="page"], .topbar .links a:hover { color: var(--text); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 36px 16px 72px; }
.narrow { max-width: 460px; margin: 0 auto; padding: 56px 16px 72px; }
h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 800; line-height: 1.1; margin: 0 0 16px; }
h1 { font-size: clamp(28px, 4vw, 40px); } h2 { font-size: 24px; } h3 { font-size: 18px; font-weight: 600; }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; margin-right: 10px; vertical-align: 4px; background: var(--grad);
  box-shadow: 0 0 8px rgba(60,202,255,0.6); }

.card { border-radius: 20px; padding: 24px; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.spread { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.stat { font-family: var(--mono); font-size: 28px; font-weight: 500; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600;
  color: var(--text); border: 1px solid var(--line); background: rgba(120,160,255,0.05); }
.tabs a[aria-current="page"] { border-color: var(--accent); background: rgba(60,202,255,0.12); }

.btn { font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 11px 18px; border-radius: 12px; text-decoration: none; color: var(--text); background: rgba(120,160,255,0.08); border: 1px solid rgba(120,160,255,0.24); }
.btn:hover { border-color: rgba(60,202,255,0.5); color: #fff; }
.btn.primary { color: var(--on-accent); background: var(--accent); border: 0; }
.btn.primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn.danger { color: var(--bad); border-color: rgba(255,122,138,0.4); background: rgba(255,122,138,0.06); }
.btn:disabled, .btn:disabled:hover { opacity: 0.45; cursor: not-allowed; filter: none; border-color: rgba(120,160,255,0.24); }
.btn.small { min-height: 34px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text2); }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; }
input, select, textarea { font: inherit; font-size: 15px; color: var(--text); background: rgba(120,160,255,0.06); border: 1px solid rgba(120,160,255,0.24);
  border-radius: 10px; padding: 11px 12px; min-height: 44px; }
input[type="checkbox"] { min-height: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
form.inline { display: inline; }
fieldset { border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px; margin: 0; }
legend { padding: 0 6px; color: var(--muted); font-size: 14px; }

.flash { border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; border: 1px solid var(--line); background: rgba(60,202,255,0.08); }
.flash.bad { border-color: rgba(255,122,138,0.45); background: rgba(255,122,138,0.08); }
.flash.ok { border-color: rgba(63,212,122,0.45); background: rgba(63,212,122,0.08); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text2); background: rgba(120,160,255,0.06); white-space: nowrap; }
.badge.ok, .badge.active { color: var(--ok); border-color: rgba(63,212,122,0.4); background: rgba(63,212,122,0.1); }
.badge.trialing { color: var(--accent); border-color: rgba(60,202,255,0.4); background: rgba(60,202,255,0.1); }
.badge.past_due, .badge.paused, .badge.warn { color: var(--warn); border-color: rgba(255,209,102,0.4); background: rgba(255,209,102,0.08); }
.badge.canceled, .badge.bad { color: var(--bad); border-color: rgba(255,122,138,0.4); background: rgba(255,122,138,0.08); }
.crown { color: #ffd166; }

.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line-soft); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); }

.site-foot { max-width: 1240px; margin: 0 auto; padding: 28px 16px 40px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: 14px; color: var(--dim); }
.site-foot a { color: var(--muted); }
.prose { max-width: 760px; } .prose p, .prose li { color: var(--text2); }
pre.code { font-family: var(--mono); font-size: 13px; white-space: pre-wrap; word-break: break-all; padding: 12px; border-radius: 12px; background: var(--bg2);
  border: 1px solid var(--line-soft); }
@media (max-width: 640px) { .card { padding: 18px; } .topbar nav { padding: 10px 12px; } }
