/* Launch page. Tokens, buttons, nav and the CA chip come from styles.css. */

.launch { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: clamp(32px, 5vw, 64px) 0 0; }
.launch-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 3vw, 36px); }
.launch-head h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 700; letter-spacing: -0.02em; }
.launch-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }

/* ---------- Form ---------- */

.launch-form {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.6vw, 28px);
  border: var(--stroke) solid var(--ink);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 6px 0 var(--ink);
}
.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font-size: 14px; font-weight: 600; }
.optional { font-weight: 500; color: var(--ink-3); }
.field input, .field textarea, .ticker-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: background-color 150ms ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .ticker-input:focus-within { outline: 3px solid var(--blue); outline-offset: 1px; background: var(--card); }
.ticker-input { display: flex; align-items: center; gap: 2px; padding: 0 0 0 14px; font-family: var(--font-display); font-weight: 600; }
.ticker-input input { min-height: 42px; padding-left: 2px; border: 0; background: transparent; outline: none; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }
.field-hint { font-size: 13px; color: var(--ink-2); }
.text-link { justify-self: start; font-size: 14px; font-weight: 600; text-underline-offset: 3px; }

.drop {
  display: grid;
  place-items: center;
  width: 148px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px dashed rgb(22 22 22 / 0.45);
  border-radius: 22px;
  background: var(--paper-2);
  text-align: center;
  cursor: pointer;
  transition-property: border-color, background-color;
  transition-duration: 150ms;
}
.drop[data-over] { border-color: var(--ink); background: var(--sun-tint); }
.drop img { width: 100%; height: 100%; object-fit: cover; }
.drop-empty { display: grid; gap: 4px; padding: 12px; font-size: 12px; color: var(--ink-2); }
.drop-empty strong { font-family: var(--font-display); font-size: 15px; color: var(--ink); }

.socials { border: 2px dashed rgb(22 22 22 / 0.2); border-radius: 16px; padding: 12px 14px; }
.socials summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.socials-grid { display: grid; gap: 12px; margin-top: 12px; }

.terms { display: grid; gap: 8px; padding: 16px; border: 2px solid var(--ink); border-radius: 18px; background: var(--sun-tint); font-size: 14px; color: var(--ink-2); }
.terms strong { color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-weight: 600; color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }

.btn--launch { min-height: 56px; font-size: 19px; }
.btn--launch:disabled { opacity: 0.6; cursor: progress; }
.form-error { min-height: 1.4em; font-size: 14px; font-weight: 600; color: var(--red); }

/* ---------- Side ---------- */

.launch-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.preview-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px 16px;
  padding: 18px;
  border: var(--stroke) solid var(--ink);
  border-radius: 24px;
  background: var(--blue);
  box-shadow: 0 6px 0 var(--ink);
}
.preview-art { display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; border: var(--stroke) solid var(--ink); border-radius: 50%; background: var(--card); font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.preview-art img { width: 100%; height: 100%; object-fit: cover; }
.preview-card h2 { font-size: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-card .ticker { color: var(--ink); opacity: 0.65; }
.preview-pair { grid-column: 1 / -1; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); font-size: 14px; }

.steps { display: grid; gap: 8px; margin: 0; padding: 16px 18px; border: var(--stroke) solid var(--ink); border-radius: 22px; background: var(--card); list-style: none; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-3); counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
}
.steps li[data-state="active"] { color: var(--ink); }
.steps li[data-state="active"]::before { border-color: var(--ink); background: var(--sun); animation: pulse 1s ease-in-out infinite alternate; }
.steps li[data-state="done"] { color: var(--green-2); }
.steps li[data-state="done"]::before { content: "✓"; border-color: var(--green-2); background: var(--green-tint); }
.steps li[data-state="failed"] { color: var(--red); }
.steps li[data-state="failed"]::before { content: "!"; border-color: var(--red); background: var(--red-tint); }

.done { display: grid; gap: 12px; padding: 20px; border: var(--stroke) solid var(--ink); border-radius: 24px; background: var(--green-tint); }
.done h2 { font-size: 30px; }
.done-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Wallet picker ---------- */

.wallets { width: min(420px, calc(100% - 32px)); padding: 22px; border: var(--stroke) solid var(--ink); border-radius: 26px; background: var(--card); box-shadow: 0 8px 0 var(--ink); color: var(--ink); }
.wallets::backdrop { background: rgb(22 22 22 / 0.35); }
.wallets[open] { animation: rise 220ms var(--ease-out); }
.wallets h2 { font-size: 26px; margin-bottom: 14px; }
.wallets ul { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition-property: scale, background-color;
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out);
}
.wallet-option:active { scale: 0.96; }
.wallet-option img { border-radius: 8px; }
@media (hover: hover) and (pointer: fine) { .wallet-option:hover { background: var(--sun-tint); } }

@media (max-width: 900px) {
  .launch-grid { grid-template-columns: 1fr; }
  .launch-side { position: static; order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .steps li[data-state="active"]::before, .wallets[open] { animation: none; }
}

.no-wallets { display: grid; gap: 12px; margin-bottom: 14px; }
.deeplinks { display: grid; gap: 8px; }
