/* app.<domain> — the Atlas Workbench site. Colours are the hub's tokens
   (frontend/src/styles/tokens.css), so both read as one product. No web
   font: hospital networks block font CDNs, and a self-hosted one is not
   worth it for three pages. */

:root {
  --ink: #101828;
  --body: #344054;
  --muted: #667085;
  --paper: #f7f8fa;
  --white: #ffffff;
  --hairline: #e4e7ec;
  --border: #d0d5dd;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-tint: #eef2ff;
  --accent-line: #c7d2fe;
  --amber: #b54708;
  --amber-tint: #fffaeb;
  --amber-line: #fedf89;
  --radius: 10px;
  --font: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --width: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); margin: 0 0 16px; letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; margin: 0 0 12px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; }

code, pre { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--paper); border: 1px solid var(--hairline); border-radius: 5px; padding: 1px 5px; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 16px; }

/* --- header ------------------------------------------------------------ */
.site-header { border-bottom: 1px solid var(--hairline); background: var(--white); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.05rem; white-space: nowrap; }
.brand img { width: 28px; height: 28px; }
.brand span { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--body); text-decoration: none; padding: 6px 12px; border-radius: 8px; font-size: 0.95rem; }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-tint); color: var(--accent); font-weight: 600; }

@media (max-width: 600px) {
  .site-header .wrap { height: auto; flex-wrap: wrap; gap: 4px 12px; padding-top: 10px; padding-bottom: 8px; }
  .nav { margin-left: -12px; width: 100%; }
  .nav a { padding: 6px 10px; }
  .brand span { display: none; }
}

/* --- buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 9px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.3; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { background: var(--paper); color: var(--ink); }
.btn small { font-weight: 500; opacity: 0.8; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- home ---------------------------------------------------------------- */
.hero { padding: 64px 0 40px; }
.hero .lead { font-size: 1.15rem; max-width: 640px; margin: 0 0 28px; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.shot { margin: 40px 0 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08); }
.shot img { display: block; width: 100%; height: auto; }
.shot-caption { color: var(--muted); font-size: 0.88rem; margin-top: 10px; }

.section { padding: 56px 0; border-top: 1px solid var(--hairline); }
.section > .wrap > p.intro { max-width: 680px; margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; background: var(--white); }
.card p { margin: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; position: relative; padding: 22px 22px 22px 64px; background: var(--paper); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.9rem; display: grid; place-items: center; }
.steps p { margin: 0; }

/* --- page heads, notes -------------------------------------------------- */
.page-head { padding: 48px 0 8px; }
.page-head p { max-width: 680px; font-size: 1.08rem; margin: 0; }
.note { border: 1px solid var(--amber-line); background: var(--amber-tint); border-radius: var(--radius); padding: 14px 16px; color: #7a2e0e; font-size: 0.95rem; }
.note strong { color: #7a2e0e; }
.muted { color: var(--muted); }

/* --- installation tabs -------------------------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); margin: 32px 0 0; overflow-x: auto; }
.tabs button { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 12px 16px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .detected { font-weight: 500; font-size: 0.8rem; color: var(--muted); margin-left: 6px; }
.panel { padding: 28px 0 8px; }
.panel[hidden] { display: none; }
.panel .actions { margin: 4px 0 8px; }
.panel ol { padding-left: 22px; max-width: 720px; }
.panel ol li { margin: 0 0 10px; }
.panel h3 { margin-top: 28px; }
.panel .req { color: var(--muted); font-size: 0.92rem; margin: 6px 0 20px; }

.cmd { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 9px; background: var(--ink); max-width: 760px; margin: 8px 0 12px; }
.cmd pre { margin: 0; padding: 12px 14px; color: #f2f4f7; overflow-x: auto; flex: 1; font-size: 0.86rem; line-height: 1.5; }
.cmd button { appearance: none; border: 0; border-left: 1px solid #344054; background: transparent; color: #d0d5dd; padding: 0 14px; font: inherit; font-size: 0.85rem; cursor: pointer; border-radius: 0 9px 9px 0; }
.cmd button:hover { color: #fff; background: #1d2939; }

details { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 12px 16px; max-width: 760px; margin: 16px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details[open] summary { margin-bottom: 8px; }

.release-line { color: var(--muted); font-size: 0.9rem; margin-top: 24px; }

/* --- documentation ------------------------------------------------------ */
.doc-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .doc-list { grid-template-columns: 1fr; } }
.doc-list li { border: 1px dashed var(--border); border-radius: var(--radius); padding: 18px 20px; }
.doc-list h3 { display: flex; align-items: center; gap: 10px; }
.doc-list .soon { font-size: 0.75rem; font-weight: 600; color: var(--muted); background: var(--paper); border: 1px solid var(--hairline); border-radius: 999px; padding: 1px 8px; }
.doc-list p { margin: 0; color: var(--muted); }

/* --- footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 64px; padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; max-width: 620px; }
