/* ==============================================================
   FlowForce — shared site styles
   Used by: flowforce.html, terms/, privacy/, pricing/, security/
   ============================================================== */

/* ================= THEME VARS ================= */
:root {
  color-scheme: dark;
  --bg: #07060d;
  --bg-soft: #0c0a17;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.025);
  --surface-3: #110d1f;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.85);
  --muted: rgba(255, 255, 255, 0.65);
  --muted-2: rgba(255, 255, 255, 0.45);
  --grid: rgba(255, 255, 255, 0.045);
  --glass-bg: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  --glow-1: rgba(109, 87, 255, 0.5);
  --glow-2: rgba(167, 139, 250, 0.35);
  --glow-3: rgba(46, 16, 101, 0.55);
}
html:not(.dark) {
  color-scheme: light;
  --bg: #fafafb;
  --bg-soft: #f3f1fb;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-2: rgba(255, 255, 255, 0.6);
  --surface-3: #ffffff;
  --border: rgba(15, 23, 42, 0.12);
  --border-soft: rgba(15, 23, 42, 0.07);
  /* Neutral body copy — purple reserved for accents only */
  --text: #0f172a;
  --text-2: #334155;
  --muted: #475569;
  --muted-2: #64748b;
  --grid: rgba(15, 23, 42, 0.06);
  --glass-bg: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.6)
  );
  --glow-1: rgba(109, 87, 255, 0.32);
  --glow-2: rgba(167, 139, 250, 0.25);
  --glow-3: rgba(109, 87, 255, 0.22);
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-inter), ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
:target, section[id] { scroll-margin-top: 24px; }
img { max-width: 100%; height: auto; }
a.site-logo {
  display: inline-flex;
  align-items: center;
  padding-block: 0.125rem;
}
a.site-logo > img.logo-dark,
a.site-logo > img.logo-light {
  width: auto;
  max-width: 5.75rem;
  height: auto;
  max-height: 1.375rem;
  object-fit: contain;
}
a.site-logo--footer {
  padding-block: 0.25rem;
}
a.site-logo--footer > img.logo-dark,
a.site-logo--footer > img.logo-light {
  max-width: 5.25rem;
  max-height: 1.25rem;
}
.font-display {
  font-family: var(--font-bricolage), var(--font-inter), ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* ================= UTILITIES ================= */
.text-1 { color: var(--text); }
.text-2 { color: var(--text-2); }
.text-mute { color: var(--muted); }
.text-mute-2 { color: var(--muted-2); }
.surface { background: var(--surface); }
.surface-2 { background: var(--surface-2); }
.surface-3 { background: var(--surface-3); }
.border-line { border-color: var(--border); }
.border-line-soft { border-color: var(--border-soft); }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ring-soft {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 0 rgba(0, 0, 0, 0.3);
}

.bg-grid {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bg-grid-fine {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.mask-radial {
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
}

.gradient-text {
  background: linear-gradient(180deg, var(--text) 0%, var(--text-2) 60%, var(--muted) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent-text {
  background: linear-gradient(90deg, #c4b5fd 0%, #a78bfa 40%, #6d57ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html:not(.dark) .accent-text {
  background: linear-gradient(90deg, #6d57ff 0%, #5b45e0 55%, #4c38c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Light-mode: accessible accent text (WCAG AA on --bg / white surfaces) */
html:not(.dark) .text-brand-200 { color: #3d2d9e !important; }
html:not(.dark) .text-brand-300 { color: #4c38c2 !important; }
html:not(.dark) .text-brand-400 { color: #5b45e0 !important; }
html:not(.dark) .text-accent-400 { color: #4c38c2 !important; }
html:not(.dark) .text-mint-400 { color: #0f8f66 !important; }
html:not(.dark) .text-amber-300 { color: #8a5a00 !important; }
html:not(.dark) .text-rose-300\/90 { color: #b42357 !important; }
html:not(.dark) .text-sky-300\/90 { color: #0b6ea8 !important; }
html:not(.dark) .text-fuchsia-300 { color: #86198f !important; }
html:not(.dark) .text-fuchsia-300\/90 { color: #86198f !important; }
html:not(.dark) .hover\:text-brand-300:hover { color: #3d2d9e !important; }
html:not(.dark) .docs-callout-title { color: #0f8f66 !important; }

/* ================= BUTTONS ================= */
.btn-primary {
  position: relative;
  background: linear-gradient(180deg, #6d57ff 0%, #5b45e0 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 30px -10px rgba(109, 87, 255, 0.7);
  transition: filter 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-ghost:hover { background: var(--surface-2); }

.magnetic { display: inline-block; transition: transform 0.18s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.magnetic > * { transition: transform 0.18s cubic-bezier(.2,.8,.2,1); will-change: transform; }

/* ================= HERO + DECORATIONS ================= */
.hero-glow { position: relative; }
.hero-glow::before {
  content: '';
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 760px;
  background:
    radial-gradient(60% 60% at calc(50% + var(--mx, 0px)) calc(0% + var(--my, 0px)),
      var(--glow-1) 0%, transparent 60%),
    radial-gradient(40% 40% at calc(20% + var(--mx, 0px) * 1.5) calc(10% + var(--my, 0px) * 1.5),
      var(--glow-2) 0%, transparent 60%),
    radial-gradient(40% 40% at calc(80% + var(--mx, 0px) * -1.2) calc(5% + var(--my, 0px) * 0.8),
      var(--glow-3) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

/* Orbit ring */
.orbit-ring {
  position: absolute;
  border: 1px dashed var(--border);
  border-radius: 9999px;
  pointer-events: none;
  opacity: 0.55;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.orbit-spin { animation: orbitSpin 28s linear infinite; transform-origin: center; }
.orbit-icon {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px -10px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
}
.orbit-icon.counterspin { animation: orbitSpin 28s linear infinite reverse; }

/* ================= MARQUEE ================= */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 40s linear infinite; }

/* ================= FLOATING + PULSE ================= */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.floaty { animation: floaty 6s ease-in-out infinite; }

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.pulse-dot { animation: pulseDot 2s infinite; }

@keyframes pulseDotPurple {
  0% { box-shadow: 0 0 0 0 rgba(109, 87, 255, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(109, 87, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(109, 87, 255, 0); }
}
.pulse-dot-purple { animation: pulseDotPurple 1.4s infinite; }

/* ================= REVEAL-ON-SCROLL ================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 400ms; }

/* ================= HERO ENTRANCE ================= */
@keyframes hf-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hf-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hf-scale { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.anim-nav { opacity: 0; animation: hf-fade .7s ease 0.05s forwards; }
.anim-badge { opacity: 0; animation: hf-rise .7s cubic-bezier(.2,.7,.2,1) .25s forwards; }
.hero-line { display: inline-block; overflow: hidden; }
.hero-line > span { display: inline-block; transform: translateY(110%); animation: lineUp .9s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero-line.l1 > span { animation-delay: 0.35s; }
.hero-line.l2 > span { animation-delay: 0.5s; }
.anim-sub { opacity: 0; animation: hf-rise .7s ease .8s forwards; }
.anim-cta { opacity: 0; animation: hf-rise .7s ease .95s forwards; }
.anim-fineprint { opacity: 0; animation: hf-fade .7s ease 1.1s forwards; }
.anim-mockup { opacity: 0; animation: hf-scale 1s cubic-bezier(.2,.7,.2,1) 1.05s forwards; }

/* ================= DIALER WAVE ================= */
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.wave-bar { transform-origin: center; animation: wave 1s ease-in-out infinite; }

/* ================= SCROLL PROGRESS ================= */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, #6d57ff, #a78bfa);
  z-index: 60;
  transition: width 0.08s linear;
}

[id] { scroll-margin-top: 96px; }

/* ================= SCROLLBAR ================= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(109, 87, 255, 0.45); }

/* ================= FAQ ACCORDION ================= */
details.faq summary { list-style: none; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq .chev { transition: transform .25s ease; }
details.faq[open] .chev { transform: rotate(180deg); }
details.faq .body { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .25s ease, padding .25s ease; }
details.faq[open] .body { max-height: 360px; opacity: 1; }

/* ================= LOGO SWAP ================= */
.logo-dark { display: none; }
.logo-light { display: inline-block; }
html.dark .logo-dark { display: inline-block; }
html.dark .logo-light { display: none; }

/* ==============================================================
   Long-form prose pages (terms / privacy / security)
   Apply by adding `class="prose-page"` to the article wrapper.
   ============================================================== */
.prose-page {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}
.prose-page h2 {
  font-family: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 2.75rem 0 1rem;
}
.prose-page h2:first-of-type { margin-top: 0; }
.prose-page h3 {
  font-family: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui;
  letter-spacing: -0.02em;
  font-size: 1.075rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.75rem 0 0.5rem;
}
.prose-page p { margin: 0 0 1rem; }
.prose-page ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.prose-page ul li { margin: 0.4rem 0; }
.prose-page ul li::marker { color: var(--muted-2); }
.prose-page strong { color: var(--text); font-weight: 600; }
.prose-page a {
  color: #a78bfa;
  text-decoration: none;
  border-bottom: 1px solid rgba(167, 139, 250, 0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.prose-page a:hover {
  color: #c4b5fd;
  border-bottom-color: rgba(167, 139, 250, 0.7);
}
.prose-page .last-updated {
  color: var(--muted-2);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}
html:not(.dark) .prose-page a { color: #5b45e0; border-bottom-color: rgba(91, 69, 224, 0.3); }
html:not(.dark) .prose-page a:hover { color: #4c38c2; border-bottom-color: rgba(91, 69, 224, 0.7); }

.docs-callout {
  margin: 1rem 0 1.2rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface-2);
}
.docs-callout-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #34d399;
  margin-bottom: 0.2rem;
}
.docs-code {
  margin: 1rem 0 1.2rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--surface-3);
}
.docs-code-title {
  font-size: 0.76rem;
  color: var(--muted-2);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.45rem 0.7rem;
}
.docs-code pre {
  margin: 0;
  padding: 0.7rem;
  overflow: auto;
}
.docs-code code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: var(--text-2);
}

/* ================= BLOG ================= */
.blog-page {
  padding-bottom: 4rem;
}
.blog-page-shell {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .blog-page-shell {
    padding: 0 2rem;
  }
}
.blog-masthead {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.blog-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-400, #a78bfa);
}
.blog-masthead-title {
  margin-top: 0.65rem;
  font-family: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
}
.blog-masthead-lead {
  margin-top: 0.85rem;
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
}
.blog-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.blog-category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.35rem 0.85rem;
  font-size: 0.76rem;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.blog-category-pill:hover {
  border-color: rgba(109, 87, 255, 0.35);
  color: var(--text);
}
.blog-category-pill--active {
  border-color: rgba(109, 87, 255, 0.45);
  background: rgba(109, 87, 255, 0.12);
  color: var(--text);
}
.blog-category-pill--inline {
  margin-bottom: 0.65rem;
  pointer-events: none;
}
.blog-index-feed {
  padding: 2rem 0 0;
}
.blog-latest {
  margin-top: 2.5rem;
}
.blog-section-title {
  margin-bottom: 1.25rem;
  font-family: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.blog-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
.blog-featured {
  display: grid;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.blog-featured:hover {
  border-color: rgba(109, 87, 255, 0.35);
  transform: translateY(-2px);
}
@media (min-width: 900px) {
  .blog-featured {
    grid-template-columns: 1.05fr 1fr;
  }
}
.blog-featured-media,
.blog-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  line-height: 0;
  background: var(--surface-2);
}
.blog-card-media {
  border-bottom: 1px solid var(--border);
}
.blog-featured-media {
  border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) {
  .blog-featured-media {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}
/* Override global `img { height: auto }` — fill media area edge-to-edge */
.blog-card-media .blog-card-cover,
.blog-featured-media .blog-featured-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  /* Slight zoom crops letterbox / white padding baked into marketing assets */
  transform: scale(1.14);
  transition: transform 0.35s ease;
}
.blog-card-cover--empty,
.blog-featured-cover--empty {
  position: static;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  transform: none;
  background: var(--surface-2);
}
.blog-featured:hover .blog-featured-media .blog-featured-cover,
.blog-card:hover .blog-card-media .blog-card-cover {
  transform: scale(1.18);
}
/* Legacy frame wrappers (article hero, portable text figures) */
.blog-featured-frame,
.blog-card-frame {
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
/* Article hero: contained image with padding */
.blog-cover-frame,
.blog-figure-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  max-height: 16rem;
  padding: 1rem 1.15rem;
  background: var(--surface-2);
  overflow: hidden;
  border-radius: 0.85rem;
}
.blog-cover-frame img,
.blog-figure-frame img,
.blog-figure-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 14rem;
  object-fit: contain;
  border-radius: 0.65rem;
}
.blog-featured-body {
  padding: 1.35rem 1.35rem 1.5rem;
}
.blog-featured-title {
  margin-top: 0.35rem;
  font-family: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
.blog-featured-excerpt {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}
.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-400, #a78bfa);
}
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.blog-card:hover {
  border-color: rgba(109, 87, 255, 0.35);
  transform: translateY(-2px);
}
.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.2rem 1.25rem;
}
.blog-card-title {
  font-family: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text);
}
.blog-card-excerpt {
  margin-top: 0.5rem;
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-byline {
  margin-top: 0.85rem;
  font-size: 0.74rem;
  color: var(--muted-2);
}
.blog-article-shell {
  padding-top: 1.5rem;
}
.blog-article-layout {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1100px) {
  .blog-article-shell--toc .blog-article-layout {
    grid-template-columns: minmax(0, 1fr) 14.5rem;
    align-items: start;
  }
}
.blog-article-main {
  min-width: 0;
  max-width: 42rem;
}
.blog-article-header {
  padding-bottom: 1.5rem;
}
.blog-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--muted-2);
}
.blog-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--muted-2);
}
.blog-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.blog-breadcrumb a:hover {
  color: var(--accent-400, #a78bfa);
}
.blog-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.blog-article-title {
  margin-top: 0.85rem;
  font-family: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}
.blog-article-dek {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}
.blog-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.blog-meta-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.blog-meta-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  object-fit: cover;
  font-family: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.blog-meta-avatar--sm {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.82rem;
}
.blog-meta-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.blog-meta-role {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.76rem;
  color: var(--muted-2);
}
.blog-meta-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.76rem;
  color: var(--muted-2);
}
.blog-article-cover {
  margin-top: 1.5rem;
}
.blog-article-cover .blog-cover-frame {
  max-height: min(22rem, 48vh);
  border-radius: 0.85rem;
  border: 1px solid var(--border);
}
.blog-article-cover .blog-cover-frame img {
  max-height: min(20rem, 44vh);
}
.blog-prose {
  padding-top: 0.5rem;
  min-width: 0;
}
.blog-prose img,
.blog-prose video,
.blog-prose iframe {
  max-width: 100%;
  height: auto;
}
.blog-article-footer {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
/* Inline TOC: after hero on mobile/tablet */
.blog-article-aside--inline {
  display: block;
  margin-bottom: 1.25rem;
}
.blog-article-aside--sidebar {
  display: none;
}
@media (min-width: 1100px) {
  .blog-article-aside--inline {
    display: none;
  }
  .blog-article-shell--toc .blog-article-aside--sidebar {
    display: block;
  }
}
.blog-toc {
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem 1.1rem;
}
.blog-article-aside--inline .blog-toc {
  position: static;
}
@media (min-width: 1100px) {
  .blog-article-aside--sidebar .blog-toc {
    position: sticky;
    top: 6rem;
  }
}
.blog-toc-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.blog-toc-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.blog-toc-list a {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  text-decoration: none;
}
.blog-toc-list a:hover {
  color: var(--text);
}
.blog-toc-item--nested {
  padding-left: 0.65rem;
}
.blog-pager {
  display: grid;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  .blog-pager {
    grid-template-columns: 1fr 1fr;
  }
}
.blog-pager-link {
  display: block;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.9rem 1rem;
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.blog-pager-link:hover {
  border-color: rgba(109, 87, 255, 0.35);
}
.blog-pager-link--next {
  text-align: right;
}
.blog-pager-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.blog-pager-title {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}
.blog-related-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .blog-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.blog-author-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem;
}
.blog-page-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.blog-back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--accent-400, #a78bfa);
  text-decoration: none;
}
.blog-back-link:hover {
  text-decoration: underline;
}
.blog-figure {
  margin: 1.75rem 0;
}
.blog-figure-frame {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  max-height: min(22rem, 50vh);
}
.blog-figure-img {
  max-height: min(20rem, 46vh);
}
.blog-figure-caption {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--muted-2);
  text-align: center;
}
.blog-blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid rgba(109, 87, 255, 0.45);
  color: var(--text-2);
  font-style: italic;
}
.blog-cta-wrap {
  margin: 1.5rem 0;
}

/* Blog — mobile & small viewports */
@media (max-width: 639px) {
  .blog-page-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .blog-masthead {
    padding: 2rem 0 1.5rem;
  }
  .blog-masthead-lead {
    font-size: 0.95rem;
  }
  .blog-category-nav {
    gap: 0.4rem;
    margin-top: 1.15rem;
  }
  .blog-category-pill {
    min-height: 2.25rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
  }
  .blog-featured-body {
    padding: 1.1rem 1.1rem 1.25rem;
  }
  .blog-featured-media,
  .blog-card-media {
    aspect-ratio: 16 / 10;
  }
  .blog-card-body {
    padding: 1rem 1rem 1.1rem;
  }
  .blog-card-title {
    font-size: 1rem;
  }
  .blog-article-shell {
    padding-top: 1rem;
  }
  .blog-article-main {
    max-width: none;
  }
  .blog-article-title {
    font-size: clamp(1.55rem, 7vw, 1.85rem);
  }
  .blog-article-dek {
    font-size: 0.98rem;
  }
  .blog-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .blog-meta-details {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .blog-article-cover .blog-cover-frame {
    max-height: min(16rem, 42vh);
    padding: 0.65rem 0.75rem;
  }
  .blog-article-cover .blog-cover-frame img {
    max-height: min(14rem, 38vh);
  }
  .blog-pager-link--next {
    text-align: left;
  }
  .blog-page-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  .blog-article-aside--inline .blog-toc-list {
    columns: 1;
  }
  .prose-page .docs-code pre {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 899px) {
  .blog-latest {
    margin-top: 2rem;
  }
}

/* Buttons inside prose — override .prose-page link colors */
.prose-page a.btn-primary,
.prose-page a.btn-primary:hover {
  color: #fff;
  border-bottom: none;
  text-decoration: none;
}
.prose-page a.btn-ghost,
.prose-page a.btn-ghost:hover {
  color: var(--text);
  border-bottom: none;
  text-decoration: none;
}
html:not(.dark) .prose-page a.btn-primary,
html:not(.dark) .prose-page a.btn-primary:hover {
  color: #fff;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= STATUS PAGE UPTIME BAR ================= */
.uptime-bar {
  grid-template-columns: repeat(30, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .uptime-bar {
    grid-template-columns: repeat(45, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .uptime-bar {
    grid-template-columns: repeat(90, minmax(0, 1fr));
  }
}

/* ================= USAGE ESTIMATOR RANGE SLIDERS ================= */
:root {
  --usage-range-fill-start: #6d57ff;
  --usage-range-fill-end: #5b45e0;
  --usage-range-track: #e2e8f0;
  --usage-range-track-border: #cbd5e1;
}

html.dark {
  --usage-range-track: #2a2340;
  --usage-range-track-border: rgba(255, 255, 255, 0.18);
}

.usage-range-wrap {
  width: 100%;
  min-width: 0;
  margin-top: 0.5rem;
}

.usage-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 8px;
  margin: 0;
  padding: 0;
  border-radius: 9999px;
  cursor: pointer;
  background: transparent;
  accent-color: var(--usage-range-fill-start);
  --range-pct: 0%;
  box-sizing: border-box;
}

.usage-range:focus {
  outline: none;
}

.usage-range:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 3px rgba(109, 87, 255, 0.35),
    0 1px 3px rgba(15, 23, 42, 0.2);
}

.usage-range:focus-visible::-moz-range-thumb {
  box-shadow:
    0 0 0 3px rgba(109, 87, 255, 0.35),
    0 1px 3px rgba(15, 23, 42, 0.2);
}

.usage-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 9999px;
  border: 1px solid var(--usage-range-track-border);
  background: linear-gradient(
    to right,
    var(--usage-range-fill-start) 0%,
    var(--usage-range-fill-end) var(--range-pct),
    var(--usage-range-track) var(--range-pct),
    var(--usage-range-track) 100%
  );
}

.usage-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 9999px;
  background: linear-gradient(180deg, #6d57ff 0%, #5b45e0 100%);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
}

.usage-range::-moz-range-track {
  height: 8px;
  border-radius: 9999px;
  background: var(--usage-range-track);
  border: 1px solid var(--usage-range-track-border);
}

.usage-range::-moz-range-progress {
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    var(--usage-range-fill-start) 0%,
    var(--usage-range-fill-end) 100%
  );
}

.usage-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: linear-gradient(180deg, #6d57ff 0%, #5b45e0 100%);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
}

html.dark .usage-range::-webkit-slider-thumb {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

html.dark .usage-range::-moz-range-thumb {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* Usage wallet allowance progress bar */
.usage-allowance-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 9999px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

html.dark .usage-allowance-bar {
  background: #2a2340;
  border-color: rgba(255, 255, 255, 0.18);
}

.usage-allowance-bar-fill {
  height: 100%;
  min-width: 4px;
  border-radius: 9999px;
  transition: width 0.2s ease;
}

.usage-allowance-bar-fill--ok {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.usage-allowance-bar-fill--over {
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
}

/* Billing period switch (monthly / annual) */
.billing-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid #94a3b8;
  border-radius: 9999px;
  background: #e2e8f0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.billing-switch--sm {
  width: 2.5rem;
  height: 1.5rem;
}

.billing-switch--lg {
  width: 3rem;
  height: 1.75rem;
}

html.dark .billing-switch {
  background: #1a1430;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.billing-switch[aria-checked="true"] {
  background: rgba(109, 87, 255, 0.22);
  border-color: #6d57ff;
}

html.dark .billing-switch[aria-checked="true"] {
  background: rgba(109, 87, 255, 0.42);
  border-color: #a78bfa;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(109, 87, 255, 0.25);
}

.billing-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 9999px;
  background: linear-gradient(180deg, #6d57ff 0%, #5b45e0 100%);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
  transition: transform 0.2s ease;
}

.billing-switch--sm .billing-switch-knob {
  width: 1.125rem;
  height: 1.125rem;
}

.billing-switch--lg .billing-switch-knob {
  width: 1.375rem;
  height: 1.375rem;
}

.billing-switch--sm[aria-checked="true"] .billing-switch-knob {
  transform: translateX(1rem);
}

.billing-switch--lg[aria-checked="true"] .billing-switch-knob {
  transform: translateX(1.25rem);
}

.billing-switch:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 87, 255, 0.35);
}

.billing-switch-label--active {
  color: var(--text) !important;
  font-weight: 600;
}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-line > span { transform: none !important; }
  .anim-mockup, .anim-cta, .anim-sub, .anim-badge, .anim-nav, .anim-fineprint {
    opacity: 1 !important;
    animation: none !important;
  }
}
