/* Dime Dime Baby IA – site styles. No framework, no build step. */
:root{
  --pink:#ff3d8b; --orange:#ff8a3d; --purple:#7b3cff; --yellow:#ffd23f; --teal:#18c4b3;
  --ink:#1d1430; --muted:#5b5270; --line:#ece6f5; --bg:#fff8fb; --card:#fff;
  --grad:linear-gradient(95deg,var(--pink),var(--orange));
  --grad-soft:linear-gradient(135deg,#fff0f7 0%,#fff4e8 55%,#f3edff 100%);
  --radius:18px; --radius-sm:12px; --shadow:0 8px 28px rgba(80,30,120,.10);
  --head:"Baloo 2",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --body:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--body);color:var(--ink);background:var(--bg);line-height:1.6;font-size:17px}
img,svg,video{max-width:100%;display:block}
a{color:#c4005a}
a:hover{color:var(--purple)}
:focus-visible{outline:3px solid var(--purple);outline-offset:3px;border-radius:6px}
h1,h2,h3{font-family:var(--head);line-height:1.15;margin:0 0 .5em;letter-spacing:-.01em}
h1{font-size:clamp(2.1rem,4.6vw,3.4rem);font-weight:800}
h2{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:800}
h3{font-size:1.2rem;font-weight:700}
p{margin:0 0 1em}
.container{width:min(1160px,92vw);margin:0 auto}
.narrow{width:min(780px,92vw);margin:0 auto}
.skip{position:absolute;left:-999px;top:0;background:#fff;padding:.6em 1em;z-index:99}
.skip:focus{left:1rem}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.grad-text{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.squiggle::after{content:" ✦";color:var(--orange);font-size:.7em;vertical-align:super}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;gap:1.2rem;height:64px}
.logo{display:flex;align-items:center;gap:.45rem;font-family:var(--head);font-weight:800;font-size:1.25rem;color:var(--ink);text-decoration:none;white-space:nowrap}
.logo svg{width:30px;height:30px}
.nav-links{display:flex;gap:1.1rem;margin-left:auto;list-style:none;padding:0;margin-block:0}
.nav-links a{color:var(--ink);text-decoration:none;font-weight:600;font-size:.95rem}
.nav-links a:hover{color:var(--pink)}
.lang{display:flex;gap:.3rem;font-size:.85rem;font-weight:700}
.lang a{padding:.25em .6em;border-radius:99px;text-decoration:none;color:var(--muted);border:1px solid var(--line)}
.lang a[aria-current="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.menu-btn{display:none;margin-left:auto;background:none;border:1px solid var(--line);border-radius:10px;padding:.4em .7em;font-size:1.1rem;cursor:pointer}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;font-weight:700;font-size:1rem;padding:.85em 1.5em;border-radius:14px;text-decoration:none;border:0;cursor:pointer;font-family:inherit;transition:transform .15s, box-shadow .15s}
.btn-primary{background:var(--grad);color:#fff;box-shadow:0 8px 22px rgba(255,61,139,.35)}
.btn-primary:hover{color:#fff;transform:translateY(-2px)}
.btn-ghost{background:#fff;color:var(--ink);border:2px solid var(--line)}
.btn-ghost:hover{border-color:var(--pink);color:var(--ink)}
.btn-sm{padding:.55em 1.1em;font-size:.9rem;border-radius:12px}
.btn[disabled],.btn[aria-disabled="true"]{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}

/* Hero */
.hero{background:var(--grad-soft);padding:3.2rem 0 3.6rem;position:relative;overflow:hidden}
.hero::before,.hero::after{content:"";position:absolute;border-radius:50%;filter:blur(2px);opacity:.5}
.hero::before{width:220px;height:220px;background:radial-gradient(#ffd6e8,transparent 70%);top:-60px;left:-60px}
.hero::after{width:260px;height:260px;background:radial-gradient(#ffe2c4,transparent 70%);bottom:-90px;right:10%}
.hero-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:2.5rem;align-items:center;position:relative;z-index:1}
.eyebrow{display:inline-block;font-weight:800;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--pink);background:#fff;padding:.35em .9em;border-radius:99px;margin-bottom:1rem;box-shadow:var(--shadow)}
.lead{font-size:1.15rem;color:var(--muted);max-width:34em}
.hero-ctas{display:flex;gap:.8rem;flex-wrap:wrap;margin:1.4rem 0}
.chips{display:flex;gap:.6rem;flex-wrap:wrap;list-style:none;padding:0;margin:0}
.chips li{background:#fff;border:1px solid var(--line);border-radius:99px;padding:.35em .9em;font-size:.88rem;font-weight:600}
.demo{display:grid;grid-template-columns:auto 50px 1fr;align-items:center;gap:.6rem}
.demo-photo{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:.7rem;width:150px;transform:rotate(-4deg)}
.demo-photo small{display:block;text-align:center;font-weight:700;font-size:.78rem;color:var(--muted);margin-bottom:.4rem}
.demo-arrow{font-size:2rem;text-align:center;color:var(--orange)}
.phone{aspect-ratio:9/16;width:min(250px,100%);border-radius:26px;border:8px solid #1d1430;background:linear-gradient(160deg,#ff5fa2,#ff9a4d 55%,#7b3cff);position:relative;overflow:hidden;box-shadow:0 20px 40px rgba(60,20,90,.25);margin-inline:auto}
.phone .lights{position:absolute;inset:0;background:radial-gradient(circle at 20% 15%,#fff7 0 4px,transparent 5px),radial-gradient(circle at 50% 10%,#ffd23f 0 4px,transparent 5px),radial-gradient(circle at 80% 18%,#fff7 0 4px,transparent 5px),radial-gradient(circle at 35% 25%,#ffd23f 0 3px,transparent 4px),radial-gradient(circle at 65% 28%,#fff7 0 3px,transparent 4px)}
.phone .fig{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:70%}
.badge{position:absolute;background:#fff;border-radius:99px;padding:.3em .8em;font-size:.78rem;font-weight:800;box-shadow:var(--shadow)}
.badge-top{top:12px;left:12px}
.badge-bottom{bottom:12px;left:50%;transform:translateX(-50%);white-space:nowrap}
.play{position:absolute;top:45%;left:50%;transform:translate(-50%,-50%);width:62px;height:62px;border-radius:50%;background:rgba(255,255,255,.9);display:grid;place-items:center}
.play::before{content:"";border-left:18px solid var(--pink);border-top:11px solid transparent;border-bottom:11px solid transparent;margin-left:5px}

/* Sections */
section{padding:3.6rem 0}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.6rem;flex-wrap:wrap}
.section-head p{color:var(--muted);margin:0}
.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--line);padding:1.4rem}
.alt{background:#fff}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem}
.step{display:flex;gap:1rem;align-items:flex-start}
.step-num{flex:none;width:44px;height:44px;border-radius:50%;background:var(--grad);color:#fff;font-weight:800;display:grid;place-items:center;font-size:1.2rem}
.step h3{margin-bottom:.25em}
.step p{margin:0;color:var(--muted);font-size:.95rem}
.ico{font-size:1.7rem;width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:#fff0f7;margin-bottom:.7rem}
.feature p{color:var(--muted);font-size:.95rem;margin:0}
.more-link{font-weight:700}

/* Template / example cards */
.tpl-card{text-decoration:none;border-radius:var(--radius);overflow:hidden;position:relative;aspect-ratio:3/4;display:flex;flex-direction:column;justify-content:flex-end;color:#fff;box-shadow:var(--shadow)}
.tpl-card .art{position:absolute;inset:0;display:grid;place-items:center;font-size:4.2rem}
.tpl-card .meta{position:relative;padding:1rem;background:linear-gradient(transparent,rgba(29,20,48,.75))}
.tpl-card:hover{color:#fff;transform:translateY(-3px)}
.tpl-card .meta span{display:block;font-size:.9rem}
.tpl-card .meta strong{font-family:var(--head);font-size:1.25rem;display:block}
.tpl-card .soon{position:absolute;top:10px;right:10px;background:rgba(255,255,255,.92);color:var(--ink);font-size:.72rem;font-weight:800;padding:.25em .7em;border-radius:99px}
.t-cowboy{background:linear-gradient(160deg,#ffb35c,#d9572b)}
.t-party{background:linear-gradient(160deg,#ff5fa2,#7b3cff)}
.t-pet{background:linear-gradient(160deg,#36d1c4,#3c7bff)}
.t-classic{background:linear-gradient(160deg,#ffd23f,#ff3d8b)}

/* Generator workspace */
.workspace{display:grid;grid-template-columns:1.1fr 1fr;gap:1.4rem;align-items:start}
.ws-panel h3{display:flex;align-items:center;gap:.5rem}
.ws-label{font-weight:800;font-size:.85rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:1rem 0 .5rem;display:block}
.dropzone{border:2.5px dashed #f3a6c8;border-radius:var(--radius);background:#fff7fb;padding:1.4rem;text-align:center;cursor:pointer;transition:background .15s,border-color .15s;position:relative}
.dropzone:hover,.dropzone.is-drag{background:#ffeef6;border-color:var(--pink)}
.dropzone input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.dropzone .dz-icon{font-size:2.2rem}
.dropzone p{margin:.3rem 0;color:var(--muted);font-size:.92rem}
.preview{display:none;align-items:center;gap:1rem;margin-top:.8rem}
.preview.is-visible{display:flex}
.preview img{width:84px;height:84px;object-fit:cover;border-radius:12px;border:2px solid #fff;box-shadow:var(--shadow)}
.msg{font-size:.9rem;margin-top:.6rem;min-height:1.4em}
.msg.is-error{color:#b00034;font-weight:700}
.msg.is-ok{color:#08704f;font-weight:700}
.tpl-picker{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem;border:0;padding:0;margin:0}
.tpl-option{position:relative}
.tpl-option input{position:absolute;opacity:0}
.tpl-option label{display:flex;align-items:center;gap:.6rem;border:2px solid var(--line);border-radius:var(--radius-sm);padding:.6rem .8rem;cursor:pointer;font-weight:700;background:#fff}
.tpl-option label span.e{font-size:1.4rem}
.tpl-option input:checked+label{border-color:var(--pink);background:#fff0f7}
.tpl-option input:focus-visible+label{outline:3px solid var(--purple);outline-offset:2px}
.consent{display:flex;gap:.6rem;align-items:flex-start;font-size:.9rem;margin:1rem 0;color:var(--muted)}
.consent input{margin-top:.3rem;width:18px;height:18px;accent-color:var(--pink)}
.reqs{font-size:.88rem;color:var(--muted);padding-left:1.1rem;margin:.4rem 0 0}
.result-frame{aspect-ratio:9/16;width:min(260px,100%);margin:0 auto;border-radius:22px;background:linear-gradient(160deg,#2a1d45,#4a2c7a);display:grid;place-items:center;color:#fff;text-align:center;padding:1rem;position:relative;overflow:hidden}
.result-frame video{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.status{display:flex;align-items:center;gap:.6rem;font-weight:700;margin:.8rem 0}
.status .dot{width:12px;height:12px;border-radius:50%;background:#bbb}
[data-state="uploading"] .status .dot,[data-state="generating"] .status .dot{background:var(--orange);animation:pulse 1s infinite}
[data-state="done"] .status .dot{background:#18a86b}
[data-state="error"] .status .dot{background:#d10040}
@keyframes pulse{50%{opacity:.3}}
.progress{height:10px;border-radius:99px;background:var(--line);overflow:hidden}
.progress > div{height:100%;width:0;background:var(--grad);transition:width .3s}
.ws-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}
.spec{font-size:.88rem;color:var(--muted);background:#faf7ff;border-radius:var(--radius-sm);padding:.8rem 1rem;margin-top:1rem}
.demo-note{font-size:.8rem;color:var(--muted);margin-top:.6rem}

/* Pricing */
.price-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem;align-items:stretch}
.price{text-align:center;display:flex;flex-direction:column;gap:.5rem;position:relative}
.price.is-featured{border:2px solid var(--pink);transform:translateY(-6px)}
.price .tag{position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:var(--grad);color:#fff;font-size:.72rem;font-weight:800;padding:.25em .8em;border-radius:99px;white-space:nowrap}
.price .amount{font-family:var(--head);font-size:2.2rem;font-weight:800}
.price ul{list-style:none;padding:0;margin:.4rem 0 1rem;font-size:.92rem;color:var(--muted);text-align:left}
.price li::before{content:"✓ ";color:#18a86b;font-weight:800}
.price .btn{margin-top:auto}
.placeholder-note{text-align:center;font-weight:700;color:#8a4b00;background:#fff3dc;border-radius:var(--radius-sm);padding:.6rem 1rem;margin:0 auto 1.4rem;max-width:620px;font-size:.92rem}

/* FAQ */
.faq{display:grid;gap:.7rem}
.faq details{background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);padding:.2rem 1.1rem}
.faq summary{cursor:pointer;font-weight:700;padding:.8rem 0;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.3rem;color:var(--pink);line-height:1}
.faq details[open] summary::after{content:"–"}
.faq details p{color:var(--muted)}

/* CTA banner */
.cta-banner{background:linear-gradient(100deg,#ffe0ee,#ffe9d6 50%,#efe5ff);border-radius:28px;padding:2.6rem 1.5rem;text-align:center;position:relative;overflow:hidden}
.cta-banner .deco{position:absolute;font-size:2.6rem;opacity:.85}
.cta-banner .d1{left:5%;top:20%}.cta-banner .d2{right:6%;top:18%}.cta-banner .d3{left:14%;bottom:12%}.cta-banner .d4{right:15%;bottom:12%}

/* Article */
.article-hero{background:var(--grad-soft);padding:2.4rem 0 2rem}
.crumbs{font-size:.88rem;color:var(--muted);margin-bottom:.8rem}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;padding:0;margin:0}
.crumbs li+li::before{content:"›";margin-right:.4rem}
.answer{font-size:1.12rem;background:#fff;border-left:5px solid var(--pink);border-radius:0 var(--radius-sm) var(--radius-sm) 0;padding:1rem 1.2rem;box-shadow:var(--shadow)}
.prose{padding:2.4rem 0}
.prose h2{margin-top:2rem;font-size:1.7rem}
.prose h3{margin-top:1.4rem}
.prose ul,.prose ol{padding-left:1.3rem}
.prose li{margin-bottom:.4rem}
.prose table{width:100%;border-collapse:collapse;margin:1rem 0;background:#fff;border-radius:var(--radius-sm);overflow:hidden;font-size:.95rem}
.prose th,.prose td{border:1px solid var(--line);padding:.6rem .8rem;text-align:left;vertical-align:top}
.prose th{background:#fff0f7}
.callout{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem 1.3rem;margin:1.4rem 0;box-shadow:var(--shadow)}
.callout.warn{background:#fff8e6;border-color:#ffe1a3}
.tool-cta{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;background:var(--grad);color:#fff;border-radius:var(--radius);padding:1.2rem 1.4rem;margin:1.6rem 0}
.tool-cta p{margin:0;font-weight:700;font-size:1.05rem}
.tool-cta .btn{background:#fff;color:var(--pink)}
.meta-line{font-size:.85rem;color:var(--muted)}

/* TikTok click-to-load */
.tt-embed{max-width:340px;margin:1.4rem auto}
.tt-poster{width:100%;aspect-ratio:9/16;border:0;border-radius:18px;background:linear-gradient(160deg,#111,#2b2b2b);color:#fff;position:relative;cursor:pointer;display:grid;place-items:center;font:inherit}
.tt-poster .tt-btn{width:72px;height:72px;border-radius:50%;background:#fe2c55;display:grid;place-items:center;box-shadow:-4px 0 0 #25f4ee}
.tt-poster .tt-btn::before{content:"";border-left:22px solid #fff;border-top:13px solid transparent;border-bottom:13px solid transparent;margin-left:6px}
.tt-poster .tt-cap{position:absolute;bottom:14px;left:14px;right:14px;font-size:.85rem;text-align:left}
.tt-embed iframe{width:100%;aspect-ratio:9/16;border:0;border-radius:18px}
.tt-credit{font-size:.82rem;color:var(--muted);text-align:center;margin-top:.5rem}

/* Footer */
.site-footer{background:#1d1430;color:#d9d2e6;padding:2.6rem 0 1.6rem;margin-top:2rem;font-size:.92rem}
.site-footer a{color:#fff}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem}
.foot-grid ul{list-style:none;padding:0;margin:0;display:grid;gap:.4rem}
.foot-grid h2{font-size:1rem;color:#fff}
.disclaimer{border-top:1px solid #3a2f52;margin-top:1.6rem;padding-top:1rem;font-size:.85rem;color:#b9b0cc}

/* Responsive */
@media (max-width:960px){
  .hero-grid,.workspace{grid-template-columns:1fr}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .grid-3,.price-grid{grid-template-columns:1fr}
  .price.is-featured{transform:none}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  body{font-size:16px}
  .menu-btn{display:block}
  .nav{flex-wrap:wrap;height:auto;padding:.6rem 0;gap:.5rem}
  .logo{font-size:1.1rem}
  .nav-links{display:none;width:100%;flex-direction:column;gap:.2rem;margin:0;order:3}
  .nav-links.is-open{display:flex}
  .nav-links a{display:block;padding:.5rem 0}
  .nav .lang{order:1;margin-left:auto}
  .menu-btn{order:2;margin-left:.5rem}
  .nav > .btn{display:none}
  .demo{grid-template-columns:1fr;justify-items:center}
  .demo-arrow{transform:rotate(90deg)}
  .demo-photo{width:130px}
  .phone{width:210px}
  .foot-grid{grid-template-columns:1fr}
  section{padding:2.6rem 0}
}
@media (max-width:420px){ .grid-4{grid-template-columns:1fr 1fr;gap:.7rem} .tpl-card .art{font-size:3rem} .tpl-picker{grid-template-columns:1fr} }
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Tool-first hero (generator above the fold) */
.tool-hero{padding:1.1rem 0 1.6rem}
.tool-head{margin-bottom:.9rem}
.tool-head h1{font-size:clamp(1.7rem,3.2vw,2.5rem);margin:0 0 .2rem}
.tool-head .lead{margin:0;font-size:1.02rem;max-width:none}
.tool-hero .workspace{grid-template-columns:1fr 1fr .85fr;gap:1rem}
.tool-hero .ws-panel{padding:1rem 1.1rem}
.ws-h{font-family:var(--head);font-size:1.05rem;font-weight:800;margin:0 0 .6rem;padding:0;color:var(--ink);text-transform:none;letter-spacing:0}
.tool-hero .dropzone{padding:1rem .8rem}
.tool-hero .dropzone .dz-icon{font-size:1.8rem}
.tool-hero .reqs{font-size:.82rem}
.tool-hero .reqs li{margin-bottom:.15rem}
.tool-hero .msg{margin:.4rem 0;min-height:1.2em}
.tool-hero .tpl-picker{grid-template-columns:1fr;gap:.5rem}
.tool-hero .tpl-option label{padding:.5rem .7rem}
.tool-hero .consent{margin:.8rem 0;font-size:.84rem}
.tool-hero .status{margin:.2rem 0 .5rem;font-size:.9rem}
.tool-hero .result-frame{width:min(190px,100%);margin-top:.7rem;font-size:.88rem}
.tool-hero .spec{margin:.9rem 0 0;font-size:.84rem;background:rgba(255,255,255,.7)}
@media (max-width:960px){.tool-hero .workspace{grid-template-columns:1fr 1fr}.tool-hero .ws-result{grid-column:1/-1}}
@media (max-width:760px){.tool-hero{padding-top:.8rem}.tool-hero .workspace{grid-template-columns:1fr}.tool-hero .tpl-picker{grid-template-columns:1fr 1fr}}
@media (max-width:420px){.tool-hero .tpl-picker{grid-template-columns:1fr 1fr}.tool-hero .tpl-option label{font-size:.88rem;padding:.45rem .5rem}}

/* Template option description + example videos */
.tpl-desc{display:block;font-weight:500;font-size:.82rem;color:var(--muted)}
.ex-grid{display:grid;grid-template-columns:repeat(2,minmax(0,300px));gap:1.4rem;justify-content:center}
.ex-video{margin:0;padding:.8rem;position:relative}
.ex-video video{width:100%;aspect-ratio:9/16;object-fit:cover;border-radius:14px;background:linear-gradient(160deg,#ff5fa2,#ff9a4d 55%,#7b3cff)}
.ex-label{position:absolute;top:1.3rem;left:1.3rem;z-index:1;background:rgba(255,255,255,.92);font-size:.75rem;font-weight:800;padding:.25em .7em;border-radius:99px;pointer-events:none}
.ex-video figcaption{font-size:.9rem;color:var(--muted);margin-top:.6rem;text-align:center}
@media (max-width:560px){.ex-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.ex-video{padding:.5rem}.ex-label{top:.9rem;left:.9rem;font-size:.65rem}}
.ex-grid{grid-template-columns:minmax(0,320px)}
@media (max-width:560px){.ex-grid{grid-template-columns:minmax(0,300px)}}
.result-empty{position:absolute;inset:0}
.result-ex{width:100%;height:100%;object-fit:cover;opacity:.55}
.result-cap{position:absolute;left:.6rem;right:.6rem;bottom:.6rem;margin:0;background:rgba(29,20,48,.78);color:#fff;border-radius:10px;padding:.4rem .5rem;font-size:.8rem;font-weight:700}
.result-frame .badge{color:var(--ink)}
.ex-grid{grid-template-columns:min(320px,100%)}
.ex-video video{height:auto}
@media (max-width:560px){.ex-grid{grid-template-columns:min(300px,100%)}}
@media (max-width:760px){.tool-hero .tpl-picker{grid-template-columns:1fr}}

/* Illustrations */
.fig{margin:1.4rem 0}
.fig img{width:100%;height:auto;border-radius:var(--radius);box-shadow:var(--shadow);background:#fff}
.fig figcaption{font-size:.88rem;color:var(--muted);margin-top:.5rem;text-align:center}
.fig-narrow{max-width:420px;margin-inline:auto}
.what-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:2.4rem;align-items:center}
.what-grid .tt-embed{margin-top:0;max-width:320px}
.step-card{padding:0;overflow:hidden;display:flex;flex-direction:column}
.step-img{width:100%;height:190px;object-fit:cover;object-position:top center;background:#fff3f8;border-bottom:1px solid var(--line)}
.step-card .step{padding:1.1rem 1.2rem}
.tips{display:grid;grid-template-columns:1.3fr 1fr;gap:1.6rem;align-items:center;margin-top:1.4rem}
.tips img{width:100%;height:auto;border-radius:var(--radius-sm)}
.tips-list{list-style:none;padding:0;margin:.4rem 0 1rem;display:grid;gap:.35rem}
.frame-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:.7rem;margin:1rem 0 .3rem}
.frame-strip figure{margin:0}
.frame-strip img{width:100%;height:auto;aspect-ratio:9/16;object-fit:cover;border-radius:12px;box-shadow:var(--shadow)}
.frame-strip figcaption{font-size:.78rem;text-align:center;color:var(--muted);margin-top:.3rem}
/* TikTok poster card */
.tt-poster{background:radial-gradient(circle at 30% 20%,#3a1f4d 0,transparent 55%),radial-gradient(circle at 80% 85%,#123a45 0,transparent 50%),linear-gradient(160deg,#121212,#262626);min-height:300px}
.tt-poster:hover .tt-btn,.tt-poster:focus-visible .tt-btn{transform:scale(1.08)}
.tt-btn{transition:transform .15s}
.tt-logo{position:absolute;top:14px;left:14px;font-weight:800;font-size:.9rem;letter-spacing:.02em;text-shadow:-2px 0 #25f4ee,2px 0 #fe2c55}
.tt-credit a{font-weight:700}
@media (max-width:960px){.what-grid,.tips{grid-template-columns:1fr}.what-grid .tt-embed{margin-inline:auto}}
@media (max-width:560px){.frame-strip{grid-template-columns:repeat(2,1fr)}}

/* Pricing (real catalog) */
.policy-note{text-align:center;max-width:680px;margin:0 auto 1.2rem;color:var(--muted);font-size:.95rem}
.billing-toggle{display:flex;justify-content:center;gap:0;margin:0 auto 1.6rem;background:#fff;border:1px solid var(--line);border-radius:99px;padding:4px;width:max-content}
.billing-toggle button{border:0;background:none;font:inherit;font-weight:700;padding:.5em 1.3em;border-radius:99px;cursor:pointer;color:var(--muted)}
.billing-toggle button[aria-pressed="true"]{background:var(--grad);color:#fff}
.pricing[data-billing="monthly"] .bill-yearly,.pricing[data-billing="yearly"] .bill-monthly{display:none}
.price .amount small{font-size:1rem;font-weight:600;color:var(--muted)}
.price button.btn{margin-top:auto}
.packs-title{text-align:center;margin:2.6rem 0 .2rem;font-size:1.4rem}
.packs-sub{text-align:center;color:var(--muted);margin-bottom:1.2rem}
.pack-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.pack{text-align:center;position:relative;display:flex;flex-direction:column;gap:.2rem}
.pack.is-featured{border:2px solid var(--pink)}
.pack .tag{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:var(--grad);color:#fff;font-size:.72rem;font-weight:800;padding:.25em .8em;border-radius:99px}
.pack .amount{font-family:var(--head);font-size:1.8rem;font-weight:800}
.pack-credits{font-weight:700;margin:0}
.pack .btn{margin-top:.6rem}
.more-packs{margin-top:1rem}
.more-packs summary{cursor:pointer;font-weight:700;text-align:center;color:#c4005a;padding:.6rem;list-style:none}
.more-packs summary::-webkit-details-marker{display:none}
.more-packs summary::after{content:" ▾"}
.more-packs[open] summary::after{content:" ▴"}
@media (max-width:760px){.pack-grid{grid-template-columns:1fr}}

.tt-poster{overflow:hidden;padding:0}
.tt-poster .tt-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.tt-poster::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.35) 0,transparent 22%,transparent 62%,rgba(0,0,0,.7) 100%);border-radius:inherit}
.tt-poster .tt-btn,.tt-poster .tt-logo,.tt-poster .tt-cap{z-index:1}
.tt-poster .tt-cap{text-shadow:0 1px 3px rgba(0,0,0,.6)}

/* "Your video" panel comes first at every width (desktop: Your video | Upload | Template; mobile/tablet: stacked on top, compact). */
/* DOM order is already preview first, then the single control card. */
.tool-hero .workspace{grid-template-columns:300px minmax(0,1fr)}
@media (max-width:960px){.tool-hero .workspace{grid-template-columns:1fr}}
/* Single control card: 1. upload (dropzone + compact tips side by side) then 2. template, consent, generate */
.ws-sub-h{font-size:.98rem;margin:0 0 .5rem}
.ws-control .ws-template{border-top:1px dashed rgba(255,95,162,.35);margin-top:.7rem;padding-top:.7rem}
.ws-control .tpl-picker{margin:0;border:0;padding:0}
@media (min-width:761px){
 .ws-control .ws-upload{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:1rem;align-items:start}
 .ws-control .ws-upload>.ws-sub-h,.ws-control .ws-upload>.msg{grid-column:1/-1}
 .ws-control .ws-upload>.dropzone,.ws-control .ws-upload>.preview{grid-column:1}
 .ws-control .ws-upload>.reqs{grid-column:2;grid-row:2/span 2;margin:0;align-self:center}
 .ws-control .ws-template{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:1rem;align-items:center}
 .ws-control .ws-template>.tpl-picker{grid-column:1}
 .ws-control .ws-template>.consent{grid-column:2;margin:0}
 .ws-control .ws-template>[data-dg=generate],.ws-control .ws-template>.msg,.ws-control .ws-template>.demo-note{grid-column:1/-1}
 .ws-control .ws-template>[data-dg=generate]{margin-top:.7rem}
 .ws-control .demo-note{margin:.2rem 0 0}
}
@media (max-width:960px){
 .tool-hero .ws-result{display:grid;grid-template-columns:84px 1fr;column-gap:.9rem;align-items:center;padding:.75rem .9rem}
 .tool-hero .ws-result>*{grid-column:2}
 .tool-hero .ws-result .ws-h{margin:0 0 .2rem}
 .tool-hero .ws-result .status{margin:0 0 .35rem;font-size:.84rem}
 .tool-hero .ws-result .progress{margin:0}
 .tool-hero .ws-result .result-frame{grid-column:1;grid-row:1/span 4;width:84px;margin:0;padding:0;border-radius:12px;align-self:start}
 .tool-hero .ws-result .result-cap{display:none}
 .tool-hero .ws-result .badge-top{top:5px;left:5px;font-size:.6rem;padding:.1rem .35rem}
 .tool-hero .ws-result [data-dg=download]{margin-top:.45rem!important;padding:.45rem .8rem}
 #dime-generator[data-state=done] .ws-result{grid-template-columns:140px 1fr}
 #dime-generator[data-state=done] .ws-result .result-frame{width:140px}
}

/* Examples: two cards as a centered pair; swipe row on small phones */
.ex-grid.ex-n2{grid-template-columns:repeat(2,min(300px,calc(50% - .7rem)));gap:1.4rem;justify-content:center}
@media (max-width:560px){
 .ex-grid.ex-n2{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:.8rem;padding:0 1rem .6rem;margin:0 -1rem;justify-content:flex-start;-webkit-overflow-scrolling:touch}
 .ex-grid.ex-n2 .ex-video{flex:0 0 78%;max-width:300px;scroll-snap-align:center}
}

/* Preview panel: idle = pure example showcase; working states = status + progress; done = user video + download */
.ws-h-active{display:none}
.ws-ex-note{display:none;margin:0 0 .4rem;font-size:.82rem;color:var(--muted)}
#dime-generator[data-state=idle] .ws-h-idle{display:inline}
#dime-generator:not([data-state=idle]) .ws-h-idle{display:none}
#dime-generator:not([data-state=idle]) .ws-h-active{display:inline}
#dime-generator[data-state=idle] .ws-ex-note{display:block}
#dime-generator[data-state=idle] .ws-result [data-dg=status],
#dime-generator[data-state=idle] .ws-result .progress,
#dime-generator[data-state=done] .ws-result .progress,
#dime-generator:not([data-state=done]) .ws-result [data-dg=download]{display:none!important}
.result-ex{opacity:1}
#dime-generator:not([data-state=idle]) .result-ex{opacity:.45}
.tool-hero .ws-result .result-frame{margin-top:.3rem}
@media (min-width:961px){.tool-hero .ws-result .result-frame{width:min(230px,100%)}}
@media (max-width:960px){
 .tool-hero .ws-result{grid-template-columns:96px 1fr}
 .tool-hero .ws-result .result-frame{width:96px}
}

/* FAQ questions are H3s inside <summary>; keep the summary look */
.faq summary .faq-q{display:inline;font:inherit;margin:0;padding:0;color:inherit;letter-spacing:inherit}
/* Inline citations + sources list */
sup.cite{font-size:.68em;line-height:0;margin-left:.1em;white-space:nowrap}
sup.cite a{text-decoration:none;font-weight:700;color:var(--muted)}
sup.cite a:hover{color:var(--pink,#ff3d8b);text-decoration:underline}
.sources{margin-top:2.2rem;padding-top:1rem;border-top:1px solid var(--line)}
.sources ol{font-size:.88rem;padding-left:1.3rem}
.sources li{margin-bottom:.45rem;overflow-wrap:anywhere}
.sources li:target{background:#fff3c4;border-radius:6px}

/* 仅调整首屏案例卡片，保留上传与模板区域。 */
.tool-hero .ws-showcase{display:block;padding:0;overflow:hidden;align-self:start}
.tool-hero .ws-showcase .result-frame{width:100%;margin:0;padding:0;border-radius:inherit}
.tool-hero .ws-showcase .status,
.tool-hero .ws-showcase .progress,
.tool-hero .ws-showcase [data-dg=download]{display:none!important}
@media(max-width:960px){
 .tool-hero .ws-showcase{width:min(100%,340px);justify-self:center}
 .tool-hero .ws-showcase .result-frame{width:100%;margin:0;grid-column:auto;grid-row:auto}
}
