/* PostNimble — v2
   Asymmetric editorial landing.
   Serif display (Instrument Serif) · Manrope body · JetBrains Mono for codes.
*/

:root {
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* === Brand palette (per design system) ============================== */
  /* Primary accent — #0C87C1 (4.1:1 on white — AA large only). */
  --pn-violet-deep: #0C87C1;
  /* Lighter accent for hover/decorative — do NOT use for text on white. */
  --pn-violet:      #29A9E1;
  /* Soft tint for badge backgrounds. */
  --pn-violet-soft: #E0F2FE;
  /* Active/highlight accent (named “success” in tokens but reads as pink). */
  --pn-success:     #E12963;

  /* Suggested rename — the brand color is cyan, not violet. Aliases let us
     start using accurate names without breaking the design-system tokens. */
  --pn-cyan-deep:   var(--pn-violet-deep);
  --pn-cyan:        var(--pn-violet);
  --pn-cyan-soft:   var(--pn-violet-soft);
  /* Accessible variant of the primary accent for small text on white
     (5.8:1 on #FFFFFF — passes AA normal). Use anywhere the cyan needs to
     read as body-size text or as a link/affordance. */
  --pn-cyan-aa:     #086A99;
  /* True success indicator — the system’s --pn-success is actually pink/
     magenta and reads as activity, not affirmation. Use this for genuine
     success states (verified, complete, etc.). */
  --pn-success-green: #10B981;
  /* Better name for the existing #E12963 pink — it’s an activity/highlight
     color in practice, not success. */
  --pn-active:      var(--pn-success);

  /* Chromes & surfaces */
  --pn-navy:        #F1F5F9; /* nav / chrome bg   */
  --pn-panel:       #F8FAFC; /* surface bg        */
  --pn-paper:       #FFFFFF; /* page bg           */

  /* Ink */
  --pn-ink-dark:    #1E293B; /* body / display ink (14.7:1 on white) */
  --pn-ink:         #C0C0C0; /* decorative only — fails contrast for text */
  /* Accessible muted ink — added because the system’s --pn-ink is 1.6:1 on
     white and fails WCAG AA at every size. Use this anywhere you previously
     reached for --pn-ink for readable copy. */
  --pn-ink-muted:   #64748B; /* 4.8:1 on white — passes AA normal */

  /* === Internal aliases (consumed throughout the stylesheet) =========== */
  --brand:        var(--pn-cyan-deep);     /* #0C87C1 */
  --brand-deep:   var(--pn-cyan-aa);       /* #086A99 — AA-safe for small text */
  --brand-light:  var(--pn-cyan);          /* #29A9E1 */
  --brand-soft:   var(--pn-cyan-soft);     /* #E0F2FE */
  --brand-tint:   #F4FAFD;                 /* faint card tint */

  /* Pipeline / activity accent (mapped from --pn-active / --pn-success). */
  --pink:         var(--pn-active);        /* #E12963 */
  --pink-soft:    #FDE6EE;
  --success:      var(--pn-success-green); /* #10B981 — real green */

  /* Ink scale — mid-tones added so muted copy can pass WCAG AA (the
     design-system --pn-ink #C0C0C0 fails contrast and is only used for
     decorative dividers/hairlines). */
  --ink-900:      var(--pn-ink-dark);      /* #1E293B body          */
  --ink-800:      #283246;
  --ink-700:      #3B475C;
  --ink-500:      var(--pn-ink-muted);     /* #64748B — AA muted    */
  --ink-400:      #94A3B8;                 /* AA large only         */
  --ink-300:      var(--pn-ink);           /* #C0C0C0 hairlines     */
  --ink-200:      #E2E8F0;
  --ink-100:      #EEF2F6;
  --ink-50:       var(--pn-panel);         /* #F8FAFC               */
  --bg:           var(--pn-paper);         /* #FFFFFF               */
  --bg-warm:      var(--pn-panel);         /* cool to match system  */
  --beta-bg:      var(--pn-navy);          /* #F1F5F9               */

  /* Geometry */
  --container: 1280px;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow:    0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px -8px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 64px -16px rgba(15, 23, 42, 0.18);
}

* { box-sizing: border-box; }

html {
  /* Sticky .pn-header is 76 px tall + 20 px breathing room so a section
     heading lands clearly below the chrome after a #fragment scroll. */
  scroll-padding-top: 96px;
  scroll-behavior: smooth;
}
@media (max-width: 720px) {
  /* Mobile header collapses to a tighter row — 60 px header + 20 px gap. */
  html { scroll-padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* PR3 — mobile safety net: prevents any unintentionally wide child
   (long URL, oversized SVG, off-screen overlay mid-transition) from
   horizontally scrolling the page on a 375 px iPhone SE viewport. */
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--brand-light); color: #fff; }

/* ─── Layout ─── PR3 mobile-first cascade ─── */
/* Mobile-first container padding: 20 / 24 / 32 / 40px breakpoints per
   PR3 spec. Base targets 375 px viewport; padding scales up. */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 400px) { .container { padding: 0 24px; } }
@media (min-width: 720px) { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 40px; } }

/* ─── Sticky header ─── */
.pn-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.pn-header[data-scrolled="1"] {
  border-bottom-color: var(--ink-200);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}
.pn-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.pn-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.pn-wordmark .mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: var(--brand);
}
.pn-wordmark .post { font-weight: 700; }
.pn-wordmark .nimble { font-weight: 400; color: var(--brand-deep); }

/* The V1 app shell defines its own `.pn-nav` in postnimble.css with a dark
   --pn-panel background, border-bottom, sticky positioning, and 64 px
   height. That rule cascades into the marketing nav and renders a dark
   slab behind the link cluster. Reset every V1 property here so the
   marketing nav lives inside the blurred .pn-header surface only. */
.pn-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  height: auto;
  padding: 0;
  position: static;
  z-index: auto;
}
.pn-nav a {
  display: inline-flex;
  align-items: center;
  /* PR3 tap-target ≥ 44 px (was 36). Mouse hover still feels right. */
  height: 44px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 8px;
  background: transparent;
  transition: color 0.12s, background 0.12s;
}
.pn-nav a:hover { color: var(--ink-900); background: var(--ink-100); }
/* Active-nav state — set per page by the shared shell (nav_active). */
.pn-nav a.is-active { color: var(--ink-900); font-weight: 600; }

.pn-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* PR3 mobile-first: hide the desktop nav + CTAs below 720 px and show
   the hamburger button instead. Header on mobile = wordmark + burger. */
.pn-nav,
.pn-cta-group { display: none; }
@media (min-width: 720px) {
  .pn-nav { display: flex; }
  .pn-cta-group { display: flex; }
}

.pn-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink-900);
  margin-left: auto;
}
.pn-burger > span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.pn-burger:hover { color: var(--brand-deep); }
.pn-burger:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (min-width: 720px) {
  .pn-burger { display: none; }
}

/* ─── Mobile menu — Option D bottom sheet ───────────────────────────────
   Sheet docks at the bottom of the viewport; slides in from below with
   280 ms cubic-out. Backdrop fades in behind it. Both are display:none
   by default to keep them out of the tab order; .is-open swaps that. */

.pn-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: linear-gradient(180deg, rgba(15,23,42,0) 30%, rgba(15,23,42,0.40) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.pn-sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pn-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -16px 48px -8px rgba(15, 23, 42, 0.30);
  padding: 20px 22px max(28px, env(safe-area-inset-bottom)) 22px;
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.3, 1);
  overflow: hidden;
  /* Hidden HTML attribute keeps both backdrop + sheet out of the a11y
     tree until the open class is applied. */
}
.pn-sheet.is-open {
  transform: translateY(0);
}

.pn-sheet__handle {
  width: 40px;
  height: 5px;
  border-radius: 999px;
  background: var(--ink-200);
  margin: 0 auto 12px;
  flex-shrink: 0;
}

.pn-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-100);
  flex-shrink: 0;
}
.pn-sheet__wordmark {
  display: block;
  height: 20px;
  width: auto;
}
.pn-sheet__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--pn-navy);
  border: 1px solid var(--ink-200);
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.pn-sheet__close svg { width: 18px; height: 18px; display: block; }
.pn-sheet__close:hover { background: var(--ink-100); border-color: var(--ink-300); }
.pn-sheet__close:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.pn-sheet__nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0 4px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.pn-sheet__nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  min-height: 48px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.005em;
  transition: color 0.12s ease;
}
.pn-sheet__nav-link:hover { color: var(--brand-deep); }
.pn-sheet__nav-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}
.pn-sheet__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
}
.pn-sheet__label { flex: 1; }
.pn-sheet__chevron {
  width: 14px;
  height: 14px;
  color: var(--ink-400);
  flex-shrink: 0;
  transition: color 0.12s ease;
}

/* Current section — IntersectionObserver toggles is-current on whichever
   nav link matches the section closest to the top of the viewport. */
.pn-sheet__nav-link.is-current {
  color: var(--brand-deep);
  font-weight: 600;
}
.pn-sheet__nav-link.is-current .pn-sheet__dot { background: var(--brand-light); }
.pn-sheet__nav-link.is-current .pn-sheet__chevron { color: var(--brand-deep); }

.pn-sheet__divider {
  height: 1px;
  background: var(--ink-100);
  margin: 14px 0 12px;
  flex-shrink: 0;
}

.pn-sheet__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.pn-sheet__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pn-sheet__btn--ghost {
  background: transparent;
  border: 1px solid var(--ink-200);
  color: var(--ink-900);
}
.pn-sheet__btn--ghost:hover {
  border-color: var(--ink-900);
}
.pn-sheet__btn--primary {
  background: var(--ink-900);
  color: #fff;
  border: 1px solid var(--ink-900);
}
.pn-sheet__btn--primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}
.pn-sheet__btn svg { width: 14px; height: 14px; display: block; }
.pn-sheet__btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Lock scroll behind the sheet. */
body.pn-sheet-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .pn-sheet,
  .pn-sheet-backdrop { transition-duration: 0.01ms; }
}

/* ─── Buttons ─── */
.pn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  font-family: var(--font-sans);
}
.pn-btn:active { transform: translateY(1px); }
.pn-btn--dark {
  background: var(--ink-900);
  color: #fff;
}
.pn-btn--dark:hover { background: var(--brand-deep); }
.pn-btn--ghost {
  background: transparent;
  border-color: var(--ink-200);
  color: var(--ink-900);
}
.pn-btn--ghost:hover { border-color: var(--ink-900); }
.pn-btn--outline {
  background: var(--bg);
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.pn-btn--outline:hover { border-color: var(--ink-900); background: var(--bg); }
.pn-btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* ─── Hero ─── */
.pn-hero {
  padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 9vw, 120px);
  position: relative;
}
/* PR3 mobile-first: hero grid is one column by default. Split layout
   kicks in only on tablet-landscape + (≥1024 px). The wide-layout
   override below collapses back to one column at every viewport. */
.pn-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .pn-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(32px, 5vw, 72px);
  }
}

/* Wide layout — hero text centered above, product card full-width below.
   Default: feels less cramped because the product card gets the whole
   container width instead of competing with the headline. */
.pn-hero[data-layout="wide"] .pn-hero-grid {
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 64px);
}
.pn-hero[data-layout="wide"] .pn-hero-text {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.pn-hero[data-layout="wide"] .pn-lede {
  margin-left: auto;
  margin-right: auto;
}
.pn-hero[data-layout="wide"] .pn-hero-ctas {
  justify-content: center;
}
.pn-hero[data-layout="wide"] .pn-usage {
  text-align: center;
}

.pn-beta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--beta-bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-800);
  letter-spacing: -0.005em;
}

.pn-display {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 28px 0 32px;
  color: var(--ink-900);
  text-wrap: balance;
}
.pn-display em {
  font-style: italic;
  color: var(--brand-light);
  font-weight: 400;
}

/* Rotating lede — three positioning angles cross-fade. All stacked on one
   CSS-grid cell so the container hugs the tallest variant; no layout jump. */
.pn-lede-rotator {
  display: grid;
  max-width: 560px;
  margin: 0 0 36px;
}
.pn-hero[data-layout="wide"] .pn-lede-rotator {
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
}
.pn-lede-rotator .pn-lede {
  grid-area: 1 / 1;
  margin: 0;
  max-width: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pn-lede-rotator .pn-lede.is-active {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .pn-lede-rotator .pn-lede { transition: opacity 0.001s, transform 0.001s; }
}

.pn-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 540px;
  margin: 0 0 36px;
  text-wrap: pretty;
}

.pn-hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pn-usage {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  text-transform: uppercase;
}
.pn-usage strong { color: var(--ink-900); font-weight: 600; }

/* ─── Product card (the animated centerpiece) ─── */
.pc {
  position: relative;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(12,135,193,0.07), transparent 70%),
    var(--brand-tint);
  /* PR3 mobile-first: 14 px padding on 375 px viewport, 22 px on
     ≥720 px (V2 reference value). Fits inside one 1440×900 viewport
     desktop after PR2 banner-removal trim. */
  padding: clamp(14px, 2.5vw, 22px);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pc-breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-breadcrumb .sep { color: var(--ink-300); }
.pc-window {
  background: var(--bg);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  /* PR3 mobile-first: 16 → 24 px from 375 → 1280 viewport. */
  padding: clamp(16px, 2.5vw, 24px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, var(--shadow);
}
.pc-brand-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.pc-brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-700);
}
.pc-brand-author {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-500);
  letter-spacing: 0.03em;
}
.pc-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.18;
  color: var(--ink-900);
  margin: 0 0 18px;
  letter-spacing: -0.005em;
  font-weight: 400;
  min-height: 2.4em; /* reserve room for the 2-line title to avoid layout jump */
}

/* Article banner preview — small thumbnail of the real article hero image,
   with a pull-quote overlay. Adds visual texture and proves the demo is
   showing a real published article. */
.pc-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  /* Tightened from 16/6 → 16/5.5 to compress the product card height. */
  aspect-ratio: 16 / 5.5;
  background: var(--ink-100);
}
.pc-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pc-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(15,23,42,0) 35%, rgba(15,23,42,0.72) 100%);
  color: #fff;
}
.pc-banner-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
}
.pc-banner-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.pc-title .caret {
  display: inline-block;
  width: 1.5px;
  height: 0.9em;
  background: var(--brand);
  vertical-align: -2px;
  margin-left: 2px;
  animation: pn-blink 0.9s steps(2) infinite;
}
@keyframes pn-blink {
  to { opacity: 0; }
}

.pc-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  min-height: 28px;
}
.pc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pc-pill--progress {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--font-mono);
  width: 96px;
  position: relative;
  overflow: hidden;
}
.pc-pill--progress .bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--brand) 30%, transparent), transparent);
  transform: translateX(-100%);
  animation: pn-shimmer 1.6s ease-in-out infinite;
}
@keyframes pn-shimmer { to { transform: translateX(100%); } }
.pc-pill--qa {
  background: #ECFDF5;
  color: #047857;
}
.pc-pill--qa::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
}
.pc-pill--cite {
  background: #ECFDF5;
  color: #047857;
}
.pc-pill--cite::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
}
.pc-pill.hidden { opacity: 0; transform: translateY(4px); pointer-events: none; }

/* Pipeline track */
.pc-pipeline {
  position: relative;
  /* Tightened margins from 28/24 → 20/16 to compress vertical rhythm. */
  margin: 20px 0 16px;
  padding: 14px 4px 0;
}
/* PR3 mobile-first pipeline: 7 stages stack vertically on mobile so
   the labels stay readable; the connector runs top-to-bottom. ≥720 px
   restores the original horizontal track. */
.pc-pipe-track {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(44px, auto);
  gap: 6px;
  position: relative;
}
@media (min-width: 720px) {
  .pc-pipe-track {
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: auto;
    gap: 0;
  }
}
.pc-pipe-line {
  position: absolute;
  /* Vertical track on mobile: runs through the dot column. */
  left: 11px;
  top: 7%;
  bottom: 7%;
  width: 2px;
  background: var(--brand);
  border-radius: 2px;
  z-index: 0;
}
@media (min-width: 720px) {
  .pc-pipe-line {
    left: 7.1%;
    right: 7.1%;
    top: 11px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
}
.pc-pipe-stage {
  display: flex;
  /* Mobile: dot left + label right (row); desktop: dot above label (column). */
  flex-direction: row;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  min-height: 44px;
}
@media (min-width: 720px) {
  .pc-pipe-stage {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 0;
  }
}
.pc-pipe-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink-800);
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1), box-shadow 0.4s, background 0.4s;
}
.pc-pipe-stage.done .pc-pipe-dot {
  background: var(--pink);
}
.pc-pipe-stage.active .pc-pipe-dot {
  background: var(--pink);
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(236, 58, 108, 0.18);
  animation: pn-pulse 1.2s ease-in-out infinite;
}
@keyframes pn-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(236, 58, 108, 0.18); }
  50%      { box-shadow: 0 0 0 10px rgba(236, 58, 108, 0.06); }
}
/* PR3 mobile: kill the infinite pulse to save battery. Active dot
   still highlights via background/scale; just no breathing ring. */
@media (max-width: 719px) {
  .pc-pipe-stage.active .pc-pipe-dot {
    animation: none;
    box-shadow: 0 0 0 4px rgba(236, 58, 108, 0.18);
  }
}
.pc-pipe-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--ink-500);
  text-transform: uppercase;
  transition: color 0.3s;
}
.pc-pipe-stage.active .pc-pipe-label,
.pc-pipe-stage.done .pc-pipe-label { color: var(--ink-900); font-weight: 600; }

/* Stage detail panel.
   PR4 — locked to the height of the tallest stage. PLAN, RESEARCH, and
   CITE render 4 mono lines; REVIEW renders 1 line + button. Sizing to
   each stage made the page bounce ~70 px every 1.8 s as the pipeline
   cycled. Reserve room for the tallest variant once. */
.pc-detail {
  background: var(--ink-50);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-height: 144px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--ink-200);
  margin-bottom: 16px;
}
.pc-detail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-500);
}
.pc-detail-head .stage {
  color: var(--pink);
  font-weight: 600;
  text-transform: uppercase;
}
.pc-detail-head .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--pink);
  animation: pn-pulse-dot 1s ease-in-out infinite;
}
@keyframes pn-pulse-dot { 50% { opacity: 0.35; } }
.pc-detail-body {
  font-size: 13px;
  color: var(--ink-800);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* PR4 — reserve room for the tallest stage variant (4 mono lines + gaps)
     so the parent .pc-detail never collapses + reflows mid-cycle. */
  min-height: 88px;
}
.pc-detail-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-700);
  opacity: 0;
  transform: translateY(4px);
  animation: pn-line-in 0.4s ease forwards;
}
.pc-detail-line .check { color: var(--success); font-weight: 700; }
.pc-detail-line .url   { color: var(--brand-deep); }
.pc-detail-line .num   { color: var(--ink-400); width: 18px; }
@keyframes pn-line-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Output cards (LinkedIn / Instagram / Facebook) — platform-evocative
   mockups. Two display modes (set via [data-mode]):
     A · three full-fidelity posts always visible
     C · three compact previews; hover expands one (others dim)            */
.sp-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  transition: opacity 0.5s, filter 0.5s;
}
.sp-row[data-visible="0"] {
  opacity: 0.5;
  filter: saturate(0.6);
  pointer-events: none;
}
.sp-slot {
  position: relative;
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.3s ease;
}
.sp-slot[data-dim="1"] { opacity: 0.45; filter: saturate(0.7); }
.sp-slot[data-hovered="1"] { z-index: 5; }

/* Mode C: compact starting size for each card; expanded card transforms
   slightly larger and pops via z-index. We keep transform light so the
   adjacent cards stay readable. */
.sp-row[data-mode="C"] .sp-card {
  min-height: 0;
}
.sp-row[data-mode="C"] .sp-slot[data-hovered="1"] .sp-card {
  transform: scale(1.08);
  transform-origin: top center;
  box-shadow: 0 24px 48px -8px rgba(15,23,42,0.18);
  z-index: 5;
}

.sp-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  padding: 12px;
  font-family: var(--font-sans);
  color: var(--ink-900);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sp-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-head-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.sp-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink-900);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-role {
  font-size: 10.5px;
  color: var(--ink-500);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sp-time {
  font-size: 10.5px;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: 4px;
}
.sp-body {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-900);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.005em;
}
.sp-body--continued {
  font-size: 11px;
  color: var(--brand-deep);
  font-weight: 600;
  -webkit-line-clamp: 2;
}
.sp-engage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #F1F3F6;
  font-size: 10.5px;
  color: var(--ink-500);
  gap: 8px;
}
.sp-reactions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sp-rxn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  border: 1.5px solid #fff;
  margin-left: -4px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}
.sp-rxn:first-child { margin-left: 0; }
.sp-rxn-count {
  margin-left: 6px;
  font-size: 10.5px;
  color: var(--ink-500);
  font-weight: 500;
}
.sp-meta-r {
  font-size: 10.5px;
  color: var(--ink-500);
  text-align: right;
}
.sp-actions {
  display: flex;
  justify-content: space-around;
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid #F1F3F6;
  font-size: 11px;
  color: var(--ink-700);
  font-weight: 600;
}
.sp-actions span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.12s;
}
.sp-actions span:hover { background: #F8FAFC; }

/* LinkedIn-specific accent (top-edge cyan tab). */
.sp-card--linkedin::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #0a66c2, #29A9E1);
}
.sp-card--linkedin .sp-name { letter-spacing: -0.01em; }

/* Instagram-specific styling */
.sp-card--instagram {
  padding: 10px;
  gap: 6px;
}
.sp-head--ig {
  gap: 8px;
}
.sp-name--ig {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sp-dot { color: var(--ink-400); }
.sp-follow {
  color: #1877f2;
  font-weight: 600;
  font-size: 11px;
}
.sp-more {
  font-size: 16px;
  color: var(--ink-500);
  line-height: 1;
  margin-left: auto;
}
.sp-ig-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-100);
}
.sp-ig-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sp-ig-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(15,23,42,0.45) 0%, rgba(15,23,42,0) 30%, rgba(15,23,42,0) 60%, rgba(15,23,42,0.65) 100%);
  color: #fff;
}
.sp-ig-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  line-height: 1.2;
  align-self: flex-end;
  text-align: right;
  max-width: 70%;
}
.sp-ig-paging {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  align-self: flex-end;
  background: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 999px;
}
.sp-ig-actions {
  display: flex;
  justify-content: space-between;
  color: var(--ink-900);
  margin-top: 2px;
}
.sp-ig-actions-l { display: inline-flex; gap: 10px; }
.sp-ig-likes {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}
.sp-body--ig {
  font-size: 11px;
  -webkit-line-clamp: 2;
}
.sp-card--instagram[data-expanded="1"] .sp-body--ig { -webkit-line-clamp: 5; }
.sp-ig-user { font-weight: 700; }
.sp-body--tags {
  color: var(--brand-deep);
  font-size: 10.5px;
  -webkit-line-clamp: 2;
}
.sp-ig-comments {
  font-size: 10.5px;
  color: var(--ink-500);
}
.sp-ig-time {
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* Facebook-specific accent */
.sp-card--facebook::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1877f2, #29A9E1);
}

/* ─── Product card — wide layout tweaks ───
   When layout=wide, the card spans the full container width so banner,
   pipeline, and social cards all read horizontally instead of stacked tall. */
.pc[data-layout="wide"] .pc-banner { aspect-ratio: 16 / 5.5; }
.pc[data-layout="wide"] .pc-title  { font-size: clamp(26px, 2.6vw, 36px); }
.pc[data-layout="wide"] .pc-pipeline { margin-top: 12px; }
/* In wide mode, the social cards have ~390px each — give them room to
   breathe and let the Instagram image render at a comfortable aspect. */
.pc[data-layout="wide"] .sp-card { padding: 14px; gap: 10px; }
.pc[data-layout="wide"] .sp-body { font-size: 12.5px; -webkit-line-clamp: 4; }
.pc[data-layout="wide"] .sp-name { font-size: 13px; }
.pc[data-layout="wide"] .sp-role,
.pc[data-layout="wide"] .sp-time { font-size: 11px; }
.pc[data-layout="wide"] .sp-ig-image { aspect-ratio: 1 / 1; }
.pc[data-layout="wide"] .sp-ig-quote { font-size: 16px; }
.pc[data-layout="wide"] .sp-ig-likes { font-size: 12.5px; }
.pc[data-layout="wide"] .sp-body--ig { font-size: 12px; }


/* ─── How it works section ─── */
.pn-section {
  padding: clamp(64px, 8vw, 112px) 0;
}
.pn-section-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.pn-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-700);
  font-weight: 600;
}
.pn-section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 16px 0 0;
  color: var(--ink-900);
  text-wrap: balance;
}
.pn-section-title em { font-style: italic; color: var(--brand-light); font-weight: 400; }

/* PR3 mobile-first: 1-column on mobile, 3 on tablet-portrait + */
.pn-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 880px) {
  .pn-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.pn-step {
  background: var(--bg);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  /* PR3 type-clamp: 20 → 32 px from 375 → 1280 viewport. */
  padding: clamp(20px, 3vw, 32px);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.pn-step:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pn-step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-deep);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.pn-step-title {
  font-family: var(--font-display);
  /* PR3 type-clamp: 22 → 28 px from 375 → 1280 viewport. */
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--ink-900);
}
.pn-step-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-700);
  margin: 0;
}

/* ─── Pillars / why-postnimble strip ─── */
.pn-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-200);
}
/* PR3 mobile-first: pillars stack 1-up on mobile, 3-up on tablet+ */
.pn-pillars { grid-template-columns: 1fr; }
@media (min-width: 880px) {
  .pn-pillars { grid-template-columns: repeat(3, 1fr); }
}
.pn-pillar {
  background: var(--bg);
  /* PR3 type-clamp: 22/24 → 28/32 px from 375 → 1280 viewport. */
  padding: clamp(22px, 2.5vw, 28px) clamp(24px, 3vw, 32px);
}
.pn-pillar-marker {
  margin-bottom: 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.pn-pillar-keyword {
  font-family: var(--font-display);
  /* PR3 type-clamp: 28 → 36 px from 375 → 1280 viewport. */
  font-size: clamp(28px, 4vw, 36px);
  font-style: italic;
  color: var(--brand-light);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.pn-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pn-pillar-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0 0 6px;
}
.pn-pillar-body {
  font-size: 14px;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.5;
}

/* ─── Final CTA ─── */
.pn-cta-band {
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(56px, 7vw, 88px) clamp(32px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pn-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(12,135,193,0.55), transparent 70%);
  pointer-events: none;
}
.pn-cta-band > * { position: relative; }
.pn-cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  font-weight: 400;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}
.pn-cta-band h2 em { font-style: italic; color: var(--brand-light); font-weight: 400; }
.pn-cta-band p {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  margin: 0 0 32px;
}
.pn-cta-band .pn-btn--dark {
  background: #fff;
  color: var(--ink-900);
}
.pn-cta-band .pn-btn--dark:hover { background: var(--brand-deep); color: #fff; }

/* ─── Footer ─── */
.pn-footer {
  border-top: 1px solid var(--ink-200);
  padding: 32px 0;
  font-size: 13px;
  color: var(--ink-500);
}
.pn-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pn-footer-links {
  display: flex;
  gap: 20px;
}
.pn-footer-links a:hover { color: var(--ink-900); }
