/* One illustrative chat surface; every beat keeps its final layout space. */
.hero-story { position: relative; isolation: isolate; overflow: hidden; min-width: 0; margin: 0; padding: 28px; background: var(--accent-soft); border-radius: 36px; }
.hero-story-visual { position: relative; }
.hero-scene { position: absolute; z-index: -1; left: -28px; bottom: -28px; display: block; width: calc(100% + 56px); height: auto; max-width: none; pointer-events: none; opacity: .7; }
.hero-chat-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 8px 24px rgba(32, 41, 68, .06); }
.hero-chat-heading { display: grid; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.hero-chat-heading > div { grid-area: 1 / 1; min-width: 0; min-height: 42px; }
.hero-identity-anonymous { display: flex; align-items: center; justify-content: space-between; gap: 10px; opacity: 0; }
.hero-identity-anonymous strong { font-size: .9375rem; line-height: 1.4; }
.hero-identity-revealed { display: flex; align-items: center; gap: 10px; }
.hero-pair-separator { color: var(--muted); font-size: .875rem; }
.hero-duration { flex-shrink: 0; background: var(--panel); padding: 6px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.hero-example-messages { display: flex; flex-direction: column; align-items: start; gap: 12px; padding-top: 24px; }
.hero-message { max-width: 88%; margin: 0; padding: 12px 15px; border-radius: 18px 18px 18px 5px; background: var(--panel); font-size: .9375rem; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.hero-message-reply { align-self: end; background: var(--accent); color: var(--surface); border-radius: 18px 18px 5px 18px; }
.hero-like-moment { position: relative; }
.hero-heart-flights { position: absolute; inset: 0; pointer-events: none; }
.hero-heart-stream { position: absolute; bottom: 12px; width: 18px; height: 18px; --side-delay: 0ms; --heart-fill: var(--highlight); color: var(--ink); }
.hero-heart-stream--left { left: -18px; }
.hero-heart-stream--right { right: -18px; --side-delay: 160ms; --heart-fill: var(--accent); color: var(--accent); }
.hero-heart-flight { position: absolute; inset: 0; opacity: 0; --flight-delay: 0ms; --heart-sway: -5px; }
.hero-heart-flight:nth-child(2) { --flight-delay: 100ms; --heart-sway: 5px; }
.hero-heart-flight:nth-child(3) { --flight-delay: 200ms; --heart-sway: -2px; }
.hero-heart-flight .ui-icon { width: 100%; height: 100%; fill: var(--heart-fill); }
.hero-motion[data-story-state="playing"] .hero-heart-flights.is-shown .hero-heart-flight { animation: hero-heart-rise 700ms cubic-bezier(.2, .55, .4, 1) both; animation-delay: calc(var(--side-delay) + var(--flight-delay)); }
@keyframes hero-heart-rise {
  0% { opacity: 0; transform: translate(0, 8px) scale(.6) rotate(-8deg); }
  18% { opacity: 1; }
  55% { opacity: 1; transform: translate(var(--heart-sway), -66px) scale(1) rotate(6deg); }
  100% { opacity: 0; transform: translate(0, -140px) scale(.75) rotate(-5deg); }
}
.hero-mutual { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 22px 0 16px; font-size: .75rem; font-weight: 700; line-height: 1.5; color: var(--accent-dark); }
.hero-hearts { display: flex; gap: 3px; }
.hero-hearts .ui-icon { width: 17px; height: 17px; fill: var(--highlight); }
.hero-person { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 700; }
.hero-person > svg { display: block; flex: none; width: 36px; height: 36px; border-radius: 50%; }
.hero-message-after { margin-top: 4px; }
.hero-motion[data-story-identity="anonymous"] .hero-identity-anonymous { opacity: 1; }
.hero-motion [data-story-beat] { opacity: 0; transform: translateY(8px); }
.hero-motion [data-story-beat].is-shown { opacity: 1; transform: none; transition: opacity .3s ease, transform .3s ease; }
.hero-motion .hero-identity-revealed { transform: none; }
.hero-motion .hero-heart-flights.is-shown { transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-motion [data-story-beat], .hero-motion [data-story-beat].is-shown { opacity: 1; transform: none; transition: none; }
  .hero-motion[data-story-identity] .hero-identity-anonymous { opacity: 0; transition: none; }
  .hero-motion[data-story-state] .hero-heart-flights .hero-heart-flight { animation: none; opacity: 0; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .hero-story { padding: 18px; }
  .hero-chat-card { padding: 18px; }
}
@media (max-width: 700px) {
  .hero-story { width: 100%; max-width: 440px; justify-self: center; margin: 24px 0 30px; padding: 18px; border-radius: 28px; }
  .hero-chat-card { padding: 18px; border-radius: 20px; }
}
@media (max-width: 360px) {
  .hero-story { padding: 12px; }
  .hero-chat-card { padding: 14px; }
  .hero-message { max-width: 94%; padding: 11px 12px; font-size: .875rem; }
  .hero-person { gap: 6px; font-size: .8125rem; }
  .hero-person > svg { width: 36px; height: 36px; }
  .hero-heart-stream { width: 14px; height: 14px; }
  .hero-heart-stream--left { left: -12px; }
  .hero-heart-stream--right { right: -12px; }
}
