/*
Theme Name: Realty WP-CRM Marketing
Theme URI: https://realtywpcrm.com
Author: Dennison Nkrumah
Author URI: https://realtywpcrm.com
Description: High-converting marketing theme for the Realty WP-CRM plugin and companion theme. Features pricing tables, feature showcases, testimonials, FAQ accordions, and conversion-optimised landing pages.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: realty-wp-crm-marketing
Tags: one-column, custom-menu, featured-images, theme-options, translation-ready, blog

Realty WP-CRM Marketing — Official marketing theme for Realty WP-CRM.
*/

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--rwm-font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--rwm-gray-800);
	background: var(--rwm-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rwm-primary); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--rwm-primary-dark); }
ul, ol { padding-left: 1.25em; }
p { margin: 0 0 1rem; }

/* ==========================================================================
   2. Custom Properties (Design Tokens)
   ========================================================================== */

:root {
	/* Brand */
	--rwm-primary: #6366f1;
	--rwm-primary-dark: #4f46e5;
	--rwm-primary-light: #818cf8;
	--rwm-primary-50: #eef2ff;
	--rwm-secondary: #667eea;
	--rwm-accent: #764ba2;

	/* Neutrals */
	--rwm-white: #ffffff;
	--rwm-gray-50: #f8fafc;
	--rwm-gray-100: #f1f5f9;
	--rwm-gray-200: #e2e8f0;
	--rwm-gray-300: #cbd5e1;
	--rwm-gray-400: #94a3b8;
	--rwm-gray-500: #64748b;
	--rwm-gray-600: #475569;
	--rwm-gray-700: #334155;
	--rwm-gray-800: #1e293b;
	--rwm-gray-900: #0f172a;

	/* Semantic */
	--rwm-success: #10b981;
	--rwm-warning: #f59e0b;
	--rwm-danger: #ef4444;
	--rwm-info: #3b82f6;

	/* Gradients */
	--rwm-gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	--rwm-gradient-cta: linear-gradient(135deg, #6366f1 0%, #764ba2 100%);
	--rwm-gradient-subtle: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);

	/* Typography */
	--rwm-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--rwm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	/* Layout */
	--rwm-container: 1280px;
	--rwm-container-narrow: 800px;
	--rwm-container-padding: 1.5rem;
	--rwm-section-gap: 6rem;
	--rwm-header-height: 80px;

	/* Shadows */
	--rwm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--rwm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--rwm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--rwm-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	--rwm-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

	/* Radii */
	--rwm-radius-sm: 0.375rem;
	--rwm-radius: 0.5rem;
	--rwm-radius-lg: 0.75rem;
	--rwm-radius-xl: 1rem;
	--rwm-radius-2xl: 1.5rem;
	--rwm-radius-full: 9999px;

	/* Transitions */
	--rwm-transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--rwm-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--rwm-font-heading);
	font-weight: 700;
	line-height: 1.2;
	color: var(--rwm-gray-900);
	margin: 0 0 1rem;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

.section-label {
	display: inline-block;
	font-family: var(--rwm-font-heading);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rwm-primary);
	margin-bottom: 0.75rem;
}

.section-title {
	max-width: 700px;
}

.section-subtitle {
	font-size: 1.125rem;
	color: var(--rwm-gray-500);
	max-width: 600px;
	margin-bottom: 0;
}

.text-center { text-align: center; }
.text-center .section-title,
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   4. Layout
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--rwm-container);
	margin: 0 auto;
	padding: 0 var(--rwm-container-padding);
}

.container--narrow {
	max-width: var(--rwm-container-narrow);
}

section {
	padding: var(--rwm-section-gap) 0;
}

.bg-white { background: var(--rwm-white); }
.bg-gray { background: var(--rwm-gray-50); }
.bg-dark { background: var(--rwm-gradient-hero); color: var(--rwm-white); }
.bg-gradient { background: var(--rwm-gradient-cta); color: var(--rwm-white); }
.bg-subtle { background: var(--rwm-gradient-subtle); }

.grid { display: grid; gap: 2rem; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* ==========================================================================
   5. Header
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: var(--rwm-header-height);
	display: flex;
	align-items: center;
	transition: all var(--rwm-transition-slow);
	background: transparent;
}

.site-header.scrolled {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: var(--rwm-shadow-sm);
	height: 64px;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: var(--rwm-container);
	margin: 0 auto;
	padding: 0 var(--rwm-container-padding);
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-family: var(--rwm-font-heading);
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--rwm-white);
	text-decoration: none;
}

.site-header.scrolled .site-logo { color: var(--rwm-gray-900); }

.site-logo img {
	height: 36px;
	width: auto;
}

.logo-mark {
	flex-shrink: 0;
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 0;
}

.primary-nav ul {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

.primary-nav li a {
	display: block;
	padding: 0.5rem 1rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color var(--rwm-transition);
	border-radius: var(--rwm-radius);
}

.primary-nav li a:hover,
.primary-nav li a.active {
	color: var(--rwm-white);
}

.site-header.scrolled .primary-nav li a {
	color: var(--rwm-gray-600);
}

.site-header.scrolled .primary-nav li a:hover,
.site-header.scrolled .primary-nav li a.active {
	color: var(--rwm-primary);
}

body.menu-open {
	overflow: hidden;
}

.header-cta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	color: var(--rwm-white);
}

.site-header.scrolled .menu-toggle { color: var(--rwm-gray-900); }

.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1024px) {
	.menu-toggle { display: block; }
	.primary-nav,
	.header-cta .btn--outline {
		display: none;
	}
	.header-cta .btn--outline.mobile-hidden { display: none; }

	.primary-nav.is-open {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--rwm-white);
		box-shadow: var(--rwm-shadow-lg);
		padding: 1rem;
		border-radius: 0 0 var(--rwm-radius-lg) var(--rwm-radius-lg);
	}

	.primary-nav.is-open ul {
		flex-direction: column;
		width: 100%;
	}

	.primary-nav.is-open li a {
		color: var(--rwm-gray-700);
		padding: 0.75rem 1rem;
		border-radius: var(--rwm-radius);
	}

	.primary-nav.is-open li a:hover {
		background: var(--rwm-gray-50);
		color: var(--rwm-primary);
	}
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.6875rem 1.5rem;
	font-family: var(--rwm-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	border: 2px solid transparent;
	border-radius: var(--rwm-radius-full);
	cursor: pointer;
	text-decoration: none;
	transition: all var(--rwm-transition);
	white-space: nowrap;
}

.btn--primary {
	background: var(--rwm-primary);
	color: var(--rwm-white);
	border-color: var(--rwm-primary);
}

.btn--primary:hover {
	background: var(--rwm-primary-dark);
	border-color: var(--rwm-primary-dark);
	color: var(--rwm-white);
	transform: translateY(-1px);
	box-shadow: var(--rwm-shadow-lg);
}

.btn--outline {
	background: transparent;
	color: var(--rwm-white);
	border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
	background: var(--rwm-white);
	color: var(--rwm-gray-900);
	border-color: var(--rwm-white);
}

.btn--outline-dark {
	background: transparent;
	color: var(--rwm-primary);
	border-color: var(--rwm-primary);
}

.btn--outline-dark:hover {
	background: var(--rwm-primary);
	color: var(--rwm-white);
}

.btn--white {
	background: var(--rwm-white);
	color: var(--rwm-primary);
	border-color: var(--rwm-white);
}

.btn--white:hover {
	background: var(--rwm-gray-100);
	color: var(--rwm-primary-dark);
	transform: translateY(-1px);
	box-shadow: var(--rwm-shadow-lg);
}

.btn--ghost {
	background: transparent;
	color: var(--rwm-gray-600);
	border-color: transparent;
}

.btn--ghost:hover {
	background: var(--rwm-gray-100);
	color: var(--rwm-gray-900);
}

.btn--lg {
	padding: 0.875rem 2rem;
	font-size: 1.0625rem;
}

.btn--sm {
	padding: 0.375rem 1rem;
	font-size: 0.8125rem;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.site-header.scrolled .header-cta .btn--outline {
	color: var(--rwm-primary);
	border-color: var(--rwm-primary);
}

.site-header.scrolled .header-cta .btn--outline:hover {
	background: var(--rwm-primary);
	color: var(--rwm-white);
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.hero {
	position: relative;
	min-height: 90vh;
	display: flex;
	align-items: center;
	background: var(--rwm-gradient-hero);
	overflow: hidden;
	padding-top: calc(var(--rwm-header-height) + 2rem);
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
		radial-gradient(ellipse at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
	pointer-events: none;
}

.hero .container {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.hero-content { max-width: 600px; }

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 1rem;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--rwm-radius-full);
	font-size: 0.8125rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 1.5rem;
	backdrop-filter: blur(4px);
}

.hero-badge svg { width: 16px; height: 16px; color: var(--rwm-warning); }

.hero h1 {
	color: var(--rwm-white);
	margin-bottom: 1.25rem;
}

.hero-subtitle {
	font-size: 1.25rem;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.7;
	margin-bottom: 2rem;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
}

.hero-social-proof {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.hero-social-proof-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.6);
}

.hero-social-proof-item strong {
	color: var(--rwm-white);
}

.hero-stars {
	display: flex;
	gap: 2px;
}

.hero-stars svg {
	width: 16px;
	height: 16px;
	fill: var(--rwm-warning);
	color: var(--rwm-warning);
}

.hero-image {
	position: relative;
}

.hero-image img {
	border-radius: var(--rwm-radius-xl);
	box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.4);
	transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
	transition: transform 0.6s ease;
}

.hero-image:hover img {
	transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

/* Hero animated slideshow */
.hero-anim {
	position: relative;
	border-radius: var(--rwm-radius-xl);
	box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.4);
	overflow: hidden;
	transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
	transition: transform 0.6s ease;
	/* Reserve height based on 1440×900 aspect ratio */
	aspect-ratio: 1440 / 900;
}

.hero-image:hover .hero-anim {
	transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.hero-anim-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	animation: rwm-hero-slide 20s infinite;
}

.hero-anim-frame:nth-child(1) { animation-delay: 0s;   z-index: 4; }
.hero-anim-frame:nth-child(2) { animation-delay: 5s;   z-index: 3; }
.hero-anim-frame:nth-child(3) { animation-delay: 10s;  z-index: 2; }
.hero-anim-frame:nth-child(4) { animation-delay: 15s;  z-index: 1; }

@keyframes rwm-hero-slide {
	0%   { opacity: 0; }
	5%   { opacity: 1; }
	24%  { opacity: 1; }
	28%  { opacity: 0; }
	100% { opacity: 0; }
}

.hero-static-img {
	border-radius: var(--rwm-radius-xl);
	box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.4);
	transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
	transition: transform 0.6s ease;
	width: 100%;
	height: auto;
}

.hero-image:hover .hero-static-img {
	transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

@media (max-width: 1024px) {
	.hero { min-height: auto; padding: calc(var(--rwm-header-height) + 3rem) 0 4rem; }
	.hero .container { grid-template-columns: 1fr; text-align: center; }
	.hero-content { max-width: 100%; }
	.hero-buttons { justify-content: center; }
	.hero-social-proof { justify-content: center; }
	.hero-image { order: -1; max-width: 600px; margin: 0 auto; }
	.hero-image img { transform: none; }
	.hero-anim { transform: none; }
	.hero-static-img { transform: none; }
}

/* ==========================================================================
   Demo Video Section
   ========================================================================== */

.demo-section {
	padding: var(--rwm-section-padding) 0;
	background: var(--rwm-bg-secondary, #f8fafc);
}

.demo-section .section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.demo-section .section-header h2 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	color: var(--rwm-gray-900);
	margin: 0.5rem 0;
}

.demo-section .section-header p {
	font-size: 1.125rem;
	color: var(--rwm-gray-600);
	max-width: 540px;
	margin: 0 auto;
}

.demo-video-wrapper {
	border-radius: var(--rwm-radius-xl);
	overflow: hidden;
	box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.25);
	background: #000;
	line-height: 0;
}

.demo-video-wrapper video {
	width: 100%;
	height: auto;
	display: block;
}

/* ==========================================================================
   8. Page Header (inner pages)
   ========================================================================== */

.page-header {
	padding: calc(var(--rwm-header-height) + 4rem) 0 3rem;
	background: var(--rwm-gradient-hero);
	text-align: center;
}

.page-header h1 {
	color: var(--rwm-white);
	margin-bottom: 0.75rem;
}

.page-header .section-subtitle {
	color: rgba(255, 255, 255, 0.7);
	margin: 0 auto;
}

/* ==========================================================================
   9. Logo Bar
   ========================================================================== */

.logo-bar {
	padding: 3rem 0;
	border-bottom: 1px solid var(--rwm-gray-200);
}

.logo-bar-label {
	text-align: center;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--rwm-gray-400);
	margin-bottom: 1.5rem;
}

.logo-bar-logos {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3rem;
	flex-wrap: wrap;
}

.logo-bar-logos img {
	height: 28px;
	width: auto;
	filter: grayscale(100%) opacity(0.4);
	transition: filter var(--rwm-transition-slow);
}

.logo-bar-logos img:hover {
	filter: grayscale(0%) opacity(1);
}

.logo-bar-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.375rem;
	color: var(--rwm-gray-400);
	transition: color 0.2s ease;
	cursor: default;
}

.logo-bar-item:hover {
	color: var(--rwm-gray-600);
}

.logo-bar-item svg {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

.logo-bar-item span {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ==========================================================================
   10. Feature Cards
   ========================================================================== */

.feature-card {
	background: var(--rwm-white);
	padding: 2rem;
	border-radius: var(--rwm-radius-xl);
	border: 1px solid var(--rwm-gray-200);
	transition: all var(--rwm-transition-slow);
}

.feature-card:hover {
	border-color: var(--rwm-primary-50);
	box-shadow: var(--rwm-shadow-lg);
	transform: translateY(-4px);
}

.feature-card-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--rwm-radius-lg);
	background: var(--rwm-primary-50);
	color: var(--rwm-primary);
	margin-bottom: 1.25rem;
}

.feature-card-icon svg { width: 24px; height: 24px; }

.feature-card h3 {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}

.feature-card p {
	font-size: 0.9375rem;
	color: var(--rwm-gray-500);
	margin: 0;
	line-height: 1.6;
}

/* Feature Showcase (alternating) */
.feature-showcase {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.feature-showcase.reversed { direction: rtl; }
.feature-showcase.reversed > * { direction: ltr; }

.feature-showcase-image img {
	border-radius: var(--rwm-radius-xl);
	box-shadow: var(--rwm-shadow-xl);
}

.feature-showcase-content .section-label { margin-bottom: 0.5rem; }

.feature-showcase-content h3 {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	margin-bottom: 1rem;
}

.feature-showcase-content p {
	color: var(--rwm-gray-500);
	margin-bottom: 1.5rem;
}

.feature-list {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
}

.feature-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.5rem 0;
	font-size: 0.9375rem;
	color: var(--rwm-gray-700);
}

.feature-list li svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--rwm-success);
	margin-top: 2px;
}

@media (max-width: 768px) {
	.feature-showcase { grid-template-columns: 1fr; gap: 2rem; }
	.feature-showcase.reversed { direction: ltr; }
}

/* ==========================================================================
   11. Features Page — Category Sections
   ========================================================================== */

.features-category {
	padding: 4rem 0;
}

.features-category:nth-child(even) {
	background: var(--rwm-gray-50);
}

.features-category-header {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

.features-category-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--rwm-radius-lg);
	background: var(--rwm-gradient-cta);
	color: var(--rwm-white);
	flex-shrink: 0;
}

.features-category-icon svg { width: 28px; height: 28px; }

.features-category-header h2 {
	font-size: 1.75rem;
	margin-bottom: 0.5rem;
}

.features-category-header p {
	color: var(--rwm-gray-500);
	margin: 0;
}

.features-category-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 1rem;
}

.feature-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	background: var(--rwm-white);
	border-radius: var(--rwm-radius-lg);
	border: 1px solid var(--rwm-gray-200);
}

.features-category:nth-child(even) .feature-item {
	background: var(--rwm-white);
}

.feature-item svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--rwm-primary);
	margin-top: 2px;
}

.feature-item span {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--rwm-gray-700);
}

.feature-item .pro-badge {
	font-size: 0.6875rem;
	font-weight: 700;
	background: var(--rwm-gradient-cta);
	color: var(--rwm-white);
	padding: 0.125rem 0.5rem;
	border-radius: var(--rwm-radius-full);
	margin-left: 0.5rem;
	white-space: nowrap;
}

/* ==========================================================================
   12. Stats Counter
   ========================================================================== */

.stats-bar {
	background: var(--rwm-gradient-cta);
	padding: 4rem 0;
}

.stats-bar .container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	text-align: center;
}

.stat-item {
	color: var(--rwm-white);
}

.stat-number {
	font-family: var(--rwm-font-heading);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1;
	margin-bottom: 0.25rem;
}

.stat-label {
	font-size: 0.9375rem;
	opacity: 0.8;
}

@media (max-width: 768px) {
	.stats-bar .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
	.stats-bar .container { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ==========================================================================
   13. Pricing
   ========================================================================== */

/* -- Pricing Toggle (Self-Hosted / Managed) -- */
.pricing-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0 auto 0.75rem;
	background: var(--rwm-gray-100);
	border-radius: var(--rwm-radius-full);
	padding: 0.25rem;
	max-width: 420px;
}

.pricing-toggle__btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	padding: 0.625rem 1.25rem;
	font-family: var(--rwm-font-body);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rwm-gray-500);
	background: transparent;
	border: none;
	border-radius: var(--rwm-radius-full);
	cursor: pointer;
	transition: all var(--rwm-transition);
	white-space: nowrap;
	line-height: 1.4;
}

.pricing-toggle__btn:hover {
	color: var(--rwm-gray-700);
}

.pricing-toggle__btn.is-active {
	background: var(--rwm-white);
	color: var(--rwm-gray-900);
	box-shadow: var(--rwm-shadow-sm);
}

.pricing-toggle__badge {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	padding: 0.125rem 0.5rem;
	border-radius: var(--rwm-radius-full);
	background: var(--rwm-primary-50);
	color: var(--rwm-primary);
	line-height: 1.4;
}

.pricing-toggle__subtitle {
	text-align: center;
	font-size: 0.875rem;
	color: var(--rwm-gray-400);
	margin-bottom: 0;
}

/* -- Pricing panels (toggled visibility) -- */
.pricing-panel {
	display: none;
}

.pricing-panel.is-active {
	display: block;
}

.pricing-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 1.5rem;
	margin-top: 3rem;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.pricing-card {
	position: relative;
	background: var(--rwm-white);
	border: 2px solid var(--rwm-gray-200);
	border-radius: var(--rwm-radius-xl);
	padding: 2rem;
	display: flex;
	flex-direction: column;
	transition: all var(--rwm-transition-slow);
}

.pricing-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--rwm-shadow-xl);
}

.pricing-card.popular {
	border-color: var(--rwm-primary);
	box-shadow: 0 0 0 1px var(--rwm-primary), var(--rwm-shadow-xl);
	transform: scale(1.02);
}

.pricing-card.popular:hover {
	transform: scale(1.02) translateY(-4px);
}

.popular-badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--rwm-gradient-cta);
	color: var(--rwm-white);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.25rem 1rem;
	border-radius: var(--rwm-radius-full);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.pricing-card-header {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--rwm-gray-200);
}

.pricing-plan-name {
	font-family: var(--rwm-font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--rwm-gray-900);
	margin-bottom: 0.5rem;
}

.pricing-price {
	display: flex;
	align-items: baseline;
	gap: 0.25rem;
}

.pricing-currency {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--rwm-gray-900);
}

.pricing-amount {
	font-family: var(--rwm-font-heading);
	font-size: 3rem;
	font-weight: 800;
	color: var(--rwm-gray-900);
	line-height: 1;
}

.pricing-period {
	font-size: 0.9375rem;
	color: var(--rwm-gray-500);
}

.pricing-description {
	font-size: 0.875rem;
	color: var(--rwm-gray-500);
	margin-top: 0.5rem;
}

.pricing-features {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	flex-grow: 1;
}

.pricing-features li {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	padding: 0.5rem 0;
	font-size: 0.9375rem;
	color: var(--rwm-gray-700);
}

.pricing-features li svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var(--rwm-success);
	margin-top: 2px;
}

.pricing-features li.disabled {
	color: var(--rwm-gray-400);
}

.pricing-features li.disabled svg {
	color: var(--rwm-gray-300);
}

.pricing-card .btn {
	width: 100%;
}

.pricing-free-link {
	text-align: center;
	margin-top: 2rem;
	font-size: 0.9375rem;
	color: var(--rwm-gray-500);
}

.pricing-free-link a {
	font-weight: 600;
	color: var(--rwm-primary);
}

/* ==========================================================================
   14. Comparison Table
   ========================================================================== */

.comparison-table-wrapper {
	overflow-x: auto;
	margin-top: 4rem;
	-webkit-overflow-scrolling: touch;
}

.comparison-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 700px;
}

.comparison-table th,
.comparison-table td {
	padding: 0.875rem 1rem;
	text-align: center;
	font-size: 0.9375rem;
	border-bottom: 1px solid var(--rwm-gray-200);
}

.comparison-table th {
	background: var(--rwm-gray-50);
	font-family: var(--rwm-font-heading);
	font-weight: 700;
	color: var(--rwm-gray-900);
	position: sticky;
	top: 0;
	z-index: 1;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
	text-align: left;
	font-weight: 600;
	color: var(--rwm-gray-700);
}

.comparison-table th.popular-col {
	background: var(--rwm-primary-50);
	color: var(--rwm-primary-dark);
}

.comparison-table td.popular-col {
	background: rgba(99, 102, 241, 0.03);
}

.comparison-table .check {
	color: var(--rwm-success);
	font-size: 1.25rem;
}

.comparison-table .cross {
	color: var(--rwm-gray-300);
	font-size: 1rem;
}

/* ==========================================================================
   15. Testimonials
   ========================================================================== */

.testimonial-card {
	background: var(--rwm-white);
	border: 1px solid var(--rwm-gray-200);
	border-radius: var(--rwm-radius-xl);
	padding: 2rem;
	display: flex;
	flex-direction: column;
}

.testimonial-stars {
	display: flex;
	gap: 2px;
	margin-bottom: 1rem;
}

.testimonial-stars svg {
	width: 16px;
	height: 16px;
	fill: var(--rwm-warning);
	color: var(--rwm-warning);
}

.testimonial-quote {
	flex-grow: 1;
	font-size: 1rem;
	color: var(--rwm-gray-700);
	line-height: 1.7;
	margin-bottom: 1.5rem;
	font-style: italic;
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.testimonial-avatar {
	width: 44px;
	height: 44px;
	border-radius: var(--rwm-radius-full);
	background: var(--rwm-gradient-cta);
	color: var(--rwm-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.875rem;
	flex-shrink: 0;
	overflow: hidden;
}

.testimonial-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.testimonial-name {
	font-weight: 600;
	color: var(--rwm-gray-900);
	font-size: 0.9375rem;
}

.testimonial-role {
	font-size: 0.8125rem;
	color: var(--rwm-gray-500);
}

/* ==========================================================================
   16. FAQ Accordion
   ========================================================================== */

.faq-list {
	max-width: 800px;
	margin: 0 auto;
}

.faq-category-title {
	font-size: 1.25rem;
	margin: 2.5rem 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--rwm-gray-200);
}

.faq-item {
	border-bottom: 1px solid var(--rwm-gray-200);
}

.faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1.25rem 0;
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--rwm-font-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--rwm-gray-900);
	text-align: left;
	gap: 1rem;
}

.faq-question:hover { color: var(--rwm-primary); }

.faq-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	transition: transform var(--rwm-transition-slow);
	color: var(--rwm-gray-400);
}

.faq-item.is-open .faq-icon {
	transform: rotate(45deg);
	color: var(--rwm-primary);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.3s ease;
	padding: 0;
}

.faq-item.is-open .faq-answer {
	max-height: 500px;
	padding: 0 0 1.5rem;
}

.faq-answer p {
	font-size: 0.9375rem;
	color: var(--rwm-gray-600);
	line-height: 1.7;
}

/* ==========================================================================
   17. CTA Sections
   ========================================================================== */

/* ==========================================================================
   Trust Signal Strip
   ========================================================================== */

.trust-strip {
	background: var(--rwm-gray-50, #f9fafb);
	border-top: 1px solid var(--rwm-gray-200);
	border-bottom: 1px solid var(--rwm-gray-200);
	padding: 2.5rem 0;
}

.trust-strip-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.5rem;
	align-items: start;
}

.trust-strip-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.trust-strip-icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	background: var(--rwm-primary-50, #eef2ff);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rwm-primary, #4f46e5);
}

.trust-strip-icon svg {
	width: 18px;
	height: 18px;
}

.trust-strip-item strong {
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--rwm-gray-900);
	margin-bottom: 0.125rem;
}

.trust-strip-item span {
	display: block;
	font-size: 0.8125rem;
	color: var(--rwm-gray-500);
	line-height: 1.4;
}

@media (max-width: 1024px) {
	.trust-strip-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
	.trust-strip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
	.trust-strip-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CTA Section (final call-to-action)
   ========================================================================== */

.cta-section {
	background: var(--rwm-gradient-cta);
	padding: 5rem 0;
	text-align: center;
}

.cta-section h2 {
	color: var(--rwm-white);
	margin-bottom: 1rem;
}

.cta-section p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.125rem;
	max-width: 600px;
	margin: 0 auto 2rem;
}

.cta-buttons {
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

/* ==========================================================================
   18. Companion Theme Section
   ========================================================================== */

/* -- Managed SaaS CTA Section (homepage between pricing & testimonials) -- */
.managed-cta-section {
	position: relative;
	overflow: hidden;
}

.managed-cta-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--rwm-gradient-subtle);
	opacity: 0.6;
}

.managed-cta-inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.managed-cta-content h2 {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	margin-bottom: 0.75rem;
}

.managed-cta-content > p {
	font-size: 1.0625rem;
	color: var(--rwm-gray-600);
	margin-bottom: 1.5rem;
}

.managed-benefits {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
}

.managed-benefits li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.5rem 0;
	font-size: 0.9375rem;
	color: var(--rwm-gray-700);
}

.managed-benefits li svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--rwm-success);
	margin-top: 2px;
}

/* CTA button row in managed-cta section */
.managed-cta-buttons {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.managed-cta-visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.managed-cta-card {
	background: var(--rwm-white);
	border: 2px solid var(--rwm-gray-200);
	border-radius: var(--rwm-radius-xl);
	padding: 2rem;
	width: 100%;
	max-width: 360px;
	text-align: center;
	box-shadow: var(--rwm-shadow-lg);
}

.managed-cta-card .pricing-plan-name {
	color: var(--rwm-primary);
	margin-bottom: 0.5rem;
}

.managed-cta-card .pricing-amount {
	font-size: 2.5rem;
}

.managed-cta-card .pricing-description {
	margin-bottom: 1.5rem;
}

.managed-cta-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.managed-cta-trust span {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--rwm-gray-500);
}

.managed-cta-trust svg {
	width: 16px;
	height: 16px;
	color: var(--rwm-success);
}

@media (max-width: 768px) {
	.managed-cta-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.managed-benefits {
		max-width: 360px;
		margin-left: auto;
		margin-right: auto;
		text-align: left;
	}

	.managed-cta-buttons {
		justify-content: center;
	}

	.managed-cta-visual {
		order: -1;
	}
}

.companion-section .feature-showcase-image img {
	border-radius: var(--rwm-radius-xl);
	border: 1px solid var(--rwm-gray-200);
}

/* Companion Theme page — hero screenshot */
.theme-hero-screenshot {
	max-width: 960px;
	margin: 0 auto;
}

/* Step cards (how it works) */
.step-card {
	text-align: center;
	padding: 2rem 1.5rem;
}

.step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 9999px;
	background: var(--rwm-gradient);
	color: var(--rwm-white);
	font-family: var(--rwm-font-heading);
	font-weight: 800;
	font-size: 1.25rem;
	margin-bottom: 1.25rem;
}

.step-card h3 {
	font-size: 1.125rem;
	margin-bottom: 0.75rem;
}

.step-card p {
	color: var(--rwm-gray-500);
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* ==========================================================================
   19. Screenshot Gallery
   ========================================================================== */

.screenshot-tabs {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
}

.screenshot-tab {
	padding: 0.5rem 1.25rem;
	background: var(--rwm-gray-100);
	border: none;
	border-radius: var(--rwm-radius-full);
	font-family: var(--rwm-font-body);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rwm-gray-600);
	cursor: pointer;
	transition: all var(--rwm-transition);
}

.screenshot-tab:hover { background: var(--rwm-gray-200); }

.screenshot-tab.active {
	background: var(--rwm-primary);
	color: var(--rwm-white);
}

.screenshot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
	gap: 1.5rem;
}

.screenshot-item {
	border-radius: var(--rwm-radius-xl);
	overflow: hidden;
	border: 1px solid var(--rwm-gray-200);
	cursor: pointer;
	transition: all var(--rwm-transition-slow);
}

.screenshot-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--rwm-shadow-xl);
}

.screenshot-item img {
	width: 100%;
	display: block;
}

.screenshot-item-label {
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rwm-gray-700);
	background: var(--rwm-gray-50);
}

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	opacity: 0;
	visibility: hidden;
	transition: all var(--rwm-transition-slow);
}

.lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.lightbox img {
	max-width: 90%;
	max-height: 90vh;
	border-radius: var(--rwm-radius-lg);
}

.lightbox-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	background: none;
	border: none;
	color: var(--rwm-white);
	cursor: pointer;
	font-size: 2rem;
	line-height: 1;
	padding: 0.5rem;
}

/* ==========================================================================
   20. Blog
   ========================================================================== */

.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 2rem;
}

.blog-card {
	background: var(--rwm-white);
	border: 1px solid var(--rwm-gray-200);
	border-radius: var(--rwm-radius-xl);
	overflow: hidden;
	transition: all var(--rwm-transition-slow);
}

.blog-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--rwm-shadow-lg);
}

.blog-card-image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.blog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img {
	transform: scale(1.05);
}

.blog-card-body {
	padding: 1.5rem;
}

.blog-card-meta {
	font-size: 0.8125rem;
	color: var(--rwm-gray-400);
	margin-bottom: 0.75rem;
}

.blog-card-meta a {
	color: var(--rwm-primary);
	font-weight: 600;
}

.blog-card h3 {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}

.blog-card h3 a {
	color: var(--rwm-gray-900);
	text-decoration: none;
}

.blog-card h3 a:hover { color: var(--rwm-primary); }

.blog-card-excerpt {
	font-size: 0.9375rem;
	color: var(--rwm-gray-500);
	line-height: 1.6;
	margin: 0;
}

/* Single Post */
.single-post-content {
	max-width: 740px;
	margin: 0 auto;
	padding: 3rem 0 var(--rwm-section-gap);
}

.single-post-content h1 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	margin-bottom: 1rem;
}

.single-post-meta {
	font-size: 0.9375rem;
	color: var(--rwm-gray-500);
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--rwm-gray-200);
}

.single-post-content img {
	border-radius: var(--rwm-radius-lg);
	margin: 2rem 0;
}

.single-post-content p,
.single-post-content li {
	font-size: 1.0625rem;
	line-height: 1.8;
}

.single-post-content h2 { margin-top: 2.5rem; }
.single-post-content h3 { margin-top: 2rem; }

.post-cta-banner {
	background: var(--rwm-gradient-subtle);
	border: 1px solid var(--rwm-primary-50);
	border-radius: var(--rwm-radius-xl);
	padding: 2rem;
	text-align: center;
	margin: 3rem 0;
}

.post-cta-banner h3 { color: var(--rwm-gray-900); margin-bottom: 0.5rem; }
.post-cta-banner p { color: var(--rwm-gray-500); margin-bottom: 1.5rem; }

/* ==========================================================================
   21. Contact
   ========================================================================== */

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: flex-start;
}

@media (max-width: 768px) {
	.contact-grid { grid-template-columns: 1fr; }
}

.contact-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rwm-gray-700);
	margin-bottom: 0.375rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	font-family: var(--rwm-font-body);
	font-size: 0.9375rem;
	border: 1px solid var(--rwm-gray-300);
	border-radius: var(--rwm-radius);
	background: var(--rwm-white);
	color: var(--rwm-gray-800);
	transition: border-color var(--rwm-transition);
	margin-bottom: 1.25rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--rwm-primary);
	box-shadow: 0 0 0 3px var(--rwm-primary-50);
}

.contact-form textarea { min-height: 160px; resize: vertical; }

.contact-info-card {
	background: var(--rwm-gray-50);
	border-radius: var(--rwm-radius-xl);
	padding: 2rem;
}

.contact-info-item {
	display: flex;
	gap: 1rem;
	padding: 1rem 0;
}

.contact-info-item:not(:last-child) {
	border-bottom: 1px solid var(--rwm-gray-200);
}

.contact-info-item svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--rwm-primary);
	margin-top: 2px;
}

.contact-info-item strong {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.9375rem;
}

.contact-info-item span {
	font-size: 0.875rem;
	color: var(--rwm-gray-500);
}

/* ==========================================================================
   22. Changelog
   ========================================================================== */

.changelog-list {
	max-width: 800px;
	margin: 0 auto;
}

.changelog-entry {
	padding: 2rem 0;
	border-bottom: 1px solid var(--rwm-gray-200);
}

.changelog-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.changelog-version {
	font-family: var(--rwm-font-heading);
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--rwm-gray-900);
}

.changelog-date {
	font-size: 0.875rem;
	color: var(--rwm-gray-400);
}

.changelog-badge {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 0.125rem 0.625rem;
	border-radius: var(--rwm-radius-full);
}

.changelog-badge--feature { background: #dbeafe; color: #1d4ed8; }
.changelog-badge--fix { background: #d1fae5; color: #065f46; }
.changelog-badge--security { background: #fee2e2; color: #991b1b; }

.changelog-entry ul {
	margin: 0;
	padding-left: 1.5rem;
}

.changelog-entry li {
	font-size: 0.9375rem;
	color: var(--rwm-gray-600);
	padding: 0.25rem 0;
}

/* ==========================================================================
   23. About Page
   ========================================================================== */

.about-story {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

@media (max-width: 768px) {
	.about-story { grid-template-columns: 1fr; }
}

.about-story img {
	border-radius: var(--rwm-radius-xl);
}

.about-values {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.about-value-card {
	padding: 2rem;
	border-radius: var(--rwm-radius-xl);
	border: 1px solid var(--rwm-gray-200);
}

.about-value-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.about-value-card p { color: var(--rwm-gray-500); margin: 0; font-size: 0.9375rem; }

/* ==========================================================================
   24. Footer
   ========================================================================== */

.site-footer {
	background: var(--rwm-gray-900);
	color: rgba(255, 255, 255, 0.7);
	padding-top: 4rem;
}

.footer-inner {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: 3rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
	.footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
	.footer-inner { grid-template-columns: 1fr; }
}

.footer-brand {
	max-width: 300px;
}

.footer-brand .site-logo {
	color: var(--rwm-white);
	margin-bottom: 1rem;
}

.footer-brand p {
	font-size: 0.875rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
	color: var(--rwm-white);
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 1rem;
}

.footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-col li { padding: 0.25rem 0; }

.footer-col a {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.875rem;
	transition: color var(--rwm-transition);
}

.footer-col a:hover { color: var(--rwm-white); }

/* Newsletter */
.footer-newsletter {
	margin-top: 1.5rem;
}

.footer-newsletter p {
	font-size: 0.8125rem;
	margin-bottom: 0.75rem;
}

.newsletter-form {
	display: flex;
	gap: 0.5rem;
}

.newsletter-form input {
	flex: 1;
	padding: 0.625rem 0.875rem;
	font-family: var(--rwm-font-body);
	font-size: 0.875rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--rwm-radius);
	background: rgba(255, 255, 255, 0.05);
	color: var(--rwm-white);
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.3); }

.newsletter-form input:focus {
	outline: none;
	border-color: var(--rwm-primary);
}

.newsletter-form button {
	padding: 0.625rem 1rem;
	background: var(--rwm-primary);
	color: var(--rwm-white);
	border: none;
	border-radius: var(--rwm-radius);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background var(--rwm-transition);
}

.newsletter-form button:hover { background: var(--rwm-primary-dark); }

/* Footer bottom */
.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 0;
	flex-wrap: wrap;
	gap: 1rem;
}

.footer-copyright {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.4);
}

.footer-badges {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.footer-badge {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.4);
}

.footer-badge svg {
	width: 14px;
	height: 14px;
}

/* ==========================================================================
   25. Exit Intent Modal
   ========================================================================== */

.exit-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	opacity: 0;
	visibility: hidden;
	transition: all var(--rwm-transition-slow);
}

.exit-modal-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.exit-modal {
	background: var(--rwm-white);
	border-radius: var(--rwm-radius-2xl);
	max-width: 480px;
	width: 100%;
	padding: 2.5rem;
	position: relative;
	text-align: center;
	transform: translateY(20px);
	transition: transform var(--rwm-transition-slow);
}

.exit-modal-overlay.is-visible .exit-modal {
	transform: translateY(0);
}

.exit-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--rwm-gray-400);
	padding: 0.5rem;
}

.exit-modal-close:hover { color: var(--rwm-gray-700); }
.exit-modal-close svg { width: 20px; height: 20px; }

.exit-modal h3 {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.exit-modal p {
	color: var(--rwm-gray-500);
	margin-bottom: 1.5rem;
}

.exit-modal .newsletter-form {
	flex-direction: column;
}

.exit-modal .newsletter-form input {
	background: var(--rwm-gray-50);
	border-color: var(--rwm-gray-300);
	color: var(--rwm-gray-800);
	padding: 0.75rem 1rem;
}

.exit-modal .newsletter-form input::placeholder { color: var(--rwm-gray-400); }

.exit-modal .newsletter-form button {
	padding: 0.75rem;
	border-radius: var(--rwm-radius-full);
}

.exit-modal-success {
	display: none;
}

.exit-modal.submitted .newsletter-form { display: none; }
.exit-modal.submitted .exit-modal-success { display: block; }

/* ==========================================================================
   26. Animations
   ========================================================================== */

.animate-on-scroll {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 500ms; }

/* ==========================================================================
   27. 404 Page
   ========================================================================== */

.error-404 {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: calc(var(--rwm-header-height) + 4rem) 0 4rem;
}

.error-404-number {
	font-family: var(--rwm-font-heading);
	font-size: clamp(5rem, 15vw, 10rem);
	font-weight: 800;
	background: var(--rwm-gradient-cta);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1;
	margin-bottom: 1rem;
}

.error-404 h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.error-404 p { color: var(--rwm-gray-500); margin-bottom: 2rem; }

/* ==========================================================================
   28. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	:root {
		--rwm-section-gap: 4rem;
	}
}

@media (max-width: 768px) {
	:root {
		--rwm-section-gap: 3rem;
		--rwm-container-padding: 1.25rem;
	}

	.pricing-cards {
		max-width: 400px;
	}

	.pricing-toggle {
		max-width: 100%;
	}

	.pricing-toggle__btn {
		padding: 0.5rem 0.75rem;
		font-size: 0.8125rem;
	}

	.pricing-card.popular { transform: none; }
	.pricing-card.popular:hover { transform: translateY(-4px); }
}

@media (max-width: 480px) {
	:root {
		--rwm-section-gap: 2.5rem;
		--rwm-container-padding: 1rem;
	}

	.hero-buttons { flex-direction: column; }
	.hero-buttons .btn { width: 100%; }
	.cta-buttons { flex-direction: column; align-items: center; }
}

/* ==========================================================================
   29. Utility Classes
   ========================================================================== */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ==========================================================================
   30. Spacing Tokens
   ========================================================================== */

:root {
	--rwm-space-xs: 0.5rem;
	--rwm-space-sm: 0.75rem;
	--rwm-space-md: 1rem;
	--rwm-space-lg: 1.5rem;
	--rwm-space-xl: 2rem;
	--rwm-space-2xl: 3rem;
}

/* ==========================================================================
   31. Missing Component Styles
   ========================================================================== */

/* -- Pricing four-column variant -- */
.pricing-cards--four {
	max-width: none;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

/* -- Button block -- */
.btn--block { width: 100%; }

/* -- Button outline-white (CTA sections) -- */
.btn--outline-white {
	background: transparent;
	color: var(--rwm-white);
	border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
	background: var(--rwm-white);
	color: var(--rwm-primary);
	border-color: var(--rwm-white);
}

/* -- Page header small variant -- */
.page-header--sm {
	padding: calc(var(--rwm-header-height) + 3rem) 0 2rem;
}

.page-header p {
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.125rem;
	max-width: 600px;
	margin: 0 auto;
}

.page-header .section-label {
	color: rgba(255, 255, 255, 0.7);
}

/* -- Section header (centered intro block) -- */
.section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 3rem;
}

.section-header h2 {
	margin-bottom: 0.75rem;
}

.section-header p {
	color: var(--rwm-gray-500);
	font-size: 1.125rem;
}

/* -- Features category header -- centered layout on features page -- */
.features-category-header {
	flex-direction: column;
	text-align: center;
	align-items: center;
}

/* -- Blog sections -- */
.blog-section {
	padding-bottom: var(--rwm-section-gap);
}

.blog-section--single {
	padding-top: 2rem;
}

.blog-pagination {
	margin-top: 3rem;
	text-align: center;
}

.blog-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	border-radius: var(--rwm-radius);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rwm-gray-600);
	background: var(--rwm-gray-100);
	text-decoration: none;
	transition: all var(--rwm-transition);
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
	background: var(--rwm-primary);
	color: var(--rwm-white);
}

.blog-empty {
	text-align: center;
	padding: 4rem 0;
	color: var(--rwm-gray-500);
}

/* -- Blog card sub-elements -- */
.blog-card-category {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--rwm-primary);
	margin-bottom: 0.5rem;
}

.blog-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--rwm-gray-100);
	font-size: 0.8125rem;
	color: var(--rwm-gray-400);
}

.blog-card-meta span {
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.blog-card-meta svg {
	width: 14px;
	height: 14px;
}

.blog-card-link {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-weight: 600;
	color: var(--rwm-primary);
}

/* -- Single post sub-elements -- */
.single-post-header {
	margin-bottom: 2rem;
}

.single-post-header h1 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.single-post-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.9375rem;
	color: var(--rwm-gray-500);
	margin-bottom: 2rem;
}

.single-post-meta span {
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.single-post-meta svg {
	width: 14px;
	height: 14px;
}

.single-post-thumbnail {
	margin-bottom: 2rem;
	border-radius: var(--rwm-radius-xl);
	overflow: hidden;
}

.single-post-thumbnail img {
	width: 100%;
	height: auto;
}

.entry-content h2 { margin-top: 2.5rem; }
.entry-content h3 { margin-top: 2rem; }
.entry-content p,
.entry-content li { font-size: 1.0625rem; line-height: 1.8; }
.entry-content img { border-radius: var(--rwm-radius-lg); margin: 2rem 0; }

.single-post-footer {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--rwm-gray-200);
}

.single-post-tags {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.post-tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: var(--rwm-gray-100);
	border-radius: var(--rwm-radius-full);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--rwm-gray-600);
	text-decoration: none;
	transition: all var(--rwm-transition);
}

.post-tag:hover {
	background: var(--rwm-primary-50);
	color: var(--rwm-primary);
}

.single-post-author-box {
	display: flex;
	gap: 1rem;
	padding: 1.5rem;
	background: var(--rwm-gray-50);
	border-radius: var(--rwm-radius-xl);
	margin-bottom: 2rem;
}

.single-post-author-box .author-avatar img {
	width: 64px;
	height: 64px;
	border-radius: var(--rwm-radius-full);
}

.single-post-author-box .author-info h4 {
	margin-bottom: 0.25rem;
}

.single-post-author-box .author-info p {
	font-size: 0.875rem;
	color: var(--rwm-gray-500);
	margin: 0;
}

.single-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.post-nav-link {
	display: block;
	padding: 1rem;
	background: var(--rwm-gray-50);
	border-radius: var(--rwm-radius-lg);
	text-decoration: none;
	transition: background var(--rwm-transition);
}

.post-nav-link:hover {
	background: var(--rwm-gray-100);
}

.post-nav-prev { text-align: left; }
.post-nav-next { text-align: right; }

.post-nav-label {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--rwm-gray-400);
	margin-bottom: 0.25rem;
}

.post-nav-prev .post-nav-label { flex-direction: row-reverse; justify-content: flex-end; }
.post-nav-prev .post-nav-label svg { transform: rotate(180deg); }

.post-nav-title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--rwm-gray-700);
}

/* -- Contact form elements -- */
.contact-form-wrap { /* no extra styles needed, inherits */ }

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

@media (max-width: 480px) {
	.form-row { grid-template-columns: 1fr; }
}

.form-group {
	margin-bottom: 1.25rem;
}

.form-group label .required {
	color: var(--rwm-danger);
}

.contact-alert {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-radius: var(--rwm-radius);
	margin-bottom: 1.5rem;
}

.contact-alert svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 2px;
}

.contact-alert p { margin: 0; font-size: 0.9375rem; }

.contact-alert--success {
	background: #d1fae5;
	color: #065f46;
}

.contact-alert--error {
	background: #fee2e2;
	color: #991b1b;
}

.feature-list--compact li {
	padding: 0.25rem 0;
	font-size: 0.875rem;
}

.feature-list--compact li svg {
	width: 16px;
	height: 16px;
}

/* -- Contact info cards -- */
.contact-info-card + .contact-info-card {
	margin-top: 1.5rem;
}

.contact-info-card h3 {
	font-size: 1rem;
	margin-bottom: 0.5rem;
}

.contact-info-card p {
	font-size: 0.875rem;
	color: var(--rwm-gray-500);
	margin-bottom: 0.75rem;
}

/* -- Changelog timeline -- */
.changelog-timeline {
	max-width: 800px;
	margin: 0 auto;
}

.changelog-content { /* wp content from page editor */ }
.changelog-content h2 { margin-top: 2rem; }
.changelog-content h3 { margin-top: 1.5rem; }

.changelog-list ul {
	margin: 0;
	padding-left: 1.5rem;
}

/* -- About page numbers -- */
.about-numbers {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	text-align: center;
	margin-top: 2.5rem;
}

.about-number strong {
	display: block;
	font-family: var(--rwm-font-heading);
	font-size: 2.5rem;
	font-weight: 800;
	background: var(--rwm-gradient-cta);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1.2;
}

.about-number span {
	font-size: 0.875rem;
	color: var(--rwm-gray-500);
}

@media (max-width: 480px) {
	.about-numbers { grid-template-columns: repeat(2, 1fr); }
}

/* -- About story layout fix -- */
.about-story {
	display: block; /* override grid when used with page content */
}

.about-story h2 {
	margin-top: 2rem;
}

.about-story p {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--rwm-gray-600);
}


.screenshot-link {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,.08);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.screenshot-link:hover {
	box-shadow: 0 12px 36px rgba(0,0,0,.16);
	transform: translateY(-2px);
}
.screenshot-link img {
	transition: transform 0.3s ease;
}
.screenshot-link:hover img {
	transform: scale(1.02);
}

.screenshot-item h3 {
	font-size: 0.9375rem;
	margin: 0.75rem 0 0.25rem;
}

.screenshot-item p {
	font-size: 0.8125rem;
	color: var(--rwm-gray-500);
	margin: 0 0 1rem;
}

/* -- Exit-intent modal body -- */
.exit-modal h2 {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.exit-modal-privacy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	margin-top: 1rem;
	font-size: 0.75rem;
	color: var(--rwm-gray-400);
}

.exit-modal-privacy svg {
	width: 14px;
	height: 14px;
}

/* -- Testimonial placeholder avatar -- */
.testimonial-avatar--placeholder {
	/* inherits .testimonial-avatar base styles (gradient bg, centered text) */
}

/* -- Mobile hidden utility -- */
@media (max-width: 1024px) {
	.mobile-hidden { display: none !important; }
}

/* -- Focus styles for interactive elements -- */
.faq-question:focus-visible,
.screenshot-tab:focus-visible,
.menu-toggle:focus-visible,
.btn:focus-visible {
	outline: 2px solid var(--rwm-primary);
	outline-offset: 2px;
}

/* -- CTA content wrapper (used in home final-cta) -- */
.cta-content {
	max-width: 600px;
	margin: 0 auto;
}

/* -- Page content -- */
.page-content {
	padding: 2rem 0 var(--rwm-section-gap);
}

.page-content h2 { margin-top: 2rem; }
.page-content h3 { margin-top: 1.5rem; }
.page-content p { font-size: 1.0625rem; line-height: 1.8; }

/* -- Features category header centred -- */
.features-category-header .features-category-icon {
	margin-bottom: 1rem;
}

/* -- About value card SVG -- */
.about-value-card svg {
	width: 28px;
	height: 28px;
	color: var(--rwm-primary);
	margin-bottom: 1rem;
}

/* =============================================================
   LEGAL PAGES (Terms of Service, Privacy Policy)
   ============================================================= */

/* Jump-to nav */
.legal-nav {
	background: #f8f9fb;
	border: 1px solid #eef0f4;
	border-radius: 10px;
	padding: 1.5rem 1.75rem;
	margin-bottom: 3rem;
}

.legal-nav p {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rwm-gray-500);
	margin: 0 0 0.75rem;
}

.legal-nav ol {
	margin: 0;
	padding-left: 1.25rem;
	columns: 2;
	column-gap: 2rem;
}

.legal-nav li {
	font-size: 0.9375rem;
	margin-bottom: 0.375rem;
	break-inside: avoid;
}

.legal-nav a {
	color: var(--rwm-primary);
	text-decoration: none;
}

.legal-nav a:hover {
	text-decoration: underline;
}

/* Legal section blocks */
.legal-content {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--rwm-gray-700, #374151);
}

.legal-section {
	padding-bottom: 2.5rem;
	margin-bottom: 2.5rem;
	border-bottom: 1px solid #eef0f4;
	scroll-margin-top: 90px;
}

.legal-section:last-child {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

.legal-section h2 {
	font-size: 1.1875rem;
	font-weight: 700;
	color: var(--rwm-dark);
	margin: 0 0 1rem;
}

.legal-section h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--rwm-dark);
	margin: 1.5rem 0 0.625rem;
}

.legal-section p {
	margin: 0 0 1rem;
}

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

.legal-section ul,
.legal-section ol {
	padding-left: 1.5rem;
	margin: 0.5rem 0 1rem;
}

.legal-section li {
	margin-bottom: 0.5rem;
}

/* Definition list */
.legal-dl {
	margin: 0;
}

.legal-dl dt {
	font-weight: 700;
	color: var(--rwm-dark);
	margin-top: 1.25rem;
}

.legal-dl dt:first-child {
	margin-top: 0;
}

.legal-dl dd {
	margin: 0.25rem 0 0 1.25rem;
	color: var(--rwm-gray-600, #4b5563);
}

/* Contact card in last section */
.legal-contact-card {
	background: #f8f9fb;
	border: 1px solid #eef0f4;
	border-radius: 10px;
	padding: 1.5rem 1.75rem;
	margin: 1.25rem 0;
}

.legal-contact-card p {
	margin-bottom: 1rem;
}

.legal-contact-card p:last-child {
	margin-bottom: 0;
}

.legal-also {
	margin-top: 1.5rem;
}

.legal-also p {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rwm-gray-500);
	margin-bottom: 0.5rem;
}

.legal-also ul {
	margin: 0;
	padding-left: 1.25rem;
}

.legal-also a {
	color: var(--rwm-primary);
	text-decoration: none;
}

.legal-also a:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
	.legal-nav ol {
		columns: 1;
	}
}

/* =============================================================
   DOCUMENTATION PAGE
   ============================================================= */

/* Quick-start cards */
.docs-quickstart {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.docs-quickstart-card {
	background: #fff;
	border: 1px solid #eef0f4;
	border-radius: 12px;
	padding: 2rem 1.75rem;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s, transform 0.2s;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.docs-quickstart-card:hover {
	box-shadow: 0 8px 32px rgba(0,0,0,0.09);
	transform: translateY(-2px);
	text-decoration: none;
}

.docs-quickstart-card__icon {
	color: var(--rwm-primary);
	margin-bottom: 0.5rem;
}

.docs-quickstart-card h3 {
	font-size: 1.0625rem;
	font-weight: 700;
	margin: 0;
	color: var(--rwm-dark);
}

.docs-quickstart-card p {
	font-size: 0.9375rem;
	color: var(--rwm-gray-500);
	margin: 0;
	flex: 1;
}

.docs-quickstart-card__link {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rwm-primary);
	margin-top: 0.5rem;
}

/* On-page TOC nav strip */
.docs-nav-section {
	padding-top: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #eef0f4;
}

/* On-page TOC navigation */
.docs-toc {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: center;
}

.docs-toc__link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--rwm-gray-600, #4b5563);
	text-decoration: none;
	padding: 0.375rem 0.75rem;
	border-radius: 6px;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

.docs-toc__link:hover {
	background: var(--rwm-primary-light, #eff6ff);
	color: var(--rwm-primary);
	text-decoration: none;
}

.docs-toc__link svg {
	flex-shrink: 0;
}

/* Section layout */
.docs-section {
	scroll-margin-top: 80px;
}

.docs-section-header {
	margin-bottom: 2.5rem;
	text-align: center;
}

.docs-section-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: var(--rwm-primary-light, #eff6ff);
	border-radius: 12px;
	color: var(--rwm-primary);
	margin-bottom: 1rem;
}

.docs-section-header h2 {
	margin: 0.25rem 0 0;
}

/* Doc content blocks */
.docs-block {
	margin-bottom: 2.5rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid #eef0f4;
}

.docs-block:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.docs-block h3 {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--rwm-dark);
	margin: 0 0 0.875rem;
}

.docs-block p {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--rwm-gray-600, #4b5563);
	margin-top: 0;
}

/* Numbered steps */
.docs-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: docs-step;
}

.docs-steps li {
	counter-increment: docs-step;
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid #f3f4f6;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--rwm-gray-700, #374151);
}

.docs-steps li:last-child {
	border-bottom: none;
}

.docs-steps li::before {
	content: counter(docs-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-width: 28px;
	background: var(--rwm-primary);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	border-radius: 50%;
	margin-top: 0.1rem;
}

/* Inline code block */
.docs-code {
	background: #f8f9fb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 0.875rem 1.25rem;
	margin: 0.75rem 0;
	overflow-x: auto;
}

.docs-code code {
	font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
	font-size: 0.9375rem;
	color: var(--rwm-dark);
	background: none;
	padding: 0;
}

/* Documentation tables */
.docs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	margin: 0;
}

.docs-table th,
.docs-table td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid #eef0f4;
	vertical-align: top;
}

.docs-table thead th {
	font-weight: 700;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--rwm-gray-500);
	background: #f8f9fb;
}

.docs-table tbody tr th {
	font-weight: 600;
	color: var(--rwm-dark);
	white-space: nowrap;
}

.docs-table code {
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 0.875rem;
	background: #f3f4f6;
	padding: 0.125rem 0.4rem;
	border-radius: 4px;
	color: var(--rwm-dark);
}

.docs-table tbody tr:last-child th,
.docs-table tbody tr:last-child td {
	border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
	.docs-quickstart {
		grid-template-columns: 1fr;
	}

	.docs-toc {
		gap: 0.375rem;
	}

	.docs-toc__link {
		font-size: 0.8125rem;
		padding: 0.25rem 0.625rem;
	}

	.docs-table {
		display: block;
		overflow-x: auto;
	}
}
