/* Template pages (scripts/template_pages.py): /templates/ and /templates/<id>/ */
@import url("tpl-view.css");   /* the template viewer */
:root{--ink:#17140F;--ink2:#4D483F;--gray:#8C867B;--line:#E6DFD3;--paper:#FBF8F3;--paper2:#F3EEE6;--pop:#FFC400;
  --disp:"Bricolage Grotesque",system-ui,sans-serif;--body:"Hanken Grotesk",system-ui,sans-serif}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- one template, full size ---------- */
body.tp1{margin:0;background:var(--paper2);color:var(--ink);font-family:var(--body);-webkit-font-smoothing:antialiased}
.tp1 a{color:inherit;text-decoration:none}
.tpb{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;height:60px;padding:0 12px 0 16px;background:rgba(251,248,243,.94);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1.5px solid var(--line)}
/* the logo, as in switch.css (the full-size page loads only this file) */
.tpb .logo{font-family:var(--disp);font-weight:800;font-size:25px;letter-spacing:-.05em;display:inline-flex;align-items:center;gap:.3em;line-height:1}
.tpb .logo .ic{width:1.05em;height:1.05em;flex:none;display:block}
.tpb .logo .wm{display:inline-flex;align-items:baseline}
.tpb .logo .oo{display:inline-flex;align-items:flex-end;gap:.035em;margin-left:.03em;height:.53em}
.tpb .logo .oo i{display:block;width:.53em;height:.53em;border-radius:50%;box-shadow:inset 0 0 0 .118em currentColor}
.tpb-all{font-weight:700;font-size:14px;color:var(--ink2)!important;padding:6px 10px;border-radius:10px}
.tpb-all:hover{background:#fff}
.tpb-t{flex:1;min-width:0;display:flex;align-items:baseline;gap:10px;justify-content:center}
.tpb-t b{font-family:var(--disp);font-size:17px;letter-spacing:-.02em;white-space:nowrap}
.tpb-t span{font-size:13.5px;color:var(--gray);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpb-go{display:inline-flex;align-items:center;height:42px;padding:0 18px;border-radius:13px;background:var(--ink);color:#fff!important;font-weight:800;font-size:14.5px;
  box-shadow:0 3px 0 rgba(23,20,15,.25);white-space:nowrap;transition:transform .15s}
.tpb-go:hover{transform:translateY(-1px)}
/* the page itself: a real page is phone-first, so on a wide screen it sits in a phone-width column */
.tp-live{--kz:1;display:flex;flex-direction:column;max-width:480px;min-height:calc(100dvh - 60px);margin:0 auto;background:#fff;box-shadow:0 0 0 1.5px var(--line),0 30px 60px -30px rgba(23,20,15,.35)}
.tp-ns{padding:40px 24px;text-align:center}
.tp-info{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:48px;max-width:980px;margin:0 auto;padding:64px 24px 80px}
.tp-k{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--gray);margin:0 0 8px}
.tp-info h2{font-family:var(--disp);font-size:40px;letter-spacing:-.04em;line-height:1;margin:0 0 14px}
.tp-info p{font-size:16px;line-height:1.55;color:var(--ink2);margin:0 0 12px}
.tp-for b{color:var(--ink)}
.tp-info .btn{display:inline-flex;align-items:center;height:50px;padding:0 24px;margin-top:10px;border-radius:15px;background:var(--ink);color:#fff;font-weight:800;box-shadow:0 4px 0 rgba(23,20,15,.25)}
.tp-info ul{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}
.tp-info li a{display:block;padding:12px 14px;border-radius:14px;background:#fff;border:1.5px solid var(--line);transition:border-color .2s}
.tp-info li a:hover{border-color:var(--ink)}
.tp-info li b{display:block;font-size:15px}
.tp-info li span{font-size:13.5px;color:var(--gray);font-weight:600}
.tp-allk{font-weight:800;font-size:14px;text-decoration:underline!important;text-underline-offset:3px}
@media (max-width:720px){
  .tpb{gap:8px;padding:0 10px}
  .tpb .logo .wm,.tpb-all,.tpb-t span{display:none}
  .tpb-t{justify-content:flex-start}
  .tpb-go{height:38px;padding:0 13px;font-size:13.5px}
  .tp-live{max-width:none;box-shadow:none}
  .tp-info{grid-template-columns:1fr;gap:36px;padding:44px 20px 64px}
  .tp-info h2{font-size:32px}
}

/* ---------- every template ---------- */
.tgi{padding:118px 0 40px}
.tgi h1{font-family:var(--disp);font-size:clamp(40px,5.4vw,60px);letter-spacing:-.05em;line-height:.95;margin:0}
.tgi h1 span{background:linear-gradient(transparent 62%,var(--pop) 62% 88%,transparent 88%)}
.tgi .lede{font-size:19px;color:var(--ink2);max-width:560px;margin:18px 0 26px}
.tg-j{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
/* desktop: a compact intro so the first templates show on the first screen */
@media (min-width:861px){.tgi{padding-top:104px}.tgi .lede{font-size:17px;max-width:none;margin:10px 0 18px}.tgi .tg:first-of-type{padding-top:22px}.tgi .tg h2{margin-bottom:12px}}
.tg-j a{padding:8px 14px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);font-weight:700;font-size:14px}
.tg-j a:hover{box-shadow:inset 0 0 0 1.5px var(--ink)}
.tg{padding-top:44px;scroll-margin-top:100px}
.tg h2{font-family:var(--disp);font-size:30px;letter-spacing:-.03em;margin:0 0 16px}
.tg-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.tg-c{display:block;color:inherit;text-decoration:none}
.tg-ph{aspect-ratio:9/16;max-height:520px;border-radius:26px;overflow:hidden;background:#fff;box-shadow:0 0 0 1.5px var(--line);transition:transform .25s,box-shadow .25s}
.tg-c:hover .tg-ph{transform:translateY(-4px);box-shadow:0 0 0 1.5px var(--ink),0 18px 30px -18px rgba(23,20,15,.4)}
.tg-sc{--kz:.62;height:100%;overflow:hidden;pointer-events:none}
.tg-c b{display:block;margin-top:12px;font-size:16px}
.tg-c span{font-size:14px;color:var(--gray);font-weight:600}
@media (max-width:860px){.tg-g{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tg-sc{--kz:.5}}
@media (max-width:520px){.tgi{padding-top:110px}.tg-g{gap:12px}.tg-sc{--kz:.42}.tg-ph{border-radius:18px}}
/* every template card (gallery and use-case pages) is a phone, real phone proportions (about 9:19); the gallery has five to a row */
.tgi .tg-g{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.tg-c{text-align:center}
.tg-c .tg-ph{position:relative;width:min(100%,190px);max-height:none;aspect-ratio:9/19.2;margin:0 auto;overflow:visible;background:#0b0b0c;padding:6px;border-radius:34px;
  /* a thin metal rim round a black bezel */
  box-shadow:inset 0 0 0 1px #000,inset 0 0 0 2.5px #5a5a5e,inset 0 0 0 3.5px #1a1a1c,0 0 0 1px #2a2a2d,0 16px 30px -18px rgba(23,20,15,.5)}
/* the island, with its camera */
.tg-c .tg-ph::after{content:"";position:absolute;top:13px;left:50%;width:32%;height:16px;transform:translateX(-50%);border-radius:999px;z-index:2;
  background:radial-gradient(circle at calc(100% - 8px) 50%,#2b3350 0 1.6px,#14161c 2.4px 3.4px,transparent 3.6px),#000}
/* side keys: action button and volume on the left, power on the right */
.tg-c .tg-ph::before{content:"";position:absolute;left:-2.5px;right:-2.5px;top:18%;height:30%;pointer-events:none;background:
  linear-gradient(90deg,#4a4a4e,#1d1d20) left 0 top 0/3px 11% no-repeat,
  linear-gradient(90deg,#4a4a4e,#1d1d20) left 0 top 40%/3px 27% no-repeat,
  linear-gradient(90deg,#4a4a4e,#1d1d20) left 0 top 100%/3px 27% no-repeat,
  linear-gradient(270deg,#4a4a4e,#1d1d20) right 0 top 35%/3px 40% no-repeat}
.tg-c .tg-sc{--kz:.46;border-radius:28px;background:#fff}
.tg-c:hover .tg-ph{box-shadow:inset 0 0 0 1px #000,inset 0 0 0 2.5px #5a5a5e,inset 0 0 0 3.5px #1a1a1c,0 0 0 1px #2a2a2d,0 24px 36px -18px rgba(23,20,15,.6)}
.tg-c b{font-size:15px}.tg-c span{font-size:13px}
@media (max-width:1100px){.tgi .tg-g{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:860px){.tgi .tg-g{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.tg-c .tg-ph{padding:5px;border-radius:28px}.tg-c .tg-sc{--kz:.42;border-radius:23px}.tg-c .tg-ph::after{top:10px;height:13px}}

/* ---------- /templates/ hub: breadcrumb, filter, page-type heads (template_pages.py build_index, js/templates-hub.js) ---------- */
.tgh{padding-top:104px}
.tgh .bc{margin-bottom:14px}
.tgh-f{position:sticky;top:84px;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 -12px;padding:10px 12px;border-radius:20px;background:rgba(251,248,243,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.tgh-c{margin:0}
.tgh-c button{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:0;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);font:700 14px var(--body);color:var(--ink);cursor:pointer;transition:box-shadow .2s,background .2s}
.tgh-c button small{font-size:12px;color:var(--gray);font-weight:700}
.tgh-c button:hover{box-shadow:inset 0 0 0 1.5px var(--ink)}
.tgh-c button.on{background:var(--ink);color:#fff;box-shadow:none}
.tgh-c button.on small{color:rgba(255,255,255,.65)}
.tgh-s{flex:1 1 260px;max-width:360px;display:flex;align-items:center;gap:8px;height:40px;padding:0 14px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--ink)}
.tgh-s svg{width:17px;height:17px;flex:none;color:var(--gray)}
.tgh-s input{flex:1;min-width:0;border:0;outline:0;background:none;font:600 14.5px var(--body);color:var(--ink)}
.tgh-n{flex-basis:100%;margin:0;font-size:13.5px;font-weight:700;color:var(--ink2)}
.tgh-n:empty{display:none}
.tgh-gh{margin-bottom:18px}
.tgh-gh h2{display:flex;align-items:baseline;gap:10px;margin:0}
.tgh-gh h2 small{font:700 14px var(--body);color:var(--gray)}
.tgh-gh p{margin:6px 0 0;font-size:15.5px;color:var(--ink2)}
.tgh-gh .tl{margin-left:6px;font-weight:700;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.tgh .tg[hidden],.tgh .tg-c[hidden]{display:none}
.tgh-none{margin:40px 0;padding:18px 20px;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);font-size:15.5px;color:var(--ink2)}
@media (max-width:720px){
  .tgh{padding-top:96px}
  .tgh-f{top:72px;margin:0 -16px;padding:10px 16px;border-radius:0}
  .tgh-c{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-16px;padding-right:16px}
  .tgh-c::-webkit-scrollbar{display:none}
  .tgh-c button{flex:none}
  .tgh-s{max-width:none}
}

/* ---------- "A template that becomes yours": the step demo's scenes (compare_pages.stage(), 4.8s each) ---------- */
.tgx-pick{position:relative;display:flex;gap:14px;align-items:center}
.tgx-m{display:grid;justify-items:center;align-content:start;gap:6px;width:96px;height:180px;padding:18px 10px;border-radius:20px;box-shadow:0 0 0 4px #2A261F;opacity:0}
.tgx-m.a{background:linear-gradient(160deg,#FDE3CF,#E9D8F5)}
.tgx-m.b{background:linear-gradient(170deg,#2A2370,#151233)}
.tgx-m.c{background:#B98A5A}
.tgx-m .tgx-av{width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.75)}
.tgx-m .tgx-ln{width:60%;height:5px;border-radius:3px;background:rgba(255,255,255,.6)}
.tgx-m .tgx-bt{width:100%;height:16px;border-radius:6px;background:rgba(255,255,255,.85)}
.tgx-m.b .tgx-bt{background:rgba(140,120,255,.45)}
.cmp-sp-s.on .tgx-m{animation:cmp-in .45s var(--ease) calc(var(--k)*.12s) both}
.cmp-sp-s.on .tgx-m.b{animation:cmp-in .45s var(--ease) .12s both,tgx-pick 4.8s both}
@keyframes tgx-pick{0%,38%{transform:none;box-shadow:0 0 0 4px #2A261F}48%,100%{transform:scale(1.12);box-shadow:0 0 0 4px var(--pop),0 20px 40px -10px rgba(0,0,0,.6)}}
.tgx-cur{position:absolute;left:0;top:0;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.9);box-shadow:0 0 0 6px rgba(255,255,255,.25);opacity:0}
.cmp-sp-s.on .tgx-cur{animation:tgx-cur 4.8s var(--ease) both}
@keyframes tgx-cur{0%,10%{opacity:0;transform:translate(260px,200px)}20%{opacity:1;transform:translate(260px,200px)}38%{opacity:1;transform:translate(130px,95px)}42%{transform:translate(130px,95px) scale(.75)}46%,100%{opacity:0;transform:translate(130px,95px)}}
.tgx-use{position:absolute;left:50%;bottom:-46px;transform:translateX(-50%);padding:8px 14px;border-radius:999px;background:var(--pop);color:var(--ink);font-weight:800;font-size:13px;white-space:nowrap;opacity:0}
.cmp-sp-s.on .tgx-use{animation:cmp-in .4s var(--ease) 2.4s both}
/* the phone of scenes 2 and 3 */
.tgx-fill,.tgx-look{position:relative;display:grid;justify-items:center;gap:14px}
.tgx-ph{display:grid;justify-items:center;align-content:start;gap:8px;width:200px;height:330px;padding:28px 14px;border-radius:32px;background:#B98A5A;color:#2B1D12;box-shadow:0 0 0 6px #2A261F}
.tgx-ph .tgx-av{width:56px;height:56px;border-radius:14px;background:url(/assets/t-av-maya.jpg) center/cover,#E9D8C3;transform:rotate(-3deg)}
.tgx-nm{position:relative;height:20px;font-weight:800;font-size:15px}
.tgx-nm s,.tgx-nm b{display:block;text-decoration:none;white-space:nowrap}
.tgx-nm b{position:absolute;left:50%;top:0;transform:translateX(-50%);clip-path:inset(0 100% 0 0)}
.tgx-bio{font-size:10.5px;text-align:center;opacity:.8;max-width:22ch}
.tgx-b{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:32px;border-radius:9px;background:#FFF8EC;font-size:11.5px;font-weight:800;box-shadow:0 2px 0 rgba(43,29,18,.25)}
.tgx-vid i{width:14px;height:10px;border-radius:3px;background:#FF0000}
.tgx-fill .tgx-vid{opacity:0}
.cmp-sp-s.on .tgx-fill .tgx-nm s{animation:tgx-out .3s 1s both}
.cmp-sp-s.on .tgx-fill .tgx-nm b{animation:tgx-type .9s steps(10) 1.1s both}
@keyframes tgx-out{to{opacity:0}}
@keyframes tgx-type{to{clip-path:inset(0 0 0 0)}}
.tgx-tap{position:absolute;left:50%;top:100px;width:34px;height:34px;margin-left:-17px;border-radius:50%;box-shadow:0 0 0 3px var(--pop);opacity:0}
.cmp-sp-s.on .tgx-tap{animation:tgx-tap .8s .3s both}
@keyframes tgx-tap{0%{opacity:0;transform:scale(.4)}40%{opacity:1}100%{opacity:0;transform:scale(1.6)}}
.tgx-paste{position:absolute;right:-70px;top:230px;padding:7px 12px;border-radius:10px;background:#fff;color:var(--ink);font-size:12px;font-weight:700;box-shadow:0 10px 24px -8px rgba(0,0,0,.5);opacity:0}
.cmp-sp-s.on .tgx-paste{animation:tgx-paste 1.4s var(--ease) 2.3s both}
@keyframes tgx-paste{0%{opacity:0;transform:translateX(30px)}30%{opacity:1;transform:none}75%{opacity:1;transform:translate(-110px,40px) scale(.9)}100%{opacity:0;transform:translate(-110px,40px) scale(.6)}}
.cmp-sp-s.on .tgx-fill .tgx-vid{animation:cmp-in .45s var(--ease) 3.4s both}
/* scene 3: the look changes, the words don't */
.tgx-chips{display:flex;gap:6px}
.tgx-chips i{padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.12);color:rgba(255,255,255,.7);font-style:normal;font-size:11.5px;font-weight:700}
.cmp-sp-s.on .tgx-chips i:nth-child(1){animation:tgx-c1 4.8s both}
.cmp-sp-s.on .tgx-chips i:nth-child(2){animation:tgx-c2 4.8s both}
.cmp-sp-s.on .tgx-chips i:nth-child(3){animation:tgx-c3 4.8s both}
@keyframes tgx-c1{0%,30%{background:var(--pop);color:var(--ink)}34%,100%{background:rgba(255,255,255,.12);color:rgba(255,255,255,.7)}}
@keyframes tgx-c2{0%,30%,66%,100%{background:rgba(255,255,255,.12);color:rgba(255,255,255,.7)}34%,62%{background:var(--pop);color:var(--ink)}}
@keyframes tgx-c3{0%,62%{background:rgba(255,255,255,.12);color:rgba(255,255,255,.7)}66%,100%{background:var(--pop);color:var(--ink)}}
.cmp-sp-s.on .tgx-look .tgx-ph{animation:tgx-ph 4.8s both}
.cmp-sp-s.on .tgx-look .tgx-b{animation:tgx-btn 4.8s both}
@keyframes tgx-ph{0%,30%{background:#B98A5A;color:#2B1D12}34%,62%{background:#1E1A4D;color:#F1EEFF}66%,100%{background:#FBE4D6;color:#5A3A2E}}
@keyframes tgx-btn{0%,30%{background:#FFF8EC;border-radius:9px;color:#2B1D12}34%,62%{background:#3A3290;border-radius:12px;color:#fff}66%,100%{background:#fff;border-radius:999px;color:#5A3A2E}}
.tgx-keep{position:absolute;bottom:22px;left:50%;margin-left:-62px;width:124px;justify-content:center;display:inline-flex;box-shadow:0 8px 20px -6px rgba(0,0,0,.5);align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:#1E8A4C;color:#fff;font-size:12.5px;font-weight:800;opacity:0}
.cmp-sp-s.on .tgx-keep{animation:cmp-in .4s var(--ease) 1.8s both}
.cmp-sp.still .tgx-nm s,.tgx-look .tgx-nm s{display:none}.cmp-sp.still .tgx-nm b,.tgx-look .tgx-nm b{position:static;transform:none;clip-path:none}
@media (max-width:720px){
  .tgx-m{width:78px;height:150px;padding:14px 8px}
  .tgx-paste{right:-40px}
  .tgx-ph{width:170px;height:250px;padding:18px 12px;gap:6px}
  .tgx-ph .tgx-av{width:44px;height:44px}
  .tgx-look{gap:10px}
  .tgx-b{height:28px}
}
