/* BrokerConnector · the app's screens rebuilt in code from the 30 Oct screenshots, shared by the phones on Referrals and
   How it works (sizes in cqw, taken from the screenshots). .rfa[data-step]: 0 the form, 1 a sheet over it, 2 the list */
.rfa { display: flex; flex-direction: column; overflow: hidden; font-family: "Instrument Sans", system-ui, sans-serif; line-height: 1.3; color: #fff; background: #121A30; }
.rfa p { margin: 0; }
.rfa .ui-status { font-size: 4.2cqw; color: #fff; }
.rfa .app__bar { flex: none; padding: 14cqw 5cqw 3.6cqw; background: linear-gradient(100deg, #24386F, #2C4384); }
.rfa__body { position: relative; flex: 1; min-height: 0; }
.rfa__view { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 5cqw 5cqw 4cqw; opacity: 0; transition: opacity .45s ease; }
.rfa[data-step="0"] .rfa__view--form, .rfa[data-step="1"] .rfa__view--form, .rfa[data-step="2"] .rfa__view--list { opacity: 1; }
.rfa__back { display: flex; align-items: center; gap: 2cqw; font-size: 6.8cqw; font-weight: 600; letter-spacing: -.01em; }
.rfa__back svg { width: 6cqw; height: 6cqw; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rfa__title { margin: 6cqw 0 4cqw !important; font-size: 5.4cqw; font-weight: 600; }
.rfa__field { display: grid; gap: 1.2cqw; margin-bottom: 3.4cqw; }
.rfa__field span { font-size: 3.4cqw; font-weight: 600; }
.rfa__field b { display: block; min-height: 10.6cqw; padding: 2.8cqw 3.8cqw; border-radius: 2.4cqw; font-size: 4cqw; font-weight: 400; line-height: 1.25; background: #656B85; }
.rfa__field b:empty::before { content: attr(data-ph); color: rgba(255, 255, 255, .7); }
.rfa__field--area { flex: 1; min-height: 0; grid-template-rows: auto 1fr; margin-bottom: 5cqw; }
.rfa__btn { flex: none; display: flex; align-items: center; justify-content: space-between; height: 10.6cqw; margin-top: auto !important; padding: 0 4.6cqw; border-radius: 2.4cqw; font-size: 4cqw; font-weight: 600; background: #3F5FDC; }
.rfa__btn svg { width: 5cqw; height: 5cqw; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rfa__search { display: flex; align-items: center; justify-content: space-between; height: 10.6cqw; padding: 0 3.8cqw; border-radius: 2.4cqw; font-size: 4cqw; color: rgba(255, 255, 255, .78); background: #656B85; }
.rfa__search svg { width: 5cqw; height: 5cqw; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.rfa__rows { flex: 1; min-height: 0; margin: 1cqw 0 0; padding: 0; list-style: none; }
.rfa__rows li { display: flex; align-items: center; gap: 3.4cqw; padding: 5.4cqw 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.rfa__av { flex: none; display: grid; place-items: center; width: 11cqw; height: 11cqw; border-radius: 50%; background: #25305C; }
.rfa__av svg { width: 7.6cqw; height: 7.6cqw; fill: none; stroke: #66DBC4; stroke-width: 1.5; stroke-linecap: round; }
.rfa__who { flex: 1; min-width: 0; display: grid; gap: .3cqw; }
.rfa__who b { font-size: 4cqw; font-weight: 600; }
.rfa__who small { font-size: 3.6cqw; color: rgba(255, 255, 255, .86); }
.rfa__go { flex: none; display: grid; place-items: center; width: 11cqw; height: 11cqw; border-radius: 2.2cqw; background: #656B85; }
.rfa__go svg { width: 6cqw; height: 6cqw; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rfa__tabs { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3cqw 0 5cqw; background: #0C1222; }
.rfa__tabs span { display: grid; justify-items: center; gap: 1cqw; font-size: 3.4cqw; font-weight: 600; }
.rfa__tabs svg { width: 6.4cqw; height: 6.4cqw; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
/* the thank you sheet */
.rfa__dim { position: absolute; inset: 0; z-index: 4; background: rgba(5, 8, 18, .66); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.rfa[data-step="1"] .rfa__dim { opacity: 1; }
.rfa__sheet { height: 100cqw; min-height: 0; padding-bottom: 5cqw; transform: translateY(105%); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.rfa[data-step="1"] .rfa__sheet { transform: none; }
.rfa__tick { flex: none; width: 15cqw; height: 15cqw; margin-top: 2cqw; fill: none; stroke: #66DBC4; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rfa__view--on { opacity: 1; }
.rfa__tabs .is-on { color: #66DBC4; }
.rfa__tabs .is-on svg { stroke: #66DBC4; }

/* chat with the team */
.rfa--chat { background: radial-gradient(90% 34% at 0% 18%, rgba(61, 99, 221, .85), transparent 72%), #121318; }
.rc__bar { flex: none; display: flex; align-items: center; gap: 3cqw; padding: 13cqw 5cqw 3.4cqw; background: #131A2E; }
.rc__bar > svg { width: 5.6cqw; height: 5.6cqw; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rc__bar img { width: 9.6cqw; height: 9.6cqw; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.rc__bar b { font-size: 4.2cqw; font-weight: 600; }
.rc__thread { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2.8cqw; padding: 4cqw; overflow: hidden; }
.rc__day { align-self: center; padding: 1.4cqw 3.4cqw; border-radius: 2cqw; font-size: 3.4cqw; font-weight: 600; background: #2B3150; }
.rc__msg { max-width: 78%; padding: 2.6cqw 3.2cqw 1.8cqw; border-radius: 2.4cqw; font-size: 3.6cqw; line-height: 1.38; background: #1B2140; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.rc__msg time { display: block; margin-top: .3cqw; text-align: right; font-size: 2.7cqw; font-weight: 600; }
.rc__msg--me { align-self: flex-end; background: #26336B; }
.rc__dots { display: flex; gap: 1.4cqw; padding: 3cqw 3.4cqw; border-radius: 2.4cqw; background: #1B2140; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.rc__dots i { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: #fff; }
.rc__dots i:first-child { background: #66DBC4; }
.rc__composer { flex: none; display: flex; align-items: center; justify-content: space-between; height: 10cqw; margin: 0 3cqw 6cqw; padding: 0 1.4cqw 0 4cqw; border-radius: 5cqw; font-size: 3.6cqw; color: rgba(255, 255, 255, .6); background: #3A3B41; }
.rc__composer i { display: grid; place-items: center; width: 7cqw; height: 7cqw; border-radius: 50%; background: #5465EC; }
.rc__composer svg { width: 4cqw; height: 4cqw; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the chat list */
.rfa__h { font-size: 7.4cqw; font-weight: 600; letter-spacing: -.02em; }
.rt__contacts { display: grid; gap: 2.4cqw; margin: 4cqw 0 6cqw; padding: 0; list-style: none; }
.rt__contacts li { display: flex; align-items: center; justify-content: space-between; padding: 1.8cqw 2cqw 1.8cqw 3.6cqw; border-radius: 2.4cqw; font-size: 3.8cqw; font-weight: 600; background: #171F36; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.rt__contacts i { display: grid; place-items: center; width: 8.6cqw; height: 8.6cqw; border-radius: 2cqw; background: #4FC95B; }
.rt__contacts svg { width: 6cqw; height: 6cqw; fill: #fff; }
.rt__sub { margin-bottom: 1cqw !important; font-size: 5cqw; font-weight: 600; }
.rt__rows { margin: 0; padding: 0; list-style: none; }
.rt__rows li { display: flex; align-items: center; gap: 3cqw; padding: 3.4cqw 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.rt__rows .rfa__who b { overflow: hidden; font-size: 3.7cqw; white-space: nowrap; text-overflow: ellipsis; }
.rt__rows .rfa__who small { overflow: hidden; font-size: 3.3cqw; white-space: nowrap; text-overflow: ellipsis; color: rgba(255, 255, 255, .7); }
.rt__meta { flex: none; display: grid; justify-items: end; gap: 1cqw; font-size: 3cqw; }
.rt__meta i { display: grid; place-items: center; min-width: 5cqw; height: 5cqw; border-radius: 1.4cqw; font-style: normal; font-weight: 600; background: #3F5FDC; }

/* my listings */
.rl { background: radial-gradient(90% 30% at 100% 14%, rgba(61, 99, 221, .85), transparent 70%), #121318; }
.rl .rfa__view { padding-top: 4cqw; }
.rl__tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 3.6cqw 0; border-radius: 2.2cqw; font-size: 3.7cqw; font-weight: 600; text-align: center; background: #1B2A5E; }
.rl__tabs span { padding: 2.6cqw 0; border-radius: 2.2cqw; }
.rl__tabs .is-on { background: #3B5BDB; }
.rl__card { display: grid; gap: 2.4cqw; margin-bottom: 3cqw; padding: 3.6cqw; border-radius: 2.6cqw; background: #171F36; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.rl__card--dim { opacity: .4; }
.rl__desc { font-size: 3.5cqw; line-height: 1.4; }
.rl__row { display: flex; align-items: center; justify-content: space-between; font-size: 3.3cqw; }
.rl__row b { font-weight: 600; }
.rl__tag { padding: .6cqw 2.2cqw; border-radius: 99px; font-size: 2.9cqw; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.rl__btn { display: flex; align-items: center; justify-content: space-between; height: 8.6cqw; padding: 0 3cqw; border-radius: 2cqw; font-size: 3.5cqw; font-weight: 600; background: #E0473C; }
.rl__btn--soft { background: #656B85; }
.rl__btn svg { width: 4.6cqw; height: 4.6cqw; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ready to share: the listing's photo above the sheet */
.rl__photo { position: absolute; left: 0; right: 0; top: 22cqw; height: 66cqw; overflow: hidden; }
.rl__photo svg { display: block; width: 100%; height: 100%; }
.rfa__sheet--tall { height: 146cqw; }
.rfa__sheet--tall .sh__p { font-size: 3.4cqw; }
.rfa__sheet--tall .sh__box { min-height: 30cqw; }
.rfa__sheet p.sh__h { font-size: 6.4cqw; }
.rfa__pin { flex: none; width: 10cqw; height: 10cqw; fill: none; stroke: #66DBC4; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* sign up: the app's first screen, on its brand gradient, in the browser */
.rs { align-items: center; color: #fff; background: radial-gradient(70% 34% at 86% 58%, #66DBC4, transparent 72%), linear-gradient(180deg, #3F5FCF 0%, #3E62C8 40%, #24407E 72%, #121A33 100%); }
.rs__c { flex: none; width: 15cqw; height: 15cqw; margin-top: 13cqw; fill: #fff; }
.rs__card { width: 88%; margin-top: 3cqw; padding: 4.4cqw; border-radius: 2.4cqw; background: #121A33; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.rs__steps { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3cqw; }
.rs__steps i { width: 2.8cqw; height: 2.8cqw; border-radius: .8cqw; background: #5D647F; }
.rs__steps i:first-child { background: #66DBC4; }
.rs__steps::before { content: ""; position: absolute; }
.rs__h { font-size: 6.4cqw; font-weight: 600; letter-spacing: -.02em; }
.rs__p { margin: 1cqw 0 3cqw !important; font-size: 3.3cqw; color: rgba(255, 255, 255, .8); }
.rs__f { display: grid; gap: .9cqw; margin-bottom: 2cqw; font-size: 3cqw; font-weight: 600; }
.rs__f span { display: flex; align-items: center; height: 7.8cqw; padding: 0 2.8cqw; border-radius: 1.6cqw; font-weight: 400; font-size: 3.3cqw; color: rgba(255, 255, 255, .72); background: #656B85; }
.rs__agree { display: flex; align-items: center; gap: 2cqw; margin: 2.6cqw 0 !important; font-size: 3cqw; }
.rs__agree i { width: 3.8cqw; height: 3.8cqw; border-radius: 50%; background: #656B85; }
.rs__agree em { font-style: normal; color: #66DBC4; }
.rs .rfa__btn { height: 9cqw; margin: 0 !important; font-size: 3.7cqw; }
.rs__url { flex: none; display: flex; align-items: center; justify-content: center; width: 86%; height: 8cqw; margin-top: auto; margin-bottom: 5cqw; border-radius: 2.4cqw; font-size: 3.2cqw; color: rgba(255, 255, 255, .85); background: rgba(100, 104, 120, .92); }

/* .rfa p resets margins, so these keep their own */
.rfa .rc__composer { margin: 0 3cqw 6cqw; }
.rfa .rl__tabs { margin: 3.6cqw 0; }
.rfa .rs__f { margin-bottom: 2cqw; }
.rfa .rs__url { margin: auto 0 5cqw; }
.rfa .rs__steps { margin-bottom: 3cqw; }

/* sign up, playing: what's typed reads white, the terms tick on */
.rs__f span.is-filled { color: #fff; }
.rs__agree i { display: grid; place-items: center; transition: background-color .25s ease; }
.rs__agree i.is-on { background: #66DBC4; }
