/*
Theme Name: Levers Site
Theme URI: https://www.contentpowered.com
Author: Content Powered
Author URI: https://www.contentpowered.com
Description: A custom one-page marketing site for the Levers plugin.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: levers-site
*/

:root {
	--ink: #0f172a;
	--ink-soft: #1e293b;
	--blue: #3958E9;
	--blue-deep: #2942c4;
	--blue-soft: #eef1ff;
	--paper: #ffffff;
	--cream: #f8f9fc;
	--line: #e6e8f0;
	--muted: #5b6478;
	--text: #1d2327;
	--radius: 14px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 6px 24px rgba(15, 23, 42, 0.08);
	--shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.55;
	color: var(--text);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }

img { max-width: 100%; height: auto; display: block; }

.wrap {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 32px;
}

/* ===== Top nav ===== */
.site-nav {
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	background: rgba(255, 255, 255, 0.78);
	border-bottom: 1px solid var(--line);
}
.site-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}
.site-nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.site-nav__brand .levers-mark { width: 32px; height: 32px; border-radius: 8px; }
.site-nav__brand .levers-mark .levers-track { width: 22px; height: 11px; }
.site-nav__brand .levers-mark .levers-thumb { width: 8px; height: 8px; top: 1.5px; right: 1.5px; }
.site-nav__links { display: flex; gap: 28px; align-items: center; }
.site-nav__links a { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.site-nav__links a:hover { color: var(--ink); }
.site-nav__cta {
	background: var(--ink);
	color: #fff !important;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 14px;
}
.site-nav__cta:hover { background: var(--blue); }
@media (max-width: 720px) {
	.site-nav__links a:not(.site-nav__cta) { display: none; }
}

/* ===== Brand mark (the logo - CSS-only toggle) ===== */
.levers-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	background: var(--ink);
	border-radius: 12px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		0 1px 2px rgba(0, 0, 0, 0.15);
	width: 48px;
	height: 48px;
}
.levers-track {
	position: relative;
	display: block;
	width: 32px;
	height: 16px;
	background: var(--blue);
	border-radius: 999px;
}
.levers-thumb {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 12px;
	height: 12px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hero-sized logo - massive, centered */
.levers-mark--hero {
	width: 240px;
	height: 240px;
	border-radius: 60px;
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, 0.06),
		0 2px 4px rgba(15, 23, 42, 0.18);
	position: relative;
}
.levers-mark--hero .levers-track {
	width: 164px;
	height: 84px;
	border-radius: 999px;
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
	background: #334155;
	animation: leversHeroTrack 450ms ease-out 700ms forwards;
}
.levers-mark--hero .levers-thumb {
	top: 10px;
	right: 10px;
	width: 64px;
	height: 64px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
	transform: translateX(-80px);
	animation: leversHeroThumb 550ms cubic-bezier(0.34, 1.56, 0.64, 1) 700ms forwards;
}

@keyframes leversHeroTrack {
	to { background: var(--blue); }
}
@keyframes leversHeroThumb {
	to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
	.levers-mark--hero .levers-track {
		animation: none;
		background: var(--blue);
	}
	.levers-mark--hero .levers-thumb {
		animation: none;
		transform: none;
	}
}

/* ===== Hero ===== */
.hero {
	position: relative;
	padding: 112px 0 94px;
	text-align: center;
	background-color: var(--paper);
	background-image: url("images/clean_textile.png");
	background-repeat: repeat;
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}
.hero__mark-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 48px;
}
.hero h1 {
	font-size: clamp(40px, 6vw, 76px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.02;
	margin: 0 0 18px;
	color: var(--ink);
}
.hero h1 .accent { color: var(--blue); }
.hero__lede {
	max-width: 720px;
	margin: 0 auto 32px;
	font-size: clamp(17px, 1.6vw, 21px);
	color: var(--muted);
}
.hero__ctas {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 22px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn--primary {
	background: var(--ink);
	color: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}
.btn--primary:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.btn--xl {
	background: var(--blue);
	color: #fff;
	font-size: 19px;
	padding: 20px 36px;
	gap: 12px;
	box-shadow: 0 12px 32px rgba(57, 88, 233, 0.35);
}
.btn--xl:hover { background: var(--blue-deep); color: #fff; transform: translateY(-1px); }
.btn__icon { display: inline-flex; align-items: center; justify-content: center; }
.btn__icon svg { width: 22px; height: 22px; stroke: currentColor; }
.btn--ghost {
	background: #fff;
	color: var(--ink);
	border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

.hero__meta {
	display: flex;
	justify-content: center;
	gap: 28px;
	margin-top: 36px;
	flex-wrap: wrap;
	color: var(--muted);
	font-size: 14px;
}
.hero__meta strong { color: var(--ink); font-weight: 700; }

/* ===== Section base ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--cream); }
.section--shade { background: #e9ecf2; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__kicker {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 14px;
}
.section__title {
	font-size: clamp(28px, 3.6vw, 44px);
	letter-spacing: -0.01em;
	line-height: 1.1;
	margin: 0 0 16px;
	color: var(--ink);
	font-weight: 800;
}
.section__sub {
	font-size: 18px;
	color: var(--muted);
	margin: 0;
}

/* ===== Two-pitch (why levers) ===== */
.pitches {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
@media (max-width: 820px) { .pitches { grid-template-columns: 1fr; } }
.pitch {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px;
	box-shadow: var(--shadow-sm);
	position: relative;
	overflow: hidden;
}
.pitch__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}
.pitch__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--ink);
	color: #fff;
	font-weight: 700;
}
.pitch h3 {
	margin: 0;
	font-size: 22px;
	color: var(--ink);
	letter-spacing: -0.01em;
}
.pitch p { margin: 0; color: var(--muted); }

/* ===== Category cards ===== */
.cats {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}
@media (max-width: 980px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } }
.cat {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	text-align: left;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cat:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat__icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--blue-soft);
	color: var(--blue);
	margin-bottom: 14px;
}
.cat__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cat h4 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.cat__desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ===== Levers grid ===== */
.levers-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
@media (max-width: 900px) { .levers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .levers-grid { grid-template-columns: 1fr; } }
.lever-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.lever-card:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.lever-card__icon {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--cream);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
}
.lever-card__icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lever-card__body { flex: 1; min-width: 0; }
.lever-card h5 { margin: 0 0 4px; font-size: 15px; color: var(--ink); font-weight: 600; }
.lever-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.lever-card__toggle {
	flex: 0 0 auto;
	margin-top: 8px;
}
.levers-more {
	text-align: center;
	margin-top: 28px;
	color: var(--muted);
	font-size: 14px;
}

/* ===== Replaces-plugins strip ===== */
.replaces {
	position: relative;
	overflow: hidden;
	background: var(--ink);
	color: #fff;
	border-radius: 24px;
	padding: 48px;
	text-align: center;
}
.replaces h3 {
	font-size: clamp(24px, 3vw, 34px);
	margin: 0 0 8px;
	letter-spacing: -0.01em;
}
.replaces p { color: #b9c0d1; max-width: 640px; margin: 0 auto 28px; }
.replaces__pill {
	display: inline-block;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #e6e8f0;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	white-space: nowrap;
}

.replaces__marquees {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.marquee {
	overflow: hidden;
	width: 100%;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
	        mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.marquee__track {
	display: inline-flex;
	gap: 10px;
	white-space: nowrap;
	will-change: transform;
	padding-right: 10px;
}
.marquee--left  .marquee__track { animation: leversMarqueeLeft  55s linear infinite; }
.marquee--right .marquee__track { animation: leversMarqueeRight 55s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes leversMarqueeLeft {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@keyframes leversMarqueeRight {
	from { transform: translateX(-50%); }
	to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
	.marquee__track { animation: none; }
}

/* ===== Install ===== */
.install {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	align-items: center;
}
@media (max-width: 860px) { .install { grid-template-columns: 1fr; } }
.install h2 {
	font-size: clamp(28px, 3.4vw, 40px);
	color: var(--ink);
	margin: 0 0 14px;
	letter-spacing: -0.01em;
}
.install p { color: var(--muted); margin: 0 0 24px; }
.install__steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.install__step { display: flex; gap: 12px; align-items: flex-start; }
.install__num {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--blue);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
}
.install__step p { margin: 2px 0 0; color: var(--text); }

/* Mock browser */
.mockup {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.mockup__bar { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.mockup__dot { width: 10px; height: 10px; border-radius: 50%; background: #d8dbe5; }
.mockup__dot--r { background: #ff605c; }
.mockup__dot--y { background: #ffbd44; }
.mockup__dot--g { background: #00ca4e; }
.mockup__body { padding: 22px; }
.mockup__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}
.mockup__row:last-child { border-bottom: 0; }
.mockup__row-left { display: flex; gap: 12px; align-items: center; min-width: 0; }
.mockup__row-icon {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--blue-soft);
	color: var(--blue);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.mockup__row-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mockup__row-text { min-width: 0; }
.mockup__row-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.mockup__row-desc { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Mockup toggle (same look as logo, but inline-sized) */
.mockup__toggle {
	position: relative;
	width: 36px;
	height: 20px;
	background: var(--line);
	border-radius: 999px;
	transition: background 0.2s ease;
	flex: 0 0 auto;
}
.mockup__toggle::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: left 0.2s ease;
}
.mockup__toggle--on { background: var(--blue); }
.mockup__toggle--on::after { left: 18px; }

/* ===== Footer ===== */
.site-footer {
	background: var(--ink);
	color: #b9c0d1;
	padding: 56px 0 32px;
}
.site-footer__top {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer__brand { display: flex; gap: 14px; align-items: center; color: #fff; }
.site-footer__brand .levers-mark { width: 40px; height: 40px; border-radius: 10px; }
.site-footer__brand .levers-track { width: 26px; height: 13px; }
.site-footer__brand .levers-thumb { width: 9px; height: 9px; top: 2px; right: 2px; }
.site-footer__brand strong { color: #fff; font-size: 18px; }
.site-footer__brand span { display: block; font-size: 13px; color: #8b94a8; }
.site-footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer__links a { color: #b9c0d1; font-size: 14px; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	margin-top: 24px;
	font-size: 13px;
	color: #8b94a8;
	flex-wrap: wrap;
	gap: 8px;
}
.site-footer__credit {
	color: #fff;
	text-decoration: underline;
}
.site-footer__credit:hover { color: #fff; }
