/* ===========================================================================
   LeadPilot — marketing site design system
   ---------------------------------------------------------------------------
   v3 (2026-05-03). One source of truth for the entire site. Do NOT inline
   per-page CSS overrides — extend tokens here so the whole site stays
   consistent.

   Design philosophy:
   - Light, clean, scannable (Linear / Stripe / Notion / ClickUp influence)
   - Indigo primary, cyan accent, semantic greens/oranges/reds, neutral grayscale.
   - Inter for UI body, Instrument Serif for editorial headers.
     JetBrains Mono for code/metric numerals.
   - Typography does the hierarchy work.
   ========================================================================== */

:root {
  --bg:           #ffffff;
  --bg-soft:      #f7f8fa;
  --bg-tint:      #f3f4f9;
  --bg-dark:      #0a0c12;
  --bg-darker:    #06080d;

  --border:       #e8ebf0;
  --border-soft:  #f1f3f6;
  --border-strong:#d6dae3;

  --text:         #0d1220;
  --text-muted:   #5e6478;
  --text-faint:   #8b91a4;
  --text-on-dark: #f4f5f9;

  --accent:       #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft:  #eef2ff;
  --accent-2:     #06b6d4;
  --accent-2-soft:#cffafe;

  --green:        #15803d;
  --green-soft:   #dcfce7;
  --orange:       #b45309;
  --orange-soft:  #fef3c7;
  --red:          #b91c1c;
  --red-soft:     #fee2e2;
  --purple:       #7c3aed;
  --purple-soft:  #f3e8ff;

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --font-serif: 'Instrument Serif', 'New York', Georgia, "Times New Roman", serif;
  --font-mono:  'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-xs:  0 1px 2px rgba(13,18,32,0.04);
  --shadow-sm:  0 2px 6px rgba(13,18,32,0.05);
  --shadow:     0 6px 24px rgba(13,18,32,0.06);
  --shadow-lg:  0 24px 48px rgba(13,18,32,0.08);
  --shadow-xl:  0 32px 80px rgba(13,18,32,0.12);

  --container:    1200px;
  --container-lg: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.tabnums { font-variant-numeric: tabular-nums; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: var(--container-lg); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tight { padding: 48px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } .section-sm { padding: 48px 0; } }

.section-bg-soft  { background: var(--bg-soft); }
.section-bg-tint  { background: var(--bg-tint); }
.section-bg-dark  { background: var(--bg-dark); color: var(--text-on-dark); }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--container-lg); margin: 0 auto; padding: 0 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.012em;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav-item {
  position: relative;
  padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); transition: all .12s;
}
.nav-item:hover { color: var(--text); background: var(--bg-soft); }
.nav-item.active { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: 12px; padding-left: 16px; border-left: 1px solid var(--border); }

.nav-group { position: relative; }
.nav-group-trigger { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; transition: all .12s; cursor: pointer; }
.nav-group-trigger:hover { color: var(--text); background: var(--bg-soft); }
.nav-group-trigger svg { width: 12px; height: 12px; transition: transform .15s; }
.nav-group:hover .nav-group-trigger svg { transform: rotate(180deg); }
.nav-mega {
  display: none;
  position: absolute; top: calc(100% + 4px); left: -16px;
  min-width: 540px; padding: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.nav-group:hover .nav-mega { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-mega-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px;
  border-radius: 10px; transition: background .12s;
}
.nav-mega-item:hover { background: var(--bg-soft); }
.nav-mega-icon {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px;
  background: var(--accent-soft); display: grid; place-items: center;
}
.nav-mega-icon svg { width: 18px; height: 18px; color: var(--accent); }
.nav-mega-title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.nav-mega-sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }

@media (max-width: 880px) {
  .nav .nav-group, .nav .nav-item { display: none; }
  .nav-cta { border-left: 0; padding-left: 0; margin-left: 0; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
  font-size: 14px; transition: all .14s; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary  { background: var(--text); color: #fff; }
.btn-primary:hover { background: #1d2438; transform: translateY(-1px); }
.btn-accent   { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost    { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); background: var(--bg-soft); }
.btn-link     { background: transparent; padding: 0; color: var(--accent); border-radius: 0; }
.btn-link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.h1 { font-size: 56px; line-height: 1.04; letter-spacing: -0.025em; font-weight: 700; }
.h2 { font-size: 40px; line-height: 1.1;  letter-spacing: -0.02em;  font-weight: 700; }
.h3 { font-size: 28px; line-height: 1.18; letter-spacing: -0.018em; font-weight: 700; }
.h4 { font-size: 20px; line-height: 1.25; letter-spacing: -0.012em; font-weight: 600; }
.h5 { font-size: 16px; line-height: 1.35; font-weight: 600; }

@media (max-width: 720px) {
  .h1 { font-size: 38px; }
  .h2 { font-size: 28px; }
  .h3 { font-size: 22px; }
}
.lead { font-size: 19px; line-height: 1.55; color: var(--text-muted); }
.lead-lg { font-size: 21px; line-height: 1.55; color: var(--text-muted); }

.title-lg-serif {
  font-family: var(--font-serif), 'Inter', sans-serif;
  font-size: 64px; line-height: 1; font-weight: 400; letter-spacing: -0.02em;
}
@media (max-width: 720px) { .title-lg-serif { font-size: 44px; } }

/* hero */
.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(79,70,229,0.08), transparent 60%),
    radial-gradient(40% 30% at 80% 20%, rgba(6,182,212,0.05), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-meta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 24px;
}
.hero-meta strong { color: var(--text); font-weight: 600; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust {
  margin-top: 36px; display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--text-muted);
}
.hero-trust .stack { display: inline-flex; }
.hero-trust .stack span {
  width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 2px solid #fff; margin-left: -8px; display: inline-block;
}
.hero-trust .stack span:first-child { margin-left: 0; }

/* surfaces & cards */
.surface { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.surface-soft  { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); }
.surface-elev  { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { transform: translateY(-2px); }

.card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 20px; height: 20px; color: var(--accent); }
.card-icon.green { background: var(--green-soft); }
.card-icon.green svg { color: var(--green); }
.card-icon.orange { background: var(--orange-soft); }
.card-icon.orange svg { color: var(--orange); }
.card-icon.purple { background: var(--purple-soft); }
.card-icon.purple svg { color: var(--purple); }
.card-icon.cyan { background: var(--accent-2-soft); }
.card-icon.cyan svg { color: var(--accent-2); }

/* feature grid */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } }
.fgrid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .fgrid-2 { grid-template-columns: 1fr; } }
.fgrid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 960px) { .fgrid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .fgrid-4 { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; transition: all .15s;
}
.feature-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.feature-card .h4 { margin-top: 4px; }
.feature-card p { color: var(--text-muted); margin-top: 8px; font-size: 14.5px; line-height: 1.55; }
.feature-card .arrow { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-text { max-width: 480px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.split-reverse > :first-child { order: 2; }
@media (max-width: 880px) { .split-reverse > :first-child { order: 0; } }

/* stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #fff; overflow: hidden;
}
.stats > div { padding: 24px 28px; border-right: 1px solid var(--border); }
.stats > div:last-child { border-right: 0; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 32px; font-weight: 700; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .stats > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* bullets — uses absolute-positioned marker so the text node stays a
   single inline flow. Earlier version used `display:grid` which caused
   anonymous text nodes after `<b>` to wrap into a 22px column (one
   word per line). */
.bullets { display: block; }
.bullets li {
  list-style: none;
  position: relative;
  padding: 0 0 0 30px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.55;
}
.bullets li:last-child { margin-bottom: 0; }
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2315803d'><path fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4L8.4 15l-4.1-4.1a1 1 0 011.4-1.4l2.7 2.7L15.3 5.3a1 1 0 011.4 0z' clip-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-size: 18px 18px;
}
.bullets.crisp li { font-size: 14.5px; color: var(--text-muted); }
.bullets.crisp li b { color: var(--text); font-weight: 600; }

/* quote */
.quote { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 40px; }
.quote-text { font-size: 22px; line-height: 1.45; letter-spacing: -0.01em; color: var(--text); }
.quote-foot { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.quote-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #fff; font-weight: 700; }
.quote-name { font-weight: 600; }
.quote-role { font-size: 13px; color: var(--text-muted); }

/* logo strip */
.logo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; align-items: center; opacity: 0.65; }
.logo-strip .logo { font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em; color: var(--text-muted); text-align: center; padding: 8px 0; }
@media (max-width: 880px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }

/* comparison table */
.comparison {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.comparison th, .comparison td { text-align: left; padding: 16px 22px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.comparison thead th { background: var(--bg-soft); font-weight: 600; color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.comparison tbody tr:last-child td { border-bottom: 0; }
.comparison .yes { color: var(--green); font-weight: 600; }
.comparison .no  { color: var(--text-faint); }
.comparison .partial { color: var(--orange); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; position: relative; }
.plan.featured { border: 2px solid var(--text); box-shadow: var(--shadow-lg); }
.plan-tag { position: absolute; top: -12px; left: 24px; background: var(--text); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.plan h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.plan-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; }
.plan-price .num { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-price .unit { color: var(--text-muted); font-size: 14px; }
.plan-features { display: block; margin-bottom: 24px; }
.plan-features li {
  list-style: none;
  position: relative;
  padding: 0 0 0 26px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.plan-features li:last-child { margin-bottom: 0; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234f46e5'><path fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4L8.4 15l-4.1-4.1a1 1 0 011.4-1.4l2.7 2.7L15.3 5.3a1 1 0 011.4 0z' clip-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

/* faq */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item summary {
  font-weight: 600; font-size: 16px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; font-size: 18px; color: var(--text-muted); transition: transform .15s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding-top: 12px; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* callout */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft); padding: 20px 24px; border-radius: 4px 12px 12px 4px;
  font-size: 15px; line-height: 1.6;
}
.callout strong { color: var(--text); }

/* posts / case studies */
.post-card {
  display: flex; flex-direction: column; height: 100%; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-cover { aspect-ratio: 16/9; background: var(--bg-soft); position: relative; overflow: hidden; }
.post-cover svg { width: 100%; height: 100%; }
.post-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post-cat { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.post-title { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 8px; }
.post-excerpt { color: var(--text-muted); font-size: 14px; line-height: 1.55; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-muted); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }

.cs-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0 80px; }
@media (max-width: 880px) { .cs-hero { grid-template-columns: 1fr; gap: 32px; } }

.cs-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--text-muted); }
.cs-meta strong { color: var(--text); font-weight: 600; }

.cs-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 32px 0;
  overflow: hidden; background: #fff;
}
.cs-stats > div { padding: 28px 24px; border-right: 1px solid var(--border); }
.cs-stats > div:last-child { border-right: 0; }
.cs-stats .num { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cs-stats .num small { font-size: 18px; font-weight: 600; color: var(--text-muted); }
.cs-stats .lbl { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
@media (max-width: 720px) {
  .cs-stats { grid-template-columns: 1fr; }
  .cs-stats > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .cs-stats > div:last-child { border-bottom: 0; }
}

.prose { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.7; color: var(--text); }
.prose p { margin: 0 0 22px; }
.prose h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.018em; font-weight: 700; margin: 48px 0 18px; }
.prose h3 { font-size: 21px; line-height: 1.3; font-weight: 600; margin: 36px 0 14px; }
.prose ul, .prose ol { margin: 0 0 22px 24px; padding: 0; }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; margin: 28px 0; font-size: 19px; line-height: 1.55; color: var(--text-muted); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border-soft); }

/* tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 999px; border: 1px solid var(--border); }
.tab { padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: all .15s; }
.tab.active { background: #fff; color: var(--text); box-shadow: var(--shadow-xs); }

/* badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.orange { background: var(--orange-soft); color: var(--orange); }
.badge.purple { background: var(--purple-soft); color: var(--purple); }
.badge.gray { background: var(--bg-tint); color: var(--text-muted); }
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* footer */
.footer { background: var(--bg-darker); color: #c8ccd6; padding: 64px 0 40px; }
.footer-inner { max-width: var(--container-lg); margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 48px; border-bottom: 1px solid #1a1f2c;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; }
.footer p.mini { color: #8b91a4; font-size: 13.5px; line-height: 1.6; margin-top: 14px; max-width: 280px; }
.footer h4 { font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: #c8ccd6; font-size: 13.5px; }
.footer ul a:hover { color: #fff; }
.footer-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 12.5px; color: #8b91a4; }
.footer-bot a { color: #c8ccd6; }
.footer-bot a:hover { color: #fff; }

/* product mockup */
.product-frame {
  position: relative;
  border: 1px solid var(--border-strong); border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.product-frame-chrome {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.product-frame-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.product-frame-chrome .url { margin-left: 12px; font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); }

/* utils */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }
.mxauto { margin-left: auto; margin-right: auto; }

.divider { height: 1px; background: var(--border); margin: 64px 0; }

.kicker {
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.07em;
}

/* ===========================================================================
   v3.1 (2026-05-03) — visual polish layer.
   Animations, gradient orbs, glow effects, glassmorphism, marquee,
   animated waveforms. All additive — does not break existing styles.
   ========================================================================= */

/* — gradient text — */
.text-gradient {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 60%, #a855f7 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* — glow buttons — */
.btn-accent, .btn-primary { position: relative; overflow: hidden; }
.btn-glow { position: relative; box-shadow: 0 8px 30px -8px rgba(79,70,229,0.45), 0 0 0 1px rgba(79,70,229,0.15); }
.btn-glow:hover {
  box-shadow: 0 14px 40px -8px rgba(79,70,229,0.55), 0 0 0 1px rgba(79,70,229,0.25);
}
.btn-glow::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s ease;
}
.btn-glow:hover::after { transform: translateX(120%); }

/* — animated mesh-gradient hero background — */
.hero-mesh {
  position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 18% 12%, rgba(79,70,229,0.18), transparent 60%),
    radial-gradient(ellipse 50% 35% at 82% 18%, rgba(6,182,212,0.16), transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 90%, rgba(168,85,247,0.10), transparent 60%);
  filter: blur(0px);
  animation: meshDrift 18s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, 1%, 0) scale(1.05); }
  100% { transform: translate3d(-2%, -1%, 0) scale(1.02); }
}

/* — floating gradient orbs — */
.orb {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(60px); opacity: 0.55; will-change: transform;
}
.orb-indigo  { background: radial-gradient(circle, #4f46e5 0%, transparent 70%); }
.orb-cyan    { background: radial-gradient(circle, #06b6d4 0%, transparent 70%); }
.orb-purple  { background: radial-gradient(circle, #a855f7 0%, transparent 70%); }
.orb-pink    { background: radial-gradient(circle, #ec4899 0%, transparent 70%); }
.orb-float   { animation: orbFloat 14s ease-in-out infinite alternate; }
.orb-float-2 { animation: orbFloat 18s ease-in-out infinite alternate-reverse; }
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(20px, -30px) scale(1.1); }
  100% { transform: translate(-15px, 20px) scale(0.95); }
}

/* — subtle dotted grid background — */
.grid-bg {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(79,70,229,0.08) 1px, transparent 0);
  background-size: 22px 22px;
}
.grid-bg-dark {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
  background-size: 22px 22px;
}

/* — glass card — */
.glass {
  background: rgba(255,255,255,0.6);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 18px 60px -20px rgba(13,18,32,0.18);
}
.glass-dark {
  background: rgba(13,18,32,0.55);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* — gradient-border featured card — */
.gradient-border {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, var(--accent), var(--accent-2), #a855f7) border-box;
  border: 2px solid transparent;
}

/* — pulse dot (live indicator) — */
.pulse-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); display: inline-block;
}
.pulse-dot::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green); opacity: 0.5;
  animation: pulseRing 1.6s cubic-bezier(0.215,0.61,0.355,1) infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.5; }
  80%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* — animated equalizer bars (voice activity) — */
.eq-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq-bars span {
  display: block; width: 3px; background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px; animation: eqBounce 1.2s ease-in-out infinite;
}
.eq-bars span:nth-child(1) { height: 30%;  animation-delay: -1.2s; }
.eq-bars span:nth-child(2) { height: 70%;  animation-delay: -1.0s; }
.eq-bars span:nth-child(3) { height: 100%; animation-delay: -0.8s; }
.eq-bars span:nth-child(4) { height: 60%;  animation-delay: -0.6s; }
.eq-bars span:nth-child(5) { height: 90%;  animation-delay: -0.4s; }
.eq-bars span:nth-child(6) { height: 40%;  animation-delay: -0.2s; }
.eq-bars span:nth-child(7) { height: 75%;  animation-delay: 0s; }
@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

/* — typing-dots indicator — */
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: typingDot 1.2s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* — animated underline link — */
.under-link {
  position: relative; padding-bottom: 2px; display: inline-block;
}
.under-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left center; transition: transform .25s ease;
}
.under-link:hover::after { transform: scaleX(1); }

/* — card hover lift — */
.card-fancy, .feature-card-fancy, .post-card-fancy {
  transition: transform .25s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow .25s ease, border-color .25s ease;
}
.card-fancy:hover, .feature-card-fancy:hover, .post-card-fancy:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -24px rgba(13,18,32,0.18),
              0 0 0 1px var(--border-strong);
}

/* — feature card with gradient icon halo — */
.feature-card-fancy { position: relative; overflow: hidden; }
.feature-card-fancy .card-icon {
  position: relative; box-shadow: 0 6px 18px -8px var(--accent);
}
.feature-card-fancy .card-icon::before {
  content: ""; position: absolute; inset: -10px; border-radius: 18px;
  background: radial-gradient(circle, rgba(79,70,229,0.18), transparent 70%);
  z-index: -1;
}
.feature-card-fancy::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.06), transparent 70%);
  pointer-events: none; transition: transform .4s ease;
}
.feature-card-fancy:hover::before { transform: scale(1.4); }

/* — marquee logo strip — */
.marquee {
  position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marqueeRoll 40s linear infinite;
}
.marquee-track .logo { white-space: nowrap; }
@keyframes marqueeRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* — number counters / metric tiles — */
.metric-tile {
  position: relative; padding: 22px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
  border: 1px solid var(--border); overflow: hidden;
}
.metric-tile::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0.3); transform-origin: left;
}

/* — soft glow ring around featured plan — */
.plan.featured {
  position: relative;
  background: linear-gradient(180deg, #fff, #fafbff);
}
.plan.featured::before {
  content: ""; position: absolute; inset: -2px; border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), #a855f7);
  z-index: -1; filter: blur(14px); opacity: 0.35;
}

/* — code-style chip — */
.chip-code {
  display: inline-flex; align-items: center; gap: 6px;
  background: #0d1220; color: #c8ccd6; font-family: var(--font-mono);
  font-size: 12px; padding: 5px 10px; border-radius: 6px;
  border: 1px solid #1d2438;
}
.chip-code .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* — language pill cluster (floating around hero) — */
.lang-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.85); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--text);
  box-shadow: 0 8px 22px -10px rgba(13,18,32,0.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lang-pill .flag { font-size: 14px; }

/* — fade-in-up reveal (uses scroll trigger via class toggling, fallback on load) — */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform .7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in, body.loaded .reveal { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }
.reveal.delay-5 { transition-delay: .5s; }

/* — phone illustration container with subtle tilt — */
.phone-frame {
  position: relative; transform: perspective(1400px) rotateY(-3deg) rotateX(2deg);
  transition: transform .6s ease;
}
.phone-frame:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }

/* — link with arrow that slides — */
.arrow-link { display: inline-flex; align-items: center; gap: 6px; }
.arrow-link .arrow { transition: transform .25s ease; display: inline-block; }
.arrow-link:hover .arrow { transform: translateX(4px); }

/* — section divider with gradient — */
.divider-gradient {
  height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 0;
}

/* — scroll indicator — */
.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: var(--text-muted); letter-spacing: 0.08em;
  text-transform: uppercase; display: flex; align-items: center; gap: 8px;
  opacity: 0.7;
}
.scroll-cue .line {
  width: 1px; height: 32px; background: linear-gradient(180deg, var(--text-muted), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue .line::before {
  content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
  background: var(--accent); animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(0); }
  100% { transform: translateY(48px); }
}

/* — gradient ring around primary CTA on rest — */
.cta-ring {
  position: relative; display: inline-block;
}
.cta-ring::before {
  content: ""; position: absolute; inset: -4px; border-radius: 999px;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), #a855f7, var(--accent));
  filter: blur(8px); opacity: 0.4; z-index: -1;
  animation: ringSpin 6s linear infinite;
}
@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

/* — feature-row with side gradient accent — */
.accent-rail {
  position: relative; padding-left: 18px;
}
.accent-rail::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

/* — keyboard kbd-style chip — */
.kbd {
  display: inline-block; padding: 1px 7px; min-width: 20px;
  background: #fff; border: 1px solid var(--border-strong);
  border-bottom-width: 2px; border-radius: 5px;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5;
  color: var(--text);
}

/* — featured plan tag with gradient — */
.plan-tag {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  box-shadow: 0 6px 18px -6px rgba(79,70,229,0.45);
}

/* — dark hero variant — */
.hero-dark {
  background: radial-gradient(ellipse at top, #1a1f3a 0%, #0a0c12 60%);
  color: var(--text-on-dark);
}
.hero-dark .h1, .hero-dark .h2, .hero-dark .lead, .hero-dark .lead-lg { color: #f4f5f9; }

/* — reduce motion safety — */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ───────────────────────────────────────────────────────────────────
   Blog content blocks (added 2026-05-04 for skill-compliant posts)
   ─────────────────────────────────────────────────────────────────── */

/* numbered step list */
.prose .steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 14px;
}
.prose .steps-list > li {
  counter-increment: step;
  position: relative;
  padding: 18px 22px 18px 64px;
  background: var(--surface-soft, #f7f8fb);
  border: 1px solid var(--border, #e5e7eb);
  border-left: 3px solid var(--accent, #4f46e5);
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text, #0d1220);
}
.prose .steps-list > li::before {
  content: counter(step);
  position: absolute;
  top: 14px;
  left: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, #4f46e5), var(--accent-2, #06b6d4));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px -4px rgba(79,70,229,0.35);
}

/* PRO TIP callout */
.prose .callout {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 14px;
  margin: 24px 0;
  border: 1px solid var(--border, #e5e7eb);
  background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(6,182,212,0.05));
  border-left: 4px solid var(--accent, #4f46e5);
}
.prose .callout-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1.2;
}
.prose .callout-body {
  flex: 1;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text, #0d1220);
}
.prose .callout-tip strong { color: var(--accent, #4f46e5); }

/* Data table */
.prose .table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  box-shadow: 0 1px 0 rgba(13,18,32,0.02);
}
.prose .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.prose .data-table thead th {
  background: linear-gradient(135deg, #f7f8fb, #eef0f6);
  text-align: left;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text, #0d1220);
  border-bottom: 1px solid var(--border-strong, #d1d5db);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prose .data-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  color: var(--text, #0d1220);
  vertical-align: top;
}
.prose .data-table tbody tr:last-child td { border-bottom: 0; }
.prose .data-table tbody tr:nth-child(even) { background: rgba(247,248,251,0.5); }
.prose .data-table tbody tr:hover { background: rgba(79,70,229,0.04); }

/* FAQ accordion */
.prose .faq-block {
  margin: 24px 0;
  display: grid;
  gap: 10px;
}
.prose .faq-item {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: all 0.2s ease;
}
.prose .faq-item[open] {
  border-color: var(--accent, #4f46e5);
  box-shadow: 0 6px 24px -10px rgba(79,70,229,0.15);
}
.prose .faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text, #0d1220);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.prose .faq-item summary::-webkit-details-marker { display: none; }
.prose .faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent, #4f46e5);
  transition: transform 0.2s ease;
  font-weight: 300;
}
.prose .faq-item[open] summary::after {
  content: "−";
  transform: rotate(0deg);
}
.prose .faq-item p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--text-muted, #4b5563);
  font-size: 15px;
  line-height: 1.7;
}

/* ─── blog pagination (added 2026-05-04) ─── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 8px;
  flex-wrap: wrap;
}
.pagination .pg-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  color: var(--text, #0d1220);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}
.pagination .pg-nav:hover {
  border-color: var(--accent, #4f46e5);
  color: var(--accent, #4f46e5);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(79,70,229,0.25);
}
.pagination .pg-nav-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination .pg-nums {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination .pg-num {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted, #4b5563);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.pagination .pg-num:hover {
  background: var(--surface-soft, #f7f8fb);
  color: var(--text, #0d1220);
}
.pagination .pg-num-active {
  background: linear-gradient(135deg, var(--accent, #4f46e5), var(--accent-2, #06b6d4));
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(79,70,229,0.45);
  cursor: default;
}
.pagination .pg-num-active:hover {
  background: linear-gradient(135deg, var(--accent, #4f46e5), var(--accent-2, #06b6d4));
  color: #fff;
}
@media (max-width: 600px) {
  .pagination { flex-direction: column; }
  .pagination .pg-nav { width: 100%; justify-content: center; }
}

/* — defensive: if JS is disabled, .reveal elements still appear instead of
     staying invisible. Pages WITH JS must add `body.loaded` or apply `.in`
     to .reveal elements via IntersectionObserver — see index.html footer
     script for the canonical pattern. */
@media (scripting: none) {
  .reveal { opacity: 1 !important; transform: none !important; }
}
