/*
Theme Name: WP Site Porter
Theme URI: https://wpsiteporter.com
Description: Product marketing theme for WP Site Porter.
Author: EncodeFox
Version: 1.2.0
Text Domain: wpsiteporter
*/

:root {
	--ink: #0b1220;
	--ink-soft: #151d2e;
	--slate: #3d4a5c;
	--muted: #5a6a7e;
	--paper: #f3f5f8;
	--paper-2: #e8ecf1;
	--white: #ffffff;
	--teal: #0f8a72;
	--teal-deep: #0a6353;
	--signal: #2dd4a8;
	--line: rgba(11, 18, 32, 0.1);
	--line-strong: rgba(11, 18, 32, 0.16);
	--font-display: "Space Grotesk", "Segoe UI", sans-serif;
	--font-body: "Manrope", system-ui, sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background:
		radial-gradient(ellipse 70% 45% at 100% -10%, rgba(45, 212, 168, 0.08), transparent 55%),
		radial-gradient(ellipse 55% 40% at -5% 30%, rgba(15, 138, 114, 0.06), transparent 50%),
		linear-gradient(180deg, #f7f9fb 0%, var(--paper) 45%, #eef1f5 100%);
	line-height: 1.6;
	min-height: 100vh;
	font-size: 1.05rem;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--teal-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
a:hover { color: var(--teal); }

.wpsp-shell {
	width: min(1120px, calc(100% - 2.5rem));
	margin: 0 auto;
}

/* ---------- Header ---------- */
.wpsp-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
	padding: 1.15rem 0;
}

body:not(.home) .wpsp-header {
	position: sticky;
	top: 0;
	background: rgba(243, 245, 248, 0.88);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(12px);
}

.wpsp-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.wpsp-brand {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--ink);
	text-decoration: none;
	letter-spacing: -0.04em;
}

.home .wpsp-header .wpsp-brand,
.home .wpsp-header .wpsp-nav-links a {
	color: rgba(255, 255, 255, 0.9);
}

.home .wpsp-header .wpsp-nav-links a:hover {
	color: #fff;
}

.wpsp-nav-links {
	display: flex;
	gap: 1.4rem;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpsp-nav-links a {
	text-decoration: none;
	color: var(--muted);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.88rem;
	letter-spacing: -0.01em;
}

.wpsp-nav-links a:hover { color: var(--ink); }

.wpsp-btn,
.wpsp-btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	border-radius: 6px;
	padding: 0.78rem 1.3rem;
	font-family: var(--font-display);
	font-weight: 650;
	font-size: 0.9rem;
	letter-spacing: -0.02em;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none !important;
	transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.wpsp-btn {
	background: var(--teal);
	color: #fff !important;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.wpsp-btn:hover {
	background: var(--teal-deep);
	transform: translateY(-1px);
}

.wpsp-btn-ghost {
	background: transparent;
	border-color: var(--line-strong);
	color: var(--ink) !important;
}

.wpsp-btn-ghost:hover {
	border-color: var(--ink);
	background: rgba(255, 255, 255, 0.55);
}

.home .wpsp-header .wpsp-btn {
	background: #fff;
	color: var(--ink) !important;
	box-shadow: none;
}

.home .wpsp-header .wpsp-btn:hover {
	background: var(--signal);
	color: var(--ink) !important;
}

.home .wpsp-hero .wpsp-btn {
	background: var(--signal);
	color: var(--ink) !important;
	box-shadow: none;
}

.home .wpsp-hero .wpsp-btn:hover {
	background: #fff;
	transform: translateY(-1px);
}

.home .wpsp-hero .wpsp-btn-ghost {
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff !important;
}

.home .wpsp-hero .wpsp-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
}

/* ---------- Hero (full-bleed photo) ---------- */
.wpsp-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	align-items: end;
	padding: 7rem 0 4.75rem;
	overflow: hidden;
	color: #f4f7f9;
}

.wpsp-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: #0b1220;
	background-image:
		linear-gradient(105deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.72) 38%, rgba(11, 18, 32, 0.35) 68%, rgba(11, 18, 32, 0.45) 100%),
		linear-gradient(180deg, rgba(11, 18, 32, 0.25) 0%, transparent 35%, rgba(11, 18, 32, 0.7) 100%),
		url("assets/hero-desk.jpg");
	background-size: cover;
	background-position: center right;
	animation: wpsp-ken 28s var(--ease) infinite alternate;
}

@keyframes wpsp-ken {
	from { transform: scale(1); }
	to { transform: scale(1.05); }
}

.wpsp-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 34rem;
	animation: wpsp-rise 0.9s var(--ease) both;
}

@keyframes wpsp-rise {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}

.wpsp-hero-brand {
	font-family: var(--font-display);
	font-size: clamp(2.75rem, 7.5vw, 4.75rem);
	line-height: 0.92;
	margin: 0 0 1.15rem;
	letter-spacing: -0.055em;
	font-weight: 700;
	color: #fff;
	text-wrap: balance;
}

.wpsp-hero h1 {
	font-family: var(--font-body);
	font-size: clamp(1.15rem, 2.2vw, 1.35rem);
	font-weight: 500;
	margin: 0 0 0.85rem;
	max-width: 28ch;
	line-height: 1.4;
	color: rgba(244, 247, 249, 0.92);
	letter-spacing: -0.015em;
}

.wpsp-hero-inner > p:not(.wpsp-hero-brand) {
	margin: 0 0 1.75rem;
	font-size: 0.98rem;
	font-weight: 500;
	max-width: 36ch;
	line-height: 1.55;
	color: rgba(244, 247, 249, 0.68);
}

.wpsp-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	animation: wpsp-rise 0.9s var(--ease) 0.12s both;
}

/* ---------- Sections ---------- */
.wpsp-section {
	padding: 5.25rem 0;
}

.wpsp-section h2 {
	font-family: var(--font-display);
	font-size: clamp(1.85rem, 3.8vw, 2.55rem);
	margin: 0 0 0.6rem;
	letter-spacing: -0.04em;
	line-height: 1.08;
	font-weight: 700;
}

.wpsp-section .lead {
	font-size: 1.08rem;
	font-weight: 500;
	color: var(--muted);
	max-width: 38ch;
	margin: 0 0 1.75rem;
	line-height: 1.55;
}

.wpsp-section-band {
	background: var(--ink);
	color: #e8eef4;
	position: relative;
	overflow: hidden;
}

.wpsp-section-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 50% 80% at 100% 50%, rgba(15, 138, 114, 0.22), transparent 60%),
		linear-gradient(90deg, transparent 60%, rgba(45, 212, 168, 0.05));
	pointer-events: none;
}

.wpsp-section-band .wpsp-shell { position: relative; z-index: 1; }
.wpsp-section-band h2 { color: #fff; }
.wpsp-section-band .lead { color: rgba(232, 238, 244, 0.65); }

.wpsp-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3.5rem;
	align-items: start;
}

.wpsp-feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
	font-size: 0.98rem;
	font-weight: 550;
}

.wpsp-feature-list li {
	padding: 0.95rem 0 0.95rem 1.35rem;
	position: relative;
	color: var(--ink-soft);
	letter-spacing: -0.015em;
	border-bottom: 1px solid var(--line);
}

.wpsp-feature-list li:first-child {
	border-top: 1px solid var(--line);
}

.wpsp-feature-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.3rem;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 1px;
	background: var(--teal);
}

.wpsp-section-band .wpsp-feature-list li {
	color: rgba(232, 238, 244, 0.88);
	border-color: rgba(255, 255, 255, 0.1);
}

.wpsp-section-band .wpsp-feature-list li::before {
	background: var(--signal);
}

.wpsp-cta-plain {
	padding: 5rem 0 6rem;
	text-align: left;
}

.wpsp-cta-plain .lead { margin-bottom: 1.5rem; }

/* ---------- Pricing ---------- */
.wpsp-pricing {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	overflow: hidden;
	background: var(--white);
}

.wpsp-price {
	padding: 2rem 1.5rem 2.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	border-right: 1px solid var(--line);
	background: transparent;
	transition: background 0.3s ease;
}

.wpsp-price:last-child { border-right: 0; }

.wpsp-price:hover {
	background: rgba(15, 138, 114, 0.03);
}

.wpsp-price.featured {
	background: rgba(15, 138, 114, 0.06);
	position: relative;
}

.wpsp-price.featured::before {
	content: "Most popular";
	position: absolute;
	top: 0.85rem;
	right: 1rem;
	font-family: var(--font-display);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--teal-deep);
}

.wpsp-price h3 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.1rem;
	letter-spacing: -0.03em;
	font-weight: 700;
}

.wpsp-price .amount {
	font-family: var(--font-display);
	font-size: 2.65rem;
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 1;
}

.wpsp-price .amount span {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--muted);
	font-family: var(--font-body);
}

.wpsp-price ul {
	margin: 0.4rem 0 1.15rem;
	padding: 0;
	list-style: none;
	color: var(--muted);
	flex: 1;
	font-size: 0.9rem;
	font-weight: 500;
}

.wpsp-price ul li {
	padding: 0.45rem 0;
	border-top: 1px solid var(--line);
}

.wpsp-matrix-wrap {
	margin-top: 4rem;
	overflow-x: auto;
}

.wpsp-matrix-title {
	font-family: var(--font-display);
	letter-spacing: -0.04em;
	margin: 0 0 1rem;
	font-size: 1.5rem;
	font-weight: 700;
}

.wpsp-matrix {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
	font-weight: 500;
}

.wpsp-matrix th,
.wpsp-matrix td {
	padding: 0.85rem 0.75rem;
	text-align: left;
	border-bottom: 1px solid var(--line);
}

.wpsp-matrix th {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.wpsp-matrix td:not(:first-child),
.wpsp-matrix th:not(:first-child) {
	text-align: center;
}

.wpsp-matrix tbody tr:hover td {
	background: rgba(15, 138, 114, 0.04);
}

/* ---------- Interior pages ---------- */
.page-header {
	padding: 3.25rem 0 1.15rem;
}

.page-header h1 {
	font-family: var(--font-display);
	font-size: clamp(2.1rem, 4.8vw, 3rem);
	margin: 0 0 0.5rem;
	letter-spacing: -0.045em;
	line-height: 1.05;
	font-weight: 700;
}

.page-header p {
	margin: 0;
	color: var(--muted);
	max-width: 42ch;
	font-size: 1.05rem;
	font-weight: 500;
}

.wpsp-prose {
	max-width: 68ch;
	font-size: 1.05rem;
}

.wpsp-prose h1,
.wpsp-prose h2 {
	font-family: var(--font-display);
	letter-spacing: -0.035em;
	line-height: 1.15;
}

.wpsp-prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: 0.95rem;
}

.wpsp-prose th,
.wpsp-prose td {
	border-bottom: 1px solid var(--line);
	padding: 0.7rem 0.4rem;
	text-align: left;
}

.wpsp-account { max-width: 640px; }
.wpsp-license-key code {
	font-size: 1.05rem;
	background: var(--paper-2);
	padding: 0.55rem 0.8rem;
	border-radius: 6px;
	display: inline-block;
}
.wpsp-site-list { list-style: none; padding: 0; margin: 0; }
.wpsp-site-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--line);
}
.wpsp-muted { color: var(--muted); }
.wpsp-account-msg {
	background: rgba(15, 138, 114, 0.08);
	padding: 0.85rem 1rem;
	border-radius: 6px;
	border: 1px solid rgba(15, 138, 114, 0.15);
}

/* ---------- Footer ---------- */
.wpsp-footer {
	border-top: 1px solid var(--line);
	padding: 2.5rem 0 3rem;
	margin-top: 1rem;
	color: var(--muted);
	font-size: 0.88rem;
	font-weight: 500;
	background: rgba(255, 255, 255, 0.35);
}

.wpsp-footer-row {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	align-items: flex-start;
}

.wpsp-footer strong {
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.03em;
}

.wpsp-footer a {
	color: var(--muted);
	text-decoration: none;
	margin-right: 1.1rem;
}

.wpsp-footer a:hover { color: var(--ink); }

/* ---------- Motion reveal ---------- */
.wpsp-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.wpsp-reveal.is-in {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.wpsp-hero-bg,
	.wpsp-hero-inner,
	.wpsp-cta-row,
	.wpsp-reveal {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

@media (max-width: 900px) {
	.wpsp-pricing { grid-template-columns: 1fr; }
	.wpsp-price {
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}
	.wpsp-price:last-child { border-bottom: 0; }
	.wpsp-price.featured::before {
		position: static;
		display: inline-block;
		margin-bottom: 0.35rem;
	}
	.wpsp-nav-links { display: none; }
	.wpsp-split { grid-template-columns: 1fr; gap: 1.75rem; }
	.wpsp-hero {
		padding-top: 6rem;
		min-height: 90vh;
		align-items: end;
	}
	.wpsp-hero-bg {
		background-position: 70% center;
	}
}
