/*
 * Revio — product showcase.
 *
 * BEM blocks, fluid sizes with clamp(), CSS grid. No framework, no build step.
 * 1. Tokens   2. Base   3. Layout   4. Components   5. Sections   6. Motion
 */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--accent: #c8f169;
	--on-accent: #0d1b1e;

	--bg: #f3f5f4;
	--surface: #fff;
	--soft: #e9eeec;
	--line: #dce3e0;
	--text: #0d1b1e;
	--muted: #526266;

	--hero: #0d1b1e;
	--hero-text: #f1f6f4;
	--hero-muted: #a3b5b1;
	--hero-line: #24363a;
	--hero-card: #13262a;

	--r-sm: 10px;
	--r-md: 14px;
	--r-lg: 16px;
	--r-xl: 24px;

	--font-heading: "Revio Heading", system-ui, sans-serif;
	--font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 24px);
	--section-gap: clamp(72px, 9vw, 112px);
	--header-height: 72px;

	--shadow-lg: 0 30px 60px -36px rgb(13 27 30 / 0.55);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
	margin: 0;
}

ul {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--text);
	outline-offset: 3px;
	border-radius: 4px;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 12px 18px;
	border-radius: var(--r-sm);
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 600;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

/* 3. Layout ---------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-top: clamp(64px, 8vw, 96px);
}

.section--wide-gap {
	padding-top: var(--section-gap);
}

.section--last {
	padding-bottom: clamp(64px, 8vw, 96px);
}

/* 4. Components ------------------------------------------------------------ */

/* Button */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: var(--r-sm);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn:active {
	transform: none;
}

.btn--accent {
	background: var(--accent);
	color: var(--on-accent);
}

.btn--accent:hover {
	box-shadow: 0 10px 24px -12px var(--accent);
}

.btn--ghost {
	border-color: var(--hero-line);
	color: var(--hero-text);
}

.btn--ghost:hover {
	border-color: var(--hero-muted);
}

.btn--small {
	min-height: 44px;
	padding: 0 18px;
	font-size: 15px;
}

.btn--large {
	min-height: 56px;
	padding: 0 28px;
	font-size: 17px;
}

.btn--block {
	display: flex;
	width: 100%;
}

.btn__icon {
	width: 18px;
	height: 18px;
	stroke-width: 2.2;
}

.btn__price {
	font-family: var(--font-mono);
}

/* Logo */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--hero-text);
	text-decoration: none;
}

.logo__mark {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: var(--r-sm);
	background: var(--accent);
	color: var(--on-accent);
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 800;
}

.logo__name {
	font-family: var(--font-heading);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.logo--footer .logo__mark {
	width: 32px;
	height: 32px;
}

/* Badge, pill, tags */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border: 1px solid var(--hero-line);
	border-radius: 99px;
	font-size: 13px;
	color: var(--hero-muted);
}

.badge__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}

.pill {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 99px;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.tags__item {
	padding: 3px 10px;
	border-radius: 99px;
	background: var(--soft);
	font-size: 12px;
	font-weight: 600;
}

/* Check list items */
.check {
	position: relative;
	padding-left: 26px;
}

.check::before {
	content: "";
	position: absolute;
	top: 0.35em;
	left: 0;
	width: 14px;
	height: 8px;
	border-bottom: 2.2px solid var(--accent);
	border-left: 2.2px solid var(--accent);
	transform: rotate(-45deg);
}

.check--dark::before {
	border-color: var(--text);
}

.ticks {
	display: grid;
	gap: 10px;
	margin-top: 18px;
}

.ticks__item {
	position: relative;
	padding-left: 34px;
}

.ticks__item::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Browser and phone frames for screenshots */
.browser {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--surface);
	box-shadow: 0 24px 48px -32px rgb(13 27 30 / 0.45);
}

.browser--dark {
	border-color: var(--hero-line);
	box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7);
}

.browser__bar {
	display: flex;
	gap: 6px;
	padding: 10px 12px;
	background: var(--soft);
}

.browser--dark .browser__bar {
	background: #1b2629;
}

.browser__bar span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--line);
}

.browser--dark .browser__bar span:nth-child(1) {
	background: #ff5f57;
}

.browser--dark .browser__bar span:nth-child(2) {
	background: #febc2e;
}

.browser--dark .browser__bar span:nth-child(3) {
	background: #28c840;
}

.browser__image {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: top;
}

.phone {
	overflow: hidden;
	border: 7px solid #000;
	border-radius: 30px;
	background: #000;
	box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.8);
}

.phone__image {
	width: 100%;
	aspect-ratio: 390 / 844;
	object-fit: cover;
	object-position: top;
	border-radius: 22px;
}

/* Section heading */
.section-head {
	max-width: 720px;
}

.section-head--wide {
	max-width: 780px;
}

.section-head__eyebrow {
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.section-head__eyebrow--light {
	color: var(--hero-muted);
}

.section-head__title {
	margin-top: 8px;
	font-family: var(--font-heading);
	font-size: clamp(32px, 4.4vw, 48px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.section-head__lead {
	margin-top: 14px;
	font-size: clamp(16px, 1.6vw, 18px);
	color: var(--muted);
	text-wrap: pretty;
}

.section-head__lead--light {
	color: var(--hero-muted);
}

/* 5. Sections -------------------------------------------------------------- */

/* Header */
.header {
	position: sticky;
	top: 0;
	z-index: 30;
	border-bottom: 1px solid var(--hero-line);
	background: var(--hero);
	color: var(--hero-text);
}

@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
	.header {
		background: color-mix(in srgb, var(--hero) 88%, transparent);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}
}

.header.is-scrolled {
	box-shadow: 0 10px 30px -18px rgb(0 0 0 / 0.6);
}

.header__inner {
	display: flex;
	align-items: center;
	gap: 12px 32px;
	min-height: var(--header-height);
}

.nav {
	flex: 1 1 auto;
}

.nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 26px;
	font-size: 15px;
	font-weight: 500;
}

.nav__link {
	position: relative;
	padding: 6px 0;
	color: var(--hero-text);
	text-decoration: none;
}

.nav__link::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current="true"]::after {
	transform: scaleX(1);
}

/* Language switch */
.lang {
	display: grid;
	flex: none;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	margin-left: auto;
	border: 1px solid var(--hero-line);
	border-radius: var(--r-sm);
	color: var(--hero-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s;
}

.lang:hover {
	border-color: var(--hero-muted);
}

.header__buy {
	flex: none;
	white-space: nowrap;
}

.header__burger {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--hero-line);
	border-radius: var(--r-sm);
	background: transparent;
	color: var(--hero-text);
	cursor: pointer;
}

.header__burger-lines,
.header__burger-lines::before,
.header__burger-lines::after {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.25s var(--ease), opacity 0.2s;
}

.header__burger-lines {
	position: relative;
}

.header__burger-lines::before,
.header__burger-lines::after {
	content: "";
	position: absolute;
	left: 0;
}

.header__burger-lines::before {
	top: -6px;
}

.header__burger-lines::after {
	top: 6px;
}

.header__burger[aria-expanded="true"] .header__burger-lines {
	background: transparent;
}

.header__burger[aria-expanded="true"] .header__burger-lines::before {
	transform: translateY(6px) rotate(45deg);
}

.header__burger[aria-expanded="true"] .header__burger-lines::after {
	transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 860px) {
	.header__inner {
		flex-wrap: wrap;
	}

	.nav {
		order: 4;
		flex-basis: 100%;
	}

	.nav__list {
		display: none;
		flex-direction: column;
		gap: 0;
		padding-bottom: 12px;
		border-top: 1px solid var(--hero-line);
	}

	.nav__list.is-open {
		display: flex;
	}

	.nav__link {
		display: flex;
		align-items: center;
		min-height: 52px;
		border-bottom: 1px solid var(--hero-line);
		font-family: var(--font-heading);
		font-size: 22px;
		font-weight: 700;
	}

	.nav__link::after {
		display: none;
	}

	.header__burger {
		display: grid;
	}
}

@media (max-width: 420px) {
	.btn__price {
		display: none;
	}
}

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	background: var(--hero);
	color: var(--hero-text);
}

.hero__glow {
	position: absolute;
	top: -220px;
	right: -200px;
	width: 760px;
	height: 760px;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
	pointer-events: none;
}

.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: center;
	gap: 48px 56px;
	padding-top: clamp(48px, 7vw, 72px);
}

.hero__title {
	margin-top: 22px;
	font-family: var(--font-heading);
	font-size: clamp(40px, 5.6vw, 64px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.hero__accent {
	color: var(--accent);
}

.hero__lead {
	max-width: 560px;
	margin-top: 22px;
	font-size: clamp(17px, 1.7vw, 19px);
	color: var(--hero-muted);
	text-wrap: pretty;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.hero__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 36px;
	font-size: 14px;
	color: var(--hero-muted);
}

.hero__visual {
	position: relative;
	padding-bottom: 40px;
}

.hero__phone {
	position: absolute;
	right: -10px;
	bottom: 0;
	width: 28%;
	border-width: 6px;
	border-radius: 22px;
}

.hero__phone .phone__image {
	border-radius: 16px;
}

@media (max-width: 960px) {
	.hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__visual {
		max-width: 680px;
	}

	.hero__phone {
		right: 0;
		width: 26%;
	}
}

/* Stats */
.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
	gap: 1px;
	margin-block: 48px 56px;
	overflow: hidden;
	border: 1px solid var(--hero-line);
	border-radius: var(--r-lg);
	background: var(--hero-line);
}

.stats__item {
	display: flex;
	flex-direction: column-reverse;
	padding: 20px 22px;
	background: var(--hero-card);
}

.stats__value {
	font-family: var(--font-mono);
	font-size: clamp(26px, 3vw, 30px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--accent);
}

.stats__label {
	margin-top: 2px;
	font-size: 13px;
	color: var(--hero-muted);
}

/* Demos */
.demos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
	gap: 40px 28px;
	margin-top: 40px;
}

.demo {
	position: relative;
}

.demo__shot {
	position: relative;
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.demo:hover .demo__shot,
.demo:focus-within .demo__shot {
	box-shadow: 0 36px 64px -32px rgb(13 27 30 / 0.55);
	transform: translateY(-6px);
}

.demo__new {
	position: absolute;
	top: 44px;
	left: 14px;
	padding: 4px 10px;
	border-radius: 99px;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 12px;
	font-weight: 700;
}

.demo__body {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px 20px;
	margin-top: 18px;
}

.demo__text {
	flex: 1 1 260px;
	min-width: 0;
}

.demo__title {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.demo__link {
	text-decoration: none;
}

/* The whole card opens the demo. */
.demo__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--r-lg);
}

.demo__link:focus-visible {
	outline: none;
}

.demo:has(.demo__link:focus-visible) .demo__shot {
	outline: 2px solid var(--text);
	outline-offset: 4px;
}

.demo__desc {
	margin-top: 4px;
	color: var(--muted);
}

.demo__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--text);
	border-radius: var(--r-sm);
	font-size: 14px;
	font-weight: 600;
	transition: background-color 0.2s, color 0.2s;
}

.demo__cta svg {
	width: 16px;
	height: 16px;
	stroke-width: 2.2;
}

.demo:hover .demo__cta {
	background: var(--text);
	color: var(--bg);
}

/* Spotlights */
.spotlights {
	display: grid;
	gap: clamp(48px, 7vw, 72px);
	margin-top: 48px;
}

.spotlight {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: 32px 56px;
}

.spotlight--reverse .spotlight__media {
	order: 2;
}

.spotlight__media {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-lg);
}

.spotlight__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: top;
}

.spotlight__title {
	margin-top: 14px;
	font-family: var(--font-heading);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.spotlight__text {
	margin-top: 12px;
	font-size: 17px;
	color: var(--muted);
}

@media (max-width: 900px) {
	.spotlight {
		grid-template-columns: minmax(0, 1fr);
	}

	.spotlight--reverse .spotlight__media {
		order: 0;
	}
}

/* Feature grid */
.features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
	gap: 16px;
	margin-top: 40px;
}

.feature {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--surface);
	transition: border-color 0.2s, transform 0.25s var(--ease);
}

.feature:hover {
	border-color: var(--text);
	transform: translateY(-2px);
}

.feature__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--r-md);
	background: var(--soft);
}

.feature__icon svg {
	width: 22px;
	height: 22px;
}

.feature__title {
	margin-top: 16px;
	font-family: var(--font-heading);
	font-size: 19px;
	font-weight: 700;
}

.feature__text {
	margin-top: 6px;
	font-size: 15px;
	color: var(--muted);
}

/* Pages gallery: 4 columns on desktop, a swipeable row on phones */
.gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	max-width: 1440px;
	margin: 40px auto 0;
	padding-inline: var(--gutter);
}

.shot__image {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: top;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	box-shadow: 0 20px 40px -30px rgb(13 27 30 / 0.5);
}

.shot__caption {
	margin-top: 10px;
	font-weight: 600;
}

@media (max-width: 1100px) {
	.gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.gallery {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}

	.gallery::-webkit-scrollbar {
		display: none;
	}

	.gallery__item {
		flex: 0 0 82%;
		scroll-snap-align: start;
	}
}

/* Mobile band */
.mobile {
	margin-top: var(--section-gap);
	overflow: hidden;
	background: var(--hero);
	color: var(--hero-text);
}

.mobile__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
	align-items: end;
	gap: 40px 56px;
	padding-top: clamp(56px, 8vw, 88px);
}

.mobile__text {
	align-self: center;
	padding-bottom: clamp(24px, 8vw, 88px);
}

.mobile__phones {
	display: flex;
	justify-content: center;
	gap: clamp(10px, 2vw, 18px);
}

.phone--side {
	flex: 0 1 220px;
	margin-bottom: -60px;
	border-radius: 28px;
}

.phone--center {
	flex: 0 1 240px;
	margin-bottom: -20px;
}

@media (max-width: 860px) {
	.mobile__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.mobile__text {
		padding-bottom: 0;
	}
}

/* Brand customizer */
.brand {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: 40px 64px;
}

@media (max-width: 860px) {
	.brand {
		grid-template-columns: minmax(0, 1fr);
	}
}

.swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.swatches__item {
	width: 48px;
	height: 48px;
	padding: 0;
	border: 3px solid transparent;
	border-radius: 50%;
	background: var(--swatch);
	box-shadow: inset 0 0 0 3px var(--bg);
	cursor: pointer;
	transition: transform 0.2s var(--ease), border-color 0.2s;
}

.swatches__item:hover {
	transform: scale(1.06);
}

.swatches__item[aria-pressed="true"] {
	border-color: var(--text);
}

.segmented {
	display: inline-flex;
	margin-top: 16px;
	padding: 4px;
	border-radius: var(--r-md);
	background: var(--soft);
}

.segmented__item {
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--r-sm);
	background: transparent;
	color: var(--muted);
	font-weight: 600;
	cursor: pointer;
}

.segmented__item[aria-pressed="true"] {
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 1px 2px rgb(13 27 30 / 0.12);
}

.preview {
	--p-bg: #fff;
	--p-text: #0d1b1e;
	--p-row: #f3f5f4;
	padding: clamp(18px, 3vw, 26px);
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--p-bg);
	color: var(--p-text);
	box-shadow: 0 30px 60px -36px rgb(13 27 30 / 0.6);
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.preview.is-dark {
	--p-bg: #0d1b1e;
	--p-text: #f1f6f4;
	--p-row: #1a2f33;
	border-color: #0d1b1e;
}

.preview__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 700;
}

.preview__link {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 500;
	text-decoration: underline;
}

.preview__row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 12px;
	padding: 12px;
	border-radius: 12px;
	background: var(--p-row);
	transition: background-color 0.3s;
}

.preview__rank {
	font-family: var(--font-mono);
	font-weight: 700;
	opacity: 0.6;
}

.preview__logo {
	flex: none;
	width: 56px;
	height: 38px;
	border-radius: 8px;
	background: var(--logo);
}

.preview__name {
	flex: 1;
	min-width: 0;
	font-weight: 600;
}

.preview__name span {
	display: block;
	overflow: hidden;
	font-size: 13px;
	font-weight: 400;
	white-space: nowrap;
	text-overflow: ellipsis;
	opacity: 0.7;
}

.preview__score,
.preview__button {
	background: var(--accent);
	color: var(--on-accent);
	transition: background-color 0.3s;
}

.preview__score {
	padding: 5px 9px;
	border-radius: 8px;
	font-family: var(--font-mono);
	font-weight: 700;
}

.preview__button {
	display: grid;
	place-items: center;
	min-height: 50px;
	margin-top: 16px;
	border-radius: 10px;
	font-weight: 700;
}

/* Buy */
.buy {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-xl);
	background: var(--surface);
}

.buy__included,
.buy__price {
	padding: clamp(24px, 4vw, 44px);
}

.buy__title {
	margin-top: 8px;
	font-family: var(--font-heading);
	font-size: clamp(30px, 3.6vw, 40px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.buy__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 12px 24px;
	margin-top: 24px;
}

.buy__price {
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--hero);
	color: var(--hero-text);
}

.buy__license,
.buy__note,
.buy__secure {
	color: var(--hero-muted);
}

.buy__license {
	font-size: 14px;
}

.buy__amount {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-top: 6px;
	color: var(--hero-muted);
}

.buy__sum {
	font-family: var(--font-heading);
	font-size: clamp(56px, 7vw, 72px);
	font-weight: 800;
	line-height: 1;
	color: var(--accent);
}

.buy__note {
	margin: 14px 0 24px;
}

.buy__secure {
	margin-top: 12px;
	font-size: 13px;
	text-align: center;
}

@media (max-width: 860px) {
	.buy {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* FAQ */
.faq {
	display: grid;
	gap: 10px;
	max-width: 960px;
	margin-top: 28px;
}

.faq__item {
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	transition: border-color 0.2s;
}

.faq__item[open] {
	border-color: var(--text);
}

.faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	font-size: 17px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.faq__question::-webkit-details-marker {
	display: none;
}

.faq__question::after {
	content: "+";
	display: grid;
	flex: none;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--soft);
	font-size: 18px;
	font-weight: 500;
	transition: transform 0.25s var(--ease), background-color 0.2s;
}

.faq__item[open] > .faq__question::after {
	background: var(--accent);
	transform: rotate(45deg);
}

.faq__answer {
	padding: 0 22px 20px;
	color: var(--muted);
}

/* Footer */
.footer {
	background: var(--hero);
	color: var(--hero-muted);
	font-size: 14px;
}

.footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 56px;
}

.footer__about {
	margin-top: 10px;
}

.footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.footer__link {
	color: var(--hero-text);
	text-decoration: none;
}

.footer__link:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* 6. Motion ---------------------------------------------------------------- */

/* Sections fade in once while scrolling (only when JS is on and motion is allowed). */
@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
	}

	.js [data-reveal].is-visible {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
