/* Micro SaaS Spawner — shared design system (vanilla, no framework). */
:root {
  --bg: #0b0d12; --bg2: #0f1218; --panel: #151922; --panel2: #1b202b;
  --line: #262c39; --line2: #2f3645;
  --text: #e8eaf0; --muted: #8b93a4; --faint: #5b6273;
  --accent: #5b7cfa; --accent2: #7b5bfa; --accent-ink: #fff;
  --go: #2fbf71; --nogo: #e5484d; --warn: #f4a261;
  --scout: #f4a261; --cluster: #b07bff; --validate: #4cc9f0;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line2); background: var(--panel2); color: var(--text);
  padding: 9px 16px; border-radius: var(--radius-sm); font-size: 13px;
  font-weight: 600; cursor: pointer; transition: .15s; text-decoration: none;
}
.btn:hover { border-color: var(--faint); background: #222838; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--grad); border: 0; color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); background: var(--grad); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-block { width: 100%; padding: 12px; font-size: 14px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ── Inputs ───────────────────────────────────────────────────────────── */
.input, input[type=text], input[type=email], input[type=password], input[type=number] {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; width: 100%;
  transition: .15s;
}
.input:focus, input:focus { outline: none; border-color: var(--accent); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .05em; }

/* ── Top nav ──────────────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; gap: 16px; padding: 14px 24px;
  border-bottom: 1px solid var(--line); background: rgba(15,18,24,.8);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px;
  letter-spacing: -.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 26px; height: 26px; border-radius: 7px; background: var(--grad);
  display: grid; place-items: center; font-size: 15px; }
.nav .spacer { flex: 1; }
.nav .navlinks { display: flex; gap: 6px; align-items: center; }
.usermenu { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
.pill { font-size: 11px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line2);
  color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pill.go { color: var(--go); border-color: rgba(47,191,113,.4); background: rgba(47,191,113,.1); }

/* ── Auth pages ───────────────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(91,124,250,.12), transparent); }
.auth-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.auth-card .brand { justify-content: center; margin-bottom: 8px; font-size: 18px; }
.auth-card h2 { text-align: center; font-size: 20px; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 24px; font-size: 13px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: 13px; }
.alert { background: rgba(229,72,77,.1); border: 1px solid rgba(229,72,77,.4); color: #ffb4b6;
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px; display: none; }
.alert.show { display: block; }

/* ── Landing ──────────────────────────────────────────────────────────── */
.hero { max-width: 920px; margin: 0 auto; padding: 90px 24px 60px; text-align: center; }
.hero .eyebrow { display: inline-block; font-size: 12px; color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -.03em; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 20px auto 32px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.section { max-width: 1040px; margin: 0 auto; padding: 40px 24px; }
.section h2 { text-align: center; font-size: 28px; margin-bottom: 8px; }
.section .lead { text-align: center; color: var(--muted); margin-bottom: 36px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--panel2);
  display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; border: 1px solid var(--line); }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13px; margin: 0; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px;
  max-width: 720px; margin: 0 auto; }
.price { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; }
.price.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.price .amt { font-size: 38px; font-weight: 800; margin: 10px 0; }
.price .amt span { font-size: 14px; color: var(--muted); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 16px 0 22px; }
.price li { padding: 6px 0; color: #c7ccd6; font-size: 13px; display: flex; gap: 8px; }
.price li::before { content: "✓"; color: var(--go); font-weight: 700; }
.foot { text-align: center; color: var(--faint); font-size: 13px; padding: 40px 24px;
  border-top: 1px solid var(--line); margin-top: 40px; }

.center-narrow { max-width: 720px; margin: 0 auto; padding: 32px 24px; }
.card-plain { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .k { color: var(--muted); font-size: 13px; }
.row .v { font-weight: 600; }
.usage-bar { height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.usage-bar > div { height: 100%; background: var(--grad); transition: width .3s; }
