

/* ============================================================
   Webalytics — Global Stylesheet
   Covers: all 9 site pages + homepage
   ============================================================ */

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

:root {
  /* Backgrounds */
  --bg:          #faf7f2;
  --bg-card:     #ffffff;

  /* Text */
  --ink:         #1a1510;
  --ink-1:       #0f0f0f;
  --ink-2:       #6b7280;
  --ink-3:       #9ca3af;

  /* Borders */
  --border:      #e8e0d4;

  /* Brand — green */
  --accent:      #10b981;
  --green:       #10b981;
  --accent-dim:  #d1fae5;
  --green-dim:   #d1fae5;
  --accent-text: #065f46;
  --green-txt:   #065f46;

  /* Supporting colours */
  --blue:        #6366f1;
  --blue-dim:    #ede9fe;
  --blue-text:   #4338ca;
  --amber:       #f59e0b;
  --yellow:      #f59e0b;
  --yellow-dim:  #fef3c7;
  --yellow-text: #92400e;
  --red:         #ef4444;
  --red-dim:     #fee2e2;
  --red-text:    #991b1b;
  --pink:        #ec4899;
  --pink-dim:    #fce7f3;

  /* Typography */
  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --font:  'DM Sans', system-ui, sans-serif;

  /* Layout */
  --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

/* -- Animations -- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); font-weight: 500; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* -- Button variants -- */
.btn-ghost-sm {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.btn-ghost-sm:hover { background: var(--border); color: var(--ink); }

.btn-primary-sm {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  padding: 9px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-primary-sm:hover { opacity: 0.85; }

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-hero:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--ink-2);
  background: transparent;
  border: 0.5px solid var(--border);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn-hero-outline:hover { background: var(--bg-card); border-color: var(--ink-3); }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-cta:hover { opacity: 0.9; }

/* -- Mobile hamburger -- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 0.5px solid var(--border);
  padding: 16px;
  z-index: 99;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu.open { display: flex; }

.mobile-link {
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.mobile-link:hover { background: var(--bg); color: var(--ink); }

.mobile-divider { height: 0.5px; background: var(--border); margin: 8px 0; }
.mobile-cta-row { display: flex; gap: 8px; padding: 4px 0; }
.mobile-cta-row .btn-ghost-sm,
.mobile-cta-row .btn-primary-sm { flex: 1; text-align: center; }
/* -- Mobile Pricing Menu (added from v2) -- */
.mobile-pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--ink-2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 11px 12px;
  border-radius: 8px;
  width: 100%;
  font-family: var(--sans);
  transition: background 0.15s, color 0.15s;
}
.mobile-pricing-toggle:hover { background: var(--bg); color: var(--ink); }
.mobile-pricing-toggle svg { transition: transform 0.2s; }
.mobile-pricing-toggle.open svg { transform: rotate(180deg); }

.mobile-pricing-items {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 4px 12px;
}
.mobile-pricing-items.open { display: flex; }

.mobile-plan-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.mobile-plan-link:hover { background: var(--bg); color: var(--ink); }
.mobile-plan-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--green-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mobile-plan-name { font-weight: 500; color: var(--ink); }
.mobile-plan-desc { font-size: 12px; color: var(--ink-3); }


/* ============================================================
   SECTION PRIMITIVES
   ============================================================ */
section {
  padding: 100px 24px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-h {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 600px;
}

.section-sub {
  font-size: 17px;
  color: var(--ink-2);
  font-weight: 300;
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16,185,129,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245,158,11,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-dim);
  color: var(--green-txt);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  animation: fadeUp 0.6s ease both;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 em { font-style: italic; color: var(--green); }
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-2);
  max-width: 520px;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.6;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.6s 0.3s ease both;
}
.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
  animation: fadeUp 0.6s 0.4s ease both;
}

/* -- Dashboard preview -- */
.hero-preview {
  margin-top: 64px;
  width: 100%;
  max-width: 960px;
  animation: fadeUp 0.8s 0.5s ease both;
}
.preview-frame {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(26,21,16,0.12), 0 8px 24px rgba(26,21,16,0.06);
}
.preview-bar {
  background: #f0ede8;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 0.5px solid var(--border);
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-url {
  flex: 1;
  background: var(--bg-card);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--ink-3);
  margin: 0 8px;
}
.preview-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 320px;
}
.preview-sidebar {
  background: #faf7f2;
  border-right: 0.5px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.preview-logo {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink);
  padding: 4px 8px 12px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 8px;
}
.preview-nav-item {
  height: 30px;
  border-radius: 6px;
  background: var(--border);
  opacity: 0.5;
}
.preview-nav-item.active { background: var(--green-dim); opacity: 1; }
.preview-main { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.preview-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.preview-metric {
  background: #faf7f2;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.preview-metric-label { width: 60%; height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 8px; }
.preview-metric-val { width: 40%; height: 20px; background: var(--ink); border-radius: 4px; opacity: 0.12; }
.preview-metric-bar { width: 100%; height: 2px; background: var(--border); border-radius: 2px; margin-top: 8px; }
.preview-metric-bar-fill { height: 100%; background: var(--green); border-radius: 2px; }
.preview-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.preview-card {
  background: #faf7f2;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  height: 80px;
}
.preview-card-title { width: 50%; height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 10px; }
.preview-card-line { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 5px; }
.preview-card-line.short { width: 70%; }
.preview-card-line.shorter { width: 50%; }

/* ============================================================
   SOCIAL PROOF LOGOS
   ============================================================ */
.logos {
  padding: 40px 24px;
  text-align: center;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.logos-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logo-item {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-3);
  opacity: 0.5;
  letter-spacing: -0.3px;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
}
.feature-card {
  background: var(--bg-card);
  padding: 32px 28px;
  transition: background 0.2s;
}
.feature-card:hover { background: #fdfcfa; }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}
.feature-title { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.feature-desc  { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--ink);
  padding: 64px 24px;
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.stat-item {
  padding: 32px;
  text-align: center;
  border-right: 0.5px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: 52px;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num span { color: var(--green); }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.5); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.steps-list { display: flex; flex-direction: column; gap: 32px; }
.step { display: flex; gap: 20px; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-title { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.step-desc  { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

.steps-visual {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(26,21,16,0.08);
}
.snippet-label { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.code-snippet {
  background: var(--ink);
  border-radius: 10px;
  padding: 20px;
  font-family: monospace;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 20px;
}
.code-snippet .hl  { color: var(--green); }
.code-snippet .str { color: #fcd34d; }

/* ============================================================
   CONVERSION GRADE SHOWCASE
   ============================================================ */
.grade-showcase {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.grade-hero-demo { display: flex; align-items: center; gap: 20px; }
.grade-letter-demo {
  font-family: var(--serif);
  font-size: 72px;
  color: var(--green);
  line-height: 1;
  letter-spacing: -2px;
}
.grade-info-demo h3 { font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.grade-info-demo p  { font-size: 13px; color: var(--ink-2); }
.grade-bar { height: 6px; background: var(--border); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.grade-bar-fill { height: 100%; background: var(--green); border-radius: 3px; width: 72%; }
.buckets { display: flex; flex-direction: column; gap: 12px; }
.bucket-row { display: flex; align-items: center; gap: 12px; }
.bucket-name-demo { font-size: 13px; color: var(--ink-2); width: 90px; flex-shrink: 0; }
.bucket-bar-wrap  { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bucket-bar-inner { height: 100%; border-radius: 3px; }
.bucket-pct { font-size: 12px; color: var(--ink-3); width: 36px; text-align: right; flex-shrink: 0; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
}
.pricing-card { background: var(--bg-card); padding: 36px 32px; }
.pricing-card.featured { background: var(--ink); }
.pricing-plan {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px;
}
.pricing-card.featured .pricing-plan { color: rgba(255,255,255,0.5); }
.pricing-price {
  font-family: var(--serif);
  font-size: 48px;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-card.featured .pricing-price { color: #fff; }
.pricing-per { font-size: 13px; color: var(--ink-3); margin-bottom: 28px; }
.pricing-card.featured .pricing-per { color: rgba(255,255,255,0.5); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.pricing-features li { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.75); }
.pricing-features li::before { content: '-'; color: var(--green); font-weight: 600; flex-shrink: 0; }
.btn-pricing {
  display: block; text-align: center; padding: 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  border: 0.5px solid var(--border); color: var(--ink);
  background: transparent; transition: background 0.15s;
}
.btn-pricing:hover { background: var(--bg); }
.btn-pricing.featured { background: var(--green); border-color: var(--green); color: #fff; }
.btn-pricing.featured:hover { opacity: 0.9; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.testimonial-text {
  font-size: 15px; color: var(--ink-2); line-height: 1.6;
  margin-bottom: 20px; font-style: italic;
}
.testimonial-text::before { content: '"'; }
.testimonial-text::after  { content: '"'; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--green-txt);
}
.testimonial-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.testimonial-role { font-size: 12px; color: var(--ink-3); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--ink);
  padding: 100px 24px;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  color: #fff;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.cta-band h2 em { font-style: italic; color: var(--green); }
.cta-band p { font-size: 17px; color: rgba(255,255,255,0.5); margin-bottom: 36px; font-weight: 300; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 0.5px solid var(--border);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--ink-3); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 12px; color: var(--ink-3); }

/* ============================================================
   DOCS / HELP CENTER — SIDEBAR LAYOUT
   ============================================================ */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
}
.sidebar {
  position: sticky; top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 36px 24px;
  border-right: 0.5px solid var(--border);
}
.sidebar-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px;
}
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-bottom: 28px; }
.sidebar-nav a {
  display: block; font-size: 13px; color: var(--ink-2); text-decoration: none;
  padding: 5px 10px; border-radius: 6px; transition: all 0.15s;
}
.sidebar-nav a:hover { color: var(--ink); background: var(--bg-card); }
.sidebar-nav a.active { color: var(--accent-text); background: var(--accent-dim); font-weight: 500; }

/* ============================================================
   CODE BLOCKS
   ============================================================ */
.code-wrap {
  background: #0f0f0f;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0 24px;
}
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 0.5px solid #1f1f1f;
}
.code-lang { font-size: 11px; color: #6b7280; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.copy-btn {
  font-size: 11px; color: #9ca3af; background: #1f1f1f; border: none;
  padding: 4px 10px; border-radius: 4px; cursor: pointer; transition: all 0.15s;
  font-family: var(--font);
}
.copy-btn:hover { background: #2d2d2d; color: #fff; }
.copy-btn.copied { color: var(--accent); }
pre {
  padding: 20px; overflow-x: auto;
  font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.7;
  color: #e5e7eb;
}
pre .hl  { color: #93c5fd; }
pre .str { color: #6ee7b7; }
pre .cmt { color: #4b5563; }
pre .attr { color: #fde68a; }

/* ============================================================
   FORM ELEMENTS (shared across Contact, Search, etc.)
   ============================================================ */
.form-input,
.form-select,
.form-textarea {
  width: 100%; padding: 11px 14px; font-size: 14px; font-family: var(--font);
  border: 0.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); color: var(--ink); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--ink-3); }
.form-label { font-size: 12px; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; display: block; }
.form-error { font-size: 11px; color: var(--red); margin-top: 4px; display: none; }
.form-error.show { display: block; }
.form-group { margin-bottom: 16px; }

/* ============================================================
   FAQ / ACCORDION (shared)
   ============================================================ */
.faq-item { border-bottom: 0.5px solid var(--border); }
.faq-item:first-of-type { border-top: 0.5px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 0; cursor: pointer; font-size: 15px; gap: 16px; user-select: none;
}
.faq-arrow { color: var(--ink-3); font-size: 20px; transition: transform 0.25s; flex-shrink: 0; }
.faq-q.open .faq-arrow { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; }
.faq-a.open { max-height: 400px; padding-bottom: 17px; }
.faq-a p { font-size: 14px; color: var(--ink-2); font-weight: 300; line-height: 1.7; }

/* ============================================================
   STATUS / BADGE UTILITIES
   ============================================================ */
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
.response-badge,
.status-banner {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--accent-text);
  background: var(--accent-dim); padding: 8px 16px;
  border-radius: 999px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  .hamburger  { display: flex; }

  .features-grid   { grid-template-columns: 1fr; }
  .steps           { grid-template-columns: 1fr; }
  .steps-visual    { display: none; }
  .pricing-grid    { grid-template-columns: 1fr; }
  .testimonials    { grid-template-columns: 1fr; }
  .grade-showcase  { grid-template-columns: 1fr; }
  .docs-layout     { grid-template-columns: 1fr; }
  .sidebar         { display: none; }

  .stats-inner { grid-template-columns: 1fr; }
  .stat-item   { border-right: none; border-bottom: 0.5px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }

  .preview-body      { grid-template-columns: 1fr; }
  .preview-sidebar   { display: none; }
  .preview-metrics   { grid-template-columns: repeat(2, 1fr); }
  .preview-cards     { grid-template-columns: 1fr; }

  footer { flex-direction: column; text-align: center; }
  footer .footer-links { justify-content: center; }
}

@media (max-width: 600px) {
  h1 { font-size: 34px !important; }
  .section-h { font-size: 28px; }
  .hero { padding: 100px 20px 60px; }
  section { padding: 60px 20px; }
}