:root {
	--wpllms-primary: #D97757;
	--wpllms-heading: #1d2327;
	--wpllms-button: #D97757;
	--wpllms-link: #D97757;
	--wpllms-text: #1d2327;
	--wpllms-bg: #f6f7f7;
	--wpllms-border: #e2e2e2;
	--wpllms-font: 'Lexend';
}

/* These variables previously had no dark-mode variant at all — any
   element using them directly (not just headings, and not just one
   specific panel) stayed rendered in light-mode colors regardless of
   the toggle, which is exactly what made "AI Content Check" (an <h2>
   using --wpllms-heading) nearly invisible against a dark background.
   [data-wpllms-theme="dark"] is set on <html> itself — the same
   element :root refers to — so overriding it here cascades correctly
   to every element using these variables site-wide. */
[data-wpllms-theme="dark"] {
	--wpllms-heading: #f1f1f8;
	--wpllms-text: #c7c7d6;
	--wpllms-bg: #14141f;
	--wpllms-border: #2c2c40;
}

body.wpllms-theme {
	margin: 0;
	background: var(--wpllms-bg);
	color: var(--wpllms-text);
	font-family: var(--wpllms-font), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
body.wpllms-theme:has(.wpllms-auth-page) {
	background: radial-gradient(ellipse at top, color-mix(in srgb, var(--wpllms-button, #D97757) 7%, var(--wpllms-bg)), var(--wpllms-bg) 60%);
}

.wpllms-theme h1, .wpllms-theme h2, .wpllms-theme h3, .wpllms-theme h4 {
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: var(--wpllms-heading);
}

.wpllms-theme a {
	color: var(--wpllms-link);
}

.wpllms-content-article, .wpllms-entry-content, .wpllms-course-description {
	font-size: 17px;
	line-height: 1.75;
}
.wpllms-content-article img.wpllms-lesson-media-image,
.wpllms-entry-content img.wpllms-lesson-media-image,
.wpllms-content-article video.wpllms-lesson-media-video,
.wpllms-entry-content video.wpllms-lesson-media-video {
	max-width: 100%; height: auto; border-radius: 10px; margin: 16px 0; display: block;
	box-shadow: 0 1px 2px rgba(16,24,40,0.06);
}
.wpllms-content-article audio.wpllms-lesson-media-audio,
.wpllms-entry-content audio.wpllms-lesson-media-audio {
	width: 100%; margin: 16px 0;
}

.wpllms-site-header {
	background: #fff;
	border-bottom: 1px solid var(--wpllms-border);
	position: sticky;
	top: 0;
	z-index: 500;
}
.wpllms-header-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}
.wpllms-site-branding {
	text-decoration: none;
	color: var(--wpllms-text);
	font-weight: 700;
	font-size: 20px;
}
.wpllms-primary-nav { flex: 1; }
.wpllms-primary-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.wpllms-primary-nav a { text-decoration: none; color: var(--wpllms-text); font-weight: 500; }
.wpllms-primary-nav a:hover { color: var(--wpllms-link); }
.wpllms-header-auth { display: flex; gap: 16px; align-items: center; }
.wpllms-header-auth a { text-decoration: none; color: var(--wpllms-link); font-weight: 600; font-size: 14px; }
.wpllms-header-collapsible { display: contents; }
.wpllms-header-toggle {
	display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto;
	flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px;
}
.wpllms-header-toggle span { display: block; width: 22px; height: 2px; background: var(--wpllms-text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.wpllms-header-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wpllms-header-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.wpllms-header-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.wpllms-cart-count {
	background: var(--wpllms-button); color: #fff; border-radius: 10px;
	padding: 1px 7px; font-size: 12px; font-weight: 700;
}

.wpllms-site-main { max-width: 1100px; margin: 0 auto; padding: 32px 24px; min-height: 60vh; }
.wpllms-site-main-full { max-width: none; margin: 0; padding: 0; }

.wpllms-hero {
	position: relative;
	text-align: center;
	padding: 80px 24px 70px;
	background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--wpllms-button) 10%, #fff), #fff 55%), var(--wpllms-bg);
	border-radius: 20px;
	margin-bottom: 48px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.wpllms-hero-has-photo {
	background-size: cover; background-position: center; padding-top: 110px; padding-bottom: 100px;
}
.wpllms-hero-has-photo h1 { color: #fff; }
.wpllms-hero-has-photo .wpllms-hero-tagline { color: rgba(255,255,255,0.88); }
.wpllms-hero-has-photo .wpllms-hero-secondary { color: #fff; text-decoration: underline; }
.wpllms-hero-content { position: relative; z-index: 2; }
.wpllms-hero h1 { font-size: 44px; margin-bottom: 12px; letter-spacing: -0.02em; }
.wpllms-hero-tagline { font-size: 19px; color: #565b66; margin-bottom: 30px; max-width: 560px; margin-left: auto; margin-right: auto; }
.wpllms-hero-actions { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }
.wpllms-hero-cta {
	display: inline-block; padding: 15px 34px; font-size: 16.5px; font-weight: 700; border-radius: 12px;
	box-shadow: 0 8px 20px color-mix(in srgb, var(--wpllms-button) 35%, transparent);
	transition: transform .18s ease, box-shadow .18s ease;
}
.wpllms-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px color-mix(in srgb, var(--wpllms-button) 45%, transparent); }
.wpllms-hero-secondary { color: var(--wpllms-link); text-decoration: none; font-weight: 600; }
.wpllms-hero-secondary:hover { text-decoration: underline; }

.wpllms-hero-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(30px);
	opacity: 0.3;
	z-index: 1;
	animation: wpllms-float 9s ease-in-out infinite;
}
.wpllms-hero-blob-1 { width: 260px; height: 260px; background: var(--wpllms-button); top: -80px; left: -70px; }
.wpllms-hero-blob-2 { width: 190px; height: 190px; background: var(--wpllms-link); bottom: -60px; right: -40px; animation-delay: -3s; opacity: 0.22; }

.wpllms-hero-illustration { position: relative; z-index: 2; max-width: 380px; width: 90%; height: auto; margin: 40px auto 0; display: block; filter: drop-shadow(0 16px 30px rgba(16,24,40,0.10)); }

@keyframes wpllms-float {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(20px) scale(1.05); }
}

.wpllms-anim-in { animation: wpllms-fade-up 0.7s ease both; }
@keyframes wpllms-fade-up {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

.wpllms-anim-on-scroll, .wpllms-feature-card, .wpllms-course-card {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.wpllms-anim-on-scroll.wpllms-visible,
.wpllms-feature-card.wpllms-visible,
.wpllms-course-card.wpllms-visible {
	opacity: 1;
	transform: translateY(0);
}
.wpllms-features .wpllms-feature-card:nth-child(2) { transition-delay: 0.1s; }
.wpllms-features .wpllms-feature-card:nth-child(3) { transition-delay: 0.2s; }

.wpllms-stats-bar {
	display: flex;
	justify-content: center;
	gap: 28px;
	padding: 0;
	margin-bottom: 48px;
	flex-wrap: wrap;
}
.wpllms-stat {
	text-align: center;
	background: #fff;
	border: 1px solid var(--wpllms-border);
	border-radius: 16px;
	padding: 26px 44px;
	min-width: 180px;
	box-shadow: 0 1px 2px rgba(16,24,40,0.04);
	transition: transform .2s ease, box-shadow .2s ease;
}
.wpllms-stat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16,24,40,0.08); }
.wpllms-stat-icon {
	display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
	background: color-mix(in srgb, var(--wpllms-button) 12%, #fff); color: var(--wpllms-button);
	margin: 0 auto 12px;
}
.wpllms-stat-number { display: block; font-size: 38px; font-weight: 800; color: var(--wpllms-heading); letter-spacing: -0.01em; }
.wpllms-stat-label { font-size: 13px; color: #666; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

.wpllms-section-head { text-align: center; margin-bottom: 32px; }
.wpllms-section-head h2 { font-size: 28px; margin-bottom: 8px; }
.wpllms-section-head p { color: #666; font-size: 16px; margin: 0; }
.wpllms-view-all { text-align: center; margin-top: 24px; }
.wpllms-view-all a { color: var(--wpllms-link); font-weight: 600; text-decoration: none; }
.wpllms-view-all a:hover { text-decoration: underline; }

.wpllms-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	margin-bottom: 56px;
}
.wpllms-feature-card {
	background: #fff;
	border: 1px solid var(--wpllms-border);
	border-radius: 16px;
	padding: 32px 24px;
	text-align: center;
	box-shadow: 0 1px 2px rgba(16,24,40,0.04);
	transition: transform .2s ease, box-shadow .2s ease;
}
.wpllms-feature-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(16,24,40,0.09); }
.wpllms-feature-icon {
	display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px;
	background: color-mix(in srgb, var(--wpllms-button) 12%, #fff); color: var(--wpllms-button);
	margin-bottom: 16px;
}
.wpllms-feature-card h3 { margin: 8px 0; font-size: 18px; }
.wpllms-feature-card p { color: #666; font-size: 14.5px; line-height: 1.6; }

.wpllms-empty-state { text-align: center; padding: 50px 20px; color: #666; }
.wpllms-empty-state svg { margin-bottom: 16px; }

.wpllms-ai-homepage-section { margin: 56px 0; }
.wpllms-video-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; margin: 20px 0; }
.wpllms-video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.wpllms-cta-banner {
	text-align: center;
	background: linear-gradient(135deg, var(--wpllms-button), color-mix(in srgb, var(--wpllms-button) 65%, #7c3aed));
	color: #fff;
	border-radius: 20px;
	padding: 56px 24px;
	margin: 56px 0;
	box-shadow: 0 12px 32px color-mix(in srgb, var(--wpllms-button) 30%, transparent);
}
.wpllms-cta-banner h2 { margin-top: 0; color: #fff; font-size: 26px; }
.wpllms-cta-banner .wpllms-button {
	background: #fff; color: var(--wpllms-button); font-weight: 700; padding: 13px 30px; border-radius: 10px;
	transition: transform .18s ease;
}
.wpllms-cta-banner .wpllms-button:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
	.wpllms-hero-blob { animation: none; }
	.wpllms-anim-in, .wpllms-anim-on-scroll, .wpllms-feature-card, .wpllms-course-card {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

.wpllms-content-article { background: #fff; border-radius: 8px; padding: 30px; border: 1px solid var(--wpllms-border); }

.wpllms-auth-page {
	max-width: 420px; margin: 48px auto; background: #fff; border: 1px solid var(--wpllms-border);
	border-radius: 18px; padding: 40px 36px; box-shadow: 0 4px 6px rgba(16,24,40,0.03), 0 20px 40px -12px rgba(16,24,40,0.12);
	position: relative; overflow: hidden; animation: wpllms-auth-in .5s ease both;
}
.wpllms-auth-page::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
	background: linear-gradient(90deg, var(--wpllms-button, #D97757), var(--wpllms-link, #D97757));
}
@keyframes wpllms-auth-in {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}
.wpllms-auth-branding { text-align: center; margin-bottom: 28px; }
.wpllms-auth-heading { text-align: center; margin: 0 0 24px; font-size: 22px; font-weight: 800; color: var(--wpllms-heading); letter-spacing: -0.01em; }
.wpllms-auth-logo { max-width: 220px; max-height: 70px; width: auto; height: auto; margin: 0 auto; display: block; }
.wpllms-auth-sitename { font-size: 23px; font-weight: 800; color: var(--wpllms-heading); letter-spacing: -0.01em; }
.wpllms-auth-form label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 13.5px; color: var(--wpllms-heading); }
.wpllms-auth-form input[type="text"],
.wpllms-auth-form input[type="email"],
.wpllms-auth-form input[type="password"],
.wpllms-auth-form input[type="tel"],
.wpllms-auth-form input[type="number"],
.wpllms-auth-form select,
.wpllms-auth-form textarea {
	width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1.5px solid var(--wpllms-border); border-radius: 10px;
	font-family: inherit; font-size: 14.5px; margin-bottom: 16px; background: #fbfbfc; transition: border-color .15s ease, background .15s ease;
}
.wpllms-auth-form select { cursor: pointer; }
.wpllms-auth-form textarea { resize: vertical; min-height: 70px; }
.wpllms-auth-form input:focus,
.wpllms-auth-form select:focus,
.wpllms-auth-form textarea:focus {
	outline: none; border-color: var(--wpllms-button); background: #fff;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wpllms-button) 15%, transparent);
}
.wpllms-auth-form .wpllms-button {
	width: 100%; box-sizing: border-box; text-align: center; padding: 13px; border-radius: 10px; font-size: 15.5px;
	font-weight: 700; margin-top: 4px; transition: transform .15s ease, box-shadow .15s ease;
}
.wpllms-auth-form .wpllms-button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--wpllms-button, #D97757) 30%, transparent); }
.wpllms-phone-field { display: flex; gap: 8px; }
.wpllms-phone-field select { flex: 0 0 130px; width: auto; }
.wpllms-phone-field input { flex: 1; min-width: 0; width: auto; }
.wpllms-auth-remember label { font-weight: normal; display: inline-flex; align-items: center; gap: 6px; }
.wpllms-auth-message { background: color-mix(in srgb, var(--wpllms-button) 8%, #fff); border-radius: 9px; padding: 12px 14px; margin-bottom: 16px; }
.wpllms-auth-error { background: #fdeaea; color: #a00; border-radius: 9px; padding: 12px 14px; margin-bottom: 16px; }
.wpllms-auth-success { background: #eafaf0; color: #1a7a2e; border-radius: 9px; padding: 12px 14px; margin-bottom: 16px; }
.wpllms-auth-links { text-align: center; font-size: 14px; margin-top: 18px; }
.wpllms-auth-register-cta {
	text-align: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--wpllms-border);
	font-size: 14.5px; color: #565b66;
}
.wpllms-auth-register-link { font-weight: 700; color: var(--wpllms-link); text-decoration: none; margin-left: 4px; }
.wpllms-auth-register-link:hover { text-decoration: underline; }
.wpllms-auth-form .g-recaptcha { margin: 12px 0; }
.wpllms-content-article h1 { margin-top: 0; }

.wpllms-search-results { list-style: none; margin: 0; padding: 0; }
.wpllms-search-results li { padding: 14px 0; border-bottom: 1px solid var(--wpllms-border); }
.wpllms-search-results a { font-size: 18px; font-weight: 600; text-decoration: none; color: var(--wpllms-link); }

.wpllms-site-footer {
	border-top: 1px solid var(--wpllms-border);
	margin-top: 40px;
	padding: 24px;
	text-align: center;
	color: #666;
	font-size: 14px;
}

/* Buttons reuse .wpllms-button from frontend.css but get a consistent look here too */
.wpllms-theme a.button, .wpllms-theme button.button {
	background: var(--wpllms-button);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	cursor: pointer;
}
.wpllms-theme a.button:hover, .wpllms-theme button.button:hover { opacity: 0.9; color: #fff; }

@media (max-width: 700px) {
	.wpllms-header-inner { flex-wrap: wrap; }
	.wpllms-header-toggle { display: flex; }
	.wpllms-header-collapsible {
		display: none; width: 100%; flex-direction: column; align-items: flex-start;
		gap: 16px; padding-top: 16px; margin-top: 14px; border-top: 1px solid var(--wpllms-border);
	}
	.wpllms-header-collapsible.wpllms-header-open { display: flex; }
	.wpllms-primary-nav { width: 100%; }
	.wpllms-primary-nav ul { flex-direction: column; gap: 4px; width: 100%; }
	.wpllms-primary-nav a { display: block; padding: 8px 0; }
	.wpllms-header-auth { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
}

@media (max-width: 640px) {
	.wpllms-site-main { padding: 20px 16px; }
	.wpllms-content-article { padding: 20px; }
	.wpllms-auth-page { margin: 24px auto; padding: 30px 22px; border-radius: 16px; }
	.wpllms-hero { padding: 48px 20px 40px; border-radius: 14px; margin-bottom: 32px; }
	.wpllms-hero h1 { font-size: 30px; }
	.wpllms-hero-tagline { font-size: 16px; margin-bottom: 24px; }
	.wpllms-hero-actions { flex-direction: column; width: 100%; gap: 12px; }
	.wpllms-hero-cta { width: 100%; text-align: center; box-sizing: border-box; padding: 14px 20px; }
	.wpllms-hero-illustration { margin-top: 28px; max-width: 260px; }
	.wpllms-hero-blob-1 { width: 160px; height: 160px; }
	.wpllms-hero-blob-2 { width: 120px; height: 120px; }

	.wpllms-stats-bar { gap: 14px; margin-bottom: 32px; }
	.wpllms-stat { flex: 1 1 calc(50% - 14px); min-width: 0; padding: 18px 12px; }
	.wpllms-stat-number { font-size: 28px; }

	.wpllms-section-head h2 { font-size: 22px; }
	.wpllms-features { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
	.wpllms-feature-card { padding: 24px 20px; }

	.wpllms-cta-banner { padding: 36px 20px; margin: 40px 0; border-radius: 14px; }
	.wpllms-cta-banner h2 { font-size: 21px; }
}

@media (max-width: 400px) {
	.wpllms-hero h1 { font-size: 25px; }
	.wpllms-stat { flex: 1 1 100%; }
}
/* The course page already has its page title; hide the shortcode's duplicate heading there. */
.wpllms-single-course .wpllms-course-title { display: none; }
.wpllms-faq { margin-top: 32px; }
.wpllms-faq-item { border: 1px solid var(--wpllms-border); border-radius: 10px; padding: 12px 16px; margin: 10px 0; background: #fff; }
.wpllms-faq-item summary { cursor: pointer; font-weight: 600; color: var(--wpllms-heading); }
.wpllms-faq-answer { margin-top: 8px; }
