/* Create flow: intro, fields, stats pair, submit (the edit-profile header is in ehead.css). Ported from .design/a/form.css.
   Picker and donate live in picker.css. Loaded after app.css, whose element h1/h2/p rules
   are neutralised here where the mock's classes share those elements. */

.intro { padding: var(--s-6) 0 var(--s-5); }
.intro__title { margin: 0; font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
@media (min-width: 700px) { .intro__title { font-size: 28px; } .intro { padding-top: var(--s-10); } }
.intro__sub { margin: 6px 0 0; color: var(--text-2); }

/* ---- Sections ---- */
.sect { margin-top: var(--s-6); }
.sect__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.sect__title { margin: 0; font-size: var(--fs-xs); font-weight: 700; line-height: var(--lh); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.sect__aside { color: var(--text-3); font-size: var(--fs-xs); }
.stack { display: grid; gap: var(--s-3); }

/* ---- Field: label sits inside the box, platform style ---- */
.field {
  position: relative;
  display: block;
  margin: 0;
  padding: 9px var(--s-4) 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: 400;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field:hover { border-color: var(--line-strong); }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.field__label { color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; }
.field__req { color: var(--accent); margin-left: 2px; }
.field__count { color: var(--text-3); font-size: var(--fs-xs); }
.field__row { display: flex; align-items: center; gap: 2px; min-height: 28px; }
.field__prefix { color: var(--text-3); font-size: var(--fs-lg); white-space: nowrap; }
.field__input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 28px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: var(--fs-lg);
  font-weight: 500;
}
.field__input::placeholder { color: var(--text-3); font-weight: 400; }
.field__input:focus-visible { outline: 0; }
.field__status { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: var(--fs-sm); font-weight: 600; }
.field__status:empty { display: none; }
.field__status--ok { color: var(--ok); }
.field__status--err { color: var(--err); }
.field__status--busy { color: var(--text-3); font-weight: 500; }
.help { margin: 6px 0 0; padding: 0 2px; color: var(--text-3); font-size: var(--fs-xs); }

/* Money field: the income reads in the ok family, like the profile's earnings chip */
.field--money .field__prefix,
.field--money .field__input { color: var(--ok); }

/* Error state */
.field--err { border-color: var(--err-line); background: var(--err-soft); }
.field--err:hover { border-color: var(--err-line); }
.field--err .field__label { color: var(--err); }
.field--err:focus-within { border-color: var(--err); box-shadow: 0 0 0 3px var(--err-soft); }
.err { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 0 2px; color: var(--err); font-size: var(--fs-sm); font-weight: 500; }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-2); color: var(--text-3); font-size: var(--fs-xs); }
.suggest .chip { height: 32px; cursor: pointer; }

/* ---- Stats pair ---- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.dice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 36px;
  padding: 0 var(--s-3) 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.dice::after { content: ""; position: absolute; inset: -4px 0; }
.dice:hover { background: var(--surface-3); }
.dice .ico { color: var(--accent); }

/* ---- Submit area ---- */
.submit { margin-top: var(--s-8); }
.submit__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: var(--s-3) 0 0; color: var(--text-2); font-size: var(--fs-sm); text-align: center; }
.submit__note--quiet { margin-top: var(--s-2); color: var(--text-3); font-size: var(--fs-xs); }
.submit__err { margin: 0 0 var(--s-3); text-align: center; color: var(--err); font-size: var(--fs-sm); font-weight: 500; }
