/* ============================================================
   CITIZEN — registration page
   ============================================================ */
.reg { padding: 56px 24px 40px; }
.reg__head { max-width: 640px; margin-bottom: 36px; }
.reg__title { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; margin: 18px 0 14px; }
.reg__sub { color: var(--muted); font-size: 17px; max-width: 52ch; }
.reg__sub b { color: var(--text); font-weight: 600; }

.reg__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }

/* Form */
.reg__form { padding: 28px; }
.step.is-hidden { display: none; }

.presets { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 18px 0 22px; }
.presets button { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-family: 'Space Grotesk'; font-weight: 600; font-size: 15px; padding: 12px 0; cursor: pointer; transition: all .2s; }
.presets button:hover { border-color: var(--line-2); }
.presets button.is-active { border-color: var(--cyan); background: rgba(56,225,201,.08); box-shadow: 0 0 0 1px var(--cyan) inset; }

.calc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 18px; margin-bottom: 20px; }
.calc__row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.calc__row:last-child { border-bottom: none; }
.calc__row span { color: var(--muted); }
.calc__row b { font-family: 'Space Grotesk'; font-size: 16px; font-variant-numeric: tabular-nums; }
.calc__row--apr b { font-size: 19px; }

/* Success */
.done { text-align: center; padding: 8px 0 22px; }
.done__check { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad); color: #06121b; font-size: 28px; font-weight: 700; display: grid; place-items: center; box-shadow: var(--glow); }
.done h2 { font-size: 24px; }
.done p { margin-top: 6px; }

.live { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px; margin-bottom: 16px; }
.live__amt { font-family: 'Space Grotesk'; font-weight: 700; display: flex; align-items: baseline; gap: 8px; margin: 8px 0 18px; }
.live__amt span:first-child { font-size: 34px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.live__unit { color: var(--cyan); font-size: 16px; }
.live__meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.live__meta div { display: flex; flex-direction: column; gap: 3px; }
.live__meta span { font-size: 12px; }
.live__meta b { font-family: 'Space Grotesk'; font-size: 15px; }
#resetBtn { margin-top: 10px; }

/* Cap progress (success step) */
.cap-progress { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cap-progress__top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.cap-progress__top b { color: var(--text); font-family: 'Space Grotesk'; }
.cap-progress__bar { height: 9px; background: var(--surface-2); border-radius: 99px; overflow: hidden; position: relative; }
.cap-progress__bar::before { content: ""; position: absolute; left: 66.66%; top: 0; bottom: 0; width: 2px; background: var(--gold); opacity: .8; z-index: 2; }
.cap-progress__fill { height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .2s linear; }
.cap-progress__legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--muted-2); }
.cap-progress__legend b { color: var(--muted); }

/* Income mini-row (form step) */
.incomes-mini { margin: 4px 0 20px; }
.incomes-mini__lbl { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 10px; }
.incomes-mini__row { display: flex; flex-wrap: wrap; gap: 8px; }
.imini { font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); cursor: default; }

/* Income streams (success step) */
.streams { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 16px; }
.streams__head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.stream { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.stream:last-of-type { border-bottom: none; }
.stream__icon { font-size: 20px; }
.stream__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stream__info b { font-family: 'Space Grotesk'; font-size: 14.5px; }
.stream__info span { font-size: 12px; }
.stream__val { text-align: right; display: flex; flex-direction: column; gap: 1px; }
.stream__val b { font-family: 'Space Grotesk'; font-size: 15px; font-variant-numeric: tabular-nums; }
.stream__val span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }
.streams__note { font-size: 11.5px; color: var(--muted-2); line-height: 1.5; margin-top: 12px; }
.streams__note b { color: var(--muted); }

/* Aside */
.reg__aside { padding: 26px; }
.reg__aside h3 { font-size: 18px; margin-bottom: 16px; }
.explain { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.explain li { position: relative; padding-left: 22px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.explain li b { color: var(--text); }
.explain li::before { content: "◈"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 12px; }

.reserve-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 20px; }
.reserve-box__top { display: flex; justify-content: space-between; align-items: center; }
.reserve-box__amt { font-family: 'Space Grotesk'; margin: 12px 0 12px; }
.reserve-box__amt b { font-size: 24px; }
.reserve-box__amt span { color: var(--cyan); font-size: 13px; }
.reserve-box__bar { height: 9px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.reserve-box__fill { height: 100%; width: 62%; background: var(--grad); border-radius: 99px; box-shadow: 0 0 12px rgba(56,225,201,.5); }
.reserve-box p { font-size: 12.5px; }

.formula { display: flex; flex-direction: column; gap: 8px; }
.formula code { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: 13px; color: var(--gold-2); font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

@media (max-width: 940px) {
  .reg__grid { grid-template-columns: 1fr; }
}
