:root {
  color-scheme: dark;
  --bg: #12141A;
  --surface: #1C1F28;
  --ink: #fafeff;
  --lede: #C4C4C4;
  --muted: #8E9894;
  --line: rgba(255, 255, 255, 0.1);
  --teal: #7EB8B0;
  --teal-ink: #10201E;
  --sage: #A8B8B0;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(126, 184, 176, 0.16), transparent 60%),
    radial-gradient(700px 380px at 100% 100%, rgba(168, 184, 176, 0.08), transparent 55%);
}

.top, .stage, .foot { position: relative; z-index: 1; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.mark { width: 22px; height: 20px; display: block; }

.role {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.stage {
  width: min(720px, calc(100% - 40px));
  margin: 24px auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.lede {
  margin: 16px 0 0;
  max-width: 38rem;
  color: var(--lede);
  font-size: 1.05rem;
  line-height: 1.45;
}

.drop {
  position: relative;
  margin-top: 32px;
  border: 1px dashed rgba(126, 184, 176, 0.55);
  background: rgba(28, 31, 40, 0.72);
  border-radius: 22px;
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drop.over,
.drop:hover {
  border-color: var(--teal);
  background: rgba(126, 184, 176, 0.08);
}

.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-idle, .drop-file {
  padding: 28px 20px;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.drop-title { font-size: 1.25rem; font-weight: 600; }

.drop-sub, .file-size, .match-meta, .note, .foot {
  color: var(--muted);
}

.drop-choose {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink);
  font-size: 0.92rem;
}

.drop-file { width: 100%; }
.drop-file video {
  width: min(100%, 420px);
  max-height: 180px;
  border-radius: 14px;
  background: #0c0e13;
  object-fit: cover;
}
.file-meta { display: grid; gap: 4px; }
.file-name { font-weight: 600; }

.btn, .match-go {
  font-family: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--teal-ink);
  cursor: pointer;
}

.btn {
  margin-top: 16px;
  padding: 14px 22px;
  font-size: 1rem;
}

.btn:hover, .match:hover .match-go { filter: brightness(1.06); }

.split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 28px 0 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split::before, .split::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.match {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.match:hover { border-color: rgba(126, 184, 176, 0.55); }

.faces { display: flex; }
.faces img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #0c0e13;
  border: 2px solid var(--surface);
}
.faces img + img { margin-left: -12px; }

.match-copy { display: grid; gap: 4px; min-width: 0; }
.match-name { font-weight: 600; font-size: 1.05rem; }
.match-meta { font-size: 0.92rem; }
.match-go { padding: 10px 14px; font-size: 0.92rem; white-space: nowrap; }

.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: rgba(250, 254, 255, 0.38);
}

.steps li strong, .steps li em { display: block; font-style: normal; }
.steps li em { margin-top: 2px; color: inherit; font-size: 0.95rem; }
.steps li.on { color: var(--ink); }
.steps li.done { color: var(--sage); }

.step-mark {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}

.steps li.on .step-mark { background: var(--teal); border-color: var(--teal); }
.steps li.done .step-mark { background: currentColor; }

.bar {
  margin-top: 26px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--teal);
  transition: width 0.45s ease;
}

.note { margin: 14px 0 0; font-size: 0.92rem; line-height: 1.45; min-height: 1.4em; }

.text-btn {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.foot {
  padding: 8px 28px 22px;
  font-size: 0.82rem;
}

.file-banner {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(196, 137, 42, 0.12);
  color: #E0B56A;
  font-size: 0.95rem;
}

@media (max-width: 680px) {
  .stage { margin-top: 28px; }
  .match { grid-template-columns: auto 1fr; }
  .match-go { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .bar span { transition: none; }
}
