/* Telco Authority of Utopia — SIM registration. Mobile-first, plain, official. */
:root {
    --accent: #0B4F8A;
    --gold: #E8B530;
    --ink: #14212E;
    --muted: #5B6B7A;
    --line: #DCE3EA;
    --bg: #F4F7FA;
    --card: #FFFFFF;
    --ok: #12805C;
    --warn: #B7791F;
    --bad: #C53030;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg); color: var(--ink); min-height: 100vh;
    display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
}
.bar {
    background: var(--accent); color: #fff; padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border-bottom: 4px solid var(--gold);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand img { width: 38px; height: 38px; flex: none; background: #fff; border-radius: 8px; padding: 2px; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand strong { font-size: 14px; font-weight: 700; }
.brand small { font-size: 12px; opacity: .85; }
.tag { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; text-align: right; }
@media (max-width: 420px) { .tag { display: none; } }
.progress { height: 4px; background: var(--line); }
.progress-fill { height: 100%; background: var(--gold); transition: width .3s; }
.stepno { max-width: 520px; width: 100%; margin: 14px auto 0; padding: 0 16px;
    font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
main { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 16px 16px 40px; }
h1 { font-size: 22px; line-height: 1.25; margin: 6px 0 8px; letter-spacing: -.01em; }
h2 { font-size: 15px; margin: 22px 0 10px; }
h3 { font-size: 14px; margin: 14px 0 4px; }
p { font-size: 15px; line-height: 1.55; }
.sub { color: var(--muted); margin-bottom: 18px; }
.lead { font-size: 17px; margin: 8px 0 18px; }
.fine { font-size: 11px; color: var(--muted); margin-top: 14px; }

ol.steps { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; }
ol.steps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
ol.steps li:last-child { border-bottom: 0; }
ol.steps li span { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
    font-size: 13px; font-weight: 700; display: grid; place-items: center; }

.choice, .check, .net, .doc { cursor: pointer; }
.choice { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 2px solid var(--line);
    border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.choice:has(input:checked) { border-color: var(--accent); background: #EEF4FA; }
.choice input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.choice span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.choice small { color: var(--muted); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin: 16px 0; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.human { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; }
.field > span { font-size: 13px; font-weight: 600; }
.field small { color: var(--muted); font-size: 12px; }
.field input { font-size: 17px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--ink); width: 100%; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11,79,138,.15); }
input.otp { letter-spacing: .4em; font-size: 24px; text-align: center; font-variant-numeric: tabular-nums; }

.btn { display: block; width: 100%; text-align: center; text-decoration: none; border: 0; cursor: pointer;
    background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; padding: 15px; border-radius: 12px;
    margin-top: 18px; font-family: inherit; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.link { background: none; border: 0; color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer;
    text-decoration: underline; padding: 8px 0; font-family: inherit; }
.row-links { display: flex; justify-content: space-between; margin-top: 10px; }

.banner { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.banner.error { background: #FDECEC; color: var(--bad); border: 1px solid #F5C2C2; }
.banner.ok { background: #E7F5EF; color: var(--ok); border: 1px solid #B9E2D0; }
.okline { display: inline-block; background: #E7F5EF; color: var(--ok); font-size: 13px; font-weight: 600;
    padding: 6px 10px; border-radius: 999px; margin-bottom: 6px; }

.sms { background: #1F2933; color: #fff; border-radius: 16px; padding: 12px 14px; margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.sms-head { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; }
.sms-body { font-size: 14px; line-height: 1.45; margin: 4px 0; }
.sms-note { font-size: 11px; opacity: .65; }

.networks { display: grid; gap: 10px; }
.net { display: flex; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--line);
    border-radius: 12px; padding: 16px 14px; font-size: 16px; font-weight: 600; }
.net:has(input:checked) { border-color: var(--net); box-shadow: 0 0 0 3px color-mix(in srgb, var(--net) 20%, transparent); }
.net input { position: absolute; opacity: 0; pointer-events: none; }
.net-dot { width: 28px; height: 28px; border-radius: 8px; background: var(--net); flex: none; }

.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--card);
    border: 2px solid var(--line); border-radius: 12px; padding: 16px 8px; font-size: 14px; font-weight: 600; }
.doc small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.doc:has(input:checked) { border-color: var(--accent); background: #EEF4FA; }
.doc input { position: absolute; opacity: 0; pointer-events: none; }
.doc-icon { font-size: 28px; }
.ready { background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 4px 14px 12px; }
.ready ul { padding-left: 18px; font-size: 14px; line-height: 1.7; color: var(--muted); }

.terms { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 14px;
    max-height: 300px; overflow-y: auto; }
.terms.open { max-height: none; }
.terms p { font-size: 13px; color: var(--muted); }

.hero { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px;
    font-weight: 700; color: #fff; margin: 10px 0 8px; }
.hero.ok { background: var(--ok); } .hero.warn { background: var(--warn); } .hero.bad { background: var(--bad); }

dl.summary { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin: 8px 0 6px; }
dl.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
dl.summary div:last-child { border-bottom: 0; }
dl.summary dt { color: var(--muted); font-size: 13px; }
dl.summary dd { font-size: 14px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
dd.status.active { color: var(--ok); } dd.status.pending { color: var(--warn); }

.sigbox { background: #fff; border: 1.5px dashed var(--muted); border-radius: 10px; height: 170px; touch-action: none; }
.sigbox canvas { width: 100%; height: 100%; display: block; }
.sigrow { display: flex; justify-content: space-between; align-items: center; }

.refbox { background: var(--accent); color: #fff; border-radius: 12px; padding: 16px; text-align: center; margin: 10px 0 14px; }
.refbox small { display: block; font-size: 12px; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.refbox strong { font-size: 30px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }

footer { text-align: center; font-size: 11px; color: var(--muted); padding: 18px 16px 26px; line-height: 1.6; }
