/* local.css: "Your footage stays on your computer" illustration (ADDED REQUIREMENT 10).
   No class on .lc-stage = the final frame (reduced motion, no script, after it plays).
   local.js adds .lc-arm (start frame) and then .lc-run once 40% of the stage is on screen. */

.local .local-head{margin-bottom:52px}
.local .local-head h2{font-size:clamp(34px,4.2vw,58px);line-height:1.04;letter-spacing:-.022em;font-weight:700;color:var(--head);text-wrap:balance}
.local .local-head h2 span{color:var(--tx2)}

.lc-stage{--mint:#7DDCAB;--cd:#C42F38;--g:#141416;
  margin:0;display:grid;grid-template-columns:minmax(0,1fr) 180px 272px;align-items:center;gap:0}

/* ---------- laptop ---------- */
.lc-lap{position:relative;padding:0 14px}
.lc-scr{position:relative;background:#0C0C0E;border:11px solid #1A1A1F;border-bottom-width:14px;border-radius:22px 22px 6px 6px;
  box-shadow:0 40px 70px -34px rgba(40,24,20,.55),0 0 0 1px rgba(20,20,22,.35);overflow:hidden;color:#EDEDF0}
.lc-base{position:relative;height:16px;margin:0 -2px;border-radius:2px 2px 16px 16px;
  background:linear-gradient(#E4E3E7,#B9B8BF 70%,#9E9DA5);box-shadow:0 18px 26px -16px rgba(40,24,20,.5)}
.lc-base::before{content:"";position:absolute;left:50%;top:0;width:15%;height:6px;transform:translateX(-50%);border-radius:0 0 8px 8px;background:#A3A2AA}

.lc-bar{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid rgba(237,237,240,.08);background:#101013}
.lc-dots{display:flex;gap:6px}
.lc-dots i{width:9px;height:9px;border-radius:50%;background:#2E2E35}
.lc-ttl{font-size:13px;color:#A9A9B3;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lc-bar .tag{border-color:rgba(237,237,240,.16);color:#8D8D98}

.lc-body{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:14px;padding:16px}
.lc-ph{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.lc-ph b{font-size:14px;font-weight:600;color:#EDEDF0}
.lc-mono{font:500 11px/1.3 var(--mono);color:#8D8D98}
.lc-stay{display:inline-flex;align-items:center;gap:5px;font:500 11px/1.3 var(--mono);color:#A9A9B3;white-space:nowrap}
.lc-stay .i{width:12px;height:12px;color:#F2545B}

.lc-foot{background:#151519;border:1px solid rgba(237,237,240,.07);border-radius:12px;padding:12px}
.lc-clips{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.lc-clips img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;object-position:50% 20%;border-radius:8px;background:#25252C}
.lc-voice{display:flex;align-items:center;gap:8px;margin-top:10px;padding:8px 10px;border-radius:8px;background:#1C1C21;color:#A9A9B3}
.lc-voice .i{width:14px;height:14px}
.lc-voice small{font-size:11px;white-space:nowrap}
.lc-wave{flex:1;display:flex;align-items:center;gap:3px;height:18px;min-width:0;overflow:hidden}
.lc-wave i{flex:1;max-width:3px;min-width:2px;border-radius:2px;background:#55555F;height:40%}
.lc-wave i:nth-child(3n){height:85%}.lc-wave i:nth-child(4n+1){height:60%}.lc-wave i:nth-child(5n+2){height:25%}

.lc-q{display:flex;flex-direction:column}
.lc-row{display:flex;align-items:center;gap:12px;padding:10px 12px;margin-bottom:8px;border-radius:10px;background:#151519;border:1px solid rgba(237,237,240,.07)}
.lc-row:last-child{margin-bottom:0}
.lc-th{position:relative;flex:none;width:64px;height:48px;display:flex;align-items:center;justify-content:center}
.lc-th img{display:block;height:100%;object-fit:cover;border-radius:5px;box-shadow:0 0 0 1px rgba(237,237,240,.14)}
.lc-th.w img{width:64px;height:36px}
.lc-th.t img{width:27px;height:48px}
.lc-th.s img{width:42px;height:42px}
.lc-tk{position:absolute;right:-2px;bottom:-4px;width:18px;height:18px;border-radius:50%;background:var(--mint);color:var(--g);display:grid;place-items:center;box-shadow:0 0 0 2px #151519}
.lc-tk .i{width:11px;height:11px;stroke-width:3}
.lc-rm{flex:1;min-width:0}
.lc-rt{display:flex;align-items:center;justify-content:space-between;gap:8px}
.lc-rt b{font-size:13px;font-weight:600;white-space:nowrap}
.lc-pill{position:relative;display:inline-grid;font-size:11.5px;line-height:1}
.lc-pill>span{grid-area:1/1;padding:4px 9px;border-radius:999px;text-align:center}
.lc-pill .r{border:1px solid rgba(237,237,240,.2);color:#A9A9B3;opacity:0}
.lc-pill .dn{border:1px solid rgba(125,220,171,.45);background:rgba(125,220,171,.12);color:var(--mint)}
.lc-trk{display:block;height:4px;margin:9px 0 6px;border-radius:4px;background:#25252C;overflow:hidden}
.lc-trk i{display:block;height:100%;background:#F2545B;transform-origin:0 50%}
.lc-meta{display:flex;justify-content:space-between;gap:8px;font:500 10.5px/1.2 var(--mono);color:#8D8D98}
.lc-fn{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media (min-width:641px){
  .lc-foot{display:flex;flex-direction:column}
  .lc-clips{flex:1;min-height:0}
  .lc-clips img{height:100%;aspect-ratio:auto;min-height:120px}
}

/* ---------- path ---------- */
.lc-path{position:relative;align-self:center;height:150px;display:flex;flex-direction:column;justify-content:center}
.lc-pl{position:absolute;left:12px;right:12px;bottom:calc(50% + 22px);font:500 11.5px/1.35 var(--mono);color:#55555F;text-align:center;text-wrap:balance}
.lc-line{position:relative;display:block;height:28px;margin:0 -4px}
.lc-line::before{content:"";position:absolute;left:0;right:0;top:50%;border-top:2px dashed rgba(196,47,56,.55)}
.lc-line::after{content:"";position:absolute;right:-2px;top:50%;width:9px;height:9px;border-top:2px solid var(--cd);border-right:2px solid var(--cd);transform:translate(0,-50%) rotate(45deg)}
.lc-pk{position:absolute;left:0;top:0;height:100%;width:calc(100% - 92px);display:flex;align-items:center;opacity:0;pointer-events:none}
.lc-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:999px;background:#F2545B;color:var(--g);font:600 11px/1 var(--sans);white-space:nowrap;box-shadow:0 6px 14px -6px rgba(196,47,56,.6)}
.lc-chip .i{width:11px;height:11px}
.lc-pk.sm{width:calc(100% - 30px)}
.lc-pk.sm img{width:22px;height:30px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 2px #fff,0 6px 12px -6px rgba(0,0,0,.5)}

/* ---------- AI app card ---------- */
.lc-ai{background:#fff;border:1px solid rgba(20,20,22,.1);border-radius:18px;padding:20px;box-shadow:0 26px 50px -30px rgba(40,24,20,.42)}
.lc-aih{display:flex;align-items:center;gap:11px;padding-bottom:14px;border-bottom:1px solid rgba(20,20,22,.08)}
.lc-aih img{width:26px;height:26px}
.lc-aih b{display:block;font:700 18px/1.15 var(--display);color:#141416;letter-spacing:-.01em}
.lc-aih small{display:block;font-size:12.5px;color:#55555F}
.lc-cap{margin:14px 0 8px;font:500 11.5px/1.3 var(--mono);color:#6A6A74}
.lc-slot{padding:9px 11px;margin-bottom:8px;border-radius:10px;background:#F4F2EE;border:1px solid rgba(20,20,22,.06)}
.lc-slot small{display:block;font:500 10.5px/1.3 var(--mono);color:var(--cd);margin-bottom:3px}
.lc-slot>span{display:block;font-size:13px;line-height:1.4;color:#2A2A30}
.lc-thumbs{display:flex!important;gap:6px;margin-top:2px}
.lc-thumbs img{width:24px;height:32px;object-fit:cover;object-position:50% 20%;border-radius:4px}
.lc-note{display:flex;gap:7px;align-items:flex-start;margin:12px 0 0;font-size:12.5px;line-height:1.4;color:#55555F}
.lc-note .i{width:14px;height:14px;margin-top:2px;color:var(--cd)}

/* ---------- facts under the picture ---------- */
.lc-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;margin:64px 0 0;padding:0;list-style:none}
.lc-facts li{padding-top:16px;border-top:1px solid rgba(20,20,22,.14)}
.lc-facts .i{width:20px;height:20px;color:var(--coral-deep,#C42F38);margin-bottom:12px;display:block}
.lc-facts b{display:block;font:700 18px/1.2 var(--display);letter-spacing:-.01em;color:#141416;margin-bottom:7px;text-wrap:balance}
.lc-facts span{display:block;font-size:14.5px;line-height:1.5;color:#55555F}

/* ---------- start frame (.lc-arm) and the one-time play (.lc-run) ---------- */
.lc-arm .lc-slot,.lc-arm .lc-th img,.lc-arm .lc-tk,.lc-arm .lc-pill .dn,.lc-arm .lc-fn{opacity:0}
.lc-arm .lc-pill .r{opacity:1}
.lc-arm .lc-trk i{transform:scaleX(0)}
.lc-arm .lc-th{border-radius:6px;outline:1px dashed rgba(237,237,240,.18);outline-offset:-1px}
.lc-meta{position:relative}
.lc-arm .lc-meta::after{content:"starts when you export";position:absolute;right:0;top:0;white-space:nowrap}
.lc-run .lc-meta::after{animation:lcOut .2s ease-in calc(var(--d) + 1.05s) both}

.lc-run .lc-pk{animation:lcFly .95s cubic-bezier(.45,.05,.35,1) var(--t) both}
.lc-run .lc-slot{animation:lcIn .35s var(--ease,ease-out) var(--t) both}
.lc-run .lc-trk i{animation:lcFill 1.05s cubic-bezier(.4,.1,.4,1) var(--d) both}
.lc-run .lc-pill .r{animation:lcOut .2s ease-in calc(var(--d) + 1.05s) both}
.lc-run .lc-pill .dn,.lc-run .lc-fn{animation:lcFade .25s ease-out calc(var(--d) + 1.1s) both}
.lc-run .lc-th img{animation:lcPop .4s cubic-bezier(.2,.9,.3,1.2) calc(var(--d) + 1.05s) both}
.lc-run .lc-tk{animation:lcPop .35s cubic-bezier(.2,.9,.3,1.3) calc(var(--d) + 1.3s) both}
.lc-run .lc-th{outline-color:transparent;transition:outline-color .2s calc(var(--d) + 1.05s)}

@keyframes lcFly{0%{opacity:0;transform:translateX(0)}12%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateX(100%)}}
@keyframes lcIn{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}
@keyframes lcFill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes lcOut{from{opacity:1}to{opacity:0}}
@keyframes lcFade{from{opacity:0}to{opacity:1}}
@keyframes lcPop{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}

/* ---------- narrower screens: stack, path turns vertical ---------- */
@media (max-width:1060px){
  .lc-stage{grid-template-columns:1fr;justify-items:center}
  .lc-lap{width:100%;max-width:760px}
  .lc-path{height:120px;width:100%;max-width:360px}
  .lc-pl{left:calc(50% + 22px);right:0;bottom:auto;top:50%;transform:translateY(-50%);text-align:left}
  .lc-line{position:absolute;left:50%;top:6px;bottom:6px;width:28px;height:auto;margin:0 0 0 -14px}
  .lc-line::before{left:50%;right:auto;top:0;bottom:0;border-top:0;border-left:2px dashed rgba(196,47,56,.55)}
  .lc-line::after{right:auto;left:50%;top:auto;bottom:0;transform:translate(-50%,0) rotate(135deg)}
  .lc-pk,.lc-pk.sm{width:100%;height:calc(100% - 30px);justify-content:center;align-items:flex-start}
  .lc-run .lc-pk{animation-name:lcFlyV}
  .lc-ai{width:100%;max-width:420px}
  .lc-facts{grid-template-columns:repeat(2,1fr)}
}
@keyframes lcFlyV{0%{opacity:0;transform:translateY(0)}12%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateY(100%)}}

@media (max-width:640px){
  .local .local-head{margin-bottom:30px}
  .lc-lap{padding:0 6px}
  .lc-scr{border-width:7px;border-bottom-width:10px;border-radius:16px 16px 5px 5px}
  .lc-base{height:11px}
  .lc-bar{padding:8px 10px;gap:8px}
  .lc-ttl{font-size:12px}
  .lc-body{grid-template-columns:1fr;padding:10px;gap:10px}
  .lc-row{padding:9px 10px}
  .lc-rt b{font-size:12.5px}
  .lc-facts{grid-template-columns:1fr;gap:20px;margin-top:48px}
}

@media (prefers-reduced-motion:reduce){
  .lc-run *{animation:none!important;transition:none!important}
}
