:root {
  color-scheme: dark;
  --bg: oklch(18% 0.008 220);
  --surface: oklch(22% 0.01 220);
  --text: oklch(96% 0.008 100);
  --muted: oklch(73% 0.012 220);
  --line: oklch(34% 0.012 220);
  --accent: oklch(72% 0.18 42);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
.dropzone:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.skip {
  position: absolute;
  top: -60px;
  padding: 10px;
  background: var(--accent);
  color: var(--bg);
}
.skip:focus {
  top: 0;
}
header {
  margin: 0 5vw;
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
header > a {
  text-decoration: none;
  font-size: 14px;
}
.brand {
  font-size: 22px;
  letter-spacing: -1px;
  font-weight: 750;
}
.brand span {
  font-size: 15px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-left: 14px;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 64px 5vw 24px;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  align-items: end;
  margin-bottom: 54px;
}
.eyebrow {
  grid-column: 1/-1;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 18px;
}
h1 {
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: -3.5px;
  font-weight: 650;
  margin: 0;
}
.intro > p:last-child {
  font-size: 19px;
  color: var(--muted);
  max-width: 37ch;
  margin: 0 0 4px;
}
.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.controls {
  padding-top: 8px;
}
fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  margin: 0;
}
legend {
  padding: 0 15px 0 0;
  font-size: 18px;
  font-weight: 550;
}
legend > span {
  color: var(--muted);
  font-size: 13px;
  margin-right: 12px;
}
label {
  display: block;
  font-size: 14px;
}
.dropzone {
  position: relative;
  min-height: 178px;
  padding: 25px 15px;
  border: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  background: var(--surface);
  gap: 6px;
  transition: border-color 0.15s;
}
.dropzone:hover,
.dropzone.dragging {
  border-color: var(--accent);
}
.dropzone svg {
  margin-bottom: 7px;
  color: var(--muted);
}
.dropzone span,
.dropzone small {
  color: var(--muted);
  font-size: 13px;
}
.dropzone small {
  margin-top: 10px;
  font-size: 11px;
}
.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}
.outputs {
  display: flex;
  gap: 12px;
}
.outputs label {
  border: 1px solid var(--line);
  flex: 1;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.outputs label:has(input:checked) {
  border-color: var(--accent);
  background: var(--surface);
}
input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.outputs strong {
  font-size: 14px;
  font-weight: 550;
}
.outputs small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 3px;
  margin-top: 8px;
}
.primary {
  background: var(--accent);
  color: var(--bg);
  padding: 15px 20px;
  border: 0;
  border-radius: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}
.primary:hover {
  filter: brightness(1.08);
}
.primary:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.primary {
  width: 100%;
  margin-top: 24px;
}
#status {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}
#status.error {
  color: oklch(80% 0.13 30);
}
progress {
  width: 100%;
  height: 4px;
  margin-top: 12px;
  accent-color: var(--accent);
}
.preview {
  background: var(--surface);
  align-self: start;
  border-radius: 5px;
  overflow: hidden;
}
.preview-top {
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.stage {
  height: 575px;
  display: flex;
  justify-content: center;
  background: oklch(27% 0.017 65);
  padding: 0 36px;
}
.stage img,
.stage video {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.preview-bottom {
  padding: 16px 22px;
}
.preview-bottom p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.preview-bottom a {
  margin-top: 14px;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 20px 0;
  font-size: 12px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  main {
    padding-top: 42px;
  }
  .intro,
  .workspace {
    gap: 34px;
  }
  h1 {
    font-size: 52px;
  }
  .intro > p:last-child {
    font-size: 16px;
  }
  .stage {
    height: 460px;
    padding: 0 14px;
  }
  .outputs {
    flex-direction: column;
  }
}
@media (max-width: 620px) {
  header {
    padding: 20px 0;
  }
  .brand {
    font-size: 19px;
  }
  .brand span {
    font-size: 12px;
    margin-left: 5px;
  }
  main {
    padding-top: 36px;
  }
  .intro,
  .workspace {
    grid-template-columns: 1fr;
  }
  .intro {
    gap: 22px;
    margin-bottom: 36px;
  }
  .eyebrow {
    margin-bottom: 0;
  }
  h1 {
    font-size: 55px;
  }
  .intro > p:last-child {
    max-width: 40ch;
  }
  .outputs {
    flex-direction: row;
  }
  .preview {
    grid-row: 1;
  }
  .stage {
    height: 370px;
  }
  .preview-top {
    padding: 12px 18px;
  }
  .preview-bottom {
    padding: 12px 18px;
  }
  footer {
    margin-top: 40px;
    gap: 20px;
    align-items: start;
  }
  footer > * {
    max-width: 50%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
