/* Sign-up pages: one column, large touch targets, readable on a small phone and on a slow
   connection (no web fonts, no images besides the photos the person takes). */
:root {
  --bg: #f6f7f9; --card: #ffffff; --ink: #14181f; --muted: #5b6573; --line: #d8dde5;
  --brand: #0b6e4f; --brand-ink: #ffffff; --bad: #b3261e; --warn-bg: #fff4d6; --warn-ink: #5c4300;
  --ok: #0b6e4f; --focus: #1a73e8; --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216; --card: #191e25; --ink: #eef1f5; --muted: #a5afbd; --line: #333c49;
    --brand: #3ecf9a; --brand-ink: #05251a; --bad: #ff8a80; --warn-bg: #3a2f10; --warn-ink: #ffe08a;
    --ok: #3ecf9a; --focus: #8ab4f8;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; max-width: 640px; margin: 0 auto; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -0.5px; color: var(--brand); text-decoration: none; }
.langs button { background: none; border: 1px solid transparent; color: var(--muted); font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.langs button[aria-pressed="true"] { border-color: var(--line); color: var(--ink); font-weight: 700; }
main { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
h1 { font-size: 24px; line-height: 1.2; margin: 8px 0 6px; }
h2 { font-size: 18px; margin: 20px 0 8px; }
p { margin: 8px 0; }
a { color: var(--brand); font-weight: 600; }
.sub { color: var(--muted); margin: 0 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.choice { display: block; text-decoration: none; color: inherit; }
.choice strong { display: block; font-size: 18px; }
.choice span { color: var(--muted); }
.steps { display: flex; gap: 6px; margin: 8px 0 16px; padding: 0; list-style: none; }
.steps li { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps li.done, .steps li.now { background: var(--brand); }
.steps li.now { opacity: .55; }
.stepname { color: var(--muted); font-size: 13px; margin: 0; }
label { display: block; font-weight: 600; margin: 14px 0 4px; }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-height: 48px;
}
textarea { min-height: 76px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, .doc:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.hint { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.err { color: var(--bad); font-size: 14px; margin: 4px 0 0; font-weight: 600; }
.note { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.note.ok { background: transparent; border: 1px solid var(--ok); color: var(--ink); }
.note.bad { background: transparent; border: 1px solid var(--bad); color: var(--bad); font-weight: 600; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.actions { display: flex; gap: 10px; margin-top: 20px; }
button.primary, button.secondary, a.button {
  font: inherit; font-weight: 700; border-radius: 12px; padding: 14px 16px; min-height: 52px; cursor: pointer; border: 1px solid var(--brand); text-align: center; text-decoration: none;
}
button.primary, a.button.primary { background: var(--brand); color: var(--brand-ink); flex: 2; }
button.secondary, a.button { background: transparent; color: var(--brand); flex: 1; }
button:disabled { opacity: .45; cursor: not-allowed; }
.pw { position: relative; }
.pw button { position: absolute; right: 6px; top: 6px; height: 36px; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 0 8px; }
/* the list of cities */
.combo { position: relative; }
.list { border: 1px solid var(--line); border-radius: 10px; margin-top: 6px; max-height: 280px; overflow-y: auto; background: var(--card); }
.list button { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px; min-height: 48px; cursor: pointer; }
.list button:last-child { border-bottom: 0; }
.list button small { color: var(--muted); }
.list button[aria-selected="true"] { background: var(--bg); font-weight: 700; }
.list .more { color: var(--brand); font-weight: 600; text-align: center; }
.list .empty { padding: 12px; color: var(--muted); }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--ok); border-radius: 10px; padding: 10px 12px; margin-top: 6px; }
.picked button { border: 0; background: none; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 6px; }
/* photos */
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc { position: relative; border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; background: var(--card); }
.doc.has { border-style: solid; border-color: var(--ok); }
.doc.bad { border-color: var(--bad); }
.doc strong { font-size: 14px; }
.doc img { width: 100%; height: 84px; object-fit: cover; border-radius: 8px; margin: 6px 0; }
.doc .pick { color: var(--brand); font-weight: 700; font-size: 14px; }
.doc .ways { display: flex; gap: 6px; margin-top: 6px; }
.doc .ways label { position: relative; flex: 1; border: 1px solid var(--brand); border-radius: 8px; padding: 8px 4px; text-align: center; color: var(--brand); font-weight: 700; font-size: 13px; overflow: hidden; }
.doc input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.doc .state { font-size: 12px; color: var(--muted); }
/* the agreement */
.terms { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); max-height: 58vh; overflow-y: auto; padding: 14px; -webkit-overflow-scrolling: touch; }
.terms h2 { font-size: 15px; margin: 16px 0 6px; }
.terms p, .terms li { font-size: 14px; }
.terms ul { padding-left: 20px; margin: 6px 0; }
.terms .loud { font-weight: 700; font-size: 13px; }
.terms .meta { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.terms .end { border-top: 2px solid var(--brand); margin-top: 18px; padding-top: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 0; }
.check input { width: 26px; height: 26px; flex: none; margin: 0; accent-color: var(--brand); }
button.accept { width: 100%; margin-top: 12px; font-size: 18px; font-weight: 700; line-height: 1.3; padding: 16px 12px; min-height: 56px; }
.terms-line { margin: 14px 0 4px; font-size: 14px; color: var(--muted); }
.terms-line p { margin: 0 0 6px; }
.terms-more summary { cursor: pointer; color: var(--brand); font-weight: 600; padding: 6px 0; }
.terms-more .terms { margin-top: 8px; max-height: 40vh; }
.progress { list-style: none; padding: 0; margin: 8px 0; }
.progress li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.progress .ok { color: var(--ok); font-weight: 700; }
.progress .ko { color: var(--bad); font-weight: 700; }
.credit { color: var(--muted); font-size: 11px; margin-top: 6px; }
.noscript { max-width: 640px; margin: 24px auto; padding: 0 16px; }
@media (prefers-reduced-motion: no-preference) { .steps li { transition: background .2s; } }
@media (min-width: 560px) { .docs { grid-template-columns: 1fr 1fr 1fr; } }
