.flow { padding-top: 0.4rem; position: relative; z-index: 3; }
.flow h2 { font-size: 1.45rem; margin-top: 0.35rem; }

.demo {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.6rem;
  align-items: start;
  margin-top: 1.5rem;
}

.phone {
  width: 100%;
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid #eceff3;
  box-shadow: 0 28px 50px -28px rgba(16, 42, 74, 0.55), 0 0 0 6px rgba(232, 145, 20, 0.12);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  animation: floaty 5.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes floaty {
  0%, 100% { transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) translateY(0); }
  50% { transform: perspective(1200px) rotateY(-5deg) rotateX(6deg) translateY(-8px); }
}

.ph-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.9rem 0.55rem;
  border-bottom: 1px solid #f1f3f6;
}
.ph-head .x {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #9aa3ad;
  font-size: 1.05rem;
}
.ph-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 0.92rem;
}
.ph-title .tab {
  width: 1.35rem;
  height: 0.38rem;
  background: var(--orange);
  border-radius: 4px 4px 0 0;
  margin-top: 0.45rem;
}
.ph-title svg { width: 1.15rem; height: 1.15rem; color: var(--orange); }

.ph-body {
  height: 380px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: #f3f4f6;
  padding: 0.75rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.row { display: flex; width: 100%; animation: pop 0.35s ease; }
.row.bot { justify-content: flex-start; }
.row.user { justify-content: flex-end; }
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.bub {
  max-width: 88%;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.75;
  border-radius: 1.15rem;
}
.row.bot .bub {
  background: #fff;
  color: #2a3440;
  border-bottom-right-radius: 0.35rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.07);
}
.row.user .bub {
  background: var(--orange);
  color: #fff;
  border-bottom-left-radius: 0.35rem;
  box-shadow: 0 6px 14px -8px rgba(232, 145, 20, 0.7);
}
.bub .caret {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: currentColor;
  margin-right: 2px;
  vertical-align: -1px;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.dots-b {
  display: flex;
  gap: 4px;
  background: #fff;
  border-radius: 1.15rem;
  padding: 0.7rem 0.95rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.07);
}
.dots-b i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8c0c8;
  animation: bounce 0.9s infinite;
}
.dots-b i:nth-child(2) { animation-delay: 0.12s; }
.dots-b i:nth-child(3) { animation-delay: 0.24s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
}

.cards {
  background: #e8eaee;
  border-radius: 0.9rem;
  padding: 0.65rem 0.6rem 0.75rem;
  animation: pop 0.4s ease 0.08s both;
}
.cards p {
  font-size: 0.7rem;
  font-weight: 700;
  color: #5b6570;
  margin-bottom: 0.45rem;
  text-align: right;
}
.slide {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-arr {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 1px solid #d8dde3;
  background: #fff;
  color: #8a93a0;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.card {
  flex: 1;
  background: #fff;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid #eceff3;
  text-align: center;
}
.card .pic {
  height: 148px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}
.card img {
  width: 108%;
  height: 108%;
  object-fit: contain;
  object-position: 46% center;
}
.card b {
  display: block;
  font-size: 0.72rem;
  padding: 0.35rem 0.4rem 0.15rem;
}
.card .add {
  margin: 0.35rem 0.55rem 0.65rem;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0;
  font-weight: 800;
  font-size: 0.72rem;
  font-family: inherit;
  width: calc(100% - 1.1rem);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 145, 20, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(232, 145, 20, 0); }
}

.ph-foot { background: #fff; padding: 0.45rem 0.65rem 0.7rem; }
.chip {
  display: none;
  margin: 0 0 0.4rem auto;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  max-width: 100%;
  animation: pop 0.3s ease;
}
.chip.on { display: inline-block; }
.mic {
  display: none;
  height: 28px;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin-bottom: 0.35rem;
}
.mic.on { display: flex; }
.mic span {
  width: 4px;
  border-radius: 4px;
  background: var(--orange);
  animation: eq 0.7s ease-in-out infinite;
}
.mic span:nth-child(1) { height: 8px; animation-delay: 0s; }
.mic span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.mic span:nth-child(3) { height: 22px; animation-delay: 0.18s; }
.mic span:nth-child(4) { height: 12px; animation-delay: 0.08s; }
.mic span:nth-child(5) { height: 18px; animation-delay: 0.22s; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #e6e9ee;
  border-radius: 999px;
  padding: 0.28rem 0.4rem 0.28rem 0.35rem;
}
.go {
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 0.7rem;
  background: #f4e4c8;
  color: #c47a12;
  display: grid;
  place-items: center;
}
.go svg { width: 1.05rem; height: 1.05rem; }
.dots { color: #c5ccd4; font-weight: 800; letter-spacing: 1px; padding: 0 0.1rem; }
.ph { flex: 1; font-size: 0.78rem; color: #9aa3ad; min-height: 1.2em; }
.ph.live { color: var(--navy); }

.story .now {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.8;
  color: var(--navy);
  min-height: 3.4em;
  margin-bottom: 0.9rem;
}
.track { list-style: none; display: grid; gap: 0.7rem; }
.track li {
  display: flex;
  gap: 0.7rem;
  opacity: 0.38;
  transition: opacity 0.35s;
}
.track li.on, .track li.done { opacity: 1; }
.track span {
  flex-shrink: 0;
  width: 1.15rem;
  font-weight: 800;
  color: #b8c0c8;
  font-size: 0.85rem;
  padding-top: 0.12rem;
}
.track li.on span { color: var(--orange); }
.track li.done span { color: var(--navy); }
.track strong { display: block; font-size: 0.9rem; margin-bottom: 0.1rem; }
.track p { color: var(--muted); font-size: 0.8rem; line-height: 1.6; }

.ticket {
  margin-top: 1.1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  min-height: 6.4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
  box-shadow: 0 16px 32px -18px rgba(16, 42, 74, 0.6);
}
.ticket.show {
  opacity: 1;
  visibility: visible;
}
.ticket em {
  font-style: normal;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}
.ticket strong { display: block; margin: 0.4rem 0 0.2rem; font-size: 1.05rem; }
.ticket p { color: #d5dde8; font-size: 0.78rem; }

@media (max-width: 760px) {
  .demo {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .phone {
    max-width: 20rem;
    width: 100%;
    margin-inline: auto;
    transform: none;
    animation: none;
  }
  .story {
    width: 100%;
    max-width: 22rem;
    text-align: right;
  }
  .story .now { text-align: right; }
}
