/* Dental hero — dark Figma frame (node 8118:12243) + live demo card */

.hero.relative {
  position: relative;
}

.hero.isolate {
  isolation: isolate;
}

.hero--demo .absolute.inset-0 {
  position: absolute;
  inset: 0;
}

.hero--demo .-z-10 {
  z-index: -10;
}

.hero--demo .pointer-events-none {
  pointer-events: none;
}

.hero--demo {
  --hero-purple: #7b61ff;
  --hero-purple-soft: #9d7bff;
  --hero-wash: rgba(157, 123, 255, 0.18);
  --hero-line: rgba(157, 123, 255, 0.28);
  --hero-glow: rgba(123, 97, 255, 0.32);
  --hero-red: #ff6b6b;
  --hero-ink: #f5f6ff;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: visible;
  background: #ffffff;
  color: var(--hero-ink);
}

.hero--demo .header {
  position: relative;
  z-index: 3;
  padding: 14px 16px;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.hero--demo .logo {
  width: 172px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.hero--demo .nav-phone {
  background: transparent;
  color: #5046d4;
  min-width: 213px;
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid #5046d4;
  gap: 12px;
  box-shadow: 0 4px 2px rgba(33, 33, 33, 0.26);
  justify-content: flex-start;
}

.hero--demo .nav-phone__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
}

.hero--demo .nav-phone__icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(25%) sepia(89%) saturate(745%) hue-rotate(226deg) brightness(104%);
}

.hero--demo .nav-phone__text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  line-height: 1;
}

.hero--demo .nav-phone__label {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  color: #5046d4;
}

.hero--demo .nav-phone__number {
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 16px;
  line-height: 21px;
  color: #5046d4;
  white-space: nowrap;
}

.hero--demo .hero__stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 16px 32px;
  width: 100%;
  min-width: 0;
  background: #05053e;
  overflow: hidden;
}

.hero--demo .hero__stage:has(.call-lang.is-open) {
  overflow: visible;
}

.hero--demo .hero__left,
.hero--demo .hero__intro,
.hero--demo .hero__copy-block {
  display: flex;
  flex-direction: column;
}

.hero--demo .hero__left {
  gap: 20px;
  min-width: 0;
}

.hero--demo .hero__intro {
  gap: 14px;
}

.hero--demo .hero__copy-block {
  gap: 10px;
}

.hero--demo .hero__stat {
  font-family: var(--font-inter);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(245, 246, 255, 0.82);
}

.hero--demo .hero__stat strong {
  color: var(--hero-red);
  font-weight: 700;
}

.hero--demo .hero__eyebrow {
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: rgba(245, 246, 255, 0.92);
  max-width: none;
  letter-spacing: 0.01em;
}

.hero--demo .hero__title {
  font-size: clamp(28px, 6.5vw, 55px);
  line-height: 1.15;
  letter-spacing: 0.004em;
  padding-bottom: 10px;
  max-width: 100%;
  overflow-wrap: break-word;
  color: #f5f6ff;
  font-family: var(--font-display);
  font-weight: 700;
}

.hero--demo .hero__title-accent {
  position: relative;
  display: inline;
  color: var(--hero-purple);
}

.hero--demo .hero__scribble {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  width: 100%;
  height: 10px;
  pointer-events: none;
  overflow: visible;
}

.hero--demo .hero__body {
  font-size: 14px;
  line-height: 1.55;
  max-width: 520px;
  color: rgba(245, 246, 255, 0.88);
}

.hero--demo .hero__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  width: 100%;
  min-width: 0;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.hero-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--hero-wash);
  border: 1px solid rgba(157, 123, 255, 0.28);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-feature__icon img {
  width: 22px;
  height: 22px;
}

.hero--demo .hero__badges {
  width: 100%;
  max-width: 100%;
  left: auto;
  transform: none;
}

.hero-feature span:last-child {
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  color: #fff;
  overflow-wrap: break-word;
}

.hero--demo .trust-item span,
.hero--demo .trust-item--custom span {
  color: rgba(245, 246, 255, 0.92);
}

.hero--demo .hero__cta-wrap {
  align-items: stretch;
  width: 100%;
}

.hero--demo .hero__cta-wrap .btn-primary {
  width: 100%;
  max-width: 320px;
}

/* Call card — Figma glassmorphism */
.call-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(27px);
  -webkit-backdrop-filter: blur(27px);
  border: 1px solid #e2e2e2;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.call-card__head {
  padding: 20px 16px 16px;
}

.call-card__title {
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  color: #fff;
  margin-bottom: 8px;
}

.call-card__sub {
  font-family: var(--font-inter);
  font-size: 14px;
  line-height: 20px;
  color: #f5f6ff;
}

/* Horizontal divider */
.call-card__divider {
  height: 1px;
  background: rgba(226, 226, 226, 0.4);
  margin: 0 16px;
}

.call-card__body {
  padding: 20px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
}

.call-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.call-field label {
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.072px;
  text-transform: uppercase;
  color: #f5f6ff;
}

/* Pill input row */
.call-field__pill {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d1c7ff;
  border-radius: 40px;
  overflow: hidden;
  padding: 4px 4px 4px 12px;
}

.call-field__pill .call-field__input-wrap {
  flex: 1;
  min-width: 0;
}

.call-field__pill input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 6px 0;
  font-family: var(--font-inter);
  font-size: 12px;
  color: var(--h1-h2);
  outline: none;
  letter-spacing: 0.072px;
}

.call-field__pill input::placeholder {
  color: #a8aed0;
}

.call-field__load-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #9d7bff;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 10px 10px 10px 10px;
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.072px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.call-field__load-btn:hover { opacity: 0.88; }

/* Spinner icon — hidden until button has .is-loading */
.call-field__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: card-spinner 0.8s linear infinite;
  flex-shrink: 0;
}

.call-field__load-btn.is-loading .call-field__load-text { display: none; }
.call-field__load-btn.is-loading .call-field__spinner { display: inline-block; }

@keyframes card-spinner {
  to { transform: rotate(360deg); }
}

.call-field__input-wrap {
  position: relative;
}

.call-field__input-wrap.is-typed input::placeholder {
  color: transparent;
}

.call-field__typed {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
  font-family: var(--font-inter);
  font-size: 14px;
  line-height: 1.2;
  color: #9a97ad;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
}

.call-field__input-wrap.is-typed .call-field__typed {
  opacity: 1;
}

.call-field__input-wrap.is-user .call-field__typed,
.call-field__input-wrap:focus-within .call-field__typed {
  opacity: 0;
}

.call-field__typed-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.call-field__caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  background: #7b61ff;
  flex-shrink: 0;
  animation: call-caret-blink 1s step-end infinite;
}

@keyframes call-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .call-field__caret {
    animation: none;
    opacity: 1;
  }
}

.call-field input:focus {
  border-color: var(--hero-purple);
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.15);
}

.call-field input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.call-prep {
  display: none;
  margin: 2px 0 16px;
}

.call-prep.is-active {
  display: block;
}

.call-prep__bar {
  height: 6px;
  background: var(--hero-wash);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 16px;
}

.call-prep__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--hero-purple), var(--hero-purple-soft));
  border-radius: 100px;
  transition: width 0.8s ease;
}

.call-prep__steps {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.call-prep__step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-inter);
  font-size: 13px;
  color: rgba(245, 246, 255, 0.7);
  transition: color 0.3s;
}

.call-prep__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--hero-line);
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s;
}

.call-prep__step.is-done {
  color: var(--h1-h2);
  font-weight: 500;
}

.call-prep__step.is-done .call-prep__dot {
  background: var(--hero-purple);
  border-color: var(--hero-purple);
}

.call-prep__step.is-done .call-prep__dot::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.call-prep__step.is-active {
  color: var(--hero-purple);
  font-weight: 600;
}

.call-prep__step.is-active .call-prep__dot {
  border-color: var(--hero-purple);
  animation: call-prep-pulse 1.2s ease-in-out infinite;
}

.call-prep__step.is-active .call-prep__dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--hero-purple);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@keyframes call-prep-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(123, 97, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(123, 97, 255, 0);
  }
}

.call-prep__note {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(245, 246, 255, 0.75);
  line-height: 1.5;
  text-align: center;
  font-style: italic;
}

.call-card:has(.call-lang.is-open) {
  overflow: visible;
  z-index: 6;
}

.call-card__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* Orb row: orb centered; tooltip anchored to orb via absolute positioning */
.call-orb-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 154px;
  overflow: visible;
  --call-orb-half: 66px;
}

.call-orb-cluster {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Tooltip beside the orb — positioned from row center so orb stays centered */
.call-tap-label {
  position: absolute;
  left: calc(50% - var(--call-orb-half) - 10px);
  top: calc(50% - var(--call-orb-half) + 17px);
  transform: translateX(-100%);
  width: max-content;
  max-width: 148px;
  background: #fff;
  color: #7b61ff;
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  padding: 6px 10px;
  border-radius: 8px 8px 0 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.14);
  text-align: left;
  z-index: 3;
  border: 1px solid rgba(123, 97, 255, 0.15);
  pointer-events: none;
}

/* Orb circle container — solid purple circle with animated neon glow */
.call-orb-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #7c52e8 0%, #5535c4 45%, #3b21a2 100%);
  box-shadow:
    0 0 0 2px rgba(185, 150, 255, 0.9),
    0 0 10px 4px rgba(165, 115, 255, 0.55),
    0 0 18px 8px rgba(135, 80, 245, 0.3);
  animation: call-orb-ring-pulse 2.8s ease-in-out infinite;
  cursor: pointer;
}

.call-orb-wrap.is-disabled {
  cursor: not-allowed;
}

/* Animated glow halo behind orb body */
.call-orb__glow {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(210, 180, 255, 0.75) 0%,
    rgba(175, 130, 255, 0.5) 42%,
    rgba(140, 90, 245, 0.2) 58%,
    transparent 68%
  );
  animation: call-orb-glow-breathe 2.8s ease-in-out infinite;
}

/* Stronger / faster pulse while on a live call */
.call-orb__glow.is-active {
  animation: call-orb-glow-breathe 1.5s ease-in-out infinite;
  background: radial-gradient(
    circle at center,
    rgba(220, 195, 255, 1) 0%,
    rgba(185, 140, 255, 0.8) 38%,
    rgba(150, 100, 255, 0.45) 62%,
    transparent 78%
  );
}

.call-orb-wrap:has(.call-orb__glow.is-active) {
  animation: call-orb-ring-pulse 1.5s ease-in-out infinite;
}

@keyframes call-orb-glow-breathe {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

@keyframes call-orb-ring-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(185, 150, 255, 0.65),
      0 0 8px 3px rgba(165, 115, 255, 0.4),
      0 0 16px 6px rgba(135, 80, 245, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(200, 165, 255, 0.95),
      0 0 12px 5px rgba(175, 125, 255, 0.65),
      0 0 22px 9px rgba(145, 90, 255, 0.38);
  }
}

@media (prefers-reduced-motion: reduce) {
  .call-orb-wrap,
  .call-orb__glow {
    animation: none;
  }
}

/* Text centred in upper portion of orb */
.call-orb__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 0.38px #7b4eff, 0 0 2.66px #7b4eff, 0 0 9.12px #7b4eff;
  width: 80px;
  pointer-events: none;
}

/* Mic button — sits on bottom-right edge of the 130px orb circle */
.call-mic {
  position: absolute;
  bottom: 2px;
  right: 2px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(80, 50, 200, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.2s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.call-mic:hover:not(:disabled) { transform: scale(1.1); }
.call-mic:active:not(:disabled) { transform: scale(0.93); }
.call-mic:disabled { opacity: 0.6; cursor: not-allowed; }

.call-mic svg {
  width: 20px;
  height: 20px;
}

/* End Call — shown only while live */
.call-end-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 30px;
  margin-top: 6px;
  padding: 6px 16px;
  border: none;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
  transition: transform 0.16s ease, background 0.16s ease, opacity 0.2s;
}

.call-end-btn:not([hidden]) {
  display: inline-flex;
}

.call-end-btn:hover {
  background: #d32f2f;
  transform: translateY(-1px);
}

.call-end-btn:active {
  transform: translateY(0) scale(0.98);
}

.call-card__action:has(.call-end-btn:not([hidden])) .call-lang {
  display: none;
}

/* Language selector */
.call-lang {
  position: relative;
  width: fit-content;
  margin-top: 6px;
  z-index: 4;
}

.call-lang.is-open {
  z-index: 30;
}

.call-lang__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.call-lang__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 17px;
  padding: 5px 8px 5px 10px;
  font-family: var(--font-inter);
  font-size: 13px;
  font-weight: 500;
  line-height: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.call-lang__trigger:disabled {
    opacity: 0.6;
  cursor: not-allowed;
}

.call-lang__chevron {
  width: 16px;
  height: 16px;
  stroke: #fff;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.call-lang.is-open .call-lang__chevron {
  transform: rotate(180deg);
}

.call-lang__menu {
  position: absolute;
  top: calc(100% + 6px);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  min-width: calc(100% + 12px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(5, 5, 62, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 226, 226, 0.35);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 40;
}

.call-lang__option {
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-inter);
  font-size: 13px;
  font-weight: 500;
  line-height: 15px;
  color: #f5f6ff;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.call-lang__option:hover,
.call-lang__option.is-selected {
  background: rgba(123, 97, 255, 0.35);
  color: #fff;
}

/* Hidden avatar (JS compat) */
.call-avatar { display: none !important; }

/* Status text inside orb */
.call-status {
  font-family: var(--font-inter);
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary-body);
}


.call-mic-note {
  font-family: var(--font-inter);
  font-size: 11px;
  color: #f5f6ff;
  text-align: center;
  line-height: 16.5px;
}

.call-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--h1-h2);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(5, 5, 62, 0.25);
  z-index: 1100;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: min(90%, 420px);
  text-align: center;
  pointer-events: none;
}

.call-toast.is-show {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1023px) {
  .hero--demo .hero__stage {
    display: grid;
    gap: 20px;
  }

  .hero--demo .hero__left {
    display: contents;
  }

  .hero--demo .hero__intro {
    order: 1;
    min-width: 0;
  }

  .hero--demo .hero__cta-wrap {
    order: 2;
  }

  .hero--demo .call-card {
    order: 3;
  }

  .hero--demo .hero__features {
    order: 4;
  }

  .hero--demo .hero__cta-wrap .btn-primary {
    max-width: none;
    width: 100%;
  }
}

@media (min-width: 480px) {
  .hero--demo .hero__title {
    font-size: clamp(30px, 5.2vw, 36px);
    line-height: 1.42;
  }
}

@media (min-width: 768px) {
  .hero--demo .header {
    padding: 16px 32px;
  }

  .hero--demo .hero__stage {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero--demo .hero__title {
    font-size: 36px;
    line-height: 1.42;
  }

  .hero--demo .hero__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }

  .hero-feature {
    max-width: none;
    align-items: flex-start;
    text-align: left;
  }

  .hero-feature span:last-child {
    font-size: 12px;
  }
}

@media (min-width: 1024px) {
  .hero.hero--demo {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .hero--demo .header {
    min-height: 80px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .hero--demo .hero__stage {
    display: grid;
    grid-template-columns: minmax(0, 636px) minmax(300px, 472px);
    justify-content: space-between;
    align-items: center;
    gap: clamp(32px, 4vw, 56px);
    padding-top: 56px;
    padding-bottom: 80px;
  }

  .hero--demo .hero__left {
    display: flex;
    gap: 22px;
    min-width: 0;
    align-self: center;
  }

  .hero--demo .hero__intro {
    gap: 16px;
  }

  .hero--demo .hero__stat {
    font-size: 14px;
  }

  .hero--demo .hero__eyebrow {
    font-size: 16px;
  }

  .hero--demo .hero__title {
    font-size: 40px;
    line-height: 1.4;
    max-width: none;
  }

  .hero--demo .hero__scribble {
    bottom: -6px;
    height: 12px;
  }

  .hero--demo .hero__body {
    font-size: 16px;
    line-height: 1.6;
    max-width: 540px;
  }

  .hero--demo .hero__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }

  .hero-feature__icon {
    width: 48px;
    height: 48px;
  }

  .hero--demo .hero__cta-wrap {
    align-items: flex-start;
  }

  .hero--demo .hero__cta-wrap .btn-primary {
    width: auto;
    min-width: 220px;
    max-width: 280px;
  }

  .call-card__head {
    padding: 22px 26px 18px;
  }

  .call-card__title {
    font-size: 20px;
  }

  .call-card__body {
    padding: 20px 26px 24px;
  }

  .call-mic-wrap {
    width: 80px;
    height: 80px;
  }

  .call-orb-row {
    height: 168px;
    --call-orb-half: 72px;
  }

  .call-orb-wrap {
    width: 144px;
    height: 144px;
  }

  .call-orb__text {
    font-size: 16px;
    line-height: 21px;
    width: 88px;
  }

  .call-mic {
    width: 42px;
    height: 42px;
  }

  .call-mic svg {
    width: 22px;
    height: 22px;
  }
}

@media (min-width: 1280px) {
  .hero--demo .hero__stage {
    padding-top: 64px;
    padding-bottom: 88px;
    gap: 56px;
  }

  .hero--demo .hero__title {
    font-size: 44px;
    line-height: 1.38;
  }

  .hero--demo .hero__features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .hero--demo .nav-phone__text {
    display: none;
  }

  .hero--demo .hero__features {
    gap: 14px 10px;
  }

  .hero-feature span:last-child {
    font-size: 11px;
  }

  .page .hear-it-card {
    width: min(336px, calc(100vw - 24px));
    height: auto;
    aspect-ratio: 336 / 340;
  }
}

/* Hear It for Yourself — Figma node 8534:13100 */
.hear-it {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  padding: 40px 12px;
  background: var(--white);
}

.hear-it__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: none;
  text-align: left;
}

.hear-it__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 48px;
  letter-spacing: 0;
  color: #05063e;
}

.hear-it__subtitle {
  margin: 0;
  font-family: var(--font-inter);
  font-size: 14px;
  line-height: 22px;
  color: #4f5275;
  max-width: 317px;
}

.hear-it__cards {
  width: 100%;
  gap: 20px;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.hear-it-card {
  position: relative;
  flex-shrink: 0;
  width: 336px;
  height: 340px;
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: start;
  outline: none;
  cursor: pointer;
}

.hear-it-card__media {
  position: absolute;
  inset: 0;
}

.hear-it-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 62, 0.15) 0%, rgba(5, 6, 62, 0.42) 48%, rgba(5, 6, 62, 0.78) 100%),
    rgba(5, 6, 62, 0.28);
  opacity: 1;
  transition: opacity 0.28s ease;
}

.hear-it-card.is-clear .hear-it-card__media::after {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .hear-it-card:hover .hear-it-card__media::after {
    opacity: 0;
  }
}

.hear-it-card__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hear-it-card__content {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hear-it-card__label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 36px;
  color: #f5f6ff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .hear-it {
    padding: 40px 32px;
    gap: 36px;
    align-items: center;
  }

  .hear-it__header {
    align-items: center;
    max-width: 640px;
    text-align: center;
  }

  .hear-it__title {
    font-size: 36px;
    line-height: 44px;
  }

  .hear-it__subtitle {
    font-size: 16px;
    line-height: 26px;
    max-width: none;
  }

  .hear-it__cards {
    gap: 24px;
  }

  .hear-it-card {
    width: 300px;
    height: 304px;
  }

  .hear-it-card__label {
    font-size: 22px;
    line-height: 32px;
  }

  .hear-it-card__content {
    left: 15px;
    right: 15px;
    bottom: 20px;
  }
}

@media (min-width: 1024px) {
  .hear-it {
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 40px;
  }

  .hear-it__title {
    font-size: 44px;
    line-height: 52px;
  }

  .hear-it .pager {
    display: none;
  }

  .hear-it__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    max-width: none;
    width: 100%;
    margin: 0;
    overflow: visible;
  }

  .hear-it-card {
    width: auto;
    height: auto;
    aspect-ratio: 336 / 340;
    max-height: 340px;
  }

  .hear-it-card__label {
    font-size: 24px;
    line-height: 36px;
  }
}

/* ── Dental page mobile — Figma Android Large 360px (node 8494:12617) ── */
@media (max-width: 767px) {
  .page {
    overflow-x: clip;
  }

  /* Header */
  .hero--demo .header {
    padding: 10px 16px;
    min-height: 56px;
  }

  .hero--demo .logo {
    width: 118px;
    height: 44px;
  }

  .hero--demo .nav-phone {
    width: 48px;
    height: 36px;
    min-width: 48px;
    padding: 6px 12px;
    justify-content: center;
    gap: 0;
  }

  .hero--demo .nav-phone__text {
    display: none;
  }

  /* Hero copy — Space Grotesk 28/37, Inter eyebrow 16/20, body 14/20 */
  .hero--demo .hero__stage {
    padding: 64px 10px 40px;
    gap: 62px;
  }

  .hero--demo .hero__intro {
    gap: 14px;
  }

  .hero--demo .hero__copy-block {
    gap: 12px;
  }

  .hero--demo .hero__eyebrow {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #f5f6ff;
  }

  .hero--demo .hero__title {
    font-size: 28px;
    line-height: 37px;
    letter-spacing: 0;
    padding-bottom: 0;
  }

  .hero--demo .hero__body {
    font-size: 14px;
    line-height: 20px;
    color: #f5f6ff;
  }

  .hero--demo .hero__cta-wrap {
    margin-top: 0;
  }

  .hero--demo .hero__cta-wrap .btn-primary {
    min-height: 48px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 20px;
  }

  /* Call card — full width within hero, no double inset */
  .call-card {
    border-radius: 16px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .call-card__head {
    padding: 20px 16px 16px;
  }

  .call-card__title {
    font-size: 18px;
    line-height: 26px;
  }

  .call-card__sub {
    font-size: 14px;
    line-height: 20px;
  }

  .call-card__divider {
    margin: 0 16px;
  }

  .call-card__body {
    padding: 20px 16px;
    gap: 16px;
  }

  .call-field label {
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.072px;
  }

  .call-field__pill {
    padding: 5px 5px 5px 13px;
    border-radius: 40px;
  }

  .call-field__pill input {
    padding: 5px 0;
    font-size: 12px;
  }

  .call-field__typed {
    left: 13px;
    right: 13px;
    font-size: 12px;
  }

  .call-field__load-btn {
    padding: 10px;
    font-size: 12px;
    line-height: 20px;
    border-radius: 32px;
    gap: 6px;
  }

  .call-field__load-btn.is-loading .call-field__spinner {
    width: 20px;
    height: 20px;
  }

  /* Orb — Figma 107px circle, 40px mic */
  .call-orb-row {
    height: 120px;
    --call-orb-half: 53.5px;
  }

  .call-orb-wrap {
    width: 107px;
    height: 107px;
  }

  .call-orb__text {
    font-size: 13px;
    line-height: 17px;
    width: 77px;
  }

  .call-mic {
    width: 30px;
    height: 30px;
    bottom: 0;
    right: 0;
  }

  .call-mic svg {
    width: 15px;
    height: 15px;
  }

  .call-tap-label {
    font-size: 12px;
    line-height: 15px;
    padding: 6px 10px;
  }

  .call-lang {
    font-size: 13px;
    line-height: 15px;
    padding: 5px 8px 5px 8px;
    margin-top: 8px;
  }

  .call-mic-note {
    font-size: 12px;
    line-height: 17px;
  }

  /* Results — 16px inset, 12px vertical */
  .page .results {
    padding: 12px 16px;
    margin: 0;
    gap: 10px;
  }

  .page .results__label {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 15px;
    line-height: normal;
    color: #05053e;
  }

  .page .results .scroll-row {
    gap: 8px;
    padding-left: 0;
    padding-right: 0;
  }

  .page .stat-card {
    min-width: 125px;
    padding: 8px 16px;
    border-radius: 12px;
  }

  .page .stat-card__value {
    font-size: 20px;
    line-height: 26px;
  }

  .page .stat-card__label {
    font-size: 12px;
    line-height: 15px;
  }

  /* Social proof logos */
  .page .social-proof {
    padding: 12px 0;
    gap: 12px;
  }

  .page .social-proof__title {
    font-size: 12px;
    line-height: 15px;
    letter-spacing: 0.0833em;
    max-width: 224px;
    padding: 0 20px;
  }

  /* Hear It — left-aligned, 336×340 cards */
  .page .hear-it {
    padding: 40px 12px;
    gap: 22px;
  }

  .page .hear-it .pager {
    padding-left: 0;
  }

  /* Contact — left-aligned intro, 24px title */
  .page .demo-contact {
    padding: 40px 16px 24px;
    gap: 16px;
  }

  .page .demo-contact__intro {
    text-align: left;
    align-items: flex-start;
    max-width: none;
    gap: 9px;
  }

  .page .demo-contact__title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    color: #05053e;
  }

  .page .demo-contact__subtitle {
    font-size: 14px;
    line-height: 1.5;
  }

  .page .demo-contact__card {
    border-radius: 16px;
  }

  .page .demo-contact__form {
    padding: 24px 12px;
    gap: 16px;
  }

  .page .demo-field__label {
    font-size: 14px;
    line-height: 26px;
  }

  .page .demo-field__input,
  .page .demo-field__phone {
    min-height: 48px;
  }

  .page .demo-contact__submit {
    min-height: 52px;
    border-radius: 12px;
  }

  /* Clock features */
  .page .clock {
    padding: 12px 16px;
    margin: 0;
    gap: 16px;
  }

  .page .clock__title {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 20px;
    line-height: normal;
    max-width: 280px;
    color: #05053e;
  }

  .page .clock .scroll-row {
    gap: 16px;
    padding-left: 0;
    padding-right: 0;
  }

  .page .clock-card {
    width: 288px;
    flex-shrink: 0;
  }

  .page .clock-card img {
    width: 288px;
    height: auto;
    aspect-ratio: 288 / 156;
    border-radius: 12px;
  }

  .page .clock-card__sub,
  .page .clock-card__main {
    font-size: 14px;
    line-height: 17px;
  }

  /* Built for Dental */
  .page .built {
    padding: 24px 24px 32px;
    gap: 24px;
  }

  .page .built__title {
    font-size: 22px;
    line-height: 26px;
    text-align: center;
  }

  .page .built__lead {
    font-size: 16px;
    line-height: 17px;
    text-align: center;
  }

  .page .built__desc {
    font-size: 13px;
    line-height: 15px;
    text-align: center;
  }

  .page .built__grid {
    gap: 24px;
  }

  .page .built-card {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .page .built-card__title {
    font-size: 18px;
    line-height: 26px;
  }

  .page .built-card__body,
  .page .built-card__body--lg {
    font-size: 14px;
    line-height: 24px;
  }

  /* HIPAA */
  .page .hipaa {
    padding: 24px 28px 32px;
    gap: 24px;
  }

  .page .hipaa__eyebrow {
    font-size: 18px;
    line-height: 26px;
  }

  .page .hipaa__title {
    font-size: 18px;
    line-height: 20px;
    text-align: left;
  }

  .page .hipaa__body {
    font-size: 13px;
    line-height: 17px;
  }

  .page .hipaa__item span {
    font-size: 13px;
    line-height: 15px;
  }

  .page .hipaa__image {
    border-radius: 12px;
  }

  /* FAQ */
  .page .faq {
    padding: 20px 16px 40px;
    gap: 16px;
  }

  .page .faq__title {
    font-size: 18px;
    line-height: 26px;
    text-align: left;
  }

  .page .faq__lead {
    font-size: 14px;
    line-height: 17px;
  }

  .page .faq-item__q {
    padding: 12px;
    gap: 12px;
  }

  .page .faq-item__q span {
    font-size: 14px;
    line-height: 19px;
  }
}

/* Footer logo */
.ub-footer-logo img {
  width: 352px;
  max-width: 100%;
  height: auto;
  object-position: left center;
  display: block;
}

@media (max-width: 768px) {
  .ub-footer-main {
    padding-top: 24px !important;
  }

  .ub-footer .ub-container {
    padding-left: 12px !important;
    padding-right: 16px !important;
  }

  .ub-footer-logo {
    margin-bottom: 0 !important;
  }

  .ub-footer-logo a {
    display: block;
    line-height: 0;
  }

  .ub-footer-logo img {
    width: 246px;
    max-width: none;
    height: auto;
    margin-left: -6px;
    display: block;
  }

  .ub-footer-logo p {
    margin-top: 16px;
  }
}

/* ── Tablet (768–1023) — between mobile stack and desktop grid ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .page {
    overflow-x: clip;
  }

  .hero--demo .hero__stage {
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 40px;
  }

  /* Call card — cap width so orb/controls don't stretch edge-to-edge */
  .hero--demo .call-card {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .call-orb-row {
    height: 140px;
    --call-orb-half: 60px;
  }

  .call-orb-wrap {
    width: 120px;
    height: 120px;
  }

  .call-orb__text {
    font-size: 14px;
    line-height: 18px;
    width: 88px;
  }

  /* Results — 2×2 grid instead of cramped single row */
  .page .results {
    padding: 16px 32px;
    margin: 0;
    gap: 12px;
  }

  .page .results__label {
    font-size: 20px;
    line-height: 28px;
  }

  .page .results .scroll-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
  }

  .page .results .pager {
    display: none;
  }

  .page .stat-card {
    min-width: 0;
    width: auto;
  }

  /* Section horizontal rhythm */
  .page .hear-it,
  .page .demo-contact,
  .page .clock,
  .page .built,
  .page .hipaa,
  .page .faq {
    padding-left: 32px;
    padding-right: 32px;
  }

  .page .social-proof__title {
    padding-left: 32px;
    padding-right: 32px;
    max-width: none;
  }
}

/* ── Desktop content cap — Figma 1440 frame / 1280px content ── */
@media (min-width: 1024px) {
  .page {
    width: 100%;
    max-width: none;
    overflow: visible;
  }

  .hero--demo .header,
  .hero--demo .hero__stage,
  .page > .results,
  .page > .hear-it,
  .page > .demo-contact,
  .page > .clock,
  .page > .hipaa,
  .page > .faq,
  .page > .built .built__inner,
  .page > .social-proof .social-proof__title,
  .ub-footer .ub-container {
    padding-left: max(32px, calc((100vw - 1280px) / 2));
    padding-right: max(32px, calc((100vw - 1280px) / 2));
    box-sizing: border-box;
  }

  .hero--demo .header {
    min-height: 80px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .hero--demo .hero__title,
  .hero--demo .hero__body {
    max-width: 636px;
  }

  .hero--demo .call-card {
    max-width: 472px;
    width: 100%;
    justify-self: end;
  }

  .hero--demo .hero__stage {
    display: grid;
    grid-template-columns: minmax(0, 636px) minmax(300px, 472px);
    justify-content: space-between;
    align-items: center;
  }

  .hero--demo .call-card {
    align-self: center;
  }

  .page > .built {
    padding-left: 0;
    padding-right: 0;
  }

  .page > .results {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .page > .demo-contact {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page > .clock {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .page > .hipaa {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .page > .faq {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .ub-footer .ub-container {
    max-width: none;
    width: 100%;
  }
}

/* AIDesigner runtime injects a fixed badge via [data-aifx-wm] (closed shadow DOM) */
[data-aifx-wm] {
  display: none !important;
}

.ub-links a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
