/*
 * Realtor Cube — vertical landing page styles.
 * Consumes design-tokens.css custom properties only; no hard-coded brand hex
 * values in this file. Mobile-first: base rules are the small-viewport
 * layout, breakpoints add/rearrange for wider screens.
 *
 * Contrast notes (WCAG AA verified against design-tokens.css palette):
 *   - navy (#0D132B) on grey/white passes AAA (16.6:1 / 18.3:1)
 *   - white on navy passes AAA (18.3:1)
 *   - white on purple passes AA for normal text (6.06:1)
 *   - navy on orange passes AA (7.76:1) — used for the "sold" ribbon
 *   - pink/blue accents are NEVER used as a text background; decorative only
 */

.rc-shell {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.rc-main {
	overflow-x: hidden;
}

.rc-section {
	padding-block: 3.5rem;
}

.rc-eyebrow {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-purple-primary);
	margin: 0 0 0.75rem;
}

.rc-eyebrow--light {
	color: var(--color-blue-accent);
}

.rc-h2 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 1.2;
	color: var(--color-navy-dark);
	margin: 0 0 1rem;
}

.rc-h2--light {
	color: #fff;
}

.rc-h3 {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.125rem;
	color: var(--color-navy-dark);
	margin: 0 0 0.5rem;
}

.rc-section__heading {
	max-width: 42rem;
}

.rc-section__dek {
	max-width: 38rem;
	color: var(--color-navy-dark);
	opacity: 0.75;
	margin: -0.5rem 0 2rem;
}

/* ---------- Buttons ---------- */

.rc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border-radius: 999px;
	padding: 0.9em 1.9em;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	white-space: nowrap;
}

.rc-btn--primary {
	background: var(--gradient-signature);
	color: #fff;
}

.rc-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(13, 19, 43, 0.25);
	color: #fff;
}

.rc-btn--ghost {
	background: transparent;
	color: var(--color-navy-dark);
	border: 1.5px solid rgba(13, 19, 43, 0.25);
}

.rc-btn--ghost:hover {
	border-color: var(--color-navy-dark);
	color: var(--color-navy-dark);
}

.rc-btn--on-dark {
	background: #fff;
	color: var(--color-navy-dark);
}

.rc-btn--on-dark:hover {
	color: var(--color-navy-dark);
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.rc-btn--wide {
	width: 100%;
}

/* ---------- Hero ---------- */

.rc-hero {
	padding-block: 3rem 3rem;
	background: var(--color-grey-light);
}

.rc-hero__grid {
	display: grid;
	gap: 2.5rem;
}

.rc-hero__copy {
	display: flex;
	flex-direction: column;
}

.rc-hero__title {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: clamp(1.75rem, 5.5vw, 2.75rem);
	line-height: 1.15;
	color: var(--color-navy-dark);
	margin: 0 0 1.25rem;
}

.rc-hero__sub {
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--color-navy-dark);
	opacity: 0.82;
	max-width: 34rem;
	margin: 0 0 2rem;
}

.rc-hero__cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-bottom: 1.25rem;
}

.rc-hero__microcopy {
	font-size: 0.8125rem;
	color: var(--color-navy-dark);
	opacity: 0.6;
	margin: 0;
}

/* Hero postcards — decorative composite, aria-hidden in markup */

.rc-hero__visual {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	align-items: center;
}

.rc-postcard {
	width: 100%;
	max-width: 21rem;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 18px 40px rgba(13, 19, 43, 0.14);
	overflow: hidden;
}

.rc-postcard--sold {
	transform: translateX(1.5rem);
}

.rc-postcard__media {
	position: relative;
	height: 7.5rem;
	background: linear-gradient(135deg, var(--color-navy-dark) 0%, #1c2450 100%);
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 0.9rem;
}

.rc-postcard__tag {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	padding: 0.35em 0.75em;
	border-radius: 999px;
	color: #fff;
}

.rc-postcard__tag--new {
	background: var(--color-purple-primary);
}

.rc-postcard__tag--sold {
	background: var(--color-orange-accent);
	color: var(--color-navy-dark);
}

.rc-postcard__body {
	padding: 1rem 1.1rem 1.2rem;
}

.rc-postcard__addr {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.0625rem;
	color: var(--color-navy-dark);
	margin: 0 0 0.3rem;
}

.rc-postcard__meta {
	font-size: 0.875rem;
	color: var(--color-navy-dark);
	opacity: 0.7;
	margin: 0 0 0.4rem;
}

.rc-postcard__agent {
	font-size: 0.8125rem;
	color: var(--color-navy-dark);
	opacity: 0.55;
	margin: 0;
}

/* ---------- Problem section ---------- */

.rc-problem {
	background: #fff;
}

.rc-problem__grid {
	display: grid;
	gap: 2rem;
}

.rc-problem__lede {
	max-width: 40rem;
}

.rc-problem__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.75rem;
}

.rc-problem__list p {
	margin: 0;
	color: var(--color-navy-dark);
	opacity: 0.75;
	line-height: 1.6;
}

/* ---------- Included features ---------- */

.rc-included {
	background: var(--color-grey-light);
}

.rc-included__grid {
	display: grid;
	gap: 1.5rem;
	margin-top: 2rem;
}

.rc-feature-card {
	background: #fff;
	border-radius: 16px;
	padding: 1.75rem 1.5rem;
	box-shadow: 0 6px 20px rgba(13, 19, 43, 0.06);
}

.rc-feature-card__num {
	display: block;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 0.875rem;
	color: var(--color-pink-accent);
	margin-bottom: 0.6rem;
	letter-spacing: 0.05em;
}

.rc-feature-card p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--color-navy-dark);
	opacity: 0.78;
}

/* ---------- Template preview ---------- */

.rc-templates {
	background: #fff;
}

.rc-preview-grid {
	display: grid;
	gap: 2rem;
}

.rc-preview {
	margin: 0;
}

.rc-preview__label {
	display: block;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.8125rem;
	color: var(--color-navy-dark);
	opacity: 0.6;
	margin-bottom: 0.75rem;
}

.rc-preview__frame {
	border-radius: 18px;
	padding: 1.75rem 1.5rem;
	color: #fff;
	position: relative;
	min-height: 12rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.6rem;
}

.rc-preview__frame--listing {
	background: linear-gradient(160deg, var(--color-navy-dark) 0%, #23295c 55%, var(--color-purple-primary) 130%);
}

.rc-preview__frame--sold {
	background: linear-gradient(160deg, var(--color-navy-dark) 0%, #3a2a12 60%, var(--color-orange-accent) 145%);
}

.rc-preview__ribbon {
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	padding: 0.4em 0.9em;
	border-radius: 999px;
	background: #fff;
	color: var(--color-navy-dark);
}

.rc-preview__ribbon--sold {
	background: var(--color-orange-accent);
	color: var(--color-navy-dark);
}

.rc-preview__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.9rem;
	font-size: 0.8125rem;
	font-weight: 600;
	opacity: 0.9;
}

.rc-preview__addr {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.25rem;
}

.rc-preview__agent,
.rc-preview__quote {
	font-size: 0.8125rem;
	opacity: 0.85;
	margin: 0;
}

/* ---------- R360 cross-sell ---------- */

.rc-r360 {
	background: var(--color-navy-dark);
	color: #fff;
}

.rc-r360__grid {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

.rc-r360__body {
	color: #fff;
	opacity: 0.85;
	line-height: 1.65;
	max-width: 36rem;
	margin: 0 0 1.25rem;
}

.rc-r360__list {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	display: grid;
	gap: 0.6rem;
	max-width: 34rem;
}

.rc-r360__list li {
	position: relative;
	padding-left: 1.5rem;
	font-size: 0.9375rem;
	opacity: 0.9;
}

.rc-r360__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: var(--color-blue-accent);
}

.rc-r360__visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.rc-r360__badge {
	width: 100%;
	max-width: 16rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 16px;
	padding: 1.5rem;
	text-align: center;
}

.rc-r360__badge--cube {
	background: rgba(108, 58, 237, 0.18);
	border-color: rgba(108, 58, 237, 0.4);
}

.rc-r360__badge-line1 {
	display: block;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.25rem;
}

.rc-r360__badge-line2 {
	display: block;
	font-size: 0.8125rem;
	opacity: 0.7;
	margin-top: 0.25rem;
}

.rc-r360__connector {
	width: 2px;
	height: 2rem;
	background: repeating-linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0.35) 0,
		rgba(255, 255, 255, 0.35) 4px,
		transparent 4px,
		transparent 9px
	);
}

/* ---------- Pricing ---------- */

.rc-pricing {
	background: var(--color-grey-light);
}

.rc-pricing__wrap {
	display: flex;
	justify-content: center;
}

.rc-pricing__card {
	background: #fff;
	border-radius: 24px;
	padding: 2.5rem 2rem;
	max-width: 26rem;
	width: 100%;
	box-shadow: 0 20px 50px rgba(13, 19, 43, 0.12);
	text-align: left;
}

.rc-pricing__amount {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 3rem;
	color: var(--color-navy-dark);
	margin: 0 0 0.5rem;
	line-height: 1;
}

.rc-pricing__currency {
	font-size: 1.75rem;
	vertical-align: top;
	position: relative;
	top: 0.4rem;
}

.rc-pricing__period {
	font-family: var(--font-body);
	font-size: 1.125rem;
	font-weight: 600;
	opacity: 0.55;
}

.rc-pricing__note {
	font-size: 0.875rem;
	color: var(--color-navy-dark);
	opacity: 0.65;
	margin: 0 0 1.75rem;
}

.rc-pricing__list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.rc-pricing__list li {
	position: relative;
	padding-left: 1.6rem;
	font-size: 0.9375rem;
	color: var(--color-navy-dark);
	opacity: 0.85;
	line-height: 1.5;
}

.rc-pricing__list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--color-purple-primary);
	font-weight: 700;
}

.rc-pricing__fine {
	font-size: 0.8125rem;
	color: var(--color-navy-dark);
	opacity: 0.55;
	margin: 1rem 0 0;
	text-align: center;
}

/* ---------- Closing CTA ---------- */

.rc-closing {
	background: #fff;
}

.rc-closing__inner {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.rc-closing__inner .rc-section__heading {
	max-width: none;
}

/* ================= Breakpoints (mobile-first) ================= */

@media (min-width: 640px) {
	.rc-hero__visual {
		flex-direction: row;
		align-items: flex-start;
		justify-content: center;
	}

	.rc-postcard--sold {
		transform: translateY(1.5rem);
	}

	.rc-included__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.rc-preview-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 860px) {
	.rc-hero__grid {
		grid-template-columns: 1.1fr 0.9fr;
		align-items: center;
	}

	.rc-problem__grid {
		grid-template-columns: 0.85fr 1.15fr;
		gap: 3rem;
	}

	.rc-r360__grid {
		grid-template-columns: 1.2fr 0.8fr;
	}

	.rc-r360__visual {
		flex-direction: row;
		gap: 1.5rem;
	}

	.rc-r360__connector {
		width: 2.5rem;
		height: 2px;
		background: repeating-linear-gradient(
			to right,
			rgba(255, 255, 255, 0.35) 0,
			rgba(255, 255, 255, 0.35) 4px,
			transparent 4px,
			transparent 9px
		);
	}
}

@media (min-width: 1080px) {
	.rc-included__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.rc-section {
		padding-block: 5rem;
	}

	.rc-hero {
		padding-block: 5rem;
	}
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.rc-btn {
		transition: none;
	}
}

.rc-link {
	color: var(--color-purple-primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	opacity: 1;
	transition: color 0.15s ease;
}

.rc-link:hover {
	color: var(--color-pink-accent);
}
