:root {
  --bg: #0b0b12;
  --bg-soft: #14141f;
  --panel: #1a1a26;
  --border: #2a2a3a;
  --fg: #f4f4f8;
  --muted: #9aa0b4;
  --accent: #00f2ea;
  --accent-2: #ff0050;
  --warn: #ffb400;
  --ok: #2ecc71;
  --danger: #ff4757;
  --radius: 14px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11,11,18,0.75);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--fg); }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); font-size: 14px; }
.nav a.cta {
  color: #0b0b12; background: linear-gradient(135deg, var(--accent), #7a5cff 60%, var(--accent-2));
  padding: 9px 14px; border-radius: 999px; font-weight: 700;
}
.nav a.cta:hover { text-decoration: none; filter: brightness(1.1); }

/* Hero */
.hero { padding: 90px 0 60px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #ffffff 0%, #b0b8ff 50%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { font-size: 18px; color: var(--muted); max-width: 680px; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel); color: var(--fg); cursor: pointer; font-weight: 600;
  font-size: 15px; text-decoration: none;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #7a5cff 55%, var(--accent-2));
  color: #0b0b12; border: none;
}
.btn.primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost:hover { border-color: var(--accent); text-decoration: none; }

/* Legal banner */
.legal-banner {
  margin-top: 36px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.legal-banner .left { color: var(--muted); font-size: 14px; }
.legal-banner .links { display: flex; gap: 18px; }
.legal-banner .links a { font-weight: 600; }

/* Sections */
section { padding: 60px 0; border-top: 1px solid var(--border); }
section h2 { font-size: clamp(24px, 3.5vw, 36px); margin: 0 0 12px; }
section p.section-lede { color: var(--muted); max-width: 720px; margin: 0 0 36px; }

/* Feature grid */
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .icon {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(0,242,234,0.2), rgba(255,0,80,0.2));
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}

/* Steps */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0b12; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.step h4 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* FAQ */
details {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 10px;
}
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { color: var(--accent); }
details p { color: var(--muted); margin: 8px 0 0; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 60px; color: var(--muted); font-size: 14px;
}
footer .container { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); margin-right: 16px; }
footer a:hover { color: var(--accent); }

/* Article (legal pages) */
.article { padding: 60px 0; max-width: 820px; }
.article h1 { font-size: 36px; margin: 0 0 8px; }
.article .meta { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.article h2 { font-size: 22px; margin: 28px 0 8px; color: #fff; }
.article h3 { font-size: 17px; margin: 18px 0 6px; }
.article p, .article li { color: #d8dceb; }
.article ul { padding-left: 22px; }
.article code {
  background: var(--bg-soft); padding: 2px 6px; border-radius: 6px;
  border: 1px solid var(--border); font-size: 13px;
}

/* Dashboard */
.dash {
  display: grid; gap: 24px; grid-template-columns: 1fr;
  padding: 40px 0 80px;
}
@media (min-width: 900px) {
  .dash { grid-template-columns: 320px 1fr; }
}
.user-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.user-card .who { display: flex; align-items: center; gap: 12px; }
.user-card img { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border); }
.user-card .name { font-weight: 700; }
.user-card .scopes { font-size: 12px; color: var(--muted); word-break: break-all; }
.user-card .logout { margin-top: auto; }

.publisher {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.publisher h2 { margin: 0 0 6px; }
.publisher .hint { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.publisher .hint.small { margin: 8px 0 0; font-size: 12px; }

.creator-panel {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 22px; padding: 14px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
}
.creator-panel img {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border);
  object-fit: cover;
}
.creator-panel .name { font-weight: 700; margin-bottom: 4px; }

.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 30px; text-align: center; color: var(--muted);
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.dropzone.drag { border-color: var(--accent); background: rgba(0,242,234,0.04); color: #fff; }
.dropzone strong { color: #fff; }
.video-preview {
  width: 100%; max-height: 420px; margin-top: 14px;
  background: #000; border: 1px solid var(--border); border-radius: 10px;
}

.field { margin-top: 18px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input[type=text],
.field textarea,
.field select {
  width: 100%; background: var(--bg-soft); color: var(--fg);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font: inherit;
}
.field textarea { min-height: 80px; resize: vertical; }
.row-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-size: 14px; }
.checks label.disabled { color: var(--muted); }
.disclosure label,
.consent label {
  display: inline-flex; align-items: flex-start; gap: 8px;
  color: var(--fg); font-size: 14px; line-height: 1.45;
}
.commercial-options {
  margin-top: 10px; padding: 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-soft);
  display: flex; flex-wrap: wrap; gap: 14px;
}
.commercial-options[hidden] { display: none; }

.submit-row { display: flex; gap: 12px; align-items: center; margin-top: 22px; }
.submit-row .btn:disabled {
  cursor: not-allowed; opacity: .55; filter: grayscale(.35);
}
.status {
  margin-top: 22px; padding: 16px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  display: none; white-space: pre-wrap;
}
.status.show { display: block; }
.bar {
  margin-top: 10px; height: 6px; border-radius: 3px;
  background: var(--border); overflow: hidden;
}
.bar > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s ease;
}
.alert {
  margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: rgba(255, 71, 87, 0.12); border: 1px solid rgba(255, 71, 87, 0.4);
  color: #ffd7da; font-size: 14px;
}
.alert.ok {
  background: rgba(46, 204, 113, 0.12); border-color: rgba(46, 204, 113, 0.4); color: #d2f4dd;
}

/* Misc */
.tag {
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; background: rgba(255,255,255,0.06); color: var(--muted);
  border: 1px solid var(--border);
}
.kbd { font-family: ui-monospace, monospace; font-size: 12px; background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border); }

/* The public workspace and supporting pages share the same product UI. */
:root { --bg: #f5f6f8; --bg-soft: #f8fafb; --panel: #fff; --border: #dde3e8; --fg: #192c37; --muted: #5b6b75; --accent: #17695f; --accent-2: #328c80; --max: 1220px; }
[hidden] { display: none !important; }
body { line-height: 1.6; }
a { text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #409d90; outline-offset: 4px; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 20; padding: 12px; background: #fff; }
.skip-link:focus { top: 12px; }
.site-header { background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.site-header .container { gap: 24px; min-height: 76px; }
.brand { font-size: 23px; letter-spacing: -1px; }
.nav { flex-wrap: wrap; gap: 20px; }
.nav a { color: #465861; }
.nav a[aria-current] { color: var(--accent); font-weight: 700; }
.nav a.cta, .btn.primary { color: #fff; background: #17695f; border: 1px solid #17695f; }
.btn { border-radius: 8px; padding: 10px 15px; justify-content: center; }
.btn.primary:hover { background: #12584f; filter: none; }
.btn.ghost { background: #fff; }
.tag { background: #f0f5f4; color: #48665f; border-color: #dce7e3; padding: 4px 9px; }
.workspace-heading { padding: 36px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.workspace-heading h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -1.2px; line-height: 1.2; margin: 8px 0 10px; }
.workspace-heading p:not(.eyebrow) { margin: 0; color: var(--muted); }
.eyebrow { margin: 0; color: #53766f; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; }
.dash { align-items: start; grid-template-columns: 265px minmax(0,1fr); padding: 28px 0 40px; }
.user-card { gap: 14px; padding: 23px; }
.user-card .who img { width: 42px; height: 42px; border-radius: 12px; }
.user-card .name { font-size: 15px; }
.hint { color: var(--muted); margin: 0; font-size: 13px; }
.hint.small { font-size: 12px; }
.sidebar-divider { height: 1px; background: var(--border); margin: 7px 0; }
.sidebar-title { font-size: 14px; margin: 0; }
.checklist { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.checklist li { margin-bottom: 8px; }
.user-card > a:not(.btn) { font-size: 12px; }
.publisher { padding: 28px; min-width: 0; }
.publisher h2 { font-size: 23px; letter-spacing: -.5px; }
.editor-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 8px; }
.creator-panel { background: #f0f7f5; }
.dropzone { padding: 27px 16px; border: 1.5px dashed #a9bdb6; background: #fafcfb; }
.dropzone strong { color: var(--fg); font-size: 15px; }
.dropzone.drag { color: var(--fg); background: #eaf6f1; }
.dropzone .hint { display: block; margin-top: 10px; }
.upload-symbol { display: block; margin: 0 auto 8px; width: 34px; height: 34px; border: 1px solid #d4e1dc; border-radius: 9px; font-size: 24px; color: #17695f; line-height: 28px; }
.video-preview { max-height: 360px; }
.file-details { margin-top: 10px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.field label { color: var(--fg); }
.field textarea { min-height: 104px; background: #fff; }
.field select { background: #fff; font-size: 14px; }
input[type=checkbox] { accent-color: #17695f; margin-top: 4px; flex-shrink: 0; }
select:disabled, input:disabled { cursor: not-allowed; }
.draft-actions { display: flex; gap: 17px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.draft-actions .btn { font-size: 12px; padding: 7px 12px; }
.text-button { padding: 0; background: none; border: 0; color: var(--accent); font-size: 12px; cursor: pointer; text-underline-offset: 3px; }
.text-button:hover { text-decoration: underline; }
.submit-row { align-items: center; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--border); }
.submit-row .hint { flex: 1; min-width: 170px; }
.publisher .checks { gap: 10px; }
.publisher .checks label, .disclosure label, .consent label { font-size: 13px; }
.consent label { display: flex; }
.publisher .hint.small { margin-top: 8px; }
.status { font-family: inherit; overflow-wrap: anywhere; white-space: pre-wrap; }
.status.error, .alert { color: #8d2535; background: #fff1f2; border-color: #edb7c0; }
.workspace-info { padding: 32px 0 48px; }
.workspace-info h2 { font-size: 22px; margin-bottom: 25px; }
.workspace-info h3 { font-size: 15px; margin: 0 0 8px; }
.workspace-info p, .workspace-info a { font-size: 13px; }
.workspace-info p { color: var(--muted); }
.article { max-width: 820px; margin: 0 auto; padding: 42px 0 65px; }
.article h1 { font-size: 34px; letter-spacing: -1px; }
.article h2, .article p, .article li { color: var(--fg); }
.article p, .article li { overflow-wrap: anywhere; }
.article .meta { font-size: 15px; }
.article pre { overflow-x: auto; }
details { background: #fff; }
footer { background: #fff; padding: 24px 0; font-size: 12px; }
footer .container > div:last-child { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { margin: 0; }
@media (max-width: 900px) { .dash { grid-template-columns: 220px minmax(0,1fr); gap: 18px; } .publisher { padding: 20px; } .nav { gap: 13px; } .workspace-heading > .tag { display: none; } }
@media (max-width: 700px) { .container { padding: 0 16px; } .site-header .container { align-items: flex-start; padding: 14px 16px; gap: 18px; } .nav { justify-content: flex-end; column-gap: 13px; row-gap: 8px; } .nav a { font-size: 12px; } .workspace-heading { padding-top: 26px; } .dash { grid-template-columns: minmax(0,1fr); } .user-card { padding: 18px; } .user-card .sidebar-divider, .user-card .sidebar-title, .user-card .checklist, .user-card > a:not(.btn), .user-card > .hint.small { display: none; } .user-card { gap: 10px; } .user-card > .btn { align-self: flex-start; } .publisher { padding: 18px; } .publisher .checks { gap: 15px; } .editor-heading > .tag { display: none; } .workspace-info .grid-3 { grid-template-columns: minmax(0,1fr); } .article h1 { font-size: 29px; } }
