:root {
  --bg: #0b1220;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --accent: #0ea5e9;
  --good: #16a34a;
  --good-bg: #dcfce7;
  --warn: #b45309;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15,23,42,.08), 0 8px 24px rgba(15,23,42,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: #f8fafc; line-height: 1.55;
}
a { color: var(--brand); }
.muted { color: var(--muted); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 24px; }

/* ---------- Top nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1040px; margin: 0 auto; padding: 18px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand .dot { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: inline-block; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: 0; border-radius: 10px;
  padding: 11px 18px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background .15s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { background: #f1f5f9; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 56px 24px 28px; }
.hero h1 { font-size: 44px; line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
.hero h1 .grad { background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.eyebrow { display: inline-block; background: #eef2ff; color: var(--brand-dark); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature h3 { margin: 8px 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature .ic { font-size: 22px; }

/* ---------- Pricing ---------- */
.section-title { text-align: center; margin: 48px 0 8px; font-size: 30px; letter-spacing: -.02em; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 28px; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.plan.featured::before { content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { margin: 0 0 4px; font-size: 18px; }
.plan .price { font-size: 36px; font-weight: 800; margin: 8px 0; }
.plan .price span { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; color: var(--ink); font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.addon-note { text-align: center; color: var(--muted); margin-top: 18px; font-size: 14px; }

/* ---------- Cards / dashboard ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card h1, .card h2 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: #fff;
}
.field input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.error { color: #dc2626; font-size: 14px; margin: 8px 0; min-height: 18px; }

.auth-wrap { max-width: 420px; margin: 56px auto; }

/* state chips */
.states { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; user-select: none; font-weight: 600; font-size: 14px; background: #fff; }
.chip input { accent-color: var(--brand); }
.chip.on { border-color: var(--brand); background: #eef2ff; color: var(--brand-dark); }

/* poster list */
.poster { display: flex; justify-content: space-between; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.poster-meta h3 { margin: 4px 0 2px; font-size: 16px; }
.poster-meta p { margin: 0; font-size: 13px; }
.tag { display: inline-block; background: #f1f5f9; color: var(--muted); font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.link { font-size: 14px; font-weight: 600; text-decoration: none; }

.ack-btn { background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ack-btn.done { background: var(--good-bg); color: var(--good); cursor: default; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.pill { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.pill.ok { background: var(--good-bg); color: var(--good); }
.pill.no { background: #fef3c7; color: var(--warn); }

.copy-row { display: flex; gap: 8px; margin-top: 6px; }
.copy-row input { flex: 1; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: ui-monospace, monospace; background: #f8fafc; }

footer.site { text-align: center; color: var(--muted); padding: 40px 24px; font-size: 14px; }

/* employee/public server-rendered page */
.public-page { background: #f1f5f9; }
.employee { max-width: 760px; margin: 24px auto; }
.emp-head h1 { font-size: 26px; margin-bottom: 6px; }
.posters { margin-top: 18px; }
.footer-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; }

@media (max-width: 820px) {
  .features, .pricing { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .poster { flex-direction: column; align-items: flex-start; }
}
