:root {
  color-scheme: dark;
  --bg: #07171d;
  --surface: #10252b;
  --surface-2: #16343a;
  --line: #315158;
  --text: #f5f8f8;
  --muted: #a9bec2;
  --teal: #34d4ca;
  --green: #73d89b;
  --amber: #f0bd62;
  --red: #ff7c78;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

a { color: inherit; }

.app-header,
main,
footer {
  width: min(1040px, calc(100% - 40px));
  margin-inline: auto;
}

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

.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup img { border: 1px solid var(--line); border-radius: 6px; }
h1, h2, p { margin: 0; }
h1 { font-size: 18px; line-height: 1.25; }
.brand-lockup p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.environment { color: var(--muted); font-size: 13px; }

main { padding: 36px 0 52px; }

.status-band,
.proof-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 26px 0;
}

.status-band { border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--teal); font-size: 12px; font-weight: 700; text-transform: uppercase; }
h2 { margin-top: 6px; font-size: 24px; line-height: 1.25; }
.muted { margin-top: 7px; color: var(--muted); font-size: 14px; }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary { background: var(--teal); color: #041719; }
.button:hover { filter: brightness(1.08); }
.button[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.workspace { padding: 34px 0 38px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.state { padding: 6px 9px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.state-waiting { color: var(--amber); background: #3a2d16; }
.state-ready { color: var(--green); background: #173725; }
.state-error { color: var(--red); background: #421e20; }

.pipeline { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pipeline li {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.pipeline li:last-child { border-bottom: 0; }
.step-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
}
.pipeline strong, .pipeline small { display: block; }
.pipeline strong { font-size: 14px; }
.pipeline small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.step-state { color: var(--muted); font-size: 12px; }
.pipeline .complete .step-number { border-color: var(--green); color: var(--green); }

.proof-band { align-items: flex-start; }
.proof-band dl {
  min-width: min(540px, 58%);
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.proof-band dl div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.proof-band dt { color: var(--muted); font-size: 12px; }
.proof-band dd { margin: 5px 0 0; font-size: 14px; font-weight: 700; }

footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
footer nav { display: flex; gap: 18px; }
footer a { text-underline-offset: 3px; }

.legal { max-width: 760px; padding-top: 42px; }
.legal h1 { font-size: 32px; }
.legal .updated { margin-top: 8px; color: var(--muted); font-size: 13px; }
.legal section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 18px; }
.legal p, .legal li { margin-top: 10px; color: #d8e4e6; font-size: 15px; line-height: 1.7; }
.legal ul { margin: 8px 0 0; padding-left: 20px; }

@media (max-width: 680px) {
  .app-header, main, footer { width: min(100% - 28px, 1040px); }
  .environment { display: none; }
  .status-band, .proof-band { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .section-heading { align-items: flex-start; }
  .proof-band dl { min-width: 0; width: 100%; }
  .pipeline li { grid-template-columns: 34px minmax(0, 1fr); padding: 12px 0; }
  .step-state { grid-column: 2; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
}
