/* Home demos: real reel, lead path, and secretary examples. */

.reel-step {
  background: radial-gradient(circle at 50% 42%, #fff 0%, #edf0ff 68%);
}
.reel-step .mini-reel {
  width: 112px;
  height: 198px;
}
.reel-step .mini-reel video,
.reel-step .mini-reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.step-body .text-link {
  margin-top: 14px;
  font-size: 12px;
}

.story-slot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  height: auto;
  min-height: 286px;
  overflow: visible;
  padding: 12px 14px 10px;
  background: #edf0ff;
}
.story-slot.is-live {
  height: 286px;
  overflow: hidden;
}
.beat-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.beat-tabs button {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 28px;
  text-align: left;
  color: #2348d6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.beat-tabs button span {
  display: block;
  height: 3px;
  margin-bottom: 5px;
  border-radius: 3px;
  background: #dce2ff;
  overflow: hidden;
}
.beat-tabs button.is-done span,
.beat-tabs button.is-on span {
  background: #c2cdff;
}
.beat-tabs button.is-on {
  color: var(--blue);
}
.beat-tabs button.is-on span::after {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
  animation: beat-fill 3.4s linear forwards;
}
.beat-tabs button.is-done span::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: var(--blue);
}
.story-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.story.is-live .story-stage {
  display: grid;
  place-items: center;
}
.story-panel {
  display: grid;
  width: 100%;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 8px;
}
.story.is-live .story-panel { display: none; }
.story.is-live .story-panel.is-on { display: grid; }
.story-caption {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #1b3bb8;
}
.story-caption b {
  color: var(--blue);
  margin-right: 6px;
}

.story-ad {
  position: relative;
  width: 108px;
  height: 176px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 10px 24px #10131f24;
}
.story-ad video,
.story-ad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ad-cta {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: white;
  color: var(--ink);
  border-radius: 8px;
  text-align: center;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 4px;
}

.lead-form,
.lead-list,
.bot-card {
  width: min(250px, 100%);
  background: white;
  border: 1px solid #dce2ff;
  border-radius: 14px;
  box-shadow: 0 8px 20px #10131f10;
  overflow: hidden;
}
.lead-form header,
.lead-list header,
.bot-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
}
.lead-form header small,
.lead-list header small,
.bot-card header small {
  font-size: 8px;
  letter-spacing: 0.6px;
  color: #2348d6;
  font-weight: 700;
}
.lead-form .field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 12px 8px;
  padding: 7px 8px;
  border: 1px solid #e1e7ff;
  border-radius: 8px;
  font-size: 8px;
  color: #2348d6;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.field-value {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.story.is-live .field-value {
  max-width: 0;
  border-right: 1px solid var(--blue);
}
.story.is-live .story-panel.is-on .field-value {
  animation: type-in 0.7s steps(16, end) forwards;
}
.story.is-live .story-panel.is-on .field:nth-child(3) .field-value { animation-delay: 0.45s; }
.story.is-live .story-panel.is-on .field:nth-child(4) .field-value { animation-delay: 0.9s; }
.form-send {
  display: block;
  width: calc(100% - 24px);
  margin: 2px 12px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-height: 32px;
}
.story-panel.is-on .form-send {
  animation: send-press 3.4s ease both;
}

.lead-list ul {
  list-style: none;
  margin: 0;
  padding: 0 8px 8px;
}
.lead-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 6px;
  border-radius: 8px;
}
.lead-row b,
.lead-row small {
  display: block;
}
.lead-row b { font-size: 11px; }
.lead-row small { font-size: 9px; color: #2348d6; margin-top: 1px; }
.lead-row i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #edf0ff;
  color: var(--blue);
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}
.lead-row em {
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: 999px;
  padding: 4px 6px;
  background: #f0f3ff;
  color: #1b3bb8;
}
.lead-row.is-new {
  background: #edf0ff;
}
.lead-row.is-new em {
  background: var(--blue);
  color: white;
}
.story.is-live .lead-row { opacity: 0; }
.story.is-live .story-panel.is-on .lead-row {
  animation: enter 0.4s ease forwards;
}
.story.is-live .story-panel.is-on .lead-row:nth-child(2) { animation-delay: 0.18s; }
.story.is-live .story-panel.is-on .lead-row:nth-child(3) { animation-delay: 0.36s; }

.bot-card {
  padding-bottom: 12px;
}
.bot-bubble {
  margin: 0 12px;
  background: #e5f6ea;
  color: #1d3b2a;
  border-radius: 12px 12px 12px 4px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.55;
}
.bot-card p {
  margin: 8px 12px 0;
  font-size: 9px;
  color: #2348d6;
}
.story.is-live .bot-bubble { opacity: 0; }
.story.is-live .story-panel.is-on .bot-bubble {
  animation: enter 0.45s ease 0.15s forwards;
}

.reel-demo,
.story-demo {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.reel-demo .demo-note,
.story-demo .demo-note {
  grid-column: 1 / -1;
  margin-top: 0;
}
.reel-frame {
  position: relative;
  width: min(280px, 100%);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border: 7px solid var(--ink);
  border-radius: 32px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 18px 40px #10131f22;
}
.reel-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reel-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.reel-picks button {
  border: 1px solid #dce2ff;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 700;
}
.reel-picks button.is-on {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
#reel-kind {
  margin-top: 14px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
}
.reel-sound {
  margin-top: 22px;
  border: 0;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
}

.story--full .story-stage {
  min-height: 430px;
  background: #e8ecff;
  border-radius: 18px;
  padding: 18px;
}
.story--full .story-ad {
  width: 190px;
  height: 338px;
  border-radius: 22px;
}
.story--full .ad-cta {
  font-size: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  left: 12px;
  right: 12px;
  bottom: 12px;
}
.story--full .lead-form,
.story--full .lead-list,
.story--full .bot-card {
  width: min(360px, 100%);
}
.story--full .lead-form header,
.story--full .lead-list header,
.story--full .bot-card header {
  font-size: 14px;
  padding: 14px 16px;
}
.story--full .field {
  margin: 0 16px 10px;
  padding: 8px 10px;
  font-size: 10px;
}
.story--full .field-value { font-size: 15px; }
.story--full .form-send {
  width: calc(100% - 32px);
  margin: 4px 16px 16px;
  min-height: 40px;
  font-size: 13px;
}
.story--full .lead-row b { font-size: 13px; }
.story--full .lead-row small { font-size: 11px; }
.story--full .bot-bubble { font-size: 14px; line-height: 1.6; }
.story--full .story-caption { display: none; }
.story--full .beat-tabs button { font-size: 11px; min-height: 34px; }

.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: #f5f7ff;
  border-bottom: 1px solid #dce2ff;
}
.ask-chips button {
  border: 1px solid #dce2ff;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 36px;
  font-size: 11px;
  font-weight: 700;
}
.ask-chips button.is-on {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.processes { padding-top: 0; }
.processes .other-cases { margin-top: 0; }
.chat-messages .script {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.chat-messages.is-scripted .script:not(.is-on) { display: none; }
.chat-messages .bubble { margin: 0; }
.script-label {
  margin: 0 0 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #2348d6;
}
.chat-messages.is-scripted .script-label { display: none; }

@keyframes type-in { to { max-width: 220px; } }
@keyframes beat-fill { to { width: 100%; } }
@keyframes send-press {
  0%, 72% { transform: none; filter: none; }
  80% { transform: scale(0.97); filter: brightness(1.08); }
  100% { transform: none; }
}

@media (max-width: 1100px) {
  .reel-demo,
  .story-demo { gap: 28px; }
  .story--full .story-stage { min-height: 390px; }
}

@media (max-width: 720px) {
  .story-slot.is-live { height: 320px; }
  .reel-demo,
  .story-demo {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .reel-frame { width: min(240px, 72vw); }
  .story--full .story-stage { min-height: 420px; }
  .story--full .story-ad { width: 168px; height: 290px; }
  .ask-chips button { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .field-value,
  .story.is-live .field-value {
    max-width: none;
    border-right: 0;
    animation: none;
  }
  .lead-row,
  .bot-bubble,
  .story.is-live .lead-row,
  .story.is-live .bot-bubble { opacity: 1; transform: none; animation: none; }
  .beat-tabs button.is-on span::after,
  .form-send { animation: none; }
}
