@font-face {
	font-family: "Manrope";
	src: url("/fonts/Manrope.ttf") format("truetype");
	font-weight: 200 800;
	font-display: block;
}

:root {
	--paper: #f2f3f7;
	--card: #ffffff;
	--line: #e2e4eb;
	--ink: #12141a;
	--ink2: #4e525d;
	--ink3: #8e919a;
	--accent: #4b57f0;
	--accent-on-dark: #a3abff;
	--hero-tint: #e1e4ff;
	--safe-top: env(safe-area-inset-top, 0px);
	--safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

html,
body {
	margin: 0;
	height: 100%;
	background: var(--paper);
	color: var(--ink);
	font-family: "Manrope", -apple-system, system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	overscroll-behavior: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

[hidden] {
	display: none !important;
}

.paywall {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: calc(var(--safe-top) + 8px) 24px calc(var(--safe-bottom) + 8px);
	background: linear-gradient(180deg, var(--hero-tint) 0%, var(--paper) 50%);
}

.close {
	position: absolute;
	top: calc(var(--safe-top) + 8px);
	right: 16px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(18, 20, 26, 0.07);
	display: grid;
	place-items: center;
	z-index: 2;
}

.close svg,
.sheet-close svg {
	width: 14px;
	height: 14px;
	stroke: var(--ink2);
	stroke-width: 3;
	stroke-linecap: round;
	fill: none;
}

.pitch {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-top: 28px;
}

.hero {
	width: 100%;
	max-width: 340px;
	max-height: min(250px, 27vh);
	object-fit: contain;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 12px;
	margin-top: 12px;
	border-radius: 9px;
	background: var(--ink);
	color: var(--accent-on-dark);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1px;
}

.badge svg {
	width: 12px;
	height: 12px;
	fill: currentColor;
}

.headline {
	margin: 12px 0 0;
	font-size: clamp(28px, 8.2vw, 32px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.8px;
}

.description {
	margin: 10px 0 12px;
	font-size: 15.5px;
	line-height: 1.4;
	font-weight: 600;
	color: var(--ink2);
}

.ticks {
	list-style: none;
	margin: 18px 0 14px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-self: center;
	text-align: left;
}

.ticks li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	font-weight: 700;
}

.ticks li::before {
	content: "";
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 9px;
	background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23a3abff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.price-hint {
	margin: 4px 0;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink2);
	text-align: center;
}

.price-hint.compact {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink3);
}

.purchase {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cta {
	position: relative;
	min-height: 56px;
}

.express {
	min-height: 56px;
}

.start {
	width: 100%;
	height: 56px;
	border-radius: 18px;
	background: var(--accent);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 8px 14px rgba(75, 87, 240, 0.35);
	transition: transform 0.15s ease;
}

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

.start svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}

.cta-skeleton {
	position: absolute;
	inset: 0;
	border-radius: 18px;
	background: linear-gradient(90deg, #e6e8f2 0%, #f3f4fa 50%, #e6e8f2 100%);
	background-size: 200% 100%;
	animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
	to {
		background-position: -200% 0;
	}
}

.other-methods {
	height: 40px;
	font-size: 15px;
	font-weight: 800;
	color: var(--accent);
}

.footer {
	display: flex;
	justify-content: center;
	gap: 22px;
	padding-top: 2px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink3);
}

.sheet {
	position: fixed;
	inset: 0;
	z-index: 10;
	pointer-events: none;
}

.sheet.open {
	pointer-events: auto;
}

.sheet-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 20, 26, 0.38);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.sheet.open .sheet-backdrop {
	opacity: 1;
}

.sheet-panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: calc(100% - var(--safe-top) - 24px);
	display: flex;
	flex-direction: column;
	background: var(--card);
	border-radius: 24px 24px 0 0;
	transform: translateY(100%);
	transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.sheet.open .sheet-panel {
	transform: none;
}

.sheet-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px 8px;
}

.sheet-header h2 {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
}

.sheet-close {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(18, 20, 26, 0.07);
	display: grid;
	place-items: center;
}

.sheet-body {
	position: relative;
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 8px 20px calc(var(--safe-bottom) + 20px);
	min-height: 320px;
	-webkit-user-select: text;
	user-select: text;
}

.spinner {
	position: absolute;
	top: 120px;
	left: 50%;
	width: 32px;
	height: 32px;
	margin-left: -16px;
	border-radius: 50%;
	border: 3px solid var(--line);
	border-top-color: var(--accent);
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.notice {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 100%;
	padding: calc(var(--safe-top) + 40px) 32px calc(var(--safe-bottom) + 24px);
	text-align: center;
}

.notice h1 {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.6px;
}

.notice p {
	margin: 0;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--ink2);
}

.notice .start {
	margin-top: 12px;
}
