/* ==========================================================================
   Section: Solution 01 — Establish Your Online Presence
   v1.0 — hub-and-spoke layout, original card style, compact vertical rhythm.
   Uses global tokens from global.css (fallbacks match brand values).
   ========================================================================== */

.wb-solution {
	background: var(--color-bg, #FAFAF8);
	padding: 88px 0;
	overflow: hidden;
}

.wb-solution__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
	display: grid;
	grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
	gap: 88px;
	align-items: center;
}

/* --------------------------------------------------------------------------
   Left column — teaching rows
   -------------------------------------------------------------------------- */

.wb-solution__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-muted, #6B7280);
	margin: 0 0 18px;
}

.wb-solution__eyebrow-num {
	color: var(--color-primary, #496AF9);
	font-variant-numeric: tabular-nums;
}

.wb-solution__title {
	font-size: clamp(32px, 4vw, 42px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 700;
	color: var(--color-heading, #111827);
	margin: 0 0 18px;
}

.wb-solution__lead {
	font-size: 17px;
	line-height: 1.65;
	color: var(--color-text-muted, #6B7280);
	margin: 0 0 8px;
	max-width: 42ch;
}

/* Proof rows — each row teaches one idea and links to the next lesson */

.wb-solution__rows {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.wb-solution__row {
	border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.wb-solution__row-link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 4px;
	text-decoration: none;
	transition: padding-left 0.35s ease;
}

.wb-solution__row-head {
	font-size: 15px;
	font-weight: 600;
	color: var(--color-heading, #111827);
	transition: color 0.3s ease;
}

.wb-solution__row-note {
	font-size: 14px;
	line-height: 1.55;
	color: var(--color-text-muted, #6B7280);
	max-width: 40ch;
}

.wb-solution__row-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--color-primary, #496AF9);
	margin-top: 2px;
	opacity: 0.85;
	transition: opacity 0.3s ease;
}

.wb-solution__row-arrow {
	transition: transform 0.35s ease;
}

/* Row highlight — from hovering the row itself or its matching card */

.wb-solution__row:hover .wb-solution__row-link,
.wb-solution__row.is-linked .wb-solution__row-link {
	padding-left: 12px;
}

.wb-solution__row:hover .wb-solution__row-head,
.wb-solution__row.is-linked .wb-solution__row-head {
	color: var(--color-primary, #496AF9);
}

.wb-solution__row:hover .wb-solution__row-cta,
.wb-solution__row.is-linked .wb-solution__row-cta {
	opacity: 1;
}

.wb-solution__row:hover .wb-solution__row-arrow,
.wb-solution__row.is-linked .wb-solution__row-arrow {
	transform: translateX(4px);
}

/* Takeaway — the single idea to leave with */

.wb-solution__takeaway {
	font-size: 15px;
	line-height: 1.6;
	color: var(--color-text-muted, #6B7280);
	margin: 20px 0 0;
	max-width: 40ch;
}

.wb-solution__takeaway strong {
	color: var(--color-heading, #111827);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Right column — hub-and-spoke stage
   -------------------------------------------------------------------------- */

.wb-solution__visual {
	display: flex;
	justify-content: center;
}

.wb-solution__stage {
	position: relative;
	width: 560px;
	max-width: 100%;
	height: 615px;
}

/* Connectors — always behind the cards, only through empty space */

.wb-solution__connectors {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}

.wb-solution__connector {
	stroke: rgba(73, 106, 249, 0.35);
	stroke-width: 1.5;
	stroke-dasharray: 170;
	stroke-dashoffset: 170;
	transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Assembly sequence:
   website (0s) -> google (0.5s) -> connector a (1.0s)
   -> social (1.5s) -> connector b (2.0s) */

.wb-solution.is-inview .wb-solution__connector--a { stroke-dashoffset: 0; transition-delay: 1.0s; }
.wb-solution.is-inview .wb-solution__connector--b { stroke-dashoffset: 0; transition-delay: 2.0s; }

/* Cards — shared */

.wb-solution__card {
	position: absolute;
	z-index: 1;
	background: #FFFFFF;
	border: 1px solid rgba(17, 24, 39, 0.06);
	border-radius: 16px;
	box-shadow:
		0 1px 2px rgba(17, 24, 39, 0.04),
		0 8px 24px rgba(17, 24, 39, 0.05);
	opacity: 0;
	transform: translateY(16px);
	transition:
		opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.35s ease;
	will-change: transform, opacity;
}

.wb-solution.is-inview .wb-solution__card {
	opacity: 1;
	transform: translateY(0);
}

.wb-solution.is-inview .wb-solution__card--website { transition-delay: 0s; }
.wb-solution.is-inview .wb-solution__card--google  { transition-delay: 0.5s; }
.wb-solution.is-inview .wb-solution__card--social  { transition-delay: 1.5s; }

/* Once assembled, drop stagger delays so hover feels immediate */

.wb-solution.is-live .wb-solution__card {
	transition-delay: 0s;
	transition-duration: 0.35s;
}

/* Hover elevation — subtle lift, no scaling */

.wb-solution.is-live .wb-solution__card:hover,
.wb-solution.is-live .wb-solution__card.is-linked {
	transform: translateY(-4px);
	box-shadow:
		0 2px 4px rgba(17, 24, 39, 0.04),
		0 16px 40px rgba(17, 24, 39, 0.09);
}

/* Card positions — website is the hub (larger, anchored left-centre) */

.wb-solution__card--google  { top: 0;     right: 0;    width: 250px; }
.wb-solution__card--website { top: 200px; left: 0;     width: 340px; }
.wb-solution__card--social  { top: 427px; right: 20px; width: 250px; }

/* Hub emphasis — slightly stronger presence, nothing louder */

.wb-solution__card--website {
	box-shadow:
		0 1px 2px rgba(17, 24, 39, 0.05),
		0 12px 32px rgba(17, 24, 39, 0.07);
}

/* Card internals */

.wb-solution__card-tag {
	position: absolute;
	top: -12px;
	left: 16px;
	background: var(--color-bg, #FAFAF8);
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: 100px;
	padding: 3px 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-text-muted, #6B7280);
}

.wb-solution__card-tag--hub {
	color: var(--color-primary, #496AF9);
	border-color: rgba(73, 106, 249, 0.3);
}

.wb-solution__browser-chrome {
	display: flex;
	gap: 6px;
	padding: 14px 16px 0;
}

.wb-solution__browser-chrome span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(17, 24, 39, 0.1);
}

.wb-solution__card-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Skeleton primitives */

.wb-sk {
	display: block;
	background: rgba(17, 24, 39, 0.07);
	border-radius: 4px;
}

.wb-sk--heading { height: 14px; width: 80%; border-radius: 5px; }
.wb-sk--line    { height: 8px; }
.wb-sk--w70 { width: 70%; }
.wb-sk--w60 { width: 60%; }
.wb-sk--w45 { width: 45%; }
.wb-sk--w40 { width: 40%; }

/* Website card */

.wb-solution__cta-pill {
	align-self: flex-start;
	background: var(--color-primary, #496AF9);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 600;
	padding: 7px 16px;
	border-radius: 100px;
	margin-top: 2px;
}

.wb-solution__tile-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 2px;
}

.wb-solution__tile {
	height: 44px;
	border-radius: 8px;
	background: rgba(17, 24, 39, 0.05);
	border: 1px solid rgba(17, 24, 39, 0.05);
}

/* Google card */

.wb-solution__profile-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wb-solution__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(17, 24, 39, 0.08);
	flex-shrink: 0;
}

.wb-solution__avatar--brand {
	background: rgba(73, 106, 249, 0.15);
}

.wb-solution__profile-lines {
	display: flex;
	flex-direction: column;
	gap: 7px;
	flex: 1;
}

.wb-solution__rating-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wb-solution__rating-score {
	font-size: 15px;
	font-weight: 700;
	color: var(--color-heading, #111827);
	font-variant-numeric: tabular-nums;
}

.wb-solution__stars {
	display: flex;
	gap: 3px;
}

.wb-solution__stars span {
	width: 12px;
	height: 12px;
	background: #F4B63F;
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.wb-solution__status-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #0E9F6E;
}

.wb-solution__status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #0E9F6E;
}

.wb-solution__chip-row {
	display: flex;
	gap: 8px;
}

.wb-solution__chip {
	font-size: 12px;
	font-weight: 500;
	color: var(--color-primary, #496AF9);
	border: 1px solid rgba(73, 106, 249, 0.3);
	border-radius: 100px;
	padding: 5px 14px;
}

/* Social card */

.wb-solution__post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}

.wb-solution__post-grid span {
	aspect-ratio: 1;
	border-radius: 6px;
	background: rgba(17, 24, 39, 0.06);
}

.wb-solution__post-grid span:nth-child(2) {
	background: rgba(73, 106, 249, 0.12);
}

.wb-solution__stat-row {
	display: flex;
	gap: 20px;
	font-size: 12px;
	color: var(--color-text-muted, #6B7280);
}

.wb-solution__stat strong {
	color: var(--color-heading, #111827);
	font-weight: 600;
	margin-right: 3px;
	font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.wb-solution__inner {
		gap: 56px;
	}
}

@media (max-width: 960px) {
	.wb-solution {
		padding: 0 0 80px 0;
	}

	/* Mobile teaching order:
	   eyebrow -> heading -> intro -> visual -> rows -> takeaway.
	   `display: contents` promotes the content children into the
	   section grid so the visual can sit between intro and rows. */

	.wb-solution__inner {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.wb-solution__content {
		display: contents;
	}

	.wb-solution__eyebrow  { order: 1; }
	.wb-solution__title    { order: 2; }
	.wb-solution__lead     { order: 3; margin-bottom: 40px; }
	.wb-solution__visual   { order: 4; margin-bottom: 18px; }
	.wb-solution__rows     { order: 5; margin-top: 0; }
	.wb-solution__takeaway { order: 6; }

	/* Simple vertical connector: Website -> Google -> Social.
	   Compact cards so all three fit roughly one mobile viewport. */

	.wb-solution__stage {
		width: 100%;
		max-width: 320px;
		height: auto;
		margin: 0 auto;
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

	.wb-solution__connectors {
		display: none;
	}

	.wb-solution__card,
	.wb-solution__card--website,
	.wb-solution__card--google,
	.wb-solution__card--social {
		position: relative;
		top: auto;
		left: auto;
		right: auto;
		width: 100%;
	}

	.wb-solution__card--website { order: 1; }
	.wb-solution__card--google  { order: 2; }
	.wb-solution__card--social  { order: 3; }

	/* No connector graphics on mobile — the build animation creates
	   the connection. Website -> Google -> Social, ~100ms apart. */

	.wb-solution.is-inview .wb-solution__card--google { transition-delay: 0.1s; }
	.wb-solution.is-inview .wb-solution__card--social { transition-delay: 0.2s; }

	/* Compact card internals */

	.wb-solution__card-body {
		padding: 14px 16px 16px;
		gap: 10px;
	}

	.wb-solution__browser-chrome {
		padding: 12px 14px 0;
	}

	.wb-solution__tile {
		height: 36px;
	}

	.wb-solution__avatar {
		width: 30px;
		height: 30px;
	}
}

@media (max-width: 480px) {
	.wb-solution--01 {
		padding-top: 0 !important;
	}
.wb-solution{
	padding-bottom: 70px;
}
	.wb-solution__inner {
		padding: 0 24px;
	}
}

/* --------------------------------------------------------------------------
   Reduced motion — show everything, no animation
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.wb-solution__card,
	.wb-solution__connector {
		transition: none !important;
		animation: none !important;
	}

	.wb-solution .wb-solution__card {
		opacity: 1;
		transform: none;
	}

	.wb-solution .wb-solution__connector {
		stroke-dashoffset: 0;
	}
}

/* Supporting line shared by every solution row. */
.wb-solution__row-sub {
	font-size: 14px;
	font-weight: 500;
	color: var(--color-heading, #111827);
	line-height: 1.5;
}

/*
 * Opening-view behaviour
 * ----------------------
 * Keep the original visual compositions intact. On desktop the title and the
 * complete visual begin together near the top of the section; the teaching
 * rows are allowed to continue naturally below the first viewport.
 */
@media (min-width: 961px) {
	.wb-solution {
		padding: clamp(34px, 5vh, 64px) 0;
	}

	.wb-solution__inner {
		align-items: flex-start;
	}

	.wb-solution__content {
		padding-top: 8px;
	}
}

/*
 * Phone opening view
 * ------------------
 * Keep the clean vertical card order. We only remove non-essential miniature
 * details and tighten spacing; cards never overlap or get rearranged into a
 * crowded collage. The detailed teaching rows remain below the visual.
 */
/* @media (max-width: 480px) {
	.wb-solution {
		padding: 0 0 62px;
	}
	.wb-solution__card{
		margin-top: 10px;
	}

	.wb-solution__inner {
		padding: 0 20px;
	}

	.wb-solution__eyebrow {
		font-size: 11px;
		margin-bottom: 9px;
	}

	.wb-solution__title {
		font-size: clamp(27px, 7.8vw, 31px);
		line-height: 1.12;
		margin-bottom: 10px;
	}

	.wb-solution__lead {
		font-size: 14px;
		line-height: 1.5;
		margin-bottom: 20px;
		max-width: 39ch;
	}

	.wb-solution__visual {
		margin-bottom: 34px;
	}

	.wb-solution__stage {
		max-width: 320px;
		gap: 14px;
	}

	.wb-solution__card-body {
		padding: 10px 12px 12px;
		gap: 8px;
	}

	.wb-solution__browser-chrome {
		padding: 9px 12px 0;
	}

	.wb-solution__card-tag {
		top: -10px;
		left: 12px;
		padding: 2px 9px;
		font-size: 9px;
	}

	.wb-solution__avatar {
		width: 26px;
		height: 26px;
	}

	.wb-solution__post-grid span {
		aspect-ratio: auto;
		height: 46px;
	}

	.wb-solution__stat-row {
		gap: 14px;
		font-size: 10px;
	}

	.wb-solution__rows {
		margin-top: 0;
	}
} */
