/* LocalHub marketing site — shared design system.
   Palette matches the product app (navy hero, blue primary, sky accent)
   so the marketing site and the dashboard feel like one brand. */

:root {
  --navy: #0b1230;
  --navy-2: #0b1f4d;
  --blue: #2563eb;
  --blue-ink: #1d4ed8;
  --blue-light: #93c5fd;
  --sky: #0ea5e9;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-subtle: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-tint: #eef2ff;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.16);
  --shadow-lg: 0 24px 64px -20px rgba(15, 23, 42, 0.28);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 20px;
  border-top: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 4px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #1e293b; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.55);
}
.btn-accent:hover { background: var(--blue-ink); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-subtle); }
.btn-white {
  background: #fff;
  color: var(--navy-2);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15.5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 18% 20%, rgba(59, 130, 246, 0.55), transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.4), transparent 40%),
    radial-gradient(circle at 60% 90%, rgba(99, 102, 241, 0.35), transparent 45%),
    linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff;
  padding: 56px 0 120px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #dbeafe;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 999px; background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}
.hero h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 22px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #93c5fd, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(16px, 1.7vw, 19px);
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-note { margin-top: 14px; font-size: 13px; color: #94a3b8; }

.hero-panel {
  position: relative;
  margin: 0 auto;
  max-width: 980px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.35);
  box-shadow: var(--shadow-lg);
  padding: 10px;
}
.hero-panel-inner {
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: #eef2f7;
  border-bottom: 1px solid #e2e8f0;
}
.browser-bar span { width: 10px; height: 10px; border-radius: 999px; background: #cbd5e1; }
.mock-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 320px;
}
.mock-side { background: #0f172a0d; border-right: 1px solid #e2e8f0; padding: 18px 14px; display: none; }
.mock-side .mock-row { height: 10px; border-radius: 6px; background: #dbe3ee; margin-bottom: 12px; width: 78%; }
.mock-side .mock-row.short { width: 50%; }
.mock-main { padding: 22px; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); align-content: start; }
.mock-card { background: #fff; border: 1px solid #e5edf6; border-radius: 12px; padding: 16px; }
.mock-card .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #94a3b8; margin-bottom: 8px; }
.mock-card .v { font-size: 22px; font-weight: 800; color: var(--ink); }
.mock-card .bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 10px; }
.mock-card .bars i { flex: 1; background: linear-gradient(180deg, var(--blue-light), var(--blue)); border-radius: 3px 3px 0 0; }
.mock-card.wide { grid-column: span 3; }
@media (min-width: 720px) {
  .mock-side { display: block; }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
}
.section-head p { color: var(--ink-muted); font-size: 16.5px; margin: 0; }

/* Bento feature grid */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento-card {
  grid-column: span 6;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.bento-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-tint);
  color: var(--blue-ink);
  margin-bottom: 20px;
}
.bento-icon svg { width: 22px; height: 22px; }
.bento-card h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.bento-card p { margin: 0; color: var(--ink-muted); font-size: 14.5px; }
@media (min-width: 760px) {
  .bento-card.span-2 { grid-column: span 3; }
  .bento-card.span-3 { grid-column: span 2; }
}

/* Steps */
.steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 8px; }
.step-num {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; margin-bottom: 18px;
}
.step h3 { font-size: 17px; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-muted); font-size: 14.5px; }

/* Split section (feature + visual) */
.split { display: grid; gap: 56px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split.reverse .split-visual { order: -1; }
.split-visual {
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  padding: 28px;
}
.checklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-muted); }
.checklist svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue-ink); margin-top: 1px; }

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy-2), #142a63 60%, var(--blue-ink));
  color: #fff;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 14px; letter-spacing: -0.02em; }
.cta-band p { color: #cbd5e1; max-width: 520px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-muted); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-top { display: grid; gap: 40px; grid-template-columns: 1.4fr repeat(3, 1fr); margin-bottom: 48px; }
.footer-brand p { color: var(--ink-subtle); font-size: 14px; max-width: 280px; margin: 14px 0 0; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-subtle); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { font-size: 14.5px; color: var(--ink-muted); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-subtle);
}
.footer-bottom .socials { display: flex; gap: 14px; }
.footer-bottom .socials a { color: var(--ink-subtle); }
.footer-bottom .socials svg { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 72px; }
}

/* ---------- Legal / content pages ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero .container { max-width: 820px; }
.page-hero .kicker { color: #93c5fd; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; margin: 8px 0 12px; }
.page-hero .updated { color: #94a3b8; font-size: 14px; }

.legal-wrap { padding: 64px 0 100px; }
.legal-layout { display: grid; gap: 48px; grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
@media (min-width: 860px) { .legal-layout { grid-template-columns: 220px 1fr; max-width: none; } }
.toc { position: sticky; top: 96px; align-self: start; display: none; }
@media (min-width: 860px) { .toc { display: block; } }
.toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-subtle); margin: 0 0 14px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; border-left: 2px solid var(--line); }
.toc a { font-size: 13.5px; color: var(--ink-subtle); padding: 2px 0 2px 14px; display: block; }
.toc a:hover { color: var(--ink); }

.prose { max-width: 720px; }
.prose h2 { font-size: 21px; letter-spacing: -0.01em; margin: 40px 0 14px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16.5px; margin: 26px 0 10px; }
.prose p { color: var(--ink-muted); font-size: 15.5px; margin: 0 0 14px; }
.prose ul, .prose ol { color: var(--ink-muted); font-size: 15.5px; padding-left: 22px; margin: 0 0 14px; display: grid; gap: 8px; }
.prose a { color: var(--blue-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.callout {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  margin: 0 0 32px;
}
.callout strong { color: #78350f; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  padding: 24px;
  margin-top: 8px;
}
.contact-card dl { margin: 0; display: grid; gap: 10px; }
.contact-card dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-subtle); }
.contact-card dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); font-weight: 600; }

/* Simple contact page */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-tile {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; background: var(--surface);
}
.contact-tile .bento-icon { margin-bottom: 16px; }
.contact-tile h3 { margin: 0 0 6px; font-size: 17px; }
.contact-tile p { margin: 0 0 14px; color: var(--ink-muted); font-size: 14.5px; }
.contact-tile a.link { color: var(--blue-ink); font-weight: 700; font-size: 14.5px; }
