:root {
  --bg: #0d0f14;
  --card: #151821;
  --line: #262b38;
  --ink: #eef1f6;
  --dim: #98a2b3;
  --accent: #7ee0a1;
  --warn: #ff8f7a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(13, 15, 20, 0.92);
  backdrop-filter: blur(8px);
}

.brand { font-weight: 700; letter-spacing: 0.4px; }
.account { display: flex; gap: 10px; align-items: center; }

main { max-width: 980px; margin: 0 auto; padding: 22px 18px 60px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
}

h1 { font-size: 24px; margin: 0 0 6px; }
h2 { font-size: 16px; margin: 0 0 12px; }
.sub { color: var(--dim); margin: 0 0 14px; }

.field { display: block; margin-bottom: 12px; }
.field span { display: block; color: var(--dim); font-size: 12px; margin-bottom: 5px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row .field { margin-bottom: 0; flex: 1 1 130px; }

input, select {
  width: 100%;
  padding: 10px 11px;
  background: #0f1218;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14px;
}

.check { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 13px; }
.check input { width: auto; }

button {
  font: inherit;
  border-radius: 9px;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid transparent;
}

.primary { background: var(--accent); color: #07211a; font-weight: 600; width: 100%; margin-top: 4px; }
.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
button:disabled { opacity: 0.55; cursor: wait; }

.pill { background: #0f1218; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.note { color: var(--dim); font-size: 13px; margin: 10px 0 0; }
.hidden { display: none !important; }
.err { color: var(--warn); font-size: 13px; }

.jobs, .ledger { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }

.job { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #11141c; }
.jobHead { display: flex; gap: 10px; align-items: center; }
.jobTitle { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobState { margin-left: auto; color: var(--dim); font-size: 12px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.running { background: #ffd479; }
.dot.done { background: var(--accent); }
.dot.failed { background: var(--warn); }

.bar { height: 4px; background: #0b0e13; border-radius: 4px; margin: 10px 0 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); transition: width 0.6s; }

.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.clip { background: #0f1218; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.clip video { width: 100%; border-radius: 8px; background: #000; }
.transcript { font-size: 13px; margin: 8px 0; }
.clip summary { color: var(--dim); font-size: 12px; cursor: pointer; }
.clip details ul { margin: 6px 0 0; padding-left: 16px; color: var(--dim); font-size: 12px; }
.dl { display: inline-block; margin-top: 8px; color: var(--accent); font-size: 12px; }

.ledger li { display: flex; gap: 10px; align-items: baseline; font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.ledger time { margin-left: auto; color: var(--dim); font-size: 12px; }
.up { color: var(--accent); }
.down { color: var(--warn); }

/* ── landing ─────────────────────────────────────────────── */
.hero { text-align: center; padding: 46px 0 10px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 auto 14px; max-width: 760px; }
.hero .sub { max-width: 620px; margin: 0 auto 18px; font-size: 17px; }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.chip { background: #0f1218; border: 1px solid var(--line); color: var(--dim); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.authcard { max-width: 430px; margin: 0 auto; text-align: left; }

.landing { margin-top: 34px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.step { background: #0f1218; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.step b { display: inline-block; background: var(--accent); color: #07211a; border-radius: 8px; padding: 2px 10px; margin-bottom: 10px; font-size: 13px; }
.step p { margin: 0; color: var(--dim); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feat { background: #0f1218; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.feat b { display: block; margin-bottom: 6px; }
.feat p { margin: 0; color: var(--dim); font-size: 14px; }

.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.compare th:first-child { width: 26%; }
.compare td { color: var(--dim); }
.compare td:last-child { color: var(--ink); }
.compare tr:first-child th { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.compare tr:first-child th:last-child { color: var(--accent); }

details { border-top: 1px solid var(--line); padding: 12px 2px; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--dim); margin: 8px 0 0; font-size: 14px; }

footer { text-align: center; color: var(--dim); font-size: 13px; padding: 30px 0 40px; }
