/* ============================================================
   RegFin Design System — Tokens
   The single source of truth for color, type, spacing, motion.
   ============================================================ */

:root {
  /* ---------- BRAND CORE ---------- */
  --rf-cyan-300:    #67e8f9;
  --rf-cyan-400:    #22d3ee;
  --rf-cyan-500:    #06b6d4;
  --rf-cyan-600:    #0891b2;
  --rf-blue-400:    #60a5fa;
  --rf-blue-500:    #3b82f6;
  --rf-blue-600:    #2563eb;
  --rf-blue-700:    #1d4ed8;
  --rf-blue-900:    #1e3a8a;

  --rf-glow-cyan:   #09fbf7;
  --rf-glow-blue:   #167aee;

  /* ---------- NEUTRALS ---------- */
  --rf-ink-950:     #020617;
  --rf-ink-900:     #0f172a;
  --rf-ink-850:     #131c30;
  --rf-ink-800:     #1e293b;
  --rf-ink-700:     #334155;
  --rf-ink-600:     #475569;
  --rf-ink-500:     #64748b;
  --rf-ink-400:     #94a3b8;
  --rf-ink-300:     #cbd5e1;
  --rf-ink-200:     #e2e8f0;
  --rf-ink-100:     #f1f5f9;
  --rf-ink-50:      #f8fafc;
  --rf-white:       #ffffff;

  --rf-line-faint:  rgba(255,255,255,0.06);
  --rf-line:        rgba(255,255,255,0.10);
  --rf-line-strong: rgba(255,255,255,0.16);
  --rf-line-glow:   rgba(9,251,247,0.18);

  /* ---------- SEMANTIC ---------- */
  --rf-positive:    #10b981;
  --rf-positive-bg: rgba(16,185,129,0.12);
  --rf-warning:     #f59e0b;
  --rf-warning-bg:  rgba(245,158,11,0.12);
  --rf-critical:    #ef4444;
  --rf-critical-bg: rgba(239,68,68,0.12);
  --rf-info:        var(--rf-cyan-500);
  --rf-info-bg:     rgba(6,182,212,0.12);

  /* ---------- TYPOGRAPHY ---------- */
  --rf-font-display: 'Space Grotesk', 'Satoshi', system-ui, sans-serif;
  --rf-font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --rf-font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --rf-text-xs:     0.75rem;
  --rf-text-sm:     0.875rem;
  --rf-text-base:   1rem;
  --rf-text-lg:     1.125rem;
  --rf-text-xl:     1.375rem;
  --rf-text-2xl:    1.75rem;
  --rf-text-3xl:    2.25rem;
  --rf-text-4xl:    3rem;
  --rf-text-5xl:    3.75rem;
  --rf-text-6xl:    4.75rem;

  --rf-leading-tight: 1.1;
  --rf-leading-snug:  1.3;
  --rf-leading-body:  1.55;
  --rf-leading-prose: 1.7;

  --rf-track-tight: -0.025em;
  --rf-track-snug:  -0.015em;
  --rf-track-wide:   0.08em;

  /* ---------- SPACING ---------- */
  --rf-s-1:  4px;
  --rf-s-2:  8px;
  --rf-s-3:  12px;
  --rf-s-4:  16px;
  --rf-s-5:  20px;
  --rf-s-6:  24px;
  --rf-s-8:  32px;
  --rf-s-10: 40px;
  --rf-s-12: 48px;
  --rf-s-16: 64px;
  --rf-s-20: 80px;
  --rf-s-24: 96px;
  --rf-s-32: 128px;

  /* ---------- RADIUS ---------- */
  --rf-r-sm:   6px;
  --rf-r-md:   10px;
  --rf-r-lg:   14px;
  --rf-r-xl:   20px;
  --rf-r-2xl:  28px;
  --rf-r-pill: 999px;

  /* ---------- SHADOWS ---------- */
  --rf-lift-sm: 0 1px 2px rgba(2,6,23,0.08), 0 1px 1px rgba(2,6,23,0.04);
  --rf-lift-md: 0 4px 12px rgba(2,6,23,0.10), 0 2px 4px rgba(2,6,23,0.06);
  --rf-lift-lg: 0 16px 40px rgba(2,6,23,0.18), 0 4px 8px rgba(2,6,23,0.08);
  --rf-lift-xl: 0 32px 80px rgba(2,6,23,0.28), 0 8px 16px rgba(2,6,23,0.12);

  --rf-glow-sm: 0 0 0 1px rgba(9,251,247,0.15), 0 4px 16px rgba(6,182,212,0.18);
  --rf-glow-md: 0 0 0 1px rgba(9,251,247,0.20), 0 8px 32px rgba(6,182,212,0.30);
  --rf-glow-lg: 0 0 60px rgba(9,251,247,0.25), 0 0 120px rgba(22,122,238,0.18);

  /* ---------- GRADIENTS ---------- */
  --rf-grad-fin:     linear-gradient(135deg, var(--rf-cyan-400) 0%, var(--rf-blue-600) 100%);
  --rf-grad-tide:    linear-gradient(180deg, var(--rf-cyan-300) 0%, var(--rf-blue-700) 100%);
  --rf-grad-text:    linear-gradient(135deg, #ffffff 0%, var(--rf-glow-cyan) 50%, var(--rf-glow-blue) 100%);
  --rf-grad-cta:     linear-gradient(90deg, var(--rf-cyan-500) 0%, var(--rf-blue-500) 100%);
  --rf-grad-deep:    radial-gradient(ellipse at top, #1e293b 0%, var(--rf-ink-950) 60%);
  --rf-grad-mesh:
    radial-gradient(at 20% 0%, rgba(6,182,212,0.18) 0px, transparent 50%),
    radial-gradient(at 80% 100%, rgba(59,130,246,0.18) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(9,251,247,0.06) 0px, transparent 60%);
  --rf-grad-divider: linear-gradient(90deg, transparent, var(--rf-glow-cyan), var(--rf-glow-blue), transparent);

  /* ---------- MOTION ---------- */
  --rf-ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --rf-ease-out:     cubic-bezier(0.2, 0.7, 0.2, 1);
  --rf-ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --rf-dur-fast:     150ms;
  --rf-dur-base:     250ms;
  --rf-dur-slow:     400ms;

  /* ---------- LAYOUT ---------- */
  --rf-container:    1400px;
  --rf-container-narrow: 960px;
  --rf-prose:        65ch;
}

/* ============================================================
   Base reset
   ============================================================ */
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--rf-font-body);
  font-size: var(--rf-text-base);
  line-height: var(--rf-leading-body);
  color: var(--rf-ink-200);
  background: var(--rf-ink-950);
  font-feature-settings: 'cv02', 'cv11', 'ss01';
}

* { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rf-font-display);
  font-weight: 600;
  letter-spacing: var(--rf-track-tight);
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
code, kbd, samp { font-family: var(--rf-font-mono); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.rf-grad-text {
  background: var(--rf-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================================================
   Buttons
   ============================================================ */
.rf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--rf-font-body); font-weight: 600; font-size: 14px;
  letter-spacing: -0.005em;
  border-radius: var(--rf-r-md);
  border: 1px solid transparent;
  padding: 10px 18px; line-height: 1;
  transition: all var(--rf-dur-base) var(--rf-ease);
  text-decoration: none;
  white-space: nowrap;
}
.rf-btn-lg { padding: 16px 26px; font-size: 15px; border-radius: 12px; }
.rf-btn-xl { padding: 18px 28px; font-size: 16px; border-radius: 12px; }

/* Solid primary (blue-600 fin color) */
.rf-btn-primary {
  background: var(--rf-blue-600);
  color: var(--rf-white);
  border: 1px solid var(--rf-blue-600);
  box-shadow: none;
}
.rf-btn-primary:hover {
  background: var(--rf-blue-500);
  border-color: var(--rf-blue-500);
  color: var(--rf-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(37,99,235,0.55);
  filter: none;
}
.rf-btn-primary:active {
  background: var(--rf-blue-700);
  border-color: var(--rf-blue-700);
  transform: translateY(0);
}

/* Secondary: solid dark surface */
.rf-btn-secondary {
  background: var(--rf-ink-850);
  color: var(--rf-white);
  border: 1px solid var(--rf-line-strong);
}
.rf-btn-secondary:hover {
  background: var(--rf-ink-800);
  border-color: var(--rf-cyan-500);
  color: var(--rf-white);
}

.rf-btn-ghost {
  background: transparent; color: var(--rf-ink-300); padding: 10px 14px;
}
.rf-btn-ghost:hover { color: var(--rf-white); }

.rf-btn .arrow { display: inline-block; transition: transform var(--rf-dur-base) var(--rf-ease); }
.rf-btn:hover .arrow { transform: translateX(3px); }
.rf-btn:focus-visible {
  outline: 2px solid var(--rf-cyan-400);
  outline-offset: 2px;
}

/* ============================================================
   Section frame
   ============================================================ */
.rf-section { padding: 96px 40px; position: relative; }
.rf-section-inner { max-width: 1280px; margin: 0 auto; position: relative; }
.rf-section-inner-narrow { max-width: 1040px; margin: 0 auto; position: relative; }

.rf-section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.rf-h2 {
  font-family: var(--rf-font-display);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--rf-white);
  margin: 16px 0 18px;
}
.rf-h2 .grad {
  background: var(--rf-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rf-section-sub {
  font-size: 18px; color: var(--rf-ink-400); line-height: 1.55;
}

/* ============================================================
   Hero
   ============================================================ */
.rf-hero {
  position: relative;
  padding: 112px 40px 96px;
  background: var(--rf-ink-950);
  background-image: var(--rf-grad-mesh);
  overflow: hidden;
}
.rf-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% -10%, rgba(9,251,247,0.10), transparent 50%),
    radial-gradient(circle at 90% 110%, rgba(22,122,238,0.10), transparent 50%);
}
.rf-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--rf-grad-divider); opacity: 0.4;
}
.rf-hero h1 {
  font-family: var(--rf-font-display); font-weight: 600;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1.02; letter-spacing: -0.035em;
  color: var(--rf-white);
  margin: 22px 0 22px;
  text-wrap: balance;
}
.rf-hero h1 .grad {
  background: var(--rf-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   Browser frame / product mock
   ============================================================ */
.rf-browser {
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-xl);
  overflow: hidden;
  background: var(--rf-ink-900);
  box-shadow: var(--rf-lift-xl), 0 0 80px rgba(6,182,212,0.12);
}
.rf-bdot { width: 11px; height: 11px; border-radius: 50%; }
.rf-bdot.r { background: #ef4444aa; }
.rf-bdot.y { background: #f59e0baa; }
.rf-bdot.g { background: #10b981aa; }

/* ============================================================
   Feature cards
   ============================================================ */
.rf-card {
  background: var(--rf-ink-900);
  border: 1px solid var(--rf-line-faint);
  border-radius: var(--rf-r-xl);
  padding: 28px;
  transition: all var(--rf-dur-base) var(--rf-ease);
}
.rf-card:hover {
  transform: translateY(-3px);
  border-color: var(--rf-line-glow);
  box-shadow: var(--rf-glow-sm);
}
.rf-card h3 {
  font-family: var(--rf-font-display); font-size: 20px;
  color: var(--rf-white); font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.rf-card p {
  color: var(--rf-ink-400); font-size: 15px; line-height: 1.6;
}

/* ============================================================
   Citation
   ============================================================ */
.rf-cite {
  font-family: var(--rf-font-mono); color: var(--rf-cyan-400);
  font-size: 12px;
}

/* ============================================================
   Form inputs
   ============================================================ */
.rf-input, .rf-textarea {
  width: 100%;
  background: var(--rf-ink-900);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-md);
  padding: 12px 14px;
  font-family: var(--rf-font-body); font-size: 15px;
  color: var(--rf-white);
  transition: all var(--rf-dur-base) var(--rf-ease);
}
.rf-input::placeholder, .rf-textarea::placeholder { color: var(--rf-ink-600); }
.rf-input:focus, .rf-textarea:focus {
  outline: none;
  border-color: var(--rf-cyan-500);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.18);
}
.rf-input[aria-invalid="true"], .rf-textarea[aria-invalid="true"] {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.18);
}
.rf-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.rf-label {
  display: block;
  font-family: var(--rf-font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: var(--rf-track-wide);
  color: var(--rf-ink-400); font-weight: 600;
  margin-bottom: 8px;
}

/* ============================================================
   Big split feature
   ============================================================ */
.big-split {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center;
}
.big-split.reverse { grid-template-columns: 1.05fr 1fr; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.faq-item { border-top: 1px solid var(--rf-line); }
.faq-item:last-child { border-bottom: 1px solid var(--rf-line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; cursor: pointer;
  font-family: var(--rf-font-display); color: var(--rf-white);
  font-weight: 600; font-size: 17px;
  list-style: none;
}
.faq-q::after {
  content: '+'; color: var(--rf-cyan-400);
  font-family: var(--rf-font-mono); font-size: 18px;
  transition: transform var(--rf-dur-base) var(--rf-ease);
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height var(--rf-dur-slow) var(--rf-ease), padding var(--rf-dur-slow) var(--rf-ease);
  color: var(--rf-ink-300); font-size: 15px; line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 18px; }

/* ============================================================
   CTA strip
   ============================================================ */
.rf-cta-strip {
  padding: 96px 40px; text-align: center;
  background: var(--rf-grad-deep); position: relative; overflow: hidden;
}
.rf-cta-strip::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 50% 100%, rgba(9,251,247,0.15), transparent 50%),
    radial-gradient(circle at 50% 0%, rgba(22,122,238,0.10), transparent 50%);
}
.rf-cta-h {
  font-family: var(--rf-font-display); font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 600; color: var(--rf-white);
  letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 0 18px; position: relative;
}
.rf-cta-h .grad {
  background: var(--rf-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rf-cta-sub {
  color: var(--rf-ink-300); font-size: 18px;
  margin: 0 auto 36px; position: relative;
  max-width: 56ch; line-height: 1.55;
}
.rf-cta-row { display: inline-flex; gap: 12px; position: relative; }

/* Final CTA card (for feature pages) */
.final-cta { padding: 64px 40px 96px; }
.final-cta-card {
  max-width: 920px; margin: 0 auto;
  border-radius: var(--rf-r-2xl);
  border: 1px solid rgba(37,99,235,0.30);
  background: radial-gradient(circle at 50% 0%, rgba(37,99,235,0.20), transparent 60%), var(--rf-ink-900);
  padding: 56px 48px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 0 80px rgba(37,99,235,0.12);
}
.final-cta-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rf-grad-divider); opacity: 0.6; }
.final-cta h2 { font-family: var(--rf-font-display); font-weight: 600; font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.025em; line-height: 1.1; color: var(--rf-white); margin: 14px 0; text-wrap: balance; }
.final-cta h2 .grad { background: var(--rf-grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.final-cta p { color: var(--rf-ink-300); font-size: 16px; max-width: 56ch; margin: 0 auto 28px; line-height: 1.55; }

/* ============================================================
   Capability grid (feature pages)
   ============================================================ */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap-card {
  background: var(--rf-ink-900);
  border: 1px solid var(--rf-line-faint);
  border-radius: var(--rf-r-xl);
  padding: 24px;
  transition: border-color var(--rf-dur-base) var(--rf-ease);
}
.cap-card:hover { border-color: var(--rf-line-glow); }
.cap-card h4 {
  font-family: var(--rf-font-display); font-size: 17px; color: var(--rf-white);
  font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px;
}
.cap-card p { color: var(--rf-ink-400); font-size: 14px; line-height: 1.55; margin: 0; }
.cap-card .num {
  font-family: var(--rf-font-mono); font-size: 11px; color: var(--rf-cyan-400);
  text-transform: uppercase; letter-spacing: var(--rf-track-wide);
  font-weight: 600; margin-bottom: 12px;
}

/* ============================================================
   Before/after split
   ============================================================ */
.ba-col { padding: 28px; border-radius: var(--rf-r-xl); }
.ba-col.before { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.18); }
.ba-col.after { background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.18); }
.ba-col h4 {
  font-family: var(--rf-font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: var(--rf-track-wide);
  font-weight: 600; margin-bottom: 16px;
}
.ba-col.before h4 { color: var(--rf-critical); }
.ba-col.after h4 { color: var(--rf-positive); }
.ba-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ba-col li { color: var(--rf-ink-300); font-size: 14px; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; }
.ba-col.before li::before { content: '✕'; color: var(--rf-critical); font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.ba-col.after li::before { content: '✓'; color: var(--rf-positive); font-size: 12px; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   Animations — scroll reveal
   ============================================================ */
.rf-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--rf-ease-out), transform 0.6s var(--rf-ease-out);
}
.rf-reveal.rf-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .rf-reveal {
    animation: none !important;
    transition-duration: 0s !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   Blog
   ============================================================ */

/* --- Index hero --- */
.blog-index-hero {
  background: var(--rf-grad-deep);
  background-image: var(--rf-grad-mesh);
  padding: 140px 40px 64px;
  text-align: center;
}
.blog-index-hero-inner { max-width: 640px; margin: 0 auto; }
.blog-index-hero h1 {
  font-family: var(--rf-font-display);
  font-size: var(--rf-text-5xl);
  font-weight: 700;
  letter-spacing: var(--rf-track-tight);
  line-height: var(--rf-leading-tight);
  color: var(--rf-white);
  margin: 16px 0 0;
}
.blog-index-sub {
  font-size: var(--rf-text-lg);
  color: var(--rf-ink-400);
  line-height: var(--rf-leading-body);
  margin: 16px 0 0;
}

/* --- Blog index section --- */
.blog-index-section { background: var(--rf-ink-950); }

/* --- Blog grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* --- Blog card --- */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--rf-ink-900);
  border: 1px solid var(--rf-line-faint);
  border-radius: var(--rf-r-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--rf-dur-base) var(--rf-ease), box-shadow var(--rf-dur-base) var(--rf-ease), border-color var(--rf-dur-base) var(--rf-ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rf-glow-sm);
  border-color: var(--rf-line-glow);
}

.blog-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(6,182,212,0.15) 0%, rgba(37,99,235,0.15) 100%);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--rf-dur-slow) var(--rf-ease);
}
.blog-card:hover .blog-card-image img { transform: scale(1.04); }

/* Auto-generated placeholder hero (imageless posts) — fills the 16:9 box and
   mirrors the img hover treatment. preserveAspectRatio="slice" acts like
   object-fit: cover. */
.blog-hero-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.blog-card-image .blog-hero-svg {
  transition: transform var(--rf-dur-slow) var(--rf-ease);
}
.blog-card:hover .blog-card-image .blog-hero-svg { transform: scale(1.04); }

.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.blog-card-tags { display: flex; gap: 6px; margin-bottom: 12px; }
.blog-card-tag {
  font-family: var(--rf-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--rf-track-wide);
  text-transform: uppercase;
  color: var(--rf-cyan-400);
  background: rgba(6,182,212,0.1);
  padding: 3px 8px;
  border-radius: var(--rf-r-sm);
}

.blog-card-title {
  font-family: var(--rf-font-display);
  font-size: var(--rf-text-xl);
  font-weight: 600;
  color: var(--rf-white);
  line-height: var(--rf-leading-snug);
  margin: 0 0 8px;
}

.blog-card-excerpt {
  font-size: var(--rf-text-sm);
  color: var(--rf-ink-400);
  line-height: var(--rf-leading-body);
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  font-size: 13px;
  color: var(--rf-ink-500);
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-card-dot { font-size: 8px; }

/* --- Empty state --- */
.blog-empty-state {
  text-align: center;
  padding: 40px 0;
  color: var(--rf-ink-400);
  font-size: var(--rf-text-base);
}
.blog-empty-state a { color: var(--rf-cyan-400); }

/* ============================================================
   BREADCRUMB (feature sub-pages + blog posts) — FIZZY-576
   Visible trail matching the BreadcrumbList JSON-LD so the
   markup describes content the reader can actually see.
   ============================================================ */
/* Feature-subpage trail overlays the hero gradient (FIZZY-748): the hero is
   pulled up underneath via negative bottom margin, so the gradient runs to the
   nav and the crumbs sit on top of it. 1360px box (1280 content + 40px side
   padding) aligns the trail with hero content. Heroes carry 80px top padding,
   leaving ~36px clearance under the ~44px-tall trail. */
.mkt-breadcrumb {
  max-width: 1360px;
  margin: 0 auto -44px;
  padding: 20px 40px 0;
  position: relative;
  z-index: 5;
}
@media (max-width: 1080px) {
  .mkt-breadcrumb { padding-left: 24px; padding-right: 24px; margin-bottom: -40px; }
  .mkt-breadcrumb ~ section:first-of-type { padding-top: 84px; }
}
.mkt-breadcrumb-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; margin: 0; padding: 0;
  font-size: 13px; line-height: 1.4; color: var(--rf-ink-400);
}
.mkt-breadcrumb-list li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mkt-breadcrumb-list li:not(:first-child)::before {
  content: "/"; color: var(--rf-ink-600); font-size: 12px;
}
.mkt-breadcrumb-list a {
  color: var(--rf-ink-400); text-decoration: none;
  transition: color var(--rf-dur-base) var(--rf-ease);
}
.mkt-breadcrumb-list a:hover { color: var(--rf-white); }
.mkt-breadcrumb-list li[aria-current="page"] {
  color: var(--rf-ink-200); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Category hubs place the trail inside the (narrower, centered) hero. */
.blog-breadcrumb { margin-bottom: 24px; }

/* ============================================================
   BLOG CATEGORY HUBS (/blog/category/<slug>) — FIZZY-399
   Topic landing pages: centered hero w/ breadcrumb, cluster
   intro, pillar "start here" card, post grid, sibling chips.
   ============================================================ */
.blog-category-hero .mkt-breadcrumb-list { justify-content: center; }
.blog-category-intro { padding: 64px 40px 8px; background: var(--rf-ink-950); }
.blog-category-intro .rf-section-inner { max-width: 780px; }
.blog-category-intro p {
  color: var(--rf-ink-300); font-size: 17px; line-height: 1.7; margin: 0 0 20px;
}
.blog-category-pillar-section { padding: 40px 40px 8px; background: var(--rf-ink-950); }
.blog-category-pillar-section .rf-section-inner { max-width: 780px; }
.blog-category-pillar {
  display: block; text-decoration: none;
  border: 1px solid rgba(34,211,238,0.25);
  border-radius: var(--rf-r-lg);
  padding: 28px 32px;
  background: rgba(34,211,238,0.05);
  transition: border-color var(--rf-dur-base) var(--rf-ease), background var(--rf-dur-base) var(--rf-ease);
}
.blog-category-pillar:hover { border-color: rgba(34,211,238,0.55); background: rgba(34,211,238,0.09); }
.blog-category-pillar-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--rf-font-mono, monospace); font-size: 12px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--rf-cyan-400); margin-bottom: 12px;
}
.blog-category-pillar-body h2 { color: var(--rf-ink-100); font-size: 24px; margin: 0 0 10px; }
.blog-category-pillar-body p { color: var(--rf-ink-400); font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.blog-category-pillar-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--rf-cyan-400); font-weight: 600; font-size: 15px;
}
.blog-category-siblings { padding: 8px 40px 96px; background: var(--rf-ink-950); }
.blog-category-siblings .rf-section-head { margin-bottom: 28px; }
.blog-category-strip {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.blog-category-chip {
  display: inline-flex; align-items: center;
  padding: 10px 18px; border-radius: var(--rf-r-pill);
  border: 1px solid var(--rf-edge, rgba(148,163,184,0.25));
  color: var(--rf-ink-300); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color var(--rf-dur-base) var(--rf-ease), border-color var(--rf-dur-base) var(--rf-ease);
}
.blog-category-chip:hover { color: var(--rf-white); border-color: var(--rf-cyan-400); }
@media (max-width: 640px) {
  .blog-category-intro, .blog-category-pillar-section { padding-left: 24px; padding-right: 24px; }
  .blog-category-siblings { padding-left: 24px; padding-right: 24px; }
  .blog-category-pillar { padding: 22px 24px; }
}
@media (max-width: 640px) {
  .mkt-breadcrumb { padding: 14px 24px 0; }
}
/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .rf-section { padding: 64px 24px; }
  .rf-hero { padding: 56px 24px 64px; }
  .big-split, .big-split.reverse { grid-template-columns: 1fr; gap: 40px; }
  .cap-grid { grid-template-columns: 1fr; }
  .rf-cta-strip { padding: 64px 24px; }
  .rf-cta-row { flex-direction: column; align-items: center; width: 100%; }
  .rf-cta-row .rf-btn { width: 100%; max-width: 320px; text-align: center; justify-content: center; }
  .final-cta { padding: 48px 24px 64px; }
  /* FIZZY-762: win over per-page .final-cta-card redefinitions (heavier specificity) */
  section .final-cta-card { padding: 36px 24px; }
  .final-cta .rf-cta-row { flex-direction: column; align-items: center; width: 100%; }
  .final-cta .rf-btn { width: 100%; max-width: 320px; text-align: center; justify-content: center; }

  /* Blog responsive */
  .blog-index-hero { padding: 120px 24px 48px; }
  .blog-index-hero h1 { font-size: var(--rf-text-4xl); }
  .blog-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.rf-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.rf-consent-banner.visible {
  transform: translateY(0);
  pointer-events: auto;
}
.rf-consent-inner {
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-xl, 16px);
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(6, 182, 212, 0.06);
}
.rf-consent-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
  color: var(--rf-ink-300);
}
.rf-consent-text p { margin: 0; }
.rf-consent-text strong { color: var(--rf-white); font-weight: 600; }
.rf-consent-link {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--rf-font-mono);
  font-size: 11px;
  color: var(--rf-cyan-400);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rf-consent-link:hover { color: var(--rf-cyan-300); }
.rf-consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.rf-consent-btn {
  padding: 10px 16px;
  border-radius: var(--rf-r-md, 8px);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  border: none;
}
.rf-consent-btn-primary {
  background: var(--rf-grad-cta, linear-gradient(135deg, #06b6d4, #3b82f6));
  color: white;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25);
}
.rf-consent-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.rf-consent-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--rf-ink-300);
  border: 1px solid var(--rf-line);
}
.rf-consent-btn-secondary:hover { background: rgba(255, 255, 255, 0.10); color: var(--rf-white); }

@media (max-width: 768px) {
  .rf-consent-inner {
    flex-direction: column;
    margin: 0 12px 12px;
    padding: 18px 20px;
    gap: 16px;
  }
  .rf-consent-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .rf-consent-btn { width: 100%; text-align: center; }
}

/* Answer-first capsule — the centered definitional section that sits below a
   feature hero. One shared treatment: centered rf-h2 with a
   gradient tail phrase + rf-section-sub prose, matching the swept pages
   (trade-monitoring, vendor-due-diligence, form-adv). */
.rf-capsule { padding: 72px clamp(24px, 5vw, 40px) 0; max-width: 860px; margin: 0 auto; text-align: center; }
.rf-capsule .rf-section-sub { margin: 14px auto 0; }

/* ============================================================
   INTERACTIVE CHECKLIST (/tools/*) — shared, data-driven
   Rendered by app/marketing/pages/tools/_checklist.html.erb
   ============================================================ */
.rfck-shell { max-width: 920px; margin: 0 auto; padding: 64px 24px 96px; }

.rfck-head { text-align: center; margin-bottom: 40px; }
.rfck-h1 {
  font-family: var(--rf-font-display); font-weight: 600;
  font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -0.03em; line-height: 1.06;
  color: var(--rf-white); margin: 18px 0 16px; text-wrap: balance;
}
.rfck-intro { font-size: 17px; color: var(--rf-ink-300); line-height: 1.6; max-width: 68ch; margin: 0 auto; }

/* Overall progress + controls */
.rfck-overall {
  position: sticky; top: 12px; z-index: 5;
  background: rgba(15,23,42,0.82); backdrop-filter: blur(16px);
  border: 1px solid var(--rf-line); border-radius: var(--rf-r-xl);
  padding: 18px 20px; margin-bottom: 28px; box-shadow: var(--rf-lift-lg);
}
.rfck-overall-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.rfck-overall-label { font-family: var(--rf-font-display); font-weight: 600; font-size: 15px; color: var(--rf-white); letter-spacing: -0.01em; }
.rfck-overall-count { color: var(--rf-cyan-400); font-variant-numeric: tabular-nums; }
.rfck-overall-total { color: var(--rf-ink-400); font-weight: 500; font-family: var(--rf-font-mono); font-size: 12px; }
.rfck-overall-note { color: var(--rf-ink-500); font-weight: 400; font-size: 12px; margin-left: 10px; }
.rfck-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.rfck-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--rf-line-strong); background: var(--rf-ink-900);
  color: var(--rf-ink-300); padding: 8px 14px; border-radius: var(--rf-r-md);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all var(--rf-dur-base) var(--rf-ease);
}
.rfck-btn:hover { color: var(--rf-white); border-color: var(--rf-cyan-500); }
.rfck-btn-pdf[disabled], .rfck-btn-pdf[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.rfck-btn-pdf[disabled]:hover { color: var(--rf-ink-300); border-color: var(--rf-line-strong); }
.rfck-soon {
  font-family: var(--rf-font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: var(--rf-track-wide);
  color: var(--rf-cyan-400); border: 1px solid rgba(6,182,212,0.30); border-radius: var(--rf-r-pill);
  padding: 2px 7px; margin-left: 2px;
}

/* Progress bars */
.rfck-bar { width: 100%; height: 8px; border-radius: var(--rf-r-pill); background: rgba(255,255,255,0.06); overflow: hidden; }
.rfck-bar-sm { height: 5px; margin-top: 4px; }
.rfck-bar-fill { display: block; height: 100%; border-radius: var(--rf-r-pill); background: var(--rf-grad-cta); transition: width var(--rf-dur-base) var(--rf-ease); }

/* Sections */
.rfck-section {
  border: 1px solid var(--rf-line-faint); background: var(--rf-ink-900);
  border-radius: var(--rf-r-xl); padding: 26px 26px 22px; margin-bottom: 18px;
  transition: border-color var(--rf-dur-base) var(--rf-ease);
}
.rfck-section.is-complete { border-color: rgba(16,185,129,0.35); }
.rfck-section-head { margin-bottom: 16px; }
.rfck-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.rfck-section-title { font-family: var(--rf-font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; color: var(--rf-white); margin: 0; }
.rfck-section-count { font-family: var(--rf-font-mono); font-size: 12px; color: var(--rf-ink-400); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rfck-section.is-complete .rfck-section-count { color: var(--rf-positive); }
.rfck-section-summary { color: var(--rf-ink-400); font-size: 14px; line-height: 1.6; margin: 12px 0 0; }
.rfck-section-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; }
.rfck-cite {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--rf-font-mono); font-size: 11px; color: var(--rf-ink-400);
  text-decoration: none; transition: color var(--rf-dur-base) var(--rf-ease);
}
.rfck-cite:hover { color: var(--rf-cyan-400); }
.rfck-cite-pillar { color: var(--rf-cyan-400); }
.rfck-cite-pillar:hover { color: var(--rf-white); }

/* Items */
.rfck-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.rfck-item { margin: 0; }
.rfck-item-label {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 12px 12px; border-radius: var(--rf-r-md); cursor: pointer;
  transition: background var(--rf-dur-base) var(--rf-ease);
}
.rfck-item-label:hover { background: rgba(255,255,255,0.03); }
.rfck-check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rfck-box {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  border: 1px solid var(--rf-line-strong); background: var(--rf-ink-850);
  border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
  color: transparent; font-size: 14px;
  transition: all var(--rf-dur-base) var(--rf-ease);
}
.rfck-check:checked + .rfck-box { background: var(--rf-grad-cta); border-color: transparent; color: #fff; }
.rfck-check:focus-visible + .rfck-box { outline: 2px solid var(--rf-cyan-400); outline-offset: 2px; }
.rfck-item-text { color: var(--rf-ink-200); font-size: 15px; line-height: 1.55; }
.rfck-check:checked ~ .rfck-item-text { color: var(--rf-ink-400); }

.rfck-feature { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rf-line-faint); }
.rfck-feature a { font-family: var(--rf-font-mono); font-size: 12px; font-weight: 600; color: var(--rf-cyan-400); text-decoration: none; text-transform: uppercase; letter-spacing: var(--rf-track-wide); }
.rfck-feature a:hover { color: var(--rf-white); }

.rfck-note { color: var(--rf-ink-500); font-size: 13px; line-height: 1.6; margin: 24px 0 0; text-align: center; }

/* Conversion CTA */
.rfck-cta {
  margin-top: 40px; text-align: center;
  border: 1px solid var(--rf-line); border-radius: var(--rf-r-2xl, 24px);
  background: rgba(6,182,212,0.05); padding: 44px 32px;
}
.rfck-cta-title { font-family: var(--rf-font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; color: var(--rf-white); margin: 0 0 12px; }
.rfck-cta-sub { color: var(--rf-ink-300); font-size: 16px; line-height: 1.6; max-width: 60ch; margin: 0 auto 24px; }
.rfck-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rf-grad-cta); color: #fff; text-decoration: none;
  padding: 14px 28px; border-radius: var(--rf-r-md); font-weight: 600; font-size: 15px;
  box-shadow: var(--rf-glow-sm); transition: all var(--rf-dur-base) var(--rf-ease);
}
.rfck-cta-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

@media (max-width: 640px) {
  .rfck-shell { padding: 40px 16px 64px; }
  .rfck-section { padding: 20px 18px; }
  .rfck-overall { position: static; }
  .rfck-section-heading { flex-direction: column; gap: 4px; }
}

/* Downloadable template page (/tools/ria-ai-acceptable-use-policy-template):
   reuses the checklist shell above, plus the download row and section list. */
.rfpt-sub { margin-top: 14px; font-size: 15px; color: var(--rf-ink-400); }
.rfpt-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; margin-top: 28px; }
.rfpt-guide { color: var(--rf-cyan-400); font-size: 15px; text-decoration: none; transition: color var(--rf-dur-base) var(--rf-ease); }
.rfpt-guide:hover { color: var(--rf-white); }
.rfpt-sections {
  counter-reset: rfpt; list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px;
}
.rfpt-sections li { counter-increment: rfpt; display: flex; gap: 12px; color: var(--rf-ink-200); font-size: 15px; line-height: 1.5; }
.rfpt-sections li::before {
  content: counter(rfpt); flex-shrink: 0; min-width: 22px; padding-top: 2px;
  font-family: var(--rf-font-mono); font-size: 12px; color: var(--rf-cyan-400);
}
@media (max-width: 640px) {
  .rfpt-sections { grid-template-columns: 1fr; }
}

.rfck-reviewed {
  margin-top: 10px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

/* ============================================================
   Email-gated download modal: checklist PDFs + Word template
   ============================================================ */
.rfpg-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(2,6,23,0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.rfpg-backdrop[hidden] { display: none; }

.rfpg-dialog {
  position: relative;
  width: 100%; max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--rf-ink-900);
  border: 1px solid var(--rf-line-strong);
  border-radius: var(--rf-r-xl);
  box-shadow: 0 30px 80px -16px rgba(0,0,0,0.7), 0 0 60px rgba(37,99,235,0.10);
  padding: 32px;
}

.rfpg-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: transparent; border: 1px solid var(--rf-line);
  color: var(--rf-ink-400);
  cursor: pointer;
  transition: all var(--rf-dur-base) var(--rf-ease);
}
.rfpg-close:hover { color: var(--rf-white); border-color: var(--rf-line-strong); }

.rfpg-title {
  font-family: var(--rf-font-display); font-weight: 600; font-size: 21px;
  letter-spacing: -0.015em; color: var(--rf-white);
  margin: 0 0 8px; padding-right: 24px;
}
.rfpg-sub { font-size: 14px; color: var(--rf-ink-300); line-height: 1.55; margin: 0 0 22px; }

.rfpg-field { margin-bottom: 14px; }
.rfpg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rfpg-optional { color: var(--rf-ink-500); font-weight: 500; text-transform: none; letter-spacing: 0; }

.rfpg-checkbox {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--rf-ink-300); line-height: 1.5;
  margin: 4px 0 18px; cursor: pointer;
}
.rfpg-checkbox input { margin-top: 3px; flex-shrink: 0; }

.rfpg-turnstile { margin-bottom: 16px; min-height: 65px; }

.rfpg-error {
  background: var(--rf-critical-bg); color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.3); border-radius: var(--rf-r-md);
  padding: 10px 14px; font-size: 13px; line-height: 1.5;
  margin-bottom: 16px;
}
.rfpg-error[hidden] { display: none; }

.rfpg-submit { width: 100%; justify-content: center; }
.rfpg-submit[disabled] { opacity: 0.6; cursor: not-allowed; }

.rfpg-legal { font-size: 11.5px; color: var(--rf-ink-500); line-height: 1.55; margin: 14px 0 0; }
.rfpg-legal a { color: var(--rf-cyan-400); }
.rfpg-legal a:hover { color: var(--rf-white); }

.rfpg-success-icon { font-size: 40px; color: var(--rf-positive); margin-bottom: 12px; }

@media (max-width: 480px) {
  .rfpg-dialog { padding: 24px; }
  .rfpg-row { grid-template-columns: 1fr; }
}

/* ============================================================
   LIGHT PAGE SYSTEM (2026 redesign)
   Shared by every redesigned page. Families:
     nv-  navbar           mm-  desktop Features menu
     mn-  mobile menu      ct-  closing CTA panel
     ft-  footer           pg-  page system (dark/light/mist sections)
     ui-  light app-UI replica helpers
     mb-  mobile helpers (replica scaling)
   The nv-/mm-/mn-/ct-/ft- rules style the shared shell on every page.
   A page opts into the page system with `design: v2` in its front matter:
   the layout then sets main.pg-page, which gives <main> the system's base
   font, color and line-height. The pg-/ui-/mb- classes are new names, so
   they never touch a page that has not been redesigned. Shared sections
   (layouts/_closing_cta, layouts/_faq) are partials; keep page <style>
   blocks to page-only layout tweaks, and move a rule here once a second
   page needs it.
   ============================================================ */

/* ---------- motion: one-time entry + hover feedback ---------- */
@keyframes pgUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pgIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.pg-up { animation: pgUp .8s cubic-bezier(.2,.7,.2,1) both; }
.pg-in { animation: pgIn .7s cubic-bezier(.2,.7,.2,1) both; }
.pg-d1 { animation-delay: .08s; }
.pg-d2 { animation-delay: .16s; }
.pg-d3 { animation-delay: .2s; }
.pg-d4 { animation-delay: .24s; }

.pg-grad { background: linear-gradient(135deg,#ffffff 0%,#67e8f9 55%,#3b82f6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pg-btn { transition: transform .2s, box-shadow .2s; }
.pg-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(6,182,212,0.35); }
.pg-btn .pg-arrow { transition: transform .2s; }
.pg-btn:hover .pg-arrow { transform: translateX(3px); }
.pg-dark-card { transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s; }
.pg-dark-card:hover { transform: translateY(-4px); border-color: rgba(9,251,247,0.35); box-shadow: 0 0 0 1px rgba(9,251,247,0.15), 0 16px 40px rgba(6,182,212,0.18); }

/* ---------- page frame ---------- */
main.pg-page { color: #e2e8f0; font-family: Inter, system-ui, sans-serif; overflow-x: hidden; }
main.pg-page, .nv-bar, .mn, .ft { line-height: normal; font-feature-settings: normal; }
.ui-l, .mb-mock { line-height: normal; }
.pg-page h1, .pg-page h2, .pg-page h3, .pg-page p, .ft p { text-wrap: wrap; }
.pg-wrap { max-width: 1240px; margin: 0 auto; }
.pg-sec { padding: 80px 32px; }
.pg-sec-lg { padding: 88px 32px; }
/* feature sub-pages: the breadcrumb trail lines up with the page content */
main.pg-page .mkt-breadcrumb { max-width: 1240px; padding: 20px 32px 0; box-sizing: content-box; }
main.pg-page .mkt-breadcrumb ~ .pg-hero { padding-top: 70px; }

/* ---------- buttons (8px corners, never pills) ---------- */
.pg-btn-primary, .pg-btn-ghost { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; padding: 16px 26px; border-radius: 8px; text-decoration: none; }
.pg-btn-primary { background: linear-gradient(90deg,#06b6d4,#3b82f6); color: #020617; font-weight: 600; }
.pg-btn-primary:hover { color: #020617; }
.pg-btn-ghost { border: 1px solid rgba(255,255,255,0.16); color: #ffffff; font-weight: 500; }
.pg-btn-ghost:hover { color: #ffffff; }

/* ---------- dark hero ---------- */
.pg-hero { background: radial-gradient(ellipse at 70% 0%, rgba(22,122,238,0.30) 0%, rgba(9,251,247,0.06) 35%, rgba(2,6,23,0) 62%); padding: 56px 32px 80px; }
.pg-hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.pg-hero-copy { flex: 0 0 500px; min-width: 0; }
.pg-hero-label { margin: 0 0 18px; font-size: 15px; font-weight: 600; color: #22d3ee; }
.pg-h1 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 62px; line-height: 1.04; letter-spacing: -0.03em; color: #ffffff; }
.pg-lead { margin: 24px 0 0; font-size: 19px; line-height: 1.6; color: #cbd5e1; max-width: 580px; }
.pg-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- channel strip (dark) ---------- */
.pg-chips-sec { border-top: 1px solid rgba(255,255,255,0.06); padding: 22px 32px; }
.pg-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.pg-chips-label { font-size: 14px; font-weight: 600; color: #94a3b8; margin-right: 6px; }
.pg-chip { padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.10); color: #cbd5e1; font-size: 14px; white-space: nowrap; }

/* ---------- light + mist sections ---------- */
.pg-light { background: #ffffff; color: #334155; }
.pg-mist { background: #f8fafc; color: #334155; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.pg-label { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: #0891b2; }
.pg-h2l { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 44px; line-height: 1.08; letter-spacing: -0.02em; color: #0b1220; }
.pg-subl { margin: 16px 0 0; font-size: 18px; line-height: 1.6; color: #475569; max-width: 640px; }
.pg-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,0.04); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s; }
.pg-card:hover { transform: translateY(-3px); border-color: #cbd5e1; box-shadow: 0 14px 36px rgba(15,23,42,0.08); }
.pg-card-link { display: block; text-decoration: none; padding: 28px; }
.pg-ico { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: #ecfeff; color: #0891b2; }
.pg-h3l { margin: 18px 0 0; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 21px; line-height: 1.25; letter-spacing: normal; color: #0b1220; }
.pg-pl { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: #475569; }
.pg-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; color: #0891b2; }
.pg-grid3 { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* two-column spotlight: text beside a product replica */
.pg-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.pg-split-text { flex: 1 1 360px; min-width: 0; }
.pg-split-media { flex: 1.6 1 640px; min-width: 0; }
.pg-checks { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; }
.pg-check { padding: 14px 0; border-top: 1px solid #e2e8f0; display: flex; gap: 14px; }
.pg-check:last-child { border-bottom: 1px solid #e2e8f0; }
.pg-check-ico { color: #0891b2; flex: 0 0 auto; margin-top: 2px; }
.pg-check .pg-pl { margin: 0; }

/* ---------- dark proof band ---------- */
.pg-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.pg-quote { margin: 0; border-left: 3px solid #22d3ee; padding: 4px 0 4px 26px; }
.pg-quote-text { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 25px; line-height: 1.4; color: #ffffff; }
.pg-quote-cite { margin-top: 14px; font-size: 14px; color: #94a3b8; }
.pg-topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pg-topic { background: #0f172a; border: 1px solid rgba(255,255,255,0.10); border-radius: 14px; padding: 18px; }
.pg-topic-k { margin-top: 8px; font-size: 13px; color: #94a3b8; }
.pg-topic-v { margin-top: 4px; font-weight: 600; color: #ffffff; }

/* ---------- FAQ ---------- */
.pg-faq-wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.pg-faq-head { flex: 1 1 320px; min-width: 0; }
.pg-faq-list { flex: 2 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
/* The whole card is the click target: the summary carries the card's padding,
   and marketing.js toggles the card from a click anywhere on it, sliding the
   answer (.pg-faq-a) open and shut. */
.pg-faq { padding: 0; cursor: pointer; }
.pg-faq summary { padding: 20px 24px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 19px; color: #0b1220; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary:focus-visible { outline: 2px solid #0891b2; outline-offset: 4px; border-radius: 4px; }
.pg-faq-a { overflow: hidden; }
.pg-faq-a .pg-pl { margin: 0; padding: 0 24px 22px; cursor: text; }
.pg-faq .pg-pl a { color: #0891b2; text-decoration: underline; }
.pg-chev { transition: transform .4s cubic-bezier(.4,0,.2,1); flex: 0 0 auto; }
.pg-faq[open] .pg-chev { transform: rotate(180deg); }
.pg-faq.pg-faq-closing .pg-chev { transform: none; }

/* ---------- product pages (features/*): shared by every program page ----------
   Hero with a product card, roomier section padding, the numbered "how it
   works" steps, two-column spotlights, the "what's included" ruled grid and
   the quote-plus-note proof band. A page tunes column widths with the
   --pg-copy-flex / --pg-media-flex / --pg-text-flex custom properties (and a
   spotlight's column gap with --pg-gap) on its own class instead of inline
   styles. */
.pg-hero-feature { padding: 64px 32px 104px; }
.pg-hero-feature .pg-hero-grid { gap: 56px; }
.pg-hero-feature .pg-hero-copy { flex: var(--pg-copy-flex, 1 1 520px); }
.pg-hero-feature .pg-h1 { font-size: 58px; line-height: 1.05; }
.pg-hero-media { flex: var(--pg-media-flex, 1 1 470px); min-width: 0; }
.pg-sec-md { padding: 96px 32px; }
.pg-sec-xl { padding: 104px 32px; }
.pg-h2-wide { max-width: 820px; }
.pg-card-pad { padding: 28px; }

.pg-split-wide { gap: var(--pg-gap, 64px); }
.pg-split-wide > .pg-split-text { flex: var(--pg-text-flex, 1 1 380px); }
.pg-split-wide > .pg-split-media { flex: var(--pg-media-flex, 1.5 1 600px); }

.pg-steps { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.pg-step { display: flex; gap: 18px; }
.pg-step-n { flex: 0 0 auto; display: inline-flex; width: 34px; height: 34px; border-radius: 999px; align-items: center; justify-content: center; background: #0b1220; color: #ffffff; font-weight: 600; font-size: 15px; }
.pg-step-t { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 20px; color: #0b1220; }
.pg-step .pg-pl { margin-top: 6px; }

.pg-incl { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.pg-incl-item { padding: 22px 0; border-top: 1px solid #e2e8f0; }
.pg-incl-item:nth-last-child(-n+2) { border-bottom: 1px solid #e2e8f0; }
.pg-incl-t { font-weight: 600; font-size: 17px; color: #0b1220; }
.pg-incl-item .pg-pl { margin-top: 6px; }
.pg-ast { color: #0891b2; font-weight: 600; }
.pg-footnote { margin: 20px 0 0; font-size: 14px; line-height: 1.6; color: #64748b; max-width: 820px; }

.pg-proof-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.pg-proof-band .pg-quote-text { font-size: 24px; }
.pg-proof-note { align-self: center; }
.pg-proof-note p { margin: 0; font-size: 19px; line-height: 1.65; color: #cbd5e1; }

/* the dark product card in a product page's hero (the replica partial's root
   also carries .pg-in .mb-mock); the entrance starts a beat after the copy */
.pg-hero-card { background: #0f172a; border: 1px solid rgba(255,255,255,0.10); border-radius: 18px; box-shadow: 0 0 60px rgba(9,251,247,0.10), 0 32px 80px rgba(2,6,23,0.55); overflow: hidden; animation-delay: .2s; }

/* ---------- blog: the index (pages/blog) and the post layout (layouts/blog_post) ----------
   Dark header band, the light reading surface with its rail (table of
   contents + key takeaways), the prose styles for a rendered markdown body
   (including the renderer's .blog-table-scroll tables and .blog-tool-cta
   callouts), FAQ and sources, "Keep reading" cards, and the index's
   "Start here" guide and article rows. The category hubs keep the older
   blog-card styles above. */
.bl-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.16); color: #e2e8f0; text-decoration: none; transition: border-color .2s, color .2s, transform .2s; }
.bl-chip:hover { border-color: #22d3ee; color: #ffffff; transform: translateY(-1px); }
.bl-dot { color: #475569; }
.bl-cat { font-size: 14px; font-weight: 600; color: #0891b2; }
.bl-measure { max-width: 1012px; margin: 0 auto; }

/* index: header, "Start here", article rows */
.bl-index-hero { padding: 56px 32px 88px; }
.bl-index-h1 { max-width: 860px; font-size: 58px; line-height: 1.05; }
.bl-index-hero .pg-lead { margin-top: 22px; max-width: 640px; }
.bl-topics { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bl-topics-label { font-size: 15px; color: #94a3b8; margin-right: 6px; }
.bl-start { display: flex; flex-wrap: wrap; gap: 56px; align-items: stretch; }
.bl-start-text { flex: 1.35 1 560px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.bl-start-h2 { max-width: 640px; }
.bl-start-meta { margin-top: 18px; font-size: 14px; color: #64748b; }
.bl-start-meta .bl-dot { color: #cbd5e1; }
.bl-start-cta { margin-top: 30px; }
.bl-btn-dark { display: inline-flex; align-items: center; gap: 10px; background: #0b1220; color: #ffffff; font-weight: 600; font-size: 16px; padding: 14px 22px; border-radius: 8px; text-decoration: none; }
.bl-btn-dark:hover { color: #ffffff; }
.bl-inside { flex: 1 1 400px; min-width: 0; padding: 28px 30px; }
.bl-inside:hover { transform: none; border-color: #e2e8f0; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.bl-inside-h { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 19px; letter-spacing: normal; color: #0b1220; }
.bl-inside-list { list-style: none; margin: 14px 0 0; padding: 0; }
.bl-inside-list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #e2e8f0; font-size: 15px; line-height: 1.45; color: #334155; }
.bl-inside-ico { color: #0891b2; flex: 0 0 auto; margin-top: 2px; }
.bl-inside-list .bl-inside-more { display: block; padding: 12px 0 0; font-size: 14px; color: #64748b; }
.bl-latest { padding: 96px 32px 104px; }
.bl-latest-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.bl-rss { font-size: 15px; font-weight: 500; color: #0e7490; text-decoration: none; }
.bl-rss:hover { color: #0b1220; }
.bl-rows { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.bl-row { display: flex; flex-direction: column; padding: 26px 0; border-top: 1px solid #e2e8f0; text-decoration: none; color: inherit; }
.bl-row:nth-last-child(-n+2) { border-bottom: 1px solid #e2e8f0; }
.bl-row-m { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; color: #64748b; }
.bl-row-m .bl-cat { font-size: 13px; }
.bl-row-m .bl-dot { color: #cbd5e1; }
.bl-row-t { margin-top: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 21px; line-height: 1.28; color: #0b1220; transition: color .2s; }
.bl-row-d { margin-top: 8px; font-size: 15px; line-height: 1.6; color: #475569; }
.bl-row:hover .bl-row-t { color: #0e7490; }
.bl-empty { margin: 36px 0 0; font-size: 18px; color: #64748b; }

/* post: header band */
.bl-post-hero { background: radial-gradient(ellipse at 70% 0%, rgba(22,122,238,0.30) 0%, rgba(9,251,247,0.06) 35%, rgba(2,6,23,0) 62%); padding: 48px 32px 80px; }
.bl-post-hero .blog-breadcrumb { margin: 0; }
.bl-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 14px; color: #94a3b8; }
.bl-crumb a { color: #cbd5e1; text-decoration: none; }
.bl-crumb a:hover { color: #ffffff; }
.bl-crumb .bl-sep { color: #475569; }
.bl-h1 { margin: 26px 0 0; max-width: 900px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 56px; line-height: 1.06; letter-spacing: -0.03em; color: #ffffff; }
.bl-byline { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.bl-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 15px; color: #94a3b8; }
.bl-meta strong { color: #e2e8f0; font-weight: 500; }

/* post: reading surface and rail */
.bl-read { padding: 64px 32px 80px; }
.bl-layout { display: flex; gap: 72px; align-items: flex-start; }
.bl-no-rail { justify-content: center; }
.bl-rail { flex: 0 0 240px; position: sticky; top: 100px; max-height: calc(100vh - 124px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.bl-rail-h { margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 14px; font-weight: 600; letter-spacing: normal; line-height: 1.4; color: #0b1220; }
.bl-toc-box > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: default; }
.bl-toc-box > summary::-webkit-details-marker { display: none; }
.bl-toc-box > summary svg { display: none; transition: transform .2s; }
.bl-toc { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: bltoc; }
.bl-toc li { counter-increment: bltoc; }
.bl-toc a { display: flex; gap: 10px; padding: 7px 0 7px 14px; border-left: 2px solid #e2e8f0; font-size: 14px; line-height: 1.45; color: #475569; text-decoration: none; transition: color .2s, border-color .2s; }
.bl-toc a::before { content: counter(bltoc); flex: 0 0 14px; color: #94a3b8; font-weight: 500; }
.bl-toc a:hover { color: #0b1220; border-color: #94a3b8; }
.bl-toc a.bl-on { color: #0b1220; font-weight: 600; border-color: #0891b2; }
.bl-toc a.bl-on::before { color: #0891b2; }
.bl-tk-h { margin-top: 36px; }
.bl-tk { list-style: none; margin: 10px 0 0; padding: 0; }
.bl-tk li { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid #e2e8f0; font-size: 14px; line-height: 1.55; color: #334155; }
.bl-tk li:last-child { border-bottom: 1px solid #e2e8f0; }
.bl-tk-ico { color: #0891b2; flex: 0 0 auto; margin-top: 2px; }
.bl-article { flex: 0 1 700px; min-width: 0; }
.bl-article:after { content: ""; display: table; clear: both; }

/* post: prose (the rendered markdown body) */
.bl-prose { font-size: 18px; line-height: 1.75; color: #334155; overflow-wrap: break-word; }
.bl-prose p { margin: 0 0 22px; }
.bl-prose h2 { margin: 56px 0 16px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 32px; line-height: 1.18; letter-spacing: -0.015em; color: #0b1220; scroll-margin-top: 100px; }
.bl-prose h3 { margin: 40px 0 12px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 23px; line-height: 1.25; letter-spacing: normal; color: #0b1220; scroll-margin-top: 100px; }
.bl-prose h4 { margin: 32px 0 10px; font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 18px; line-height: 1.4; color: #0b1220; }
.bl-prose > :first-child { margin-top: 0; }
.bl-prose > :last-child { margin-bottom: 0; }
.bl-prose strong { color: #0b1220; font-weight: 600; }
.bl-prose em { color: #1e293b; }
.bl-prose ul, .bl-prose ol { margin: 0 0 26px; padding-left: 22px; }
.bl-prose li { margin: 0 0 12px; padding-left: 4px; }
.bl-prose li::marker { color: #0891b2; }
.bl-prose li > ul, .bl-prose li > ol { margin: 12px 0 0; }
.bl-prose > ol { list-style: none; margin: 8px 0 30px; padding: 0; counter-reset: blstep; }
.bl-prose > ol > li { counter-increment: blstep; position: relative; margin: 0 0 16px; padding: 0 0 0 52px; }
.bl-prose > ol > li::before { content: counter(blstep); position: absolute; left: 0; top: 1px; width: 32px; height: 32px; border-radius: 999px; background: #0b1220; color: #ffffff; font: 600 15px/32px Inter, system-ui, sans-serif; text-align: center; }
.bl-prose a { color: #0e7490; text-decoration: underline; text-decoration-color: rgba(8,145,178,0.35); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.bl-prose a:hover { color: #0b1220; text-decoration-color: #0891b2; }
.bl-prose blockquote { margin: 34px 0; padding: 22px 26px; background: #f8fafc; border: 1px solid #e2e8f0; border-left: 3px solid #0891b2; border-radius: 0 14px 14px 0; color: #1e293b; }
.bl-prose blockquote p:last-child { margin-bottom: 0; }
.bl-prose code { font-family: 'JetBrains Mono', monospace; font-size: .88em; background: #f1f5f9; color: #0b1220; padding: 2px 6px; border-radius: 6px; }
.bl-prose pre { margin: 0 0 26px; padding: 18px 20px; background: #0b1220; color: #e2e8f0; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.bl-prose pre code { background: none; padding: 0; color: inherit; }
.bl-prose img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; }
.bl-prose hr { border: 0; height: 1px; background: #e2e8f0; margin: 44px 0; }
/* the opening paragraph as the "Short answer" capsule */
.bl-answer-first > p:first-child { margin: 0 0 16px; padding: 26px 30px; border: 1px solid #a5f3fc; background: #ecfeff; border-radius: 16px; font-size: 19px; line-height: 1.7; color: #0f172a; }
.bl-answer-first > p:first-child::before { content: "Short answer"; display: block; margin: 0 0 10px; font-weight: 600; }
.bl-answer-first > p:first-child + h2 { margin-top: 48px; }
/* tables (the renderer wraps each in .blog-table-scroll) */
.bl-prose .blog-table-scroll { margin: 30px 0; border: 1px solid #e2e8f0; border-radius: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; background: #ffffff; }
.bl-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.bl-prose th { background: #f8fafc; text-align: left; font-weight: 600; font-size: 14px; color: #0b1220; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; vertical-align: bottom; }
.bl-prose td { padding: 13px 16px; border-top: 1px solid #eef2f6; vertical-align: top; color: #334155; }
.bl-prose tbody tr:first-child td { border-top: 0; }
.bl-prose td:first-child, .bl-prose td:first-child a { font-weight: 600; color: #0b1220; }
/* [!TOOL] callouts (the renderer's aside.blog-tool-cta): icon, text, button */
.bl-prose .blog-tool-cta { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px 20px; align-items: center; margin: 36px 0; padding: 24px 26px; border: 1px solid #e2e8f0; border-radius: 16px; background: #ffffff; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.bl-prose .blog-tool-cta::before { content: ""; grid-row: 1 / span 2; align-self: start; width: 44px; height: 44px; border-radius: 12px; background: #ecfeff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%230891b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3 8-8'/%3E%3Cpath d='M20 12v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9'/%3E%3C/svg%3E") center / 22px no-repeat; }
.bl-prose .blog-tool-cta p { margin: 0; font-size: 16px; line-height: 1.65; color: #475569; }
.bl-prose .blog-tool-cta p:first-child strong { color: #0b1220; }
.bl-prose .blog-tool-cta p { grid-column: 2; }
.bl-prose .blog-tool-cta p:last-child { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-prose .blog-tool-cta p:last-child a { display: inline-flex; align-items: center; gap: 8px; background: #0b1220; color: #ffffff; font-weight: 600; font-size: 15px; padding: 11px 16px; border-radius: 8px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.bl-prose .blog-tool-cta p:last-child a:hover { color: #ffffff; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(6,182,212,0.35); }
/* the closing italic note sits beside the share links */
.bl-share-row { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 30px; padding-top: 22px; border-top: 1px solid #e2e8f0; }
.bl-ends-note > p:last-child { float: left; box-sizing: border-box; width: calc(100% - 168px); margin: 8px 0 0; padding-top: 22px; border-top: 1px solid #e2e8f0; font-size: 14px; line-height: 1.65; color: #64748b; }
.bl-ends-note > p:last-child em { color: #64748b; }
.bl-ends-note > hr:nth-last-child(2) { display: none; }
.bl-ends-note + .bl-share-row { float: right; box-sizing: border-box; width: 168px; margin-top: 8px; }
.bl-share { display: inline-flex; width: 40px; height: 40px; border-radius: 8px; align-items: center; justify-content: center; border: 1px solid #e2e8f0; color: #475569; background: #ffffff; transition: border-color .2s, color .2s, transform .2s; }
.bl-share:hover { border-color: #0891b2; color: #0891b2; transform: translateY(-2px); }

/* post: the optional in-RegFin callout (pages/blog/callouts/), spanning the
   rail column, then the closing rule, links and note in the text column */
.bl-product { margin: 40px 0 36px; padding: 30px 32px 32px; border: 1px solid #e2e8f0; border-radius: 20px; background: #f8fafc; }
.bl-product-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.bl-product-text { max-width: 600px; }
.bl-product-text .pg-label { margin: 0 0 10px; }
.bl-product-h { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 28px; line-height: 1.18; letter-spacing: -0.015em; color: #0b1220; }
.bl-product-text .pg-pl { margin-top: 10px; }
.bl-btn-light { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cbd5e1; background: #ffffff; color: #0b1220; font-weight: 600; font-size: 15px; padding: 11px 18px; border-radius: 8px; text-decoration: none; white-space: nowrap; }
.bl-btn-light:hover { color: #0b1220; }
.bl-product-ui { margin-top: 24px; }
.bl-tail:not(.bl-no-rail) > .bl-article { margin-left: 312px; }
.bl-tail .bl-share-row { margin-top: 0; }
.bl-tail .bl-prose-tail:not(.bl-ends-note) + .bl-share-row { margin-top: 30px; }
.bl-prose-tail > hr:first-child { display: none; }

/* post: FAQ, sources, "Keep reading" */
.bl-refs { padding: 72px 32px 80px; }
.bl-faq-head { flex: 1 1 280px; }
.bl-faq-head .pg-h2l { font-size: 40px; }
.bl-refs .pg-faq-list { flex: 2 1 620px; }
.bl-faq summary { padding: 17px 22px; }
.bl-faq .pg-faq-a .pg-pl { padding: 0 22px 19px; }
.bl-sources { margin-top: 56px; }
.bl-sources-only { margin-top: 0; }
.bl-sources-h { margin: 0 0 18px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 22px; letter-spacing: normal; line-height: 1.3; color: #0b1220; }
.bl-src { list-style: none; margin: 0; padding: 0; counter-reset: blsrc; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.bl-src li { counter-increment: blsrc; display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid #e2e8f0; font-size: 14px; line-height: 1.5; color: #64748b; }
.bl-src li::before { content: counter(blsrc); flex: 0 0 18px; font-weight: 600; color: #0891b2; }
.bl-src cite { font-style: normal; }
.bl-src a { color: #0b1220; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.bl-src a:hover { color: #0e7490; }
.bl-src-pub { color: #94a3b8; }
.bl-related { padding: 80px 32px 88px; }
.bl-related-h { font-size: 36px; }
.bl-related-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bl-post { display: flex; flex-direction: column; padding: 26px 26px 24px; text-decoration: none; color: inherit; box-sizing: border-box; }
.bl-post-t { margin: 10px 0 0; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 20px; line-height: 1.28; color: #0b1220; }
.bl-post-d { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: #475569; }
.bl-post-m { margin-top: auto; padding-top: 18px; font-size: 13px; color: #64748b; }
.bl-post:hover .bl-post-t { color: #0e7490; }

/* ---------- app UI replicas, light theme (the product's light tokens) ---------- */
.ui-l { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,0.05), 0 24px 60px rgba(15,23,42,0.10); font-family: Inter, system-ui, sans-serif; color: #111827; overflow: hidden; }
.ui-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ui-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
.ui-l *, .mb-mock * { box-sizing: content-box; }

/* ---------- navbar ---------- */
.nv-bar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(148,163,184,0.12); background: linear-gradient(180deg,rgba(10,16,32,0.92),rgba(2,6,23,0.8)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-family: Inter, system-ui, sans-serif; }
.nv { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 32px; height: 76px; display: flex; align-items: center; gap: 40px; box-sizing: content-box; }
.nv-logo { display: inline-flex; align-items: center; text-decoration: none; }
.nv-logo img { height: 34px; width: auto; display: block; }
.nv-links { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; }
.nv-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: #cbd5e1; text-decoration: none; cursor: pointer; transition: color .2s, background .2s; }
.nv-link:hover { color: #ffffff; background: rgba(148,163,184,0.10); }
.nv-link:focus-visible, .nv-signin:focus-visible, .nv-cta:focus-visible, .mb-burger:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; }
.nv-link svg { opacity: .7; transition: transform .2s; }
.nv-on { color: #ffffff; }
.nv-on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -19px; height: 2px; border-radius: 2px; background: linear-gradient(90deg,#22d3ee,#3b82f6); }
.nv-link[aria-expanded="true"] { color: #ffffff; background: rgba(148,163,184,0.12); }
.nv-link[aria-expanded="true"] svg { transform: rotate(180deg); opacity: 1; }
.nv-right { display: flex; align-items: center; gap: 18px; }
.nv-signin { font-size: 15px; font-weight: 500; color: #cbd5e1; text-decoration: none; }
.nv-signin:hover { color: #ffffff; }
.nv-sep { width: 1px; height: 22px; background: rgba(148,163,184,0.22); }
.nv-cta { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(90deg,#06b6d4,#3b82f6); color: #020617 !important; font-weight: 600; font-size: 15px; padding: 11px 18px; border-radius: 8px; text-decoration: none; box-shadow: 0 0 0 1px rgba(103,232,249,0.25), 0 8px 24px rgba(6,182,212,0.25); }
.mb-burger { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(148,163,184,0.28); background: transparent; color: #e2e8f0; padding: 0; cursor: pointer; }

/* ---------- desktop Features menu ---------- */
.mm { position: absolute; left: 50%; transform: translateX(-50%); top: 84px; width: 1240px; max-width: calc(100vw - 32px); box-sizing: border-box; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 30px 90px rgba(2,6,23,0.55); overflow: hidden; z-index: 10; text-align: left; }
.mm[hidden] { display: none; }
.mm-cols { display: grid; grid-template-columns: 230px minmax(0,2fr) minmax(0,1fr); gap: 28px; padding: 28px 28px 18px; }
.mm-h { margin: 0 0 10px 10px; font-size: 13px; font-weight: 600; color: #0891b2; }
.mm-list { list-style: none; margin: 0; padding: 0; }
.mm-list-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.mm-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; text-decoration: none; transition: background .2s; }
.mm-item:hover, .mm-item:focus-visible { background: #f1f5f9; }
.mm-item:focus-visible { outline: 2px solid #0891b2; outline-offset: -2px; }
.mm-ico { flex: 0 0 auto; display: inline-flex; width: 34px; height: 34px; border-radius: 9px; align-items: center; justify-content: center; background: #ecfeff; color: #0891b2; }
.mm-t { display: block; font-size: 15px; font-weight: 600; color: #0b1220; }
.mm-d { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: #64748b; }
.mm-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px 38px; border-top: 1px solid #e2e8f0; background: #f8fafc; font-size: 14px; }
.mm-foot-links { display: inline-flex; gap: 28px; }
.mm-foot a { font-weight: 600; color: #0891b2; text-decoration: none; }
.mm-foot a:hover { color: #0e7490; }
.mm-muted { color: #64748b; }
.mm-note { color: #334155; }
.mm-note strong { color: #0b1220; }

/* ---------- mobile menu (full screen) ---------- */
.mn { position: fixed; inset: 0; z-index: 100; background: #020617; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; font-family: Inter, system-ui, sans-serif; }
.mn[hidden] { display: none; }
.mn:focus { outline: none; }
.mn-top { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 16px; border-bottom: 1px solid rgba(148,163,184,0.12); }
.mn-top img { height: 28px; width: auto; display: block; }
.mn-x { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(148,163,184,0.28); background: transparent; color: #e2e8f0; padding: 0; cursor: pointer; }
.mn-body { padding: 8px 16px 0; flex: 1 0 auto; }
.mn-row { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 16px 4px; border: 0; border-bottom: 1px solid rgba(148,163,184,0.12); background: transparent; font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; color: #ffffff; text-decoration: none; text-align: left; cursor: pointer; }
.mn-row[aria-expanded="true"] { border-bottom: 0; }
.mn-row[aria-expanded="false"] svg { transform: rotate(180deg); }
.mn-grp { padding: 6px 0 14px; border-bottom: 1px solid rgba(148,163,184,0.12); }
.mn-grp[hidden] { display: none; }
.mn-h { margin: 12px 4px 6px; font-size: 13px; font-weight: 600; color: #22d3ee; }
.mn-sub { display: flex; align-items: center; gap: 12px; padding: 9px 4px; font-size: 15.5px; color: #cbd5e1; text-decoration: none; }
.mn-sub:hover { color: #ffffff; }
.mn-all { margin-top: 6px; color: #22d3ee; font-weight: 600; }
.mn-ico { display: inline-flex; width: 30px; height: 30px; border-radius: 8px; align-items: center; justify-content: center; background: rgba(34,211,238,0.10); color: #67e8f9; flex: 0 0 auto; }
.mn-foot { flex: 0 0 auto; padding: 16px; border-top: 1px solid rgba(148,163,184,0.12); display: grid; gap: 10px; background: #050b1a; }
.mn-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; }
.mn-btn-primary { background: linear-gradient(90deg,#06b6d4,#3b82f6); color: #020617; }
.mn-btn-ghost { border: 1px solid rgba(148,163,184,0.3); color: #ffffff; }
.mn a:focus-visible, .mn button:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; }
body.mn-open { overflow: hidden; }

/* ---------- closing CTA panel ---------- */
.ct-sec { padding: 112px 32px 96px; position: relative; font-family: Inter, system-ui, sans-serif; }
.ct-panel { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid rgba(103,232,249,0.20); background: radial-gradient(760px 420px at 88% -10%,rgba(34,211,238,0.20),rgba(34,211,238,0) 62%), radial-gradient(640px 420px at -5% 110%,rgba(59,130,246,0.18),rgba(59,130,246,0) 60%), linear-gradient(180deg,#0c1630 0%,#070d1d 100%); box-shadow: 0 40px 120px rgba(2,6,23,0.65), inset 0 1px 0 rgba(255,255,255,0.06); }
.ct-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(148,163,184,0.07) 1px,transparent 1px), linear-gradient(90deg,rgba(148,163,184,0.07) 1px,transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 75% 0%,#000 0%,transparent 70%); mask-image: radial-gradient(ellipse at 75% 0%,#000 0%,transparent 70%); pointer-events: none; }
.ct-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,0.88fr); gap: 64px; align-items: center; padding: 72px; }
.ct-label { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: #22d3ee; }
.ct-h2 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 46px; line-height: 1.07; letter-spacing: -0.02em; color: #ffffff; text-wrap: wrap; }
.ct-sub { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: #cbd5e1; max-width: 520px; }
.ct-proof { list-style: none; margin: 32px 0 0; padding: 28px 0 0; border-top: 1px solid rgba(148,163,184,0.16); display: grid; gap: 14px; }
.ct-proof li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #e2e8f0; }
.ct-tick { flex: 0 0 auto; display: inline-flex; width: 24px; height: 24px; border-radius: 7px; align-items: center; justify-content: center; background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.30); color: #67e8f9; box-sizing: border-box; }
.ct-form { background: #ffffff; border-radius: 16px; padding: 32px; box-shadow: 0 30px 80px rgba(2,6,23,0.55); color: #0b1220; }
.ct-submit { box-sizing: border-box; margin-top: 22px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; background: linear-gradient(90deg,#06b6d4,#3b82f6); color: #020617; font: inherit; font-weight: 600; font-size: 16px; padding: 14px 20px; border-radius: 8px; text-decoration: none; cursor: pointer; }
.ct-submit:focus-visible { outline: 2px solid #0891b2; outline-offset: 3px; }
.ct-fine { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #e2e8f0; font-size: 13px; line-height: 1.5; color: #64748b; }
.ct-sec:not(.ct-compact) .ct-grid { align-items: start; }
/* compact variant (cta_back_to): heading beside one link back to the page's own form */
.ct-compact .ct-grid { grid-template-columns: minmax(0,1fr) auto; padding: 56px 72px; }
.ct-compact .ct-h2 { font-size: 40px; max-width: 680px; }
.ct-compact .ct-submit { width: auto; margin-top: 0; padding: 16px 28px; }

/* ---- dm-: the demo request form (layouts/_demo_form), on /demo and in the
   closing CTA panel. Its grids follow the form's own width (a container
   query), not the window's, so the same rules fit the full /demo card and
   the narrower panel card. ---- */
.dm-form { container: dm-form / inline-size; font-family: Inter, system-ui, sans-serif; color: #0b1220; text-align: left; }
.dm-sec + .dm-sec { margin-top: 32px; padding-top: 28px; border-top: 1px solid #e2e8f0; }
.dm-stepped .dm-sec + .dm-sec { margin-top: 0; padding-top: 0; border-top: 0; }
.dm-stepped .dm-sec:not(.active) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .dm-stepped .dm-sec.active { animation: dm-step-in .25s ease both; }
}
@keyframes dm-step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dm-progress { display: none; }
.dm-stepped .dm-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; font-size: 13px; font-weight: 600; color: #64748b; }
.dm-progress-bar { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dm-progress-bar span { height: 4px; border-radius: 2px; background: #e2e8f0; }
.dm-progress-bar span.on { background: #0891b2; }
.dm-step-h { display: flex; align-items: center; gap: 10px; margin: 0; }
.dm-step-n { flex: 0 0 auto; display: inline-flex; width: 26px; height: 26px; border-radius: 999px; align-items: center; justify-content: center; background: #0b1220; color: #ffffff; font-size: 13px; font-weight: 600; }
.dm-step-t { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 19px; color: #0b1220; }
.dm-opt-tag { font-size: 14px; font-weight: 400; color: #64748b; }
.dm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dm-sec > .dm-field, .dm-sec > .dm-row, .dm-sec > .dm-fieldset { margin-top: 16px; }
.dm-sec > .dm-step-h + * { margin-top: 18px; }
.dm-field { display: block; }
.dm-lbl { display: block; font-size: 14px; font-weight: 600; color: #1e293b; }
.dm-input { margin-top: 7px; box-sizing: border-box; width: 100%; height: 46px; padding: 0 14px; font: inherit; font-size: 15px; color: #0b1220; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px; }
textarea.dm-input { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.dm-input::placeholder { color: #94a3b8; opacity: 1; }
.dm-input:focus { outline: none; border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8,145,178,0.18); }
.dm-input[aria-invalid="true"] { border-color: #dc2626; }
.dm-select { position: relative; display: block; margin-top: 7px; }
.dm-select .dm-input { margin-top: 0; padding-right: 40px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.dm-chev { position: absolute; right: 14px; top: 14px; pointer-events: none; }
.dm-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.dm-fieldset legend { padding: 0; }
.aum-grid { margin-top: 7px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.aum-opt { position: relative; display: block; cursor: pointer; border: 1px solid #cbd5e1; border-radius: 8px; padding: 12px; }
.aum-opt input, .goal-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.aum-opt-label { display: block; font-size: 14px; font-weight: 600; color: #0b1220; }
.aum-opt-meta { display: block; margin-top: 2px; font-size: 12px; color: #64748b; }
.aum-opt.selected { border: 1.5px solid #0891b2; background: #ecfeff; padding: 11.5px; }
.aum-opt.selected .aum-opt-meta { color: #0e7490; }
.goal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.goal-opt { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; border: 1px solid #cbd5e1; border-radius: 8px; padding: 11px 12px; font-size: 14px; font-weight: 500; color: #0b1220; }
.goal-opt .check { flex: 0 0 auto; display: inline-flex; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #94a3b8; align-items: center; justify-content: center; }
.goal-opt .check svg { visibility: hidden; }
.goal-opt.selected { border: 1.5px solid #0891b2; background: #ecfeff; padding: 10.5px 11.5px; }
.goal-opt.selected .check { width: 18px; height: 18px; border: 0; background: #0891b2; }
.goal-opt.selected .check svg { visibility: visible; }
.aum-opt:has(input:focus-visible), .goal-opt:has(input:focus-visible) { border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8,145,178,0.25); }
.field-error { margin: 6px 0 0; font-size: 13px; color: #b91c1c; }
.field-error:empty { display: none; }
#turnstile-container { margin-top: 20px; }
.dm-nav { display: none; margin-top: 28px; justify-content: space-between; align-items: center; gap: 12px; }
.dm-stepped .dm-nav { display: flex; }
.dm-nav-end { justify-content: flex-end; }
.dm-next, .form-submit { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; background: linear-gradient(90deg,#06b6d4,#3b82f6); color: #020617; font: inherit; font-weight: 600; font-size: 16px; padding: 15px 26px; border-radius: 8px; }
.form-submit:disabled { opacity: .7; cursor: default; }
.form-back { border: 1px solid #cbd5e1; background: #ffffff; color: #0b1220; font: inherit; font-weight: 500; font-size: 15px; padding: 13px 20px; border-radius: 8px; cursor: pointer; }
.dm-next:focus-visible, .form-submit:focus-visible, .form-back:focus-visible { outline: 2px solid #0891b2; outline-offset: 3px; }
/* Back (once the form runs in steps), the privacy note and the submit
   button on one row; a submit error (inserted before the button by
   marketing.js) spans the row above them. */
.dm-submit-row { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.dm-submit-row .form-back { display: none; }
.dm-stepped .dm-submit-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.dm-stepped .dm-submit-row .form-back { display: inline-block; }
.dm-submit { display: contents; }
.dm-submit-row .form-error-msg { grid-column: 1 / -1; grid-row: 1; margin-bottom: 0 !important; }
.dm-privacy { margin: 0; font-size: 13px; line-height: 1.55; color: #64748b; }
.dm-privacy a { color: #0891b2; }
.demo-success { display: none; text-align: center; padding: 24px 0; }
.demo-success.active { display: block; }
.demo-success .icon { display: inline-flex; width: 52px; height: 52px; border-radius: 999px; align-items: center; justify-content: center; background: #ecfeff; color: #0891b2; }
.demo-success h3 { margin: 18px 0 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 26px; color: #0b1220; }
.demo-success p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: #475569; }
.demo-success a { color: #0891b2; }
.demo-success h3:focus { outline: none; }
.dm-noscript { margin: 0; font-size: 15px; line-height: 1.6; color: #334155; }
.dm-noscript a { color: #0891b2; }
@container dm-form (max-width: 520px) {
  .aum-grid, .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-stepped .dm-submit-row { grid-template-columns: auto minmax(0, 1fr); }
  .dm-stepped .dm-submit-row .dm-privacy { grid-column: 1 / -1; grid-row: 2; }
  .dm-submit-row .form-error-msg { grid-row: 1; }
  .dm-stepped .dm-submit-row .form-back { grid-row: 3; }
  .dm-stepped .dm-submit-row .form-submit { grid-row: 3; justify-self: end; }
}
@container dm-form (max-width: 380px) {
  .dm-row, .aum-grid, .goal-grid { grid-template-columns: minmax(0, 1fr); }
  .dm-submit-row, .dm-stepped .dm-submit-row { grid-template-columns: minmax(0, 1fr); }
  .dm-stepped .dm-submit-row .dm-privacy { grid-row: auto; }
  .dm-privacy { order: 1; }
  .form-submit { order: 2; }
  .dm-submit-row .form-back, .dm-stepped .dm-submit-row .form-back { order: 3; grid-row: auto; justify-self: start; }
  .dm-stepped .dm-submit-row .form-submit { grid-row: auto; justify-self: stretch; }
  .form-submit, .dm-next { width: 100%; justify-content: center; }
}

/* ---------- footer ---------- */
.ft { max-width: 1240px; margin: 0 auto; padding: 0 32px 48px; box-sizing: content-box; font-family: Inter, system-ui, sans-serif; }
.ft-top { display: grid; grid-template-columns: minmax(0,1.3fr) repeat(4,minmax(0,1fr)); gap: 40px; padding: 56px 0 48px; border-top: 1px solid rgba(148,163,184,0.14); }
.ft-top img { height: 30px; width: auto; display: block; }
.ft-blurb { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: #94a3b8; max-width: 300px; }
.ft h2 { margin: 0 0 16px; font-family: Inter, system-ui, sans-serif; font-size: 14px; font-weight: 600; letter-spacing: normal; line-height: 1.4; color: #ffffff; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ft a { font-size: 14px; color: #94a3b8; text-decoration: none; }
.ft a:hover { color: #ffffff; }
.ft-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(148,163,184,0.10); font-size: 13px; color: #64748b; }

/* ---------- tablet: the nav collapses to the menu button ---------- */
@media (max-width: 980px) {
  .nv-links, .nv-signin, .nv-sep, .mm { display: none !important; }
  .nv-right { margin-left: auto; gap: 10px; }
  .mb-burger { display: inline-flex; }
  .ft-top { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .ft-top > div:first-child { grid-column: 1 / -1; }
}

/* ---------- phones (<= 640px): one shared block ---------- */
@media (max-width: 640px) {
  .nv { padding: 0 16px; height: 64px; gap: 12px; }
  .nv-cta { padding: 9px 13px; font-size: 14px; }
  .nv-cta .pg-arrow { display: none; }
  .nv-logo img { height: 28px; }

  .pg-sec, .pg-sec-lg { padding: 56px 16px 64px; }
  .pg-hero { padding: 36px 16px 64px; }
  .pg-h1 { font-size: 38px; line-height: 1.08; letter-spacing: -0.025em; }
  .pg-h1 br, .pg-h2l br, .ct-h2 br { display: none; }
  .pg-h2l, .ct-h2 { font-size: 30px; line-height: 1.12; }
  .pg-lead, .pg-subl, .ct-sub { font-size: 16.5px; }
  .pg-h3l { font-size: 19px; }
  .pg-hero-grid, .pg-split, .pg-proof, .pg-faq-wrap { gap: 32px; }
  .pg-grid3, .pg-proof, .pg-topics { grid-template-columns: minmax(0,1fr); }
  .pg-hero-copy, .pg-split-text, .pg-split-media, .pg-faq-head, .pg-faq-list { flex-basis: auto; max-width: 100%; }
  .pg-lead, .pg-subl { max-width: 100%; }
  .pg-actions > a { flex: 1 1 100%; justify-content: center; text-align: center; }
  .pg-quote { padding-left: 18px; }
  .pg-faq summary { font-size: 17px; }

  main.pg-page .mkt-breadcrumb { padding: 14px 16px 0; }
  main.pg-page .mkt-breadcrumb ~ .pg-hero { padding-top: 60px; }

  /* product pages: text before the replica, hero buttons share a row */
  .pg-sec-md, .pg-sec-xl { padding: 56px 16px 64px; }
  .pg-hero-feature .pg-h1 { font-size: 38px; line-height: 1.08; }
  .pg-hero-feature .pg-hero-grid, .pg-split-wide { gap: 32px; }
  .pg-hero-feature .pg-hero-copy, .pg-hero-media, .pg-split-wide > .pg-split-text, .pg-split-wide > .pg-split-media { flex-basis: auto; max-width: 100%; }
  .pg-hero-feature .pg-actions > a { flex: 1 1 auto; }
  .pg-split-wide > .pg-split-media { order: 2; }
  .pg-incl { grid-template-columns: minmax(0,1fr); }
  .pg-incl-item:nth-last-child(2) { border-bottom: 0; }
  .pg-proof-band { grid-template-columns: minmax(0,1fr); }
  .pg-proof-band:has(> .pg-quote + .pg-quote) { gap: 28px; }
  .pg-proof-band .pg-quote-text { font-size: 20px; }
  .pg-proof-note p { font-size: 16.5px; }
  .pg-h2-wide { max-width: 100%; }

  /* icon cards: icon beside the title instead of above it */
  .pg-card-link:has(> .pg-ico + .pg-h3l) { display: grid; grid-template-columns: 40px minmax(0,1fr); column-gap: 14px; align-items: center; padding: 22px; }
  .pg-card-link > .pg-ico { width: 40px; height: 40px; }
  .pg-card-link > .pg-ico + .pg-h3l { margin: 0; }
  .pg-card-link:has(> .pg-ico + .pg-h3l) > :not(.pg-ico):not(.pg-h3l) { grid-column: 1 / -1; justify-self: start; }
  /* the same for plain icon cards in a grid that opts in with pg-icon-rows */
  .pg-icon-rows > .pg-card:has(> .pg-ico + .pg-h3l) { display: grid; grid-template-columns: 40px minmax(0,1fr); column-gap: 14px; align-items: center; padding: 22px; }
  .pg-icon-rows > .pg-card > .pg-ico { width: 40px; height: 40px; }
  .pg-icon-rows > .pg-card > .pg-ico + .pg-h3l { margin: 0; }
  .pg-icon-rows > .pg-card:has(> .pg-ico + .pg-h3l) > :not(.pg-ico):not(.pg-h3l) { grid-column: 1 / -1; justify-self: start; }

  /* proof topics: check beside the label */
  .pg-topic { display: grid; grid-template-columns: 20px minmax(0,1fr); column-gap: 12px; padding: 14px 16px; }
  .pg-topic > svg { grid-row: 1 / span 2; margin-top: 2px; }
  .pg-topic-k { margin-top: 0; }
  .pg-topic-v { margin-top: 2px; }

  /* channel strip: a two-column checklist instead of wrapped chips */
  .pg-chips-sec { padding: 28px 16px 30px; }
  .pg-chips { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 12px; justify-items: start; align-items: start; }
  .pg-chips-label { grid-column: 1 / -1; margin: 0 0 4px; font-size: 13px; color: #22d3ee; }
  .pg-chip { position: relative; padding: 0 0 0 20px; border: 0; font-size: 14px; color: #e2e8f0; white-space: normal; line-height: 1.35; }
  .pg-chip::before { content: ""; position: absolute; left: 2px; top: 4px; width: 9px; height: 5px; border-left: 2px solid #22d3ee; border-bottom: 2px solid #22d3ee; transform: rotate(-45deg); }

  /* product replicas keep their desktop layout and scale to the screen */
  .ui-l { zoom: .58; }
  .mb-mock { zoom: .66; }
  .mb-mock-wrap { min-width: 0; flex-basis: auto !important; width: 100%; }
  /* dark app-shell replicas (e.g. home/_exam_binder): drop the sidebar */
  .mb-home-shell { width: 560px; zoom: .64; }
  .mb-home-shell > div:first-child { display: none !important; }
  /* a wide replica that keeps its desktop width and scales to the screen as
     one picture. Its root carries .pg-fit and, inline, --pg-fit-w (that
     desktop width), --pg-fit-z (358px / the width: it fills a 390px phone
     inside the gutters) and --pg-fit-z-sm (328px / the width, for phones
     narrower than 390px). Replicas inside a .pg-fit root don't scale again. */
  .pg-fit { box-sizing: border-box; width: var(--pg-fit-w); max-width: none; zoom: var(--pg-fit-z); }
  .pg-fit .ui-l, .pg-fit .mb-mock { zoom: 1; }

  /* blog index + post layout */
  .bl-index-hero { padding: 36px 16px 64px; }
  .bl-index-h1 { font-size: 38px; }
  .bl-start { gap: 32px; }
  .bl-start-text, .bl-inside { flex-basis: auto; max-width: 100%; }
  .bl-inside { padding: 20px 20px 16px; }
  .bl-latest, .bl-refs, .bl-related { padding: 56px 16px 64px; }
  .bl-rows { grid-template-columns: minmax(0,1fr); }
  .bl-row:nth-last-child(2) { border-bottom: 0; }
  .bl-post-hero { padding: 36px 16px 64px; }
  .bl-h1 { font-size: 38px; line-height: 1.08; letter-spacing: -0.025em; }
  .bl-read { padding: 40px 16px 56px; }
  .bl-layout { flex-direction: column; gap: 28px; }
  .bl-article { flex: none; width: 100%; }
  .bl-rail { position: static; flex: none; width: 100%; max-height: none; overflow: visible; box-sizing: border-box; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 4px 18px 6px; }
  .bl-toc-box > summary { cursor: pointer; padding: 14px 0; }
  .bl-toc-box > summary svg { display: block; }
  .bl-toc-box[open] > summary svg { transform: rotate(180deg); }
  .bl-toc-box .bl-toc { margin: 0 0 12px; }
  .bl-toc-box + .bl-tk-h { margin-top: 0; padding-top: 14px; border-top: 1px solid #e2e8f0; }
  .bl-rail > .bl-tk-h:first-child { padding-top: 14px; }
  .bl-tk-h { margin-top: 0; }
  .bl-rail .bl-tk li:last-child { border-bottom: 0; }
  .bl-prose { font-size: 17px; }
  .bl-prose h2 { font-size: 26px; margin: 44px 0 14px; }
  .bl-prose h3 { font-size: 21px; }
  .bl-answer-first > p:first-child { padding: 20px; font-size: 17px; }
  .bl-prose > ol > li { padding-left: 46px; }
  .bl-prose table { min-width: 560px; }
  .bl-prose blockquote { padding: 18px 20px; }
  .bl-prose .blog-tool-cta { padding: 20px; gap: 14px; }
  .bl-prose .blog-tool-cta::before { grid-row: 1; }
  .bl-prose .blog-tool-cta p:last-child { grid-column: 1 / -1; }
  .bl-ends-note > p:last-child, .bl-ends-note + .bl-share-row { float: none; width: auto; }
  .bl-ends-note + .bl-share-row { justify-content: flex-start; margin-top: 16px; padding-top: 0; border-top: 0; }
  .bl-share-row { justify-content: flex-start; }
  .bl-faq-head .pg-h2l, .bl-related-h { font-size: 30px; }
  .bl-product { margin: 32px 0; padding: 20px 18px; }
  .bl-tail:not(.bl-no-rail) > .bl-article { margin-left: 0; }
  .bl-src, .bl-related-grid { grid-template-columns: minmax(0,1fr); }

  .ct-sec { padding: 48px 16px 56px; }
  .ct-grid { grid-template-columns: minmax(0,1fr); padding: 32px 20px; gap: 28px; }
  .ct-form { padding: 22px; }
  .ct-compact .ct-grid { grid-template-columns: minmax(0,1fr); padding: 32px 20px; }
  .ct-compact .ct-h2 { font-size: 30px; }
  .ct-compact .ct-submit { width: 100%; }

  .ft { padding: 0 16px 32px; }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 0 32px; }
  .ft-bottom { flex-direction: column; gap: 6px; }
}

/* phones narrower than 390px (e.g. 360px): wide replicas scale a step further */
@media (max-width: 389px) {
  .pg-fit { zoom: var(--pg-fit-z-sm, var(--pg-fit-z)); }
}

@media (prefers-reduced-motion: reduce) {
  .pg-up, .pg-in { animation: none !important; }
  .pg-btn, .pg-btn .pg-arrow, .pg-card, .pg-dark-card, .pg-chev, .nv-link, .nv-link svg, .mm-item, .bl-chip, .bl-share, .bl-row-t, .bl-toc a, .bl-prose a, .bl-prose .blog-tool-cta p:last-child a { transition: none !important; }
  .pg-btn:hover, .pg-btn:hover .pg-arrow, .pg-card:hover, .pg-dark-card:hover, .bl-chip:hover, .bl-share:hover, .bl-prose .blog-tool-cta p:last-child a:hover { transform: none; }
}
