/* Agoradis account (T-030): the "Orbit" look of the mailbox (mail.css), validated by Mark on 2026-11-14 from the
   mock-ups. Dark only. Fonts and logo from the public site (/assets/). */
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/sofia-sans.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); }

:root {
  --bg: #05070d; --panel: #0b0f1a; --raise: #111726; --line: #1b2130; --ink: #f5f8ff; --muted: #9ba1b3;
  --gold: #d6bf8a; --ok: #6fd3a5; --danger: #ff6b8a;
  --sans: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden], .hidden { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body { font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); overflow-x: hidden; }
h1, p { margin: 0; }
a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.gold { color: var(--gold); }
.mono { font-family: var(--mono); font-size: 13px; }
.small { font-size: 14px; }
.lead { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack.tight { gap: 8px; }
.center-text { text-align: center; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; display: block; }
.right { display: flex; align-items: center; gap: 10px; }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.langs button { border: 0; background: transparent; color: var(--muted); border-radius: 999px; min-height: 28px; padding: 0 10px;
  font-family: var(--mono); font-size: 12px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--raise); color: var(--ink); }
.who { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px;
  background: transparent; text-align: left; }
.initials { width: 32px; height: 32px; border-radius: 50%; background: var(--raise); border: 1px solid var(--gold); display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: none; }
.who .lines { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.who .lines .mono { font-size: 11px; color: var(--muted); }

.btn { cursor: pointer; border-radius: 999px; min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: progress; }
.btn.primary { background: var(--ink); color: var(--bg); border: 0; font-weight: 600; }
.btn.ghost { background: transparent; border: 1px solid var(--muted); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { min-height: 32px; padding: 0 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn.danger { color: var(--danger); border-color: var(--line); }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold);
  text-underline-offset: 3px; cursor: pointer; }

.center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 24px 24px; position: relative; overflow: hidden; }
.card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }
.card h1, .acct h1 { font-size: 34px; font-weight: 600; letter-spacing: -.015em; line-height: 1.1; text-wrap: balance; }
.orbit { position: absolute; left: 50%; top: 52%; width: 900px; height: 900px; transform: translate(-50%, -50%); pointer-events: none; opacity: .55; }
.orbit ellipse { fill: none; stroke: var(--gold); stroke-opacity: .35; stroke-width: 1; }
.orbit ellipse.inner { stroke: var(--muted); stroke-opacity: .18; }
.orbit circle { fill: var(--gold); }
.from { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--panel); font-size: 14px; }
.from .i { color: var(--gold); }
.notice { border: 1px solid var(--gold); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.field input { background: var(--panel); border: 1px solid var(--muted); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.field input.code { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; text-align: center; }
.hint { color: var(--muted); font-size: 13px; }
.error { color: var(--danger); font-size: 14px; min-height: 1px; }
.error:empty { display: none; }

.steps { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 6px; }
.steps b { font-family: var(--mono); font-weight: 400; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.steps .done b { border-color: var(--ok); color: var(--ok); }
.steps .now { color: var(--ink); }
.steps .now b { border-color: var(--gold); color: var(--gold); }
.steps i { width: 16px; border-top: 1px solid var(--line); }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; min-height: 60px; }
.codes span::before { content: attr(data-n); color: var(--muted); margin-right: 10px; font-size: 12px; }

.acct { flex: 1; width: 100%; max-width: 800px; margin: 0 auto; padding: 8px 24px 32px; display: flex; flex-direction: column; gap: 28px; }
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.r { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--panel); }
.r:first-child { border-top: 0; }
.r .ic { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--gold); flex: none; }
.r .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.r .t { font-weight: 600; }
.r .m { color: var(--muted); font-size: 14px; }
.pill { font-size: 12px; border: 1px solid var(--ok); color: var(--ok); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.kv { display: grid; grid-template-columns: 180px 1fr; }
.kv > div { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--panel); min-width: 0; overflow-wrap: anywhere; }
.kv > div:nth-child(-n+2) { border-top: 0; }
.kv .k { color: var(--muted); font-size: 14px; }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel); display: flex; gap: 12px; align-items: center;
  text-decoration: none; }
.app:hover { border-color: var(--muted); }
.app .t { font-weight: 600; }
.app .mono { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.new-codes { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.new-codes .codes { width: 100%; max-width: 420px; }
.foot { display: flex; justify-content: center; gap: 16px; padding: 16px 24px max(20px, env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); }

@media (max-width: 560px) {
  .topbar { padding: 14px 16px; }
  .center { padding: 24px 16px 16px; align-items: flex-start; }
  .card h1, .acct h1 { font-size: 28px; }
  .acct { padding: 8px 16px 24px; }
  .who .lines { display: none; }
  .r { flex-wrap: wrap; }
  .r .act { width: 100%; padding-left: 50px; }
  .kv { grid-template-columns: 1fr; }
  .kv > div:nth-child(2) { border-top: 0; }
  .kv > .k { padding-bottom: 0; }
  .kv > .k + div { border-top: 0; padding-top: 2px; }
  .apps { grid-template-columns: 1fr; }
  .brand img { height: 26px; }
}
@media (prefers-reduced-motion: no-preference) { main:not(.hidden) .card, main.acct:not(.hidden) { animation: rise .35s ease-out; } }
@keyframes rise { from { transform: translateY(6px); opacity: .6; } to { transform: none; opacity: 1; } }
