:root {
  --c1l: #799af1;
  --c2l: #4c6cbf;
  --c3l: #bbcbf7;
  --c4l: #e8eefc;
  --n1l: #fff;
  --n2l: #fafafa;
  --n3l: #e0e0e0;
  --n5l: #242424;
  --n6l: #666565;
  --charnote: #293683;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.hub-btn:focus-visible,
.plan-button:focus-visible {
  outline: 2px solid var(--c2l);
  outline-offset: 2px;
}

.cui-dropdown-anchor {
  position: relative;
}

.cui-dropdown[role="button"] {
  cursor: pointer;
}

.cui-dropdown-anchor:hover > .cui-dropdown-options,
.cui-dropdown-anchor:focus-within > .cui-dropdown-options {
  display: inline-block;
  position: absolute !important;
  inset: auto auto auto 0 !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  min-width: 240px !important;
  width: max-content !important;
  max-width: min(320px, 80vw);
  max-height: min(70vh, 520px);
  overflow: auto;
  z-index: 9600;
}

.header-container-desktop-nav .cui-dropdown-anchor:hover > .cui-dropdown-options,
.header-container-desktop-nav .cui-dropdown-anchor:focus-within > .cui-dropdown-options {
  left: auto !important;
  right: 0 !important;
}

.collapsed-nav .cui-dropdown-anchor:hover > .cui-dropdown-options,
.collapsed-nav .cui-dropdown-anchor:focus-within > .cui-dropdown-options {
  left: 0 !important;
  right: auto !important;
}

.cui-dropdown-link-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cui-dropdown-link-item:hover,
.cui-dropdown-link-item:focus-visible {
  background: var(--c4l);
}

.cui-landing-drawer-contents {
  overflow: auto;
}

/* Extra menus fit beside the original header from 1280px up.
   Between 1024px and 1279px they stay in the compact menu. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .cui-landing-header .header-container .expanded-nav > .cui-dropdown-anchor:nth-child(n + 4) {
    display: none;
  }

  .cui-landing-header .header-container .collapsed-nav {
    display: block !important;
  }
}

.cui-landing-footer-top {
  flex-wrap: wrap;
}

.cui-landing-footer-top ul {
  min-width: 148px;
}

.landing-button,
.plan-button,
.video-button,
[data-video-id] {
  cursor: pointer;
}

a.landing-button {
  align-items: center;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.251);
  color: #242424;
  display: flex;
  font-size: 18px;
  font-weight: 500;
  justify-content: center;
  padding: 16px;
  text-align: center;
  text-decoration: none;
}

a.landing-button.primary,
a.landing-button.primary:hover {
  background-color: var(--c1l);
  color: #242424;
}

a.landing-button:hover {
  background-color: var(--c4l);
}

a.landing-button:active {
  transform: translateY(1px);
}

.pricing-swiper.swiper {
  overflow: visible;
}

.pricing-swiper .swiper-wrapper {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  transform: none !important;
  width: 100% !important;
}

.pricing-swiper .swiper-slide {
  width: min(100%, 340px) !important;
  margin-right: 0 !important;
  height: auto !important;
}

.pricing-swiper .swiper-slide[data-plan-group="team"] {
  display: none;
}

body.show-team-plans .pricing-swiper .swiper-slide[data-plan-group="individual"] {
  display: none;
}

body.show-team-plans .pricing-swiper .swiper-slide[data-plan-group="team"] {
  display: block;
}

.hub-main {
  color: var(--n5l);
  background: var(--n1l);
}

.hub-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hub-hero {
  position: relative;
  overflow: hidden;
  padding: 128px 0 72px;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(147, 185, 255, 0.45), transparent 70%),
    radial-gradient(700px 380px at 100% 0%, rgba(186, 160, 252, 0.28), transparent 68%),
    #fff;
}

.hub-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hub-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}

.hub-orb-a {
  width: 420px;
  height: 420px;
  left: -80px;
  top: -40px;
  background: rgba(147, 185, 255, 0.45);
  animation: hub-drift 32s ease-in-out infinite;
}

.hub-orb-b {
  width: 380px;
  height: 380px;
  right: -60px;
  bottom: -80px;
  background: rgba(186, 160, 252, 0.32);
  animation: hub-drift 42s ease-in-out infinite reverse;
}

.hub-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hub-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c2l);
}

.hub-kicker a {
  color: inherit;
  text-decoration: none;
}

.hub-kicker a:hover {
  text-decoration: underline;
}

.hub-hero h1,
.hub-section h2,
.hub-band h2,
.hub-panel h2 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.hub-hero h1 {
  font-size: 36px;
  max-width: 16ch;
}

.hub-lead,
.hub-intro,
.hub-panel p,
.hub-band p,
.hub-card p,
.hub-index-card p {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--n5l);
}

.hub-lead {
  max-width: 62ch;
  margin: 0 0 24px;
}

.hub-disclaimer {
  margin: 14px 0 0;
  color: var(--n6l);
  font-size: 13px;
  line-height: 1.5;
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: #fff;
  color: #242424;
  font: 500 16px/1.2 Roboto, sans-serif;
  text-decoration: none;
  box-shadow:
    0 1px 1px rgba(41, 54, 131, 0.06),
    0 8px 20px rgba(76, 108, 191, 0.12);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hub-btn:hover {
  background: var(--c4l);
}

.hub-btn:active {
  transform: translateY(1px);
}

.hub-btn-primary {
  background: var(--c1l);
  color: #242424;
}

.hub-btn-primary:hover {
  background: #6d8eeb;
}

.hub-section {
  padding: 72px 0;
}

.hub-section-alt {
  background: linear-gradient(180deg, #f7f9ff 0%, #fff 100%);
}

.hub-section h2,
.hub-panel h2,
.hub-band h2 {
  font-size: 32px;
}

.hub-intro {
  max-width: 68ch;
  margin: 0 0 28px;
}

.hub-grid,
.hub-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hub-card,
.hub-panel,
.hub-index-card {
  background: #fff;
  border: 1px solid #e4ebfb;
  border-radius: 5px;
  box-shadow:
    0 1px 1px rgba(41, 54, 131, 0.04),
    0 10px 28px rgba(76, 108, 191, 0.08);
}

.hub-card,
.hub-panel {
  padding: 22px;
}

.hub-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hub-card p,
.hub-panel p {
  margin: 0;
}

.hub-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

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

.hub-list li,
.hub-links li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid #e8eefc;
  font-size: 16px;
  line-height: 1.5;
}

.hub-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c1l);
}

.hub-links a {
  color: var(--c2l);
  font-weight: 500;
  text-decoration: none;
}

.hub-links a:hover {
  text-decoration: underline;
}

.hub-index-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hub-index-card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.hub-index-card p {
  margin: 0;
  flex: 1;
}

.hub-index-card span {
  color: var(--c2l);
  font-weight: 500;
  font-size: 14px;
}

.hub-index-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 1px rgba(41, 54, 131, 0.05),
    0 16px 32px rgba(76, 108, 191, 0.16);
}

.hub-index-card:active {
  transform: translateY(0);
}

.hub-band {
  padding: 72px 0 96px;
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(121, 154, 241, 0.2), transparent 70%),
    #f4f7ff;
}

@media (min-width: 800px) {
  .hub-hero h1 {
    font-size: 52px;
  }

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

  .hub-index-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hub-split {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (min-width: 1100px) {
  .hub-index-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@keyframes hub-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(28px, 18px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-orb,
  .hub-btn,
  .hub-index-card {
    animation: none;
    transition: none;
  }
}

/* Hero "Watch video" modal */
body.hub-video-open { overflow: hidden; }

.hub-video {
  align-items: center;
  background: rgba(16, 20, 32, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-sizing: border-box;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 16px;
  position: fixed;
  transition: opacity 0.2s ease;
  z-index: 2100;
}

.hub-video.is-open { opacity: 1; }

.hub-video-dialog {
  position: relative;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  width: min(960px, 100%, calc((100vh - 112px) * 16 / 9));
}

.hub-video.is-open .hub-video-dialog { transform: none; }

.hub-video-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.hub-video-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hub-video-close {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  color: #242424;
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0;
  top: -52px;
  transition: transform 0.15s ease, color 0.15s ease;
  width: 40px;
}

.hub-video-close .cui-icon { font-size: 20px; }
.hub-video-close:hover { color: #4c6cbf; transform: scale(1.06); }
.hub-video-close:active { transform: scale(0.96); }
.hub-video-close:focus-visible { outline: 2px solid #799af1; outline-offset: 3px; }

@media (max-width: 600px) {
  .hub-video { padding: 12px; }
  .hub-video-frame { border-radius: 12px; }
  .hub-video-close { height: 36px; top: -46px; width: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-video, .hub-video-dialog { transition: none; }
}
