/* CalCast website — shared styles for index, privacy, terms.
   Visual language matches the iOS app: indigo brand (#4f46e5),
   warm off-white background (#f5f5f7), Inter typography. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f5f7;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a {
  color: #4f46e5;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { color: #4338ca; text-decoration: underline; }

/* ── Site header ─────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f5f5f7;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: #111827;
  letter-spacing: -0.3px;
  text-decoration: none;
}

.site-header .brand img { width: 28px; height: 28px; }

/* ── Hero (index only) ──────────────────────────────────────── */

.hero {
  padding: 80px 24px 56px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero .logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  display: block;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #111827;
  margin-bottom: 14px;
}

.hero .tagline {
  font-style: italic;
  color: #111827;
  font-size: 15px;
  margin-bottom: 6px;
}

.hero .lede {
  font-size: 17px;
  color: #4b5563;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.hero .badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid #4f46e5;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ── Feature blocks (index only) ────────────────────────────── */

.features {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(26, 19, 82, 0.06);
}

.feature .icons {
  flex-shrink: 0;
  width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.feature .icons svg { width: 38px; height: 38px; }

.feature .text h2 {
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.feature .text p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

/* ── Document pages (privacy, terms) ────────────────────────── */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.doc h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: #111827;
  margin-bottom: 8px;
}

.doc .meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 36px;
}

.doc h2 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.2px;
  margin-top: 36px;
  margin-bottom: 12px;
}

.doc p, .doc ul {
  font-size: 15px;
  color: #1f2937;
  margin-bottom: 14px;
  line-height: 1.65;
}

.doc ul { padding-left: 22px; }

.doc li { margin-bottom: 6px; }

.doc strong { font-weight: 600; color: #111827; }

.doc .lede {
  font-size: 16px;
  color: #374151;
}

.doc .callout {
  margin: 18px 0;
  padding: 14px 16px;
  background: #eef2ff;
  border-left: 3px solid #4f46e5;
  border-radius: 6px;
  font-size: 14px;
  color: #1f2937;
}

.doc hr {
  margin: 32px 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

/* ── Footer ─────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 28px 24px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

.site-footer .links {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 600px) {
  .hero { padding: 56px 20px 40px; }
  .hero h1 { font-size: 34px; }
  .hero .lede { font-size: 15px; }
  .feature { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .feature .icons { width: auto; }
  .doc { padding: 40px 20px 60px; }
  .doc h1 { font-size: 26px; }
}
