html {
  scroll-padding-top: 96px;
}

.missed-call-demo-page {
  background:
    linear-gradient(180deg, rgba(235, 240, 237, 0.94), rgba(247, 244, 238, 0.98)),
    var(--paper);
  overflow-x: hidden;
}

.missed-demo-shell {
  padding-top: 86px;
  overflow-x: hidden;
}

.missed-demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: start;
  min-width: 0;
  padding: clamp(54px, 7vw, 82px) clamp(18px, 5vw, 72px) clamp(30px, 4vw, 44px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(32, 61, 52, 0.98), rgba(62, 109, 129, 0.76)),
    var(--forest);
}

.missed-demo-hero h1 {
  max-width: 1020px;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(2.8rem, 5.3vw, 4.85rem);
  text-shadow: none;
}

.missed-demo-hero p:not(.section-kicker) {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.62;
}

.missed-demo-stage {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  min-width: 0;
  padding: clamp(30px, 4vw, 52px) clamp(18px, 5vw, 72px) clamp(42px, 6vw, 76px);
}

.demo-stage-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.46fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: end;
  width: min(100%, 1480px);
  margin-inline: auto;
}

.demo-stage-header > div:first-child {
  min-width: 0;
}

.demo-stage-header h2 {
  max-width: 880px;
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.9rem, 3.2vw, 3.15rem);
  line-height: 1.08;
}

.demo-stage-header p:not(.section-kicker) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  font-weight: 720;
  line-height: 1.55;
}

.demo-proof-panel {
  display: grid;
  gap: 1px;
  min-width: 0;
  border: 1px solid rgba(32, 61, 52, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(32, 61, 52, 0.14);
}

.demo-proof-panel article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.78);
}

.demo-proof-panel span {
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-proof-panel strong {
  color: var(--forest);
  font-size: clamp(0.98rem, 1.2vw, 1.16rem);
  line-height: 1.18;
}

.demo-status-panel {
  display: none;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  width: min(100%, 1280px);
  min-width: 0;
  margin-inline: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.05);
}

.demo-status-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-status-panel strong {
  display: block;
  margin-top: 6px;
  color: var(--forest);
  font-size: 1.08rem;
  line-height: 1.25;
}

.demo-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.demo-progress span {
  min-width: 0;
  border: 1px solid rgba(32, 61, 52, 0.16);
  border-radius: 6px;
  padding: 10px 8px;
  background: rgba(247, 244, 238, 0.72);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.15;
  text-align: center;
}

.demo-progress span.is-active,
.demo-progress span.is-complete {
  border-color: rgba(214, 168, 79, 0.72);
  color: var(--forest);
  background: rgba(214, 168, 79, 0.18);
}

.phone-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
  justify-items: center;
  width: min(100%, 1180px);
  min-width: 0;
  margin-inline: auto;
}

.phone-unit {
  display: grid;
  gap: 12px;
  justify-items: center;
  width: min(100%, 430px);
  min-width: 0;
  margin-inline: auto;
}

.phone-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(32, 61, 52, 0.16);
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(32, 61, 52, 0.97), rgba(62, 109, 129, 0.86)),
    var(--forest);
  box-shadow: 0 16px 34px rgba(23, 33, 31, 0.12);
}

.phone-label span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.phone-label strong {
  display: block;
  margin-top: 3px;
  font-size: clamp(1.22rem, 2.3vw, 1.55rem);
  line-height: 1;
}

.phone-label p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.35;
}

.caller-phone-unit .phone-label {
  background:
    linear-gradient(135deg, rgba(35, 91, 128, 0.98), rgba(47, 111, 189, 0.82)),
    #235b80;
}

.owner-phone-unit .phone-label {
  background:
    linear-gradient(135deg, rgba(32, 61, 52, 0.98), rgba(111, 137, 119, 0.84)),
    var(--forest);
}

.phone-device {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 9 / 15.4;
  border: 11px solid #17211f;
  border-radius: 34px;
  background: #17211f;
  box-shadow: 0 34px 70px rgba(23, 33, 31, 0.22);
  overflow: hidden;
}

.phone-top {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 13px 18px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 850;
}

.phone-screen {
  position: absolute;
  inset: 0;
  min-width: 0;
  border-radius: 23px;
  background: #f5f6f2;
  overflow: hidden;
}

.phone-demo-play {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 0;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  text-align: center;
  transform: translate(-50%, -50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.phone-demo-play::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: rgba(214, 168, 79, 0.16);
  animation: demoPlayPulse 1400ms ease-in-out infinite;
  content: "";
  transform: translate(-50%, -50%);
}

.phone-demo-play-icon {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 222, 0.96)),
    #fff;
  box-shadow:
    0 22px 52px rgba(23, 33, 31, 0.32),
    0 0 0 10px rgba(255, 255, 255, 0.12);
}

.phone-demo-play-icon::before {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid var(--forest);
  content: "";
}

.phone-demo-play-text {
  position: relative;
  border-radius: 999px;
  padding: 8px 12px;
  color: #17211f;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(23, 33, 31, 0.18);
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}

.phone-demo-play:hover,
.phone-demo-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.04);
}

.phone-demo-play:focus-visible {
  outline: 3px solid rgba(214, 168, 79, 0.78);
  outline-offset: 9px;
}

.phone-demo-play.is-running {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.94);
  visibility: hidden;
}

.phone-demo-play.is-replay {
  top: auto;
  right: 18px;
  bottom: 18px;
  left: auto;
  gap: 7px;
  transform: none;
}

.phone-demo-play.is-replay::before {
  width: 76px;
  height: 76px;
}

.phone-demo-play.is-replay .phone-demo-play-icon {
  width: 50px;
  height: 50px;
}

.phone-demo-play.is-replay .phone-demo-play-icon::before {
  margin-left: 4px;
  border-top-width: 11px;
  border-bottom-width: 11px;
  border-left-width: 17px;
}

.phone-demo-play.is-replay .phone-demo-play-text {
  padding: 7px 10px;
  font-size: 0.72rem;
}

.phone-demo-play.is-replay:hover,
.phone-demo-play.is-replay:focus-visible {
  transform: scale(1.04);
}

.call-view,
.messages-view {
  position: absolute;
  inset: 0;
  display: grid;
  min-width: 0;
  padding: 58px 18px 22px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.phone-role-banner {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 33, 31, 0.12);
}

.phone-role-banner span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.phone-role-banner strong {
  font-size: 0.9rem;
  line-height: 1.12;
}

.caller-role-banner {
  background: #2f6fbd;
}

.owner-role-banner {
  background: var(--forest);
}

.call-view.is-visible,
.messages-view.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.call-view {
  place-items: center;
  align-content: center;
  gap: 18px;
  color: #fff;
  background:
    radial-gradient(circle at top, rgba(214, 168, 79, 0.32), rgba(32, 61, 52, 0) 34%),
    linear-gradient(180deg, #203d34, #17211f);
  text-align: center;
}

.call-view.is-ringing .avatar-circle {
  animation: demoPulse 960ms ease-in-out infinite;
}

.avatar-circle {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 999px;
  color: #1e1707;
  background: var(--gold);
  font-size: 2.4rem;
  font-weight: 900;
}

.call-view p,
.call-view h3 {
  margin: 0;
}

.call-view p {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.call-view h3 {
  max-width: 100%;
  font-size: 1.45rem;
  line-height: 1.1;
}

.call-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.call-actions span {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.call-actions span:nth-child(2) {
  background: #c94834;
}

.messages-view {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  background: #f3f5f1;
}

.message-header {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(23, 33, 31, 0.08);
  text-align: center;
}

.message-header strong {
  color: var(--forest);
}

.message-header span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  padding-top: 4px;
  overflow: hidden;
}

.message-bubble {
  max-width: 84%;
  border-radius: 16px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.08);
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleIn 260ms ease forwards;
}

.message-bubble.business {
  align-self: flex-start;
}

.message-bubble.caller {
  align-self: flex-end;
  color: #fff;
  background: #2f6fbd;
}

.typing-bubble {
  display: inline-flex;
  gap: 4px;
  align-self: flex-start;
  width: fit-content;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.typing-bubble span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(23, 33, 31, 0.34);
  animation: typingDot 860ms ease-in-out infinite;
}

.typing-bubble span:nth-child(2) {
  animation-delay: 130ms;
}

.typing-bubble span:nth-child(3) {
  animation-delay: 260ms;
}

.owner-device .phone-screen {
  background:
    linear-gradient(180deg, #eef5f0, #f8f5ee),
    #f8f5ee;
}

.owner-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 58px 16px 18px;
  overflow-y: auto;
  scrollbar-width: none;
}

.owner-screen::-webkit-scrollbar {
  display: none;
}

.owner-app-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.owner-app-header img {
  width: 34px;
  height: auto;
}

.owner-app-header div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.owner-app-header strong {
  color: var(--forest);
}

.owner-app-header span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.owner-alerts {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 10px;
  min-height: 0;
}

.owner-alert {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(32, 61, 52, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.05);
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleIn 260ms ease forwards;
}

.owner-alert strong {
  color: var(--forest);
  font-size: 0.94rem;
  line-height: 1.2;
}

.owner-alert p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.owner-summary {
  display: grid;
  position: relative;
  z-index: 1;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  margin-top: 2px;
  padding: 14px;
  border: 1px solid rgba(214, 168, 79, 0.72);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 32px rgba(23, 33, 31, 0.1);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.owner-summary.is-hidden {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.owner-summary span {
  color: #8f5312;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-summary h3,
.owner-summary p,
.owner-summary dl {
  margin: 0;
}

.owner-summary h3 {
  color: var(--forest);
  font-size: 1.28rem;
}

.owner-summary p {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.42;
}

.owner-summary dl {
  display: grid;
  gap: 8px;
}

.owner-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(23, 33, 31, 0.08);
  padding-top: 8px;
}

.owner-summary dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.owner-summary dd {
  margin: 0;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: right;
}

.owner-actions {
  display: grid;
  gap: 7px;
}

.owner-actions button {
  min-height: 36px;
  border: 1px solid rgba(32, 61, 52, 0.14);
  border-radius: 6px;
  color: var(--forest);
  background: rgba(247, 244, 238, 0.78);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

@keyframes demoPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(214, 168, 79, 0.24);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(214, 168, 79, 0);
    transform: scale(1.04);
  }
}

@keyframes demoPlayPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.86);
  }
  50% {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(1.14);
  }
}

@keyframes bubbleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typingDot {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 920px) {
  .missed-demo-hero,
  .demo-stage-header,
  .demo-status-panel,
  .phone-stage {
    grid-template-columns: 1fr;
  }

  .demo-stage-header {
    gap: 18px;
  }

  .demo-stage-header h2 {
    max-width: 760px;
  }

  .demo-proof-panel {
    width: min(100%, 520px);
  }

  .demo-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .missed-demo-stage {
    padding-inline: 14px;
  }

  .demo-stage-header h2 {
    font-size: 2rem;
  }

  .demo-proof-panel article {
    grid-template-columns: 1fr;
    gap: 5px;
    min-height: 0;
    padding: 14px;
  }

  .demo-status-panel {
    display: none;
  }

  .phone-device {
    aspect-ratio: 9 / 18.7;
    border-width: 8px;
    border-radius: 28px;
  }

  .phone-unit {
    width: min(100%, 340px);
  }

  .phone-label p {
    display: none;
  }

  .phone-screen {
    border-radius: 20px;
  }

  .phone-demo-play-icon {
    width: 74px;
    height: 74px;
  }

  .phone-demo-play::before {
    width: 118px;
    height: 118px;
  }

  .owner-screen {
    padding: 52px 13px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
