/* SimpleGrid Website v2 - Revamped Styles */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: #fff; color: var(--fg1); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* Screen-reader-only: visible to crawlers + assistive tech, hidden visually. */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: absolute; top: 0; left: 0; padding: 12px 20px; background: var(--sg-blue, #3461E0); color: #fff; font-weight: 600; text-decoration: none; z-index: 10000; transform: translateY(-100%); transition: transform 120ms ease; }
.skip-link:focus { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

/* Global branded keyboard focus indicator (only fires for keyboard nav, not mouse clicks) */
:focus-visible { outline: 2px solid var(--sg-blue, #3461E0); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(74, 123, 247, 0.30); outline: 2px solid var(--sg-blue); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--sg-blue); outline-offset: 1px; }

/* ===== Integrations marquee (between hero + problem section) ===== */
.ig-bar { display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--sg-off-white); padding: 14px 24px; overflow: hidden; }
.ig-label { flex: 0 0 auto; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg3); white-space: nowrap; }
.ig-marquee { flex: 1 1 auto; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ig-track { display: flex; gap: 36px; width: max-content; animation: ig-scroll 40s linear infinite; }
.ig-marquee:hover .ig-track { animation-play-state: paused; }
.ig-item { display: inline-flex; align-items: center; gap: 8px; color: var(--fg2); font-family: var(--font-heading); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; flex: 0 0 auto; }
.ig-item svg { flex: 0 0 auto; }
.ig-icon { display: inline-flex; align-items: center; flex: 0 0 auto; line-height: 0; }
.ig-icon svg { display: block; }
@keyframes ig-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ig-track { animation: none; } }
@media (max-width: 640px) { .ig-bar { flex-direction: column; gap: 10px; padding: 12px 0; } .ig-label { padding: 0 16px; } }

/* ===== NAV ===== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 52px; display: flex; align-items: center; gap: 32px; }
.nav-logo { display: inline-flex; }
.nav-logo img { height: 26px; }
.nav-links { display: flex; gap: 2px; flex: 1; align-items: center; }
.nav-link { font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--fg1); padding: 8px 12px; border-radius: var(--radius-md); text-decoration: none; border: none; transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast); }
.nav-link:hover { background: var(--sg-off-white); color: var(--sg-blue); border: none; }
.nav-link.active { color: var(--sg-blue); }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Resources dropdown - CSS-only <details>/<summary> pattern used in static page navs
   (competitors.html, blog.html, tool pages). Mirrors the React Nav's "Resources ▾". */
.nav-resources { position: relative; }
.nav-resources > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-resources > summary::-webkit-details-marker { display: none; }
.nav-resources > summary svg { transition: transform 0.15s; }
.nav-resources[open] > summary svg { transform: rotate(180deg); }
.nav-resources-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg, 12px);
  padding: 8px; min-width: 280px; box-shadow: 0 12px 32px rgba(0,0,0,0.08); z-index: 100;
}
.nav-resources-menu a {
  display: block; padding: 12px 14px; border-radius: 8px; text-decoration: none;
  color: var(--fg1); font-size: 14px; font-weight: 600; transition: background 0.15s;
}
.nav-resources-menu a span {
  display: block; font-size: 12px; font-weight: 400; color: var(--fg3); margin-top: 2px;
}
.nav-resources-menu a:hover { background: var(--sg-off-white); }

/* mobile burger button (hidden on desktop) */
.nav-burger { display: none; background: none; border: 1px solid var(--border); width: 44px; height: 44px; border-radius: 8px; padding: 0; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; transition: background 160ms; }
.nav-burger:hover { background: var(--sg-off-white); }
.nav-burger > span { width: 18px; height: 2px; background: var(--fg1); border-radius: 2px; transition: transform 200ms ease, opacity 160ms ease; }
.nav-burger.is-open > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open > span:nth-child(2) { opacity: 0; }
.nav-burger.is-open > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile menu drawer */
.nav-mobile { position: fixed; inset: 52px 0 0 0; background: rgba(0,0,0,0.35); z-index: 49; animation: nav-mobile-fade 200ms ease; }
@keyframes nav-mobile-fade { from { opacity: 0; } to { opacity: 1; } }
.nav-mobile-panel { background: #fff; border-bottom: 1px solid var(--border); padding: 12px 16px 18px; max-width: 100%; box-shadow: 0 12px 32px rgba(0,0,0,0.08); animation: nav-mobile-slide 240ms cubic-bezier(0.2,0.8,0.2,1); }
@keyframes nav-mobile-slide { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.nav-mobile-link { display: block; width: 100%; text-align: left; padding: 14px 14px; font-size: 18px; font-weight: 600; color: var(--fg1); text-decoration: none; border: none; background: none; border-radius: 8px; cursor: pointer; font-family: var(--font-body); transition: background 160ms; }
.nav-mobile-link:hover { background: var(--sg-off-white); border: none; }
.nav-mobile-link.active { color: var(--sg-blue); background: var(--sg-blue-light); }
.nav-mobile-link.highlight { color: var(--sg-blue); }
.nav-mobile-section { padding: 14px 14px 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg3); }
.nav-mobile-link.nav-mobile-sub { padding-left: 26px; font-size: 18px; }
.nav-mobile-sep { height: 1px; background: var(--border); margin: 8px 4px; }

/* ===== BUTTONS ===== */
.btn { font-family: var(--font-body); font-size: 16px; font-weight: 600; padding: 11px 22px; border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all var(--dur-fast) var(--ease-standard); }
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 7px 14px; font-size: 15px; }
.btn-primary { background: var(--sg-blue); color: #fff; border: none; }
.btn-primary:hover { background: var(--sg-blue-dark); color: #fff; border: none; }
.btn-secondary { background: #fff; color: var(--fg1); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--sg-blue); color: var(--sg-blue); }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-outline-white:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost { background: transparent; color: var(--sg-blue); }
.btn-ghost:hover { background: var(--sg-blue-light); }
.btn-lg { padding: 14px 32px; font-size: 18px; }

/* Outline "Request an Invite" CTA - transparent fill, blue border + text.
   Pairs with the sgBuildPulse animation for the same alive feel as the
   filled primary, without the heavy solid color. Used everywhere the
   "Request an Invite" CTA appears. */
.btn-invite {
  background: transparent;
  color: var(--sg-blue);
  border: 1.5px solid var(--sg-blue);
  white-space: nowrap;
}
.btn-invite:hover {
  background: color-mix(in srgb, var(--sg-blue) 10%, transparent);
  color: var(--sg-blue);
  border-color: var(--sg-blue);
}
.section-dark .btn-invite { background: transparent; }
.section-dark .btn-invite:hover { background: color-mix(in srgb, var(--sg-blue) 14%, transparent); }

/* Soft brand-blue pulse halo for the Request-an-Invite CTA. Applied
   inline as `animation: sgBuildPulse 1.8s ease-in-out infinite`. */
@keyframes sgBuildPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sg-blue) 45%, transparent), 0 6px 20px color-mix(in srgb, var(--sg-blue) 18%, transparent); }
  70%  { box-shadow: 0 0 0 12px color-mix(in srgb, var(--sg-blue) 0%, transparent), 0 6px 20px color-mix(in srgb, var(--sg-blue) 22%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sg-blue) 0%, transparent), 0 6px 20px color-mix(in srgb, var(--sg-blue) 18%, transparent); }
}

/* ===== BUILD-ERP HERO BUTTON (PLG entry point) ===== */
.btn-build {
  position: relative;
  background: var(--sg-blue);
  color: #fff !important;
  border: none;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(34, 86, 232, 0.18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
  line-height: 1.05;
}
.btn-build:hover {
  background: #1e4dd9;
  box-shadow: 0 4px 12px rgba(34, 86, 232, 0.25);
  color: #fff;
}
.btn-build .build-spark {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  flex-shrink: 0;
}
.btn-build .build-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.1;
}
.btn-build .build-main { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.btn-build .build-sub  { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.btn-build .free-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.22);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 2px;
  flex-shrink: 0;
}

/* ===== TAG ===== */
.tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--sg-blue); margin-bottom: 16px; }

/* ===== SECTIONS ===== */
.section { padding: 88px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--sg-off-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--sg-black); color: #fff; }
.section-dark .tag { color: rgba(255,255,255,0.5); }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-blue { background: var(--sg-blue-light); }

.h2 { font-family: var(--font-heading); font-size: 37px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 14px; color: var(--fg1); }
.section-dark .h2 { color: #fff; }
.lead { font-size: 18px; color: var(--fg2); max-width: 100%; margin: 0 0 40px; line-height: 1.6; }
.section-dark .lead { color: rgba(255,255,255,0.6); }

/* ===== SITE-WIDE ANIMATED GRID ===== */
@keyframes sg-grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 56px 56px, 56px 56px; }
}
.hero, .section { position: relative; }
.hero::before, .section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,26,26,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,26,26,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  animation: sg-grid-drift 14s linear infinite;
  z-index: 0;
}
.section-dark::before, .hero::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}
.hero.hero-light::before {
  background-image:
    linear-gradient(rgba(26,26,26,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,26,26,0.05) 1px, transparent 1px);
}
.section-blue::before { background-image: none; animation: none; }
.section > .container,
.section > .container-sm,
.hero > .container { position: relative; z-index: 2; max-width: 1400px; }

/* ===== HERO v2 ===== */
.hero { background: var(--sg-black); color: #fff; padding: 96px 0 80px; overflow: hidden; min-height: calc(100vh - 52px); min-height: calc(100dvh - 52px); display: flex; flex-direction: column; justify-content: center; }
.hero.hero-light { background: #FCFCFD; color: var(--fg1); }
/* backdrop-filter is GPU-expensive on phones; only enable on >=tablet. */
@media (min-width: 768px) {
  .hero-stat-box { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.hero-title { font-family: var(--font-heading); font-size: 65px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 22px; color: #fff; min-height: 3.15em; }
.hero.hero-light .hero-title { color: var(--fg1); }
/* Cycling-headline tile mask: 8×3 grid of tiles, each fades smoothly with a
   diagonal stagger (set via inline transition-delay) to give a "breaking into
   checkboxes" wipe that smoothly reassembles. */
.hero-title-stage { position: relative; }
.hero-title-tiles {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(3, 1fr);
  pointer-events: none;
}
.hero-title-tile {
  background: var(--sg-black);
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: opacity;
}
.hero.hero-light .hero-title-tile { background: #fff; }
.hero-title-stage.hero-title-cover  .hero-title-tile { opacity: 1; }
.hero-title-stage.hero-title-reveal .hero-title-tile { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero-title-tile { display: none; }
}
.hero-sub { font-size: 15px; font-weight: 500; line-height: 1.55; color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 0 32px; }
.hero.hero-light .hero-sub { color: var(--fg2); }

/* Hero theme toggle (top-right of hero) */
.hero-theme-toggle {
  position: absolute; top: 16px; right: 24px; z-index: 5;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.85);
  padding: 8px; border-radius: 999px;
  cursor: pointer; transition: all 200ms ease;
}
.hero-theme-toggle:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
.hero.hero-light .hero-theme-toggle, .hero-theme-toggle.is-light { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.10); color: var(--fg2); }
.hero.hero-light .hero-theme-toggle:hover, .hero-theme-toggle.is-light:hover { background: rgba(0,0,0,0.07); border-color: rgba(0,0,0,0.18); }
.hero-theme-toggle svg { width: 14px; height: 14px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero proof strip */
.hero-proof { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,0.08); border-radius: var(--radius-lg); overflow: hidden; margin-top: 48px; }
.hero-proof-item { padding: 20px; background: rgba(255,255,255,0.04); text-align: center; }
.hero-proof-num { font-family: var(--font-heading); font-size: 33px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.hero-proof-label { font-size: 14px; color: var(--sg-mid-gray); margin-top: 4px; }

/* Hero visual - animated counter */
.hero-visual { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-xl); padding: 28px; }
.hv-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 16px; }
.hv-row:last-child { border-bottom: none; }
.hv-label { color: var(--sg-mid-gray); }
.hv-old { color: rgba(239,68,68,0.7); text-decoration: line-through; font-size: 15px; }
.hv-new { color: var(--sg-blue); font-weight: 700; }

/* ===== STAT STRIP - horizontal ===== */
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.stat-item { background: #fff; padding: 28px 24px; text-align: center; }
.stat-num { font-family: var(--font-heading); font-size: 33px; font-weight: 700; color: var(--sg-red); letter-spacing: -0.02em; }
.stat-label { font-size: 15px; color: var(--fg2); line-height: 1.5; margin-top: 6px; }

/* ===== STEPS v2 ===== */
.steps2 { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; margin-top: 32px; counter-reset: step; }
.step2 { padding: 24px 20px; border-right: 1px solid var(--border); counter-increment: step; position: relative; text-align: center; }
.step2:last-child { border-right: none; }
.step2-num { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--sg-blue); letter-spacing: 0.1em; margin-bottom: 10px; }
.step2-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--fg1); margin: 0 0 8px; letter-spacing: -0.01em; line-height: 1.25; }
.step2-body { font-size: 15px; color: var(--fg2); line-height: 1.55; margin: 0; }

/* ===== VIDEO ===== */
.video-wrap { max-width: 840px; margin: 0 auto; background: var(--sg-off-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.video-wrap .play-btn { width: 64px; height: 64px; border-radius: 50%; background: var(--sg-blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: transform var(--dur-fast) var(--ease-standard); }
.video-wrap:hover .play-btn { transform: scale(1.06); }

/* ===== SCENARIO CARDS v2 ===== */
.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.scenario-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: border-color var(--dur-fast); }
.scenario-card:hover { border-color: var(--sg-blue); }
.scenario-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--fg1); margin: 0 0 8px; line-height: 1.3; }
.scenario-body { font-size: 15px; color: var(--fg2); line-height: 1.55; margin: 0 0 12px; }
.scenario-old { font-size: 14px; color: var(--sg-mid-gray); margin-bottom: 4px; }
.scenario-new { font-size: 14px; color: var(--sg-blue); font-weight: 600; }

/* ===== FEATURE BLOCKS v2 - alternating ===== */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--border); }
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row h3 { font-family: var(--font-heading); font-size: 25px; font-weight: 700; color: var(--fg1); margin: 0 0 10px; letter-spacing: -0.015em; }
.feature-row p { font-size: 18px; color: var(--fg2); line-height: 1.6; margin: 0; }
.feature-demo { background: var(--sg-off-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; font-family: var(--font-mono); font-size: 15px; color: var(--fg2); line-height: 1.7; }
.feature-demo .prompt { color: var(--sg-blue); font-weight: 600; }
.feature-demo .response { color: var(--sg-green); }

/* ===== OFFER v2 ===== */
.offer-box { background: var(--sg-blue-light); border-radius: var(--radius-xl); padding: 56px 48px; text-align: center; max-width: 880px; margin: 0 auto; }
.offer-box .h2 { font-size: 33px; }
.offer-contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; text-align: left; }
.offer-col { padding: 20px; border-radius: var(--radius-lg); font-size: 16px; line-height: 1.6; }
.offer-col.old { background: #fff; color: var(--fg2); border: 1px solid var(--border); }
.offer-col.new { background: rgba(74,123,247,0.1); color: var(--sg-blue-dark); font-weight: 600; border: 1px solid rgba(74,123,247,0.2); }
.offer-col strong { display: block; font-size: 13px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.1em; }
.offer-col.old strong { color: var(--sg-mid-gray); }
.offer-col.new strong { color: var(--sg-blue); }

/* ===== FOUNDER v2 ===== */
.founder-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.founder-photo { border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; background: var(--sg-off-white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--fg3); font-size: 15px; }
.founder-text { max-width: none; }
.founder-text blockquote { margin: 0; font-family: var(--font-heading); font-size: 25px; font-weight: 600; color: var(--fg1); line-height: 1.35; letter-spacing: -0.015em; }
.founder-text .body { font-size: 18px; color: var(--fg2); line-height: 1.65; margin: 16px 0; }
.founder-text .attr { font-size: 16px; color: var(--fg3); }

/* ===== PROOF v2 ===== */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.proof-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--dur-fast); }
.proof-card:hover { border-color: var(--sg-blue); }
.proof-img { height: 200px; background: var(--sg-off-white); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--fg3); font-size: 15px; object-fit: cover; }
.proof-body { padding: 24px; }
.proof-body h3 { font-family: var(--font-heading); font-size: 21px; font-weight: 700; color: var(--fg1); margin: 0 0 6px; }
.proof-body p { font-size: 16px; color: var(--fg2); line-height: 1.55; margin: 0 0 10px; }
.proof-stats { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--sg-blue); margin-bottom: 12px; }
.proof-quote { font-size: 15px; font-style: italic; color: var(--fg2); line-height: 1.55; border-left: 3px solid var(--sg-blue); padding-left: 14px; margin: 12px 0; }
.proof-attr { font-size: 14px; color: var(--fg3); font-style: normal; }

/* ===== INTEGRATIONS v2 ===== */
.int-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; margin-top: 28px; }
.int-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 12px; text-align: center; transition: border-color var(--dur-fast); }
.int-card:hover { border-color: var(--sg-blue); }
.int-icon { width: 40px; height: 40px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; }
.int-name { font-size: 14px; font-weight: 600; color: var(--fg1); }

/* ===== SECURITY v2 ===== */
.sec-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 28px; }
.sec-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.sec-badge { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.sec-card h3 { font-family: var(--font-heading); font-size: 19px; font-weight: 700; color: var(--fg1); margin: 0 0 8px; }
.sec-card p { font-size: 15px; color: var(--fg2); line-height: 1.6; margin: 0; }

/* ===== ARCHITECTURE v2 ===== */
.arch-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.arch-col h3 { font-family: var(--font-heading); font-size: 21px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.arch-col p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.6; margin: 0; }

/* ===== COMPARE TABLE ===== */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 15px; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th { font-size: 13px; font-weight: 700; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.08em; background: var(--sg-off-white); }
.compare-table td { color: var(--fg2); }
.compare-table td:last-child { background: var(--sg-blue-light); color: var(--sg-blue-dark); font-weight: 600; }
.compare-table th:last-child { background: var(--sg-blue-light); color: var(--sg-blue); }

/* ===== FINAL CTA ===== */
.final-cta { text-align: center; padding: 80px 0; }
.final-cta .h2 { font-size: 42px; }
.final-cta .sub { font-size: 18px; color: var(--sg-mid-gray); max-width: 520px; margin: 0 auto 24px; line-height: 1.6; }
.final-cta .note { font-size: 15px; color: var(--sg-mid-gray); margin-top: 14px; }

/* ----- Standard closing CTA band (full-bleed black, two-column, site-wide) ----- */
.final-cta-band {
  position: relative; overflow: hidden;
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--sg-black); color: #fff;
  /* Full-viewport closing section, sized like the hero, content centered. */
  min-height: calc(100vh - 52px); min-height: calc(100dvh - 52px);
  display: flex; flex-direction: column; justify-content: center;
}
.final-cta-gridbg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  /* Same drifting grid as the rest of the page (.section::before) so the moving
     "checks" carry straight through into the black closing band - no separate,
     idle grid here anymore. */
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: sg-grid-drift 14s linear infinite;
}
.final-cta-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.final-cta-inner::before {
  content: ""; position: absolute; top: 6%; bottom: 6%; left: 42%;
  width: 1px; background: rgba(255,255,255,0.12);
}
.final-cta-head { margin: 0; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; color: #fff; }
.final-cta-text { margin: 0 0 28px; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.6; color: rgba(255,255,255,0.62); max-width: 560px; }
.final-cta-btn { background: var(--sg-blue); color: #fff; border: none; }
.final-cta-btn:hover { background: var(--sg-blue-dark); }
.final-cta-note { font-size: 14px; color: rgba(255,255,255,0.45); margin: 16px 0 0; }
@media (max-width: 760px) {
  .final-cta-inner { grid-template-columns: 1fr; gap: 22px; }
  .final-cta-inner::before { display: none; }
}

/* ===== FOOTER ===== */
.footer { background: var(--sg-off-white); border-top: 1px solid var(--border); padding: 48px 0 20px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 3fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.footer-logo { height: 26px; margin-bottom: 12px; }
.footer-tagline { font-size: 15px; color: var(--fg2); max-width: 280px; line-height: 1.5; margin: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--fg1); margin-bottom: 10px; }
.footer-link { display: block; font-size: 15px; color: var(--fg2); text-decoration: none; padding: 3px 0; border: none; }
.footer-link:hover { color: var(--sg-blue); border: none; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 16px; font-size: 13px; color: var(--fg3); }
.footer-legal a { color: var(--fg3); margin-left: 16px; text-decoration: none; border: none; }

/* ===== LOGIN MODAL ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 10001; background: rgba(26,26,26,0.5); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: var(--radius-xl); padding: 36px; width: 100%; max-width: 380px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; }
.modal h2 { font-family: var(--font-heading); font-size: 25px; font-weight: 700; margin: 0 0 4px; }
.modal .sub { font-size: 15px; color: var(--fg3); margin: 0 0 20px; }
.modal .field { margin-bottom: 14px; }
.modal label { display: block; font-size: 13px; font-weight: 600; color: var(--fg1); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; }
/* font-size 16px prevents iOS Safari from auto-zooming the page when the input gets focus */
.modal input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); font: 400 16px var(--font-body); color: var(--fg1); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
@media (max-width: 480px) { .modal { padding: 24px; } }
.modal input:focus { outline: none; border-color: var(--sg-blue); box-shadow: var(--shadow-focus); }
.modal .tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.modal .tab { padding: 8px 14px; font-size: 15px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; color: var(--fg3); background: none; border-top: none; border-left: none; border-right: none; font-family: var(--font-body); }
.modal .tab.active { color: var(--sg-blue); border-bottom-color: var(--sg-blue); }

/* ===== BLOG CARDS ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; transition: all 160ms var(--ease-standard); }
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--sg-blue); }
.blog-cover { height: 140px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.blog-cover .cat-label { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.blog-cover .glyph { font-family: var(--font-heading); font-size: 46px; font-weight: 700; letter-spacing: -0.02em; opacity: 0.8; }
.blog-body { padding: 16px; }
.blog-body h3, .blog-body .blog-card-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--fg1); letter-spacing: -0.01em; margin: 0 0 6px; line-height: 1.3; }
.blog-body .meta { font-size: 13px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.06em; }

/* Featured (latest) post — wide hero card above the grid */
.blog-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; text-decoration: none; color: inherit; margin: 0 0 28px; transition: all 160ms var(--ease-standard); }
.blog-featured:hover { box-shadow: var(--shadow-lg); border-color: var(--sg-blue); transform: translateY(-2px); }
.blog-featured-art { position: relative; overflow: hidden; }
.blog-featured-art .blog-cover { height: 100%; min-height: 280px; border-radius: 0; }
.blog-featured-art .cat-label { display: none; }
.blog-featured-art .blog-cover svg { width: min(72%, 420px); }
.blog-featured-body { padding: 36px 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.blog-featured-flag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg3); margin-bottom: 12px; }
.blog-featured-body .post-cat-pill { margin-bottom: 14px; }
.blog-featured-title { font-family: var(--font-heading); font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--fg1); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.blog-featured-dek { font-size: 16px; line-height: 1.6; color: var(--fg2); margin: 0 0 18px; }
.blog-featured-meta { font-size: 13px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 760px) {
  .blog-featured { grid-template-columns: 1fr; margin-bottom: 22px; }
  .blog-featured-art .blog-cover { min-height: 180px; height: 180px; }
  .blog-featured-body { padding: 24px; }
}

/* ===== BLOG POST =====
   Editorial reading layout: a narrow text measure (~700px) for comfortable
   line length, with hero + figures + infographics allowed to break out wider
   so the graphics read as the centrepiece and the prose wraps neatly around
   them. Header/byline/hero/author-card/related are rendered by
   components/blog-post-chrome.js. */

/* Reading measure — comfortable text column, end matter aligned to it. */
.post-header .container-sm,
.post-content .container-sm,
.post-end .container-sm { max-width: 800px; }

/* --- Reading progress bar (sits at the bottom edge of the sticky 52px nav) --- */
.post-progress { position: fixed; top: 52px; left: 0; right: 0; height: 3px; z-index: 51; background: transparent; pointer-events: none; }
.post-progress-bar { display: block; height: 100%; width: 0; background: var(--sg-blue); border-radius: 0 3px 3px 0; }
@media (prefers-reduced-motion: no-preference) { .post-progress-bar { transition: width 90ms linear; } }

/* --- Header --- */
.post-header { padding: 64px 0 28px; border-bottom: none; }
.post-header .post-backlink { display: inline-block; font-size: 14px; font-weight: 600; color: var(--fg3); text-decoration: none; border: none; margin-bottom: 18px; transition: color 120ms ease; }
.post-header .post-backlink:hover { color: var(--sg-blue); }
.post-header h1 { font-family: var(--font-heading); font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; letter-spacing: -0.028em; line-height: 1.1; margin: 12px 0 0; max-width: 100%; color: var(--fg1); }

/* Category pill (rendered before the H1) */
.post-cat-pill { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sg-blue); background: var(--sg-blue-light); padding: 5px 11px; border-radius: var(--radius-pill); }

/* Author byline (logo kept in black; divider above, editorial style) */
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.post-byline-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sg-off-white); border: 1px solid var(--border); color: var(--fg1); flex-shrink: 0; }
.post-byline-text { display: flex; flex-direction: column; line-height: 1.3; }
.post-byline-name { font-size: 15px; font-weight: 700; color: var(--fg1); }
.post-byline-meta { font-size: 14px; color: var(--fg3); display: flex; align-items: center; gap: 8px; }
.post-byline-meta time { color: inherit; }
/* Plain fallback meta if the byline script doesn't run */
.post-meta { font-size: 15px; color: var(--fg3); display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }

/* --- Share rail (sticky beside the article on desktop, inline row on mobile) --- */
.post-share { margin: 0 0 26px; }
.post-share-inner { display: flex; align-items: center; gap: 10px; }
.post-share-label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg3); }
.post-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--fg2); cursor: pointer; padding: 0; transition: color 120ms ease, border-color 120ms ease, background 120ms ease; }
.post-share-btn:hover { color: var(--sg-blue); border-color: var(--sg-blue); }
.post-share-btn.is-copied { color: #16A34A; border-color: #16A34A; }
@media (min-width: 1080px) {
  .post-content .container-sm { position: relative; }
  .post-share { position: absolute; top: 0; bottom: 0; left: -80px; margin: 0; }
  .post-share-inner { position: sticky; top: 100px; flex-direction: column; align-items: center; gap: 12px; }
  .post-share-label { margin-bottom: 4px; }
}

/* --- Body --- */
.post-content { padding: 36px 0 56px; }
.post-content h2 { font-family: var(--font-heading); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; color: var(--fg1); margin: 48px 0 14px; letter-spacing: -0.02em; line-height: 1.25; }
.post-content h2:first-child { margin-top: 0; }
.post-content h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--fg1); margin: 32px 0 10px; letter-spacing: -0.01em; }
.post-content p { font-size: 19px; color: var(--fg2); line-height: 1.75; margin: 0 0 22px; max-width: 100%; }
/* Lede: the first paragraph reads larger and calmer. */
.post-content .container-sm > p:first-of-type { font-size: 21px; line-height: 1.65; color: var(--fg1); margin-bottom: 26px; }
/* "Key takeaway" lead — sits OUTSIDE .container-sm in the markup, so constrain
   it to the reading column and present it as an on-brand callout instead of
   letting it run edge-to-edge. (736px = 800px column − 2 × 32px gutter.) */
.post-content > .post-lead { box-sizing: border-box; max-width: 736px; margin: 0 auto 30px; padding: 18px 22px; background: var(--sg-blue-light); border-left: 3px solid var(--sg-blue); border-radius: 10px; font-size: 18px; line-height: 1.6; color: var(--fg1); }
.post-content > .post-lead strong { font-weight: 600; color: var(--fg1); }
@media (max-width: 640px) { .post-content > .post-lead { font-size: 16.5px; padding: 16px 18px; margin-bottom: 22px; } }
.post-content strong { color: var(--fg1); font-weight: 700; }
.post-content ul, .post-content ol { font-size: 19px; color: var(--fg2); line-height: 1.7; margin: 0 0 22px; padding-left: 24px; }
.post-content li { margin: 0 0 8px; }
.post-content blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--sg-blue); font-size: 22px; line-height: 1.5; font-weight: 600; color: var(--fg1); letter-spacing: -0.01em; }
/* Inline links inside body text get an underline so they don't rely on color alone
   (WCAG 1.4.1 / Lighthouse link-in-text-block). Same for legal pages. */
.post-content p a, .post-content li a,
.legal-page p a, .legal-page li a { color: var(--sg-blue); text-decoration: underline; text-underline-offset: 2px; }
.post-content p a:hover, .post-content li a:hover,
.legal-page p a:hover, .legal-page li a:hover { color: var(--sg-blue-dark); }
.post-content, .post-content p, .post-content h2, .post-content li, .post-content figure, .post-content figcaption { overflow-wrap: anywhere; word-break: normal; }
.post-content > div, .post-content > p, .post-content > h2, .post-content > figure, .post-content > [class^="pi-"] { max-width: 100%; }

/* Figures + infographics sit centred within the reading column (the left
   gutter is reserved for the sticky share rail), with generous spacing. */
.post-content .container-sm > .post-figure,
.post-content .container-sm > figure,
.post-content .container-sm > [id^="root-infographic-"],
.post-content .container-sm > .pi-block { margin-top: 36px; margin-bottom: 36px; }

/* Post-end: "Keep reading" — related posts + previous/next */
.post-end { padding: 8px 0 16px; border-top: 1px solid var(--border); margin-top: 8px; }
.post-related-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 28px 0 18px; }
.post-related-head { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--fg1); letter-spacing: -0.015em; margin: 0; }
.post-related-all { font-size: 15px; font-weight: 600; color: var(--sg-blue); text-decoration: none; white-space: nowrap; }
.post-related-all:hover { color: var(--sg-blue-dark); }
.post-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* Related cards — clean text cards (no cover art) */
.post-related-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; text-decoration: none; transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.post-related-card:hover { border-color: var(--sg-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-related-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sg-blue); }
.post-related-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--fg1); letter-spacing: -0.01em; line-height: 1.3; }
.post-related-read { font-size: 13px; color: var(--fg3); margin-top: auto; }
/* Previous / next cards */
.post-nav { display: flex; gap: 16px; margin-top: 16px; }
.post-pn { display: flex; flex-direction: column; gap: 6px; flex: 1 1 0; min-width: 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; text-decoration: none; transition: border-color 140ms ease, box-shadow 140ms ease; }
.post-pn:hover { border-color: var(--sg-blue); box-shadow: var(--shadow-md); }
.post-pn-next { text-align: right; margin-left: auto; }
.post-pn-label { font-size: 13px; font-weight: 600; color: var(--fg3); }
.post-pn-title { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--fg1); letter-spacing: -0.01em; line-height: 1.3; }

/* Static prev/next pager (shown only if the chrome script doesn't run) */
.post-pager { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); gap: 20px; }
.post-pager-link { font-size: 16px; color: var(--sg-blue); text-decoration: none; border: none; flex: 1 1 0; min-width: 0; }
.post-pager-next { text-align: right; }

/* Post graphic placeholders */
.post-graphic { background: var(--sg-off-white); border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 40px 24px; text-align: center; color: var(--fg3); font-size: 15px; margin: 24px 0; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.post-figure { margin: 36px 0; }
.post-figure img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--sg-off-white); }
.post-figure figcaption { font-size: 15px; color: var(--fg3); line-height: 1.5; margin-top: 10px; max-width: 100%; text-align: center; }

/* ===== CASE STUDY ===== */
.case-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.case-hero h1 { font-family: var(--font-heading); font-size: 40px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; margin: 8px 0 14px; max-width: 740px; }
.case-hook { font-size: 19px; color: var(--fg2); line-height: 1.6; max-width: 700px; margin: 0 0 28px; }
.case-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; background: var(--sg-off-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; }
.case-strip-item .label { font-size: 12px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }
.case-strip-item .value { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--fg1); }

.case-section { padding: 40px 0; border-bottom: 1px solid var(--border); }
.case-section:last-of-type { border-bottom: none; }
.case-section h2, .case-section .case-section-h { font-family: var(--font-heading); font-size: 25px; font-weight: 700; color: var(--fg1); margin: 0 0 14px; letter-spacing: -0.015em; }
.case-section p { font-size: 18px; color: var(--fg2); line-height: 1.6; margin: 0 0 12px; max-width: 700px; }

.pain-list { list-style: none; padding: 0; margin: 0; }
.pain-list li { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; color: var(--fg2); line-height: 1.6; }
.pain-list li strong { color: var(--fg1); display: block; margin-bottom: 2px; }

.flow-steps { counter-reset: step; }
.flow-step { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 0; padding: 14px 0; border-bottom: 1px solid var(--border); }
.flow-step::before { content: counter(step); font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--sg-blue); }
.flow-step p { margin: 0; font-size: 16px; color: var(--fg2); line-height: 1.6; }
.flow-step p strong { color: var(--fg1); }

.rules-list { list-style: none; padding: 0; margin: 0; }
.rules-list li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--fg2); line-height: 1.6; display: flex; gap: 8px; }
.rules-list li::before { content: "✕"; color: var(--sg-red); font-weight: 700; flex-shrink: 0; }

.ba-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.ba-table th { text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.ba-table th:first-child { background: rgba(239,68,68,0.06); color: var(--sg-red); }
.ba-table th:last-child { background: rgba(16,185,129,0.06); color: var(--sg-green); }
.ba-table td { padding: 10px 14px; color: var(--fg2); border-bottom: 1px solid var(--border); line-height: 1.5; }
.ba-table td:first-child { background: rgba(239,68,68,0.02); }
.ba-table td:last-child { background: rgba(16,185,129,0.02); }

.testimonial-block { background: var(--sg-off-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin: 28px 0; }
.testimonial-block blockquote { margin: 0; font-size: 18px; color: var(--fg1); line-height: 1.6; font-style: italic; }
.testimonial-block .attr { font-size: 15px; color: var(--fg3); margin-top: 12px; font-style: normal; }

.case-bottom-line { text-align: center; padding: 40px; background: var(--sg-blue-light); border-radius: var(--radius-lg); margin: 28px 0; }
.case-bottom-line .big { font-family: var(--font-heading); font-size: 27px; font-weight: 700; color: var(--fg1); margin-bottom: 10px; }
.case-bottom-line p { font-size: 16px; color: var(--fg2); max-width: 520px; margin: 0 auto 6px; }

.img-placeholder { background: var(--sg-off-white); border: 1px dashed var(--border); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: var(--fg3); font-size: 15px; min-height: 180px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-inner, .stat-strip, .scenario-grid, .offer-contrast, .proof-grid,
  .arch-grid, .founder-grid, .case-strip, .footer-top, .footer-cols,
  .sec-grid, .int-grid, .steps2, .feature-row { grid-template-columns: 1fr !important; }
  /* Keep the blog index as a card grid on tablets + phones - users wanted blocks, not a list. */
  .blog-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; gap: 14px !important; }
  .blog-cover { height: 120px; }
  .hero-title { font-size: 40px; min-height: 6em; }
  .nav-links, .nav-right .desktop-only { display: none; }
  .nav-burger { display: inline-flex; }
  .final-cta .h2, .h2 { font-size: 29px; }
  .int-grid { grid-template-columns: repeat(3,1fr) !important; }
  .steps2 { grid-template-columns: 1fr !important; }
  .step2 { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-row.reverse { direction: ltr; }
}
@media (max-width: 768px) {
  .mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--border); display: flex; gap: 8px; }
  .mobile-cta .btn { flex: 1; justify-content: center; min-height: 44px; }
  /* Compensate for the fixed CTA so the last section content isn't hidden behind it. */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 769px) { .mobile-cta { display: none; } }

/* ===== Case studies index: vertical stack of horizontal cards ===== */
.case-list { display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }
.case-row { display: grid; grid-template-columns: 360px 1fr; align-items: stretch; }
.case-row-photo { height: 100%; min-height: 280px; }
.case-row-body { padding: 32px 36px; max-width: 720px; }

@media (max-width: 768px) {
  .case-list { gap: 20px; }
  .case-row { grid-template-columns: 1fr; }
  .case-row-photo { height: 220px; min-height: 0; }
  .case-row-body { padding: 22px 22px; max-width: 100%; }
}

/* ===== Product/About page: Events Ledger live tail ===== */
.ledger-headbar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
.ledger-cols, .ledger-row {
  display: grid;
  grid-template-columns: 110px 170px 170px 1fr 1fr 1fr;
  gap: 16px;
  padding: 12px 20px;
}
.ledger-cols {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 20px;
}
.ledger-rows { min-height: 380px; }
.ledger-row {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--font-mono);
  animation: sgLedgerIn 0.5s cubic-bezier(0.2,0.8,0.2,1) both;
}
.ledger-row .lr-time     { color: rgba(255,255,255,0.45); }
.ledger-row .lr-actor    { color: rgba(255,255,255,0.85); }
.ledger-row .lr-verb     { font-weight: 700; letter-spacing: 0.04em; }
.ledger-row .lr-entity   { color: #fff; }
.ledger-row .lr-from     { color: rgba(255,255,255,0.5); }
.ledger-row .lr-arrow    { color: rgba(255,255,255,0.3); margin: 0 6px; }
.ledger-row .lr-to       { color: #fff; background: rgba(255,255,255,0.07); padding: 1px 6px; border-radius: 3px; }
.ledger-row .lr-impact   { color: rgba(255,255,255,0.6); }
.ledger-foot {
  padding: 12px 20px; font-size: 13px; color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; gap: 24px; flex-wrap: wrap; row-gap: 6px;
  font-family: var(--font-mono);
}

/* ledger callout (Time travel) */
.ledger-callout {
  margin-top: 56px;
  background: linear-gradient(135deg, rgba(74,123,247,0.08) 0%, rgba(124,58,237,0.06) 100%);
  border: 1px solid rgba(74,123,247,0.22);
  border-radius: 16px;
  padding: 44px 40px;
  text-align: center;
}
.ledger-callout-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; color: var(--sg-blue); margin-bottom: 14px; }
.ledger-callout-h { font-family: var(--font-heading); font-size: 44px; font-weight: 700; color: #fff; margin: 0 0 14px; letter-spacing: -0.02em; line-height: 1.12; }
.ledger-callout-p { font-size: 18px; color: rgba(255,255,255,0.78); line-height: 1.6; max-width: 720px; margin: 0 auto; }

/* 6 benefit cards */
.ledger-benefits { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

@media (max-width: 768px) {
  /* Stack each event row as a card */
  .ledger-cols { display: none; }
  .ledger-row {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 4px 12px;
    padding: 14px 16px;
  }
  .ledger-row .lr-time     { grid-column: 1; grid-row: 1; font-size: 13px; }
  .ledger-row .lr-verb     { grid-column: 2; grid-row: 1; text-align: right; font-size: 13px; }
  .ledger-row .lr-actor    { grid-column: 1 / -1; grid-row: 2; font-size: 13px; opacity: 0.85; }
  .ledger-row .lr-entity   { grid-column: 1 / -1; grid-row: 3; font-weight: 700; }
  .ledger-row .lr-transition { grid-column: 1 / -1; grid-row: 4; }
  .ledger-row .lr-impact   { grid-column: 1 / -1; grid-row: 5; opacity: 0.7; font-size: 13px; padding-top: 4px; border-top: 1px dashed rgba(255,255,255,0.06); margin-top: 4px; }
  .ledger-rows { min-height: 320px; }

  .ledger-headbar { padding: 12px 14px; gap: 10px; }
  .ledger-foot { padding: 10px 14px; gap: 12px; font-size: 12px; }

  .ledger-callout { padding: 28px 22px; margin-top: 36px; }
  .ledger-callout-h { font-size: 27px; line-height: 1.2; }
  .ledger-callout-p { font-size: 14.5px; }

  .ledger-benefits { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
}

/* ===== About page: Architecture (SG Schema × Event Sourcing) ===== */
.arch-ddd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.arch-outcome-box { margin-top: 40px; padding: 32px; background: var(--sg-off-white); border: 1px solid var(--border); border-radius: 12px; }
.arch-outcome-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.arch-outcome-cell { min-width: 0; }

@media (max-width: 880px) {
  .arch-ddd-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .arch-ddd-card { padding: 22px !important; }
  .arch-outcome-box { margin-top: 28px; padding: 22px; }
  .arch-outcome-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 520px) {
  .arch-outcome-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== Home page: Problem section grid + visual containers ===== */
/* minmax(0, 1fr) (not plain 1fr) lets tracks shrink below intrinsic
   content width. Without it, an SVG's 400px viewBox becomes the track's
   min-content size on iOS Safari and the grid blows past the viewport. */
.problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.problem-grid > * { min-width: 0; }
.problem-grid > * > * { min-width: 0; max-width: 100%; }
.problem-visual { background: var(--sg-off-white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; }
.problem-visual-svg { padding: 10px; }
/* Sizing the SVG by its own intrinsic ratio (height: auto) sidesteps an
   iOS Safari bug where width:100%/height:100% on an SVG inside a parent
   that uses CSS aspect-ratio inflates the SVG to its viewBox in pixel
   units, blowing the card up to many viewport heights tall. */
.problem-visual-svg > svg { width: 100%; height: auto; display: block; }
.problem-visual-chat { min-height: 120px; padding: 14px; }
.problem-visual-chat > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }

@media (max-width: 768px) {
  .problem-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .problem-visual { padding: 14px; }
  .problem-visual-svg { padding: 12px; }
  .problem-visual-chat { min-height: 180px; padding: 18px; }
}

/* ===== POST INFOGRAPHICS (per-blog responsive content) ===== */
.pi-block { background: linear-gradient(180deg, #fff 0%, var(--sg-off-white) 100%); border: 1px solid var(--border); border-radius: 14px; padding: 32px; margin: 36px 0; }
.pi-block .pi-block { background: #fff; padding: 24px; margin: 20px 0 0; }
.pi-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--sg-blue); text-transform: uppercase; margin-bottom: 8px; }
.pi-h { font-family: var(--font-heading); font-size: 25px; font-weight: 700; color: var(--fg1); letter-spacing: -0.015em; margin: 0 0 10px; line-height: 1.25; }
.pi-sub { font-size: 16px; color: var(--fg2); line-height: 1.55; margin: 0 0 22px; max-width: 720px; }

/* Generic card grid */
.pi-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 0; }
.pi-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; position: relative; overflow: hidden; }
.pi-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sg-blue); }
.pi-card.red::before { background: var(--sg-red); }
.pi-card.gold::before { background: var(--sg-gold); }
.pi-card.green::before { background: var(--sg-green); }
.pi-card.purple::before { background: var(--sg-purple); }
.pi-card.blue::before { background: var(--sg-blue); }
.pi-card-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--sg-blue); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.pi-card-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--fg3); text-transform: uppercase; margin-bottom: 6px; }
.pi-card.red .pi-card-kicker { color: var(--sg-red); }
.pi-card.gold .pi-card-kicker { color: var(--sg-gold); }
.pi-card.green .pi-card-kicker { color: var(--sg-green); }
.pi-card.purple .pi-card-kicker { color: var(--sg-purple); }
.pi-card.blue .pi-card-kicker { color: var(--sg-blue); }
.pi-card-h { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--fg1); margin: 0 0 8px; letter-spacing: -0.005em; line-height: 1.3; }
.pi-card-b { font-size: 13.5px; color: var(--fg2); line-height: 1.55; margin: 0; }

/* Stat grid */
.pi-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 0; }
.pi-stat-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.pi-stat-kicker { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--sg-blue); text-transform: uppercase; margin-bottom: 6px; }
.pi-stat-num { font-family: var(--font-heading); font-size: 33px; font-weight: 700; color: var(--fg1); letter-spacing: -0.025em; line-height: 1; margin-bottom: 6px; }
.pi-stat-label { font-size: 12.5px; color: var(--fg1); font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.pi-stat-note { font-size: 11.5px; color: var(--fg3); line-height: 1.45; }

/* Before/After comparison */
.pi-ba { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 20px 0 0; }
.pi-ba-head, .pi-ba-row { display: grid; grid-template-columns: 1fr 1fr; }
.pi-ba-head { border-bottom: 1px solid var(--border); }
.pi-ba-h { padding: 10px 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.pi-ba-before { color: var(--sg-red); background: rgba(239,68,68,0.06); }
.pi-ba-after { color: var(--sg-green); background: rgba(16,185,129,0.06); }
.pi-ba-row { border-bottom: 1px solid var(--border); }
.pi-ba-row:last-child { border-bottom: none; }
.pi-ba-cell { padding: 14px 16px; font-size: 13.5px; color: var(--fg2); line-height: 1.55; }
.pi-ba-before-cell { background: rgba(239,68,68,0.02); border-right: 1px solid var(--border); }
.pi-ba-after-cell { background: rgba(16,185,129,0.02); }
.pi-ba-cell strong { color: var(--fg1); }
.pi-ba-cell em { color: var(--sg-blue); font-style: normal; font-weight: 600; }

/* Bottom-line callout */
.pi-bottom { background: var(--sg-blue-light); border-radius: 12px; padding: 28px 32px; margin: 28px 0 8px; text-align: center; }
.pi-bottom-big { font-family: var(--font-heading); font-size: 23px; font-weight: 700; color: var(--fg1); letter-spacing: -0.015em; margin-bottom: 8px; line-height: 1.3; }
.pi-bottom p { font-size: 16px; color: var(--fg2); line-height: 1.6; max-width: 640px; margin: 0 auto; }

/* Inline quote */
.pi-quote { margin: 20px 0 0; padding: 18px 22px; border-left: 3px solid var(--sg-blue); background: #fff; border-radius: 0 8px 8px 0; }
.pi-quote blockquote { margin: 0; font-size: 14.5px; color: var(--fg1); line-height: 1.6; font-style: italic; }
.pi-quote-attr { font-size: 14px; color: var(--fg3); margin-top: 8px; font-style: normal; font-weight: 600; letter-spacing: 0.02em; }

/* Process flow (chips with arrows) */
.pi-flow { display: flex; flex-wrap: wrap; gap: 0; margin: 20px 0 0; align-items: stretch; }
.pi-flow-node { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; flex: 1 1 140px; min-width: 140px; position: relative; margin-right: 22px; margin-bottom: 12px; }
.pi-flow-node:last-child { margin-right: 0; }
.pi-flow-h { font-family: var(--font-heading); font-size: 12.5px; font-weight: 700; color: var(--fg1); margin-bottom: 3px; }
.pi-flow-b { font-size: 11.5px; color: var(--fg3); line-height: 1.4; }
.pi-flow-arrow { position: absolute; right: -18px; top: 50%; transform: translateY(-50%); color: var(--fg3); font-size: 18px; font-weight: 700; }

/* Cost stack (Blog 9) */
.pi-stack { margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pi-stack-row { display: grid; grid-template-columns: minmax(140px, 28%) 1fr; gap: 14px; align-items: center; }
.pi-stack-bar { height: 28px; border-radius: 4px; color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 14px; padding: 0 10px; display: flex; align-items: center; justify-content: flex-end; min-width: 60px; }
.pi-stack-body { }
.pi-stack-label { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--fg1); margin-bottom: 2px; }
.pi-stack-detail { font-size: 14px; color: var(--fg3); line-height: 1.5; }

/* Checklist (Blog 11) */
.pi-checklist { margin: 18px 0 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; }
.pi-checklist-h { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--fg1); margin-bottom: 10px; letter-spacing: -0.005em; }
.pi-checklist-item { padding: 9px 0 9px 26px; font-size: 13.5px; color: var(--fg2); line-height: 1.5; border-bottom: 1px dashed var(--border); position: relative; }
.pi-checklist-item:last-child { border-bottom: none; }
.pi-checklist-item::before { content: '✓'; position: absolute; left: 0; top: 9px; color: var(--sg-blue); font-weight: 700; font-size: 16px; }

/* Phase compression (Blog 14) */
.pi-phases { margin: 16px 0 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.pi-phase-row { display: grid; grid-template-columns: 130px 100px 24px 110px 1fr; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); align-items: center; }
.pi-phase-row:last-child { border-bottom: none; }
.pi-phase-name { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--fg1); }
.pi-phase-old { font-size: 12.5px; color: var(--fg3); text-decoration: line-through; }
.pi-phase-arrow { color: var(--sg-blue); font-weight: 700; text-align: center; }
.pi-phase-neu { font-family: var(--font-heading); font-size: 13.5px; font-weight: 700; color: var(--sg-blue); }
.pi-phase-detail { font-size: 12.5px; color: var(--fg2); line-height: 1.5; }

/* Stages (Blog 15) */
.pi-stages { margin: 16px 0 0; }
.pi-stage-row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: start; }
.pi-stage-row:last-child { border-bottom: none; }
.pi-stage-n { font-family: var(--font-heading); font-size: 27px; font-weight: 700; color: var(--sg-blue); letter-spacing: -0.02em; line-height: 1; }
.pi-stage-h { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--fg1); margin-bottom: 4px; }
.pi-stage-b { font-size: 15px; color: var(--fg2); line-height: 1.55; }

/* Interactive event-ledger demo (Blog 1) */
.pi-evd { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 16px 0 0; }
.pi-evd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pi-evd-col { background: var(--sg-off-white); border: 1px solid var(--border); border-radius: 10px; padding: 16px; min-height: 320px; display: flex; flex-direction: column; }
.pi-evd-col-h { margin-bottom: 14px; }
.pi-evd-tag { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; }
.pi-evd-tag-red { color: var(--sg-red); background: rgba(239,68,68,0.12); }
.pi-evd-tag-blue { color: var(--sg-blue); background: rgba(74,123,247,0.14); }
.pi-evd-col h4 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--fg1); margin: 8px 0 0; letter-spacing: -0.005em; }

/* state side */
.pi-evd-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.pi-evd-card-id { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--fg1); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.pi-evd-card-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 15px; }
.pi-evd-card-k { color: var(--fg3); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.pi-evd-card-v { color: var(--fg1); font-weight: 600; font-family: var(--font-mono); font-size: 13.5px; }
.pi-evd-card-row-live .pi-evd-card-v { padding: 3px 10px; border-radius: 4px; background: rgba(239,68,68,0.08); color: var(--sg-red); }
.pi-evd-card-num { display: inline-block; animation: pi-evd-flash 700ms ease; }
.pi-evd-card-status { animation: pi-evd-fade 500ms ease; }
@keyframes pi-evd-flash { 0% { background: rgba(239,68,68,0.4); transform: scale(1.08); color: #fff; } 100% { background: rgba(239,68,68,0.08); transform: scale(1); color: var(--sg-red); } }
@keyframes pi-evd-fade { from { opacity: 0.4; } to { opacity: 1; } }
.pi-evd-warn { font-size: 11.5px; color: var(--sg-red); line-height: 1.5; margin-top: 12px; padding: 10px 12px; background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.15); border-radius: 6px; }
.pi-evd-warn strong { color: var(--sg-red); }

/* events side */
.pi-evd-list { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px; flex: 1; overflow: hidden; }
.pi-evd-empty { font-size: 14px; color: var(--fg3); padding: 50px 12px; text-align: center; font-style: italic; }
.pi-evd-item { background: var(--sg-blue-light); border-left: 3px solid var(--sg-blue); border-radius: 0 6px 6px 0; padding: 9px 12px; margin-bottom: 6px; font-family: var(--font-mono); animation: pi-evd-slide 420ms cubic-bezier(0.2,0.8,0.2,1); }
.pi-evd-item:last-child { margin-bottom: 0; }
@keyframes pi-evd-slide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
.pi-evd-item-head { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--fg3); margin-bottom: 4px; letter-spacing: 0.04em; }
.pi-evd-item-num { font-weight: 700; color: var(--sg-blue); }
.pi-evd-item-action { font-size: 12.5px; font-weight: 700; color: var(--fg1); margin-bottom: 3px; line-height: 1.35; }
.pi-evd-item-detail { font-size: 13px; color: var(--fg2); margin-bottom: 3px; line-height: 1.45; }
.pi-evd-item-actor { font-size: 12px; color: var(--fg3); letter-spacing: 0.04em; }
.pi-evd-foot { font-size: 13px; color: var(--fg3); margin-top: 10px; text-align: right; font-family: var(--font-mono); letter-spacing: 0.02em; }

.pi-evd-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 12px; }
.pi-evd-progress { display: flex; gap: 4px; flex: 1; }
.pi-evd-progress-step { height: 4px; flex: 1; background: rgba(0,0,0,0.08); border-radius: 2px; transition: background 320ms; }
.pi-evd-progress-step.done { background: var(--sg-blue); }
.pi-evd-replay { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: 11.5px; color: var(--fg2); cursor: pointer; font-family: var(--font-body); transition: all 200ms; }
.pi-evd-replay:hover { border-color: var(--sg-blue); color: var(--sg-blue); }

@media (max-width: 760px) {
  .pi-evd-cols { grid-template-columns: 1fr; }
  .pi-evd-col { min-height: auto; }
}

/* Interactive chat demo (Blog 7) */
.pi-chat { background: #0F1419; border-radius: 12px; padding: 22px; margin: 16px 0 0; color: #E5E7EB; font-family: var(--font-mono); }
.pi-chat-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.pi-chat-tier { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; transition: background 240ms ease, border-color 240ms ease, transform 240ms ease; }
.pi-chat-tier.active { background: rgba(74,123,247,0.15); border-color: var(--sg-blue); transform: translateY(-1px); }
.pi-chat-tier-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); flex-shrink: 0; transition: background 240ms ease; }
.pi-chat-tier.active .pi-chat-tier-dot { background: var(--sg-blue); animation: pi-chat-pulse 1.5s ease-out infinite; }
@keyframes pi-chat-pulse { 0% { box-shadow: 0 0 0 0 rgba(74,123,247,0.55); } 70% { box-shadow: 0 0 0 10px rgba(74,123,247,0); } 100% { box-shadow: 0 0 0 0 rgba(74,123,247,0); } }
.pi-chat-tier-name { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -0.005em; }
.pi-chat-tier-sub { font-size: 9.5px; color: rgba(255,255,255,0.55); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }

.pi-chat-window { background: #0A0E13; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 14px 16px; min-height: 260px; }
.pi-chat-msg, .pi-chat-step { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-size: 15px; line-height: 1.55; }
.pi-chat-msg-tag, .pi-chat-step-tag { flex-shrink: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #6B7280; text-transform: uppercase; letter-spacing: 0.14em; padding: 4px 8px; border-radius: 3px; background: rgba(255,255,255,0.05); margin-top: 1px; min-width: 48px; text-align: center; }
.pi-chat-msg-body, .pi-chat-step-body { word-break: break-word; min-width: 0; flex: 1; }
.pi-chat-msg-user .pi-chat-msg-tag { color: var(--sg-blue); background: rgba(74,123,247,0.18); }
.pi-chat-msg-user .pi-chat-msg-body { color: #F3F4F6; }

.pi-chat-cursor { display: inline-block; color: var(--sg-blue); margin-left: 1px; animation: pi-chat-cursor 0.9s steps(1, end) infinite; }
@keyframes pi-chat-cursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.pi-chat-step { opacity: 0; transform: translateX(-8px); transition: opacity 320ms ease, transform 320ms ease; }
.pi-chat-step.show { opacity: 1; transform: translateX(0); }
.pi-chat-step code { font-family: var(--font-mono); font-size: 12.5px; color: #93C5FD; background: transparent; padding: 0; }

.pi-chat-route .pi-chat-step-tag { color: var(--sg-purple); background: rgba(124,58,237,0.22); }
.pi-chat-route .pi-chat-step-body { color: #DDD6FE; }
.pi-chat-tool .pi-chat-step-tag { color: var(--sg-gold); background: rgba(245,158,11,0.20); }
.pi-chat-sql .pi-chat-step-tag { color: #93C5FD; background: rgba(96,165,250,0.18); }

.pi-chat-msg-bot { opacity: 0; transform: translateY(8px); transition: opacity 380ms ease, transform 380ms ease; }
.pi-chat-msg-bot.show { opacity: 1; transform: translateY(0); }
.pi-chat-msg-bot .pi-chat-msg-tag { color: var(--sg-green); background: rgba(16,185,129,0.20); }
.pi-chat-msg-bot .pi-chat-msg-body { color: #fff; font-weight: 600; }

.pi-chat-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.pi-chat-dot { width: 32px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.15); border: none; cursor: pointer; padding: 0; transition: background 220ms ease, transform 220ms ease; }
.pi-chat-dot:hover { background: rgba(255,255,255,0.3); }
.pi-chat-dot.active { background: var(--sg-blue); }

@media (max-width: 760px) {
  .pi-chat { padding: 16px; }
  .pi-chat-tiers { grid-template-columns: 1fr; gap: 6px; }
  .pi-chat-window { padding: 12px; min-height: 320px; }
  .pi-chat-msg, .pi-chat-step { gap: 8px; font-size: 12.5px; }
  .pi-chat-step code { font-size: 11.5px; word-break: break-all; }
}

/* ===== Blog 2: Domain morph ===== */
.pi-dom { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 16px 0 0; }
.pi-dom-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pi-dom-tab { background: var(--sg-off-white); border: 1px solid var(--border); border-radius: 6px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--fg2); cursor: pointer; font-family: var(--font-body); transition: all 200ms; }
.pi-dom-tab:hover { border-color: var(--fg3); }
.pi-dom-tab.active.pi-dom-blue   { background: var(--sg-blue);   color: #fff; border-color: var(--sg-blue); }
.pi-dom-tab.active.pi-dom-purple { background: var(--sg-purple); color: #fff; border-color: var(--sg-purple); }
.pi-dom-tab.active.pi-dom-green  { background: var(--sg-green);  color: #fff; border-color: var(--sg-green); }
.pi-dom-stage { background: var(--sg-off-white); border-radius: 10px; padding: 24px; text-align: center; min-height: 320px; }
.pi-dom-word { font-family: var(--font-heading); font-size: 44px; font-weight: 700; color: var(--fg1); letter-spacing: -0.02em; }
.pi-dom-arrow { font-size: 13px; color: var(--fg3); letter-spacing: 0.14em; text-transform: uppercase; margin: 6px 0 14px; }
.pi-dom-entity { font-family: var(--font-heading); font-size: 25px; font-weight: 700; letter-spacing: -0.015em; padding: 10px 22px; border-radius: 8px; display: inline-block; animation: pi-fade-up 380ms ease; }
.pi-dom-entity.pi-dom-blue   { color: var(--sg-blue);   background: rgba(74,123,247,0.10); }
.pi-dom-entity.pi-dom-purple { color: var(--sg-purple); background: rgba(124,58,237,0.10); }
.pi-dom-entity.pi-dom-green  { color: var(--sg-green);  background: rgba(16,185,129,0.10); }
@keyframes pi-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.pi-dom-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 18px; }
.pi-dom-field { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; text-align: left; opacity: 0; animation: pi-fade-up 380ms ease forwards; }
.pi-dom-fk { font-size: 9.5px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 3px; }
.pi-dom-fv { font-family: var(--font-mono); font-size: 14px; color: var(--fg1); font-weight: 600; }
.pi-dom-rule { font-size: 12.5px; padding: 10px 16px; border-radius: 6px; display: inline-block; animation: pi-fade-up 480ms ease; }
.pi-dom-rule-blue   { background: rgba(74,123,247,0.08); color: var(--sg-blue); }
.pi-dom-rule-purple { background: rgba(124,58,237,0.08); color: var(--sg-purple); }
.pi-dom-rule-green  { background: rgba(16,185,129,0.08); color: var(--sg-green); }
.pi-dom-rule-tag { font-weight: 700; letter-spacing: 0.1em; margin-right: 6px; font-size: 12px; }

/* ===== Blog 3: Entity group ===== */
.pi-agg { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 16px 0 0; }
.pi-agg-stage { position: relative; height: 280px; background: var(--sg-off-white); border-radius: 10px; overflow: hidden; }
.pi-agg-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pi-agg-root { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; border: 2px solid var(--border); border-radius: 10px; padding: 14px 18px; text-align: center; min-width: 110px; transition: all 360ms ease; z-index: 2; }
.pi-agg-root.pi-agg-pulse { border-color: var(--sg-blue); animation: pi-agg-pulse 1.2s ease-in-out infinite; }
@keyframes pi-agg-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(74,123,247,0.4); } 50% { box-shadow: 0 0 0 14px rgba(74,123,247,0); } }
.pi-agg-root.pi-agg-green { border-color: var(--sg-green); background: rgba(16,185,129,0.06); }
.pi-agg-root-tag { font-size: 11px; font-weight: 700; color: var(--sg-blue); letter-spacing: 0.16em; margin-bottom: 4px; }
.pi-agg-root-id { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--fg1); }
.pi-agg-member { position: absolute; background: #fff; border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 10px; min-width: 90px; text-align: center; transition: all 360ms ease; z-index: 2; }
.pi-agg-member.pi-agg-tl { left: 33%; top: 35%; transform: translate(-50%, -50%); }
.pi-agg-member.pi-agg-tr { left: 67%; top: 35%; transform: translate(-50%, -50%); }
.pi-agg-member.pi-agg-bl { left: 33%; top: 69%; transform: translate(-50%, -50%); }
.pi-agg-member-name { font-size: 13px; font-weight: 600; color: var(--fg1); }
.pi-agg-member-qty { font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; color: var(--fg3); margin-top: 2px; }
.pi-agg-green { border-color: var(--sg-green); background: rgba(16,185,129,0.08); }
.pi-agg-green .pi-agg-member-qty { color: var(--sg-green); }
.pi-agg-reject { border-color: var(--sg-red); background: rgba(239,68,68,0.08); animation: pi-agg-shake 360ms ease; }
.pi-agg-reject::after { content: '✗'; position: absolute; top: -8px; right: -8px; background: var(--sg-red); color: #fff; width: 20px; height: 20px; border-radius: 50%; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@keyframes pi-agg-shake {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(calc(-50% - 6px), -50%); }
  75% { transform: translate(calc(-50% + 6px), -50%); }
}
.pi-agg-controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pi-agg-phase { display: flex; gap: 6px; }
.pi-agg-phase-pill { width: 26px; height: 26px; border-radius: 6px; background: rgba(0,0,0,0.06); color: var(--fg3); font-family: var(--font-heading); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all 240ms; }
.pi-agg-phase-pill.done { background: rgba(74,123,247,0.15); color: var(--sg-blue); }
.pi-agg-phase-pill.active { background: var(--sg-blue); color: #fff; }
.pi-agg-label { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--fg1); }
.pi-agg-note { font-size: 12.5px; color: var(--fg2); margin-top: 10px; padding: 10px 12px; background: var(--sg-blue-light); border-radius: 6px; line-height: 1.5; }

/* ===== Blog 4: Multi-tenant ===== */
.pi-tenant { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin: 16px 0 0; }
.pi-tenant-platform { background: var(--sg-blue); color: #fff; border-radius: 10px; padding: 18px; text-align: center; }
.pi-tenant-platform-tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; opacity: 0.7; margin-bottom: 4px; }
.pi-tenant-platform-h { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.pi-tenant-pipes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; height: 36px; padding: 0 12px; }
.pi-tenant-pipe { width: 2px; background: rgba(0,0,0,0.1); margin: 0 auto; transition: background 240ms; position: relative; overflow: hidden; }
.pi-tenant-pipe.active { background: var(--sg-blue); }
.pi-tenant-pipe.active::before { content: ''; position: absolute; top: -10px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--sg-blue); animation: pi-tenant-flow 1.4s linear infinite; }
@keyframes pi-tenant-flow { from { transform: translateY(0); } to { transform: translateY(48px); } }
.pi-tenant-dbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pi-tenant-db { background: var(--sg-off-white); border: 2px solid var(--border); border-radius: 10px; padding: 14px 10px; text-align: center; transition: all 280ms; }
.pi-tenant-db.locked { opacity: 0.55; }
.pi-tenant-db.active { background: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(74,123,247,0.18); }
.pi-tenant-db-blue.active   { border-color: var(--sg-blue); }
.pi-tenant-db-purple.active { border-color: var(--sg-purple); }
.pi-tenant-db-green.active  { border-color: var(--sg-green); }
.pi-tenant-db-gold.active   { border-color: var(--sg-gold); }
.pi-tenant-db-icon { font-size: 25px; margin-bottom: 4px; }
.pi-tenant-db-name { font-size: 11.5px; font-weight: 700; color: var(--fg1); }
.pi-tenant-db-state { font-family: var(--font-mono); font-size: 9.5px; color: var(--fg3); margin-top: 4px; letter-spacing: 0.04em; }
.pi-tenant-db.active .pi-tenant-db-state { color: var(--sg-blue); }
.pi-tenant-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; background: var(--sg-blue-light); border-radius: 8px; font-size: 12.5px; color: var(--fg2); }
.pi-tenant-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--sg-blue); animation: pi-agg-pulse 1.5s ease-out infinite; flex-shrink: 0; }

/* ===== Blog 5: Rule add ===== */
.pi-rule { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 16px 0 0; }
.pi-rule-request { background: var(--sg-blue-light); border-left: 3px solid var(--sg-blue); border-radius: 0 8px 8px 0; padding: 12px 16px; margin-bottom: 14px; }
.pi-rule-request-tag { font-family: var(--font-mono); font-size: 9.5px; color: var(--sg-blue); letter-spacing: 0.14em; font-weight: 700; margin-bottom: 4px; }
.pi-rule-request-body { font-size: 13.5px; color: var(--fg1); font-style: italic; line-height: 1.5; }
.pi-rule-table { background: var(--sg-off-white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.pi-rule-table-h, .pi-rule-row { display: grid; grid-template-columns: 1.4fr 1fr 80px; gap: 10px; padding: 10px 14px; align-items: center; }
.pi-rule-table-h { background: #fff; font-size: 9.5px; font-weight: 700; color: var(--fg3); letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.pi-rule-row { font-size: 12.5px; border-bottom: 1px solid var(--border); }
.pi-rule-row:last-child { border-bottom: none; }
.pi-rule-row-new { background: rgba(16,185,129,0.10); animation: pi-rule-slide 500ms ease; }
@keyframes pi-rule-slide { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
.pi-rule-cond code { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg1); background: rgba(0,0,0,0.03); padding: 2px 6px; border-radius: 3px; }
.pi-rule-then { color: var(--fg2); }
.pi-rule-status { font-size: 13px; color: var(--sg-green); font-weight: 700; }
.pi-rule-row-new .pi-rule-cond code { background: rgba(16,185,129,0.18); color: var(--sg-green); }
.pi-rule-foot { margin-top: 14px; }
.pi-rule-progress { display: flex; gap: 10px; }
.pi-rule-progress-step { flex: 1; background: var(--sg-off-white); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; opacity: 0.5; transition: all 320ms; }
.pi-rule-progress-step.done { background: #fff; border-color: var(--sg-blue); opacity: 1; }
.pi-rule-progress-t { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--sg-blue); font-weight: 700; }
.pi-rule-progress-l { display: block; font-size: 13px; color: var(--fg2); margin-top: 2px; line-height: 1.3; }
.pi-rule-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pi-rule-compare-card { padding: 12px 14px; border-radius: 8px; }
.pi-rule-compare-bad { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.2); }
.pi-rule-compare-good { background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.2); }
.pi-rule-compare-h { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.pi-rule-compare-bad .pi-rule-compare-h { color: var(--sg-red); }
.pi-rule-compare-good .pi-rule-compare-h { color: var(--sg-green); }
.pi-rule-compare-v { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--fg1); }

/* ===== Blog 6: Module vs Domain ===== */
.pi-mvd { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 16px 0 0; }
.pi-mvd-request { background: var(--sg-blue-light); border-radius: 8px; padding: 12px 16px; margin-bottom: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pi-mvd-request-tag { font-size: 9.5px; font-weight: 700; color: var(--sg-blue); letter-spacing: 0.14em; padding: 3px 8px; background: rgba(74,123,247,0.18); border-radius: 3px; }
.pi-mvd-request span:last-child { font-size: 15px; color: var(--fg1); font-style: italic; }
.pi-mvd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pi-mvd-col { border-radius: 10px; padding: 16px; }
.pi-mvd-col-bad { background: rgba(239,68,68,0.04); border: 1px solid rgba(239,68,68,0.18); }
.pi-mvd-col-good { background: rgba(16,185,129,0.04); border: 1px solid rgba(16,185,129,0.18); }
.pi-mvd-col-h { font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.pi-mvd-col-bad .pi-mvd-col-h { color: var(--sg-red); }
.pi-mvd-col-good .pi-mvd-col-h { color: var(--sg-green); }
.pi-mvd-step { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 8px 0; opacity: 0; transform: translateX(-10px); transition: all 360ms ease; }
.pi-mvd-step.show { opacity: 1; transform: translateX(0); }
.pi-mvd-step-n { width: 22px; height: 22px; background: rgba(0,0,0,0.06); color: var(--fg2); border-radius: 50%; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.pi-mvd-col-bad .pi-mvd-step-n { background: rgba(239,68,68,0.15); color: var(--sg-red); }
.pi-mvd-col-good .pi-mvd-step-n { background: rgba(16,185,129,0.15); color: var(--sg-green); }
.pi-mvd-step-t { font-size: 12.5px; font-weight: 600; color: var(--fg1); }
.pi-mvd-step-s { font-size: 13px; color: var(--fg3); margin-top: 1px; line-height: 1.4; }
.pi-mvd-result { margin-top: 12px; padding: 10px 14px; border-radius: 6px; font-family: var(--font-heading); font-weight: 700; font-size: 16px; text-align: center; }
.pi-mvd-result-bad { background: rgba(239,68,68,0.12); color: var(--sg-red); }
.pi-mvd-result-good { background: rgba(16,185,129,0.12); color: var(--sg-green); }

/* ===== Blog 8: Form vs chat ===== */
.pi-fvc { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 16px 0 0; }
.pi-fvc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pi-fvc-col { border-radius: 10px; padding: 14px; min-height: 280px; }
.pi-fvc-form { background: rgba(239,68,68,0.04); border: 1px solid rgba(239,68,68,0.16); }
.pi-fvc-chat { background: rgba(74,123,247,0.04); border: 1px solid rgba(74,123,247,0.16); }
.pi-fvc-col-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pi-fvc-tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; }
.pi-fvc-tag-red { color: var(--sg-red); background: rgba(239,68,68,0.15); }
.pi-fvc-tag-blue { color: var(--sg-blue); background: rgba(74,123,247,0.16); }
.pi-fvc-time { font-family: var(--font-mono); font-size: 14px; color: var(--fg2); font-weight: 700; }
.pi-fvc-form-trail { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.pi-fvc-form-crumb { font-size: 9.5px; padding: 3px 6px; border-radius: 3px; background: rgba(0,0,0,0.05); color: var(--fg3); transition: all 240ms; }
.pi-fvc-form-crumb.visited { background: rgba(239,68,68,0.10); color: var(--sg-red); }
.pi-fvc-form-crumb.active { background: var(--sg-red); color: #fff; }
.pi-fvc-form-screen { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 16px; min-height: 100px; }
.pi-fvc-form-label { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--fg1); margin-bottom: 6px; }
.pi-fvc-form-body { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg3); }
.pi-fvc-chat-bubble { background: #fff; border-radius: 14px; padding: 10px 14px; margin-bottom: 8px; font-size: 15px; line-height: 1.5; }
.pi-fvc-chat-user { background: var(--sg-blue-light); color: var(--fg1); }
.pi-fvc-chat-bot { background: rgba(16,185,129,0.10); color: var(--fg1); opacity: 0; transition: opacity 380ms; }
.pi-fvc-chat-bot.show { opacity: 1; }
.pi-fvc-cursor { display: inline-block; color: var(--sg-blue); animation: pi-chat-cursor 0.8s steps(1, end) infinite; }
.pi-fvc-foot { margin-top: 12px; text-align: center; font-size: 14px; color: var(--fg2); }

/* ===== Blog 9: Cost stack ===== */
.pi-cost { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 16px 0 0; }
.pi-cost-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
.pi-cost-bars { display: flex; align-items: flex-end; gap: 8px; height: 240px; padding: 12px; background: var(--sg-off-white); border-radius: 10px; }
.pi-cost-bar { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 6px 6px 0 0; padding: 8px 4px; color: #fff; opacity: 0; transform: translateY(20px); transition: all 480ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.pi-cost-bar.show { opacity: 1; transform: translateY(0); }
.pi-cost-blue   { background: var(--sg-blue); }
.pi-cost-purple { background: var(--sg-purple); }
.pi-cost-gold   { background: var(--sg-gold); }
.pi-cost-red    { background: var(--sg-red); }
.pi-cost-green  { background: var(--sg-green); }
.pi-cost-bar-label { font-size: 9.5px; font-weight: 700; line-height: 1.2; text-align: center; padding: 0 2px; }
.pi-cost-bar-pct { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-top: 4px; }
.pi-cost-totals { background: var(--sg-off-white); border-radius: 10px; padding: 18px; align-self: stretch; display: flex; flex-direction: column; }
.pi-cost-total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--fg2); }
.pi-cost-total-row:last-of-type { border-bottom: none; }
.pi-cost-mono { font-family: var(--font-heading); font-weight: 700; color: var(--fg1); font-size: 21px; }
.pi-cost-cost { color: var(--sg-red); }
.pi-cost-total-margin { background: rgba(16,185,129,0.10); padding: 12px; border-radius: 6px; margin-top: 6px; }
.pi-cost-margin { color: var(--sg-green); font-size: 25px; }
.pi-cost-meter { height: 6px; background: rgba(0,0,0,0.08); border-radius: 3px; margin-top: 14px; overflow: hidden; }
.pi-cost-meter-fill { height: 100%; background: linear-gradient(90deg, var(--sg-blue), var(--sg-red)); transition: width 600ms ease; }
.pi-cost-foot { font-size: 11.5px; color: var(--fg3); margin-top: 8px; font-style: italic; }

/* ===== Blog 10: Floor filter ===== */
.pi-floor { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 16px 0 0; }
.pi-floor-q { background: var(--sg-blue-light); border-radius: 10px; padding: 18px 20px; text-align: center; margin-bottom: 14px; }
.pi-floor-q-tag { font-size: 9.5px; font-weight: 700; color: var(--sg-blue); letter-spacing: 0.16em; }
.pi-floor-q-text { font-family: var(--font-heading); font-size: 25px; font-weight: 700; color: var(--fg1); letter-spacing: -0.015em; margin-top: 6px; }
.pi-floor-stage { background: var(--sg-off-white); border-radius: 10px; padding: 22px; min-height: 130px; animation: pi-fade-up 380ms ease; display: grid; grid-template-columns: 1fr 100px; gap: 14px; align-items: center; }
.pi-floor-idea { font-size: 16px; color: var(--fg1); line-height: 1.5; font-weight: 500; }
.pi-floor-stamp { font-family: var(--font-heading); font-size: 18px; font-weight: 700; padding: 10px 14px; border-radius: 8px; text-align: center; }
.pi-floor-stamp-yes { color: var(--sg-green); background: rgba(16,185,129,0.12); border: 2px solid var(--sg-green); }
.pi-floor-stamp-no  { color: var(--sg-red); background: rgba(239,68,68,0.10); border: 2px solid var(--sg-red); transform: rotate(-3deg); }
.pi-floor-reason { grid-column: 1 / -1; font-size: 12.5px; color: var(--fg2); padding-top: 10px; border-top: 1px dashed var(--border); }
.pi-floor-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.pi-floor-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.12); transition: all 240ms; }
.pi-floor-dot.active { background: var(--sg-blue); transform: scale(1.3); }

/* ===== Blog 11: Mid-market squeeze ===== */
.pi-mm { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin: 16px 0 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pi-mm-tier { width: 100%; max-width: 540px; padding: 18px 22px; border-radius: 10px; text-align: center; transition: all 320ms ease; }
.pi-mm-top { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); }
.pi-mm-bot { background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.22); }
.pi-mm-mid { background: var(--sg-blue); color: #fff; padding: 24px 22px; }
.pi-mm-tier.active { transform: scale(1.02); }
.pi-mm-top.active  { box-shadow: 0 0 0 3px rgba(245,158,11,0.25); }
.pi-mm-bot.active  { box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
.pi-mm-tier-label { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; }
.pi-mm-top .pi-mm-tier-label { color: var(--sg-gold); }
.pi-mm-bot .pi-mm-tier-label { color: var(--sg-green); }
.pi-mm-here { background: #fff; color: var(--sg-blue) !important; padding: 4px 10px; border-radius: 4px; display: inline-block; }
.pi-mm-tier-h { font-family: var(--font-heading); font-size: 19px; font-weight: 700; margin: 6px 0 4px; letter-spacing: -0.01em; }
.pi-mm-top .pi-mm-tier-h, .pi-mm-bot .pi-mm-tier-h { color: var(--fg1); }
.pi-mm-tier-sub { font-size: 12.5px; opacity: 0.85; line-height: 1.5; }
.pi-mm-needs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.pi-mm-needs span { background: rgba(255,255,255,0.18); padding: 4px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.pi-mm-arrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--fg3); padding: 4px 0; }

/* ===== Blog 12: Spreadsheet chaos ===== */
.pi-ss { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 16px 0 0; }
.pi-ss-stage { position: relative; height: 320px; background: var(--sg-off-white); border-radius: 10px; overflow: hidden; }
.pi-ss-tab { position: absolute; width: 110px; height: 78px; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 6px 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); transition: left 1s ease, top 1s ease, transform 1s ease; animation: pi-ss-glitch 4s infinite; }
@keyframes pi-ss-glitch { 0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,0.08); } 50% { box-shadow: 0 2px 6px rgba(239,68,68,0.25); } }
.pi-ss-tab-name { font-family: var(--font-mono); font-size: 11px; color: var(--fg2); margin-bottom: 4px; font-weight: 700; }
.pi-ss-tab-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 1px; height: 50px; background: var(--border); padding: 1px; }
.pi-ss-tab-grid span { background: #fafafa; }
.pi-ss-replace { position: absolute; inset: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fff; border: 2px solid var(--sg-blue); border-radius: 10px; animation: pi-fade-up 600ms ease; }
.pi-ss-replace-h { font-family: var(--font-heading); font-size: 29px; font-weight: 700; color: var(--sg-blue); }
.pi-ss-replace-sub { font-size: 15px; color: var(--fg2); margin: 6px 0 16px; }
.pi-ss-replace-stats { display: flex; gap: 28px; }
.pi-ss-replace-stats > div { font-size: 14px; color: var(--fg3); }
.pi-ss-replace-stats strong { display: block; font-family: var(--font-heading); font-size: 29px; color: var(--sg-blue); font-weight: 700; }
.pi-ss-caption { text-align: center; font-size: 12.5px; color: var(--fg2); margin-top: 12px; font-style: italic; }

/* ===== Blog 13: Change-order counter ===== */
.pi-co { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 16px 0 0; }
.pi-co-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pi-co-col { border-radius: 10px; padding: 18px; min-height: 320px; }
.pi-co-col-bad { background: rgba(239,68,68,0.04); border: 1px solid rgba(239,68,68,0.18); }
.pi-co-col-good { background: rgba(16,185,129,0.04); border: 1px solid rgba(16,185,129,0.18); }
.pi-co-col-h { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.pi-co-col-bad .pi-co-col-h { color: var(--sg-red); }
.pi-co-col-good .pi-co-col-h { color: var(--sg-green); }
.pi-co-counter { font-family: var(--font-heading); font-size: 44px; font-weight: 700; letter-spacing: -0.025em; line-height: 1; margin-bottom: 4px; }
.pi-co-col-bad .pi-co-counter { color: var(--sg-red); }
.pi-co-counter-zero { color: var(--sg-green); }
.pi-co-counter-sub { font-size: 11.5px; color: var(--fg3); margin-bottom: 14px; }
.pi-co-events { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto; }
.pi-co-event { display: grid; grid-template-columns: 70px 1fr 70px; gap: 8px; padding: 6px 0; font-size: 11.5px; border-bottom: 1px dashed rgba(0,0,0,0.08); animation: pi-rule-slide 360ms ease; }
.pi-co-event-yr { font-family: var(--font-mono); color: var(--fg3); font-size: 12px; }
.pi-co-event-l { color: var(--fg2); }
.pi-co-event-c { color: var(--sg-red); font-weight: 700; text-align: right; font-family: var(--font-mono); }
.pi-co-zero-note { font-size: 12.5px; color: var(--fg2); line-height: 1.55; padding-top: 14px; border-top: 1px dashed rgba(0,0,0,0.1); }
.pi-co-zero-note strong { color: var(--sg-green); }

/* ===== Blog 14: Phase compression ===== */
.pi-pc { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 16px 0 0; }
.pi-pc-h { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin-bottom: 18px; }
.pi-pc-old { font-family: var(--font-heading); font-size: 25px; font-weight: 700; color: var(--fg3); text-decoration: line-through; }
.pi-pc-arrow { font-size: 14px; color: var(--sg-blue); font-weight: 700; letter-spacing: 0.14em; }
.pi-pc-neu { font-family: var(--font-heading); font-size: 33px; font-weight: 700; color: var(--sg-blue); letter-spacing: -0.02em; }
.pi-pc-bars { display: flex; flex-direction: column; gap: 10px; }
.pi-pc-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; }
.pi-pc-name { font-family: var(--font-heading); font-size: 12.5px; font-weight: 700; color: var(--fg1); }
.pi-pc-track { background: var(--sg-off-white); border-radius: 4px; height: 28px; overflow: hidden; }
.pi-pc-fill { height: 100%; background: linear-gradient(90deg, var(--sg-blue), var(--sg-purple)); display: flex; align-items: center; padding: 0 10px; color: #fff; font-family: var(--font-mono); font-size: 13px; font-weight: 700; transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1); white-space: nowrap; }
.pi-pc-foot { text-align: center; font-size: 12.5px; color: var(--fg2); margin-top: 16px; font-style: italic; }

/* ===== Blog 15: ERP decay ===== */
.pi-decay { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 16px 0 0; }
.pi-decay-trail { display: flex; flex-direction: column; gap: 8px; }
.pi-decay-step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 12px 14px; background: var(--sg-off-white); border-left: 3px solid var(--border); border-radius: 0 6px 6px 0; opacity: 0.45; transition: all 360ms ease; }
.pi-decay-step.lit { opacity: 1; }
.pi-decay-step.current { transform: translateX(4px); box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.pi-decay-gold.lit { border-left-color: var(--sg-gold); background: rgba(245,158,11,0.06); }
.pi-decay-red.lit  { border-left-color: var(--sg-red); background: rgba(239,68,68,0.06); }
.pi-decay-step-n { font-family: var(--font-heading); font-size: 25px; font-weight: 700; color: var(--fg3); line-height: 1; }
.pi-decay-gold.lit .pi-decay-step-n { color: var(--sg-gold); }
.pi-decay-red.lit  .pi-decay-step-n { color: var(--sg-red); }
.pi-decay-step-h { font-family: var(--font-heading); font-size: 13.5px; font-weight: 700; color: var(--fg1); margin-bottom: 2px; }
.pi-decay-step-d { font-size: 14px; color: var(--fg2); line-height: 1.5; }
.pi-decay-meter { margin-top: 14px; padding: 10px 14px; background: var(--sg-off-white); border-radius: 8px; display: flex; align-items: center; gap: 12px; }
.pi-decay-meter-l { font-size: 13px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; flex-shrink: 0; }
.pi-decay-meter-track { flex: 1; height: 8px; background: rgba(0,0,0,0.08); border-radius: 4px; overflow: hidden; }
.pi-decay-meter-fill { height: 100%; background: linear-gradient(90deg, var(--sg-red), var(--sg-blue)); transition: width 700ms ease; }

/* ===== Blog 16: Warehouse click ===== */
.pi-wm { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 16px 0 0; }
.pi-wm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pi-wm-col { border-radius: 10px; padding: 14px; min-height: 360px; }
.pi-wm-col-bad { background: rgba(239,68,68,0.04); border: 1px solid rgba(239,68,68,0.16); }
.pi-wm-col-good { background: rgba(74,123,247,0.04); border: 1px solid rgba(74,123,247,0.16); }
.pi-wm-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pi-wm-tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; padding: 3px 8px; border-radius: 3px; }
.pi-wm-tag-red { color: var(--sg-red); background: rgba(239,68,68,0.15); }
.pi-wm-tag-blue { color: var(--sg-blue); background: rgba(74,123,247,0.16); }
.pi-wm-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg2); font-weight: 700; }
.pi-wm-clicks { display: flex; flex-direction: column; gap: 4px; }
.pi-wm-click { padding: 6px 8px; border-radius: 4px; font-size: 11.5px; color: var(--fg3); background: rgba(255,255,255,0.5); transition: all 200ms; }
.pi-wm-click.done { color: var(--fg2); background: #fff; }
.pi-wm-click.active { background: var(--sg-red); color: #fff; transform: translateX(4px); }
.pi-wm-click-n { font-family: var(--font-mono); font-weight: 700; margin-right: 8px; opacity: 0.6; }
.pi-wm-phone { background: #fff; border-radius: 12px; padding: 14px; min-height: 200px; }
.pi-wm-phone-bubble { padding: 10px 14px; border-radius: 14px; margin-bottom: 8px; font-size: 15px; line-height: 1.5; }
.pi-wm-phone-user { background: var(--sg-blue-light); }
.pi-wm-phone-bot { background: rgba(16,185,129,0.10); opacity: 0; transition: opacity 380ms; }
.pi-wm-phone-bot.show { opacity: 1; }
.pi-wm-cursor { display: inline-block; color: var(--sg-blue); animation: pi-chat-cursor 0.8s steps(1, end) infinite; }
.pi-wm-foot { text-align: center; margin-top: 12px; font-size: 12.5px; color: var(--fg2); font-style: italic; }

/* ===== Blog 17: Best practice stack ===== */
.pi-bp { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 16px 0 0; }
.pi-bp-stack { display: flex; flex-direction: column-reverse; gap: 4px; min-height: 280px; justify-content: flex-start; align-items: stretch; padding: 16px; background: var(--sg-off-white); border-radius: 10px; }
.pi-bp-base { background: var(--fg2); color: #fff; padding: 12px 16px; border-radius: 6px; }
.pi-bp-base-h { font-family: var(--font-heading); font-size: 15px; font-weight: 700; }
.pi-bp-base-s { font-family: var(--font-mono); font-size: 10.5px; opacity: 0.85; margin-top: 2px; }
.pi-bp-block { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: rgba(239,68,68,0.85); color: #fff; border-radius: 6px; animation: pi-bp-slide 460ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes pi-bp-slide { from { opacity: 0; transform: translateY(20px) scale(0.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
.pi-bp-block-name { font-size: 12.5px; font-weight: 600; }
.pi-bp-block-cost { font-family: var(--font-heading); font-size: 16px; font-weight: 700; }
.pi-bp-total { margin-top: 14px; text-align: center; padding: 14px; background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.2); border-radius: 8px; }
.pi-bp-total-l { font-size: 13px; color: var(--sg-red); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.pi-bp-total-v { font-family: var(--font-heading); font-size: 37px; font-weight: 700; color: var(--sg-red); letter-spacing: -0.02em; line-height: 1; margin: 4px 0; }
.pi-bp-total-c { font-size: 11.5px; color: var(--fg2); }

@media (max-width: 760px) {
  .pi-dom-fields { grid-template-columns: 1fr 1fr; }
  .pi-dom-stage { padding: 18px; min-height: auto; }
  .pi-dom-word { font-size: 35px; }
  .pi-dom-entity { font-size: 21px; }
  .pi-agg-stage { height: 240px; }
  .pi-agg-member { min-width: 78px; padding: 6px 8px; }
  .pi-agg-member-name { font-size: 12px; }
  .pi-agg-member-qty { font-size: 13px; }
  .pi-tenant-pipes, .pi-tenant-dbs { grid-template-columns: 1fr 1fr; }
  .pi-rule-table-h, .pi-rule-row { grid-template-columns: 1fr; gap: 4px; }
  .pi-rule-status { display: none; }
  .pi-rule-progress { flex-wrap: wrap; }
  .pi-rule-progress-step { flex: 1 1 45%; }
  .pi-mvd-cols { grid-template-columns: 1fr; }
  .pi-fvc-cols, .pi-co-cols, .pi-wm-cols { grid-template-columns: 1fr; }
  .pi-cost-stage { grid-template-columns: 1fr; }
  .pi-cost-bars { height: 180px; }
  .pi-floor-stage { grid-template-columns: 1fr; }
  .pi-floor-stamp { justify-self: start; }
  .pi-pc-row { grid-template-columns: 110px 1fr; }
}

/* Responsive */
@media (max-width: 760px) {
  .pi-block { padding: 22px; margin: 26px 0; }
  .pi-cards { grid-template-columns: 1fr; }
  .pi-stat-grid { grid-template-columns: 1fr 1fr; }
  .pi-ba-head, .pi-ba-row { grid-template-columns: 1fr; }
  .pi-ba-before-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .pi-flow-node { margin-right: 0; flex: 1 1 100%; }
  .pi-flow-arrow { display: none; }
  .pi-stack-row { grid-template-columns: 1fr; gap: 6px; }
  .pi-stack-bar { width: auto !important; max-width: 100%; }
  .pi-phase-row { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .pi-phase-arrow, .pi-phase-old { display: none; }
  .pi-phase-detail { grid-column: 1 / -1; margin-top: 4px; }
  .pi-bottom { padding: 22px; }
  .pi-bottom-big { font-size: 19px; }
  .post-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container-sm { padding: 0 18px; }
  .post-header { padding: 32px 0 22px; }
  .post-header h1 { font-size: 28px; line-height: 1.18; }
  .post-content { padding: 26px 0 44px; }
  .post-content h2 { font-size: 22px; margin: 34px 0 10px; }
  .post-content p { font-size: 18px; line-height: 1.7; margin: 0 0 18px; }
  .post-content .container-sm > p:first-of-type { font-size: 19px; }
  .post-content ul, .post-content ol { font-size: 18px; }
  .post-content blockquote { font-size: 19px; margin: 24px 0; padding-left: 18px; }
  .post-figure { margin: 24px 0; }
  .post-figure figcaption { font-size: 14px; }
  .post-related-head-row { margin: 22px 0 14px; }
  .post-related-head { font-size: 21px; }
  .post-related-grid { grid-template-columns: 1fr; }
  .post-nav { flex-direction: column; gap: 12px; }
  .post-pn-next { text-align: left; margin-left: 0; }
  .post-pager { flex-direction: column; gap: 14px; padding-top: 18px; margin-top: 28px; }
  .post-pager-next { text-align: left; }
  .pi-block { padding: 18px 14px; margin: 22px 0; }
  .pi-h { font-size: 21px; line-height: 1.25; }
  .pi-sub { font-size: 15px; }
  .pi-card { padding: 14px 16px; }
  .pi-card-h { font-size: 16px; }
  .pi-card-b { font-size: 12.5px; }
  .pi-stat-card { padding: 12px; }
  .pi-stat-num { font-size: 25px; }
  .pi-stat-label { font-size: 11.5px; }
  .pi-bottom { padding: 18px 16px; }
  .pi-bottom-big { font-size: 18px; line-height: 1.3; }
  .pi-bottom p { font-size: 15px; }
}
@media (max-width: 480px) {
  .pi-stat-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr !important; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-legal a:first-child { margin-left: 0; }
  /* Responsive hero h1 - cap font-size at ~32px below 480px so 3-line headlines fit */
  .hero-title { font-size: 32px !important; line-height: 1.15 !important; min-height: 0 !important; }
  .hero { padding: 64px 0 56px !important; min-height: auto !important; }
  .hero-stat-box { padding: 22px !important; }
  .hero-stat-box > div > span:first-child,
  .hero-stat-box [style*="fontSize:80"] { font-size: 56px !important; }
  /* Mobile sticky CTA tightened on narrow phones */
  .mobile-cta { padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) !important; }
  .mobile-cta .btn { min-height: 44px !important; max-height: 48px !important; padding: 10px 14px !important; font-size: 14px !important; }
}

/* Reserve space for lazy-mounted blog infographics so they don't shift layout
   when React + PostInfographics finish loading. Approx min-height of the
   rendered figure. Tune if a specific post overflows. */
#root-infographic-mid { min-height: 360px; }
/* The end mount is always the short blue closing bar (.pi-bottom), so it sizes
   to content - no fixed reservation, which would leave a gap before the CTA band. */
#root-infographic-end { min-height: 0; }
@media (max-width: 640px) {
  #root-infographic-mid { min-height: 480px; }
}
