/* The public coat ("Platform", 2026-11-20) for every page outside the app
   that is not the landing: sign-in, sign-up, pairing, desktop sign-in, 404
   and the legal pages. Colours are the --pub-* tokens in tokens.css. Linked
   LAST, after the page's own <style>, so it wins on equal selectors.

   What it takes away, and why: the pages wore the default AI-SaaS look
   (owner, 20 Nov: "fix all generic stuff like this all pages"):
   - two-tone headlines ("Welcome <em>back.</em>" with the second half grey):
     a heading is one colour now; the <em> keeps no style of its own;
   - glowing-dot eyebrows over the heading: gone where they repeated the page;
   - frosted cards with a drop shadow: a flat sheet with one ruled top edge;
   - the blue accent button with a glow: one hi-vis signal fill, square. */

body {
  --accent: var(--pub-signal-ink); --accent-ink: var(--pub-on-signal);
  --accent-dim: var(--pub-signal-dim); --accent-line: var(--pub-signal-line); --accent-glow: transparent;
  --bg-dark: var(--pub-ground); --text-main: var(--pub-ink); --text-muted: var(--pub-ink-muted); --text-subtle: var(--pub-ink-subtle);
  --border: var(--pub-rule); --border-soft: var(--pub-rule); --border-strong: var(--pub-rule-strong);
  --glass-sheet: var(--pub-sheet); --glass-blur: none; --shadow-3: none;
  background: var(--pub-ground); color: var(--pub-ink);
}
body::before { background: none; }
/* Fine grain over everything, so the ground is a surface and not a void. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--pub-signal); color: var(--pub-on-signal); }

.brand-mark { border-radius: 3px; border: 0; background: var(--pub-signal); }
.brand-mark svg circle { stroke: var(--pub-on-signal) !important; }
.brand-mark svg circle:last-child { fill: var(--pub-on-signal) !important; }
.top-link { border-radius: 3px; }
.top-link b { color: var(--pub-signal-ink); }

h1 { letter-spacing: -0.05em; color: var(--pub-ink); }
h1 em, h2 em { font-style: normal; color: inherit; }

/* A short label over a heading, where one is kept (the 404 code): mono, a
   signal bar instead of a glowing dot. */
.eyebrow, .code { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .04em; color: var(--pub-ink-muted); }
.eyebrow::before, .code::before { width: 14px; height: 3px; border-radius: 0; background: var(--pub-signal-ink); box-shadow: none; }

.panel, .who {
  border-radius: 4px; border: 0; border-top: 1px solid var(--pub-rule-strong); background: var(--pub-sheet);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--pub-shadow);
}
.avatar { border-radius: 3px; background: var(--pub-sheet-2); color: var(--pub-ink); }

input, select { border-radius: 3px; background: var(--pub-ground); border-color: var(--pub-rule-strong); color: var(--pub-ink); }
input:focus, select:focus { border-color: var(--pub-signal-ink); background: var(--pub-ground); box-shadow: 0 0 0 3px var(--pub-signal-dim); }

/* The thing to press: one signal fill. The rest are ruled outlines. */
.submit, .btn, a.btn, .btn-primary, a.btn.primary {
  border-radius: 3px; border: 1px solid transparent; background: var(--pub-signal); color: var(--pub-on-signal); box-shadow: none;
}
.submit:hover, .btn:hover, a.btn:hover, .btn-primary:hover, a.btn.primary:hover { background: var(--pub-ink); color: var(--pub-ground); box-shadow: none; }
.btn-quiet, a.btn:not(.primary):not(.btn-primary):where(.actions a) {
  background: transparent; color: var(--pub-ink); border: 1px solid var(--pub-rule-strong);
}
.btn-quiet:hover, a.btn:not(.primary):not(.btn-primary):where(.actions a):hover { background: var(--pub-sheet-2); color: var(--pub-ink); border-color: var(--pub-ink-subtle); }
.btn-quiet { color: var(--pub-ink-muted); }
.submit:focus-visible, .btn:focus-visible { box-shadow: 0 0 0 2px var(--pub-ground), 0 0 0 4px var(--pub-signal-ink); }
.submit:active, .btn:active { transform: translateY(1px); }

.linkish:hover, .switch a:hover, .note a:hover, footer a:hover { color: var(--pub-signal-ink); border-color: var(--pub-signal-ink); }
a:focus-visible, button:focus-visible { outline-color: var(--pub-signal-ink); }
.field-hint a { color: var(--pub-ink); text-decoration: none; border-bottom: 1px solid var(--pub-rule-strong); }
.field-hint a:hover { color: var(--pub-signal-ink); border-color: var(--pub-signal-ink); }

/* 23 Nov 2026: the same look as the landing page (owner: "the signup page
   still looks different, make it match"). The colours come from the --pub-*
   tokens, now the landing's palette; here are the shapes that differed: the
   blue rounded mark, headings as heavy and wide as the landing's, rounded
   buttons and sheets, and the landing's blue light over the side panel. */
.brand-mark { border-radius: 7px; background: var(--pub-signal-ink); }
.brand-mark svg circle { stroke: #fff !important; }
.brand-mark svg circle:last-child { fill: #fff !important; }
h1, .auth-aside h2 { font-weight: 780; font-stretch: 116%; letter-spacing: -0.035em; }
.submit, .btn, a.btn, .btn-primary, a.btn.primary, .closed-cta, .top-link { border-radius: 8px; }
.submit:hover, .btn:hover, a.btn:hover, .btn-primary:hover, a.btn.primary:hover {
  background: color-mix(in srgb, var(--pub-signal) 86%, var(--pub-ground)); color: var(--pub-on-signal); }
input, select { border-radius: 8px; }
.panel, .who, .carried-job { border-radius: 12px; border: 1px solid var(--pub-rule); }
.avatar { border-radius: 8px; }
@media (min-width: 1000px) {
  .auth-aside { border-radius: 16px; }
  .auth-aside::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(70% 60% at 85% 0%, var(--pub-signal-dim), transparent 70%);
  }
}
