/**
 * Rentals page (template-parts/inner/rentals/*).
 *
 * Built from the homepage vocabulary in main.css (tokens, rc-* sections, mk-* mockups). Every story
 * mockup's base styles show the finished state; with JS, the step classes (.s1, .s2 …) added by the
 * story engine in main.js play the action out from the start.
 */

/* Shared bits ============================================================= */

.rt-lead {
	max-width: 540px;
	margin: 22px 0 0;
	color: var(--muted);
	font-size: 16.5px;
	line-height: 1.6;
}

.rt-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 26px;
	margin-top: 34px;
}

.rt-head__text {
	max-width: 380px;
	margin: 0;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.55;
}

/* Status pills */

.rt-status {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--grey-2);
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.rt-status .rc-icon {
	width: 12px;
	height: 12px;
	stroke-width: 2.6;
}

.rt-status--paid {
	background: var(--teal-50);
	color: var(--teal);
}

.rt-status--sent {
	background: var(--yellow-100);
	color: var(--ink-2);
}

.rt-status--warn {
	background: #fdebe2;
	color: var(--danger);
}

.rt-status--dark {
	background: rgba(255, 255, 255, .1);
	color: rgba(255, 255, 255, .85);
}

.rt-status--yellow {
	background: var(--yellow);
	color: var(--ink);
}

/* Values that change during a story: the children share one grid cell and the last one shows. */

.rt-flip {
	display: inline-grid;
	vertical-align: top;
}

.rt-flip > * {
	grid-area: 1 / 1;
	justify-self: start;
	transition: opacity .35s var(--ease), transform .6s var(--spring);
}

.rt-flip--end > * {
	justify-self: end;
}

.rt-flip > :not(:last-child) {
	opacity: 0;
	transform: translateY(.45em) scale(.94);
}

/* Text typed into a field. */

.rt-typed {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	vertical-align: bottom;
	white-space: nowrap;
}

.rt-typed > span {
	display: inline-block;
	transition: clip-path 1s steps(16, end);
	clip-path: inset(0 0 0 0);
}

.rt-spin {
	flex: none;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: rc-spin .8s linear infinite;
}

.rt-spin--sm {
	width: 11px;
	height: 11px;
}

.rt-toast {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	padding: 5px 13px 5px 5px;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 12px 24px -12px rgba(14, 20, 22, .5);
	transition: opacity .4s var(--ease), transform .7s var(--spring);
}

.rt-toast__ic {
	display: grid;
	flex: none;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--ink);
}

.rt-toast__ic .rc-icon {
	width: 12px;
	height: 12px;
	stroke-width: 2.2;
}

.rt-face {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 20%;
}

/* Saved bank account row. */

.rt-bank {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 8px;
	border-radius: 12px;
	background: var(--grey);
}

.rt-bank__logo {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: var(--teal);
	color: #fff;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .02em;
}

.rt-bank__text {
	flex: 1;
	min-width: 0;
}

.rt-bank__text strong,
.rt-bank__text small {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.rt-bank__text strong {
	font-size: 12.5px;
	font-weight: 700;
}

.rt-bank__text small {
	color: var(--muted);
	font-size: 11px;
}

.rt-bank__btn {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 4px;
	padding: 6px 11px;
	border-radius: 999px;
	background: var(--teal);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
}

.rt-bank__btn .rc-icon {
	width: 13px;
	height: 13px;
}

.rt-bank .mk-check {
	width: 24px;
	height: 24px;
}

.rt-bank .mk-check .rc-icon {
	width: 13px;
	height: 13px;
}

/* Hero: live UI cards ===================================================== */

.rt-hero {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	align-items: start;
}

.rt-hero__col {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding-top: 58px;
}

.rt-hero__col--mid {
	padding-top: 0;
}

.rt-hstats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.rt-hstats strong,
.rt-hstats small {
	display: block;
}

.rt-hstats strong {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.04em;
	line-height: 1.1;
}

.rt-hstats small {
	color: var(--muted);
	font-size: 12px;
}

.rt-hero .mk-segbar {
	height: 12px;
}

.rt-hero .mk-person {
	padding: 7px 8px 7px 7px;
}

.rt-hsign {
	display: block;
	padding: 6px 12px 10px;
	border-radius: 12px;
	background: var(--grey);
}

.rt-hsign svg {
	display: block;
	width: 150px;
	height: 42px;
	border-bottom: 1px dashed var(--line-2);
}

.rt-hsign path {
	fill: none;
	stroke: var(--teal);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 2.2s var(--ease-io) 1.9s;
}

.js:not(.is-loaded) .rt-hsign path {
	stroke-dashoffset: 1;
}

.rt-hsign small {
	display: block;
	margin-top: 6px;
	color: var(--muted);
	font-size: 11.5px;
}

/* Rent invoices list (story: rthero). */

.rt-hinv {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rt-hinv__row {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 82px 58px;
	align-items: center;
	gap: 10px;
	margin: 0 -8px;
	padding: 6px 8px;
	border-radius: 12px;
	transition: background-color .6s var(--ease);
}

.rt-hinv .mk-avatar {
	width: 34px;
	height: 34px;
	font-size: 11.5px;
}

.rt-hinv__who,
.rt-ilist__who {
	min-width: 0;
}

.rt-hinv__who strong,
.rt-hinv__who small,
.rt-ilist__who strong,
.rt-ilist__who small {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.rt-hinv__who strong {
	font-size: 13.5px;
	font-weight: 700;
}

.rt-hinv__who small {
	color: var(--muted);
	font-size: 11.5px;
}

.rt-hinv__amt {
	font-size: 13px;
	font-weight: 700;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.rt-hinv__row > :last-child {
	justify-self: end;
}

.rt-hinv .rt-flip > * {
	justify-self: end;
}

.rt-hinv__foot {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-top: 6px;
	padding-top: 12px;
	border-top: 1px dashed var(--line-2);
}

.rt-hinv__label {
	color: var(--muted);
	font-size: 12.5px;
}

.rt-hinv__total > * {
	justify-self: end;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
}

.rt-hinv__bar {
	height: 8px !important;
	margin-top: 6px;
}

.rt-hinv__bar .mk-seg--teal {
	width: 76%;
	transition: width 1s var(--ease);
}

.rt-hinv__bar .mk-seg--soft {
	flex: 1;
}

.rt-hinv .rt-toast {
	margin-top: 12px;
}

.js .rt-hinv.s1:not(.s3) .rt-hinv__row--live {
	background: var(--teal-25);
}

.js .rt-hinv:not(.s1) .rt-hinv__row--live .rt-flip > :first-child,
.js .rt-hinv:not(.s2) .rt-hinv__total > :first-child {
	opacity: 1;
	transform: none;
}

.js .rt-hinv:not(.s1) .rt-hinv__row--live .rt-flip > :last-child,
.js .rt-hinv:not(.s2) .rt-hinv__total > :last-child {
	opacity: 0;
	transform: translateY(.45em) scale(.94);
}

.js .rt-hinv:not(.s2) .rt-hinv__bar .mk-seg--teal {
	width: 56%;
}

.js .rt-hinv:not(.s3) .rt-toast {
	opacity: 0;
	transform: translateY(8px) scale(.9);
}

/* 1. Rent collection: wallet, withdrawal, transactions ==================== */

.rt-pay__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 64px;
	align-items: center;
}

.rt-feats {
	display: grid;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}

.rt-feats li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 15px 0;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14.5px;
	line-height: 1.5;
}

.rt-feats li:last-child {
	border-bottom: 1px solid var(--line);
}

.rt-feats strong {
	display: block;
	margin-bottom: 2px;
	color: var(--ink);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -.02em;
}

.rt-feats__ic {
	display: grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--teal-50);
	color: var(--teal);
}

.rt-feats__ic .rc-icon {
	width: 20px;
	height: 20px;
}

.rt-pay__stage {
	position: relative;
	padding: 30px;
	overflow: hidden;
	border-radius: var(--radius-xl);
	background:
		radial-gradient(60% 50% at 100% 0%, rgba(251, 201, 1, .2), transparent 70%),
		radial-gradient(60% 50% at 0% 100%, rgba(4, 111, 123, .1), transparent 70%),
		var(--grey);
	isolation: isolate;
}

.rt-pay__stage::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(4, 111, 123, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(4, 111, 123, .06) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 85%);
	mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 85%);
}

.rt-wal {
	display: grid;
	gap: 16px;
}

.rt-wal .mk-card--lg {
	margin: 0;
	padding: 22px 24px;
}

.rt-wal .mk-card__head {
	margin-bottom: 12px;
}

.rt-wal__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
}

.rt-wal__amt {
	display: inline-grid;
}

.rt-wal__in {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px 7px 7px;
	border-radius: 14px;
	background: var(--teal-25);
	box-shadow: inset 0 0 0 1px var(--teal-50);
	transition: opacity .45s var(--ease), transform .7s var(--spring);
}

.rt-wal__in-ic {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: var(--teal);
	color: #fff;
}

.rt-wal__in-ic .rc-icon {
	width: 16px;
	height: 16px;
	stroke-width: 2.2;
}

.rt-wal__in strong,
.rt-wal__in small {
	display: block;
	white-space: nowrap;
}

.rt-wal__in strong {
	color: var(--teal);
	font-size: 14px;
	font-weight: 800;
}

.rt-wal__in small {
	color: var(--muted);
	font-size: 11.5px;
}

.rt-wal__fields {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	grid-template-areas:
		"la lt"
		"in bk"
		"bt bt";
	gap: 6px 14px;
}

.rt-wal__label {
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

.rt-wal__label--amt {
	grid-area: la;
}

.rt-wal__label--to {
	grid-area: lt;
}

.rt-wal__input {
	display: flex;
	grid-area: in;
	align-items: center;
	height: 48px;
	padding: 0 14px;
	border: 1.5px solid var(--line-2);
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
	transition: border-color .35s, box-shadow .35s;
}

.rt-bank--lg {
	grid-area: bk;
	height: 48px;
	margin: 0;
	padding: 0 10px 0 8px;
	background: var(--teal-25);
	box-shadow: inset 0 0 0 1.5px var(--teal-50);
}

.rt-wal__btn {
	display: grid;
	grid-area: bt;
	height: 48px;
	margin-top: 10px;
	border-radius: 12px;
	background: var(--yellow);
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 700;
	transition: background-color .4s var(--ease), color .4s, transform .25s var(--ease);
}

.rt-wal__btn > span {
	display: inline-flex;
	grid-area: 1 / 1;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: opacity .3s, transform .5s var(--spring);
}

.rt-wal__btn > span:not(:last-child) {
	opacity: 0;
	transform: translateY(8px);
}

.rt-wal__btn .rc-icon {
	width: 17px;
	height: 17px;
	stroke-width: 2.2;
}

.rt-wal__cursor,
.rt-agr__cursor {
	line-height: 0;
	transform-origin: 4px 3px;
}

.rt-wal__cursor .rc-icon,
.rt-agr__cursor .rc-icon {
	display: block;
}

/* Transactions: newest rows slide in at the top; the list keeps four rows in view. */

.rt-tx {
	height: 208px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 78%, transparent);
	mask-image: linear-gradient(#000 78%, transparent);
}

.rt-tx__row {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) auto 78px;
	align-items: center;
	gap: 12px;
	height: 52px;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
	transition: height .6s var(--ease), opacity .5s var(--ease), background-color .8s;
}

.rt-tx__row > b {
	font-size: 13.5px;
	font-weight: 700;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.rt-tx__row > :last-child {
	justify-self: end;
}

.rt-tx__ic {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--teal-50);
	color: var(--teal);
}

.rt-tx__ic--out {
	background: var(--yellow-100);
	color: var(--ink);
}

.rt-tx__ic .rc-icon {
	width: 16px;
	height: 16px;
}

.rt-tx__who {
	min-width: 0;
}

.rt-tx__who strong,
.rt-tx__who small {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.rt-tx__who strong {
	font-size: 13.5px;
	font-weight: 700;
}

.rt-tx__who small {
	color: var(--muted);
	font-size: 11.5px;
}

/* Story: rtpay — rent lands, balance rises, a withdrawal is made and logged. */

.js .rt-wal:not(.s1) .rt-wal__in {
	opacity: 0;
	transform: translateY(10px) scale(.92);
}

.js .rt-wal:not(.s1) .rt-tx__row--new1,
.js .rt-wal:not(.s8) .rt-tx__row--new2 {
	height: 0;
	border-bottom-color: transparent;
	opacity: 0;
}

.js .rt-wal.s1:not(.s3) .rt-tx__row--new1,
.js .rt-wal.s8 .rt-tx__row--new2 {
	background: linear-gradient(90deg, var(--teal-25), transparent);
}

.js .rt-wal:not(.s2) .rt-wal__amt > :nth-child(1),
.js .rt-wal.s2:not(.s7) .rt-wal__amt > :nth-child(2) {
	opacity: 1;
	transform: none;
}

.js .rt-wal:not(.s7) .rt-wal__amt > :nth-child(3) {
	opacity: 0;
	transform: translateY(.45em) scale(.94);
}

.js .rt-wal:not(.s3) .rt-typed > span {
	clip-path: inset(0 100% 0 0);
}

.js .rt-wal.s3:not(.s5) .rt-wal__input {
	border-color: var(--teal);
	box-shadow: 0 0 0 4px rgba(4, 111, 123, .12);
}

.js .rt-wal:not(.s6) .rt-wal__btn {
	background: var(--teal);
	color: #fff;
}

.js .rt-wal.s5:not(.s6) .rt-wal__btn {
	background: var(--teal-deep);
	transform: scale(.98);
}

.js .rt-wal:not(.s5) .rt-wal__btn > :nth-child(1),
.js .rt-wal.s5:not(.s6) .rt-wal__btn > :nth-child(2) {
	opacity: 1;
	transform: none;
}

.js .rt-wal:not(.s6) .rt-wal__btn > :nth-child(3) {
	opacity: 0;
	transform: translateY(8px);
}

/* The cursor's tip sits 4px/3px inside its box: it lands on the middle of the Withdraw button. */
.js .rt-wal.s4 .rt-wal__cursor {
	top: calc(100% - 27px);
	left: 47%;
	opacity: 1;
}

.js .rt-wal.s5:not(.s6) .rt-wal__cursor {
	transform: scale(.82);
}

.js .rt-wal.s6 .rt-wal__cursor {
	opacity: 0;
}

/* 2. Tenant tools bento =================================================== */

.rt-bento .rt-card--inv {
	grid-column: span 7;
}

.rt-bento .rt-card--kyt {
	grid-column: span 5;
}

.rt-bento .rt-card--agr,
.rt-bento .rt-card--lease,
.rt-bento .rt-card--fix {
	grid-column: span 4;
	min-height: 450px;
}

.rt-card > .mk {
	flex: none;
}

.rt-card > .rc-bento__title {
	margin-top: auto;
	padding-top: 26px;
}

.rt-card__split {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: 26px;
	height: 100%;
}

.rt-card__copy {
	display: flex;
	flex-direction: column;
}

.rt-note {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 20px;
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 600;
}

.rt-note .rc-icon {
	width: 30px;
	height: 30px;
	padding: 7px;
	border-radius: 50%;
	background: #fff;
	color: var(--teal);
}

/* Invoices list (story: rtinv). */

.rt-ilist {
	align-self: center;
	padding: 16px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.rt-ilist__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 8px;
}

.rt-ilist__stats > span {
	display: block;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--grey);
}

.rt-ilist__stats small {
	display: block;
	color: var(--muted);
	font-size: 11px;
}

.rt-ilist__stats b {
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
}

.rt-ilist__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto 62px;
	align-items: center;
	gap: 10px;
	margin: 0 -6px;
	padding: 10px 6px;
	border-bottom: 1px solid var(--line);
	border-radius: 10px;
	transition: background-color .6s var(--ease);
}

.rt-ilist__row > b {
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.rt-ilist__row > :last-child {
	justify-self: end;
}

.rt-ilist__who strong {
	font-size: 13px;
	font-weight: 700;
}

.rt-ilist__who small {
	color: var(--muted);
	font-size: 11px;
}

.rt-ilist__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 12px;
}

.rt-ilist .mk-toggle {
	color: var(--ink-2);
}

.rt-toast--inline {
	padding-right: 11px;
	font-size: 11px;
}

.rt-toast--inline .rt-toast__ic {
	width: 20px;
	height: 20px;
}

.js .rt-ilist:not(.s1) .mk-toggle i {
	background: #cfdada;
}

.js .rt-ilist:not(.s1) .mk-toggle i::after {
	transform: none;
}

.js .rt-ilist.s2:not(.s4) .rt-ilist__row--live {
	background: var(--teal-25);
}

.js .rt-ilist:not(.s2) .rt-ilist__row--live .rt-flip > :nth-child(1),
.js .rt-ilist.s2:not(.s3) .rt-ilist__row--live .rt-flip > :nth-child(2),
.js .rt-ilist:not(.s3) .rt-ilist__stats .rt-flip > :nth-child(1) {
	opacity: 1;
	transform: none;
}

.js .rt-ilist:not(.s3) .rt-ilist__row--live .rt-flip > :nth-child(3),
.js .rt-ilist:not(.s3) .rt-ilist__stats .rt-flip > :nth-child(2) {
	opacity: 0;
	transform: translateY(.45em) scale(.94);
}

.js .rt-ilist:not(.s4) .rt-toast {
	opacity: 0;
	transform: translateX(-8px) scale(.9);
}

/* Know Your Tenant (story: rtkyt). */

.rt-kyt {
	display: grid;
	gap: 12px;
	color: #fff;
}

.rt-kyt__ids {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.rt-kyt__ids > span {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 12px;
	background: rgba(255, 255, 255, .05);
	color: rgba(255, 255, 255, .85);
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
	transition: border-color .45s var(--ease), background-color .45s var(--ease), color .45s;
}

.rt-kyt__ids .rc-icon {
	width: 17px;
	height: 17px;
	color: var(--yellow);
}

.rt-kyt__pick {
	border-color: var(--yellow) !important;
	background: rgba(251, 201, 1, .12) !important;
	color: #fff !important;
}

.rt-kyt__tick {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--ink);
	transition: opacity .3s, transform .5s var(--spring);
}

.rt-kyt__tick .rc-icon {
	width: 11px;
	height: 11px;
	color: var(--ink);
	stroke-width: 3;
}

.rt-kyt__up {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px dashed rgba(255, 255, 255, .22);
	border-radius: 12px;
	transition: opacity .45s var(--ease);
}

.rt-kyt__file {
	display: grid;
	flex: none;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .1);
	color: var(--yellow);
}

.rt-kyt__file .rc-icon {
	width: 17px;
	height: 17px;
}

.rt-kyt__name {
	flex: 1;
	min-width: 0;
}

.rt-kyt__name strong {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
}

.rt-kyt__bar {
	display: block;
	height: 5px;
	margin-top: 7px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
}

.rt-kyt__bar i {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	background: var(--yellow);
	transform-origin: left;
	transition: transform 1.2s var(--ease-io);
}

.rt-kyt__who {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px 8px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
}

.rt-kyt__who .rt-face {
	box-shadow: 0 0 0 2px var(--yellow);
	transition: box-shadow .5s var(--ease);
}

.rt-kyt__person {
	flex: 1;
	min-width: 0;
}

.rt-kyt__person strong,
.rt-kyt__person small {
	display: block;
	white-space: nowrap;
}

.rt-kyt__person strong {
	font-size: 14px;
	font-weight: 700;
}

.rt-kyt__person small {
	color: rgba(255, 255, 255, .6);
	font-size: 11.5px;
}

.js .rt-kyt:not(.s1) .rt-kyt__pick {
	border-color: rgba(255, 255, 255, .12) !important;
	background: rgba(255, 255, 255, .05) !important;
	color: rgba(255, 255, 255, .85) !important;
}

.js .rt-kyt:not(.s1) .rt-kyt__tick {
	opacity: 0;
	transform: scale(.4);
}

.js .rt-kyt:not(.s2) .rt-kyt__up {
	opacity: .35;
}

.js .rt-kyt:not(.s2) .rt-kyt__bar i {
	transform: scaleX(0);
}

.js .rt-kyt:not(.s4) .rt-kyt__who .rt-face {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .2);
}

.js .rt-kyt:not(.s3) .rt-flip > :nth-child(1),
.js .rt-kyt.s3:not(.s4) .rt-flip > :nth-child(2) {
	opacity: 1;
	transform: none;
}

.js .rt-kyt:not(.s4) .rt-flip > :nth-child(3) {
	opacity: 0;
	transform: translateY(.45em) scale(.94);
}

/* Tenancy agreement sent with the invoice (story: rtagr). */

.rt-agr {
	position: relative;
	padding-bottom: 26px;
}

.rt-agr__modal {
	padding: 16px;
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
	box-shadow: 0 24px 40px -24px rgba(3, 42, 47, .6);
	transition: opacity .5s var(--ease), transform .7s var(--ease);
}

.rt-agr__title {
	display: block;
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.rt-agr__body {
	position: relative;
	display: grid;
	grid-template-rows: 36px 36px 36px 38px;
	gap: 8px;
}

.rt-agr__opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--ink-2);
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.rt-box {
	display: grid;
	flex: none;
	place-items: center;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--teal);
	border-radius: 5px;
	background: var(--teal);
	color: #fff;
	transition: background-color .3s, border-color .3s;
}

.rt-box .rc-icon {
	width: 12px;
	height: 12px;
	stroke-width: 3;
	transition: opacity .25s, transform .45s var(--spring);
}

.rt-agr__opt--lock {
	background: var(--grey);
}

.rt-agr__lock {
	width: 14px;
	height: 14px;
	margin-left: auto;
	color: var(--muted);
}

.rt-agr__send {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border-radius: 10px;
	background: var(--teal);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	transition: background-color .3s, transform .25s var(--ease);
}

.rt-agr__send .rc-icon {
	width: 15px;
	height: 15px;
}

.rt-agr__done {
	position: absolute;
	right: 14px;
	bottom: 0;
	left: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 14px;
	background: var(--ink);
	color: #fff;
	box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .55);
	transition: opacity .4s var(--ease), transform .7s var(--spring);
}

.rt-agr__done strong,
.rt-agr__done small {
	display: block;
	white-space: nowrap;
}

.rt-agr__done strong {
	font-size: 13.5px;
	font-weight: 700;
}

.rt-agr__done small {
	color: rgba(255, 255, 255, .65);
	font-size: 11.5px;
}

.rt-agr__done .mk-check {
	width: 30px;
	height: 30px;
}

.rt-agr__done .mk-check .rc-icon {
	width: 15px;
	height: 15px;
}

.js .rt-agr:not(.s2) .rt-agr__opt:nth-child(2) .rt-box,
.js .rt-agr:not(.s4) .rt-agr__opt--live .rt-box {
	border-color: var(--line-2);
	background: #fff;
}

.js .rt-agr:not(.s2) .rt-agr__opt:nth-child(2) .rt-box .rc-icon,
.js .rt-agr:not(.s4) .rt-agr__opt--live .rt-box .rc-icon {
	opacity: 0;
	transform: scale(.3);
}

/* Checkbox centres sit at x 20px and y 62px / 106px; the Send button's centre at y 151px. */
.js .rt-agr.s1 .rt-agr__cursor {
	top: 59px;
	left: 16px;
	opacity: 1;
}

.js .rt-agr.s3 .rt-agr__cursor {
	top: 103px;
}

.js .rt-agr.s5 .rt-agr__cursor {
	top: 147px;
	left: 46%;
}

.js .rt-agr.s7 .rt-agr__cursor {
	opacity: 0;
}

.js .rt-agr.s2:not(.s3) .rt-agr__cursor,
.js .rt-agr.s4:not(.s5) .rt-agr__cursor,
.js .rt-agr.s6:not(.s7) .rt-agr__cursor {
	transform: scale(.82);
}

.js .rt-agr.s6:not(.s7) .rt-agr__send {
	background: var(--teal-deep);
	transform: scale(.97);
}

.rt-agr.s7 .rt-agr__modal,
html:not(.js) .rt-agr__modal {
	opacity: .88;
	transform: scale(.97);
}

.js .rt-agr:not(.s7) .rt-agr__done {
	opacity: 0;
	transform: translateY(14px) scale(.9);
}

/* Tenancy information (story: rtlease). */

.rt-lease {
	padding: 16px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.rt-lease__top {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rt-lease__top .mk-avatar {
	width: 36px;
	height: 36px;
	font-size: 12px;
}

.rt-lease__who {
	flex: 1;
	min-width: 0;
}

.rt-lease__who strong,
.rt-lease__who small {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.rt-lease__who strong {
	font-size: 13.5px;
	font-weight: 700;
}

.rt-lease__who small {
	color: var(--muted);
	font-size: 11.5px;
}

.rt-lease__line {
	display: block;
	margin: 18px 0 14px;
}

.rt-lease__track {
	position: relative;
	display: block;
	height: 8px;
	border-radius: 999px;
	background: var(--grey-2);
}

.rt-lease__track i {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 79%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--teal-700), var(--teal));
	transition: width 1.2s var(--ease);
}

.rt-lease__track b {
	position: absolute;
	top: 50%;
	left: 79%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--yellow);
	box-shadow: 0 2px 6px rgba(14, 20, 22, .25);
	transition: left 1.2s var(--ease);
}

.rt-lease__dates {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	color: var(--muted);
	font-size: 11px;
}

.rt-lease__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.rt-lease__grid > span {
	display: block;
	padding: 9px 11px;
	border-radius: 11px;
	background: var(--grey);
	transition: opacity .4s var(--ease), transform .6s var(--spring);
}

.rt-lease__grid small {
	display: block;
	color: var(--muted);
	font-size: 10.5px;
}

.rt-lease__grid b {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.rt-lease__ok {
	color: var(--teal);
}

.rt-lease__ok .rc-icon {
	width: 15px;
	height: 15px;
}

.js .rt-lease:not(.s1) .rt-lease__track i {
	width: 0;
}

.js .rt-lease:not(.s1) .rt-lease__track b {
	left: 0;
}

.js .rt-lease:not(.s2) .rt-lease__grid > :nth-child(1),
.js .rt-lease:not(.s3) .rt-lease__grid > :nth-child(2),
.js .rt-lease:not(.s4) .rt-lease__grid > :nth-child(3),
.js .rt-lease:not(.s5) .rt-lease__grid > :nth-child(4) {
	opacity: 0;
	transform: translateY(8px) scale(.94);
}

/* Repairs and complaints (story: rtfix). */

.rt-fix {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rt-fix__alert {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px 9px 9px;
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--shadow-sm);
	transition: opacity .45s var(--ease), transform .7s var(--spring);
}

.rt-fix__bell {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--ink);
}

.rt-fix__bell .rc-icon {
	width: 16px;
	height: 16px;
}

.rt-fix__alert strong,
.rt-fix__alert small {
	display: block;
	white-space: nowrap;
}

.rt-fix__alert strong {
	font-size: 12.5px;
	font-weight: 700;
}

.rt-fix__alert small {
	color: var(--muted);
	font-size: 11px;
}

.rt-fix__ticket {
	position: relative;
	display: block;
	padding: 13px;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--shadow-sm);
	transition: opacity .45s var(--ease), transform .7s var(--ease);
}

.rt-fix__head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rt-fix__ic {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--teal-50);
	color: var(--teal);
}

.rt-fix__ic .rc-icon {
	width: 16px;
	height: 16px;
}

.rt-fix__name {
	min-width: 0;
}

.rt-fix__name strong,
.rt-fix__name small {
	display: block;
	white-space: nowrap;
}

.rt-fix__name strong {
	font-size: 13px;
	font-weight: 700;
}

.rt-fix__name small {
	color: var(--muted);
	font-size: 11px;
}

.rt-fix__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 12px;
	padding-top: 11px;
	border-top: 1px solid var(--line);
}

.rt-fix__btn {
	padding: 6px 11px;
	border-radius: 999px;
	background: var(--teal);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	transition: opacity .35s, transform .25s var(--ease), background-color .3s;
}

.rt-fix__confirm {
	position: absolute;
	right: 10px;
	bottom: 10px;
	left: 10px;
	display: block;
	padding: 11px 12px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line), 0 18px 34px -14px rgba(3, 42, 47, .45);
	opacity: 0;
	transform: translateY(8px) scale(.94);
	transition: opacity .35s var(--ease), transform .55s var(--spring);
	pointer-events: none;
}

.rt-fix__confirm strong {
	display: block;
	font-size: 12px;
	font-weight: 700;
}

.rt-fix__confirm > span {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	margin-top: 8px;
}

.rt-fix__confirm > span > span {
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--grey);
	color: var(--ink-2);
	font-size: 11px;
	font-weight: 700;
	transition: transform .25s var(--ease);
}

.rt-fix__confirm .rt-fix__yes {
	background: var(--teal);
	color: #fff;
}

.rt-fix__mail {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	padding: 5px 13px 5px 5px;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
	transition: opacity .4s var(--ease), transform .7s var(--spring);
}

.js .rt-fix:not(.s1) .rt-fix__alert {
	opacity: 0;
	transform: translateY(-10px) scale(.94);
}

.js .rt-fix:not(.s2) .rt-fix__ticket {
	opacity: 0;
	transform: translateY(12px);
}

.js .rt-fix:not(.s4) .rt-fix__btn {
	opacity: 1;
}

.js .rt-fix.s3:not(.s4) .rt-fix__btn {
	background: var(--teal-deep);
	transform: scale(.94);
}

.js .rt-fix.s3:not(.s4) .rt-fix__confirm {
	opacity: 1;
	transform: none;
}

.js .rt-fix.s3:not(.s4) .rt-fix__yes {
	animation: rt-press .5s var(--ease) .6s both;
}

.js .rt-fix:not(.s4) .rt-fix__foot .rt-flip > :first-child {
	opacity: 1;
	transform: none;
}

.js .rt-fix:not(.s4) .rt-fix__foot .rt-flip > :last-child {
	opacity: 0;
	transform: translateY(.45em) scale(.94);
}

.js .rt-fix:not(.s5) .rt-fix__mail {
	opacity: 0;
	transform: translateY(10px) scale(.9);
}

@keyframes rt-press {
	50% {
		transform: scale(.88);
	}
}

/* 3. Properties and team band ============================================= */

.rt-band {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
	gap: 60px;
	align-items: center;
	padding: clamp(28px, 2rem + 3vw, 72px);
	overflow: hidden;
	border-radius: var(--radius-xl);
	background:
		radial-gradient(55% 60% at 100% 0%, rgba(251, 201, 1, .16), transparent 70%),
		radial-gradient(50% 60% at 0% 100%, rgba(4, 111, 123, .55), transparent 70%),
		var(--teal-deep);
	color: #fff;
	isolation: isolate;
}

.rt-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 72px 72px;
	-webkit-mask-image: radial-gradient(70% 80% at 30% 50%, #000 20%, transparent 80%);
	mask-image: radial-gradient(70% 80% at 30% 50%, #000 20%, transparent 80%);
}

.rt-band .rc-h2 {
	color: #fff;
	font-size: clamp(1.9rem, 1rem + 2vw, 2.6rem);
}

.rt-band .rc-h2__sub {
	color: var(--yellow);
}

.rt-band .rt-lead {
	color: rgba(255, 255, 255, .76);
	font-size: 16px;
}

.rt-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.rt-tags li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px 6px 9px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	color: rgba(255, 255, 255, .9);
	font-size: 13px;
	font-weight: 500;
}

.rt-tags .rc-icon {
	width: 14px;
	height: 14px;
	color: var(--yellow);
	stroke-width: 2.6;
}

.rt-band__visual {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.rt-band .mk-card {
	box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .6);
}

.rt-prop {
	padding: 12px;
}

.rt-prop__photo {
	position: relative;
	height: 178px;
	overflow: hidden;
	border-radius: 12px;
	background-color: var(--teal-50);
	background-position: 50% 55%;
	background-size: cover;
}

.rt-prop__photo::after {
	content: "";
	position: absolute;
	inset: 35% 0 0;
	background: linear-gradient(transparent, rgba(3, 42, 47, .78));
}

.rt-prop__name {
	position: absolute;
	right: 12px;
	bottom: 10px;
	left: 12px;
	z-index: 1;
	color: #fff;
}

.rt-prop__name strong,
.rt-prop__name small {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.rt-prop__name strong {
	font-size: 14.5px;
	font-weight: 700;
}

.rt-prop__name small {
	font-size: 11px;
	opacity: .82;
}

.rt-prop__stats {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: 6px;
	padding: 14px 4px 4px;
}

.rt-prop__stats small {
	display: block;
	color: var(--muted);
	font-size: 10.5px;
}

.rt-prop__stats b {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -.03em;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.rt-prop__cyl {
	height: 118px;
	padding: 14px 6px 0;
	gap: 8px;
}

.rt-prop__cyl .mk-cyl::before {
	top: -6px;
	height: 12px;
}

.rt-prop__cyl .mk-cyl {
	transition: transform 1.1s var(--ease);
	transform-origin: bottom;
}

.rt-prop__cyl .mk-cyl:nth-child(2) { transition-delay: .07s; }
.rt-prop__cyl .mk-cyl:nth-child(3) { transition-delay: .14s; }
.rt-prop__cyl .mk-cyl:nth-child(4) { transition-delay: .21s; }
.rt-prop__cyl .mk-cyl:nth-child(5) { transition-delay: .28s; }
.rt-prop__cyl .mk-cyl:nth-child(6) { transition-delay: .35s; }

.js .rt-band__visual:not(.is-in) .mk-cyl {
	transform: scaleY(.05);
}

.rt-prop__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 12px;
	padding: 10px 4px 2px;
	border-top: 1px solid var(--line);
}

.rt-prop .mk-avatars .mk-avatar {
	width: 32px;
	height: 32px;
	border-color: #fff;
	font-size: 10.5px;
}

.rt-prop__link {
	color: var(--teal);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

/* Add a property manager (story: rtteam). */

.rt-team {
	margin-top: 56px;
	padding: 18px;
}

.rt-team .mk-card__head {
	margin-bottom: 12px;
}

.rt-team .mk-card__title {
	font-size: 14.5px;
}

.rt-team .mk-more {
	width: 30px;
	height: 30px;
	background: var(--teal-50);
	color: var(--teal);
}

.rt-team__mail {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px;
	border: 1.5px solid var(--line-2);
	border-radius: 10px;
	font-size: 12.5px;
	font-weight: 600;
	transition: border-color .35s, box-shadow .35s;
}

.rt-team__mail > .rc-icon {
	width: 16px;
	height: 16px;
	color: var(--muted);
}

.rt-team__perms {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.rt-team__perms li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink-2);
	font-size: 12.5px;
	font-weight: 600;
}

.rt-team__perms .rt-off .mk-toggle i {
	background: #cfdada;
}

.rt-team__perms .rt-off .mk-toggle i::after {
	transform: none;
}

.rt-team__btn {
	display: grid;
	height: 40px;
	margin-top: 14px;
	border-radius: 10px;
	background: var(--yellow);
	color: var(--ink);
	font-size: 12.5px;
	font-weight: 700;
	transition: background-color .4s, color .4s, transform .25s var(--ease);
}

.rt-team__btn > span {
	display: inline-flex;
	grid-area: 1 / 1;
	align-items: center;
	justify-content: center;
	gap: 7px;
	white-space: nowrap;
	transition: opacity .3s, transform .5s var(--spring);
}

.rt-team__btn > span:first-child {
	opacity: 0;
	transform: translateY(8px);
}

.rt-team__btn .rc-icon {
	width: 15px;
	height: 15px;
	stroke-width: 2.2;
}

.js .rt-team:not(.s1) .rt-typed > span {
	clip-path: inset(0 100% 0 0);
}

.js .rt-team.s1:not(.s2) .rt-team__mail {
	border-color: var(--teal);
	box-shadow: 0 0 0 4px rgba(4, 111, 123, .12);
}

.js .rt-team:not(.s2) .rt-team__perms li:nth-child(2) .mk-toggle i,
.js .rt-team:not(.s3) .rt-team__perms li:nth-child(3) .mk-toggle i,
.js .rt-team:not(.s4) .rt-team__perms li:nth-child(4) .mk-toggle i,
.js .rt-team:not(.s5) .rt-team__perms li:nth-child(5) .mk-toggle i {
	background: #cfdada;
}

.js .rt-team:not(.s2) .rt-team__perms li:nth-child(2) .mk-toggle i::after,
.js .rt-team:not(.s3) .rt-team__perms li:nth-child(3) .mk-toggle i::after,
.js .rt-team:not(.s4) .rt-team__perms li:nth-child(4) .mk-toggle i::after,
.js .rt-team:not(.s5) .rt-team__perms li:nth-child(5) .mk-toggle i::after {
	transform: none;
}

.js .rt-team:not(.s7) .rt-team__btn {
	background: var(--teal);
	color: #fff;
}

.js .rt-team.s6:not(.s7) .rt-team__btn {
	background: var(--teal-deep);
	transform: scale(.97);
}

.js .rt-team:not(.s7) .rt-team__btn > :first-child {
	opacity: 1;
	transform: none;
}

.js .rt-team:not(.s7) .rt-team__btn > :last-child {
	opacity: 0;
	transform: translateY(8px);
}

/* 4. How it works ========================================================= */

.rt-steps {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rt-step {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 262px;
	padding: 22px 20px 34px;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--grey);
	transition: background-color .7s var(--ease), box-shadow .7s var(--ease), transform .7s var(--ease);
}

.rt-step__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rt-step__num {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--teal);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	transition: background-color .5s var(--ease), color .5s var(--ease);
}

.rt-step__num > * {
	grid-area: 1 / 1;
	transition: opacity .3s, transform .5s var(--spring);
}

.rt-step__num > span {
	opacity: 0;
	transform: scale(.5);
}

.rt-step__num .rc-icon {
	width: 19px;
	height: 19px;
	stroke-width: 2.6;
}

.rt-step__ic {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: #fff;
	color: var(--teal);
	transition: background-color .5s var(--ease), color .5s var(--ease);
}

.rt-step__ic .rc-icon {
	width: 21px;
	height: 21px;
}

.rt-step__title {
	margin: auto 0 8px;
	padding-top: 34px;
	color: var(--ink);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1.25;
	transition: color .5s var(--ease);
}

.rt-step__text {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
	transition: color .5s var(--ease);
}

.rt-step__bar {
	position: absolute;
	right: 20px;
	bottom: 16px;
	left: 20px;
	height: 3px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--line-2);
}

.rt-step__bar i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--teal);
	transform-origin: left;
}

/* Story: rthow — each step lights up in turn, then shows a tick. */

.js .rt-steps:not(.s1) .rt-step:nth-child(1) .rt-step__num,
.js .rt-steps:not(.s2) .rt-step:nth-child(2) .rt-step__num,
.js .rt-steps:not(.s3) .rt-step:nth-child(3) .rt-step__num,
.js .rt-steps:not(.s4) .rt-step:nth-child(4) .rt-step__num,
.js .rt-steps:not(.s5) .rt-step:nth-child(5) .rt-step__num {
	background: #fff;
	color: var(--ink);
}

.js .rt-steps:not(.s1) .rt-step:nth-child(1) .rt-step__num > span,
.js .rt-steps:not(.s2) .rt-step:nth-child(2) .rt-step__num > span,
.js .rt-steps:not(.s3) .rt-step:nth-child(3) .rt-step__num > span,
.js .rt-steps:not(.s4) .rt-step:nth-child(4) .rt-step__num > span,
.js .rt-steps:not(.s5) .rt-step:nth-child(5) .rt-step__num > span,
.js .rt-steps.s1:not(.s2) .rt-step:nth-child(1) .rt-step__num > span,
.js .rt-steps.s2:not(.s3) .rt-step:nth-child(2) .rt-step__num > span,
.js .rt-steps.s3:not(.s4) .rt-step:nth-child(3) .rt-step__num > span,
.js .rt-steps.s4:not(.s5) .rt-step:nth-child(4) .rt-step__num > span,
.js .rt-steps.s5 .rt-step:nth-child(5) .rt-step__num > span {
	opacity: 1;
	transform: none;
}

.js .rt-steps:not(.s1) .rt-step:nth-child(1) .rt-step__num .rc-icon,
.js .rt-steps:not(.s2) .rt-step:nth-child(2) .rt-step__num .rc-icon,
.js .rt-steps:not(.s3) .rt-step:nth-child(3) .rt-step__num .rc-icon,
.js .rt-steps:not(.s4) .rt-step:nth-child(4) .rt-step__num .rc-icon,
.js .rt-steps:not(.s5) .rt-step:nth-child(5) .rt-step__num .rc-icon,
.js .rt-steps.s1:not(.s2) .rt-step:nth-child(1) .rt-step__num .rc-icon,
.js .rt-steps.s2:not(.s3) .rt-step:nth-child(2) .rt-step__num .rc-icon,
.js .rt-steps.s3:not(.s4) .rt-step:nth-child(3) .rt-step__num .rc-icon,
.js .rt-steps.s4:not(.s5) .rt-step:nth-child(4) .rt-step__num .rc-icon,
.js .rt-steps.s5 .rt-step:nth-child(5) .rt-step__num .rc-icon {
	opacity: 0;
	transform: scale(.5);
}

.js .rt-steps:not(.s1) .rt-step:nth-child(1) .rt-step__bar i,
.js .rt-steps:not(.s2) .rt-step:nth-child(2) .rt-step__bar i,
.js .rt-steps:not(.s3) .rt-step:nth-child(3) .rt-step__bar i,
.js .rt-steps:not(.s4) .rt-step:nth-child(4) .rt-step__bar i,
.js .rt-steps:not(.s5) .rt-step:nth-child(5) .rt-step__bar i {
	transform: scaleX(0);
}

/* The active step. */
.js .rt-steps.s1:not(.s2) .rt-step:nth-child(1),
.js .rt-steps.s2:not(.s3) .rt-step:nth-child(2),
.js .rt-steps.s3:not(.s4) .rt-step:nth-child(3),
.js .rt-steps.s4:not(.s5) .rt-step:nth-child(4),
.js .rt-steps.s5 .rt-step:nth-child(5) {
	background: var(--teal);
	box-shadow: 0 30px 50px -30px rgba(3, 42, 47, .7);
	transform: translateY(-6px);
}

.js .rt-steps.s1:not(.s2) .rt-step:nth-child(1) .rt-step__num,
.js .rt-steps.s2:not(.s3) .rt-step:nth-child(2) .rt-step__num,
.js .rt-steps.s3:not(.s4) .rt-step:nth-child(3) .rt-step__num,
.js .rt-steps.s4:not(.s5) .rt-step:nth-child(4) .rt-step__num,
.js .rt-steps.s5 .rt-step:nth-child(5) .rt-step__num {
	background: var(--yellow);
	color: var(--ink);
}

.js .rt-steps.s1:not(.s2) .rt-step:nth-child(1) .rt-step__ic,
.js .rt-steps.s2:not(.s3) .rt-step:nth-child(2) .rt-step__ic,
.js .rt-steps.s3:not(.s4) .rt-step:nth-child(3) .rt-step__ic,
.js .rt-steps.s4:not(.s5) .rt-step:nth-child(4) .rt-step__ic,
.js .rt-steps.s5 .rt-step:nth-child(5) .rt-step__ic {
	background: rgba(255, 255, 255, .12);
	color: var(--yellow);
}

.js .rt-steps.s1:not(.s2) .rt-step:nth-child(1) .rt-step__title,
.js .rt-steps.s2:not(.s3) .rt-step:nth-child(2) .rt-step__title,
.js .rt-steps.s3:not(.s4) .rt-step:nth-child(3) .rt-step__title,
.js .rt-steps.s4:not(.s5) .rt-step:nth-child(4) .rt-step__title,
.js .rt-steps.s5 .rt-step:nth-child(5) .rt-step__title {
	color: #fff;
}

.js .rt-steps.s1:not(.s2) .rt-step:nth-child(1) .rt-step__text,
.js .rt-steps.s2:not(.s3) .rt-step:nth-child(2) .rt-step__text,
.js .rt-steps.s3:not(.s4) .rt-step:nth-child(3) .rt-step__text,
.js .rt-steps.s4:not(.s5) .rt-step:nth-child(4) .rt-step__text,
.js .rt-steps.s5 .rt-step:nth-child(5) .rt-step__text {
	color: rgba(255, 255, 255, .82);
}

.js .rt-steps.s1:not(.s2) .rt-step:nth-child(1) .rt-step__bar,
.js .rt-steps.s2:not(.s3) .rt-step:nth-child(2) .rt-step__bar,
.js .rt-steps.s3:not(.s4) .rt-step:nth-child(3) .rt-step__bar,
.js .rt-steps.s4:not(.s5) .rt-step:nth-child(4) .rt-step__bar,
.js .rt-steps.s5 .rt-step:nth-child(5) .rt-step__bar {
	background: rgba(255, 255, 255, .2);
}

.js .rt-steps.s1:not(.s2) .rt-step:nth-child(1) .rt-step__bar i,
.js .rt-steps.s2:not(.s3) .rt-step:nth-child(2) .rt-step__bar i,
.js .rt-steps.s3:not(.s4) .rt-step:nth-child(3) .rt-step__bar i,
.js .rt-steps.s4:not(.s5) .rt-step:nth-child(4) .rt-step__bar i,
.js .rt-steps.s5 .rt-step:nth-child(5) .rt-step__bar i {
	background: var(--yellow);
	transition: transform 1.6s linear;
}

.rt-why {
	margin-top: 18px;
}

.rt-why .rc-why__value > span {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
}

.rt-why__word {
	font-size: .78em;
	letter-spacing: -.035em;
	white-space: nowrap;
}

.rt-why__unit {
	color: var(--ink-2);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -.02em;
}

/* Responsive ============================================================== */

@media (max-width: 1180px) {
	.rt-hero,
	.rt-hero__col {
		gap: 16px;
	}

	.rt-hero {
		zoom: .88;
	}

	.rt-hero .mk {
		font-size: 14px;
	}

	.rt-pay__grid {
		gap: 44px;
	}

	.rt-band {
		gap: 40px;
	}

	.rt-step {
		padding-right: 16px;
		padding-left: 16px;
	}
}

@media (max-width: 1024px) {
	.rt-pay__grid,
	.rt-band {
		grid-template-columns: minmax(0, 1fr);
	}

	.rt-pay__copy {
		max-width: 680px;
	}

	.rt-bento .rt-card--inv {
		grid-column: span 12;
	}

	.rt-bento .rt-card--kyt,
	.rt-bento .rt-card--agr,
	.rt-bento .rt-card--lease,
	.rt-bento .rt-card--fix {
		grid-column: span 6;
		min-height: 440px;
	}

	.rt-band__copy {
		order: -1;
		max-width: 680px;
	}

	/* Three steps on the first row, two wider ones on the second. */
	.rt-steps {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.rt-step {
		grid-column: span 2;
		min-height: 230px;
	}

	.rt-step:nth-child(n+4) {
		grid-column: span 3;
	}
}

/* Tablet: two columns of hero cards, scaled so whole cards read. */
@media (max-width: 960px) {
	.rt-hero {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 0 12px;
		zoom: .8;
	}

	.rt-hero__col:last-child {
		display: none;
	}

	.rt-hero__col:first-child {
		padding-top: 0;
	}

	.rt-hero__col--mid {
		padding-top: 58px;
	}
}

@media (max-width: 760px) {
	/* Phones: the live invoice card on its own, large enough to read. */
	.rt-hero {
		grid-template-columns: minmax(0, 1fr);
		max-width: 420px;
		margin: 0 auto;
		padding: 0;
		zoom: .86;
	}

	.rt-hero__col:first-child {
		display: none;
	}

	.rt-hero__col--mid {
		padding-top: 0;
	}

	.rt-lead {
		font-size: 16px;
	}

	.rt-pay__stage {
		margin: 0 -6px;
		padding: 14px;
		border-radius: var(--radius-lg);
	}

	.rt-wal .mk-card--lg {
		padding: 18px;
	}

	.rt-wal__fields {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"la"
			"in"
			"lt"
			"bk"
			"bt";
	}

	.rt-wal__label--to {
		margin-top: 8px;
	}

	.rt-tx__row {
		grid-template-columns: 34px minmax(0, 1fr) auto;
	}

	.rt-tx__row > .rt-status {
		display: none;
	}

	.rt-bento .rt-card {
		grid-column: span 12 !important;
		min-height: 0;
	}

	.rt-card__split {
		grid-template-columns: minmax(0, 1fr);
	}

	.rt-band {
		margin: 0 -6px;
		padding: 34px 20px 24px;
		border-radius: var(--radius-lg);
	}

	.rt-band__visual {
		grid-template-columns: minmax(0, 1fr);
	}

	.rt-team {
		margin-top: 0;
	}

	.rt-steps {
		grid-template-columns: minmax(0, 1fr);
	}

	.rt-step,
	.rt-step:nth-child(n+4) {
		grid-column: auto;
		min-height: 0;
	}

	.rt-step__title {
		padding-top: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rt-spin {
		animation: none;
	}
}
