/* PRIMLOGiC UI Framework v14 visual contract. Loaded last, after the foundation
   and page modules, so every surface shares the same light canvas, geometry,
   interaction rhythm, and release-level overrides. */
:root {
  --nav-h: 96px;
  --nav-height: 96px;
  --container: 1200px;
  --container-max: 1200px;
  --c-canvas: #F8F9FB;
  --c-canvas-alt: #F5F6F8;
  --c-surface: #FFFFFF;
  --c-surface-subtle: #F8FAFC;
  --c-border: #DFE3E8;
  --c-border-light: #ECEEF1;
  --c-border-strong: #C7CDD5;
  --c-text: #111827;
  --c-text-soft: #404756;
  --c-text-muted: #687080;
  --c-text-faint: #7A8290;
  --color-canvas: var(--c-canvas);
  --color-border: var(--c-border);
  --radius: 9px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, .035);
  --shadow-sm: 0 2px 6px rgba(17, 24, 39, .035), 0 10px 24px rgba(17, 24, 39, .035);
  --shadow: 0 12px 32px rgba(17, 24, 39, .07);
  --shadow-lg: 0 18px 48px rgba(17, 24, 39, .09);
}

/* Keep the shared header visually continuous while same-origin HTML pages change. */
@view-transition {
  navigation: auto;
}

html { color-scheme: light; }
body { background: var(--c-canvas); color: var(--c-text); }

/* Emphasis uses color and hierarchy across the public site, never slanted type. */
em { font-style: normal; }

/* Shared chrome */
.nav {
  top: 18px;
  right: auto;
  left: 50%;
  width: min(1100px, calc(100% - 32px));
  height: 60px;
  overflow: visible;
  transform: translateX(-50%);
  border: 1px solid rgba(213, 218, 225, .9);
  border-radius: 17px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 5px rgba(17, 24, 39, .04), 0 16px 42px rgba(17, 24, 39, .08);
  backdrop-filter: blur(20px) saturate(1.08);
}
.nav-inner { max-width: none; padding-inline: 20px; }
.nav-logo img { height: 22px; }
.nav-links { gap: 0; }
.nav-links a { padding-inline: 10px; color: #454C59; font-size: 14px; font-weight: 580; letter-spacing: 0; }
.nav-links a:hover { color: #0B1220; }
.nav-links a.active { color: #0B1220; font-weight: 700; }
.nav-dropdown-menu {
  top: calc(100% + 12px);
  border-color: rgba(213, 218, 225, .95);
  border-radius: 15px;
  box-shadow: 0 22px 55px rgba(17, 24, 39, .12);
}
.nav-auth .btn { min-height: 38px; border-radius: 10px; }
.nav-auth .btn-primary { box-shadow: none; }
.footer { padding-top: 56px; background: var(--c-canvas-alt); border-top-color: var(--c-border); }
.footer-bottom { border-top-color: var(--c-border); }

/* One typographic contract for every public page. Page modules may change
   size and weight, but never compress or slant the reading rhythm. */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0 !important;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }

/* Shared controls */
.btn,
.btn-full,
.community-action,
.community-submit,
.checkin-btn,
.redeem-btn,
.social-btn {
  border-radius: 8px;
  letter-spacing: 0;
}
.btn { min-height: 44px; padding: 0 16px; }
.btn-sm { min-height: 34px; padding: 0 14px; }
.btn-lg { min-height: 46px; padding: 0 22px; }
.btn-primary,
.btn.btn-forta {
  border: 1px solid #0B1220;
  background: #0B1220;
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .1), 0 8px 20px rgba(17, 24, 39, .1);
}
.btn-primary:hover,
.btn.btn-forta:hover { background: #182130; border-color: #182130; box-shadow: 0 12px 28px rgba(17, 24, 39, .14); }
.btn-ghost { border: 1px solid #BFC5CE; background: rgba(255, 255, 255, .72); color: #252C38; box-shadow: 0 1px 2px rgba(17, 24, 39, .025); }
.btn-ghost:hover { border-color: #8F97A4; background: #FFFFFF; color: #111827; }
.btn-full { min-height: 44px; padding: 0 16px; }

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border-color: var(--c-border-strong);
  border-radius: 8px;
}
input:not([type="checkbox"]):not([type="radio"]),
select { min-height: 44px; }
textarea { min-height: 108px; }

/* Public page rhythm */
.hero,
.page-hero,
.pricing-page .hero {
  margin-top: var(--nav-h);
  padding-top: 72px;
  padding-bottom: 52px;
}
.hero,
.page-hero,
.p-hero,
.marketing-hero,
.pricing-page .hero {
  background-color: #FBFCFE;
  background-image: url('/assets/backgrounds/pearl-header-v2.webp');
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 1920px 240px;
}
.hero h1,
.page-hero h1,
.pricing-page .hero h1 {
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
}
.hero .desc,
.page-hero p,
.pricing-page .hero p { line-height: 1.75; }
.section,
.product-section,
.cases-strip { padding-block: 80px; }
.section-header { margin-bottom: 48px; }
.section-header h2 { letter-spacing: 0; }
.cta-final { padding-top: 64px; padding-bottom: 88px; }

/* Same geometry for repeated content blocks, with product color as the only
   intentional variation. */
.card,
.product-card,
.choice-card,
.case-card,
.type-card,
.doc-card,
.common-card,
.forest-card,
.event-item,
.wish-form,
.fb-form,
.fb-sidebar > div,
.wish-card,
.pts-card,
.pts-checkin,
.redeem-card,
.community-composer,
.cap-card,
.pillar-card,
.insight-stat,
.value-card,
.team-card,
.acct-panel,
.acct-side-panel,
.acct-hero,
.acct-metrics article,
.acct-shortcuts a,
.ai-panel,
.ai-side-panel,
.ai-hero {
  border-color: var(--c-border);
  border-radius: 12px;
  box-shadow: var(--shadow-xs);
}
.card-interactive:hover,
.product-card:hover,
.doc-card:hover,
.cap-card:hover,
.pillar-card:hover { box-shadow: var(--shadow); }

/* Intro pages */
.p-hero { margin-top: var(--nav-h); padding: 72px 0 80px; }
.p-wrap { max-width: 1200px; }
.p-visual { border-radius: 12px; box-shadow: var(--shadow-sm); }
.section h2 { letter-spacing: 0; }
.docs-wrap.idx { max-width: 1200px; margin-top: var(--nav-h); padding: 64px 40px 80px; }
.docs-wrap.idx .main { max-width: 1040px; }
.product-docs { gap: 0; margin-top: 42px; }
.common-docs { padding-top: 40px; }

/* Marketing entry pages share the About page's calm, editorial introduction.
   Product detail pages intentionally keep their two-column architecture hero. */
.marketing-hero,
.pricing-page .marketing-hero {
  margin-top: var(--nav-h);
  padding: 90px 0 60px;
  text-align: center;
}
.marketing-hero h1,
.pricing-page .marketing-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}
.marketing-hero .kicker,
.marketing-hero .eyebrow {
  margin-bottom: 16px;
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}
.marketing-hero .desc,
.marketing-hero .vision-sub,
.marketing-hero > .container > p:not(.kicker):not(.eyebrow):not(.back),
.marketing-hero > p:not(.kicker):not(.eyebrow):not(.back) {
  max-width: 540px;
  margin: 0 auto;
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* Documentation reading layout */
.docs-wrap { margin-top: var(--nav-h); max-width: 1440px; }
.sidebar { top: var(--nav-h); height: calc(100vh - var(--nav-h)); background: var(--c-surface); border-right-color: var(--c-border); }
.main { padding-top: 40px; }
.main-search input { border-color: var(--c-border); border-radius: 8px; }
.main h1 { letter-spacing: 0; }
.main h2 { border-top-color: var(--c-border); }
.doc-card,
.path-list li { border-color: var(--c-border); border-radius: 10px; }
pre { border-color: var(--c-border); border-radius: 10px; background: #F8FAFC; }

/* Community is a product surface, not a decorative splash page. */
.hero-forest {
  margin-top: var(--nav-h);
  padding: 72px 0 48px;
}
.hero-forest .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--c-success-weak) !important;
  color: var(--c-success) !important;
  font-size: 24px;
}
.hero-forest h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.16;
  color: var(--c-text) !important;
  background: none !important;
  -webkit-text-fill-color: var(--c-text) !important;
  text-shadow: none !important;
}
.hero-forest .badges span { border-radius: 6px; padding: 5px 10px; }
.marketing-hero.hero-forest { padding: 56px 24px 38px; }
.marketing-hero.hero-forest h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; }
.marketing-hero.hero-forest p { max-width: 540px; margin: 0 auto; font-size: 15px; line-height: 1.8; }
.community-tabs {
  top: var(--nav-h);
  min-height: 56px;
  padding-block: 0;
  background: rgba(255, 255, 255, .98);
  border-bottom-color: var(--c-border);
  overflow-x: auto;
  justify-content: center;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}
.community-tabs::-webkit-scrollbar { width: 0; height: 0; display: none; background: transparent; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1120px) {
  .nav-inner { padding-inline: 18px; }
  .nav-links {
    top: 88px;
    right: 16px;
    left: 16px;
    border: 1px solid var(--c-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 48px rgba(17, 24, 39, .12);
  }
  .nav-dropdown-menu { min-width: 0; }
}

/* Auth, account, and token workspaces share the public shell rhythm. */
.auth-page {
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
  padding: 56px 20px 72px;
  background-color: #F8F9FB;
  background-image: url('/assets/backgrounds/pearl-header-v2.webp');
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 1920px 240px;
}
.auth-card { border: 1px solid rgba(221, 225, 231, .9); border-radius: 16px; box-shadow: 0 2px 5px rgba(17, 24, 39, .03), 0 24px 62px rgba(17, 24, 39, .09); padding: 32px; }
.auth-card h1 { letter-spacing: 0; }
.auth-card .btn-full:not(.wechat-authorize),
.auth-card .send-code-row button {
  border: 1px solid #0B1220;
  background: #0B1220;
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .08), 0 8px 20px rgba(17, 24, 39, .08);
}
.auth-card .btn-full:not(.wechat-authorize):hover,
.auth-card .send-code-row button:hover { background: #182130; border-color: #182130; box-shadow: 0 12px 28px rgba(17, 24, 39, .13); }
.auth-tabs { border-radius: 8px; }
.auth-tabs button { border-radius: 6px; }
.acct-wrap,
.ai-shell { max-width: 1200px; padding: 96px 24px 72px; }
.acct-hero,
.ai-hero { box-shadow: var(--shadow-xs); }
.acct-workspace,
.ai-workspace { gap: 20px; }
.acct-sidebar,
.ai-sidebar { top: calc(var(--nav-h) + 16px); }
.acct-side-nav button,
.ai-side-nav button { border-radius: 6px; }

/* Legal, blog, and standalone content pages */
.page,
.page-wrap { margin-top: var(--nav-h); padding-top: 64px; }
.page h1,
.page-wrap h1 { letter-spacing: 0; }
.page .card { border-radius: 12px; }
.content pre { border-radius: 10px; }
.contact-card { border-radius: 12px; }
.auth-card { border-radius: 16px; }

.blog-article-page .page {
  max-width: 860px;
  margin-top: 0;
  padding: 174px 24px 80px;
}
.blog-article-page .page > h1 {
  max-width: 780px;
  margin-bottom: 12px;
  font-size: clamp(34px, 4.3vw, 48px);
  font-weight: 700;
  line-height: 1.22;
}
.blog-article-page .meta { margin-bottom: 28px; color: #64748B; font-size: 14px; }
.blog-article-page .article-cover { margin-bottom: 44px; }
.blog-article-page .article-cover img { border-radius: 8px; }
.blog-article-page .content { color: #3F4A5A; font-size: 16px; line-height: 1.92; }
.blog-article-page .content h2 { margin-top: 52px; font-size: 24px; }

/* Admin keeps compact controls but follows the same surfaces and chrome. */
.layout { margin-top: var(--nav-h); min-height: calc(100vh - var(--nav-h)); }
.sb { border-right-color: var(--c-border); }
.main { color: var(--c-text); }
.layout .card,
.layout .sbox,
.layout .tbl,
.layout .license-admin-shell { border-color: var(--c-border); border-radius: 10px; box-shadow: var(--shadow-xs); }
.layout .btn { min-height: 32px; padding: 0 12px; border-radius: 6px; font-size: 12px; }

@media (max-width: 768px) {
  :root { --nav-h: 84px; --nav-height: 84px; }
  .nav { top: 10px; width: calc(100% - 20px); height: 58px; border-radius: 15px; }
  .nav-inner { padding-inline: 14px; }
  .nav-links { top: 78px; right: 10px; left: 10px; }
  .nav-logo img { height: 21px; }
  .marketing-hero,
  .pricing-page .marketing-hero {
    padding: 72px 20px 48px;
  }

  .hero,
  .page-hero,
  .pricing-page .hero,
  .p-hero { padding-top: 56px; padding-bottom: 44px; }
  .section,
  .product-section,
  .cases-strip { padding-block: 60px; }
  .docs-wrap.idx { padding: 48px 20px 64px; }
  .docs-wrap { margin-top: 0; }
  .docs-mobile-nav { margin-top: var(--nav-h); }
  .auth-page { padding: 40px 16px 56px; }
  .auth-card { padding: 28px 22px; }
  .acct-wrap,
  .ai-shell { padding: 84px 16px 56px; }
  .page,
  .page-wrap { padding-top: 48px; }
  .blog-article-page .page { padding: 124px 20px 64px; }
  .blog-article-page .page > h1 { font-size: 30px; }
  .hero-forest { padding: 56px 0 36px; }
  .hero.marketing-hero,
  .page-hero.marketing-hero,
  .p-hero.marketing-hero,
  .security-hero.marketing-hero,
  .compare-hero.marketing-hero,
  .pricing-page .hero.marketing-hero {
    padding: 72px 20px 48px;
  }
  .page-hero.about-hero.marketing-hero { padding: 90px 20px 60px; }
  .marketing-hero.hero-forest { padding: 44px 20px 30px; }
  .marketing-hero.hero-forest h1 { font-size: clamp(30px, 8vw, 40px); }
}

@media (max-width: 360px) {
  .nav-inner { padding-inline: 16px; }
  .nav-logo img { height: 20px; }
}

/* Final cascade guard: legacy page modules may size headings, but cannot
   reintroduce compressed or italic display typography. */
h1, h2, h3, h4, h5, h6 { letter-spacing: 0 !important; }
em, i { font-style: normal !important; }
.btn, button, input, select, textarea { letter-spacing: 0; }

/* Reserve exactly the space occupied by the consent bar. */
body.has-cookie-banner { padding-bottom: var(--cookie-banner-height, 72px); }
@media (max-width: 640px) {
  #cookieBanner { padding: 9px 14px max(9px, env(safe-area-inset-bottom)); }
  .cookie-banner-inner { align-items: stretch; flex-direction: column; gap: 8px; }
  .cookie-banner-inner p { font-size: 12px; line-height: 1.45; }
  .cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  #cookieBanner button { min-height: 40px; padding-block: 6px; }
  .cookie-banner-close { grid-column: 1 / -1; width: 100%; }
}

/* Released geometry measured against the selected public reference at 100% zoom. */
:root {
  --nav-h: 92px;
  --nav-height: 92px;
  --container: 1240px;
  --container-max: 1240px;
  --ui-frame: 1240px;
  --hero-chrome-h: 160px;
  --c-canvas: #FFFFFF;
  --c-canvas-alt: #FAFAFB;
  --c-surface-subtle: #F7F8FA;
  --c-border: #E5E7EB;
  --c-border-light: #EFF1F3;
  --c-border-strong: #C9CED6;
  --c-text: #0A1222;
  --c-text-soft: #3F4652;
  --c-text-muted: #6A717D;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --shadow-xs: 0 1px 2px rgba(10, 18, 34, .025);
  --shadow-sm: 0 8px 24px rgba(10, 18, 34, .055);
  --shadow: 0 16px 40px rgba(10, 18, 34, .075);
}

body { background: #FFFFFF; }

body.public-header-surface {
  position: relative;
  background-color: #FFFFFF;
  background-image: url('/assets/backgrounds/pearl-header-v2.webp');
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 1920px 240px;
}

body.public-header-surface::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: var(--hero-chrome-h);
  border-bottom: 1px solid rgba(229, 231, 235, .82);
  background: #FFFFFF url('/assets/backgrounds/pearl-header-v2.webp') top center / 1920px 240px no-repeat;
  content: '';
  pointer-events: none;
}

body.public-header-surface .p-hero:not(.marketing-hero) {
  margin-top: 0;
  padding-top: calc(var(--hero-chrome-h) + 20px);
  background-color: transparent;
}

body.public-header-surface > .page {
  margin-top: 0;
  padding-top: calc(var(--hero-chrome-h) + 32px);
}

body.public-header-surface > .page-wrap {
  padding-top: calc(var(--hero-chrome-h) + 32px);
}

.docs-index-page {
  background: #FFFFFF url('/assets/backgrounds/pearl-header-v2.webp') top center / 1920px 240px no-repeat;
}
.docs-index-page .docs-wrap.idx {
  margin-top: 0;
  padding-top: 212px;
}

.nav {
  top: 32px;
  width: min(824px, calc(100% - 32px));
  height: 60px;
  border-color: rgba(218, 222, 228, .92);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .06);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  view-transition-name: primlogic-navigation;
  transition: opacity .2s ease, transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease;
  will-change: transform, opacity;
}
.nav.nav--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 48px));
}
.nav.nav--scrolled:not(.nav--hidden) { box-shadow: 0 8px 30px rgba(7, 16, 29, .09); }
.nav.nav--admin { transition: box-shadow .2s ease; will-change: auto; }

::view-transition-group(primlogic-navigation),
::view-transition-old(primlogic-navigation),
::view-transition-new(primlogic-navigation) {
  animation: none;
  mix-blend-mode: normal;
}

/* Hold the outgoing header snapshot until the new document is ready underneath. */
::view-transition-old(primlogic-navigation) { opacity: 1; }
::view-transition-new(primlogic-navigation) { opacity: 0; }

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) { opacity: 0; }
::view-transition-new(root) { opacity: 1; }
.nav-inner { padding: 0 10px 0 24px; column-gap: 12px; }
.nav-logo { min-height: 44px; }
.nav-logo img { height: 20px; }
.nav-links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px;
  color: #3F4652;
  font-size: 14px;
  font-weight: 550;
  line-height: 1;
}
.nav-links a:hover,
.nav-links a.active { color: #08111F; }
.nav-links a.active { font-weight: 720; }
.nav-dropdown-menu {
  top: calc(100% + 10px);
  min-width: 560px;
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(10, 18, 34, .11);
}
.nav-dropdown-menu--resources {
  left: 50%;
  flex-direction: column;
  min-width: 190px;
  transform: translateX(-50%) translateY(5px);
}
.nav-dropdown-menu--community {
  left: 50%;
  flex-direction: column;
  min-width: 190px;
  transform: translateX(-50%) translateY(5px);
}
.nav-dropdown--community:hover .nav-dropdown-menu--community,
.nav-dropdown--community:focus-within .nav-dropdown-menu--community {
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown--resources:hover .nav-dropdown-menu--resources,
.nav-dropdown--resources:focus-within .nav-dropdown-menu--resources {
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown::after { height: 18px; }
.nav-dropdown-col { padding: 12px; }
.nav-dropdown-item { border-radius: 5px; }
.nav-auth .btn { min-height: 42px; padding-inline: 16px; border-radius: 7px; font-size: 13px; }
.nav-auth { gap: 4px; }
.nav-auth-login {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  color: #3F4652;
  font-size: 12px;
  font-weight: 650;
}
.nav-auth-login:hover { color: #08111F; }
.nav-mobile-actions { display: none; }
.nav-mobile-actions--single { grid-template-columns: 1fr; }

.btn,
.btn-full,
.community-action,
.community-submit,
.checkin-btn,
.redeem-btn,
.social-btn {
  border-radius: 6px;
  box-shadow: none;
}
.btn { min-height: 40px; padding-inline: 17px; font-size: 13px; }
.btn-lg { min-height: 42px; padding-inline: 22px; font-size: 13px; }
.btn-primary,
.btn.btn-forta { box-shadow: none; }
.btn-primary:hover,
.btn.btn-forta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(10, 18, 34, .12); }
.btn-ghost { border-width: 1px; background: #FFFFFF; }

.card,
.product-card,
.choice-card,
.case-card,
.type-card,
.doc-card,
.common-card,
.forest-card,
.event-item,
.wish-form,
.fb-form,
.fb-sidebar > div,
.wish-card,
.pts-card,
.pts-checkin,
.redeem-card,
.community-composer,
.cap-card,
.pillar-card,
.insight-stat,
.value-card,
.team-card,
.acct-panel,
.acct-side-panel,
.acct-hero,
.acct-metrics article,
.acct-shortcuts a,
.ai-panel,
.ai-side-panel,
.ai-hero { border-radius: 8px; box-shadow: none; }

.hero,
.page-hero,
.p-hero,
.marketing-hero,
.pricing-page .hero,
.hero-forest,
.auth-page {
  background-color: #FFFFFF;
  background-image: none;
}
.marketing-hero,
.pricing-page .marketing-hero {
  position: relative;
  margin-top: 0;
  padding: 178px 0 58px;
  border-bottom: 1px solid var(--c-border-light);
  background: #FFFFFF;
}
.hero.marketing-hero,
.page-hero.marketing-hero,
.page-hero.about-hero.marketing-hero,
.p-hero.marketing-hero,
.security-hero.marketing-hero,
.compare-hero.marketing-hero,
.pricing-page .hero.marketing-hero,
.hero-forest.marketing-hero {
  margin-top: 0;
  padding: 178px 0 58px;
}
.hero-forest.marketing-hero { padding-bottom: 49px; }
.marketing-hero > .container {
  width: min(100%, var(--ui-frame));
  max-width: var(--ui-frame);
  padding-inline: 40px;
  border-right: 1px solid var(--c-border-light);
  border-left: 1px solid var(--c-border-light);
}
.marketing-hero::before,
.pricing-page .marketing-hero::before,
.auth-page::before {
  position: absolute;
  inset: 0 0 auto;
  height: var(--hero-chrome-h);
  border-bottom: 1px solid rgba(229, 231, 235, .82);
  background: #FFFFFF url('/assets/backgrounds/pearl-header-v2.webp') top center / 1920px 240px no-repeat;
  content: '';
  pointer-events: none;
}
.marketing-hero > *,
.pricing-page .marketing-hero > *,
.auth-page > * { position: relative; }
.marketing-hero h1,
.pricing-page .marketing-hero h1 {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 650;
  line-height: 1.18;
  text-wrap: balance;
}
.about-hero h1 strong span { display: inline; }
.marketing-hero .desc,
.marketing-hero .vision-sub,
.marketing-hero > .container > p:not(.kicker):not(.eyebrow):not(.back),
.marketing-hero > p:not(.kicker):not(.eyebrow):not(.back) {
  max-width: 650px;
  font-size: 16px;
  line-height: 1.72;
  text-wrap: pretty;
}
.section,
.product-section,
.cases-strip { padding-block: 72px; }

.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 64px;
  border-top: 1px solid #172235;
  background: #0B1320;
  color: #F8FAFC;
}
.footer::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 38%),
    linear-gradient(90deg, transparent, rgba(148, 163, 184, .025) 50%, transparent);
  content: '';
  pointer-events: none;
}
.footer-inner,
.footer-bottom { position: relative; z-index: 1; }
.footer-brand { flex: 0 0 230px; }
.footer-links { gap: 48px; }
.footer .nav-logo img { filter: brightness(0) invert(1); opacity: .96; }
.footer-brand p,
.footer-links a,
.footer-bottom { color: #AAB4C2; }
.footer-brand p,
.footer-links a { font-size: 14px; }
.footer-links h4 { font-size: 12px; }
.footer-social-item {
  border-color: rgba(226, 232, 240, .11);
  background: rgba(255, 255, 255, .025);
}
.footer-social-item:hover,
.footer-social-item:focus-visible {
  border-color: rgba(226, 232, 240, .22);
  background: rgba(255, 255, 255, .065);
}
.footer-social-item.is-pending { cursor: default; }
.footer-links h4 { color: #E2E8F0; letter-spacing: 0; text-transform: none; }
.footer-links a:hover { color: #FFFFFF; }
.footer-bottom {
  border-top-color: rgba(226, 232, 240, .1);
  background: rgba(2, 6, 23, .12);
  font-size: 13px;
}
.footer-bottom-row{display:flex;align-items:center;justify-content:center;text-align:center}.footer-bottom-row>p{display:flex;width:100%;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 10px;margin:0}.footer-record-item{display:inline-flex;align-items:center;gap:4px}.footer-record-separator{color:#647286}

@media (max-width: 1040px) {
  .nav { width: min(824px, calc(100% - 28px)); }
  .nav-inner { grid-template-columns: max-content 1fr max-content; }
  .nav-links {
    top: 67px;
    right: 14px;
    left: 14px;
    width: auto;
    max-height: calc(100vh - 82px);
    padding: 16px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 18px 44px rgba(10, 18, 34, .11);
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
  }
  .nav-links.open {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links a { justify-content: center; min-height: 42px; font-size: 14px; }
  .nav-dropdown-menu {
    top: auto;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown-menu:hover { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
  .nav-links .nav-dropdown-item {
    display: block;
    min-height: 40px;
    padding: 8px 12px;
    text-align: left;
    white-space: normal;
  }
  .nav-dropdown-menu--resources { min-width: 0; transform: none; }
  .nav-dropdown-menu--community { min-width: 0; transform: none; }
  .nav-dropdown.open .nav-dropdown-menu--community {
    display: flex;
    flex-direction: column;
    padding: 4px 0 8px;
  }
  .nav-links .nav-dropdown-menu--community .nav-dropdown-item {
    min-height: 38px;
    padding-inline: 8px;
    text-align: center;
  }
  .nav-dropdown--community:hover .nav-dropdown-menu--community,
  .nav-dropdown--community:focus-within .nav-dropdown-menu--community { transform: none; }
  .nav-dropdown--resources:hover .nav-dropdown-menu--resources,
  .nav-dropdown--resources:focus-within .nav-dropdown-menu--resources { transform: none; }
  .nav-auth { display: none; }
  .nav-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--c-border-light);
  }
  .nav-mobile-actions.nav-mobile-actions--single { grid-template-columns: 1fr; }
  .nav-mobile-actions a { border: 1px solid var(--c-border-strong); border-radius: 6px; }
  .nav-mobile-actions .nav-mobile-cta { border-color: #08111F; background: #08111F; color: #FFFFFF; }
}

@media (max-width: 640px) {
  .footer-bottom-row > p { flex-direction: column; gap: 8px; }
  .footer-record-item { justify-content: center; }
  .footer-record-separator { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 92px; --nav-height: 92px; --hero-chrome-h: 112px; }
  .nav {
    top: 24px;
    width: calc(100% - 48px);
    height: 50px;
    border-radius: 12px;
  }
  .nav-inner { padding: 0 10px 0 16px; }
  .nav-logo img { height: 20px; }
  .menu-btn { width: 40px; height: 40px; padding-inline: 9px; }
  .nav-links {
    top: 60px;
    right: 0;
    left: 0;
    max-height: calc(100dvh - 96px);
    padding: 12px;
    border-radius: 12px;
  }
  .marketing-hero,
  .pricing-page .marketing-hero,
  .hero.marketing-hero,
  .page-hero.marketing-hero,
  .page-hero.about-hero.marketing-hero,
  .p-hero.marketing-hero,
  .security-hero.marketing-hero,
  .compare-hero.marketing-hero,
  .pricing-page .hero.marketing-hero,
  .hero-forest.marketing-hero { padding: 132px 24px 48px; }
  .hero-forest.marketing-hero { min-height: 350px; }
  .marketing-hero > .container {
    width: 100%;
    padding-inline: 20px;
  }
  .marketing-hero h1,
  .pricing-page .marketing-hero h1 {
    font-size: clamp(30px, 8.2vw, 34px);
    line-height: 1.14;
    text-wrap: balance;
  }
  .about-hero h1 strong span { display: block; }
  .marketing-hero .desc,
  .marketing-hero .vision-sub,
  .marketing-hero > .container > p:not(.kicker):not(.eyebrow):not(.back),
  .pricing-page .marketing-hero p {
    line-height: 1.72;
    text-wrap: pretty;
  }
  .docs-index-page { background-size: 1280px 112px; }
  .docs-index-page .docs-wrap.idx {
    width: calc(100% - 48px);
    padding: 132px 20px 64px;
    border-right: 1px solid var(--c-border-light);
    border-left: 1px solid var(--c-border-light);
  }
  body.public-header-surface .p-hero:not(.marketing-hero) { padding-top: calc(var(--hero-chrome-h) + 20px); }
  body.public-header-surface > .page,
  body.public-header-surface > .page-wrap { padding-top: calc(var(--hero-chrome-h) + 24px); }
  .auth-page { padding: 48px 24px 56px; }
  .footer-inner { gap: 36px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { flex-basis: auto; }
}

@media (max-width: 360px) {
  .nav { width: calc(100% - 32px); }
  .nav-links { right: 0; left: 0; }
  .marketing-hero,
  .pricing-page .marketing-hero,
  .hero.marketing-hero,
  .page-hero.marketing-hero,
  .page-hero.about-hero.marketing-hero,
  .p-hero.marketing-hero,
  .security-hero.marketing-hero,
  .compare-hero.marketing-hero,
  .pricing-page .hero.marketing-hero,
  .hero-forest.marketing-hero { padding-inline: 16px; }
  .marketing-hero > .container { padding-inline: 16px; }
  .docs-index-page .docs-wrap.idx {
    width: calc(100% - 32px);
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav { transition-duration: .01ms; }
}
