/* Blog pages (index + articles). Shared by the hand-made pages and the articles the autopilot publishes
   (marketing/4_autopilot_plan.md Stage 4). Colours and type follow index.html. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --teal-800: #085041; --teal-700: #0F6E56; --teal-100: #9FE1CB; --teal-50: #E1F5EE;
  --gray-900: #2C2C2A; --gray-500: #5F5E5A; --gray-400: #888780;
  --gray-100: #E8E6DF; --gray-50: #F4F2EC; --cream: #FAFAF8; --white: #FFFFFF;
  --r-sm: 6px; --r-md: 10px; --r-lg: 20px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--cream); color: var(--gray-900);
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

/* NAV (same height, blur and wordmark size as the home page) */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,0.93);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--gray-100);
}
.site-nav .inner {
  max-width: 1320px; margin: 0 auto; padding: 0 32px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-nav .logo img { height: 26px; width: auto; }
.site-nav .links { display: flex; align-items: center; gap: 28px; }
.site-nav .links a { font-size: 14px; color: var(--gray-500); text-decoration: none; transition: color .15s; white-space: nowrap; }
.site-nav .links a:hover, .site-nav .links a[aria-current] { color: var(--gray-900); }
.site-nav .links a[aria-current] { font-weight: 600; }
.site-nav .links a.cta {
  font-weight: 500; background: var(--teal-700); color: var(--white);
  padding: 8px 18px; border-radius: var(--r-sm);
}
.site-nav .links a.cta:hover { background: var(--teal-800); color: var(--white); }
@media (max-width: 700px) {
  .site-nav .inner { padding: 0 20px; }
  .site-nav .logo img { height: 20px; }
  .site-nav .links { gap: 16px; }
  .site-nav .links .wide { display: none; }
}

/* BLOG INDEX */
.blog-head { max-width: 1080px; margin: 0 auto; padding: 64px 32px 32px; }
.kicker { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--teal-700); font-weight: 500; margin-bottom: 10px; }
.blog-head h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.15; margin-bottom: 12px; }
.blog-head p { font-size: 17px; color: var(--gray-500); max-width: 600px; }
.cards {
  max-width: 1080px; margin: 0 auto; padding: 8px 32px 96px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.card {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(44,44,42,.06);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(44,44,42,.10); }
.card .pic { aspect-ratio: 16 / 9; background: var(--teal-50); overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .txt { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .kicker { margin-bottom: 0; }
.card h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.3; }
.card p { font-size: 15px; color: var(--gray-500); line-height: 1.6; }
.card .meta { font-size: 13px; color: var(--gray-400); margin-top: auto; padding-top: 6px; }
@media (min-width: 900px) {
  .cards .card.featured { grid-column: 1 / -1; flex-direction: row; }
  .cards .card.featured .pic { flex: 0 0 58%; aspect-ratio: auto; min-height: 340px; }
  .cards .card.featured .txt { padding: 32px 34px; justify-content: center; }
  .cards .card.featured h2 { font-size: 28px; }
  .cards .card.featured p { font-size: 16px; }
  .cards .card.featured .meta { margin-top: 8px; }
}
@media (max-width: 700px) {
  .blog-head { padding: 40px 20px 24px; }
  .blog-head h1 { font-size: 30px; }
  .cards { padding: 4px 20px 72px; gap: 18px; }
}

/* ARTICLE */
.article { max-width: 720px; margin: 0 auto; padding: 56px 32px 96px; }
.article .back { display: inline-block; font-size: 14px; color: var(--gray-500); text-decoration: none; margin-bottom: 28px; }
.article .back:hover { color: var(--gray-900); }
.article h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.15; margin-bottom: 12px; }
.article .meta { font-size: 14px; color: var(--gray-400); margin-bottom: 28px; }
.article figure { margin: 32px 0; }
.article figure img { width: 100%; height: auto; border-radius: var(--r-lg); background: var(--teal-50); }
.article figure.hero { margin: 0 -48px 40px; }
.article figure.tall img { max-width: 420px; margin: 0 auto; }
.article figcaption { font-size: 13px; color: var(--gray-400); text-align: center; margin-top: 10px; line-height: 1.5; }
.article p, .article li { font-size: 18px; line-height: 1.75; margin-bottom: 18px; }
.article .lead { font-size: 20px; color: var(--gray-500); }
.article h2 { font-size: 25px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.3; margin: 44px 0 14px; }
.article h3 { font-size: 19px; font-weight: 600; margin: 28px 0 8px; }
.article ul, .article ol { margin: 0 0 18px 24px; }
.article li { margin-bottom: 10px; }
.article a { color: var(--teal-700); }
.article blockquote { border-left: 3px solid var(--teal-700); padding: 4px 0 4px 20px; margin: 24px 0; color: var(--gray-500); }
.article .faq { margin-top: 48px; padding-top: 8px; border-top: 0.5px solid var(--gray-100); }
.article .faq h3 { margin-top: 24px; }
.article .faq p { font-size: 17px; color: var(--gray-500); }
.app-box {
  background: var(--teal-50); border-radius: var(--r-lg); padding: 26px 30px; margin: 48px 0 0;
  display: flex; gap: 20px; align-items: center;
}
.app-box img { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; }
.app-box p { font-size: 16px; color: var(--teal-800); margin-bottom: 12px; line-height: 1.6; }
.app-box a.btn {
  display: inline-block; background: var(--teal-700); color: #fff; padding: 10px 20px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px;
}
.app-box a.btn:hover { background: var(--teal-800); }
.more { max-width: 1080px; margin: 0 auto; padding: 0 32px 96px; }
.more > h2 { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.more .cards { padding: 0; }
@media (max-width: 900px) { .article figure.hero { margin: 0 0 32px; } }
@media (max-width: 700px) {
  .article { padding: 32px 20px 64px; }
  .article h1 { font-size: 30px; }
  .article p, .article li { font-size: 17px; }
  .article .lead { font-size: 18px; }
  .article h2 { font-size: 22px; }
  .app-box { flex-direction: column; align-items: flex-start; padding: 22px; }
  .more { padding: 0 20px 72px; }
}

/* FOOTER (as index.html) */
footer { background: var(--gray-900); padding: 32px; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; display: flex;
  align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-size: 16px; font-weight: 600; color: var(--teal-50); }
.footer-copy { font-size: 13px; color: var(--gray-400); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--gray-400); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--teal-100); }
.card .pic.empty { display: flex; align-items: center; justify-content: center; }
.card .pic.empty img { width: 72px; height: 72px; object-fit: contain; border-radius: 16px; opacity: .9; }
