/* trk-retail — retail commerce tech (catalog cards, data rows, commerce blue) */
:root {
  --bg: #f0f5fa;
  --surface: #ffffff;
  --text: #0c2340;
  --muted: #5a6f85;
  --border: #c8d9e8;
  --primary: #0066cc;
  --primary-dark: #004d99;
  --primary-light: #e6f0fa;
  --accent: #00a3e0;
  --max: 1020px;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0, 102, 204, 0.08);
}

*, *::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.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: 2px solid var(--primary); 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: 1.05rem; color: var(--primary); text-decoration: none; }
.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.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; }

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

.hero-retail { padding: 2.5rem 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.hero-retail h1 { margin: 0 0 0.75rem; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; color: var(--text); }
.lead { color: var(--muted); margin: 0; font-size: 1.02rem; max-width: 36rem; }
.eyebrow { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 0; }

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

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.catalog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s; }
.catalog-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0, 102, 204, 0.12); }
.catalog-card::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.catalog-card h3 { margin: 0; padding: 1.15rem 1.15rem 0.35rem; font-size: 1rem; font-weight: 700; color: var(--primary); }
.catalog-card p { margin: 0; padding: 0 1.15rem 1.15rem; color: var(--muted); font-size: 0.9rem; }

.data-rows { padding: 2rem 0; }
.data-row { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.data-row:first-child { border-top: 1px solid var(--border); }
.data-row span:first-child { font-weight: 600; color: var(--text); }
.data-row span:last-child { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; }

.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; color: var(--primary); margin-top: 1.5rem; }
.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: 700; }
.contact-card h2:first-child { margin-top: 0; }
.muted-card { background: var(--primary-light); border-color: transparent; }
.text-link { font-weight: 600; }

.site-footer { background: var(--text); color: #b0c4d8; margin-top: 2rem; }
.footer-inner { padding: 2rem 0; }
.footer-brand strong { color: #fff; font-size: 1rem; }
.footer-brand p { margin: 0.35rem 0 0; font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin: 1rem 0; }
.footer-links a { color: #b0c4d8; text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin: 0; font-size: 0.8rem; color: #7a9ab8; }
.muted { color: var(--muted); }

.section-head h2 { font-size: 1.3rem; color: var(--primary); margin: 0 0 0.35rem; }
.section-sub { color: var(--muted); margin: 0 0 1.25rem; font-size: 0.92rem; }
.text-link { color: var(--primary); font-weight: 600; }
.footer-inner { padding: 2rem 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.catalog-card:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.data-row:hover { background: var(--primary-light); margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; border-radius: 6px; }

.contact-card p { margin: 0; }
.prose a { color: var(--primary); font-weight: 500; }
.prose ul { padding-left: 1.25rem; }
.hero-retail .wrap { display: grid; gap: 0.5rem; }

@media (min-width: 721px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .data-rows { max-width: 640px; }
}

@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; }
  .data-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .hero-retail { padding: 1.75rem 0; }
  .catalog-grid { grid-template-columns: 1fr; }
}

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

.hero-retail { position: relative; }
.hero-retail::after { content: ""; position: absolute; bottom: 0; left: 1.25rem; right: 1.25rem; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); max-width: var(--max); margin: 0 auto; }
.data-rows { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1rem; }

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