/* ---------- Base ---------- */
html, body {
	margin: 0;
	padding: 0;
	background: #f1ede6;
	color: #3c3a56;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-optical-sizing: auto;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	text-wrap: pretty;
}

/* New York Heavy (Small optical size) — applied wherever the serif appears */
h1,
h2,
.feature figcaption {
	font-family: ui-serif, Georgia, "Times New Roman", serif;
	font-optical-sizing: none;
	font-variation-settings: "opsz" 11;
	font-weight: 900;
	color: #3c3a56;
}

/* ---------- Books illustrations ---------- */
.books-landing {
	display: block;
	width: 100%;
	height: auto;
	margin-top: -1px; /* hide hairline gap */
}
.books-landing [id^="Book-"] {
	transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
	transform-box: fill-box;
	transform-origin: center top;
}
.books-landing [id^="Book-"]:hover {
	transform: translateY(24px);
}
.books-footer {
	display: block;
	width: 100%;
	max-width: 900px;
	height: auto;
	margin: 0 auto -65px; /* overlap books onto dark band */
	position: relative;
	z-index: 1;
}

/* ---------- Layout ---------- */
main {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 0 64px;
	box-sizing: border-box;
}
body.home main {
	align-items: center;
	text-align: center;
}

/* ---------- Hero ---------- */
.hero {
	display: flex;
	flex-direction: column;
}
body.home .hero {
	align-items: center;
	padding: 96px 0 48px;
}
body.support .hero,
body.privacy .hero {
	max-width: 900px;
	width: 100%;
	margin: 0 auto;
	padding: 120px 0 130px;
	text-align: left;
}
body.privacy .hero { padding-bottom: 16px; }
.logo {
	width: 84px;
	height: auto;
	margin-bottom: 28px;
	filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.05));
}

/* Interactive Atlas mark (bookmark + spinnable dial) */
.atlas-mark {
	position: relative;
	display: block;
	width: 84px;
	margin-bottom: 28px;
	cursor: pointer;
	filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.05));
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: all 0.2s ease, filter 0.2s ease;
}
.atlas-mark:hover {
	translate: 0 -6px;
	transform: rotate(3deg);
	filter: drop-shadow(0 28px 24px rgba(0, 0, 0, 0.08));
}
.atlas-mark.is-pressed {
	animation: mark-press 0.45s ease-out;
}
@keyframes mark-press {
	0%   { scale: 1; }
	35%  { scale: 0.92; }
	62%  { scale: 1.04; }
	100% { scale: 1; }
}
.atlas-mark .bookmark {
	width: 100%;
	height: auto;
	display: block;
	pointer-events: none;
}
.atlas-mark .dial {
	position: absolute;
	top: 15.93%;
	left: 21.08%;
	width: 59.77%;
	height: auto;
	transform-origin: center center;
	will-change: transform;
	pointer-events: none;
}
.atlas-mark.is-spinning .dial {
	animation: dial-spin 3s both;
}
@keyframes dial-spin {
	0% {
		transform: rotate(0deg);
		animation-timing-function: cubic-bezier(0.45, 0, 0.55, 0); /* accelerate into wind-up */
	}
	10% {
		transform: rotate(-45deg);
		animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); /* whip forward, then smoothly decelerate to a stop */
	}
	100% {
		transform: rotate(1440deg); /* 4 full rotations -> lands at 0 visually */
	}
}
.home-link {
	display: inline-block;
	margin-bottom: 36px;
	text-decoration: none;
	width: min-content;
	cursor: pointer;
	transition: all 0.2s ease;
}
.home-link:hover { 
	transform: translateY(-4px) translateX(-5px) rotate(1deg);
}
.home-link img {
	height: 42px;
	width: auto;
	display: block;
}
h1 {
	line-height: 1;
	margin: 0 0 28px;
}
body.home h1 { font-size: 90px; }
body.support h1,
body.privacy h1 { font-size: 70px; }
.intro {
	font-weight: 400;
	font-size: 25px;
	line-height: 1.7;
	color: #524f71;
	max-width: 864px;
	margin: 0 0 40px;
	text-wrap: pretty;
}

/* ---------- CTA pill ---------- */
.cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #5b54a1;
	color: #ffffff;
	width: fit-content;
	font-size: 24px;
	font-weight: 500;
	line-height: 1;
	padding: 22px 35px 26px;
	border-radius: 100px;
	text-decoration: none;
	transition: all 0.2s ease;
}
.cta:hover {
	background: #8176EF;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.10);
	transform: translateY(-4px) scale(1.04) rotate(.5deg);
}

/* ---------- Features grid (home) ---------- */
.features {
	width: 100%;
	max-width: 1186px;
	padding: 64px 0 96px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 40px;
	row-gap: 64px;
}
.feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
}
.feature img {
	width: 100%;
	height: auto;
	border-radius: 25px;
	box-shadow: 0 8px 23px rgba(0, 0, 0, 0.11);
	display: block;
}
.feature figcaption {
	font-size: 20px;
	line-height: 1.3;
	margin-top: 28px;
	max-width: 240px;
	text-wrap: balance;
}

/* ---------- FAQ accordions (support) ---------- */
.faqs {
	max-width: 900px;
	width: 100%;
	margin: 0 auto;
	padding: 0 0 96px;
}
.faqs h2 {
	font-size: 50px;
	line-height: 1.1;
	margin: 0 0 40px;
}
.faq {
	position: relative;
	background: #ffffff;
	border-radius: 30px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	margin-bottom: 30px;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.faq:last-child {
	margin-bottom: 0;
}
.faq:hover {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}
.faq-toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	opacity: 0;
}
.faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 30px 33px;
	cursor: pointer;
	font-weight: 590;
	font-size: 24px;
	line-height: 1.2;
	color: #524f71;
	user-select: none;
	transition: color 0.2s ease;
}
.faq-toggle:focus-visible + .faq-question {
	outline: 2px solid #5b54a1;
	outline-offset: -2px;
	border-radius: 30px;
}
.chevron {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	color: #524f71;
	transition: transform 0.35s ease;
}
.faq-toggle:checked ~ .faq-question .chevron {
	transform: rotate(180deg);
}
.faq-answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease;
}
.faq-toggle:checked ~ .faq-answer {
	grid-template-rows: 1fr;
}
.faq-answer-inner {
	overflow: hidden;
}
.faq-answer-inner p {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.7;
	color: #524f71;
	margin: 0 0 16px;
	padding: 0 33px;
}
.faq-answer-inner p:first-child {
	margin-top: -10px;
}
.faq-answer-inner p:last-child {
	margin-bottom: 0;
	padding-bottom: 36px;
}

/* ---------- Privacy content ---------- */
.policy {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 0 96px;
	text-align: left;
}
.policy .updated {
	color: #8a8799;
	font-size: 16px;
	margin: 0 0 32px;
}
.policy p {
	font-size: 20px;
	line-height: 1.8;
	color: #524f71;
	margin: 0 0 16px;
}
.policy .lede {
	font-size: 22px;
	margin-bottom: 32px;
}
.policy h2 {
	font-size: 28px;
	line-height: 1.3;
	margin: 48px 0 12px;
}
.policy a {
	color: #524f71;
	text-decoration: underline;
}
.policy a:hover {
	text-decoration: none;
}

/* ---------- Available Now (home) ---------- */
.available {
	padding: 32px 0 96px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.available h2 {
	font-size: 50px;
	line-height: 1;
	margin: 0 0 36px;
}

/* ---------- Dark footer ---------- */
footer {
	background: #2c2a45;
	color: #ffffff;
	padding: 160px 65px 120px;
}
.footer-content {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
	max-width: 900px;
	margin: auto;
}
.signoff {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}
.signoff .happy {
	font-weight: 860;
	font-size: 21px;
	line-height: 1.2;
	margin: 0;
}
.signoff a {
	display: inline-block;
	transition: transform 0.2s ease;
	cursor: pointer;
}
.signoff a:hover {
	transform: translateY(-2px) rotate(-1deg);
}
.signoff .signature {
	width: 114px;
	height: auto;
	display: block;
}
.footer-nav {
	display: flex;
	align-items: center;
	gap: 20px;
}
.footer-nav a {
	color: #ffffff;
	font-size: 18px;
	text-decoration: none;
	background: #2c2a45;
	border-radius: 100px;
	padding: 10px 17px 12px;
	transition: all .2s ease;
}
.footer-nav a:hover { 
	background: #5B54A1;
	transform: translateY(-4px);
}
.footer-nav .bluesky {
	display: inline-flex;
	align-items: center;
	padding: 15px;
	margin-bottom: 5px;
}
.footer-nav .bluesky img {
	width: 28px;
	height: auto;
	display: block;
}
.footer-nav .bluesky:hover {
	text-decoration: none;
	opacity: 0.8;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	body.home h1 { font-size: 72px; }
	body.support h1 { font-size: 56px; }
	.intro { font-size: 22px; }
	.logo { width: 69px; }
	.atlas-mark { width: 69px; }
	.features {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 56px;
	}
	.feature figcaption { font-size: 24px; max-width: 350px; }
	.available h2 { font-size: 42px; }
	.faqs h2 { font-size: 42px; }
	.books-footer { margin-bottom: -56px; width: 90%;}
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	main { padding: 0 24px; }
	body.home .hero { padding: 56px 0 32px; }
	body.support .hero { padding: 64px 0; }
	.logo { width: 53px; margin-bottom: 20px; }
	.atlas-mark { width: 53px; margin-bottom: 20px; }
	body.home h1 { font-size: 60px; margin-bottom: 20px; }
	body.support h1,
	body.privacy h1 { font-size: 48px; margin-bottom: 20px; }
	.policy p { font-size: 17px; }
	.policy .lede { font-size: 19px; }
	.policy h2 { font-size: 24px; margin-top: 40px; }
	.faqs h2 { font-size: 36px; margin-bottom: 24px; }
	.faq { border-radius: 24px; margin-bottom: 15px;}
	.faq-question { font-size: 18px; padding: 24px 24px; gap: 16px; }
	.chevron { width: 22px; height: 22px; }
	.faq-answer-inner p { font-size: 17px; padding: 0 24px; }
	.faq-answer-inner p:first-child { margin-top: -7px; }
	.faq-answer-inner p:last-child { padding-bottom: 24px; }
	.books-footer { margin-bottom: -32px; width: 80%;}
	.intro { font-size: 19px; margin-bottom: 32px; }
	.cta { font-size: 19px; padding: 18px 36px; }
	.features {
		grid-template-columns: 1fr;
		row-gap: 48px;
		padding: 48px 0 64px;
	}
	.feature img { border-radius: 45px; }
	.feature figcaption { font-size: 24px; max-width: 350px; }
	.available { padding: 16px 0 64px; }
	.available h2 { font-size: 36px; }
	footer {
		padding: 100px 24px;
		flex-direction: column;
		align-items: center;
		gap: 28px;
		text-align: center;
	}
	.footer-content { justify-content: center; gap: 60px; }
	.signoff { align-items: center; }
	.footer-nav {
		flex-wrap: wrap;
		justify-content: center;
		gap: 24px;
	}
}
