/*
 * Starward Navigators — custom utility stylesheet.
 * theme.json + native block settings handle the vast majority of styling.
 * This file exists only for the things page-builder-free Gutenberg can't
 * cleanly express: workflow visuals, the responsive feature matrix,
 * sticky header behavior, and small accessibility/motion refinements.
 * (Build brief, Section 94.)
 */

/* ---------- Layout primitives ---------- */

.sn-section {
	padding-top: 6rem;
	padding-bottom: 6rem;
}

@media (max-width: 782px) {
	.sn-section {
		padding-top: 3.5rem;
		padding-bottom: 3.5rem;
	}
}

.sn-section--dark {
	background-color: var( --wp--preset--color--primary-navy );
	color: var( --wp--preset--color--white );
}

.sn-section--dark h1,
.sn-section--dark h2,
.sn-section--dark h3,
.sn-section--dark p {
	color: var( --wp--preset--color--white );
}

.sn-container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.sn-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --wp--preset--color--primary-blue );
	margin-bottom: 0.75rem;
}

.sn-section--dark .sn-eyebrow {
	color: var( --wp--preset--color--light-blue );
}

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

.sn-card {
	background: var( --wp--preset--color--white );
	border: 1px solid var( --wp--preset--color--border );
	border-radius: 16px;
	padding: 32px;
}

@media (max-width: 782px) {
	.sn-card {
		padding: 24px;
	}
}

.sn-card--dark {
	background: var( --wp--preset--color--secondary-navy );
	border-color: var( --wp--preset--color--secondary-navy );
	color: var( --wp--preset--color--white );
}

.sn-card--dark h1,
.sn-card--dark h2,
.sn-card--dark h3,
.sn-card--dark h4,
.sn-card--dark p {
	color: var( --wp--preset--color--white );
}

.sn-card--light {
	background: var( --wp--preset--color--light-blue );
	border-color: var( --wp--preset--color--light-blue );
}

.sn-card--featured {
	border: 2px solid var( --wp--preset--color--primary-blue );
	box-shadow: 0 8px 24px rgba( 46, 111, 180, 0.12 );
	position: relative;
}

/* ---------- Chips / status pills ---------- */

.sn-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var( --wp--preset--color--light-blue );
	color: var( --wp--preset--color--secondary-navy );
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 14px;
	font-weight: 600;
}

.sn-chip::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var( --wp--preset--color--primary-blue );
	flex-shrink: 0;
}

.sn-chip--done::before {
	background: var( --wp--preset--color--success );
}

/* ---------- Workflow / pipeline visuals ---------- */

.sn-pipeline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sn-pipeline li {
	display: flex;
	align-items: center;
	gap: 0;
}

.sn-pipeline li:not(:last-child)::after {
	content: "→";
	color: var( --wp--preset--color--muted-text );
	margin: 0 14px;
	font-size: 18px;
}

.sn-pipeline .sn-chip {
	white-space: nowrap;
}

@media (max-width: 600px) {
	.sn-pipeline {
		flex-direction: column;
		align-items: flex-start;
	}

	.sn-pipeline li:not(:last-child)::after {
		content: "↓";
		margin: 8px 0 8px 12px;
	}
}

.sn-workflow-visual {
	background: var( --wp--preset--color--secondary-navy );
	border-radius: 20px;
	padding: 40px;
}

.sn-workflow-visual .sn-pipeline li:not(:last-child)::after {
	color: rgba( 255, 255, 255, 0.4 );
}

.sn-workflow-visual .sn-chip {
	background: rgba( 255, 255, 255, 0.08 );
	color: var( --wp--preset--color--white );
}

/* ---------- Feature matrix ---------- */

.sn-feature-matrix table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.sn-feature-matrix caption {
	text-align: left;
	font-weight: 700;
	padding: 10px 0;
	color: var( --wp--preset--color--heading-text );
}

.sn-feature-matrix th,
.sn-feature-matrix td {
	padding: 10px 12px;
	border-bottom: 1px solid var( --wp--preset--color--border );
	text-align: center;
}

.sn-feature-matrix th:first-child,
.sn-feature-matrix td:first-child {
	text-align: left;
}

.sn-feature-matrix thead th {
	color: var( --wp--preset--color--muted-text );
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sn-feature-matrix .sn-check {
	color: var( --wp--preset--color--success );
	font-weight: 700;
}

.sn-feature-matrix .sn-dash {
	color: var( --wp--preset--color--muted-text );
}

.sn-feature-matrix details {
	border: 1px solid var( --wp--preset--color--border );
	border-radius: 12px;
	margin-bottom: 12px;
	padding: 0;
	overflow: hidden;
}

.sn-feature-matrix summary {
	cursor: pointer;
	padding: 16px 20px;
	font-weight: 600;
	list-style: none;
}

.sn-feature-matrix summary::-webkit-details-marker {
	display: none;
}

.sn-feature-matrix summary::after {
	content: "+";
	float: right;
	color: var( --wp--preset--color--primary-blue );
}

.sn-feature-matrix details[open] summary::after {
	content: "–";
}

.sn-feature-matrix details table {
	margin: 0 20px 16px;
	width: calc(100% - 40px);
}

.sn-automation-note {
	font-size: 13px;
	color: var( --wp--preset--color--muted-text );
	font-style: italic;
}

/* Mobile: collapse the wide comparison table into stacked rows */
@media (max-width: 600px) {
	.sn-feature-matrix table:not(.sn-no-stack),
	.sn-feature-matrix thead,
	.sn-feature-matrix tbody,
	.sn-feature-matrix th,
	.sn-feature-matrix td,
	.sn-feature-matrix tr {
		display: block;
	}

	.sn-feature-matrix thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	.sn-feature-matrix tr {
		border-bottom: 1px solid var( --wp--preset--color--border );
		padding: 12px 0;
	}

	.sn-feature-matrix td {
		border: none;
		padding: 4px 0;
		text-align: left !important;
	}

	.sn-feature-matrix td::before {
		content: attr(data-label) ": ";
		font-weight: 600;
		color: var( --wp--preset--color--muted-text );
	}
}

/* ---------- CTA blocks ---------- */

.sn-cta-block {
	border-radius: 20px;
	padding: 56px 48px;
	text-align: center;
}

@media (max-width: 782px) {
	.sn-cta-block {
		padding: 40px 24px;
	}
}

/* ---------- Blog prose ---------- */

.sn-blog-prose {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	font-size: 18px;
	line-height: 1.7;
}

.sn-blog-prose h2 {
	margin-top: 2.5rem;
}

.sn-blog-prose h3 {
	margin-top: 2rem;
}

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

.sn-faq details {
	border-bottom: 1px solid var( --wp--preset--color--border );
	padding: 18px 0;
}

.sn-faq summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 18px;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.sn-faq summary::-webkit-details-marker {
	display: none;
}

.sn-faq summary::after {
	content: "+";
	color: var( --wp--preset--color--primary-blue );
	font-size: 22px;
	flex-shrink: 0;
	margin-left: 16px;
}

.sn-faq details[open] summary::after {
	content: "–";
}

.sn-faq details p {
	margin-top: 12px;
	color: var( --wp--preset--color--body-text );
}

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

.sn-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: transparent;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sn-header.is-stuck {
	background: rgba( 255, 255, 255, 0.96 );
	box-shadow: 0 1px 0 var( --wp--preset--color--border );
	backdrop-filter: saturate(180%) blur(6px);
}

/* ---------- Motion ---------- */

.sn-hover-lift {
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sn-hover-lift:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba( 11, 23, 38, 0.08 );
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

/* ---------- Skip link ---------- */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var( --wp--preset--color--primary-navy );
	color: #fff;
	padding: 12px 20px;
	z-index: 999;
}

.skip-link:focus {
	left: 12px;
	top: 12px;
}
