/* ─────────────────────────────────────────────────────────────────────────
   HelpingApps shared static page styles.
   Used by /pricing, /privacy, /terms, /blog/*, /help/*
   Mirrors the in-app shell: black top bar + red ribbon + white content.
   ───────────────────────────────────────────────────────────────────────── */

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  background: #f7f7f7;
  color: #1c1c1e;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Top bar (black, full-width) ────────────────────────────────────── */
.ha-topbar {
  background: #000;
  color: #fff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.ha-topbar .logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-weight: 800; font-size: 18px; letter-spacing: -0.2px;
}
.ha-topbar .logo img { width: 30px; height: 30px; border-radius: 7px; }
.ha-topbar .logo small {
  font-weight: 400; font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-left: 1px;
}
.ha-topbar nav {
  display: flex; gap: 26px;
  margin-left: 4px;
}
.ha-topbar nav a {
  color: rgba(255,255,255,0.85);
  font-size: 15px; font-weight: 500;
  padding: 4px 2px;
}
.ha-topbar nav a:hover { color: #fff; text-decoration: none; }
.ha-topbar .spacer { flex: 1; }
.ha-topbar .contact {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 14px; font-weight: 500;
}
.ha-topbar .contact:hover { color: #fff; text-decoration: none; }
.ha-topbar .open-app {
  background: #EF3030; color: #fff;
  padding: 8px 18px; border-radius: 20px;
  font-weight: 700; font-size: 14px;
  white-space: nowrap;
}
.ha-topbar .open-app:hover { filter: brightness(1.08); text-decoration: none; }

/* ── Red ribbon (page title strip) ──────────────────────────────────── */
.ha-ribbon {
  background: #EF3030;
  color: #fff;
  padding: 22px 32px;
  display: flex; align-items: center;
  gap: 18px;
}
.ha-ribbon a.back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: #fff; font-size: 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s;
}
.ha-ribbon a.back:hover {
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}
.ha-ribbon h1 {
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.4px;
}

/* ── Content area ──────────────────────────────────────────────────── */
.ha-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.ha-content .card {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-bottom: 18px;
}
.ha-content h2 {
  font-size: 20px; font-weight: 700;
  color: #1c1c1e;
  margin: 28px 0 10px;
}
.ha-content h2:first-of-type { margin-top: 0; }
.ha-content h3 {
  font-size: 17px; font-weight: 700;
  color: #1c1c1e;
  margin: 22px 0 8px;
}
.ha-content p {
  font-size: 16px; color: #2c2c2e;
  margin-bottom: 12px;
}
.ha-content ul, .ha-content ol {
  padding-left: 22px; margin-bottom: 14px;
}
.ha-content li {
  font-size: 16px; color: #2c2c2e;
  margin-bottom: 6px;
}
.ha-content code {
  font-family: 'Consolas', 'Menlo', monospace; font-size: 14px;
  background: #f2f2f7;
  padding: 2px 6px; border-radius: 4px;
  color: #B8780B;
}
.ha-content .updated {
  font-size: 13px; color: #8e8e93;
  margin-bottom: 24px;
}
.ha-content .callout {
  background: #FFF6E0;
  border-left: 4px solid #E0A21B;
  padding: 14px 18px;
  border-radius: 10px;
  margin: 22px 0;
}
.ha-content .callout p { margin: 0; }
.ha-content .crumb {
  font-size: 13px; color: #8e8e93;
  margin-bottom: 18px;
}

/* ── Post / item card grid (for blog/help index pages) ─────────────── */
.ha-content .post-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 14px;
  color: #1c1c1e; text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ha-content .post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  text-decoration: none;
}
.ha-content .post-card h2 {
  font-size: 18px; margin: 0 0 6px; color: #1c1c1e;
}
.ha-content .post-card p {
  color: #6c6c70; font-size: 14px; margin: 0;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.ha-footer {
  background: #fff;
  border-top: 1px solid #e5e5ea;
  text-align: center;
  padding: 28px 24px;
  color: #8e8e93; font-size: 13px;
}
.ha-footer a {
  color: #8e8e93;
  margin: 0 12px;
}
.ha-footer a:hover { color: #1c1c1e; }

/* ── Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .ha-topbar {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .ha-topbar nav { display: none; }
  .ha-topbar .contact { display: none; }
  .ha-topbar .open-app { padding: 6px 14px; font-size: 13px; }

  .ha-ribbon { padding: 18px 20px; }
  .ha-ribbon h1 { font-size: 22px; }

  .ha-content { padding: 24px 16px 60px; }
  .ha-content .card { padding: 22px; }
  .ha-content h2 { font-size: 18px; }
  .ha-content p, .ha-content li { font-size: 15px; }
}
