/* ==========================================================================
   signup.css — sign up + provider onboarding (real app, LOCK3). Mirrors the reference
   "Claim your fees": one centred 536px column · (provider path) a thin 5-part progress row ·
   30px/400 title · one grey line · a hairline card · a full-width white pill · fine print.
   Builds on nett.css only (nt-btn, nt-notice, nt-tag, nt-lpill, nt-coin, nt-avatar, nt-skel).
   ========================================================================== */

.su-col {
  width: 100%;
  max-width: 536px;
  margin: 64px auto 48px;
}
@media (max-width: 1099px) { .su-col { margin-top: 40px; } }
@media (max-width: 767px) { .su-col { margin-top: 8px; margin-bottom: 24px; } }

/* Page art (nett.css .nt-art--head): the arch of light stands atop the column, and the
   view rises into its faded foot. */
.su-col:has(> .su-art) { margin-top: -24px; }
.su-art { --nt-art-bleed: 32px; --nt-art-tuck: 40px; }
@media (max-width: 767px) { .su-col:has(> .su-art) { margin-top: -8px; } .su-art { --nt-art-bleed: var(--nt-gutter); --nt-art-tuck: 24px; } }

.su-view { position: relative; min-width: 0; }
/* Desktop: room for the tallest short step, so the footer stays below the fold while a step
   resolves (skeleton → view) instead of jumping in view. */
@media (min-width: 768px) { .su-view, .su-col.is-boot .su-boot { min-height: 500px; } }
.su-view.su-enter { animation: su-in 220ms var(--nt-ease-out) both; }   /* once per new step, not per repaint */

/* First paint (static markup, before signup.js): ?role=provide shows the provider variant; a cached
   signed-in account sees the skeleton, never a flash of "Sign in". */
.su-col:not(.is-prov) .su-if-prov, .su-col.is-prov .su-if-gen { display: none; }
.su-boot { display: none; }
.su-col.is-boot .su-boot { display: block; }
.su-col.is-boot .su-view { display: none; }

/* ---- Progress row (provider path): five hairline bars, the label under each ------------- */
.su-top { position: relative; margin-bottom: 32px; }
.su-prog { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.su-prog__i { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.su-prog__bar { position: relative; height: 3px; border-radius: var(--nt-r-pill); background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.su-prog__bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--nt-text-strong); transform: scaleX(0); transform-origin: left center; transition: transform 320ms var(--nt-ease-out); }
.su-prog__i.is-done .su-prog__bar::after,
.su-prog__i.is-current .su-prog__bar::after { transform: scaleX(1); }
.su-prog__i.is-done .su-prog__bar::after { opacity: 0.55; }
.su-prog__lbl { font-size: var(--nt-fs-small); line-height: 1.2; color: var(--nt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-prog__i.is-current .su-prog__lbl { color: var(--nt-text-strong); }
.su-prog__i.is-done .su-prog__lbl { color: var(--nt-text-2); }
@media (max-width: 479px) {
  /* Phones: the bars, and only the current label. */
  .su-prog__lbl { visibility: hidden; }
  .su-prog__i.is-current .su-prog__lbl { visibility: visible; overflow: visible; }
}

/* Back: a quiet text button above the bars, left edge. */
.su-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  margin: 0 0 12px -6px;
  padding: 0 10px 0 4px;
  border-radius: var(--nt-r-pill);
  font-size: var(--nt-fs-small);
  color: var(--nt-muted);
  transition: color var(--nt-d-hover) var(--nt-ease), background-color var(--nt-d-hover) var(--nt-ease);
}
.su-back:hover { color: var(--nt-text-strong); background: rgba(255, 255, 255, 0.05); }
.su-back.is-off { visibility: hidden; }  /* the row keeps its height, so the bars never move */

/* ---- Title + grey line ------------------------------------------------------ */
.su-demo { margin: 0 0 14px; }
.su-title {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: var(--nt-w-regular);
  color: var(--nt-text-strong);
  outline: none;
}
.su-sub {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--nt-muted);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) { .su-title { font-size: 28px; } }

/* ---- The card ---------------------------------------------------------------- */
.su-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 28px 0 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--nt-r-row);
  background: var(--nt-surface);
}
.su-card + .su-card { margin-top: 12px; }
@media (max-width: 767px) { .su-card { padding: 12px; } }

.su-notice { margin-top: 24px; }
.su-notice + .su-card { margin-top: 12px; }
.su-cta > .nt-notice, .su-notice { align-items: center; flex-wrap: wrap; }
.su-cta > .nt-notice > p, .su-notice > p { flex: 1 1 220px; }
.su-cta > .nt-notice > .nt-btn, .su-notice > .nt-btn { margin: -6px -8px -6px auto; }

/* ---- Sign in: three ways ("(X) Continue with X  RECOMMENDED") -------------------- */
.su-ways { gap: 8px; }
.su-way {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--nt-r-pill);
  background: transparent;
  font-family: var(--nt-font-sans);
  font-size: 15px;
  line-height: 1.2;
  color: var(--nt-text);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--nt-d-hover) var(--nt-ease), background-color var(--nt-d-hover) var(--nt-ease), color var(--nt-d-hover) var(--nt-ease);
}
.su-way:hover:not(:disabled) { background: var(--nt-surface-2); color: var(--nt-text-strong); }
.su-way:focus-visible { outline: var(--nt-focus); outline-offset: 2px; }
.su-way:disabled { cursor: progress; }
.su-way:disabled:not([aria-busy="true"]) { opacity: 0.55; }
.su-way__ic { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--nt-surface-3); color: var(--nt-text-strong); }
.su-way__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-way--main { border-color: var(--nt-inverse-bg); background: var(--nt-inverse-bg); color: var(--nt-inverse-fg); font-weight: var(--nt-w-medium); }
.su-way--main:hover:not(:disabled) { border-color: var(--nt-inverse-hover); background: var(--nt-inverse-hover); color: var(--nt-inverse-fg); }
.su-way--main .su-way__ic { background: rgba(10, 10, 10, 0.08); color: var(--nt-inverse-fg); }
.su-way--main .su-way__tag { box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.2); color: rgba(10, 10, 10, 0.62); }
@media (max-width: 379px) { .su-way__tag { display: none; } }

/* ---- Choose: two action rows ----------------------------------------------------- */
.su-acts { display: flex; flex-direction: column; gap: 8px; margin: 28px 0 0; padding: 16px; list-style: none; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--nt-r-row); background: var(--nt-surface); }
@media (max-width: 767px) { .su-acts { padding: 12px; } }
.su-act {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: transparent;
  font-family: var(--nt-font-sans);
  color: var(--nt-text-strong);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--nt-d-hover) var(--nt-ease), background-color var(--nt-d-hover) var(--nt-ease);
}
.su-act:hover { background: var(--nt-surface-2); border-color: rgba(255, 255, 255, 0.14); }
.su-act:focus-visible { outline: var(--nt-focus); outline-offset: 2px; }
.su-act__ic { --nt-av-size: 40px; color: rgba(10, 10, 10, 0.82); }
.su-act__ic > svg { stroke-width: 2; }
.su-act__txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.su-act__txt > b { font-size: 15px; line-height: 1.3; font-weight: var(--nt-w-medium); }
.su-act__txt > span { font-size: var(--nt-fs-small); line-height: 1.35; color: var(--nt-muted); }
.su-act__go { flex: none; color: var(--nt-muted); transition: transform var(--nt-d-hover) var(--nt-ease), color var(--nt-d-hover) var(--nt-ease); }
.su-act:hover .su-act__go { transform: translateX(2px); color: var(--nt-text-strong); }

/* ---- Checklist rows (X account · wallet · gas) --------------------------------------- */
.su-rows { gap: 0; padding-top: 6px; padding-bottom: 6px; }
.su-row { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px; padding: 10px 2px; }
.su-row + .su-row { border-top: var(--nt-rule-hair); }
.su-row__ic { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--nt-surface-2); color: var(--nt-text-strong); }
.su-row__ic > .nt-avatar { --nt-av-size: 36px; }
.su-row__ic > .nt-lg { --s: 36px; }
.su-row__txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.su-row__lbl { font-size: var(--nt-fs-small); line-height: 1.3; color: var(--nt-muted); }
.su-row__val { display: flex; align-items: center; min-width: 0; font-size: 15px; line-height: 1.35; color: var(--nt-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-row__val > b { font-weight: var(--nt-w-medium); color: var(--nt-text-strong); overflow: hidden; text-overflow: ellipsis; }
.su-row__end { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex: none; }
.su-row__end .nt-btn--sm { padding: 0 12px; }
.su-hint { margin: -2px 2px 8px 50px; font-size: var(--nt-fs-small); line-height: 1.5; color: var(--nt-muted); text-wrap: pretty; }
@media (max-width: 399px) {
  .su-row { gap: 10px; }
  .su-row__ic { width: 32px; height: 32px; }
  .su-row__ic > .nt-avatar { --nt-av-size: 32px; }
  .su-row__ic > .nt-lg { --s: 32px; }
  .su-hint { margin-left: 44px; }
}
.su-av { display: block; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--nt-surface-3); }
.su-av > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.su-mono { font-family: var(--nt-font-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.su-muted { display: inline-flex; align-items: center; font-size: var(--nt-fs-small); color: var(--nt-muted); }

/* Key / value line (fee example, live status). */
.su-kv { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-width: 0; padding: 12px 2px; font-size: var(--nt-fs-ui); }
.su-kv + .su-kv { border-top: var(--nt-rule-hair); }
.su-kv > span { flex: none; color: var(--nt-muted); }
.su-kv > b { min-width: 0; font-weight: var(--nt-w-medium); color: var(--nt-text-strong); text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.su-kv .nt-link { white-space: nowrap; }

/* ---- Fee: a big editable figure over a slider ---------------------------------------- */
.su-fee { gap: 14px; padding: 20px 20px 8px; }
.su-fee__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.su-fee__val { display: inline-flex; align-items: baseline; gap: 2px; font-size: 44px; line-height: 1; letter-spacing: -0.02em; font-weight: var(--nt-w-medium); color: var(--nt-text-strong); font-variant-numeric: tabular-nums; }
.su-fee__in {
  width: 3ch;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  font-variant-numeric: inherit;
}
.su-fee__in:hover { border-bottom-color: rgba(255, 255, 255, 0.4); }
.su-fee__in:focus { outline: none; border-bottom-color: var(--nt-text-strong); }
.su-fee__in[aria-invalid="true"] { border-bottom-style: solid; border-bottom-color: var(--nt-text-strong); }
.su-fee__max { padding-bottom: 4px; font-size: var(--nt-fs-small); color: var(--nt-muted); }
.su-fee .nt-field__error { margin-top: -4px; }
.su-fee .su-kv { margin-top: 2px; border-top: var(--nt-rule-hair); }

/* Range: a hairline track, white fill to the thumb (--p), a white thumb. */
.su-range { --p: 0%; width: 100%; height: 28px; margin: 0; padding: 0; background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; }
.su-range:focus { outline: none; }
.su-range::-webkit-slider-runnable-track { height: 4px; border-radius: var(--nt-r-pill); background: linear-gradient(90deg, var(--nt-text-strong) var(--p), rgba(255, 255, 255, 0.14) var(--p)); }
.su-range::-moz-range-track { height: 4px; border-radius: var(--nt-r-pill); background: rgba(255, 255, 255, 0.14); }
.su-range::-moz-range-progress { height: 4px; border-radius: var(--nt-r-pill); background: var(--nt-text-strong); }
.su-range::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; border: 0; border-radius: 50%; background: var(--nt-text-strong); box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.9), 0 2px 8px rgba(0, 0, 0, 0.5); appearance: none; -webkit-appearance: none; transition: transform var(--nt-d-hover) var(--nt-ease); }
.su-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--nt-text-strong); box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.9), 0 2px 8px rgba(0, 0, 0, 0.5); }
.su-range:hover::-webkit-slider-thumb { transform: scale(1.06); }
.su-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.9), 0 0 0 6px var(--nt-focus-ring); }
.su-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.9), 0 0 0 6px var(--nt-focus-ring); }

/* ---- Bond: funding pills, a big amount, the tiers ------------------------------------ */
.su-bondcard { gap: 16px; }
.su-fund { gap: 8px; }
.su-fund .nt-lpill__in { height: 40px; padding-right: 12px; font-size: var(--nt-fs-ui); }
.su-fund .nt-lpill__in > .nt-coin { --s: 26px; }
.su-fund .nt-lpill > input:disabled + .nt-lpill__in { opacity: 1; color: var(--nt-muted); background: transparent; box-shadow: inset 0 0 0 1px var(--nt-border); }
.su-fund .nt-lpill > input:disabled + .nt-lpill__in > .nt-coin { opacity: 0.5; }
.su-fund .nt-tag { margin-left: -2px; }
@media (max-width: 479px) { .su-fund .nt-lpill { flex: 1 1 100%; } .su-fund .nt-lpill__in { width: 100%; } }

.su-amt { display: flex; flex-direction: column; gap: 10px; }
.su-amt__box {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 64px;
  padding: 0 18px;
  border: 1px solid var(--nt-field);
  border-radius: var(--nt-r-input);
  background: var(--nt-surface-2);
  transition: border-color var(--nt-d-hover) var(--nt-ease), box-shadow var(--nt-d-hover) var(--nt-ease);
}
.su-amt__box:hover { border-color: var(--nt-border-strong); }
.su-amt__box:focus-within { border-color: rgba(255, 255, 255, 0.42); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.su-amt__cur { font-size: 28px; line-height: 1; color: var(--nt-muted); }
.su-amt__in { flex: 1 1 auto; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: var(--nt-text-strong); font-family: var(--nt-font-sans); font-size: 28px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.su-amt__in:focus { outline: none; }
.su-amt__unit { flex: none; font-size: var(--nt-fs-ui); color: var(--nt-muted); }
.su-amt__meta { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0 2px; font-size: var(--nt-fs-small); color: var(--nt-muted); }
.su-amt__meta > .su-mono { display: inline-flex; align-items: center; margin-left: auto; color: var(--nt-text-2); font-size: 12.5px; }
.su-linkbtn { padding: 0; border: 0; background: none; font: inherit; color: var(--nt-text-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); cursor: pointer; }
.su-linkbtn:hover { text-decoration-color: var(--nt-text-strong); }
.su-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: var(--nt-r-inner); background: var(--nt-surface-2); font-size: var(--nt-fs-small); color: var(--nt-muted); }
.su-addr > code { font-family: var(--nt-font-mono); font-size: 12.5px; color: var(--nt-text-strong); background: none; padding: 0; }
.su-addr > .nt-copy { margin-left: auto; }

.su-tiercard { gap: 0; padding-top: 6px; }
.su-tiers { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.su-tier { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 12px 2px; font-size: var(--nt-fs-ui); color: var(--nt-text-2); }
.su-tier + .su-tier { border-top: var(--nt-rule-hair); }
.su-tier > b { font-weight: var(--nt-w-medium); color: var(--nt-text); }
.su-tier__when { font-size: var(--nt-fs-small); color: var(--nt-muted); white-space: nowrap; }
.su-tier.is-current, .su-tier.is-current > b { color: var(--nt-text-strong); }
.su-tier.is-current .su-tier__when { color: var(--nt-text-2); }
.su-tiercard .su-hint { margin: 4px 2px 4px; }
@media (max-width: 399px) { .su-tier { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; } }

/* ---- Live: the provider's on-chain status -------------------------------------------- */
.su-live { gap: 0; padding-top: 18px; }
.su-live__head { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 2px 14px; }
.su-live__head > .nt-avatar { --nt-av-size: 36px; }
.su-live__who { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.su-live__who > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: var(--nt-w-medium); color: var(--nt-text-strong); }
.su-live__who > span { font-size: var(--nt-fs-small); color: var(--nt-muted); }
.su-state { flex: none; gap: 6px; }
.su-dot--live { background: var(--nt-good); }
.su-live .su-kv:first-of-type { border-top: var(--nt-rule-hair); }
.su-track { padding: 14px 2px 6px; border-top: var(--nt-rule-hair); }
.su-track__bar { position: relative; height: 4px; border-radius: var(--nt-r-pill); background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.su-track__bar > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--nt-text-strong); }
.su-track__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: var(--nt-fs-micro); color: var(--nt-muted); font-variant-numeric: tabular-nums; }

/* ---- White pill + fine print ------------------------------------------------------- */
.su-cta { margin-top: 24px; }
.su-next { font-weight: var(--nt-w-bold); }
.su-next[aria-busy="true"] { cursor: progress; opacity: 1; }
.su-next .su-spin { margin-right: 8px; }
.su-fine {
  margin-top: 20px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--nt-muted);
  text-wrap: balance;
}
/* Consent line under the sign-in step: Terms and Privacy Policy links (.nt-link). */
.su-fine + .su-legal { margin-top: 6px; }

/* Spinner (inline, currentColor). */
.su-spin { display: inline-block; flex: none; width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: su-spin 700ms linear infinite; }
.su-way__ic > .su-spin { margin: 0; }

/* Skeleton (loading an account). */
.su-skel { display: block; }
.su-skel--title { width: 62%; height: 30px; border-radius: 8px; }
.su-skel--sub { width: 44%; height: 16px; margin-top: 4px; }
.su-skel--row { height: 56px; border-radius: 14px; }
.su-skel--pill { height: var(--nt-btn-h-lg); border-radius: var(--nt-r-pill); }
.su-boot .su-card { margin-top: 28px; }
.su-boot .su-cta { margin-top: 24px; }

.nt-field__error[hidden] { display: none; }

@keyframes su-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes su-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .su-view.su-enter { animation: none; }
  .su-prog__bar::after { transition: none; }
  .su-spin { animation-duration: 1.6s; }
}
