/* MyHealthBuddy.AI blog — shared light theme for blog.html and blog/*.html.
   Warm off-white page, white cards, a serif reading face for article text. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f6f4ef; --bg2: #efece4; --surface: #ffffff;
  --border: #e5e1d6; --border2: #d6d0c1;
  --text: #1b2230; --text2: #434c5c; --text3: #6b7280;
  --green: #0b7f5a; --green-bright: #10b981; --sky: #0369a1; --purple: #6d28d9;
  --grad1: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  --read: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --ui: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--ui); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(246,244,239,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--grad1); display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; }
.logo em { color: var(--green); font-style: normal; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav a { font-size: 14.5px; font-weight: 500; color: var(--text2); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.main-nav a[aria-current="page"] { font-weight: 700; }
.nav-cta { background: var(--text); color: #fff !important; padding: 9px 16px; border-radius: 10px; font-weight: 600; }
.nav-cta:hover { background: #000; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--border2); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--text); }
.menu-btn svg { display: block; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 16px; box-shadow: 0 12px 24px rgba(27,34,48,0.08); }
  .site-header.open .main-nav { display: flex; }
  .main-nav a { padding: 12px 2px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-cta { margin-top: 10px; text-align: center; }
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); margin-top: 72px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 48px 20px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { font-size: 14px; color: var(--text2); margin-top: 12px; max-width: 340px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text3); margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: var(--text2); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); margin-top: 36px; padding-top: 20px; font-size: 13px; color: var(--text3); }

/* ── Blog index ───────────────────────────────────────────────────────── */
/* Same box as .header-inner, so content lines up with the logo and the
   "Get the App" button. */
.wrap { max-width: 1100px; margin: 0 auto; padding: 56px 20px 0; }
.tag { display: inline-flex; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: rgba(109,40,217,0.08); color: var(--purple); border: 1px solid rgba(109,40,217,0.2); padding: 5px 12px; border-radius: 100px; margin-bottom: 20px; }
.wrap h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 800; letter-spacing: -1.6px; line-height: 1.08; margin-bottom: 14px; }
.grad { background: var(--grad1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: 18px; color: var(--text2); max-width: 620px; }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; margin: 44px 0 8px; box-shadow: 0 1px 2px rgba(27,34,48,0.04); }
@media (max-width: 720px) { .feature { grid-template-columns: 1fr; } }
.feature .art { background: linear-gradient(135deg, #e7f6f0, #e3f1f9); min-height: 200px; display: flex; align-items: center; justify-content: center; font-size: 60px; }
.feature .body { padding: 28px 30px; }
.cat { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--sky); }
.feature h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin: 10px 0 12px; line-height: 1.2; }
.feature h2 a, .post h3 a { color: var(--text); }
.feature h2 a:hover, .post h3 a:hover { color: var(--green); text-decoration: none; }
.feature p { color: var(--text2); font-size: 15px; margin-bottom: 14px; }
.meta { font-size: 13px; color: var(--text3); }
.section-label { font-size: 13px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.8px; margin: 40px 0 16px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }
.post { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; transition: border-color .15s, box-shadow .15s; }
.post:hover { border-color: var(--border2); box-shadow: 0 6px 18px rgba(27,34,48,0.06); }
.post h3 { font-size: 18px; font-weight: 700; margin: 8px 0; line-height: 1.3; }
.post p { font-size: 14.5px; color: var(--text2); margin-bottom: 12px; }
.agent-note { display: flex; gap: 14px; align-items: flex-start; background: #eaf6f1; border: 1px solid #cde9dd; border-radius: 16px; padding: 20px 22px; margin-top: 40px; }
.agent-note .ico { font-size: 22px; }
.agent-note h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.agent-note p { font-size: 14px; color: var(--text2); }

/* ── Article ──────────────────────────────────────────────────────────── */
.article { max-width: 1100px; margin: 0 auto; padding: 48px 20px 0; }
.back { display: block; width: fit-content; font-size: 14px; color: var(--text3); margin-bottom: 22px; }
.back:hover { color: var(--text); text-decoration: none; }
.article h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.15; margin: 12px 0 16px; color: var(--text); }
.byline { font-size: 14px; color: var(--text3); padding-bottom: 20px; margin-bottom: 30px; border-bottom: 1px solid var(--border); }
.article h2 { font-family: var(--ui); font-size: 24px; font-weight: 700; letter-spacing: -0.4px; margin: 40px 0 14px; color: var(--text); }
.article p, .article li { font-family: var(--read); font-size: 19.5px; line-height: 1.75; color: #262e3b; }
.article p { margin-bottom: 20px; }
.article strong { color: var(--text); font-weight: 650; }
.article ul, .article ol { padding-left: 24px; margin-bottom: 22px; display: flex; flex-direction: column; gap: 10px; }
.article p.byline { font-family: var(--ui); font-size: 14px; line-height: 1.5; color: var(--text3); margin-bottom: 30px; }
.key { background: #eaf6f1; border: 1px solid #cde9dd; border-radius: 14px; padding: 18px 22px; margin: 28px 0; }
.key p { margin: 0; font-size: 18px; }
.cta { display: inline-block; background: var(--grad1); color: #052e22 !important; font-family: var(--ui); font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 12px; }
.cta:hover { text-decoration: none; filter: brightness(1.05); }
.disclaimer { font-family: var(--ui) !important; font-size: 13.5px !important; line-height: 1.6 !important; color: var(--text3) !important; font-style: italic; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 36px; }

/* ── Sharing ──────────────────────────────────────────────────────────── */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-top { margin: -14px 0 30px; }
.share-label { font-size: 13px; font-weight: 600; color: var(--text3); margin-right: 2px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ui); font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border2); background: var(--surface); color: var(--text); cursor: pointer; line-height: 1; }
.share-btn:hover { text-decoration: none; border-color: var(--text3); }
.share-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.share-btn.linkedin svg { color: #0a66c2; }
.share-btn.whatsapp svg { color: #1fa855; }
.share-btn.native { display: none; }
.can-share .share-btn.native { display: inline-flex; }
.share-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; margin: 36px 0 8px; }
.share-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.share-box p.share-sub { font-family: var(--ui); font-size: 14.5px; line-height: 1.5; color: var(--text2); margin-bottom: 14px; }
.copied { color: var(--green) !important; border-color: var(--green) !important; }
