@import "@wordpress/base-styles/breakpoints";
@import "@wordpress/base-styles/mixins";
@import "@wordpress/base-styles/variables";

.jetpack-welcome-page {
	&.main.is-wide-layout {
		max-width: 744px;
		margin-top: 16px;

		@media (min-width: 660px) {
			margin-top: -16px;
		}

		@include break-medium {
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			height: 100vh;
			margin-top: -32px;
		}
	}

	&__card {
		width: 100%;
		max-width: none;
		padding: 0;

		border: 1px solid var(--color-border-subtle);
		border-radius: ( 2px * 4 );
		box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);

		&--main,
		&--footer {
			box-sizing: border-box;
			padding: 32px;
			@include break-mobile {
				padding: 64px;
			}
		}

		&--footer {
			padding-top: 0;
		}

		.jetpack-logo {
			margin-bottom: 48px;
		}

		a {
			text-decoration: underline;
			color: var(--color-studio-black);

			&:hover {
				text-decoration: none;
			}
		}

		h1 {
			line-height: 1;

			@include break-mobile {
				font-size: $font-headline-medium;
			}

			+ p {
				font-size: $font-title-small;
				font-weight: 500;
				/* stylelint-disable-next-line declaration-property-unit-allowed-list */
				line-height: 1.5rem;
				letter-spacing: -1px;

				@include break-mobile {
					font-size: $font-title-medium;
				}
			}
		}
		h2 {
			font-size: $font-title-medium;
			font-weight: 700;
			/* stylelint-disable-next-line declaration-property-unit-allowed-list */
			line-height: 1.75rem;
			padding-bottom: 16px;
		}

		.jetpack-welcome-page__step {
			display: flex;
			align-items: flex-start;
			padding-bottom: 40px;

			&:last-of-type {
				padding-bottom: 0;
			}

			&--number {
				color: var(--color-text-inverted);
				background-color: var(--studio-jetpack-green-40);
				text-align: center;
				border-radius: 50%;
				font-size: $font-title-small;
				font-weight: 600;
				width: rem(32px);
				height: rem(32px);
			}
			&--content {
				flex: 1;
				padding: 0 10px 0 16px;

				p {
					@include break-mobile {
						font-size: $font-body;
						/* stylelint-disable-next-line declaration-property-unit-allowed-list */
						line-height: 1.5rem;
					}
					margin: 0;
				}
			}
		}

		.jetpack-welcome-page__title {
			font-size: 2.25rem;
			font-weight: 700;
			margin-bottom: 24px;
			letter-spacing: -1px;

			@include break-mobile {
				font-size: 3rem;
			}
		}
	}
}
