/*
 * PostPulse marketing site.
 *
 * Palette and type are lifted directly from the plugin's own admin stylesheet
 * (assets/css/postpulse-admin.css) so the site and the product look like one
 * thing. If the plugin's brand colours change, change them here too.
 *
 * Writing rule that applies to every string on this site: no em dashes in
 * anything a visitor can read. Rewrite the sentence instead.
 */

:root {
	/* Surfaces */
	--bg: #0d0d0d;
	--surface: #161616;
	--card: #1c1c1c;
	--card-hover: #212121;
	--border: #2a2a2a;
	--border-subtle: #1f1f1f;

	/* Text */
	--text: #f5f0e8;
	--text-secondary: #8a8070;
	--text-tertiary: #4a4540;

	/* Accent */
	--gold: #c8a96e;
	--gold-muted: rgba(200, 169, 110, 0.10);
	--gold-border: rgba(200, 169, 110, 0.25);

	/* Status, reused from the plugin's health scoring */
	--healthy: #4ade80;
	--warning: #f59e0b;
	--critical: #ef4444;

	--maxw: 1080px;
	--radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }

p { margin: 0 0 1.1em; }
a { color: var(--gold); }

.wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px;
}

/* Focus rings: :focus-visible only. A ring on plain :focus fires on every
   mouse click and stays until something else is clicked. Same rule the
   plugin's own stylesheet follows. */
a:focus,
button:focus { outline: none; }

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
	border-radius: 3px;
}

/* ---------------------------------------------------------------- header */

header.site {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(13, 13, 13, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-subtle);
}

.nav {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 16px 24px;
	max-width: var(--maxw);
	margin: 0 auto;
	flex-wrap: wrap;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 1.3rem;
	color: var(--text);
	text-decoration: none;
	margin-right: auto;
}

.brand svg { width: 30px; height: 30px; display: block; }

.nav a.navlink {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 0.95rem;
}

.nav a.navlink:hover { color: var(--text); }

/* ---------------------------------------------------------------- buttons */

.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: var(--radius);
	font-size: 0.98rem;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.btn-primary {
	background: var(--gold);
	color: #16130d;
	font-weight: 600;
}

.btn-primary:hover { background: #d8bb82; }

.btn-secondary {
	background: transparent;
	color: var(--text);
	border-color: var(--border);
}

.btn-secondary:hover { border-color: var(--gold-border); background: var(--gold-muted); }

/* ---------------------------------------------------------------- hero */

.hero {
	padding: 88px 0 72px;
	text-align: center;
	border-bottom: 1px solid var(--border-subtle);
	background:
		radial-gradient(ellipse 60% 50% at 50% 0%, rgba(200, 169, 110, 0.07), transparent 70%);
}

.hero .eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--gold);
	background: var(--gold-muted);
	border: 1px solid var(--gold-border);
	border-radius: 999px;
	padding: 5px 14px;
	margin-bottom: 24px;
}

.hero p.lede {
	font-size: 1.2rem;
	color: var(--text-secondary);
	max-width: 660px;
	margin: 0 auto 32px;
}

.hero-actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

.hero .note {
	margin-top: 20px;
	font-size: 0.9rem;
	color: var(--text-tertiary);
}

/* ---------------------------------------------------------------- sections */

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--border-subtle); }

.section-head {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 48px;
}

.section-head p {
	color: var(--text-secondary);
	margin-bottom: 0;
}

/* ---------------------------------------------------------------- grid/cards */

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 26px;
}

.card h3 { margin-bottom: 8px; }

.card p {
	color: var(--text-secondary);
	font-size: 0.96rem;
	margin-bottom: 0;
}

.card .icon {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 9px;
	background: var(--gold-muted);
	border: 1px solid var(--gold-border);
	margin-bottom: 16px;
	font-size: 1.05rem;
	/* Set here so both the step numbers and the stroked icons below pick the
	   accent up from one place. */
	color: var(--gold);
}

.card .icon svg {
	width: 19px;
	height: 19px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------------------------------------------------------------- example */

.example {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px;
	max-width: 720px;
	margin: 0 auto;
}

.example .bad,
.example .good { padding: 16px 0; }

.example .bad { border-bottom: 1px dashed var(--border); }

.example .label {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-tertiary);
	display: block;
	margin-bottom: 8px;
}

.example .bad q {
	color: var(--text-secondary);
	font-style: italic;
	quotes: none;
}

.example .good strong { color: var(--text); }

.example .good .metric { color: var(--gold); font-weight: 600; }

/* ---------------------------------------------------------------- billing toggle */

.billing-toggle {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin: 0 auto 36px;
	padding: 4px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 999px;
	width: fit-content;
	max-width: 100%;
	flex-wrap: wrap;
}

.billing-toggle button {
	appearance: none;
	background: transparent;
	border: none;
	border-radius: 999px;
	color: var(--text-secondary);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	padding: 9px 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.billing-toggle button:hover { color: var(--text); }

/* Selected state is driven by aria-pressed rather than a class, so the
   accessible state and the visible state cannot drift apart. */
.billing-toggle button[aria-pressed="true"] {
	background: var(--gold);
	color: #16130d;
	font-weight: 600;
}

.billing-toggle .save {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--gold-muted);
	border: 1px solid var(--gold-border);
	color: var(--gold);
}

/* Inside the selected pill the gold-on-gold badge would vanish, so it flips
   to a dark chip instead. */
.billing-toggle button[aria-pressed="true"] .save {
	background: rgba(22, 19, 13, 0.18);
	border-color: rgba(22, 19, 13, 0.28);
	color: #16130d;
}

/* ---------------------------------------------------------------- pricing */

.plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	max-width: 860px;
	margin: 0 auto;
	align-items: start;
}

.plan {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px;
}

.plan.featured {
	border-color: var(--gold-border);
	background: linear-gradient(180deg, rgba(200, 169, 110, 0.05), var(--card) 60%);
	position: relative;
}

.plan .tag {
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--gold);
	color: #16130d;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 999px;
	white-space: nowrap;
}

.plan h3 { font-size: 1.05rem; color: var(--text-secondary); font-weight: 500; margin-bottom: 12px; }

.price {
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 2.8rem;
	line-height: 1;
	display: block;
	margin-bottom: 4px;
}

.price small {
	font-family: 'DM Sans', sans-serif;
	font-size: 0.95rem;
	color: var(--text-secondary);
}

.plan .sub {
	color: var(--text-tertiary);
	font-size: 0.88rem;
	margin-bottom: 22px;
	min-height: 1.4em;
}

.plan ul {
	list-style: none;
	padding: 0;
	margin: 0 0 26px;
}

.plan li {
	padding: 7px 0 7px 26px;
	position: relative;
	font-size: 0.95rem;
	color: var(--text-secondary);
}

.plan li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 15px;
	width: 9px;
	height: 5px;
	border-left: 2px solid var(--gold);
	border-bottom: 2px solid var(--gold);
	transform: rotate(-45deg);
}

.plan li.none { color: var(--text-tertiary); }
.plan li.none::before {
	border: none;
	content: '';
	left: 5px;
	top: 18px;
	width: 8px;
	height: 1px;
	background: var(--text-tertiary);
	transform: none;
}

.plan .btn { width: 100%; text-align: center; }

/* ---------------------------------------------------------------- faq */

.faq { max-width: 720px; margin: 0 auto; }

.faq details {
	border-bottom: 1px solid var(--border-subtle);
	padding: 4px 0;
}

.faq summary {
	cursor: pointer;
	padding: 16px 0;
	font-weight: 500;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: baseline;
}

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

.faq summary::after {
	content: '+';
	color: var(--gold);
	font-size: 1.3rem;
	line-height: 1;
	flex-shrink: 0;
}

.faq details[open] summary::after { content: '\2212'; }

.faq details p {
	color: var(--text-secondary);
	font-size: 0.96rem;
	padding-bottom: 14px;
	margin: 0;
}

/* ---------------------------------------------------------------- cta */

.cta {
	text-align: center;
	background:
		radial-gradient(ellipse 50% 60% at 50% 100%, rgba(200, 169, 110, 0.07), transparent 70%);
}

.cta p { color: var(--text-secondary); max-width: 540px; margin: 0 auto 28px; }

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

.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { font-size: 1.5rem; margin-top: 44px; }
.prose .updated { color: var(--text-tertiary); font-size: 0.88rem; margin-bottom: 40px; }
.prose ul { color: var(--text-secondary); padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose p { color: var(--text-secondary); }
.prose strong { color: var(--text); }

/* ---------------------------------------------------------------- footer */

footer.site {
	border-top: 1px solid var(--border-subtle);
	padding: 44px 0;
	color: var(--text-tertiary);
	font-size: 0.9rem;
}

.foot {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	align-items: center;
}

.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--text-secondary); text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 640px) {
	body { font-size: 16px; }
	section { padding: 56px 0; }
	.hero { padding: 64px 0 56px; }
	.brand { margin-right: 0; }
	.nav { gap: 18px; }
}
