/* ══════════════════════════════════════════════════════════════
   signup.css — create an account and pay in one step

   Loaded after wallet.css, which already carries .shelf, .packs,
   .pk and .panel. Only what is new to this page is here.
   ══════════════════════════════════════════════════════════════ */

/* ── the four steps ────────────────────────────────────────
   A progress bar that is honest about where you are, because
   "how much more of this is there" is the first thing anyone
   wants to know about a sign-up form.

   Prefixed su- on purpose: wallet.css (loaded before this file)
   has its own .steps/.step list that stacks in a column, and the
   shared names made this bar stack too. */
.su-steps{
  display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:0;
  margin:0 0 20px;padding:0 2px;overflow:hidden
}
.su-step{
  display:flex;align-items:center;gap:8px;flex:1 1 0;min-width:0;
  padding:0;border:0;
  position:relative;color:var(--muted);font-size:12.5px
}
.su-step:last-child{flex:0 0 auto}
.su-step:not(:last-child)::after{
  content:"";flex:1;min-width:12px;height:1px;background:var(--line);margin:0 10px
}
.su-step.done:not(:last-child)::after{background:var(--accent)}
.su-step b{
  width:24px;height:24px;flex:0 0 24px;border-radius:50%;
  display:grid;place-items:center;
  font-family:var(--mono);font-size:11px;font-weight:700;
  background:var(--panel-2);border:1px solid var(--line);color:var(--muted)
}
.su-step span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.su-step.on{color:var(--text)}
.su-step.on b{background:var(--accent);border-color:var(--accent);color:#04120b}
.su-step.done b{border-color:var(--accent);color:var(--accent)}
.su-step.done{color:var(--text-2)}

/* ── a step's card ─────────────────────────────────────────── */
.card{
  padding:26px;border-radius:16px;
  background:var(--panel-2);border:1px solid var(--line)
}
.card.slim{padding:20px 22px;margin-bottom:18px}
.card h1{font-size:21px;font-weight:700;margin:0;letter-spacing:-.4px}
.card .lede{
  margin:8px 0 20px;font-size:13.5px;line-height:1.6;color:var(--text-2)
}
.card.slim h1{font-size:18px}
.card.slim .lede{margin-bottom:14px}

.fld{display:block;margin-bottom:14px}
.fld > span{
  display:block;margin-bottom:6px;font-size:12.5px;font-weight:600;color:var(--text-2)
}
.fld input{
  width:100%;padding:11px 13px;border-radius:10px;font-size:14px;
  background:var(--panel-3);border:1px solid var(--line);color:var(--text);
  transition:border-color .15s
}
.fld input:focus{outline:none;border-color:var(--accent)}
/* Named rather than just coloured, so the message above says why. */
.fld input.wrong{border-color:#e07b7b}
.fld .hint{
  display:block;margin-top:5px;font-size:11.5px;color:var(--muted);font-style:normal
}

.showpw{
  display:flex;align-items:center;gap:8px;cursor:pointer;
  margin:2px 0 18px;font-size:12.5px;color:var(--text-2)
}
.showpw input{accent-color:var(--accent);width:14px;height:14px}

.btn.big{padding:12px 18px;font-size:14px;font-weight:650}

.row-btns{display:flex;gap:9px;margin-top:20px}
.row-btns .btn{flex:1;justify-content:center}
.row-btns .btn.primary{flex:2}

.alt{
  margin:14px 0 0;text-align:center;font-size:12.5px;color:var(--muted)
}
.linkish{
  background:none;border:0;padding:0;cursor:pointer;
  color:var(--accent);font-size:12.5px;text-decoration:underline;
  text-underline-offset:3px
}

/* ── choosing an app ───────────────────────────────────────
   Big targets with the icon, because "which app was it?" is
   answered by recognising the icon, not by reading a name. */
.apps{display:flex;flex-direction:column;gap:10px}
.appc{
  display:flex;align-items:center;gap:14px;width:100%;cursor:pointer;
  padding:15px;border-radius:13px;text-align:left;
  background:var(--panel-3);border:1px solid var(--line);color:var(--text);
  transition:border-color .15s,background .15s
}
.appc:hover{border-color:#39414c}
.appc.on{border-color:var(--accent)}
.appc img{border-radius:10px;flex:0 0 46px}
.appc-t{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.appc-t b{font-size:14.5px;font-weight:650}
.appc-t span{font-size:12px;color:var(--muted)}
.appc-t .appc-s{font-size:11.5px;color:var(--text-2)}
.appc-tick{
  width:22px;height:22px;flex:0 0 22px;border-radius:50%;
  display:grid;place-items:center;
  border:1px solid var(--line);color:transparent
}
.appc.on .appc-tick{background:var(--accent);border-color:var(--accent);color:#04120b}
.appc-tick svg{width:13px;height:13px}

/* ── the review block ──────────────────────────────────────── */
/* Flat: the card around it is already a panel, and a second box
   inside it read as one layer too many. The row lines are enough. */
.review{
  background:none;border:0;border-radius:0;
  padding:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)
}
.card.slim #back4{margin-top:18px}
.rev-row{
  display:flex;align-items:center;gap:14px;
  padding:11px 0;font-size:13.5px
}
.rev-row + .rev-row{border-top:1px solid var(--line)}
.rev-row span{color:var(--muted);flex:0 0 96px;font-size:12.5px}
.rev-row b{font-weight:600;word-break:break-all;flex:1;min-width:0}
.rev-row b.dim{color:var(--muted);font-weight:400;font-style:italic}
.review.small .rev-row{padding:9px 0;font-size:12.5px}

/* ── waiting for the payment ───────────────────────────────── */
.waiting{text-align:center;padding:14px 4px}
.waiting h1{margin:18px 0 0}
.waiting .lede{max-width:430px;margin:9px auto 18px}
.waiting .review{max-width:380px;margin:0 auto 20px;text-align:left}
.waiting .btn{min-width:200px;justify-content:center}

.spinner{
  width:42px;height:42px;margin:0 auto;border-radius:50%;
  border:3px solid var(--line);border-top-color:var(--accent);
  animation:spin .8s linear infinite
}
@keyframes spin{to{transform:rotate(360deg)}}

.tick{
  width:46px;height:46px;margin:0 auto;border-radius:50%;
  display:grid;place-items:center;
  background:var(--accent);color:#04120b
}
.tick svg{width:24px;height:24px}

.done-btns{display:flex;gap:9px;justify-content:center;flex-wrap:wrap;margin-top:6px}
.done-btns .btn{min-width:0;flex:0 1 auto}

@media (max-width:640px){
  .card{padding:20px 17px}
  .card h1{font-size:19px}

  /* Still one straight line. Four labels don't fit a phone, so
     only the current step keeps its name; the others are numbers. */
  .su-steps{margin-bottom:16px}
  .su-step{gap:6px;font-size:12px}
  .su-step span{display:none}
  .su-step.on span{display:inline}
  .su-step:not(:last-child)::after{margin:0 6px}

  .row-btns{flex-direction:column-reverse}
  .row-btns .btn{width:100%;flex:none}
  .rev-row{flex-direction:column;align-items:flex-start;gap:3px}
  .rev-row span{flex:none}
  .waiting .btn{width:100%;min-width:0}
  .done-btns .btn{width:100%}
}
