/* Arabella App Landing. Everything is scoped under body.aal-page so that any
   leftover global CSS loses on specificity and nothing leaks out of this page. */

@font-face {
	font-family: "AAL Fraunces";
	src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "AAL Jost";
	src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

body.aal-page {
	--aal-forest: #12392b;
	--aal-forest-deep: #0c2b20;
	--aal-orange: #e59c3f;
	--aal-orange-text: #a3540a;
	--aal-cream: #fbf5e9;
	--aal-ink: #17332a;
	--aal-ink-soft: #46584f;
	--aal-on-forest: #f8f1e2;
	--aal-on-forest-soft: #cdd8cd;
	--aal-gutter: clamp(20px, 5vw, 72px);
	--aal-phone-width: clamp(250px, 35vh, 310px);

	margin: 0 !important;
	padding: 0 !important;
	background: var(--aal-cream) !important;
	color: var(--aal-ink);
	font-family: "AAL Jost", "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 18px;
	line-height: 1.5;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}

body.aal-page .aal,
body.aal-page .aal *,
body.aal-page .aal *::before,
body.aal-page .aal *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	float: none;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
}

body.aal-page .aal img,
body.aal-page .aal svg {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 0;
	box-shadow: none;
	transform: none;
}

body.aal-page .aal ul {
	list-style: none;
}

body.aal-page .aal {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	background: var(--aal-cream);
}

/* Hero */

body.aal-page .aal-hero {
	display: grid;
	flex: 1 0 auto;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
	column-gap: clamp(32px, 5vw, 88px);
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: clamp(28px, 5vh, 56px) var(--aal-gutter) 0;
}

body.aal-page .aal-intro {
	align-self: center;
	padding-bottom: clamp(32px, 6vh, 64px);
}

body.aal-page .aal .aal-logo {
	width: clamp(170px, 15vw, 214px);
	margin-bottom: clamp(32px, 6vh, 60px);
}

body.aal-page .aal-label {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
	color: var(--aal-orange-text);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.3;
	text-transform: uppercase;
}

body.aal-page .aal-label::before {
	content: "";
	flex: none;
	width: 34px;
	height: 2px;
	background: var(--aal-orange);
}

body.aal-page .aal-title {
	max-width: 13em;
	color: var(--aal-forest);
	font-family: "AAL Fraunces", Georgia, "Times New Roman", serif;
	font-size: clamp(42px, 4.7vw, 72px);
	font-weight: 560;
	letter-spacing: -0.02em;
	line-height: 1.04;
	text-wrap: balance;
}

body.aal-page .aal-copy {
	max-width: 30em;
	margin-top: clamp(18px, 3vh, 26px);
	color: var(--aal-ink-soft);
	font-size: clamp(18px, 1.5vw, 21px);
	line-height: 1.5;
}

/* Store badges: equal heights, as both stores' guidelines ask. */

body.aal-page .aal-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: clamp(26px, 4vh, 38px);
}

body.aal-page .aal-badge {
	display: block;
	border-radius: 10px;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.aal-page .aal-badge:hover {
	box-shadow: 0 10px 22px -10px rgba(12, 43, 32, 0.55);
	transform: translateY(-2px);
}

body.aal-page .aal .aal-badge img {
	width: auto;
	max-width: none;
	height: 56px;
}

body.aal-page .aal-back {
	display: inline-block;
	margin-top: clamp(20px, 3vh, 28px);
	padding: 4px 0;
	border-bottom: 1px solid rgba(18, 57, 43, 0.35);
	color: var(--aal-forest);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color 0.18s ease, color 0.18s ease;
}

body.aal-page .aal-back:hover {
	border-bottom-color: var(--aal-orange-text);
	color: var(--aal-orange-text);
}

body.aal-page .aal a:focus-visible {
	outline: 3px solid var(--aal-forest);
	outline-offset: 4px;
	border-radius: 6px;
}

/* Arch and phone */

body.aal-page .aal-stage {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: end;
	justify-self: center;
	width: 100%;
	max-width: 540px;
	margin-top: 16px;
	padding: clamp(66px, 9vh, 92px) 0 clamp(32px, 5vh, 48px);
	border-radius: 999px 999px 0 0;
	background: radial-gradient(120% 70% at 50% 18%, #1c5240 0%, var(--aal-forest) 62%);
}

/* Fine orange line echoing the arch, sitting just inside its edge. */
body.aal-page .aal-stage::before {
	content: "";
	position: absolute;
	inset: 10px 10px 0;
	border: 1px solid rgba(229, 156, 63, 0.5);
	border-bottom: 0;
	border-radius: 999px 999px 0 0;
	pointer-events: none;
}

body.aal-page .aal .aal-sprig {
	position: absolute;
	top: clamp(22px, 3.2vh, 30px);
	left: 50%;
	width: 40px;
	opacity: 0.85;
	transform: translateX(-50%);
}

body.aal-page .aal-phone {
	position: relative;
	z-index: 1;
	width: var(--aal-phone-width);
	padding: calc(var(--aal-phone-width) * 0.03);
	border-radius: calc(var(--aal-phone-width) * 0.155);
	background: linear-gradient(145deg, #3a3f3d 0%, #151817 28%, #0c0e0d 70%, #2b2f2d 100%);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.16),
		0 2px 4px rgba(0, 0, 0, 0.3),
		0 34px 60px -22px rgba(0, 0, 0, 0.72),
		0 14px 28px -14px rgba(0, 0, 0, 0.5);
	animation: aal-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

body.aal-page .aal-phone__key {
	position: absolute;
	display: block;
	width: 3px;
	border-radius: 2px;
	background: #2a2e2c;
}

body.aal-page .aal-phone__key--action {
	top: 16%;
	left: -2px;
	height: 5%;
}

body.aal-page .aal-phone__key--volume {
	top: 24%;
	left: -2px;
	height: 12%;
}

body.aal-page .aal-phone__key--power {
	top: 26%;
	right: -2px;
	height: 16%;
}

body.aal-page .aal-phone__screen {
	overflow: hidden;
	border-radius: calc(var(--aal-phone-width) * 0.125);
	background: #000;
}

/* Width-driven, so the screen always takes the screenshot's own aspect ratio. */
body.aal-page .aal .aal-phone__screen > img {
	width: 100%;
	height: auto;
}

/* Shown only until the owner's real screenshot is added: no invented app UI. */
body.aal-page .aal-phone__pending {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 9 / 19.5;
	background: linear-gradient(180deg, #1c5240 0%, var(--aal-forest-deep) 100%);
}

body.aal-page .aal .aal-phone__pending img {
	width: 34%;
	opacity: 0.9;
}

@keyframes aal-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Features band: same green as the arch, so the arch rises out of it. */

body.aal-page .aal-features {
	flex: none;
	background: var(--aal-forest);
	color: var(--aal-on-forest);
}

body.aal-page .aal-features__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px clamp(20px, 3vw, 48px);
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: clamp(26px, 4vh, 38px) var(--aal-gutter);
	border-top: 1px solid rgba(248, 241, 226, 0.14);
}

body.aal-page .aal .aal-feature__icon {
	width: 26px;
	height: 26px;
	margin-bottom: 10px;
	fill: none;
	stroke: var(--aal-orange);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
}

body.aal-page .aal-feature__title {
	color: var(--aal-on-forest);
	font-family: "AAL Fraunces", Georgia, "Times New Roman", serif;
	font-size: 19px;
	font-weight: 520;
	line-height: 1.25;
}

body.aal-page .aal-feature__text {
	margin-top: 4px;
	color: var(--aal-on-forest-soft);
	font-size: 15.5px;
	line-height: 1.4;
}

body.aal-page .aal-legal {
	flex: none;
	padding: 14px var(--aal-gutter);
	background: var(--aal-forest-deep);
}

body.aal-page .aal-legal p {
	max-width: 1176px;
	margin: 0 auto;
	color: var(--aal-on-forest-soft);
	font-size: 12px;
	line-height: 1.5;
}

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

/* Tablet and phone: single centered column, download first. */

@media (max-width: 900px) {
	body.aal-page {
		--aal-phone-width: clamp(206px, 62vw, 280px);
	}

	body.aal-page .aal-hero {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 24px;
		text-align: center;
	}

	body.aal-page .aal-intro {
		align-self: auto;
		padding-bottom: 32px;
	}

	body.aal-page .aal .aal-logo {
		width: clamp(132px, 38vw, 176px);
		margin: 0 auto 22px;
	}

	body.aal-page .aal-label {
		justify-content: center;
		margin-bottom: 12px;
		font-size: 13px;
	}

	body.aal-page .aal-label::before {
		display: none;
	}

	body.aal-page .aal-title {
		max-width: 11.5em;
		margin: 0 auto;
		font-size: clamp(34px, 9.6vw, 56px);
		line-height: 1.07;
	}

	body.aal-page .aal-copy {
		margin: 14px auto 0;
		font-size: clamp(17px, 2.6vw, 20px);
		line-height: 1.45;
	}

	body.aal-page .aal-badges {
		justify-content: center;
		gap: 12px;
		margin-top: 22px;
	}

	/* Two badges and a gap always fit the content width, up to the desktop size. */
	body.aal-page .aal .aal-badge img {
		height: min(56px, calc((100vw - 2 * var(--aal-gutter) - 12px) / 6.36));
	}

	body.aal-page .aal-back {
		margin-top: 16px;
	}

	body.aal-page .aal-stage {
		max-width: 500px;
		margin-top: 0;
		padding: 74px 0 34px;
	}

	body.aal-page .aal .aal-sprig {
		top: 24px;
		width: 36px;
	}

	body.aal-page .aal-features__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 18px;
		padding: 26px var(--aal-gutter) 28px;
	}

	body.aal-page .aal-feature__title {
		font-size: 18px;
	}

	body.aal-page .aal-feature__text {
		font-size: 15px;
	}
}

/* Narrowest phones: stack the badges so they stay a comfortable size to tap. */

@media (max-width: 359px) {
	body.aal-page .aal-badges {
		flex-direction: column;
		align-items: center;
	}

	body.aal-page .aal .aal-badge img {
		height: 54px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.aal-page .aal-phone {
		animation: none;
	}

	body.aal-page .aal-badge,
	body.aal-page .aal-back {
		transition: none;
	}

	body.aal-page .aal-badge:hover {
		transform: none;
	}
}
