:root {
  color-scheme: dark;
  --background: #191b1a;
  --text: #f2f1ed;
  --muted: #989a96;
  --line: rgba(242, 241, 237, 0.22);
  --accent: #f2db16;
  --header-height: 88px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 35% 42%, rgba(255, 255, 255, 0.018), transparent 34%),
    var(--background);
  -webkit-font-smoothing: antialiased;
}

body.caption-settings-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

#particle-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.site-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(28px, 3.6vw, 68px);
  border-bottom: 1px solid rgba(242, 241, 237, 0.14);
}

.wordmark {
  font-size: 25px;
  font-weight: 450;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  gap: clamp(24px, 2.5vw, 40px);
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 12px;
  font-size: 16px;
}

.nav-center,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-center {
  gap: clamp(24px, 2.5vw, 40px);
}

.nav-right {
  gap: 18px;
  padding-left: clamp(24px, 2.5vw, 40px);
  border-left: 1px solid var(--line);
}

.nav-credits {
  color: var(--accent);
  font-size: 14px;
}

.nav-credits strong {
  font-weight: 450;
}

.main-nav a,
.back-home,
.site-footer a {
  color: #c1c2bf;
  transition: color 150ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.back-home:hover,
.back-home:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

.main-nav a[aria-current="page"] {
  color: var(--accent);
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

main {
  min-height: calc(100vh - var(--header-height));
}

.home-page,
.auth-page,
.content-page {
  position: relative;
  min-height: calc(100vh - var(--header-height));
}

.home-page {
  padding: clamp(74px, 6.2vw, 98px) clamp(28px, 2.7vw, 42px) clamp(52px, 5vw, 80px);
}

.home-intro {
  display: flex;
  justify-content: center;
  max-width: 1490px;
  margin: 0 auto clamp(84px, 7.3vw, 114px);
}

.product-label i {
  color: var(--accent);
  font-style: normal;
}

.home-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 2.45vw, 39px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-align: center;
}

.home-intro h1 span {
  color: var(--accent);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 7px;
  max-width: 1490px;
  margin: 0 auto;
}

.product-card {
  position: relative;
  min-height: clamp(540px, 40vw, 635px);
  overflow: hidden;
  border: 1px solid rgba(242, 241, 237, 0.24);
  background: #090a09;
  isolation: isolate;
}

.product-card::after {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  width: 32px;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.06) brightness(0.87);
  transform: scale(1.01);
  transition: filter 600ms ease, transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 5, 4, 0.02) 22%, rgba(4, 5, 4, 0.24) 48%, rgba(4, 5, 4, 0.96) 100%),
    linear-gradient(90deg, rgba(5, 6, 5, 0.3), transparent 55%);
}

.product-card-copy {
  position: absolute;
  z-index: 2;
  right: clamp(26px, 3.2vw, 48px);
  bottom: clamp(28px, 3.6vw, 52px);
  left: clamp(26px, 3.2vw, 48px);
  display: block;
}

.product-label {
  display: block;
  margin-bottom: 22px;
  color: #e2e1dc;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-card-copy strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 2.05vw, 34px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.product-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: max-content;
  margin-top: 28px;
  font-size: 14px;
}

.product-link b {
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  line-height: 0;
  transition: transform 250ms ease;
}

.product-card:hover::after,
.product-card:focus-visible::after {
  transform: scaleX(1);
}

.product-card:hover img,
.product-card:focus-visible img {
  filter: saturate(1) contrast(1.04) brightness(0.98);
  transform: scale(1.045);
}

.product-card:hover .product-link b,
.product-card:focus-visible .product-link b {
  transform: translateX(5px);
}

.pricing-divider {
  position: relative;
  max-width: 1490px;
  height: 13px;
  margin: clamp(64px, 7.2vw, 112px) auto clamp(54px, 5.2vw, 82px);
  background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
}

.pricing-divider::before,
.pricing-divider::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.pricing-divider::before {
  width: 1px;
  height: 13px;
}

.pricing-divider::after {
  width: 13px;
  height: 1px;
}

.pricing-section {
  max-width: 1490px;
  margin: 0 auto;
}

.pricing-header {
  margin-bottom: clamp(34px, 3.4vw, 52px);
  text-align: center;
}

.pricing-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 2.8vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.pricing-header h2 span,
.pricing-plan-featured .pricing-plan-videos {
  color: var(--accent);
}

.pricing-header p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.pricing-table {
  display: grid;
  grid-template-columns: clamp(160px, 17vw, 240px) repeat(3, minmax(0, 1fr));
}

.pricing-labels,
.pricing-plan {
  display: grid;
  grid-template-rows: 92px 112px 100px 80px;
}

.pricing-labels span,
.pricing-plan-cell {
  display: flex;
  align-items: center;
  border-bottom: 1px dotted rgba(242, 241, 237, 0.22);
}

.pricing-labels span:last-child,
.pricing-plan-cell:last-child {
  border-bottom: 0;
}

.pricing-labels span {
  padding-left: clamp(22px, 3vw, 64px);
  color: var(--accent);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pricing-plan {
  position: relative;
  min-width: 0;
}

.pricing-plan-cell {
  justify-content: center;
  padding: 0 20px;
  text-align: center;
}

.pricing-plan-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 400;
  line-height: 1.1;
}

.pricing-plan-heading p {
  margin: 7px 0 0;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pricing-plan-price span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.2vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.pricing-plan-price sup {
  position: relative;
  top: -0.12em;
  margin-right: 6px;
  font-size: 0.54em;
  font-weight: 400;
}

.pricing-plan-videos {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.45vw, 21px);
}

.pricing-plan-choice a {
  display: inline-flex;
  gap: 15px;
  align-items: center;
  font-size: 13px;
}

.pricing-plan-choice a span {
  color: var(--accent);
  font-size: 22px;
  line-height: 0;
  transition: transform 200ms ease;
}

.pricing-plan-choice a:hover span,
.pricing-plan-choice a:focus-visible span {
  transform: translateX(4px);
}

.pricing-plan-featured {
  border-right: 1px solid rgba(242, 241, 237, 0.28);
  border-left: 1px solid rgba(242, 241, 237, 0.28);
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 15px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / 1px 15px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 15px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 1px 15px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 15px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 1px 15px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 15px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 1px 15px no-repeat;
}

.pricing-divider-bottom {
  margin: clamp(44px, 5vw, 74px) 0 0;
}

.pricing-note {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.accent-link,
.auth-help button {
  color: var(--accent);
}

.accent-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 17px;
  transition: opacity 150ms ease;
}

.accent-link:hover,
.accent-link:focus-visible {
  opacity: 0.72;
}

.auth-column {
  position: absolute;
  top: 18%;
  left: clamp(64px, 27vw, 455px);
  width: min(435px, calc(100vw - 48px));
}

.auth-tabs {
  display: flex;
  gap: 54px;
  margin-bottom: 38px;
}

.auth-tabs button,
.auth-help button,
.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.auth-tabs button {
  position: relative;
  padding-bottom: 18px;
  color: #c2c3c0;
}

.auth-tabs button[aria-selected="true"] {
  color: var(--text);
}

.auth-tabs button[aria-selected="true"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--accent);
}

.line-field {
  display: block;
  margin-bottom: 38px;
  color: #c7c8c5;
}

.line-field span {
  display: block;
  margin-bottom: 10px;
}

.line-field input,
.line-field select {
  width: 100%;
  padding: 5px 0 12px;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
}

.line-field input:focus,
.line-field select:focus,
.caption-settings-grid select:focus {
  border-bottom-color: var(--text);
}

.auth-help {
  margin-top: 52px;
  line-height: 1.55;
}

.auth-help p {
  margin: 0 0 12px;
}

.muted-copy,
.supporting-copy,
.row-meta,
.status-message {
  color: var(--muted);
}

.muted-copy {
  font-size: 14px;
}

.status-message {
  min-height: 22px;
  margin-top: 26px;
  font-size: 14px;
  line-height: 1.55;
}

.content-column {
  position: absolute;
  top: 16%;
  left: clamp(56px, 27vw, 455px);
  width: min(620px, calc(100vw - 48px));
}

.content-column h1 {
  max-width: 520px;
  margin: 0 0 20px;
  font-size: clamp(25px, 2vw, 32px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.eyebrow {
  margin: 0 0 18px;
  color: #c3c4c1;
  font-size: 14px;
}

.quiet-link:hover,
.quiet-link:focus-visible {
  color: var(--text);
}

.supporting-copy {
  max-width: 520px;
  margin: 0 0 42px;
  line-height: 1.65;
}

.plain-list {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.plain-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

a.plain-list-row:hover,
a.plain-list-row:focus-visible {
  color: var(--accent);
}

.plain-list-row.muted {
  color: #8d8f8b;
}

.available {
  color: var(--accent);
}

.caption-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
  margin-top: 24px;
}

.detail-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.file-line {
  display: flex;
  gap: 28px;
  align-items: center;
  min-width: 0;
  min-height: 76px;
  padding: 0 26px;
  border: 1px dashed rgba(242, 241, 237, 0.28);
  border-radius: 8px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.file-line:hover {
  color: var(--accent);
  border-color: rgba(242, 219, 22, 0.7);
  background: rgba(242, 219, 22, 0.02);
}

.file-plus {
  flex: 0 0 auto;
  font-size: 34px;
  font-weight: 200;
  line-height: 1;
}

.file-label-copy {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#video,
.credit-pack input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.caption-form .text-button {
  margin: 0 28px 0 0;
  font-size: 18px;
}

.caption-toolbar {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-top: 18px;
}

.caption-settings-trigger {
  padding: 3px 26px 3px 0;
  color: #c7c8c5;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  transition: color 150ms ease;
}

.caption-settings-trigger strong {
  color: var(--accent);
  font-weight: 400;
}

.caption-settings-trigger:hover,
.caption-settings-trigger:focus-visible {
  color: var(--text);
}

.caption-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}

.caption-settings-grid label:not(.caption-setting-toggle) span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.caption-settings-grid select {
  width: 100%;
  padding: 7px 28px 10px 0;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
}

.caption-settings-grid select option {
  color: var(--text);
  background: var(--background);
}

.caption-setting-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  color: #c7c8c5;
  cursor: pointer;
  font-size: 12px;
}

.caption-setting-toggle input {
  accent-color: var(--accent);
}

.caption-settings-panel {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(500px, 92vw);
}

.caption-settings-backdrop {
  grid-row: 1;
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  background: rgba(8, 10, 9, 0.72);
  cursor: default;
  backdrop-filter: blur(4px);
  animation: settings-fade-in 160ms ease-out;
}

.caption-settings-surface {
  position: relative;
  z-index: 1;
  display: flex;
  grid-row: 1;
  grid-column: 2;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: #171918;
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.28);
  animation: settings-slide-in 190ms ease-out;
}

.caption-settings-header {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 38px 28px;
  border-bottom: 1px solid rgba(242, 241, 237, 0.14);
}

.caption-settings-header .eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.caption-settings-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.caption-settings-header div > p:last-child {
  max-width: 330px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.caption-settings-close {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0 0 3px;
  place-items: center;
  color: #b9bab6;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  font-weight: 200;
  line-height: 1;
  transition: color 150ms ease, border-color 150ms ease;
}

.caption-settings-close:hover {
  color: var(--text);
  border-color: var(--muted);
}

.caption-settings-form {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 38px;
  scrollbar-gutter: stable;
}

.caption-settings-form fieldset {
  margin: 0;
  padding: 0 0 30px;
  border: 0;
}

.caption-settings-form legend {
  width: 100%;
  margin-bottom: 20px;
  padding: 28px 0 0;
  color: #c3c4c1;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.caption-settings-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 38px;
  border-top: 1px solid var(--line);
  background: rgba(23, 25, 24, 0.96);
  backdrop-filter: blur(12px);
}

.caption-settings-actions .text-button {
  margin: 0;
  font-size: 13px;
}

.caption-settings-actions #caption-settings-reset {
  color: var(--muted);
}

.caption-settings-actions #caption-settings-reset:hover {
  color: var(--text);
}

@keyframes settings-fade-in {
  from { opacity: 0; }
}

@keyframes settings-slide-in {
  from { transform: translateX(36px); opacity: 0; }
}

.caption-meta {
  display: flex;
  gap: 0;
  align-items: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.caption-toolbar .caption-meta {
  margin-top: 0;
}

.caption-meta > span {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.caption-meta > span + span {
  margin-left: 26px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.caption-meta strong {
  color: inherit;
  font-weight: 450;
}

.meta-bolt {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: #171918;
  border-radius: 50%;
  background: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.meta-clock {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid #b9bab6;
  border-radius: 50%;
}

.meta-clock::before,
.meta-clock::after {
  position: absolute;
  top: 4px;
  left: 8px;
  width: 1px;
  height: 5px;
  content: "";
  background: #b9bab6;
  transform-origin: bottom;
}

.meta-clock::after {
  transform: rotate(120deg);
}

.caption-page .content-column {
  position: relative;
  top: auto;
  left: auto;
  width: auto;
  margin: 0 clamp(28px, 3.6vw, 68px);
  padding: 34px 0 110px;
}

.caption-page .content-column h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 2.3vw, 38px);
}

.caption-page .supporting-copy {
  max-width: none;
  margin-bottom: 0;
  font-size: 16px;
}

.caption-jobs {
  margin-top: 32px;
  padding-top: 34px;
  border-top: 1px solid rgba(242, 241, 237, 0.14);
}

.caption-jobs-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
}

.caption-jobs-heading h2 {
  margin: 0;
  font-size: clamp(24px, 1.9vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.caption-jobs-heading span,
.jobs-empty,
.jobs-status {
  color: var(--muted);
  font-size: 13px;
}

.job-group {
  padding: 5px 0 7px;
  color: #a7a8a4;
  border-bottom: 1px solid rgba(242, 241, 237, 0.14);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.job-row {
  display: grid;
  grid-template-columns: 110px minmax(190px, 250px) 150px minmax(180px, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 54px);
  min-height: 66px;
  border-bottom: 1px solid rgba(242, 241, 237, 0.14);
}

.job-delete {
  padding: 8px 0 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

.job-delete:hover,
.job-delete:focus-visible,
.danger-link:hover,
.danger-link:focus-visible {
  color: #ff8d82;
}

.job-row-clickable {
  cursor: pointer;
  transition: background 150ms ease;
}

.job-row-clickable:hover,
.job-row-clickable:focus-visible {
  background: rgba(242, 241, 237, 0.045);
}

.job-thumbnail {
  position: relative;
  display: block;
  width: 104px;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(242, 241, 237, 0.16);
  border-radius: 5px;
  background:
    radial-gradient(circle at 72% 28%, hsla(calc(32 + var(--job-hue)), 45%, 65%, 0.42), transparent 18%),
    linear-gradient(152deg, hsla(calc(188 + var(--job-hue)), 36%, 35%, 0.75), transparent 48%),
    linear-gradient(18deg, #111514 30%, hsl(calc(18 + var(--job-hue)), 28%, 25%));
}

.job-thumbnail img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 120ms ease;
}

.job-thumbnail-loaded img {
  opacity: 1;
}

.job-thumbnail-loaded::before,
.job-thumbnail-loaded::after,
.job-thumbnail-loaded .job-thumbnail-mark {
  display: none;
}

.job-thumbnail::before,
.job-thumbnail::after {
  position: absolute;
  right: -10px;
  bottom: -16px;
  width: 85px;
  height: 38px;
  content: "";
  background: rgba(8, 10, 9, 0.6);
  transform: rotate(-9deg);
}

.job-thumbnail::after {
  right: 37px;
  bottom: -24px;
  transform: rotate(12deg);
}

.job-thumbnail-mark {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(255, 255, 255, 0.75);
  transform: translate(-35%, -50%);
}

.job-details {
  min-width: 0;
}

.job-details strong,
.job-details span {
  display: block;
}

.job-details strong {
  overflow: hidden;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 450;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-details span {
  color: var(--muted);
  font-size: 12px;
}

.job-status {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 9px;
  align-items: center;
  color: #c8c9c6;
  font-size: 13px;
}

.job-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #bcbdb9;
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.job-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.job-status-processing .job-status-dot {
  animation: job-pulse 1.5s ease-in-out infinite;
}

.job-status-failed {
  color: #c4a6a2;
}

.job-status-failed .job-status-dot {
  background: #b97870;
}

.jobs-empty {
  margin: 28px 0 0;
}

.jobs-sentinel {
  height: 1px;
}

.jobs-feedback {
  min-height: 42px;
  padding-top: 18px;
}

.jobs-status {
  display: inline;
  margin: 0;
}

.jobs-retry {
  margin-left: 12px;
  color: var(--accent);
  font-size: 13px;
}

.job-viewer {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 9, 0.82);
  backdrop-filter: blur(8px);
}

.job-viewer-panel {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(242, 241, 237, 0.22);
  border-radius: 10px;
  background: #171918;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.job-viewer-panel .eyebrow {
  margin-bottom: 10px;
}

.job-viewer-panel h2 {
  overflow: hidden;
  margin: 0 48px 24px 0;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-viewer-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.job-viewer-close:hover,
.job-viewer-close:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.job-viewer video {
  display: block;
  width: 100%;
  max-height: 62vh;
  background: #080a09;
  border: 1px solid rgba(242, 241, 237, 0.14);
  border-radius: 5px;
}

.job-viewer-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.job-viewer-caption {
  margin: 18px 0 0;
  color: #d7d8d3;
  line-height: 1.7;
  white-space: pre-wrap;
}

@keyframes job-pulse {
  50% { opacity: 0.35; }
}

.account-details {
  margin: 42px 0 36px;
}

.account-page .detail-line {
  border-bottom: 0;
}

.detail-line span {
  color: var(--muted);
}

.detail-line strong {
  font-weight: 400;
}

.spend-caps,
.credit-purchase,
.api-keys {
  margin: 56px 0 38px;
}

.spend-caps h2,
.credit-purchase h2,
.api-keys h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
}

.spend-caps-copy,
.credit-purchase-copy {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.spend-caps-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.spend-caps-form .line-field {
  margin: 0;
}

.spend-caps-form .text-button {
  margin-bottom: 12px;
}

.spend-caps .status-message {
  margin-top: 10px;
}

.credit-packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.credit-pack {
  cursor: pointer;
}

.credit-pack span {
  display: block;
  padding: 17px 16px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.credit-pack:hover span,
.credit-pack input:focus-visible + span {
  border-color: var(--muted);
}

.credit-pack input:checked + span {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(213, 235, 74, 0.04);
}

.credit-pack strong,
.credit-pack small {
  display: block;
}

.credit-pack strong {
  font-size: 19px;
  font-weight: 400;
}

.credit-pack small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.credit-purchase .text-button {
  margin-top: 22px;
}

.credit-purchase-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.credit-purchase .status-message {
  margin-top: 10px;
}

.api-page .content-column,
.account-page .content-column,
.legal-page .content-column,
.support-page .content-column {
  position: relative;
  top: auto;
  left: auto;
  margin: 0 auto;
  padding: 64px 0 128px;
}

.api-page .content-column {
  width: min(760px, calc(100vw - 56px));
}

.support-page .content-column {
  width: min(820px, calc(100vw - 56px));
}

.legal-page .content-column {
  width: min(620px, calc(100vw - 56px));
}

.api-page .supporting-copy {
  max-width: 680px;
}

.api-reference {
  margin: 44px 0 38px;
  border-top: 1px solid var(--line);
}

.api-reference section {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.api-reference section > code,
.api-notes code,
.api-key-reveal code {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.api-reference p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.api-reference .api-step {
  margin: 0 0 10px;
  color: #c3c4c1;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-reference pre {
  margin: 18px 0 0;
  padding: 18px 20px;
  overflow-x: auto;
  color: #c9cac6;
  border: 1px solid rgba(242, 241, 237, 0.12);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.12);
  font: 12px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.api-notes {
  margin-bottom: 38px;
}

.api-notes p {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid rgba(242, 241, 237, 0.1);
}

.api-notes span {
  color: var(--muted);
  font-size: 13px;
}

.api-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0 0 52px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #c3c4c1;
  font-size: 12px;
}

.api-toc a:hover,
.api-toc a:focus-visible {
  color: var(--accent);
}

.api-doc-section {
  padding: 0 0 62px;
  scroll-margin-top: 24px;
}

.api-doc-section + .api-doc-section {
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.api-doc-section h2 {
  margin: 0 0 16px;
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.api-doc-section h3 {
  margin: 32px 0 12px;
  font-size: 17px;
  font-weight: 450;
}

.api-doc-section h4 {
  margin: 25px 0 10px;
  color: #c3c4c1;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.api-doc-section > p,
.api-endpoint > p {
  max-width: 680px;
  color: #b0b1ae;
  line-height: 1.7;
}

.api-doc-section code,
.api-actions code {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.api-doc-section pre {
  margin: 18px 0 24px;
  padding: 18px 20px;
  overflow-x: auto;
  color: #d1d2ce;
  border: 1px solid rgba(242, 241, 237, 0.13);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.13);
  font: 12px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre;
}

.api-endpoint {
  padding: 32px 0 12px;
  border-top: 1px solid rgba(242, 241, 237, 0.1);
}

.api-endpoint h3 {
  margin-top: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
}

.api-endpoint h3 span {
  display: inline-block;
  min-width: 60px;
  color: var(--accent);
}

.api-table-wrap {
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid rgba(242, 241, 237, 0.12);
  border-radius: 5px;
}

.api-table-wrap table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: #bfc0bc;
  font-size: 12px;
  line-height: 1.55;
}

.api-table-wrap th,
.api-table-wrap td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(242, 241, 237, 0.09);
  text-align: left;
  vertical-align: top;
}

.api-table-wrap th {
  color: #e1e1dd;
  font-weight: 450;
}

.api-table-wrap tr:last-child td {
  border-bottom: 0;
}

.api-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  padding-top: 8px;
}

.support-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 42px 0 58px;
  border: 1px solid var(--line);
  background: var(--line);
}

.support-guides article {
  padding: 24px;
  background: var(--background);
}

.support-guides h2,
.support-contact h2,
.support-signin h2,
.support-request h2,
.support-history h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
}

.support-guides p,
.support-contact p,
.support-signin p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.support-guides a {
  color: var(--accent);
}

.support-contact,
.support-signin,
.support-request,
.support-history {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.support-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 18px;
  font-size: 13px;
}

.support-signin .accent-link {
  display: inline-flex;
  margin-top: 22px;
}

.support-request form {
  margin-top: 28px;
}

.support-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.support-request .line-field {
  margin-bottom: 28px;
}

.support-request .line-field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.support-request select,
.support-request textarea {
  width: 100%;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
}

.support-request select {
  padding: 5px 0 12px;
}

.support-request textarea {
  min-height: 150px;
  padding: 10px 0 12px;
  resize: vertical;
  line-height: 1.55;
}

.support-request select:focus,
.support-request textarea:focus {
  border-bottom-color: var(--text);
}

.support-safety {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.support-history-list {
  margin-top: 24px;
}

.support-ticket {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.support-ticket header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.support-ticket header strong {
  color: var(--accent);
  font: 12px "SFMono-Regular", Consolas, monospace;
}

.support-ticket-status {
  color: #c3c4c1;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.support-ticket-resolved,
.support-ticket-closed {
  color: var(--muted);
}

.support-ticket h3 {
  margin: 14px 0 6px;
  font-size: 16px;
  font-weight: 450;
}

.support-ticket-meta {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.support-ticket-message,
.support-ticket-response p {
  margin: 16px 0 0;
  color: #bfc0bc;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.support-ticket-response {
  margin-top: 20px;
  padding: 18px;
  border-left: 2px solid var(--accent);
  background: rgba(242, 219, 22, 0.035);
}

.support-ticket-response strong {
  font-size: 12px;
  font-weight: 450;
}

.support-ticket-response p {
  margin-top: 7px;
}

.api-keys-copy {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.account-danger {
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 141, 130, 0.28);
}

.account-danger h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
}

.account-danger p {
  max-width: 520px;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.danger-link {
  color: #dc8178;
}

.api-key-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.55fr) minmax(190px, auto) auto;
  gap: 30px;
  align-items: end;
}

.api-key-form .line-field {
  margin: 0;
}

.api-key-form .text-button {
  margin-bottom: 12px;
}

.api-key-scopes {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 0 8px;
  border: 0;
  color: var(--muted);
  font-size: 12px;
}

.api-key-scopes legend {
  margin-bottom: 7px;
  color: #c7c8c5;
}

.api-key-scopes label {
  display: flex;
  gap: 7px;
  align-items: center;
}

.api-key-reveal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: rgba(242, 219, 22, 0.04);
}

.api-key-reveal > span {
  color: var(--muted);
  font-size: 12px;
}

.api-key-reveal code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-key-reveal button,
.api-key-revoke {
  color: #c5c6c2;
  font-size: 12px;
}

.api-keys-list {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.api-keys-list:empty {
  display: none;
}

.api-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.api-key-row strong,
.api-key-row span {
  display: block;
}

.api-key-row strong {
  font-size: 14px;
  font-weight: 400;
}

.api-key-row span {
  margin-top: 4px;
  color: var(--muted);
  font: 11px "SFMono-Regular", Consolas, monospace;
}

.api-key-revoke:hover,
.api-key-revoke:focus-visible,
.api-key-reveal button:hover,
.api-key-reveal button:focus-visible {
  color: var(--accent);
}

.legal-copy {
  max-width: 560px;
  margin-top: 36px;
  color: #b0b1ae;
  line-height: 1.75;
}

.legal-copy h2 {
  margin: 34px 0 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.legal-copy p {
  margin: 0 0 18px;
}

.legal-copy strong {
  color: var(--text);
  font-weight: 400;
}

.legal-copy a {
  color: var(--accent);
}

.site-footer {
  position: absolute;
  z-index: 4;
  left: clamp(28px, 3.6vw, 68px);
  bottom: 28px;
  display: flex;
  gap: 24px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

body:not([data-route="home"]):not([data-route="auth"]) .site-footer {
  opacity: 1;
  pointer-events: auto;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
}

main:focus,
main:focus-visible {
  outline: none;
}

@media (max-width: 720px) {
  :root {
    --header-height: 92px;
  }

  .site-header {
    padding: 0 28px;
  }

  .wordmark {
    font-size: 20px;
  }

  .nav-center {
    gap: 20px;
  }

  .main-nav {
    gap: 20px;
  }

  .nav-right {
    gap: 16px;
    padding-left: 20px;
    font-size: 13px;
  }

  .back-home {
    font-size: 13px;
  }

  .auth-column,
  .content-column {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: 0 28px;
    padding-top: 12vh;
  }

  .caption-page .content-column {
    width: auto;
    margin: 0 28px;
    padding-top: 32px;
  }

  .caption-form {
    gap: 24px;
  }

  .caption-form .text-button {
    margin-right: 0;
  }

  .caption-toolbar {
    flex-wrap: wrap;
    gap: 16px 20px;
  }

  .caption-settings-trigger {
    padding-right: 20px;
  }

  .caption-settings-panel {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .caption-settings-surface {
    grid-column: 1;
    height: min(82vh, 760px);
    border-top: 1px solid var(--line);
    border-left: 0;
    box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.34);
    animation-name: settings-sheet-in;
  }

  .caption-settings-header {
    padding: 28px 28px 24px;
  }

  .caption-settings-form {
    padding: 0 28px;
  }

  .caption-settings-actions {
    padding: 18px 28px;
  }

  .api-page .content-column,
  .account-page .content-column,
  .legal-page .content-column,
  .support-page .content-column {
    width: auto;
    margin: 0 28px;
    padding-top: 40px;
  }

  .support-guides,
  .support-form-grid {
    grid-template-columns: 1fr;
  }

  .api-key-reveal {
    grid-template-columns: 1fr auto;
  }

  .api-key-reveal > span {
    grid-column: 1 / -1;
  }

  .job-row {
    grid-template-columns: 86px minmax(0, 1fr) auto auto;
    gap: 16px;
    min-height: 78px;
  }

  .job-thumbnail {
    width: 82px;
    height: 48px;
  }

  .job-description {
    display: none;
  }

  .auth-tabs {
    gap: 34px;
  }

  .site-footer {
    left: 28px;
  }

  .pricing-table {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-labels {
    display: none;
  }

  .pricing-plan {
    grid-template-rows: repeat(4, minmax(68px, auto));
    border: 1px solid rgba(242, 241, 237, 0.22);
  }

  .pricing-plan-cell {
    justify-content: space-between;
    min-height: 68px;
    padding: 14px 20px;
    text-align: right;
  }

  .pricing-plan-cell::before {
    flex: 0 0 auto;
    margin-right: 24px;
    color: var(--accent);
    content: attr(data-label);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .pricing-plan-heading > div {
    margin-left: auto;
  }

  .pricing-plan-price span {
    font-size: 42px;
  }

  .pricing-plan-featured {
    border-color: rgba(242, 241, 237, 0.28);
  }
}

@media (max-width: 900px) {
  .home-page {
    padding-top: 56px;
  }

  .home-intro {
    margin-bottom: 54px;
  }

  .home-intro h1 {
    margin: 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: min(640px, 78vw);
  }
}

@media (max-width: 460px) {
  .site-header {
    display: flex;
  }

  .nav-center a:not([data-nav="blog"]) {
    display: none;
  }

  .nav-right {
    grid-column: auto;
    padding-left: 0;
    border-left: 0;
  }

  .nav-credits {
    display: none;
  }

  body[data-route="auth"] .site-header {
    flex-wrap: nowrap;
  }

  .home-page,
  .auth-page,
  .content-page {
    min-height: calc(100vh - 128px);
  }

  .home-page {
    padding: 42px 18px 64px;
  }

  .home-intro {
    margin-bottom: 48px;
  }

  .home-intro h1 {
    font-size: 32px;
  }

  .product-card {
    min-height: 455px;
  }

  .product-card-copy {
    right: 22px;
    bottom: 28px;
    left: 22px;
  }

  .product-card-copy strong {
    font-size: 29px;
  }

  .pricing-divider {
    margin-top: 58px;
    margin-bottom: 46px;
  }

  .pricing-header h2 {
    font-size: 34px;
  }

  .pricing-header p {
    max-width: 250px;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.55;
  }

  .pricing-divider-bottom {
    margin-top: 48px;
    margin-bottom: 0;
  }

  .pricing-note {
    margin-top: 26px;
    line-height: 1.55;
  }

  .caption-meta {
    align-items: flex-start;
    font-size: 12px;
  }

  .caption-toolbar {
    align-items: flex-start;
  }

  .caption-settings-trigger {
    width: 100%;
    padding: 0 0 14px;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .caption-meta > span + span {
    margin-left: 16px;
    padding-left: 16px;
  }

  .caption-form {
    grid-template-columns: 1fr;
  }

  .caption-settings-grid {
    grid-template-columns: 1fr;
  }

  .api-notes p,
  .spend-caps-form,
  .api-key-form {
    grid-template-columns: 1fr;
  }

  .api-key-form .text-button {
    justify-self: end;
  }

  .caption-form .text-button {
    justify-self: end;
  }
}

@keyframes settings-sheet-in {
  from { transform: translateY(36px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
