/* HammerSync marketing site: one stylesheet, no build step.
   Brand colours come from docs/HammerSync-TriFold-Brochure.svg (navy #0b3155, teal #087f89). */

:root {
  --navy: #0b3155;
  --teal: #087f89;
  --accent: #4f46e5; /* matches the app's indigo buttons */
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --card: #ffffff;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #111a2e;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: #1f2b44;
    --card: #111a2e;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; border-radius: 6px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover { background: var(--bg-alt); color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* comfortable touch target */
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
}

.btn:hover { filter: brightness(1.08); }

.btn.secondary { background: transparent; color: var(--accent); }

.nav .btn { color: #fff; margin-left: 4px; }
.nav .btn:hover { background: var(--accent); color: #fff; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  padding: 72px 0;
}

.hero .wrap { display: grid; gap: 32px; align-items: center; }

@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.2fr 1fr; }
}

.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 16px; }
.hero p { font-size: 1.15rem; margin: 0 0 24px; opacity: 0.95; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn { background: #fff; color: var(--navy); border-color: #fff; }
.hero .btn.secondary { background: transparent; color: #fff; }

.hero-art { background: rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 16px; }
.hero-art img { display: block; width: 100%; border-radius: 8px; }

/* ── Sections ─────────────────────────────────────────── */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }

h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 8px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; }
.more { margin-top: 24px; }
.lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 32px; max-width: 720px; }

.grid { display: grid; gap: 16px; }

@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.card .role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); font-weight: 700; }

/* ── Comparison table ─────────────────────────────────── */
.table-scroll { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
th { background: var(--bg-alt); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
td:last-child { font-weight: 600; }

/* Four columns do not fit a phone: keep them readable and let .table-scroll scroll sideways. */
table.compare { min-width: 720px; }

/* ── Call to action band ──────────────────────────────── */
.cta { text-align: center; background: var(--navy); color: #fff; }
.cta p { opacity: 0.9; max-width: 560px; margin: 0 auto 24px; }
.cta .btn { background: #fff; color: var(--navy); border-color: #fff; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { padding: 32px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Respect users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
