/*
Theme Name: CitedX
Theme URI: https://citedx.co.uk
Author: CitedX
Author URI: https://citedx.co.uk
Description: The UK business directory built for AI search. A custom, plugin-free WordPress theme with built-in SEO and JSON-LD schema, designed for AEO/GEO citation by ChatGPT, Perplexity, Gemini, and Claude.
Version: 0.4.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: citedx
Tags: directory, business, custom-theme, seo, schema, aeo
*/

/* ---------- Design tokens (light) ---------- */
:root {
	color-scheme: light dark;

	--cx-color-primary: #185FA5;
	--cx-color-primary-hover: #0C447C;
	--cx-color-primary-tint: #E6F1FB;

	--cx-color-text: #0F172A;
	--cx-color-text-muted: #475569;
	--cx-color-text-subtle: #52617A; /* bumped from #64748B for AA (5.5:1 vs 4.5:1) */

	--cx-color-bg: #FFFFFF;
	--cx-color-bg-alt: #F8FAFC;
	--cx-color-bg-tint: #F1F5F9;

	--cx-color-border: rgba(15, 23, 42, 0.10);
	--cx-color-border-strong: rgba(15, 23, 42, 0.22);

	--cx-color-success: #059669;
	--cx-color-warning: #D97706;
	--cx-color-danger: #DC2626;

	--cx-shadow-card: 0 4px 12px rgba(15, 23, 42, 0.05);
	--cx-shadow-tile: 0 2px 8px rgba(24, 95, 165, 0.10);

	--cx-radius-sm: 4px;
	--cx-radius-md: 6px;
	--cx-radius-lg: 10px;
	--cx-radius-xl: 14px;

	--cx-space-1: 4px;
	--cx-space-2: 8px;
	--cx-space-3: 12px;
	--cx-space-4: 16px;
	--cx-space-5: 24px;
	--cx-space-6: 32px;
	--cx-space-7: 48px;
	--cx-space-8: 64px;
	--cx-space-9: 96px;

	--cx-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--cx-font-serif: ui-serif, Georgia, "Times New Roman", "Times", serif;
	--cx-font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;

	--cx-container: 1180px;
	--cx-container-narrow: 780px;
}

/* ---------- Design tokens (dark, auto via OS preference) ---------- */
@media (prefers-color-scheme: dark) {
	:root {
		--cx-color-primary: #4F92E0;
		--cx-color-primary-hover: #7BB1F0;
		--cx-color-primary-tint: #1A2A45;

		--cx-color-text: #E2E8F0;
		--cx-color-text-muted: #B6C3D5;
		--cx-color-text-subtle: #8AA0BC;

		--cx-color-bg: #0B1220;
		--cx-color-bg-alt: #111A2E;
		--cx-color-bg-tint: #1A2540;

		--cx-color-border: rgba(255, 255, 255, 0.10);
		--cx-color-border-strong: rgba(255, 255, 255, 0.22);

		--cx-shadow-card: 0 4px 12px rgba(0, 0, 0, 0.40);
		--cx-shadow-tile: 0 2px 8px rgba(79, 146, 224, 0.20);
	}
}

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

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

body {
	margin: 0;
	font-family: var(--cx-font-sans);
	font-size: 16px;
	line-height: 1.7;
	color: var(--cx-color-text);
	background: var(--cx-color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--cx-color-primary);
	text-decoration: none;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover,
a:focus-visible {
	color: var(--cx-color-primary-hover);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 500;
	line-height: 1.25;
	margin: 0 0 var(--cx-space-4);
	color: var(--cx-color-text);
}
/* Display headings — editorial serif. h3+ stay sans for clarity. */
h1, h2 {
	font-family: var(--cx-font-serif);
	letter-spacing: -0.015em;
	line-height: 1.15;
}
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

p { margin: 0 0 var(--cx-space-4); }

ul, ol { padding-left: var(--cx-space-5); margin: 0 0 var(--cx-space-4); }

button { font: inherit; cursor: pointer; }

input,
textarea,
select {
	font: inherit;
	color: var(--cx-color-text);
	background: var(--cx-color-bg);
}

::placeholder {
	color: var(--cx-color-text-subtle);
	opacity: 1;
}

:focus-visible {
	outline: 2px solid var(--cx-color-primary);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------- Layout primitives ---------- */
.cx-container { max-width: var(--cx-container); margin: 0 auto; padding: 0 var(--cx-space-5); }
.cx-container--narrow { max-width: var(--cx-container-narrow); }
.cx-section { padding: var(--cx-space-7) 0; }
.cx-stack > * + * { margin-top: var(--cx-space-4); }

/* ---------- Accessibility ---------- */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--cx-color-text);
	color: var(--cx-color-bg);
	padding: var(--cx-space-3) var(--cx-space-4);
	z-index: 100;
	border-radius: 0 0 var(--cx-radius-md) 0;
}
.skip-link:focus { left: 0; top: 0; }

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

/* ---------- Buttons ---------- */
.cx-button {
	display: inline-block;
	padding: var(--cx-space-3) var(--cx-space-4);
	border-radius: var(--cx-radius-md);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color .15s ease, border-color .15s ease, transform .12s ease;
	will-change: transform;
}
.cx-button:hover,
.cx-button:focus-visible { text-decoration: none; transform: translateY(-1px); }
.cx-button:active { transform: translateY(0); }
.cx-button--primary { background: var(--cx-color-primary); color: #FFFFFF; border-color: var(--cx-color-primary); }
.cx-button--primary:hover,
.cx-button--primary:focus-visible { background: var(--cx-color-primary-hover); color: #FFFFFF; border-color: var(--cx-color-primary-hover); }
@media (prefers-color-scheme: dark) {
	.cx-button--primary,
	.cx-button--primary:hover,
	.cx-button--primary:focus-visible { color: #0B1220; }
	.cx-tier__badge { color: #0B1220; }
}
.cx-button--ghost { background: transparent; color: var(--cx-color-text); border-color: var(--cx-color-border-strong); }
.cx-button--ghost:hover,
.cx-button--ghost:focus-visible { background: var(--cx-color-bg-tint); color: var(--cx-color-text); }

/* ---------- Site header ---------- */
.cx-site-header {
	border-bottom: 1px solid var(--cx-color-border);
	background: var(--cx-color-bg);
}
.cx-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--cx-space-5);
	padding-top: var(--cx-space-4);
	padding-bottom: var(--cx-space-4);
}
.cx-site-header__logo {
	font-size: 18px;
	font-weight: 500;
	color: var(--cx-color-text);
	letter-spacing: -0.01em;
}
.cx-site-header__logo:hover,
.cx-site-header__logo:focus-visible {
	text-decoration: none;
	color: var(--cx-color-primary);
}
.cx-nav-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: var(--cx-space-5);
}
.cx-nav-menu a {
	color: var(--cx-color-text-muted);
	font-size: 14px;
}
.cx-nav-menu a:hover,
.cx-nav-menu a:focus-visible {
	color: var(--cx-color-primary);
	text-decoration: none;
}

/* ---------- Site footer ---------- */
.cx-site-footer {
	border-top: 1px solid var(--cx-color-border);
	background: var(--cx-color-bg-alt);
	padding: var(--cx-space-7) 0 var(--cx-space-5);
	margin-top: var(--cx-space-9);
}
.cx-site-footer__copy {
	color: var(--cx-color-text-muted);
	font-size: 14px;
	margin: 0;
}

/* ---------- WordPress core required classes ---------- */
.alignleft  { float: left;  margin: 0 var(--cx-space-5) var(--cx-space-3) 0; }
.alignright { float: right; margin: 0 0 var(--cx-space-3) var(--cx-space-5); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide,
.alignfull { /* WP block alignment hooks for block editor */ }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.gallery-caption { font-size: 14px; color: var(--cx-color-text-muted); margin-top: var(--cx-space-2); }
.bypostauthor { /* required by WordPress */ }
.sticky { /* required by WordPress */ }

/* ---------- Breadcrumbs ---------- */
.cx-breadcrumbs {
	font-size: 13px;
	color: var(--cx-color-text-muted);
	padding: var(--cx-space-4) 0 var(--cx-space-2);
}
.cx-breadcrumbs a { color: var(--cx-color-text-muted); }
.cx-breadcrumbs a:hover { color: var(--cx-color-primary); }
.cx-breadcrumbs__sep { margin: 0 var(--cx-space-2); color: var(--cx-color-text-subtle); }

/* ---------- Single business: hero ---------- */
.cx-business-hero {
	padding: var(--cx-space-3) 0 var(--cx-space-5);
	border-bottom: 1px solid var(--cx-color-border);
}
.cx-business-hero__inner {
	display: flex;
	align-items: center;
	gap: var(--cx-space-5);
}
.cx-business-hero__logo {
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	border-radius: var(--cx-radius-lg);
	overflow: hidden;
	background: var(--cx-color-bg-tint);
	display: flex; align-items: center; justify-content: center;
}
.cx-business-hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.cx-business-hero__logo--placeholder {
	font-size: 32px; font-weight: 500; color: var(--cx-color-text-muted);
}
.cx-business-hero__title {
	margin: 0 0 var(--cx-space-2);
	display: flex; align-items: center; gap: var(--cx-space-3); flex-wrap: wrap;
	font-size: 32px; line-height: 1.2;
}
.cx-business-hero__tagline {
	margin: 0 0 var(--cx-space-2);
	color: var(--cx-color-text-muted);
	font-size: 17px;
}
.cx-business-hero__meta {
	margin: 0;
	font-size: 14px;
	color: var(--cx-color-text-subtle);
}
.cx-business-hero__meta a { color: var(--cx-color-text-muted); text-decoration: none; }
.cx-business-hero__meta a:hover { color: var(--cx-color-primary); text-decoration: underline; }

.cx-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 500;
	border-radius: var(--cx-radius-sm);
	letter-spacing: 0.02em;
}
.cx-badge--verified {
	background: var(--cx-color-primary-tint);
	color: var(--cx-color-primary-hover);
}

.cx-pill {
	display: inline-block;
	padding: 4px 10px;
	font-size: 13px;
	background: var(--cx-color-bg-tint);
	border-radius: var(--cx-radius-md);
	color: var(--cx-color-text-muted);
}

.cx-business-cover {
	margin: var(--cx-space-5) 0 0;
	border-radius: var(--cx-radius-lg);
	overflow: hidden;
	aspect-ratio: 16 / 6;
	background: var(--cx-color-bg-tint);
}
.cx-business-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Single business: grid ---------- */
.cx-business-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: var(--cx-space-7);
	padding-top: var(--cx-space-7);
	padding-bottom: var(--cx-space-9);
}
@media (max-width: 900px) {
	.cx-business-grid { grid-template-columns: 1fr; gap: var(--cx-space-6); }
	.cx-business-hero__inner { flex-wrap: wrap; }
	.cx-business-hero__logo { width: 72px; height: 72px; }
	.cx-business-hero__title { font-size: 26px; }
}

.cx-business-section { margin-bottom: var(--cx-space-7); }
.cx-business-section h2 {
	font-size: 18px;
	margin: 0 0 var(--cx-space-3);
	padding-bottom: var(--cx-space-2);
	border-bottom: 1px solid var(--cx-color-border);
}
.cx-prose p { margin: 0 0 var(--cx-space-4); }

/* ---------- Tag list ---------- */
.cx-tag-list {
	list-style: none;
	padding: 0; margin: 0;
	display: flex; flex-wrap: wrap; gap: var(--cx-space-2);
}

/* ---------- Hours table ---------- */
.cx-hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cx-hours-table th {
	text-align: left;
	font-weight: 500;
	padding: var(--cx-space-2) 0;
	width: 140px;
	color: var(--cx-color-text-muted);
}
.cx-hours-table td {
	padding: var(--cx-space-2) 0;
	color: var(--cx-color-text);
}
.cx-hours-table tr + tr { border-top: 1px solid var(--cx-color-border); }
.cx-hours-table__time.is-closed { color: var(--cx-color-text-subtle); }

/* ---------- Gallery ---------- */
.cx-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: var(--cx-space-2);
}
.cx-gallery__item {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--cx-color-bg-tint);
	border-radius: var(--cx-radius-md);
	overflow: hidden;
}
.cx-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQs ---------- */
.cx-faqs { display: flex; flex-direction: column; gap: var(--cx-space-2); }
.cx-faq {
	border: 1px solid var(--cx-color-border);
	border-radius: var(--cx-radius-md);
	padding: var(--cx-space-3) var(--cx-space-4);
	background: var(--cx-color-bg);
}
.cx-faq summary {
	cursor: pointer;
	font-weight: 500;
	list-style: none;
}
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq summary::after {
	content: '+';
	float: right;
	color: var(--cx-color-text-subtle);
	font-weight: 400;
}
.cx-faq[open] summary::after { content: '–'; }
.cx-faq__answer {
	margin-top: var(--cx-space-3);
	color: var(--cx-color-text-muted);
}

/* ---------- Side cards ---------- */
.cx-business-side { display: flex; flex-direction: column; gap: var(--cx-space-4); }
.cx-side-card {
	background: var(--cx-color-bg);
	border: 1px solid var(--cx-color-border);
	border-radius: var(--cx-radius-lg);
	padding: var(--cx-space-4);
}
.cx-side-card h3 {
	font-size: 13px;
	font-weight: 500;
	color: var(--cx-color-text-subtle);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 var(--cx-space-3);
}
.cx-side-card__address {
	font-style: normal;
	display: flex; flex-direction: column;
	gap: 2px;
	margin-bottom: var(--cx-space-3);
	color: var(--cx-color-text);
}
.cx-side-card__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.cx-side-card__cta { display: block; text-align: center; margin-top: var(--cx-space-3); }
.cx-side-card__today { font-size: 16px; font-weight: 500; margin: 0; }
.cx-side-card__socials {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-wrap: wrap; gap: var(--cx-space-2) var(--cx-space-3);
}

.cx-meta-list { margin: 0; }
.cx-meta-list dt {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--cx-color-text-subtle);
	margin-top: var(--cx-space-2);
}
.cx-meta-list dt:first-child { margin-top: 0; }
.cx-meta-list dd { margin: 0 0 var(--cx-space-1); font-size: 14px; }

/* ---------- Archive ---------- */
.cx-archive-header { padding: var(--cx-space-4) 0 var(--cx-space-6); border-bottom: 1px solid var(--cx-color-border); margin-bottom: var(--cx-space-7); }
.cx-archive-eyebrow {
	font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
	color: var(--cx-color-text-subtle); margin: 0 0 var(--cx-space-2);
}
.cx-archive-title { margin: 0 0 var(--cx-space-3); }
.cx-archive-lead { color: var(--cx-color-text-muted); max-width: 720px; margin: 0; }

.cx-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--cx-space-4);
}
.cx-empty {
	color: var(--cx-color-text-muted);
	background: var(--cx-color-bg-alt);
	padding: var(--cx-space-8) var(--cx-space-5);
	border-radius: var(--cx-radius-lg);
	text-align: center;
	font-size: 16px;
	margin: var(--cx-space-5) 0;
}

.cx-card {
	border: 1px solid var(--cx-color-border);
	border-radius: var(--cx-radius-lg);
	background: var(--cx-color-bg);
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cx-card:hover {
	border-color: var(--cx-color-border-strong);
	transform: translateY(-2px);
	box-shadow: var(--cx-shadow-card);
}
.cx-card__link { display: block; padding: var(--cx-space-4); color: inherit; }
.cx-card__link:hover { text-decoration: none; color: inherit; }
.cx-card__head { display: flex; gap: var(--cx-space-3); align-items: center; margin-bottom: var(--cx-space-3); }
.cx-card__logo {
	flex: 0 0 auto; width: 48px; height: 48px;
	border-radius: var(--cx-radius-md); overflow: hidden;
	background: var(--cx-color-bg-tint);
	display: flex; align-items: center; justify-content: center;
}
.cx-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.cx-card__logo--placeholder { font-weight: 500; color: var(--cx-color-text-muted); font-size: 14px; }
.cx-card__title { font-size: 16px; margin: 0 0 2px; }
.cx-card__meta { font-size: 13px; color: var(--cx-color-text-subtle); margin: 0; }
.cx-card__tagline { font-size: 14px; color: var(--cx-color-text-muted); margin: 0; line-height: 1.5; }

/* ---------- Homepage: hero ---------- */
.cx-home-hero {
	padding: var(--cx-space-9) 0 var(--cx-space-7);
	border-bottom: 1px solid var(--cx-color-border);
	background: var(--cx-color-bg);
}
.cx-home-hero__title {
	font-family: var(--cx-font-serif);
	font-size: 44px;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 500;
	max-width: 720px;
	margin: 0 0 var(--cx-space-4);
}
.cx-home-hero__lead {
	font-size: 18px;
	color: var(--cx-color-text-muted);
	max-width: 720px;
	margin: 0 0 var(--cx-space-6);
	line-height: 1.6;
}
.cx-home-hero__search {
	display: flex;
	gap: var(--cx-space-2);
	max-width: 640px;
	margin: 0 0 var(--cx-space-3);
}
.cx-home-hero__input {
	flex: 1;
	height: 48px;
	padding: 0 var(--cx-space-4);
	font-size: 15px;
	border: 1px solid var(--cx-color-border-strong);
	border-radius: var(--cx-radius-md);
	background: var(--cx-color-bg);
	color: var(--cx-color-text);
}
.cx-home-hero__input:focus { outline: 2px solid var(--cx-color-primary); outline-offset: 1px; }
.cx-home-hero__submit {
	height: 48px;
	padding: 0 var(--cx-space-5);
	font-size: 15px;
}
.cx-home-hero__hint {
	font-size: 13px;
	color: var(--cx-color-text-subtle);
	margin: 0 0 var(--cx-space-3);
	max-width: 640px;
}
.cx-home-hero__trust {
	font-size: 13px;
	color: var(--cx-color-text-subtle);
	margin: 0;
}

/* Lead paragraph used at top of editorial pages */
.cx-prose .cx-lead,
.cx-pricing-hero__lead .cx-lead {
	font-size: 19px;
	line-height: 1.5;
	color: var(--cx-color-text);
	margin: 0 0 var(--cx-space-5);
	font-weight: 400;
}
.cx-prose code {
	background: var(--cx-color-bg-tint);
	padding: 2px 6px;
	border-radius: var(--cx-radius-sm);
	font-size: 0.9em;
	font-family: var(--cx-font-mono);
}
.cx-prose h2 {
	margin-top: var(--cx-space-7);
	margin-bottom: var(--cx-space-3);
}
.cx-prose h2:first-child {
	margin-top: 0;
}

/* ---------- Homepage: 3-column band (Why CitedX) ---------- */
.cx-three-col {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--cx-space-5);
}
.cx-three-col__item h2 {
	font-size: 16px;
	font-weight: 500;
	margin: 0 0 var(--cx-space-2);
}
.cx-three-col__item p {
	color: var(--cx-color-text-muted);
	font-size: 15px;
	margin: 0;
}

/* ---------- Homepage: section heads ---------- */
.cx-home-section-head {
	margin-bottom: var(--cx-space-5);
}
.cx-home-section-head h2 {
	font-size: 28px;
	margin: 0 0 var(--cx-space-2);
}
.cx-home-section-head p {
	color: var(--cx-color-text-muted);
	margin: 0;
	font-size: 16px;
}
.cx-home-section-foot {
	margin: var(--cx-space-5) 0 0;
}

.cx-home-grid-section--alt {
	background: var(--cx-color-bg-alt);
}

/* ---------- Tile grid (categories / cities) ---------- */
.cx-tile-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--cx-space-3);
}
.cx-tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: var(--cx-space-4);
	border: 1px solid var(--cx-color-border);
	border-radius: var(--cx-radius-lg);
	background: var(--cx-color-bg);
	color: var(--cx-color-text);
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
	text-decoration: none;
}
.cx-tile:hover,
.cx-tile:focus-visible {
	border-color: var(--cx-color-primary);
	color: var(--cx-color-primary);
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: var(--cx-shadow-tile);
}
.cx-tile__name { font-size: 15px; font-weight: 500; }
.cx-tile__count { font-size: 12px; color: var(--cx-color-text-subtle); }

/* ---------- How it works ---------- */
.cx-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--cx-space-5);
}
.cx-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: var(--cx-color-primary-tint);
	color: var(--cx-color-primary-hover);
	font-weight: 500;
	font-size: 16px;
	margin-bottom: var(--cx-space-3);
}
.cx-step__title { font-size: 17px; margin: 0 0 var(--cx-space-2); font-weight: 500; }
.cx-step__body  { color: var(--cx-color-text-muted); margin: 0; font-size: 15px; }

/* ---------- Final CTA band ---------- */
.cx-home-cta {
	background: var(--cx-color-primary-tint);
	text-align: center;
	padding: var(--cx-space-8) 0;
}
.cx-home-cta h2 {
	font-size: 28px;
	color: var(--cx-color-primary-hover);
	margin: 0 0 var(--cx-space-2);
}
.cx-home-cta p {
	color: var(--cx-color-text-muted);
	margin: 0 0 var(--cx-space-4);
}
.cx-home-cta__button {
	display: inline-block;
	padding: var(--cx-space-3) var(--cx-space-6);
	font-size: 15px;
}

/* ---------- Link arrow ---------- */
.cx-link-arrow {
	font-weight: 500;
	font-size: 14px;
	color: var(--cx-color-primary);
}

/* ---------- Region filter ---------- */
.cx-region-filter {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cx-space-2);
	margin: 0 0 var(--cx-space-5);
	padding-bottom: var(--cx-space-4);
	border-bottom: 1px solid var(--cx-color-border);
}
.cx-region-filter__pill {
	display: inline-block;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 500;
	color: var(--cx-color-text-muted);
	background: var(--cx-color-bg);
	border: 1px solid var(--cx-color-border);
	border-radius: 999px;
	text-decoration: none;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.cx-region-filter__pill:hover,
.cx-region-filter__pill:focus-visible {
	border-color: var(--cx-color-primary);
	color: var(--cx-color-primary);
	text-decoration: none;
}
.cx-region-filter__pill.is-active {
	background: var(--cx-color-primary);
	color: #FFFFFF;
	border-color: var(--cx-color-primary);
}
.cx-region-filter__pill.is-active:hover {
	background: var(--cx-color-primary-hover);
	color: #FFFFFF;
}

/* ---------- Footer trust strip ---------- */
.cx-footer-trust {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cx-space-2) var(--cx-space-3);
	padding: var(--cx-space-3) 0;
	border-top: 1px solid var(--cx-color-border);
	font-size: 12px;
	color: var(--cx-color-text-subtle);
	letter-spacing: 0.02em;
}

/* ---------- Footer (4 columns) ---------- */
.cx-footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--cx-space-5);
	padding: var(--cx-space-7) 0 var(--cx-space-6);
}
.cx-footer-col__title {
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--cx-color-text-subtle);
	margin: 0 0 var(--cx-space-3);
}
.cx-footer-col__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cx-footer-col__list a { color: var(--cx-color-text-muted); font-size: 14px; }
.cx-footer-col__list a:hover { color: var(--cx-color-primary); text-decoration: none; }
.cx-footer-col__placeholder { color: var(--cx-color-text-subtle); font-size: 13px; font-style: italic; }
.cx-footer-bottom {
	padding-top: var(--cx-space-4);
	border-top: 1px solid var(--cx-color-border);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--cx-space-3);
}
.cx-footer-tagline { color: var(--cx-color-text-subtle); margin: 0; font-size: 13px; }

/* ---------- Static page (About, Privacy, Terms, Contact) ---------- */
.cx-page__header { margin-bottom: var(--cx-space-5); }
.cx-page__title { margin: 0; }

/* ---------- Pricing page ---------- */
.cx-pricing-hero {
	padding-top: var(--cx-space-9);
	padding-bottom: var(--cx-space-5);
	border-bottom: 1px solid var(--cx-color-border);
}
.cx-pricing-hero__title {
	font-size: 40px;
	margin: 0 0 var(--cx-space-3);
}
.cx-pricing-hero__lead {
	color: var(--cx-color-text);
	margin: 0;
}
.cx-pricing-tiers {
	padding-top: var(--cx-space-7);
	padding-bottom: var(--cx-space-9);
}
.cx-tier-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--cx-space-5);
	max-width: 880px;
	margin: 0 auto;
}
.cx-tier {
	position: relative;
	background: var(--cx-color-bg);
	border: 1px solid var(--cx-color-border);
	border-radius: var(--cx-radius-xl);
	padding: var(--cx-space-6) var(--cx-space-5);
	display: flex;
	flex-direction: column;
}
.cx-tier--featured {
	border-color: var(--cx-color-primary);
	border-width: 2px;
	padding: calc(var(--cx-space-6) - 1px) calc(var(--cx-space-5) - 1px);
}
.cx-tier__badge {
	position: absolute;
	top: -12px;
	left: var(--cx-space-5);
	background: var(--cx-color-primary);
	color: #FFFFFF;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 999px;
}
.cx-tier__head {
	margin-bottom: var(--cx-space-5);
	padding-bottom: var(--cx-space-4);
	border-bottom: 1px solid var(--cx-color-border);
}
.cx-tier__name {
	font-family: var(--cx-font-serif);
	font-size: 26px;
	margin: 0 0 var(--cx-space-3);
	letter-spacing: -0.01em;
}
.cx-tier__price {
	display: flex;
	align-items: baseline;
	gap: var(--cx-space-2);
	margin: 0 0 var(--cx-space-2);
}
.cx-tier__amount {
	font-size: 32px;
	font-weight: 500;
	color: var(--cx-color-text);
	letter-spacing: -0.02em;
}
.cx-tier__period {
	font-size: 14px;
	color: var(--cx-color-text-subtle);
}
.cx-tier__sub {
	font-size: 14px;
	color: var(--cx-color-text-muted);
	margin: 0;
}
.cx-tier__features {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--cx-space-5);
	display: flex;
	flex-direction: column;
	gap: var(--cx-space-2);
	font-size: 15px;
	color: var(--cx-color-text);
	flex: 1;
}
.cx-tier__features li {
	position: relative;
	padding-left: 24px;
	line-height: 1.5;
}
.cx-tier__features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--cx-color-primary);
	border-bottom: 2px solid var(--cx-color-primary);
	transform: rotate(-45deg);
}
.cx-tier__features li strong { font-weight: 500; }
.cx-tier__features li:has(strong)::before {
	display: none;
}
.cx-tier__features li:has(strong) {
	padding-left: 0;
	color: var(--cx-color-text-muted);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-top: var(--cx-space-2);
}
.cx-tier__cta {
	align-self: stretch;
	text-align: center;
	padding-top: var(--cx-space-3);
	padding-bottom: var(--cx-space-3);
}
.cx-tier__cta:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background: var(--cx-color-bg-tint);
	color: var(--cx-color-text-muted);
	border: 1px solid var(--cx-color-border);
}
.cx-tier__cta:disabled:hover {
	transform: none;
	background: var(--cx-color-bg-tint);
}
.cx-pricing-foot {
	text-align: center;
	margin: var(--cx-space-7) auto 0;
	color: var(--cx-color-text-muted);
	font-size: 14px;
	max-width: 640px;
}

@media (max-width: 768px) {
	.cx-tier-grid { grid-template-columns: 1fr; }
	.cx-pricing-hero__title { font-size: 30px; }
}

/* ---------- 404 ---------- */
.cx-404 { padding-top: var(--cx-space-7); padding-bottom: var(--cx-space-9); }
.cx-404__header { text-align: center; margin-bottom: var(--cx-space-6); }
.cx-404__code {
	font-size: 14px; font-weight: 500; letter-spacing: 0.06em;
	color: var(--cx-color-primary); text-transform: uppercase;
	margin: 0 0 var(--cx-space-3);
}
.cx-404__title { font-size: 36px; margin: 0 0 var(--cx-space-3); }
.cx-404__lead { color: var(--cx-color-text-muted); max-width: 560px; margin: 0 auto; font-size: 16px; }
.cx-404__search {
	display: flex;
	gap: var(--cx-space-2);
	max-width: 560px;
	margin: 0 auto var(--cx-space-7);
}
.cx-404__section { margin: var(--cx-space-7) 0 0; }
.cx-404__section h2 {
	font-size: 18px;
	margin: 0 0 var(--cx-space-4);
}
.cx-404__home-link {
	margin-top: var(--cx-space-7);
	text-align: center;
	font-size: 14px;
}

/* ---------- Claim page ---------- */
.cx-claim-hero {
	padding-top: var(--cx-space-9);
	padding-bottom: var(--cx-space-7);
	border-bottom: 1px solid var(--cx-color-border);
}
.cx-claim-hero__title {
	font-size: 36px;
	margin: 0 0 var(--cx-space-3);
}
.cx-claim-hero__lead {
	color: var(--cx-color-text-muted);
	font-size: 17px;
	margin-bottom: var(--cx-space-5);
}
.cx-claim-search {
	max-width: 520px;
	margin: 0;
}
.cx-claim-hint {
	font-size: 13px;
	color: var(--cx-color-text-subtle);
	margin: var(--cx-space-3) 0 0;
}
.cx-claim-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--cx-space-5);
}
.cx-claim-step {
	padding: var(--cx-space-4);
	border: 1px solid var(--cx-color-border);
	border-radius: var(--cx-radius-lg);
	background: var(--cx-color-bg);
}
.cx-claim-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px; height: 32px;
	border-radius: 50%;
	background: var(--cx-color-primary-tint);
	color: var(--cx-color-primary-hover);
	font-weight: 500;
	margin-bottom: var(--cx-space-2);
}
.cx-claim-step h3 { font-size: 16px; margin: 0 0 var(--cx-space-2); }
.cx-claim-step p  { color: var(--cx-color-text-muted); font-size: 14px; margin: 0; }
.cx-claim-note {
	margin-top: var(--cx-space-5);
	padding: var(--cx-space-4);
	background: var(--cx-color-bg-alt);
	border-radius: var(--cx-radius-md);
	font-size: 14px;
	color: var(--cx-color-text-muted);
}
@media (max-width: 768px) {
	.cx-claim-grid { grid-template-columns: 1fr; }
	.cx-claim-hero__title { font-size: 28px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
	h1 { font-size: 28px; }
	h2 { font-size: 22px; }
	.cx-site-header__inner { flex-wrap: wrap; gap: var(--cx-space-3); }
	.cx-nav-menu { gap: var(--cx-space-4); flex-wrap: wrap; }
	.cx-section { padding: var(--cx-space-6) 0; }
	.cx-home-hero__title { font-size: 32px; line-height: 1.15; }
	.cx-home-hero__lead  { font-size: 16px; }
	.cx-home-hero__search { flex-direction: column; }
	.cx-three-col { grid-template-columns: 1fr; gap: var(--cx-space-4); }
	.cx-tile-grid { grid-template-columns: repeat(2, 1fr); }
	.cx-steps { grid-template-columns: 1fr; }
	.cx-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
