:root {
  --ink: #121317;
  --muted: #626873;
  --surface: #ffffff;
  --soft: #f4f5f7;
  --line: #dfe2e8;
  --accent: #fe2c55;
  --accent-dark: #d91d45;
  --success: #177245;
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(254, 44, 85, 0.28);
  outline-offset: 3px;
}

.site-header,
.site-footer,
.product-intro,
.workflow-band,
.media-lifecycle,
.control-band,
.legal-page {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.site-header nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.site-header nav a,
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"],
.footer-links a:hover {
  color: var(--ink);
}

.product-intro {
  min-height: calc(100svh - 118px);
  padding: clamp(56px, 9vh, 104px) 0 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.product-mark {
  margin-bottom: 28px;
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(18, 19, 23, 0.16);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(48px, 9vw, 88px);
  line-height: 0.98;
  font-weight: 760;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.08;
  font-weight: 720;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.intro-copy {
  max-width: 720px;
  margin-bottom: 28px;
  color: #3e434c;
  font-size: clamp(18px, 2.5vw, 23px);
  line-height: 1.5;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.primary-action,
.secondary-action,
.danger-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  font: inherit;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.primary-action {
  background: var(--accent);
  color: #ffffff;
}

.primary-action:hover {
  background: var(--accent-dark);
}

.text-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.trust-line {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.workflow-band,
.control-band {
  padding: 88px 0;
}

.section-heading {
  max-width: 670px;
  margin-bottom: 48px;
}

.workflow-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  list-style: none;
}

.workflow-list li {
  min-width: 0;
  padding: 28px 28px 0 0;
}

.workflow-list li + li {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.workflow-list p,
.control-copy p,
.legal-title p,
.legal-content p {
  color: var(--muted);
}

.step-number {
  display: block;
  margin-bottom: 32px;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 750;
}

.media-lifecycle {
  width: 100%;
  max-width: none;
  padding: 72px max(16px, calc((100% - 1120px) / 2));
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  background: var(--ink);
  color: #ffffff;
}

.media-lifecycle .eyebrow {
  color: #ff7892;
}

.media-lifecycle h2 {
  max-width: 540px;
  margin: 0;
}

.lifecycle-track {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) minmax(180px, auto);
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 650;
}

.lifecycle-track i {
  height: 1px;
  background: #555a65;
}

.control-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  border-bottom: 1px solid var(--line);
}

.control-copy {
  padding-top: 28px;
  font-size: 17px;
}

.site-footer {
  padding: 38px 0 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.site-footer p {
  max-width: 440px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  font-size: 15px;
}

.legal-page {
  max-width: 920px;
  padding: 72px 0 96px;
}

.legal-title {
  max-width: 760px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.legal-title h1 {
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1.02;
}

.legal-title p:not(.eyebrow) {
  max-width: 700px;
  font-size: 19px;
}

.legal-content {
  max-width: 760px;
  padding-top: 20px;
}

.legal-content section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content a {
  color: var(--accent-dark);
  overflow-wrap: anywhere;
}

.studio-page {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  padding: 64px 0 96px;
}

.studio-title {
  padding-bottom: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}

.studio-title h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 7vw, 68px);
}

.studio-title > div:first-child > p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.creator-summary {
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.creator-summary img {
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.creator-summary strong,
.creator-summary span {
  display: block;
}

.creator-summary span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.publish-workspace {
  border-bottom: 1px solid var(--line);
}

.form-section {
  min-height: 300px;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 720px);
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.form-number {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.form-content h2,
.account-controls h2 {
  margin-bottom: 24px;
  font-size: 32px;
}

.form-content > label:not(.file-picker) {
  display: block;
  margin: 26px 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.mode-picker {
  margin: 0;
  padding: 0;
  border: 0;
}

.mode-picker legend {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.segmented-control {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #bcc1ca;
  border-radius: var(--radius);
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.segmented-control label {
  min-height: 48px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.segmented-control label + input + label {
  border-left: 1px solid #bcc1ca;
}

.segmented-control input:checked + label {
  background: var(--ink);
  color: #ffffff;
}

.segmented-control input:focus-visible + label {
  outline: 3px solid rgba(254, 44, 85, 0.28);
  outline-offset: -3px;
}

.segmented-control input:disabled + label {
  cursor: wait;
  opacity: 0.55;
}

.draft-mode-note {
  max-width: 620px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  color: #454a53;
}

.file-picker {
  min-height: 144px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed #adb2bc;
  border-radius: var(--radius);
  background: var(--soft);
  cursor: pointer;
}

.file-picker:hover {
  border-color: var(--ink);
}

.file-picker-title {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 720;
}

.file-picker-copy,
.field-note,
.publish-disclosure,
.account-controls p {
  color: var(--muted);
}

#videoInput {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #bcc1ca;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}

textarea {
  min-height: 144px;
  resize: vertical;
}

textarea:disabled,
select:disabled {
  background: var(--soft);
  color: #8b9099;
}

.field-note {
  margin: 8px 0 0;
  font-size: 13px;
}

.publish-disclosure {
  max-width: 650px;
  margin-bottom: 24px;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.secondary-action {
  border-color: #bcc1ca;
  background: #ffffff;
  color: var(--ink);
}

.danger-action {
  border-color: #d94b55;
  background: #ffffff;
  color: #b32632;
}

.secondary-action:hover:not(:disabled),
.danger-action:hover:not(:disabled) {
  background: var(--soft);
}

.status-panel {
  min-height: 54px;
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid #adb2bc;
  background: var(--soft);
  color: #454a53;
}

.status-panel[data-tone="success"] {
  border-color: var(--success);
  color: var(--success);
}

.status-panel[data-tone="error"] {
  border-color: #b32632;
  color: #9e1f2b;
}

.account-controls {
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
}

.account-controls p {
  max-width: 660px;
  margin-bottom: 0;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
  }

  .site-header nav {
    gap: 12px;
  }

  .site-header nav a:last-child {
    display: none;
  }

  .product-intro {
    min-height: calc(100svh - 90px);
    padding-top: 44px;
  }

  .product-mark {
    width: 84px;
    height: 84px;
    border-radius: 19px;
  }

  h1 {
    font-size: 52px;
  }

  .workflow-band,
  .control-band {
    padding: 64px 0;
  }

  .workflow-list {
    display: block;
  }

  .workflow-list li,
  .workflow-list li + li {
    padding: 26px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .step-number {
    margin-bottom: 16px;
  }

  .media-lifecycle,
  .control-band {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .media-lifecycle {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .lifecycle-track {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lifecycle-track i {
    width: 1px;
    height: 22px;
    margin-left: 4px;
  }

  .control-copy {
    padding-top: 0;
  }

  .site-footer {
    display: block;
  }

  .footer-links {
    margin-top: 28px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .legal-page {
    padding-top: 52px;
  }

  .studio-page {
    padding: 48px 0 72px;
  }

  .studio-title {
    display: block;
  }

  .creator-summary {
    min-width: 0;
    margin-top: 30px;
  }

  .form-section {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 38px 0;
  }

  .form-content h2 {
    font-size: 28px;
  }

  .account-controls {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  .account-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
