/* Sign up — Figma 4.2-sign-up (4486:5152): 1082px column (x=159), title,
   two 529px cards with 24px gap. */

.signup__inner {
	max-width: 1130px; /* 1082 + 2×24 side padding */
	margin: 0 auto;
	padding: 12px 24px 96px;
}

.signup__title {
	margin: 0 0 36px;
	font-family: var(--font-display);
	font-size: 48px;
	font-weight: 500;
	line-height: 50px;
}

.signup-plans {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.signup-plan {
	display: flex;
	flex-direction: column;
	gap: 36px;
	padding-top: 36px;
	overflow: hidden;
	border: 1px solid var(--rds-mid-grey);
	border-radius: 8px;
}

.signup-plan__benefits {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0 36px;
	list-style: none;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
}

.signup-plan__benefits li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.signup-plan__benefits .rds-icon {
	flex-shrink: 0;
	margin-top: -1px;
}

.signup-plan__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto; /* pinned to the card bottom, cards are equal height */
	padding: 36px;
	background: var(--rds-light-grey);
}

.signup-plan__name-block {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.signup-plan__name {
	margin: 0;
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 500;
	line-height: 34px;
}

.signup-plan__price {
	margin: 0;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
}

.signup-plan__head .button {
	flex-shrink: 0;
}

.signup-plan__current {
	padding: 12px 18px;
	border: 1px solid var(--rds-black);
	border-radius: 8px;
	font-size: 14px;
	line-height: 20px;
}

@media (max-width: 900px) {
	.signup-plans {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.signup__inner {
		padding: 0 16px 64px;
	}

	.signup__title {
		font-size: 36px;
		line-height: 40px;
	}

	.signup-plan__benefits {
		padding: 0 20px;
	}

	.signup-plan__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
		padding: 24px 20px;
	}
}

.signup__notice {
	max-width: none;
	margin: -12px 0 36px;
}

/* -- registration form — Figma 4.0/4.1: 862px column (x=269) of bordered
   sections (padding 36 36 24, gap 36), 382px fields in rows of two -- */

.signup-form__inner {
	max-width: 910px; /* 862 + 2×24 */
	margin: 0 auto;
	padding: 12px 24px 96px;
}

.signup--form .profile-notice {
	max-width: none;
	margin-bottom: 36px;
}

.signup-form {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.signup-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.signup-section {
	padding: 24px 36px 36px;
	border: 1px solid var(--rds-mid-grey);
	border-radius: 8px;
}

.signup-section[hidden] {
	display: none;
}

.signup-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	cursor: pointer;
	list-style: none;
}

.signup-section__head::-webkit-details-marker {
	display: none;
}

.signup-section__title {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 500;
	line-height: 25.6px;
}

.signup-section__head .rds-icon {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.signup-section[open] .signup-section__head .rds-icon {
	transform: rotate(180deg);
}

.signup-section__intro {
	margin: 8px 0 0;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
}

.signup-section__body {
	display: flex;
	flex-direction: column;
	gap: 36px;
	margin-top: 36px;
}

.signup-section .profile-form__row {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px 24px;
}

/* labels live inside the fields as placeholders (assets/js/signup.js) */
.signup-section .profile-field__label.is-placeholder {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.signup-section .profile-field__control {
	border-color: rgba(66, 66, 66, 0.6);
}

.signup-section .profile-field__control::placeholder {
	color: rgba(66, 66, 66, 0.6);
	opacity: 1;
}

.signup-section select.profile-field__control:invalid,
.signup-section select.profile-field__control.is-empty {
	color: rgba(66, 66, 66, 0.6);
}

.signup-section select.profile-field__control {
	background-image: url("../img/form-icon-down.svg");
	background-position: right 1px center;
	background-size: 36px 36px;
}

.signup-section .profile-form__legend {
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 20px;
	margin-bottom: 12px;
}

.signup-consent {
	align-items: flex-start;
}

.signup-consent input {
	flex-shrink: 0;
	margin-top: 1px;
}

.signup-consent a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.signup-consent.has-error {
	color: #c0392b;
}

.signup-form__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.signup-form__submit {
	justify-content: center;
	min-width: 120px;
}

.signup-form__submit:hover {
	background: #777777;
	border-color: #777777;
}

.signup-form__recaptcha {
	margin: 0;
	font-size: 12px;
	line-height: 16px;
	text-align: center;
	color: var(--rds-dark-grey);
}

.signup-form__recaptcha a {
	text-decoration: underline;
}

.grecaptcha-badge {
	visibility: hidden; /* allowed when the notice above is shown */
}

@media (max-width: 700px) {
	.signup-section .profile-form__row,
	.signup-section .profile-form__row--wrap {
		grid-template-columns: 1fr;
	}

	.signup-section {
		padding: 20px 20px 24px;
	}

	.signup-section .profile-form__row {
		gap: 18px;
	}
}

/* -- Join screen (client brief §6.1) -- */

.signup__subtitle {
	margin: -24px 0 36px;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
}

.signup-plan__intro {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 36px;
}

.signup-plan__text {
	margin: 0;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
}

.signup-plan__price-big {
	margin: 0;
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 500;
	line-height: 34px;
}

@media (max-width: 560px) {
	.signup-plan__intro {
		padding: 0 20px;
	}
}

/* -- simplified create-account form (client brief §6.2) -- */

.signup-form__inner {
	max-width: 690px; /* 642 + 2×24 */
}

.signup--form .signup__title {
	margin-bottom: 36px;
}

.signup-consents {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.signup-form__note {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--rds-dark-grey);
}

/* -- phone: same system as the Figma _M pages — 24px gutter, 42/48 title,
      24px inside the plan cards and form sections -- */

@media (max-width: 600px) {
	.signup__inner {
		padding: 24px 24px 72px;
	}

	.signup__title {
		font-size: 42px;
		line-height: 48px;
	}

	.signup-plan {
		gap: 24px;
		padding-top: 24px;
	}

	.signup-plan__intro,
	.signup-plan__benefits {
		padding: 0 24px;
	}

	.signup-plan__head {
		padding: 24px;
	}

	.signup-section {
		padding: 24px;
	}
}

/* -- "Check your inbox" after registering (replaces the plan cards) -- */

.signup-sent {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	max-width: 640px;
	margin: 0 auto;
	padding: 48px 36px;
	border: 1px solid var(--rds-black);
	border-radius: 8px;
	text-align: center;
}

.signup-sent .rds-icon {
	width: 48px;
	height: 48px;
}

.signup-sent__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 500;
	line-height: 34px;
}

.signup-sent__text,
.signup-sent__hint {
	margin: 0;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
}

.signup-sent__hint {
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0;
	color: var(--rds-dark-grey);
}

@media (max-width: 600px) {
	.signup-sent {
		padding: 36px 24px;
	}
}

/* -- "7-day free trial" badge: top-right corner of the Premium card,
      Figma beige (#998579) with white text; the card's radius + overflow
      clip the outer corner -- */

/* Premium card, Figma 4.2-sign-up: #998579 at 5% (card), 50% (border),
   30% (head) */
.signup-plan--premium {
	position: relative;
	border-color: rgba(153, 133, 121, 0.5);
	background: rgba(153, 133, 121, 0.05);
}

.signup-plan--premium .signup-plan__head {
	background: rgba(153, 133, 121, 0.3);
}

.signup-plan__badge {
	position: absolute;
	top: 0;
	right: 0;
	padding: 6px 14px;
	border-bottom-left-radius: 8px;
	background: var(--rds-beige);
	color: var(--rds-white);
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

@media (max-width: 600px) {
	/* the 28px badge must not run into the card title (cards start 24px down here) */
	.signup-plan--premium {
		padding-top: 44px;
	}
}
