/* ==========================================================================
   WhoChanged — marketing landing page (dark, image-led)
   Static, self-contained page (no build step). Colors are defined as CSS
   custom properties in :root so the whole palette can be tuned in one place.
   ========================================================================== */

:root {
	--ink: #f5f5f7;
	--ink-soft: #a1a1a6;
	--ink-faint: #6e6e73;
	--bg: #000000;
	--bg-elevated: #0d0d10;
	--bg-section: #131318;
	--bg-card: #131318;
	--line: rgba(255, 255, 255, .1);
	--line-soft: rgba(255, 255, 255, .06);

	--brand: #4f7cff;
	--brand-2: #8b5cf6;
	--brand-dark: #2f5ce0;
	--good: #34d399;
	--bad: #f87171;

	--radius-sm: 10px;
	--radius: 18px;
	--radius-lg: 26px;
	--shadow: 0 20px 60px rgba(0, 0, 0, .5);
	--shadow-glow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px rgba(79, 124, 255, .18);

	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 84px; }

/* Keep sticky-header clearance even for native / CSS-only hash jumps. */
section[id],
.hero[id],
.story[id],
.faq[id] {
	scroll-margin-top: 84px;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
	overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
em { color: var(--ink); font-style: normal; font-weight: 600; }
code {
	font-family: var(--font-mono);
	background: rgba(79, 124, 255, .14);
	color: #a9bfff;
	padding: .15em .45em;
	border-radius: 6px;
	font-size: .88em;
}
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 999; }
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
	border: 1px solid transparent;
	cursor: pointer;
}
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff;
	box-shadow: 0 8px 24px rgba(79, 124, 255, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(79, 124, 255, .45); }

.btn-outline-light { background: rgba(255, 255, 255, .04); color: var(--ink); border-color: var(--line); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); }

.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }

/* ---------- Header / nav ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(0, 0, 0, .6);
	backdrop-filter: saturate(180%) blur(16px);
	border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -.01em; flex-shrink: 0; }
.brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff;
	font-weight: 800;
	font-size: 14px;
}
.brand-mark img {
	border-radius: 8px;
}
.nav-end {
	display: flex;
	align-items: center;
	gap: 24px;
	/* margin-left: auto; */
	flex-shrink: 0;
}
.main-nav { display: flex; gap: 30px; }
.main-nav a { color: var(--ink-soft); font-weight: 500; font-size: 14.5px; transition: color .15s ease; }
.main-nav a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

.mobile-nav { display: none; flex-direction: column; text-align: center; gap: 2px; padding: 8px 24px 20px; border-top: 1px solid var(--line-soft); background: var(--bg); }
.mobile-nav a { padding: 12px 4px; font-weight: 500; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); }
.mobile-nav .btn { margin-top: 10px; }
.mobile-nav.is-open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 40px; overflow: hidden; }
.hero-glow {
	position: absolute;
	top: -220px;
	left: 50%;
	transform: translateX(-50%);
	width: 1100px;
	height: 620px;
	background: radial-gradient(closest-side, rgba(79, 124, 255, .28), rgba(139, 92, 246, .12), transparent);
	filter: blur(10px);
	pointer-events: none;
	z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--line);
	color: var(--ink-soft);
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 24px;
}
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); max-width: 900px; }
.text-gradient {
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); max-width: 560px; margin: 20px 0 0; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 30px 0 0; }

.hero-shot { width: 100%; max-width: 980px; margin: 64px auto 0; }

/* ---------- Browser / widget frames (real product screenshots) ---------- */
.browser-frame {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-glow);
	border: 1px solid var(--line);
	overflow: hidden;
	max-width: 100%;
}
.browser-frame-lg { border-radius: 22px; }
.browser-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 13px 18px;
	background: #1a1a1f;
	border-bottom: 1px solid var(--line-soft);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }
.browser-url {
	margin-left: 10px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--ink-faint);
	background: rgba(255, 255, 255, .04);
	border: 1px solid var(--line-soft);
	border-radius: 6px;
	padding: 4px 12px;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.browser-frame img,
.browser-frame video { width: 100%; height: auto; display: block; }
.browser-frame video { background: #111; }

.widget-frame {
	max-width: 320px;
	margin: 0 auto;
	border-left: 1px solid var(--line);
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.widget-frame img { width: 100%; height: auto; display: block; }

/* ---------- Tracked strip ---------- */
.tracked-strip { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-section); }
.tracked-strip-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; }
.tracked-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); flex-shrink: 0; }
.tracked-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tracked-tags li {
	font-size: 13.5px;
	color: var(--ink-soft);
	background: rgba(255, 255, 255, .04);
	border: 1px solid var(--line-soft);
	border-radius: 999px;
	padding: 6px 14px;
}

/* ---------- Story sections (alternating image/copy) ---------- */
.story { padding: 120px 0; border-bottom: 1px solid var(--line-soft); background-color: var(--bg-elevated); }
.story-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.story-reverse .story-inner { grid-template-columns: 1.15fr .85fr; }
.story-reverse .story-shot { order: 1; }
.story-reverse .story-copy { order: 2; }
.story-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--brand);
	margin-bottom: 16px;
}
.story-copy h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 480px; }
.story-copy p { font-size: 16.5px; max-width: 440px; }
.pro-pill {
	display: inline-flex;
	align-items: center;
	background: #f6c453;
	color: #4a3400;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .03em;
	padding: 2px 8px;
	border-radius: 999px;
	margin-left: 6px;
	text-transform: none;
}
.story-shot .browser-frame,
.story-shot .widget-frame { margin: 0; }

.admin-bar-shot { 
	width: 100%; 
	background-color: #191919; 
	text-align: center; 
	margin: 0 auto; 
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-glow);
	border: 1px solid var(--line);
	overflow: hidden;
	padding-bottom: 24px;
}
.admin-bar-shot .widget-frame {
	margin: 0 auto;
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { font-size: 16px; }
.pricing-note { font-size: 13.5px; color: var(--ink-faint); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Comparison table ---------- */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td {
	padding: 18px 22px;
	text-align: center;
	border-bottom: 1px solid var(--line-soft);
	font-size: 15px;
	color: var(--ink);
}
.compare-table thead th {
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--ink-faint);
	font-weight: 700;
}
.compare-feature-col { text-align: left !important; width: 46%; }
.compare-table td:first-child { text-align: left; font-weight: 500; }
.compare-pro-col { color: var(--brand) !important; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.tick { color: var(--good); font-weight: 800; }
.cross { color: var(--ink-faint); }

/* ---------- Pricing ---------- */
.pricing-toggle {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 6px;
	padding: 5px;
	margin: 0 auto 28px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 999px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.pricing-toggle-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--ink-soft);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 10px 16px;
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.pricing-toggle-btn:hover { color: var(--ink); }
.pricing-toggle-btn.is-active {
	background: linear-gradient(135deg, rgba(79, 124, 255, .95), rgba(139, 92, 246, .95));
	color: #fff;
	box-shadow: 0 8px 22px rgba(79, 124, 255, .28);
}
.pricing-grid { align-items: stretch; }
.price-card {
	position: relative;
	background: var(--bg-card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 34px 30px;
	display: flex;
	flex-direction: column;
}
.price-card h3 { font-size: 18px; margin-bottom: 6px; }
.price-desc { color: var(--ink-faint); font-size: 13.5px; margin-bottom: 22px; }
.price-amount { font-size: 42px; font-weight: 800; margin-bottom: 4px; letter-spacing: -.02em; }
.price-value { display: inline-block; min-width: 2.1ch; }
.price-amount .currency { font-size: 22px; vertical-align: top; margin-right: 2px; color: var(--ink-faint); }
.price-amount .period { font-size: 15px; font-weight: 500; color: var(--ink-faint); }
.price-features { margin: 8px 0 28px; flex: 1; display: flex; flex-direction: column; gap: 11px; }
.price-features li { color: var(--ink-soft); font-size: 14px; padding-left: 20px; position: relative; }
.price-features li::before { content: '✓'; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.price-card-featured {
	background: linear-gradient(165deg, rgba(79, 124, 255, .16), rgba(139, 92, 246, .06));
	border-color: rgba(79, 124, 255, .5);
	box-shadow: 0 25px 60px rgba(79, 124, 255, .18);
}
.price-badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 999px;
	white-space: nowrap;
}
.pricing-footnote { text-align: center; color: var(--ink-faint); font-size: 13px; margin-top: 44px; max-width: 760px; margin-left: auto; margin-right: auto; }

.try-free {
	display: block;
	text-align: center;
	margin-top: 44px;
}

/* ---------- FAQ ---------- */
.faq { background-color: var(--bg-elevated);}
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line-soft); padding: 4px 0; }
.faq-item:first-child { border-top: 1px solid var(--line-soft); }
.faq-item summary {
	cursor: pointer;
	font-weight: 600;
	padding: 20px 28px 20px 0;
	font-size: 16px;
	list-style: none;
	position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: '+';
	position: absolute;
	right: 0;
	top: 16px;
	font-size: 22px;
	color: var(--ink-faint);
	font-weight: 300;
}
.faq-item[open] summary::after { content: '−'; color: var(--brand); }
.faq-item p { padding-bottom: 20px; margin: 0; font-size: 15px; max-width: 640px; }

/* ---------- CTA banner ---------- */
.cta-banner { padding: 110px 0; text-align: center; }
.cta-banner-inner { max-width: 760px; margin: 0 auto; }
.cta-banner h2 { font-size: clamp(26px, 3.4vw, 36px); }
.cta-banner .hero-actions { justify-content: center; margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 48px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-faint); font-size: 13.5px; }
.footer-links a:hover { color: var(--ink-soft); }
.footer-copy { width: 100%; color: var(--ink-faint); font-size: 12.5px; margin: 8px 0 0; text-align: left; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.story-inner, .story-reverse .story-inner { grid-template-columns: 1fr; gap: 40px; }
	.story-reverse .story-shot, .story-reverse .story-copy { order: 0; }
	.story-copy { text-align: center; margin: 0 auto; }
	.story-copy h2, .story-copy p { max-width: 100%; margin-left: auto; margin-right: auto; }
	.grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
	.main-nav, .nav-cta { display: none !important; }
	.nav-end {
		margin-left: auto;
		gap: 0;
	}
	.nav-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 40px;
		height: 40px;
		padding: 8px;
		margin: 0;
		background: none;
		border: none;
		cursor: pointer;
		flex-shrink: 0;
	}
	.nav-toggle span { width: 100%; height: 2px; background: var(--ink); border-radius: 2px; }
	.grid-3 { grid-template-columns: 1fr; }
	.section { padding: 72px 0; }
	.story { padding: 80px 0; }
	.hero { padding: 56px 0 32px; }
	.hero-shot { margin-top: 44px; }
	.footer-copy { text-align: center; }
	.footer-inner { justify-content: center; text-align: center; }
}
