/* Comfy Boy — static styles.
   Converted from the original React + Tailwind page. */

:root {
	--red: #e63946;
	--yellow: #fde047;   /* tailwind yellow-300 */
	--teal: #5eead4;     /* teal-300 */
	--violet: #a78bfa;   /* violet-400 */
	--lime: #bef264;     /* lime-300 */
	--cream: #fff6e5;
	--black: #000;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Fredoka", sans-serif;
	color: var(--black);
	background: var(--cream);
	overflow-x: clip;
	line-height: 1.5;
}

img { max-width: 100%; display: block; }

.font-display,
.logo, .btn, .hero-title, .exhibit-title, .exhibit-eyebrow, .tag,
.roadmap-title, .waitlist-title, .float-badge, .marquee-word, .footer-logo {
	font-family: "Shrikhand", "Fredoka", sans-serif;
	letter-spacing: 0.005em;
	font-weight: 400;
}

.text-red { color: var(--red); }
.text-yellow { color: var(--yellow); }

::selection { background: var(--red); color: #fff; }

.page { min-height: 100vh; }

.icon { width: 1.25rem; height: 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	border: 4px solid var(--black);
	border-radius: 999px;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
	color: var(--black);
}

.btn-join {
	background: var(--yellow);
	font-size: .875rem;
	padding: .5rem 1rem;
	box-shadow: 3px 3px 0 var(--black);
}
.btn-join:hover { transform: translateY(2px); box-shadow: 1px 1px 0 var(--black); }

.btn-notify {
	background: var(--red);
	color: #fff;
	font-size: 1rem;
	padding: 1rem 2rem;
	box-shadow: 5px 5px 0 var(--black);
}
.btn-notify:hover { transform: translateY(4px); box-shadow: 2px 2px 0 var(--black); }

.btn-submit {
	background: var(--red);
	color: #fff;
	border-color: #fff;
	font-size: .875rem;
	padding: .75rem 1.5rem;
	flex-shrink: 0;
}
.btn-submit:hover { background: var(--yellow); color: var(--black); }

/* ---------- Header ---------- */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 90rem;
	margin: 0 auto;
	padding: 1rem 1.25rem;
}
.logo {
	display: flex;
	align-items: center;
	gap: .5rem;
	color: var(--red);
	font-size: 1.25rem;
}
.logo-badge {
	background: var(--black);
	color: #fff;
	padding: .25rem .5rem;
	border-radius: .375rem;
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	max-width: 90rem;
	margin: 0 auto;
	padding: 1.5rem 1.25rem 4rem;
	display: grid;
	gap: 2rem;
	align-items: center;
	min-height: 60dvh;
}
.hero-copy { position: relative; z-index: 1; }

.pill {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: var(--black);
	color: #fff;
	font-family: "Shrikhand", "Fredoka", sans-serif;
	font-size: .75rem;
	padding: .5rem 1rem;
	border-radius: 999px;
	margin-bottom: 1.5rem;
}
.icon-sparkle { width: 1rem; height: 1rem; color: var(--yellow); }

.hero-title {
	font-size: clamp(3rem, 9vw, 4.5rem);
	line-height: .95;
	margin: 0 0 1.5rem;
}
.hero-lede {
	font-size: 1.125rem;
	max-width: 28rem;
	color: rgba(0,0,0,.7);
	font-weight: 500;
	margin: 0 0 2rem;
}

.hero-visual { position: relative; }
.frame-backer {
	position: absolute;
	inset: -1rem;
	border-radius: 2rem;
	border: 4px solid var(--black);
}
.frame-backer-yellow { background: var(--yellow); }
.frame-backer-red { background: var(--red); }
.tilt-pos { transform: rotate(3deg); }
.tilt-neg { transform: rotate(-3deg); }

.frame {
	position: relative;
	border-radius: 2rem;
	border: 4px solid var(--black);
	overflow: hidden;
	box-shadow: 8px 8px 0 var(--black);
	width: 100%;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-white { background: #fff; border-color: var(--red); }
.frame-hero { aspect-ratio: 3 / 4; }

.float-badge {
	position: absolute;
	bottom: -1.25rem;
	left: -1.25rem;
	background: #fff;
	border: 4px solid var(--black);
	border-radius: 1rem;
	padding: .5rem 1rem;
	font-size: .875rem;
	box-shadow: 4px 4px 0 var(--black);
}

/* ---------- Marquee ---------- */
.marquee {
	overflow: hidden;
	background: var(--red);
	padding: .75rem 0;
	border-top: 4px solid var(--black);
	border-bottom: 4px solid var(--black);
}
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-word {
	display: inline-flex;
	align-items: center;
	gap: 1.5rem;
	color: #fff;
	font-size: 1.125rem;
	margin: 0 1.5rem;
	white-space: nowrap;
}
.marquee-word .icon { width: 1.25rem; height: 1.25rem; color: var(--yellow); }

/* ---------- Exhibits ---------- */
.exhibit {
	max-width: 72rem;
	margin: 0 auto;
	padding: 4rem 1.25rem;
	display: grid;
	gap: 2.5rem;
	align-items: center;
}
.exhibit-visual { position: relative; }
.frame-square { aspect-ratio: 1 / 1; }
.bg-teal { background: var(--teal); }
.bg-violet { background: var(--violet); }
.bg-lime { background: var(--lime); }
.bg-yellow { background: var(--yellow); }
.frame-square { border-color: var(--black); }

.exhibit-eyebrow {
	color: var(--red);
	font-size: .875rem;
	margin: 0 0 .75rem;
}
.exhibit-title {
	font-size: clamp(2.25rem, 5vw, 3rem);
	line-height: 1.1;
	margin: 0 0 1.25rem;
}
.tag {
	display: inline-block;
	font-size: .625rem;
	padding: .25rem .75rem;
	border-radius: 999px;
	border: 2px solid var(--black);
	margin-bottom: 1.25rem;
}
.tag-red { background: var(--red); color: #fff; }
.tag-yellow { background: var(--yellow); color: var(--black); }

.exhibit-blurb {
	font-size: 1.125rem;
	color: rgba(0,0,0,.7);
	font-weight: 500;
	margin: 0 0 1.5rem;
}
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.feature-list li { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.check-bullet {
	width: 1.5rem;
	height: 1.5rem;
	display: grid;
	place-items: center;
	background: var(--yellow);
	border: 2px solid var(--black);
	border-radius: 999px;
	flex-shrink: 0;
}
.check-bullet .icon { width: 1rem; height: 1rem; }

/* ---------- Roadmap ---------- */
.roadmap {
	max-width: 72rem;
	margin: 0 auto;
	padding: 2rem 1.25rem 0;
	text-align: center;
}
.roadmap-title { font-size: clamp(2.25rem, 5vw, 3rem); margin: 0 0 .75rem; }
.roadmap-sub { font-size: 1.125rem; color: rgba(0,0,0,.6); font-weight: 500; margin: 0; }

/* ---------- Waitlist ---------- */
.waitlist { max-width: 56rem; margin: 0 auto; padding: 6rem 1.25rem; }
.waitlist-card {
	position: relative;
	overflow: hidden;
	background: var(--black);
	color: #fff;
	border: 4px solid var(--black);
	border-radius: 2.5rem;
	padding: 2rem;
	text-align: center;
	box-shadow: 10px 10px 0 var(--red);
}
.blob { position: absolute; border-radius: 999px; }
.blob-red { top: -2rem; right: -2rem; width: 8rem; height: 8rem; background: var(--red); opacity: .4; }
.blob-yellow { bottom: -2.5rem; left: -2.5rem; width: 10rem; height: 10rem; background: var(--yellow); opacity: .3; }
.waitlist-inner { position: relative; }
.waitlist-title { font-size: clamp(1.875rem, 6vw, 3rem); line-height: 1.1; margin: 0 0 1rem; }
.waitlist-sub {
	color: rgba(255,255,255,.7);
	font-size: 1.125rem;
	font-weight: 500;
	max-width: 28rem;
	margin: 0 auto 2rem;
}

.waitlist-form { max-width: 28rem; margin: 0 auto; }
.waitlist-row { display: flex; flex-direction: column; gap: .75rem; }
.input-wrap { position: relative; flex: 1; }
.input-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(0,0,0,.4);
}
.waitlist-form input {
	width: 100%;
	background: #fff;
	color: var(--black);
	border: 4px solid #fff;
	border-radius: 999px;
	padding: .75rem 1rem .75rem 2.75rem;
	font-family: inherit;
	font-weight: 500;
	font-size: 1rem;
	outline: none;
	transition: border-color .15s ease;
}
.waitlist-form input:focus { border-color: var(--yellow); }
.form-error { color: var(--yellow); font-size: .875rem; font-weight: 600; margin: .75rem 0 0; }

.waitlist-success {
	background: var(--yellow);
	color: var(--black);
	border: 4px solid #fff;
	border-radius: 1rem;
	padding: 1.5rem;
	max-width: 28rem;
	margin: 0 auto;
	animation: pop .3s ease;
}
.success-check {
	width: 3.5rem;
	height: 3.5rem;
	margin: 0 auto .75rem;
	display: grid;
	place-items: center;
	background: var(--red);
	color: #fff;
	border-radius: 999px;
	border: 4px solid var(--black);
}
.success-check .icon { width: 1.75rem; height: 1.75rem; }
.success-title { font-family: "Shrikhand","Fredoka",sans-serif; font-size: 1.125rem; margin: 0 0 .25rem; }
.success-sub { font-size: .875rem; font-weight: 500; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 4px solid var(--black); background: var(--yellow); }
.footer-inner {
	max-width: 90rem;
	margin: 0 auto;
	padding: 2rem 1.25rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	text-align: center;
}
.footer-logo { font-size: 1.125rem; color: var(--red); }
.footer-note { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; margin: 0; }
.icon-heart { width: 1rem; height: 1rem; color: var(--red); }

/* ---------- Animations ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.animate-marquee { animation: marquee 20s linear infinite; }

@keyframes wiggle { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.animate-wiggle { animation: wiggle 3s ease-in-out infinite; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.animate-float { animation: float 5s ease-in-out infinite; }

@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.animate-pop { animation: pop .6s ease both; }

/* Scroll reveal (replaces framer-motion whileInView) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.animate-marquee, .animate-wiggle, .animate-float, .animate-pop { animation: none; }
	.reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
	.site-header { padding: 1rem 2.5rem; }
	.logo { font-size: 1.5rem; }
	.btn-join { font-size: .875rem; }
	.hero { grid-template-columns: 1fr 1fr; padding: 1.5rem 2.5rem 4rem; gap: 2rem; }
	.marquee-word { font-size: 1.5rem; }
	.exhibit { grid-template-columns: 1fr 1fr; padding: 5rem 2.5rem; }
	.waitlist-card { padding: 3.5rem; }
	.waitlist-row { flex-direction: row; }
	.footer-inner { flex-direction: row; text-align: left; padding: 2rem 2.5rem; }
}

/* On desktop the copy sits opposite the photo for alternating exhibits */
@media (min-width: 768px) {
	.exhibit[data-side="right"] .exhibit-visual { order: 2; }
	.exhibit[data-side="right"] .exhibit-copy { order: 1; }
}
