/* Blog pages (/blog/, /blog/category/*, /blog/<post>/).
   Loaded after site.css. Hand-written -- unlike frontend/blog/, which is
   generated output, this file is source: edit it here.

   The nav layout, button and footer-responsive rules below are copies of the
   ones each marketing page carries inline (see pricing/index.html), because
   site.css only holds the glass material, not the page-level nav layout. */

body {
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  color: #0a0a0a;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Page shell ----------
   overflow-x: clip, not hidden: `hidden` turns .page into a scroll container,
   and a position:sticky descendant then sticks to THAT container (which never
   scrolls) instead of the viewport -- the sticky "Start for free" box would
   silently stop sticking. `clip` trims the same overflow without creating one. */
.page { position: relative; min-height: 100vh; overflow-x: clip; background: #fdfdfe; padding-top: 95px; }

/* The colour wash only needs to cover the top of the page. On a long article
   a full-height gradient stretches into a muddy blur, so it is capped and
   faded out into the plain background. */
.flow, .noise-veil { height: 780px; bottom: auto; }
/* TRYING A PLAIN BACKGROUND: the colour wash is switched off by the comment
   inside this rule. The positioning stays live on purpose: without it the empty
   layer drops into the page flow and pushes the whole page down by 780px.
   To bring the wash back, delete the two marker lines (WASH-OFF START and
   WASH-OFF END) and leave the three declarations between them. */
.flow {
  position: absolute; top: 0; left: 0; right: 0; z-index: 0;
  /* WASH-OFF START
  background:
    radial-gradient(720px 360px at 50% -2%, rgba(255,140,195,0.3), transparent 62%),
    radial-gradient(1000px 780px at 6% -4%, rgba(196,182,250,0.65), transparent 62%),
    radial-gradient(820px 620px at 98% -2%, rgba(255,196,225,0.25), transparent 58%),
    radial-gradient(1100px 700px at 50% 60%, rgba(179,235,213,0.4), transparent 62%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
  WASH-OFF END */
}
.noise-veil { -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }

/* ---------- Navbar (copied from the marketing pages) ---------- */
/* nav.glass, not bare `nav`: the article breadcrumb is a <nav> too. */
nav.glass { max-width: 1180px; margin: 0 auto; border-radius: 999px; padding: 14px 22px 14px 16px; display: flex; align-items: center; justify-content: space-between; }
@media (prefers-reduced-motion: reduce) { nav.glass { transition: none; } }
.nav-left { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.btn-start {
  position: relative; display: inline-block;
  color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.5); font-weight: 700; font-size: 14.5px;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, rgba(138,63,252,0.82), rgba(225,48,108,0.78), rgba(247,148,29,0.72));
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 8px 20px rgba(225,48,108,0.3);
}
/* The link for the section you are in. */
.nav-links a.nav-active { background: rgba(255,255,255,0.7); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 4px 12px rgba(190,110,200,0.15); color: #0a0a0a; }

/* ---------- Layout ---------- */
.blog-wrap { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 40px 28px 96px; }
.blog-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
/* Sticky on the aside itself: it is a grid item with align-items:start, so it
   is only as tall as its content and free to travel down the row. top clears
   the fixed navbar (26px offset + ~73px bar). */
.blog-aside { position: sticky; top: 112px; }

/* ---------- Hero ---------- */
.blog-hero { max-width: 900px; margin-bottom: 30px; }
.blog-hero h1 { font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 46px; line-height: 1.15; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 14px; text-wrap: balance; }
.blog-hero > p { font-size: 18px; line-height: 1.55; color: rgba(10,10,20,0.66); text-wrap: balance; }

.blog-search {
  position: relative; display: block; max-width: 420px; margin: 26px 0 18px;
}
.blog-search svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; fill: none; stroke: rgba(10,10,20,0.45); stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.blog-search input {
  width: 100%; font: inherit; font-size: 15.5px; font-weight: 600; color: #0a0a0a;
  padding: 13px 18px 13px 44px; border-radius: 999px;
  background: rgba(255,255,255,0.85); border: 1px solid rgba(10,10,20,0.1);
  box-shadow: 0 6px 18px -10px rgba(80,60,140,0.3);
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none; appearance: none;
}
.blog-search input::placeholder { color: rgba(10,10,20,0.4); font-weight: 600; }
.blog-search input:focus { border-color: #8B5CF6; box-shadow: 0 0 0 4px rgba(139,92,246,0.16); }
.blog-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Chips on the left, search on the right of one row. It sits outside
   .blog-hero because the hero is capped at a reading width and the search box
   needs to reach the far edge of the content column. */
.blog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 32px; }
.blog-toolbar .blog-search { margin: 0; width: 300px; flex: none; }
.blog-toolbar .blog-search input { padding-top: 10px; padding-bottom: 10px; font-size: 14.5px; }
.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  text-decoration: none; font-size: 14px; font-weight: 700; color: rgba(10,10,20,0.68);
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.75); border: 1px solid rgba(10,10,20,0.09);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.chip:hover { background: #fff; color: #0a0a0a; transform: translateY(-1px); }
.chip.is-active { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }

/* ---------- Cards ---------- */
.post-cover {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; overflow: hidden; background: #efeefb;
}
.post-cover svg { width: 44px; height: 44px; fill: none; stroke: rgba(255,255,255,0.95); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 10px rgba(80,60,140,0.25)); }
.post-cover.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* One soft gradient per category, drawn from the brand palette, so a post
   with no image of its own still reads as belonging to its section. */
.cover-guides { background: linear-gradient(135deg, #8B5CF6, #C084FC 55%, #F0ABFC); }
.cover-competitors { background: linear-gradient(135deg, #FF3CAC, #FB7185 55%, #FDBA74); }
.cover-growth { background: linear-gradient(135deg, #14B8A6, #34D399 55%, #A7F3D0); }
.cover-instagram-content-strategy { background: linear-gradient(135deg, #F59E0B, #FBBF24 55%, #FDE68A); }
.post-cover.is-article { aspect-ratio: 21 / 9; border-radius: 20px; margin: 28px 0 0; }
.post-cover.is-article svg { width: 60px; height: 60px; }

.post-cat { font-size: 12.5px; font-weight: 800; letter-spacing: 0.02em; color: #7C3AED; }
.post-meta { font-size: 13px; font-weight: 600; color: rgba(10,10,20,0.5); margin-top: 12px; }

.post-card {
  background: #fff; border: 1px solid rgba(10,10,20,0.07); border-radius: 22px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(10,10,20,0.04), 0 12px 32px -18px rgba(10,10,20,0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(10,10,20,0.04), 0 22px 40px -18px rgba(80,60,140,0.3); }
.post-card-link { display: block; text-decoration: none; color: inherit; height: 100%; }


.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
/* Home and category pages have no side box, so the grid gets the whole width. */
.blog-full .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-grid.is-related { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 0; }
.post-card[hidden] { display: none; }
.post-card-body { padding: 20px 22px 22px; }
.post-card-body h3 { font-size: 19px; line-height: 1.28; font-weight: 800; letter-spacing: -0.015em; margin: 6px 0 8px; }
.post-card-body p { font-size: 14.5px; line-height: 1.55; color: rgba(10,10,20,0.62); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.is-related .post-card-body { padding: 14px 16px 16px; }
.is-related .post-card-body h3 { font-size: 15.5px; }
.is-related .post-card-body p, .is-related .post-meta { display: none; }
.is-related .post-cover svg { width: 30px; height: 30px; }

.blog-status { font-size: 14.5px; font-weight: 700; color: rgba(10,10,20,0.6); margin: 26px 0 -6px; }
.blog-empty { margin-top: 34px; padding: 34px; text-align: center; font-size: 16px; font-weight: 600; color: rgba(10,10,20,0.6); background: rgba(255,255,255,0.7); border: 1px dashed rgba(10,10,20,0.15); border-radius: 20px; }

/* ---------- The "Start for free" box ---------- */
.cta-box {
  background: rgba(255,255,255,0.92); border: 1px solid rgba(10,10,20,0.08); border-radius: 22px; padding: 24px;
  box-shadow: 0 1px 2px rgba(10,10,20,0.04), 0 18px 40px -20px rgba(80,60,140,0.35);
}
.cta-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 16px; }
.cta-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 7px; border-radius: 999px;
  background: rgba(24,119,242,0.08); border: 1px solid rgba(24,119,242,0.18);
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em; color: #1459b8;
}
.cta-badge img { width: 18px; height: 18px; object-fit: contain; }
.cta-box h2 { font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.cta-box p { font-size: 14.5px; line-height: 1.6; color: rgba(10,10,20,0.66); margin-bottom: 18px; }
.cta-box .btn-start { display: block; text-align: center; padding: 13px 22px; font-size: 15px; }
.cta-note { margin-top: 12px; text-align: center; font-size: 12.5px; font-weight: 600; color: rgba(10,10,20,0.5); }
/* Phones get this copy instead of the sticky one. */
.cta-inline { display: none; margin: 24px 0; }

/* ---------- Article ---------- */
.crumbs-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: rgba(10,10,20,0.5); }
.crumbs a { text-decoration: none; color: rgba(10,10,20,0.62); }
.crumbs a:hover { color: #0a0a0a; }

.article-head { max-width: 760px; }
.article-head h1 { font-size: 42px; line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 14px; }
.deck { font-size: 19px; line-height: 1.6; color: rgba(10,10,20,0.66); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.byline-mark { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; flex-shrink: 0; box-shadow: 0 4px 14px rgba(139,92,246,0.3); }
.byline-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.byline-text { display: flex; flex-direction: column; font-size: 13.5px; font-weight: 600; color: rgba(10,10,20,0.55); line-height: 1.4; }
.byline-text strong { font-size: 15px; font-weight: 800; color: #0a0a0a; }

.prose { max-width: 720px; margin-top: 36px; font-size: 17.5px; line-height: 1.8; color: rgba(10,10,20,0.82); }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 27px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; color: #0a0a0a; margin-top: 46px; scroll-margin-top: 112px; }
.prose h3 { font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: -0.015em; color: #0a0a0a; margin-top: 34px; scroll-margin-top: 112px; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose a { color: #6a3fe0; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(106,63,224,0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: #6a3fe0; }
.prose strong { color: #0a0a0a; font-weight: 800; }
.prose ul, .prose ol { padding-left: 26px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: #8B5CF6; font-weight: 800; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: rgba(139,92,246,0.1); color: #5b2fd0; padding: 2px 7px; border-radius: 6px; }
.prose pre { background: #12121a; color: #f0eefc; padding: 18px 20px; border-radius: 16px; overflow-x: auto; font-size: 14.5px; line-height: 1.65; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose blockquote { border-left: 4px solid #C4B6FA; padding: 2px 0 2px 20px; color: rgba(10,10,20,0.7); font-style: italic; }
.prose img { max-width: 100%; height: auto; border-radius: 16px; display: block; }
.prose hr { border: none; height: 1px; background: rgba(10,10,20,0.1); margin: 40px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid rgba(10,10,20,0.1); }
.prose th { font-weight: 800; color: #0a0a0a; }

/* > [!NOTE] / [!TIP] / [!WARNING] in a post. */
.callout { padding: 16px 20px; border-radius: 16px; font-size: 16px; line-height: 1.7; border: 1px solid; }
.callout p + p { margin-top: 10px; }
.callout-label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.callout-note { background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.22); }
.callout-note .callout-label { color: #6a3fe0; }
.callout-tip { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.25); }
.callout-tip .callout-label { color: #0d8a63; }
.callout-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); }
.callout-warning .callout-label { color: #b06a00; }

.related { margin-top: 64px; padding-top: 34px; border-top: 1px solid rgba(10,10,20,0.1); }
.related h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }

/* ---------- Footer / responsive (copied from the marketing pages) ---------- */
/* Below this the two columns become one: the sticky box gives way to the
   inline copy so it neither squeezes the article nor covers it. */
@media (max-width: 960px) {
  .blog-full .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .blog-aside { display: none; }
  .cta-inline { display: block; }
  .blog-hero h1 { font-size: 38px; }
  .article-head h1 { font-size: 34px; }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .site-footer { padding-top: 52px; }
}

@media (max-width: 860px) {
  nav.glass { flex-wrap: wrap; gap: 12px; border-radius: 24px; margin: 0 16px; }
  nav.glass { top: 16px; }
  .page { padding-top: 82px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .blog-wrap { padding: 28px 18px 72px; }
  .blog-hero h1 { font-size: 31px; }
  .blog-hero > p, .deck { font-size: 16.5px; }
  .article-head h1 { font-size: 28px; }
  .post-grid, .post-grid.is-related, .blog-full .post-grid { grid-template-columns: 1fr; }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 23px; }
  .post-cover.is-article { border-radius: 16px; }
  .blog-toolbar .blog-search { width: 100%; }
  .nav-right .login-link, .nav-right .btn-start { display: none; }
}
