/* Superlift: shared tokens, type and pieces used on every page.
   Values come from the Paper file "Superlift". */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
	font-family: 'Inter Tight';
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url('/fonts/inter-tight-latin.woff2') format('woff2');
}

:root {
	--ink: #000;
	--ink-2: #5f6470;
	--ink-3: #8a8f9b;
	--ink-soft: #3a3d45;
	--surface: #f4f5f7;
	--line: #e6e8ee;
	--accent: #ff593a;
	--accent-soft: #ffede6;
	--accent-ink: #d63f1c;
	--danger: #c8321b;
	--danger-ink: #7a1f10;
	--danger-soft: #fff0ec;
	--shadow-cool: 30 40 110;
	--font-display: 'Inter Tight', system-ui, sans-serif;
	--font-ui: 'Inter', system-ui, sans-serif;
}

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

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

body {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-synthesis: none;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
p {
	margin: 0;
}

:focus-visible {
	outline: 3px solid rgb(255 89 58 / 0.45);
	outline-offset: 3px;
}

[hidden] {
	display: none !important;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 22px;
	line-height: 26px;
	letter-spacing: -0.04em;
}

.logo img {
	width: 30px;
	height: 30px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding-inline: 24px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-family: var(--font-ui);
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
	white-space: nowrap;
	cursor: pointer;
	transition:
		transform 120ms ease-out,
		background-color 160ms ease-out;
}

.btn:active {
	transform: scale(0.98);
}

.btn--dark {
	background: var(--ink);
	color: #fff;
	box-shadow: 0 8px 20px rgb(0 0 0 / 0.18);
}

.btn--ghost {
	background: rgb(255 255 255 / 0.7);
	border-color: rgb(0 0 0 / 0.1);
	color: var(--ink);
}

@media (hover: hover) {
	.btn--dark:hover {
		background: #1d1f24;
	}

	.btn--ghost:hover {
		background: #fff;
	}
}

/* Product shots, exported from Paper at 2x. Each export stops where its
   frame in the design is cropped, so every container crops at that line. */
.phone {
	width: 348px;
	height: auto;
	filter: drop-shadow(0 40px 40px rgb(var(--shadow-cool) / 0.2));
}

/* Floating cards that sit beside the workout phone. */

.float-card {
	border: 1px solid rgb(255 255 255 / 0.9);
	background: rgb(255 255 255 / 0.92);
	box-shadow: 0 24px 48px rgb(var(--shadow-cool) / 0.16);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

.card-progress {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 256px;
	padding: 18px;
	border-radius: 22px;
}

.card-progress__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.card-progress__label {
	font-size: 13px;
	font-weight: 500;
	line-height: 16px;
	color: var(--ink-2);
}

.card-progress__delta {
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	color: var(--accent-ink);
}

.card-progress__value {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 34px;
	line-height: 36px;
	letter-spacing: -0.03em;
	font-feature-settings: 'tnum';
}

.card-progress__weeks {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	font-weight: 500;
	line-height: 14px;
	color: var(--ink-3);
}

.card-cheer {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 300px;
	padding: 14px 16px;
	border-radius: 20px;
}

.avatar {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 20px;
	background: linear-gradient(in oklab 135deg, #ffb49a 0%, #ff7a8a 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
}

.card-cheer__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 1px;
}

.card-cheer__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
}

.card-cheer__sub {
	font-size: 12px;
	line-height: 16px;
	color: var(--ink-2);
}

.card-cheer__heart {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 15px;
	background: #ffe8ec;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 1ms !important;
		transition-duration: 1ms !important;
	}

	html {
		scroll-behavior: auto;
	}
}
