/* sevome.com: shared motion layer (phone frames, scene timeline, scroll reveal, Reels scene).
   Loaded by the pages that animate (home, reels, creators, business, pricing, security), always
   together with /assets/motion.js. Every rule is scoped by its own class (h-*, m-*, a-*, .motion),
   so nothing here changes a page that doesn't use those classes.
   Without JavaScript, or with prefers-reduced-motion: reduce, every scene is a calm static frame.
   Animations use transform and opacity only, and run only while on screen (.play / .is-live). */

.m-page > div { overflow-x: clip; }
.h-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); box-sizing: border-box; }

/* Visible keyboard focus on both dark and light sections */
.m-page a:focus-visible, .m-page button:focus-visible, .m-page summary:focus-visible { outline: 3px solid #FFBE2E; outline-offset: 3px; box-shadow: 0 0 0 3px #22113D; }

/* ---------- Buttons, stage, floating labels ---------- */
.h-eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FFBE2E; }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.h-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font-size: 16px; font-weight: 700; text-decoration: none; box-sizing: border-box; }
.h-btn-coral { background: #FF5A3C; border-color: #FF5A3C; color: #22113D; }
.h-btn-coral:hover { background: #FFFFFF; border-color: #FFFFFF; color: #22113D; }
.h-btn-ghost { color: #FFFFFF; border-color: #FFFFFF; }
.h-btn-ghost:hover { background: #FFFFFF; color: #22113D; }
.h-hero-stage { position: relative; display: flex; justify-content: center; padding: 8px 0; }
.h-glow { position: absolute; left: 50%; top: 50%; width: min(520px, 120%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 90, 60, .42), rgba(255, 90, 60, 0)); pointer-events: none; }
.h-float { position: absolute; z-index: 3; display: none; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #FFFFFF; color: #22113D; font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 18px 40px -16px rgba(10, 4, 20, .55); }
.h-float svg { color: #00756B; }
@media (min-width: 1100px) { .h-float { display: flex; } }

/* ---------- Phone frame ---------- */
.h-phone { position: relative; z-index: 1; width: clamp(250px, 74vw, 300px); aspect-ratio: 300 / 620; box-sizing: border-box; padding: 9px; border-radius: 46px; background: #0E0719; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 90px -40px rgba(10, 4, 20, .75), 0 20px 40px -24px rgba(10, 4, 20, .55); }
.h-phone::before { content: ""; position: absolute; z-index: 6; top: 18px; left: 50%; width: 74px; height: 22px; margin-left: -37px; border-radius: 12px; background: #0E0719; }
.h-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; isolation: isolate; transform: translateZ(0); background: #F4F1F8; color: #22113D; font-family: 'Figtree', system-ui, sans-serif; font-size: 13px; line-height: 1.35; text-align: left; }
:where(.h-screen) p { margin: 0; }
.h-sb { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 22px 0 28px; font-size: 12px; font-weight: 700; }
.h-sb-i { display: flex; align-items: flex-end; gap: 2px; }
.h-sb-i i { width: 3px; border-radius: 1px; background: currentColor; }
.h-sb-i i:nth-child(1) { height: 4px; } .h-sb-i i:nth-child(2) { height: 6px; } .h-sb-i i:nth-child(3) { height: 8px; }
.h-sb-i b { width: 18px; height: 8px; margin-left: 5px; border-radius: 2px; border: 1.5px solid currentColor; box-sizing: border-box; background: linear-gradient(90deg, currentColor 70%, transparent 70%); background-clip: content-box; padding: 1px; }
.h-screen-in { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: 40px; transition: opacity .5s ease; }
.h-scene.ending .h-screen-in { opacity: 0; }
.h-i { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h-stack { display: grid; }
.h-stack > * { grid-area: 1 / 1; }
.h-ava { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #FFE8E2; color: #22113D; font-weight: 700; font-size: 12px; }

/* ---------- Scene: Reels ---------- */
.h-reels { background: #120A21; color: #FFFFFF; }
.h-reels .h-sb { color: #FFFFFF; }
.h-reels .h-screen-in { padding-top: 0; }
.h-track { position: absolute; inset: 0; }
.h-reel { position: absolute; left: 0; right: 0; top: 0; height: 100%; overflow: hidden; }
.h-reel-2 { top: 100%; }
.h-reel-3 { top: 200%; }
.h-frame { position: absolute; inset: -4%; }
.h-frame svg { display: block; width: 100%; height: 100%; }
.h-reel-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 10, 33, .92) 0%, rgba(18, 10, 33, 0) 46%), linear-gradient(to bottom, rgba(18, 10, 33, .55) 0%, rgba(18, 10, 33, 0) 20%); }
.h-reels-top { position: absolute; z-index: 4; top: 46px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .72); }
.h-reels-top .on { color: #FFFFFF; border-bottom: 2px solid #FFFFFF; padding-bottom: 3px; }
.h-rail { position: absolute; right: 10px; bottom: 118px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.h-rail-b { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.h-heart-on { color: #FF5A3C; }
.h-reel-info { position: absolute; left: 14px; right: 62px; bottom: 28px; }
.h-who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.h-ava-sq { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; background: #FFD2C6; }
.h-follow { padding: 3px 10px; border-radius: 8px; background: #FF5A3C; color: #22113D; font-size: 11px; }
.h-reel-info p { margin: 9px 0 4px; font-size: 14px; font-weight: 600; }
.h-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #D9D3E6; }
.h-progress { position: absolute; left: 14px; right: 14px; bottom: 13px; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .25); }
.h-progress i { display: block; height: 100%; background: #FFFFFF; transform-origin: 0 50%; transform: scaleX(.4); }
.h-burst { position: absolute; left: 50%; top: 40%; width: 92px; height: 92px; margin: -46px 0 0 -46px; color: #FF5A3C; }
.h-burst svg { width: 100%; height: 100%; display: block; }
.h-hint { position: absolute; z-index: 4; left: 50%; bottom: 170px; width: 38px; height: 38px; margin-left: -19px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 7px rgba(255, 255, 255, .18); }

/* Transient parts of a scene are hidden in the static frame */
.h-scene .t, .h-burst, .h-hint { opacity: 0; }

/* ---------- "In motion" section ---------- */
.h-show { background: #F4F1F8; padding: clamp(64px, 8vw, 112px) 0; }
.h-show-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.h-kicker { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #B82E13; }
.h-h2 { margin: 0; font-family: 'Outfit', 'Figtree', sans-serif; font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; }
.h-p { margin: 0; font-size: 18px; line-height: 1.55; color: #41355C; }
.h-row { display: grid; gap: 40px; align-items: center; }
.h-row + .h-row { margin-top: clamp(64px, 8vw, 112px); }
@media (min-width: 880px) { .h-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } .h-row-flip .h-row-text { order: 2; } }
.h-row-text { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.h-h3 { margin: 0; font-family: 'Outfit', 'Figtree', sans-serif; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.h-ticks { margin: 0; padding: 0; list-style: none; }
.h-ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid #DDD7E8; font-size: 17px; line-height: 1.45; }
.h-ticks svg { color: #00756B; margin-top: 2px; }
.h-more { font-weight: 700; font-size: 16px; }
.h-row-stage { position: relative; display: flex; justify-content: center; padding: 12px 0; }
.h-panel { position: absolute; left: 0; right: 0; top: 14%; bottom: 14%; border-radius: 36px; }
.h-panel-plum { background: linear-gradient(160deg, #3A2160, #22113D); }
.h-panel-coral { background: linear-gradient(160deg, #FFD2C6, #FF8A6B); }
.h-row-stage .h-float { display: none; }
@media (min-width: 600px) { .h-row-stage .h-float { display: flex; } }
.h-row-stage .h-float-a { left: 4%; top: 22%; }
.h-row-stage .h-float-b { right: 4%; bottom: 20%; left: auto; top: auto; }

/* ---------- Keyframes ---------- */
@keyframes h-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes h-in-l { from { opacity: 0; transform: translate(-6px, 12px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes h-in-r { from { opacity: 0; transform: translate(6px, 12px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes h-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes h-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes h-type { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes h-press { 0%, 100% { transform: scale(1); } 45% { transform: scale(.8); } }
@keyframes h-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes h-blink { 50% { opacity: 0; } }
@keyframes h-shackle { from { transform: translateY(-3px); } to { transform: translateY(0); } }
@keyframes h-ringpulse { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
@keyframes h-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes h-wave { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
@keyframes h-speak { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.16); opacity: .3; } }
@keyframes h-track { 0%, 30% { transform: translateY(0); } 36%, 63% { transform: translateY(-100%); } 69%, 100% { transform: translateY(-200%); } }
@keyframes h-hint {
  0%, 22% { opacity: 0; transform: translateY(30px) scale(.8); }
  25% { opacity: 1; transform: translateY(30px) scale(1); }
  33% { opacity: 1; transform: translateY(-110px) scale(1); }
  36%, 56% { opacity: 0; transform: translateY(-130px) scale(.9); }
  57% { opacity: 0; transform: translateY(30px) scale(.8); }
  59% { opacity: 1; transform: translateY(30px) scale(1); }
  66% { opacity: 1; transform: translateY(-110px) scale(1); }
  69%, 100% { opacity: 0; transform: translateY(-130px) scale(.9); }
}
@keyframes h-burst { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: 1; transform: scale(1.12); } 45% { transform: scale(.95); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translateY(-24px) scale(1.25); } }
@keyframes h-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes h-kb { from { transform: scale(1); } to { transform: scale(1.1) translateY(-2%); } }
@keyframes h-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes h-drift { from { transform: translate(0, 0); } to { transform: translate(-60px, 40px); } }

/* ---------- Motion (only with JS, only without reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .h-btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
  .h-btn:hover { transform: translateY(-2px); }

  /* Scroll reveal */
  .motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
  .motion .reveal.in { opacity: 1; transform: none; }

  /* Ambient motion while the section is on screen */
  .motion .is-live .h-float { animation: h-float 5s ease-in-out infinite; }
  .motion .is-live .h-float-b { animation-delay: -2.5s; }

  /* Scene timeline: while stopped a scene shows its static frame; on play, entrance parts
     wait for their moment via backwards fill (delays come from data-at) */
  .motion .h-scene.play .a-in { animation: h-in .5s cubic-bezier(.2, .8, .2, 1) both; }
  .motion .h-scene.play .a-in-l { animation: h-in-l .45s cubic-bezier(.2, .9, .3, 1.15) both; }
  .motion .h-scene.play .a-in-r { animation: h-in-r .45s cubic-bezier(.2, .9, .3, 1.15) both; }
  .motion .h-scene.play .a-fade { animation: h-fade .35s ease both; }
  .motion .h-scene.play .t.a-fade { animation: h-fade .35s ease both, h-out .3s ease forwards; }
  .motion .h-scene.play .t.a-in-l { animation: h-in-l .4s cubic-bezier(.2, .9, .3, 1.15) both, h-out .2s ease forwards; }
  .motion .h-scene.play .inv { animation: h-out .25s ease forwards, h-fade .3s ease forwards; }
  .motion .h-scene.play .a-type { animation: h-type 1.7s steps(20, end) both; }
  .motion .h-scene.play .a-press { animation: h-press .4s ease both; }
  .motion .h-scene.play .a-burst { animation: h-burst 1s ease-out both; }
  .motion .h-scene.play .a-progress { animation: h-progress 4s linear both; }
  .motion .h-scene.play .a-track { animation: h-track 12s cubic-bezier(.55, 0, .2, 1) both; }
  .motion .h-scene.play .a-hint { animation: h-hint 12s linear both; }


  /* Loops inside a playing scene */
  .motion .h-scene.play .h-shackle { animation: h-shackle .45s .9s cubic-bezier(.3, 1.6, .5, 1) both; }
  .motion .h-scene.play .h-frame { animation: h-kb 8s ease-in-out infinite alternate; }
}
/* ---------- Page hero with a scene beside the copy (reels, creators, business) ---------- */
.m-hero { position: relative; isolation: isolate; overflow: hidden; }
.m-hero::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -240px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 90, 60, .28), rgba(255, 90, 60, 0)); pointer-events: none; }
.m-hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .m-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; } }
.m-hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.m-hero .h-float-a { left: 0; top: 30%; }
.m-hero .h-float-b { right: 0; bottom: 22%; }

/* Placeholder text and round send button used by message composers */
.h-ph { color: #8A8499; }
.h-send { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #FF5A3C; color: #22113D; }

/* Bottom sheet that slides up inside a phone */
.h-sheet { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; border-radius: 20px 20px 0 0; background: #FFFFFF; color: #22113D; box-shadow: 0 -12px 30px -12px rgba(10, 4, 20, .45); }
.h-sheet-grip { display: block; width: 36px; height: 4px; margin: 8px auto 6px; border-radius: 2px; background: #CBC3D9; }

/* Bars that grow when their .reveal parent scrolls into view */
.m-grow { transform-origin: 50% 100%; }

/* Pricing: the popular plan gets a soft glow when it scrolls in */
.pg-pricing .m-popular { position: relative; }
.pg-pricing .m-popular::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 0 6px rgba(255, 90, 60, .22), 0 24px 50px -20px rgba(255, 90, 60, .55); opacity: 0; pointer-events: none; }

/* Security: message flow strip (you > servers > recipient) */
.m-flow { display: grid; gap: 12px; align-items: stretch; margin-top: 8px; }
@media (min-width: 820px) { .m-flow { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.3fr) 56px minmax(0, 1fr); } }
.m-flow-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; background: #F6F4FA; color: #22113D; min-width: 0; }
.m-flow-card b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #625D75; }
.m-flow-bubble { align-self: flex-start; padding: 9px 13px; border-radius: 16px 16px 16px 6px; background: #FFFFFF; font-size: 16px; }
.m-flow-out { align-self: flex-end; background: #FFD2C6; border-radius: 16px 16px 6px 16px; }
.m-flow-srv { background: #22113D; color: #FFFFFF; border: 2px dashed #574D70; }
.m-flow-srv b { color: #FFBE2E; }
.m-flow-cipher { margin: 0; font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace; font-size: 14px; line-height: 1.6; color: #C1BECC; word-break: break-all; }
.m-flow-key { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #00756B; }
.m-flow-srv .m-flow-key { color: #45C7B4; }
.m-flow-arrow { position: relative; display: none; align-items: center; justify-content: center; overflow: hidden; }
.m-flow-arrow::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; border-top: 2px dashed #CBC3D9; }
.m-flow-arrow i { position: relative; width: 14px; height: 14px; border-radius: 50%; background: #FF5A3C; box-shadow: 0 0 0 4px rgba(255, 90, 60, .2); }
@media (min-width: 820px) { .m-flow-arrow { display: flex; } }

/* Extra scene keyframes */
@keyframes h-sheet-in { from { opacity: 1; transform: translateY(105%); } to { opacity: 1; transform: none; } }
@keyframes h-sheet-out { from { opacity: 1; transform: none; } to { opacity: 1; transform: translateY(105%); } }
@keyframes h-rise { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes h-pop { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: none; } }
@keyframes m-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes m-glow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes m-packet { 0% { opacity: 0; transform: translateX(-26px); } 20%, 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(26px); } }

@media (prefers-reduced-motion: no-preference) {
  .motion .m-hero.is-live::before { animation: h-drift 16s ease-in-out infinite alternate; }
  .motion .h-scene.play .a-sheet { animation: h-sheet-in .45s cubic-bezier(.2, .8, .2, 1) both; }
  .motion .h-scene.play .t.a-sheet { animation: h-sheet-in .45s cubic-bezier(.2, .8, .2, 1) both, h-sheet-out .4s ease-in forwards; }
  .motion .h-scene.play .a-rise { animation: h-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
  .motion .h-scene.play .a-pop { animation: h-pop .45s cubic-bezier(.2, .9, .3, 1.2) both; }
  .motion .h-scene.play .t.a-in { animation: h-in .45s cubic-bezier(.2, .8, .2, 1) both, h-out .3s ease forwards; }
  .motion .h-scene.play .t.a-rise { animation: h-rise .45s cubic-bezier(.2, .8, .2, 1) both, h-out .3s ease forwards; }
  .motion .reveal .m-grow { transform: scaleY(0); }
  .motion .reveal.in .m-grow { animation: m-grow .9s cubic-bezier(.2, .8, .2, 1) .2s both; }
  .motion .reveal.in .m-grow-2 { animation-delay: .28s; } .motion .reveal.in .m-grow-3 { animation-delay: .36s; }
  .motion .reveal.in .m-grow-4 { animation-delay: .44s; } .motion .reveal.in .m-grow-5 { animation-delay: .52s; }
  .motion .reveal.in .m-grow-6 { animation-delay: .6s; } .motion .reveal.in .m-grow-7 { animation-delay: .68s; }
  .motion .pg-pricing .m-popular.in::after { animation: m-glow 2.4s ease-in-out .9s 2; }
  .motion .is-live .m-flow-arrow i { animation: m-packet 1.8s ease-in-out infinite; }
  .motion .is-live .m-flow-arrow + .m-flow-card + .m-flow-arrow i { animation-delay: .9s; }
}

/* Toast at the top of a phone, and the visibility chip on a Reel */
.h-toast { position: absolute; z-index: 6; top: 72px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 14px; background: rgba(34, 17, 61, .92); color: #FFFFFF; font-size: 11.5px; font-weight: 600; box-shadow: 0 12px 30px -12px rgba(10, 4, 20, .6); }
.h-toast .h-i { color: #FFBE2E; }
.h-vis { position: absolute; z-index: 3; left: 12px; top: 78px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(34, 17, 61, .85); color: #FFFFFF; font-size: 10.5px; font-weight: 700; }
