/* ORI REMAP — Web Demo wrapper (embeds faithful v2 mockup) */

html:has(body.demo-embed-page) {
  height: 100%;
  overflow: hidden;
}

.demo-embed-page {
  --demo-toolbar-h: 44px;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f4f6f8;
}

.demo-embed-page .site-header {
  position: relative;
  flex-shrink: 0;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.demo-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  background: linear-gradient(105deg, #fffbeb 0%, #fef3c7 42%, #fff7ed 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.45);
  color: #78350f;
  font-size: 0.8125rem;
  line-height: 1.45;
  animation: demoBannerIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes demoBannerIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-banner__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-top: 0.05rem;
  border-radius: 10px;
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
  animation: demoBannerIconPulse 2.8s ease-in-out infinite;
}

@keyframes demoBannerIconPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.2);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 6px rgba(217, 119, 6, 0);
  }
}

.demo-banner p {
  margin: 0;
}

.demo-banner__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.demo-banner__lead {
  font-weight: 600;
  color: #92400e;
}

.demo-banner__tag {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.15);
  color: #b45309;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.demo-banner__sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: #a16207;
  opacity: 0.92;
}

.demo-banner__cta {
  margin-top: 0.15rem !important;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  color: #92400e;
}

.demo-banner__cta a {
  color: #b45309;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-banner__cta a:hover {
  color: #78350f;
}

.demo-embed-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.demo-embed-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding: 0.45rem clamp(0.75rem, 2vw, 1rem);
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.demo-embed-toolbar__info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  min-width: 0;
}

.demo-embed-toolbar__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.demo-embed-toolbar__hint {
  font-size: 0.8125rem;
  color: #64748b;
  min-width: 0;
}

.demo-embed-frame-wrap {
  flex: 1;
  min-height: 0;
  min-width: 0;
  padding: 0.25rem clamp(0.5rem, 1.5vw, 0.65rem) 0.25rem;
  display: flex;
  position: relative;
  overflow: auto;
}

.demo-zoom-float {
  position: absolute;
  right: calc(0.65rem + 6px);
  bottom: 0.65rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.demo-embed-frame-wrap:hover .demo-zoom-float,
.demo-zoom-float:focus-within {
  opacity: 1;
}

.demo-zoom-float__btn {
  width: 1.625rem;
  height: 1.625rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.demo-zoom-float__btn:hover {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
}

.demo-zoom-float__pct {
  min-width: 2.75rem;
  height: 1.625rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  padding: 0 0.35rem;
}

.demo-zoom-float__pct:hover,
.demo-zoom-float__pct.is-active {
  color: #0284c7;
  background: rgba(14, 165, 233, 0.1);
}

.demo-embed-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: #ececee;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  display: block;
}

.site-footer--compact {
  flex-shrink: 0;
  margin-top: 0;
  padding: 0.28rem 0;
  font-size: 0.75rem;
}

.demo-embed-page .site-footer__inner {
  padding-left: clamp(0.75rem, 2vw, 1.25rem);
  padding-right: clamp(0.75rem, 2vw, 1.25rem);
}

.demo-embed-page .site-footer__bottom {
  gap: 0.5rem 1rem;
}

@media (max-width: 900px) {
  .demo-embed-toolbar__hint {
    font-size: 0.75rem;
    line-height: 1.35;
  }
}

@media (max-width: 640px) {
  .demo-banner {
    padding: 0.6rem 0.85rem;
    font-size: 0.8125rem;
  }

  .demo-embed-toolbar {
    padding: 0.5rem 0.75rem;
  }

  .demo-embed-toolbar__hint {
    display: none;
  }

  .demo-embed-frame-wrap {
    padding: 0.5rem;
  }

  .demo-embed-frame {
    border-radius: 10px;
  }

  .demo-embed-page .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .demo-banner__icon {
    display: none;
  }

  .demo-banner__cta {
    font-size: 0.6875rem;
  }
}
