/* Layout polish (Claude, 2026-11-03). Loaded last; delete this file + its <link> to undo. */
.pj-lang-select{appearance:none;-webkit-appearance:none;height:32px;width:96px;min-width:0;max-width:180px;box-sizing:border-box;padding:0 14px 0 2px;border:0;background-color:transparent;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%2318231E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1px center;color:inherit;font:inherit;font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer;flex:none}
@media(max-width:760px){
 .pj-lang-select{font-size:12px}
 header.pj-pad>div{justify-content:flex-start!important;gap:8px!important}
 .pj-nav{margin-left:auto!important;gap:4px!important;font-size:12px!important;flex:none!important}
 .pj-navcta{margin-left:0!important}
}

/* ---------- Desktop ---------- */
@media (min-width:761px){
 /* Feature trio: bigger phones that run off the bottom edge */
 #features .pj-paneph{align-items:flex-start!important;overflow:hidden!important}
 #features .pj-paneph>div{width:min(290px,72%)!important;margin:clamp(16px,4vh,48px) 0 0 0!important;align-self:flex-start!important}
 #features .pj-paneph>div.pj-buzz{width:min(290px,72%)!important}
 /* FAQ: fill the page instead of floating small in the middle */
 #faq .pj-faq{max-width:1240px!important;gap:clamp(48px,7vw,120px)!important;align-items:start}
 #faq .pj-h2{font-size:clamp(56px,6.2vw,96px)!important}
 #faq .pj-faq>div:first-child p{font-size:19px!important}
 #faq summary{font-size:clamp(20px,1.8vw,26px)!important;padding:6px 0}
 #faq details{padding:clamp(20px,3vh,30px) 0!important}
 #faq details p{font-size:18px!important;max-width:58ch!important}
}

/* ---------- Phone ---------- */
@media (max-width:760px){
 /* Hero fills exactly one screen; the phone is the centrepiece */
 #top{min-height:calc(100svh - 70px)!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;padding-bottom:12px!important;scroll-snap-align:none}
 header{scroll-snap-align:start}
 .pj-stage{zoom:.56!important;margin:90px auto 0!important;align-self:center!important}
 /* Feature cards: phone runs off the bottom edge instead of floating */
 #features .pj-panel{padding-bottom:0!important}
 #features .pj-paneph{align-items:flex-start!important;overflow:hidden!important}
 #features .pj-paneph>div{width:min(250px,70vw)!important;max-width:250px!important;margin:28px auto 0!important}
 /* keep copy to the app's own wording */
 #features .pj-panel:nth-child(2)>div:first-child:after,#features .pj-panel:nth-child(3)>div:first-child:after{content:none!important;display:none!important}
}
/* Chinese copy: keep short headline units intact and choose sentence-level wraps. */
@media (max-width:760px){
 html[lang="zh-Hans"] #why .pj-wantwrap{width:100%!important;align-self:stretch!important;text-align:left!important}
 html[lang="zh-Hans"] #why .pj-want{display:block!important;width:max-content!important;max-width:100%!important;margin-left:0!important;margin-right:auto!important;text-align:left!important;font-size:clamp(22px,7.2vw,29px)!important;line-height:1.2!important;letter-spacing:-.045em!important;white-space:nowrap!important;transform-origin:left center!important}
 html[lang="zh-Hans"] #why .pj-wantsub{text-align:left!important}
 html[lang="zh-Hans"] #how .pj-arhead .pj-h2{width:max-content;max-width:100%!important;font-size:clamp(22px,7.4vw,30px)!important;line-height:1.1!important;letter-spacing:-.04em!important;white-space:nowrap!important}
 html[lang="zh-Hans"] #download .pj-cta>h2{align-self:center!important;width:100%!important;margin-left:auto!important;margin-right:auto!important;text-align:center!important}
 html[lang="zh-Hans"] #download .pj-cta>h2>span{white-space:nowrap!important}
 html[lang="zh-Hans"] #download .pj-cta>p .locale-count{display:block!important}
 html[lang="zh-Hans"] #why .pj-painbody{ text-wrap:pretty }
}
/* Give the Chinese feature headline a few more pixels below its eyebrow. */
html[lang="zh-Hans"] #features .pj-panel .pj-eyeb{margin-bottom:-2px!important}
/* Chinese desktop copy: keep card headings and the strict-mode note on single lines. */
@media (min-width:761px){
 html[lang="zh-Hans"] #features .pj-panel .pj-trioh{font-size:clamp(17px,min(2.3cqw,30px),30px)!important;letter-spacing:-.04em!important;white-space:nowrap!important}
 html[lang="zh-Hans"] #features .pj-panel .pj-eyeb{white-space:nowrap!important}
 html[lang="zh-Hans"] #features .pj-panel:first-child li{font-size:clamp(10px,1.35vw,15px)!important;letter-spacing:-.025em!important;white-space:nowrap!important}
 html[lang="zh-Hans"] #how .pj-arhead>div:first-child{align-items:flex-start!important;text-align:left!important;padding-left:0!important}
 html[lang="zh-Hans"] #how .pj-arhead>div:first-child>span,
 html[lang="zh-Hans"] #how .pj-arhead>div:first-child>.pj-h2,
 html[lang="zh-Hans"] #how .pj-arhead>div:first-child>p{align-self:flex-start!important;margin-left:0!important;padding-left:0!important;text-indent:0!important;text-align:left!important}
}
@media (max-width:420px){
 .pj-stage{zoom:.5!important;margin:96px auto 0!important}
}

/* lock and streak overlays must match the phone screen, not the wrapper */
#features .pj-paneph>div>.pj-bigl,#features .pj-paneph>div>.pj-strk,.pj-duo .pj-bigl,.pj-duo .pj-strk{width:auto!important;height:auto!important;aspect-ratio:auto!important;inset:1.4% 3%!important}
/* The alert photo includes background along its top and right edges. Crop it
   inside the existing screen without changing the phone frame or buzz motion. */
#features .pj-paneph>.pj-buzz img{border-radius:0!important;clip-path:inset(3% 3% 0 0 round 25px);transform:scale(1.030928);transform-origin:left bottom}
@media (max-width:760px) and (max-height:720px){
 .pj-stage{zoom:.4!important;margin-top:70px!important}
}

/* ---------- Desktop hero: one sizing rule for every window ----------
   The old stacked zoom rules (width steps x height steps x Codex's max-height tweak)
   multiplied together, so the phone covered the headline on narrow windows and became
   tiny on short wide ones. polish.js now sets one zoom on .pj-stage-x; reset the rest. */
@media (min-width:761px){
 .pj-stage,.pj-stage-in{zoom:1!important}
 .pj-stage{margin-top:28px!important;justify-self:center!important}
 .pj-hero{align-items:center!important}
 .pj-h1{font-size:clamp(48px,min(8.6cqw,14.5vh),128px)!important}
 .pj-hero>div:first-child>p{font-size:clamp(20px,min(2.4cqw,4vh),34px)!important}
 #top{min-height:calc(100vh - 72px)!important;min-height:calc(100svh - 72px)!important}
}

/* How it works: step 1 card same size as the photo cards (desktop) */
@media (min-width:761px){
 #how .pj-s1m{height:auto!important;aspect-ratio:3/4!important;box-sizing:border-box!important;width:100%!important}
}
/* How it works (phone): separate rounded cards, centred, clipped only by the screen edge */
@media (max-width:760px){
 #how .pj-steps{--cw:min(78vw,calc((100svh - 380px)*.75));position:relative!important;left:auto!important;transform:none!important;display:flex!important;width:100vw!important;min-width:0!important;max-width:none!important;margin:0 0 0 calc(50% - 50vw)!important;padding:0 calc((100vw - var(--cw))/2) 4px!important;gap:14px!important;box-sizing:border-box!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;scroll-padding-inline:0!important;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 #how .pj-steps::-webkit-scrollbar{display:none}
 #how .pj-steps .pj-step{flex:0 0 var(--cw)!important;width:var(--cw)!important;max-width:var(--cw)!important;min-width:0!important;margin:0!important;scroll-snap-align:center!important;scroll-snap-stop:always!important}
 #how .pj-step>div:first-child{border-radius:24px!important;overflow:hidden!important;height:auto!important}
 #how .pj-step>div:first-child>img,#how .pj-s1m{display:block!important;width:100%!important;height:auto!important;aspect-ratio:3/4!important;border-radius:24px!important;box-sizing:border-box!important}
 #how .pj-s1m{display:flex!important;justify-content:center!important;align-items:flex-start!important;padding-top:20%!important}
 #how .pj-s1m>div{margin:0!important}
 #how .pj-step h3,#how .pj-step p{margin-left:4px!important;margin-right:4px!important}
}
/* phone steps: JS measures the real screen; spacers instead of padding (iOS ignores end padding in scrollers) */
@media (max-width:760px){
 #how .pj-steps{padding-left:0!important;padding-right:0!important}
 #how .pj-steps::before,#how .pj-steps::after{content:"";flex:0 0 var(--pjpad,calc((100vw - var(--cw))/2 - 14px));height:1px}
}
@media (max-width:760px){
 #how{min-height:100vh!important;min-height:100svh!important;display:flex!important;flex-direction:column!important;justify-content:center!important;box-sizing:border-box!important}
}
@media (max-width:760px) and (max-height:640px){
 #how .pj-arhead .pj-h2{font-size:32px!important}
 #how .pj-arhead p{font-size:14px!important}
 #how>div:first-child{gap:12px!important}
}
