/* SmoothMotion.video — site styles. No build step; system font stack for fast LCP. */

:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #f0f2f9;
  --border: #e2e5f0;
  --text: #02143b;
  --text-2: #4a5068;
  --muted: #6b7189;
  --accent: #0b63f6;
  --accent-2: #0784cf;
  --brand-cyan: #05affb;
  --accent-ink: #ffffff;
  --accent-soft: #eaf2ff;
  --success: #0f8a5f;
  --success-soft: #e6f6ef;
  --warning: #a35c00;
  --warning-soft: #fff4e0;
  --danger: #c4314b;
  --danger-soft: #fdecef;
  --info-soft: #e9f1ff;
  --shadow: 0 1px 2px rgba(20, 23, 38, .04), 0 8px 24px rgba(20, 23, 38, .06);
  --shadow-lg: 0 2px 4px rgba(20, 23, 38, .04), 0 24px 48px rgba(2, 20, 59, .12);
  --radius: 14px;
  --radius-sm: 9px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 3.6vw + .6rem, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 1.4vw + .9rem, 1.9rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
pre { font-family: var(--mono); font-size: .88rem; background: var(--surface-2); border: 1px solid var(--border); padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); font-size: .9em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand-tld { color: var(--accent); font-weight: 700; }
.brand-logo { display: block; height: auto; max-width: 100%; }
@media (max-width: 480px) { .header-cta { display: none; } .header-inner { height: 68px; } .site-header .brand-logo { width: min(320px, 100%); } }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 550; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
@media (max-width: 900px) { .site-nav { display: none; } .header-cta { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 650; font-size: .98rem; line-height: 1.2; cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, opacity .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, #0b63f6 0%, #0784cf 100%); color: #fff; box-shadow: 0 6px 16px rgba(11, 99, 246, .28); }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(11, 99, 246, .36); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-link { background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; font-weight: 500; }
.btn-sm { padding: 7px 13px; font-size: .88rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 750; color: var(--accent); margin-bottom: .7em; }
.lead { font-size: 1.15rem; color: var(--text-2); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Notices */
.notice { padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 16px; font-size: .95rem; border: 1px solid transparent; }
.notice-warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.notice-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.notice-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.notice-info { background: var(--info-soft); color: var(--text); }

/* Homepage: one centred column with the uploader */
.home { padding: 64px 20px 80px; background: radial-gradient(900px 420px at 50% -10%, color-mix(in srgb, var(--brand-cyan) 14%, transparent), transparent 70%); }
.home-inner { max-width: 960px; margin: 0 auto; text-align: center; container-type: inline-size; }
/* Always one line: sized from the column's real width (the heading is ~18.3em wide), capped at 3rem.
   The vw line is a conservative fallback for browsers without container query units. */
.home h1 { white-space: nowrap; font-size: min(3rem, calc((100vw - 72px) / 18.6)); font-size: min(3rem, calc(100cqi / 18.6)); margin-bottom: .35em; }
.home .lead { max-width: 600px; margin: 0 auto 32px; }
.home .uploader { max-width: 600px; margin: 0 auto; text-align: left; }
@media (max-width: 560px) { .home { padding: 32px 16px 56px; } .home .lead { font-size: .95rem; margin-bottom: 24px; } }

/* Hero */
.hero { padding: 56px 0 40px; background: radial-gradient(1100px 500px at 85% -10%, color-mix(in srgb, var(--brand-cyan) 16%, transparent), transparent 60%), radial-gradient(900px 400px at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.hero-copy h1 { background: linear-gradient(120deg, var(--text) 30%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 30px; color: var(--text-2); }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3.5 3.5L15 7' fill='none' stroke='%230f8a5f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero { padding-top: 32px; } }

/* Uploader */
.uploader { padding: 22px; box-shadow: var(--shadow-lg); }
.uploader-offline { padding: 40px 28px; text-align: center; box-shadow: var(--shadow-lg); color: var(--warning); }
.uploader-offline svg { margin: 0 auto 14px; }
.uploader-offline p { color: var(--text); font-size: 1.1rem; font-weight: 600; margin: 0; }
.dropzone { border: 2px dashed color-mix(in srgb, var(--accent) 40%, var(--border)); border-radius: var(--radius); padding: 30px 20px; text-align: center; background: color-mix(in srgb, var(--accent-soft) 55%, transparent); transition: background .2s, border-color .2s, transform .2s; cursor: pointer; min-height: 248px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.is-dragover { transform: scale(1.01); }
.dropzone-icon { color: var(--accent); margin-bottom: 10px; }
.dropzone-title { font-weight: 700; font-size: 1.1rem; margin: 0; }
.dropzone-sub { color: var(--muted); margin: 4px 0 10px; font-size: .9rem; }
.dropzone-limits { color: var(--muted); font-size: .82rem; margin: 14px 0 0; }
.file-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--surface-2); min-height: 248px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.file-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.file-meta div:first-child { grid-column: 1 / -1; }
.file-meta dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.file-meta dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.fps-select { border: 0; padding: 0; margin: 18px 0 14px; }
.fps-select legend { font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 12px; border: 1px solid var(--border); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: flex; flex-direction: column; align-items: center; padding: 9px 6px; border-radius: 9px; font-weight: 700; color: var(--text-2); transition: background .15s, color .15s, box-shadow .15s; line-height: 1.2; }
.segmented small { font-size: .68rem; font-weight: 600; color: var(--muted); }
.segmented input:checked + span { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent); }
.upload-facts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.upload-facts li { display: flex; gap: 8px; align-items: center; }
.upload-facts svg { color: var(--accent); flex: none; }
.upload-progress { margin: 0 0 14px; }
.terms-check { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .92rem; color: var(--text-2); cursor: pointer; }
.terms-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.slot-status { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .88rem; font-weight: 600; color: var(--text-2); }
.slot-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); flex: none; }
.slot-status.is-free .dot { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }

/* Progress */
.progress-label { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 650; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.progress { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.progress-lg { height: 14px; }
.progress-bar { height: 100%; width: 0; background: var(--gradient); border-radius: 99px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.progress-bar-animated { background-image: linear-gradient(45deg, rgba(255,255,255,.18) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.18) 75%, transparent 75%), var(--gradient); background-size: 24px 24px, 100% 100%; animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 24px 0, 0 0; } }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { margin-bottom: 28px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 24px; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #0b63f6 0%, #0784cf 100%); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--text-2); margin: 0; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 24px; }
.feature p { color: var(--text-2); margin: 0; }
.feature-highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.link-card { padding: 20px; color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
.link-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.link-card h3 { font-size: 1.02rem; color: var(--accent); }
.link-card p { font-size: .9rem; color: var(--text-2); margin: 0; }
.checklist { list-style: none; margin: 0; padding: 24px; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; font-weight: 550; }
.checklist li::before { content: "✓"; position: absolute; left: 0; width: 20px; height: 20px; border-radius: 6px; background: var(--success-soft); color: var(--success); display: grid; place-items: center; font-size: .8rem; font-weight: 800; top: .15em; }
.frames-figure { margin: 0; }
.frames-figure svg { width: 100%; }
.frames-figure rect { fill: var(--surface-2); stroke: var(--border); stroke-width: 2; }
.frames-figure .fr-new rect { fill: var(--accent-soft); stroke: var(--accent); stroke-dasharray: 6 4; }
.frames-figure circle { fill: var(--text-2); }
.frames-figure .fr-new circle { fill: var(--accent); }
.frames-figure .fr-path { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: .6; }
.frames-figure text { fill: var(--muted); font-size: 13px; font-weight: 600; font-family: var(--font); }
.frames-figure figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; text-align: center; }
@media (max-width: 900px) { .steps, .cards-3, .split { grid-template-columns: 1fr; } .cards-4 { grid-template-columns: 1fr 1fr; } .section { padding: 44px 0; } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { display: grid; gap: 10px; margin-bottom: 20px; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-answer { color: var(--text-2); padding-bottom: 4px; }

/* Articles */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; margin: 0; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.article-header { padding: 24px 20px 32px; }
.article-header-tool { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .article-header-tool { grid-template-columns: 1fr; } }
.meta { color: var(--muted); font-size: .9rem; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-bottom: 56px; }
.article-layout:not(:has(.toc)) { grid-template-columns: minmax(0, 780px); }
.toc { position: sticky; top: 104px; align-self: start; font-size: .9rem; }
.toc-title { font-weight: 750; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; border-left: 2px solid var(--border); }
.toc a { display: block; padding-left: 12px; color: var(--text-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }
@media (max-width: 900px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.prose { max-width: 760px; font-size: 1.04rem; }
.prose h2 { margin-top: 1.8em; scroll-margin-top: 104px; }
.prose h3 { margin-top: 1.4em; scroll-margin-top: 104px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .94rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 700; }
.prose blockquote { margin: 1em 0; padding: .5em 1em; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.article-faqs { margin-top: 2em; }
.article-faqs .faq { margin-bottom: 10px; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 28px; margin-top: 2.5em; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.cta h2 { margin: 0 0 .3em; font-size: 1.3rem; }
.cta p { margin: 0; color: var(--text-2); }
@media (max-width: 640px) { .cta { flex-direction: column; align-items: flex-start; } }

/* Job pages */
/* Subtle animated waves behind the page while a job is processing. */
.job { position: relative; isolation: isolate; }
.bg-waves { position: fixed; left: 0; right: 0; bottom: 0; height: 46vh; z-index: -1; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 1.2s ease; }
.job[data-status="processing"] .bg-waves { opacity: 1; }
.wave { position: absolute; left: 0; bottom: 0; width: 200%; animation: wave-drift linear infinite; will-change: transform; }
.wave svg { display: block; width: 100%; height: 100%; }
.wave path { fill: var(--accent); }
.wave-1 { height: 62%; opacity: .05; animation-duration: 26s; }
.wave-2 { height: 48%; opacity: .07; animation-duration: 19s; animation-direction: reverse; }
.wave-3 { height: 34%; opacity: .06; animation-duration: 14s; }
.wave-2 path { fill: var(--brand-cyan); }
@keyframes wave-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wave { animation: none; } }

.job-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 960px) { .job-grid { grid-template-columns: 1fr; } }
.job-preview { padding: 10px; }
.thumb-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b0d18; display: grid; place-items: center; }
.thumb-img { width: 100%; height: 100%; object-fit: contain; animation: fadein .5s ease; }
@keyframes fadein { from { opacity: .35; } to { opacity: 1; } }
.thumb-badge { position: absolute; left: 12px; bottom: 12px; background: rgba(10, 12, 24, .72); color: #fff; font-size: .78rem; font-weight: 650; padding: 5px 10px; border-radius: 99px; backdrop-filter: blur(6px); }
.thumb-placeholder { text-align: center; color: #b7bcd6; padding: 20px; }
.pulse-frames { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.pulse-frames span { width: 46px; height: 32px; border-radius: 6px; background: #2a2f48; animation: pulse 1.4s ease-in-out infinite; }
.pulse-frames span:nth-child(2) { animation-delay: .2s; background: #0b63f6; }
.pulse-frames span:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.job-title { font-size: clamp(1.4rem, 2vw + .6rem, 2rem); overflow-wrap: anywhere; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--surface-2); font-weight: 700; font-size: .9rem; margin-bottom: 20px; border: 1px solid var(--border); }
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status-pill[data-state="processing"] .dot { background: var(--accent); animation: blink 1.2s ease-in-out infinite; }
.status-pill[data-state="queued"] .dot { background: var(--warning); }
.status-pill[data-state="completed"] .dot { background: var(--success); }
.status-pill[data-state="failed"] .dot, .status-pill[data-state="cancelled"] .dot { background: var(--danger); }
@keyframes blink { 50% { opacity: .3; } }
.job-progress { margin-bottom: 22px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin: 0 0 16px; }
/* Dividers are drawn by each cell (right + bottom), so an odd cell count leaves no filler block;
   the lines on the outer edge are clipped by the container. */
.stats > div { padding: 12px 14px; box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border); }
.stats .stat-wide { grid-column: 1 / -1; }
.stats dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.stats dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.job-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 12px; }
/* Completed: big green tick that draws itself in */
.done-hero { text-align: center; margin: 0 auto 32px; }
.done-tick { display: block; width: 120px; height: 120px; margin: 0 auto 14px; overflow: visible; animation: tick-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.done-tick-disc { fill: var(--success-soft); }
.done-tick-ring { fill: none; stroke: var(--success); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340;
  transform: rotate(-90deg); transform-origin: 60px 60px; animation: tick-draw .7s ease-out .15s forwards; }
.done-tick-check { fill: none; stroke: var(--success); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80;
  animation: tick-draw .45s ease-out .75s forwards; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
@keyframes tick-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done-title { font-size: clamp(1.6rem, 2.4vw + .8rem, 2.4rem); margin: 0 0 .25em; }
.done-sub { color: var(--text-2); margin: 0; }
.fireworks { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; transition: opacity .8s ease; }
.player-card { padding: 10px; }
.player { width: 100%; border-radius: 10px; background: #000; aspect-ratio: 16 / 9; }
.error-page { padding: 40px 0; }
.error-code { font-size: 4.5rem; font-weight: 850; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }

/* Floating "Your videos" panel */
.jobs-panel { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 330px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; animation: panel-in .35s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.jobs-panel-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; background: none; border: 0; font: inherit; font-weight: 750; color: var(--text); cursor: pointer; }
.jobs-panel-count { color: var(--muted); font-weight: 600; }
.jobs-panel-chevron { color: var(--muted); transition: transform .2s ease; transform: rotate(180deg); }
.jobs-panel.is-collapsed .jobs-panel-chevron { transform: none; }
.jobs-panel.is-collapsed .jobs-panel-list { display: none; }
.jobs-panel-list { list-style: none; margin: 0; padding: 0 8px 8px; max-height: min(360px, 50vh); overflow-y: auto; border-top: 1px solid var(--border); }
.jobs-panel-item { margin-top: 8px; border-radius: 10px; transition: background .2s; }
.jobs-panel-item.just-finished { animation: panel-flash 1.6s ease; }
@keyframes panel-flash { 0%, 60% { background: var(--success-soft); } 100% { background: transparent; } }
.jobs-panel-link { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; color: var(--text); text-decoration: none; }
.jobs-panel-link:hover { background: var(--surface-2); }
.jobs-panel-thumb { flex: none; width: 64px; height: 36px; border-radius: 6px; background: #0b0d18; overflow: hidden; display: block; }
.jobs-panel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jobs-panel-body { min-width: 0; flex: 1; display: grid; gap: 2px; }
.jobs-panel-name { font-weight: 650; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jobs-panel-status { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.is-completed .jobs-panel-status { color: var(--success); font-weight: 600; }
.is-processing .jobs-panel-status { color: var(--accent); font-weight: 600; }
.jobs-panel-progress { display: block; height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 2px; }
.jobs-panel-progress-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0b63f6, #05affb); border-radius: 99px; transition: width .8s ease; }
@media (max-width: 560px) { .jobs-panel { right: 16px; left: 16px; bottom: 16px; width: auto; max-width: none; } }

/* Footer */
.site-footer { position: relative; z-index: 1; background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-about p { color: var(--muted); margin-top: 12px; max-width: 340px; }
.footer-col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-2); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
