/* SocialShot UI: the dashboard's look, shared by every page outside the app
   (the website, sign-in, sign-up, password reset and the admin dashboard).
   One graded grey scale where each layer is one step lighter than the one behind it, and one lit colour:
   the accent, only on the main action and on what is chosen. Depth comes from a lighter surface, never a shadow.
   s0 the window behind everything, s1 the page, s2 fields and buttons, s3 hover, s4 selected and pressed. */

@font-face{font-family:"Geomini";src:url("/brand/Geomini.woff2") format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"Apfel Grotezk";src:url("/brand/ApfelGrotezk-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Mazzard H";src:url("/brand/MazzardH-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Mazzard H";src:url("/brand/MazzardH-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Mazzard H";src:url("/brand/MazzardH-SemiBold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Mazzard H";src:url("/brand/MazzardH-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

:root{
  --s0:#0C0C0E;--s1:#141416;--s2:#1C1C1F;--s3:#26262A;--s4:#303035;
  --card:#222225;                                   /* the dashboard's cards: s2 lifted a touch */
  --line:rgba(255,255,255,.08);--line-2:rgba(255,255,255,.12);--line-3:rgba(255,255,255,.18);
  --text:#EDEDF0;--text-2:#D4D4D8;--dim:#B4B4BC;--mute:#8E8E96;--faint:#6B6B74;
  --accent:#7C3AED;--accent-hover:#6D28D9;--accent-press:#5B21B6;
  --accent-ink:color-mix(in srgb,var(--accent) 58%,#fff);
  --accent-soft:color-mix(in srgb,var(--accent) 18%,var(--s1));
  --accent-line:color-mix(in srgb,var(--accent) 45%,var(--s1));
  --good:#4ADE80;--good-soft:rgba(74,222,128,.12);--bad:#F87171;--bad-soft:rgba(248,113,113,.12);--warn:#F5B83D;--warn-soft:rgba(245,184,61,.12);
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --page-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fill:linear-gradient(180deg,#9361FF 0%,#7C3AED 100%);--fill-hover:linear-gradient(180deg,#8752F8 0%,#6D28D9 100%);--fill-press:linear-gradient(180deg,#7440E6 0%,#5B21B6 100%);
  --r-sm:6px;--r:8px;--r-card:12px;--r-panel:16px;
  --font:"Apfel Grotezk","Segoe UI",system-ui,sans-serif;
  --font-head:"Mazzard H","Apfel Grotezk","Segoe UI",system-ui,sans-serif;
  --ease:cubic-bezier(.23,1,.32,1);
  color-scheme:dark}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--s0);color:var(--text);font:15px/1.55 var(--font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
h1,h2,h3,h4,p{margin:0}
h1,h2,h3{font-family:var(--font-head);text-wrap:balance}
p{text-wrap:pretty}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
svg{width:18px;height:18px;flex:none}
svg.ti{fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
::selection{background:color-mix(in srgb,var(--accent) 38%,transparent)}
::placeholder{color:var(--mute)}
:focus-visible{outline:2px solid var(--accent-ink);outline-offset:2px}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--s4);border-radius:999px;border:3px solid var(--s1)}
::-webkit-scrollbar-track{background:transparent}

/* the page surface: one dark sheet, a faint glow of the accent at the top, and a fine grain that never ends in an edge */
.surface{background:var(--page-grain) 0 0/200px 200px,
  radial-gradient(40% 320px at 22% 0%,color-mix(in srgb,var(--accent) 13%,transparent),transparent 75%),
  radial-gradient(46% 380px at 72% 0%,color-mix(in srgb,var(--accent) 9%,transparent),transparent 75%),var(--s1)}

/* ---------- buttons: the same three as in the app */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:38px;padding:0 14px;border-radius:var(--r);
  border:1px solid var(--line-2);background:var(--s2);color:var(--text-2);font-size:14px;font-weight:500;line-height:1;white-space:nowrap;text-decoration:none;cursor:pointer;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .16s var(--ease)}
.btn:hover{background:var(--s3);color:var(--text)}
.btn:active{transform:scale(.97)}
.btn svg{width:16px;height:16px}
.btn:disabled{cursor:not-allowed;opacity:.55;transform:none}
/* the one lit action: the accent with a fine grain, like New clip */
.btn.primary{border-color:#7432E6;color:#fff;background:var(--grain),var(--fill);background-blend-mode:soft-light,normal;background-size:140px 140px,auto;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}
.btn.primary:hover{background:var(--grain),var(--fill-hover);background-blend-mode:soft-light,normal;background-size:140px 140px,auto;color:#fff}
.btn.primary:active{background:var(--grain),var(--fill-press);background-blend-mode:soft-light,normal;background-size:140px 140px,auto}
.btn.primary:disabled{background:var(--s3);border-color:var(--line-2);color:var(--mute);box-shadow:none;opacity:1}
.btn.ghost{background:transparent;border-color:transparent;color:var(--dim)}
.btn.ghost:hover{background:var(--s3);color:var(--text)}
.btn.outline{background:transparent}
.btn.outline:hover{background:var(--s3)}
.btn.danger{background:var(--bad-soft);border-color:transparent;color:var(--bad)}
.btn.danger:hover{background:rgba(248,113,113,.2);color:#FCA5A5}
.btn.sm{height:32px;padding:0 12px;font-size:13px;gap:6px}
.btn.sm svg{width:15px;height:15px}
.btn.lg{height:46px;padding:0 20px;font-size:15px}
.btn.block{width:100%}

/* ---------- fields */
.field{display:grid;gap:8px}
.field>span,.label{font-size:13px;font-weight:500;color:var(--dim)}
.input,.field input,.field select,.field textarea{width:100%;height:44px;padding:0 14px;border-radius:var(--r);border:1px solid var(--line-2);background:var(--s1);color:var(--text);
  font-size:15px;outline:none;transition:border-color .15s ease,background-color .15s ease}
.input:hover,.field input:hover{border-color:var(--line-3)}
.input:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent);background:var(--s1)}
.input:focus-visible,.field input:focus-visible{outline:none}
.field .hint{font-size:12.5px;color:var(--mute)}
.field[data-invalid] input{border-color:color-mix(in srgb,var(--bad) 70%,transparent)}

/* ---------- cards, the same as the metric cards on Home */
.card{background:var(--card);border:1px solid var(--line-2);border-radius:var(--r-card)}
.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.card-head h2,.card-head h3{font-size:15px;font-weight:600;letter-spacing:-.01em;color:#fff}
.card-head .sub{margin-top:2px;font-size:12.5px;color:var(--mute)}

/* ---------- small parts */
.pill{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:999px;background:var(--s3);color:var(--dim);font-size:11.5px;font-weight:600;white-space:nowrap;line-height:1}
.pill.ok{background:var(--good-soft);color:var(--good)}
.pill.bad{background:var(--bad-soft);color:var(--bad)}
.pill.warn{background:var(--warn-soft);color:var(--warn)}
.pill.brand{background:var(--accent-soft);color:var(--accent-ink)}
.pill .dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.kbd{display:inline-flex;align-items:center;height:20px;padding:0 6px;border-radius:5px;background:var(--s3);color:var(--dim);font-size:11px;font-weight:600}
.notice{padding:11px 14px;border-radius:var(--r);font-size:14px;line-height:1.45}
.notice.bad{background:var(--bad-soft);color:#FCA5A5}
.notice.ok{background:var(--good-soft);color:#86EFAC}
.notice.info{background:var(--accent-soft);color:var(--accent-ink)}
.divider{display:flex;align-items:center;gap:14px;color:var(--faint);font-size:12.5px}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important;scroll-behavior:auto!important}}

/* ---------- product shots: a miniature of the app, cropped by its panel, never a whole window floating.
   Real words only on what the shot is about (the video, two clips, the post); the rest is quiet bars. */
.shot-wrap{position:absolute}
.shot{--sw:720px;position:absolute;left:0;top:0;width:var(--sw);height:100%;display:grid;grid-template-columns:56px minmax(0,1fr);background:var(--s1);border:1px solid var(--line-2);border-radius:14px;overflow:hidden;
  font-size:13px;color:var(--text);user-select:none;pointer-events:none}
.shot-side{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 0;background:var(--s0);border-right:1px solid var(--line)}
.shot-side img{width:28px;height:28px;margin-bottom:10px;border-radius:7px}
.shot-side i{display:grid;place-items:center;width:34px;height:34px;border-radius:7px;color:var(--mute)}
.shot-side i.on{background:var(--s4);color:#fff}
.shot-side i svg{width:17px;height:17px}
.shot-main{padding:18px 20px 22px;display:grid;gap:14px;align-content:start;overflow:hidden;background:var(--page-grain) 0 0/200px 200px,radial-gradient(60% 220px at 30% 0%,color-mix(in srgb,var(--accent) 12%,transparent),transparent 75%),var(--s1)}
.shot-top{display:flex;align-items:center;gap:14px}
.shot-top b{font-family:var(--font-head);font-size:15px;font-weight:600;letter-spacing:-.01em;color:#fff}
.shot-top small{display:block;margin-top:2px;font-size:12px;color:var(--mute)}
/* the status pill holds both of its states in one cell, so it never changes width when it turns over */
.shot-status{display:grid;height:26px;padding:0 10px;border-radius:999px;background:var(--s3);color:var(--dim);font-size:12px;font-weight:600;overflow:hidden}
.shot-status>span{grid-area:1/1;display:flex;align-items:center;gap:7px;transition:transform .5s var(--ease),opacity .35s ease}
.shot-status .done{color:var(--good)}
.shot-status svg{width:14px;height:14px}
.shot-spin{width:12px;height:12px;border-radius:50%;border:2px solid var(--s4);border-top-color:var(--accent-ink);animation:shot-spin .8s linear infinite}
@keyframes shot-spin{to{transform:rotate(360deg)}}
.shot-src{display:grid;grid-template-columns:132px minmax(0,1fr);gap:14px;align-items:center;padding:10px;border:1px solid var(--line-2);border-radius:12px;background:var(--card)}
.shot-src .thumb{position:relative;aspect-ratio:16/9;border-radius:7px;overflow:hidden;background:var(--s3)}
.shot-src .thumb img{width:100%;height:100%;object-fit:cover;object-position:50% 72%;display:block}
.shot-src .thumb em{position:absolute;right:5px;bottom:5px;padding:1px 5px;border-radius:4px;background:rgba(10,10,12,.8);color:#fff;font-size:10px;font-style:normal;font-weight:600}
.shot-src .meta{display:grid;gap:8px;min-width:0}
.shot-src .meta b{font-weight:500;font-size:13.5px;color:#fff}
.shot-src .meta span{font-size:12px;color:var(--mute)}
.shot-meter{height:4px;border-radius:999px;background:var(--s4);overflow:hidden}
.shot-meter i{display:block;height:100%;width:100%;border-radius:999px;background:var(--accent);transform-origin:0 50%;transition:transform 1.9s cubic-bezier(.4,0,.2,1)}
.shot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 12px}
.shot-clip.dim .vid img{filter:saturate(.55) brightness(.5)}
.shot-clip{display:grid;gap:8px;transition:transform .55s var(--ease),opacity .45s ease;transition-delay:calc(var(--i,0) * 110ms)}
.shot-clip .vid{position:relative;aspect-ratio:9/16;border-radius:9px;overflow:hidden;background:var(--s3)}
.shot-clip .vid img{width:100%;height:100%;object-fit:cover;display:block}
.shot-clip .score{position:absolute;left:6px;top:6px;display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:5px;background:rgba(12,12,14,.82);color:#fff;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
.shot-clip .score.top{background:var(--accent)}
.shot-clip .len{position:absolute;right:6px;bottom:6px;padding:1px 5px;border-radius:4px;background:rgba(10,10,12,.8);color:#fff;font-size:10px;font-weight:600}
.shot-clip p{font-size:12px;line-height:1.35;color:var(--text-2);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bar{display:block;height:6px;border-radius:999px;background:var(--s3)}
.bars{display:grid;gap:7px;padding-top:3px}
/* a smaller object that straddles the window's edge: the clip, posted */
.shot-sat{position:absolute;display:flex;align-items:center;gap:10px;padding:10px 14px 10px 10px;border-radius:12px;background:var(--s3);border:1px solid var(--line-3);color:var(--text);font-size:13px;
  transition:transform .6s var(--ease),opacity .4s ease;pointer-events:none}
.shot-sat .yt{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#FF0033;color:#fff}
.shot-sat .yt svg{width:17px;height:17px}
.shot-sat b{display:block;font-weight:500;color:#fff;line-height:1.3}
.shot-sat small{display:block;font-size:11.5px;color:var(--mute);line-height:1.3}
.shot-sat .tick{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--good-soft);color:var(--good);margin-left:6px}
.shot-sat .tick svg{width:12px;height:12px;stroke-width:2.5}

/* the story: working (meter fills), then the clips arrive one by one, then one of them is posted.
   Without the script every shot shows its last frame, which is also the frame a screenshot catches. */
.js .shot-wrap .shot-meter i{transform:scaleX(.08)}
.js .shot-wrap.work .shot-meter i{transform:scaleX(1)}
html:not(.js) .shot-wrap .shot-meter,.shot-wrap.done .shot-meter{opacity:.0}
.shot-meter{transition:opacity .3s ease .2s}
.js .shot-wrap:not(.done) .shot-clip{opacity:0;transform:translateY(10px) scale(.98)}
.js .shot-wrap:not(.done) .shot-status .done{transform:translateY(120%);opacity:0}
.shot-wrap .shot-status .work{transform:translateY(-120%);opacity:0}
.js .shot-wrap:not(.done) .shot-status .work{transform:none;opacity:1}
.js .shot-wrap:not(.posted) .shot-sat{opacity:0;transform:translateY(10px) scale(.97)}

/* the logo: the mascot beside the name, set in the heading font so it stays crisp at any size */
.lockup{display:inline-flex;align-items:center;gap:10px;font-family:"Geomini",var(--font-head);font-size:19px;line-height:1;font-weight:600;letter-spacing:-.01em;color:#fff;white-space:nowrap}
.lockup b{font-weight:600}
.lockup img{flex:none;width:32px;height:32px;display:block}
.fbrand .lockup{font-size:20px}

/* the product shot's pointer: it hovers a clip, opens one, drags its end in and saves */
.sx-cur{position:absolute;left:0;top:0;z-index:6;width:20px;height:20px;pointer-events:none;opacity:0;
  transition-property:transform,opacity;transition-timing-function:cubic-bezier(.45,.05,.25,1),ease;transition-duration:900ms,.3s}
.sx-cur.on{opacity:1}
.sx-cur svg{display:block;width:20px;height:20px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.55));transition:scale .12s ease}
.sx-cur svg path{fill:var(--accent);stroke:#fff;stroke-width:1.5;stroke-linejoin:round}
.sx-cur.down svg{scale:.82}
.sx-cur b{position:absolute;left:16px;top:18px;padding:1px 6px;border-radius:5px;background:var(--accent);color:#fff;font-size:10px;font-weight:600;font-style:normal}
.shot-clip .vid{transition:box-shadow .2s ease}
.shot-clip.hov .vid{box-shadow:0 0 0 2px var(--accent-ink),0 10px 24px -10px rgba(124,58,237,.6)}
.sx-ed{position:absolute;left:6px;right:6px;bottom:30px;z-index:2;padding:8px;border-radius:8px;background:rgba(12,12,14,.9);border:1px solid var(--line-3);
  opacity:0;translate:0 6px;transition:opacity .25s ease,translate .3s var(--ease)}
.shot-clip.edit .sx-ed{opacity:1;translate:0 0}
.sx-ed small{display:flex;justify-content:space-between;font-size:10px;line-height:14px;color:var(--mute)}
.sx-ed small b{color:#fff;font-weight:600;font-variant-numeric:tabular-nums}
.sx-ed.saved small span{color:var(--good)}
.sx-tr{position:relative;height:16px;margin-top:6px;border-radius:4px;background:#26262c}
.sx-tr i{position:absolute;top:0;bottom:0;left:0;right:var(--cut,0%);border:2px solid var(--accent-ink);border-radius:4px;background:rgba(124,58,237,.25);transition:right 1.2s cubic-bezier(.45,.05,.25,1)}
@media (prefers-reduced-motion:reduce){.sx-cur,.sx-ed{display:none}}
