.collective-nav {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 0 24px;
  color: #151517;
  font-family: var(--font-sans), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}

/* Keep the process-section label readable at a glance. */
#how-it-works .reveal > span.inline-flex {
  display: inline-block;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #171717;
  background: transparent;
  border: 0;
}

#how-it-works .reveal > span.inline-flex svg {
  display: none;
}

.collective-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(100%, 1180px);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition:
    width 260ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 260ms cubic-bezier(0.16, 1, 0.3, 1),
    background 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.collective-nav.is-scrolled .collective-nav__bar {
  width: min(100%, 880px);
  min-height: 50px;
  padding: 4px 6px 4px 14px;
  border-color: rgb(255, 255, 255);
  border-radius: 12px;
  background: rgba(251, 250, 249, 0.98);
  box-shadow:
    0 1px 3px rgba(17, 17, 17, 0.05),
    0 6px 6px rgba(17, 17, 17, 0.04),
    0 13px 8px rgba(17, 17, 17, 0.03),
    0 24px 9px rgba(17, 17, 17, 0.01);
  backdrop-filter: none;
}

.collective-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  flex: 0 0 auto;
  color: #151517;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.clinikhub-brand {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.clinikhub-brandmark {
  --brand-title-gap: 0.17rem;
  --brand-title-pull: -0.1rem;
  --brand-font-size: 1.5rem;
  display: inline-grid;
  grid-template-columns: 2.78rem minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-width: 0;
  color: #050505;
  gap: var(--brand-title-gap);
}

.puck-logo-mark {
  --puck-size: 1.93rem;
  --face-top: 0.014em;
  --face-right: 0.029em;
  --face-bottom: 0.087em;
  --face-left: 0.029em;
  --logo-hover-lift: 0rem;
  --logo-hover-scale: 1.018;
  --logo-base-shadow:
    -0.058em 0.075em 0.092em rgb(0 0 0 / 0.36),
    -0.017em 0.027em 0.031em rgb(0 0 0 / 0.44),
    0 0 0.072em rgb(255 255 255 / 0.1);
  --logo-face-opacity: 0.93;
  --logo-highlight-soft-opacity: 0.24;
  --logo-shadow-soft-opacity: 0.26;
  --logo-highlight-edge-opacity: 0.12;
  --logo-shadow-edge-opacity: 0.16;
  position: relative;
  display: block;
  justify-self: center;
  width: 1em;
  height: 1em;
  color: #050505;
  font-size: var(--puck-size);
  pointer-events: none;
}

.puck-logo-mark .visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #5b5b5b 0%, #383838 42%, #1b1b1b 72%, #060606 100%);
  box-shadow: var(--logo-base-shadow);
  transform: translate3d(0, var(--logo-hover-lift), 0) scale(var(--logo-hover-scale));
  transform-origin: center;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.puck-logo-mark .visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: var(--face-top);
  right: var(--face-right);
  bottom: var(--face-bottom);
  left: var(--face-left);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 23%, #fff 0%, #fff 36%, #fdfdfd 54%, #f7f7f7 70%, #eee 84%, #ddd 100%);
  box-shadow:
    0 0 0 0.008em rgb(18 18 18 / 0.74),
    inset 0 0.015em 0.019em rgb(255 255 255 / 0.76),
    inset 0 -0.01em 0.014em rgb(0 0 0 / 0.075);
  pointer-events: none;
  transform: scaleX(0.988) scaleY(1.012);
  transform-origin: center;
}

.puck-logo-mark .visual::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 195deg, rgb(0 0 0 / 0.98) 0deg, rgb(0 0 0 / 0.88) 58deg, rgb(0 0 0 / 0.34) 145deg, rgb(255 255 255 / 0.08) 205deg, rgb(0 0 0 / 0.24) 292deg, rgb(0 0 0 / 0.96) 360deg);
  mask: radial-gradient(circle, transparent 0%, transparent 73.8%, black 75.8%, black 78.3%, transparent 79%, transparent 80%, black 81%, black 100%);
  pointer-events: none;
}

.puck-logo-mark .face-hover {
  position: absolute;
  z-index: 2;
  top: var(--face-top);
  right: var(--face-right);
  bottom: var(--face-bottom);
  left: var(--face-left);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 23%, rgb(255 255 255 / 0.78) 0%, rgb(255 255 255 / 0.36) 34%, rgb(255 255 255 / 0.13) 62%, rgb(0 0 0 / 0.02) 100%);
  box-shadow:
    inset 0.006em 0.018em 0.02em rgb(255 255 255 / 0.58),
    inset -0.008em -0.014em 0.019em rgb(0 0 0 / 0.055),
    0 0.012em 0.019em rgb(255 255 255 / 0.2);
  opacity: var(--logo-face-opacity);
  pointer-events: none;
  transform: scaleX(0.988) scaleY(1.012);
  transform-origin: center;
}

.puck-logo-mark .glyph {
  position: relative;
  z-index: 3;
  display: block;
  width: 0.742em;
  height: 0.742em;
  transform: translateX(-0.045em) translateY(-0.045em) perspective(520px) rotateX(1deg);
  transform-origin: 50% 50%;
}

.puck-logo-mark .glyph svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.puck-logo-mark .c-mark {
  fill: currentColor;
}

.puck-logo-mark .c-highlight-soft,
.puck-logo-mark .c-shadow-soft,
.puck-logo-mark .c-highlight-edge,
.puck-logo-mark .c-shadow-edge {
  transform-box: fill-box;
  transform-origin: center;
}

.puck-logo-mark .c-highlight-soft {
  fill: #fff;
  filter: blur(0.85px);
  opacity: var(--logo-highlight-soft-opacity);
  transform: translate(-1.55px, -1.35px);
}

.puck-logo-mark .c-shadow-soft {
  fill: #000;
  filter: blur(1.05px);
  opacity: var(--logo-shadow-soft-opacity);
  transform: translate(1.65px, 1.9px);
}

.puck-logo-mark .c-highlight-edge {
  fill: #fff;
  opacity: var(--logo-highlight-edge-opacity);
  transform: translate(-0.7px, -0.65px);
}

.puck-logo-mark .c-shadow-edge {
  fill: #000;
  opacity: var(--logo-shadow-edge-opacity);
  transform: translate(0.85px, 1px);
}

.clinikhub-brandmark__word {
  min-width: 0;
  margin-inline-start: var(--brand-title-pull);
  padding-inline-end: 0.1rem;
  color: #050505;
  font-size: var(--brand-font-size);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.06;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(0.06rem) translateX(0);
  white-space: nowrap;
}

.clinikhub-mini-mark {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #050505;
  vertical-align: -0.25em;
}

.clinikhub-mini-mark .puck-logo-mark {
  --puck-size: 20px;
}

.clinikhub-mini-mark--sidebar {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.clinikhub-mini-mark--sidebar .puck-logo-mark {
  --puck-size: 32px;
}

.clinikhub-sidebar-brand {
  font-size: 23px;
  letter-spacing: -0.035em;
  line-height: 1;
}

.clinikhub-hero {
  /* Avoid a viewport-sized blank tail when browser zoom expands CSS viewport height. */
  min-height: min(100svh, 58rem);
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 9%, rgb(255 255 255 / 0.92) 0 18%, transparent 46%),
    radial-gradient(circle at 16% 72%, rgb(255 238 218 / 0.62) 0 17%, transparent 34%),
    radial-gradient(circle at 88% 68%, rgb(255 230 205 / 0.58) 0 18%, transparent 36%),
    linear-gradient(180deg, #faf7ef 0%, #f7f2e8 56%, #f4eee3 100%);
}

.clinikhub-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 20% 35%, rgb(83 65 41 / 0.035) 0 1px, transparent 1.4px),
    radial-gradient(circle at 76% 22%, rgb(83 65 41 / 0.03) 0 1px, transparent 1.5px),
    linear-gradient(90deg, rgb(255 255 255 / 0.42), transparent 14%, transparent 86%, rgb(255 255 255 / 0.38));
  background-size: 7px 7px, 11px 11px, 100% 100%;
  opacity: 0.75;
}

.clinikhub-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  height: 280px;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgb(246 238 225 / 0.28) 26%, rgb(242 229 211 / 0.72) 100%);
}

.clinikhub-hero::after {
  content: none;
}

.clinikhub-hero .animate-float-slow,
.clinikhub-hero .animate-float-delayed,
.clinikhub-hero .animate-float-fast {
  display: none !important;
}

.clinikhub-hero .hero-social-proof {
  display: inline-flex;
  align-items: center;
  min-height: 43px;
  margin-top: 1.5rem;
  padding: 5px 14px 5px 6px;
  border: 1px solid rgb(45 45 47 / 0.1);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.76);
  box-shadow: 0 8px 18px rgb(75 64 44 / 0.06), inset 0 1px rgb(255 255 255 / 0.8);
  color: #60635f;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  opacity: 0;
  animation: fade-up-in 0.5s 1.28s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  backdrop-filter: blur(8px);
}

.clinikhub-hero .hero-social-proof + h1 {
  padding-top: 20px !important;
}

.clinikhub-hero .hero-privacy-proof {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: #5f6674;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  font-weight: 500;
  line-height: 1.45;
  padding: 0.9rem 1.35rem;
}

.clinikhub-hero .hero-privacy-proof__heading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.clinikhub-hero .hero-privacy-proof svg {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
}

.clinikhub-hero .hero-privacy-proof__heading strong {
  font-size: 1.1em;
  color: #343842;
  font-weight: 700;
}

.clinikhub-hero .hero-privacy-proof__copy {
  display: block;
  margin-top: 0.15rem;
}

.clinikhub-hero .hero-btn2 {
  display: none;
}

.clinikhub-hero .hero-btn {
  border-radius: 18px;
}

.clinikhub-hero .hero-social-proof__avatars {
  display: flex;
  align-items: center;
  padding-right: 10px;
}

.clinikhub-hero .hero-social-proof__avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 31px;
  height: 31px;
  margin-left: -8px;
  border: 2px solid #fbf7ef;
  border-radius: 50%;
  cursor: default;
  outline: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.clinikhub-hero .hero-social-proof__avatar:first-child {
  margin-left: 0;
}

.clinikhub-hero .hero-social-proof__avatar:hover,
.clinikhub-hero .hero-social-proof__avatar:focus-visible {
  z-index: 3;
  transform: translateY(-5px);
  box-shadow: 0 5px 10px rgb(24 21 17 / 0.2);
}

.clinikhub-hero .hero-social-proof__avatar::after {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(100% + 9px);
  padding: 6px 8px;
  border-radius: 5px;
  background: #2d2d2f;
  color: #fff;
  content: attr(data-label);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.clinikhub-hero .hero-social-proof__avatar:hover::after,
.clinikhub-hero .hero-social-proof__avatar:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.clinikhub-hero .hero-social-proof__avatar img {
  display: block;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  object-fit: cover;
}

.clinikhub-hero .dashboard-border {
  position: relative;
  z-index: 10;
  isolation: isolate;
  overflow: visible;
  width: min(88vw, 900px);
  padding: 10px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, #101010 0%, #1b1b1b 52%, #050505 100%);
  box-shadow:
    0 2px 0 rgb(255 255 255 / 0.28) inset,
    0 -2px 0 rgb(0 0 0 / 0.64) inset,
    0 22px 50px rgb(37 27 15 / 0.22),
    0 8px 18px rgb(37 27 15 / 0.18);
}

.clinikhub-hero .clinikhub-hand {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  filter:
    saturate(0.98)
    contrast(1.01)
    drop-shadow(0 18px 28px rgb(80 56 33 / 0.13));
}

.clinikhub-hero .clinikhub-hand--left {
  left: -31%;
  top: 15%;
  width: 36%;
}

.clinikhub-hero .clinikhub-hand--right {
  right: -25%;
  top: -49%;
  width: 43%;
  transform: rotate(-12deg);
  transform-origin: 100% 0;
}

.clinikhub-hero .clinikhub-device-stage[data-hand-layers-ready="true"] .clinikhub-hand {
  opacity: 0.98;
}

.clinikhub-hero .clinikhub-hand--back {
  z-index: 1;
}

.clinikhub-hero .dashboard-border > div {
  position: relative;
  z-index: 3;
  height: clamp(430px, 44vw, 500px) !important;
  border-radius: 22px !important;
  border: 1px solid rgb(255 255 255 / 0.08) !important;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.72),
    inset 0 1px 3px rgb(255 255 255 / 0.55) !important;
}

.clinikhub-hero .dashboard-border::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  transform: translateX(-50%);
}

@media (max-width: 767px) {
  .clinikhub-hero::before,
  .clinikhub-hero::after {
    display: none;
  }

  .clinikhub-hero .clinikhub-hand {
    display: none;
  }

  .clinikhub-hero .dashboard-border {
    padding: 7px;
    border-radius: 24px;
  }

  .clinikhub-hero .hero-social-proof {
    min-height: 40px;
    margin-top: 1.25rem;
    padding-right: 11px;
    font-size: 12px;
  }

  .clinikhub-hero .hero-social-proof + h1 {
    padding-top: 16px !important;
  }

  .clinikhub-hero .hero-social-proof__avatars {
    padding-right: 8px;
  }

  .clinikhub-hero .hero-social-proof__avatar {
    width: 28px;
    height: 28px;
    margin-left: -7px;
  }

  .clinikhub-hero .hero-social-proof__avatar img {
    width: 28px;
    height: 28px;
  }
}

.collective-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 24px;
  min-width: 0;
  margin: 0;
}

.collective-nav__item {
  position: relative;
}

.collective-nav__trigger,
.collective-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: #171719;
  text-decoration: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
  cursor: pointer;
}

.collective-nav__trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}

.collective-nav__item.is-open .collective-nav__trigger svg,
.collective-nav__item:hover .collective-nav__trigger svg {
  transform: rotate(180deg);
}

.collective-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.collective-nav__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  white-space: nowrap;
  border-radius: 9px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.collective-nav__button:hover {
  transform: translateY(-1px);
}

.collective-nav__button--ghost {
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(255, 255, 255, 0.62);
  color: #151517;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.collective-nav__button--dark {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 1px rgba(0, 0, 0, 0.16);
}

.collective-nav__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 360px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 1px 1px rgba(18, 18, 18, 0.05),
    0 12px 28px rgba(18, 18, 18, 0.12),
    0 32px 70px rgba(18, 18, 18, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.98);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(18px);
}

.collective-nav__item.is-open .collective-nav__dropdown,
.collective-nav__item:hover .collective-nav__dropdown,
.collective-nav__item:focus-within .collective-nav__dropdown {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.collective-nav__dropdown--wide {
  width: 520px;
}

.collective-nav__dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.collective-nav__dropdown-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  min-height: 74px;
  padding: 12px;
  border-radius: 12px;
  color: #151517;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.collective-nav__dropdown-link:hover,
.collective-nav__dropdown-link:focus-visible {
  background: #f6f3ec;
  transform: translateY(-1px);
  outline: none;
}

.collective-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef9f7;
  color: #088c83;
  font-weight: 900;
}

.collective-nav__dropdown-title {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.collective-nav__dropdown-copy {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .collective-nav {
    top: 12px;
    padding: 0 14px;
  }

  .collective-nav__bar,
  .collective-nav.is-scrolled .collective-nav__bar {
    width: min(100%, 640px);
    min-height: 56px;
    padding: 8px 10px;
    border-color: rgba(17, 17, 17, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 36px rgba(26, 26, 26, 0.12);
  }

  .collective-nav__brand .clinikhub-brandmark__word,
  .collective-nav__button--ghost {
    display: none;
  }

  .collective-nav__links {
    gap: 14px;
    margin: 0 12px;
    overflow-x: auto;
  }

  .collective-nav__trigger,
  .collective-nav__link {
    font-size: 13px;
    white-space: nowrap;
  }

  .collective-nav__dropdown,
  .collective-nav__dropdown--wide {
    position: fixed;
    top: 76px;
    left: 14px;
    right: 14px;
    width: auto;
    transform: translateY(8px) scale(0.98);
  }

  .collective-nav__item.is-open .collective-nav__dropdown,
  .collective-nav__item:hover .collective-nav__dropdown,
  .collective-nav__item:focus-within .collective-nav__dropdown {
    transform: translateY(0) scale(1);
  }

  .collective-nav__dropdown-grid {
    grid-template-columns: 1fr;
  }
}
