/* ============================================================================
   Blog index — the curated magazine layout. Requires blog.css.
   ============================================================================

   Ported from zipify-refresh's `assets/redesign/css/blog-index.css`. Also
   dresses the archive, search and author listings, which reuse the card grid.

   Removed on the way across, all of it dead in this theme:
     * the base reset (`*`, `html`, `body`, `img`, `a`) — theme.css owns those,
       and the blog's page ground now lives on `body.zp-blog` in blog.css.
     * `.site-nav` and `.site-footer`. The source shipped its own chrome; this
       theme renders `.zp-header` / `.zp-footer` on every surface, so the blog
       index inherits the site header and footer like every other page.

   Changed on the way across:
     * sticky offsets. `.toc-bar` was pinned at 70px and `.content-section`
       scroll-margin at 140px, both hardcoded against the old 70px nav. They now
       key off `--zp-header-h`, so the bar parks exactly under this theme's
       header and anchor jumps clear it.
     * `.blog-card__img`'s placeholder logotype points at this theme's own
       `assets/img/zipify-white.svg`.
*/

/* Card/track geometry the source exposed as body-level custom properties. Kept
   as properties so a row can still override the card width or gap inline. */
body.zp-blog { --tw-h-weight: 800; --tw-h-scale: 1; --tw-card-w: 320px; --tw-card-gap: 20px; }

/* --- HERO --- */
.hero { background: #fff; border-bottom: 1px solid var(--ink-200); padding: var(--sp-10) 0 var(--sp-11); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-10); align-items: center; position: relative; z-index: 1; }
.hero h1 { font-family: var(--font-display); font-weight: var(--tw-h-weight); font-size: clamp(30px,3vw,44px); letter-spacing: var(--ls-tight); line-height: 1.1; color: var(--ink-900); margin: 0 0 var(--sp-5); text-wrap: balance; }
.hero__dek { font-size: var(--fs-body-1); line-height: 1.65; color: var(--ink-600); margin: 0 0 var(--sp-5); max-width: 540px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Mobile overflow guard: grid items default to min-width:auto, so a long unbroken
   string (e.g. a raw URL pasted into a post excerpt) forces the column wider than
   the screen and clips the CTA / featured image. Let columns shrink and break such
   strings, and keep the featured image fluid. */
.hero .wrap > * { min-width: 0; }
.hero h1, .hero__dek { overflow-wrap: break-word; word-break: break-word; }
/* Featured image fills its column (no empty space below). The dek is line-clamped
   above so the copy column stays a sane height, keeping the cover-crop moderate. */
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }
.hero__meta { font-size: var(--fs-caption); color: var(--ink-400); margin-bottom: var(--sp-6); }
.hero__tag { margin-bottom: var(--sp-4); }
.hero__actions { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.hero__built { font-size: 13px; color: var(--ink-400); margin-top: var(--sp-3); }
.hero__built a { color: var(--accent); font-weight: 600; transition: color var(--dur-fast); }
.hero__built a:hover { color: var(--blue-500); }
.hero__visual { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-3); aspect-ratio: 16/15; background: #f4f6fa; }
.hero__metric { position: absolute; top: var(--sp-5); left: var(--sp-5); background: var(--ink-900); color: #fff; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); box-shadow: var(--sh-4); z-index: 2; }
.hero__metric-n { font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1; letter-spacing: var(--ls-tight); background: var(--grad-yellow-text-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__metric-l { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: rgba(255,255,255,.55); margin-top: var(--sp-1); }
.hero__rotates { position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 2; }

/* Hero dark variant */
body[data-hero="dark"] .hero { background: var(--grad-zipify); border-bottom-color: transparent; }
body[data-hero="dark"] .hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 400px at 90% -10%,rgba(45,107,228,.2),transparent 70%),repeating-linear-gradient(135deg,rgba(255,255,255,.012) 0 2px,transparent 2px 80px); }
body[data-hero="dark"] .hero h1 { color: var(--fg-on-dark); }
body[data-hero="dark"] .hero__dek { color: var(--fg-on-dark-2); }
body[data-hero="dark"] .hero__meta { color: var(--fg-on-dark-3); }
body[data-hero="dark"] .hero .badge--zipify { background: rgba(255,255,255,.08); color: var(--zip-yellow); border: 1px solid rgba(255,215,72,.25); }
body[data-hero="dark"] .hero__built { color: var(--fg-on-dark-3); }
body[data-hero="dark"] .hero__built a { color: var(--zip-yellow); }
body[data-hero="dark"] .hero__rotates .badge { background: rgba(255,255,255,.08); color: var(--fg-on-dark-2); border: 1px solid rgba(255,255,255,.15); }

/* --- STATS BAND (dark) --- */
.stats-band { background: var(--grad-zipify); position: relative; overflow: hidden; padding: var(--sp-9) 0; }
.stats-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 300px at 80% 0%,rgba(45,107,228,.18),transparent 70%),repeating-linear-gradient(135deg,rgba(255,255,255,.012) 0 2px,transparent 2px 80px); }
.stats-band .wrap { position: relative; z-index: 1; }
.stats-band__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-8); padding-bottom: var(--sp-7); border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: var(--sp-6); }
.stats-band__item { text-align: center; }
.stats-band__n { font-family: var(--font-display); font-weight: 900; font-size: clamp(32px,4vw,48px); letter-spacing: var(--ls-tight); line-height: 1; background: var(--grad-yellow-text-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-band__l { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: rgba(255,255,255,.5); margin-top: var(--sp-3); max-width: 220px; margin-inline: auto; }
.stats-band__statement { text-align: center; max-width: 760px; margin: 0 auto; font-size: var(--fs-body-1); line-height: 1.65; color: var(--fg-on-dark-2); }
.stats-band__statement strong { color: #fff; font-weight: 700; }

/* --- TOC BAR (sticky, parks under the site header) --- */
.toc-bar { position: sticky; top: var(--zp-header-h); z-index: 40; background: rgba(248,249,251,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ink-200); padding: var(--sp-4) 0; }
.toc-bar .wrap { display: flex; align-items: center; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; }
.toc-bar .wrap::-webkit-scrollbar { display: none; }
.toc-bar__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--ink-400); margin-right: var(--sp-2); white-space: nowrap; flex-shrink: 0; }
.toc-chip { display: inline-flex; padding: 7px 16px; border-radius: var(--r-pill); font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink-600); background: #fff; border: 1px solid var(--ink-200); white-space: nowrap; cursor: pointer; transition: all var(--dur-fast) var(--ease-out); }
.toc-chip:hover { border-color: var(--accent); color: var(--accent); }
.toc-chip.active { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

/* --- CONTENT SECTIONS --- */
/* Anchor targets have to clear the sticky header AND the sticky TOC bar. */
.content-section { padding: var(--sp-9) 0 var(--sp-10); scroll-margin-top: calc(var(--zp-header-h) + 68px); }
.row-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--sp-5); gap: var(--sp-4); flex-wrap: wrap; }
.row-header__left h2 { font-family: var(--font-display); font-weight: var(--tw-h-weight); font-size: calc(var(--fs-h3) * var(--tw-h-scale)); letter-spacing: var(--ls-tight); line-height: 1.15; margin: 0 0 var(--sp-1); color: var(--blue-900); }
.row-header__left p { margin: 0; color: var(--ink-500); font-size: var(--fs-body-2); max-width: 600px; }
.row-see-all { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent); white-space: nowrap; transition: color var(--dur-fast); }
.row-see-all:hover { color: var(--blue-500); }
.row-see-all svg { vertical-align: middle; margin-left: 2px; }

/* --- ROW TRACK (scroll) --- */
.row-track-wrap { position: relative; }
.row-track { display: flex; gap: var(--tw-card-gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--sp-1) var(--sp-1) var(--sp-4); scrollbar-width: none; scroll-behavior: smooth; }
.row-track::-webkit-scrollbar { display: none; }
button.row-arrow { position: absolute; top: calc(50% - 22px); z-index: 5; width: 44px; height: 44px; border-radius: 999px; background: #fff; border: 1px solid var(--ink-200); color: var(--ink-700); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--sh-2); transition: all var(--dur-fast) var(--ease-out); }
button.row-arrow:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); box-shadow: var(--sh-3); }
button.row-arrow:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.row-arrow--l { left: -12px; opacity: 0; pointer-events: none; transition: opacity var(--dur-fast); }
.row-arrow--r { right: -12px; }
.row-track-wrap.scrolled .row-arrow--l { opacity: 1; pointer-events: auto; }
.row-track-wrap.at-end .row-arrow--r { opacity: 0; pointer-events: none; }
.row-track-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: var(--sp-4); width: 60px; pointer-events: none; z-index: 2; background: linear-gradient(to right,transparent,var(--ink-050) 80%); transition: opacity var(--dur-fast); }
.row-track-wrap.at-end::after { opacity: 0; }

/* --- BLOG CARDS --- */
.blog-card { flex: 0 0 var(--tw-card-w); scroll-snap-align: start; background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-lg); overflow: hidden; position: relative; display: flex; flex-direction: column; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.blog-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-ocu); z-index: 3; transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease-out); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.blog-card:hover::before { transform: scaleX(1); }
.blog-card:focus-within { box-shadow: var(--focus-ring); }
/* Branded placeholder shows when a post has no featured image (a real the_post_thumbnail
   img paints on top of this and covers it). Keeps image-less cards looking intentional. */
.blog-card__img { height: 220px; overflow: hidden;
  background-image: url('../img/zipify-white.svg'), var(--grad-zipify);
  background-repeat: no-repeat,no-repeat; background-position: center,center; background-size: 108px auto,cover; }
.blog-card__img a, .blog-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.blog-card__metric { display: inline-flex; padding: 4px 10px; border-radius: var(--r-sm); background: var(--blue-050); color: var(--blue-700); font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: var(--ls-tight); margin-bottom: var(--sp-2); align-self: flex-start; }
.blog-card__cat { font-family: var(--font-display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--accent); margin-bottom: var(--sp-2); }
.blog-card__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.35; margin-bottom: var(--sp-3); flex: 1; }
.blog-card__title a { color: var(--ink-900); }
.blog-card:hover .blog-card__title a { color: var(--accent); }
.blog-card__meta { font-size: var(--fs-caption); color: var(--ink-400); }
.blog-card__source { font-size: 12px; color: var(--ink-400); margin-top: var(--sp-1); font-style: italic; }

/* Video card play overlay */
.blog-card__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; border-radius: 999px; background: rgba(255,255,255,.92); border: 2px solid var(--ink-300); display: flex; align-items: center; justify-content: center; color: var(--ink-700); z-index: 2; transition: all var(--dur-fast) var(--ease-out); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.blog-card:hover .blog-card__play { background: #fff; border-color: var(--ink-900); color: var(--ink-900); transform: translate(-50%,-50%) scale(1.08); }

/* --- REVENUE TABS --- */
.rev-tabs { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--ink-200); }
.rev-tabs__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--ink-400); margin-right: var(--sp-2); white-space: nowrap; }
button.rev-tab { padding: 6px 14px; border-radius: var(--r-pill); font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--ink-600); background: #fff; border: 1px solid var(--ink-200); cursor: pointer; white-space: nowrap; transition: all var(--dur-fast) var(--ease-out); }
button.rev-tab:hover { border-color: var(--accent); color: var(--accent); }
button.rev-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
button.rev-tab:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* --- NEWSLETTER --- */
.newsletter { background: var(--blue-050); border-top: 1px solid var(--blue-100); border-bottom: 1px solid var(--blue-100); padding: var(--sp-10) 0; scroll-margin-top: calc(var(--zp-header-h) + 68px); }
.newsletter .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-10); align-items: center; }
.newsletter h3 { font-family: var(--font-display); font-weight: var(--tw-h-weight); font-size: calc(var(--fs-h3) * var(--tw-h-scale)); letter-spacing: var(--ls-tight); line-height: 1.15; margin: 0 0 var(--sp-7); }
.news-point { display: grid; grid-template-columns: 48px 1fr; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.news-point__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink-900); margin-bottom: 2px; }
.news-point__body { font-size: 14px; color: var(--ink-600); line-height: 1.55; }
.news-form { display: flex; gap: var(--sp-3); max-width: 480px; }
.news-form .input { flex: 1; }

/* Ezra quote */
.founder-quote { background: #fff; border: 1px solid var(--blue-100); border-radius: var(--r-xl); padding: var(--sp-8) var(--sp-7); box-shadow: var(--sh-2); text-align: center; max-width: 360px; margin: 0 auto; }
.founder-quote__portrait { width: 88px; height: 88px; border-radius: 999px; margin: 0 auto var(--sp-5); overflow: hidden; }
.founder-quote__mark { font-size: 48px; line-height: .5; color: var(--blue-200); font-family: Georgia,serif; font-weight: 700; margin-bottom: var(--sp-2); }
.founder-quote__text { font-family: var(--font-caption); font-style: italic; font-weight: 700; font-size: 15px; color: var(--ink-700); line-height: 1.55; margin-bottom: var(--sp-5); }
.founder-quote__text p { margin: 0 0 var(--sp-3); }
.founder-quote__text p:last-child { margin-bottom: 0; }
.founder-quote__name { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--ink-900); }
.founder-quote__title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--ink-400); margin-top: 2px; }

/* --- RESOURCES --- */
.resources { background: #fff; border-top: 1px solid var(--ink-200); border-bottom: 1px solid var(--ink-200); padding: var(--sp-10) 0; scroll-margin-top: calc(var(--zp-header-h) + 68px); }
.resources h3 { font-family: var(--font-display); font-weight: var(--tw-h-weight); font-size: calc(var(--fs-h3) * var(--tw-h-scale)); letter-spacing: var(--ls-tight); margin: var(--sp-2) 0; }
.resources .lede { margin: 0; color: var(--ink-500); font-size: var(--fs-body-2); max-width: 640px; }
.resources__grid { display: grid; grid-template-columns: repeat(6,1fr); gap: var(--sp-4); margin-top: var(--sp-7); }
.resource-tile { display: block; background: var(--ink-050); border: 1px solid var(--ink-200); border-radius: var(--r-md); padding: var(--sp-5) var(--sp-4); text-align: center; cursor: pointer; transition: all var(--dur-fast) var(--ease-out); }
.resource-tile:hover { border-color: var(--blue-300); transform: translateY(-2px); box-shadow: var(--sh-2); }
.resource-tile:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.resource-tile__title { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink-900); margin-top: var(--sp-3); margin-bottom: 2px; }
.resource-tile__desc { font-size: 12px; color: var(--ink-500); line-height: 1.4; }

/* --- DEEP DIVE --- */
.deep-dive { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-xl); padding: var(--sp-8) var(--sp-9); margin: 0 auto; scroll-margin-top: calc(var(--zp-header-h) + 68px); position: relative; }
.deep-dive__header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--sp-6); flex-wrap: wrap; gap: var(--sp-4); }
.deep-dive h3 { font-family: var(--font-display); font-weight: var(--tw-h-weight); font-size: calc(var(--fs-h3) * var(--tw-h-scale)); letter-spacing: var(--ls-tight); margin: var(--sp-2) 0; }
.deep-dive .lede { margin: 0; color: var(--ink-500); font-size: var(--fs-body-2); max-width: 640px; }
.deep-dive__takeaways { background: var(--ink-050); border: 1px solid var(--ink-200); border-radius: var(--r-md); padding: var(--sp-5) var(--sp-6); margin-bottom: var(--sp-6); }
.deep-dive__takeaways-label { font-family: var(--font-display); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--ink-400); margin-bottom: var(--sp-3); }
.deep-dive__takeaways ul { list-style: none; padding: 0; margin: 0; }
.deep-dive__takeaways li { font-size: 14px; color: var(--ink-600); line-height: 1.55; padding: 3px 0 3px 22px; position: relative; }
.deep-dive__takeaways li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.deep-dive__articles { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
.deep-article { background: var(--ink-050); border: 1px solid var(--ink-200); border-radius: var(--r-md); padding: var(--sp-5); display: flex; gap: var(--sp-4); cursor: pointer; transition: all var(--dur-fast) var(--ease-out); }
.deep-article:hover { border-color: var(--blue-300); transform: translateY(-1px); box-shadow: var(--sh-1); }
.deep-article:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.deep-article__cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--ink-400); margin-bottom: 2px; }
.deep-article__title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink-900); line-height: 1.4; }

/* --- APP STRIP (dark) --- */
.apps-strip { background: var(--grad-zipify); position: relative; overflow: hidden; padding: var(--sp-10) 0; scroll-margin-top: calc(var(--zp-header-h) + 68px); }
.apps-strip::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 350px at 20% 100%,rgba(45,107,228,.15),transparent 70%),repeating-linear-gradient(135deg,rgba(255,255,255,.012) 0 2px,transparent 2px 80px); }
.apps-strip .wrap { position: relative; z-index: 1; }
.apps-strip h3 { font-family: var(--font-display); font-weight: var(--tw-h-weight); font-size: calc(var(--fs-h3) * var(--tw-h-scale)); letter-spacing: var(--ls-tight); color: var(--fg-on-dark); margin: var(--sp-2) 0; }
.apps-strip .lede { margin: 0; color: var(--fg-on-dark-2); font-size: var(--fs-body-2); max-width: 640px; }
.apps-strip .row-see-all { color: var(--zip-yellow); }
.apps-strip__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); margin-top: var(--sp-7); }
.app-tile { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); transition: all var(--dur-base) var(--ease-out); }
.app-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.app-tile__icon { width: 40px; height: 40px; margin-bottom: var(--sp-1); }
.app-tile__icon img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
/* PostProfit uses a wide logotype (not a square brandmark), so it renders tiny in the 40px slot — scale it ~3x */
.app-tile--postprofit .app-tile__icon { width: 168px; height: auto; }
.app-tile--postprofit .app-tile__icon img { height: auto; }
.app-tile__name { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink-900); }
.app-tile__desc { font-size: 13px; color: var(--ink-600); line-height: 1.5; flex: 1; margin-bottom: var(--sp-3); }

/* --- LEAD MAGNET --- */
.lead-magnet { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-xl); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; margin: 0 auto; scroll-margin-top: calc(var(--zp-header-h) + 68px); }
.lead-magnet__content { padding: var(--sp-9); }
.lead-magnet h3 { font-family: var(--font-display); font-weight: var(--tw-h-weight); font-size: calc(28px * var(--tw-h-scale)); letter-spacing: var(--ls-tight); line-height: 1.15; margin: 0 0 var(--sp-4); }
.lead-magnet__content > p { color: var(--ink-600); font-size: 15px; line-height: 1.6; margin: 0 0 var(--sp-5); }
.lead-magnet__features { list-style: none; padding: 0; margin: 0 0 var(--sp-6); }
.lead-magnet__features li { font-size: 14px; color: var(--ink-600); padding: 5px 0 5px 26px; position: relative; }
.lead-magnet__features li::before { content: "✓"; position: absolute; left: 0; color: var(--orange-500); font-weight: 800; font-size: 15px; }
.lead-magnet__form { display: flex; gap: var(--sp-3); max-width: 460px; }
.lead-magnet__form .input { flex: 1; }
.lead-magnet__note { font-size: 12px; color: var(--ink-400); margin-top: var(--sp-3); font-style: italic; }
.lead-magnet__visual { background: linear-gradient(135deg,var(--yellow-200),var(--yellow-400)); display: flex; align-items: center; justify-content: center; padding: var(--sp-8); }
.lead-cover { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-md); width: 200px; padding: var(--sp-7) var(--sp-5); box-shadow: var(--sh-3); transform: rotate(-3deg); display: flex; flex-direction: column; gap: var(--sp-4); }
.lead-cover__eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--orange-500); font-weight: 700; }
.lead-cover__title { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--ink-900); line-height: 1.2; }
.lead-cover__author { font-size: 11px; color: var(--ink-400); font-style: italic; }

/* --- PRODUCT ROW (blue tint) --- */
.product-section { background: #EEF3FC; border: 1px solid #d0ddf0; border-radius: var(--r-xl); padding: var(--sp-8); scroll-margin-top: calc(var(--zp-header-h) + 68px); }
.product-section .row-track-wrap::after { background: linear-gradient(to right,transparent,#EEF3FC 80%); }

/* --- RECENTLY PUBLISHED --- */
.recently { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: var(--sp-7) var(--sp-8); scroll-margin-top: calc(var(--zp-header-h) + 68px); }
.recently__header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--ink-200); }
.recently__header h2 { font-family: var(--font-display); font-weight: var(--tw-h-weight); font-size: calc(20px * var(--tw-h-scale)); margin: 0; }
.recently__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-7); }
.recently-item { cursor: pointer; }
.recently-item__cat { font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--accent); margin-bottom: var(--sp-1); }
.recently-item__title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink-900); line-height: 1.4; margin-bottom: 2px; transition: color var(--dur-fast); }
.recently-item:hover .recently-item__title { color: var(--accent); }
.recently-item__date { font-size: 12px; color: var(--ink-400); }

/* --- SECTION SPACING --- */
.section-pad { padding-left: var(--sp-8); padding-right: var(--sp-8); }
.deep-dive-wrap, .lead-magnet-wrap, .recently-wrap { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 var(--sp-8); }

/* ============================================================================
   ARCHIVE / SEARCH LISTING — derived from the blog-index cards, since no
   category design was supplied. Reuses .blog-card styling above.
   ============================================================================ */
.archive .wrap, .search .wrap { padding-top: var(--sp-9); padding-bottom: var(--sp-9); }
.archive-header { margin-bottom: var(--sp-7); }
.archive-title {
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h1);
  letter-spacing: var(--ls-tight); line-height: 1.05; color: var(--ink-900); margin: 0 0 var(--sp-3);
}
.archive-desc { font-size: var(--fs-body-1); color: var(--fg-2); max-width: 60ch; }
.archive-desc p:last-child { margin-bottom: 0; }
.archive-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6); margin-bottom: var(--sp-8);
}
/* In a grid the cards should fill their cell (override the carousel flex-basis). */
.archive-grid .blog-card { flex: 1 1 auto; width: 100%; }
.archive-empty { font-size: var(--fs-body-1); color: var(--fg-2); }

/* Author archives get a bio block above the grid. */
.archive-author { display: flex; align-items: center; gap: var(--sp-5); margin-bottom: var(--sp-6); }
.archive-author img { border-radius: 999px; }
.archive-author p { margin: var(--sp-2) 0 0; font-size: var(--fs-body-2); color: var(--fg-2); line-height: 1.6; max-width: 60ch; }

/* Pagination — used by archive.php and search.php (works with the_posts_pagination's
   .nav-links and with a paginate_links wrapper). */
.content-section .pagination { margin-top: var(--sp-7); }
.content-section .pagination .nav-links {
  display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; justify-content: center;
}
.content-section .pagination .nav-links .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
  padding: 0 14px; border: 1.5px solid var(--ink-200); border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink-700);
  text-decoration: none; transition: border-color var(--dur-fast), color var(--dur-fast);
}
.content-section .pagination .nav-links .page-numbers:hover { border-color: var(--ink-400); color: var(--ink-900); }
.content-section .pagination .nav-links .page-numbers.current {
  background: var(--grad-ocu); color: #fff; border-color: transparent;
}

/* ============================================================================
   RESPONSIVE — the source design shipped desktop-only. These stack the multi-
   column sections on tablet/mobile so nothing overflows.
   ============================================================================ */
@media (max-width: 1000px) {
  .resources__grid     { grid-template-columns: repeat(3, 1fr); }
  .deep-dive__articles { grid-template-columns: 1fr; }
  .deep-dive__header   { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
}
@media (max-width: 860px) {
  .wrap,
  .deep-dive-wrap, .lead-magnet-wrap, .recently-wrap { padding-left: var(--sp-5); padding-right: var(--sp-5); }
  .hero .wrap,
  .newsletter .wrap   { grid-template-columns: 1fr !important; gap: var(--sp-7); }
  .hero__actions      { justify-content: center; }  /* center CTAs once the hero stacks */
  .lead-magnet        { grid-template-columns: 1fr; }
  .lead-magnet__visual { display: none; }                 /* rotated cover doesn't fit narrow screens */
  .apps-strip__grid   { grid-template-columns: repeat(2, 1fr); }
  .row-header         { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .founder-quote      { max-width: none; }
  .deep-dive          { padding: var(--sp-7) var(--sp-6); }
  /* store-size filter: let the pills wrap instead of overflowing the screen */
  .rev-tabs           { flex-wrap: wrap; }
  .rev-tabs__label    { width: 100%; margin: 0 0 var(--sp-2); }
}
@media (max-width: 560px) {
  .stats-band__grid   { grid-template-columns: 1fr; gap: var(--sp-6); }
  .resources__grid    { grid-template-columns: repeat(2, 1fr); }
  .apps-strip__grid   { grid-template-columns: 1fr; }
  .archive-grid       { grid-template-columns: 1fr; }
  .news-form, .lead-magnet__form { flex-direction: column; align-items: stretch; }
  .news-form .input,  .lead-magnet__form .input { width: 100%; }
  .hero h1            { font-size: clamp(28px, 8vw, 38px); }
  .hero__visual       { min-height: 240px; }
  .lead-magnet__content { padding: var(--sp-7) var(--sp-5); }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card, .blog-card::before, .app-tile, .resource-tile, .deep-article, button.row-arrow { transition: none; }
  .row-track { scroll-behavior: auto; }
}
