:root {
  --demo-blue: #0e327d;
  --demo-blue-deep: #09265f;
  --demo-blue-bright: #2c76ff;
  --demo-blue-soft: #9fc4ff;
}

.demo-page {
  min-width: 320px;
  min-height: 100vh;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 30%, rgba(44, 118, 255, 0.34), transparent 34%),
    linear-gradient(180deg, var(--demo-blue) 0%, var(--demo-blue-deep) 100%);
}

.demo-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 44px;
}

.demo-header {
  position: relative;
  z-index: 10;
  width: min(calc(100% - 56px), 1220px);
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.demo-brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 14, 53, 0.22);
}

.demo-brand-icon img {
  width: 34px;
  height: auto;
  display: block;
}

.demo-brand-name {
  color: #ffffff;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.demo-brand-name span {
  color: var(--demo-blue-soft);
}

.demo-language {
  padding: 4px;
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.demo-language a {
  min-width: 39px;
  min-height: 35px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.demo-language a.is-active {
  color: var(--demo-blue-deep);
  background: #ffffff;
}

.demo-main {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), 940px);
  margin-inline: auto;
  padding: 48px 0 66px;
  text-align: center;
}

.demo-intro {
  max-width: 820px;
  margin-inline: auto;
}

.demo-eyebrow {
  margin-bottom: 15px;
  color: var(--demo-blue-soft);
  font-size: var(--qa-hero-kicker-size);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.demo-eyebrow.coverage-chips {
  margin-inline: auto;
}

.demo-eyebrow.coverage-chips .coverage-chip {
  color: inherit;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.demo-intro h1 {
  max-width: 820px;
  margin: 0 auto 19px;
  color: #ffffff;
  font-size: var(--qa-hero-title-size);
  line-height: 0.99;
  letter-spacing: -0.064em;
}

.demo-example {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.74);
  font-size: var(--qa-hero-lead-size);
  line-height: 1.62;
}

.demo-trust {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 700;
}

.demo-product {
  margin-top: 28px;
  display: grid;
  justify-items: center;
}

.demo-product-label {
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-product-label .demo-status-dot {
  width: 8px;
  height: 8px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.14);
}

.demo-use-phone {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.demo-use-arrow {
  margin: 9px 0 6px;
  color: var(--demo-blue-soft);
  font-size: 30px;
  line-height: 1;
}

.trial-phone {
  justify-self: center;
  transform: none;
}

.trial-phone .trial-chat {
  height: 500px;
  padding-bottom: 18px;
  scroll-behavior: smooth;
}

.demo-whatsapp-cta {
  max-width: 430px;
  margin: 18px auto 0;
  text-decoration: none;
}

.demo-whatsapp-cta[hidden] {
  display: none;
}

.trial-phone .message strong {
  font-weight: 800;
}

.trial-phone .message,
.trial-phone .message-text {
  text-align: left;
}

.demo-typing {
  min-width: 58px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.demo-typing i {
  width: 6px;
  height: 6px;
  background: #8a969c;
  border-radius: 50%;
  animation: demo-bounce 900ms infinite ease-in-out;
}

.demo-typing i:nth-child(2) { animation-delay: 130ms; }
.demo-typing i:nth-child(3) { animation-delay: 260ms; }

@keyframes demo-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

.demo-composer {
  padding: 10px;
  background: #f0f2f5;
  border-top: 1px solid #e2e5e7;
}

.demo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 41px;
  gap: 7px;
}

.demo-form input {
  width: 100%;
  height: 41px;
  padding: 0 14px;
  color: #111b21;
  background: #ffffff;
  border: 1px solid #d8dddf;
  border-radius: 999px;
  font-size: 12px;
  outline: 0;
}

.demo-form input:focus {
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.demo-form button {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--whatsapp-cta, #00a884);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

.demo-send-icon {
  display: block;
  line-height: 1;
  transform: translateX(1px);
}

.demo-form input:disabled,
.demo-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.demo-reset {
  margin-top: 15px;
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.message-text a {
  color: #075e54;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .demo-header {
    width: min(calc(100% - 32px), 1220px);
    min-height: 68px;
  }

  .demo-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .demo-brand-icon img { width: 29px; }
  .demo-brand-name { font-size: 21px; }

  .demo-language a {
    min-width: 35px;
    min-height: 32px;
    font-size: 11px;
  }

  .demo-main { padding-top: 40px; }
  .demo-intro h1 { font-size: var(--qa-hero-title-size); }
  .demo-example { font-size: var(--qa-hero-lead-size); }
  .demo-trust { gap: 7px 14px; }
  .demo-product { margin-top: 26px; }
  .trial-phone { width: min(100%, 400px); }
  .trial-phone .trial-chat { height: 450px; }
}

@media (max-width: 390px) {
  .demo-main { width: min(calc(100% - 24px), 940px); }
  .demo-intro h1 { font-size: var(--qa-hero-title-size); }
  .demo-product-label { font-size: 10px; }
  .trial-phone .trial-chat { height: 420px; }
}

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