/* ======================================================================
   Light mode (html[data-theme="light"]), the page skeleton shown while the site first loads, and
   shimmer placeholders for images and embeds still loading. Linked after site.css on every page.
   ====================================================================== */

/* ---------- light mode: the same palette, reversed ---------- */
html[data-theme="light"]{
  --ink:#F5F6F3; --ink-2:#FFFFFF; --ink-3:#ECEEEA; --ink-4:#E1E4DE;
  --line:rgba(14,15,17,.09); --line-2:rgba(14,15,17,.15); --line-3:rgba(14,15,17,.26);
  --steel:#5D636A; --silver:#2E3236; --mist:#1C1E21; --white:#0E0F11;
  color-scheme:light;
}
html[data-theme="light"] ::selection{background:#0E0F11;color:#fff}
html[data-theme="light"] .bg .glow{background:radial-gradient(closest-side,rgba(14,90,74,.10),transparent 70%)}
html[data-theme="light"] .bg .noise{opacity:.035}
html[data-theme="light"] .spot{background:radial-gradient(closest-side,rgba(14,15,17,.045),transparent)}
html[data-theme="light"] nav.top{background:linear-gradient(to bottom,rgba(245,246,243,.92),rgba(245,246,243,.6))}
html[data-theme="light"] .brand img, html[data-theme="light"] footer img[src*="-white.svg"]{filter:invert(1) hue-rotate(180deg) brightness(.92)}
html[data-theme="light"] .btn-light{background:#0E0F11;color:#fff}
html[data-theme="light"] .btn-light:hover{background:#24272B;box-shadow:0 10px 30px -10px rgba(14,15,17,.4)}
html[data-theme="light"] .marquee, html[data-theme="light"] .included, html[data-theme="light"] .own-col,
html[data-theme="light"] .tpl-card, html[data-theme="light"] .who-col{background:#fff}
html[data-theme="light"] .cell::before{background:radial-gradient(420px circle at var(--mx,50%) var(--my,0%),rgba(14,15,17,.05),transparent 60%)}
html[data-theme="light"] .cell .ico, html[data-theme="light"] .dl-ico, html[data-theme="light"] .notice{background:#fff}
html[data-theme="light"] .field input, html[data-theme="light"] .field select{background:#fff}
html[data-theme="light"] .step:hover{background:rgba(14,15,17,.03)}
html[data-theme="light"] .own-col.rent li b{text-decoration-color:rgba(14,15,17,.45)}
html[data-theme="light"] footer .socials a:hover{border-color:rgba(14,15,17,.3)}
html[data-theme="light"] .fx-list .i-gl{background:linear-gradient(160deg,rgba(14,15,17,.5),rgba(14,15,17,.06));border-color:rgba(14,15,17,.3)}
/* Screenshots and the app itself keep their own colours; give them a soft frame on the light page. */
html[data-theme="light"] .welcome-embed, html[data-theme="light"] .phone{box-shadow:0 40px 90px -40px rgba(14,15,17,.45)}

/* ---------- theme switch in the menu bar ---------- */
.theme-switch{width:40px;height:40px;border-radius:999px;border:1px solid var(--line-2);display:grid;place-items:center;color:var(--white);transition:border-color .2s,transform .3s var(--ease)}
.theme-switch:hover{border-color:var(--line-3);transform:rotate(-14deg)}
.theme-switch svg{width:18px;height:18px}
.theme-switch .sun{display:none}
html[data-theme="light"] .theme-switch .sun{display:block}
html[data-theme="light"] .theme-switch .moon{display:none}
html.theme-anim, html.theme-anim *{transition:background-color .45s ease,color .45s ease,border-color .45s ease!important}

/* ---------- first-load skeleton ---------- */
.skeleton{position:fixed;inset:0;z-index:100;background:var(--ink);display:flex;flex-direction:column;align-items:center;padding:0 clamp(16px,4vw,48px);
  transition:opacity .55s var(--ease),visibility .55s;overflow:hidden}
.skeleton.gone{opacity:0;visibility:hidden}
.sk{border-radius:10px;background:linear-gradient(100deg,var(--ink-3) 30%,var(--ink-4) 45%,var(--ink-3) 60%);background-size:300% 100%;animation:skShimmer 1.3s linear infinite}
.sk-nav{width:100%;display:flex;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--line)}
.sk-nav .links{display:flex;gap:18px}
.sk-hero{width:min(900px,100%);display:flex;flex-direction:column;align-items:center;gap:16px;margin-top:clamp(70px,12vh,140px)}
.sk-win{width:min(1100px,100%);aspect-ratio:16/8.6;border-radius:22px;margin-top:56px}
.sk-dots{display:flex;gap:8px;margin-top:18px}
.sk-dots i{width:8px;height:8px;border-radius:50%;background:var(--steel);opacity:.35;animation:skDot 1.1s ease-in-out infinite}
.sk-dots i:nth-child(2){animation-delay:.15s}.sk-dots i:nth-child(3){animation-delay:.3s}
@keyframes skShimmer{from{background-position:100% 0}to{background-position:-100% 0}}
@keyframes skDot{50%{opacity:1;transform:translateY(-4px)}}

/* ---------- images and embeds still loading ---------- */
img.ld{background:linear-gradient(100deg,var(--ink-3) 30%,var(--ink-4) 45%,var(--ink-3) 60%);background-size:300% 100%;animation:skShimmer 1.3s linear infinite;opacity:.75}
img.in-loaded{animation:imgIn .6s var(--ease)}
@keyframes imgIn{from{opacity:0;transform:scale(1.015)}to{opacity:1;transform:none}}
.embed-wrap{position:relative}
.embed-wrap.ld::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(100deg,var(--ink-3) 30%,var(--ink-4) 45%,var(--ink-3) 60%);background-size:300% 100%;animation:skShimmer 1.3s linear infinite}

@media (prefers-reduced-motion:reduce){.sk,img.ld,.embed-wrap.ld::after,.sk-dots i{animation:none}img.in-loaded{animation:none}}

/* ---------- template gallery: animated cards (site-templates.py) ---------- */
.tpl-anim{position:relative;background:radial-gradient(120% 90% at 50% 0%,color-mix(in srgb,var(--tbg) 92%,#fff),var(--tbg));overflow:hidden}
.tpl-anim img{position:absolute;display:block;object-fit:cover;object-position:top;box-shadow:0 18px 36px -18px rgba(0,0,0,.55);transition:transform .7s var(--ease)}
.tpl-anim .ph{width:26%;aspect-ratio:390/844;height:auto;border-radius:12px;top:12%;animation:tplFloat 6s ease-in-out infinite}
.tpl-anim.app .p1{left:10%;animation-delay:-1s}
.tpl-anim.app .p2{left:37%;top:7%;width:28%;z-index:2;animation-delay:-3s}
.tpl-anim.app .p3{left:66%;animation-delay:-5s}
.tpl-anim.app.n1 .p1{left:37%;top:7%;width:28%}
.tpl-anim.app.n2 .p1{left:22%}.tpl-anim.app.n2 .p2{left:52%}
.tpl-anim.web .dk{left:7%;top:10%;width:76%;height:auto;aspect-ratio:16/10;border-radius:10px;animation:tplFloat 7s ease-in-out infinite}
.tpl-anim.web .p1{left:72%;top:26%;width:19%;z-index:2;animation-delay:-2.5s}
.tpl-anim .th{inset:0;width:100%;height:100%;box-shadow:none}
.tpl-card:hover .tpl-anim.app .p1{transform:translateX(-10%) rotate(-3deg)}
.tpl-card:hover .tpl-anim.app .p3{transform:translateX(10%) rotate(3deg)}
.tpl-card:hover .tpl-anim.app .p2, .tpl-card:hover .tpl-anim.web .dk{transform:translateY(-4%) scale(1.03)}
.tpl-card:hover .tpl-anim img{animation-play-state:paused}
.tpl-card:hover .tpl-img img{scale:1}
@keyframes tplFloat{50%{translate:0 -4%}}
.tpl-badge{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;font:600 10px/1.5 var(--mono);letter-spacing:1px;text-transform:uppercase;font-style:normal;background:rgba(97,218,251,.12);color:#61dafb;vertical-align:2px}
html[data-theme="light"] .tpl-badge{background:#e7f6fb;color:#0b6f8a}

/* Showcase: Xecil Lux, every page. */
.lux-show{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,2fr);gap:clamp(24px,4vw,56px);align-items:center;margin:8px 0 44px;padding:clamp(24px,3vw,40px);
  border:1px solid var(--line);border-radius:28px;background:radial-gradient(90% 120% at 100% 0%,rgba(226,70,59,.10),transparent 60%),rgba(255,255,255,.015);overflow:hidden}
html[data-theme="light"] .lux-show{background:radial-gradient(90% 120% at 100% 0%,rgba(226,70,59,.08),transparent 60%),#fff}
.lux-copy h3{color:var(--white);font-size:clamp(24px,2.6vw,34px);font-weight:500;letter-spacing:-.02em;line-height:1.15;margin:10px 0 12px}
.lux-copy p{color:var(--steel);font-size:15px}
.lux-stage{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(10px,1.4vw,18px);perspective:1200px}
.lux-tile{display:flex;flex-direction:column;gap:10px;align-items:center;opacity:0;transform:translateY(40px) rotateX(10deg);transition:opacity .8s var(--ease),transform .9s var(--ease);transition-delay:calc(var(--i) * .14s)}
.lux-show.in .lux-tile, .lux-show.show .lux-tile, .lux-show.on .lux-tile, .lux-show.vis .lux-tile{opacity:1;transform:none}
.lux-tile img{width:100%;border-radius:clamp(14px,1.6vw,22px);box-shadow:0 30px 60px -28px rgba(0,0,0,.7);animation:tplFloat 7s ease-in-out infinite;animation-delay:calc(var(--i) * -1.6s)}
.lux-tile figcaption{font:400 11px var(--mono);letter-spacing:1.5px;text-transform:uppercase;color:var(--steel)}
@media (max-width:900px){.lux-show{grid-template-columns:1fr}.lux-stage{grid-template-columns:repeat(4,minmax(120px,1fr));overflow-x:auto;padding-bottom:6px}}
@media (prefers-reduced-motion:reduce){.tpl-anim img,.lux-tile img{animation:none}.lux-tile{opacity:1;transform:none}}

/* ---------- Make it yours (real Customize screenshots, cross-fading) ---------- */
.cz{display:grid;gap:18px}
.cz-win{border:1px solid var(--line-2);border-radius:22px;overflow:hidden;background:var(--ink-2);box-shadow:0 60px 120px -50px rgba(0,0,0,.8)}
.cz-bar{display:flex;align-items:center;gap:7px;padding:12px 16px;border-bottom:1px solid var(--line)}
.cz-bar i{width:10px;height:10px;border-radius:50%;background:var(--line-3)}
.cz-bar span{margin:0 auto;font:400 12px var(--mono);letter-spacing:1px;color:var(--steel)}
.cz-shots{position:relative;aspect-ratio:16/10}
.cz-shots img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.015);transition:opacity .9s var(--ease),transform 1.2s var(--ease)}
.cz-shots img.on{opacity:1;transform:none}
.cz-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.cz-chips button{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border:1px solid var(--line-2);border-radius:999px;color:var(--silver);font-size:13px;transition:border-color .2s,color .2s,background .2s}
.cz-chips button i{width:12px;height:12px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(127,127,127,.4)}
.cz-chips button i + i{margin-left:-9px}
.cz-chips button.on{border-color:var(--white);color:var(--white);background:rgba(127,127,127,.08)}
/* Schools and companies */
.orgs{display:flex;align-items:center;gap:18px;max-width:900px;margin:28px auto 0;padding:20px 24px;border:1px dashed var(--line-3);border-radius:20px}
.orgs-ico{flex:none;width:46px;height:46px;border-radius:13px;display:grid;place-items:center;border:1px solid var(--line-2);color:var(--white)}
.orgs-ico svg{width:22px;height:22px}
.orgs > div{flex:1;display:grid;gap:2px;font-size:14px;color:var(--steel)}
.orgs b{color:var(--white);font-weight:500;font-size:16px}
.orgs a:not(.btn){color:var(--white);text-decoration:underline;text-underline-offset:3px}
@media (max-width:700px){.orgs{flex-direction:column;align-items:flex-start}}

/* Lux showcase: keep the real screen shape at any width (the img's height attribute must not win),
   cap the phone size, and let the row scroll sideways on small screens. */
.lux-tile img{height:auto;aspect-ratio:390/844;object-fit:cover;object-position:top}
.lux-stage{grid-template-columns:repeat(4,minmax(0,200px));justify-content:center;align-items:start}
@media (max-width:900px){.lux-stage{grid-template-columns:repeat(4,minmax(150px,1fr));justify-content:start;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.lux-tile{scroll-snap-align:start}}
@media (max-width:560px){.lux-stage{grid-template-columns:repeat(4,62vw)}}

/* ---------- background: the Xecil UI canvas dot grid (both modes) ---------- */
.bg .grid{display:none}
.bg::before{content:"";position:absolute;inset:0;background-image:radial-gradient(var(--dot-c) 1px,transparent 1.2px);background-size:22px 22px;
  -webkit-mask-image:radial-gradient(120% 90% at 50% 20%,#000 30%,rgba(0,0,0,.35) 75%,transparent 100%);mask-image:radial-gradient(120% 90% at 50% 20%,#000 30%,rgba(0,0,0,.35) 75%,transparent 100%)}
:root{--dot-c:rgba(255,255,255,.11)}
html[data-theme="light"]{--dot-c:rgba(14,15,17,.16)}
