/* Critical CSS of the ezpl design: what keeps the first paint stable (no flash, no layout shift) while the full
   stylesheets load. A render-blocking file of its own (templates/page_head_style.tpl), cached by the browser, so it
   is not repeated in every page's HTML: inline it took about 22 KB before the content of every page. */
/* Critical CSS to prevent FOUC/CLS while the preloaded stylesheets load */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary, #1f2937);
  background-color: var(--bg-dark, #ffffff);
  /* Override the webfont variables so Inter/Open Sans/Roboto never swap in and cause CLS */
  --font-family-small: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-family-text: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-family-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-open-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-roboto-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-roboto: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html[data-theme="dark"] body { color: #e0e0e0; background-color: #121212; }
img, svg, video { max-width: 100%; height: auto; }
html h1, html h2, html h3, html h4, html h5, html h6 { margin: 0 0 0.5rem 0; color: var(--text-primary, #1f2937); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif !important; }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4, html[data-theme="dark"] h5, html[data-theme="dark"] h6 { color: #e0e0e0; }
p { margin: 0 0 1rem 0; }
a { color: #0d6efd; text-decoration: underline; }

.bi, .fa-brands, .fa-solid, .social-link i, [class*="fa-"] {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  font-size: 1.25em;
  text-align: center;
  line-height: 1;
  box-sizing: content-box;
  vertical-align: middle;
}
/* Keep icon pseudo-elements at a fixed 1em box so the icon webfont swap does not change layout */
.bi::before, .fa-brands::before, .fa-solid::before, .fas::before, .fab::before, .far::before, .fal::before, [class*="fa-"]::before {
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1;
  text-align: center;
  vertical-align: middle !important;
}
.multi-dropdown .multi-dropdown-menu, .multi-dropdown .dropdown-menu { display: none; }

/* Footer social links — render styled before all.css arrives */
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; max-width: 340px; margin-inline: auto; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,154,86,0.1); border: 1px solid rgba(255,154,86,0.2); border-radius: 50%; color: var(--text-primary, #1f2937); text-decoration: none; font-size: 1.1rem; }
.social-link:hover { background: rgba(255,154,86,0.85); color: #fff; }

/* Missing Bootstrap utilities the packed all.css does not currently include */
.text-center { text-align: center !important; }
.d-block { display: block !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Clickable video wrapper with play button overlay */
.video-wrapper { position: relative; display: block; margin: 0 auto; width: 640px; max-width: 100%; }
.video-wrapper video { display: block; width: 100%; height: auto; }
.play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; background: rgba(0,0,0,0.55); border-radius: 50%; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 2; transition: opacity 0.2s; }
.play-overlay::before { content: ""; width: 0; height: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 24px solid #fff; margin-left: 4px; }
.play-overlay i { display: none; }
.video-wrapper.is-playing .play-overlay { opacity: 0; }

/* Hero titles so the largest text is styled and LCP-eligible before all.css arrives.
   Use !important for font metrics to prevent FOUC/CLS; color uses the CSS variable
   so dark-mode themes still work once the full stylesheet loads. */
html body h1.title,
html body h2.subtitle,
html body h3.subtitle {
  display: block;
  color: var(--text-primary, #1f2937);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
html[data-theme="dark"] body h1.title,
html[data-theme="dark"] body h2.subtitle,
html[data-theme="dark"] body h3.subtitle {
  color: #e0e0e0;
}
html body .title {
  font-size: clamp(2.5rem, 8vw, 4rem) !important;
  font-weight: 800;
  line-height: 1.1 !important;
  margin-bottom: 1.5rem;
}
html body section.hero h1.title {
  font-size: 2.5rem !important;
}
html body .subtitle,
html body h2.subtitle,
html body h3.subtitle {
  font-size: 1.5rem !important;
  font-weight: 400;
  line-height: 1.5 !important;
  margin-bottom: 1.5rem;
}
/* Render the gradient text immediately so the H1 does not repaint later and extend LCP.
   all.css can still override --gradient-primary once it loads (no layout shift, same size). */
html body .gradient-text {
  display: inline-block !important;
  background: var(--gradient-primary, linear-gradient(135deg, #f05a28, #ff69b4, #c471ed, #7b68ee));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}
html[data-theme="dark"] body .gradient-text {
  background: var(--gradient-primary, linear-gradient(135deg, #7b2ff7, #ff69b4, #f05a28, #ffb347));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
section.hero {
  min-height: 66vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3rem;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(255,154,86,0.1) 0%, rgba(123,104,238,0.05) 50%, transparent 70%);
}
@media (max-width: 640px) {
  section.hero { min-height: 0; }
  html body section.hero h1.title { font-size: 3.5rem !important; line-height: 1.1 !important; }
  html body .subtitle,
  html body h2.subtitle,
  html body h3.subtitle { font-size: 1.3rem !important; line-height: 1.45 !important; }
  .hero-slide { max-width: 75%; margin-inline: auto; }
}
section.hero .hero-img-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 5rem;
  margin-bottom: 5rem;
}
.hero-slide {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
  width: 100%;
}
section.hero .hero-img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  z-index: 0;
  border-radius: 0.75rem;
  object-fit: cover;
  object-position: top center;
}
.hero-slider .splide__track { contain: layout; }
.hero-slider .splide__list { contain: layout style; }
section.hero .splide.hero-slider,
section.hero .splide.hero-slider.is-initialized,
section.hero .splide.hero-slider.is-rendered { visibility: visible; }
.hero-slider .splide__track {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;
  aspect-ratio: 16 / 9;
}
.hero-slider .splide__list { display: flex; width: 100%; height: 100%; margin: 0; padding: 0; }
.hero-slider .splide__slide { flex: 0 0 100%; width: 100%; box-sizing: border-box; list-style: none; margin: 0; }
/* Splide starts hidden in its CSS; force visible so the hero image reserves layout from the first paint */
html body .splide { visibility: visible !important; }
/* Reserve the pagination bar so it does not appear after mount and shift content */
.hero-slider-controls { position: relative; padding: 1rem 0; text-align: center; }
.hero-slider-controls .splide__pagination { position: static; display: inline-flex; gap: 0.6rem; padding: 0; }

/* Position the Splide arrows just outside the hero image container */
.hero-slider .splide__arrows {
  position: absolute;
  top: 50%;
  left: -2.5rem;
  right: -2.5rem;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
}
.hero-slider .splide__arrow {
  pointer-events: auto;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--bg-dark, #ffffff);
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: var(--text-primary, #1f2937);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.hero-slider .splide__arrow:hover { opacity: 1; }
.hero-slider .splide__arrow svg { fill: currentColor; width: 1rem; height: 1rem; }
@media (max-width: 640px) {
  .hero-slider .splide__arrows { left: 0.5rem; right: 0.5rem; }
  .hero-slider .splide__arrow { width: 1.8rem; height: 1.8rem; }
}

/* Bootstrap grid + brand need to be stable before Bootstrap/all.css load.
   Use !important so late-loading stylesheets cannot change these dimensions. */
html body .container { max-width: 100% !important; padding-inline: 1rem !important; margin-inline: auto !important; }
html body .row { display: flex !important; flex-wrap: wrap !important; margin-right: -1rem !important; margin-left: -1rem !important; }
html body .col-lg-12 { flex: 0 0 auto !important; width: 100% !important; max-width: 100% !important; padding-right: 1rem !important; padding-left: 1rem !important; }
.navbar-brand { width: 10rem; min-height: 2.5rem; max-width: 100%; flex-shrink: 0; display: flex; align-items: center; gap: 12px; }
.navbar-brand svg { width: 100%; height: auto; }

/* Header menu overflow patch: let the pill-shaped navbar use the full viewport width
   and allow the menu to wrap instead of spilling out of the browser window. */
html body .navbar-custom {
  max-width: calc(100vw - 2rem) !important;
  width: calc(100% - 2rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
html body .navbar-collapse {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body .navbar-nav {
  flex-wrap: wrap !important;
}
html body .cta-actions {
  flex-shrink: 0 !important;
}
html body .dropdown-toggle::after {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Stabilize the long h4 subtitle and wordmark div so font metrics do not change once all.css loads */
html body h4.subtitle {
  font-size: 1.5rem !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
  margin-bottom: 1.5rem !important;
  min-height: 4.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
@media (max-width: 768px) {
  html body h4.subtitle { min-height: 6rem; }
}
/* Each wordmark div reserves the exact height of its SVG + inline padding so it does not grow when all.css loads */
html body .subtitle {
  min-height: max-content;
}
/* Ensure all subtitle and paragraph text uses the same system-family metrics before fonts load */
html body .subtitle,
html body .text-muted {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* The hero wordmark SVG sits inside .subtitle; make it a block so it does not shift on font load.
   Use the two real viewBox ratios instead of a single hard-coded one. */
html body .subtitle svg {
  display: block;
  width: min(24rem, 100%);
  height: auto;
  margin-inline: auto;
}
html body .subtitle svg[viewBox="0 0 388 59"] { aspect-ratio: 388 / 59; }
html body .subtitle svg[viewBox="0 0 388 82"] { aspect-ratio: 388 / 82; }
/* Keep the logo/wordmark text dark (or light in dark mode). Leave the original colored/background shapes alone. */
html body .navbar-brand svg path[style*="--bs-dark"],
html body .navbar-brand svg polygon[style*="--bs-dark"],
html body .subtitle svg path[style*="--bs-dark"],
html body .subtitle svg polygon[style*="--bs-dark"] {
  fill: var(--text-primary, #1f2937) !important;
}
/* In dark mode, the light/background squares of the logo should also flip to the light text color. */
html[data-theme="dark"] body .navbar-brand svg path[style*="--bs-dark"],
html[data-theme="dark"] body .navbar-brand svg polygon[style*="--bs-dark"],
html[data-theme="dark"] body .navbar-brand svg path[style*="--bs-light"],
html[data-theme="dark"] body .navbar-brand svg polygon[style*="--bs-light"],
html[data-theme="dark"] body .subtitle svg path[style*="--bs-dark"],
html[data-theme="dark"] body .subtitle svg polygon[style*="--bs-dark"],
html[data-theme="dark"] body .subtitle svg path[style*="--bs-light"],
html[data-theme="dark"] body .subtitle svg polygon[style*="--bs-light"] {
  fill: #e0e0e0 !important;
}

/* Decorative waves are absolutely positioned; reserve their size so they do not pop in */
html body .colorful-section { position: relative; }
html body .waves {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 550px;
  pointer-events: none;
  margin-bottom: 0;
}

/* Feature videos reserve their block box so poster loads do not shift content */
html body .features-video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Fixed navbar + main-content spacing to prevent CLS while stylesheets preload */
body .navbar-custom,
body #navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  margin: 0.5rem;
  width: calc(100% - 1rem);
  max-width: calc(100vw - 1rem);
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  border-radius: 50px;
  background: var(--navbar-bg, rgba(255, 255, 255, 0.9));
  border: 1px solid transparent;
}

body .main-content {
  padding-top: 5rem;
}

@media (max-width: 991px) {
  /* Make the mobile collapse menu a full-width dropdown below the top bar */
  html body .navbar-collapse {
    flex-basis: 100% !important;
    flex-grow: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 3 !important;
    margin-top: 0.5rem !important;
    text-align: left !important;
    overflow-y: auto !important;
  }
  html body .navbar-collapse .navbar-nav {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: stretch !important; /* full-width rows, arrow at the right edge */
    flex-wrap: nowrap !important;
  }
  html body .navbar-collapse .nav-link {
    width: auto !important;
    text-align: left !important;
  }
  /* Each menu row spans the full width of the open menu (was width: auto, which shrank rows to their text) */
  html body .navbar-collapse .nav-item {
    width: 100% !important;
    text-align: left !important;
  }
}

@media (max-width: 640px) {
  /* Keep the mobile top bar on one line */
  body .navbar-custom,
  body #navbar {
    width: calc(100% - 0.5rem);
    margin: 0.25rem;
    padding: 0.5rem 0.5rem;
  }
  body .navbar-custom .container { padding-inline: 0.5rem !important; }
  body .navbar-toggler { padding: 0.25rem 0.5rem; }
}

@media (min-width: 992px) {
  body .navbar-custom,
  body #navbar {
    margin: 1rem;
    width: calc(100% - 2rem);
    max-width: min(1200px, calc(100vw - 2rem));
    padding: 0.5rem 1.5rem;
    margin-left: auto;
    margin-right: auto;
  }

  body .main-content {
    padding-top: 11rem;
  }

  /* Reserve a fixed icon slot in the navbar so icon fonts do not pop in and shift links */
  body .nav-item .bi,
  body .nav-item .fas,
  body .nav-item .fab {
    display: inline-block;
    min-width: 1em;
    min-height: 1em;
  }

  /* On desktop the navbar menu is always visible; keep it expanded before Bootstrap loads.
     Reserve the final wrapped height so the brand/CTA do not shift when the menu wraps. */
  body .navbar-toggler { display: none !important; }
  body .navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    order: 2 !important;
    align-items: center !important;
    min-height: 6.5rem !important;
  }
  body .navbar-nav {
    min-height: 6.5rem !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    width: 100%;
  }
  body .nav-item {
    min-height: 2.5rem !important;
    min-width: fit-content !important;
  }
  body .nav-link,
  body .cta-actions .btn,
  body .cta-actions a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    white-space: nowrap !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    margin: 0 0.25rem !important;
    padding: 0.375rem 0.5rem !important;
  }
  /* Force the nav links inside the multi dropdown to keep their content size instead of
     letting the full stylesheet change the flex factor and shift the menu item. */
  body .nav-item.multi-dropdown,
  body .nav-item.multi-dropdown > a.nav-link,
  body .nav-item.multi-dropdown > .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    min-height: 2.5rem !important;
    min-width: fit-content !important;
    white-space: nowrap !important;
  }
  body .nav-item.multi-dropdown > a.nav-link,
  body .nav-item.multi-dropdown > .nav-link {
    padding: 0.375rem 0.75rem !important;
  }
  body .multi-dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2rem !important;
    min-width: 2rem !important;
    height: 2rem !important;
    min-height: 2rem !important;
    padding: 0 !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    margin-left: -0.5rem !important;
    flex-shrink: 0 !important;
  }
  body .nav-link i.bi,
  body .nav-link i.fas,
  body .nav-link i.fab,
  body .cta-actions a i.bi,
  body .cta-actions a i.fas,
  body .cta-actions a i.fab,
  body .cta-actions button i.bi,
  body .cta-actions button i.fas,
  body .cta-actions button i.fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body .navbar-brand { order: 1 !important; }
}

/* Reserve a 1em box for any icon font so the layout does not shift when the webfont arrives */
.bi, .fas, .fab, .far, .fal {
  display: inline-block;
  min-width: 1em;
  min-height: 1em;
  line-height: 1;
}
/* App scroller slides: keep the title/subtitle on one line so all slides stay the same size
   and the auto-scroll does not jump due to wrapped text. */
.app-list .splide__slide p,
.app-list .splide__slide .text-muted {
  white-space: nowrap !important;
}

/* Community hero-list (legacy owl-carousel markup) converted to Splide */
.hero_list.splide { position: relative; }
.hero_list .splide__track { overflow: hidden; }
.hero_list .splide__list { display: flex; width: 100%; margin: 0; padding: 0; }
.hero_list .splide__slide { flex: 0 0 100% !important; width: 100% !important; box-sizing: border-box; }
.hero_list .splide__arrows { position: absolute; top: 50%; left: 0.5rem; right: 0.5rem; transform: translateY(-50%); display: flex; justify-content: space-between; pointer-events: none; z-index: 10; }
.hero_list .splide__arrow { pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gradient-primary, linear-gradient(135deg, #f05a28, #ff69b4)); color: white; border: none; cursor: pointer; }
.hero_list .splide__arrow svg { fill: currentColor; width: 1rem; height: 1rem; }
