/* EverythingLogs marketing site — shared styles.
   Palette mirrors the app's theme.css (--dl-*) so the site and the product
   read as one system. Self-contained: no external fonts, no CDN. */

:root {
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --accent: #8b5cf6;
  --gradient: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --bg-page: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
/* Constrain the CHILDREN, not the container, so a narrow section keeps the
   page's normal left edge (in line with the header brand) while still holding
   a readable measure. Narrowing .wrap itself either re-centers the block —
   visibly inset from the hero and feature grid — or, once margin-left is
   zeroed, flushes it to the viewport edge. */
.wrap.narrow > * { max-width: 760px; }

a { color: var(--primary-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { display: block; width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--text-secondary); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { text-decoration: none; opacity: 0.92; }
.btn-ghost { border-color: var(--border); color: var(--text-secondary); background: #fff; }
.btn-ghost:hover { text-decoration: none; border-color: #94a3b8; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 64px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 20px;
  max-width: 17ch;
}
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--text-secondary); max-width: 62ch; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 14px; color: var(--text-muted); margin-top: 16px; }

/* ---------- sections ---------- */
section { padding: 60px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(25px, 3.2vw, 33px); letter-spacing: -0.016em; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
.section-lede { color: var(--text-secondary); max-width: 64ch; margin: 0 0 36px; }

.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card p { color: var(--text-secondary); margin: 0; font-size: 16px; }
.card .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(14, 165, 233, 0.11);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 15px;
}
.card .ico svg { width: 21px; height: 21px; stroke: var(--primary-hover); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- legal pages ---------- */
.legal { padding: 52px 0 80px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); max-width: none; margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); font-size: 15px; margin: 0 0 36px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text-secondary); font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 26px 0;
}
.callout p { margin: 0; color: var(--text); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; background: var(--bg-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.site-footer, .site-footer a { color: var(--text-muted); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 52px 0 44px; }
  section { padding: 46px 0; }
  .nav { gap: 15px; font-size: 14px; }
  .nav .nav-hide-sm { display: none; }
}
