/*
 * AEO Pugmill — Shared Stylesheet
 * Loaded by all public pages via <link rel="stylesheet" href="/site.css">
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:       #7c3aed;
  --brand-dark:  #6d28d9;
  --brand-lt:    #ede9fe;
  --brand-muted: #a78bfa;
  --green:       #16a34a;
  --green-lt:    #dcfce7;
  --amber:       #d97706;
  --amber-lt:    #fef3c7;
  --red:         #dc2626;
  --red-lt:      #fee2e2;
  --blue:        #2563eb;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-300:    #d1d5db;
  --gray-400:    #9ca3af;
  --gray-500:    #6b7280;
  --gray-600:    #4b5563;
  --gray-700:    #374151;
  --gray-800:    #1f2937;
  --gray-900:    #111827;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */

nav {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.nav-logo img { height: 28px; width: 28px; border-radius: 6px; }

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-links a.active { color: var(--brand); font-weight: 600; background: var(--brand-lt); }
.nav-links a.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 6px;
}
.nav-links a.nav-cta:hover { background: var(--brand-dark); color: #fff; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  line-height: 1;
}
.btn-primary   { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-white     { background: #fff; color: var(--brand); }
.btn-white:hover { background: var(--brand-lt); }
.btn-outline   { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-ghost     { background: var(--gray-100); color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-lg        { padding: 14px 32px; font-size: 15px; }
.btn-sm        { padding: 7px 14px; font-size: 13px; }

/* ── Layout ──────────────────────────────────────────────────────────────── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 56px 0; }
section + section { border-top: 1px solid var(--gray-200); }

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.2;
}
.section-sub {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.6;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */

.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
}

/* ── Badges ──────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-brand  { background: var(--brand-lt); color: var(--brand); }
.badge-green  { background: var(--green-lt); color: var(--green); }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }
.badge-amber  { background: var(--amber-lt); color: var(--amber); }

/* ── Skeleton ────────────────────────────────────────────────────────────── */

.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
  display: inline-block;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Pulse dot ───────────────────────────────────────────────────────────── */

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  animation: pulsedot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulsedot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ── Check list ──────────────────────────────────────────────────────────── */

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.5;
}
.check-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--gray-900);
  color: var(--gray-500);
  padding: 20px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.footer-logo img { height: 22px; width: 22px; border-radius: 4px; }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  text-decoration: none;
  color: var(--gray-500);
  font-size: 13px;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  display: block;
  font-size: 12px;
  color: var(--gray-600);
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-800);
}
.footer-copy a { color: var(--gray-500); text-decoration: none; }
.footer-copy a:hover { color: #fff; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 680px) {
  .nav-links a:not(.nav-cta):not(.active) { display: none; }
  section { padding: 40px 0; }
}
