/* SMS demo section — self-contained. All classes prefixed .sms- to avoid collisions. */
.sms-demo { position: relative; }
.sms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.sms-copy h2 { margin-bottom: 20px; }
.sms-copy p { max-width: 460px; color: var(--muted, #9ba9c4); }
.sms-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; max-width: 460px; }
.sms-points li {
  display: flex; gap: 12px; align-items: baseline;
  font-family: "DM Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: .02em;
  color: var(--text, #f5f7ff);
}
.sms-points li span { color: var(--green, #31e6a0); }

.sms-stage { display: grid; gap: 18px; justify-items: center; }

/* Phone */
.sms-phone {
  width: 330px; max-width: 100%;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(160deg, #141c30, #0a0f1c);
  border: 1px solid rgba(145, 172, 255, .28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(86, 107, 255, .14);
}
.sms-screen {
  border-radius: 32px; overflow: hidden;
  background: var(--panel, #0c1320);
  display: flex; flex-direction: column;
  height: 640px;
}
.sms-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px 6px;
  font: 600 12px/1 Inter, system-ui, sans-serif; color: var(--text, #f5f7ff);
}
.sms-status-icons { letter-spacing: 2px; font-size: 10px; color: var(--muted, #9ba9c4); }
.sms-head {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 16px 12px;
  border-bottom: 1px solid rgba(145, 172, 255, .12);
}
.sms-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #566bff, #91acff);
  color: #080c15; font: 700 13px/1 Inter, system-ui, sans-serif;
}
.sms-name { font: 600 13px/1.2 Inter, system-ui, sans-serif; color: var(--text, #f5f7ff); }
.sms-sub { font: 500 10px/1 "DM Mono", ui-monospace, monospace; letter-spacing: .08em; color: var(--muted, #9ba9c4); text-transform: uppercase; }

.sms-chat {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 14px 14px 10px; overflow: hidden;
}
.sms-time {
  align-self: center; margin-bottom: 4px;
  font: 500 10px/1 Inter, system-ui, sans-serif; letter-spacing: .04em; color: var(--muted, #9ba9c4);
}
.sms-msg {
  max-width: 82%; padding: 9px 13px;
  font: 400 14px/1.4 Inter, system-ui, sans-serif;
  border-radius: 18px;
  opacity: 0; transform: translateY(10px) scale(.97);
  transition: opacity .3s ease, transform .3s ease;
}
.sms-msg.in { opacity: 1; transform: none; }
.sms-msg.me {
  align-self: flex-end; background: var(--cobalt, #566bff); color: #fff;
  border-bottom-right-radius: 5px;
}
.sms-msg.bot {
  align-self: flex-start; background: #1b2540; color: var(--text, #f5f7ff);
  border-bottom-left-radius: 5px;
}
.sms-typing {
  align-self: flex-start; display: none; gap: 4px; padding: 12px 14px;
  background: #1b2540; border-radius: 18px; border-bottom-left-radius: 5px;
}
.sms-typing.on { display: inline-flex; }
.sms-typing i {
  width: 7px; height: 7px; border-radius: 50%; background: #7f8db0;
  animation: smsDot 1s infinite ease-in-out;
}
.sms-typing i:nth-child(2) { animation-delay: .15s; }
.sms-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes smsDot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.sms-input {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 12px 14px; padding: 8px 8px 8px 14px;
  border: 1px solid rgba(145, 172, 255, .22); border-radius: 22px;
  font: 400 13px/1 Inter, system-ui, sans-serif; color: #6b7a99;
}
.sms-input span { flex: 1; }
.sms-input b {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cobalt, #566bff); color: #fff; font-size: 13px; font-weight: 700;
}

/* Owner notified indicator */
.sms-owner {
  width: 330px; max-width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(49, 230, 160, .06);
  border: 1px solid rgba(49, 230, 160, .35);
  opacity: .28; transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease, box-shadow .45s ease, background .45s ease;
}
.sms-owner.on {
  opacity: 1; transform: none;
  background: rgba(49, 230, 160, .1);
  box-shadow: 0 0 34px rgba(49, 230, 160, .18);
}
.sms-owner-icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(49, 230, 160, .5); color: var(--green, #31e6a0); font-size: 16px; font-weight: 700;
}
.sms-owner.on .sms-owner-icon { background: rgba(49, 230, 160, .16); }
.sms-owner-kicker { font: 500 10px/1 "DM Mono", ui-monospace, monospace; letter-spacing: .1em; color: var(--green, #31e6a0); text-transform: uppercase; }
.sms-owner-title { margin-top: 5px; font: 600 14px/1.2 Inter, system-ui, sans-serif; color: var(--text, #f5f7ff); }
.sms-owner-note { margin-top: 3px; font: 400 12px/1.3 Inter, system-ui, sans-serif; color: var(--muted, #9ba9c4); }

.sms-caption { font: 500 10px/1 "DM Mono", ui-monospace, monospace; letter-spacing: .1em; color: #6b7a99; text-transform: uppercase; }

@media (max-width: 860px) {
  .sms-layout { grid-template-columns: 1fr; }
  .sms-copy { text-align: left; }
}
@media (max-width: 400px) {
  .sms-screen { height: 600px; }
}
@media (prefers-reduced-motion: reduce) {
  .sms-msg, .sms-owner { transition: none; }
  .sms-typing i { animation: none; }
}
