/* Everglow marketing site */

:root {
	color-scheme: dark;
	--bg: #0c0907;
	--surface: #15100c;
	--surface-2: #1c1611;
	--line: rgba(246, 234, 216, 0.1);
	--line-strong: rgba(246, 234, 216, 0.18);
	--text: #f6ead8;
	--muted: #b3a28c;
	--faint: #84755f;
	--amber: #f4a24c;
	--amber-soft: rgba(244, 162, 76, 0.14);
	--bezel: #0a0a0b;
	--rim: #c8c6cc;
	--radius: 18px;
	--shell: 1120px;
	--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.55 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: inherit;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.022em;
	line-height: 1.08;
	margin: 0;
}

p {
	margin: 0;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 3px;
	border-radius: 6px;
}

.shell {
	width: min(var(--shell), 100% - 32px);
	margin-inline: auto;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(12, 9, 7, 0.72);
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	backdrop-filter: saturate(160%) blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s;
}

.site-header.is-scrolled {
	border-bottom-color: var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 60px;
	gap: 16px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-weight: 600;
	font-size: 18px;
	letter-spacing: -0.01em;
}

.brand img {
	width: 30px;
	height: 30px;
	border-radius: 7px;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 26px;
	font-size: 15px;
}

.site-nav a {
	color: var(--muted);
	text-decoration: none;
	transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: var(--text);
}

.site-nav .button {
	color: #1a1108;
}

/* Buttons */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--text);
	color: #1a1108;
	font: 600 15px/1 var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s, background 0.2s, opacity 0.2s;
}

.button:hover {
	background: #fff;
}

.button:active {
	transform: scale(0.97);
}

.button:disabled {
	opacity: 0.6;
	cursor: default;
}

.button--large {
	min-height: 52px;
	padding: 0 26px;
	font-size: 17px;
}

.button svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Hero */

.hero {
	position: relative;
	padding: 72px 0 96px;
	text-align: center;
	isolation: isolate;
}

.hero__glow {
	position: absolute;
	inset: -60px 0 0;
	z-index: -1;
	pointer-events: none;
}

.hero__glow span {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.4s ease;
}

.hero__glow [data-glow="day"] {
	background: radial-gradient(60% 46% at 50% 58%, rgba(255, 196, 132, 0.2), transparent 70%);
}

.hero__glow [data-glow="evening"] {
	background: radial-gradient(60% 46% at 50% 58%, rgba(240, 120, 62, 0.26), transparent 70%);
}

.hero__glow [data-glow="night"] {
	background: radial-gradient(52% 40% at 50% 60%, rgba(160, 92, 32, 0.12), transparent 70%);
}

.hero[data-mode="day"] [data-glow="day"],
.hero[data-mode="evening"] [data-glow="evening"],
.hero[data-mode="night"] [data-glow="night"] {
	opacity: 1;
}

.eyebrow {
	display: inline-block;
	margin-bottom: 18px;
	color: var(--amber);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero h1 {
	font-size: clamp(40px, 7vw, 76px);
	letter-spacing: -0.035em;
}

.hero h1 span {
	color: var(--muted);
}

.hero__lede {
	max-width: 560px;
	margin: 22px auto 0;
	color: var(--muted);
	font-size: clamp(18px, 2.2vw, 21px);
}

.hero__cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: 34px;
}

.fine-print {
	color: var(--faint);
	font-size: 14px;
}

/* iPad */

.ipad {
	position: relative;
	padding: clamp(8px, 1.6%, 18px);
	border-radius: clamp(18px, 3.4%, 38px);
	background: var(--bezel);
	box-shadow:
		0 0 0 clamp(2px, 0.25vw, 3px) var(--rim),
		0 40px 80px -30px rgba(0, 0, 0, 0.85),
		0 24px 120px -40px rgba(244, 162, 76, 0.18);
}

.ipad__screen {
	position: relative;
	aspect-ratio: 1800 / 1250;
	overflow: hidden;
	border-radius: clamp(10px, 2%, 22px);
	background: #000;
}

.ipad__screen img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero .ipad {
	width: min(960px, 100%);
	margin: 28px auto 0;
}

.hero .ipad__screen img {
	opacity: 0;
	transition: opacity 1.2s ease;
}

.hero .ipad__screen img.is-active {
	opacity: 1;
}

/* Mode switcher */

.modes {
	display: inline-flex;
	gap: 4px;
	margin-top: 56px;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
}

.modes button {
	min-width: 92px;
	padding: 8px 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	font: 500 15px/1.2 var(--font);
	cursor: pointer;
	transition: background 0.3s, color 0.3s;
}

.modes button:hover {
	color: var(--text);
}

.modes button[aria-pressed="true"] {
	background: rgba(246, 234, 216, 0.1);
	color: var(--text);
}

.modes__caption {
	min-height: 1.6em;
	margin-top: 14px;
	color: var(--muted);
	font-size: 15px;
}

/* Sections */

.section {
	padding: 112px 0;
}

.section + .section {
	border-top: 1px solid var(--line);
}

.section__head {
	max-width: 640px;
	margin: 0 auto 64px;
	text-align: center;
}

.section__head h2,
.split h2 {
	font-size: clamp(32px, 4.6vw, 48px);
}

.section__head p,
.split p {
	margin-top: 18px;
	color: var(--muted);
	font-size: 19px;
}

.split {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	align-items: center;
	gap: clamp(32px, 6vw, 88px);
}

.split + .split {
	margin-top: 120px;
}

.split--flip > :first-child {
	order: 2;
}

.split ul {
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
}

.split li {
	position: relative;
	padding: 10px 0 10px 22px;
	border-top: 1px solid var(--line);
	font-size: 16px;
}

.split li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 20px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--amber);
	box-shadow: 0 0 10px rgba(244, 162, 76, 0.6);
}

/* Details grid */

.details {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 40px;
}

.detail {
	padding: 26px 0 30px;
	border-top: 1px solid var(--line);
}

.detail h3 {
	font-size: 19px;
	letter-spacing: -0.01em;
}

.detail p {
	margin-top: 8px;
	color: var(--muted);
	font-size: 16px;
}

.pro-tag {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 7px;
	border-radius: 6px;
	background: var(--amber-soft);
	color: var(--amber);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	vertical-align: 3px;
	text-transform: uppercase;
}

/* Privacy band */

.privacy-band {
	text-align: center;
}

.privacy-band h2 {
	font-size: clamp(36px, 5.6vw, 60px);
	letter-spacing: -0.03em;
}

.privacy-band p {
	max-width: 620px;
	margin: 22px auto 0;
	color: var(--muted);
	font-size: 19px;
}

.pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 34px;
	padding: 0;
	list-style: none;
}

.pills li {
	padding: 8px 16px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--text);
	font-size: 15px;
}

.text-link {
	display: inline-block;
	margin-top: 30px;
	color: var(--amber);
	font-weight: 500;
	text-decoration: none;
}

.text-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Pricing */

.plans {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	max-width: 860px;
	margin: 0 auto;
}

.plan {
	padding: 34px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.plan--pro {
	position: relative;
	border-color: rgba(244, 162, 76, 0.35);
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(244, 162, 76, 0.12), transparent 60%),
		var(--surface);
}

.plan h3 {
	font-size: 22px;
}

.plan__price {
	margin-top: 10px;
	font-family: var(--font-display);
	font-size: 40px;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.plan__price small {
	margin-left: 4px;
	color: var(--muted);
	font-family: var(--font);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
}

.plan__note {
	margin-top: 6px;
	color: var(--muted);
	font-size: 15px;
}

.plan ul {
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.plan li {
	position: relative;
	padding: 9px 0 9px 26px;
	border-top: 1px solid var(--line);
	font-size: 16px;
}

.plan li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 17px;
	width: 10px;
	height: 6px;
	border-left: 2px solid var(--amber);
	border-bottom: 2px solid var(--amber);
	transform: rotate(-45deg);
}

.plans__foot {
	margin-top: 28px;
	color: var(--faint);
	font-size: 15px;
	text-align: center;
}

/* Final CTA */

.closing {
	text-align: center;
}

.closing img {
	width: 96px;
	height: 96px;
	margin: 0 auto 28px;
	border-radius: 22px;
	box-shadow: 0 20px 60px -10px rgba(244, 140, 70, 0.35);
}

.closing h2 {
	font-size: clamp(34px, 5vw, 52px);
}

.closing p {
	margin-top: 16px;
	color: var(--muted);
	font-size: 19px;
}

.closing .button {
	margin-top: 32px;
}

.closing .fine-print {
	margin-top: 14px;
	font-size: 14px;
}

/* Footer */

.site-footer {
	padding: 36px 0 48px;
	border-top: 1px solid var(--line);
	color: var(--faint);
	font-size: 14px;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.site-footer nav {
	display: flex;
	gap: 22px;
}

.site-footer a {
	color: var(--muted);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--text);
}

/* Secondary pages */

.page {
	padding: 72px 0 112px;
}

.page__intro {
	max-width: 720px;
	margin: 0 auto 48px;
	text-align: center;
}

.page__intro h1 {
	font-size: clamp(38px, 6vw, 60px);
	letter-spacing: -0.03em;
}

.page__intro p {
	margin-top: 16px;
	color: var(--muted);
	font-size: 19px;
}

.surface {
	padding: clamp(24px, 4vw, 44px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

/* Legal prose */

.prose {
	max-width: 720px;
	margin: 0 auto;
}

.prose .updated {
	color: var(--faint);
	font-size: 15px;
}

.prose h2 {
	margin: 40px 0 12px;
	font-size: 22px;
	letter-spacing: -0.012em;
}

.prose p,
.prose li {
	color: var(--muted);
}

.prose p + p {
	margin-top: 14px;
}

.prose ul {
	margin: 12px 0 0;
	padding-left: 20px;
}

.prose li + li {
	margin-top: 8px;
}

.prose strong {
	color: var(--text);
	font-weight: 600;
}

.prose a {
	color: var(--amber);
	text-underline-offset: 3px;
}

.summary {
	margin: 28px 0 8px;
	padding: 22px 24px;
	border: 1px solid rgba(244, 162, 76, 0.3);
	border-radius: 14px;
	background: var(--amber-soft);
}

.summary p {
	color: var(--text);
}

/* Support */

.support-layout {
	display: grid;
	grid-template-columns: 1fr 1.7fr;
	gap: clamp(28px, 5vw, 56px);
	max-width: 1000px;
	margin: 0 auto;
}

.support-note h2 {
	font-size: 22px;
	letter-spacing: -0.012em;
}

.support-note p {
	margin-top: 12px;
	color: var(--muted);
	font-size: 16px;
}

.support-note p + h2 {
	margin-top: 32px;
}

.support-note a {
	color: var(--amber);
	text-underline-offset: 3px;
}

.support-form {
	display: grid;
	gap: 18px;
}

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

.form-field {
	display: grid;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
}

.form-field small {
	margin-left: 4px;
	color: var(--faint);
	font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: var(--surface-2);
	color: var(--text);
	font: 16px/1.4 var(--font);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
	background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
}

.form-field textarea {
	resize: vertical;
	min-height: 160px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
	color: var(--faint);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	border-color: rgba(244, 162, 76, 0.7);
	box-shadow: 0 0 0 4px rgba(244, 162, 76, 0.15);
}

.form-field--hidden {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-help {
	color: var(--faint);
	font-size: 14px;
}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.form-status {
	color: var(--muted);
	font-size: 15px;
}

.form-status[data-state="success"] {
	color: #9fd8a4;
}

.form-status[data-state="error"] {
	color: #f19a8c;
}

.form-status a {
	color: inherit;
}

/* FAQ */

.faq {
	max-width: 760px;
	margin: 96px auto 0;
}

.faq > h2 {
	margin-bottom: 24px;
	font-size: clamp(28px, 4vw, 36px);
	text-align: center;
}

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

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

.faq summary {
	position: relative;
	padding: 20px 36px 20px 0;
	font-size: 17px;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}

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

.faq summary::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 26px;
	width: 8px;
	height: 8px;
	border-right: 1.5px solid var(--muted);
	border-bottom: 1.5px solid var(--muted);
	transform: rotate(45deg);
	transition: transform 0.25s;
}

.faq details[open] summary::after {
	transform: translateY(4px) rotate(-135deg);
}

.faq details p {
	padding: 0 36px 22px 0;
	color: var(--muted);
	font-size: 16px;
}

/* Reveal on scroll */

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Responsive */

@media (max-width: 900px) {
	.split,
	.split--flip {
		grid-template-columns: 1fr;
	}

	.split--flip > :first-child {
		order: 0;
	}

	.split + .split {
		margin-top: 88px;
	}

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

	.support-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}

	.site-nav {
		gap: 18px;
	}

	.site-nav .nav-optional {
		display: none;
	}

	.hero {
		padding: 48px 0 72px;
	}

	.modes {
		margin-top: 40px;
	}

	.modes button {
		min-width: 0;
		padding: 8px 14px;
	}

	.section {
		padding: 80px 0;
	}

	.section__head {
		margin-bottom: 44px;
	}

	.details,
	.plans,
	.form-grid {
		grid-template-columns: 1fr;
	}

	.plan {
		padding: 26px;
	}

	.page {
		padding: 48px 0 80px;
	}

	.faq {
		margin-top: 72px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}
