/* Visitor color preference is scoped to the public site, never WordPress admin. */
.pepa-theme-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 42px; width: 42px; height: 42px; padding: 10px;
	border: 1px solid var(--color-border); border-radius: 13px;
	background: rgba(196, 181, 253, .08); color: var(--color-primary); cursor: pointer;
	transition: background .2s ease, border-color .2s ease;
}
.pepa-theme-toggle[hidden] { display: none; }
.pepa-theme-toggle:hover { background: rgba(196, 181, 253, .18); border-color: var(--color-primary); }
.pepa-theme-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
.pepa-skip-link:focus { background: var(--accent-gradient); color: #16192f; }
.pepa-theme-toggle__moon { display: none; }
html[data-theme='light'] .pepa-theme-toggle__sun { display: none; }
html[data-theme='light'] .pepa-theme-toggle__moon { display: block; }

html[data-theme='light'] body:not(.wp-admin) {
	color-scheme: light;
	--color-primary: #6542ab;
	--color-primary-dark: #4e2d91;
	--color-secondary: #16765c;
	--color-ink-900: #202940;
	--color-ink-600: #4b586f;
	--color-surface: #ffffff;
	--color-surface-alt: #eef0f9;
	--color-border: rgba(70, 64, 113, .16);
	--color-success-text: #16654b;
	--color-warning-text: #946118;
	--color-danger: #b12845;
	--glass-bg: rgba(255, 255, 255, .86);
	--glass-highlight: rgba(255, 255, 255, .8);
	--wallpaper-overlay: linear-gradient(180deg, rgba(245, 246, 252, .88), rgba(245, 246, 252, .86) 48%, rgba(245, 246, 252, .94));
	--shadow-sm: 0 8px 28px rgba(53, 45, 90, .06);
	--shadow-md: 0 18px 48px rgba(53, 45, 90, .1);
	--shadow-lg: 0 28px 80px rgba(53, 45, 90, .14);
	background-color: #f5f6fc;
	background-image: radial-gradient(ellipse at 90% 0%, rgba(183, 161, 239, .24), transparent 42%), radial-gradient(ellipse at 0% 35%, rgba(140, 225, 205, .2), transparent 40%);
}
html[data-theme='light'] ::selection { background: #d8c9f9; color: #29203f; }
html[data-theme='light'] :focus-visible { outline-color: #6542ab; }

/* Header, navigation and responsive menu. */
html[data-theme='light'] .pepa-header,
html[data-theme='light'] .pepa-sticky-cta { background: rgba(255, 255, 255, .94); }
html[data-theme='light'] .pepa-header__menu a,
html[data-theme='light'] .pepa-header__phone { color: #58657d; }
html[data-theme='light'] .pepa-header__menu a:hover,
html[data-theme='light'] .pepa-header__menu .current-menu-item > a,
html[data-theme='light'] .pepa-header__menu .current-menu-ancestor > a { color: #4e2d91; background: rgba(101, 66, 171, .08); }
html[data-theme='light'] .pepa-header__menu .sub-menu { background: #f8f8ff; }
html[data-theme='light'] .pepa-header__burger { color: #35405c; }
html[data-theme='light'] .pepa-header__burger[aria-expanded='true'] { background: rgba(101, 66, 171, .1); }

/* CTA gradients remain luminous, with dark text in both color modes. */
html[data-theme='light'] .pepa-btn--ghost,
html[data-theme='light'] .pepa-btn--secondary { color: #54348f; border-color: rgba(101, 66, 171, .24); background: rgba(255, 255, 255, .7); }
html[data-theme='light'] .pepa-btn--ghost:hover,
html[data-theme='light'] .pepa-btn--secondary:hover { background: #ece5fa; }
html[data-theme='light'] .pepa-badge,
html[data-theme='light'] .pepa-case-study__metric { color: #16654b; background: rgba(102, 208, 166, .12); border-color: rgba(22, 101, 75, .2); }
html[data-theme='light'] .pepa-hero__media { border-color: rgba(101, 66, 171, .22); box-shadow: 0 0 80px rgba(137, 100, 224, .08), var(--shadow-lg); }
html[data-theme='light'] .pepa-hero__trust-label { background: rgba(255, 255, 255, .65); }
html[data-theme='light'] .pepa-hero__trust-label::before { background: #16765c; }
html[data-theme='light'] .pepa-hero-slider__dot::after { background: #8c87a1; }
html[data-theme='light'] .pepa-hero-slider__dot.is-active::after { background: #6542ab; }

/* Cards, prices and statistics. */
html[data-theme='light'] .pepa-feature-card {
	--feature-hover-border: rgba(101, 66, 171, .45);
	--feature-hover-glow: rgba(101, 66, 171, .1);
	--feature-hover-tint: rgba(101, 66, 171, .035);
}
html[data-theme='light'] .pepa-feature-card__icon { color: #6542ab; border-color: rgba(101, 66, 171, .18); }
html[data-theme='light'] .pepa-pricing-card:hover,
html[data-theme='light'] .pepa-testimonial-card:hover,
html[data-theme='light'] .pepa-post-card:hover { border-color: rgba(101, 66, 171, .35); }
html[data-theme='light'] .pepa-pricing__toggle { background: rgba(255, 255, 255, .85); }
html[data-theme='light'] .pepa-pricing__toggle button { color: #58657d; }
html[data-theme='light'] .pepa-pricing__toggle button.is-active { background: #e9e0f8; color: #54348f; }
html[data-theme='light'] .pepa-pricing-card--featured { border-color: rgba(101, 66, 171, .5); background: linear-gradient(145deg, rgba(183, 161, 239, .16), transparent 70%), var(--glass-bg); }
html[data-theme='light'] .pepa-pricing-card__amount,
html[data-theme='light'] .pepa-testimonial-card cite { color: #202940; }
html[data-theme='light'] .pepa-pricing-card__features li::before { color: #16765c; }
html[data-theme='light'] .pepa-post-card__meta { color: #695384; }
html[data-theme='light'] .pepa-stats__item { background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(233, 230, 250, .5)); }
html[data-theme='light'] .pepa-stats__number,
html[data-theme='light'] .pepa-stats__suffix { color: #6542ab; }
html[data-theme='light'] .pepa-stats__label { color: #58657d; }
html[data-theme='light'] .pepa-cta-banner__inner { border-color: rgba(101, 66, 171, .2); background: radial-gradient(ellipse at 90% 0%, rgba(183, 161, 239, .24), transparent 65%), linear-gradient(120deg, #f0eafa, #e7f5f0); }
html[data-theme='light'] .pepa-cta-banner__inner h2 { color: #202940; }
html[data-theme='light'] .pepa-cta-banner__inner p { color: #58657d; }

/* Forms, search, booking and FAQ. */
html[data-theme='light'] .pepa-form-row label { color: #35405c; }
html[data-theme='light'] .pepa-form-row input,
html[data-theme='light'] .pepa-form-row textarea,
html[data-theme='light'] .pepa-form-row select,
html[data-theme='light'] .pepa-search-form__input { color: #202940; background: rgba(255, 255, 255, .85); border-color: rgba(70, 64, 113, .22); }
html[data-theme='light'] .pepa-form-row input::placeholder,
html[data-theme='light'] .pepa-search-form__input::placeholder { color: #69748b; }
html[data-theme='light'] .pepa-form-row input:focus,
html[data-theme='light'] .pepa-form-row textarea:focus,
html[data-theme='light'] .pepa-form-row select:focus,
html[data-theme='light'] .pepa-search-form__input:focus { border-color: #6542ab; box-shadow: 0 0 0 3px rgba(101, 66, 171, .12); }
html[data-theme='light'] .pepa-form-row input:autofill { box-shadow: 0 0 0 100px #fff inset; }
html[data-theme='light'] .pepa-form-row input:-webkit-autofill { -webkit-text-fill-color: #202940; -webkit-box-shadow: 0 0 0 100px #fff inset; }
html[data-theme='light'] .pepa-contact-page__info a { color: #6542ab; }
html[data-theme='light'] .pepa-slot-day h2 { color: #6542ab; }
html[data-theme='light'] .pepa-slot-btn { color: #35405c; background: rgba(255, 255, 255, .7); }
html[data-theme='light'] .pepa-slot-btn:hover { border-color: #6542ab; }
html[data-theme='light'] .pepa-slot-btn.is-selected { color: #16192f; background: var(--accent-gradient); }
html[data-theme='light'] .pepa-faq__question:hover { color: #6542ab; }
html[data-theme='light'] .pepa-faq__item[open] { border-color: rgba(101, 66, 171, .4); }

/* Articles, generic pages and footer. */
html[data-theme='light'] .pepa-single-post__content a,
html[data-theme='light'] .pepa-single-feature__content a,
html[data-theme='light'] .pepa-case-study__content a,
html[data-theme='light'] .pepa-generic-page > p a,
html[data-theme='light'] .pepa-toc__link:hover,
html[data-theme='light'] .pepa-breadcrumb a:hover { color: #6542ab; }
html[data-theme='light'] .pepa-single-post__content blockquote,
html[data-theme='light'] .wp-block-quote { border-inline-start-color: #6542ab; background: rgba(101, 66, 171, .06); }
html[data-theme='light'] .wp-block-code,
html[data-theme='light'] pre { background: #edf0f8; color: #35405c; }
html[data-theme='light'] .page-numbers { background: rgba(255, 255, 255, .8); }
html[data-theme='light'] .page-numbers.current { background: #6542ab; color: #fff; }
html[data-theme='light'] .pepa-footer { color: #202940; background: rgba(235, 238, 249, .8); }
html[data-theme='light'] .pepa-footer h3 { color: #202940; }
html[data-theme='light'] .pepa-footer p,
html[data-theme='light'] .pepa-footer a,
html[data-theme='light'] .pepa-footer__bottom { color: #58657d; }
html[data-theme='light'] .pepa-footer a:hover { color: #6542ab; }
html[data-theme='light'] .pepa-floating-actions__item { background: #f5f1ff; border-color: rgba(101, 66, 171, .22); }
html[data-theme='light'] .pepa-floating-actions__item--whatsapp { background: #e1f4ec; }
html[data-theme='light'] .pepa-floating-actions__item--call .pepa-icon { fill: #6542ab; }
html[data-theme='light'] .pepa-floating-actions__item--whatsapp .pepa-icon { fill: #16765c; }

/* Product screenshots retain their authentic UI; the surrounding frame adapts. */
html[data-theme='light'] .pepa-product-preview__frame { border-color: rgba(101, 66, 171, .25); background: linear-gradient(145deg, rgba(196, 181, 253, .14), rgba(134, 239, 206, .05)), #fff; box-shadow: inset 0 1px 0 #fff, var(--shadow-lg); }
html[data-theme='light'] .pepa-product-preview__brand { color: #35405c; }
html[data-theme='light'] .pepa-product-preview__brand span { color: #6542ab; }
html[data-theme='light'] .pepa-product-preview__live,
html[data-theme='light'] .pepa-product-preview__footnote { color: var(--color-ink-600); }
html[data-theme='light'] .pepa-product-preview__live > span { background: #16765c; }
html[data-theme='light'] .pepa-product-preview__caption { background: rgba(255, 255, 255, .95); border-color: rgba(101, 66, 171, .22); }
html[data-theme='light'] .pepa-product-preview__caption-icon { color: #6542ab; border-color: rgba(101, 66, 171, .2); }
html[data-theme='light'] .pepa-product-preview__caption strong { color: #202940; }
html[data-theme='light'] .pepa-product-preview__caption div > span { color: #58657d; }
html[data-theme='light'] .pepa-product-preview__expand,
html[data-theme='light'] .pepa-product-preview__footnote > span { color: #16765c; }
html[data-theme='light'] .pepa-product-preview__tab { color: #58657d; }
html[data-theme='light'] .pepa-product-preview__tab:hover { color: #54348f; background: rgba(101, 66, 171, .05); }
html[data-theme='light'] .pepa-product-preview__tab.is-active { color: #54348f; background: #eee7fa; border-color: rgba(101, 66, 171, .2); }
html[data-theme='light'] .pepa-product-preview__tab.is-active > span { background: #6542ab; }
html[data-theme='light'] .pepa-product-preview__play { color: #6542ab; background: #f5f1ff; border-color: rgba(101, 66, 171, .2); }

@media (max-width: 900px) {
	html[data-theme='light'] .pepa-header__nav.is-open { background: #f8f8ff; }
	html[data-theme='light'] .pepa-header__menu .sub-menu { background: transparent; }
}
@media (prefers-reduced-transparency: reduce) {
	html[data-theme='light'] body:not(.wp-admin) { --glass-bg: #fff; }
	html[data-theme='light'] .pepa-header,
	html[data-theme='light'] .pepa-sticky-cta,
	html[data-theme='light'] .pepa-product-preview__caption { background: #fff; }
}
@media (max-width: 640px) {
	.pepa-header__logo { min-width: 0; }
	.pepa-header__logo > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media print {
	.pepa-theme-toggle { display: none; }
	html[data-theme] body:not(.wp-admin) { background: #fff; color: #111; color-scheme: light; --color-ink-900: #111; --color-ink-600: #333; --glass-bg: #fff; }
}
