/*
Theme Name: localGEO
Theme URI: https://localgeo.com
Author: LocalGEO Corporation
Description: localGEO marketing site: Prompt-to-Paid attribution. A child theme of Ollie with a light canvas, dark evidence panels, black pill buttons and the Geist typeface.
Template: ollie
Version: 0.3.0
Requires at least: 6.6
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: localgeo
*/

:root {
	--lg-ink: #07080b;
	--lg-ink-2: #0e1016;
	--lg-line-dark: rgba(255, 255, 255, 0.09);
	--lg-text-dark: #f2f4f8;
	--lg-muted-dark: #9aa1af;
	--lg-blue: #1877c0;
	--lg-blue-soft: #8ccbf5;
	--lg-green: #12b886;
	--lg-green-soft: #5be3b5;
	--lg-amber: #d68a00;
	--lg-radius: 0.9rem;
	--lg-radius-lg: 1.6rem;
	--lg-shadow: 0 1px 2px rgba(10, 11, 15, 0.04), 0 12px 32px -16px rgba(10, 11, 15, 0.12);
}

/* Buttons
---------------------------------------------------------------------------- */

.wp-block-button.is-style-secondary-button .wp-block-button__link {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--main);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border-light), 0 1px 2px rgba(10, 11, 15, 0.04);
}

.wp-block-button.is-style-secondary-button .wp-block-button__link:hover {
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--main-accent);
}

.wp-block-button__link {
	transition: opacity 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button:not(.is-style-secondary-button) .wp-block-button__link:hover {
	opacity: 0.88;
}

/* Buttons inside dark panels. */
.lg-dark .wp-block-button:not(.is-style-secondary-button) .wp-block-button__link {
	background: #fff;
	color: var(--lg-ink);
}

.lg-dark .wp-block-button.is-style-secondary-button .wp-block-button__link {
	background: rgba(255, 255, 255, 0.06);
	color: var(--lg-text-dark);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* Section labels ("eyebrow" pills)
---------------------------------------------------------------------------- */

.lg-eyebrow {
	display: flex !important;
	align-items: center;
	gap: 0.5em;
	width: fit-content;
	margin-inline: auto !important;
	padding: 0.3em 0.85em !important;
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: 100rem;
	background: var(--wp--preset--color--base);
	box-shadow: 0 1px 2px rgba(10, 11, 15, 0.04);
	font-weight: 500;
}

.lg-eyebrow.has-text-align-left {
	margin-inline: 0 !important;
}

.lg-dark .lg-eyebrow {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.14);
	color: var(--lg-text-dark);
	box-shadow: none;
}

/* Dark panels
---------------------------------------------------------------------------- */

.lg-dark {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-color: var(--lg-ink) !important;
	color: var(--lg-text-dark);
}

.lg-dark h1,
.lg-dark h2,
.lg-dark h3 {
	color: #fff;
}

.lg-dark .has-secondary-color,
.lg-dark .lg-muted {
	color: var(--lg-muted-dark) !important;
}

.lg-dark a:where(:not(.wp-element-button)) {
	color: var(--lg-text-dark);
}

/* Glow and a faint grid behind dark panels. */
.lg-dark::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(60% 50% at 50% -5%, rgba(64, 165, 234, 0.38), transparent 70%),
		radial-gradient(40% 40% at 95% 105%, rgba(18, 184, 134, 0.22), transparent 70%),
		radial-gradient(35% 35% at 0% 100%, rgba(64, 165, 234, 0.14), transparent 70%);
}

.lg-dark::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
	mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}

.lg-panel {
	border-radius: var(--lg-radius-lg);
}

/* Gradient text for the hero's second line. */
.lg-gradient-text {
	background: linear-gradient(90deg, #8ccbf5 0%, #5be3b5 70%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
}

/* The Prompt-to-Paid chain (hero visual)
---------------------------------------------------------------------------- */

.lg-chain {
	position: relative;
	margin-top: 1rem;
	padding: 1.25rem;
	border: 1px solid var(--lg-line-dark);
	border-radius: 1.25rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	text-align: left;
}

.lg-chain__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	align-items: center;
	padding: 0 0.25rem 1rem;
	border-bottom: 1px solid var(--lg-line-dark);
	font-size: 0.8rem;
	color: var(--lg-muted-dark);
}

.lg-chain__title {
	color: var(--lg-text-dark);
	font-weight: 500;
}

.lg-chain__title::before {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-right: 0.55rem;
	border-radius: 50%;
	background: var(--lg-green);
	box-shadow: 0 0 0 4px rgba(18, 184, 134, 0.18);
	vertical-align: 0.05rem;
}

.lg-chain__steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.6rem;
	margin: 1.1rem 0;
	padding: 0;
	list-style: none;
}

/* The rail that runs behind the steps, with a travelling pulse. */
.lg-chain__steps::before,
.lg-chain__steps::after {
	content: "";
	position: absolute;
	top: 1.15rem;
	left: 4%;
	right: 4%;
	height: 2px;
	border-radius: 2px;
}

.lg-chain__steps::before {
	background: linear-gradient(90deg, rgba(140, 203, 245, 0.35), rgba(91, 227, 181, 0.55));
}

.lg-chain__steps::after {
	width: 18%;
	right: auto;
	background: linear-gradient(90deg, transparent, #fff, transparent);
	opacity: 0.9;
	animation: lg-pulse 3.6s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

@keyframes lg-pulse {
	0% { transform: translateX(-10%); opacity: 0; }
	15% { opacity: 0.9; }
	85% { opacity: 0.9; }
	100% { transform: translateX(470%); opacity: 0; }
}

.lg-step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
	margin: 0 !important;
}

.lg-step__dot {
	display: grid;
	place-items: center;
	width: 2.3rem;
	height: 2.3rem;
	border-radius: 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: #12151d;
	color: var(--lg-blue-soft);
	font-size: 0.95rem;
	box-shadow: 0 0 0 5px var(--lg-ink-2);
}

.lg-step__label {
	margin-top: 0.35rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lg-muted-dark);
}

.lg-step__value {
	font-size: 0.86rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--lg-text-dark);
	overflow-wrap: anywhere;
}

.lg-step__meta {
	font-size: 0.74rem;
	line-height: 1.35;
	color: var(--lg-muted-dark);
}

.lg-step--paid .lg-step__dot {
	border-color: rgba(91, 227, 181, 0.55);
	background: rgba(18, 184, 134, 0.16);
	color: var(--lg-green-soft);
	box-shadow: 0 0 0 5px var(--lg-ink-2), 0 0 28px rgba(18, 184, 134, 0.55);
}

.lg-step--paid .lg-step__value {
	color: var(--lg-green-soft);
	font-size: 1.05rem;
}

.lg-chain__foot {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.6rem;
	padding-top: 1rem;
	border-top: 1px solid var(--lg-line-dark);
}

.lg-kv {
	padding: 0.65rem 0.8rem;
	border-radius: 0.7rem;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--lg-line-dark);
}

.lg-kv__k {
	display: block;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lg-muted-dark);
}

.lg-kv__v {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.9rem;
	color: var(--lg-text-dark);
}

.lg-kv__v code,
.lg-mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.82em;
}

.lg-kv--good .lg-kv__v {
	color: var(--lg-green-soft);
	font-weight: 600;
}

.lg-chain__note {
	margin: 0.9rem 0 0;
	font-size: 0.72rem;
	color: var(--lg-muted-dark);
	text-align: right;
}

@media (max-width: 900px) {
	.lg-chain__steps {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.lg-chain__steps::before,
	.lg-chain__steps::after {
		display: none;
	}

	.lg-step {
		display: grid;
		grid-template-columns: 2.3rem 1fr;
		column-gap: 0.85rem;
		padding: 0.55rem 0 !important;
	}

	.lg-step__dot {
		grid-row: span 3;
	}

	.lg-step__label {
		margin-top: 0;
	}

	.lg-chain__foot {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Engines strip under the hero
---------------------------------------------------------------------------- */

.lg-engine-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-engine-strip li {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: rgba(242, 244, 248, 0.72);
}

/* Cards
---------------------------------------------------------------------------- */

.lg-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: var(--lg-radius);
	box-shadow: 0 1px 2px rgba(10, 11, 15, 0.03);
}

.lg-card--lift {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lg-card--lift:hover {
	transform: translateY(-2px);
	box-shadow: var(--lg-shadow);
}

.lg-dark .lg-card {
	background: rgba(255, 255, 255, 0.035);
	border-color: var(--lg-line-dark);
	box-shadow: none;
}

.lg-icon {
	display: inline-grid !important;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 0.65rem;
	border: 1px solid var(--wp--preset--color--border-light);
	background: var(--wp--preset--color--tertiary);
	color: var(--wp--preset--color--primary);
	font-size: 1.05rem !important;
	line-height: 1 !important;
}

.lg-dark .lg-icon {
	background: rgba(64, 165, 234, 0.12);
	border-color: rgba(140, 203, 245, 0.25);
	color: var(--lg-blue-soft);
}

.lg-kicker {
	font-size: 0.72rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

.lg-dark .lg-kicker {
	color: var(--lg-blue-soft);
}

/* Contrast section: "where monitoring stops"
---------------------------------------------------------------------------- */

.lg-compare {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	gap: 1rem;
	align-items: stretch;
}

.lg-compare__col {
	padding: 1.75rem;
	border-radius: var(--lg-radius-lg);
	border: 1px solid var(--wp--preset--color--border-light);
	background: var(--wp--preset--color--base);
}

.lg-compare__col--them {
	background: transparent;
	border-style: dashed;
}

.lg-compare__col--us {
	background: var(--lg-ink);
	border-color: var(--lg-ink);
	color: var(--lg-text-dark);
	box-shadow: 0 30px 60px -30px rgba(7, 8, 11, 0.55);
	background-image: radial-gradient(70% 60% at 100% 0%, rgba(64, 165, 234, 0.35), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(18, 184, 134, 0.18), transparent 70%);
}

.lg-compare__label {
	margin: 0 0 1.1rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
}

.lg-compare__col--us .lg-compare__label {
	color: var(--lg-blue-soft);
}

.lg-compare ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-compare li {
	display: flex;
	gap: 0.7rem;
	align-items: baseline;
	padding: 0.6rem 0;
	border-top: 1px solid var(--wp--preset--color--border-light);
	font-size: 0.95rem;
}

.lg-compare__col--us li {
	border-top-color: var(--lg-line-dark);
}

.lg-compare li::before {
	flex: none;
	width: 1.1rem;
	font-weight: 700;
	text-align: center;
}

.lg-compare li.is-yes::before {
	content: "✓";
	color: var(--lg-green-soft);
}

.lg-compare__col--them li.is-yes::before {
	color: var(--wp--preset--color--secondary);
}

.lg-compare li.is-no::before {
	content: "—";
	color: #b9bec9;
}

.lg-compare__col--them li.is-no {
	color: #9aa0ad;
}

.lg-compare__stop {
	margin: 1rem 0 0;
	padding: 0.65rem 0.9rem;
	border-radius: 0.6rem;
	background: var(--wp--preset--color--tertiary);
	font-size: 0.82rem;
	color: var(--wp--preset--color--secondary);
}

@media (max-width: 800px) {
	.lg-compare {
		grid-template-columns: 1fr;
	}
}

/* Category comparison matrix
---------------------------------------------------------------------------- */

.lg-matrix-wrap {
	position: relative; /* contains the screen-reader labels, so they scroll with the table */
	overflow-x: auto;
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: var(--lg-radius-lg);
	background: var(--wp--preset--color--base);
	box-shadow: var(--lg-shadow);
}

.lg-matrix {
	width: 100%;
	min-width: 680px;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.92rem;
}

.lg-matrix th,
.lg-matrix td {
	padding: 0.95rem 1rem;
	border-bottom: 1px solid var(--wp--preset--color--border-light);
	text-align: center;
	vertical-align: middle;
}

.lg-matrix tbody tr:last-child th,
.lg-matrix tbody tr:last-child td {
	border-bottom: 0;
}

.lg-matrix thead th {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--secondary);
	width: 15%;
}

.lg-matrix thead th:first-child,
.lg-matrix tbody th {
	width: 40%;
	text-align: left;
}

.lg-matrix__corner {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lg-matrix tbody th {
	font-weight: 500;
	color: var(--wp--preset--color--main);
}

.lg-matrix td {
	font-size: 1.05rem;
}

.lg-matrix td.is-y {
	color: var(--wp--preset--color--main);
}

.lg-matrix td.is-p {
	color: #9aa0ad;
}

.lg-matrix td.is-n {
	color: #c5c9d2;
}

/* The localGEO column: a dark spine down the table. */
.lg-matrix .is-us {
	background: var(--lg-ink);
	color: var(--lg-green-soft) !important;
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.lg-matrix thead .is-us {
	background: var(--lg-ink) radial-gradient(120% 100% at 50% 0%, rgba(64, 165, 234, 0.55), transparent 70%);
	border-top-left-radius: 0;
	color: #fff;
}

.lg-matrix__us {
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #fff;
}

.lg-matrix__note {
	margin: 0;
	padding: 0.85rem 1.1rem;
	border-top: 1px solid var(--wp--preset--color--border-light);
	font-size: 0.75rem;
	color: var(--wp--preset--color--secondary);
}

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

/* Executive cards (CEO, CMO, CIO, CFO)
---------------------------------------------------------------------------- */

.lg-roles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-role {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.5rem !important;
	border-radius: var(--lg-radius);
	border: 1px solid var(--lg-line-dark);
	background: rgba(255, 255, 255, 0.035);
}

.lg-role__who {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lg-blue-soft);
}

.lg-role__q {
	font-size: 1.15rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: #fff;
}

.lg-role__a {
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--lg-muted-dark);
}

/* Enterprise-ready checklist
---------------------------------------------------------------------------- */

.lg-ready {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-ready li {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.25rem !important;
	border-radius: var(--lg-radius);
	border: 1px solid var(--wp--preset--color--border-light);
	background: var(--wp--preset--color--base);
}

.lg-ready strong {
	font-weight: 600;
}

.lg-ready strong::before {
	content: "✓";
	display: inline-grid;
	place-items: center;
	width: 1.3rem;
	height: 1.3rem;
	margin-right: 0.55rem;
	border-radius: 50%;
	background: #e6f8f1;
	color: #0b8a63;
	font-size: 0.75rem;
	vertical-align: 0.05rem;
}

.lg-ready span {
	font-size: 0.86rem;
	color: var(--wp--preset--color--secondary);
	line-height: 1.45;
}

/* Five-stage platform rail (Measure, Capture, Attribute, Prove, Fix)
---------------------------------------------------------------------------- */

.lg-stage-num {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.75rem !important;
	color: var(--wp--preset--color--secondary);
}

/* Evidence tiers and confidence meters
---------------------------------------------------------------------------- */

.lg-tiers {
	display: grid;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-tier {
	display: grid;
	grid-template-columns: 2.1rem minmax(0, 1.3fr) minmax(0, 1.2fr) 3.4rem;
	gap: 1rem;
	align-items: center;
	padding: 0.85rem 1rem !important;
	border-radius: 0.75rem;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--lg-line-dark);
}

.lg-tier__name {
	font-weight: 600;
	font-size: 0.92rem;
	color: #fff;
}

.lg-tier__why {
	display: block;
	margin-top: 0.15rem;
	font-weight: 400;
	font-size: 0.8rem;
	color: var(--lg-muted-dark);
}

.lg-meter {
	position: relative;
	height: 0.45rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.lg-meter > span {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--v, 0%);
	border-radius: 1rem;
	background: linear-gradient(90deg, var(--lg-blue), var(--lg-green-soft));
}

.lg-tier--low .lg-meter > span {
	background: linear-gradient(90deg, #6b7280, #a3a9b6);
}

.lg-tier__score {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 1rem;
	font-weight: 600;
	text-align: right;
	color: #fff;
}

@media (max-width: 700px) {
	.lg-tier {
		grid-template-columns: 2.1rem minmax(0, 1fr) 3.4rem;
	}

	.lg-tier .lg-meter {
		grid-column: 2 / -1;
		grid-row: 2;
	}
}

/* Principles list beside the tiers. */
.lg-principles {
	display: grid;
	gap: 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-principles li {
	padding-left: 1.1rem;
	border-left: 2px solid rgba(140, 203, 245, 0.45);
}

.lg-principles strong {
	display: block;
	color: #fff;
	font-weight: 600;
}

.lg-principles span {
	font-size: 0.9rem;
	color: var(--lg-muted-dark);
}

/* Zero-click signals
---------------------------------------------------------------------------- */

.lg-signals {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-signal {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.1rem 1.15rem !important;
	border-radius: 0.85rem;
	border: 1px solid var(--wp--preset--color--border-light);
	background: var(--wp--preset--color--base);
}

.lg-signal__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
}

.lg-signal__name {
	font-weight: 600;
	font-size: 0.95rem;
}

.lg-signal__desc {
	font-size: 0.85rem;
	color: var(--wp--preset--color--secondary);
	line-height: 1.45;
}

/* Status badges
---------------------------------------------------------------------------- */

.lg-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	flex: none;
	padding: 0.18em 0.6em;
	border-radius: 100rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.5;
	white-space: nowrap;
}

.lg-badge::before {
	content: "";
	width: 0.42em;
	height: 0.42em;
	border-radius: 50%;
	background: currentColor;
}

.lg-badge--live {
	background: #e6f8f1;
	color: #0b8a63;
}

.lg-badge--testing {
	background: #fff4e0;
	color: #a86a00;
}

.lg-badge--next {
	background: #e9eeff;
	color: #2f4fd6;
}

.lg-badge--roadmap {
	background: #f0f1f4;
	color: #6b7180;
}

.lg-dark .lg-badge--live { background: rgba(18, 184, 134, 0.16); color: var(--lg-green-soft); }
.lg-dark .lg-badge--testing { background: rgba(214, 138, 0, 0.18); color: #ffc15e; }
.lg-dark .lg-badge--next { background: rgba(64, 165, 234, 0.2); color: var(--lg-blue-soft); }
.lg-dark .lg-badge--roadmap { background: rgba(255, 255, 255, 0.08); color: var(--lg-muted-dark); }

.lg-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.82rem;
	color: var(--wp--preset--color--secondary);
}

.lg-legend li {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

/* Integration groups and tiles
---------------------------------------------------------------------------- */

.lg-int-group {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
	gap: 1.5rem 2.5rem;
	padding: 2rem 0;
	border-top: 1px solid var(--wp--preset--color--border-light);
}

.lg-int-group h3 {
	margin: 0 0 0.4rem;
	font-size: 1.15rem;
}

.lg-int-group p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--wp--preset--color--secondary);
}

.lg-int-count {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.8rem;
	color: var(--wp--preset--color--secondary);
}

.lg-tiles {
	display: grid;
	align-content: start;
	grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-tile {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.6rem;
	min-height: 3rem;
	padding: 0.6rem 0.8rem 0.6rem 0.9rem !important;
	border-radius: 0.7rem;
	border: 1px solid var(--wp--preset--color--border-light);
	background: var(--wp--preset--color--base);
	font-size: 0.88rem;
	font-weight: 500;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lg-tile:hover {
	border-color: var(--wp--preset--color--main-accent);
	box-shadow: var(--lg-shadow);
}

.lg-tile__mono {
	display: grid;
	place-items: center;
	flex: none;
	width: 1.7rem;
	height: 1.7rem;
	margin-right: 0.15rem;
	border-radius: 0.45rem;
	background: var(--wp--preset--color--tertiary);
	border: 1px solid var(--wp--preset--color--border-light);
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--wp--preset--color--secondary);
}

.lg-tile__name {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
}

@media (max-width: 800px) {
	.lg-int-group {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

/* Integration summary (home page): category cards with counts. */
.lg-int-summary {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-int-summary > li {
	padding: 1.25rem !important;
	border-radius: var(--lg-radius);
	border: 1px solid var(--wp--preset--color--border-light);
	background: var(--wp--preset--color--base);
}

.lg-int-summary h3 {
	margin: 0 0 0.75rem;
	font-size: 0.98rem;
}

.lg-int-summary .lg-names {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.7;
	color: var(--wp--preset--color--secondary);
}

.lg-int-summary .lg-names b {
	font-weight: 500;
	color: var(--wp--preset--color--main);
}

.lg-int-summary .lg-names .lg-live-dot {
	display: inline-block;
	width: 0.42rem;
	height: 0.42rem;
	margin: 0 0.3rem 0.1rem 0;
	border-radius: 50%;
	background: var(--lg-green);
}

/* Big numbers row
---------------------------------------------------------------------------- */

.lg-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--border-light);
	border-bottom: 1px solid var(--wp--preset--color--border-light);
}

.lg-stats li {
	padding: 1.6rem 1.25rem !important;
	border-left: 1px solid var(--wp--preset--color--border-light);
}

.lg-stats li:first-child {
	border-left: 0;
}

.lg-stats b {
	display: block;
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1;
}

.lg-stats span {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--wp--preset--color--secondary);
}

@media (max-width: 800px) {
	.lg-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lg-stats li:nth-child(3) {
		border-left: 0;
	}

	.lg-stats li:nth-child(n + 3) {
		border-top: 1px solid var(--wp--preset--color--border-light);
	}
}

/* Security posture rows
---------------------------------------------------------------------------- */

.lg-posture {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--lg-line-dark);
}

.lg-posture li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.3rem 1.5rem;
	align-items: center;
	padding: 1rem 0 !important;
	border-bottom: 1px solid var(--lg-line-dark);
}

.lg-posture strong {
	font-weight: 600;
	color: #fff;
}

.lg-posture span.lg-posture__desc {
	grid-column: 1;
	font-size: 0.86rem;
	color: var(--lg-muted-dark);
}

.lg-posture .lg-badge {
	grid-column: 2;
	grid-row: 1 / span 2;
}

/* Light variant of posture rows (security page). */
.lg-posture--light {
	border-top-color: var(--wp--preset--color--border-light);
}

.lg-posture--light li {
	border-bottom-color: var(--wp--preset--color--border-light);
}

.lg-posture--light strong {
	color: var(--wp--preset--color--main);
}

.lg-posture--light span.lg-posture__desc {
	color: var(--wp--preset--color--secondary);
}

/* FAQ
---------------------------------------------------------------------------- */

.lg-faq .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--border-light);
	padding-block: var(--wp--preset--spacing--small);
}

.lg-faq .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-weight: 500;
}

.lg-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.lg-faq .wp-block-details summary::after {
	content: "+";
	flex: none;
	color: var(--wp--preset--color--secondary);
	font-weight: 400;
	font-size: 1.25em;
	line-height: 1;
	transition: transform 0.2s ease;
}

.lg-faq .wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

/* Ollie strips padding from the first and last <li> in page content; the card
   components above use !important padding so every card in a grid matches. */

/* Inline code inside the dark evidence record. */
.lg-kv__v code {
	padding: 0;
	background: none;
	color: var(--lg-text-dark);
}

/* Evidence grade badges and the range bar
---------------------------------------------------------------------------- */

.lg-grade {
	display: grid;
	place-items: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 0.55rem;
	background: linear-gradient(135deg, rgba(64, 165, 234, 0.35), rgba(18, 184, 134, 0.35));
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
}

.lg-tier--low .lg-grade {
	background: rgba(255, 255, 255, 0.06);
	color: var(--lg-muted-dark);
}

.lg-tier--range .lg-grade {
	background: transparent;
	border-style: dashed;
	color: var(--lg-muted-dark);
}

.lg-tier--range .lg-meter > span {
	background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 6px, transparent 6px 12px);
}

.lg-tier__score {
	white-space: nowrap;
	font-size: 0.9rem;
}

/* Fix at the source: numbered list and the Truth File code panel
---------------------------------------------------------------------------- */

.lg-fixlist {
	display: grid;
	gap: 1.1rem;
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}

.lg-fixlist li {
	display: grid;
	grid-template-columns: 2.2rem 1fr;
	gap: 0.9rem;
	padding: 0 !important;
}

.lg-fixlist__n {
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--border-light);
	background: var(--wp--preset--color--tertiary);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.75rem;
	color: var(--wp--preset--color--primary);
}

.lg-fixlist strong {
	display: block;
	margin-bottom: 0.2rem;
	font-weight: 600;
}

.lg-fixlist li > span:last-child > span {
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--wp--preset--color--secondary);
}

.lg-code {
	overflow: hidden;
	border-radius: 1rem;
	background: var(--lg-ink);
	color: #d7dbe4;
	box-shadow: 0 30px 60px -30px rgba(7, 8, 11, 0.55);
}

.lg-code__bar {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--lg-line-dark);
	font-size: 0.78rem;
}

.lg-code__bar > span {
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
}

.lg-code__bar b {
	margin-left: 0.5rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-weight: 500;
	color: #fff;
}

.lg-code__bar em {
	margin-left: auto;
	font-style: normal;
	font-weight: 600;
	color: var(--lg-green-soft);
}

.lg-code__bar em::before {
	content: "✓ ";
}

.lg-code pre {
	margin: 0;
	padding: 1.1rem 1.25rem;
	overflow-x: auto;
	background: none;
	border: 0;
	font-size: 0.8rem;
	line-height: 1.6;
}

.lg-code code {
	padding: 0;
	background: none;
	color: #c9d3ff;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.lg-code__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	border-top: 1px solid var(--lg-line-dark);
	font-size: 0.78rem;
	color: var(--lg-muted-dark);
}

.lg-code__ok {
	color: var(--lg-green-soft);
	font-weight: 600;
}

.lg-code__note,
.lg-scorecard__note {
	margin: 0.6rem 0 0;
	font-size: 0.72rem;
	text-align: right;
	color: var(--wp--preset--color--secondary);
}

/* Scorecard tiles
---------------------------------------------------------------------------- */

.lg-scorecard {
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: var(--lg-radius-lg);
	border: 1px solid var(--wp--preset--color--border-light);
	background: var(--wp--preset--color--base);
}

.lg-scorecard__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 0.75rem 2rem;
	margin-bottom: 1.25rem;
}

.lg-scorecard__title {
	margin: 0.3rem 0 0;
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: -0.025em;
}

.lg-scorecard__sub {
	max-width: 30rem;
	margin: 0;
	font-size: 0.88rem;
	color: var(--wp--preset--color--secondary);
}

.lg-scorecard__tiles {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-scorecard__tiles li {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.9rem 0.85rem !important;
	border-radius: 0.75rem;
	border: 1px solid var(--wp--preset--color--border-light);
	background: var(--wp--preset--color--tertiary);
}

.lg-scorecard__tiles span {
	font-size: 0.72rem;
	color: var(--wp--preset--color--secondary);
	line-height: 1.25;
	min-height: 1.8em;
}

.lg-scorecard__tiles b {
	font-size: 1.75rem;
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1;
}

.lg-scorecard__tiles em {
	font-style: normal;
	font-size: 0.72rem;
	color: #0b8a63;
}

.lg-scorecard__tiles em.is-down {
	color: #c2410c;
}

.lg-scorecard__tiles .is-overall {
	background: var(--lg-ink);
	border-color: var(--lg-ink);
}

.lg-scorecard__tiles .is-overall span {
	color: var(--lg-muted-dark);
}

.lg-scorecard__tiles .is-overall b {
	color: #fff;
}

.lg-scorecard__tiles .is-overall em {
	color: var(--lg-green-soft);
}

@media (max-width: 900px) {
	.lg-scorecard__tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lg-scorecard__tiles .is-overall {
		grid-column: 1 / -1;
	}
}

/* Callout (one-number policy)
---------------------------------------------------------------------------- */

.lg-callout {
	display: grid;
	grid-template-columns: 2.6rem 1fr;
	gap: 1rem;
	align-items: start;
	padding: 1.25rem 1.4rem;
	border-radius: var(--lg-radius);
	border: 1px solid #cfe9df;
	background: linear-gradient(90deg, #f0faf6, #ffffff 70%);
}

.lg-callout__icon {
	display: grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 0.7rem;
	background: #e6f8f1;
	color: #0b8a63;
	font-size: 1.15rem;
}

.lg-callout strong {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

.lg-callout span:not(.lg-callout__icon) {
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--wp--preset--color--secondary);
}

/* Comply add-on (pricing)
---------------------------------------------------------------------------- */

.lg-addon {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
	gap: 1.5rem 2.5rem;
	align-items: center;
	margin-top: 0.75rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: var(--lg-radius-lg);
	background: var(--lg-ink) radial-gradient(70% 120% at 100% 0%, rgba(18, 184, 134, 0.22), transparent 70%);
	color: var(--lg-text-dark);
}

.lg-addon .lg-kicker {
	color: var(--lg-green-soft);
}

.lg-addon__title {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 500;
	letter-spacing: -0.03em;
	color: #fff;
}

.lg-addon__desc {
	margin: 0.4rem 0 0;
	font-size: 0.9rem;
	color: var(--lg-muted-dark);
}

.lg-addon__list {
	display: grid;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.88rem;
}

.lg-addon__list li {
	padding: 0 !important;
}

.lg-addon__list li::before {
	content: "✓";
	margin-right: 0.55rem;
	color: var(--lg-green-soft);
	font-weight: 700;
}

.lg-addon__cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.7rem;
}

.lg-addon__price {
	font-size: 1.15rem;
	font-weight: 500;
	color: #fff;
}

.lg-addon__btn {
	padding: 0.62em 1.3em;
	border-radius: 100rem;
	background: #fff;
	color: var(--lg-ink) !important;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	text-decoration: none;
}

@media (max-width: 900px) {
	.lg-addon {
		grid-template-columns: 1fr;
	}
}

/* Stacked variant of the role cards (Value Atlas metrics). */
.lg-roles--stack {
	grid-template-columns: 1fr;
}

/* Description text in these components is inline <span>s; make them blocks so
   they use their own line height rather than the list item's. */
.lg-fixlist li > span:last-child > span,
.lg-callout span:not(.lg-callout__icon),
.lg-principles span {
	display: block;
	line-height: 1.5;
}

.lg-principles span {
	margin-top: 0.2rem;
}

/* Scorecard deltas: neutral by default, green only when up. */
.lg-scorecard__tiles li:not(.is-overall) em {
	color: var(--wp--preset--color--secondary);
}

.lg-scorecard__tiles li:not(.is-overall) em.is-up {
	color: #0b8a63;
}

/* Text pages (legal, contact): document-sized headings, not section-sized. */
.page-template-default .wp-block-post-content h2 {
	margin-top: 2.2em;
	font-size: 1.45rem;
	letter-spacing: -0.02em;
}

.page-template-default .wp-block-post-content table {
	font-size: 0.9rem;
}

/* Logo
---------------------------------------------------------------------------- */

.lg-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.lg-logo img {
	display: block;
	width: auto;
	height: 30px;
}

.site-footer .lg-logo img {
	height: 26px;
}

@media (max-width: 600px) {
	.lg-logo img {
		height: 24px;
	}
}

/* Placeholder content that still needs a decision or real copy. */
.lg-placeholder {
	outline: 1px dashed #d97706;
	outline-offset: 4px;
}

/* Footer
---------------------------------------------------------------------------- */

.site-footer .wp-block-site-title a {
	color: var(--wp--preset--color--main);
}

.site-footer a:where(:not(.wp-block-site-title a)) {
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--wp--preset--color--main);
}

.site-footer .wp-block-list li {
	margin-bottom: 0.15rem;
}

/* Header
---------------------------------------------------------------------------- */

[id] {
	scroll-margin-top: 5rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
}

.lg-header {
	background-color: rgba(246, 247, 249, 0.82) !important;
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}

	.lg-header .wp-block-button.is-style-secondary-button {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lg-chain__steps::after {
		animation: none;
		display: none;
	}

	.wp-block-button__link:hover,
	.lg-card--lift:hover {
		transform: none;
	}
}
