/* Xecil Motion Studio page (hub /motion): two-column hero (the Xbucks ad playing large on the left, the
   headline on the right) and the template reel. */
.mo-hero{display:grid;grid-template-columns:minmax(280px,430px) minmax(0,1fr);gap:clamp(36px,6vw,96px);align-items:center;max-width:1200px;margin:0 auto;text-align:left;padding-top:128px;padding-bottom:110px}
.mo-hero .mo-text{min-width:0}
.mo-hero h1{font-size:clamp(42px,5.2vw,82px)}
.mo-hero .lead{margin:0 0 34px;max-width:560px}
.mo-hero .cta,.mo-hero .fine{justify-content:flex-start}
.mo-film{position:relative;margin:0;border-radius:30px;overflow:hidden;aspect-ratio:9/16;max-height:calc(100vh - 150px);width:100%;justify-self:center;background:#e9eeeb;
  box-shadow:0 0 0 1px rgba(255,255,255,.1),0 0 140px -30px rgba(15,122,81,.55),0 70px 120px -50px rgba(0,0,0,.85);animation:mo-in 1.4s var(--ease) .4s both}
html[data-theme="light"] .mo-film{box-shadow:0 0 0 1px rgba(14,15,17,.12),0 0 140px -30px rgba(15,122,81,.45),0 70px 120px -50px rgba(14,15,17,.45)}
.mo-film video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.mo-film figcaption{position:absolute;left:16px;bottom:16px;display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:rgba(10,12,11,.62);color:#fff;font-size:13px;backdrop-filter:blur(8px)}
.mo-film figcaption i{width:7px;height:7px;border-radius:50%;background:#2fd18b;box-shadow:0 0 0 4px rgba(47,209,139,.25);animation:mo-live 1.6s ease-in-out infinite}
@keyframes mo-in{from{opacity:0;transform:translateY(60px) scale(.96)}}
@keyframes mo-live{50%{opacity:.35}}
@media (max-width:900px){
  .mo-hero{grid-template-columns:1fr;text-align:center;padding-top:110px}
  .mo-hero .mo-text{order:-1}
  .mo-hero .lead{margin:0 auto 30px}
  .mo-hero .cta,.mo-hero .fine{justify-content:center}
  .mo-film{width:min(78vw,380px)}
}

/* Template reel: six ads playing (each starts when it scrolls into view). */
.mo-reel{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.mo-card{margin:0;position:relative;border-radius:18px;overflow:hidden;border:1px solid var(--line-2);background:var(--ink-2);box-shadow:0 40px 80px -50px rgba(0,0,0,.9);transition:transform .5s var(--ease),border-color .3s}
.mo-card:hover{transform:translateY(-6px);border-color:rgba(255,255,255,.28)}
.mo-card video{display:block;width:100%;aspect-ratio:9/16;object-fit:cover}
.mo-card figcaption{position:absolute;left:0;right:0;bottom:0;padding:44px 14px 14px;display:grid;gap:2px;background:linear-gradient(180deg,transparent,rgba(8,9,10,.85));color:#fff}
.mo-card figcaption b{font-size:14px;font-weight:600}
.mo-card figcaption span{font-size:12px;color:rgba(255,255,255,.7)}
@media (max-width:1100px){.mo-reel{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:600px){.mo-reel{grid-template-columns:repeat(6,58vw);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px}.mo-card{scroll-snap-align:start}}
@media (prefers-reduced-motion:reduce){.mo-card:hover{transform:none}.mo-film{animation:none}}

/* The app's welcome screen (Ink theme), recreated with the same video playing. Always dark, like the app. */
.mo-wl{--w-panel:#141518;--w-surf:#1b1d21;--w-line:rgba(255,255,255,.08);--w-mut:#9aa1a8;--w-faint:#6c737a;
  max-width:1180px;margin:0 auto;display:grid;grid-template-columns:250px 330px minmax(0,1fr);border-radius:20px;overflow:hidden;background:var(--w-panel);border:1px solid var(--w-line);
  box-shadow:0 70px 140px -60px rgba(0,0,0,.9);font-family:var(--mono);color:#E9EBEE;font-size:12px;text-align:left}
html[data-theme="light"] .mo-wl{box-shadow:0 0 0 1px rgba(14,15,17,.1),0 60px 120px -50px rgba(14,15,17,.5)}
.mo-wl-video{position:relative;min-height:520px;background:#e9eeeb}
.mo-wl-video video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mo-wl-video span{position:absolute;left:12px;bottom:12px;padding:4px 9px;border-radius:999px;background:rgba(10,12,11,.6);color:#F2F3F4;font-size:10px;letter-spacing:.08em;font-weight:600;backdrop-filter:blur(6px)}
.mo-wl-hero{padding:68px 34px 34px;background:radial-gradient(120% 90% at 30% 20%,#26302B 0%,#0E0F11 70%);display:grid;align-content:start;gap:14px}
.mo-wl-hero img{width:54px;height:54px;margin:0 0 40px 30px}
.mo-wl-hero b{font-size:22px;font-weight:600;letter-spacing:-.02em;white-space:nowrap;color:#F2F3F4}
.mo-wl-hero p{color:#B9C2BD;line-height:1.6;font-size:12.5px}
.mo-wl-hero small{color:#7E8A84;font-size:10.5px;line-height:1.7}
.mo-wl-body{padding:34px 30px 24px;display:grid;gap:9px;align-content:start}
.mo-wl-h{font-style:normal;font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--w-faint);margin-top:4px}
.mo-wl-act{display:grid;grid-template-columns:30px 1fr;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;border:1px solid var(--w-line);background:var(--w-surf)}
.mo-wl-act svg{width:17px;height:17px;fill:none;stroke:#E9EBEE;stroke-width:1.6;stroke-linejoin:round}
.mo-wl-act b{display:block;font-weight:600;color:#F2F3F4}
.mo-wl-act small{color:var(--w-mut);font-size:11px}
.mo-wl-sizes{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.mo-wl-sizes span{display:grid;justify-items:center;align-content:start;gap:5px;padding:16px 6px 14px;border-radius:10px;border:1px solid var(--w-line);background:var(--w-surf);text-align:center}
.mo-wl-sizes span.on{border-color:#E9EBEE}
.mo-wl-sizes em{display:block;border:2px solid var(--w-mut);border-radius:4px;margin-bottom:6px}
.mo-wl-sizes b{font-weight:600}
.mo-wl-sizes small{color:var(--w-mut);font-size:10px;line-height:1.5}
.mo-wl-foot{display:flex;align-items:center;gap:10px;margin-top:10px;padding-top:14px;border-top:1px solid var(--w-line);color:var(--w-mut);flex-wrap:wrap}
.mo-wl-themes{display:flex;gap:4px}
.mo-wl-themes i{font-style:normal;padding:4px 8px;border-radius:6px}
.mo-wl-themes i.on{background:var(--w-surf);color:#F2F3F4}
.mo-wl-sp{flex:1}
.mo-wl-toggle{width:34px;height:18px;border-radius:999px;background:#E9EBEE;position:relative}
.mo-wl-toggle::after{content:"";position:absolute;right:3px;top:3px;width:12px;height:12px;border-radius:50%;background:#141518}
.mo-wl-btn{padding:8px 14px;border-radius:8px;background:#E9EBEE;color:#141518;font-weight:600}
@media (max-width:1100px){.mo-wl{grid-template-columns:220px minmax(0,1fr)}.mo-wl-body{grid-column:1/-1;border-top:1px solid var(--w-line)}}
@media (max-width:640px){.mo-wl{grid-template-columns:1fr}.mo-wl-video{min-height:440px}.mo-wl-sizes{grid-template-columns:1fr 1fr}}

/* "The rest of the family": centred heading and card. */
.mo-family .minis{grid-template-columns:minmax(0,440px);justify-content:center;text-align:center}
.mo-family .mini{justify-items:center}
.mo-family .mini .prod-link{justify-content:center}
