/* NagMeLater Blog — shared styles for listing + individual post pages */
:root {
  --paper: #FAF5EA; --paper-deep: #F3ECDC; --ink: #122A1E; --ink-soft: #3D5447;
  --ink-faint: #6B7F72; --green: #0B5C44; --green-hot: #1FAF6A; --green-glow: #25D366;
  --bubble-out: #D9FDD3; --line: rgba(18,42,30,.14); --amber: #E8A33D;
  --shadow-card: 0 2px 4px rgba(18,42,30,.05), 0 14px 40px -12px rgba(18,42,30,.18);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Hanken Grotesk', -apple-system, sans-serif;
  --radius: 22px;
}
* { margin: 0; padding: 0; box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  font-family: var(--font-body); background: var(--paper); color: var(--ink);
  line-height: 1.65; overflow-x: hidden;
  background-image: radial-gradient(rgba(18,42,30,.035) 1px, transparent 1px);
  background-size: 22px 22px;
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em }
a { color: inherit }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px }
::selection { background: var(--green-glow); color: var(--ink) }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,245,234,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px }
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.28rem;
  text-decoration: none; display: flex; align-items: center; gap: .5rem;
}
.logo .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--green-glow) }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: .93rem; font-weight: 500 }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-soft); transition: color .18s }
.nav-links a:not(.btn):hover { color: var(--ink) }
.nav-links a.active { color: var(--green); font-weight: 700 }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--green); color: #fff;
  font-weight: 700; font-size: .93rem; padding: .65rem 1.3rem; border-radius: 999px;
  text-decoration: none; transition: transform .18s, background .18s;
  box-shadow: 0 6px 20px -6px rgba(11,92,68,.5);
}
.btn:hover { transform: translateY(-2px); background: #0d6e52 }
.btn.big { font-size: 1.05rem; padding: .85rem 1.8rem }
@media(max-width:720px) { .nav-links a:not(.btn):not(.logo-wrap), .nav-links .menu { display: none } }

/* ─── MEGA MENU ─── */
.menu { position: relative }
.menu-btn {
  display: inline-flex; align-items: center; gap: .35rem; background: none; border: none;
  cursor: pointer; font: inherit; font-weight: 500; font-size: .93rem;
  color: var(--ink-soft); padding: .4rem 0; transition: color .18s;
}
.menu-btn:hover { color: var(--ink) }
.menu-btn svg { transition: transform .25s; margin-top: 1px }
.menu.open .menu-btn svg { transform: rotate(180deg) }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-58%) translateY(8px);
  width: min(700px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 8px 16px rgba(18,42,30,.08), 0 32px 72px -16px rgba(18,42,30,.28);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s, transform .22s cubic-bezier(.22,1,.36,1), visibility .22s;
  overflow: hidden;
}
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px }
.menu.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-58%) translateY(0) }
.mega-cols { display: grid; grid-template-columns: 1fr 1fr }
.mega-col { padding: 1.4rem 1.35rem 1.1rem }
.mega-col + .mega-col { border-left: 1px solid var(--line) }
.mega-col h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .2rem }
.mega-col > p { font-size: .82rem; color: var(--ink-faint); margin-bottom: .8rem }
.mega-col a { display: flex; align-items: flex-start; gap: .75rem; text-decoration: none; padding: .5rem .55rem; border-radius: 12px; transition: background .16s; margin-bottom: .1rem }
.mega-col a:hover { background: var(--paper-deep) }
.mi { flex-shrink: 0; width: 32px; height: 32px; background: var(--paper); border-radius: 8px; display: flex; align-items: center; justify-content: center }
.mi svg { width: 16px; height: 16px; stroke: var(--green); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.mt { display: flex; flex-direction: column }
.mt b { font-size: .88rem; font-weight: 600; color: var(--ink) }
.mt small { font-size: .78rem; color: var(--ink-faint) }
.mega-foot { padding: .75rem 1.35rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-faint) }
.mega-foot a { color: var(--green); font-weight: 600; text-decoration: none }

/* ═══════════════════════════════════════════════════════════
   BLOG LISTING PAGE
═══════════════════════════════════════════════════════════ */

/* ─── HERO ─── */
.blog-hero { padding: 72px 0 52px; text-align: center }
.blog-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--green); display: block; margin-bottom: 1rem;
}
.blog-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); max-width: 22ch; margin: 0 auto .9rem }
.blog-hero h1 em { font-style: italic; font-weight: 500; color: var(--green) }
.blog-hero p { font-size: 1.05rem; color: var(--ink-soft); max-width: 46ch; margin: 0 auto 2rem }

/* ─── FILTER PILLS ─── */
.filter-row { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; padding: 0 8px }
.f-pill {
  font-family: var(--font-body); font-size: .87rem; font-weight: 600;
  padding: .42rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.f-pill:hover { background: var(--paper-deep); border-color: var(--ink-faint) }
.f-pill.active { background: var(--green); color: #fff; border-color: var(--green) }

/* ─── BLOG GRID SECTION ─── */
.blog-section { padding: 0 0 80px }
.blog-meta-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; flex-wrap: wrap; gap: .5rem }
.blog-count { font-size: .87rem; color: var(--ink-faint) }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem }
@media(max-width:900px) { .blog-grid { grid-template-columns: repeat(2, 1fr) } }
@media(max-width:560px) { .blog-grid { grid-template-columns: 1fr } }

/* ─── CARD ─── */
.blog-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.55rem; display: flex; flex-direction: column; gap: .75rem;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform .22s, box-shadow .22s;
  position: relative; overflow: hidden;
  animation: cardIn .3s ease both;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(18,42,30,.06), 0 24px 56px -14px rgba(18,42,30,.22) }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
.blog-card::after {
  content: "→"; position: absolute; top: 1.35rem; right: 1.4rem;
  font-size: 1rem; color: var(--green); opacity: 0;
  transform: translateX(-6px); transition: opacity .2s, transform .2s;
}
.blog-card:hover::after { opacity: 1; transform: translateX(0) }
.card-cat {
  font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .65rem; border-radius: 999px; display: inline-block; width: fit-content;
}
.cat-productivity { background: rgba(232,163,61,.14); color: #8B4E08 }
.cat-how-to       { background: rgba(11,92,68,.1);    color: #0B5C44 }
.cat-use-cases    { background: rgba(37,211,102,.14);  color: #0F7040 }
.cat-features     { background: rgba(59,130,246,.1);   color: #1D4ED8 }
.card-title { font-size: 1.06rem; line-height: 1.25; padding-right: 1.5rem }
.card-excerpt { font-size: .91rem; color: var(--ink-soft); line-height: 1.58; flex: 1 }
.card-footer {
  display: flex; align-items: center; gap: .45rem; font-size: .81rem;
  color: var(--ink-faint); padding-top: .55rem; border-top: 1px solid var(--line); margin-top: auto;
}
.card-dot { opacity: .4 }

/* ─── LOAD MORE ─── */
.blog-more { text-align: center; margin-top: 2.5rem }
#load-more {
  font-family: var(--font-body); font-size: .94rem; font-weight: 600;
  padding: .8rem 2rem; border-radius: 999px; border: 2px solid var(--green);
  background: transparent; color: var(--green); cursor: pointer;
  display: inline-flex; align-items: center; gap: .55rem;
  transition: background .18s, color .18s;
}
#load-more:hover { background: var(--green); color: #fff }
#load-more:disabled { opacity: .32; cursor: default; pointer-events: none }
#load-more svg { transition: transform .25s }
#load-more:hover svg { transform: translateY(3px) }

/* ─── CTA BAND (listing page) ─── */
.blog-cta-band {
  background: var(--green); padding: 72px 24px; text-align: center;
  position: relative; overflow: hidden; border-radius: 36px; margin: 0 24px 80px;
}
.blog-cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(45% 70% at 80% -10%, rgba(37,211,102,.3), transparent 70%);
}
.blog-cta-band > * { position: relative }
.blog-cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: #fff; margin-bottom: .7rem }
.blog-cta-band h2 em { font-style: italic; font-weight: 500; color: var(--green-glow) }
.blog-cta-band p { color: rgba(250,245,234,.75); max-width: 38rem; margin: 0 auto 1.6rem }
.blog-cta-band .btn { background: var(--green-hot) }
.cta-note { font-size: .84rem; color: rgba(250,245,234,.5); margin-top: .7rem }

/* ═══════════════════════════════════════════════════════════
   BLOG POST PAGE
═══════════════════════════════════════════════════════════ */

/* ─── READING PROGRESS BAR ─── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-glow) 100%);
  z-index: 200; transition: width .08s linear; pointer-events: none;
}

/* ─── TWO-COLUMN LAYOUT ─── */
.post-outer {
  max-width: 1060px; margin: 0 auto; padding: 40px 24px 88px;
  display: grid; grid-template-columns: 220px 1fr; gap: 3.5rem; align-items: start;
}
@media(max-width:900px) { .post-outer { grid-template-columns: 1fr; gap: 0 } }

/* ─── TOC SIDEBAR ─── */
.post-toc { position: sticky; top: 82px }
@media(max-width:900px) { .post-toc { position: static; margin-bottom: 2rem } }

.toc-label {
  font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .8rem; display: block;
}
.toc-toggle {
  display: none; font-family: var(--font-body); font-size: .9rem; font-weight: 700;
  color: var(--green); background: none; border: none; cursor: pointer; padding: .3rem 0;
  align-items: center; gap: .4rem;
}
.toc-toggle svg { transition: transform .22s }
.toc-toggle.open svg { transform: rotate(180deg) }
@media(max-width:900px) {
  .toc-label { display: none }
  .toc-toggle { display: flex }
  .toc-nav { display: none }
  .toc-nav.open { display: block; padding: .6rem 0 }
}
.toc-nav ul { list-style: none; padding: 0 }
.toc-nav li { margin-bottom: .08rem }
.toc-nav a {
  display: block; font-size: .87rem; color: var(--ink-soft); text-decoration: none;
  padding: .32rem .75rem; border-left: 2px solid var(--line); border-radius: 0 7px 7px 0;
  transition: color .18s, border-color .18s, background .18s; line-height: 1.4;
}
.toc-nav a:hover { color: var(--green); background: rgba(11,92,68,.04) }
.toc-nav a.active { color: var(--green); border-left-color: var(--green); font-weight: 600; background: rgba(11,92,68,.05) }
.toc-cta {
  margin-top: 2rem; background: var(--paper-deep); border: 1px solid var(--line);
  border-radius: 18px; padding: 1.2rem; text-align: center;
}
.toc-cta strong { font-family: var(--font-display); font-size: .98rem; display: block; margin-bottom: .3rem }
.toc-cta p { font-size: .84rem; color: var(--ink-soft); margin-bottom: .85rem; line-height: 1.45 }
.toc-cta .btn { width: 100%; justify-content: center; font-size: .88rem; padding: .6rem .9rem }
@media(max-width:900px) { .toc-cta { display: none } }

/* ─── POST BODY ─── */
.post-body { min-width: 0 }

.breadcrumb {
  font-size: .82rem; color: var(--ink-faint); margin-bottom: 1.8rem;
  display: flex; flex-wrap: wrap; gap: .3rem; align-items: center;
}
.breadcrumb a { color: var(--ink-faint); text-decoration: none }
.breadcrumb a:hover { color: var(--green) }
.breadcrumb .sep { opacity: .45; font-size: .75rem }

.post-head { margin-bottom: 2.2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line) }
.post-cat {
  font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .22rem .7rem; border-radius: 999px; display: inline-block; margin-bottom: 1rem;
}
.post-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); max-width: 22ch; margin-bottom: 1rem }
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .87rem; color: var(--ink-faint) }
.post-meta .sep { opacity: .4 }
.post-meta a { color: var(--green); text-decoration: none; font-weight: 600 }

/* ─── ARTICLE CONTENT TYPOGRAPHY ─── */
.post-content { font-size: 1.02rem; line-height: 1.78; max-width: 680px }
.post-content h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem); margin: 2.8rem 0 .9rem; padding-top: .3rem;
  scroll-margin-top: 96px;
}
.post-content h3 { font-size: 1.18rem; margin: 2rem 0 .65rem; scroll-margin-top: 96px }
.post-content p { margin-bottom: 1.1rem }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem }
.post-content li { margin-bottom: .45rem; line-height: 1.65 }
.post-content strong { font-weight: 700 }
.post-content a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px }
.post-content a:hover { text-decoration-thickness: 2px }

/* WhatsApp message bubble style */
.msg-bubble {
  background: var(--bubble-out); border-radius: 14px 14px 4px 14px;
  padding: .7rem 1.1rem; font-size: .94rem; margin: .5rem 0;
  display: inline-block; max-width: 90%;
  box-shadow: 0 1px 4px rgba(18,42,30,.1);
}
.msg-bubble.in { background: #fff; border-radius: 4px 14px 14px 14px; display: block; margin-left: 1.5rem }
.msg-ex { margin: 1.3rem 0 }

/* Highlight / note box */
.note-box {
  background: rgba(11,92,68,.06); border-left: 3px solid var(--green); border-radius: 0 12px 12px 0;
  padding: .9rem 1.2rem; margin: 1.6rem 0; font-size: .96rem; color: var(--ink-soft);
}

/* Command reference table */
.cmd-table { width: 100%; border-collapse: collapse; margin: 1.3rem 0; font-size: .93rem }
.cmd-table th { text-align: left; padding: .55rem .8rem; border-bottom: 2px solid var(--line); font-family: var(--font-display) }
.cmd-table td { padding: .5rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top }
.cmd-table td:first-child { font-weight: 700; color: var(--green); white-space: nowrap; font-size: .88rem }

/* ─── INLINE CTA ─── */
.inline-cta {
  background: var(--paper-deep); border: 1.5px solid var(--line); border-radius: 20px;
  padding: 1.6rem 1.8rem; margin: 2.5rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.inline-cta-text strong { font-family: var(--font-display); font-size: 1.12rem; display: block; margin-bottom: .3rem }
.inline-cta-text p { font-size: .9rem; color: var(--ink-soft); margin: 0 }

/* ─── FAQ SECTION ─── */
.faq-section { margin-top: 3rem }
.faq-section > h2 { scroll-margin-top: 96px; margin-bottom: 1.3rem }
.faq-list { border: 1px solid var(--line); border-radius: 18px; overflow: hidden }
.faq-item { border-bottom: 1px solid var(--line) }
.faq-item:last-child { border-bottom: none }
.faq-item summary {
  font-weight: 600; font-size: .98rem; padding: 1.1rem 1.3rem;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; transition: background .18s;
}
.faq-item summary:hover { background: var(--paper-deep) }
.faq-item summary::-webkit-details-marker { display: none }
.faq-item summary::after {
  content: "+"; font-size: 1.35rem; font-weight: 300; color: var(--green);
  flex-shrink: 0; transition: transform .22s;
}
.faq-item[open] summary::after { transform: rotate(45deg) }
.faq-item[open] summary { background: var(--paper-deep) }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.68 }
.faq-answer p + p { margin-top: .6rem }

/* ─── POST FINAL CTA ─── */
.post-cta-band {
  background: var(--green); padding: 68px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.post-cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(45% 70% at 80% -10%, rgba(37,211,102,.3), transparent 70%);
}
.post-cta-band > * { position: relative }
.post-cta-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); color: #fff; margin-bottom: .7rem }
.post-cta-band h2 em { font-style: italic; font-weight: 500; color: var(--green-glow) }
.post-cta-band p { color: rgba(250,245,234,.75); max-width: 38rem; margin: 0 auto 1.6rem }
.post-cta-band .btn { background: var(--green-hot) }
.post-cta-note { font-size: .84rem; color: rgba(250,245,234,.5); margin-top: .75rem }

/* ─── RELATED POSTS ─── */
.related-section { padding: 64px 0 80px }
.related-section > .wrap > h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.5rem }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem }
@media(max-width:840px) { .related-grid { grid-template-columns: 1fr } }

/* ─── FOOTER ─── */
footer { padding: 2rem 24px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: .87rem }
footer a { color: var(--ink-soft); text-decoration: none }
footer a:hover { color: var(--green) }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem }
