/* sevome.com/features only: small looping card scenes beside each feature. Shared parts live in motion.css.
   Each card keeps the size of the static mock-up it replaces (min-height 300px), so nothing shifts. */
.f-card { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 28px; box-sizing: border-box; overflow: hidden; border-radius: 28px; background: #F6F4FA; color: #22113D; font-family: 'Figtree', system-ui, sans-serif; }
:where(.f-card) p { margin: 0; }
.f-in { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; transition: opacity .5s ease; }
.h-scene.ending .f-in { opacity: 0; }
.f-b { max-width: 80%; padding: 10px 14px; box-sizing: border-box; border-radius: 18px; font-size: 16px; line-height: 1.4; }
.f-l { align-self: flex-start; justify-self: start; background: #FFFFFF; border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.f-r { align-self: flex-end; background: #FFD2C6; border-bottom-right-radius: 6px; transform-origin: 100% 100%; }
.f-who { display: block; font-size: 12px; font-weight: 700; color: #B82E13; }
.f-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; color: #625D75; }
.f-meta .h-stack > span { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.f-read { color: #00756B; }
.f-dots { display: flex; gap: 5px; padding: 15px 16px; }
.f-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9C95AE; }
.f-voice { display: flex; align-items: center; gap: 10px; }
.f-play { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #FF5A3C; color: #22113D; }
.f-bars { display: flex; align-items: center; gap: 3px; height: 22px; }
.f-bars i { width: 3px; height: 100%; border-radius: 2px; background: #B3ACC2; transform: scaleY(.45); }
.f-bars i:nth-child(3n) { transform: scaleY(.9); } .f-bars i:nth-child(4n+1) { transform: scaleY(.65); } .f-bars i:nth-child(5n+2) { transform: scaleY(1); }
.f-voice small { font-size: 13px; color: #625D75; }
.f-note { align-self: center; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #625D75; }
.f-note .h-i { color: #00756B; }
.f-sys { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #E1DFE6; color: #41355C; font-size: 13px; text-align: center; }
.f-key { background: #DDF1EE; color: #00564F; }
.f-head { display: flex; align-items: center; gap: 10px; margin-bottom: auto; padding: 10px 12px; border-radius: 16px; background: #FFFFFF; }
.f-head .h-ava { width: 38px; height: 38px; font-size: 14px; font-weight: 800; background: #FFBE2E; }
.f-head b { display: block; font-size: 15px; }
.f-head small { display: block; font-size: 12.5px; color: #625D75; font-variant-numeric: tabular-nums; }
.f-head small.h-stack { display: grid; }
.f-head .f-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #FFF6E5; font-size: 12px; font-weight: 700; }
.f-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #FFFFFF; font-size: 14px; font-weight: 600; }
.f-pill .h-i { color: #B82E13; }
.f-pill-grey { background: #E1DFE6; }
.f-gonechip { align-self: flex-end; padding: 9px 14px; border: 1px dashed #B3ACC2; border-radius: 18px; color: #625D75; font-size: 14px; font-style: italic; }
.f-bar { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 14px; background: #E1DFE6; color: #41355C; font-size: 13px; font-weight: 600; }

/* Group call */
.f-call { background: #22113D; color: #FFFFFF; }
.f-call-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: auto; font-size: 13px; color: #D9D3E6; }
.f-call-top b { display: block; color: #FFFFFF; font-size: 15px; }
.f-call-top .h-i { color: #45C7B4; }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 4px; }
.f-tile { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; }
.f-tile .h-ava { width: 46px; height: 46px; font-family: 'Outfit', 'Figtree', sans-serif; font-size: 18px; font-weight: 800; }
.f-tile small { position: absolute; left: 9px; bottom: 6px; font-size: 11.5px; font-weight: 700; }
.f-t1 { background: linear-gradient(150deg, #574D70, #22113D); }
.f-t2 { background: linear-gradient(150deg, #1E8C8A, #12332F); }
.f-t3 { background: linear-gradient(150deg, #B82E13, #43246F); }
.f-t4 { background: linear-gradient(150deg, #41355C, #120A21); }
.f-t1 .h-ava { background: #FFBE2E; } .f-t2 .h-ava { background: #9BE3D6; } .f-t3 .h-ava { background: #FFD2C6; } .f-t4 .h-ava { background: #FFE8E2; }
.f-spk { position: absolute; inset: 0; border-radius: 14px; box-shadow: inset 0 0 0 3px #FFBE2E; }
.f-recon { position: absolute; z-index: 2; left: 0; right: 0; top: 74px; display: flex; justify-content: center; }
.f-recon span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #FFFFFF; color: #22113D; font-size: 12.5px; font-weight: 700; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.f-ctl { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.f-ctl span { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.f-ctl .f-end { background: #E0384A; }

@keyframes f-vanish { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px) scale(.94); } }
@keyframes f-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: no-preference) {
  /* f-swap: visible in the still frame, but in motion it shows only between data-at and data-until */
  .motion .h-scene.play .f-swap { animation: h-fade .35s ease both, h-out .3s ease forwards; }
  .motion .h-scene.play .f-gone { animation: h-in-r .45s cubic-bezier(.2, .9, .3, 1.15) both, f-vanish .9s ease forwards; }
  .motion .h-scene.play .f-dots i { animation: h-dot 1.1s ease-in-out infinite; }
  .motion .h-scene.play .f-dots i:nth-child(2) { animation-delay: .15s; }
  .motion .h-scene.play .f-dots i:nth-child(3) { animation-delay: .3s; }
  .motion .h-scene.play .f-spin { animation: f-spin 1s linear infinite; }
}
