:root {
	--canvas: #F8F5EE;
	--card: #FFFFFF;
	--text: #4A4A4A;
	--muted: #888888;
	--primary: #748C6B;
	--secondary: #A2B29A;
	--win: #748C6B;
	--reward: #D4AF37;
	--warning: #A54B3E;

	--radius: 12px;
	--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 12px 32px rgba(0, 0, 0, 0.12);
	--container: 1100px;
	
	--transition: 0.2s ease;
	--transition-slow: 0.3s ease;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: var(--text);
	background: var(--canvas);
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

html {
	scroll-behavior: smooth;
	scrollbar-width: none;
}

html::-webkit-scrollbar {
	display: none;
}

.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;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 24px);
}

.section {
	padding-block: clamp(40px, 7vw, 72px);
}

#problem.section {
	padding-top: clamp(28px, 5.5vw, 56px);
}

.more-hidden {
	display: none;
}

.hero-more-btn {
	margin-top: clamp(12px, 2.2vw, 18px);
	padding-inline: clamp(16px, 4vw, 22px);
	padding-block: clamp(10px, 1.8vw, 12px);
	border-radius: 999px;
	background: #ffffff;
	border: 1px solid color-mix(in srgb, var(--secondary) 40%, #ffffff);
	color: var(--text);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
	gap: 10px;
}

.hero-more-btn:hover {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.hero-more-btn:active {
	transform: translateY(0);
	box-shadow: var(--shadow-sm);
}

.hero-more-label {
	font-size: clamp(14px, 2vw, 15px);
	font-weight: 600;
}

.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	backdrop-filter: saturate(180%) blur(6px);
	background: rgba(255, 255, 255, 0.9);
	border-bottom: 1px solid rgba(237, 242, 247, 0.8);
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
	transition: transform var(--transition-slow), opacity var(--transition-slow);
	box-shadow: var(--shadow-sm);
}

.header.is-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: clamp(56px, 7vw, 64px);
	padding-block: 8px;
	gap: 12px;
}

.brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	transition: opacity var(--transition);
}

.brand:hover {
	opacity: 0.8;
}

.header-logo {
	display: block;
	height: 24px;
	width: auto;
}

@media (min-width: 768px) {
	.header-logo {
		height: 28px;
	}
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	border: 0;
	border-radius: 999px;
	font-weight: 600;
	font-size: clamp(14px, 1.8vw, 16px);
	transition: transform 0.06s ease, box-shadow var(--transition), background var(--transition), opacity var(--transition);
	text-decoration: none;
	white-space: nowrap;
}

.btn:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--secondary) 40%, white);
	outline-offset: 2px;
}

.btn-primary {
	background: var(--primary);
	color: #fff;
	padding: clamp(10px, 1.5vw, 12px) clamp(16px, 2.5vw, 18px);
	box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
	opacity: 0.95;
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-neutral {
	background: var(--card);
	color: var(--text);
	padding: clamp(8px, 1.2vw, 10px) clamp(14px, 2vw, 16px);
	border-radius: 10px;
	border: 1px solid var(--secondary);
}

.btn-neutral:hover {
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.input {
	width: 100%;
	padding: clamp(12px, 2vw, 14px) clamp(14px, 2.5vw, 16px);
	border: 1px solid #e2e8f0;
	border-radius: var(--radius);
	font-size: clamp(15px, 2vw, 16px);
	font-family: inherit;
	outline: none;
	background: #fff;
	color: var(--text);
	transition: border-color var(--transition), box-shadow var(--transition);
}

.input::placeholder {
	color: var(--muted);
}

.input:focus {
	border-color: var(--secondary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary) 25%, transparent);
}

.form-row {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.form-row {
		grid-template-columns: 1fr auto;
	}
}

.hero-section {
	padding-top: clamp(88px, 14vw, 112px);
	padding-bottom: clamp(28px, 7vw, 56px);
	min-height: 100vh;
	display: flex;
	align-items: center;
}

.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(24px, 6vw, 40px);
}

.hero-content {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 3vw, 24px);
	width: 100%;
	align-items: center;
	text-align: center;
}

.hero-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	/* Remove pill background so logo PNG sits on transparent background */
	padding: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.hero-logo-image {
	display: block;
	height: 28px;
	width: auto;
}

@media (min-width: 1024px) {
	.hero-logo-image {
		height: 34px;
	}
}

.logo-mark {
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: radial-gradient(circle at 30% 20%, #ffffff, var(--primary));
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 12%, transparent);
}

.logo-text {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.hero h1 {
	font-size: clamp(28px, 6vw, 44px);
	line-height: 1.15;
	margin: 0;
	font-weight: 800;
	color: var(--text);
	letter-spacing: -0.02em;
}

.hero p {
	margin: 0;
	color: var(--muted);
	font-size: clamp(16px, 2.5vw, 18px);
	line-height: 1.6;
	max-width: 65ch;
}

.waitlist-form {
	margin-top: clamp(12px, 2vw, 18px);
	max-width: 560px;
	width: 100%;
}

.card-mock {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.phone {
	width: 100%;
	max-width: 280px;
	aspect-ratio: 280 / 520;
	padding: 12px;
	border-radius: clamp(24px, 5vw, 28px);
	background: #0f172a;
	box-shadow: var(--shadow-lg);
	position: relative;
	transform: rotate(3deg) translateY(6px);
	margin: 0 auto;
}

@media (min-width: 1024px) {
	.hero {
		grid-template-columns: 1fr 1fr;
	}
	
	.phone {
		transform: rotate(3deg) translateY(6px);
	}
}

@media (max-width: 1023px) {
	.phone {
		transform: rotate(0deg) translateY(0);
		max-width: 240px;
	}
}

.phone .screen {
	height: 100%;
	border-radius: clamp(18px, 4vw, 22px);
	background: var(--card);
	padding: clamp(12px, 2.5vw, 16px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.phone-notch {
	margin: 6px auto clamp(8px, 1.5vw, 10px);
	width: 48px;
	height: 6px;
	background: #e5e7eb;
	border-radius: 999px;
}

.phone-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 8px;
}

.phone-header h2 {
	font-size: clamp(12px, 2vw, 14px);
	margin: 0;
	font-weight: 600;
	color: var(--text);
}

.phone-header span {
	font-size: clamp(10px, 1.8vw, 12px);
	color: var(--muted);
}

.win-grid {
	margin-top: 8px;
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: clamp(4px, 1vw, 6px);
	flex: 1;
}

.win-grid .cell {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 6px;
	background: var(--canvas);
}

.win-grid .cell.win {
	background: var(--win);
}

.streak {
	margin-top: clamp(10px, 2vw, 12px);
	text-align: center;
	font-weight: 600;
	color: var(--reward);
	font-size: clamp(12px, 2vw, 14px);
}

.scroll-cue {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: clamp(12px, 2vw, 18px);
	color: var(--muted);
	font-weight: 600;
	font-size: clamp(14px, 2vw, 16px);
	user-select: none;
}

.scroll-cue .arrow {
	width: clamp(16px, 2.5vw, 18px);
	height: clamp(16px, 2.5vw, 18px);
	animation: bounceY 1.2s ease-in-out infinite;
}

.scroll-cue.is-hidden {
	opacity: 0;
	transform: translateY(4px);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes bounceY {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(6px);
	}
}

.section-title {
	font-size: clamp(22px, 4.5vw + 4px, 34px);
	font-weight: 800;
	text-align: center;
	margin: 0;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.section-sub {
	color: var(--muted);
	max-width: 65ch;
	margin: clamp(12px, 2vw, 16px) auto 0;
	font-size: clamp(16px, 2.5vw, 18px);
	text-align: center;
	line-height: 1.6;
}

.section-subtitle {
	color: var(--muted);
	max-width: 48ch;
	margin: clamp(10px, 2vw, 14px) auto 0;
	font-size: clamp(15px, 2.2vw, 17px);
	text-align: center;
	line-height: 1.6;
}

.features-section {
	background: var(--card);
}

.features {
	display: grid;
	gap: clamp(16px, 3vw, 20px);
	grid-template-columns: 1fr;
	margin-top: clamp(20px, 4vw, 24px);
}

@media (min-width: 640px) {
	.features {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	.features {
		grid-template-columns: repeat(3, 1fr);
	}
}

.feature {
	background: var(--canvas);
	border-radius: var(--radius);
	padding: clamp(18px, 3vw, 20px);
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
}

.feature:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.feature-icon {
	font-size: clamp(24px, 4vw, 28px);
	line-height: 1;
	margin-bottom: 4px;
}

.feature h3 {
	margin: clamp(10px, 2vw, 12px) 0 0;
	font-size: clamp(18px, 2.5vw, 20px);
	font-weight: 600;
	color: var(--text);
}

.feature p {
	margin: clamp(6px, 1.5vw, 8px) 0 0;
	color: var(--muted);
	font-size: clamp(14px, 2vw, 16px);
	line-height: 1.6;
}

.cta-section {
	background: var(--card);
}

.cta {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(16px, 3vw, 24px);
}

.cta .waitlist-form {
	margin-top: 0;
}

.ritual-section {
	background: var(--canvas);
}

.ritual-steps {
	margin-top: clamp(20px, 4vw, 28px);
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(14px, 3vw, 18px);
}

@media (min-width: 640px) {
	.ritual-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ritual-step {
	background: var(--card);
	border-radius: var(--radius);
	padding: clamp(16px, 3vw, 20px);
	box-shadow: var(--shadow-sm);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ritual-step h3 {
	font-size: clamp(16px, 2.3vw, 18px);
	font-weight: 600;
	margin: 0;
	color: var(--text);
}

.ritual-step p {
	margin: 0;
	color: var(--muted);
	font-size: clamp(14px, 2vw, 16px);
	line-height: 1.6;
}

.step-number {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: var(--primary);
	box-shadow: var(--shadow-sm);
	margin-bottom: 4px;
}

.footer {
	border-top: 1px solid rgba(237, 242, 247, 0.8);
	padding: clamp(24px, 4vw, 28px) 0;
	color: #718096;
	font-size: clamp(12px, 2vw, 14px);
	background: var(--card);
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.footer-logo {
	height: 20px;
	width: auto;
	display: block;
}

.footer-brand-name {
	font-weight: 600;
	color: var(--text);
}

.footer p {
	margin: 0;
}

@media (max-width: 639px) {
	.footer-inner {
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}
	
	.footer-brand {
		justify-content: center;
	}
}

.reveal {
	opacity: 0;
	transform: translateY(18px) scale(0.98);
	transition:
		opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.fade-in {
	animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

#hero-sentinel {
	height: 1px;
	width: 100%;
	position: absolute;
	bottom: 0;
}

@media (max-width: 639px) {
	.navbar {
		flex-wrap: wrap;
	}
	
	.btn-neutral {
		font-size: 14px;
		padding: 8px 12px;
	}
	
	.hero h1 {
		text-align: center;
	}
	
	.hero p {
		text-align: center;
	}
	
	.waitlist-form {
		margin-inline: auto;
	}
}

@media (hover: none) and (pointer: coarse) {
	.btn {
		min-height: 44px;
	}
	
	.input {
		min-height: 44px;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	
	.scroll-cue .arrow {
		animation: none;
	}
}
