/**
 * Pillars hub — theme-token styles (checklist + linked slider).
 */

.se-pillars-hub {
	--ph-ink: var(--color-ink, #111111);
	--ph-muted: var(--color-ink-soft, #555555);
	--ph-line: var(--color-line-strong, #e7e6ec);
	--ph-surface: var(--color-surface, #ffffff);
	--ph-soft: var(--color-surface-soft, #f7f7fa);
	--ph-tint: var(--color-surface-tint, #f3f1f8);
	--ph-accent: var(--color-primary, #6b62ac);
	--ph-accent-hover: var(--color-primary-hover, #2b2868);
	--ph-accent-soft: var(--color-primary-soft, rgba(107, 98, 172, 0.08));
	--ph-radius: var(--radius-md, 14px);
	--ph-ease: var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
	--ph-fill-duration: 3s;

	background: var(--ph-surface);
	color: var(--ph-ink);
	padding-block: var(--section-pad-industry, 120px);
}

.se-pillars-hub * {
	box-sizing: border-box;
}

.se-pillars-hub__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* --------------------------------------------------------------------------
   Tab bar
   -------------------------------------------------------------------------- */
.se-pillars-hub__nav {
	display: flex;
	justify-content: center;
}

.se-pillars-hub__tabs {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	padding: 6px;
	background: var(--ph-tint);
	border: 1px solid var(--color-line, rgba(15, 15, 37, 0.1));
	border-radius: var(--radius-pill, 999px);
}

.se-pillars-hub__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 22px;
	border: none;
	border-radius: var(--radius-pill, 999px);
	background: transparent;
	color: var(--ph-muted);
	font-family: var(--font-body);
	font-size: var(--fs-xs, 0.8125rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 1px;
	cursor: pointer;
	transition: color var(--dur-fast, 0.2s) var(--ph-ease),
		background var(--dur-fast, 0.2s) var(--ph-ease),
		box-shadow var(--dur-fast, 0.2s) var(--ph-ease);
}

.se-pillars-hub__tab:hover {
	color: var(--ph-ink);
	background: rgba(255, 255, 255, 0.55);
}

.se-pillars-hub__tab.is-active {
	background: var(--ph-accent);
	color: #fff;
	box-shadow: 0 4px 14px rgba(107, 98, 172, 0.28);
}

.se-pillars-hub__tab-num {
	font-family: var(--font-mono);
	font-size: var(--fs-2xs, 0.6875rem);
	font-weight: 700;
	color: var(--color-primary-on-dark, #8b7fd4);
	transition: color var(--dur-fast, 0.2s) ease;
}

.se-pillars-hub__tab.is-active .se-pillars-hub__tab-num {
	color: rgba(255, 255, 255, 0.75);
}

.se-pillars-hub__tab:focus-visible {
	outline: 2px solid var(--ph-accent);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Panels
   -------------------------------------------------------------------------- */
.se-pillars-hub__panel {
	display: none;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
	gap: 44px;
	align-items: center;
}

.se-pillars-hub__panel.is-active {
	display: grid;
	animation: se-pillars-hub-fade 0.3s ease;
}

@keyframes se-pillars-hub-fade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.se-pillars-hub__checklist-col {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.se-pillars-hub__panel-header {
	margin-bottom: 20px;
}

.se-pillars-hub__panel-header .eyebrow {
	margin-bottom: 8px;
}

.se-pillars-hub__heading {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: var(--lh-snug, 1.25);
	color: var(--ph-ink);
}

/* --------------------------------------------------------------------------
   Checklist — simple list + bottom progress bar
   -------------------------------------------------------------------------- */
.se-pillars-hub__viewport {
	position: relative;
	max-height: 520px;
	overflow: hidden;
	border-radius: var(--radius, 16px);
}

.se-pillars-hub__checklist {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 520px;
	overflow-y: auto;
	padding: 4px 2px;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.se-pillars-hub__checklist::-webkit-scrollbar {
	display: none;
}

.se-pillars-hub__card {
	--ph-card-bg: var(--ph-surface);
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 16px 18px;
	border: 1.5px solid var(--ph-line);
	border-radius: 8px;
	background: var(--ph-card-bg);
	box-shadow: var(--shadow-sm, 0 2px 6px rgba(15, 15, 37, 0.02));
	text-align: left;
	cursor: pointer;
	flex-shrink: 0;
	font: inherit;
	color: inherit;
	overflow: hidden;
	transition: border-color var(--dur-fast, 0.2s) var(--ph-ease),
		box-shadow var(--dur-fast, 0.2s) var(--ph-ease),
		background var(--dur-fast, 0.2s) var(--ph-ease);
}

/* Bottom progress bar */
.se-pillars-hub__progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: rgba(107, 98, 172, 0.12);
	opacity: 0;
	pointer-events: none;
	z-index: 2;
}

.se-pillars-hub__progress-bar {
	display: block;
	height: 100%;
	width: 100%;
	background: var(--ph-accent);
	transform: scaleX(0);
	transform-origin: left center;
	will-change: transform;
}

.se-pillars-hub__card.is-playing .se-pillars-hub__progress {
	opacity: 1;
}

.se-pillars-hub__card.is-playing .se-pillars-hub__progress-bar {
	animation: se-ph-bar-fill var(--ph-fill-duration) linear forwards;
	animation-play-state: running;
}

.se-pillars-hub__card.is-playing.is-paused .se-pillars-hub__progress-bar {
	animation-play-state: paused;
}

@keyframes se-ph-bar-fill {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

.se-pillars-hub__card:hover {
	border-color: rgba(107, 98, 172, 0.45);
	box-shadow: 0 4px 14px rgba(107, 98, 172, 0.08);
}

.se-pillars-hub__card.is-active {
	--ph-card-bg: #fbfbfe;
	border-color: var(--ph-accent);
	box-shadow: 0 4px 18px rgba(107, 98, 172, 0.12);
}

.se-pillars-hub__card:focus-visible {
	outline: 2px solid var(--ph-accent);
	outline-offset: 3px;
}

.se-pillars-hub__card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--ph-accent-soft);
	color: var(--ph-accent);
	transition: background var(--dur-fast, 0.2s) ease, color var(--dur-fast, 0.2s) ease;
}

.se-pillars-hub__card-icon img {
	width: 20px;
	height: 20px;
	display: block;
}

.se-pillars-hub__card.is-active .se-pillars-hub__card-icon {
	background: var(--ph-accent);
	color: #fff;
}

.se-pillars-hub__card.is-active .se-pillars-hub__card-icon img {
	/* Monochrome stroke SVGs → white on active purple chip */
	filter: brightness(0) invert(1);
}

.se-pillars-hub__card-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

.se-pillars-hub__card-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ph-ink);
}

.se-pillars-hub__card-desc {
	font-size: 13px;
	line-height: 1.48;
	color: var(--ph-muted);
}

/* --------------------------------------------------------------------------
   Slider
   -------------------------------------------------------------------------- */
.se-pillars-hub__slider-col {
	position: sticky;
	top: calc(var(--nav-h, 72px) + 24px);
	align-self: center;
	width: 100%;
}

.se-pillars-hub__slider {
	width: 100%;
	max-width: 580px;
	margin: 0 auto;
	padding: 12px;
	background: var(--ph-surface);
	border: 1px solid var(--ph-line);
	border-radius: 20px;
	box-shadow: 0 16px 40px -10px rgba(15, 15, 37, 0.08);
}

.se-pillars-hub__slider-viewport {
	position: relative;
	aspect-ratio: 16 / 10;
	width: 100%;
	overflow: hidden;
	border-radius: var(--ph-radius);
	background: var(--color-navy, #0f0f25);
}

.se-pillars-hub__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transform: scale(1.02);
	pointer-events: none;
	transition: opacity 0.5s ease, transform 0.6s var(--ph-ease);
}

.se-pillars-hub__slide.is-active {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

.se-pillars-hub__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.se-pillars-hub__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	padding: 32px 18px 14px;
	background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 20, 0.85) 100%);
	pointer-events: none;
}

.se-pillars-hub__caption-title {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.se-pillars-hub__slider-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 6px 4px;
}

.se-pillars-hub__dots {
	display: flex;
	align-items: center;
	gap: 6px;
}

.se-pillars-hub__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: var(--radius-pill, 999px);
	background: #d5d3e5;
	cursor: pointer;
	transition: width 0.25s var(--ph-ease), background 0.25s var(--ph-ease);
}

.se-pillars-hub__dot.is-active {
	width: 24px;
	background: var(--ph-accent);
}

.se-pillars-hub__dot:focus-visible {
	outline: 2px solid var(--ph-accent);
	outline-offset: 2px;
}

.se-pillars-hub__arrows {
	display: flex;
	align-items: center;
	gap: 8px;
}

.se-pillars-hub__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid var(--ph-line);
	border-radius: 50%;
	background: var(--ph-surface);
	color: var(--ph-muted);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.se-pillars-hub__arrow:hover {
	background: var(--ph-tint);
	border-color: var(--ph-accent);
	color: var(--ph-accent);
}

.se-pillars-hub__arrow:focus-visible {
	outline: 2px solid var(--ph-accent);
	outline-offset: 2px;
}

/* Mobile pillar prev/next — hidden on desktop */
.se-pillars-hub__pillar-nav {
	display: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.se-pillars-hub {
		padding-block: 80px;
	}

	.se-pillars-hub__panel.is-active {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

	.se-pillars-hub__checklist-col {
		display: contents;
	}

	.se-pillars-hub__panel-header {
		order: 1;
		margin-bottom: 2px;
	}

	.se-pillars-hub__slider-col {
		order: 2;
		position: static;
		margin-bottom: 12px;
	}

	.se-pillars-hub__viewport {
		order: 3;
		max-height: 440px;
	}

	.se-pillars-hub__checklist {
		max-height: 440px;
	}

	.se-pillars-hub__pillar-nav {
		order: 4;
		margin-top: 14px;
	}
}

@media (max-width: 768px) {
	.se-pillars-hub {
		padding-block: 64px;
	}

	.se-pillars-hub__inner {
		gap: 28px;
	}

	.se-pillars-hub__nav {
		margin: 0;
		justify-content: stretch;
	}

	.se-pillars-hub__tabs {
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-start;
		width: 100%;
		padding: 2px 0;
		gap: 8px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		background: transparent;
		border: none;
		border-radius: 0;
	}

	.se-pillars-hub__tabs::-webkit-scrollbar {
		display: none;
	}

	.se-pillars-hub__tab {
		flex-shrink: 0;
		white-space: nowrap;
		padding: 9px 18px;
		font-size: 13px;
		background: var(--ph-tint);
		border: 1px solid var(--color-line, rgba(15, 15, 37, 0.06));
	}

	.se-pillars-hub__tab.is-active {
		background: var(--ph-accent);
		border-color: var(--ph-accent);
		color: #fff;
	}

	.se-pillars-hub__pillar-nav {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: 10px;
		width: 100%;
		padding-top: 14px;
		border-top: 1px solid var(--ph-line);
	}

	.se-pillars-hub__pillar-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		flex: 1 1 0;
		min-width: 0;
		padding: 11px 16px;
		border: 1px solid #e2e0eb;
		border-radius: 12px;
		background: var(--ph-tint);
		color: var(--color-secondary, #2b2868);
		font-family: var(--font-body);
		font-size: 13.5px;
		font-weight: 700;
		white-space: nowrap;
		cursor: pointer;
		transition: background 0.2s var(--ph-ease), border-color 0.2s var(--ph-ease), color 0.2s var(--ph-ease);
	}

	.se-pillars-hub__pillar-btn svg {
		flex-shrink: 0;
	}

	.se-pillars-hub__pillar-btn:hover {
		background: #ebe9f2;
		border-color: var(--ph-accent);
		color: var(--ph-accent);
	}

	.se-pillars-hub__pillar-btn.is-next {
		background: var(--ph-accent);
		border-color: var(--ph-accent);
		color: #fff;
		box-shadow: 0 4px 14px rgba(107, 98, 172, 0.24);
	}

	.se-pillars-hub__pillar-btn.is-next:hover {
		background: var(--ph-accent-hover);
	}
}

@media (max-width: 480px) {
	.se-pillars-hub {
		padding-block: 48px;
	}

	.se-pillars-hub__slider {
		padding: 8px;
		border-radius: 16px;
	}

	.se-pillars-hub__caption {
		padding: 24px 12px 10px;
	}

	.se-pillars-hub__caption-title {
		font-size: 13.5px;
	}

	.se-pillars-hub__card {
		padding: 14px 12px;
		gap: 10px;
	}

	.se-pillars-hub__card-icon {
		width: 32px;
		height: 32px;
		border-radius: 8px;
	}

	.se-pillars-hub__card-icon img {
		width: 18px;
		height: 18px;
	}

	.se-pillars-hub__card-title {
		font-size: 14px;
	}

	.se-pillars-hub__card-desc {
		font-size: 12.5px;
	}

	.se-pillars-hub__pillar-btn {
		font-size: 13px;
		padding: 11px 10px;
	}
}

@media (max-width: 400px) {
	.se-pillars-hub__pillar-btn {
		font-size: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.se-pillars-hub__panel.is-active,
	.se-pillars-hub__slide,
	.se-pillars-hub__card,
	.se-pillars-hub__tab,
	.se-pillars-hub__dot {
		animation: none;
		transition: none;
	}

	.se-pillars-hub__checklist {
		scroll-behavior: auto;
	}

	.se-pillars-hub__card.is-playing {
		border-color: var(--ph-accent);
	}

	.se-pillars-hub__card.is-playing .se-pillars-hub__progress {
		opacity: 1;
	}

	.se-pillars-hub__card.is-playing .se-pillars-hub__progress-bar {
		animation: none;
		transform: scaleX(1);
	}
}
