/* ============================================================
   DROBOAI
   ============================================================ */

:root {
  --bg: #060608;
  --surface: #111114;
  --surface2: #18181c;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.12);
  --brand: #2563eb;
  --brand-light: #60a5fa;
  --brand-soft: rgba(37, 99, 235, 0.14);
  --brand-border: rgba(37, 99, 235, 0.35);
  --brand-glow: rgba(37, 99, 235, 0.12);
  --prose-link: var(--brand-light);
  --prose-link-hover: #93c5fd;
  --prose-link-underline: rgba(37, 99, 235, 0.28);
  --red: var(--brand);
  --text: #f4f4f5;
  --text-2: #9b9ba4;
  --text-3: #5c5c66;
  --nav-h: 4rem;
  --nav-logo-h: 2.375rem;
  /* Shared pill tokens — guest mega nav + logged-in unified nav */
  --nav-menu-pad: 0.28rem;
  --nav-link-pad-y: 0.42rem;
  --nav-link-pad-x: 0.85rem;
  --nav-link-font-size: 0.8125rem;
  --nav-pill-inner-h: calc(var(--nav-link-pad-y) * 2 + var(--nav-link-font-size) * 1.6);
  --nav-chip-h: calc(var(--nav-menu-pad) * 2 + var(--nav-pill-inner-h) + 2px);
  --nav-action-height: var(--nav-chip-h);
  --container: 72rem;
  --pad: 1.5rem;
  --r: 12px;
  --r-lg: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --logo-ratio: 967 / 353;
  --scrollbar-size: 6px;
  --scrollbar-thumb: rgba(255, 255, 255, 0.14);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.26);
  --scrollbar-thumb-active: rgba(37, 99, 235, 0.48);
  --scrollbar-track: transparent;
  --glass-highlight: rgba(255, 255, 255, 0.06);
  --glass-fill: rgba(12, 12, 16, 0.52);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(48px) saturate(1.35);
  /* Full-page blue ambient — shared with docs, landing, and marketing pages */
  --page-glow-primary: rgba(37, 99, 235, 0.11);
  --page-glow-secondary: rgba(37, 99, 235, 0.07);
  --page-glow-blur: 0px;
}

@media (min-width: 1024px) {
  :root {
    --nav-logo-h: 2.75rem;
  }
}

@media (max-width: 1023px) {
  :root { --pad: 20px; }
}

@media (max-width: 374px) {
  :root { --pad: 16px; }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-gutter: stable;
}

@media (max-width: 1023px) {
  html {
    scrollbar-gutter: auto;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    max-width: 100%;
    overflow-x: hidden;
  }
}

*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
  -webkit-appearance: none;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  min-height: 32px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-thumb:active {
  background-color: var(--scrollbar-thumb-active);
}

*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:vertical:start:decrement,
*::-webkit-scrollbar-button:vertical:end:increment,
*::-webkit-scrollbar-button:horizontal:start:decrement,
*::-webkit-scrollbar-button:horizontal:end:increment {
  display: none;
  width: 0;
  height: 0;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.has-nav-offset main {
  padding-top: var(--nav-h);
}

/* Fixed nav sits above content — opt out on landing/auth/onboarding (they handle offset locally) */
body:not(.landing-page):not(.auth-page):not(.onboarding-page):not(.forum-page):not(.docs-page):not(.content-page):not(.legal-page):not(.dashboard-page):not(.plans-page):not(.download-page):not(.updates-page):not(.admin-page):not(.affiliate-page):not(.billing-page) main {
  padding-top: var(--nav-h);
}

/* ============================================================
   PAGE AMBIENT GLOW (docs-style blue light)
   ============================================================ */

body.landing-page,
body.download-page,
body.plans-page,
body.updates-page,
body.docs-page,
body.content-page,
body.legal-page,
body.dashboard-page,
body.forum-page {
  position: relative;
}

body.landing-page::before,
body.download-page::before,
body.plans-page::before,
body.updates-page::before,
body.forum-page::before,
body.docs-page::before,
body.content-page::before,
body.legal-page::before,
body.dashboard-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 140% 95% at 8% -8%,
      rgba(37, 99, 235, 0.12) 0%,
      rgba(37, 99, 235, 0.065) 26%,
      rgba(37, 99, 235, 0.028) 46%,
      rgba(37, 99, 235, 0.008) 58%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 110% 78% at 92% 2%,
      rgba(37, 99, 235, 0.085) 0%,
      rgba(37, 99, 235, 0.04) 30%,
      rgba(37, 99, 235, 0.014) 50%,
      transparent 68%
    );
  transform: translateZ(0);
}

body.landing-page main,
body.landing-page .site-footer,
body.download-page main,
body.download-page .site-footer,
body.download-page .app-footer,
body.plans-page main,
body.plans-page .app-footer,
body.updates-page main,
body.updates-page .site-footer,
body.updates-page .app-footer,
body.docs-page main,
body.docs-page .site-footer,
body.docs-page .app-footer,
body.content-page main,
body.content-page .site-footer,
body.legal-page main,
body.legal-page .site-footer,
body.legal-page .app-footer,
body.dashboard-page main,
body.dashboard-page .app-footer,
body.forum-page main,
body.forum-page .site-footer,
body.forum-page .app-footer {
  position: relative;
  z-index: 1;
}

body.dashboard-page {
  --page-glow-primary: rgba(37, 99, 235, 0.07);
  --page-glow-secondary: rgba(37, 99, 235, 0.04);
}

img, svg { display: block; }
img:not(.logo-img) { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button:not(:disabled),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
[role="button"]:not([aria-disabled="true"]) {
  cursor: pointer;
}
button:disabled,
[type="submit"]:disabled {
  cursor: not-allowed;
}
ul { list-style: none; }

input,
textarea,
select {
  font: inherit;
  color: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
textarea,
select {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"])::placeholder,
textarea::placeholder {
  color: rgba(92, 92, 102, 0.85);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):hover,
textarea:hover,
select:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
  outline: none;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---- Logo ---- */
.logo-img {
  width: auto;
  max-width: none;
  object-fit: contain;
}
.logo-img--nav {
  height: var(--nav-logo-h);
  max-height: var(--nav-logo-h);
  width: auto;
}
.logo-img--footer {
  height: 1.375rem;
  width: auto;
  opacity: 0.85;
}

/* ---- Type ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin-bottom: 1rem;
}

/* ---- Buttons ---- */
.btn-primary:not(.nav-pill),
.btn-secondary:not(.nav-pill),
.btn-ghost:not(.nav-pill) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary:not(.nav-pill) {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn-primary:not(.nav-pill):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}
.btn-primary:not(.nav-pill):focus,
.btn-primary:not(.nav-pill):focus-visible {
  outline: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn-primary:not(.nav-pill):hover:focus-visible {
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}
.btn-secondary:not(.nav-pill) {
  background: var(--surface);
  border-color: var(--border2);
  color: var(--text);
}
.btn-secondary:not(.nav-pill):hover {
  background: var(--surface2);
  transform: translateY(-2px);
}
.btn-ghost:not(.nav-pill) {
  color: var(--text-2);
  border-color: var(--border);
  background: transparent;
}
.btn-ghost:not(.nav-pill):hover {
  color: var(--text);
  border-color: var(--border2);
}
.btn-primary.btn-sm:not(.nav-pill) { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Prose/link blocks must not override button label colors */
:is(.docs-section, .docs-markdown, .legal-section, .forum-prose, .page-faq-body) a.btn-primary {
  color: #fff;
  text-decoration: none;
}
:is(.docs-section, .docs-markdown, .legal-section, .forum-prose, .page-faq-body) a.btn-primary:hover {
  color: #fff;
}
:is(.docs-section, .docs-markdown, .legal-section, .forum-prose, .page-faq-body) a.btn-secondary {
  color: var(--text);
  text-decoration: none;
}
:is(.docs-section, .docs-markdown, .legal-section, .forum-prose, .page-faq-body) a.btn-secondary:hover {
  color: var(--text);
}
:is(.docs-section, .docs-markdown, .legal-section, .forum-prose, .page-faq-body) a.btn-ghost {
  color: var(--text-2);
  text-decoration: none;
}
:is(.docs-section, .docs-markdown, .legal-section, .forum-prose, .page-faq-body) a.btn-ghost:hover {
  color: var(--text);
}

/* Nav download — outer shell matches .nav-menu; gradient lives on inner link only */
.site-nav .nav-actions > .nav-download-shell,
.site-nav .nav-actions > a.nav-download-shell {
  display: inline-flex;
  align-items: center;
  height: var(--nav-chip-h);
  min-height: var(--nav-chip-h);
  max-height: var(--nav-chip-h);
  padding: var(--nav-menu-pad);
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 24px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.site-nav .nav-actions > .nav-download-shell:hover,
.site-nav .nav-actions > a.nav-download-shell:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.16);
}

.site-nav .nav-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: var(--nav-pill-inner-h);
  min-height: var(--nav-pill-inner-h);
  max-height: var(--nav-pill-inner-h);
  padding: 0 var(--nav-link-pad-x);
  box-sizing: border-box;
  border-radius: 999px;
  font-size: var(--nav-link-font-size);
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(135deg, #6366f1 0%, #2563eb 50%, #1d4ed8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(37, 99, 235, 0.28);
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.site-nav .nav-actions > a.nav-download-shell:hover .nav-download-link {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(37, 99, 235, 0.38);
}

.site-nav .nav-download-link .ti,
.site-nav .nav-download-link .ti::before {
  font-size: 0.8125rem;
  line-height: 1;
  opacity: 0.95;
}

/* Legacy nav download pill (drawer / old markup) */
.site-nav .nav-actions > a.nav-pill.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: var(--nav-chip-h);
  min-height: var(--nav-chip-h);
  max-height: var(--nav-chip-h);
  padding: 0 var(--nav-link-pad-x);
  box-sizing: border-box;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: var(--nav-link-font-size);
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1 0%, #2563eb 50%, #1d4ed8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(37, 99, 235, 0.28);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s;
}

.site-nav .nav-actions > a.nav-pill.btn-download:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(37, 99, 235, 0.38),
    0 3px 10px rgba(37, 99, 235, 0.22);
}

.site-nav .nav-actions > a.nav-pill.btn-download i,
.site-nav .nav-actions > a.nav-pill.btn-download .ti::before {
  font-size: 0.8125rem;
  line-height: 1;
  opacity: 0.95;
}

/* Nav account pill — shared shell height with .nav-menu */
.nav-actions .nav-pill:not(.btn-download) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: var(--nav-chip-h);
  min-height: var(--nav-chip-h);
  max-height: var(--nav-chip-h);
  padding: 0 var(--nav-link-pad-x) !important;
  box-sizing: border-box;
  border-radius: 999px !important;
  font-size: var(--nav-link-font-size) !important;
  font-weight: 550 !important;
  letter-spacing: 0.01em;
  line-height: 1 !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-download:not(.nav-pill):hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 28px rgba(37, 99, 235, 0.48),
    0 0 0 1px rgba(255, 120, 120, 0.35);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---- Nav ---- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  width: 100%;
  max-width: 100vw;
  min-height: var(--nav-h);
  background: rgba(6, 6, 8, 0.42);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  overflow: visible;
}
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 35%,
    rgba(37, 99, 235, 0.45) 50%,
    rgba(255, 255, 255, 0.14) 65%,
    transparent 100%
  );
  opacity: 0.55;
  pointer-events: none;
}
.site-nav::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08) 25%,
    rgba(255, 255, 255, 0.08) 75%,
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.site-nav.scrolled,
body.mega-open .site-nav {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 12, 0.88);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.site-nav.scrolled::after,
body.mega-open .site-nav::after {
  opacity: 1;
}
.nav-bar {
  position: relative;
  z-index: 2;
  height: var(--nav-h);
  min-height: var(--nav-h);
  flex-shrink: 0;
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  height: var(--nav-h);
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: var(--nav-h);
  line-height: 0;
  opacity: 0.96;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-logo .logo-img--nav {
  display: block;
  height: var(--nav-logo-h);
  max-height: var(--nav-logo-h);
  width: auto;
  flex-shrink: 0;
  margin-block: 0;
}
.nav-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Logo left · pill nav + actions grouped on the right */
.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-menu,
.app-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
  margin: 0;
  height: var(--nav-chip-h);
  padding: var(--nav-menu-pad);
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 24px rgba(0, 0, 0, 0.12);
}
.nav-menu-item { margin: 0; }
.nav-trigger,
.nav-link--plain,
.app-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: var(--nav-pill-inner-h);
  min-height: var(--nav-pill-inner-h);
  max-height: var(--nav-pill-inner-h);
  padding: 0 var(--nav-link-pad-x);
  box-sizing: border-box;
  font-family: inherit;
  font-size: var(--nav-link-font-size);
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 1;
  color: rgba(244, 244, 245, 0.72);
  background: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.nav-trigger:hover,
.nav-link--plain:hover,
.app-nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}
.nav-trigger[aria-expanded="true"],
.nav-link--plain.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.nav-chevron {
  font-size: 0.75rem;
  opacity: 0.65;
  margin-top: 1px;
  transition: transform 0.28s var(--ease), opacity 0.2s;
}
.nav-trigger:hover .nav-chevron,
.nav-trigger[aria-expanded="true"] .nav-chevron {
  opacity: 1;
}
.nav-trigger[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}
.nav-link {
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-actions {
  --nav-action-height: var(--nav-chip-h);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: 0.65rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-text-link {
  display: inline-flex;
  align-items: center;
  height: var(--nav-pill-inner-h);
  font-size: var(--nav-link-font-size);
  font-weight: 550;
  line-height: 1;
  color: rgba(244, 244, 245, 0.72);
  padding: 0 0.75rem;
  box-sizing: border-box;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.22s var(--link-ease, var(--ease-out)), background 0.22s var(--link-ease, var(--ease-out)), transform 0.22s var(--link-ease, var(--ease-out));
}
.nav-text-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
.nav-text-link--signup {
  color: var(--brand-light);
}
.nav-text-link--signup:hover {
  color: #fff;
  background: rgba(37, 99, 235, 0.12);
}

/* Logged-in user menu */
.nav-user-menu {
  position: relative;
  z-index: 250;
}

.nav-user-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  max-width: 13rem;
  margin: 0;
  padding: 0 0.85rem 0 0.5rem !important;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.nav-actions .nav-user-trigger.nav-pill {
  padding: 0 0.85rem 0 0.5rem !important;
}

.nav-user-trigger:hover,
.nav-user-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.nav-user-avatar {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 999px;
  object-fit: cover;
  border: none;
  flex-shrink: 0;
}

.nav-user-avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.85), rgba(180, 40, 40, 0.95));
  border: none;
}

.nav-user-name {
  font-size: inherit;
  font-weight: inherit;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-chevron {
  font-size: 1rem;
  line-height: 1;
  color: rgba(244, 244, 245, 0.55);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}

.nav-user-trigger[aria-expanded="true"] .nav-user-chevron {
  transform: rotate(180deg);
}

.nav-user-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 260;
  min-width: 16.75rem;
  max-height: min(36rem, calc(100dvh - var(--nav-h) - 1rem));
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 6, 8, 0.98);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 20px 52px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.22s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.22s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.nav-user-panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.nav-user-panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.nav-user-panel[hidden] {
  display: none !important;
}

.nav-user-panel-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.nav-user-panel-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-user-panel-avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.85), rgba(120, 50, 180, 0.9));
}

.nav-user-panel-copy {
  min-width: 0;
  flex: 1;
}

.nav-user-panel-name {
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-panel-handle {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  color: #a9c2ff;
  margin-top: 0.12rem;
}

.nav-user-panel-email {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #b8c2d9;
  margin-top: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-panel-body {
  padding: 0.5rem 0.55rem 0.35rem;
}

.nav-user-group + .nav-user-group {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-user-panel-foot {
  padding: 0.45rem 0.55rem 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-user-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.625rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 550;
  line-height: 1.2;
  color: rgba(244, 244, 245, 0.78);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    color 0.18s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.18s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.nav-user-panel.is-open .nav-user-item {
  animation: nav-user-item-in 0.28s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.nav-user-panel.is-open .nav-user-group:nth-child(1) .nav-user-item:nth-child(2) { animation-delay: 0.03s; }
.nav-user-panel.is-open .nav-user-group:nth-child(1) .nav-user-item:nth-child(3) { animation-delay: 0.06s; }
.nav-user-panel.is-open .nav-user-group:nth-child(1) .nav-user-item:nth-child(4) { animation-delay: 0.09s; }
.nav-user-panel.is-open .nav-user-group:nth-child(1) .nav-user-item:nth-child(5) { animation-delay: 0.12s; }
.nav-user-panel.is-open .nav-user-group:nth-child(1) .nav-user-item:nth-child(6) { animation-delay: 0.15s; }
.nav-user-panel.is-open .nav-user-group:nth-child(1) .nav-user-item:nth-child(7) { animation-delay: 0.18s; }
.nav-user-panel.is-open .nav-user-panel-foot .nav-user-item { animation-delay: 0.1s; }

@keyframes nav-user-item-in {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nav-user-item i {
  font-size: 1.05rem;
  width: 1.05rem;
  flex-shrink: 0;
  opacity: 0.72;
  transition: opacity 0.18s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.nav-user-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.nav-user-item.is-active {
  color: #fff;
  background: rgba(37, 99, 235, 0.14);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.22);
}

.nav-user-item.is-active i {
  opacity: 0.95;
}

.nav-user-section-label {
  margin: 0 0 0.3rem;
  padding: 0 0.7rem;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(155, 155, 164, 0.85);
}

.nav-user-divider {
  height: 1px;
  margin: 0.5rem 0.55rem;
  background: rgba(255, 255, 255, 0.06);
}

.nav-user-item--logout {
  color: rgba(244, 244, 245, 0.72);
}

.nav-user-item--logout:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-user-logout-form {
  display: block;
  margin: 0;
  padding: 0;
}

.nav-user-item--button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.65rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-2);
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 8px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nav-user-item--button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1023px) {
  body.nav-user-open {
    overflow: hidden;
  }

  body.nav-user-open .site-nav {
    z-index: 280;
  }

  body.nav-user-open::before {
    content: "";
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 255;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: auto;
  }

  .nav-user-name,
  .nav-user-chevron {
    display: none;
  }

  .nav-actions .nav-user-trigger.nav-pill {
    width: var(--nav-action-height);
    min-width: var(--nav-action-height);
    max-width: none;
    padding: 0 !important;
    gap: 0;
    justify-content: center;
  }

  .nav-user-avatar,
  .nav-user-avatar--initial {
    width: 1.5rem;
    height: 1.5rem;
  }

  .nav-user-avatar--initial {
    font-size: 0.6875rem;
  }

  .nav-user-panel {
    position: fixed;
    top: calc(var(--nav-h) + 0.65rem);
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: min(36rem, calc(100dvh - var(--nav-h) - 1.25rem));
    z-index: 270;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
  }

  .nav-user-panel.is-open {
    transform: none;
  }

  .nav-user-item {
    min-height: 2.75rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
}

.nav-burger {
  display: none;
  margin-left: auto;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  transition: background 0.2s, border-color 0.2s;
}
.nav-burger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  display: none;
  flex-direction: column;
}

.nav-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.nav-drawer-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.drawer-mega { display: flex; flex-direction: column; gap: 0.25rem; }
.drawer-accordion {
  border-radius: var(--r);
  background: var(--surface);
}
.drawer-accordion summary {
  padding: 0.65rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.drawer-accordion summary::-webkit-details-marker { display: none; }
.drawer-accordion-body {
  display: flex;
  flex-direction: column;
  padding: 0 0.75rem 0.65rem;
  gap: 0.15rem;
}
.drawer-sub {
  font-size: 0.875rem;
  color: var(--text-2);
  padding: 0.35rem 0;
}
.drawer-sub:hover { color: var(--text); }
.drawer-sub--muted {
  color: var(--text-3);
  font-style: italic;
}
.drawer-sub-label {
  display: block;
  margin-top: 0.65rem;
  padding: 0.35rem 0 0.15rem;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.nav-drawer .nav-link { padding: 0.5rem 0; font-size: 1rem; }
.nav-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.nav-drawer-actions .btn-primary,
.nav-drawer-actions .btn-secondary,
.nav-drawer-actions .btn-ghost {
  justify-content: center;
  width: 100%;
}
body.nav-open {
  overflow: hidden;
}

/* ---- Mega menu ---- */
.mega-backdrop {
  display: none !important;
}

.mega-panels {
  display: none;
}

@media (min-width: 1024px) {
  .mega-panels {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--nav-h) - 1px);
    z-index: 250;
    pointer-events: none;
    height: 0;
    overflow: visible;
  }

  .mega-panel {
    display: none;
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: none;
    margin: 0;
    background: transparent;
    color: var(--text);
    border-radius: 0 0 20px 20px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.04),
      0 16px 48px rgba(0, 0, 0, 0.45);
    max-height: min(580px, calc(100vh - var(--nav-h) - 1rem));
    overflow: hidden auto;
    opacity: 0;
    transform: translateY(-6px);
    transform-origin: top center;
    transition:
      opacity 0.24s var(--ease),
      transform 0.28s var(--ease-out),
      visibility 0.24s,
      box-shadow 0.28s var(--ease);
    pointer-events: none;
    visibility: hidden;
  }

  .mega-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background:
      linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, transparent 18%),
      rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
  }

  .mega-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .mega-panel.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.05),
      0 20px 56px rgba(0, 0, 0, 0.5);
  }

  .mega-panel[hidden]:not(.is-active) {
    display: none !important;
  }

  .mega-panel.is-active .mega-close {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
  }

  .nav-trigger[aria-expanded="true"] {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .nav-trigger[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--brand);
  }

  .mega-panel-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    padding: 2rem var(--pad) 2rem;
    padding-right: calc(var(--pad) + 2.5rem);
  }

  .mega-close {
    display: flex;
    position: absolute;
    top: 1.1rem;
    right: max(var(--pad), calc((100% - var(--container)) / 2 + var(--pad)));
    z-index: 5;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-2);
    font-size: 0.95rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.96);
    transition:
      opacity 0.2s,
      transform 0.2s var(--ease),
      background 0.2s,
      border-color 0.2s,
      color 0.2s;
  }

  .mega-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: scale(1);
  }

  .mega-panel-inner--compact {
    padding-bottom: 1.5rem;
  }

  @keyframes mega-col-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes mega-item-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .mega-panel.is-active .mega-col {
    animation: mega-col-in 0.4s var(--ease-out) backwards;
  }

  .mega-panel.is-active .mega-col:nth-child(2) { animation-delay: 0.05s; }
  .mega-panel.is-active .mega-col:nth-child(3) { animation-delay: 0.1s; }

  .mega-panel.is-active .mega-card,
  .mega-panel.is-active .mega-list li,
  .mega-panel.is-active .mega-spotlight,
  .mega-panel.is-active .mega-links li {
    animation: mega-item-in 0.38s var(--ease-out) backwards;
    animation-delay: calc(0.08s + var(--mega-i, 0) * 0.04s);
  }

  .mega-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.9fr;
    gap: 0;
  }

  .mega-grid--resources {
    grid-template-columns: 1.1fr 0.95fr 0.95fr;
  }

  .mega-grid--resources-short {
    grid-template-columns: 1fr 1fr 0.95fr;
  }

  .mega-list--tight a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0.45rem;
  }

  .mega-list--tight .mega-list-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-height: 1.75rem;
  }

  .mega-list--tight .mega-list-text strong {
    line-height: 1.75rem;
    margin: 0;
  }

  .mega-list--tight .mega-list-icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mega-list--tight .mega-list-icon i {
    line-height: 1;
    display: block;
  }

  .mega-col--with-foot {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }

  .mega-col-foot {
    width: 100%;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mega-col-foot-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
  }

  .mega-col-foot-nav a {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-3);
    text-decoration: none;
    padding: 0;
    background: none;
    border-radius: 0;
    transition: color 0.15s ease;
  }

  .mega-col-foot-nav a:hover {
    color: var(--text-2);
    background: none;
  }

  .mega-col-foot-sep {
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.8125rem;
    line-height: 1;
    user-select: none;
  }

  .mega-col {
    min-width: 0;
    padding: 0 1.25rem;
  }

  .mega-col:first-child {
    padding-left: 0;
  }

  .mega-col:last-child {
    padding-right: 0;
  }

  .mega-col + .mega-col {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mega-col-title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 0.9rem;
  }

  .mega-col-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-light);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    transition: color 0.15s;
  }

  .mega-col-link:hover { color: #93c5fd; }

  .mega-col--stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .mega-col--stack .mega-spotlight {
    margin-top: 0;
  }

  .mega-col-title--spaced { margin-top: 1.5rem; }

  .mega-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .mega-col-head .mega-col-title { margin-bottom: 0; }

  /* Feature cards */
  .mega-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .mega-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 7.75rem;
    padding: 1rem 1rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
  }

  .mega-card[aria-disabled="true"] {
    cursor: default;
    opacity: 0.92;
  }

  .mega-card[aria-disabled="true"]:hover {
    transform: none;
    box-shadow: none;
  }

  .mega-card::before {
    content: '';
    position: absolute;
    right: -15%;
    bottom: -25%;
    width: 55%;
    height: 70%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
  }

  .mega-card:not([aria-disabled="true"]):hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .mega-card--blue { background: linear-gradient(150deg, #3b82f6 0%, #2563eb 100%); }
  .mega-card--purple { background: linear-gradient(150deg, #5b6cf6 0%, #4338ca 100%); }
  .mega-card--cyan { background: linear-gradient(150deg, #38bdf8 0%, #0284c7 100%); }
  .mega-card--rose { background: linear-gradient(150deg, #60a5fa 0%, #2563eb 100%); }
  .mega-card--amber { background: linear-gradient(150deg, #2563eb 0%, #1e40af 100%); }

  .mega-card-badge {
    align-self: flex-start;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.18rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
  }

  .mega-card-badge--new {
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
  }

  .mega-card-badge--soon {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
  }

  .mega-card-title {
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.25;
  }

  .mega-card-desc {
    font-size: 0.71875rem;
    line-height: 1.45;
    opacity: 0.88;
    max-width: 12rem;
  }

  .mega-card-icon {
    position: absolute;
    right: 0.65rem;
    bottom: 0.55rem;
    top: auto;
    font-size: 2.25rem;
    opacity: 0.14;
    line-height: 1;
  }

  /* List items */
  .mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .mega-list a {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0.45rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
  }

  .mega-list a:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.05);
  }

  .mega-list-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-2);
    font-size: 0.9375rem;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
  }

  .mega-list a:hover .mega-list-icon {
    border-color: rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.06);
    color: var(--text);
  }

  .mega-list-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
  }

  .mega-list-text strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
  }

  .mega-list-text span {
    font-size: 0.8125rem;
    color: var(--text-2);
    line-height: 1.4;
  }

  .mega-links {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mega-links--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 0.75rem;
  }

  .mega-links--legal {
    max-width: 14rem;
  }

  .mega-links a {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
  }

  .mega-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
  }

  .mega-soon {
    display: inline-block;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.18rem 0.42rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-3);
    line-height: 1.2;
  }

  /* Spotlight card */
  .mega-spotlight {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
  }

  .mega-spotlight:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
  }

  .mega-spotlight-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .mega-spotlight-bar {
    display: none;
  }

  .mega-spotlight--docs {
    margin-top: 0;
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.14);
  }

  .mega-spotlight--team {
    background: rgba(255, 255, 255, 0.03);
  }

  .mega-spotlight--team .mega-spotlight-icon {
    color: rgba(255, 255, 255, 0.2);
  }

  .mega-spotlight--team .mega-spotlight-cta {
    color: var(--text-2);
  }

  .mega-spotlight-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .mega-spotlight-text strong {
    font-size: 0.9375rem;
    color: var(--text);
  }

  .mega-spotlight-text span {
    font-size: 0.8125rem;
    color: var(--text-2);
    line-height: 1.45;
  }

  .mega-spotlight-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-light);
  }

  .mega-spotlight-icon {
    font-size: 1.5rem;
    color: rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
    opacity: 0.85;
  }

  .mega-spotlight--docs .mega-spotlight-icon {
    color: rgba(37, 99, 235, 0.55);
  }
}

/* ---- Animations ---- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-56px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(64px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Visible before JS; hidden below-fold after js-ready for scroll reveal */
html.no-js .reveal,
html.no-js .reveal-slide-left,
html.no-js .reveal-slide-right,
html.no-js .reveal-slide-up,
html.no-js .reveal-stagger > *,
html.no-js .shot-scroll,
html.no-js .moment-stage .moment-copy,
html.no-js .hero-shot-wrap,
html.no-js .moment-shot-wrap,
body:not(.js-ready) .reveal,
body:not(.js-ready) .reveal-slide-left,
body:not(.js-ready) .reveal-slide-right,
body:not(.js-ready) .reveal-slide-up,
body:not(.js-ready) .reveal-stagger > *,
body:not(.js-ready) .shot-scroll,
body:not(.js-ready) .moment-stage .moment-copy,
body:not(.js-ready) .hero-shot-wrap,
body:not(.js-ready) .moment-shot-wrap {
  opacity: 1;
  transform: none;
}

@keyframes shot-enter-right {
  from {
    opacity: 0;
    transform: translateX(72px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(0) scale(1);
  }
}
@keyframes shot-enter-left {
  from {
    opacity: 0;
    transform: translateX(-72px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(0) scale(1);
  }
}
@keyframes shot-enter-up {
  from {
    opacity: 0;
    transform: translateY(52px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(0) scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.js-ready .hero.is-ready .hero-copy .anim {
    animation: slide-in-left 0.9s var(--ease-out) backwards;
    animation-delay: calc(0.05s + var(--d, 0) * 0.1s);
  }

  @media (max-width: 1023px) {
    body.js-ready .hero.is-ready .hero-copy .anim {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
  }

  body.js-ready .shot-scroll:not(.is-in-view) {
    opacity: 0;
    transform: translateX(var(--shot-from-x, 64px)) translateY(var(--shot-from-y, 0)) scale(0.96);
  }

  /* Hero listings shot — always visible, slides in on load (no scroll gate) */
  body.js-ready .hero-shot-wrap {
    opacity: 1;
    transform: translateX(72px) scale(0.96);
  }

  body.js-ready .hero.is-ready .hero-shot-wrap {
    animation: shot-enter-right 1.1s var(--ease-out) forwards;
  }

  body.js-ready .hero.is-ready .hero-shot-wrap .shot-glow {
    animation: glow-pulse 5s ease-in-out 0.35s infinite;
  }

  body.js-ready .hero.is-ready .hero-shot-wrap .shot--float .shot-frame {
    animation: float-y 7s ease-in-out 0.5s infinite;
  }

  body.js-ready .shot-scroll--from-right.is-in-view {
    animation: shot-enter-right 1.1s var(--ease-out) forwards;
  }

  body.js-ready .shot-scroll--from-left.is-in-view {
    animation: shot-enter-left 1.1s var(--ease-out) forwards;
  }

  body.js-ready .shot-scroll.is-in-view .shot-glow {
    animation: glow-pulse 5s ease-in-out 0.35s infinite;
  }

  body.js-ready .shot-scroll.is-in-view.shot-scroll--from-right .shot--float .shot-frame {
    animation: float-y 7s ease-in-out 0.5s infinite;
  }

  body.js-ready .shot-scroll.is-in-view .shot--float-delay .shot-frame {
    animation: float-y 7s ease-in-out 0.85s infinite;
  }

  body.js-ready .reveal,
  body.js-ready .reveal-slide-left,
  body.js-ready .reveal-slide-right,
  body.js-ready .reveal-slide-up {
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  }

  body.js-ready .reveal:not(.visible) {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  }

  body.js-ready .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  body.js-ready .reveal-slide-left:not(.visible) {
    opacity: 0;
    transform: translateX(-72px);
  }

  body.js-ready .reveal-slide-left.visible,
  body.js-ready .reveal-slide-right.visible,
  body.js-ready .reveal-slide-up.visible {
    opacity: 1;
    transform: translate(0);
  }

  body.js-ready .reveal-slide-right:not(.visible) {
    opacity: 0;
    transform: translateX(56px);
  }

  body.js-ready .reveal-slide-up:not(.visible) {
    opacity: 0;
    transform: translateY(40px);
  }

  body.js-ready .moment-stage .moment-copy {
    transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
  }

  body.js-ready .moment-stage:not(.is-visible) .moment-copy {
    opacity: 0;
    transform: translateX(48px);
    transition: opacity 0.95s var(--ease-out) 0.12s, transform 0.95s var(--ease-out) 0.12s;
  }

  body.js-ready .moment-stage.is-visible .moment-copy {
    opacity: 1;
    transform: translate(0);
  }

  body.js-ready .shot-scroll--from-left {
    --shot-from-x: -72px;
  }

  body.js-ready .shot-scroll--from-right {
    --shot-from-x: 72px;
  }

  body.js-ready .reveal-stagger:not(.visible) > * {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }

  body.js-ready .reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.moment--flip .shot--float .shot-frame {
  animation: none;
}

.shot-dim {
  display: none;
}

.reveal-stagger > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.16s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.24s; }
.reveal-stagger > *:nth-child(7) { transition-delay: 0.28s; }
.reveal-stagger > *:nth-child(8) { transition-delay: 0.32s; }
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-ready .anim,
  .shot--float,
  .shot-glow {
    animation: none !important;
    opacity: 1 !important;
  }
  .shot-scroll,
  .moment-stage .moment-copy {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .moment--flip .shot-frame img {
    filter: brightness(0.65);
  }
  .shot-dim { opacity: 1; }
  .reveal,
  .reveal-slide-left,
  .reveal-slide-right,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-user-panel,
  .nav-user-panel.is-open,
  .nav-user-panel.is-open .nav-user-item {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .nav-user-item:hover {
    transform: none;
  }
}

/* ---- Product shots (glass + bleed) ---- */
.shot {
  position: relative;
  width: 100%;
}
.shot--bleed-right,
.shot--bleed-left {
  width: 100%;
}
.shot-glow {
  position: absolute;
  z-index: 0;
  inset: -8%;
  border-radius: inherit;
  background: radial-gradient(ellipse 70% 65% at 50% 50%, rgba(37, 99, 235, 0.3), transparent 70%);
  filter: blur(28px);
  animation: glow-pulse 5s ease-in-out infinite;
  pointer-events: none;
}
.shot-frame {
  position: relative;
  z-index: 1;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 40px 80px -24px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.shot-frame img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.shot-frame--empty {
  min-height: 280px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(37, 99, 235, 0.1) 100%);
}
/* Float timing set per context (hero / moment) in animation block */

.hero-shot-wrap .shot--tilt-ready {
  transform: perspective(1200px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform 0.35s var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: var(--nav-h);
  padding-bottom: 3rem;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow-x: hidden;
}
.hero-ambient {
  position: absolute;
  top: -10%;
  right: -20%;
  width: 70%;
  height: 80%;
  background: radial-gradient(
    ellipse 85% 75% at center,
    rgba(37, 99, 235, 0.14) 0%,
    rgba(37, 99, 235, 0.07) 32%,
    rgba(37, 99, 235, 0.025) 52%,
    transparent 72%
  );
  pointer-events: none;
  transform: translateZ(0);
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3rem 0 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.25rem;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  min-width: 0;
}
.hero-eyebrow {
  margin-bottom: 1.25rem;
  color: var(--text-2);
}
.hero-title {
  font-size: clamp(2.125rem, 4.6vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 1.125rem;
}
.hero-title em {
  font-style: normal;
  color: var(--brand-light);
}
.hero-lead {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 32rem;
  margin-bottom: 1.625rem;
  line-height: 1.65;
}
.hero-meta {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.hero-shot-wrap {
  width: 100%;
}

/* Hero screenshot — no glass mat; PNG already includes app chrome */
.hero-shot-wrap .shot-frame {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

.hero-shot-wrap .shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  border-radius: 14px;
  box-shadow: 0 32px 72px -24px rgba(0, 0, 0, 0.62);
}

.hero-shot-wrap .shot-glow {
  inset: -4%;
  filter: blur(40px);
  opacity: 0.85;
}

/* ============================================================
   MOMENT (second image)
   ============================================================ */
.moment {
  position: relative;
  padding: 5.5rem 0;
  overflow-x: hidden;
}

.moment--copy-only {
  padding: 4rem 0 5rem;
}

.moment--copy-only .moment-copy {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.moment--copy-only .tags {
  justify-content: center;
}
.moment-ambient {
  position: absolute;
  left: -25%;
  top: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    rgba(37, 99, 235, 0.1) 0%,
    rgba(37, 99, 235, 0.045) 34%,
    rgba(37, 99, 235, 0.015) 54%,
    transparent 72%
  );
  pointer-events: none;
  transform: translateZ(0);
}
.moment-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* Mobile: image above copy — no cropped background overlay */
@media (max-width: 1023px) {
  .moment--flip {
    padding: 3.5rem 0 4rem;
  }

  .moment-stage {
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
    min-height: 0;
    border-radius: 0;
    overflow: visible;
  }

  .moment--flip .moment-shot-wrap,
  .moment--flip .moment-copy {
    grid-area: auto;
    position: relative;
  }

  .moment--flip .moment-shot-wrap {
    order: -1;
  }

  body.js-ready .shot-scroll--from-left {
    --shot-from-x: 0;
    --shot-from-y: 40px;
  }

  body.js-ready .shot-scroll--from-right {
    --shot-from-x: 0;
    --shot-from-y: 40px;
  }

  body.js-ready .shot-scroll--from-left.is-in-view,
  body.js-ready .shot-scroll--from-right.is-in-view {
    animation: shot-enter-up 1.1s var(--ease-out) forwards;
  }

  body.js-ready .moment-stage:not(.is-visible) .moment-copy {
    transform: translateY(28px);
  }

  .moment-stage .moment-shot-wrap {
    align-self: stretch;
    width: 100%;
    margin: 0;
  }

  .moment-stage .moment-copy {
    align-self: auto;
    z-index: auto;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    background: none;
  }

  .moment--flip .moment-shot-wrap .shot {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .moment--flip .shot-frame {
    height: auto;
    min-height: 0;
    padding: 10px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border2);
  }

  .moment--flip .shot-frame img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center top;
    border-radius: 8px;
    filter: none;
  }

  .moment-stage.is-visible .shot-frame img {
    filter: none;
  }

  .shot-dim {
    display: none !important;
  }

  .moment--flip .shot-glow {
    display: none;
  }

  .moment--flip .moment-stage.is-visible .shot--float .shot-frame {
    animation: none;
  }

  .moment--flip .moment-title {
    color: var(--text);
    text-shadow: none;
  }

  .moment--flip .moment-lead {
    color: var(--text-2);
    max-width: none;
  }

  .moment--flip .tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .moment--flip .tags li {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-2);
    backdrop-filter: none;
    text-align: center;
    justify-content: center;
  }
}
.moment-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.moment-lead {
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 44ch;
  margin-bottom: 2rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.tags li {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.tags li:hover {
  border-color: var(--border2);
  color: var(--text);
  transform: translateY(-2px);
}

/* ============================================================
   WORKFLOW FEATURES (landing)
   ============================================================ */
.workflow {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 5.5rem);
}

.workflow-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.workflow-eyebrow {
  margin-bottom: 0.75rem;
}

.workflow-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.workflow-lead {
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.workflow-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem 1.25rem 1.4rem;
  background: var(--content-card-bg, rgba(8, 8, 11, 0.82));
  border: 1px solid var(--content-card-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--r-lg);
  transition: border-color 80ms ease, background 80ms ease;
  transition-delay: 0s;
}

.workflow-card:hover {
  border-color: var(--content-card-border-hover, rgba(37, 99, 235, 0.28));
  background: var(--content-card-bg-hover, rgba(12, 12, 16, 0.92));
}

.workflow-step {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--brand-light);
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.22);
}

.workflow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 11px;
  color: var(--brand-light);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 1.25rem;
}

.workflow-name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.workflow-desc {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.6;
}

.workflow-desc strong {
  color: var(--text);
  font-weight: 600;
}

.workflow-notes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.workflow-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.55;
  background: var(--content-card-bg, rgba(8, 8, 11, 0.82));
  border: 1px solid var(--content-card-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--r);
}

.workflow-note i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 1.125rem;
  color: var(--brand);
}

.workflow-note strong {
  color: var(--text);
  font-weight: 600;
}

.workflow-note--fund {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.07) 0%, rgba(8, 8, 11, 0.88) 55%);
}

@media (min-width: 768px) {
  .workflow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* Legacy providers — kept for reference pages if any */
.providers {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37, 99, 235, 0.06), transparent 55%);
}
.providers-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.providers-lead {
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 42rem;
  margin-bottom: 2.5rem;
}
.providers-lead strong {
  color: var(--text);
  font-weight: 600;
}
.provider-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  margin-bottom: 2rem;
}
.provider-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.provider-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  background: var(--surface2);
}
.provider-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}
.provider-logo--brand {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.provider-logo img {
  width: 1.85rem;
  height: 1.85rem;
  object-fit: contain;
  display: block;
}
.provider-logo--openai img {
  width: 1.9rem;
  height: 1.9rem;
}
.provider-logo--anthropic img {
  width: 1.95rem;
  height: 1.95rem;
}
.provider-logo--gemini {
  padding: 0.35rem;
}
.provider-logo--gemini img {
  width: 2.15rem;
  height: 2.15rem;
}
.provider-logo--custom {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: rgba(37, 99, 235, 0.2);
}
.provider-logo--custom i {
  font-size: 1.5rem;
}
.provider-name {
  font-size: 1rem;
  font-weight: 600;
}
.provider-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}
.provider-card--custom {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
}
.providers-byok {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.55;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-align: left;
}
.providers-byok i {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 1.125rem;
  color: var(--brand);
}

@media (min-width: 720px) {
  .provider-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .provider-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* ============================================================
   CAPABILITIES
   ============================================================ */
.capabilities {
  padding: clamp(4rem, 8vw, 5.75rem) 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(37, 99, 235, 0.05), transparent 58%);
}
.cap-head {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
  margin-bottom: 2.25rem;
}
.cap-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0;
}
.cap-lead {
  max-width: 40rem;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.65;
}
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.cap-card {
  position: relative;
  padding: 1.2rem 1.1rem 1.25rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(14, 14, 18, 0.68);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, box-shadow 0.25s var(--ease);
}
.cap-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.28);
  background:
    linear-gradient(160deg, rgba(37, 99, 235, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(14, 14, 18, 0.78);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}
.cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.85rem;
  border-radius: 11px;
  color: var(--brand-light);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.22);
}
.cap-icon i {
  font-size: 1.25rem;
}
.cap-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.cap-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ============================================================
   PRICING (landing)
   ============================================================ */
.pricing-block {
  padding: clamp(4rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--border);
}

.pricing-block--v3 {
  position: relative;
  overflow: clip;
}

.pricing-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 15% 20%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 50% at 85% 30%, rgba(16, 185, 129, 0.08), transparent 50%);
  animation: pricing-ambient-drift 16s ease-in-out infinite alternate;
}

@keyframes pricing-ambient-drift {
  0% { opacity: 0.75; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.03) translateY(-1%); }
}

.pricing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
}

.pricing-free-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  max-width: 44rem;
  margin: 0 auto 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(16, 185, 129, 0.32);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(37, 99, 235, 0.06));
}

.pricing-free-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  font-size: 1.2rem;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
}

.pricing-free-card__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
}

.pricing-free-card__sub {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--text-3);
}

.pricing-free-card__cta {
  margin-left: auto;
}

.pricing-toggle-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.pricing-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.pricing-toggle-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(37, 99, 235, 0.28));
}

.pricing-toggle-save {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6ee7b7;
}

.plan--landing {
  position: relative;
  overflow: hidden;
}

.plan-shine {
  position: absolute;
  inset: -50% auto auto -35%;
  width: 50%;
  height: 160%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.05) 50%, transparent 58%);
  animation: plan-shine-sweep 8s ease-in-out infinite;
}

.plan-shine--gold {
  background: linear-gradient(105deg, transparent 42%, rgba(251, 191, 36, 0.1) 50%, transparent 58%);
}

@keyframes plan-shine-sweep {
  0%, 70% { transform: translateX(-120%) skewX(-10deg); }
  100% { transform: translateX(240%) skewX(-10deg); }
}

.plan--god {
  margin-top: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background:
    radial-gradient(ellipse 80% 100% at 50% -30%, rgba(251, 191, 36, 0.14), transparent 55%),
    linear-gradient(165deg, rgba(20, 14, 4, 0.9), rgba(10, 10, 16, 0.95));
}

.plan--god .plan-head {
  justify-content: flex-start;
}

.plan-label--god {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-chip--god {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(251, 191, 36, 0.35);
}

.plan-price--god {
  color: #fef3c7;
}

.plan-note--god strong { color: #fde68a; }

.plan-god-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.plan-god-cta {
  flex-shrink: 0;
}

.plan-god-cta .plan-cta--god,
.btn-primary.plan-cta--god {
  width: auto !important;
  margin-top: 0 !important;
  padding: 0.58rem 1rem !important;
  font-size: 0.84rem !important;
  font-weight: 650 !important;
  border-radius: 9px !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
  background: linear-gradient(135deg, #b45309, #d97706) !important;
  background-size: 100% 100% !important;
  box-shadow: none !important;
  animation: none !important;
}

.btn-primary.plan-cta--god:hover {
  transform: translateY(-1px);
  background-position: 0 0 !important;
  border-color: rgba(253, 224, 71, 0.55) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25) !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .pricing-ambient,
  .plan-shine { animation: none; }
  .btn-primary.plan-cta--god:hover { animation: none; }
}

.pricing-wrap {
  max-width: 56rem;
  margin: 0 auto;
}
.pricing-header {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto clamp(1.75rem, 4vw, 2.25rem);
}
.pricing-title {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 0.65rem;
}
.pricing-lead {
  margin: 0;
  text-align: center;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.pricing-lead strong {
  color: var(--text);
  font-weight: 650;
}
.pricing-promo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 auto clamp(1.25rem, 3vw, 1.75rem);
  padding: 0.7rem 1.1rem;
  max-width: 44rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.1);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-2);
}
.pricing-promo-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.pricing-promo-strip i {
  font-size: 0.95rem;
  color: var(--brand-light);
}
.pricing-promo-strip strong {
  color: var(--text);
  font-weight: 650;
}
.pricing-promo-strip__sep {
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
}
@media (max-width: 520px) {
  .pricing-promo-strip__sep { display: none; }
}
.pricing-board {
  display: grid;
  gap: 1.15rem;
  align-items: stretch;
}
.pricing-board--duo {
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .pricing-board--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
.pricing-board--trio {
  max-width: 68rem;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .pricing-board--trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  transition:
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    transform 0.22s var(--ease);
  isolation: isolate;
  min-height: 100%;
}
.plan:hover {
  transform: translateY(-2px);
}
.plan--monthly {
  background: rgba(255, 255, 255, 0.02);
}
.plan--promo {
  border-color: rgba(16, 185, 129, 0.3);
  background:
    linear-gradient(165deg, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0.02) 48%),
    rgba(255, 255, 255, 0.02);
}
.plan--monthly:hover,
.plan--promo:hover {
  border-color: rgba(16, 185, 129, 0.42);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(16, 185, 129, 0.12);
}
.plan--annual,
.plan--pro {
  border-color: rgba(37, 99, 235, 0.32);
  background:
    linear-gradient(165deg, rgba(37, 99, 235, 0.12) 0%, rgba(255, 255, 255, 0.02) 48%),
    rgba(8, 10, 16, 0.6);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.1),
    0 20px 48px rgba(0, 0, 0, 0.35);
}
.plan--annual:hover,
.plan--pro:hover {
  border-color: rgba(37, 99, 235, 0.42);
  transform: translateY(-2px);
}
.plan--managed {
  border: 2px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  justify-content: center;
}
.plan--managed:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.035);
}
.plan--managed .plan-label {
  color: rgba(255, 255, 255, 0.5);
}
.plan--managed .plan-price {
  color: rgba(255, 255, 255, 0.7);
}
.plan--managed .plan-note {
  color: rgba(255, 255, 255, 0.4);
}
.plan-price-meta-sm {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-right: 0.4rem;
}
.plan-list--managed li {
  color: rgba(255, 255, 255, 0.5);
}
.plan-list--managed .ti-check {
  color: rgba(255, 255, 255, 0.3);
}
.plan-managed-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}
.plan-cta--managed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}
.plan-cta--managed:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.plan-managed-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.plan-managed-link:hover {
  color: rgba(255, 255, 255, 0.75);
}
.plan-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.plan-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.plan--annual .plan-label,
.plan--pro .plan-label {
  color: var(--brand-light);
}
.plan-chip {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}
.plan-chip--muted {
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.plan-chip--promo {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.38);
}
.plan-offer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: -0.1rem 0 0.05rem;
}
.plan-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  line-height: 1;
}
.plan-offer-badge i {
  font-size: 0.85rem;
}
.plan-offer-badge--trial {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.32);
}
.plan-offer-badge--save {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
}
.plan-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.plan-price-meta {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.plan-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin: 0;
}
.plan-price-row .plan-price-was {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.55);
}
.plan-price-row .plan-price {
  margin: 0;
}
.plan-price-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  margin-left: 0.1rem;
}
.plan-price {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  margin-left: 0.1rem;
}
.plan-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-3);
}
.plan-note strong {
  color: var(--text-2);
  font-weight: 600;
}
.plan-note--highlight {
  color: var(--text-2);
}
.plan-note--highlight strong {
  color: #6ee7b7;
  font-weight: 650;
}
.plan--annual .plan-note--highlight strong {
  color: #93c5fd;
}
.plan-list {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  flex: 1;
}
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.4;
}
.plan-list i {
  color: var(--brand-light);
  font-size: 0.95rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.plan-list--pro li {
  color: var(--text);
}
.plan-cta {
  margin-top: auto;
  justify-content: center;
  width: 100%;
  border-radius: 10px !important;
  padding: 0.7rem 1rem !important;
  font-size: 0.875rem !important;
}
.pricing-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.35rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pricing-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 550;
  color: var(--text-3);
}
.pricing-trust--highlight {
  color: var(--text-2) !important;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.28);
}
.pricing-trust--highlight strong {
  color: var(--text);
  font-weight: 650;
}
.pricing-trust i {
  font-size: 0.95rem;
  color: var(--brand-light);
  opacity: 0.85;
}

/* Legacy plan helpers (checkout promos, etc.) */
.pricing-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
.pricing-row--solo { max-width: 26rem; }
.pricing-row--pair { gap: 1.25rem; max-width: 56rem; }
@media (min-width: 768px) {
  .pricing-row--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}
.plan-alt-link {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--text-3);
  text-align: center;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.plan-alt-link:hover { color: var(--text-2); }
.plan-alt-link.hidden { display: none; }
.plan-billing-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  margin: 0.25rem 0 0.5rem;
}
.plan--pro .plan-billing-tabs {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(37, 99, 235, 0.25);
}
.plan-billing-tab {
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.plan--pro .plan-billing-tab { color: rgba(255, 255, 255, 0.75); }
.plan-billing-tab.is-active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.plan--pro .plan-billing-tab.is-active {
  background: #fff;
  color: var(--brand);
}
.plan-price-block.hidden { display: none; }
.plan-price--discount .plan-price-was {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: line-through;
  margin-right: 0.35rem;
}
.plan-subscribe-link,
.plan-trial-link {
  display: block;
  margin-top: 0.65rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.plan-subscribe-link:hover,
.plan-trial-link:hover { color: var(--brand); }
.plan-cta.hidden { display: none; }
.plan-subscribe-link.hidden { display: none; }

/* Legacy plans grid (old templates) */
.plans-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}
.plans-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.5rem 0;
}
.plans-lead {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.55;
}
.plans-current {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
}
.plans-current--free {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}
.plans-current--active {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
}
.plans-manage { margin-top: 1rem; }
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}
.plans-grid--solo {
  max-width: 26rem;
}
@media (min-width: 900px) {
  .plans-grid:not(.plans-grid--solo) {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    max-width: 72rem;
  }
  .plans-grid .plan--featured { order: 0; }
}
.plan--muted { opacity: 0.92; }
.plans-grid .plan--featured {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.12), var(--surface));
  position: relative;
}
.plans-grid .plan-badge {
  align-self: flex-start;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-3);
}
.plans-grid .plan-badge--pro {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--brand);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.plans-footnote {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--text-3);
  max-width: 32rem;
  margin-inline: auto;
  line-height: 1.5;
}

/* App screenshot gallery */
.app-gallery {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}
.app-gallery .cap-title {
  margin-bottom: 2rem;
}
.app-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .app-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .app-gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.app-gallery-item {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.app-gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.35);
}
.app-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 707;
  object-fit: cover;
  object-position: top;
}
.app-gallery-item figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  border-top: 1px solid var(--border);
}

/* ============================================================
   END CTA
   ============================================================ */
.end-cta {
  padding: 6rem 0 7rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(37, 99, 235, 0.08), transparent 60%);
}
.end-cta-title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.end-cta-lead {
  color: var(--text-2);
  margin-bottom: 1.75rem;
}
.end-cta .cta-row { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-shell {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.footer-brand .logo-img--footer {
  display: block;
  height: 1.5rem;
  width: auto;
  max-width: 7.5rem;
  opacity: 0.9;
}

.footer-tagline {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-3);
  max-width: 22rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

.footer-col {
  min-width: 0;
}

.footer-col-head {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 0.75rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 0.45rem;
  transition: color 0.2s var(--ease);
}

.footer-col a:last-child {
  margin-bottom: 0;
}

.footer-col a:hover { color: var(--text); }

.footer-bar {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.footer-bar p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-3);
}

@media (min-width: 640px) {
  .footer-cols {
    grid-template-columns: repeat(3, minmax(7rem, 1fr));
    gap: 2rem 3rem;
  }
}

@media (min-width: 1024px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(2rem, 5vw, 4rem);
  }

  .footer-cols {
    display: flex;
    flex-shrink: 0;
    gap: clamp(2.5rem, 4vw, 4rem);
    width: auto;
    max-width: none;
  }

  .footer-col {
    min-width: 7.5rem;
  }
}

/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 1024px) {
  .nav-burger { display: none !important; }
  .nav-drawer { display: none !important; }
  .nav-drawer-backdrop { display: none !important; }

  .hero {
    padding-bottom: 4rem;
    overflow-x: hidden;
  }

  .hero .container.hero-grid {
    overflow: visible;
  }

  .hero-grid {
    grid-template-columns: minmax(28rem, 36rem) minmax(0, 1fr);
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    row-gap: 0;
    padding: clamp(3rem, 6vh, 5rem) 0 clamp(3.5rem, 7vh, 6rem);
    min-height: calc(100svh - var(--nav-h) - 3rem);
    align-items: center;
    overflow: visible;
  }

  .hero-copy {
    padding: 1rem 1.5rem 1rem 0;
    max-width: none;
    width: 100%;
  }

  .hero-shot-wrap {
    justify-self: start;
    align-self: center;
    width: min(54vw, 880px);
    max-width: none;
    margin-left: clamp(1.25rem, 3vw, 2.5rem);
    /* Rovvl viewport breakout, pulled back ~25% of shot width so only a quarter hangs off */
    margin-right: calc(50% - 50vw + var(--pad) + clamp(5rem, 13vw, 13.75rem));
    overflow: visible;
  }

  .hero-shot-wrap .shot {
    width: 100%;
  }

  .moment .container.moment-stage {
    overflow: visible;
  }

  .moment {
    padding: 7rem 0;
  }

  .moment-stage {
    grid-template-columns: minmax(0, 400px) 1fr;
    column-gap: clamp(3.5rem, 5.5vw, 5.5rem);
    gap: clamp(3.5rem, 5.5vw, 5.5rem);
    min-height: 0;
    border-radius: 0;
    overflow: visible;
  }

  .moment--flip .moment-shot-wrap,
  .moment--flip .moment-copy {
    grid-area: auto;
  }

  .moment-stage .moment-copy {
    margin: 0;
    width: auto;
    max-width: 34rem;
    padding: 1.25rem 0 1.25rem clamp(1.25rem, 2.5vw, 2.5rem);
    background: none;
  }

  .shot-dim {
    display: none !important;
  }

  .moment--flip .shot-frame img {
    filter: none;
    height: auto;
    min-height: 0;
    object-fit: initial;
    object-position: initial;
  }

  .moment--flip .moment-shot-wrap {
    order: -1;
    justify-self: start;
    width: min(54vw, 880px);
    max-width: none;
    margin-left: calc(50% - 50vw + var(--pad) + clamp(2.5rem, 6vw, 5.5rem) + clamp(5rem, 13vw, 13.75rem));
    margin-right: 0;
    overflow: visible;
  }

  .moment--flip .moment-shot-wrap .shot {
    width: 100%;
  }

  .moment--flip .moment-copy {
    justify-self: end;
    text-align: left;
  }

  .moment:not(.moment--flip) .moment-shot-wrap {
    margin-right: calc(50% - 50vw + var(--pad));
  }

  .moment-shot-wrap .shot {
    width: min(54vw, 880px);
  }

  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 1023px) {
  .nav-links,
  .nav-actions,
  .mega-panels { display: none !important; }
  .nav-burger { display: flex; margin-left: auto; }

  .container,
  .nav-inner {
    padding-left: calc(var(--pad) + env(safe-area-inset-left, 0px));
    padding-right: calc(var(--pad) + env(safe-area-inset-right, 0px));
  }

  .nav-drawer-backdrop {
    display: block;
  }

  .nav-drawer {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 201;
    height: calc(100dvh - var(--nav-h));
    max-height: none;
    padding-top: 1rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    padding-left: var(--pad);
    padding-right: var(--pad);
    background: rgba(6, 6, 8, 0.98);
    border-top: 1px solid var(--border);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.28s var(--ease),
      transform 0.32s var(--ease-out),
      visibility 0.28s;
    pointer-events: none;
  }

  .nav-drawer-actions {
    align-items: center;
    text-align: center;
  }

  .nav-drawer.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero {
    align-items: flex-start;
    min-height: auto;
    padding-bottom: 2.5rem;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .hero-grid {
    gap: 2rem;
    padding-top: 0.75rem;
    padding-bottom: 1.5rem;
    align-items: stretch;
  }

  .hero-copy {
    padding-inline: 0;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.14;
  }

  .hero-lead {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
  }

  .hero-meta {
    margin-top: 0.85rem;
    font-size: 0.75rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.65rem;
  }

  .cta-row .btn-primary,
  .cta-row .btn-secondary,
  .cta-row .btn-ghost {
    width: 100%;
    flex: none;
    justify-content: center;
  }

  .hero-shot-wrap {
    overflow: visible;
    width: 100%;
    margin: 0;
  }

  body.js-ready .hero-shot-wrap {
    opacity: 1;
    transform: translateY(40px) scale(0.96);
  }

  body.js-ready .hero.is-ready .hero-shot-wrap {
    animation: shot-enter-up 1.1s var(--ease-out) forwards;
  }

  .hero-shot-wrap .shot-glow {
    display: none;
  }

  .hero-shot-wrap .shot--float .shot-frame,
  body.js-ready .hero-shot-wrap.shot-scroll.is-in-view .shot--float .shot-frame {
    animation: none !important;
    transform: none !important;
  }

  .hero-shot-wrap .shot-frame img {
    object-fit: contain;
    object-position: center top;
  }

  .moment--flip {
    padding: 2.5rem 0 3rem;
  }

  .moment-stage {
    gap: 1.75rem;
  }

  .cap-grid { grid-template-columns: 1fr; }
  .pricing-board--duo,
  .pricing-board--trio { grid-template-columns: 1fr; gap: 1rem; }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: clamp(1.625rem, 7.5vw, 2rem);
  }
}

/* 4K / large displays — softer multi-stop glows (no blur filter banding) */
@media (min-width: 1920px) {
  body.landing-page::before,
  body.download-page::before,
  body.plans-page::before,
  body.updates-page::before,
  body.forum-page::before,
  body.docs-page::before,
  body.content-page::before,
  body.legal-page::before,
  body.dashboard-page::before {
    background:
      radial-gradient(
        ellipse 155% 105% at 6% -10%,
        rgba(37, 99, 235, 0.11) 0%,
        rgba(37, 99, 235, 0.058) 24%,
        rgba(37, 99, 235, 0.024) 44%,
        rgba(37, 99, 235, 0.006) 58%,
        transparent 72%
      ),
      radial-gradient(
        ellipse 125% 88% at 94% 0%,
        rgba(37, 99, 235, 0.075) 0%,
        rgba(37, 99, 235, 0.034) 28%,
        rgba(37, 99, 235, 0.012) 48%,
        transparent 70%
      );
  }
}


/* ── Managed accounts banner (landing pricing section) ─────────────────── */
.pricing-managed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  max-width: 68rem;
  margin: 1.25rem auto 0;
  padding: 1.35rem 1.65rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.pricing-managed__copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: min(100%, 16rem);
  flex: 1 1 14rem;
}

.pricing-managed__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 42rem;
}

.pricing-managed__lead strong { color: var(--text); }

.pricing-managed__ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 0 0 auto;
  padding-right: 0.15rem;
}

.pricing-managed__ctas .plan-cta,
.pricing-managed__ctas .plan-cta--managed {
  width: auto !important;
  margin-top: 0 !important;
  padding: 0.62rem 1.2rem !important;
  white-space: nowrap;
}

.pricing-managed__ctas .plan-managed-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.pricing-managed__ctas .plan-managed-link:hover {
  color: var(--text);
  gap: 0.45rem;
}

@media (max-width: 640px) {
  .pricing-managed {
    padding: 1.2rem 1.25rem;
    gap: 1rem;
  }

  .pricing-managed__ctas {
    width: 100%;
    padding-right: 0;
  }

  .pricing-managed__ctas .plan-cta,
  .pricing-managed__ctas .plan-cta--managed {
    width: 100% !important;
    justify-content: center;
  }
}

/* Legacy → credit plans one-time popup */
.legacy-switch-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.legacy-switch-backdrop.hidden {
  display: none;
}

body.legacy-switch-open {
  overflow: hidden;
}

.legacy-switch-panel {
  position: relative;
  width: min(100%, 28rem);
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(8, 12, 24, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.legacy-switch-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 10px;
  color: var(--text-3);
  background: transparent;
  cursor: pointer;
}

.legacy-switch-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.legacy-switch-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f87171;
}

.legacy-switch-title {
  margin: 0 0 0.65rem;
  padding-right: 2rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legacy-switch-lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-2);
}

.legacy-switch-points {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.legacy-switch-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-2);
}

.legacy-switch-points .ti-check {
  margin-top: 0.1rem;
  color: #4ade80;
}

.legacy-switch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.legacy-switch-actions .btn-primary {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 10rem;
  border: none;
  outline: none;
}

.legacy-switch-actions .btn-primary:focus,
.legacy-switch-actions .btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.legacy-switch-actions .btn-ghost {
  flex: 0 0 auto;
}

