/* Setup_Site styling — matched to the Miru public site (mirumon.app) so the app
   and the marketing site read as one product. Self-hosted only: no font CDN, no
   third-party asset. The CSP served by the stack is default-src 'none' with
   font-src/style-src/img-src 'self', so the fonts below load same-origin and
   nothing else can. This page handles a bearer credential — the styling adds no
   network surface. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-600.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}

:root {
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --bg:        #0f131b;
  --bg-2:      #141924;
  --panel:     #1a1f2b;
  --panel-2:   #212736;
  --line:      #2b3242;
  --line-soft: #222836;

  --ink:       #f2f5fa;
  --ink-2:     #aeb7c6;
  --muted:     #737e90;

  --brand:     #34d3b4;
  --brand-2:   #6ea8ff;
  --brand-ink: #05221c;
  --grad: linear-gradient(120deg, #6ea8ff 0%, #34d3b4 100%);

  --good: #4ec98a;
  --bad:  #ef6b6b;
  --warn: #e8c34a;

  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 3rem 1rem 5rem;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(50rem 32rem at 78% -8%, rgba(52, 211, 180, .08), transparent 60%),
    radial-gradient(46rem 34rem at 8% 6%, rgba(110, 168, 255, .06), transparent 55%);
  background-attachment: fixed;
}

main {
  max-width: 44rem;
  margin: 0 auto;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--ink); text-decoration: none;
  margin-bottom: 1.75rem;
}
.brand svg { display: block; }

h1 {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em;
  margin: 0 0 1.75rem;
}
h2 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em;
  margin: 1.75rem 0 .75rem;
}
h3 { font-size: 1rem; margin: 1.5rem 0 .5rem; color: var(--muted); }

a { color: var(--brand-2); }

section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

ol { padding-left: 1.4rem; }
ol li { margin: .4rem 0; }
ul { padding-left: 1.2rem; }

button {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .6rem 1.15rem;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
button:hover:not(:disabled) { border-color: #33405a; background: #1d2330; }
button:disabled { opacity: .55; cursor: progress; }

/* The primary action buttons — sign in, submit — get the brand fill. */
#sign-in, #submit {
  background: var(--grad);
  color: var(--brand-ink);
  border-color: transparent;
  box-shadow: 0 8px 22px -10px rgba(52, 211, 180, .5);
}
#sign-in:hover:not(:disabled), #submit:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--grad);
}

button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 2px;
}

button.link {
  background: none; border: none; color: var(--brand-2);
  padding: 0; text-decoration: underline; font-weight: 500;
}
button.link:hover { background: none; color: var(--ink); }

.choices { display: flex; gap: .75rem; flex-wrap: wrap; }
.choices button { min-width: 7rem; }

/* "Add to Slack" primary call-to-action. */
#oauth-install {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: .5rem 0 1.25rem;
}
a.cta {
  display: inline-block;
  background: var(--grad);
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 700;
  padding: .6rem 1.2rem;
  border-radius: 10px;
}
a.cta:hover { transform: translateY(-1px); }

label {
  display: block;
  margin: 1rem 0 .35rem;
  font-weight: 600;
}

input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .65rem .8rem;
}
input::placeholder { color: var(--muted); }

.hint { color: var(--muted); font-size: .9rem; margin: .4rem 0 1rem; }

/* SKU picker */
#skus-list {
  margin-top: .5rem; max-height: 28rem; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 10px;
}
.sku-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .85rem; margin: 0; font-weight: 400;
  border-bottom: 1px solid var(--line-soft); cursor: pointer;
}
.sku-row:last-child { border-bottom: none; }
.sku-row:hover { background: var(--panel-2); }
.sku-row input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--brand);
}
.sku-meta { display: flex; flex-direction: column; }
.sku-name { color: var(--ink); }
.sku-sub { color: var(--muted); font-size: .82rem; font-family: var(--font-mono); }
#skus-filter { margin: .25rem 0 .75rem; }

/* Bearer-credential warning (R15.6) — weighted so it is read before pasting. */
.honest {
  border-left: 3px solid var(--warn);
  background: rgba(232, 195, 74, .07);
  padding: .8rem 1rem;
  margin: 1.25rem 0;
  border-radius: 0 8px 8px 0;
  color: var(--ink-2);
}
.warn { color: var(--warn); }

.status { min-height: 1.4rem; margin: .9rem 0 0; }
.status.good { color: var(--good); }
.status.bad { color: var(--bad); }

dl { margin: 1rem 0 0; }
dt { color: var(--muted); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .05em; }
dd { margin: .2rem 0 .9rem; }

.mono {
  font-family: var(--font-mono);
  word-break: break-all;
}
