/* June's Nunito/Figtree typography; SantaPet's existing cream/red identity. */
@font-face{font-family:Nunito;src:url('/assets/fonts/nunito-3.woff2') format('woff2');font-weight:800;font-display:swap}
@font-face{font-family:Nunito;src:url('/assets/fonts/nunito-2.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:Figtree;src:url('/assets/fonts/figtree-0.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Figtree;src:url('/assets/fonts/figtree-1.woff2') format('woff2');font-weight:600;font-display:swap}
.studio-home{--paper:#f6f1e8;--ink:#30251f;--muted:#71645a;--line:#ded5c9;--wine:#ac3438;font-family:Figtree,'Microsoft YaHei','PingFang SC',sans-serif}
.studio-home #app{overflow:clip}
.studio-home ::selection{background:#e9c6be;color:#30251f}
.studio-home h1,.studio-home h2,.studio-home h3,.studio-home .brand,.studio-home .primary{font-family:Nunito,'Microsoft YaHei','PingFang SC',sans-serif;font-weight:800}
.studio-home .brand{color:var(--wine);font-size:30px;display:flex;align-items:center;letter-spacing:-.035em}
.studio-home header{position:relative;z-index:4;border-bottom-color:transparent;max-width:1320px;padding:24px 30px}
.studio-home nav{font-size:15px;gap:26px}
.studio-home #language{border-radius:12px;min-height:40px;padding:5px 9px;background:#ffffff60}
.studio-home .notice{background:#eee7dc;color:#756256;font-size:11px}
.studio-home main{max-width:1320px;padding:0 30px 64px}
.studio-home .primary{border-radius:17px;padding:15px 24px;min-height:52px;font-size:16px;border:0;box-shadow:0 3px 6px #65322b1a;transition:background .2s,transform .2s}
.studio-home .primary:hover{background:#932a2f;transform:translateY(-2px)}
.studio-home .secondary,.studio-home .menu-toggle{border-radius:14px}
.studio-home .template{border-color:#ddd5cb;border-radius:22px;padding:7px 7px 16px;transition:transform .25s,border-color .25s}
.studio-home .template .crop{border-radius:16px}
.studio-home .template-copy h3{font-size:20px;letter-spacing:-.02em}
.home-hero.hero{position:relative;isolation:isolate;grid-template-columns:1fr 1fr;gap:36px;min-height:610px;padding:28px 30px 60px;align-items:center}
.home-copy{position:relative;z-index:2;padding-bottom:15px}
.home-hero.hero h1{font-size:clamp(42px,4.25vw,62px);line-height:1.08;letter-spacing:-.035em;font-weight:800;max-width:590px;text-wrap:balance}
.home-hero h1 span{color:var(--wine)}
.home-hero.hero .home-copy>p{font-size:18px;line-height:1.65;max-width:425px;margin:24px 0 28px;color:#71645a}
.home-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.home-watch{display:inline-flex;gap:8px;align-items:center;min-height:44px;background:none;border:0;padding:7px 0;color:#713c35;font-size:14px;text-decoration:underline;text-underline-offset:5px}
.home-hero.hero .home-copy>.home-reassurance{font-size:12px;margin:18px 0 0;max-width:460px;color:#76675a}
.home-depth{position:absolute;z-index:-1;top:-85px;bottom:0;left:calc((100% - 100vw)/2);width:100vw;pointer-events:none;overflow:hidden;mask-image:linear-gradient(to bottom,transparent,#000 15%,#000 78%,transparent)}
.depth-print{position:absolute;width:180px;padding:8px;background:#fffaf2;border-radius:17px;opacity:var(--alpha,.12);filter:saturate(.12) contrast(.65) blur(var(--blur,1px));transform:rotate(var(--tilt,8deg));box-shadow:0 16px 25px #705b4433;animation:portrait-drift var(--duration,18s) ease-in-out infinite alternate}
.depth-print .crop{aspect-ratio:4/5;border-radius:11px}
.depth-print .crop svg{display:block;width:100%;height:100%}
.depth-1{width:230px;left:-115px;top:100px;--tilt:-14deg;--blur:4px;--alpha:.14;--duration:21s}
.depth-2{width:130px;left:37%;top:15px;--tilt:12deg;--alpha:.10;--duration:23s}
.depth-3{width:135px;right:2%;top:5px;--tilt:13deg;--alpha:.11;--duration:26s}
.depth-4{width:250px;right:-150px;top:300px;--tilt:15deg;--blur:5px;--alpha:.14;--duration:20s}
.depth-5{width:160px;left:20%;bottom:0;--tilt:-12deg;--blur:2px;--alpha:.09;--duration:24s}
@keyframes portrait-drift{from{transform:translateY(0) rotate(var(--tilt))}to{transform:translateY(-12px) rotate(calc(var(--tilt) + 2deg))}}
.portrait-demo{position:relative;z-index:1;min-width:0;width:100%;max-width:550px;justify-self:end}
.portrait-stage{position:relative;height:440px;perspective:1000px}
.portrait-output{position:absolute;width:78%;left:13%;top:14px;padding:10px 10px 14px;background:#fffdf9;border-radius:25px;box-shadow:0 20px 40px -16px #67452a55;transform:rotate(2deg)}
.portrait-output>.crop{aspect-ratio:1.08;border-radius:18px;background:#e8dfd1}
.portrait-output>.crop svg{width:100%;height:100%;display:block}
.portrait-output figcaption{text-align:center;padding:11px 0 0;font-family:Nunito,'Microsoft YaHei',sans-serif;font-weight:700;font-size:17px;line-height:1.4}
.portrait-input{position:absolute;z-index:2;width:112px;background:#fffdf9;padding:6px 6px 7px;border-radius:15px;box-shadow:0 8px 22px -7px #59442b55;top:280px}
.portrait-input .crop{aspect-ratio:1;border-radius:10px}
.portrait-input .crop svg{width:100%;height:100%;display:block}
.portrait-input figcaption{font-size:12px;line-height:1.2;text-align:center;padding-top:7px;color:#4f4034}
.input-person{left:0;transform:rotate(-7deg)}
.input-pet{right:0;transform:rotate(7deg)}
.portrait-plus{position:absolute;left:50%;top:228px;transform:translateX(-50%);font:400 30px Figtree,sans-serif;color:var(--wine);opacity:0}
.demo-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:88%;margin:4px auto 0;color:#58493e;font-size:13px}
.demo-step{display:flex;align-items:center;gap:9px}
.demo-dot{width:6px;height:6px;background:var(--wine);border-radius:50%;flex:none}
.demo-toggle{width:44px;height:44px;border:1px solid #d9cfc2;background:#fffcf6;border-radius:50%;display:grid;place-items:center;color:var(--wine);flex:none}
.demo-toggle:hover{background:#eee3d8}
.demo-progress{height:2px;background:#e7ded2;max-width:88%;margin:2px auto 0;overflow:hidden}
.demo-progress span{height:100%;width:100%;display:block;background:#ac3438;transform:scaleX(1);transform-origin:left}
.home-hero.hero .demo-disclosure{font-size:10px;color:#796c61;text-align:center;margin:10px auto 0;max-width:none;line-height:1.4}
.studio-home .section-head{border-top:0;padding-top:35px;margin-bottom:20px}
.studio-home .section-head h2{font-size:32px}
.studio-home .tabs{border-color:#e1d8cd}
.studio-home .tabs button.active{background:#ac3438}
@media(min-width:1550px){.home-hero.hero{min-height:660px}.depth-1{left:1%}.depth-4{right:-4%}}
@media(max-width:1100px){.studio-home nav{gap:14px}.studio-home header{padding-inline:25px}.home-hero.hero{padding-inline:0;gap:24px}.home-hero.hero h1{font-size:46px}.home-actions{gap:10px}.portrait-stage{height:400px}.portrait-input{width:94px;top:250px}.portrait-plus{top:200px}.home-hero.hero .home-copy>p{font-size:17px}.depth-1{left:-150px}}
@media(max-width:850px) and (min-width:701px){.portrait-stage{height:360px}.portrait-input{top:210px;width:84px}.portrait-plus{top:170px}.home-hero.hero h1{font-size:39px}.home-hero.hero{gap:18px}.portrait-output figcaption{font-size:14px}}
@media(max-width:700px){
 .studio-home header{padding:17px 20px}.studio-home .brand{font-size:26px}.studio-home main{padding:0 20px 45px}.studio-home header nav{z-index:10;background:#f6f1e8}.studio-home .menu-toggle{min-height:44px}
 .home-hero.hero{grid-template-columns:1fr;gap:26px;padding:36px 0 32px;min-height:0}.home-copy{padding:0;text-align:center}.home-hero.hero h1{font-size:40px;line-height:1.12;max-width:430px;margin:auto;letter-spacing:-.035em}
 .home-hero.hero .home-copy>p{font-size:16px;max-width:340px;margin:20px auto 22px;line-height:1.55}.home-actions{justify-content:center;gap:10px 20px}.studio-home .primary{font-size:15px;padding:14px 21px}.home-watch{font-size:13px}.home-hero.hero .home-copy>.home-reassurance{font-size:11px;margin:13px auto 0}
 .portrait-demo{width:100%;max-width:410px;justify-self:center}.portrait-stage{height:360px}.portrait-output{width:78%;left:12%;top:14px;padding:8px 8px 12px;border-radius:23px}.portrait-output>.crop{border-radius:16px}.portrait-output figcaption{font-size:15px;padding-top:10px}.portrait-input{width:84px;top:238px;padding:5px 5px 7px;border-radius:12px}.portrait-input .crop{border-radius:8px}.portrait-input figcaption{font-size:10px}.portrait-plus{top:195px;font-size:26px}.demo-controls{margin-top:0;font-size:12px;max-width:94%}.demo-progress{max-width:94%}.home-hero.hero .demo-disclosure{font-size:10px}
 .home-depth{top:0;bottom:0}.depth-1{width:135px;left:-90px;top:80px;--alpha:.10}.depth-2{left:75%;width:90px;top:0;--alpha:.08}.depth-3{display:none}.depth-4{width:170px;right:-125px;top:490px;--alpha:.10}.depth-5{width:95px;left:-45px;bottom:40px;--alpha:.09}.studio-home .section-head{padding-top:20px}.studio-home .section-head h2{font-size:27px}
}
@media(max-width:370px){.home-hero.hero h1{font-size:35px}.portrait-stage{height:330px}.portrait-input{top:210px}.portrait-plus{top:160px}}
@media(prefers-reduced-motion:reduce){.depth-print{animation:none}.studio-home .primary,.studio-home .template{transition:none}.studio-home .primary:hover{transform:none}}

/* June-inspired local refinement: a floating nav and a single framed demo. */
.studio-home header{position:sticky;top:14px;z-index:50;width:calc(100% - 48px);max-width:1250px;margin:16px auto 0;padding:14px 24px;min-height:76px;background:#fffaf3;border:1px solid #e3d8ca;border-radius:24px;box-shadow:0 8px 24px -16px #60433055;gap:24px}
.studio-home nav{gap:22px;font-size:14px}
.studio-home nav a{padding:8px 0;text-underline-offset:6px}
.studio-home nav a:hover{color:var(--wine);text-decoration:underline}
.studio-home #language{background:#f6f1e8;border-color:#ddd0bf;border-radius:12px}
.studio-home main{padding-top:20px}
.home-hero.hero{gap:48px;padding:40px 12px 64px;min-height:610px;grid-template-columns:.9fr 1.1fr}
.home-hero.hero h1{font-size:clamp(40px,4.1vw,59px);letter-spacing:-.03em;line-height:1.1}
.home-hero.hero .home-copy>p{font-size:18px;line-height:1.6}
.studio-home .primary{border-radius:16px;box-shadow:none}
.home-watch{text-decoration:none;border:1px solid #d8c9b8;border-radius:16px;padding:12px 16px;background:#fffaf3;min-height:52px}
.home-watch:hover{background:#eee4d6}
.portrait-demo{max-width:610px;border:1px solid #ded1c0;border-radius:40px;background:#fffaf3;overflow:hidden;box-shadow:0 22px 42px -32px #67452a66}
.portrait-stage{height:400px;background:#eee5d8;overflow:hidden;border-radius:39px 39px 0 0}
.portrait-output{width:100%;height:100%;left:0;top:0;padding:0;border-radius:0;box-shadow:none;background:#eee5d8}
.portrait-output>.crop{height:100%;aspect-ratio:auto;border-radius:0}
.portrait-output figcaption{position:absolute;top:20px;left:20px;background:#fffaf3ed;padding:8px 14px;border-radius:12px;font-size:14px}
.portrait-input{top:auto;bottom:18px;width:88px;padding:5px 5px 7px;border-radius:15px}
.input-person{left:auto;right:120px}.input-pet{right:20px}
.portrait-plus{top:180px}
.demo-controls{max-width:none;margin:0;padding:14px 20px 8px;min-height:66px}
.demo-toggle{border-radius:14px;background:#ac3438;color:#fff;border-color:#ac3438}
.demo-toggle:hover{background:#932a2f}
.demo-progress{max-width:none;margin:0 20px;height:3px;border-radius:3px}
.home-hero.hero .demo-disclosure{margin:8px 15px 14px;font-size:11px}
.studio-home .template{border-radius:24px;padding:7px 7px 18px;box-shadow:none}
.studio-home .template .crop{border-radius:18px}
.studio-home :is(a,button,select):focus-visible{outline:3px solid #ac3438;outline-offset:4px}
@media(max-width:1100px){.studio-home header{padding:12px 18px;gap:16px}.studio-home nav{gap:12px;font-size:13px}.home-hero.hero{gap:28px}.portrait-stage{height:360px}.home-hero.hero h1{font-size:43px}.home-actions{gap:12px}}
@media(max-width:900px) and (min-width:701px){.home-hero.hero{gap:22px}.home-hero.hero h1{font-size:37px}.portrait-stage{height:330px}.portrait-input{width:74px}.input-person{right:104px}.home-hero.hero .home-copy>p{font-size:16px}}
@media(max-width:700px){
 .studio-home header{top:10px;width:calc(100% - 24px);margin-top:12px;min-height:64px;padding:11px 16px;border-radius:20px;gap:0;justify-content:space-between}
 .studio-home header .brand{font-size:26px}.studio-home .menu-toggle{border-radius:12px;background:#f6f1e8}
 .studio-home header nav{width:100%;margin:12px 0 0;padding:12px 0 0;border-top:1px solid #e3d8ca;background:transparent;gap:8px}
 .studio-home header nav a{padding:8px}.studio-home main{padding-top:0}
 .home-hero.hero{grid-template-columns:1fr;padding:38px 0 40px;gap:30px;min-height:0}
 .home-hero.hero h1{font-size:40px;max-width:400px}.home-hero.hero .home-copy>p{font-size:16px}
 .home-actions{gap:12px}.home-watch{min-height:48px;padding:10px 14px}
 .portrait-demo{max-width:460px;border-radius:28px}.portrait-stage{height:310px;border-radius:27px 27px 0 0}
 .portrait-input{width:72px;bottom:14px;top:auto}.input-person{right:100px}.input-pet{right:16px}
 .portrait-output{width:100%;left:0;top:0;padding:0;border-radius:0}.portrait-output>.crop{border-radius:0}
 .portrait-output figcaption{top:14px;left:14px;font-size:12px;padding:6px 10px}.portrait-plus{top:145px}
 .demo-controls{padding:10px 14px 6px;font-size:12px;max-width:none}.demo-progress{max-width:none;margin-inline:14px}
 .home-hero.hero .demo-disclosure{font-size:10px;margin:8px 10px 12px}
}
@media(max-width:370px){.home-hero.hero h1{font-size:35px}.portrait-stage{height:275px}}

/* Collapse navigation before links need a second row, including tablet widths. */
.studio-home header{flex-wrap:nowrap}
.studio-home header nav a{white-space:nowrap}
@media(max-width:1100px){
 .studio-home header{min-height:68px;justify-content:space-between}
 .studio-home .menu-toggle{display:block;margin-left:auto;min-height:44px;padding:8px 14px;border:1px solid #ddd0bf;border-radius:12px;background:#f6f1e8;color:var(--ink)}
 .studio-home header nav{display:none;position:absolute;top:calc(100% + 8px);left:0;right:0;width:auto;margin:0;padding:12px;flex-direction:column;align-items:stretch;gap:4px;background:#fffaf3;border:1px solid #e3d8ca;border-radius:20px;box-shadow:0 14px 28px -18px #60433055;max-height:calc(100dvh - 130px);overflow:auto}
 .studio-home header nav.open{display:flex}
 .studio-home header nav a{padding:10px 14px;border-radius:10px}
 .studio-home header nav a:hover{background:#f6f1e8}
 .studio-home header nav select{width:100%;min-height:44px}
}

/* Local typography study: dark headings, warm-gray support and a quiet CTA sweep. */
body:has(#app){--ink:#242424;--muted:#706b65;--wine:#ac3438;--font-body:Figtree,'Microsoft YaHei','PingFang SC','Noto Sans CJK SC',sans-serif;--font-heading:Nunito,'Microsoft YaHei','PingFang SC','Noto Sans CJK SC',sans-serif;font-family:var(--font-body);color:var(--ink)}
body:has(#app) :is(h1,h2,h3,.brand,.primary,.footer-wordmark){font-family:var(--font-heading);font-weight:800}
body:has(#app) :is(button,input,select,textarea){font-family:var(--font-body)}
body:has(#app) .primary{font-family:var(--font-heading)}
body:has(#app) .brand{color:var(--wine)}
html:lang(zh) body:has(#app){--font-body:'Microsoft YaHei','PingFang SC','Noto Sans CJK SC',sans-serif;--font-heading:'Microsoft YaHei','PingFang SC','Noto Sans CJK SC',sans-serif}
html:lang(zh) body:has(#app) :is(h1,h2,h3,.primary){font-weight:700}
html:lang(zh) body:has(#app) :is(.home-copy p,.portrait-output figcaption,footer.site-footer,.credit-packs .price,.credit-packs .price small){font-family:var(--font-body)}
.studio-home .home-hero h1 span{color:var(--ink)}
.studio-home .home-hero.hero .home-copy>p{color:var(--muted)}
.studio-home .home-hero.hero .home-copy>.home-reassurance{color:var(--muted)}
.studio-home :is(.notice,.demo-controls,.demo-disclosure){color:var(--muted)}
.studio-home .home-watch{color:var(--ink)}
.studio-home .home-hero.hero h1{letter-spacing:-.025em;line-height:1.12}
html:lang(zh) .studio-home .home-hero.hero h1{letter-spacing:0;line-height:1.3}
/* Sweep across the whole CTA, leaving its label and icon crisp. */
.studio-home #browse{position:relative;isolation:isolate;overflow:hidden}
.cta-shimmer{position:relative;z-index:2;color:#fff}
.studio-home #browse>svg{position:relative;z-index:2}
.studio-home #browse::before{content:'';position:absolute;inset:-60% auto -60% 0;width:45%;background:linear-gradient(105deg,transparent 0%,rgba(255,255,255,.08) 25%,rgba(255,255,255,.26) 50%,rgba(255,255,255,.08) 75%,transparent 100%);transform:translateX(-240%);pointer-events:none;z-index:1;animation:cta-surface-sweep 1.8s linear infinite}
@keyframes cta-surface-sweep{0%{transform:translateX(-240%)}82%,100%{transform:translateX(340%)}}
@media(prefers-reduced-motion:reduce){.studio-home #browse::before{animation:none;display:none}}
@media(forced-colors:active){.studio-home #browse::before{animation:none;display:none}}

/* Interaction feedback: transient movement, never a delay before activation. */
#app :is(.primary,.secondary,.home-watch,.menu-toggle,.demo-toggle,.account-trigger,.account-dropdown button,.account-buy){transition:transform 150ms cubic-bezier(.16,1,.3,1),background-color 150ms ease,color 150ms ease,box-shadow 150ms ease}
#app a.template{transition:transform 220ms cubic-bezier(.16,1,.3,1),box-shadow 220ms ease,border-color 220ms ease}
#app a.template .crop{overflow:hidden}
#app a.template .crop :is(svg,img){transform-origin:center;transition:transform 300ms cubic-bezier(.16,1,.3,1)}
@media(hover:hover) and (pointer:fine){
 #app :is(.primary,.secondary,.home-watch,.menu-toggle,.demo-toggle,.account-buy):not(:disabled):hover{transform:translateY(-1px)}
 #app :is(.secondary,.home-watch,.menu-toggle):not(:disabled):hover{background-color:#eee5d8}
 #app a.template:hover{transform:translateY(-3px);box-shadow:0 12px 24px -18px #60433066;border-color:#c7b9a7}
 #app a.template:hover .crop :is(svg,img){transform:scale(1.025)}
}
#app :is(.primary,.secondary,.home-watch,.menu-toggle,.demo-toggle,.account-trigger,.account-dropdown button,.account-buy):not(:disabled):active{transform:scale(.975)}
#app a.template:active{transform:scale(.99)}
#app .account-dropdown:not([hidden]){animation:menu-arrive 150ms cubic-bezier(.16,1,.3,1)}
#app .account-dropdown :is(a,button){transition:background-color 120ms ease,color 120ms ease}
#app .account-trigger:after{transition:transform 150ms ease}
#app .account-trigger[aria-expanded=true]:after{transform:rotate(225deg);margin-bottom:0}
@media(max-width:1100px){#app header nav.open{animation:menu-arrive 150ms cubic-bezier(.16,1,.3,1)}}
@keyframes menu-arrive{from{opacity:.65;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(hover:none){#app :is(.primary,.secondary,.home-watch,.menu-toggle,.demo-toggle,.account-buy):hover,#app a.template:hover{transform:none}#app :is(.primary,.secondary,.home-watch,.menu-toggle,.demo-toggle,.account-buy):active{transform:scale(.975)}#app a.template:active{transform:scale(.99)}}
@media(prefers-reduced-motion:reduce){
 #app :is(.primary,.secondary,.home-watch,.menu-toggle,.demo-toggle,.account-trigger,.account-buy,a.template),#app a.template .crop :is(svg,img){transition:none!important;transform:none!important}
 #app .account-dropdown,#app header nav.open{animation:none!important}
 #app .account-trigger:after{transition:none}
}
