/* Public pages other than the landing page: sign-in forms, legal pages, 404. Builds on the tokens of ui.css.
   (The landing page has its own, self-contained stylesheet: landing.css.)
   Look: pure black, large light headings with tight tracking, one orange accent. */
@font-face{font-family:"Inter Tight";src:url(/fonts/inter-tight.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

body.site,body.auth{--accent:#fa4616;--accent-hi:#ff6636;--accent-lo:#c2330b;--display:"Inter Tight",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:#000}
/* The page can be taller than one screen: the black must cover all of it, not just the first viewport. */
html:has(body.site),html:has(body.auth){background:#000}
body.site{height:auto;min-height:100%;font-size:16px;line-height:1.5;color:#fff}
.site .btn:not(.ghost),.auth .btn:not(.ghost){background:linear-gradient(180deg,var(--accent-hi),var(--accent) 60%);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),inset 0 -3px 0 var(--accent-lo);border:0;font-weight:550;transition:filter .2s,transform .2s}
.site .btn:not(.ghost):hover,.auth .btn:not(.ghost):hover:not(:disabled){background:linear-gradient(180deg,var(--accent-hi),var(--accent) 60%);filter:brightness(1.08)}
.site .btn:not(.ghost):active,.auth .btn:not(.ghost):active:not(:disabled){transform:translateY(1px)}
.site .link,.auth .link{color:#ff8a66}
.site input:focus,.auth input:focus{border-color:var(--accent)}
.site :focus-visible,.auth :focus-visible{outline-color:var(--accent-hi)}

/* ---------- Sign-in / sign-up / setup / 404 ---------- */
body.auth{position:relative;display:flex;flex-direction:column;align-items:center;min-height:100%;padding:28px 16px;isolation:isolate}
body.auth::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(620px 420px at 50% -8%,rgba(250,70,22,.2),transparent 70%),
    linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px) 50% 0/64px 64px,linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px) 50% 0/64px 64px;
  -webkit-mask-image:radial-gradient(ellipse 80% 70% at 50% 0%,#000,transparent 80%);mask-image:radial-gradient(ellipse 80% 70% at 50% 0%,#000,transparent 80%)}
.auth-brand{font:600 22px var(--display);letter-spacing:-.024em;gap:10px;margin:auto 0 24px}
.auth-brand .logo-mark{width:32px;height:32px}
.auth-card{width:100%;max-width:420px;padding:28px 26px;background:linear-gradient(180deg,#121212,#0b0b0b);border-color:rgba(255,255,255,.1);border-radius:20px;box-shadow:0 40px 80px -40px #000}
.auth-card h1{font:500 26px/1.1 var(--display);letter-spacing:-.03em}
.auth-card h1+p{margin:6px 0 18px}
.auth-card h2{font:500 18px var(--display);letter-spacing:-.02em;margin:26px 0 4px;padding-top:22px;border-top:1px solid #1f1f1f}
.auth-card h2+p{margin-bottom:6px;font-size:12.5px}
.auth-card label{display:block;font-weight:500;font-size:12.5px;margin:12px 0 5px}
.auth-card input{padding:10px 12px;font-size:14px}
.auth-card input.mono{font-size:12.5px}
.auth-card .help{margin:5px 0 0}
.auth-card .btn{margin-top:20px}
.auth-card .note{margin-top:14px}
.auth-links{display:flex;justify-content:space-between;gap:12px;margin-top:16px;font-size:12.5px}
.center{text-align:center;justify-content:center}
.auth-card p.center{margin-top:14px}
.auth-foot{margin:22px 0 auto;text-align:center}
.auth-foot a:hover{color:var(--text)}

/* ---------- Legal pages ---------- */
.site .wrap{max-width:1236px;margin:0 auto;padding:0 28px;display:block}
.site h1,.site h2,.site h3{font-family:var(--display);font-weight:500;letter-spacing:-.035em;line-height:1.05;color:#fff}
.nav{position:sticky;top:0;z-index:50;background:rgba(0,0,0,.78);-webkit-backdrop-filter:blur(16px) saturate(1.5);backdrop-filter:blur(16px) saturate(1.5);border-bottom:1px solid rgba(255,255,255,.08)}
.nav .wrap{display:flex;align-items:center;gap:8px;height:68px}
.nav .brand{font:600 20.5px var(--display);letter-spacing:-.024em;gap:9px;margin-right:auto}
.nav .brand .logo-mark{width:30px;height:30px}
.nav-login{font-size:15px;font-weight:500;padding:8px 12px;color:#e2e2e2;white-space:nowrap}
.nav-login:hover{color:#fff}
.nav .btn{font-size:14.5px;padding:8px 14px 10px;border-radius:10px}
.legal-page{max-width:780px;margin:0 auto;padding:76px 28px 110px}
.legal-page h1{font-size:clamp(34px,4.6vw,54px);margin-bottom:24px}
.legal-page h2{font-size:23px;letter-spacing:-.025em;margin:40px 0 10px}
.legal-page p,.legal-page li{color:#b9b9b9;font-size:16px;line-height:1.6}
.legal-page p{margin-top:10px}
.legal-page ul{padding-left:20px;margin:10px 0 0;display:grid;gap:7px}
.legal-page b{color:#fff;font-weight:500}
.foot{border-top:1px solid rgba(255,255,255,.08);padding:40px 0 48px;color:#7e7e7e;font-size:14px}
.foot .cols{display:flex;gap:18px 24px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.foot nav{display:flex;gap:6px 24px;flex-wrap:wrap}
.foot nav a:hover{color:#fff}

@media(max-width:700px){
  .site .wrap{padding:0 18px}
  .legal-page{padding:52px 18px 80px}
  .nav-login{display:none}
}
