.amaly-ade,
.amaly-ade * {
  box-sizing: border-box;
}

.amaly-ade {
  --amaly-ade-ink: #1b1d19;
  --amaly-ade-rust: #a85335;
  --amaly-ade-cream: #f7f2e8;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(520px, 0.94fr);
  width: 100%;
  min-height: 820px;
  margin: 0;
  overflow: hidden;
  background: #20231e;
  color: var(--amaly-ade-cream);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  box-shadow: 0 28px 80px rgba(34, 30, 22, 0.17);
}

.amaly-ade button,
.amaly-ade input {
  font: inherit;
}

.amaly-ade button:focus-visible,
.amaly-ade a:focus-visible,
.amaly-ade input:focus-visible {
  outline: 3px solid rgba(168, 83, 53, 0.38);
  outline-offset: 3px;
}

.amaly-ade [hidden] {
  display: none !important;
}

.amaly-ade__audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.amaly-ade__product {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  background: #d8d1c4;
}

.amaly-ade__product::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 19, 16, 0.34), transparent 27%),
    linear-gradient(0deg, rgba(18, 19, 16, 0.68), transparent 46%);
  pointer-events: none;
}

.amaly-ade__logo {
  position: absolute;
  z-index: 3;
  top: 34px;
  left: 42px;
  width: 112px;
  height: auto;
  filter: brightness(0) invert(1);
}

.amaly-ade__product-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 820px;
  object-fit: cover;
}

.amaly-ade__product-caption {
  position: absolute;
  z-index: 2;
  right: 48px;
  bottom: 46px;
  left: 48px;
  display: grid;
  grid-template-columns: auto minmax(240px, 510px);
  gap: 34px;
  align-items: end;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
}

.amaly-ade__product-caption span {
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.amaly-ade__product-caption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.6vw, 40px);
  font-weight: 400;
  line-height: 1.04;
  text-align: right;
}

.amaly-ade__console {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 820px;
  padding: 42px clamp(30px, 4.8vw, 72px) 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(169, 179, 154, 0.14), transparent 22rem),
    #22251f;
}

.amaly-ade__console::before {
  content: "";
  position: absolute;
  top: 18%;
  right: -190px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.amaly-ade__topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.amaly-ade__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: #d69576;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.amaly-ade__title {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0;
  color: var(--amaly-ade-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 4.5vw, 66px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.amaly-ade__lead {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(247, 242, 232, 0.63);
  font-size: 13px;
  line-height: 1.65;
}

.amaly-ade__live {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px 22px;
  align-items: center;
  margin-top: 34px;
}

.amaly-ade__orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
}

.amaly-ade__orb > i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.amaly-ade__orb > i::before,
.amaly-ade__orb > i::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.amaly-ade__orb > i::before { inset: -8px; }
.amaly-ade__orb > i::after { inset: 8px; }

.amaly-ade__orb > b {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f3eee4;
  color: #22251f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
}

.amaly-ade[data-phase="connecting"] .amaly-ade__orb > i,
.amaly-ade[data-phase="thinking"] .amaly-ade__orb > i {
  border-style: dashed;
  animation: amaly-ade-spin 2.8s linear infinite;
}

.amaly-ade[data-phase="listening"] .amaly-ade__orb > i {
  border-color: rgba(199, 223, 165, 0.68);
  animation: amaly-ade-breathe 1.8s ease-in-out infinite;
}

.amaly-ade[data-phase="speaking"] .amaly-ade__orb > b {
  background: #d89b7b;
  color: white;
  animation: amaly-ade-pulse 900ms ease-in-out infinite;
}

.amaly-ade__status strong,
.amaly-ade__status span {
  display: block;
}

.amaly-ade__status strong {
  margin-bottom: 6px;
  font-size: 14px;
}

.amaly-ade__status span {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.5;
}

.amaly-ade__wave {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  opacity: 0.34;
}

.amaly-ade__wave i {
  width: 2px;
  height: 5px;
  border-radius: 99px;
  background: #d89b7b;
}

.amaly-ade[data-phase="listening"] .amaly-ade__wave i,
.amaly-ade[data-phase="speaking"] .amaly-ade__wave i {
  animation: amaly-ade-wave 1.1s ease-in-out infinite alternate;
}

.amaly-ade__wave i:nth-child(3n) { animation-delay: -400ms !important; }
.amaly-ade__wave i:nth-child(4n) { animation-delay: -700ms !important; }
.amaly-ade__wave i:nth-child(5n) { animation-delay: -200ms !important; }

.amaly-ade__error {
  grid-column: 1 / -1;
  padding: 11px 13px;
  border-left: 2px solid #d89b7b;
  background: rgba(216, 155, 123, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1.5;
}

.amaly-ade__transcript {
  grid-column: 1 / -1;
  max-height: 170px;
  overflow-y: auto;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
}

.amaly-ade__message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  padding: 5px 0;
}

.amaly-ade__message span {
  color: #d89b7b;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.amaly-ade__message p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.5;
}

.amaly-ade__message--user p { color: white; }

.amaly-ade__text-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.amaly-ade__text-form input {
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.amaly-ade__text-form input::placeholder { color: rgba(255, 255, 255, 0.35); }

.amaly-ade__text-form button {
  padding: 0 16px;
  border: 0;
  border-radius: 2px;
  background: #eee8dc;
  color: #25271f;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
}

.amaly-ade__primary {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 24px;
}

.amaly-ade__start,
.amaly-ade__end,
.amaly-ade__whatsapp-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0 19px;
  border: 0;
  border-radius: 2px;
  color: white;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.amaly-ade__start { background: var(--amaly-ade-rust); }
.amaly-ade__start:hover { background: #bd6040; transform: translateY(-2px); }
.amaly-ade__start b { font-size: 19px; font-weight: 400; }
.amaly-ade__end { justify-content: center; border: 1px solid rgba(255, 255, 255, 0.24); background: transparent; }
.amaly-ade__whatsapp-primary { background: #336d55; }

.amaly-ade__primary > p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.41);
  font-size: 9px;
  text-align: center;
}

.amaly-ade__secondary {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 20px;
  margin-top: 16px;
}

.amaly-ade__secondary button,
.amaly-ade__secondary a {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
  text-decoration: none;
  cursor: pointer;
}

.amaly-ade__secondary button:disabled { opacity: 0.28; cursor: default; }

.amaly-ade__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes amaly-ade-spin { to { transform: rotate(360deg); } }
@keyframes amaly-ade-breathe { 50% { transform: scale(1.12); opacity: 0.6; } }
@keyframes amaly-ade-pulse { 50% { transform: scale(1.08); box-shadow: 0 0 40px rgba(216, 155, 123, 0.34); } }
@keyframes amaly-ade-wave { from { height: 4px; } to { height: 25px; } }

@media (max-width: 1080px) {
  .amaly-ade { grid-template-columns: 1fr; }
  .amaly-ade__product,
  .amaly-ade__product-image { min-height: 610px; }
  .amaly-ade__console { min-height: 790px; }
}

@media (max-width: 680px) {
  .amaly-ade { min-height: auto; box-shadow: none; }
  .amaly-ade__product,
  .amaly-ade__product-image { min-height: 410px; }
  .amaly-ade__product-image { object-position: 56% center; }
  .amaly-ade__logo { top: 24px; left: 20px; width: 88px; }
  .amaly-ade__product-caption { right: 20px; bottom: 20px; left: 20px; display: block; }
  .amaly-ade__product-caption span { display: block; margin-bottom: 9px; }
  .amaly-ade__product-caption strong { display: block; max-width: 330px; font-size: 27px; text-align: left; }
  .amaly-ade__console { min-height: 740px; padding: 30px 20px 25px; }
  .amaly-ade__topline { margin-bottom: 34px; }
  .amaly-ade__title { font-size: clamp(40px, 12vw, 56px); }
  .amaly-ade__live { grid-template-columns: 68px minmax(0, 1fr); gap: 15px; margin-top: 28px; }
  .amaly-ade__orb { width: 64px; height: 64px; }
  .amaly-ade__orb > b { width: 38px; height: 38px; }
  .amaly-ade__wave { gap: 4px; }
  .amaly-ade__transcript { max-height: 150px; }
  .amaly-ade__text-form { grid-template-columns: 1fr; }
  .amaly-ade__text-form button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .amaly-ade *,
  .amaly-ade *::before,
  .amaly-ade *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
