/* TM Grocery POS — marketing site */
:root {
  --bg: #0a0a0c;
  --bg-elevated: #121214;
  --bg-soft: #1a1a1e;
  --surface: #f6f6f4;
  --text: #f2f2f0;
  --text-muted: #a8a8a3;
  --text-dark: #141414;
  --text-dark-muted: #4a4a46;
  --brand: #f5c400;
  --brand-deep: #c99a00;
  --brand-glow: rgba(245, 196, 0, 0.28);
  --accent: #ffd54a;
  --border: rgba(255, 255, 255, 0.1);
  --border-dark: rgba(21, 32, 51, 0.12);
  --danger-soft: #ffe8e5;
  --ok-soft: #e5fbf7;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --max: 1080px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(245, 196, 0, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 213, 74, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffe066; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 12, 0.88);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(245, 196, 0, 0.35), 0 8px 24px var(--brand-glow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 560;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 38rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #e6b800);
  color: #141414;
  box-shadow: 0 10px 30px var(--brand-glow);
}
.btn-primary:hover { color: #000; }
.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.btn[aria-disabled="true"], .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}
.note {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.pos-preview {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.pos-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #445064; }
.dot.g { background: var(--brand); }
.dot.b { background: var(--accent); }
.pos-body { padding: 1rem; display: grid; gap: 0.7rem; }
.sku {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}
.sku strong { color: var(--text); }
.sku span { color: var(--text-muted); }
.total-line {
  display: flex;
  justify-content: space-between;
  padding-top: 0.4rem;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Sections */
section { padding: 2.25rem 0; }
.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.025em;
}
.section-sub {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 40rem;
}
.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}
.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.icon-pill {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  background: rgba(245, 196, 0, 0.12);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.85rem;
}

.cta-band {
  margin: 1rem 0 2.5rem;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background:
    linear-gradient(120deg, rgba(245, 196, 0, 0.14), rgba(255, 213, 74, 0.08));
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.cta-band h2 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.cta-band p { margin: 0; color: var(--text-muted); }

/* Legal pages */
.legal-page {
  background: var(--surface);
  color: var(--text-dark);
  flex: 1;
}
.legal-page .site-header {
  background: rgba(247, 249, 252, 0.9);
  border-bottom-color: var(--border-dark);
}
.legal-page .brand { color: var(--text-dark); }
.legal-page .brand:hover { color: var(--text-dark); }
.legal-page .nav a { color: var(--text-dark-muted); }
.legal-page .nav a:hover,
.legal-page .nav a[aria-current="page"] {
  color: var(--text-dark);
  background: rgba(21, 32, 51, 0.06);
}
.legal-page .logo-mark {
  box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.08), 0 8px 20px rgba(245, 196, 0, 0.22);
}
.legal-wrap {
  width: min(100% - 2rem, 820px);
  margin: 0 auto;
  padding: 2.25rem 0 3rem;
}
.legal-wrap h1 {
  color: var(--text-dark);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.35rem;
}
.meta {
  color: var(--text-dark-muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.legal-wrap h2 {
  margin: 1.75rem 0 0.55rem;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  color: var(--text-dark);
}
.legal-wrap p, .legal-wrap li {
  color: #2c3a51;
  font-size: 1rem;
}
.legal-wrap ul { padding-left: 1.2rem; }
.legal-wrap li { margin: 0.35rem 0; }
.disclaimer {
  margin-top: 1.75rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  background: #eef3fb;
  border: 1px solid rgba(21, 32, 51, 0.08);
  color: var(--text-dark-muted);
  font-size: 0.92rem;
}
.legal-page .site-footer {
  background: #eef2f8;
  border-top: 1px solid var(--border-dark);
  color: var(--text-dark-muted);
}
.legal-page .site-footer a { color: var(--brand-deep); }

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
  color: var(--text-muted);
  padding: 1.4rem 0;
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
