/* PicLoom home: hero with three phones, five tool cards, nine-screen gallery, promises and film. */
.home{overflow-x:clip;font-family:var(--sans)}
.tone-peach{--tone:var(--peach)}.tone-pink{--tone:var(--pink)}.tone-mint{--tone:var(--mint)}.tone-lilac{--tone:var(--lilac)}.tone-butter{--tone:var(--butter)}

/* Phone frame around a real capture; cqw keeps the bezel in proportion at any size. */
.phone{position:relative;container-type:inline-size;filter:drop-shadow(0 20px 26px var(--shadow))}
.phone img{display:block;width:100%;height:auto;border:3.2cqw solid var(--bezel);border-radius:15cqw;background:var(--bezel);box-shadow:0 0 0 1px #ffffff12}
.phone::after{content:"";position:absolute;left:50%;top:5.3cqw;width:27cqw;height:8cqw;transform:translateX(-50%);background:#000;border-radius:99cqw}
.sticker{position:absolute;height:auto;pointer-events:none;filter:drop-shadow(0 4px 6px #3a244026)}

/* Hero */
.hero{padding:clamp(1.6rem,4vw,3.5rem) 0 clamp(2.5rem,5vw,4.5rem)}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:clamp(1.5rem,4vw,4rem);align-items:center}
.hero-tag{margin:0 0 1.2rem}
.hero h1{font:800 clamp(3rem,6.4vw,5.6rem)/1.08 var(--round);letter-spacing:-.045em;margin:0;color:var(--ink)}
.hero h1>span{display:block;white-space:nowrap}
:lang(zh) .hero h1{letter-spacing:-.02em;line-height:1.14}
.hero .sub{text-wrap:balance;font:700 clamp(1.08rem,1.5vw,1.3rem)/1.5 var(--round);margin:1.3rem 0 .6rem;color:var(--ink)}
.hero .lede{margin:0;color:var(--ink-2);font-size:clamp(1rem,1.2vw,1.08rem);line-height:1.85;max-width:33em}
.hero-actions{display:flex;flex-wrap:wrap;gap:.9rem 1rem;margin:1.9rem 0 1.4rem}
.hero-facts{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;margin:0;padding:0}
.hero-facts li{font:700 .85rem/1 var(--round);padding:.5rem .8rem;border-radius:999px;background:var(--paper-2);color:var(--ink-2);box-shadow:inset 0 0 0 1.5px var(--rule);white-space:nowrap}
.hero-facts li:nth-child(1){background:var(--butter);box-shadow:none;color:var(--ink)}
.hero-facts li:nth-child(2){background:var(--mint);box-shadow:none;color:var(--ink)}
.hero-facts li:nth-child(3){background:var(--pink);box-shadow:none;color:var(--ink)}

.stage{position:relative;aspect-ratio:1/.98;width:100%;max-width:38rem;justify-self:center}
.blob{position:absolute;border-radius:42% 58% 63% 37%/41% 44% 56% 59%}
.blob-1{inset:6% 8% 10% 10%;background:var(--blob-1)}
.blob-2{width:44%;height:40%;right:-4%;top:-2%;background:var(--blob-2);border-radius:58% 42% 38% 62%/52% 61% 39% 48%}
.blob-3{width:40%;height:34%;left:-3%;bottom:0;background:var(--blob-3);border-radius:63% 37% 54% 46%/55% 48% 52% 45%}
.stage .phone{position:absolute}
.p-main{width:38%;left:31%;top:4%;z-index:3}
.p-left{width:31%;left:4%;top:16%;transform:rotate(-9deg);z-index:2}
.p-right{width:31%;right:4%;top:16%;transform:rotate(9deg);z-index:2}
.s-sun{width:17%;left:-1%;top:3%;z-index:4;transform:rotate(-8deg)}
.s-star{width:13%;right:3%;top:6%;z-index:4;transform:rotate(12deg)}
.s-heart{width:13%;left:8%;bottom:9%;z-index:4;transform:rotate(-12deg)}
.s-spark{width:12%;right:14%;bottom:11%;z-index:4}

/* Section heads */
.section-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.7fr);gap:1rem 3rem;align-items:end;margin-bottom:clamp(1.6rem,3vw,2.4rem)}
.section-head h2,.promise h2{font:800 clamp(2.1rem,4.2vw,3.5rem)/1.12 var(--round);letter-spacing:-.035em;margin:.6rem 0 0;color:var(--ink)}
:lang(zh) :is(.section-head,.promise) h2{letter-spacing:-.01em;line-height:1.2}
.section-head h2>span,.promise h2>span{display:block}
.section-head>p{margin:0;color:var(--ink-2);max-width:28em}

/* Tools */
.tools{padding:clamp(2.5rem,6vw,5rem) 0 clamp(1.5rem,3vw,2.5rem)}
.tool-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(.9rem,1.8vw,1.4rem)}
.tool{grid-column:span 2;position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;min-height:clamp(24rem,32vw,28rem);border-radius:1.6rem;background:var(--tone);color:var(--ink);text-decoration:none;transition:transform .25s}
.tool:nth-child(-n+2){grid-column:span 3}
.tool:hover{transform:translateY(-4px)}
.tool-copy{padding:clamp(1.2rem,2.4vw,1.8rem) clamp(1.2rem,2.4vw,1.8rem) 0}
.tool h3{font:800 clamp(1.35rem,2vw,1.75rem)/1.2 var(--round);letter-spacing:-.02em;margin:0 0 .5rem}
.tool p{margin:0;color:var(--ink-2);font-size:.97rem;line-height:1.7;max-width:26em}
.tool .more{display:inline-flex;align-items:center;gap:.3rem;margin-top:.9rem;font:800 .9rem/1 var(--round);color:var(--purple-ink);white-space:nowrap}
.tool .more::after{content:"→"}
.tool .phone{position:absolute;width:min(52%,15rem);left:50%;bottom:0;transform:translate(-50%,58%) rotate(-4deg);transition:transform .35s}
.tool:nth-child(-n+2) .phone{width:min(40%,15rem);left:auto;right:7%;transform:translate(0,48%) rotate(5deg)}
.tool:nth-child(-n+2) .tool-copy{max-width:58%}
@media (min-width:981px) and (hover:hover){
  .tool:hover .phone{transform:translate(-50%,52%) rotate(-2deg)}
  .tool:nth-child(-n+2):hover .phone{transform:translate(0,42%) rotate(3deg)}
}

/* Gallery */
.gallery{padding:clamp(3rem,6vw,5rem) 0 clamp(1rem,3vw,2rem)}
.shots{--edge:max(var(--gutter),calc((100% - var(--wrap))/2));display:flex;gap:clamp(.9rem,1.8vw,1.4rem);list-style:none;margin:0;padding:.5rem var(--edge) 2rem;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--edge);scrollbar-width:thin;scrollbar-color:var(--purple) transparent;overscroll-behavior-x:contain}
.shots:focus-visible{outline-offset:-3px}
.shot{flex:0 0 clamp(15rem,23vw,17.5rem);scroll-snap-align:start;display:flex;flex-direction:column;align-items:flex-start;background:var(--tone);border-radius:1.6rem;padding:1.2rem 1.2rem 1.3rem}
.shot h3{font:800 1.3rem/1.3 var(--round);letter-spacing:-.02em;margin:.8rem 0 1.1rem;min-height:2.6em;color:var(--ink)}
.shot h3>span{white-space:nowrap}
.shot .phone{width:88%;align-self:center}
.shot p{margin:1.1rem 0 0;font-size:.88rem;line-height:1.6;color:var(--ink-2)}

/* Promises */
.promise{padding:clamp(2.5rem,6vw,4.5rem) 0}
.promise-card{position:relative;isolation:isolate;background:var(--purple);color:var(--on-purple);border-radius:2.2rem;padding:clamp(1.8rem,5vw,4rem)}
.promise .kicker{color:inherit;opacity:.8;letter-spacing:.14em}
.promise h2{color:inherit}
.promise ul{list-style:none;margin:clamp(1.8rem,4vw,2.8rem) 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(.8rem,2vw,1.4rem)}
.promise li{background:#ffffff1f;border-radius:1.2rem;padding:1.2rem 1.2rem 1.3rem}
@media (prefers-color-scheme:dark){.promise li{background:#17121f1a}}
.promise li h3{font:800 1.12rem/1.35 var(--round);margin:0 0 .45rem}
.promise li p{margin:0;font-size:.93rem;line-height:1.7;opacity:.9}
.promise-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.6rem;margin-top:2rem}
.promise-actions .btn-buy{background:var(--paper-2);color:var(--ink);box-shadow:0 .3rem 0 -.05rem #00000033}
.promise-actions a:not(.btn){color:inherit;font-weight:700}
.s-pop{width:6.5rem;right:2.2rem;top:-2.2rem;transform:rotate(10deg)}
.s-flower{width:4.6rem;right:9rem;top:-1.4rem;transform:rotate(-14deg)}

.film-wrap{padding-top:clamp(1rem,3vw,2rem)}

@media (max-width:980px){
  .hero-grid{grid-template-columns:minmax(0,1fr)}
  .stage{max-width:36rem}
  .promise ul{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tool,.tool:nth-child(-n+2){grid-column:span 3}
  .tool:nth-child(5){grid-column:1/-1}
  .tool:nth-child(-n+2) .tool-copy{max-width:none}
  .tool:nth-child(-n+2) .phone{width:min(52%,15rem);left:50%;right:auto;transform:translate(-50%,58%) rotate(-4deg)}
  .tool:nth-child(5) .tool-copy{max-width:58%}
  .tool:nth-child(5) .phone{width:min(36%,14rem);left:auto;right:7%;transform:translate(0,46%) rotate(5deg)}
}
@media (max-width:760px){
  .section-head{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:560px){
  .hero h1{font-size:clamp(2.6rem,12.6vw,3.4rem)}
  .hero-actions .btn{flex:1 1 100%}
  .stage{aspect-ratio:1/1.05}
  .p-main{width:44%;left:28%}
  .p-left{width:34%;left:-2%}
  .p-right{width:34%;right:-2%}
  .tool-grid{grid-template-columns:minmax(0,1fr)}
  .tool,.tool:nth-child(-n+2),.tool:nth-child(5){grid-column:auto;min-height:22rem}
  .tool:nth-child(5) .tool-copy{max-width:none}
  .tool .phone,.tool:nth-child(-n+2) .phone,.tool:nth-child(5) .phone{width:48%;left:50%;right:auto;transform:translate(-50%,56%) rotate(-4deg)}
  .promise ul{grid-template-columns:minmax(0,1fr)}
  .promise-card{border-radius:1.6rem}
  .s-pop{width:4.8rem;right:1rem;top:-1.8rem}
  .s-flower{width:3.4rem;right:6rem;top:-1.1rem}
  .shot{flex-basis:76%}
}
@media (prefers-reduced-motion:reduce){.tool,.tool .phone{transition:none}.tool:hover{transform:none}}
