/* Screen clips — components/lp/LpScenes.js (ScreenClip). Static file so the
   homepage HTML stays small; bump ?v= in LpScenesStyles when editing.
   Colours follow the homepage road theme: ink #1E1B16, card #FFFDF8,
   orange #FC8D1A (fills only), butter #FFE3A8, body text #574D42 (7.7:1),
   muted #75695B (5.0:1). */
.lp-clip{position:relative;}
.lp-clip-stage{position:relative;}
.lp-clip-frame{position:relative;}
.lp-clip-screen{position:relative;overflow:hidden;background:#F4F2EC;}
.lp-clip-screen video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;}

/* phone clips: a plain dark phone, the steps underneath */
.lp-clip-phone{padding:24px 20px 16px;}
.lp-clip-phone .lp-clip-stage{display:flex;align-items:center;justify-content:center;gap:20px;}
.lp-clip-device{position:relative;flex:0 0 auto;width:min(258px,64%);padding:9px;border-radius:38px;background:#1E1B16;box-shadow:0 2px 4px rgba(30,27,22,.18),0 22px 44px rgba(30,27,22,.2);}
.lp-clip-device .lp-clip-screen{border-radius:29px;}

/* the sticker that marks a moment: sent, delivered, which language */
.lp-clip-badge{position:absolute;z-index:2;top:10px;left:50%;padding:6px 12px;border-radius:999px;background:#FFE3A8;color:#1E1B16;border:2px solid #1E1B16;box-shadow:3px 3px 0 #1E1B16;font-size:13px;font-weight:800;line-height:1.2;white-space:nowrap;opacity:0;transform:translate(-50%,-6px) rotate(-3deg);transition:opacity .25s ease,transform .25s ease;pointer-events:none;}
.lp-clip-badge.is-on{opacity:1;transform:translate(-50%,0) rotate(-3deg);}
/* on the phones the sticker sits on the top edge, clear of the screen's content */
.lp-clip-device .lp-clip-screen{overflow:visible;}
.lp-clip-device .lp-clip-screen video{border-radius:29px;}
.lp-clip-phone .lp-clip-badge{top:-22px;}

/* pause / play — 40px round, inside the corner of the screen */
.lp-clip-toggle{position:absolute;z-index:3;right:10px;bottom:10px;width:40px;height:40px;padding:0;border-radius:50%;border:2px solid #1E1B16;background:#FFFDF8;color:#1E1B16;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:2px 2px 0 #1E1B16;transition:transform .14s ease,box-shadow .14s ease;}
.lp-clip-toggle:hover{transform:translate(-1px,-1px);box-shadow:3px 3px 0 #1E1B16;}
.lp-clip-toggle:active{transform:translate(2px,2px);box-shadow:0 0 0 #1E1B16;}
.lp-clip-toggle:focus-visible{outline:3px solid #1E1B16;outline-offset:3px;}
.lp-clip-toggle .lp-clip-ico-play{display:none;}
.lp-clip.is-paused .lp-clip-toggle .lp-clip-ico-play{display:block;}
.lp-clip.is-paused .lp-clip-toggle .lp-clip-ico-pause{display:none;}
.lp-clip-phone .lp-clip-toggle{right:-8px;bottom:-8px;}

/* the steps: they light up as the clip reaches them; tap one to jump there */
.lp-clip-steps{list-style:none;margin:0;padding:10px 12px 12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:#FFFDF8;border-top:2px solid #1E1B16;}
.lp-clip-phone .lp-clip-steps{grid-template-columns:minmax(0,1fr);gap:2px;max-width:320px;margin:0 auto;padding:16px 0 0;background:none;border-top:0;}
.lp-clip-phone .lp-clip-step{align-items:center;padding:6px 8px;}
.lp-clip-phone .lp-clip-step span{padding-top:0;}
.lp-clip-steps li{min-width:0;}
.lp-clip-step{width:100%;min-height:44px;display:flex;align-items:flex-start;gap:8px;padding:8px;border:0;border-radius:12px;background:transparent;color:#75695B;font:inherit;font-size:13px;font-weight:700;line-height:1.3;text-align:start;cursor:pointer;transition:background-color .2s ease,color .2s ease;}
.lp-clip-step b{flex:0 0 24px;height:24px;border-radius:50%;border:2px solid #1E1B16;display:inline-flex;align-items:center;justify-content:center;background:#FFFDF8;color:#1E1B16;font-size:12px;font-weight:800;line-height:1;transition:background-color .2s ease;}
.lp-clip-step span{padding-top:3px;}
.lp-clip-step:hover{color:#1E1B16;}
.lp-clip-step:focus-visible{outline:3px solid #1E1B16;outline-offset:2px;}
.lp-clip-step.is-on{color:#1E1B16;background:#FFF1DE;}
.lp-clip-step.is-on b{background:#FC8D1A;}
/* reduced motion, not playing: every step reads the same, nothing "running" */
.lp-clip.is-static .lp-clip-step{color:#1E1B16;}
.lp-clip.is-static .lp-clip-step.is-on{background:transparent;}
.lp-clip.is-static .lp-clip-step.is-on b{background:#FFFDF8;}

@media (max-width:520px){
  .lp-clip-steps{grid-template-columns:minmax(0,1fr);gap:2px;}
  .lp-clip-step{align-items:center;padding:6px 8px;}
  .lp-clip-step span{padding-top:0;}
  .lp-clip-phone{padding:20px 12px 12px;}
  .lp-clip-device{width:min(250px,78%);}
}
@media (prefers-reduced-motion:reduce){
  .lp-clip-badge,.lp-clip-step,.lp-clip-step b,.lp-clip-toggle{transition:none;}
}
