/*
 * The pay page has no build step, so it takes a copy of the few tokens of
 * web/src/styles/app.css that it uses (DESIGN.md). Its origin has no saved
 * theme, so it follows the device: dark, or light when the device asks.
 */
@font-face {
	font-family: "Archivo Variable";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
}

:root {
	color-scheme: dark;
	--background: #16181c;
	--foreground: #e7e9ea;
	--card: #202327;
	--muted-foreground: #a3a8ae;
	--primary: #e7e9ea;
	--primary-foreground: #000000;
	--primary-hover: #ffffff;
	--border: #393d42;
	--rule: rgb(231 233 234 / 0.5);
	--ring: #e7e9ea;
}

@media (prefers-color-scheme: light) {
	:root {
		color-scheme: light;
		--background: #f4f5f7;
		--foreground: #0f1630;
		--card: #ffffff;
		--muted-foreground: #566074;
		--primary: #0f1630;
		--primary-foreground: #ffffff;
		--primary-hover: #1c2547;
		--border: rgb(15 22 48 / 0.1);
		--rule: #0f1630;
		--ring: #0f1630;
	}
}

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

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

body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: "Archivo Variable", system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	font-stretch: 100%;
	word-spacing: 0.08em;
	-webkit-font-smoothing: antialiased;
}

button {
	font: inherit;
	word-spacing: inherit;
}

:focus-visible {
	outline: 2px solid var(--ring);
	outline-offset: 2px;
}

.frame {
	width: 100%;
	max-width: 30rem;
	margin-inline: auto;
	padding-inline: 1rem;
}

header.frame {
	display: flex;
	align-items: center;
	height: 3.5rem;
}

.logo {
	height: 1.75rem;
	width: auto;
}

main.frame {
	padding-top: 1.5rem;
	padding-bottom: 3rem;
}

.card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.5rem 1.25rem;
	border-radius: 12px;
	background: var(--card);
}

.card p {
	margin: 0;
}

.title {
	margin: 0;
	font-size: 2rem;
	font-stretch: 74%;
	font-weight: 760;
	letter-spacing: -0.005em;
	word-spacing: 0.12em;
	line-height: 1;
}

.facts {
	margin: 0;
	display: flex;
	flex-direction: column;
}

.facts > div {
	padding-block: 0.75rem;
	border-bottom: 1px solid var(--border);
}

.facts dt {
	color: var(--muted-foreground);
	font-size: 0.875rem;
}

.facts dd {
	margin: 0;
	overflow-wrap: anywhere;
}

#plan-name {
	font-size: 1.0625rem;
	font-stretch: 92%;
	font-weight: 640;
	word-spacing: 0.12em;
}

.note {
	font-weight: 600;
}

.quiet {
	color: var(--muted-foreground);
}

.small {
	font-size: 0.875rem;
}

/* The one action: a solid pill, 44 px high at least (design §12.3). */
.action {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.25rem;
	border: 0;
	border-radius: 9999px;
	background: var(--primary);
	color: var(--primary-foreground);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 150ms,
		transform 150ms;
}

.action:hover {
	background: var(--primary-hover);
}

@media (prefers-reduced-motion: no-preference) {
	.action:active {
		transform: scale(0.97);
	}
}

.back {
	align-self: center;
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	color: var(--foreground);
	text-underline-offset: 4px;
}

/* Last, so it wins over the display of .card and the other parts. */
[hidden] {
	display: none;
}
