@font-face { font-family: Unbounded; src: url('/assets/Unbounded-Variable.ttf') format('truetype'); font-display: swap; }

:root {
  --bg: #15110e;
  --panel: #1e1813;
  --panel-2: #261d17;
  --line: #3b2a20;
  --line-hot: #6b3a1d;
  --text: #ffffff;
  --muted: #bfaea2;
  --orange: #f2581f;
  --orange-light: #ff9f43;
  --red: #b5301b;
  --ok: #7fcf8a;
  --bad: #ff7a6b;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif; }
h1, h2, h3, .brand, .eyebrow, .btn, .tag { font-family: Unbounded, system-ui, sans-serif; }
a { color: var(--orange-light); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: .5px; }
.brand img { width: 28px; height: 28px; margin-right: 10px; }
.brand span { color: var(--orange-light); }
.tag { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--orange); color: var(--orange-light); background: rgba(242, 88, 31, .1); vertical-align: middle; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 500; border-radius: 10px; padding: 11px 18px; border: 1px solid var(--line-hot); background: transparent; color: var(--text); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--orange-light); }
.btn.primary { background: var(--orange); border-color: var(--orange); }
.btn.primary:hover { background: #ff6a2e; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.small { padding: 7px 12px; font-size: 12px; }

/* Landing */
.hero { padding: 88px 0 40px; }
.eyebrow { font-size: 11px; letter-spacing: 2px; color: var(--orange-light); text-transform: uppercase; margin: 0; }
.hero h1 { font-size: clamp(34px, 6.4vw, 70px); line-height: 1.06; font-weight: 600; margin: 18px 0; }
.hero h1 em { font-style: normal; color: var(--orange-light); }
.lead { color: var(--muted); font-size: 17px; max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.beta-note { margin-top: 26px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line-hot); border-radius: var(--radius); background: var(--panel); max-width: 640px; }
.beta-note p { margin: 0; color: var(--muted); }
.beta-note strong { color: var(--text); }

section.block { padding: 48px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: 22px; font-weight: 600; margin: 8px 0 22px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.plan { position: relative; }
.plan .price { font-family: Unbounded, system-ui; font-size: 30px; color: var(--orange-light); margin: 6px 0 4px; }
.plan .price small { font-size: 12px; color: var(--muted); }
.plan .tag { position: absolute; top: 18px; right: 18px; }
.plan.dim { opacity: .75; }
footer.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 26px 0 40px; }

/* Auth */
.auth { max-width: 420px; margin: 64px auto; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.tabs button { flex: 1; }
.tabs button[aria-selected="true"] { border-color: var(--orange); background: rgba(242, 88, 31, .12); }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
input, select { width: 100%; font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
input:focus, select:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.form-actions { margin-top: 20px; }
.form-actions .btn { width: 100%; }
.msg { min-height: 22px; margin-top: 12px; font-size: 14px; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--ok); }
.hint { color: var(--muted); font-size: 13px; }

/* Target picker */
.pick-head { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 8px; }
.linkish { background: none; border: 0; color: var(--orange-light); font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 240px; overflow-y: auto; }
.chip { font: inherit; font-size: 13px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.chip:hover { border-color: var(--line-hot); }
.chip[aria-pressed="true"] { background: rgba(242, 88, 31, .18); border-color: var(--orange); color: #fff; }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.chips > .chip-group { flex: 1 1 100%; }
.chip-group .chips { max-height: none; overflow: visible; }
.chip-label { font-size: 12px; color: var(--muted, #9a9a9a); text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 6px; }

/* Dashboard */
.dash { padding: 34px 0 60px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; justify-content: space-between; }
.dash-head h1 { font-size: 24px; font-weight: 600; margin: 6px 0 0; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 13px; color: var(--muted); }
.stat b { color: var(--text); }
.convert { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin-top: 22px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 210px; border: 1.5px dashed var(--line-hot); border-radius: var(--radius); background: var(--panel); padding: 24px; cursor: pointer; }
.drop.over { border-color: var(--orange-light); background: var(--panel-2); }
.drop strong { font-family: Unbounded, system-ui; font-weight: 500; font-size: 15px; }
.drop .file { margin-top: 10px; color: var(--orange-light); word-break: break-all; }
.progress { height: 6px; background: var(--panel-2); border-radius: 6px; overflow: hidden; margin-top: 14px; }
.progress div { height: 100%; width: 0; background: var(--orange); transition: width .2s; }
.jobs { margin-top: 30px; }
.jobs h2 { font-size: 17px; font-weight: 600; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.job .name { font-weight: 600; word-break: break-all; }
.job .meta { color: var(--muted); font-size: 13px; }
.job .state { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.state.succeeded { color: var(--ok); }
.state.failed, .state.cancelled, .state.expired { color: var(--bad); }
.state.queued, .state.running { color: var(--orange-light); }
.job .downloads { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.job details { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.job details ul { margin: 6px 0 0; padding-left: 18px; }
.empty { color: var(--muted); padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.hidden { display: none !important; }

@media (max-width: 820px) {
  .grid, .convert { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .top nav .hide-sm { display: none; }
  .top .wrap { gap: 10px; }
  .brand { font-size: 15px; }
  .brand img { width: 24px; height: 24px; margin-right: 8px; }
}
@media (max-width: 380px) {
  .top .tag { display: none; }
}
