@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--bg:#111512;--panel:#1b211c;--ink:#f3f1e9;--muted:#a8afa5;--lime:#d5ed53;--border:#354034;color-scheme:dark}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--bg);color:var(--ink);font:15px 'DM Sans',Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--lime);outline-offset:4px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2{font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif}h2{font-size:42px;line-height:1.1}p{color:var(--muted);line-height:1.7}.topbar{height:96px;display:flex;align-items:center;justify-content:space-between;padding:0 6%;border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:25px;letter-spacing:2px}.brand small{display:block;font:9px Arial;letter-spacing:4px;margin-top:4px}.brand-mark{border:2px solid var(--ink);border-radius:50%;width:40px;height:40px;display:grid;place-items:center;font-style:italic}nav{display:flex;align-items:center;gap:32px;font-size:12px}.local-tag{color:var(--muted);letter-spacing:2px;font-size:9px}.hero{display:grid;grid-template-columns:1fr 1fr;min-height:670px}.hero-copy{padding:65px 12% 30px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;display:block;color:var(--lime);margin-bottom:23px}.eyebrow i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--lime);margin-right:8px}h1{font-size:clamp(66px,7.8vw,119px);line-height:.91;letter-spacing:-1px;margin-bottom:25px}h1 span{color:var(--lime)}.hero-copy p{font-size:14px}.button{background:var(--lime);color:#171d13;border:0;border-radius:3px;padding:18px 23px;display:inline-flex;align-items:center;justify-content:space-between;gap:35px;font-weight:700;font-size:13px}.hero-copy>.button{margin-top:29px}.button:hover{background:#e6fc76}.button span{font-size:21px}.hero-bottom{display:flex;gap:26px;align-items:center;margin-top:40px;font-size:9px;letter-spacing:2px;color:var(--muted)}.hero-bottom b{color:var(--ink)}.hero-media{position:relative;overflow:hidden;background:#273226;min-height:580px}.hero-media video{width:100%;height:100%;position:absolute;object-fit:cover}.media-shade{position:absolute;inset:0;background:linear-gradient(180deg,#0003 10%,transparent 40%,#071209d9)}.video-label{position:absolute;top:28px;left:30px;font-size:9px;letter-spacing:2px}.sound{position:absolute;right:22px;top:20px;border:1px solid #ffffff50;background:#0005;color:white;border-radius:30px;padding:9px 13px;font-size:11px}.hero-caption{position:absolute;bottom:37px;left:38px;right:38px}.hero-caption>span{font-size:9px;letter-spacing:2px}.hero-caption h2{font-size:57px;margin:12px 0 24px}.hero-caption>div{display:flex;justify-content:space-between;padding-top:18px;border-top:1px solid #ffffff50;font-size:9px;letter-spacing:2px}.ticker{background:var(--lime);color:#1c2413;display:flex;justify-content:space-around;align-items:center;padding:18px 0;font-size:10px;font-weight:800;letter-spacing:2px;gap:25px;overflow:hidden;white-space:nowrap}.ticker b{font-size:20px}.template-section{padding:70px 6%}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:30px}.section-heading .eyebrow{margin-bottom:12px}.section-heading p{font-size:13px}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.template-card{background:var(--panel);border:1px solid var(--border);border-radius:7px;overflow:hidden}.card-media{height:360px;position:relative;background:#293226}.card-media video{height:100%;width:100%;object-fit:cover}.card-badge{position:absolute;left:16px;top:16px;background:#101810b8;padding:7px 11px;border-radius:3px;font-size:9px;letter-spacing:1px}.card-time{position:absolute;right:15px;bottom:15px;background:#101810b8;border-radius:3px;padding:6px 9px;font-size:10px}.card-body{padding:23px}.card-body h3{font-size:19px;margin-bottom:9px}.card-body p{font-size:12px;min-height:40px}.card-body .button{width:100%;padding:14px 16px;margin-top:20px}.card-placeholder{border:1px dashed var(--border);border-radius:7px;display:flex;flex-direction:column;justify-content:center;padding:40px;background:radial-gradient(ellipse at bottom,#253121,transparent)}.card-placeholder .big{font-family:'Barlow Condensed',Impact,sans-serif;font-size:62px;color:#626e51;line-height:1}.card-placeholder h3{margin:28px 0 12px}.card-placeholder p{font-size:13px}.how{margin:0 6%;padding:50px 0 65px;display:grid;grid-template-columns:1fr 2fr;border-top:1px solid var(--border);gap:50px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.steps article>span{font-family:'Barlow Condensed',Impact,sans-serif;font-size:45px;color:#6c795f}.steps h3{font-size:15px;margin:16px 0 8px}.steps p{font-size:12px}footer{padding:35px 6%;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}footer .brand{font-size:18px;color:var(--ink)}footer>div{display:flex;align-items:center;gap:22px}.text-button{padding:0;background:none;color:inherit;border:0;text-decoration:underline;font-size:inherit}.quiet{border:1px solid var(--border);background:transparent;color:var(--ink);border-radius:4px;padding:12px 18px}.notice{background:#252c1b;border:1px solid #45502e;color:#d5ddb6;border-radius:4px;font-size:12px;padding:12px 16px;margin-bottom:25px}dialog{border:1px solid #46513f;background:#1a211a;color:var(--ink);border-radius:12px;padding:36px;width:min(490px,calc(100% - 28px));max-height:90vh;box-shadow:0 30px 100px #0009}dialog::backdrop{background:#050a08d9;backdrop-filter:blur(6px)}dialog h2{font-size:39px;margin-bottom:12px}dialog .eyebrow{margin-bottom:16px}dialog p{font-size:13px;margin-bottom:18px}.close{position:absolute;top:13px;right:17px;border:0;background:none;color:#bbc4b5;font-size:26px}.upload-zone{display:flex;align-items:center;justify-content:center;text-align:center;border:1px dashed #768463;border-radius:6px;min-height:180px;margin:23px 0;position:relative;overflow:hidden;background:#232d20;cursor:pointer}.upload-zone input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;z-index:1}.upload-zone b{display:block;font-size:29px;color:var(--lime);margin-bottom:8px}.upload-zone strong{display:block;font-size:14px;margin-bottom:8px}.upload-zone small{font-size:11px;color:var(--muted);line-height:1.7}.upload-zone img{max-height:220px;width:100%;object-fit:contain}.field{display:block;font-size:12px;font-weight:600;margin:18px 0}.field input,.field textarea,.field select,.phone{display:block;width:100%;background:#111811;border:1px solid var(--border);border-radius:4px;color:white;padding:13px;margin-top:9px}.phone{display:flex;align-items:center;gap:13px;padding:0 15px}.phone span{color:var(--muted);border-right:1px solid var(--border);padding-right:13px}.phone input{margin:0;border:0;background:none;min-width:0;padding:15px 0}.consent{display:flex;align-items:flex-start;gap:9px;color:var(--muted);font-size:10px;line-height:1.6}.consent input{accent-color:var(--lime);margin:3px 0}.full{width:100%;margin-top:16px}.hint{font-size:11px;color:#d0d9aa;margin-top:15px;line-height:1.6}.error{color:#ffb4a4!important;margin-top:12px!important}.loader{width:65px;height:65px;border:3px solid #3a4631;border-top-color:var(--lime);border-radius:50%;animation:spin 1s linear infinite;margin:35px auto}@keyframes spin{to{transform:rotate(360deg)}}#resultVideo{width:100%;max-height:420px;border-radius:7px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:14px 22px;background:var(--lime);color:#17200d;border-radius:5px;z-index:10;font-size:13px}.admin-wrap{max-width:1200px;margin:45px auto;padding:0 25px}.admin-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.admin-title p{font-size:13px;margin-top:12px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:25px 0}.stat,.admin-panel{border:1px solid var(--border);border-radius:6px;background:var(--panel);padding:24px}.stat b{font:42px 'Barlow Condensed',Impact,sans-serif;color:var(--lime);display:block}.stat span{font-size:12px;color:var(--muted)}.admin-tabs{display:flex;gap:10px;margin:30px 0 22px}.admin-tabs .active{background:var(--lime);color:#18200f}.admin-panel h3{margin-bottom:12px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th,td{text-align:left;padding:16px 12px;border-bottom:1px solid var(--border);white-space:nowrap}th{color:var(--muted);font-weight:500}.status{border:1px solid var(--border);border-radius:30px;padding:5px 10px;font-size:10px}.status.done{color:var(--lime)}.status.failed{color:#ffb4a4}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.admin-card{display:flex;align-items:center;gap:18px;border-bottom:1px solid var(--border);padding:20px 0}.admin-card img{width:65px;height:85px;object-fit:cover;border-radius:4px}.admin-card>div{flex:1}.admin-card p{font-size:11px}.admin-card h4{margin:0 0 8px}.settings{max-width:620px}.settings p{font-size:13px;margin:15px 0}.login{max-width:430px;margin:90px auto}.empty{padding:35px;text-align:center;color:var(--muted)}.row{display:flex;justify-content:space-between;align-items:center;gap:12px}.search{background:#111811;color:white;border:1px solid var(--border);padding:12px;border-radius:4px;min-width:220px}.admin-panel textarea{min-height:150px;resize:vertical}.admin-panel .eyebrow{margin-top:8px}
@media(min-width:1500px){.hero{min-height:790px}.hero-copy{padding-top:90px}}@media(max-width:800px){.topbar{height:75px;padding:0 6%}nav .local-tag{display:none}.brand{font-size:21px}.brand-mark{height:33px;width:33px}nav{gap:15px;font-size:10px}.hero{grid-template-columns:1fr 1fr;min-height:510px}.hero-copy{padding:45px 10% 30px}h1{font-size:65px}.hero-media{min-height:510px}.hero-copy p{font-size:12px}.hero-caption{left:22px;right:22px}.hero-caption h2{font-size:42px}.hero-copy .eyebrow{font-size:8px;letter-spacing:1px}.hero-copy>.button{font-size:11px;padding:15px;gap:15px}.hero-bottom{font-size:8px;gap:12px}.template-grid{grid-template-columns:repeat(2,1fr)}.card-placeholder:last-child{display:none}.section-heading h2{font-size:32px}.section-heading{align-items:start;gap:20px}.section-heading p{max-width:140px}.how{grid-template-columns:1fr;gap:30px}.how h2 br{display:none}.how h2{font-size:32px}footer>span{display:none}.admin-grid{grid-template-columns:1fr}}
@media(max-width:540px){.hero{display:flex;flex-direction:column}.hero-copy{padding:35px 7% 25px}.hero-copy h1{font-size:76px}.hero-copy h1 br:first-child{display:none}.hero-copy h1{line-height:.95}.hero-copy p{font-size:13px}.hero-bottom{margin-top:25px}.hero-media{min-height:440px;max-height:520px}.hero-media video{object-position:center}.hero-caption h2{font-size:47px}.hero-caption{bottom:28px;left:25px;right:25px}.video-label{left:25px;font-size:8px}.ticker{justify-content:start;padding:14px 20px;font-size:9px}.template-section{padding:42px 6%}.section-heading{display:block}.section-heading h2{font-size:35px}.section-heading p{max-width:none;margin-top:12px}.template-grid{grid-template-columns:1fr}.card-media{height:430px}.card-placeholder{min-height:260px}.card-placeholder:last-child{display:none}.steps{gap:14px}.steps h3{font-size:13px}.steps p{font-size:11px}.how{padding-bottom:40px;gap:22px}footer{gap:16px;padding:25px 6%}footer .brand{font-size:14px;display:block}footer .brand small{font-size:7px}footer>div{gap:15px;font-size:10px}dialog{padding:30px 22px}.admin-title{align-items:start;gap:15px}.admin-title h2{font-size:34px}.admin-title .quiet{font-size:11px;padding:10px}.stats{gap:8px}.stat{padding:16px}.stat b{font-size:34px}.stat span{font-size:10px}.admin-tabs{gap:6px}.admin-tabs button{padding:12px;font-size:12px}.admin-panel{padding:18px}.row{flex-wrap:wrap}.search{min-width:0;width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.loader{animation:none}}
/* Campaign flow */
.campaign{max-width:580px;margin:auto;padding:30px 22px 64px}.intro{text-align:center}.intro .eyebrow{margin-bottom:14px;font-size:9px}.intro h1{font-size:clamp(26px,6vw,36px);line-height:1.12;letter-spacing:.2px;margin-bottom:24px}.campaign-video{aspect-ratio:9/16;background:#20271f;border:1px solid var(--border);border-radius:10px;overflow:hidden}.campaign-video video{display:block;width:100%;height:100%;object-fit:contain}.intro>.button{text-align:left;margin-top:18px}.creator-section{margin-top:55px;border-top:1px solid var(--border);padding-top:36px;scroll-margin-top:24px}.creator-section h2{font-size:32px;margin-bottom:12px}.creator-section>p{font-size:13px}.creator-section .eyebrow{margin-bottom:12px}fieldset{border:0;padding:0;margin:0;min-width:0}.creator-section .upload-zone{min-height:240px}.creator-section .upload-zone img{max-height:340px}.processing-photo{position:relative;aspect-ratio:9/16;overflow:hidden;border-radius:8px;background:#253121;margin:24px 0}.processing-photo>img{width:100%;height:100%;object-fit:contain}.dot-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;background:#07120966}.dot-overlay i{width:14px;height:14px;border-radius:50%;background:var(--lime);animation:dotPulse 1.2s infinite}.dot-overlay i:nth-child(2){animation-delay:.2s}.dot-overlay i:nth-child(3){animation-delay:.4s}@keyframes dotPulse{0%,80%,100%{transform:scale(.6);opacity:.45}40%{transform:scale(1.2);opacity:1}}#resultVideo{width:100%;max-height:70vh;background:#000;border-radius:8px;margin-top:20px}.reference-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.reference-slot img{display:block;width:100%;height:130px;object-fit:contain;background:#111811;margin-top:10px}.reference-slot input{width:100%}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.dot-overlay i{animation:none}}@media(max-width:600px){.topbar{height:76px}.campaign{padding-top:24px}footer{gap:15px}.reference-grid{grid-template-columns:1fr}}

/* Keep the creator flow within narrow viewports and prevent iOS form auto-zoom. */
.campaign{width:100%;min-width:0}
.campaign section,.campaign form,.campaign fieldset,.campaign .field{min-width:0;max-width:100%}
.campaign video,.campaign img{max-width:100%}
.campaign .button,.campaign .quiet,.campaign p,.campaign h2{overflow-wrap:anywhere}
.campaign .phone input{flex:1 1 0;width:0;min-width:0}
@media(max-width:600px){
  .topbar{height:auto;min-height:76px;gap:12px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
  .topbar .brand{flex-shrink:0}
  .topbar nav{min-width:0;max-width:100%}
  .topbar #install{padding:10px 12px;font-size:12px}
  .campaign input,.campaign select,.campaign textarea{font-size:16px}
  .campaign .button,.campaign .quiet{max-width:100%;white-space:normal;gap:16px}
  .campaign-video{width:100%;min-width:0}
  footer{flex-wrap:wrap}
}

/* Fixed portrait framing; preserve the entire generated frame. */
#resultVideo{aspect-ratio:9/16;object-fit:contain}
#cropDialog{width:min(440px,calc(100% - 24px));max-height:94vh;max-height:94dvh;padding:20px;overflow:auto}
#cropDialog h2{font-size:28px;margin-bottom:8px}
#cropDialog p{margin-bottom:12px}
#cropCanvas{display:block;width:auto;max-width:100%;height:45vh;height:45dvh;aspect-ratio:9/16;margin:auto;background:#111;touch-action:none;cursor:grab;border:1px solid var(--border)}
#cropCanvas:active{cursor:grabbing}
.crop-actions{display:flex;justify-content:space-between;gap:12px}
.crop-actions button{min-height:44px;white-space:normal;padding:12px 16px}
#cropError:empty{display:none}
body:has(#cropDialog[open]){overflow:hidden}

.crop-stage{position:relative;width:fit-content;max-width:100%;margin:16px auto 20px}
.crop-grid{position:absolute;inset:0;pointer-events:none;border:1px solid #fff9;background:linear-gradient(to right,transparent calc(33.333% - .5px),#fff5 33.333%,transparent calc(33.333% + .5px),transparent calc(66.666% - .5px),#fff5 66.666%,transparent calc(66.666% + .5px)),linear-gradient(to bottom,transparent calc(33.333% - .5px),#fff5 33.333%,transparent calc(33.333% + .5px),transparent calc(66.666% - .5px),#fff5 66.666%,transparent calc(66.666% + .5px))}
#heroVideo::-webkit-media-controls{display:none!important}

.topbar .install-app{background:var(--lime);color:#171d13;border:0;font-weight:700;white-space:nowrap}
#installDialog{max-width:440px}
#installDialog h2{font-size:32px;padding-right:20px}
#installSteps{padding-left:22px;margin:20px 0;line-height:1.6}
#installSteps li{padding-left:4px;margin:12px 0}
@media(max-width:380px){.topbar{padding-left:16px;padding-right:16px;gap:8px}.topbar .brand{font-size:18px;gap:8px;letter-spacing:1px}.topbar .brand small{letter-spacing:3px;font-size:8px}.topbar .brand-mark{width:30px;height:30px}.topbar #install{font-size:11px;padding:11px 10px}}

.campaign-video{position:relative}.preview-sound{position:absolute;right:12px;bottom:12px;min-height:44px;padding:10px 16px;border:1px solid #ffffff70;border-radius:24px;background:#101710e8;color:#fff;font:inherit;font-size:13px;cursor:pointer}.preview-sound:focus-visible{outline:3px solid var(--lime);outline-offset:3px}

.template-actions{display:flex;gap:8px;flex-shrink:0}.template-delete{color:#ffb4a4;border-color:#8b4a40}.admin-card>div{min-width:0}.admin-card h4{overflow-wrap:anywhere}@media(max-width:480px){.admin-card{gap:10px;flex-wrap:wrap}.template-actions{margin-left:auto}}
