/* Gallery-only presentation. Profile artwork and editor styles stay independent. */
body{background:#faf9f6}
.wrap{max-width:1440px;width:calc(100% - 96px)}
.site-nav{background:#faf9f6;border-bottom:1px solid #21172e0c}
.hero{padding:72px 0 40px;background:none;overflow:visible}
.hero-grid{display:block;min-height:0}
.hero-copy{max-width:820px;margin:0 auto;text-align:center}
.hero h1{font-size:clamp(44px,5.8vw,80px);line-height:1.03;letter-spacing:-.055em;margin:0;color:#241333}
.hero h1 br{display:none}
.hero h1 span{color:inherit;background:none;-webkit-text-fill-color:currentColor}
.hero-description{font-size:17px;line-height:1.65;max-width:640px;margin:24px auto 0;color:#69616d}
.hero-actions,.hero-stats,.hero-visual{display:none}
.create-disclosure{margin:16px 0 0;font-size:12px;color:#716978}
.create-disclosure a{color:inherit;text-underline-offset:3px}
.collection{padding-top:0;background:transparent}
.filter-bar{position:relative;top:auto;background:transparent;border:0;box-shadow:none;padding:12px 0 0;z-index:12}
.filter-inner{display:flex;flex-wrap:wrap;gap:12px;padding:20px 0;border-top:1px solid #25143315;border-bottom:1px solid #25143315}
.category-list{display:flex;flex-wrap:wrap;gap:7px;flex:1;overflow:visible}
.category-chip{min-height:42px;padding:11px 15px;border:1px solid transparent;border-radius:24px;background:transparent;font-size:13px;white-space:nowrap}
.category-chip:hover{background:#eee9f1}
.category-chip.active,.category-chip[aria-pressed=true]{background:#29153c;color:#fff;border-color:#29153c}
.category-chip>svg{display:none}
.category-more{align-self:center}
.search-box{min-width:220px;max-width:280px;margin-left:auto;background:#fff;border:1px solid #ded9e1;border-radius:24px;min-height:44px}
.collection-heading{margin:30px 0 24px;align-items:center}
.heading-left h2{font-size:20px;letter-spacing:-.5px}
.result-count{font-size:12px;color:#79717f}
.template-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:38px 26px}
.template-card{animation:none}
.card-stage{padding:10px;border:0;border-radius:30px;background:#eeeae6;box-shadow:none;transition:transform .2s ease,box-shadow .2s ease}
.template-card:nth-child(4n+2) .card-stage{background:#eae5ee}
.template-card:nth-child(4n+3) .card-stage{background:#e4eae7}
.template-card:nth-child(4n+4) .card-stage{background:#ede8df}
.card-stage:hover,.card-stage:focus-within{transform:translateY(-4px);box-shadow:0 16px 36px #29153c12}
.card-preview{border-radius:22px;aspect-ratio:390/760}
.card-save{width:34px;height:34px;right:19px;top:19px;background:#fffefb}
.card-meta{padding:15px 4px 0}
.card-name{font-size:15px;font-weight:600;line-height:1.45;letter-spacing:-.2px}
.preview-label{padding:10px 18px;font-size:12px}
.more-row{padding:44px 0}
.closing{margin:12px 0 0;padding:38px 42px;background:#eae1f1;color:#29153c;border-radius:24px;box-shadow:none}
.closing:before,.closing:after{display:none}
.closing h2{font-size:28px;letter-spacing:-1px}
.closing p{color:#65586e;font-size:15px}
.closing .btn{background:#29153c;color:white}
.footer{padding-top:30px;padding-bottom:30px}
@media(min-width:1600px){.template-grid{gap:40px 32px}}
@media(max-width:1100px){.wrap{width:calc(100% - 56px)}.template-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 20px}.search-box{max-width:none;flex:1}.hero{padding-top:52px}}
@media(max-width:700px){.wrap{width:calc(100% - 32px)}.hero{padding:40px 0 26px}.hero h1{font-size:46px}.hero-description{font-size:15px;margin-top:18px}.filter-inner{gap:10px}.category-list{flex-basis:calc(100% - 72px);flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.category-chip{font-size:12px;min-height:40px;padding:10px 13px}.search-box{flex-basis:100%;max-width:none;margin:0}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 14px}.card-stage{padding:6px;border-radius:21px}.card-preview{border-radius:16px}.card-save{width:28px;height:28px;right:12px;top:12px}.card-name{font-size:13px}.card-meta{padding:11px 2px 0}.collection-heading{margin:24px 0 20px}.heading-left h2{font-size:18px}.closing{padding:28px;display:block}.closing-actions{margin-top:22px}.closing h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){.card-stage{transition:none}.card-stage:hover{transform:none}}
/* Browse-by-category sidebar layout: categories on the left, live previews on the right. */
.collection-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:44px;align-items:start;padding-top:40px}
.category-side{position:sticky;top:104px;max-height:calc(100vh - 124px);overflow:auto;padding:2px 4px 12px 2px;scrollbar-width:thin}
.side-label{margin:0 0 14px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#6b6775}
.category-side .category-list{display:flex;flex-direction:column;gap:10px}
.category-side .category-chip,.category-side .category-chip:nth-of-type(n){display:flex;justify-content:flex-start;gap:12px;min-height:52px;padding:0 20px;border:1px solid #e5e1ec;border-radius:999px;background:#fff;color:#241530;font-size:15px;font-weight:500;text-decoration:none;box-shadow:none;transition:background .2s,border-color .2s,color .2s,transform .35s cubic-bezier(.34,1.45,.64,1)}
.category-side .category-chip svg{width:17px;height:17px;opacity:.55}
.category-side .category-chip:hover{border-color:#241530;background:#fff;color:#241530}
.category-side .category-chip:active{transform:scale(.97)}
.category-side .category-chip.active{background:#241530;border-color:#241530;color:#fff}
.category-side .category-chip.active svg{opacity:.9}
.category-side .category-chip:focus-visible{outline:3px solid #7643e9;outline-offset:3px}
.collection-search .search-box{width:100%;height:52px;border-radius:999px;padding:0 20px;background:#fff;font-size:15px}
.collection-main .collection-heading{padding-top:22px}
.collection-main .template-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1300px){.collection-main .template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.collection-layout{grid-template-columns:220px minmax(0,1fr);gap:28px}.collection-main .template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .collection-layout{grid-template-columns:minmax(0,1fr);gap:18px;padding-top:24px}
 .category-side{position:static;max-height:none;overflow:visible;padding:0}
 .side-label{margin-bottom:10px}
 .category-side .category-list{flex-direction:row;overflow-x:auto;gap:8px;margin:0 -22px;padding:2px 22px 6px;scroll-snap-type:x proximity;scrollbar-width:none}
 .category-side .category-list::-webkit-scrollbar{display:none}
 .category-side .category-chip,.category-side .category-chip:nth-of-type(n){flex:none;min-height:44px;padding:0 16px;font-size:14px;scroll-snap-align:start}
}
@media(prefers-reduced-motion:reduce){.category-side .category-chip{transition:none}}
.category-side{max-height:none;overflow:visible}
.category-side .category-list{align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;width:100%}
.category-side .category-chip,.category-side .category-chip:nth-of-type(n){width:100%}
.collection-search{display:flex}.collection-search .search-box{flex:1 1 auto;width:auto;max-width:none}
@media(max-width:760px){.category-side .category-list{align-items:center}.category-side .category-chip,.category-side .category-chip:nth-of-type(n){width:auto}}
/* Clean, centred hero: one title, one line of copy, one search. */
.hero.hero-clean{background:radial-gradient(120% 90% at 0% 0%,#d8f4f1 0%,transparent 55%),radial-gradient(110% 90% at 100% 0%,#efe2ff 0%,transparent 60%),linear-gradient(180deg,#f6f2ff 0%,#fbfaff 100%);border-radius:0 0 36px 36px}
.hero-clean .hero-center{display:flex;flex-direction:column;align-items:center;text-align:center;padding:72px 0 56px}
.hero-clean h1{margin:0;font-size:clamp(40px,5.2vw,68px);line-height:1.04;letter-spacing:-.035em;font-weight:750;background:linear-gradient(100deg,#3b1d8f 0%,#6a3df0 55%,#8a5cff 100%);-webkit-background-clip:text;background-clip:text;color:transparent;max-width:none}
.hero-clean .hero-description{margin:20px auto 0;max-width:680px;font-size:18px;line-height:1.6;color:#5d5670}
.hero-clean .hero-search{margin-top:34px;width:min(100%,840px);height:64px;padding:0 22px;gap:12px;border-radius:999px;border:1.5px solid #cdbcff;background:#fff;box-shadow:0 1px 0 #fff inset,0 18px 40px -22px #4a1fb455;color:#6b6775;font-size:16px;transition:border-color .2s,box-shadow .3s}
.hero-clean .hero-search:focus-within{border-color:#7643e9;box-shadow:0 0 0 5px #7643e91f,0 18px 40px -22px #4a1fb466}
.hero-clean .hero-search input{font-size:16px}
.hero-clean .hero-search svg{width:20px;height:20px}
.hero-quick{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:18px 0 0;padding:0;position:static;background:none;border:0;box-shadow:none}
.hero-quick a{display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border-radius:999px;border:1px solid #e3dcf2;background:#ffffffcc;color:#2b1d45;font-size:15px;font-weight:500;text-decoration:none;backdrop-filter:blur(12px);transition:border-color .2s,transform .35s cubic-bezier(.34,1.45,.64,1)}
.hero-quick a:hover{border-color:#7643e9}.hero-quick a:active{transform:scale(.96)}
/* Explore templates: category tiles with a tilted preview, like a shelf of apps. */
.explore{padding:44px 0 8px}
.explore h2{margin:0 0 20px;font-size:28px;letter-spacing:-.02em;font-weight:700;color:#1d1530}
.explore-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
.explore-tile{position:relative;display:flex;align-items:center;min-height:104px;padding:0 18px;border-radius:22px;overflow:hidden;text-decoration:none;color:#1d1530;background:linear-gradient(135deg,var(--tile-a),var(--tile-b));box-shadow:inset 0 1px 0 #ffffff90;transition:transform .45s cubic-bezier(.34,1.45,.64,1),box-shadow .3s}
.explore-tile span{position:relative;z-index:1;max-width:58%;font-size:16px;font-weight:600;line-height:1.25;letter-spacing:-.01em}
.explore-tile img{position:absolute;right:-6px;top:14px;width:84px;height:105px;object-fit:cover;border-radius:12px;rotate:8deg;box-shadow:0 10px 22px -10px #1d153066;border:3px solid #fff;transition:rotate .45s cubic-bezier(.34,1.45,.64,1),translate .45s cubic-bezier(.34,1.45,.64,1)}
.explore-tile:hover{transform:translateY(-3px);box-shadow:inset 0 1px 0 #ffffff90,0 14px 30px -18px #1d153055}
.explore-tile:hover img{rotate:3deg;translate:-4px -4px}
.explore-tile:active{transform:scale(.97)}
.explore-tile:focus-visible{outline:3px solid #7643e9;outline-offset:3px}
@media(max-width:1200px){.explore-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){
 .hero-clean .hero-center{padding:48px 0 36px}
 .hero-clean .hero-description{font-size:16px}
 .hero-clean .hero-search{height:56px;margin-top:26px}
 .explore{padding-top:32px}.explore h2{font-size:22px}
 .explore-grid{display:flex;overflow-x:auto;gap:12px;scroll-snap-type:x mandatory;padding-bottom:6px;scrollbar-width:none}
 .explore-grid::-webkit-scrollbar{display:none}
 .explore-tile{flex:0 0 min(72%,240px);scroll-snap-align:start;min-height:96px}
}
@media(prefers-reduced-motion:reduce){.explore-tile,.explore-tile img,.hero-quick a{transition:none}}
.hero-clean .hero-search{max-width:840px;min-width:0;margin-left:auto;margin-right:auto;flex:none}
@media(max-width:700px){.hero-clean .hero-search{margin:26px 0 0;width:100%}}
/* Infinite scroll: the button is only a fallback; a soft loader shows while the next batch renders. */
.infinite-scroll #loadMore{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.more-loader{display:none;gap:6px}.infinite-scroll .more-loader{display:inline-flex}
.more-loader i{width:8px;height:8px;border-radius:50%;background:#b9a6ea;animation:more-dot 1s ease-in-out infinite}
.more-loader i:nth-child(2){animation-delay:.15s}.more-loader i:nth-child(3){animation-delay:.3s}
@keyframes more-dot{0%,80%,100%{opacity:.25;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}
.more-row{padding:36px 0 64px}
@media(prefers-reduced-motion:reduce){.more-loader i{animation:none;opacity:.6}}
