/* Responsive device and clinic speciality showcases */

.showcase-heading {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 18px;
  text-align: center;
}

.showcase-heading h2 {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: clamp(1.18rem, 5.9vw, 1.5rem);
  font-weight: 550;
  line-height: 1.2;
}

.showcase-heading > p:not(.visually-hidden) {
  max-width: 620px;
  margin: 0 auto;
  color: #334155;
  font-size: clamp(0.86rem, 4vw, 1.05rem);
  line-height: 1.6;
}

.visually-hidden {
  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;
}

/* One-device responsive showcase */

.device-showcase {
  padding: 80px 0;
  overflow: hidden;
  background: linear-gradient(180deg, #f6fbfa 0%, #ecf9f7 100%);
}

.device-stage {
  position: relative;
  display: grid;
  width: min(calc(100% - 48px), 760px);
  height: 390px;
  margin: 44px auto 0;
  place-items: center;
}

.showcase-device {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate3d(-50%, calc(-50% + 12px), 0) scale(0.97);
  transition:
    opacity 0.26s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.showcase-device.is-active {
  z-index: 2;
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.showcase-device.is-leaving {
  opacity: 0;
  transform: translate3d(-50%, calc(-50% - 8px), 0) scale(1.015);
}

.showcase-device.is-active,
.showcase-device.is-leaving {
  will-change: transform, opacity;
}

.showcase-device .device-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.3);
  background: #253541;
  box-shadow:
    0 16px 38px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.showcase-device .device-screen {
  height: 100%;
  overflow: hidden;
  background: #f8fcfb;
}

.device-mobile {
  width: 168px;
  aspect-ratio: 0.52;
}

.device-mobile .device-frame {
  padding: 7px 6px;
  border-radius: 25px;
}

.device-mobile .device-screen {
  border-radius: 19px;
}

.device-speaker {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 50%;
  width: 32%;
  height: 4px;
  border-radius: 999px;
  background: #253541;
  transform: translateX(-50%);
}

.device-tablet {
  width: min(76%, 420px);
  aspect-ratio: 1.25;
}

.device-tablet .device-frame {
  padding: 7px;
  border-radius: 18px;
}

.device-tablet .device-screen {
  border-radius: 12px;
}

.device-laptop {
  width: min(92%, 520px);
}

.device-laptop .device-frame {
  height: auto;
  aspect-ratio: 1.65;
  padding: 7px 7px 9px;
  border-radius: 14px 14px 5px 5px;
}

.device-laptop .device-screen {
  border-radius: 8px;
}

.device-camera {
  position: absolute;
  z-index: 2;
  top: 3px;
  left: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #a8b3ba;
  transform: translateX(-50%);
}

.laptop-base {
  width: 104%;
  height: 10px;
  margin-left: -2%;
  border-radius: 2px 2px 12px 12px;
  background: linear-gradient(180deg, #dce4e7, #a4b0b7);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.laptop-base::after {
  content: "";
  display: block;
  width: 17%;
  height: 3px;
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
  background: rgba(15, 23, 42, 0.14);
}

.device-state-hint {
  display: flex;
  margin: -5px auto 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #9aa9b6;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.device-state-hint span {
  transition:
    color 0.22s ease,
    opacity 0.22s ease;
}

.device-state-hint span:not(.is-active) {
  opacity: 0.58;
}

.device-state-hint .is-active {
  color: #0f766e;
}

.device-state-hint i {
  color: #cbd5e1;
  font-style: normal;
}

/* QweeClin-like screen skeletons */

.mini-ui {
  display: flex;
  flex-direction: column;
}

.mini-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 18%;
  min-height: 24px;
  padding: 0 6%;
  border-bottom: 1px solid #dce9e7;
  background: #ffffff;
}

.mini-brand {
  display: grid;
  width: clamp(13px, 2.2vw, 21px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #0f766e;
  color: #ffffff;
  font-size: clamp(0.38rem, 0.8vw, 0.6rem);
  font-weight: 800;
}

.mini-topline {
  width: 28%;
  height: 5px;
  border-radius: 999px;
  background: #dbe7e8;
}

.mini-avatar {
  width: clamp(10px, 1.7vw, 16px);
  aspect-ratio: 1;
  margin-left: auto;
  border-radius: 50%;
  background: #d6f2ed;
}

.mini-layout {
  display: grid;
  flex: 1;
  grid-template-columns: 23% 1fr;
}

.mini-sidebar {
  display: flex;
  flex-direction: column;
  gap: 9%;
  padding: 17% 18%;
  background: #edf7f5;
}

.mini-sidebar span {
  width: 80%;
  height: 5px;
  border-radius: 999px;
  background: #aedbd4;
}

.mini-sidebar span:first-child {
  width: 100%;
  background: #0f766e;
}

.mini-content {
  min-width: 0;
  padding: 7%;
}

.mini-banner {
  width: 64%;
  height: 10%;
  min-height: 7px;
  margin-bottom: 7%;
  border-radius: 999px;
  background: #c4e9e3;
}

.mini-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6%;
  height: 25%;
}

.mini-card-row span {
  border: 1px solid #d8e7e5;
  border-radius: 6px;
  background: linear-gradient(145deg, #ffffff, #eaf7f5);
  box-shadow: 0 3px 8px rgba(15, 118, 110, 0.07);
}

.mini-chart {
  position: relative;
  height: 36%;
  margin-top: 8%;
  overflow: hidden;
  border: 1px solid #dce9e7;
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 49%, #eef3f3 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, #eef3f3 50%, transparent 51%);
  background-size: 22px 22px;
}

.mini-chart span {
  position: absolute;
  right: 7%;
  bottom: 18%;
  left: 7%;
  height: 42%;
  border-bottom: 3px solid #10bfa5;
  border-radius: 50% 35% 15% 30%;
  transform: skewY(-8deg);
}

.mini-ui-mobile .mini-topbar {
  height: 13%;
  padding-top: 7px;
}

.mini-mobile-nav {
  display: flex;
  justify-content: space-around;
  padding: 10% 8% 8%;
}

.mini-mobile-nav span {
  width: 20%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #d6f2ed;
}

.mini-ui-mobile .mini-content {
  padding: 0 10%;
}

.mini-ui-mobile .mini-banner {
  width: 78%;
  height: 7px;
}

.mini-ui-mobile .mini-card-row {
  grid-template-columns: repeat(2, 1fr);
  height: 54px;
}

.mini-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.mini-list span {
  height: 18px;
  border: 1px solid #e0ecea;
  border-radius: 6px;
  background: #ffffff;
}

/* Speciality showcase */

.speciality-showcase {
  padding: 80px 20px 90px;
  overflow: hidden;
  background: #ffffff;
}

.speciality-showcase .showcase-heading {
  padding-right: 0;
  padding-left: 0;
}

.speciality-stage {
  position: relative;
  width: min(100%, 520px);
  height: 280px;
  margin: 42px auto 0;
}

.speciality-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 28px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
  opacity: 0;
  transform: translate3d(16px, 0, 0) scale(0.985);
  transition:
    opacity 0.26s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.speciality-card.is-active {
  z-index: 2;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.speciality-card.is-leaving {
  opacity: 0;
  transform: translate3d(-16px, 0, 0) scale(0.985);
}

.speciality-card.is-active,
.speciality-card.is-leaving {
  will-change: transform, opacity;
}

.speciality-card.is-dental {
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow:
    var(--shadow),
    0 0 0 4px rgba(15, 118, 110, 0.035);
}

.speciality-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 18px;
  background: #edf8f6;
  color: #0f766e;
}

.is-dental .speciality-icon {
  background: #e4f7f3;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.1);
}

.speciality-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.speciality-card h3 {
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 600;
}

.speciality-card p {
  max-width: 360px;
  margin-top: 9px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
}

.speciality-progress {
  display: flex;
  margin: 18px auto 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.speciality-progress span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
  opacity: 0.68;
  transform: scale(1);
  transition:
    background-color 0.22s ease,
    opacity 0.22s ease,
    transform 0.22s ease;
}

.speciality-progress .is-active {
  background: #0f766e;
  opacity: 1;
  transform: scale(1.45);
}

@media (max-width: 820px) {
  .device-stage {
    height: 360px;
  }

  .device-state-hint {
    margin-top: -2px;
  }

  .device-mobile {
    width: 158px;
  }

  .device-tablet {
    width: min(86%, 380px);
  }

  .device-laptop {
    width: min(90%, 460px);
  }
}

@media (max-width: 480px) {
  .device-showcase,
  .speciality-showcase {
    padding-top: 64px;
    padding-bottom: 70px;
  }

  .device-stage {
    width: min(calc(100% - 32px), 390px);
    height: 320px;
    margin-top: 36px;
  }

  .device-mobile {
    width: min(48%, 150px);
  }

  .device-tablet {
    width: min(90%, 300px);
  }

  .device-laptop {
    width: min(92%, 330px);
  }

  .speciality-stage {
    height: 272px;
    margin-top: 36px;
  }

  .speciality-card {
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-device,
  .speciality-card,
  .device-state-hint span,
  .speciality-progress span {
    transition: none;
  }
}
