/* Shared styles for all SideQuest Automation onboarding pages */
:root {
  --bg: #FAFAF7;
  --ink: #0A0A0A;
  --muted: #5C5C5C;
  --line: #E8E6E0;
  --accent: #5B3FFF;
  --accent-soft: #EFEBFF;
  --card: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--accent);
  display: grid; place-items: center; color: white; font-weight: 800; font-size: 15px;
}
.topbar-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.topbar-links a { color: var(--muted); font-weight: 500; }
.topbar-links a:hover { color: var(--ink); text-decoration: none; }

/* Headers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1; letter-spacing: -0.03em; font-weight: 800;
  margin-bottom: 16px;
}
h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.2; letter-spacing: -0.02em; font-weight: 700;
  margin-top: 48px; margin-bottom: 12px;
}
h3 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  margin-top: 28px; margin-bottom: 8px;
}
p { margin-bottom: 16px; color: var(--ink); }
.lede { font-size: 18px; color: var(--muted); margin-bottom: 28px; }

/* Page container */
main { padding: 56px 0 96px; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; margin: 16px 0;
}
.card h3 { margin-top: 0; }

/* Lists */
ul, ol { margin: 0 0 16px 24px; }
li { margin-bottom: 8px; }
li code { background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 4px; font-size: 14px; }

/* Code blocks */
pre {
  background: #0A0A0A; color: #F5F5F4;
  padding: 16px 20px; border-radius: 10px;
  overflow-x: auto; font-size: 13px; line-height: 1.5;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  margin: 16px 0;
}
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; }
p code, li code, td code { background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 4px; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th { text-align: left; font-weight: 700; padding: 12px 14px; background: var(--accent-soft); color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }

/* Callouts */
.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 16px 20px; border-radius: 6px;
  margin: 20px 0;
}
.callout-warn {
  background: #FFF4E6;
  border-left-color: #B85C00;
}
.callout-warn { color: #5C3000; }
.callout strong { color: var(--accent); }
.callout-warn strong { color: #B85C00; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .15s ease, background .15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #4a2eff; transform: translateY(-1px); text-decoration: none; }
.btn-ghost { background: white; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }

/* Footer */
.foot {
  margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.foot a { color: var(--muted); font-weight: 500; }

/* Step list */
.step-list { list-style: none; margin: 0; padding: 0; }
.step-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 24px; margin-bottom: 12px;
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
}
.step-list .num {
  background: var(--accent); color: white;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.step-list h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step-list p { font-size: 14px; color: var(--muted); margin: 0; }
.step-list p + p { margin-top: 8px; }

/* FAQ */
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
}
details summary {
  cursor: pointer; font-weight: 700; font-size: 16px; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 700; }
details[open] summary::after { content: "−"; }
details[open] summary { margin-bottom: 14px; }
details p { font-size: 15px; color: var(--muted); }
details p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .topbar-links { gap: 14px; font-size: 13px; }
  main { padding: 32px 0 64px; }
}
