/* tracker-saas — light SaaS analytics (indigo, metric tiles) */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #06b6d4;
  --indigo-light: #eef2ff;
  --max: 1080px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(79, 70, 229, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 0.95rem;
  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 { color: var(--primary-dark); 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.75rem; }
.brand { font-weight: 700; font-size: 1rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 0.4rem; }
.brand::before { content: ""; width: 8px; height: 8px; background: var(--primary); border-radius: 2px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.88rem; }
.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: 8px; padding: 0.45rem; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 1px; }

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

.hero-saas { padding: 3rem 0; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.hero-saas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.hero-saas h1 { margin: 0.35rem 0 0.75rem; font-size: clamp(1.6rem, 4vw, 2.35rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin: 0; }
.lead { color: var(--muted); margin: 0; font-size: 1.02rem; max-width: 34rem; }
.hero-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: 0.65rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: 0.88rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

.metric-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.metric { margin-bottom: 1.25rem; }
.metric:last-child { margin-bottom: 0; }
.metric-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.metric-bar { display: block; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; position: relative; }
.metric-bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 50%); background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; }

.section-block { padding: 2.5rem 0; }
.section-block.alt-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head h2 { margin: 0 0 0.35rem; font-size: 1.35rem; font-weight: 700; }
.section-sub { color: var(--muted); margin: 0 0 1.5rem; font-size: 0.92rem; }

.saas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.saas-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow); transition: border-color 0.15s; }
.saas-card:hover { border-color: var(--primary); }
.saas-card h3 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 600; }
.saas-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

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

.prose h2 { font-size: 1.2rem; margin-top: 1.75rem; }
.prose p, .prose li { color: var(--muted); }

.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.5rem; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin: 1rem 0 0.25rem; font-weight: 600; }
.contact-card h2:first-child { margin-top: 0; }
.muted-card { background: var(--indigo-light); border-color: transparent; }
.text-link { font-weight: 600; color: var(--primary); }

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

.section-head { margin-bottom: 0.25rem; }
.text-link { color: var(--primary); font-weight: 600; }
.footer-inner { padding: 2rem 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.saas-card:focus-within { box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); }
.metric-panel { position: relative; }
.metric-panel::before { content: "Demo"; position: absolute; top: 0.75rem; right: 0.75rem; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--indigo-light); padding: 0.15rem 0.45rem; border-radius: 4px; }

.contact-card p { margin: 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--indigo-light); padding: 0.1rem 0.35rem; border-radius: 4px; }
.prose a { color: var(--primary); font-weight: 500; }

@media (min-width: 769px) {
  .hero-saas-grid { min-height: 280px; }
  .saas-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .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; }
  .hero-saas-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .metric-panel { margin-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .saas-card { transition: none; }
}

/* 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; }
}
