/* =========================================================================
   /wordpress-ecommerce/ (Lovable 694f5c9a), the sections only this design
   draws: template-parts/sections/seo/ec-*.php, in page order. Colours are
   the --seo-* tokens from seo-core.css; nothing else.
   ========================================================================= */

/* This export's Eyebrow primitive is ink (paper on dark bands) over a 2px
   green rule, where the family default is green text over a 1px rule. The
   page class is needed to outrank seo-core's tone rules for the eyebrow. */
.seo--wordpress-ecommerce .seo-eyebrow { color: var(--seo-fg); }
.seo--wordpress-ecommerce .seo-eyebrow-rule { height: 2px; }

/* Shared 12-column split: head in 5, content in 7. */
.seo-ec-split { display: grid; gap: 48px; }
@media (min-width: 768px) {
	.seo-ec-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
}

/* A 7px green square ahead of a line of text. */
.seo-ec-bullet { display: flex; align-items: center; gap: 12px; }
.seo-ec-bullet::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	background: var(--seo-green);
}

.seo-ec-yellow { color: var(--seo-yellow); }

/* Lead paragraph then supporting ones. */
.seo-ec-lead-p { font-size: 1rem; line-height: 1.8; color: var(--seo-fg-muted); }
.seo-ec-lead-p:first-child { font-size: 1.125rem; color: var(--seo-fg); }

/* The design's secondary link: a yellow 2px underline instead of the grey. */
.seo-ec-cta-yellow,
.seo-ec-cta-yellow:hover {
	padding-bottom: 8px;
	border-bottom: 2px solid var(--seo-yellow);
}

/* --------------------------------------------------------------- ec-hero -- */

.seo-ec-hero { padding-top: clamp(48px, 6vw, 96px); }
.seo-ec-hero .seo-eyebrow { margin-bottom: 32px; }
.seo-ec-hero-h em { font-style: normal; color: var(--seo-green); }
.seo-ec-hero-grid { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 768px) {
	.seo-ec-hero-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; margin-top: 48px; }
}
.seo-ec-hero-copy > * + * { margin-top: 20px; }
.seo-ec-hero-p { font-size: 1rem; line-height: 1.75; color: var(--seo-fg-muted); }
.seo-ec-hero-p:first-child { font-size: 1.125rem; color: var(--seo-fg); }
@media (min-width: 768px) {
	.seo-ec-hero-p:first-child { font-size: 1.25rem; }
}
.seo-ec-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 20px; }
.seo-ec-hero-features { display: grid; align-content: start; gap: 12px; color: var(--seo-fg-muted); }
@media (min-width: 768px) {
	.seo-ec-hero-features { padding-left: 32px; border-left: 1px solid var(--seo-rule); }
}
.seo-ec-hero-stats {
	display: grid;
	margin-top: 64px;
	border-top: 1px solid var(--seo-rule);
}
@media (min-width: 640px) {
	.seo-ec-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.seo-ec-hero-stats { margin-top: 80px; }
}
.seo-ec-hero-stat { padding-block: 32px; border-bottom: 1px solid var(--seo-rule); }
@media (min-width: 1024px) {
	.seo-ec-hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.seo-ec-hero-stat { border-bottom: 0; }
	.seo-ec-hero-stat + .seo-ec-hero-stat { padding-left: 32px; border-left: 1px solid var(--seo-rule); }
}
.seo-ec-hero-value {
	display: block;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--seo-green-deep);
}
.seo-ec-hero-label { display: block; margin-top: 16px; color: var(--seo-fg-muted); }

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

/* Same strip as the family, laid out as this design lays it: 3 then 4 up,
   one spaced row from 1024px, logos in colour at 70%. */
:where(.seo--wordpress-ecommerce) .seo-logos-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
@media (min-width: 640px) {
	:where(.seo--wordpress-ecommerce) .seo-logos-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	:where(.seo--wordpress-ecommerce) .seo-logos-list { display: flex; justify-content: space-between; gap: 16px; }
}
:where(.seo--wordpress-ecommerce) .seo-logos-list img { max-width: 90px; opacity: 0.7; filter: none; }
:where(.seo--wordpress-ecommerce) .seo-logos-list img:hover { transform: none; opacity: 1; }

/* ----------------------------------------------------------- ec-gap-rows -- */

@media (min-width: 768px) {
	.seo-ec-gap-side { position: sticky; top: 100px; align-self: start; }
}
.seo-ec-gap-item { padding-block: 40px; border-bottom: 1px solid var(--seo-band-rule); }
.seo-ec-gap-item:first-child { padding-top: 0; }
.seo-ec-gap-title {
	margin-top: 20px;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: var(--seo-fg);
}
@media (min-width: 768px) {
	.seo-ec-gap-title { font-size: 1.9rem; }
}
.seo-ec-gap-body { margin-top: 20px; font-size: 1rem; line-height: 1.75; color: var(--seo-fg-muted); }
.seo-ec-gap-impact { margin-top: 24px; color: var(--seo-green-deep); }

/* ------------------------------------------------------ ec-feature-tiles -- */

.seo-ec-tiles-head { display: grid; gap: 48px; }
@media (min-width: 768px) {
	.seo-ec-tiles-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
	.seo-ec-tiles-copy { padding-top: 56px; }
}
.seo-ec-tiles-copy > * + * { margin-top: 24px; }
.seo-ec-tiles-grid {
	display: grid;
	gap: 1px;
	margin-top: 64px;
	border: 1px solid var(--seo-rule-dark);
	background: var(--seo-rule-dark);
}
@media (min-width: 640px) {
	.seo-ec-tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.seo-ec-tiles-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.seo-ec-tile {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 180px;
	padding: 28px;
	background: var(--seo-ink-deep);
	transition: background-color 0.3s ease;
}
.seo-ec-tile:hover { background: var(--seo-green); }
.seo-ec-tile-rule {
	display: block;
	width: 40px;
	height: 3px;
	background: var(--seo-green);
	transition: width 0.3s ease, background-color 0.3s ease;
}
.seo-ec-tile:hover .seo-ec-tile-rule { width: 64px; background: var(--seo-ink-deep); }
.seo-ec-tile-label {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.375;
	letter-spacing: -0.02em;
	color: var(--seo-paper);
	transition: color 0.3s ease;
}
.seo-ec-tile:hover .seo-ec-tile-label { color: var(--seo-ink-deep); }

/* -------------------------------------------------------- ec-pillar-list -- */

.seo-ec-pillars-list { display: grid; margin-top: 48px; border-top: 1px solid var(--seo-band-rule); }
@media (min-width: 768px) {
	.seo-ec-pillars-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; margin-top: 56px; }
}
.seo-ec-pillars-item { padding-block: 36px; border-bottom: 1px solid var(--seo-band-rule); }
.seo-ec-pillars-item .seo-h5 { line-height: 1.375; }
.seo-ec-pillars-item .seo-body { max-width: 48ch; margin-top: 12px; }

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

/* The design sets its form card on the alt grey, fields on white. */
:where(.seo--wordpress-ecommerce) .seo-form-card { background: var(--seo-alt); }

/* ------------------------------------------------------- ec-problem-grid -- */

.seo-ec-problems-grid {
	display: grid;
	gap: 1px;
	margin-top: 56px;
	border-top: 1px solid var(--seo-rule);
	background: var(--seo-rule);
}
@media (min-width: 640px) {
	.seo-ec-problems-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.seo-ec-problems-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.seo-ec-problems-item {
	gap: 16px;
	padding: 28px;
	background: var(--seo-paper);
	font-size: 1rem;
	font-weight: 600;
	color: var(--seo-ink);
}

/* ----------------------------------------------------------- ec-pipeline -- */

.seo-ec-pipe-grid { display: grid; gap: 40px; margin-top: 56px; }
@media (min-width: 1024px) {
	.seo-ec-pipe-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
}
.seo-ec-pipe-list { align-self: start; border-left: 1px solid var(--seo-rule-dark); }
.seo-ec-pipe-btn {
	display: block;
	width: 100%;
	margin-left: -1px;
	padding: 10px 0 10px 20px;
	border-left: 2px solid transparent;
	font-size: 1rem;
	font-weight: 600;
	color: var(--seo-dark-muted);
	transition: color 0.2s ease, border-color 0.2s ease;
}
.seo-ec-pipe-btn:hover { color: var(--seo-paper); }
.seo-ec-pipe-item.is-active .seo-ec-pipe-btn { border-color: var(--seo-yellow); color: var(--seo-paper); }
.seo-ec-pipe-desc {
	display: none;
	padding: 0 0 12px 36px;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--seo-dark-muted);
}
.seo-ec-pipe-item.is-active .seo-ec-pipe-desc { display: block; }

.seo-ec-pipe-frame { min-width: 0; padding: 24px; border: 1px solid var(--seo-rule-dark); }
@media (min-width: 768px) {
	.seo-ec-pipe-frame { padding: 32px; }
}
.seo-ec-pipe-caption { color: var(--seo-dark-muted); }
.seo-ec-pipe-frame > .seo-ec-pipe-caption { text-align: center; }
.seo-ec-pipe-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 20px;
}
.seo-ec-pipe-title { font-size: 1.25rem; color: var(--seo-paper); }
.seo-ec-pipe-title em { font-style: normal; color: var(--seo-dark-muted); }
.seo-ec-pipe-legend { display: flex; gap: 20px; }
.seo-ec-pipe-key { display: flex; align-items: center; gap: 8px; color: var(--seo-dark-muted); }
.seo-ec-pipe-swatch { display: block; width: 6px; height: 6px; }
.seo-ec-pipe-swatch--yellow { background: var(--seo-yellow); }
.seo-ec-pipe-swatch--green { background: var(--seo-green); }

.seo-ec-pipe-guards {
	display: grid;
	gap: 16px;
	max-width: 42rem;
	margin: 32px auto 0;
	padding: 16px;
	border: 1px dashed var(--seo-rule-dark);
}
@media (min-width: 640px) {
	.seo-ec-pipe-guards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.seo-ec-pipe-guard { padding: 16px; border: 1px solid var(--seo-rule-dark); text-align: center; }
.seo-ec-pipe-guard-title { font-size: 0.875rem; color: var(--seo-paper); }
.seo-ec-pipe-guard-body {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--seo-rule-dark);
	font-size: 0.75rem;
	color: var(--seo-dark-muted);
}

.seo-ec-pipe-stages {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 32px;
}
@media (min-width: 640px) {
	.seo-ec-pipe-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.seo-ec-pipe-stages { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.seo-ec-pipe-stage {
	display: flex;
	flex-direction: column;
	min-height: 190px;
	padding: 12px;
	border: 1px solid var(--seo-rule-dark);
	text-align: center;
	transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.seo-ec-pipe-stage:hover { border-color: var(--seo-dark-muted); }
.seo-ec-pipe-stage--last { border-color: color-mix(in oklab, var(--seo-green) 60%, transparent); }
.seo-ec-pipe-stage.is-active {
	transform: translateY(-4px);
	border-color: var(--seo-yellow);
	background: color-mix(in oklab, var(--seo-yellow) 10%, transparent);
}
.seo-ec-pipe-stage-name { font-size: 0.875rem; color: var(--seo-paper); }
.seo-ec-pipe-stage-tag {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--seo-rule-dark);
	font-size: 0.58rem;
	color: var(--seo-dark-muted);
}
.seo-ec-pipe-stage.is-active .seo-ec-pipe-stage-tag { color: var(--seo-yellow); }
.seo-ec-pipe-stage-body { margin-top: 12px; font-size: 0.75rem; line-height: 1.5; color: var(--seo-dark-muted); }

.seo-ec-pipe-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.seo-ec-pipe-ticks { display: flex; gap: 8px; }
.seo-ec-pipe-tick { display: block; width: 16px; height: 1px; background: var(--seo-rule-dark); }
.seo-ec-pipe-tick.is-active { background: var(--seo-paper); }

/* ------------------------------------------------------------- ec-method -- */

@media (min-width: 768px) {
	.seo-root .seo-ec-method-h { font-size: 3rem; }
}
.seo-ec-method-side .seo-lede { max-width: 28rem; line-height: 1.75; }
.seo-ec-method-item {
	position: relative;
	border-bottom: 1px dashed var(--seo-rule);
	transition: background-color 0.3s ease;
}
.seo-ec-method-item.is-active { background: color-mix(in oklab, var(--seo-yellow) 10%, transparent); }
.seo-ec-method-item.is-active::before {
	content: "";
	position: absolute;
	top: 0;
	left: -24px;
	width: 3px;
	height: 100%;
	background: var(--seo-yellow);
}
.seo-ec-method-btn { display: flex; align-items: center; gap: 32px; width: 100%; padding: 20px; }
.seo-ec-method-num {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1px dashed var(--seo-rule);
	font-family: var(--seo-mono);
	font-size: 1.5rem;
	color: color-mix(in oklab, var(--seo-muted) 60%, transparent);
}
.seo-ec-method-item.is-active .seo-ec-method-num { border-color: var(--seo-yellow); background: var(--seo-yellow); color: var(--seo-ink-deep); }
.seo-ec-method-title {
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--seo-muted);
}
@media (min-width: 768px) {
	.seo-ec-method-title { font-size: 1.75rem; }
}
.seo-ec-method-item.is-active .seo-ec-method-title { color: var(--seo-ink); }
.seo-ec-method-panel { display: none; padding: 0 20px 28px; }
@media (min-width: 768px) {
	.seo-ec-method-panel { padding-left: 7.25rem; }
}
.seo-ec-method-item.is-active .seo-ec-method-panel { display: block; }
.seo-ec-method-out { font-weight: 600; color: var(--seo-ink); }
.seo-ec-method-body { margin-top: 16px; font-size: 1rem; line-height: 1.75; color: var(--seo-muted); }

/* ------------------------------------------------------------- ec-quotes -- */

.seo-root .seo-ec-quotes-h { max-width: 36ch; }
.seo-ec-quotes-grid {
	display: grid;
	gap: 1px;
	margin-top: 48px;
	border-top: 1px solid var(--seo-rule);
	background: var(--seo-rule);
}
@media (min-width: 768px) {
	.seo-ec-quotes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.seo-ec-quote { padding: 32px; background: var(--seo-paper); }
.seo-ec-quote-text { font-size: 1rem; line-height: 1.85; color: var(--seo-ink); }
.seo-ec-quote-cap { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--seo-rule); }
.seo-ec-quote-author { display: block; font-size: 1rem; font-weight: 700; color: var(--seo-ink); }
.seo-ec-quote-role { display: block; margin-top: 8px; }

/* ---------------------------------------------------------- ec-side-tabs -- */

.seo-ec-tabs-grid { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 768px) {
	.seo-ec-tabs-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 56px; }
}
.seo-ec-tabs-list { display: flex; flex-direction: column; gap: 12px; }
.seo-ec-tabs-tab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	border: 1px solid var(--seo-rule);
	background: var(--seo-paper);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--seo-ink);
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.seo-ec-tabs-tab:hover { border-color: var(--seo-green); color: var(--seo-green-deep); }
.seo-ec-tabs-tab.is-active { border-color: var(--seo-ink); background: var(--seo-ink); color: var(--seo-paper); }
.seo-ec-tabs-tab.is-active .seo-ec-tabs-arrow { color: var(--seo-green); }
.seo-ec-tabs-panel { display: grid; gap: 40px; animation: seo-fade-in 0.4s ease; }
.seo-ec-tabs-panel[hidden] { display: none; }
@media (min-width: 768px) {
	.seo-ec-tabs-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
}
.seo-ec-tabs-col { padding-top: 24px; border-top: 1px solid var(--seo-rule); }
.seo-ec-tabs-col .seo-h5 { line-height: 1.375; }
.seo-ec-tabs-col .seo-body { margin-top: 16px; line-height: 1.8; }

/* -------------------------------------------------------------- ec-stack -- */

.seo-ec-stack-rows { display: grid; gap: 24px; margin-top: 56px; }
.seo-ec-marquee {
	overflow: hidden;
	padding-block: 12px;
	border-block: 1px dashed var(--seo-rule);
	/* A mask reads only alpha, so any opaque token draws the fade. */
	-webkit-mask-image: linear-gradient(to right, transparent, var(--seo-ink) 6%, var(--seo-ink) 94%, transparent);
	mask-image: linear-gradient(to right, transparent, var(--seo-ink) 6%, var(--seo-ink) 94%, transparent);
}
.seo-ec-marquee-track {
	display: flex;
	gap: 12px;
	width: max-content;
	animation: seo-ec-marquee 28s linear infinite;
}
.seo-ec-marquee-track--reverse { animation-direction: reverse; }
@keyframes seo-ec-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
.seo-ec-tool {
	display: flex;
	flex: none;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	border: 1px solid var(--seo-rule);
	background: var(--seo-paper);
}
.seo-ec-tool-name { font-size: 0.875rem; font-weight: 600; color: var(--seo-ink); }
.seo-ec-tool-role { font-size: 0.6rem; color: var(--seo-muted); }

.seo-ec-stack-core {
	width: 100%;
	max-width: 36rem;
	margin-inline: auto;
	padding: 36px 32px;
	border-top: 2px solid var(--seo-yellow);
	background: var(--seo-ink-deep);
	text-align: center;
}
.seo-ec-stack-core-title {
	margin-top: 12px;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--seo-paper);
}
@media (min-width: 768px) {
	.seo-ec-stack-core-title { font-size: 2rem; }
}
.seo-ec-stack-core-body { margin-top: 12px; font-size: 0.875rem; line-height: 1.7; color: var(--seo-dark-muted); }

.seo-ec-stack-cards { display: grid; gap: 24px; margin-top: 56px; }
@media (min-width: 768px) {
	.seo-ec-stack-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.seo-ec-stack-card {
	padding: 32px;
	border: 1px dashed var(--seo-rule);
	border-top: 2px solid var(--seo-yellow);
}
.seo-ec-stack-card-title { margin-top: 20px; }
.seo-ec-stack-card-tools { margin-top: 16px; font-size: 0.6rem; }
.seo-ec-stack-card-body { margin-top: 20px; font-size: 1rem; line-height: 1.75; color: var(--seo-muted); }

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

/* seo-core shortens every animation to 0.01ms, which would leave an infinite
   marquee flickering; stop it outright, and drop the active card's lift. */
@media (prefers-reduced-motion: reduce) {
	.seo-ec-marquee-track { animation: none; }
	.seo-ec-pipe-stage.is-active { transform: none; }
}
