/* Homepage v2 (live 10/17 US Eastern). References: design/refs/amie (one narrow reading column, FAQ rows),
   design/refs/how-it-works-saaspo (one numbered 3-step block), design/refs/aboard (one soft panel).
   Review 10/18: one left edge for every block, readable small text, steps visible before uploading. */
.home-page .mobile-templates>p a{display:inline-flex;align-items:center;min-height:44px}

/* Hero: the H1 spans both columns so "TikTok Sticker Banner Maker" stays on one line; the three steps sit under it. */
@media(min-width:1024px){.workspace-a3{grid-template-areas:"intro intro" "left card"}}
.hero-steps{list-style:none;display:flex;flex-wrap:wrap;gap:8px 24px;margin:20px 0 0;padding:0;font-size:15px;line-height:24px;color:#3f3b44}
.hero-steps li{display:flex;align-items:center;gap:8px}
.hero-steps li+li::before{content:"\2192";margin-right:16px;color:#8a8590}
.hero-steps b{color:var(--brand);margin-right:4px}
.hs-icon{display:flex;width:32px;height:32px;border-radius:10px;background:var(--soft);color:var(--brand);align-items:center;justify-content:center}
.hs-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* Upload card: the privacy promise is a trust point, so it sits right under the button, readable. */
.upload-card p.small{font-size:13px;color:#57525c}
.upload-card p.trust{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:14px;color:#2f6b45;font-weight:600}
.upload-card p.trust svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
#status:not([data-error=true]){color:#5f5a66!important}

/* Results: thumbnails laid out like the finished banner; tap one to save it. */
.upload-card #results{text-align:center}
.upload-card .result-actions{justify-content:center}
.upload-card #file-results.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}
.sticker-thumb{position:relative;display:block;width:100%;min-height:0;padding:0;border:0;border-radius:12px;overflow:hidden;aspect-ratio:1;background:#f0edf0;cursor:pointer}
body[data-preset=pinned] .sticker-thumb{aspect-ratio:3/4}
.sticker-thumb video,.sticker-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.sticker-thumb .n{position:absolute;left:6px;top:6px;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:var(--brand);color:#fff;font-size:12px;line-height:24px;font-weight:600;text-align:center}
/* Save icon: small frosted dark circle (user picked variant A of three, 10/18); brand pink on hover. */
.sticker-thumb .save{position:absolute;right:6px;bottom:6px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:999px;color:#fff;background:rgba(0,0,0,.42);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);pointer-events:none}
.sticker-thumb .save svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@media(hover:hover){.sticker-thumb:hover .save{background:var(--brand)}}
.sticker-thumb:focus-visible .save{background:var(--brand)}
/* The numbered thumbnails already show the order; the "Next, on TikTok" card replaces the long order text. */
#file-results.grid~#result-order,.upload-card:has(#file-results.grid) :is(#status:not([data-error=true]),#export-note){display:none}
.next-card{margin-top:16px;padding:16px 18px;border-radius:16px;background:var(--soft);text-align:left;font-size:14px;line-height:22px;color:#3f3b44}
.next-card .next-title{margin:0 0 6px;font-size:15px;font-weight:700;color:var(--brand)}
.next-card ol{margin:0;padding-left:20px}
.next-card li+li{margin-top:4px}
.next-card .next-tip{margin:10px 0 0;padding-top:10px;border-top:1px solid #f3cfdd;font-size:13px;line-height:20px;max-width:none}
.next-card a{display:inline-block;margin-top:8px;font-size:13px;font-weight:600;text-decoration:none}

/* Preview: a still of the example sits behind the canvas until the clip paints (no empty checkerboard flash). */
#banner-canvas{background:url(/assets/preview-poster.jpg) 0 0/100% 100% no-repeat,#fff}
.mock-avatar{background:linear-gradient(135deg,#f49ab9,#a91950)}
.example-credit,.preview-footnote{font-size:13px!important;color:#57525c!important}

/* Below the tool: every block starts on the H1's left edge. The steps panel spans the container; the reading
   column (~70 characters) sits left, with a sticky "On this page" list on the right. */
.support.support-v2{display:grid;grid-template-columns:minmax(0,640px) minmax(0,1fr);column-gap:64px;align-items:start;max-width:none;margin:96px 0 0}
.support-v2 section{padding:0;border-radius:0;background:none}
.support-v2 #faq{padding:0;background:none}
.support-v2 .steps-panel{grid-column:1/-1;grid-row:1;padding:48px;border-radius:24px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.06),0 1px 1px -.5px rgba(0,0,0,.06),0 3px 3px -1.5px rgba(0,0,0,.06)}
.steps-panel h2{margin-bottom:32px}
.steps-body{display:grid;grid-template-columns:340px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:48px;row-gap:24px;align-items:start}
.steps-body>.walkthrough-figure{grid-column:1;grid-row:1/3}
.step-cards{grid-column:2;grid-row:1}
/* Before and after: the uploaded picture and what the profile shows (fills the column beside the tall recording). */
.before-after{grid-column:2;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1.5fr);align-items:center;gap:16px;margin:0;padding:20px;border-radius:16px;background:#f7f8fa}
.before-after img{display:block;width:100%;height:auto;border-radius:10px}
.before-after figcaption{margin-top:8px;font-size:13px;line-height:20px;color:#57525c;text-align:center}
.ba-arrow{font-size:24px;color:var(--brand)}
.steps-panel .walkthrough-figure{margin:0}
.steps-panel .walkthrough-figure video{max-width:340px}
.steps-panel figcaption{margin-top:12px;font-size:13px;line-height:20px;text-align:center;color:#57525c}
.step-cards{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.step-cards li{display:flex;align-items:flex-start;gap:20px;padding:24px;border-radius:16px;background:var(--soft)}
.step-n{flex:0 0 40px;height:40px;border-radius:999px;background:var(--brand);color:#fff;font-size:18px;line-height:40px;font-weight:600;text-align:center}
.step-cards h3{margin:0 0 4px;font-size:20px;line-height:28px}
.step-cards p{max-width:none;font-size:16px;line-height:26px;color:#4a4550}
.step-cards p.small{margin-top:8px;font-size:14px;line-height:22px}
.guide-link{display:inline-block;margin-top:24px;font-size:15px;font-weight:600}
.prose-col{grid-column:1;grid-row:2;max-width:640px;margin:96px 0 0}
.prose-col>section+section{margin-top:64px}
.support-v2 .prose-col h2{margin-bottom:16px;font-size:28px;line-height:36px}
.prose-col p,.prose-col li{font-size:17px;line-height:29px;color:#3f3b44}
.prose-col ul{margin:16px 0 0;padding-left:22px}
.prose-col li+li{margin-top:8px}
.prose-col ul+p{margin-top:16px}
.support-v2 #faq details{border-color:var(--line)}
.support-v2 #faq summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 0;list-style:none;font-size:17px;font-weight:600}
.support-v2 #faq summary::-webkit-details-marker{display:none}
.support-v2 #faq summary::after{content:"+";flex:0 0 auto;font-size:22px;font-weight:400;color:var(--muted)}
.support-v2 #faq details[open] summary::after{content:"\2212"}
.support-v2 #faq p{padding-bottom:20px;font-size:16px;line-height:26px}
.toc{grid-column:2;grid-row:2;position:sticky;top:32px;display:flex;flex-direction:column;gap:4px;margin-top:96px;padding-left:24px;border-left:1px solid var(--line);font-size:14px;line-height:20px}
.toc p{margin-bottom:8px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#57525c}
.toc a{padding:6px 0;color:#57525c;text-decoration:none}
.toc a:hover{color:var(--brand)}

@media(max-width:1023px){
 .support.support-v2{grid-template-columns:minmax(0,1fr)}
 .toc{display:none}
 .steps-body{grid-template-columns:280px minmax(0,1fr);column-gap:32px}
 .steps-panel .walkthrough-figure video{max-width:280px}
}
@media(max-width:767px){
 .hero-steps{flex-direction:column;gap:8px;font-size:14px}
 .hero-steps li+li::before{display:none}
 .support.support-v2{margin-top:64px}
 .support-v2 .steps-panel{padding:32px 20px}
 .steps-panel h2{margin-bottom:24px;font-size:26px;line-height:32px}
 .steps-body{grid-template-columns:1fr;gap:24px}
 .steps-body>.walkthrough-figure,.step-cards,.before-after{grid-column:1;grid-row:auto}
 .steps-panel .walkthrough-figure{order:3}.steps-panel .walkthrough-figure video{max-width:260px}
 .before-after{order:2;grid-template-columns:minmax(0,1fr);text-align:center}.ba-arrow{transform:rotate(90deg)}
 .step-cards li{gap:16px;padding:16px}
 .prose-col{margin-top:64px}
 .support-v2 .prose-col h2{font-size:24px;line-height:32px}
 /* Tap targets: 44 px or more. */
 .count{height:52px}.count button{min-height:44px;height:44px}
}

/* Section figures (10/18): real banner images with live text on top (numbers, sizes) instead of text baked
   into pictures. Geometry of the 960x305 banner images: tiles 31.77% wide, gaps 2.34%, tiles start at 0/34.11/68.23%. */
.prose-col .tip{padding:12px 16px;border-radius:12px;background:#f7f8fa;font-size:16px;line-height:26px}
.prose-col a.out{font-weight:600;text-decoration:none}
.prose-col a.out:hover{text-decoration:underline}
.fig{margin:24px 0 8px}
.fig-banner{position:relative;border-radius:14px;overflow:hidden;background:#fff}
.fig-banner img{display:block;width:100%;height:auto}
.fig figcaption{margin-top:10px;font-size:15px;line-height:24px;color:#4a4550}
.fig-n{position:absolute;top:7%;left:calc(var(--i)*34.11% + 2.2%);width:36px;height:36px;border-radius:999px;background:var(--brand);color:#fff;font-size:17px;font-weight:700;line-height:36px;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.22)}
.fig-labels{display:grid;grid-template-columns:repeat(3,31.77%);justify-content:space-between;margin-top:8px;font-size:14px;line-height:20px;font-weight:600;color:#57525c;text-align:center}
.fig-gap{position:absolute;top:0;bottom:0;left:31.77%;width:2.34%;background:repeating-linear-gradient(45deg,rgba(169,25,80,.55) 0 3px,rgba(169,25,80,.12) 3px 6px)}
.fig-pill{position:absolute;padding:4px 10px;border-radius:999px;background:rgba(20,20,24,.7);color:#fff;font-size:13px;line-height:18px;font-weight:600;white-space:nowrap;transform:translateX(-50%)}
.fig-pill-tile{left:15.88%;bottom:9%}
.fig-pill-gap{left:32.94%;top:9%;background:var(--brand)}
.fig-pv{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.fig-pv p{margin-top:8px;font-size:15px;line-height:22px;text-align:center;color:#4a4550}
.fig-strip{aspect-ratio:960/305}
/* One video masked into three rounded squares with gaps (one player, not three); same file as the maker's example. */
.fig-strip video{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 35%;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 960 305' preserveAspectRatio='none'%3E%3Crect width='305' height='305' rx='23'/%3E%3Crect x='327.5' width='305' height='305' rx='23'/%3E%3Crect x='655' width='305' height='305' rx='23'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 960 305' preserveAspectRatio='none'%3E%3Crect width='305' height='305' rx='23'/%3E%3Crect x='327.5' width='305' height='305' rx='23'/%3E%3Crect x='655' width='305' height='305' rx='23'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat}
@media(max-width:767px){
 .fig-pv{grid-template-columns:1fr;gap:16px}
 .fig-n{width:28px;height:28px;font-size:14px;line-height:28px}
 .fig-pill{font-size:11px;padding:3px 8px}
 .fig-labels{font-size:12px}
}
/* Template teaser (10/18): on desktop too, so the templates are one scroll below the maker instead of only in the footer. */
@media(min-width:768px){.home-page .mobile-templates{display:block;max-width:1200px;margin:48px auto 0;padding:0 24px}
.home-page.editing .mobile-templates{display:none}
.mobile-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:16px}
.mobile-section-heading h2{margin:0;font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.02em}
.mobile-section-heading>a{font-size:15px;font-weight:600}
.mobile-teaser-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.mobile-teaser{min-width:0;color:var(--text);text-decoration:none}
.mobile-teaser img{display:block;width:100%;height:auto;aspect-ratio:960/306;object-fit:cover;border-radius:12px;background:#111}
.mobile-teaser>span{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding-top:10px;font-size:15px;font-weight:600}
.mobile-teaser small{font-size:13px;font-weight:400;color:var(--muted)}
.mobile-teaser:hover>span{color:var(--brand)}}
