/* ============================================================
   BlogOps WP — site styles
   Tokens derived from the logo: navy #14274e, blue #2f6bf0,
   tint #eef4ff. Type: Space Grotesk / IBM Plex Sans / Plex Mono.
   ============================================================ */

:root {
	--navy: #14274e;
	--navy-deep: #0d1b38;
	--blue: #2f6bf0;
	--blue-dark: #1e53c9;
	--ink: #22304a;
	--muted: #5a6b8a;
	--paper: #ffffff;
	--tint: #eef4ff;
	--line: #d9e3f5;
	--green: #1f9d55;
	--radius: 12px;
	--display: "Space Grotesk", system-ui, sans-serif;
	--body: "IBM Plex Sans", system-ui, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
	margin: 0;
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.12; margin: 0 0 16px; }
h1 { font-size: clamp(42px, 6vw, 68px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 20px; font-weight: 700; }

.eyebrow {
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--blue);
	margin: 0 0 14px;
}

.lede { font-size: 19px; color: var(--muted); max-width: 560px; }

.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: -6px auto 48px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	font-family: var(--display);
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	text-align: center;
	border-radius: 999px;
	padding: 12px 26px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-big { font-size: 17px; padding: 15px 32px; }
.btn-small { font-size: 14px; padding: 8px 18px; background: var(--blue); color: #fff; }

/* ---------- Header ---------- */
.site-head {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand img { display: block; width: 180px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--navy); text-decoration: none; }
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--tint) 0%, #fff 78%); padding: 84px 0 0; overflow: hidden; }
.hero-inner { display: block; }
.hero-copy { max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.hero-banner { padding-top: 44px; padding-bottom: 56px; }
.hero-banner img {
	display: block;
	border-radius: var(--radius);
	box-shadow: 0 24px 60px rgba(20,39,78,.18);
	border: 1px solid var(--line);
}

/* verify line — the one orchestrated motion moment */
.verify-line {
	font-family: var(--mono);
	font-size: 14px;
	color: var(--muted);
	background: var(--navy-deep);
	color: #bcd2ff;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 8px;
	min-height: 20px;
	min-width: 340px;
}
.verify-line .prompt { color: var(--green); }
.verify-line .caret {
	display: inline-block; width: 8px; height: 16px;
	background: #bcd2ff; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 26px 20px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Steps — real sequence, numbers earn their place */
.steps { counter-reset: step; list-style: none; margin: 0 auto; padding: 0; max-width: 720px; }
.steps li {
	counter-increment: step;
	position: relative;
	padding: 0 0 26px 66px;
	color: var(--muted);
}
.steps li strong { color: var(--navy); font-family: var(--display); }
.steps li::before {
	content: counter(step, decimal-leading-zero);
	position: absolute; left: 0; top: -2px;
	font-family: var(--mono);
	font-size: 15px;
	color: var(--blue);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 6px 10px;
}
.steps li:not(:last-child)::after {
	content: "";
	position: absolute; left: 22px; top: 38px; bottom: 4px;
	width: 1px; background: var(--line);
}

/* ---------- Forever / license artifact ---------- */
.forever-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.forever-copy .section-title { text-align: left; }
.check-list { list-style: none; padding: 0; margin: 22px 0; }
.check-list li { padding: 5px 0 5px 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.promise {
	border-left: 4px solid var(--blue);
	background: var(--tint);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 18px 22px;
	margin-top: 28px;
}
.promise h3 { margin-bottom: 6px; }
.promise p { margin: 0; color: var(--muted); }

.license-card {
	background: var(--navy-deep);
	border-radius: var(--radius);
	box-shadow: 0 28px 70px rgba(13,27,56,.4);
	overflow: hidden;
	transform: rotate(1.5deg);
}
.license-head {
	display: flex; align-items: center; gap: 7px;
	padding: 12px 16px;
	background: rgba(255,255,255,.05);
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.license-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.22); }
.license-title { font-family: var(--mono); font-size: 13px; color: #8fa8d8; margin-left: 8px; }
.license-body {
	margin: 0; padding: 24px 22px;
	font-family: var(--mono); font-size: 14px; line-height: 1.8;
	color: #9fc0ff; word-break: break-all; white-space: pre-wrap;
}
.license-stamp {
	display: flex; align-items: center; gap: 12px;
	padding: 14px 22px 18px;
	font-family: var(--mono); font-size: 13px; color: #7ee2a8;
}
.license-stamp small { color: #6d84ad; }
.stamp-check {
	width: 34px; height: 34px; flex: 0 0 34px;
	display: grid; place-items: center;
	border: 2px solid var(--green); border-radius: 50%;
	color: var(--green); font-size: 17px; font-weight: 700;
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; }
.plan {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px 24px;
	display: flex; flex-direction: column;
}
.plan h3 { margin-bottom: 4px; }
.price { font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--navy); margin: 0; }
.price-note { color: var(--muted); font-size: 14px; margin: 2px 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan li { padding: 5px 0 5px 26px; position: relative; font-size: 15px; color: var(--muted); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.plan .btn { width: 100%; }

.plan-featured {
	border: 2px solid var(--blue);
	box-shadow: 0 18px 44px rgba(47,107,240,.22);
	position: relative;
	transform: translateY(-10px);
}
.plan-featured li::before { color: var(--green); }
.plan-flag {
	position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
	background: var(--blue); color: #fff;
	font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
	padding: 5px 14px; border-radius: 999px; margin: 0; white-space: nowrap;
}
.pricing-fineprint { text-align: center; color: var(--muted); font-size: 13.5px; max-width: 720px; margin: 34px auto 0; }

/* ---------- Modal ---------- */
.modal {
	position: fixed; inset: 0; z-index: 90;
	background: rgba(13,27,56,.55);
	display: grid; place-items: center;
	padding: 20px;
}
.modal[hidden] { display: none; }
.modal-box {
	background: #fff; border-radius: var(--radius);
	max-width: 460px; width: 100%;
	padding: 30px 28px;
	position: relative;
	box-shadow: 0 30px 80px rgba(13,27,56,.35);
}
.modal-close {
	position: absolute; top: 10px; right: 14px;
	background: none; border: 0; font-size: 28px; color: var(--muted); cursor: pointer;
}
.modal-note { font-size: 13.5px; color: var(--muted); margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
	font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--navy);
	padding: 18px 34px 18px 0;
	cursor: pointer; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; position: absolute; right: 4px; top: 14px;
	font-size: 24px; color: var(--blue); transition: transform .15s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--navy); text-align: center; }
.final-cta h2, .final-cta p { color: #fff; }
.final-cta p { color: #bcd2ff; margin-top: -8px; }
.final-cta .hero-cta { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--navy-deep); color: #9fb4dd; padding: 52px 0 30px; }
.foot-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-tag { font-size: 14px; margin: 10px 0 0; }
.foot-nav { display: flex; flex-direction: column; gap: 9px; }
.foot-nav a { color: #bcd2ff; text-decoration: none; font-size: 15px; }
.foot-nav a:hover { color: #fff; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px; }
.foot-legal p { font-size: 13px; margin: 0; }

/* ---------- Docs / inner pages ---------- */
.page-head { background: var(--tint); padding: 56px 0 44px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); }
.page-head p { color: var(--muted); max-width: 640px; margin: 0; }
.doc-body { padding: 56px 0 88px; }
.doc-body h2 { font-size: 26px; margin-top: 44px; text-align: left; }
.doc-body h3 { margin-top: 28px; }
.doc-body code { font-family: var(--mono); font-size: 14.5px; background: var(--tint); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.doc-body pre { background: var(--navy-deep); color: #bcd2ff; font-family: var(--mono); font-size: 14px; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; }
.doc-body pre code { background: none; border: 0; padding: 0; color: inherit; }
.callout { border-left: 4px solid var(--blue); background: var(--tint); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 20px 0; }
.callout p { margin: 0; }

/* Changelog */
.release { border-left: 2px solid var(--line); padding: 0 0 34px 28px; position: relative; }
.release::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.release h2 { margin: 0 0 2px; font-size: 22px; text-align: left; }
.release .release-date { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- Support form ---------- */
.form-grid { display: grid; gap: 18px; max-width: 560px; }
.form-grid label { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--navy); display: block; margin-bottom: 6px; }
.form-grid input, .form-grid textarea, .form-grid select {
	width: 100%; font-family: var(--body); font-size: 16px;
	border: 1px solid var(--line); border-radius: 8px;
	padding: 11px 14px; color: var(--ink); background: #fff;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form-msg { border-radius: 8px; padding: 12px 16px; font-size: 15px; }
.form-msg.ok { background: #e8f7ee; color: #14683a; border: 1px solid #bfe8cf; }
.form-msg.err { background: #fdeeee; color: #8c2323; border: 1px solid #f3c9c9; }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.feature-grid { grid-template-columns: repeat(2, 1fr); }
	.pricing-grid { grid-template-columns: repeat(2, 1fr); }
	.plan-featured { transform: none; }
	.forever-inner { grid-template-columns: 1fr; gap: 40px; }
	.license-card { transform: none; max-width: 480px; }
}
@media (max-width: 680px) {
	.feature-grid, .pricing-grid { grid-template-columns: 1fr; }
	.site-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		flex-direction: column; align-items: flex-start;
		padding: 18px 24px; gap: 16px;
	}
	.site-nav.open { display: flex; }
	.nav-toggle { display: block; }
	.hero { padding-top: 56px; }
	.verify-line { min-width: 0; width: 100%; }
	.section { padding: 60px 0; }
}

/* ---------- AI requirements ---------- */
.ai-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 980px; margin: 0 auto; }
.ai-mode {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 30px 28px;
	position: relative;
}
.ai-mode-alt { background: var(--tint); border-color: #c4d6f7; }
.ai-mode-flag {
	display: inline-block;
	font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
	color: var(--blue); background: #fff; border: 1px solid var(--line);
	border-radius: 999px; padding: 4px 12px; margin: 0 0 14px;
}
.ai-mode p { color: var(--muted); }
.ai-mode code { font-family: var(--mono); font-size: 14px; background: var(--navy-deep); color: #bcd2ff; border-radius: 6px; padding: 2px 8px; }
@media (max-width: 820px) { .ai-modes { grid-template-columns: 1fr; } }

/* 7-card feature grid: center the odd one out on desktop */
@media (min-width: 961px) {
	.feature-grid > .feature:last-child:nth-child(3n+1) { grid-column: 2; }
}

/* Arriving via #lifetime (e.g. from the plugin's upgrade notices): pulse the card */
.plan-featured:target { animation: bopsPulse 1.6s ease-out 2; scroll-margin-top: 110px; }
@keyframes bopsPulse {
	0%   { box-shadow: 0 18px 44px rgba(47,107,240,.22); }
	40%  { box-shadow: 0 0 0 8px rgba(47,107,240,.35), 0 18px 44px rgba(47,107,240,.3); }
	100% { box-shadow: 0 18px 44px rgba(47,107,240,.22); }
}
