/* IntentNexus site skin (1.7.8): gives every page except the homepage the
 * homepage's look (paper background, lighter Fraunces headlines with indigo
 * italics, mono pill labels, sentence-case buttons, rounded inset panels).
 * The homepage has its own scoped stylesheet (patterns/home.css) and is left
 * alone via body:not(.home). !important is used where block markup carries
 * inline styles (e.g. uppercase buttons) that would otherwise win. */

body:not(.home) {
	--nx-paper: #F7F8FE;
	--nx-card: #FFFFFF;
	--nx-ink: #0F172A;
	--nx-ink-soft: #475569;
	--nx-mute: #94A3B8;
	--nx-line: #E4E7F4;
	--nx-brand: #4F46E5;
	--nx-brand-hi: #6366F1;
	--nx-tint: #E0E7FF;
	--nx-ghost: #EEF2FF;
	--nx-dark: #0B0D1A;
	--nx-dark-line: rgba(255, 255, 255, .09);
	background-color: var(--nx-paper);
	color: var(--nx-ink);
}

/* ── Sections: no white stripes between them ───────────────────────── */
body:not(.home) main :is(section.wp-block-group, .intentnexus-section, .intentnexus-hero) {
	margin-block-start: 0;
}
body:not(.home) main + footer.wp-block-template-part,
body:not(.home) main ~ footer.wp-block-template-part {
	margin-block-start: 0;
}

/* Hero areas sit on the paper like the homepage hero (no tinted box). */
body:not(.home) :is(.intentnexus-hero, .intentnexus-auto-hero)::before {
	display: none;
}
body:not(.home) .intentnexus-auto-hero {
	background-image: none !important;
	background-color: transparent !important;
}

/* Light grey bands become white rounded panels inset from the edge. */
body:not(.home) main section:is(.has-slate-50-background-color, .has-slate-100-background-color) {
	background-color: var(--nx-card) !important;
	border: 1px solid var(--nx-line);
	border-radius: 40px;
	margin: 20px 14px !important;
}

/* Dark sections become the homepage's dark panel. */
body:not(.home) main section:is(.has-slate-900-background-color, .intentnexus-final) {
	background-color: var(--nx-dark) !important;
	background-image: radial-gradient(720px 520px at 50% 40%, rgba(99, 102, 241, .26) 0%, rgba(124, 58, 237, .10) 45%, transparent 72%) !important;
	border-radius: 40px;
	margin: 20px 14px !important;
	overflow: hidden;
}
body:not(.home) main section:is(.has-slate-900-background-color, .intentnexus-final)::before {
	display: none;
}

/* ── Headlines ─────────────────────────────────────────────────────── */
body:not(.home) main :is(h1, h2.wp-block-heading) {
	font-family: var(--wp--preset--font-family--display) !important;
	font-optical-sizing: auto;
	font-weight: 530 !important;
	letter-spacing: -.012em !important;
	line-height: 1.1 !important;
	text-wrap: balance;
	color: var(--nx-ink);
}
body:not(.home) main h1 {
	letter-spacing: -.015em !important;
	line-height: 1.05 !important;
}
body:not(.home) main :is(h1, h2.wp-block-heading) em {
	font-style: italic;
	font-weight: 500;
	color: var(--nx-brand);
	-webkit-text-fill-color: currentColor;
	background: none;
}
body:not(.home) main section:is(.has-slate-900-background-color, .intentnexus-final) :is(h1, h2) {
	color: #fff !important;
}
body:not(.home) main section:is(.has-slate-900-background-color, .intentnexus-final) :is(h1, h2) em {
	color: #A5B4FC;
}

/* ── Section labels: homepage pill with a dot ──────────────────────── */
body:not(.home) main :is(.intentnexus-eyebrow, .intentnexus-badge),
body:not(.home) main:not(.intentnexus-legal) .intentnexus-section-label {
	display: flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	max-width: 100%;
	font-family: var(--wp--preset--font-family--mono) !important;
	font-size: 11px !important;
	font-weight: 400 !important;
	letter-spacing: .14em !important;
	line-height: 1.4 !important;
	text-transform: uppercase !important;
	color: var(--nx-ink-soft) !important;
	background: var(--nx-card) !important;
	border: 1px solid var(--nx-line) !important;
	border-radius: 999px;
	padding: 7px 14px !important;
}
body:not(.home) main .intentnexus-eyebrow::before,
body:not(.home) main:not(.intentnexus-legal) .intentnexus-section-label::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nx-brand);
	flex: none;
}
body:not(.home) main .intentnexus-badge__dot {
	width: 6px !important;
	height: 6px !important;
	background: var(--nx-brand) !important;
	box-shadow: none !important;
	animation: none !important;
}
body:not(.home) main .intentnexus-badge__text {
	font: inherit !important;
	letter-spacing: inherit !important;
	color: inherit !important;
	text-transform: inherit !important;
}
body:not(.home) main :is(.intentnexus-eyebrow, .intentnexus-badge, .intentnexus-section-label).has-text-align-center,
body:not(.home) main .has-text-align-center > .intentnexus-badge,
body:not(.home) main :is(.intentnexus-hero, .intentnexus-blog-hero) > :is(.intentnexus-eyebrow, .intentnexus-badge) {
	margin-left: auto !important;
	margin-right: auto !important;
}
body:not(.home) main section:is(.has-slate-900-background-color, .intentnexus-final) :is(.intentnexus-eyebrow, .intentnexus-badge, .intentnexus-section-label) {
	background: rgba(255, 255, 255, .06) !important;
	border-color: var(--nx-dark-line) !important;
	color: #B9BDD9 !important;
}

/* ── Buttons: homepage .btn-brand / .btn-line ──────────────────────── */
body:not(.home) main .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--ui) !important;
	font-weight: 600 !important;
	font-size: 15.5px !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	line-height: 1.3 !important;
	border-radius: 14px !important;
	padding: 14px 26px !important;
	background: var(--nx-brand) !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .55) !important;
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
body:not(.home) main .wp-block-button__link:hover {
	background: var(--nx-brand-hi) !important;
	transform: translateY(-1px);
}
body:not(.home) main :is(.is-style-outline, .is-style-secondary) .wp-block-button__link,
body:not(.home) main .wp-block-button__link.is-style-outline {
	background: transparent !important;
	color: var(--nx-ink) !important;
	border: 1.5px solid var(--nx-line) !important;
	box-shadow: none !important;
}
body:not(.home) main :is(.is-style-outline, .is-style-secondary) .wp-block-button__link:hover {
	border-color: var(--nx-ink) !important;
	background: transparent !important;
}
body:not(.home) main section:is(.has-slate-900-background-color, .intentnexus-final) .wp-block-button__link {
	background: #fff !important;
	color: var(--nx-ink) !important;
	box-shadow: none !important;
}
body:not(.home) main section:is(.has-slate-900-background-color, .intentnexus-final) :is(.is-style-outline, .is-style-secondary) .wp-block-button__link {
	background: transparent !important;
	color: #fff !important;
	border-color: rgba(255, 255, 255, .22) !important;
}

/* Custom buttons built by the theme's own patterns (forms, cards, tiers). */
body:not(.home) :is(.intentnexus-audit__submit, .intentnexus-audit__capture-cta-button, .intentnexus-aicheck__submit, .intentnexus-aicheck__gate-form button, .intentnexus-auto-demo__placeholder-cta, .intentnexus-newsletter__form button, .intentnexus-price-card__cta, .intentnexus-tier__cta, .intentnexus-audit__email-form button) {
	font-family: var(--wp--preset--font-family--ui) !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	border-radius: 14px !important;
}
body:not(.home) :is(.intentnexus-audit__submit, .intentnexus-audit__capture-cta-button, .intentnexus-aicheck__submit, .intentnexus-aicheck__gate-form button, .intentnexus-auto-demo__placeholder-cta, .intentnexus-newsletter__form button, .intentnexus-price-card__cta) {
	background: var(--nx-brand) !important;
	color: #fff !important;
	box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .55) !important;
}
body:not(.home) :is(.intentnexus-audit__submit, .intentnexus-audit__capture-cta-button, .intentnexus-aicheck__submit, .intentnexus-aicheck__gate-form button, .intentnexus-auto-demo__placeholder-cta, .intentnexus-newsletter__form button, .intentnexus-price-card__cta):hover {
	background: var(--nx-brand-hi) !important;
}
/* Text links that end in an arrow, like the homepage's "See agency pricing →". */
body:not(.home) :is(.intentnexus-audit-card__cta, .intentnexus-related-card__cta, .intentnexus-toc-cta__label, .intentnexus-toc-cta__link, .intentnexus-features-grid__cta, .intentnexus-feature-related__cta) {
	font-family: var(--wp--preset--font-family--ui) !important;
	font-weight: 600 !important;
	font-size: 14.5px !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: var(--nx-brand) !important;
}

/* Closing dark panels: headline at the homepage's section size. */
body:not(.home) main section:is(.has-slate-900-background-color, .intentnexus-final) h2 {
	font-size: clamp(34px, 4vw, 48px) !important;
}

/* ── FAQs: the homepage's white question cards with + / – ───────────── */
body:not(.home) main :is(.intentnexus-faq__item, .intentnexus-auto-faq__item, .intentnexus-feature-faq__item) {
	background: var(--nx-card) !important;
	border: 1px solid var(--nx-line) !important;
	border-radius: 16px !important;
	margin: 0 0 12px !important;
	padding: 0 !important;
	box-shadow: none !important;
	overflow: hidden;
}
body:not(.home) main :is(.intentnexus-faq__item, .intentnexus-auto-faq__item, .intentnexus-feature-faq__item) > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 24px !important;
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--ui) !important;
	font-weight: 600 !important;
	font-size: 16.5px !important;
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	color: var(--nx-ink) !important;
}
/* The skin draws its own + / – (below); hide the dealer FAQ's built-in toggle so
 * each question shows one marker (1.9.0 fix: 1.7.8 showed two). */
body:not(.home) main .intentnexus-auto-faq__item > summary > .intentnexus-auto-faq__toggle {
	display: none;
}
body:not(.home) main :is(.intentnexus-faq__item, .intentnexus-auto-faq__item, .intentnexus-feature-faq__item) > summary::-webkit-details-marker {
	display: none;
}
body:not(.home) main :is(.intentnexus-faq__item, .intentnexus-auto-faq__item, .intentnexus-feature-faq__item) > summary::before {
	content: none !important;
	display: none !important;
}
body:not(.home) main :is(.intentnexus-faq__item, .intentnexus-auto-faq__item, .intentnexus-feature-faq__item) > summary::after {
	content: "+" !important;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 18px;
	font-weight: 400;
	color: var(--nx-mute);
	flex: none;
	transform: none !important;
	background: none !important;
	border: 0 !important;
	width: auto !important;
	height: auto !important;
	position: static !important;
}
body:not(.home) main :is(.intentnexus-faq__item, .intentnexus-auto-faq__item, .intentnexus-feature-faq__item)[open] > summary::after {
	content: "–" !important;
}
body:not(.home) main :is(.intentnexus-faq__item, .intentnexus-auto-faq__item, .intentnexus-feature-faq__item) > :not(summary) {
	padding: 0 24px 22px !important;
	margin: 0 !important;
	color: var(--nx-ink-soft);
	font-size: 15.5px;
	max-width: 68ch;
}

/* No full-width divider lines between sections (the homepage has none). */
body:not(.home) main section.wp-block-group:not(.has-slate-50-background-color):not(.has-slate-100-background-color):not(.has-slate-900-background-color):not(.intentnexus-final) {
	border-top: 0 !important;
	border-bottom: 0 !important;
}

/* Left-aligned labels: WordPress centres narrow children of a content column,
 * so line the pill up with the column's left edge instead. */
body:not(.home) main :is(.intentnexus-eyebrow, .intentnexus-section-label):not(.has-text-align-center):not(.has-text-align-right) {
	margin-left: calc((100% - min(100%, var(--intentnexus-content-w, var(--wp--style--global--content-size, 100%)))) / 2) !important;
	margin-right: auto !important;
}

/* Legal tables scroll inside their box on phones instead of widening the page. */
body:not(.home) .intentnexus-legal__table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

/* 404 page (templates/404.html): centred, like the homepage hero. */
body:not(.home) main.intentnexus-404 {
	text-align: center;
}
body:not(.home) main.intentnexus-404 > * {
	max-width: 720px;
	margin-left: auto !important;
	margin-right: auto !important;
}
body:not(.home) main.intentnexus-404 .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}
