/* tracker-retail — retail analytics dashboard (chart bars, stat cards) */
:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-light: #dbeafe;
  --chart-1: #3b82f6;
  --chart-2: #60a5fa;
  --chart-3: #93c5fd;
  --chart-4: #bfdbfe;
  --max: 1060px;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(26, 35, 50, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 0.5rem 1rem; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.site-main { padding-bottom: 3rem; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; min-height: 3.5rem; }
.brand { font-weight: 700; font-size: 0.95rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.brand::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: linear-gradient(135deg, var(--chart-1), var(--chart-3)); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.85rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary); }
.nav-toggle { display: none; border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 0.4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--text); margin: 3px 0; }

.demo-banner { background: var(--primary-light); border-bottom: 1px solid var(--border); padding: 0.55rem 0; font-size: 0.82rem; color: var(--muted); }

.hero-analytics { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.hero-analytics h1 { margin: 0 0 0.5rem; font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
.lead { color: var(--muted); margin: 0; font-size: 0.95rem; max-width: 34rem; }
.eyebrow { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin: 0; }

.section-block { padding: 2rem 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.stat-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 1rem; }

.chart-bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 80px; padding-top: 0.5rem; }
.chart-bars span { flex: 1; background: linear-gradient(180deg, var(--chart-1), var(--chart-3)); border-radius: 4px 4px 0 0; height: var(--h, 50%); min-height: 8px; transition: opacity 0.15s; }
.chart-bars span:nth-child(2) { background: linear-gradient(180deg, var(--chart-2), var(--chart-4)); }
.chart-bars span:nth-child(3) { opacity: 0.85; }
.chart-bars span:nth-child(4) { opacity: 0.7; }

.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 2rem 0; }
.page-hero h1 { margin: 0.35rem 0 0.65rem; font-size: clamp(1.4rem, 4vw, 1.85rem); font-weight: 700; }
.content-section { padding: 2rem 0; }

.prose { max-width: 40rem; }
.prose h2 { font-size: 1.1rem; font-weight: 700; margin-top: 1.5rem; color: var(--text); }
.prose p, .prose li { color: var(--muted); font-size: 0.9rem; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin: 0.85rem 0 0.2rem; font-weight: 700; }
.contact-card h2:first-child { margin-top: 0; }
.muted-card { background: var(--bg); }
.text-link { font-weight: 600; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 2rem; }
.footer-inner { padding: 1.75rem 0; }
.footer-brand strong { font-size: 0.92rem; }
.footer-brand p { margin: 0.3rem 0 0; font-size: 0.82rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin: 0.85rem 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { margin: 0; font-size: 0.78rem; color: var(--muted); }
.muted { color: var(--muted); font-size: 0.85rem; font-style: italic; }

.section-head h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.35rem; }
.section-sub { color: var(--muted); font-size: 0.88rem; margin: 0 0 1rem; }
.text-link { color: var(--primary); font-weight: 600; }
.footer-inner { padding: 1.75rem 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.stat-card:hover .chart-bars span { opacity: 1; }
.stat-card { position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--chart-1), var(--chart-3)); opacity: 0; transition: opacity 0.15s; }
.stat-card:hover::after { opacity: 1; }

.contact-card p { margin: 0; font-size: 0.9rem; }
.prose a { color: var(--primary); }
.hero-analytics .wrap { max-width: 36rem; }
.chart-bars span { opacity: 0.85; }

@media (min-width: 721px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-analytics { padding: 2.5rem 0 2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.5rem 0; }
  .chart-bars { height: 60px; }
  .stat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stat-card::after { transition: none; }
  .chart-bars span { transition: none; }
}

.hero-analytics::after { content: ""; display: block; width: 100%; height: 1px; background: var(--border); margin-top: 1rem; }
.stat-card + .stat-card { border-left: none; }
.section-block + .prose { padding-top: 0.5rem; }

/* Shared utilities & a11y enhancements */
.site-main { min-height: 50vh; }
.header-inner.wrap, .footer-inner.wrap { padding-left: 0; padding-right: 0; }
.site-nav a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
.demo-banner strong { font-weight: 700; }
.content-section .prose { max-width: 42rem; }
.page-hero .eyebrow + h1 { margin-top: 0.35rem; }
.contact-grid .contact-card h2 + p { line-height: 1.5; }

@media (prefers-contrast: more) {
  :root { --border: currentColor; }
  .site-header, .site-footer, .contact-card, .deal-card, .saas-card, .catalog-card, .stat-card, .panel, .mod, .link-row { border-width: 2px; }
}

@media print {
  .skip-link, .nav-toggle, .demo-banner, .site-nav { display: none !important; }
  .site-header { position: static; border-bottom: 1px solid #000; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
}
