/*
 * Shared styles for the routemetrics.app marketing site.
 * Linked from every public page (index, pricing, privacy, terms, support).
 * Kept intentionally small + framework-free — easy to maintain by hand.
 */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; margin-top: 0; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 16px; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / nav ---- */
.site-header {
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #0066cc;
}

.brand img { width: 28px; height: 28px; }

.site-nav { display: flex; gap: 24px; }
.site-nav a { color: #555; font-size: 15px; }
.site-nav a:hover { color: #0066cc; text-decoration: none; }

/* ---- Hero ---- */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.hero h1 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero .lead {
  font-size: 19px;
  color: #555;
  max-width: 560px;
  margin: 16px auto 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: #0066cc;
  color: #fff;
}
.btn-primary:hover {
  background: #0055ab;
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: #0066cc;
  border-color: #cfdcec;
}
.btn-secondary:hover {
  border-color: #0066cc;
  text-decoration: none;
}

/* ---- Section ---- */
section {
  padding: 64px 0;
}

section.alt {
  background: #f7f9fc;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head p {
  color: #666;
  font-size: 17px;
  max-width: 560px;
  margin: 8px auto 0;
}

/* ---- Feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
}

.feature code {
  display: inline-block;
  background: #f0f5fa;
  color: #0066cc;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  margin-bottom: 8px;
}

.feature h3 { margin: 4px 0 8px; font-size: 17px; }
.feature p { color: #555; font-size: 14px; margin: 0; }

/* ---- Screenshot gallery ---- */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.shot {
  margin: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.shot img {
  display: block;
  width: 100%;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.shot figcaption {
  padding: 14px 18px;
  font-size: 14px;
  color: #555;
}

.video-embed {
  max-width: 720px;
  margin: 32px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Pricing grid ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.plan-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.plan-card.featured {
  border-color: #0066cc;
  border-width: 2px;
  position: relative;
}

.plan-card .ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #0066cc;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-card h3 { font-size: 18px; margin: 0 0 4px; }
.plan-card .plan-tag { color: #666; font-size: 13px; margin: 0 0 16px; }
.plan-card .plan-price { font-size: 36px; font-weight: 700; line-height: 1; margin: 0; }
.plan-card .plan-price .unit { font-size: 16px; color: #666; font-weight: 400; margin-left: 4px; }
.plan-card .plan-alt { color: #666; font-size: 13px; margin: 6px 0 16px; }

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}

.plan-card li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14px;
  color: #333;
}

.plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22a06b;
  font-weight: 700;
}

/* ---- Author / "Who built this" ---- */
.author {
  text-align: center;
}
.author p {
  color: #444;
  font-size: 16px;
  margin: 0 auto 16px;
  max-width: 600px;
}

/* ---- Trust strip ---- */
.trust-strip {
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: #fafbfc;
}

.trust-strip p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* ---- Footer ---- */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid #eee;
  color: #777;
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.site-footer a { color: #555; }
.site-footer .footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer small { color: #999; }

/* ---- Long-form content (privacy, terms) ---- */
.prose {
  padding: 56px 0;
}
.prose h2 { margin-top: 40px; font-size: 24px; }
.prose h3 { margin-top: 28px; font-size: 18px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose p, .prose li { color: #333; }
.prose .updated { color: #888; font-size: 13px; margin-bottom: 32px; }

/* ---- Centered status pages ---- */
.center-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 32px 24px;
}

.center-card .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* ---- Mobile tweaks ---- */
@media (max-width: 600px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .hero { padding: 48px 0 40px; }
  section { padding: 48px 0; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 14px; }
}
