/* ============================================================
   Prilog landing page — Lexend + design system tokens
   ============================================================ */

:root {
  /* Teal */
  --color-teal-900: #012b31;
  --color-teal-800: #013a42;
  --color-teal-700: #014751;
  --color-teal-600: #025f6b;
  --color-teal-500: #047585;
  --color-teal-400: #1a93a4;
  --color-teal-300: #4db4c3;
  --color-teal-200: #8dd3dc;
  --color-teal-100: #c9edf2;
  --color-teal-50:  #e8f7f9;

  /* Orange */
  --color-orange-900: #7a2800;
  --color-orange-800: #a83600;
  --color-orange-700: #d14700;
  --color-orange-600: #e85300;
  --color-orange-500: #f95f07;
  --color-orange-400: #fb7a2f;
  --color-orange-300: #fc9a5e;
  --color-orange-200: #fdc09b;
  --color-orange-100: #fee2d0;
  --color-orange-50:  #fff4ee;

  /* Neutral */
  --color-gray-900: #1a1a1a;
  --color-gray-800: #2d2d2d;
  --color-gray-700: #404040;
  --color-gray-600: #595959;
  --color-gray-500: #737373;
  --color-gray-400: #999999;
  --color-gray-300: #c2c2c2;
  --color-gray-200: #e0e0e0;
  --color-gray-100: #ebebeb;
  --color-gray-50:  #f7f7f7;
  --color-white:    #ffffff;

  /* Brand semantics */
  --brand-primary: var(--color-teal-700);
  --brand-accent:  var(--color-orange-500);

  /* Foreground */
  --fg-1: var(--color-gray-900);
  --fg-2: var(--color-gray-600);
  --fg-3: var(--color-gray-400);

  /* Background */
  --bg-base:    var(--color-white);
  --bg-subtle:  var(--color-gray-50);
  --bg-muted:   var(--color-gray-100);
  --bg-overlay: rgba(1, 71, 81, 0.08);

  /* Borders */
  --border-subtle:  var(--color-gray-100);
  --border-default: var(--color-gray-200);
  --border-strong:  var(--color-gray-400);

  /* Shadows */
  --shadow-xs:    0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-sm:    0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg:    0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl:    0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-brand:  0 4px 24px rgba(1, 71, 81, 0.25);
  --shadow-accent: 0 4px 20px rgba(249, 95, 7, 0.30);

  /* Easing */
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Anchor targets sit under the sticky nav — push them down so the heading
   doesn't disappear behind the topbar when scrolled to. */
#top,
#product,
#workflow,
#integrations,
#pricing,
#pricing-calculator,
#security {
  scroll-margin-top: 80px;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Keep the document root from becoming a scroll container so the header
   stays sticky. The hero grid constrains its own content on narrow screens. */

body {
  font-family: 'Lexend', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--fg-1);
  background: var(--color-gray-50);
  background-image: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(1, 71, 81, 0.05), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Page background bleeds — match the product pages */
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.page-bg::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 700px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(1, 71, 81, 0.10), transparent 70%);
  filter: blur(40px);
}
.page-bg::after {
  content: "";
  position: absolute;
  top: 240px;
  right: -180px;
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(249, 95, 7, 0.07), transparent 70%);
  filter: blur(50px);
}

.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(1, 71, 81, 0.07) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 30%, transparent 80%);
  opacity: 0.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
button:hover { filter: brightness(0.97); }
img { max-width: 100%; }

.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;
}

/* ── Layout primitives ──────────────────────────────── */
.wrap { position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ── Top nav ────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Three-column grid (1fr · auto · 1fr) so the middle nav stays
     centered to the viewport regardless of how wide the left brand
     or right CTA group is. `justify-content: space-between` (flex)
     would center the nav between siblings, not on the screen. */
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
}
.nav-brand {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand img { height: 32px; display: block; }
.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-column: 1;
  justify-self: start;
  min-width: 0;
}
.language-switcher {
  position: relative;
  flex: 0 0 auto;
}
.language-switcher__summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 112px;
  max-width: 142px;
  height: 34px;
  padding: 0 24px 0 10px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  user-select: none;
  transition: border-color 150ms var(--ease-default), color 150ms var(--ease-default), background-color 150ms var(--ease-default);
}
.language-switcher__current {
  min-width: 0;
  padding-bottom: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.language-switcher__summary::-webkit-details-marker { display: none; }
.language-switcher__summary::after {
  content: "";
  position: absolute;
  right: 10px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 150ms var(--ease-default);
}
.language-switcher[open] .language-switcher__summary::after {
  transform: translateY(1px) rotate(225deg);
}
.language-switcher__summary:hover,
.language-switcher[open] .language-switcher__summary {
  color: var(--fg-1);
  border-color: rgba(1, 71, 81, 0.24);
  background: white;
}
.language-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 70;
  display: grid;
  gap: 4px;
  width: 236px;
  max-height: min(420px, calc(100vh - 96px));
  padding: 8px;
  overflow: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow-lg);
}
.language-switcher__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--fg-2);
  font-size: 13px;
  white-space: nowrap;
}
.language-switcher__label {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.language-switcher__name {
  min-width: 0;
  padding-bottom: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  line-height: 1.25;
}
.language-switcher__native {
  min-width: 0;
  padding-bottom: 1px;
  overflow: hidden;
  color: var(--fg-3);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
}
.language-switcher__item:hover,
.language-switcher__item[aria-selected="true"] {
  color: var(--fg-1);
  background: var(--color-orange-50);
}
.language-switcher__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1;
  box-shadow: none;
  overflow: visible;
}
.language-switcher--floating {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 120;
  flex: none;
}
.language-switcher--floating .language-switcher__summary {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  padding: 0;
  gap: 0;
  border-radius: 999px;
  background: white;
  box-shadow: 0 12px 34px rgba(1, 43, 49, 0.18), var(--shadow-xs);
  transition:
    transform 160ms var(--ease-default),
    border-color 150ms var(--ease-default),
    box-shadow 160ms var(--ease-default);
}
.language-switcher--floating .language-switcher__summary::after {
  display: none;
}
.language-switcher--floating .language-switcher__summary:hover,
.language-switcher--floating[open] .language-switcher__summary {
  transform: scale(1.06);
  border-color: rgba(255, 90, 0, 0.38);
  box-shadow: 0 16px 42px rgba(1, 43, 49, 0.22), var(--shadow-xs);
}
.language-switcher--floating .language-switcher__flag {
  width: 28px;
  min-width: 28px;
  height: 28px;
  background: transparent;
  font-size: 21px;
}
.language-switcher--floating .language-switcher__menu {
  top: auto;
  right: auto;
  bottom: calc(100% + 14px);
  left: 0;
  width: min(248px, calc(100vw - 32px));
  max-height: min(440px, calc(100vh - 112px));
  padding: 10px 12px 10px 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(1, 43, 49, 0.28) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  border-radius: 22px;
  box-shadow: 0 20px 58px rgba(1, 43, 49, 0.2), var(--shadow-sm);
}
.language-switcher--floating .language-switcher__menu::-webkit-scrollbar {
  width: 8px;
}
.language-switcher--floating .language-switcher__menu::-webkit-scrollbar-track {
  margin: 14px 0;
  background: transparent;
}
.language-switcher--floating .language-switcher__menu::-webkit-scrollbar-thumb {
  border: 2px solid white;
  border-radius: 999px;
  background: rgba(1, 43, 49, 0.28);
}
.language-switcher--floating .language-switcher__item {
  min-height: 40px;
  padding: 7px 8px;
  border-radius: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--color-gray-100);
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  grid-column: 2;
  justify-self: center;
}
.nav-links a {
  white-space: nowrap;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--fg-2);
  border-radius: 999px;
  transition: background-color 150ms var(--ease-default), color 150ms var(--ease-default);
}
.nav-links a:hover {
  color: var(--fg-1);
  background: rgba(255, 255, 255, 0.6);
}
.nav-links a[aria-current="page"] {
  color: var(--fg-1);
  background: white;
}

.nav-right {
  min-width: max-content;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
  grid-column: 3;
  justify-self: end;
}
.nav-right > a,
.nav-right > button { flex-shrink: 0; }
.nav-signin {
  font-size: 14px;
  color: var(--fg-2);
  padding: 8px 14px;
  border-radius: 8px;
}
.nav-signin:hover { color: var(--fg-1); }
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: white;
  color: var(--fg-1);
  box-shadow: var(--shadow-xs);
}
.nav__toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms var(--ease-default), opacity 160ms var(--ease-default);
}
.nav--open .nav__toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav--open .nav__toggle span:nth-child(2) {
  opacity: 0;
}
.nav--open .nav__toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.mobile-menu {
  display: none;
}

/* ── Buttons ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(1, 71, 81, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: background-color 150ms var(--ease-default);
}
.btn-primary:hover { background: var(--color-teal-800); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-1);
  background: white;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  transition: background-color 150ms var(--ease-default);
}
.btn-secondary:hover { background: var(--color-gray-50); }
.btn-large {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: 12px;
}
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  transition: background-color 150ms var(--ease-default);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.06); }
.btn-on-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-primary);
  background: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.icon { width: 16px; height: 16px; flex-shrink: 0; }
.icon--sm { width: 14px; height: 14px; }
.icon--lg { width: 20px; height: 20px; }

/* ── Eyebrow / labels ───────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
}
.eyebrow.accent { color: var(--brand-accent); }
.eyebrow.on-dark { color: var(--color-orange-300); }
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-accent);
}

/* ── Section header ─────────────────────────────────── */
section { position: relative; padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
}

/* ── Hero ───────────────────────────────────────────── */
/* Released sheets can drift offscreen without widening the page. */
.hero { padding: 72px 0 100px; overflow-x: clip; }
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
}
/* Allow the hero columns to shrink with narrow viewports and long copy. */
.hero-grid > * { min-width: 0; }
@media (min-width: 1025px) {
  .hero-copy { position: relative; left: 48px; }
}
.hero h1 {
  font-size: 76px;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 18px 0 24px;
  color: var(--fg-1);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--brand-accent);
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 28px;
  max-width: 520px;
  text-wrap: pretty;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-1);
}
.hero-bullets .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 71, 81, 0.08);
  color: var(--brand-primary);
}
.hero-bullets .check .icon {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Team video ─────────────────────────────────────── */
.team-video {
  width: min(100%, 1120px);
  margin: 80px auto 88px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(1, 43, 49, 0.12);
  border-radius: 28px;
  background: var(--color-gray-900);
  box-shadow: var(--shadow-xl), 0 24px 70px rgba(1, 43, 49, 0.14);
}
.team-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-gray-900);
}

/* ── CLI quickstart spotlight ───────────────────────── */
.cli-spotlight {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.cli-eyebrow { margin-bottom: 18px; }
.cli-h2 {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--fg-1);
}
.cli-desc {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.5;
  margin: 0 auto 30px;
  max-width: 520px;
  text-wrap: balance;
}
.cli-terminal {
  text-align: left;
  border-radius: 16px;
  background: var(--color-gray-900);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.cli-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.cli-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 150ms var(--ease-default), border-color 150ms var(--ease-default);
}
.cli-tab .tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 150ms var(--ease-default);
}
.cli-tab:hover { color: rgba(255, 255, 255, 0.85); }
.cli-tab.active {
  color: #fff;
  border-bottom-color: var(--brand-accent);
}
.cli-tab.active .tab-dot { background: var(--brand-accent); }
.cli-panel { display: none; }
.cli-panel.active { display: block; }
.cli-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
}
.cli-cmd {
  flex: 1;
  min-width: 0;
  margin: 0;
  background: transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  white-space: pre-wrap;
  word-break: break-word;
}
.cli-cmd code {
  font-family: inherit;
  white-space: inherit;
}
.cli-prompt {
  color: var(--brand-accent);
  margin-right: 14px;
  user-select: none;
  -webkit-user-select: none;
}
.cli-cmd .cmd { color: #6ee9aa; }
.cli-cmd .flag { color: #7cc4ff; }
.cli-cmd .str { color: #ffb27a; }
.cli-cmd .op { color: rgba(255, 255, 255, 0.55); }
.cli-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  transition: all 150ms var(--ease-default);
}
.cli-copy:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}
.cli-copy:active { transform: scale(0.97); }
.cli-copy.copied {
  color: #6ee9aa;
  border-color: rgba(110, 233, 170, 0.32);
  background: rgba(26, 158, 92, 0.14);
}
.cli-copy .icon {
  width: 14px;
  height: 14px;
}
.cli-foot {
  padding: 12px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.cli-foot-prompt {
  color: var(--brand-accent);
  margin-right: 8px;
}
.cli-foot-cmd { color: rgba(255, 255, 255, 0.80); }
@media (max-width: 600px) {
  .cli-h2 { font-size: 27px; }
  .cli-body {
    flex-direction: column;
    align-items: stretch;
  }
  .cli-copy { justify-content: center; }
}

/* ── Pip's patch printer ───────────────────────────── */
.pip-showcase { position: relative; min-width: 0; max-width: 100%; isolation: isolate; padding: 34px 12px 8px; }
.pip-showcase::before {
  content: "";
  position: absolute;
  inset: 40px 0 20%;
  z-index: -1;
  background: radial-gradient(ellipse, #cce8df 0%, transparent 70%);
  opacity: .65;
  pointer-events: none;
}
.pip-greeting { position: absolute; bottom: calc(100% + 12px); left: 0; width: 100%; text-align: center; }
.pip-eyebrow { font: 500 10px 'JetBrains Mono', monospace; color: var(--brand-primary); text-transform: uppercase; letter-spacing: .16em; }
.pip-greeting p { margin: 5px 0; font-size: 25px; line-height: 1.2; letter-spacing: -.04em; }
.pip-greeting br { display: none; }
.pip-greeting em { font-style: normal; color: var(--brand-primary); margin-left: .2em; }
.pip-caption { color: var(--fg-2); font-size: 11px; line-height: 1.5; }
.pip-printer { position: relative; left: -52px; top: 64px; width: 100%; max-width: 420px; margin: 0 auto; }
.pip-character { position: relative; width: 100%; }
.pip-bot { display: block; width: 100%; overflow: visible; }
.pip-head { transform-box: fill-box; transform-origin: center 85%; animation: pip-bob 4s ease-in-out infinite; }
.pip-eyes { transform-box: fill-box; transform-origin: center; animation: pip-blink 6.4s infinite; }
.pip-hand--right { transform-box: fill-box; transform-origin: 10% 90%; animation: pip-wave 8s ease-in-out infinite; }
.pip-spark { transform-box: fill-box; transform-origin: center; animation: pip-sparkle 4s ease-in-out infinite; }
.pip-spark--two { animation-delay: -2s; }
.pip-showcase[data-print-state="printing"] .pip-status { animation: pip-processing 160ms steps(2) infinite; }
.pip-showcase.is-offscreen * { animation-play-state: paused; }
@keyframes pip-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(1deg); } }
@keyframes pip-blink { 0%, 42%, 46%, 72%, 76%, 100% { transform: scaleY(1); } 44%, 74% { transform: scaleY(.08); } }
@keyframes pip-wave { 0%, 65%, 100% { transform: rotate(0); } 70%, 80% { transform: rotate(-15deg); } 75%, 85% { transform: rotate(8deg); } }
@keyframes pip-sparkle { 0%, 100% { opacity: .3; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes pip-processing { to { fill: #f95f07; } }

/* The top-right corner stays caught in the slot while the sheet sways.
   Only the character determines the hero's height. */
.pip-feed {
  position: absolute;
  z-index: 2;
  top: 88%;
  left: 16.19%;
  width: 67.62%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 12px;
  perspective: 1000px;
  perspective-origin: 50% 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.pip-fix {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 20px 16px;
  background: linear-gradient(115deg, #fffdf6 0%, #fffcf1 46%, #eee5cd 100%);
  color: #243d3a;
  border-inline: 1px solid #e6e4d7;
  transform-origin: 100% 0;
  transform: rotateX(8deg) rotateY(-10deg) rotateZ(-5deg);
  box-shadow: inset 2px 0 2px rgba(255, 255, 255, .9), inset -2px 0 4px rgba(139, 112, 61, .12), 12px 25px 35px rgba(1, 43, 49, .22);
}
.pip-fix::after {
  content: "";
  position: absolute;
  inset: auto -1px -10px;
  height: 11px;
  background: linear-gradient(135deg, #fffcf1 50%, transparent 50%) 0 0 / 16px 16px repeat-x,
              linear-gradient(225deg, #fffcf1 50%, transparent 50%) 0 0 / 16px 16px repeat-x;
}
.pip-fix[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.pip-fix.is-active { pointer-events: auto; }
.pip-showcase.is-video-playing .pip-feed { opacity: 0; }
.pip-showcase.is-video-playing .pip-fix.is-active { pointer-events: none; }
.pip-showcase[data-print-state] .pip-fix.is-active {
  animation: pip-receipt-feed 1400ms cubic-bezier(.3, .7, .2, 1) both,
             pip-paper-float 6s 1400ms ease-in-out infinite;
}
.pip-showcase.is-paused .pip-fix.is-active { animation-play-state: running, paused; }
.pip-fix.is-ejecting { visibility: visible; transform-origin: 50% 50%; }
@keyframes pip-receipt-feed {
  0%, 12% { clip-path: inset(0 0 100%); transform: rotateX(0) rotateY(0) rotateZ(0); }
  60% { clip-path: inset(0 0 -12px); transform: rotateX(2deg) rotateY(-3deg) rotateZ(-1deg); }
  100% { clip-path: inset(0 0 -12px); transform: rotateX(8deg) rotateY(-10deg) rotateZ(-5deg); }
}
@keyframes pip-paper-float {
  0%, 100% { transform: rotateX(8deg) rotateY(-10deg) rotateZ(-5deg); }
  25% { transform: rotateX(12deg) rotateY(-6deg) rotateZ(-3deg); }
  50% { transform: rotateX(7deg) rotateY(-12deg) rotateZ(-6deg); }
  75% { transform: rotateX(10deg) rotateY(-8deg) rotateZ(-4deg); }
}
.pip-fix-head { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed #c9cfc1; }
.pip-fix-repo { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.pip-fix-repo .label { font: 500 8px/1.5 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #687b6e; }
.pip-fix-repo .sub { overflow-wrap: anywhere; font: 10px/1.6 'JetBrains Mono', monospace; color: #687b6e; }
.pip-fix-repo b { font-weight: 500; color: #243d3a; }
.pip-merged { flex: 0 0 auto; margin-top: 2px; padding: 4px 5px; border: 1px solid #8663a1; border-radius: 3px; color: #75518f; font: 500 9px/1.3 'JetBrains Mono', monospace; transform: rotate(-5deg); }
.pip-merged .dot { display: none; }
.pip-fix-title { margin: 16px 0 10px; font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; color: #183d39; }
.pip-fix-description { margin: 0 0 18px; color: #5b6b60; font-size: 12px; line-height: 1.65; }
.pip-fix-footer { margin-top: auto; font: 9px/1.5 'JetBrains Mono', monospace; color: #687b6e; }
.pip-pr-link { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #c9cfc1; color: #075e57; font-size: 10px; font-weight: 500; text-underline-offset: 3px; }
.pip-pr-link:hover { text-decoration: underline; }
.pip-pr-link:focus-visible, .pip-tools button:focus-visible { outline: 2px solid #f95f07; outline-offset: 4px; }
.pip-tools { position: absolute; z-index: 3; top: 68%; left: 15%; right: 15%; display: flex; justify-content: center; align-items: center; gap: 8px; }
.pip-tools button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; border: 0; background: transparent; color: #d6f6e8; white-space: nowrap; }
.pip-print-button { font-size: 11px; }
.pip-print-button .icon { width: 14px; height: 14px; }
.pip-toggle { width: 32px; flex: 0 0 32px; border-radius: 50%; }
.pip-tools button:hover { background: rgba(255, 255, 255, .12); border-radius: 20px; }
.pip-toggle[hidden], .pip-toggle [hidden] { display: none; }
@media (max-width: 1024px) {
  .pip-showcase { width: 100%; max-width: 500px; justify-self: center; padding-top: 120px; }
  .pip-printer { left: -16px; top: 40px; }
}
@media (max-width: 720px), (max-width: 1024px) and (max-height: 600px) {
  .pip-showcase { padding-top: 100px; }
  .pip-printer { top: -16px; width: 80%; max-width: 280px; }
  .team-video { margin-top: 144px; }
  .pip-greeting p { font-size: 20px; }
  .pip-tools { left: 8%; right: 8%; }
  .pip-tools .pip-toggle { position: absolute; left: calc(100% + 6px); top: -2px; width: 36px; min-height: 36px; background: #eef5f0; color: var(--brand-primary); border: 1px solid #bfd4cc; }
  .pip-tools .pip-toggle:hover { background: #e1f0ea; }
}
@media (max-width: 600px), (max-width: 1024px) and (max-height: 600px) {
  .pip-showcase { padding-inline: 0; }
  .pip-print-button { font-size: 10px; }
  .pip-fix { padding: 14px 12px 10px; }
  .pip-fix-head { flex-wrap: wrap; gap: 4px; padding-bottom: 10px; }
  .pip-fix-repo { flex-basis: 100%; }
  .pip-fix-repo .label { display: none; }
  .pip-fix-repo .sub { font-size: 9px; line-height: 1.45; }
  .pip-merged { font-size: 8px; }
  .pip-fix-title { margin: 12px 0 8px; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .pip-fix-description { display: none; }
  .pip-fix-footer { font-size: 8px; }
  .pip-pr-link { margin-top: 8px; padding-top: 8px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .pip-showcase *, .pip-showcase *::before, .pip-showcase *::after { animation: none !important; transition: none !important; }
  .pip-fix.is-ejecting { visibility: hidden; }
}

/* ── Quote band ─────────────────────────────────────── */
.quote-band {
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
}
.quote-band blockquote {
  margin: 0;
  max-width: 900px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  text-wrap: balance;
}
.quote-band blockquote em {
  font-style: normal;
  color: var(--brand-accent);
  font-weight: 500;
}
.quote-band cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 13px;
  color: var(--fg-2);
  letter-spacing: 0.04em;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Pillar grid ────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.pillar {
  padding: 28px;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
}
.pillar .stat {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 12px;
}
.pillar .stat .small {
  display: block;
  font-size: 16px;
  color: var(--fg-2);
  margin-top: 6px;
  line-height: 1.35;
  font-weight: 400;
}
.pillar .pillar-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 6px;
}
.pillar p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
}

/* ── Workflow ───────────────────────────────────────── */
.workflow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  position: relative;
}
.workflow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-default) 0 4px, transparent 4px 8px);
  z-index: 0;
}
.stage {
  position: relative;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px;
  z-index: 1;
  box-shadow: var(--shadow-xs);
}
.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.stage-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
}
.stage-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-overlay);
  color: var(--brand-primary);
}
.stage-icon .icon { width: 18px; height: 18px; }
.stage h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 8px 0 6px;
  letter-spacing: -0.01em;
}
.stage p {
  font-size: 14px;
  color: var(--fg-2);
  margin: 0 0 18px;
  line-height: 1.55;
}
.stage .integrations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.int-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 6px;
  font-size: 12px;
  background: var(--color-gray-50);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--fg-1);
}
.int-chip .logo-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: inline-block;
}
.stage.engine .int-chip .logo-invert { filter: invert(1) brightness(2); }

.stage.engine {
  background: linear-gradient(180deg, var(--color-teal-900), var(--color-teal-800));
  color: white;
  border-color: var(--color-teal-800);
}
.stage.engine .stage-num { color: rgba(255, 255, 255, 0.4); }
.stage.engine .stage-icon {
  background: rgba(249, 95, 7, 0.18);
  color: var(--color-orange-400);
}
.stage.engine h3 { color: white; }
.stage.engine p { color: rgba(255, 255, 255, 0.65); }
.stage.engine .integrations { border-color: rgba(255, 255, 255, 0.10); }
.stage.engine .int-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.85);
}

/* ── Memory section ─────────────────────────────────── */
.memory {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.memory-graphic {
  position: relative;
  aspect-ratio: 1.1 / 1;
  border-radius: 28px;
  background: white;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  /* Make this element its own size-containment context so the inner
     .graphic-stage can read its width via 100cqw. */
  container-type: inline-size;
}

/* Fixed-size design stage. Every positioned child (nodes, chips, hub,
   SVG paths) lives here at the original 1100×1000 design coordinates;
   the whole stage is uniformly scaled to fit the wrapper's current
   width via a single CSS transform. No JS / ResizeObserver needed.
   The divisor needs an explicit unit so length/length cancels into the
   unitless ratio that scale() requires — `calc(100cqw / 1100)` would
   produce a length and the transform would silently no-op. */
.memory-graphic .graphic-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1100px;
  height: 1000px;
  transform-origin: top left;
  transform: scale(calc(100cqw / 1100px));
}
.memory-graphic .grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(1, 71, 81, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 71, 81, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 30%, transparent 85%);
  pointer-events: none;
}

/* Soft glows behind the hub */
.memory-graphic .glow-teal {
  position: absolute;
  width: 60%;
  height: 60%;
  left: 20%;
  top: 20%;
  background: radial-gradient(circle, rgba(1, 71, 81, 0.10), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.memory-graphic .glow-orange {
  position: absolute;
  width: 38%;
  height: 38%;
  right: 8%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(249, 95, 7, 0.08), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

/* Connection-paths SVG layer */
.memory-graphic .links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.memory-graphic .flow {
  fill: var(--color-orange-500);
  filter: drop-shadow(0 0 4px rgba(249, 95, 7, 0.5));
}

/* Center hub */
.memory-graphic .hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.10), transparent 45%),
    linear-gradient(155deg, var(--color-teal-700) 0%, var(--color-teal-900) 100%);
  border: 1px solid var(--color-teal-800);
  box-shadow:
    0 30px 80px -20px rgba(1, 71, 81, 0.45),
    0 0 0 12px rgba(1, 71, 81, 0.04),
    0 0 0 24px rgba(1, 71, 81, 0.02);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 3;
}
.memory-graphic .hub::before,
.memory-graphic .hub::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.memory-graphic .hub::before {
  inset: -28px;
  border-color: rgba(1, 71, 81, 0.20);
  animation: spinSlow 60s linear infinite;
}
.memory-graphic .hub::after {
  inset: -52px;
  border-color: rgba(1, 71, 81, 0.10);
  animation: spinSlow 90s linear infinite reverse;
}
@keyframes spinSlow {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

.memory-graphic .hub-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-orange-300);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.memory-graphic .hub-eyebrow .hub-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-orange-400);
  box-shadow: 0 0 0 4px rgba(249, 95, 7, 0.25);
  animation: pulse 2.4s var(--ease-default) infinite;
}
.memory-graphic .hub-title {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: white;
  text-wrap: balance;
}
.memory-graphic .hub-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(10px, 1vw, 11.5px);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  margin: 0;
}

/* Tiny graph drawn faintly inside the hub */
.memory-graphic .hub-graph {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.30;
}
.memory-graphic .hub-graph svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Satellite nodes orbiting the hub */
.memory-graphic .mem-node {
  position: absolute;
  width: 23%;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow:
    0 8px 24px -10px rgba(1, 71, 81, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.04);
  z-index: 4;
}
.memory-graphic .mem-node .ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-overlay);
  color: var(--brand-primary);
}
.memory-graphic .mem-node .ico .icon {
  width: 18px;
  height: 18px;
}
.memory-graphic .mem-node .text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.memory-graphic .mem-node .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 2px;
}
.memory-graphic .mem-node .name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg-1);
}
/* Output node (PR fixes) — orange-accent treatment */
.memory-graphic .mem-node.accent {
  border-color: rgba(249, 95, 7, 0.25);
  background: linear-gradient(180deg, #fff, var(--color-orange-50));
}
.memory-graphic .mem-node.accent .ico {
  background: rgba(249, 95, 7, 0.12);
  color: var(--brand-accent);
}

/* Each satellite's anchor point around the hub */
.memory-graphic .n-logs    { left: 7%;  top: 18%; }
.memory-graphic .n-signals { right: 7%; top: 18%; }
.memory-graphic .n-deps    { left: 5%;  top: 50%; transform: translateY(-50%); }
.memory-graphic .n-cloud   { right: 5%; top: 50%; transform: translateY(-50%); }
.memory-graphic .n-fixes   { left: 50%; bottom: 6%; transform: translateX(-50%); width: 26%; }

/* Floating data chips drifting near nodes */
.memory-graphic .mem-chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  background: white;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--fg-2);
  box-shadow: var(--shadow-xs);
}
.memory-graphic .mem-chip .pulse {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #1a9e5c;
  box-shadow: 0 0 0 3px rgba(26, 158, 92, 0.18);
}
.memory-graphic .mem-chip.error .pulse {
  background: #e5372a;
  box-shadow: 0 0 0 3px rgba(229, 55, 42, 0.20);
}
.memory-graphic .mem-chip.accent .pulse {
  background: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(249, 95, 7, 0.20);
}
.memory-graphic .mem-chip-1 { left: 30%; top: 9%; }
.memory-graphic .mem-chip-2 { right: 28%; top: 9%; }
.memory-graphic .mem-chip-3 { left: 21%; bottom: 22%; }
.memory-graphic .mem-chip-4 { right: 21%; bottom: 22%; }

/* Reduce motion: stop the spinning rings + flow pulses for users who opted out */
@media (prefers-reduced-motion: reduce) {
  .memory-graphic .hub::before,
  .memory-graphic .hub::after,
  .memory-graphic .hub-eyebrow .hub-dot {
    animation: none;
  }
  .memory-graphic .links * {
    animation-duration: 0s !important;
  }
}
.memory-text h2 {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 18px;
}
.memory-text p {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 540px;
}
.memory-text p:last-child { margin-bottom: 0; }
.memory-text b {
  color: var(--fg-1);
  font-weight: 500;
}

/* ── How it works panel ─────────────────────────────── */
@keyframes how-stage-in {
  from { opacity: 0.4; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

@keyframes how-sweep {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes how-pulse {
  0%,
  100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.how-workflow {
  padding: 88px 0 96px;
  color: var(--fg-1);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(1, 71, 81, 0.06), transparent 60%),
    var(--color-gray-50);
}
.how-workflow__intro {
  max-width: 720px;
  margin-bottom: 44px;
}
.how-workflow__intro h2 {
  margin: 20px 0 18px;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.how-workflow__intro h2 span:last-child { color: var(--brand-accent); }
.how-workflow__intro p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 720px;
}
.how-panel {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}
.how-rail {
  padding: 22px 18px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.how-step {
  display: flex;
  gap: 15px;
  width: 100%;
  min-height: 96px;
  text-align: left;
  border: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 15px 14px;
  background: transparent;
  transition: background 250ms var(--ease-default);
}
.how-step:hover,
.how-step:focus-visible { background: #f4f7f7; }
.how-step.is-active { background: var(--color-teal-50); }
.how-step__track {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
}
.how-step__number {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  background: #f2f4f4;
  color: var(--fg-3);
  transition:
    background 250ms var(--ease-default),
    color 250ms var(--ease-default),
    box-shadow 250ms var(--ease-default);
}
.how-step.is-complete .how-step__number,
.how-step.is-active .how-step__number {
  background: var(--brand-primary);
  color: white;
}
.how-step.is-active .how-step__number {
  box-shadow: 0 0 0 4px rgba(249, 95, 7, 0.16);
}
.how-step__line {
  width: 2px;
  flex: 1;
  min-height: 18px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--border-default);
  transition: background 300ms ease;
}
.how-step.is-complete .how-step__line { background: var(--color-teal-300); }
.how-step__body { padding-top: 3px; }
.how-step__title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--fg-1);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.how-step__title svg { flex: none; }
.how-step__copy {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-2);
}
.how-stage {
  padding: 26px 30px 30px;
  background: #fcfdfd;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.how-stage__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  min-width: 0;
}
.how-stage__incident {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.how-incident-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fdeceb;
  color: #c92e22;
  border: 1px solid #f7c4bf;
}
.how-incident-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5372a;
  animation: how-pulse 1.8s ease infinite;
}
.how-stage__incident-name {
  font-size: 13px;
  color: var(--fg-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.how-stage__label {
  flex: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.how-progress {
  height: 3px;
  border-radius: 2px;
  background: var(--border-subtle);
  overflow: hidden;
  margin-bottom: 22px;
}
.how-progress span {
  display: block;
  height: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  animation: how-sweep var(--how-dwell, 4500ms) linear infinite;
}
.how-workflow.is-paused .how-progress span { animation: none; transform: scaleX(1); }
.how-stage__panels {
  display: grid;
  flex: 1;
  min-height: 300px;
  position: relative;
}
.how-stage__panel {
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.how-stage__panel.is-active {
  visibility: visible;
  opacity: 1;
  animation: how-stage-in 400ms var(--ease-default);
}
.how-stage__kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.how-log-card {
  background: #0e1517;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.95;
  color: #e7edee;
  overflow-x: auto;
}
.how-log-card > div {
  white-space: nowrap;
}
.how-log-time,
.how-log-muted { color: #6b8186; }
.how-log-error {
  color: #f2a59e;
  font-weight: 600;
}
.how-log-warn {
  color: #fbbf6b;
  font-weight: 600;
}
.how-log-service { color: #e7edee; }
.how-log-count { color: var(--color-orange-400); }
.how-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.how-metric {
  flex: 1;
  min-width: 150px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 13px 15px;
  background: white;
}
.how-metric strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.how-metric span {
  display: block;
  font-size: 12px;
  color: var(--fg-500, #737373);
  margin-top: 2px;
}
.how-metric .how-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  margin: 0 0 6px;
}
.how-metric .how-bars span {
  display: block;
  width: 6px;
  margin: 0;
  border-radius: 1px;
  background: var(--color-teal-100);
  color: transparent;
  font-size: 0;
}
.how-metric .how-bars span:nth-child(1) { height: 30%; }
.how-metric .how-bars span:nth-child(2) { height: 42%; }
.how-metric .how-bars span:nth-child(3) { height: 38%; }
.how-metric .how-bars span:nth-child(4) {
  height: 100%;
  background: var(--brand-accent);
}
.how-stage__panel p {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
}
.how-path {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  margin-bottom: 20px;
  overflow-x: auto;
  white-space: nowrap;
}
.how-path span {
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--color-gray-50);
  color: var(--fg-700, #404040);
  border: 1px solid var(--border-default);
}
.how-path span:nth-child(1) {
  background: #fdeceb;
  color: #c92e22;
  border-color: #f7c4bf;
}
.how-path span:nth-child(even) {
  padding: 0;
  background: transparent;
  border: none;
  color: var(--color-gray-300);
}
.how-path span:nth-child(5) {
  background: var(--color-teal-50);
  color: var(--brand-primary);
  border-color: var(--color-teal-100);
  font-weight: 600;
}
.how-path span:nth-child(7) {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}
.how-deploy-card {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: white;
  padding: 16px 18px;
}
.how-deploy-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.how-deploy-card__head > span:first-of-type {
  font-size: 14px;
  font-weight: 500;
}
.how-deploy-card code,
.how-commit code {
  font-family: 'JetBrains Mono', monospace;
  color: var(--brand-primary);
}
.how-deploy-card__head > span:last-child {
  font-size: 12px;
  color: var(--fg-3);
  font-family: 'JetBrains Mono', monospace;
}
.how-commit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-2);
  flex-wrap: wrap;
}
.how-commit > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.how-commit > span:first-child > span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}
.how-commit > span:nth-child(2) { color: var(--color-gray-300); }
.how-diff {
  background: #0e1517;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}
.how-diff__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--color-teal-900);
}
.how-diff__head > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-teal-100);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.how-diff__head > span:last-child {
  flex: none;
  color: #6b8186;
}
.how-diff__head > span:last-child span:first-child { color: #7fe3ac; }
.how-diff__head > span:last-child span:last-child { color: #f2a59e; }
.how-diff pre {
  margin: 0;
  padding: 16px;
  line-height: 1.85;
  color: #e7edee;
  overflow-x: auto;
}
.how-diff__del,
.how-diff__add {
  display: block;
  margin: 0 -16px;
  padding: 0 16px;
}
.how-diff__del {
  background: rgba(229, 55, 42, 0.16);
  color: #f2a59e;
}
.how-diff__add {
  background: rgba(26, 158, 92, 0.16);
  color: #7fe3ac;
}
.how-pr-card {
  border: 1px solid var(--border-default);
  border-radius: 14px;
  background: white;
  overflow: hidden;
  margin-top: 14px;
}
.how-pr-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-2);
  flex-wrap: wrap;
}
.how-pr-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e6f6ee;
  color: #1a9e5c;
  border: 1px solid #b7e6cd;
  font-weight: 600;
}
.how-pr-card__head > span:nth-child(2) { color: var(--brand-primary); }
.how-pr-card__head > span:nth-child(3) { color: var(--color-gray-300); }
.how-pr-card__body { padding: 16px 18px; }
.how-pr-card .how-pr-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.how-pr-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--fg-500, #737373);
  font-family: 'JetBrains Mono', monospace;
  flex-wrap: wrap;
}
.how-pr-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.how-pr-meta > span:first-child > span {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: var(--brand-primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.how-pr-meta > span:nth-child(2),
.how-pr-meta > span:nth-child(4) { color: var(--color-gray-300); }
.how-pr-meta > span:nth-child(3) span:first-child { color: #1a9e5c; }
.how-pr-meta > span:nth-child(3) span:last-child { color: #e5372a; }
.how-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 16px 0;
  font-size: 12.5px;
  color: var(--fg-700, #404040);
}
.how-checks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.how-checks span:last-child { color: var(--fg-3); }
.how-pr-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.how-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  background: white;
  color: var(--fg-1);
  font-size: 13px;
  font-weight: 500;
}
.how-mini-button--primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
}
.how-route-options {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.how-route-options span:first-child {
  font-size: 13px;
  color: var(--fg-500, #737373);
}
.how-route-options span:not(:first-child) {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: white;
  color: var(--fg-700, #404040);
}

/* ── Pricing ────────────────────────────────────────── */
.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin-bottom: 16px;
  gap: 24px;
  flex-wrap: wrap;
}
.trial-banner .lead {
  display: flex;
  align-items: center;
  gap: 16px;
}
.trial-banner .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--color-orange-50);
  color: var(--brand-accent);
  border: 1px solid rgba(249, 95, 7, 0.2);
  font-family: 'JetBrains Mono', monospace;
}
.trial-banner .lead p {
  margin: 0;
  font-size: 15px;
  color: var(--fg-1);
}
.trial-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pricing-calculator {
  margin: -2px 0 16px;
}
.pricing-calculator__assumptions {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fg-2);
}
.pricing-calculator__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 0 11px 16px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: white;
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms var(--ease-default), border-color 150ms var(--ease-default), transform 150ms var(--ease-default), box-shadow 150ms var(--ease-default);
}
.pricing-calculator__toggle:hover {
  background: var(--color-gray-50);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.pricing-calculator__toggle .icon {
  width: 16px;
  height: 16px;
  transition: transform 150ms var(--ease-default);
}
.pricing-calculator__toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.pricing-calculator__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 24px;
  align-items: stretch;
  max-height: 0;
  padding: 0;
  background: transparent;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height 260ms var(--ease-default), opacity 180ms var(--ease-default), transform 220ms var(--ease-default);
  will-change: max-height, opacity, transform;
}
.pricing-calculator__panel[data-open="true"] {
  max-height: var(--pricing-calculator-panel-height, 1200px);
  opacity: 1;
  transform: translateY(0);
}
.pricing-calculator__panel[hidden] {
  display: none;
}
.pricing-calculator__form {
  min-width: 0;
  padding: 12px 34px 22px;
  border: 1px solid var(--border-default);
  border-radius: 22px;
  background: var(--bg-base);
  box-shadow: var(--shadow-sm);
}
.pricing-calculator__inputs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 6px;
}
.pricing-calculator__inputs-head > span:first-child {
  color: var(--fg-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pricing-calculator__plan-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--color-teal-100);
  border-radius: 999px;
  background: var(--color-teal-50);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.pricing-calculator__plan-chip span {
  color: var(--color-teal-500);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.pricing-calculator__plan-chip b {
  font-weight: 600;
}
.pricing-calculator__sliders {
  display: grid;
  grid-template-columns: 1fr;
  padding-top: 14px;
}
.pricing-calculator__form label {
  display: grid;
  font-size: 13px;
  color: var(--fg-2);
}
.pricing-calculator__range {
  --range-progress: 0%;
  position: relative;
  gap: 16px;
  padding: 19px 0;
  border-top: 1px solid var(--border-subtle);
}
.pricing-calculator__range:first-child {
  border-top: 0;
}
.pricing-calculator__range-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.pricing-calculator__range-copy {
  min-width: 0;
  display: block;
}
.pricing-calculator__range-copy > span {
  display: block;
  color: var(--fg-1);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.25;
}
.pricing-calculator__range-copy small {
  display: block;
  margin-top: 1px;
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}
.pricing-calculator__range-head strong {
  min-width: 64px;
  color: var(--brand-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
  transition: color 120ms var(--ease-default);
}
.pricing-calculator__abacus {
  position: relative;
  display: block;
  height: 30px;
  cursor: grab;
  touch-action: none;
}
.pricing-calculator__abacus.is-dragging {
  cursor: grabbing;
}
.pricing-calculator__rod,
.pricing-calculator__fill,
.pricing-calculator__notches {
  position: absolute;
  top: 50%;
  left: 4px;
  right: 4px;
  transform: translateY(-50%);
}
.pricing-calculator__rod {
  height: 4px;
  border-radius: 999px;
  background: var(--color-gray-200);
}
.pricing-calculator__fill {
  right: auto;
  width: var(--range-progress);
  max-width: calc(100% - 8px);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-teal-500), var(--color-teal-400));
}
.pricing-calculator__notches {
  height: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.pricing-calculator__notches span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--color-gray-300);
  transition: background 120ms var(--ease-default), transform 120ms var(--ease-default);
}
.pricing-calculator__notches span.is-on {
  background: rgba(255, 255, 255, 0.85);
}
.pricing-calculator__bead {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(13px, var(--range-progress), calc(100% - 13px));
  width: 26px;
  height: 26px;
  border: 4px solid var(--color-white);
  border-radius: 999px;
  background: var(--color-teal-700);
  box-shadow:
    0 2px 8px rgba(1, 43, 49, 0.28),
    0 0 0 1px var(--color-teal-700);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 90ms var(--ease-out), box-shadow 120ms var(--ease-default), background 120ms var(--ease-default);
}
.pricing-calculator__abacus:hover .pricing-calculator__bead,
.pricing-calculator__abacus.is-dragging .pricing-calculator__bead {
  background: var(--color-teal-600);
  box-shadow:
    0 4px 14px rgba(1, 43, 49, 0.32),
    0 0 0 1px var(--color-teal-600),
    0 0 0 8px rgba(1, 71, 81, 0.08);
}
.pricing-calculator__abacus.is-dragging .pricing-calculator__bead {
  transform: translate(-50%, -50%) scale(1.06);
}
.pricing-calculator__form input[type="range"] {
  appearance: none;
  position: absolute;
  z-index: 3;
  inset: auto 0 19px;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.pricing-calculator__form input[type="range"]:focus {
  outline: none;
}
.pricing-calculator__range:has(input[type="range"]:focus-visible) .pricing-calculator__bead {
  box-shadow:
    0 4px 14px rgba(1, 43, 49, 0.32),
    0 0 0 1px var(--color-teal-600),
    0 0 0 4px rgba(249, 95, 7, 0.45);
}
.pricing-calculator__result {
  position: relative;
  min-width: 0;
  padding: 30px 32px;
  border: 1px solid var(--color-teal-800);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--color-teal-900), var(--color-teal-800));
  color: white;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-brand);
  overflow: hidden;
}
.pricing-calculator__result::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 240px at 100% 0%, rgba(249, 95, 7, 0.10), transparent 62%);
  pointer-events: none;
}
.pricing-calculator__result > * {
  position: relative;
  z-index: 1;
}
.pricing-calculator__result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.pricing-calculator__result-head span {
  color: var(--color-orange-300);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pricing-calculator__result-head em {
  color: rgba(255, 255, 255, 0.50);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-style: normal;
}
.pricing-calculator__comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 4px 0 22px;
}
.pricing-calculator__cost-block {
  min-width: 0;
  text-align: center;
}
.pricing-calculator__comparison-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.70);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pricing-calculator__cost-block span,
.pricing-calculator__savings > span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pricing-calculator__cost-block strong {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-size: 30px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  overflow-wrap: normal;
  white-space: nowrap;
}
.pricing-calculator__cost-block--after strong {
  color: var(--color-teal-200);
}
.pricing-calculator__cost-block small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.50);
  font-size: 12px;
  line-height: 1.3;
}
.pricing-calculator__savings {
  padding: 22px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  text-align: center;
}
.pricing-calculator__savings-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pricing-calculator__savings strong {
  display: block;
  color: var(--color-orange-400);
  font-size: 54px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 0.95;
  overflow-wrap: normal;
  white-space: nowrap;
}
.pricing-calculator__savings small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid rgba(251, 122, 47, 0.30);
  border-radius: 999px;
  background: rgba(249, 95, 7, 0.16);
  color: var(--color-orange-300);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
}
.pricing-calculator__savings small .icon {
  width: 13px;
  height: 13px;
}
.pricing-calculator__savings p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.4;
}
.pricing-calculator__breakdown {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  padding: 20px 0 6px;
}
.pricing-calculator__breakdown div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
}
.pricing-calculator__breakdown div:nth-last-child(2):nth-child(odd) {
  grid-column: 1 / -1;
}
.pricing-calculator__breakdown dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.35;
}
.pricing-calculator__breakdown dd {
  flex-shrink: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: normal;
  white-space: nowrap;
}
.pricing-calculator__cta {
  margin-top: auto;
  width: 100%;
  min-height: 52px;
  justify-content: center;
  background: white;
  border-color: white;
  color: var(--brand-primary);
  font-size: 15px;
  font-weight: 600;
}
.pricing-calculator__cta:hover {
  background: var(--color-gray-50);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.pricing-calculator__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.50);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.pricing-calculator__trust .icon {
  width: 13px;
  height: 13px;
  color: var(--color-teal-200);
  flex-shrink: 0;
}
.pricing-calculator__assumptions {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -2px 0 0;
  padding: 0;
  border: 0;
  color: var(--fg-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.7;
}
.pricing-calculator__assumptions .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--fg-3);
}
.pricing-section {
  padding: 104px 0 112px;
}
.pricing-section__inner {
  max-width: 1244px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.pricing-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: end;
}
.pricing-intro__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.pricing-intro h2 {
  margin: 0;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.pricing-intro h2 span {
  display: block;
  color: var(--brand-accent);
}
.pricing-intro > p {
  max-width: 420px;
  margin: 0 0 6px;
  color: var(--fg-2);
  font-size: 18px;
  line-height: 1.6;
}
.pricing-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  color: var(--color-white);
  background: var(--brand-primary);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.pricing-plan__usage,
.pricing-plan__included {
  min-width: 0;
  padding: 44px 44px 48px;
}
.pricing-plan__usage {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.pricing-plan__included {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.pricing-plan__label-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}
.pricing-plan__badge {
  padding: 6px 12px;
  color: var(--color-white);
  background: var(--brand-accent);
  border-radius: 999px;
  font: 500 12px/1.2 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pricing-plan__rate {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.pricing-plan__rate strong {
  color: var(--color-white);
  font-size: 76px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.pricing-plan__rate span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
}
.fix-estimator {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}
.fix-estimator__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.fix-estimator__heading label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-white);
  white-space: nowrap;
}
.fix-estimator__count {
  display: flex;
  flex: none;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}
.fix-estimator__count strong {
  color: var(--color-white);
  font: 500 20px/1.2 'JetBrains Mono', monospace;
}
.fix-estimator__count span {
  color: rgba(255, 255, 255, 0.55);
  font: 12px/1.2 'JetBrains Mono', monospace;
}

@container (max-width: 450px) {
  .fix-estimator__heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .fix-estimator__count {
    align-self: stretch;
    justify-content: center;
  }
}

@container (max-width: 340px) {
  .fix-estimator__heading label {
    font-size: clamp(10px, 4.1cqw, 15px);
  }
}
.fix-estimator__slider {
  position: relative;
  height: 24px;
  margin-bottom: -12px;
}
.fix-estimator__range {
  position: absolute;
  inset: -2px 0 auto;
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.fix-estimator__range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-accent) var(--range-progress, 31%), rgba(255, 255, 255, 0.18) var(--range-progress, 31%));
}
.fix-estimator__range::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.fix-estimator__range::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--brand-accent);
}
.fix-estimator__range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -9px;
  appearance: none;
  border: 3px solid var(--brand-primary);
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.fix-estimator__range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--brand-primary);
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.fix-estimator__range:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 4px;
  border-radius: 999px;
}
.fix-estimator__range-labels {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.45);
  font: 12px/1.2 'JetBrains Mono', monospace;
}
.fix-estimator__result {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.fix-estimator__result > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fix-estimator__result > div > span {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font: 12px/1.2 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fix-estimator__result > div > strong {
  color: var(--color-white);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.fix-estimator__result p {
  margin: 0 0 6px;
  color: var(--color-orange-400);
  font-size: 14px;
  line-height: 1.4;
}
.pricing-plan__included-label {
  color: rgba(255, 255, 255, 0.55);
  font: 12px/1.2 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pricing-plan__included ul,
.pricing-enterprise ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pricing-plan__included ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing-plan__included li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.45;
}
.pricing-plan__included li .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--brand-accent);
}
.pricing-plan__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}
.pricing-plan__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 22px;
  color: var(--color-white);
  background: var(--brand-accent);
  border: 1px solid var(--brand-accent);
  border-radius: 12px;
  box-shadow: var(--shadow-accent);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 150ms var(--ease-default), border-color 150ms var(--ease-default), transform 150ms var(--ease-default);
}
.pricing-plan__cta:hover {
  color: var(--color-white);
  background: var(--color-orange-600);
  border-color: var(--color-orange-600);
  transform: translateY(-1px);
}
.pricing-plan__actions p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.55;
}
.pricing-enterprise {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) auto;
  gap: 40px;
  align-items: center;
  padding: 32px 36px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}
.pricing-enterprise__intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pricing-enterprise__intro strong {
  color: var(--fg-1);
  font-size: 18px;
  font-weight: 500;
}
.pricing-enterprise__intro span {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.45;
}
.pricing-enterprise ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px 32px;
}
.pricing-enterprise li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-1);
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}
.pricing-enterprise li .icon {
  color: var(--brand-primary);
}
.pricing-enterprise__cta {
  justify-content: center;
  white-space: nowrap;
}
.integrations-section {
  padding-top: 72px;
}

/* ── Integrations grid ──────────────────────────────── */
.int-board {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.int-catalog {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.int-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.int-tiles[data-expanded="false"] .int-tile:nth-child(n+16) {
  display: none;
}
.int-tile {
  min-height: 126px;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 12px;
  text-align: center;
  transition: border-color 150ms var(--ease-default), transform 150ms var(--ease-default), box-shadow 150ms var(--ease-default);
}
.int-tile:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.int-tile .glyph {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.int-tile .glyph img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.int-tile .name {
  font-size: 14px;
  line-height: 1.25;
  color: var(--fg-1);
  font-weight: 500;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.integration-toggle {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
  background: white;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition:
    background-color 150ms var(--ease-default),
    border-color 150ms var(--ease-default),
    box-shadow 150ms var(--ease-default),
    transform 150ms var(--ease-default);
}
.integration-toggle:hover {
  background: var(--color-gray-50);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.integration-toggle .icon {
  width: 16px;
  height: 16px;
  transition: transform 150ms var(--ease-default);
}
.integration-toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.int-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.int-aside-card {
  padding: 20px 22px;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}
.int-aside-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--brand-primary);
}
.int-aside-card p {
  font-size: 13px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.55;
}

/* ── Security ───────────────────────────────────────── */
.security {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.security h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.security > div > p {
  font-size: 15px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.6;
  max-width: 480px;
}
.security-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-1);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.security-list li:last-child { border-bottom: none; }
.security-list li .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand-primary);
}
.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.comp-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}
.comp-card .seal {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--color-gray-50);
  color: var(--brand-primary);
  margin-bottom: 14px;
  overflow: hidden;
}
.comp-card .seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.compliance-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  margin-bottom: 12px;
  border-radius: 999px;
  border: 1px solid rgba(249, 95, 7, 0.18);
  background: rgba(249, 95, 7, 0.08);
  color: var(--brand-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}
.comp-card h3 {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  margin: 0 0 4px;
}
.comp-card p {
  font-size: 12px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.5;
}

/* ── Final CTA ──────────────────────────────────────── */
.final-cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--color-teal-900) 100%);
  color: white;
  padding: 72px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.final-cta::before {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 95, 7, 0.18), transparent 60%);
  pointer-events: none;
}
.final-cta img.water {
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 360px;
  opacity: 0.08;
  pointer-events: none;
}
.final-cta h2 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
  color: white;
  max-width: 660px;
  text-wrap: balance;
}
.final-cta p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
  line-height: 1.55;
  margin: 0;
}
.final-cta .left {
  position: relative;
  z-index: 1;
  flex: 1;
}
.final-cta .right {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────── */
footer.site-footer {
  padding: 36px 0 56px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 64px;
}
footer.site-footer .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site-footer .brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
footer.site-footer .brand img { height: 22px; display: block; }
footer.site-footer .brand span {
  font-size: 12px;
  color: var(--fg-2);
}
footer.site-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
footer.site-footer nav a {
  font-size: 12px;
  color: var(--fg-2);
}
footer.site-footer nav a:hover { color: var(--brand-primary); }
footer.site-footer .footer-bottom {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer.site-footer .tagline {
  font-size: 12px;
  color: var(--fg-3);
  font-family: 'JetBrains Mono', monospace;
}
footer.site-footer .social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 14px;
  flex-shrink: 0;
}
footer.site-footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  opacity: 0.72;
  transition: opacity 160ms ease, transform 160ms ease;
}
footer.site-footer .social-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}
footer.site-footer .social-links img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

/* SVG sprite — hidden defs */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ── Blog pages ─────────────────────────────────────────────── */
body.blog-page section { padding: 72px 0; }
.blog-hero {
  padding-top: 88px;
  padding-bottom: 40px;
}
.blog-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 48px;
  align-items: end;
  margin-top: 16px;
}
.blog-hero h1 {
  max-width: 900px;
  margin: 0 0 22px;
  font-size: 64px;
  font-weight: 450;
  line-height: 1;
  letter-spacing: 0;
  color: var(--fg-1);
  text-wrap: balance;
}
.blog-hero p {
  max-width: 680px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-2);
}
.blog-hero__note {
  padding: 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-xs);
}
.blog-hero__note span {
  display: block;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
}
.blog-hero__note strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--fg-1);
}
.blog-hero__note p {
  font-size: 14px;
  line-height: 1.55;
}
.blog-listing { padding-top: 28px; }
.blog-list {
  display: grid;
  gap: 16px;
}
.blog-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow-xs);
  transition: transform 160ms var(--ease-default), box-shadow 160ms var(--ease-default);
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.blog-card:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}
.blog-card--with-image {
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
}
.blog-card--text {
  grid-template-columns: 1fr;
}
.blog-card__image {
  min-height: 100%;
  background: var(--color-gray-100);
}
.blog-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  font-size: 12px;
  color: var(--fg-3);
}
.blog-meta span,
.blog-meta time {
  display: inline-flex;
  align-items: center;
}
.blog-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--border-strong);
}
.blog-card h3 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--fg-1);
  text-wrap: balance;
}
.blog-card:hover h3 { color: var(--brand-primary); }
.blog-card p {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.blog-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--color-gray-50);
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  font-size: 11px;
  color: var(--fg-2);
}
.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-primary);
}
.blog-card__link:hover { color: var(--color-teal-800); }

.blog-post-hero {
  padding-top: 72px;
  padding-bottom: 32px;
}
.blog-back {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
}
.blog-back:hover { color: var(--brand-primary); }
.blog-post-hero h1 {
  max-width: 960px;
  margin: 16px 0 20px;
  font-size: 60px;
  font-weight: 450;
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--fg-1);
  text-wrap: balance;
}
.blog-post-summary {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: 19px;
  line-height: 1.62;
  color: var(--fg-2);
}
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 22px;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  font-size: 12px;
  color: var(--fg-3);
}
.blog-post-meta span,
.blog-post-meta time {
  display: inline-flex;
  align-items: center;
}
.blog-post-meta span:not(:first-child)::before,
.blog-post-meta time::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 12px;
  border-radius: 999px;
  background: var(--border-strong);
}
.blog-post-image {
  margin: 34px 0 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--color-teal-900);
  box-shadow: var(--shadow-sm);
}
.blog-post-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}
.blog-post-image figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--fg-3);
  background: white;
}
.blog-post-shell {
  padding-top: 32px;
  padding-bottom: 64px;
}
.blog-post-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 760px);
  gap: 56px;
  align-items: start;
}
.blog-post-layout--no-toc {
  grid-template-columns: minmax(0, 760px);
}
.blog-toc {
  position: sticky;
  top: 96px;
  padding: 18px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.blog-toc__title {
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
}
.blog-toc ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.blog-toc a {
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-2);
}
.blog-toc a:hover { color: var(--brand-primary); }
.blog-toc__item--h3 { padding-left: 14px; }
.blog-post-content {
  min-width: 0;
  color: var(--fg-1);
  overflow-wrap: anywhere;
}
.blog-post-content > *:first-child { margin-top: 0; }
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  scroll-margin-top: 104px;
  color: var(--fg-1);
  text-wrap: balance;
}
.blog-post-content h2 {
  margin: 52px 0 16px;
  padding-top: 4px;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
}
.blog-post-content h3 {
  margin: 34px 0 12px;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}
.blog-post-content h4 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 600;
}
.blog-post-content p,
.blog-post-content li {
  font-size: 17px;
  line-height: 1.78;
  color: var(--fg-2);
}
.blog-post-content p { margin: 0 0 22px; }
.blog-post-content ul,
.blog-post-content ol {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 24px;
}
.blog-post-content strong { color: var(--fg-1); font-weight: 600; }
.blog-post-content .docs-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: white;
}
.blog-post-content table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.blog-post-content th, .blog-post-content td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-subtle); }
.blog-post-content th { background: var(--color-teal-50, #eef6f4); color: var(--fg-1); font-weight: 600; }
.blog-post-content td { color: var(--fg-2); }
.blog-post-content td:first-child { color: var(--fg-1); font-weight: 600; }
.blog-post-content tbody tr:last-child td { border-bottom: 0; }
.blog-post-content .docs-table-scroll:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 4px; }
.blog-post-content a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-decoration-color: rgba(1, 71, 81, 0.28);
  text-underline-offset: 4px;
}
.blog-post-content code {
  padding: 2px 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: white;
  color: var(--color-teal-800);
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  font-size: 0.88em;
}
.blog-post-content pre {
  overflow: auto;
  margin: 30px 0;
  padding: 20px;
  border-radius: 14px;
  background: var(--color-gray-900);
  color: white;
  box-shadow: var(--shadow-sm);
}
.blog-post-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.7;
}
.blog-post-content pre[data-language] { position: relative; padding-top: 44px; tab-size: 4; }
.blog-post-content pre[data-language]::before { content: attr(data-language); position: absolute; top: 11px; left: 20px; color: #9bb2b4; font: 500 11px/1.5 'JetBrains Mono', monospace; }
.blog-post-content .docs-shell-prompts { display: none; }
/* Match the developer docs palette on the existing dark code background. */
.blog-post-content .hljs-comment, .blog-post-content .hljs-quote { color: #9bb2b4; font-style: italic; }
.blog-post-content .hljs-keyword, .blog-post-content .hljs-selector-tag, .blog-post-content .hljs-literal, .blog-post-content .hljs-meta .hljs-keyword { color: #e2b7ff; }
.blog-post-content .hljs-string, .blog-post-content .hljs-regexp, .blog-post-content .hljs-addition, .blog-post-content .hljs-meta .hljs-string { color: #b1e6ad; }
.blog-post-content .hljs-number, .blog-post-content .hljs-symbol, .blog-post-content .hljs-bullet, .blog-post-content .hljs-selector-attr, .blog-post-content .hljs-selector-pseudo { color: #ffd09e; }
.blog-post-content .hljs-title, .blog-post-content .hljs-title.function_, .blog-post-content .hljs-section { color: #8ed8f8; }
.blog-post-content .hljs-built_in, .blog-post-content .hljs-type, .blog-post-content .hljs-title.class_, .blog-post-content .hljs-title.class_.inherited__ { color: #f5d890; }
.blog-post-content .hljs-attr, .blog-post-content .hljs-attribute, .blog-post-content .hljs-property, .blog-post-content .hljs-variable, .blog-post-content .hljs-template-variable, .blog-post-content .hljs-params { color: #c0e5ef; }
.blog-post-content .hljs-meta, .blog-post-content .hljs-tag, .blog-post-content .hljs-name, .blog-post-content .hljs-selector-id, .blog-post-content .hljs-selector-class { color: #f7b397; }
.blog-post-content .hljs-subst, .blog-post-content .hljs-punctuation, .blog-post-content .hljs-operator { color: #daefec; }
.blog-post-content .hljs-deletion { color: #ffaaaa; }
.blog-post-content .hljs-emphasis { font-style: italic; }
.blog-post-content .hljs-strong { font-weight: 700; }
.blog-post-content blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--brand-accent);
  border-radius: 0 12px 12px 0;
  background: white;
  box-shadow: var(--shadow-xs);
}
.blog-post-content blockquote p {
  margin: 0;
  color: var(--fg-1);
}
.blog-post-cta { padding-top: 24px; }

/* ── Legal pages (privacy, terms, DPA) ─────────────── */
body.legal-page section { padding: 56px 0; }
.legal-hero { padding-top: 88px; padding-bottom: 24px; }
.legal-hero h1 {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 14px 0 12px;
  color: var(--fg-1);
  text-wrap: balance;
}
.legal-hero .legal-sub {
  font-size: 14px;
  color: var(--fg-2);
  margin: 0;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
}
.legal-h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg-1);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.legal-card {
  padding: 22px 22px 20px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}
.legal-card h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin: 0 0 10px;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
}
.legal-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}

@media (max-width: 720px) {
  body.legal-page section { padding: 40px 0; }
  .legal-hero { padding-top: 56px; padding-bottom: 16px; }
  .legal-hero h1 { font-size: 38px; }
  .legal-h2 { font-size: 22px; margin-bottom: 18px; padding-bottom: 10px; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-card { padding: 18px; }
}

/* Use the compact header before the desktop links crowd the actions. */
@media (max-width: 1280px) {
  .nav-links { display: none; }
  .nav {
    grid-template-columns: 1fr auto;
  }
  .nav-right {
    grid-column: 2;
  }
  .language-switcher__menu {
    left: auto;
    right: 0;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .mobile-menu {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow-sm);
  }
  .nav--open .mobile-menu {
    display: grid;
  }
  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--fg-2);
    background: var(--color-gray-50);
  }
  .mobile-menu a:hover,
  .mobile-menu a[aria-current="page"] {
    color: var(--fg-1);
    background: var(--color-orange-50);
  }
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 60px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow::before { display: none; }
  .memory { grid-template-columns: 1fr; gap: 36px; }
  /* Keep the design's 1.1/1 ratio at every viewport — the .graphic-stage
     scales uniformly via container queries, so widening the wrapper here
     would clip the bottom of the graph. */
  .how-panel { grid-template-columns: 1fr; }
  .how-rail {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .steps { grid-template-columns: 1fr 1fr; }
  .pricing-plan { grid-template-columns: 1fr; }
  .pricing-plan__included {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }
  .pricing-enterprise {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .pricing-enterprise ul {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pricing-enterprise li { white-space: normal; }
  .pricing-calculator__panel { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .int-board { grid-template-columns: 1fr; }
  .int-tiles { grid-template-columns: repeat(4, 1fr); }
  .int-tiles[data-expanded="false"] .int-tile:nth-child(n+13) { display: none; }
  .security { grid-template-columns: 1fr; }
  .final-cta { flex-direction: column; align-items: stretch; padding: 48px 36px; }
  .final-cta h2 { font-size: 40px; }
  .blog-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .blog-hero h1 { font-size: 52px; }
  .blog-card--with-image { grid-template-columns: 1fr; }
  .blog-post-layout { grid-template-columns: 1fr; gap: 28px; }
  .blog-toc {
    position: static;
    padding: 16px 0;
  }
}

/* ── Mobile (≤720px) — tablets-portrait & phones ──────── */
@media (max-width: 720px) {
  /* Container & section rhythm */
  .container,
  .container-wide { padding: 0 18px; }
  section { padding: 64px 0; }

  /* Nav */
  .nav { padding: 12px 18px; gap: 8px; }
  .nav-brand img { height: 26px; }
  .nav-left { gap: 8px; }
  .language-switcher__summary {
    min-width: 96px;
    max-width: 118px;
    height: 32px;
    padding-left: 10px;
    padding-right: 21px;
  }
  .language-switcher--floating {
    left: 20px;
    bottom: 20px;
  }
  .language-switcher--floating .language-switcher__summary {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    padding: 0;
  }
  .language-switcher--floating .language-switcher__flag {
    width: 28px;
    min-width: 28px;
    height: 28px;
    font-size: 21px;
  }
  .nav-signin { display: none; }
  .nav-right { gap: 8px; }
  .mobile-menu {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  /* Hero */
  .hero { padding: 32px 0 56px; }
  /* Bump line-height — the 0.98 desktop value crashes the two clauses
     together once the type shrinks; ~1.08 gives breathing room without
     introducing a wide gap. */
  .hero h1 { font-size: 40px; line-height: 1.08; }
  .hero-sub { font-size: 17px; }
  .hero-bullets li { font-size: 14px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .team-video {
    margin: 116px auto 64px;
    border-radius: 20px;
  }

  /* Pillars */
  .pillars { gap: 12px; margin-top: 36px; }
  .pillar { padding: 22px; }
  .pillar .stat { font-size: 32px; }
  .pillar .pillar-title { font-size: 15px; }

  /* Section heads */
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 30px; }
  .section-head p { font-size: 15px; }

  /* Quote band */
  .quote-band { padding: 48px 0; }
  .quote-band blockquote { font-size: 22px; }

  /* Workflow stages */
  .stage { padding: 22px; border-radius: 18px; }
  .stage h3 { font-size: 18px; }

  /* Memory section text */
  .memory-text h2 { font-size: 28px; }
  .memory-text p { font-size: 15px; max-width: none; }

  /* How-it-works steps */
  .how-workflow { padding: 64px 0; }
  .how-workflow__intro { margin-bottom: 32px; }
  .how-workflow__intro h2 { font-size: 34px; }
  .how-workflow__intro p { font-size: 15px; }
  .how-panel { border-radius: 18px; }
  .how-rail { padding: 14px; }
  .how-step {
    min-height: auto;
    padding: 13px 12px;
  }
  .how-step__copy { font-size: 12.5px; }
  .how-stage { padding: 20px 16px 18px; }
  .how-stage__top {
    align-items: flex-start;
    flex-direction: column;
  }
  .how-stage__incident {
    width: 100%;
    align-items: flex-start;
  }
  .how-stage__incident-name {
    white-space: normal;
    overflow: visible;
  }
  .how-stage__panels { min-height: 0; }
  .how-log-card,
  .how-diff {
    font-size: 11px;
  }
  .how-log-card > div {
    white-space: normal;
  }
  .how-metric { min-width: 130px; }
  .how-path {
    margin-left: -2px;
    margin-right: -2px;
    padding-bottom: 2px;
  }
  .how-deploy-card__head,
  .how-commit,
  .how-pr-meta,
  .how-checks,
  .how-route-options {
    gap: 8px;
  }
  .how-pr-card__head,
  .how-pr-card__body {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Pricing */
  .pricing-section { padding: 72px 0 80px; }
  .pricing-section__inner { gap: 40px; }
  .pricing-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pricing-intro__title { gap: 16px; }
  .pricing-intro h2 { font-size: 42px; }
  .pricing-intro > p {
    max-width: 620px;
    margin: 0;
    font-size: 16px;
  }
  .pricing-plan { border-radius: 20px; }
  .pricing-plan__usage,
  .pricing-plan__included { padding: 32px 28px 36px; }
  .pricing-plan__rate strong { font-size: 64px; }
  .pricing-enterprise {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
  }
  .pricing-enterprise ul {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
  }
  .pricing-enterprise__cta { width: 100%; }
  .integrations-section { padding-top: 56px; }
  .trial-banner {
    padding: 18px 20px;
    gap: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .trial-banner .lead { gap: 12px; flex-wrap: wrap; }
  .trial-banner .lead p { font-size: 14px; }
  .trial-banner__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .trial-banner .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .pricing-calculator {
    padding: 0;
  }
  .pricing-calculator__toggle {
    width: 100%;
    white-space: normal;
  }
  .pricing-calculator__panel {
    gap: 14px;
    padding: 14px;
  }
  .pricing-calculator__form {
    padding: 8px 22px 18px;
  }
  .pricing-calculator__result {
    padding: 26px 22px;
  }
  .pricing-calculator__sliders {
    grid-template-columns: 1fr;
  }
  .pricing-calculator__inputs-head {
    align-items: flex-start;
  }
  .pricing-calculator__range-head {
    align-items: flex-start;
  }
  .pricing-calculator__comparison {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .pricing-calculator__comparison-arrow {
    transform: rotate(90deg);
  }
  .pricing-calculator__cost-block {
    text-align: left;
  }
  .pricing-calculator__breakdown {
    grid-template-columns: 1fr;
  }
  .pricing-calculator__savings strong {
    font-size: 44px;
  }
  /* Integrations */
  .int-board { gap: 24px; }
  .int-tiles { grid-template-columns: repeat(3, 1fr); }
  .int-tiles[data-expanded="false"] .int-tile:nth-child(n+10) { display: none; }
  .int-tile { min-height: 112px; padding: 14px 8px; gap: 8px; }
  .int-tile .glyph { width: 44px; height: 44px; }
  .int-tile .glyph img { width: 32px; height: 32px; }
  .int-tile .name { font-size: 12px; }
  .int-aside-card { padding: 18px 20px; }

  /* Security */
  .security { gap: 36px; }
  .security h3 { font-size: 20px; }
  .security-list li { font-size: 14px; }
  .compliance-grid { grid-template-columns: 1fr; }

  /* Final CTA */
  .final-cta {
    padding: 36px 24px;
    border-radius: 20px;
  }
  .final-cta h2 { font-size: 28px; }
  .final-cta p { font-size: 15px; }
  .final-cta .right { width: 100%; }
  .final-cta .right .btn-on-dark,
  .final-cta .right .btn-ghost-light {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  footer.site-footer {
    padding: 28px 0 40px;
    margin-top: 40px;
  }
  footer.site-footer .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  footer.site-footer nav { gap: 12px 18px; }
  footer.site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  footer.site-footer .social-links { gap: 14px; }

  /* Blog */
  body.blog-page section { padding: 48px 0; }
  .blog-hero {
    padding-top: 48px;
    padding-bottom: 20px;
  }
  .blog-hero h1,
  .blog-post-hero h1 {
    font-size: 36px;
    line-height: 1.08;
  }
  .blog-hero p,
  .blog-post-summary {
    font-size: 16px;
  }
  .blog-hero__note,
  .blog-card__body {
    padding: 20px;
  }
  .blog-card h3 {
    font-size: 24px;
  }
  .blog-card p {
    font-size: 15px;
  }
  .blog-post-hero {
    padding-top: 44px;
    padding-bottom: 20px;
  }
  .blog-post-content h2 {
    margin-top: 38px;
    font-size: 27px;
  }
  .blog-post-content h3 {
    font-size: 21px;
  }
  .blog-post-content p,
  .blog-post-content li {
    font-size: 16px;
    line-height: 1.72;
  }
  .blog-post-shell {
    padding-top: 20px;
    padding-bottom: 44px;
  }
  .blog-post-cta .final-cta {
    padding: 32px 22px;
  }
}

@media (max-width: 640px) {
  .fix-estimator { padding: 18px 16px; }
  .fix-estimator__heading { align-items: flex-start; flex-direction: column; }
  .fix-estimator__count { align-self: stretch; justify-content: center; }
  .fix-estimator__result { align-items: flex-start; flex-direction: column; gap: 14px; }
}

/* ── Narrow phones (≤480px) ───────────────────────────── */
@media (max-width: 480px) {
  .nav { padding: 10px 14px; gap: 6px; }
  .nav-brand img { height: 22px; }
  .nav-left { gap: 6px; }
  .language-switcher__summary {
    min-width: 78px;
    max-width: 92px;
    height: 30px;
    font-size: 11px;
  }
  .language-switcher__flag {
    width: 22px;
    min-width: 22px;
    height: 22px;
    font-size: 16px;
  }
  .language-switcher--floating {
    left: 20px;
    bottom: 20px;
  }
  .language-switcher--floating .language-switcher__summary {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
  }
  .language-switcher--floating .language-switcher__flag {
    width: 28px;
    min-width: 28px;
    height: 28px;
    font-size: 21px;
  }
  .nav-right .btn-primary {
    padding: 10px 12px;
    font-size: 13px;
  }
  .nav-right { gap: 6px; }
  .nav-right .btn-primary .icon { display: none; }
  .nav__toggle {
    width: 38px;
    height: 38px;
  }

  .hero { padding: 24px 0 44px; }
  .hero h1 { font-size: 34px; line-height: 1.12; }
  .hero-sub { font-size: 16px; margin-bottom: 22px; }
  .hero-bullets { margin-bottom: 26px; }


  .pillars { margin-top: 28px; }
  .pillar { padding: 20px; }
  .pillar .stat { font-size: 28px; }
  .pillar .stat .small { font-size: 14px; }

  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 26px; }
  .section-head p { font-size: 14px; }
  .blog-hero h1,
  .blog-post-hero h1 { font-size: 32px; }
  .blog-meta,
  .blog-post-meta { gap: 8px 12px; }
  .blog-tags span { font-size: 10px; }

  .quote-band { padding: 36px 0; }
  .quote-band blockquote { font-size: 19px; }

  .stage { padding: 20px; }

  .memory-text h2 { font-size: 24px; }

  .step { padding: 20px 18px; }

  .pricing-intro h2 { font-size: 36px; }
  .pricing-plan__usage,
  .pricing-plan__included { padding: 26px 20px 30px; }
  .pricing-plan__label-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .pricing-plan__rate {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .pricing-plan__rate strong { font-size: 58px; }
  .fix-estimator { padding: 22px 18px 20px; }
  .fix-estimator__heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .fix-estimator__count { align-self: stretch; justify-content: center; }
  .fix-estimator__result { align-items: flex-start; flex-direction: column; }
  .fix-estimator__result > div > strong { font-size: 40px; }
  .pricing-enterprise { padding: 24px 20px; }
  .pricing-enterprise ul { grid-template-columns: 1fr; }
  .pricing-calculator {
    padding: 0;
  }
  .pricing-calculator__result {
    padding: 24px 20px;
  }
  .pricing-calculator__cost-block strong {
    font-size: 26px;
  }
  .pricing-calculator__savings strong {
    font-size: 40px;
  }

  .int-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .int-tiles[data-expanded="false"] .int-tile:nth-child(n+7) { display: none; }
  .int-tile { min-height: 104px; }
  .int-tile .glyph { width: 40px; height: 40px; }
  .int-tile .glyph img { width: 28px; height: 28px; }
  .integration-toggle { width: 100%; }

  .final-cta { padding: 30px 20px; border-radius: 18px; }
  .final-cta h2 { font-size: 24px; }
  .final-cta p { font-size: 14px; }
}

/* ============================================================
   STATUS PAGE (/status)
   Public system-status — minimal topbar, hero, KPI metrics,
   90-day component timelines, incident history.
   ============================================================ */
body.status-page {
  background: var(--color-gray-50);
  background-image: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(1, 71, 81, 0.04), transparent 60%);
}

/* ── Topbar ────────────────────────────────────────────────── */
.status-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.status-topbar .nav-brand img { height: 26px; display: block; }
.status-topbar__right { display: flex; align-items: center; gap: 18px; }
.status-help-link {
  font-size: 13px;
  color: var(--fg-2);
  font-weight: 500;
  transition: color 150ms var(--ease-default);
}
.status-help-link:hover { color: var(--brand-primary); }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
}
.status-pill .ping { width: 6px; height: 6px; border-radius: 50%; }
.status-pill.ok    { background: rgba(26, 158, 92, 0.10); color: #157a48; }
.status-pill.ok .ping   { background: #1a9e5c; box-shadow: 0 0 0 3px rgba(26, 158, 92, 0.18); }
.status-pill.warn  { background: rgba(245, 158, 11, 0.12); color: #9a6d00; }
.status-pill.warn .ping { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.20); animation: status-pulse 1.6s ease-in-out infinite; }
.status-pill.bad   { background: rgba(229, 55, 42, 0.10); color: #c13226; }
.status-pill.bad .ping  { background: #e5372a; box-shadow: 0 0 0 3px rgba(229, 55, 42, 0.20); animation: status-pulse 1.6s ease-in-out infinite; }

@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.15); }
}

/* ── Layout ────────────────────────────────────────────────── */
.status-main {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  padding: 40px 32px 0;
}
.status-stack { display: flex; flex-direction: column; gap: 24px; }

/* ── Hero ──────────────────────────────────────────────────── */
.status-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(13, 13, 13, 0.04);
}
.status-hero__copy { min-width: 0; }
.status-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: #e9f7ef; color: #0f6b3f;
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.status-hero[data-overall="degraded"] .status-hero__badge { background: #fef9ec; color: #9a6d00; }
.status-hero[data-overall="outage"]   .status-hero__badge { background: #fdecea; color: #c13226; }
.status-hero__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1a9e5c; box-shadow: 0 0 0 4px rgba(26, 158, 92, 0.13);
  display: inline-block;
}
.status-hero[data-overall="degraded"] .status-hero__dot {
  background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
  animation: status-pulse 1.6s ease-in-out infinite;
}
.status-hero[data-overall="outage"] .status-hero__dot {
  background: #e5372a; box-shadow: 0 0 0 4px rgba(229, 55, 42, 0.13);
  animation: status-pulse 1.6s ease-in-out infinite;
}
.status-hero__title {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--fg-1);
  text-wrap: balance;
}
.status-hero__sub {
  font-size: 15px;
  color: var(--fg-2);
  margin: 12px 0 0;
  max-width: 640px;
  line-height: 1.6;
}
.status-hero__sub strong { color: var(--fg-1); font-weight: 500; }
.status-hero__actions {
  display: flex; flex-direction: column; gap: 10px;
}

.status-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px;
  font-size: 13px; font-weight: 500;
  font-family: 'Lexend', sans-serif;
  cursor: pointer;
  transition: background-color 150ms var(--ease-default), filter 150ms var(--ease-default);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.status-btn--primary {
  background: var(--brand-primary);
  color: white;
  box-shadow: 0 4px 24px rgba(1, 71, 81, 0.25);
}
.status-btn--primary:hover { background: var(--color-teal-800); }
.status-btn--ghost {
  background: white;
  color: var(--fg-1);
  border-color: var(--border-default);
}
.status-btn--ghost:hover { background: var(--color-gray-50); }
.status-btn.is-spinning .icon { animation: status-spin 600ms linear; }
@keyframes status-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── KPI metrics ───────────────────────────────────────────── */
.status-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.metric-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(13, 13, 13, 0.04);
}
.metric-card__label {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--fg-2);
}
.metric-card__value-row {
  display: flex; align-items: baseline; gap: 6px; margin-top: 10px;
}
.metric-card__value {
  font-size: 32px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--fg-1);
  line-height: 1;
}
.metric-card__unit {
  font-size: 14px; color: var(--fg-2); font-weight: 400;
}
.metric-card__delta {
  margin-left: auto;
  font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 3px;
}
.metric-card__delta--good    { color: #0f6b3f; }
.metric-card__delta--bad     { color: #c13226; }
.metric-card__delta--neutral { color: var(--fg-2); }
.metric-card__foot {
  font-size: 12px; color: var(--fg-2);
  margin: 10px 0 0; line-height: 1.4;
}
.sparkline {
  display: flex; align-items: flex-end; gap: 2px;
  height: 32px; margin-top: 12px;
}
.sparkline__bar {
  flex: 1 1 0;
  border-radius: 1.5px;
  min-width: 2px;
}

/* ── Components card ───────────────────────────────────────── */
.components-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(13, 13, 13, 0.04);
  overflow: hidden;
}
.components-card__head {
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.components-card__title { font-size: 18px; margin: 0; font-weight: 500; }
.components-card__sub {
  font-size: 13px; color: var(--fg-2);
  margin: 4px 0 0; line-height: 1.5;
}
.status-legend {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 12px; color: var(--fg-2);
  flex-wrap: wrap;
}
.status-legend__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--color-gray-50);
  border: 1px solid var(--border-subtle);
}
.status-legend__dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status-legend__dot[data-status="operational"] { background: #1a9e5c; }
.status-legend__dot[data-status="degraded"]    { background: #f59e0b; }
.status-legend__dot[data-status="outage"]      { background: #e5372a; }
.status-legend__dot[data-status="maintenance"] { background: #047585; }

.components-list { display: block; }
.component-row {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 24px;
}
.component-row__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.component-row__title {
  display: flex; align-items: center; gap: 14px; min-width: 0;
}
.component-row__icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--color-gray-50);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-2); flex-shrink: 0;
}
.component-row__icon .icon { width: 16px; height: 16px; }
.component-row__meta { min-width: 0; }
.component-row__name-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.component-row__name {
  font-size: 15px; font-weight: 500; color: var(--fg-1);
}
.component-row__desc {
  font-size: 12px; color: var(--fg-2);
  margin-top: 2px; line-height: 1.4;
}
.component-row__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.component-row__status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.component-row__timeline { margin-top: 14px; }
.uptime-strip {
  display: flex; gap: 2px; align-items: stretch;
}
.uptime-bar {
  flex: 1 1 0;
  height: 32px;
  border-radius: 2px;
  cursor: default;
  transition: transform 120ms var(--ease-default), opacity 120ms var(--ease-default);
  min-width: 2px;
}
.uptime-bar:hover { transform: scaleY(1.1); opacity: 1 !important; }
.component-row__legend {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--fg-3);
  margin-top: 8px;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
}
.component-row__uptime { color: var(--fg-2); }

/* ── Incidents history ─────────────────────────────────────── */
.incidents-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(13, 13, 13, 0.04);
  overflow: hidden;
}
.incidents-card__head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.incidents-card__title { font-size: 18px; margin: 0; font-weight: 500; }
.incidents-card__sub {
  font-size: 13px; color: var(--fg-2);
  margin: 4px 0 0;
}
.incidents-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--color-gray-100);
  border-radius: 999px; border: 1px solid var(--border-subtle);
}
.incidents-tabs__btn {
  padding: 6px 14px; border-radius: 999px;
  background: transparent; border: none;
  cursor: pointer; font-size: 12px; font-weight: 400;
  color: var(--fg-2);
  font-family: 'Lexend', sans-serif;
}
.incidents-tabs__btn.is-active {
  background: white; font-weight: 500;
  color: var(--brand-primary);
  box-shadow: 0 1px 3px rgba(1, 71, 81, 0.10);
}

.incidents-list { display: block; }
.incidents-day {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
}
.incidents-day.is-first { border-top: none; }
.incidents-day__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.incidents-day__date {
  font-size: 13px; font-weight: 500; color: var(--fg-1);
}
.incidents-day__weekday {
  font-size: 11px; color: var(--fg-3);
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  letter-spacing: 0.04em;
}
.incidents-day__none {
  font-size: 13px; color: var(--fg-2);
  padding: 10px 14px;
  background: var(--color-gray-50);
  border-radius: 10px;
  display: inline-flex; align-items: center; gap: 8px;
}
.incidents-day__none-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #1a9e5c; display: inline-block;
}
.incidents-day__list {
  display: flex; flex-direction: column; gap: 10px;
}
.incident-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  align-items: center;
  color: inherit;
  transition: background-color 150ms var(--ease-default), border-color 150ms var(--ease-default);
}
.incident-row:hover {
  background: var(--color-gray-50);
  border-color: var(--border-default);
  color: inherit;
}
.incident-row .icon {
  width: 14px; height: 14px; color: var(--fg-3);
}
.incident-row__sev {
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; white-space: nowrap;
}
.incident-row__title {
  font-size: 14px; font-weight: 500; color: var(--fg-1);
  margin-bottom: 2px;
}
.incident-row__meta {
  font-size: 12px; color: var(--fg-2);
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
}

.incidents-card__more {
  display: block;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  background: var(--color-gray-50);
  font-size: 13px; color: var(--brand-primary);
  font-weight: 500;
}
.incidents-card__more .icon {
  width: 13px; height: 13px;
  margin-left: 6px; vertical-align: middle;
}

/* ── Status-page footer spacing ────────────────────────────── */
body.status-page .site-footer {
  margin-top: 48px;
  padding: 24px 32px 32px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .status-metrics { grid-template-columns: 1fr 1fr; }
  .status-metrics > .metric-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .status-main { padding: 24px 16px 0; }
  .status-topbar { padding: 14px 16px; }
  .status-help-link { display: none; }
  .status-pill .status-pill__label { display: none; }
  .status-pill { padding: 6px; }
  .status-pill .ping { width: 8px; height: 8px; }
  .status-hero { grid-template-columns: 1fr !important; padding: 24px !important; }
  .status-hero__title { font-size: 28px; }
  .status-hero__actions { flex-direction: row; }
  .status-hero__actions .status-btn { flex: 1 1 0; }
  .status-metrics { grid-template-columns: 1fr; }
  .status-legend { display: none; }
  .component-row { padding: 18px 16px; }
  .component-row__head { grid-template-columns: 1fr; }
  .component-row__status { justify-self: start; }
  .components-card__head, .incidents-card__head { padding: 18px 16px; }
  .incidents-day { padding: 18px 16px; }
  .incident-row { grid-template-columns: auto 1fr; }
  .incident-row .icon { display: none; }
}

.pip-results-link { text-align: center; font-size: 14px; }
.pip-results-link a { text-decoration: underline; }
.fix-definition { color: var(--fg-2); font-size: 15px; }
.faq-item { border-bottom: 1px solid var(--border-default); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 500; }
.faq-item p { max-width: 80ch; line-height: 1.7; color: var(--fg-2); }
