/* Public pages (pricing, docs, auth) — same tokens as the app shell */
body.pub { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }

.pub-nav {
  display: flex; align-items: center; gap: 26px; padding: 0 28px; height: 62px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.pub-brand { display: flex; align-items: center; gap: 10px; font-weight: 700;
  font-size: 17px; letter-spacing: -.03em; color: var(--text); text-decoration: none; }
.pub-brand .logo { width: 28px; height: 28px; border-radius: 8px; display: grid;
  place-items: center; background: linear-gradient(140deg, var(--accent), #6d54f0); }
.pub-brand .logo svg { width: 16px; height: 16px; }
.pub-links { display: flex; gap: 2px; }
.pub-links a { color: var(--muted); text-decoration: none; padding: 7px 12px;
  border-radius: 7px; font-weight: 540; font-size: 14px; }
.pub-links a:hover { color: var(--text); background: var(--surface-2); }
.pub-links a.on { color: var(--accent); background: var(--accent-soft); font-weight: 620; }
.pub-cta { margin-left: auto; }

.pub-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 44px 24px 72px; }
.pub-main h1 { font-size: 30px; margin-bottom: 8px; letter-spacing: -.03em; }
.pub-main h2 { font-size: 24px; letter-spacing: -.025em; }
.pub-main h3 { font-size: 16px; margin: 26px 0 10px; }
.pub-main .lead { color: var(--muted); font-size: 16px; margin: 0 0 34px; }
.pub-head { text-align: center; max-width: 580px; margin: 0 auto 40px; }
.eyebrow { color: var(--accent); font-weight: 660; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }

.pub-foot { border-top: 1px solid var(--border); padding: 22px 28px;
  display: flex; gap: 20px; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.pub-foot a { color: var(--muted); text-decoration: none; }
.pub-foot a:hover { color: var(--text); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 18px; }
.price-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px; position: relative; box-shadow: var(--shadow-sm); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price-card .tag { position: absolute; top: -11px; left: 24px; background: var(--accent);
  color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 11px;
  border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.price-card h3 { margin: 0 0 4px; font-size: 17px; }
.price { font-size: 36px; font-weight: 700; letter-spacing: -.04em; margin: 6px 0 18px; }
.price span { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li { padding: 7px 0 7px 25px; position: relative; color: var(--text-2); font-size: 14px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 11px; height: 6px;
  border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }

/* ---------- docs ---------- */
.doc-block { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 8px; }
.doc-block pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 12.9px;
  line-height: 1.7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-2); }

/* ---------- auth card ---------- */
.auth-wrap { flex: 1; display: grid; place-items: center; padding: 40px 24px; }
.auth-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 34px 30px; width: 100%; max-width: 380px;
  box-shadow: var(--shadow); text-align: center; }
.auth-logo { width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 13px;
  background: linear-gradient(140deg, var(--accent), #6d54f0);
  display: grid; place-items: center; }
.auth-logo svg { width: 22px; height: 22px; }
.auth-card h1 { font-size: 20px; margin-bottom: 5px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.auth-card input { width: 100%; margin-bottom: 10px; }
.auth-card button { width: 100%; }
.auth-card .divider { color: var(--muted); font-size: 12.5px; margin: 18px 0 12px; }
.auth-card a { text-decoration: none; font-weight: 550; }
.auth-card a:hover { text-decoration: underline; }
.auth-foot { margin-top: 14px; font-size: 13px; color: var(--muted); }

@media (max-width: 700px) {
  .pub-nav { padding: 0 16px; gap: 12px; }
  .pub-links { display: none; }
  .pub-main { padding: 30px 16px 56px; }
}
