/* =============================================================
   Rich Statistics – GitHub Pages stylesheet
   statistics.richardkentgates.com
============================================================= */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-50:  #eff6ff;
  --gray-900: #0f172a;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50:  #f8fafc;
  --green-600: #16a34a;
  --radius:   0.5rem;
  --shadow:   0 1px 3px 0 rgb(0 0 0/0.1), 0 1px 2px -1px rgb(0 0 0/0.1);
  --shadow-md:0 4px 6px -1px rgb(0 0 0/0.1), 0 2px 4px -2px rgb(0 0 0/0.1);
  --shadow-lg:0 10px 15px -3px rgb(0 0 0/0.1), 0 4px 6px -4px rgb(0 0 0/0.1);
  font-size: 16px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  background: white;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.875em;
}
pre {
  background: var(--gray-900);
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-top: 0.75rem;
}
code { background: var(--gray-100); padding: 0.15em 0.4em; border-radius: 0.25rem; }
pre code { background: none; padding: 0; }

/* ---- Layout helpers ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary  { background: var(--blue-600); color: white; }
.btn--primary:hover { background: var(--blue-700); }
.btn--ghost    { background: transparent; color: var(--gray-700); border-color: var(--gray-200); }
.btn--ghost:hover { background: var(--gray-100); }
.btn--outline  { background: transparent; color: var(--blue-600); border-color: var(--blue-600); }
.btn--outline:hover { background: var(--blue-50); }
.btn--lg   { font-size: 1.0625rem; padding: 0.75rem 1.75rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--gray-200);
}
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--gray-900);
  text-decoration: none;
}
.nav__logo:hover { text-decoration: none; }
.nav__links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  margin-left: auto;
}
.nav__links a { color: var(--gray-700); font-size: 0.9375rem; font-weight: 500; }
.nav__links a:hover { color: var(--gray-900); text-decoration: none; }
.nav__cta { margin-left: 0.5rem; }

/* ---- Hero ---- */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--blue-50) 0%, white 100%);
}
.hero__badge {
  display: inline-block;
  background: white;
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero__headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue-600) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subhead {
  font-size: 1.1875rem;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}
.hero__meta {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ---- Promise strip ---- */
.promise-strip {
  background: var(--gray-900);
  color: white;
  padding: 2rem 0;
}
.promise-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.promise-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.promise-item__icon { font-size: 1.5rem; margin-bottom: 0.25rem; }
.promise-item strong { font-size: 1rem; font-weight: 600; color: white; }
.promise-item span   { font-size: 0.875rem; color: #94a3b8; }

/* ---- Generic section ---- */
.section { padding: 5rem 0; }
.section--alt { background: var(--gray-50); }
.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section__header h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}
.section__header p { font-size: 1.0625rem; color: var(--gray-500); }

/* ---- Features grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}
.feature-card__icon { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }
.feature-card h3 { font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.9375rem; color: var(--gray-500); margin-bottom: 0.75rem; }

/* ---- Badges ---- */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}
.badge--premium { background: #fef3c7; color: #92400e; }

/* ---- Privacy grid ---- */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.privacy-block {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.privacy-block h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.privacy-block p { font-size: 0.9375rem; color: var(--gray-500); line-height: 1.65; }
.privacy-block__status { font-size: 1rem; }
.privacy-block__status--good { color: var(--green-600); }
.privacy-audit-note {
  background: var(--gray-900);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
}
.privacy-audit-note code { background: #1e293b; color: #7dd3fc; }
.privacy-audit-note a { color: #93c5fd; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.pricing-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  background: white;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.pricing-card--featured {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-lg);
}
.pricing-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-600);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-card__tier { font-size: 1rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
}
.pricing-card__price span { font-size: 1rem; color: var(--gray-500); font-weight: 400; }
.pricing-card__features {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pricing-card__features li { font-size: 0.9375rem; color: var(--gray-700); }

/* ---- Steps ---- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.step__num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--blue-600);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}
.step__body h3 { font-size: 1.0625rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.375rem; }
.step__body p  { color: var(--gray-500); font-size: 0.9375rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--gray-900);
  color: #94a3b8;
  padding: 3rem 0;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 0.2rem; }
.site-footer__brand strong { color: white; font-size: 1rem; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.site-footer__links a { color: #94a3b8; font-size: 0.9375rem; }
.site-footer__links a:hover { color: white; text-decoration: none; }
.site-footer__legal { font-size: 0.8125rem; }
.site-footer__legal a { color: #94a3b8; }

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .nav__links { display: none; }
  .hero { padding: 4rem 0 3.5rem; }
  .step { flex-direction: column; gap: 0.75rem; }
  .step__num { margin-top: 0; }
}
