:root {
	--kelsey: #002147;
	--award: #D4AF37;
	--champagne: #F7E7CE;
	--alabaster: #FAF9F6;
	--darkroom: #140C08;
	--darkroom-soft: #20130D;
	--panel: rgba(247, 231, 206, 0.08);
	--font-logo: "Cormorant Garamond";
	--font-body: "Fira Sans";
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--darkroom);
	color: var(--champagne);
	font-family: var(--font-body), sans-serif;

}

button,
input {
	font: inherit;
}

.landing {
	min-height: 100vh;
	padding: 48px 24px;
}

.hero {
	width: min(1120px, 100%);
	min-height: calc(100vh - 96px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
	gap: 64px;
	align-items: center;
}

.phone-demo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.demo-disclaimer {
	margin: 0;
	color: rgba(247, 231, 206, 0.58);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0;
	text-align: center;
	text-transform: uppercase;
}

.iphone {
	width: min(100%, 360px);
	aspect-ratio: 9 / 18.5;
	padding: 14px;
	border: 2px solid rgba(247, 231, 206, 0.24);
	border-radius: 42px;
	background: #080503;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
	position: relative;
}

.iphone-speaker {
	width: 86px;
	height: 6px;
	margin: 0 auto 12px;
	border-radius: 999px;
	background: rgba(247, 231, 206, 0.25);
}

.app-screen {
	height: calc(100% - 18px);
	overflow: hidden;
	border-radius: 30px;
	background: linear-gradient(180deg, var(--darkroom-soft), var(--darkroom));
	display: grid;
	grid-template-rows: auto 1fr auto;
	position: relative;
}

.app-screen::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			180deg,
			rgba(20, 12, 8, 0.22),
			rgba(20, 12, 8, 0.74)
		);
	z-index: 1;
	pointer-events: none;
}

.screen-backdrop {
	position: absolute;
	inset: -28px;
	width: calc(100% + 56px);
	height: calc(100% + 56px);
	object-fit: cover;
	filter: blur(24px) brightness(1.18) saturate(1.08);
	opacity: 0;
	transform: scale(1.06);
	transition: opacity 1s ease;
	z-index: 0;
}

.screen-backdrop.is-visible {
	opacity: 0.5;
}

.demo-header,
.demo-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px;
}

.demo-header {
	color: var(--award);
	font-size: 0.82rem;
	letter-spacing: 0;
}

.demo-header span:first-child {
	font-family: var(--font-logo), serif;
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--champagne);
}

.app-screen,
.card-stack {
	width:100%;
	min-width:0;
	max-width:100%;
	overflow:hidden;
}

.card-stack {
	position: relative;
	min-height: 0;
	padding: 0 14px;
}

.demo-header,
.card-stack,
.demo-actions {
	position: relative;
	z-index: 2;
}



.card {
	height: 100%;
	position: absolute;
	inset: 0 14px;
	width: calc(100% - 28px);
	transition: transform 0.35s ease, opacity 0.35s ease;
	touch-action: none;
	user-select: none;
}

.card.is-dragging {
	transition: none;
	cursor: grabbing;
}

.card-inner {
	width: 100%;
	height: 100%;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.55s ease;
}

.card-inner.flipped {
	transform: rotateY(180deg);
}

.card-front {
	display: grid;
	place-items: center;
	background: transparent;
	position: relative;
}

.poster-shell {
	position: relative;
	width: min(85%, 275px);
	aspect-ratio: 2 / 3;
}

.poster-shell .poster-image {
	width: 100%;
	height: 100%;
}

.movie-save-button {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
}


.poster-image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	border-radius: 14px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.52);
	-webkit-user-drag: none;
	user-select: none;
}


.card-front,
.card-back {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 18px;
	backface-visibility: hidden;
}

.card-back {
	padding: 22px;
	transform: rotateY(180deg);
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: var(--champagne);
	background: #120B07;
}

.card-back h3 {
	margin: 0 0 12px;
	color: var(--award);
	font-size: 1.25rem;
	line-height: 1.15;
}

.card-back p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
}

.demo-actions button,
.notify-form button {
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	color: var(--darkroom);
	background: var(--award);
	font-weight: 700;
}

.demo-actions button {
	min-width: 72px;
	min-height: 40px;
	padding: 0 14px;
	font-size: 0.82rem;
}

#skip-button {
	background: rgba(247, 231, 206, 0.14);
	color: var(--champagne);
}

#flip-button {
	background: var(--champagne);
	color: var(--darkroom);
}

.exit-left {
	transform: translateX(-130%) rotate(-14deg);
	opacity: 0;
}

.exit-right {
	transform: translateX(130%) rotate(14deg);
	opacity: 0;
}

.demo-state {
	height: 100%;
	min-height: 320px;
	padding: 24px;
	border-radius: 18px;
	background: rgba(247, 231, 206, 0.08);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.demo-state h3 {
	margin: 0 0 10px;
	color: var(--award);
}

.demo-state p {
	margin: 0;
	line-height: 1.45;
}

.hero-copy {
	max-width: 680px;
}

.eyebrow {
	margin: 0 0 16px;
	color: var(--award);
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
}



h1 {
	margin: 0;
	color: var(--champagne);
	font-family: var(--font-logo), serif;
	font-size: clamp(4rem, 9vw, 7rem);
	font-weight: 600;
	line-height: 0.9;
}

p,
button,
input {
	font-family: var(--font-body), sans-serif;
}

.tagline {
	max-width: 620px;
	margin: 24px 0 32px;
	color: rgba(247, 231, 206, 0.86);
	font-size: 1.15rem;
	line-height: 1.65;
}

.pillars {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 28px;
}

.pillar-button {
	min-height: 138px;
	padding: 18px;
	border: 1px solid rgba(212, 175, 55, 0.22);
	border-radius: 8px;
	background: var(--panel);
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.pillar-button:hover {
	border-color: rgba(212, 175, 55, 0.58);
	background: rgba(247, 231, 206, 0.12);
}

.pillar-button h2 {
	margin: 0 0 8px;
	color: var(--award);
	font-size: 1rem;
	line-height: 1.25;
}

.pillar-button p {
	margin: 0;
	color: rgba(247, 231, 206, 0.82);
	font-size: 0.92rem;
	line-height: 1.5;
}

.notify-form {
	display: flex;
	width: 100%;
	max-width: 520px;
	gap: 10px;
}

.notify-form input[type="email"] {
	min-width: 0;
	flex: 1 1 auto;
	height: 48px;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid rgba(247, 231, 206, 0.28);
	border-radius: 999px;
	background: rgba(247, 231, 206, 0.08);
	color: var(--champagne);
	appearance: none;
}


.notify-form input::placeholder {
	color: rgba(247, 231, 206, 0.58);
}

.notify-form button {
	min-height: 48px;
	padding: 0 22px;
}

@media (max-width: 860px) {
	.landing {
		padding: 24px 16px 32px;
	}

	.hero {
		width: 100%;
		min-height: auto;
		grid-template-columns: 1fr;
		gap: 36px;
		align-items: start;
	}

	.phone-demo {
		order: 1;
		width: 100%;
	}

	.hero-copy {
		order: 2;
		max-width: none;
	}

	h1 {
		font-size: clamp(3.5rem, 18vw, 5rem);
	}

	.pillars {
		grid-template-columns: 1fr;
	}

	.notify-form {
		width: 100%;
		max-width: none;
		flex-direction: column;
	}

	.notify-form input[type="email"] {
		width: 100%;
		flex: 0 0 48px;
		height: 48px;
		min-height: 48px;
	}

	.notify-form button {
		width: 100%;
		min-height: 48px;
	}
}

.library-demo {
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 2px 2px 16px;
}

.library-section {
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
}

.library-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.library-section-header h3 {
	margin: 0;
	min-width: 0;
	color: var(--champagne);
	font-size: 0.86rem;
	line-height: 1.2;
}

.library-section-header button {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: var(--award);
	cursor: pointer;
	font-size: 0.72rem;
	font-weight: 700;
}

.people-row,
.theater-row,
.movie-row {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 6px;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	contain: inline-size;
}

.library-row-track {
	width: max-content;
	min-width: max-content;
	display: flex;
	flex-wrap: nowrap;
	overflow-x:auto;
	gap: 10px;
}

.library-row-track::-webkit-scrollbar {
    display: none;
}

.library-row-track > * {
    flex-shrink: 0; /* Forces the item to keep its size, which forces the parent to scroll */
}

.library-row-track img {
    width: 120px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.library-add-person,
.library-person,
.theater-group {
	flex: 0 0 68px;
	width: 68px;
	text-align: center;
	color: var(--champagne);
}

.library-add-person {
	border: 0;
	background: transparent;
	cursor: pointer;
}

.library-add-person span,
.theater-group div {
	width: 58px;
	height: 58px;
	margin: 0 auto 6px;
	border: 1px solid rgba(212, 175, 55, 0.42);
	border-radius: 999px;
	background: rgba(20, 12, 8, 0.82);
	color: var(--award);
	display: grid;
	place-items: center;
	font-size: 1.35rem;
	font-weight: 700;
}

.library-person img {
	width: 58px;
	height: 58px;
	margin-bottom: 6px;
	border-radius: 999px;
	object-fit: cover;
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.34);
	-webkit-user-drag: none;
	user-select: none;
}

.library-add-person small,
.library-person small,
.theater-group small {
	display: block;
	overflow: hidden;
	color: rgba(247, 231, 206, 0.78);
	font-size: 0.68rem;
	line-height: 1.15;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.movie-row img {
	flex: 0 0 78px;
	width: 78px;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.34);
	-webkit-user-drag: none;
	user-select: none;
}

.library-loading {
	min-width: 120px;
	color: rgba(247, 231, 206, 0.72);
	font-size: 0.78rem;
}


.person-demo {
	height: 100%;
	overflow: hidden;
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 14px;
	padding: 6px 0 0;
}

.person-profile {
	text-align: center;
}

.person-profile img {
	width: 86px;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 999px;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
}

.person-profile h3 {
	margin: 8px 0 0;
	color: var(--champagne);
	font-size: 1rem;
	line-height: 1.2;
}

.person-grid {
	min-height: 0;
	overflow-y: auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 0 4px 10px;
}

.person-grid img {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.34);
}

.save-button {
	width: 42px;
	height: 42px;
	border: 1px solid rgba(212, 175, 55, 0.42);
	border-radius: 999px;
	background: rgba(20, 12, 8, 0.9);
	color: var(--award);
	display: grid;
	place-items: center;
	cursor: pointer;
}

.save-button svg {
	width: 20px;
	height: 20px;
}

.save-button path {
	fill: transparent;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linejoin: round;
}

.save-button[aria-pressed="true"] path {
	fill: currentColor;
}

.vault-demo {
	height: 100%;
	min-height: 0;
	position: relative;
	display: grid;
	grid-template-rows: auto auto 1fr;
	gap: 10px;
	padding: 2px 0 0;
}

.vault-filters {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 0 2px 4px;
}

.vault-filter {
	width: 62px;
	min-width: 62px;
	border: 0;
	background: transparent;
	color: var(--champagne);
	cursor: pointer;
	text-align: center;
}

.vault-filter span {
	width: 48px;
	height: 48px;
	margin: 0 auto 5px;
	border: 1px solid rgba(212, 175, 55, 0.28);
	border-radius: 999px;
	background: rgba(20, 12, 8, 0.74);
	color: var(--award);
	display: grid;
	place-items: center;
	font-size: 1rem;
	font-weight: 700;
}

.vault-filter small {
	display: block;
	font-size: 0.68rem;
	line-height: 1.1;
	color: rgba(247, 231, 206, 0.78);
}

.vault-filter.is-active span {
	background: var(--award);
	color: var(--darkroom);
}

.vault-scope-toggle {
	display: flex;
	gap: 6px;
	padding: 0 2px;
}

.vault-scope-toggle.is-hidden {
	display: none;
}

.vault-scope-toggle button {
	flex: 1;
	min-height: 32px;
	border: 1px solid rgba(247, 231, 206, 0.18);
	border-radius: 999px;
	background: rgba(20, 12, 8, 0.56);
	color: var(--champagne);
	cursor: pointer;
	font-size: 0.76rem;
	font-weight: 700;
}

.vault-scope-toggle button.is-active {
	background: var(--champagne);
	color: var(--darkroom);
}

.vault-grid {
	min-height: 0;
	overflow-y: auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 0 2px 10px;
}

.vault-grid img {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.34);
}

.floating-search-button {
	width: 44px;
	height: 44px;
	position: absolute;
	right: 8px;
	bottom: 12px;
	z-index: 4;
	border: 1px solid rgba(212, 175, 55, 0.42);
	border-radius: 999px;
	background: rgba(20, 12, 8, 0.92);
	color: var(--award);
	display: grid;
	place-items: center;
	cursor: pointer;
}

.floating-search-button svg {
	width: 20px;
	height: 20px;
}

.floating-search-button path {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.match-popup {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: grid;
	place-items: center;
	padding: 18px;
	background: rgba(20, 12, 8, 0.34);
}

.match-popup-content {
	width: min(100%, 240px);
	padding: 20px;
	border: 1px solid rgba(212, 175, 55, 0.38);
	border-radius: 18px;
	background: rgba(20, 12, 8, 0.94);
	color: var(--champagne);
	text-align: center;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.48);
}

.match-popup-label {
	margin: 0 0 8px;
	color: var(--award);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
}

.match-popup-content h3 {
	margin: 0 0 8px;
	color: var(--champagne);
	font-size: 1.15rem;
	line-height: 1.2;
}

.match-popup-content p {
	margin: 0 0 16px;
	font-size: 0.9rem;
	line-height: 1.45;
}

.match-popup-content button {
	min-height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--award);
	color: var(--darkroom);
	cursor: pointer;
	font-weight: 700;
}
