/*
 * App-link fallback page – layout. Colours and fonts come from brand.css, which scripts/build-app-links.mjs generates
 * from @platform-it/towernet-design (uiColors light/dark, font stacks, @font-face of Montserrat / Noto Sans SC).
 * WCAG 2.1 AA: button #e60000 / white (4.8:1), text #404040 on white, muted text #5c5c5c; dark scheme from uiColors.dark.
 * Brand red #ff0000 only for the accent bar (area without text).
 */

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

[hidden] {
	display: none !important;
}

html {
	font-family: var(--fs-font-sans);
	line-height: var(--fs-line-height-copy);
	color: var(--fs-ui-text);
	background: var(--fs-ui-background);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

:lang(zh) {
	font-family: var(--fs-font-chinese);
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
	border-top: 0.375rem solid var(--fs-red);
}

.card {
	width: 100%;
	max-width: 34rem;
}

.logo {
	display: block;
	width: 12.5rem;
	max-width: 70%;
	height: auto;
	margin-bottom: 2.5rem;
}

h1 {
	margin: 0 0 1rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: var(--fs-line-height-headline);
	text-transform: uppercase;
	overflow-wrap: anywhere;
	hyphens: auto;
}

h2 {
	margin: 2rem 0 0.75rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: var(--fs-line-height-copy);
}

p {
	margin: 0;
}

.stores ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.store-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.75rem 1.25rem;
	border-radius: 0.375rem;
	background: var(--fs-ui-primary);
	color: var(--fs-ui-on-primary);
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.store-button:hover {
	background: var(--fs-ui-primary-hover);
}

.store-button:active {
	background: var(--fs-ui-primary-active);
}

.store-button:focus-visible {
	outline: 0.1875rem solid var(--fs-ui-primary-text);
	outline-offset: 0.1875rem;
}

.soon {
	padding: 0.75rem 1.25rem;
	border: 1px dashed var(--fs-ui-icon);
	border-radius: 0.375rem;
	color: var(--fs-ui-muted-text);
	text-align: center;
}

footer {
	width: 100%;
	max-width: 34rem;
	margin-top: 3rem;
	font-size: 0.875rem;
	color: var(--fs-ui-muted-text);
}

@media (min-width: 40rem) {
	h1 {
		font-size: 1.75rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.store-button {
		transition: background-color 0.15s ease-in-out;
	}
}

@media (forced-colors: active) {
	.store-button {
		border: 1px solid ButtonText;
	}
}
