/*
Theme Name: Rentex Marketing
Theme URI: https://rentexapp.online
Author: Rentex
Description: Marketing site for Rentex — matches app.rentexapp.online identity (violet/blue gradient, Inter, dark mode). Includes pages for home, about, news, features, and how it works; sign-in links to the app subdomain.
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rentex
*/

/* Brand tokens (from app.rentexapp.online built CSS) */
:root {
	--rentex-violet: #7c3aed;
	--rentex-blue: #2563eb;
	--rentex-gradient: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
	--rentex-gradient-subtle: linear-gradient(
		90deg,
		rgba(124, 58, 237, 0.22),
		rgba(37, 99, 235, 0.22)
	);
	--rentex-emerald: #10b981;
	--rentex-amber: #f59e0b;
	--rentex-text: #334155;
	--rentex-text-muted: #64748b;
	--rentex-bg: #f8fafc;
	--rentex-surface: #ffffff;
	--rentex-border: #e2e8f0;
	--rentex-radius: 0.75rem;
	--rentex-header-h: 88px;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html.rentex-dark,
html.rentex-dark :root {
	--rentex-text: #e2e8f0;
	--rentex-text-muted: #94a3b8;
	--rentex-bg: #020617;
	--rentex-surface: #0f172a;
	--rentex-border: #334155;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	line-height: 1.5;
	color: var(--rentex-text);
	background: var(--rentex-bg);
}

html.rentex-dark body {
	background-color: #020617;
	color: #e2e8f0;
}

/* Optional hero background (dark) */
.rentex-hero-bg {
	background: radial-gradient(ellipse at top, #1e1b4b 0%, #020617 55%);
}

html:not(.rentex-dark) .rentex-hero-bg {
	background: radial-gradient(
		ellipse at top,
		#ede9fe 0%,
		#dbeafe 50%,
		#f8fafc 100%
	);
}

a {
	color: var(--rentex-blue);
	text-decoration: none;
	transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
	color: var(--rentex-violet);
}

html.rentex-dark a:hover {
	color: #a78bfa;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Layout */
.rentex-wrap {
	width: 100%;
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	min-height: var(--rentex-header-h);
	background: color-mix(in srgb, var(--rentex-surface) 92%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--rentex-border);
}

html.rentex-dark .site-header {
	background: rgba(15, 23, 42, 0.9);
	border-color: #334155;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--rentex-header-h);
	flex-wrap: wrap;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-branding .custom-logo-link,
.site-branding a.home-link {
	display: flex;
	align-items: center;
}

.site-branding img,
.custom-logo {
	max-height: 56px;
	width: auto;
}

.custom-logo-link img {
	max-height: 56px;
	width: auto;
}

.site-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-title a {
	color: inherit;
}

/* Nav */
.main-nav {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem 0.5rem;
}

.main-nav a {
	display: block;
	padding: 0.5rem 0.65rem;
	border-radius: 0.5rem;
	color: var(--rentex-text);
	font-size: 0.9375rem;
	font-weight: 500;
}

html.rentex-dark .main-nav a {
	color: #cbd5e1;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
	color: var(--rentex-blue);
	background: var(--rentex-gradient-subtle);
}

html.rentex-dark .main-nav a:hover,
html.rentex-dark .main-nav .current-menu-item > a {
	color: #93c5fd;
	background: rgba(124, 58, 237, 0.15);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.header-actions .btn-header-pair {
	white-space: nowrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: var(--rentex-radius);
	border: 1px solid transparent;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
	transform: scale(0.99);
}

.btn-primary {
	background: var(--rentex-gradient);
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
	opacity: 0.95;
	color: #fff !important;
}

.btn-ghost {
	background: transparent;
	border-color: var(--rentex-border);
	color: var(--rentex-text) !important;
}

.btn-ghost:hover {
	border-color: var(--rentex-blue);
	color: var(--rentex-blue) !important;
}

html.rentex-dark .btn-ghost {
	border-color: #475569;
	color: #e2e8f0 !important;
}

.theme-toggle {
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border-radius: 0.5rem;
	border: 1px solid var(--rentex-border);
	background: var(--rentex-surface);
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
}

html.rentex-dark .theme-toggle {
	background: #1e293b;
	border-color: #475569;
}

.nav-toggle {
	display: none;
	width: 2.5rem;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--rentex-border);
	background: var(--rentex-surface);
	border-radius: 0.5rem;
	cursor: pointer;
}

@media (max-width: 960px) {
	.nav-toggle {
		display: inline-flex;
	}

	.main-nav {
		display: none;
		width: 100%;
		order: 10;
	}

	.main-nav.is-open {
		display: block;
	}

	.main-nav ul {
		flex-direction: column;
		align-items: stretch;
		padding: 0.5rem 0;
	}

	.main-nav a {
		padding: 0.65rem 0.75rem;
	}

	.header-actions {
		margin-left: auto;
	}
}

/* Main */
.site-main {
	flex: 1;
	padding-top: 2rem;
	padding-bottom: 4rem;
	min-height: 50vh;
}

/* Hero (front page) */
.hero {
	padding: 3rem 0 4rem;
	text-align: center;
}

.hero h1 {
	font-size: clamp(1.875rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 1rem;
	letter-spacing: -0.03em;
}

.hero-lead {
	font-size: 1.125rem;
	color: var(--rentex-text-muted);
	max-width: 36rem;
	margin: 0 auto 1.75rem;
}

html.rentex-dark .hero-lead {
	color: #94a3b8;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.rentex-badge {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.35em;
	color: var(--rentex-violet);
	margin-bottom: 0.75rem;
}

html.rentex-dark .rentex-badge {
	color: #a78bfa;
}

/* Cards grid */
.grid-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25rem;
	margin-top: 2.5rem;
}

.card {
	background: var(--rentex-surface);
	border: 1px solid var(--rentex-border);
	border-radius: var(--rentex-radius);
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

html.rentex-dark .card {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.card h2,
.card h3 {
	margin-top: 0;
	font-size: 1.125rem;
}

.card p {
	margin-bottom: 0;
	color: var(--rentex-text-muted);
	font-size: 0.9375rem;
}

html.rentex-dark .card p {
	color: #94a3b8;
}

/* Page / post content */
.page-header {
	margin-bottom: 2rem;
}

.page-header h1 {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.75rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin-bottom: 1rem;
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Post list (news) */
.post-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.post-card {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--rentex-border);
}

.post-card:last-child {
	border-bottom: 0;
}

.post-meta {
	font-size: 0.8125rem;
	color: var(--rentex-text-muted);
	margin-bottom: 0.35rem;
}

.post-card h2 {
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
}

.post-card h2 a {
	color: inherit;
	text-decoration: none;
}

.post-card h2 a:hover {
	color: var(--rentex-blue);
}

html.rentex-dark .post-card h2 a:hover {
	color: #93c5fd;
}

.pagination {
	margin-top: 2rem;
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

.pagination a,
.pagination span {
	padding: 0.35rem 0.75rem;
	border-radius: 0.375rem;
	border: 1px solid var(--rentex-border);
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--rentex-border);
	padding: 2.5rem 0;
	margin-top: auto;
	background: var(--rentex-surface);
}

html.rentex-dark .site-footer {
	background: #0f172a;
	border-color: #334155;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	justify-content: space-between;
	align-items: center;
}

.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.footer-nav a {
	color: var(--rentex-text-muted);
	font-size: 0.875rem;
}

.footer-nav a:hover {
	color: var(--rentex-blue);
}

.site-info {
	font-size: 0.8125rem;
	color: var(--rentex-text-muted);
}

.rentex-gradient-text {
	background: var(--rentex-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* —— Marketing home (SaaS layout) —— */
.site-main--marketing {
	padding-top: 0;
	padding-bottom: 0;
}

.rentex-hero-title {
	font-size: clamp(1.85rem, 4.5vw, 2.85rem);
	font-weight: 800;
	line-height: 1.12;
	margin: 0 0 1rem;
	letter-spacing: -0.03em;
}

.rentex-hero-sub {
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
}

.rentex-section {
	padding: 3.5rem 0;
}

.rentex-section--alt {
	background: color-mix(in srgb, var(--rentex-surface) 100%, transparent);
	border-top: 1px solid var(--rentex-border);
	border-bottom: 1px solid var(--rentex-border);
}

html.rentex-dark .rentex-section--alt {
	background: rgba(30, 41, 59, 0.35);
}

.rentex-section-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	text-align: center;
	margin: 0 0 2.25rem;
	letter-spacing: -0.02em;
}

.rentex-feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.25rem;
}

.rentex-feature-card h3 {
	font-size: 1.0625rem;
	font-weight: 600;
}

.rentex-new-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.25rem;
}

.rentex-new-item {
	margin: 0;
}

.rentex-new-item strong {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 1rem;
}

.rentex-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.rentex-step {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	text-align: left;
}

.rentex-step-num {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	font-weight: 700;
	font-size: 1rem;
	background: var(--rentex-gradient);
	color: #fff;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.rentex-step h3 {
	margin: 0 0 0.35rem;
	font-size: 1.125rem;
}

.rentex-step p {
	margin: 0;
	color: var(--rentex-text-muted);
	font-size: 0.9375rem;
}

.rentex-cta {
	padding: 3rem 0 4rem;
}

.rentex-cta-panel {
	text-align: center;
	padding: 2.5rem 1.5rem;
	box-shadow: 0 12px 40px -8px rgba(15, 23, 42, 0.12), 0 4px 16px -4px rgba(124, 58, 237, 0.12);
}

html.rentex-dark .rentex-cta-panel {
	box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.45);
}

.rentex-cta-title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
}

.rentex-cta-sub {
	margin: 0 0 1.35rem;
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--rentex-text-muted);
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
}

html.rentex-dark .rentex-cta-sub {
	color: #94a3b8;
}

.rentex-cta-btn {
	min-width: 14rem;
}

.rentex-page-extra {
	padding-bottom: 3rem;
}

/* Register form */
.rentex-register-main {
	padding-top: 2.5rem;
	padding-bottom: 4rem;
}

.rentex-register-header {
	text-align: center;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
}

.rentex-register-sub {
	margin: 0.5rem 0 0;
	color: var(--rentex-text-muted);
	font-size: 1.0625rem;
}

.rentex-register-layout {
	max-width: 28rem;
	margin-left: auto;
	margin-right: auto;
}

.rentex-form {
	padding: 2rem 1.75rem;
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.rentex-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.rentex-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rentex-text);
}

.rentex-input {
	width: 100%;
	padding: 0.65rem 0.85rem;
	font-size: 1rem;
	border-radius: var(--rentex-radius);
	border: 1px solid var(--rentex-border);
	background: var(--rentex-surface);
	color: var(--rentex-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rentex-input:focus {
	outline: none;
	border-color: var(--rentex-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

html.rentex-dark .rentex-input:focus {
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.35);
}

.rentex-input.rentex-input--error {
	border-color: #f43f5e;
}

.rentex-terms {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--rentex-text-muted);
	margin: 0;
}

.rentex-terms a {
	text-decoration: underline;
}

.rentex-submit {
	width: 100%;
	margin-top: 0.25rem;
}

.rentex-login-redirect {
	text-align: center;
	margin: 0;
	font-size: 0.9375rem;
	color: var(--rentex-text-muted);
}

.rentex-form-error {
	margin: 0 0 0.25rem;
	padding: 0.65rem 0.85rem;
	font-size: 0.875rem;
	border-radius: var(--rentex-radius);
	background: rgba(244, 63, 94, 0.12);
	border: 1px solid rgba(244, 63, 94, 0.35);
	color: #be123c;
}

html.rentex-dark .rentex-form-error {
	color: #fda4af;
}

/* Register success modal */
body.rentex-register-modal-open {
	overflow: hidden;
}

.rentex-register-modal {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	box-sizing: border-box;
}

.rentex-register-modal[hidden] {
	display: none;
}

.rentex-register-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
}

.rentex-register-modal__box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	padding: 1.75rem 1.5rem;
	text-align: center;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.rentex-register-modal__title {
	margin: 0 0 0.75rem;
	font-size: 1.35rem;
	line-height: 1.25;
	color: var(--rentex-text, #0f172a);
}

.rentex-register-modal__text {
	margin: 0 0 1.35rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--rentex-text-muted);
}

.rentex-register-modal__btn {
	width: 100%;
}

.rentex-register-modal--error .rentex-register-modal__title {
	color: #b45309;
}

.rentex-register-modal--error .rentex-register-modal__box {
	border: 1px solid rgba(245, 158, 11, 0.45);
}

html.rentex-dark .rentex-register-modal--error .rentex-register-modal__title {
	color: #fcd34d;
}

html.rentex-dark .rentex-register-modal__title {
	color: var(--rentex-text, #f1f5f9);
}

/* Legal */
.rentex-privacy-main {
	padding-top: 2rem;
	padding-bottom: 4rem;
}

.rentex-legal-updated {
	font-size: 0.875rem;
	color: var(--rentex-text-muted);
	margin: 0.35rem 0 2rem;
}

.rentex-legal-body h2 {
	font-size: 1.25rem;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.rentex-legal-body p {
	margin-bottom: 1rem;
}

.rentex-legal-body p:last-child {
	margin-bottom: 0;
}

/* —— Scroll / entrance animations —— */
@media (prefers-reduced-motion: no-preference) {
	.rentex-reveal .rentex-animate-child {
		opacity: 0;
		transform: translate3d(0, 22px, 0);
		transition:
			opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
			transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
		transition-delay: calc(var(--rentex-stagger, 0) * 55ms + 30ms);
	}

	.rentex-reveal--visible .rentex-animate-child {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}

	.rentex-step-num {
		transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
	}

	.rentex-reveal--visible .rentex-step .rentex-step-num {
		animation: rentex-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
		animation-delay: calc(var(--rentex-stagger, 0) * 55ms + 120ms);
	}
}

@media (prefers-reduced-motion: reduce) {
	.rentex-reveal .rentex-animate-child {
		opacity: 1;
		transform: none;
	}
}

@keyframes rentex-pop {
	0% {
		transform: scale(0.85);
		opacity: 0.6;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/* About page */
.rentex-about-main {
	padding-top: 2.5rem;
	padding-bottom: 4rem;
}

.rentex-about-lead {
	font-size: 1.125rem;
	color: var(--rentex-text-muted);
	margin: 0.5rem 0 0;
	max-width: 40rem;
}

.rentex-about-body {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-top: 2rem;
}

.rentex-about-block h2 {
	margin-top: 0;
	font-size: 1.2rem;
}

.rentex-about-cta-wrap {
	text-align: center;
	margin: 1.5rem 0 0;
}

.rentex-about-cta-inner {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

/* —— Inner pages (about, news, features, legal, register) —— */
.rentex-inner-page {
	padding-top: 0;
	padding-bottom: 0;
}

.rentex-page-hero {
	padding: 3.25rem 0 3.5rem;
	text-align: center;
}

.rentex-page-hero--compact {
	padding: 2.25rem 0 2rem;
}

.rentex-page-hero__inner {
	max-width: 46rem;
	margin: 0 auto;
}

.rentex-page-hero__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 0.5rem 0 0;
	letter-spacing: -0.03em;
}

.rentex-page-hero__lead {
	margin: 1rem 0 0;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--rentex-text-muted);
}

html.rentex-dark .rentex-page-hero__lead {
	color: #94a3b8;
}

.rentex-page-blocks {
	padding: 2.5rem 1.25rem 4rem;
	display: flex;
	flex-direction: column;
	gap: 1.35rem;
}

.rentex-page-blocks--news {
	padding-top: 1.5rem;
}

.rentex-block {
	padding: 1.75rem 1.5rem;
	text-align: left;
}

.rentex-block--accent {
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--rentex-violet) 8%, var(--rentex-surface)),
		color-mix(in srgb, var(--rentex-blue) 8%, var(--rentex-surface))
	);
	border-color: color-mix(in srgb, var(--rentex-blue) 22%, var(--rentex-border));
}

.rentex-block__title {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.rentex-block__text {
	margin: 0;
	color: var(--rentex-text-muted);
	line-height: 1.6;
}

.rentex-checklist {
	margin: 0;
	padding-left: 1.25rem;
	color: var(--rentex-text-muted);
	line-height: 1.75;
}

.rentex-checklist li {
	margin-bottom: 0.35rem;
}

.rentex-page-cta {
	text-align: center;
	margin: 0.5rem 0 2rem;
}

.rentex-page-cta__inner {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.rentex-feature-grid--page {
	margin-top: 0;
}

.rentex-feature-card__line {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--rentex-text-muted);
}

.rentex-steps--page {
	max-width: 100%;
}

.rentex-step-page-title {
	margin: 0 0 0.4rem;
	font-size: 1.125rem;
	font-weight: 700;
}

.rentex-news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.25rem;
}

.rentex-news-card {
	text-align: left;
	padding: 1.5rem 1.35rem;
	border-left: 3px solid var(--rentex-violet);
	box-shadow: 0 4px 20px -6px rgba(37, 99, 235, 0.12);
}

html.rentex-dark .rentex-news-card {
	border-left-color: #a78bfa;
}

.rentex-news-card__date {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--rentex-blue);
	margin: 0 0 0.5rem;
}

.rentex-news-card__title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 0.65rem;
	line-height: 1.35;
}

.rentex-news-card__excerpt {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--rentex-text-muted);
	line-height: 1.55;
}

.rentex-news-card__thumb {
	display: block;
	margin: -0.25rem -0.35rem 0.75rem;
	border-radius: var(--rentex-radius);
	overflow: hidden;
}

.rentex-news-card__img {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.rentex-news-card__emoji {
	margin-right: 0.35rem;
}

.rentex-news-card__more {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
}

.rentex-news-subscribe {
	margin: 2rem 0 2.5rem;
	padding: 1.75rem 1.5rem;
	background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(37, 99, 235, 0.08));
	border: 1px solid var(--rentex-border);
}

.rentex-news-subscribe__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}

.rentex-news-subscribe__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	margin-top: 1rem;
}

.rentex-news-subscribe__row .rentex-input {
	flex: 1 1 220px;
	min-width: 0;
}

.rentex-single-news {
	max-width: 760px;
	margin: 0 auto 3rem;
	padding: 0 1.25rem;
}

.rentex-single-news__title {
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	line-height: 1.2;
	margin: 0.5rem 0 1.25rem;
}

.rentex-single-news__emoji {
	margin-right: 0.35rem;
}

.rentex-single-news__media {
	margin-bottom: 1.5rem;
	overflow: hidden;
}

.rentex-single-news__img {
	width: 100%;
	height: auto;
}

.rentex-single-news__content {
	padding: 1.5rem 1.35rem;
}

.rentex-single-news__back {
	margin: 2rem 0 0;
}

.rentex-page-lead {
	max-width: 42rem;
	margin: 0 auto 1.5rem;
	font-size: 1.05rem;
	color: var(--rentex-text-muted);
	line-height: 1.6;
}

.rentex-auto-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.rentex-auto-card {
	padding: 1.25rem;
}

.rentex-auto-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
}

.rentex-auto-card p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--rentex-text-muted);
	line-height: 1.5;
}

.rentex-register-highlights {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin: 0 0 2rem;
}

.rentex-register-highlight {
	padding: 1rem 1.15rem;
	text-align: center;
	font-size: 0.9rem;
}

.rentex-register-highlight strong {
	display: block;
	font-size: 1.35rem;
	margin-bottom: 0.25rem;
	background: var(--rentex-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.rentex-legal-stack {
	gap: 1rem;
}

.rentex-legal-card {
	padding: 1.35rem 1.5rem;
}

.rentex-legal-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.rentex-legal-card p {
	margin: 0;
	color: var(--rentex-text-muted);
	line-height: 1.55;
	font-size: 0.9375rem;
}

/* Register form sections */
.rentex-register-main {
	padding-bottom: 3rem;
}

.rentex-form fieldset.rentex-form-section {
	border: 0;
	margin: 0;
	padding: 0 0 1.25rem;
	border-bottom: 1px solid var(--rentex-border);
}

.rentex-form fieldset.rentex-form-section:last-of-type {
	border-bottom: 0;
	padding-bottom: 0;
}

.rentex-form-section__title {
	display: block;
	width: 100%;
	padding: 0 0 0.85rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rentex-violet);
}

html.rentex-dark .rentex-form-section__title {
	color: #c4b5fd;
}

.rentex-select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	padding-right: 2.25rem;
}

.rentex-select.rentex-input--error,
select.rentex-input--error {
	border-color: #f43f5e;
}

/* Home stats + motion */
.rentex-stats {
	padding: 2.5rem 0 1rem;
	position: relative;
	overflow: hidden;
}

.rentex-stats::before {
	content: "";
	position: absolute;
	inset: 10% 20% auto;
	height: 120px;
	background: radial-gradient(ellipse, rgba(124, 58, 237, 0.18), transparent 70%);
	pointer-events: none;
	animation: rentex-glow-shift 8s ease-in-out infinite;
}

@keyframes rentex-glow-shift {
	0%,
	100% {
		opacity: 0.6;
		transform: translateX(-5%) scale(1);
	}
	50% {
		opacity: 1;
		transform: translateX(5%) scale(1.05);
	}
}

.rentex-stats__heading {
	text-align: center;
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 800;
	margin: 0 0 1.75rem;
	letter-spacing: -0.02em;
}

.rentex-stats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.rentex-stat {
	text-align: center;
	padding: 1.5rem 1rem;
	position: relative;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (prefers-reduced-motion: no-preference) {
	.rentex-stat:hover {
		transform: translateY(-4px);
		box-shadow: 0 16px 40px -12px rgba(37, 99, 235, 0.25);
	}
}

.rentex-stat__num {
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	background: var(--rentex-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	display: block;
	margin-bottom: 0.35rem;
}

.rentex-stat__suffix {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--rentex-text-muted);
}

.rentex-stat__label {
	display: block;
	font-size: 0.875rem;
	color: var(--rentex-text-muted);
	line-height: 1.4;
}

.rentex-stats__note {
	text-align: center;
	font-size: 0.8125rem;
	color: var(--rentex-text-muted);
	margin: 1.5rem 0 0;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
}

.site-main--marketing .rentex-feature-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (prefers-reduced-motion: no-preference) {
	.site-main--marketing .rentex-feature-card:hover {
		transform: translateY(-3px);
		box-shadow: 0 12px 32px -8px rgba(124, 58, 237, 0.2);
	}
}

/* Notices (register) */
.rentex-notice {
	padding: 0.85rem 1.1rem;
	border-radius: var(--rentex-radius);
	margin: 1rem auto 0;
	max-width: 42rem;
	font-size: 0.9375rem;
}

.rentex-notice--success {
	background: rgba(16, 185, 129, 0.15);
	border: 1px solid rgba(16, 185, 129, 0.45);
	color: #047857;
}

html.rentex-dark .rentex-notice--success {
	color: #6ee7b7;
}

.rentex-notice--error {
	background: rgba(244, 63, 94, 0.12);
	border: 1px solid rgba(244, 63, 94, 0.4);
	color: #be123c;
}

html.rentex-dark .rentex-notice--error {
	color: #fda4af;
}

/* Chatbot */
.rentex-chatbot-embed-store {
	display: none !important;
}

.rentex-chatbot-launcher {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 80;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	border: 0;
	cursor: pointer;
	background: var(--rentex-gradient);
	color: #fff;
	box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rentex-chatbot-launcher:hover {
	transform: scale(1.06);
	box-shadow: 0 12px 36px rgba(124, 58, 237, 0.5);
}

.rentex-chatbot-launcher__icon {
	font-size: 1.5rem;
	line-height: 1;
}

.rentex-chatbot-panel {
	position: fixed;
	right: 1.25rem;
	bottom: 5.5rem;
	z-index: 80;
	width: min(100vw - 2rem, 380px);
	max-height: min(70vh, 520px);
	display: flex;
	flex-direction: column;
	background: var(--rentex-surface);
	border: 1px solid var(--rentex-border);
	border-radius: 1rem;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
	overflow: hidden;
}

/* Class display:flex wins over [hidden] in some browsers — force hide when closed */
#rentex-chatbot-panel[hidden] {
	display: none !important;
}

html.rentex-dark .rentex-chatbot-panel {
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.rentex-chatbot-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 1rem;
	background: var(--rentex-gradient);
	color: #fff;
}

.rentex-chatbot-panel__title {
	font-weight: 700;
	font-size: 1rem;
}

.rentex-chatbot-close {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.15rem 0.35rem;
	border-radius: 0.35rem;
}

.rentex-chatbot-close:hover {
	background: rgba(255, 255, 255, 0.15);
}

.rentex-chatbot-panel__body {
	flex: 1;
	overflow-y: auto;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.rentex-chatbot-msg {
	margin: 0;
	padding: 0.65rem 0.85rem;
	border-radius: 0.75rem;
	font-size: 0.9rem;
	line-height: 1.45;
	max-width: 92%;
}

.rentex-chatbot-msg--bot {
	align-self: flex-start;
	background: color-mix(in srgb, var(--rentex-surface) 100%, #e2e8f0 40%);
	border: 1px solid var(--rentex-border);
}

.rentex-chatbot-msg--user {
	align-self: flex-end;
	background: color-mix(in srgb, var(--rentex-blue) 12%, var(--rentex-surface));
	border: 1px solid rgba(37, 99, 235, 0.25);
}

.rentex-chatbot-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.rentex-chatbot-chip {
	font-size: 0.75rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	border: 1px solid var(--rentex-border);
	background: var(--rentex-surface);
	cursor: pointer;
}

.rentex-chatbot-chip:hover {
	border-color: var(--rentex-blue);
}

.rentex-chatbot-embed-slot {
	min-height: 0;
}

.rentex-chatbot-form {
	display: flex;
	gap: 0.5rem;
	padding: 0.65rem;
	border-top: 1px solid var(--rentex-border);
	background: color-mix(in srgb, var(--rentex-surface) 96%, #64748b);
}

.rentex-chatbot-input {
	flex: 1;
	border: 1px solid var(--rentex-border);
	border-radius: 0.65rem;
	padding: 0.5rem 0.75rem;
	font-size: 0.9rem;
	background: var(--rentex-surface);
	color: var(--rentex-text);
}

.rentex-chatbot-send {
	border: 0;
	border-radius: 0.65rem;
	padding: 0.5rem 1rem;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	background: var(--rentex-gradient);
	color: #fff;
}

/* Cookie consent (first visit) */
.rentex-cookie-banner {
	position: fixed;
	z-index: 100000;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1rem 0 1.25rem;
	background: color-mix(in srgb, var(--rentex-surface) 92%, #0f172a);
	border-top: 1px solid var(--rentex-border);
	box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
}

.rentex-cookie-banner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}

.rentex-cookie-banner__text {
	flex: 1 1 280px;
	max-width: 720px;
	font-size: 0.9rem;
	color: var(--rentex-text);
}

.rentex-cookie-banner__text p {
	margin: 0.35rem 0 0;
}

.rentex-cookie-banner__text strong {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 1rem;
}

.rentex-cookie-banner__actions {
	flex-shrink: 0;
}

/* Mobile-friendly layout */
@media (max-width: 768px) {
	:root {
		--rentex-header-h: 76px;
	}

	.site-header .header-inner {
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.rentex-hero-title,
	.rentex-page-hero__title {
		font-size: clamp(1.35rem, 6vw, 2rem);
	}

	.hero-lead,
	.rentex-page-hero__lead {
		font-size: 0.95rem;
	}

	.rentex-stats__grid,
	.rentex-feature-grid,
	.rentex-news-grid {
		grid-template-columns: 1fr;
	}

	.rentex-chatbot-panel {
		right: 0.75rem;
		left: 0.75rem;
		width: auto;
		bottom: 4.75rem;
		max-height: min(75vh, 520px);
	}

	.rentex-chatbot-launcher {
		right: 0.75rem;
		bottom: 0.75rem;
	}

	.rentex-register-layout {
		padding-left: 0;
		padding-right: 0;
	}

	.rentex-form.card {
		border-radius: var(--rentex-radius);
	}

	.rentex-steps {
		padding-left: 0;
	}

	.rentex-step {
		flex-direction: column;
		align-items: flex-start;
	}
}
