/* =====================================================
   StaffHub360 — Shared Styles
   Used across all pages. Keep this single source of truth.
   ===================================================== */

:root {
  --brand: #4f46e5;
  --brand-hover: #4338ca;
  --brand-soft: #eef2ff;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #e5e7eb;
  --bg-soft: #f8fafc;
  --bg-page: #f5f7fa;
  --success: #10b981;
  --danger: #ef4444;
}

/* ---------- BASE ---------- */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
}
.font-serif { font-family: 'Playfair Display', Georgia, serif; }

/* ---------- BUTTONS ---------- */
.btn-primary {
  background: var(--brand);
  color: #fff;
  transition: all .2s;
}
.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -10px rgba(79,70,229,.5);
}
.btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.btn-outline {
  border: 1px solid var(--border);
  transition: all .2s;
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- NAV ---------- */
.nav-link { color: var(--text-muted); transition: color .15s; }
.nav-link:hover { color: var(--brand); }
.nav-link.active { color: var(--brand); }

/* ---------- LOGO MARK ---------- */
.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .5rem;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.logo-mark svg { width: 1.25rem; height: 1.25rem; }

/* ---------- CARDS ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all .25s;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(15,23,42,.12);
  border-color: #c7d2fe;
}

/* ---------- PILLS ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #f1f5f9;
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: .78rem;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* ---------- HERO ---------- */
.hero-bg { background: radial-gradient(ellipse at top, var(--brand-soft) 0%, #fff 60%); }
.feature-section { background: var(--bg-soft); }

/* ---------- STATS ---------- */
.stat-num { font-family: 'Playfair Display', serif; font-weight: 700; }
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: all .2s;
}
.stat-card:hover { border-color: #c7d2fe; }

/* ---------- VALUE CARDS (about page) ---------- */
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all .2s;
}
.value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(15,23,42,.1);
  border-color: #c7d2fe;
}

/* ---------- TESTIMONIALS ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

/* ---------- FORMS ---------- */
.input {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .92rem;
  transition: all .15s;
  background: #fff;
}
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.label {
  font-size: .82rem;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: .35rem;
  display: block;
}
.label-strong {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.label .req { color: var(--danger); }

.icon-tile {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- FEATURE PAGE BLOCKS ---------- */
.feature-cat {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #6366f1;
  text-transform: uppercase;
}
.check-li {
  display: flex;
  align-items: start;
  gap: .5rem;
  font-size: .9rem;
  color: var(--text-muted);
  padding: .25rem 0;
}
.check-li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}
.preview {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}
.dot { width: .6rem; height: .6rem; border-radius: 50%; }

/* ---------- PACKAGES ---------- */
.pkg-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all .25s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pkg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(15,23,42,.15);
}
.pkg-card.featured {
  border: 2px solid var(--brand);
  box-shadow: 0 18px 40px -16px rgba(79,70,229,.25);
}
.pkg-card.dark {
  background: #0f172a;
  color: #fff;
  border-color: #1e293b;
}
.badge-trial {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #dcfce7;
  color: #15803d;
  font-size: .65rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 999px;
}
.badge-pop {
  position: absolute;
  top: -.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 999px;
}
.feat {
  display: flex;
  align-items: start;
  gap: .5rem;
  padding: .3rem 0;
  font-size: .88rem;
}
.feat-yes::before { content: "✓"; color: var(--success); font-weight: 700; }
.feat-no::before { content: "—"; color: #cbd5e1; font-weight: 700; }
.feat-no { color: #cbd5e1; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: #94a3b8;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .body {
  padding: 0 1.25rem 1rem;
  color: var(--text-light);
  font-size: .9rem;
}

/* ---------- AUTH PAGES (login/signup) ---------- */
.auth-page { background: var(--bg-page); min-height: 100vh; }
.card-shadow { box-shadow: 0 20px 50px -20px rgba(15,23,42,.12); }

/* ---------- LEGAL PAGES ---------- */
.legal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  color: var(--text);
}
.legal h3 {
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
  color: #1e293b;
}
.legal p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: .85rem;
}
.legal ul {
  color: var(--text-muted);
  padding-left: 1.25rem;
  margin-bottom: .85rem;
}
.legal ul li {
  padding: .2rem 0;
  line-height: 1.6;
  list-style: disc;
}
.legal a { color: var(--brand); text-decoration: underline; }

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--brand); }
