/* =========================================================================
   /enterprise-wordpress/ (SEO landing page), the sections only this design
   draws: template-parts/sections/seo/ent-*.php, plus small tweaks to the
   shared partials where this export draws them slightly differently.

   Ported from Lovable project d79e8011. Colours are the --seo-* tokens from
   seo-core.css only. The export's "accent" (shadcn's near-white, used for the
   case study tab bar, arrow, link hover and result bullets, where it would
   be invisible on white) is read as the page's green.

   Page-scoped rules use :where(.seo--enterprise-wordpress) so they carry no
   more weight than the seo-core rule they follow.
   ========================================================================= */

/* The dark subtitle this design puts under most H2s. */
.seo-ent-sub {
	max-width: 36rem;
	margin-top: 20px;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.6;
	color: var(--seo-fg);
}
@media (min-width: 768px) {
	.seo-ent-sub { font-size: 1.25rem; }
}

@keyframes seo-ent-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}
@keyframes seo-ent-pulse {
	50% { opacity: 0.5; }
}

/* ------------------------------------------------------------- ent-hero -- */

.seo-ent-hero {
	border-bottom: 1px solid var(--seo-rule);
	background: var(--seo-paper);
}
.seo-ent-hero > .seo-wrap {
	padding-block: 64px 48px;
	animation: seo-ent-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (min-width: 768px) {
	.seo-ent-hero > .seo-wrap { padding-top: 80px; }
}
.seo-ent-hero-eyebrow { gap: 16px; margin-bottom: 32px; font-size: 0.75rem; letter-spacing: 0.2em; }
.seo-ent-hero-eyebrow .seo-eyebrow-rule { width: 28px; background: var(--seo-yellow); }
.seo-ent-hero-h1 { max-width: 900px; }

.seo-ent-hero-grid { display: grid; gap: 40px; margin-top: 32px; }
@media (min-width: 768px) {
	.seo-ent-hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
	.seo-ent-hero-copy { grid-column: 1 / span 7; }
	.seo-ent-panel { grid-column: 9 / span 4; }
}
.seo-ent-hero-p { font-size: 1.125rem; line-height: 1.6; color: var(--seo-ink); }
.seo-ent-hero-p + .seo-ent-hero-p { margin-top: 16px; }
.seo-ent-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px;
	padding-top: 40px;
}

.seo-ent-panel { padding: 4px 0 4px 20px; border-left: 4px solid var(--seo-yellow); }
.seo-ent-panel-line { font-size: 1rem; color: var(--seo-ink); }
.seo-ent-panel-line + .seo-ent-panel-line { margin-top: 8px; }
.seo-ent-panel-line--muted { color: var(--seo-muted); }
.seo-ent-panel-line + .seo-ent-panel-line--muted { margin-top: 4px; }
.seo-ent-panel-word {
	padding-inline: 4px;
	background: color-mix(in oklab, var(--seo-yellow) 30%, transparent);
	font-weight: 600;
}
.seo-ent-panel-caret { animation: seo-ent-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

.seo-ent-pillars {
	display: grid;
	margin-top: 64px;
	border-top: 1px dashed var(--seo-rule);
}
@media (min-width: 640px) {
	.seo-ent-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.seo-ent-pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.seo-ent-pillar { padding-block: 32px; transition: background-color 0.2s ease; }
.seo-ent-pillar:hover { background: var(--seo-alt); }
.seo-ent-pillar:first-child:hover { background: transparent; }
@media (min-width: 640px) {
	.seo-ent-pillar { padding-inline: 24px; }
	.seo-ent-pillar:first-child { padding-left: 0; }
}
@media (min-width: 1024px) {
	.seo-ent-pillar:not(:last-child) { border-right: 1px dashed var(--seo-rule); }
}
.seo-ent-pillar-title { font-weight: 600; color: var(--seo-ink); }
.seo-ent-pillar-body { margin-top: 8px; font-size: 1.125rem; color: var(--seo-muted); }
.seo-ent-pillar-fig { display: flex; align-items: baseline; gap: 8px; margin-top: 24px; }
.seo-ent-pillar-value { font-size: 1.25rem; font-weight: 700; color: var(--seo-ink); transition: color 0.2s ease; }
.seo-ent-pillar:hover .seo-ent-pillar-value { color: var(--seo-green-deep); }
.seo-ent-pillar-unit { font-size: 0.65rem; color: var(--seo-yellow); }

/* ----------------------------------------------------- logo-strip tweak -- */

/* This design shows the logos in colour at 70%, a step taller from 768px. */
:where(.seo--enterprise-wordpress) .seo-logos-list img { opacity: 0.7; filter: none; }
@media (min-width: 768px) {
	:where(.seo--enterprise-wordpress) .seo-logos-list img { height: 24px; }
}

/* ---------------------------------------------------------- ent-feature -- */

.seo-ent-feature-grid { display: grid; gap: 40px; }
@media (min-width: 768px) {
	.seo-ent-feature-grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: center;
		gap: 64px;
	}
	.seo-ent-feature--media-first .seo-ent-feature-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
		gap: 56px;
	}
}
.seo-ent-feature--media-first .seo-ent-feature-media { order: -1; }
.seo-ent-feature-body { margin-top: 32px; }
.seo-ent-feature-body > * + * { margin-top: 24px; }
.seo-ent-feature .seo-ent-feature-body .seo-body { line-height: 1.6; }
.seo-ent-feature--media-first .seo-ent-feature-body { margin-top: 20px; }
.seo-ent-feature--media-first .seo-ent-feature-body .seo-body { line-height: 1.85; }
.seo-ent-feature-body strong { font-weight: 700; color: var(--seo-fg); }
.seo-ent-feature-body > .seo-ent-feature-cta { margin-top: 0; padding-top: 12px; }
.seo-ent-feature-img {
	display: block;
	width: 100%;
	max-width: 420px;
	margin-inline: auto;
	transition: opacity 0.2s ease;
}
a.seo-ent-feature-img:hover { opacity: 0.8; }
.seo-ent-feature-img img { width: 100%; }
.seo-ent-feature-video {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	border: 1px solid var(--seo-rule);
}
.seo-ent-feature-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------- ent-gap-grid -- */

.seo-ent-gap-grid {
	display: grid;
	gap: 1px;
	margin-top: 56px;
	border: 1px solid var(--seo-rule);
	background: var(--seo-rule);
}
@media (min-width: 768px) {
	.seo-ent-gap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.seo-ent-gap-cell {
	display: flex;
	flex-direction: column;
	padding: 32px;
	background: var(--seo-paper);
}
@media (min-width: 768px) {
	.seo-ent-gap-cell { padding: 40px; }
}
.seo-ent-gap-title { margin-top: 20px; }
.seo-ent-gap-body { margin-top: 16px; line-height: 1.7; }
.seo-ent-gap-impact { margin-top: auto; padding-top: 32px; color: var(--seo-green-deep); }

/* -------------------------------------------------- contact-form tweak -- */

@media (min-width: 768px) {
	:where(.seo--enterprise-wordpress) .seo-form-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

/* ------------------------------------------------------------- ent-rows -- */

.seo-ent-row {
	display: grid;
	gap: 24px;
	padding-block: 48px;
	border-top: 1px solid var(--seo-band-rule);
}
@media (min-width: 768px) {
	.seo-ent-row {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 56px;
		padding-block: 64px;
	}
}
.seo-ent-row-lead { font-size: 1.125rem; font-weight: 500; line-height: 1.7; color: var(--seo-fg); }
.seo-ent-row-lead + .seo-ent-row-body { margin-top: 20px; }

.seo-ent-rows--headed .seo-ent-rows-list { margin-top: 48px; border-top: 1px solid var(--seo-band-rule); }
.seo-ent-rows--headed .seo-ent-row {
	align-items: center;
	gap: 16px;
	padding: 32px 16px;
	border-top: 0;
	border-bottom: 1px solid var(--seo-band-rule);
	transition: background-color 0.2s ease;
}
@media (min-width: 768px) {
	.seo-ent-rows--headed .seo-ent-row { gap: 40px; padding-inline: 24px; }
}
.seo-ent-rows--headed .seo-ent-row:hover { background: var(--seo-green); }
.seo-ent-rows--headed .seo-ent-row:active { background: var(--seo-green-deep); }
.seo-ent-rows--headed .seo-ent-row-body { line-height: 1.8; transition: color 0.2s ease; }
.seo-ent-rows--headed .seo-ent-row:hover .seo-ent-row-body { color: var(--seo-ink); }

/* -------------------------------------------------------- ent-tool-grid -- */

.seo-ent-tools-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin-top: 56px;
	border: 1px solid var(--seo-rule-dark);
	background: var(--seo-rule-dark);
}
@media (min-width: 768px) {
	.seo-ent-tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.seo-ent-tool { padding: 24px; background: var(--seo-ink); transition: background-color 0.2s ease; }
@media (min-width: 768px) {
	.seo-ent-tool { padding: 32px; }
}
.seo-ent-tool:hover { background: var(--seo-green); }
.seo-ent-tool-name { font-size: 1.125rem; font-weight: 700; color: var(--seo-paper); }
.seo-ent-tool-role { margin-top: 8px; color: var(--seo-dark-muted); }
.seo-ent-tool:hover .seo-ent-tool-name,
.seo-ent-tool:hover .seo-ent-tool-role { color: var(--seo-ink); }

/* ------------------------------------------------------- ent-layer-flow -- */

.seo-ent-flow .seo-lede { max-width: 42rem; margin-top: 20px; font-size: 1.125rem; line-height: 1.6; }
.seo-ent-flow-row { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 768px) {
	.seo-ent-flow-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
}
.seo-ent-flow-item { position: relative; display: flex; }
.seo-ent-flow-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 20px;
	border: 1px solid var(--seo-rule);
	background: var(--seo-paper);
	color: var(--seo-ink);
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.seo-ent-flow-card:hover { border-color: var(--seo-ink); }
.seo-ent-flow-item.is-active .seo-ent-flow-card { border-color: var(--seo-ink); background: var(--seo-ink); color: var(--seo-paper); }
.seo-ent-flow-label { color: var(--seo-muted); }
.seo-ent-flow-item.is-active .seo-ent-flow-label { color: var(--seo-green); }
.seo-ent-flow-nodes { display: grid; gap: 12px; margin-top: 16px; }
.seo-ent-flow-node { display: block; padding-top: 12px; border-top: 1px solid var(--seo-rule); }
.seo-ent-flow-item.is-active .seo-ent-flow-node { border-color: var(--seo-rule-dark); }
.seo-ent-flow-name { display: block; font-size: 0.875rem; font-weight: 600; }
.seo-ent-flow-sub { display: block; font-size: 0.75rem; color: var(--seo-muted); }
.seo-ent-flow-item.is-active .seo-ent-flow-sub { color: var(--seo-dark-muted); }
.seo-ent-flow-status { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 0.6rem; }
.seo-ent-flow-pulse {
	flex: none;
	width: 6px;
	height: 6px;
	background: var(--seo-green);
	animation: seo-ent-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.seo-ent-flow-arrow { display: none; }
@media (min-width: 768px) {
	.seo-ent-flow-arrow {
		position: absolute;
		top: 50%;
		right: -12px;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 24px;
		height: 24px;
		background: var(--seo-green);
		color: var(--seo-ink);
		font-size: 0.75rem;
		font-weight: 700;
		transform: translateY(-50%);
	}
}
.seo-ent-flow-panel {
	display: none;
	margin-top: 32px;
	padding: 24px;
	border-left: 2px solid var(--seo-green);
	background: var(--seo-alt);
}
@media (min-width: 768px) {
	.seo-ent-flow-panel { padding: 32px; }
}
.seo-ent-flow-panel.is-active { display: block; animation: seo-ent-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.seo-ent-flow-desc { margin-top: 8px; line-height: 1.7; color: var(--seo-ink); }

/* ----------------------------------------------------------- ent-stages -- */

.seo-ent-stages-grid { display: grid; gap: 40px; margin-top: 56px; }
@media (min-width: 768px) {
	.seo-ent-stages-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
}
.seo-ent-stages-list { align-self: start; border-top: 1px solid var(--seo-band-rule); }
.seo-ent-stage { border-bottom: 1px solid var(--seo-band-rule); }
.seo-ent-stage-btn {
	display: flex;
	align-items: center;
	gap: 20px;
	width: 100%;
	padding: 20px 16px;
	color: var(--seo-ink);
	transition: background-color 0.2s ease;
}
.seo-ent-stage-btn:hover { background: var(--seo-alt); }
.seo-ent-stage.is-active .seo-ent-stage-btn { background: var(--seo-green); }
.seo-ent-stage-num { flex: none; width: 24px; }
.seo-ent-stage-title { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.seo-ent-stages-card {
	display: none;
	padding: 32px;
	border: 1px solid var(--seo-rule);
	background: var(--seo-alt);
}
@media (min-width: 768px) {
	.seo-ent-stages-card { padding: 48px; }
}
.seo-ent-stages-card.is-active { display: block; animation: seo-ent-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.seo-ent-stages-title { margin-top: 16px; font-size: clamp(24px, 2.4vw, 30px); }
.seo-ent-stages-body { margin-top: 20px; line-height: 1.75; }
.seo-ent-stages-out { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--seo-rule); }
.seo-ent-stages-out-label { color: var(--seo-green-deep); }
.seo-ent-stages-out-text { margin-top: 8px; font-weight: 500; color: var(--seo-ink); }
.seo-ent-stages-bar { display: flex; gap: 6px; margin-top: 40px; }
.seo-ent-stages-tick { flex: 1; height: 4px; background: var(--seo-rule); }
.seo-ent-stages-tick.is-done { background: var(--seo-green); }

/* ent-case-tabs: moved to seo-core.css, shared with Multisite. */

/* -------------------------------------------------------------- ent-faq -- */

.seo-ent-faq-list { margin-top: 48px; border-top: 1px solid var(--seo-band-rule); }
.seo-ent-faq-item { border-bottom: 1px solid var(--seo-band-rule); }
.seo-ent-faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 24px;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--seo-fg);
	list-style: none;
	cursor: pointer;
}
.seo-ent-faq-q::-webkit-details-marker { display: none; }
.seo-ent-faq-q:hover { text-decoration: underline; }
.seo-ent-faq-chev {
	flex: none;
	width: 16px;
	height: 16px;
	color: var(--seo-fg-muted);
	transition: transform 0.2s ease;
}
.seo-ent-faq-item[open] .seo-ent-faq-chev { transform: rotate(180deg); }
.seo-ent-faq-a { padding-bottom: 24px; }
.seo-ent-faq-a .seo-body { line-height: 1.8; }
.seo-ent-faq-a .seo-body + .seo-body { margin-top: 16px; }

/* ----------------------------------------------------- stat-grid tweaks -- */

:where(.seo--enterprise-wordpress) .seo-stats .seo-lede {
	max-width: 48rem;
	margin-top: 20px;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.6;
	color: var(--seo-fg);
}
@media (min-width: 768px) {
	:where(.seo--enterprise-wordpress) .seo-stats .seo-lede { font-size: 1.25rem; }
	:where(.seo--enterprise-wordpress) .seo-stats-item { padding: 40px; }
}
:where(.seo--enterprise-wordpress) .seo-stats-grid { margin-top: 56px; }
:where(.seo--enterprise-wordpress) .seo-stats-label {
	margin-top: 16px;
	font-family: var(--seo-sans);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: normal;
	text-transform: none;
}

/* ----------------------------------------------------- close-cta tweak --- */

/* The shared band is on the deepest ink; this design sets it on ink. */
:where(.seo--enterprise-wordpress) .seo-close { background: var(--seo-ink); }

/* -------------------------------------------------------- reduced motion -- */

@media (prefers-reduced-motion: reduce) {
	.seo-ent-hero > .seo-wrap,
	.seo-ent-panel-caret,
	.seo-ent-flow-pulse,
	.seo-ent-flow-panel.is-active,
	.seo-ent-stages-card.is-active,
	.seo-ent-cases-panel { animation: none; }
}
