/* Better AI Studio landing page. Colors are the extension's own themes (script.js swaps them live). */

:root {
	--bg: #0b1020;
	--surface: #121a30;
	--text: #e4eaff;
	--accent: #7ea3ff;
	--on-accent: #0b1020;
	--muted: color-mix(in oklab, var(--text) 66%, var(--bg));
	--faint: color-mix(in oklab, var(--text) 42%, var(--bg));
	--line: color-mix(in oklab, var(--text) 10%, transparent);
	--line-strong: color-mix(in oklab, var(--text) 18%, transparent);
	--accent-soft: color-mix(in oklab, var(--accent) 14%, transparent);
	--radius: 16px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: ui-monospace, "Cascadia Code", Consolas, monospace;
	color-scheme: dark;
}
html[data-scheme="light"] {
	color-scheme: light;
}

* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px / 1.6 var(--font);
	-webkit-font-smoothing: antialiased;
	transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}
a {
	color: inherit;
}
h1,
h2,
h3 {
	margin: 0;
	line-height: 1.15;
	letter-spacing: -0.02em;
}
p {
	margin: 0;
}
svg path {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 6px;
}
.skip {
	position: absolute;
	left: 12px;
	top: -48px;
	z-index: 100;
	padding: 8px 14px;
	border-radius: 8px;
	background: var(--accent);
	color: var(--on-accent);
	text-decoration: none;
}
.skip:focus {
	top: 12px;
}

.wrap {
	width: min(1120px, 100% - 48px);
	margin-inline: auto;
}
.wrap.narrow {
	width: min(760px, 100% - 48px);
}

/* ─── Buttons ─── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	padding: 0 22px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: transform 0.15s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn svg {
	width: 20px;
	height: 20px;
}
.btn:active {
	transform: translateY(1px);
}
.btn-primary {
	background: var(--accent);
	color: var(--on-accent);
	box-shadow: 0 8px 28px color-mix(in oklab, var(--accent) 30%, transparent);
}
.btn-primary:hover {
	background: color-mix(in oklab, var(--accent) 88%, var(--text));
}
.btn-ghost {
	border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
	background: color-mix(in oklab, var(--text) 6%, transparent);
}
.btn-sm {
	height: 38px;
	padding: 0 16px;
	font-size: 14px;
	border-radius: 10px;
	box-shadow: none;
}
.text-link {
	display: inline-block;
	margin-top: 14px;
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}
.text-link:hover {
	text-decoration: underline;
}
svg.kofi path {
	fill: var(--accent);
	stroke: none;
}

/* ─── Nav ─── */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in oklab, var(--bg) 82%, transparent);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.nav-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 64px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: -0.01em;
}
.brand img {
	border-radius: 7px;
}
.nav-links {
	display: flex;
	gap: 24px;
	margin-left: auto;
}
.nav-links a {
	color: var(--muted);
	font-size: 15px;
	text-decoration: none;
	transition: color 0.15s;
}
.nav-links a:hover {
	color: var(--text);
}

/* ─── Hero ─── */
.hero {
	position: relative;
	padding: 88px 0 96px;
	overflow: hidden;
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 56px;
	align-items: center;
}
.eyebrow {
	margin-bottom: 14px;
	color: var(--accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
h1 {
	font-size: clamp(38px, 5.2vw, 60px);
	font-weight: 750;
}
h1 .accent {
	color: var(--accent);
}
.lead {
	max-width: 560px;
	margin-top: 22px;
	color: var(--muted);
	font-size: 18px;
}
.cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}
.cta.center {
	justify-content: center;
}
.trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	color: var(--faint);
	font-size: 14px;
}
.trust li::before {
	content: "✓";
	margin-right: 7px;
	color: var(--accent);
	font-weight: 700;
}

.hero-art {
	position: relative;
	height: 560px;
}
.glow {
	position: absolute;
	inset: 10% 5% 5% 15%;
	background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 38%, transparent), transparent);
	filter: blur(30px);
	transition: background 0.35s;
}
.shot {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--line-strong);
	box-shadow: 0 30px 80px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.02);
	background: var(--surface);
}
.shot-front,
.shot-back {
	position: absolute;
	width: 340px;
}
.shot-front {
	right: 8%;
	top: 30px;
	animation: float 7s ease-in-out infinite;
}
.shot-back {
	left: 0;
	top: 0;
	width: 300px;
	opacity: 0.55;
	transform: rotate(-5deg);
	filter: saturate(0.85);
}
@keyframes float {
	50% {
		transform: translateY(-10px);
	}
}

/* ─── Sections ─── */
.section {
	padding: 96px 0;
	border-top: 1px solid var(--line);
}
.section-head {
	max-width: 640px;
	margin: 0 auto 48px;
	text-align: center;
}
.section-head.left {
	margin: 0 0 32px;
	text-align: left;
}
.section-head h2 {
	font-size: clamp(30px, 3.6vw, 42px);
	font-weight: 720;
}
.section-lead {
	margin-top: 14px;
	color: var(--muted);
	font-size: 17px;
}

.features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
.feature {
	padding: 26px 24px 28px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--line);
	transition: transform 0.2s var(--ease), border-color 0.2s;
}
.feature:hover {
	transform: translateY(-3px);
	border-color: var(--line-strong);
}
.feature-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 18px;
	border-radius: 12px;
	background: var(--accent-soft);
	color: var(--accent);
}
.feature-icon svg {
	width: 22px;
	height: 22px;
}
.feature h3 {
	font-size: 18px;
	font-weight: 650;
}
.feature p {
	margin-top: 10px;
	color: var(--muted);
	font-size: 15px;
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.steps li {
	padding: 28px 26px;
	border-radius: var(--radius);
	border: 1px dashed var(--line-strong);
}
.step-n {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 700;
}
.steps h3 {
	font-size: 18px;
	font-weight: 650;
}
.steps p {
	margin-top: 8px;
	color: var(--muted);
	font-size: 15px;
}

/* ─── Themes ─── */
.themes-grid {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 64px;
	align-items: center;
}
.theme-picker {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
}
.theme-chip {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px 8px 10px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: inherit;
	font: 500 13px var(--font);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s, transform 0.15s var(--ease);
}
.theme-chip:hover {
	transform: translateY(-2px);
	border-color: var(--line-strong);
}
.theme-chip[aria-checked="true"] {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}
.chip-swatch {
	position: relative;
	height: 46px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgb(127 127 127 / 0.2);
}
.chip-swatch i {
	position: absolute;
	display: block;
}
.chip-swatch .s1 {
	left: 8px;
	right: 8px;
	bottom: 0;
	height: 26px;
	border-radius: 5px 5px 0 0;
}
.chip-swatch .s2 {
	left: 14px;
	top: 26px;
	width: 36%;
	height: 3px;
	border-radius: 2px;
}
.chip-swatch .s3 {
	right: 13px;
	top: 25px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}
.theme-note {
	min-height: 24px;
	margin-top: 18px;
	color: var(--faint);
	font-size: 14px;
}
.shot-solo {
	width: 100%;
}

.tweaks {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--line);
}
.tweaks li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px;
	background: var(--bg);
}
.tweaks strong {
	font-weight: 650;
}
.tweaks span {
	color: var(--muted);
	font-size: 14.5px;
}

/* ─── Privacy ─── */
.privacy {
	background: color-mix(in oklab, var(--accent) 6%, var(--bg));
}
.privacy-inner {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 36px;
	align-items: start;
	max-width: 880px;
}
.privacy-badge {
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	border-radius: 24px;
	background: var(--accent-soft);
	color: var(--accent);
}
.privacy-badge svg {
	width: 44px;
	height: 44px;
}
.privacy h2 {
	font-size: clamp(28px, 3.2vw, 36px);
	font-weight: 720;
}
.privacy p {
	margin-top: 14px;
	color: var(--muted);
	font-size: 17px;
}
code {
	padding: 1px 6px;
	border-radius: 6px;
	background: color-mix(in oklab, var(--text) 9%, transparent);
	color: var(--text);
	font: 0.88em var(--mono);
}

/* ─── FAQ ─── */
.faq {
	display: grid;
	gap: 10px;
}
.faq details {
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--surface);
	transition: border-color 0.2s;
}
.faq details[open] {
	border-color: var(--line-strong);
}
.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary::after {
	content: "+";
	color: var(--accent);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after {
	transform: rotate(45deg);
}
.faq details p {
	padding: 0 22px 20px;
	color: var(--muted);
}

/* ─── Final + footer ─── */
.final {
	text-align: center;
}
.final h2 {
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 750;
}
.footer {
	padding: 28px 0 36px;
	border-top: 1px solid var(--line);
	color: var(--faint);
	font-size: 14px;
}
.footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
}
.footer nav {
	display: flex;
	gap: 20px;
}
.footer a {
	color: var(--muted);
	text-decoration: none;
}
.footer a:hover {
	color: var(--text);
}

/* ─── Text pages ─── */
.doc {
	padding: 72px 0 96px;
}
.prose h1 {
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 750;
	margin-bottom: 28px;
}
.prose h2 {
	margin: 36px 0 10px;
	font-size: 22px;
	font-weight: 680;
}
.prose p,
.prose li {
	color: var(--muted);
	font-size: 17px;
}
.prose p + p {
	margin-top: 12px;
}
.prose ul {
	margin: 10px 0;
	padding-left: 22px;
}
.prose li + li {
	margin-top: 6px;
}
.prose strong {
	color: var(--text);
}
.center-block {
	text-align: center;
}
.center-block .btn {
	margin-top: 20px;
}

/* ─── Responsive ─── */
@media (max-width: 1000px) {
	.features,
	.tweaks {
		grid-template-columns: repeat(2, 1fr);
	}
	.hero-grid,
	.themes-grid {
		grid-template-columns: 1fr;
	}
	.hero-art {
		height: 520px;
		max-width: 520px;
		width: 100%;
		margin-inline: auto;
	}
	.shot-solo {
		max-width: 380px;
		margin-inline: auto;
	}
}
@media (max-width: 680px) {
	.nav-links {
		display: none;
	}
	.nav-inner {
		justify-content: space-between;
	}
	.hero {
		padding: 56px 0 64px;
	}
	.section {
		padding: 72px 0;
	}
	.features,
	.tweaks,
	.steps {
		grid-template-columns: 1fr;
	}
	.theme-picker {
		grid-template-columns: repeat(3, 1fr);
	}
	.hero-art {
		height: 400px;
	}
	.shot-front {
		width: 270px;
		right: 0;
	}
	.shot-back {
		width: 230px;
	}
	.privacy-inner {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.btn {
		width: 100%;
	}
	.btn-sm {
		width: auto;
	}
}

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