/* Hidden Life marketing site. Tokens are the app's own (libs/theme/hidden-life.css):
   Ink-blue, Candlelight, Monastic, following the system. Fonts are bundled, never a CDN. */

@font-face {
	font-family: 'Cormorant Garamond';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('/fonts/cormorant-garamond.woff2') format('woff2');
}
@font-face {
	font-family: 'Cormorant Garamond';
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url('/fonts/cormorant-garamond-italic.woff2') format('woff2');
}
@font-face {
	font-family: 'EB Garamond';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('/fonts/eb-garamond.woff2') format('woff2');
}
@font-face {
	font-family: 'EB Garamond';
	font-style: italic;
	font-weight: 400 800;
	font-display: swap;
	src: url('/fonts/eb-garamond-italic.woff2') format('woff2');
}

:root {
	color-scheme: dark light;
	--hl-bg: oklch(22% 0.025 260);
	--hl-bg-raised: oklch(25% 0.024 260);
	--hl-bg-well: oklch(19% 0.022 260);
	--hl-rule: oklch(34% 0.02 260 / 0.55);
	--hl-rule-soft: oklch(34% 0.02 260 / 0.28);
	--hl-text: oklch(92% 0.018 75);
	--hl-text-muted: oklch(78% 0.02 75 / 0.78);
	--hl-text-faint: oklch(72% 0.022 75 / 0.5);
	--hl-accent: oklch(78% 0.11 78);
	--hl-accent-ink: oklch(22% 0.025 260);
	--hl-shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 40px rgba(0, 0, 0, 0.32);
	--hl-font-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
	--hl-font-body: 'EB Garamond', Georgia, serif;
	--measure: 660px;
}

@media (prefers-color-scheme: light) {
	:root {
		--hl-bg: oklch(96% 0.012 75);
		--hl-bg-raised: oklch(98% 0.01 75);
		--hl-bg-well: oklch(93% 0.014 75);
		--hl-rule: oklch(40% 0.03 260 / 0.32);
		--hl-rule-soft: oklch(40% 0.03 260 / 0.16);
		--hl-text: oklch(28% 0.03 260);
		--hl-text-muted: oklch(40% 0.025 260 / 0.78);
		--hl-text-faint: oklch(50% 0.02 260 / 0.55);
		--hl-accent: oklch(50% 0.12 70);
		--hl-accent-ink: oklch(98% 0.01 75);
		--hl-shadow-card: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 24px rgba(0, 0, 0, 0.1);
	}
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
}

body {
	font-family: var(--hl-font-body);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--hl-text);
	background: var(--hl-bg);
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration-color: var(--hl-rule);
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-color: var(--hl-accent);
}

:focus-visible {
	outline: 1px solid var(--hl-accent);
	outline-offset: 4px;
	border-radius: 4px;
}

.wrap {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 24px;
}

.measure {
	max-width: var(--measure);
	margin-left: auto;
	margin-right: auto;
}

/* ─── Small caps, the app's label and action voice ─────────────────────────── */

.label,
.action {
	font-size: 12.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.label {
	margin: 0;
	color: var(--hl-text-faint);
}

.label--accent {
	color: var(--hl-accent);
}

.action {
	color: var(--hl-text-muted);
	text-decoration: none;
	transition: color 240ms ease-out;
}

.action:hover {
	color: var(--hl-text);
}

/* ─── Header ───────────────────────────────────────────────────────────────── */

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.brand svg {
	width: 22px;
	height: 22px;
	fill: var(--hl-accent);
}

.brand span,
nav .action {
	white-space: nowrap;
}

.brand span {
	font-family: var(--hl-font-display);
	font-size: 22px;
	font-style: italic;
	letter-spacing: 0.01em;
}

nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	padding: 72px 0 80px;
	text-align: center;
	animation: rise 360ms ease-out backwards;
}

.hero h1 {
	max-width: 720px;
	margin: 0;
	font-family: var(--hl-font-display);
	font-size: clamp(2.5rem, 6.4vw, 4.1rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.12;
	text-wrap: balance;
}

.hero .lede {
	max-width: 600px;
	margin: 0;
	color: var(--hl-text-muted);
	font-size: 20px;
	text-wrap: pretty;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 28px;
	margin-top: 8px;
}

.pill {
	display: inline-flex;
	align-items: center;
	height: 48px;
	padding: 0 30px;
	border-radius: 999px;
	color: var(--hl-accent-ink);
	background: var(--hl-accent);
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	transition: opacity 240ms ease-out;
}

.pill:hover {
	opacity: 0.88;
}

.hero-meta {
	margin: 0;
	color: var(--hl-text-faint);
	font-size: 16px;
}

/* ─── The page, as it looks ────────────────────────────────────────────────── */

.page {
	max-width: var(--measure);
	margin: 0 auto 96px;
	padding: 40px 44px 44px;
	border: 1px solid var(--hl-rule-soft);
	border-radius: 14px;
	background: var(--hl-bg-raised);
	box-shadow: var(--hl-shadow-card);
}

.page .label {
	margin-bottom: 14px;
}

.passage {
	margin: 0 0 28px;
	padding-left: 20px;
	border-left: 1px solid var(--hl-accent);
}

.passage p {
	margin: 0 0 10px;
	font-family: var(--hl-font-display);
	font-size: 25px;
	font-style: italic;
	line-height: 1.4;
}

.passage cite {
	font-style: normal;
}

.turn {
	margin: 0 0 18px;
}

.turn--companion {
	position: relative;
	padding-left: 18px;
	font-family: var(--hl-font-display);
	font-size: 23px;
	font-style: italic;
	line-height: 1.4;
}

.turn--companion::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--hl-accent);
}

.turn--breathing::before {
	animation: breathe 3200ms ease-in-out infinite;
}

.page .kept {
	margin: 26px 0 0;
	color: var(--hl-text-faint);
	font-style: italic;
	font-size: 17px;
}

/* ─── Sections ─────────────────────────────────────────────────────────────── */

section {
	padding-bottom: 96px;
}

.section-head {
	max-width: var(--measure);
	margin: 0 auto 36px;
	text-align: center;
}

.section-head .label {
	margin-bottom: 14px;
}

.section-head h2 {
	margin: 0 0 14px;
	font-family: var(--hl-font-display);
	font-size: clamp(1.9rem, 4vw, 2.5rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.2;
	text-wrap: balance;
}

.section-head p {
	margin: 0;
	color: var(--hl-text-muted);
	text-wrap: pretty;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 16px;
}

.card {
	padding: 26px 24px 24px;
	border: 1px solid var(--hl-rule-soft);
	border-radius: 12px;
	background: var(--hl-bg-raised);
}

.card h3 {
	margin: 0 0 8px;
	font-family: var(--hl-font-display);
	font-size: 24px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.25;
}

.card p {
	margin: 0;
	color: var(--hl-text-muted);
	font-size: 17.5px;
}

.card .label {
	margin-bottom: 12px;
}

/* The hidden life sits in the darker well, as it does in the app. */
.well {
	margin-bottom: 96px;
	padding: 80px 0;
	background: var(--hl-bg-well);
	border-top: 1px solid var(--hl-rule-soft);
	border-bottom: 1px solid var(--hl-rule-soft);
}

.well section {
	padding-bottom: 0;
}

.thread {
	max-width: var(--measure);
	margin: 0 auto;
	padding: 22px 0;
	border-top: 1px solid var(--hl-rule-soft);
}

.thread:last-child {
	border-bottom: 1px solid var(--hl-rule-soft);
}

.thread p {
	margin: 8px 0 0;
	font-family: var(--hl-font-display);
	font-size: 23px;
	font-style: italic;
	line-height: 1.35;
}

.plain {
	max-width: var(--measure);
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.plain li {
	padding: 18px 0;
	border-top: 1px solid var(--hl-rule-soft);
	color: var(--hl-text-muted);
}

.plain li:last-child {
	border-bottom: 1px solid var(--hl-rule-soft);
}

.plain strong {
	display: block;
	margin-bottom: 2px;
	color: var(--hl-text);
	font-weight: 400;
	font-family: var(--hl-font-display);
	font-size: 23px;
	font-style: italic;
}

.aside {
	margin-top: 28px;
	margin-bottom: 0;
	color: var(--hl-text-muted);
	text-align: center;
	text-wrap: pretty;
}

.aside em {
	color: var(--hl-text);
	font-family: var(--hl-font-display);
	font-size: 23px;
}

.more {
	margin: 28px auto 0;
	text-align: center;
}

.beta {
	max-width: var(--measure);
	margin: 0 auto;
	padding: 40px 44px;
	border: 1px solid var(--hl-rule);
	border-radius: 14px;
	background: var(--hl-bg-raised);
	text-align: center;
}

.beta h2 {
	margin: 12px 0 16px;
	font-family: var(--hl-font-display);
	font-size: clamp(1.9rem, 4vw, 2.4rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.2;
}

.beta p {
	margin: 0 0 16px;
	color: var(--hl-text-muted);
	text-wrap: pretty;
}

.beta .pill {
	margin-top: 12px;
}

.caption {
	max-width: var(--measure);
	margin: 0 auto 14px;
	text-align: center;
}

.cards--pair {
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.faq {
	max-width: var(--measure);
	margin: 0 auto;
}

.faq details {
	border-top: 1px solid var(--hl-rule-soft);
}

.faq details:last-child {
	border-bottom: 1px solid var(--hl-rule-soft);
}

.faq summary {
	position: relative;
	padding: 20px 36px 20px 0;
	cursor: pointer;
	list-style: none;
	font-family: var(--hl-font-display);
	font-size: 24px;
	font-style: italic;
	line-height: 1.3;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: '+';
	position: absolute;
	right: 4px;
	top: 18px;
	color: var(--hl-accent);
	font-family: var(--hl-font-body);
	font-style: normal;
	font-size: 24px;
}

.faq details[open] summary::after {
	content: '–';
}

.faq p {
	margin: 0 0 14px;
	color: var(--hl-text-muted);
}

.faq details p:last-child {
	margin-bottom: 24px;
}

.faq strong {
	color: var(--hl-text);
	font-weight: 400;
}

.signup {
	margin-top: 28px;
	text-align: left;
}

.signup .label {
	display: block;
	margin-bottom: 10px;
}

.signup__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.signup input {
	flex: 1 1 240px;
	min-width: 0;
	height: 48px;
	padding: 0 18px;
	border: 1px solid var(--hl-rule);
	border-radius: 12px;
	color: var(--hl-text);
	background: var(--hl-bg-well);
	font: inherit;
}

.signup input::placeholder {
	color: var(--hl-text-faint);
}

.signup input:focus-visible {
	outline: 1px solid var(--hl-accent);
	outline-offset: 0;
	border-color: var(--hl-accent);
}

.beta .signup button {
	flex: 0 0 auto;
	margin-top: 0;
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

.signup button:disabled {
	opacity: 0.5;
	cursor: default;
}

.beta .signup__note {
	margin: 16px 0 0;
	color: var(--hl-text-faint);
	font-size: 16px;
}

.beta .signup--sent .signup__note {
	color: var(--hl-text);
}

/* ─── Long-form pages (the promise) ────────────────────────────────────────── */

.prose {
	max-width: var(--measure);
	margin: 0 auto;
	padding: 40px 0 96px;
}

.prose h1 {
	margin: 0 0 12px;
	font-family: var(--hl-font-display);
	font-size: clamp(2.1rem, 5vw, 3rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.15;
	text-wrap: balance;
}

.prose .lede {
	margin: 0 0 40px;
	color: var(--hl-text-muted);
}

.prose h2 {
	margin: 34px 0 6px;
	font-family: var(--hl-font-display);
	font-size: 25px;
	font-style: italic;
	font-weight: 400;
}

.prose p {
	margin: 0 0 14px;
	color: var(--hl-text-muted);
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */

footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 36px 0 48px;
	border-top: 1px solid var(--hl-rule-soft);
	color: var(--hl-text-faint);
	font-size: 16px;
	text-align: center;
}

footer p {
	margin: 0;
}

footer .return {
	color: var(--hl-text-muted);
	font-family: var(--hl-font-display);
	font-size: 21px;
	font-style: italic;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

@keyframes breathe {
	0%,
	100% {
		opacity: 0.35;
		transform: scale(0.85);
	}
	50% {
		opacity: 1;
		transform: scale(1.15);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero,
	.turn--breathing::before {
		animation: none;
	}
}

@media (max-width: 560px) {
	body {
		font-size: 18px;
	}

	.wrap {
		padding: 0 16px;
	}

	header {
		padding: 20px 0;
	}

	nav {
		gap: 18px;
	}

	nav .action:not(:last-child) {
		display: none;
	}

	.hero {
		padding: 44px 0 56px;
	}

	.page,
	.beta {
		padding: 28px 22px 30px;
	}

	section {
		padding-bottom: 64px;
	}

	.page {
		margin-bottom: 64px;
	}

	.cards--pair {
		grid-template-columns: 1fr;
	}

	.faq summary {
		font-size: 21px;
	}

	.signup button {
		width: 100%;
		justify-content: center;
	}

	.well {
		margin-bottom: 64px;
		padding: 56px 0;
	}

	.passage p,
	.turn--companion,
	.thread p {
		font-size: 21px;
	}
}
