/* Design tokens */
:root {
	--brand-50: #eef2ff;
	--brand-100: #e0e7ff;
	--brand-200: #c7d2fe;
	--brand-300: #a5b4fc;
	--brand-400: #818cf8;
	--brand-500: #6366f1;
	--brand-600: #5157ff;
	--brand-700: #3b40f0;
	--brand-800: #3730a3;
	--brand-900: #312e81;

	--accent-400: #34d5f5;
	--accent-500: #22d3ee;
	--accent-600: #06b6d4;

	--gray-50: #f9fafb;
	--gray-100: #f3f4f6;
	--gray-200: #e5e7eb;
	--gray-300: #d1d5db;
	--gray-400: #9ca3af;
	--gray-500: #6b7280;
	--gray-600: #4b5563;
	--gray-700: #374151;
	--gray-800: #1f2937;
	--gray-900: #0b0b0c;

	--success-500: #10b981;
	--warning-500: #f59e0b;
	--danger-500: #ef4444;

	--bg: #ffffff;
	--text: #0b0b0c;
	--muted: #4b5563;

	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);

	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--radius-pill: 999px;

	--container: 1200px;
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-7: 28px;
	--space-8: 32px;
	--space-10: 40px;
	--space-12: 48px;
	--space-16: 64px;
	--space-20: 80px;
	--space-24: 96px;
	--space-32: 128px;
}

/* Base reset */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html,
body {
	height: 100%;
}
body {
	margin: 0;
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
		"Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	color: var(--text);
	background: var(--bg);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img {
	max-width: 100%;
	display: block;
}
a {
	color: inherit;
	text-decoration: none;
}
ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	background: var(--brand-600);
	color: #fff;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	z-index: 1000;
}
.skip-link:focus {
	left: 8px;
}

/* Layout helpers */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--space-6);
}
.h1 {
	font-size: clamp(2rem, 2.2rem + 2.2vw, 4rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 var(--space-6);
}
.h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);
	letter-spacing: -0.01em;
	line-height: 1.15;
	margin: 0 0 var(--space-6);
}
.h3 {
	font-size: 1.25rem;
	margin: 0 0 var(--space-3);
}
.lead {
	font-size: clamp(1.05rem, 1rem + 0.6vw, 1.25rem);
	color: var(--muted);
	max-width: 66ch;
	margin: 0 auto var(--space-8);
}
.what-is .lead {
	margin-left: 0;
	margin-right: 0;
}
.muted {
	color: var(--muted);
}
.fine-print {
	color: var(--gray-500);
	font-size: 0.9rem;
	margin-top: var(--space-5);
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(180%) blur(10px);
	background: color-mix(in srgb, #ffffff 85%, transparent);
	border-bottom: 1px solid var(--gray-100);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: var(--space-6);
	padding: var(--space-4) 0;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 1.1rem;
}
.brand-logo {
	height: 28px;
	width: auto;
	display: block;
}
.brand-glyph {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 7px;
	background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
	color: #fff;
	box-shadow: var(--shadow-sm);
}
.nav {
	margin-left: auto;
}
.menu {
	display: none;
	gap: var(--space-6);
	align-items: center;
}
.menu a {
	color: var(--muted);
	font-weight: 500;
}
.menu a:hover {
	color: var(--text);
}
.header-cta {
	display: none;
	gap: var(--space-3);
}
.nav-toggle {
	width: 42px;
	height: 36px;
	display: inline-grid;
	align-items: center;
	justify-items: center;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-sm);
	background: #fff;
}
.nav-toggle .bar {
	width: 22px;
	height: 2px;
	background: var(--text);
	display: block;
}

/* Mobile dropdown menu */
@media (max-width: 899px) {
	.header-inner {
		position: relative;
	}
	.menu {
		position: absolute;
		top: 64px;
		right: var(--space-6);
		display: none;
		flex-direction: column;
		background: #fff;
		border: 1px solid var(--gray-200);
		border-radius: var(--radius-md);
		box-shadow: var(--shadow-md);
		padding: 8px;
		min-width: 200px;
	}
	.menu.open {
		display: flex;
	}
	.menu li a {
		display: block;
		padding: 10px 12px;
		border-radius: var(--radius-sm);
	}
	.menu li a:hover {
		background: var(--gray-100);
	}
}

@media (min-width: 900px) {
	.nav-toggle {
		display: none;
	}
	.menu {
		display: inline-flex;
	}
	.header-cta {
		display: inline-flex;
		margin-left: var(--space-3);
	}
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	font-weight: 600;
	transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease,
		color 120ms ease;
}
.btn:hover {
	transform: translateY(-1px);
}
.btn:active {
	transform: translateY(0);
}
.btn-primary {
	background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
	color: #fff;
	box-shadow: var(--shadow-md);
}
.btn-primary:hover {
	box-shadow: var(--shadow-lg);
}
.btn-ghost {
	background: #fff;
	border-color: var(--gray-200);
	color: var(--text);
}
.btn-ghost:hover {
	border-color: var(--gray-300);
}
.btn-pill {
	border-radius: var(--radius-pill);
	padding: 12px 22px;
}
.cta-row {
	display: flex;
	gap: var(--space-3);
	justify-content: center;
	flex-wrap: wrap;
}

/* Simple form controls */
.form-row {
	display: grid;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}
.input,
.textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-sm);
	background: #fff;
	font: inherit;
	color: inherit;
}
.input:focus,
.textarea:focus {
	outline: none;
	border-color: var(--gray-300);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-600) 18%, transparent);
}
.textarea {
	min-height: 100px;
	resize: vertical;
}

/* Hero */
.hero {
	position: relative;
	padding: var(--space-24) 0 var(--space-20);
	overflow: clip;
}
.hero-bg {
	position: absolute;
	inset: -20% -20% auto -20%;
	height: 70%;
	background:
		radial-gradient(800px 400px at 20% 30%, color-mix(in srgb, var(--brand-600) 18%, transparent) 0%, transparent 60%),
		radial-gradient(800px 400px at 80% 40%, color-mix(in srgb, var(--accent-500) 20%, transparent) 0%, transparent 60%);
	filter: blur(40px);
	z-index: -1;
}
.hero-inner {
	text-align: center;
}
.rating {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	padding: 8px 12px;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-pill);
	background: #fff;
	box-shadow: var(--shadow-sm);
	color: var(--muted);
	margin-bottom: var(--space-6);
}
.rating .stars {
	color: #fbbf24;
}
.platforms {
	display: flex;
	gap: var(--space-3);
	justify-content: center;
	margin-top: var(--space-6);
}
.platform-pill {
	padding: 8px 12px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--gray-200);
	background: #fff;
	color: var(--muted);
}

/* What is */
.what-is {
	padding: var(--space-20) 0 var(--space-10);
	border-top: 1px solid var(--gray-100);
}

/* Cards / Impact */
.impact {
	padding: var(--space-20) 0;
}
.cards {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: var(--space-6);
}
.card {
	border: 1px solid var(--gray-200);
	background: #fff;
	border-radius: var(--radius-lg);
	padding: var(--space-8);
	box-shadow: var(--shadow-sm);
	text-align: center;
}
.metric {
	font-size: clamp(1.6rem, 1.4rem + 1.4vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}
.metric-sub {
	color: var(--muted);
}

@media (min-width: 700px) {
	.cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Community / Marquee */
.community {
	padding: var(--space-20) 0;
}
.sub {
	color: var(--muted);
	text-align: center;
	max-width: 60ch;
	margin: 0 auto var(--space-8);
}
.community .sub {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}
.marquee {
	overflow: hidden;
	padding: var(--space-4) 0;
	border-top: 1px solid var(--gray-100);
	border-bottom: 1px solid var(--gray-100);
}
.marquee-track {
	display: flex;
	gap: var(--space-6);
	animation: marquee 30s linear infinite;
	will-change: transform;
}
.testimonial {
	flex: 0 0 auto;
	padding: 10px 14px;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--muted);
	white-space: nowrap;
	box-shadow: var(--shadow-sm);
}
@keyframes marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* Features */
.features {
	padding: var(--space-20) 0;
}
.feature-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: var(--space-6);
}
.feature-card {
	border: 1px solid var(--gray-200);
	background: #fff;
	border-radius: var(--radius-lg);
	padding: var(--space-8);
	box-shadow: var(--shadow-sm);
}
.checklist {
	margin-top: var(--space-4);
}
.checklist li {
	position: relative;
	padding-left: 28px;
	margin: 10px 0;
	color: var(--muted);
}
.checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--success-500) 12%, #ffffff);
	color: var(--success-500);
	display: grid;
	place-items: center;
	font-size: 12px;
	border: 1px solid color-mix(in srgb, var(--success-500) 40%, transparent);
}
@media (min-width: 900px) {
	.feature-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* How it works */
.how-it-works {
	padding: var(--space-20) 0;
}
.hiw-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: var(--space-6);
}
.hiw-card {
	border: 1px solid var(--gray-200);
	background: #fff;
	border-radius: var(--radius-lg);
	padding: var(--space-8);
	box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) {
	.hiw-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Use Cases */
.use-cases {
	padding: var(--space-20) 0;
}
.tabs {
	display: flex;
	gap: var(--space-3);
	margin-bottom: var(--space-6);
	flex-wrap: wrap;
}
.tab {
	padding: 10px 14px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--gray-200);
	background: #fff;
	color: var(--muted);
	font-weight: 600;
}
.tab.is-active {
	color: #fff;
	background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
	border-color: transparent;
	box-shadow: var(--shadow-sm);
}
.tab-panels {
	margin-top: var(--space-2);
}
.tab-panel {
	display: none;
}
.tab-panel.is-active {
	display: block;
}
.schedule-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: var(--space-6);
}
.schedule-card {
	border: 1px solid var(--gray-200);
	background:
		radial-gradient(400px 120px at 20% 20%, color-mix(in srgb, var(--brand-600) 7%, transparent), transparent 60%),
		#fff;
	border-radius: var(--radius-lg);
	padding: var(--space-8);
	box-shadow: var(--shadow-sm);
}
.schedule-time {
	color: var(--muted);
	font-size: 0.95rem;
	margin-bottom: 6px;
}
.schedule-title {
	font-weight: 700;
}
@media (min-width: 900px) {
	.schedule-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Brain health */
.brain {
	padding: var(--space-20) 0;
	border-top: 1px solid var(--gray-100);
}
.brain-widget {
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-lg);
	background: #fff;
	padding: var(--space-8);
	box-shadow: var(--shadow-sm);
}
.brain-stage {
	display: grid;
	place-items: center;
	text-align: center;
	padding: var(--space-8);
	border-radius: var(--radius-md);
	background:
		radial-gradient(500px 200px at 50% 0%, color-mix(in srgb, var(--accent-500) 10%, transparent), transparent 70%),
		#fff;
	border: 1px solid var(--gray-100);
	margin-bottom: var(--space-6);
}
.brain-stage, .brain-stage * {
	transition: none !important;
}
.stage-badge {
	font-weight: 800;
	font-size: 1.2rem;
	margin-bottom: 6px;
}
.stage-desc {
	color: var(--muted);
}
#brain-stage.stage-0 .stage-badge {
	color: var(--success-500);
}
#brain-stage.stage-1 .stage-badge {
	color: #d97706;
}
#brain-stage.stage-2 .stage-badge {
	color: #ef4444;
}
#brain-stage.stage-3 .stage-badge {
	color: #7c3aed;
}
#brain-range {
	width: 100%;
	margin: var(--space-4) 0 var(--space-2);
}
.brain-legend {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	font-size: 0.9rem;
	color: var(--muted);
	gap: var(--space-4);
}

/* Gems */
.gems {
	padding: var(--space-20) 0;
}
.gem-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-4);
}
.gem {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--gray-200);
	background:
		linear-gradient(0deg, #fff, #fff) padding-box,
		linear-gradient(135deg, var(--brand-600), var(--accent-500)) border-box;
	border: 1px solid transparent;
}
.gem .glyph {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
	color: #fff;
	box-shadow: var(--shadow-sm);
}
@media (min-width: 700px) {
	.gem-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* CTA block */
.cta-block {
	padding: var(--space-24) 0 var(--space-24);
	background:
		radial-gradient(1000px 400px at 50% 0%, color-mix(in srgb, var(--accent-500) 12%, transparent) 0%, transparent 60%),
		#fff;
	border-top: 1px solid var(--gray-100);
	border-bottom: 1px solid var(--gray-100);
}
.cta-inner {
	text-align: center;
}

/* Pricing */
.pricing {
	padding: var(--space-20) 0;
}
.pricing-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: var(--space-6);
}
.price-card {
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-lg);
	background: #fff;
	padding: var(--space-8);
	box-shadow: var(--shadow-sm);
	text-align: center;
}
.price-card.highlight {
	outline: 2px solid color-mix(in srgb, var(--brand-600) 30%, transparent);
}
.price-row {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: var(--space-3);
}
.price-row .price {
	font-size: 2rem;
	font-weight: 800;
}
.price-row .per {
	color: var(--muted);
}
@media (min-width: 800px) {
	.pricing-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* Privacy promise */
.privacy-promise {
	padding: var(--space-20) 0;
	border-top: 1px solid var(--gray-100);
}
.privacy-links {
	margin-top: var(--space-6);
	display: flex;
	gap: var(--space-3);
	flex-wrap: wrap;
}

/* FAQ */
.faq {
	padding: var(--space-20) 0;
}
.accordion {
	display: grid;
	gap: var(--space-4);
}
.accordion-item {
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-md);
	background: #fff;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}
.accordion-trigger {
	width: 100%;
	text-align: left;
	padding: 14px 16px;
	background: #fff;
	border: 0;
	border-bottom: 1px solid var(--gray-100);
	font-weight: 600;
}
.accordion-panel {
	display: none;
	padding: 14px 16px;
}
.accordion-item.is-open .accordion-panel {
	display: block;
}
.accordion-item.is-open .accordion-trigger {
	background: color-mix(in srgb, var(--brand-50) 60%, #fff);
}

/* Download */
.download {
	padding: var(--space-20) 0 var(--space-24);
	border-top: 1px solid var(--gray-100);
}
.download .h2 {
	text-align: left;
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: var(--space-4);
}
.download-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: var(--space-6);
	align-items: start;
	justify-items: center;
}
.qr-card,
.store-card {
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-lg);
	background: #fff;
	padding: var(--space-8);
	box-shadow: var(--shadow-sm);
	text-align: left;
	width: 100%;
	max-width: 680px;
}
.form-actions {
	display: flex;
	gap: var(--space-3);
	justify-content: flex-start;
	flex-wrap: wrap;
}

/* Legal pages: simpler, official look */
.legal .site-header {
	backdrop-filter: none;
	background: #fff;
	border-bottom: 1px solid var(--gray-200);
}
.legal .container {
	max-width: 800px;
}
.legal .legal-main,
.legal .privacy-promise {
	padding: var(--space-12) 0 var(--space-16);
	border: 0;
	background: #fff;
}
.legal .checklist {
	list-style: disc;
	padding-left: 20px;
	margin: 8px 0 var(--space-6);
}
.legal .checklist li {
	padding-left: 0;
	color: var(--text);
}
.legal .checklist li::before {
	content: none;
}


/* Footer */
.site-footer {
	padding: var(--space-16) 0 0;
}
.footer-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-10);
	padding-bottom: var(--space-10);
	border-bottom: 1px solid var(--gray-100);
}
.footer-brand .brand {
	margin-bottom: var(--space-3);
}
.footer-nav {
	display: grid;
	gap: var(--space-8);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.footer-nav h4 {
	margin: 0 0 var(--space-3);
	font-size: 0.95rem;
	color: var(--gray-700);
}
.footer-nav a {
	color: var(--muted);
	font-size: 0.95rem;
}
.footer-nav a:hover {
	color: var(--text);
}
.footer-bottom {
	padding: var(--space-6) 0;
	text-align: center;
}
@media (min-width: 900px) {
	.footer-inner {
		grid-template-columns: 1.2fr 2fr;
	}
}

/* Reveal on scroll */
[data-reveal] {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 400ms ease, transform 400ms ease;
}
.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Private preview: hide sensitive blocks without deleting */
.private-preview [data-private] {
	display: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Mobile refinements */
@media (max-width: 640px) {
	.hero {
		padding: var(--space-20) 0 var(--space-16);
	}
	.what-is,
	.impact,
	.community,
	.features,
	.how-it-works,
	.use-cases,
	.brain,
	.pricing,
	.privacy-promise,
	.faq,
	.download {
		padding: var(--space-16) 0;
	}
	.lead {
		margin-bottom: var(--space-6);
	}
	.cta-block {
		padding: var(--space-20) 0;
	}
	.footer-inner {
		gap: var(--space-8);
	}
	.brand-logo {
		height: 24px;
	}
	.cta-row .btn {
		flex: 1 1 100%;
	}
}


