/* Content Builder — public pages (sales, login, register, access help).
   Served without the app bundle, so it carries its own tokens & font. */
@font-face {
  font-family: 'Inter';
  src: url('/auth/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #f4f3f0;
  --panel: #ffffff;
  --panel-2: #faf9f7;
  --sunken: #ecebe7;
  --line: #e2e0db;
  --line-strong: #cfccc5;
  --ink: #17171a;
  --ink-2: #3b3b40;
  --muted: #6b6a70;
  --accent: #2f5bea;
  --accent-deep: #1e3fb8;
  --accent-soft: #e8eefe;
  --danger: #c4372f;
  --danger-soft: #fbeceb;
  --ok: #1f8a4c;
  --ok-soft: #e6f4ec;
  --warn: #9a6b00;
  --warn-soft: #fdf3dc;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow-1: 0 1px 2px rgba(20, 20, 25, 0.06), 0 2px 6px rgba(20, 20, 25, 0.05);
  --shadow-2:
    0 1px 2px rgba(20, 20, 25, 0.05), 0 8px 24px rgba(20, 20, 25, 0.08),
    0 24px 48px -24px rgba(20, 20, 25, 0.16);
  --shadow-3: 0 2px 4px rgba(20, 20, 25, 0.06), 0 18px 50px -12px rgba(20, 20, 25, 0.28);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
p {
  margin: 0;
}
a {
  color: var(--accent);
}
img {
  max-width: 100%;
  display: block;
}
:focus-visible {
  outline: 3px solid rgba(47, 91, 234, 0.45);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus {
  left: 8px;
}

/* Buttons — rectangular, not pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  font: 600 15px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: var(--panel-2);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 6px 16px -6px rgba(47, 91, 234, 0.7);
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 17px;
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 243, 240, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(140deg, var(--accent), #6d5df0);
  box-shadow: var(--shadow-1);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.site-head nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-head nav a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  padding: 8px 10px;
}
.site-head nav a:not(.btn):hover {
  color: var(--ink);
}
.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Auth card pages */
.auth-main {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: start center;
  padding: 48px 16px 64px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-2);
  padding: 32px;
}
.auth-card h1 {
  font-size: 26px;
  margin-bottom: 8px;
}
.auth-card .lede {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.field input {
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: 16px var(--font);
  color: var(--ink);
  background: #fff;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 91, 234, 0.18);
}
.field .hint {
  font-size: 13px;
  color: var(--muted);
}
.notice {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 18px;
  background: var(--panel-2);
}
.notice[hidden] {
  display: none;
}
.notice-ok {
  border-color: #b9dcc7;
  border-left-color: var(--ok);
  background: var(--ok-soft);
}
.notice-warn {
  border-color: #eedcae;
  border-left-color: var(--warn);
  background: var(--warn-soft);
}
.notice-error {
  border-color: #f0c4c1;
  border-left-color: var(--danger);
  background: var(--danger-soft);
}
.notice strong {
  display: block;
  margin-bottom: 2px;
}
.auth-alt {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
.steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--panel-2);
}
.steps li + li {
  border-top: 1px solid var(--line);
}
.steps .n {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.steps li.done .n {
  background: var(--ok-soft);
  color: var(--ok);
}

/* Help page */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}
.doc h1 {
  font-size: 34px;
  margin-bottom: 10px;
}
.doc > .lede {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 32px;
}
.doc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-1);
  padding: 24px;
  margin-bottom: 16px;
}
.doc-card h2 {
  font-size: 19px;
  margin-bottom: 10px;
}
.doc-card p + p,
.doc-card ol,
.doc-card ul {
  margin-top: 10px;
}
.doc-card li {
  margin: 4px 0;
}
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 14px;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.site-foot a {
  color: var(--ink-2);
  text-decoration: none;
}
.site-foot a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .auth-card {
    padding: 24px 20px;
  }
  .site-head nav a.hide-sm {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
