/* Tokens from the marketplace design system (frontend/src/index.css), light by default and dark when the system asks for it. */
:root {
  --bg: #F2F4FA;
  --text: #0D1117;
  --text-2: rgba(13, 17, 23, 0.68);
  --text-3: rgba(13, 17, 23, 0.52);
  --skel: #E3E7F0;
  --cyan: #0E7490;
  --success: #15803D;
  --warning: #B45309;
  --error: #DC2626;
  --success-rgb: 21, 128, 61;
  --warning-rgb: 180, 83, 9;
  --error-rgb: 220, 38, 38;
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080B12;
    --text: #F0F4FF;
    --text-2: rgba(240, 244, 255, 0.72);
    --text-3: rgba(240, 244, 255, 0.56);
    --skel: #1A2235;
    --cyan: #00D9FF;
    --success: #22D37A;
    --warning: #F59E0B;
    --error: #EF4444;
    --success-rgb: 34, 211, 122;
    --warning-rgb: 245, 158, 11;
    --error-rgb: 239, 68, 68;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-rows: auto 1fr;
}

.top { padding: 24px 32px; }

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}

.word {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.05em;
}

.flow {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 12vh 24px 64px;
}

h1 {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  min-height: 48px;
  text-wrap: pretty;
}

.lede strong { color: var(--text); font-weight: 600; }

.skel {
  display: block;
  height: 14px;
  margin: 5px 0 10px;
  border-radius: var(--radius-sm);
  background: var(--skel);
}
.skel.short { width: 62%; }

.btn {
  width: 100%;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--text);
  color: var(--bg);
  font: 600 14px/1 var(--font);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn[hidden] { display: none; }

.fine {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-3);
}

.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.55;
}
.note[hidden] { display: none; }
.note p { margin: 0; color: var(--text); }
.note .icon { flex: 0 0 auto; margin-top: 2px; }
.note a {
  display: inline-block;
  margin-top: 6px;
  color: inherit;
  font-weight: 600;
  text-underline-offset: 3px;
}
.note a[hidden] { display: none; }
.note.success { background: rgba(var(--success-rgb), 0.12); color: var(--success); }
.note.warning { background: rgba(var(--warning-rgb), 0.12); color: var(--warning); }
.note.error   { background: rgba(var(--error-rgb), 0.12); color: var(--error); }

@media (prefers-reduced-motion: no-preference) {
  .note:not([hidden]) { animation: rise 0.25s ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(4px); } }
}

@media (max-width: 480px) {
  .top { padding: 20px; }
  .flow { padding: 8vh 20px 48px; }
  h1 { font-size: 24px; }
}
