/* ---------------------------------------------------------------------------
   Cinemate. Design tokens.

   Every value below is mapped from the app's own Color.swift, using the role
   the app gives it rather than just the hex. Token names follow the app's
   naming so the two cannot drift apart.
   --------------------------------------------------------------------------- */

:root {
	/* Ground: the app's BackgroundGradient, start to end. */
	--cm-ground-start: #561977;
	--cm-ground-end: #090809;

	/* Surfaces. _4D1256 is the app's card background. */
	--cm-surface: #4D1256;
	--cm-surface-alt: #252B44;
	--cm-surface-deep: #310E43;
	--cm-tile-fade: #10001A;

	/* Purples. _8343A6 is lightButtonText, so it sits on white, not behind it. */
	--cm-purple: #8343A6;
	--cm-purple-mid: #43145D;
	--cm-glow: #D88AFF;

	/* Text ramp, named as the app names it. */
	--cm-text: #EBEEFD;
	--cm-body: #B6BCD8;
	--cm-meta: #AAB0CA;
	--cm-soft: #9098C3;
	--cm-subtitle: #D2B2D3;
	--cm-disclosure: #7681A6;

	--cm-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

	--cm-step--2: clamp(0.7rem, 0.69rem + 0.05vw, 0.74rem);
	--cm-step--1: clamp(0.83rem, 0.81rem + 0.1vw, 0.89rem);
	--cm-step-0: clamp(1rem, 0.97rem + 0.16vw, 1.1rem);
	--cm-step-1: clamp(1.19rem, 1.11rem + 0.38vw, 1.42rem);
	--cm-step-2: clamp(1.5rem, 1.3rem + 0.95vw, 2.05rem);
	--cm-step-3: clamp(2rem, 1.5rem + 2.4vw, 3.4rem);
	--cm-step-4: clamp(2.8rem, 1.6rem + 6vw, 7rem);

	--cm-space-2xs: 4px;
	--cm-space-xs: 8px;
	--cm-space-sm: 16px;
	--cm-space-md: 24px;
	--cm-space-lg: 40px;
	--cm-space-xl: 64px;
	--cm-space-2xl: 96px;

	--cm-radius-sm: 10px;
	--cm-radius-md: 18px;
	--cm-radius-lg: 28px;
	--cm-radius-pill: 999px;

	--cm-measure: 54ch;
	--cm-wide: 1280px;
	--cm-gutter: clamp(20px, 5vw, 64px);
	--cm-bar-h: 88px;
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */

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

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

body {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--cm-ground-end);
	color: var(--cm-body);
	font-family: var(--cm-font);
	font-size: var(--cm-step-0);
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: inherit;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--cm-text);
	text-wrap: balance;
	letter-spacing: -0.03em;
	line-height: 1.03;
}

p {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--cm-glow);
	outline-offset: 3px;
	border-radius: var(--cm-radius-sm);
}

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

.skip-link:focus {
	position: fixed !important;
	top: var(--cm-space-sm);
	left: var(--cm-space-sm);
	z-index: 999;
	width: auto !important;
	height: auto !important;
	padding: 10px 18px;
	overflow: visible !important;
	clip-path: none !important;
	white-space: normal !important;
	border-radius: var(--cm-radius-pill);
	background: var(--cm-text);
	color: var(--cm-purple);
	font-weight: 600;
	text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Layout primitives
   --------------------------------------------------------------------------- */

.cm-shell {
	max-width: var(--cm-wide);
	margin-inline: auto;
	padding-inline: var(--cm-gutter);
}

.cm-section {
	padding-block: clamp(var(--cm-space-xl), 6vw, var(--cm-space-2xl));
}

.cm-eyebrow {
	font-size: var(--cm-step--2);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cm-glow);
}

/* ---------------------------------------------------------------------------
   Buttons. The app's primary button is a light pill with purple text, so the
   site's primary CTA is the same rather than a purple fill.
   --------------------------------------------------------------------------- */

.cm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--cm-space-xs);
	padding: 14px 26px;
	border-radius: var(--cm-radius-pill);
	border: 1px solid transparent;
	font-size: var(--cm-step--1);
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: box-shadow 0.26s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cm-btn--primary {
	background: #fff;
	color: var(--cm-purple);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--cm-glow) 55%, transparent);
}

.cm-btn--primary:hover {
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--cm-glow) 26%, transparent),
		0 0 34px -4px color-mix(in srgb, var(--cm-glow) 62%, transparent);
}

.cm-btn--ghost {
	border-color: color-mix(in srgb, var(--cm-subtitle) 40%, transparent);
	color: var(--cm-text);
}

.cm-btn--ghost:hover {
	border-color: var(--cm-glow);
	color: var(--cm-glow);
	box-shadow: inset 0 0 22px -6px color-mix(in srgb, var(--cm-glow) 40%, transparent);
}

/* ---------------------------------------------------------------------------
   Masthead
   --------------------------------------------------------------------------- */

.cm-masthead {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 60;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.cm-masthead.is-stuck {
	background: rgba(9, 8, 9, 0.76);
	background: color-mix(in srgb, var(--cm-ground-end) 76%, transparent);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	border-bottom-color: color-mix(in srgb, var(--cm-purple) 28%, transparent);
}

/* The bar floats, so inner pages need their own clearance. */
body:not(.home) main {
	padding-top: var(--cm-bar-h);
}

/* Clear the WordPress admin bar for logged in users. */
body.admin-bar .cm-masthead {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .cm-masthead {
		top: 46px;
	}
}

.cm-masthead__in {
	display: flex;
	align-items: center;
	gap: var(--cm-space-md);
	min-height: var(--cm-bar-h);
	max-width: var(--cm-wide);
	margin-inline: auto;
	padding: 0 var(--cm-gutter);
}

.cm-wordmark {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
	text-decoration: none;
}

.cm-wordmark img {
	width: 28px;
}

.cm-wordmark span {
	font-size: var(--cm-step-0);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--cm-text);
}

.cm-menu {
	display: flex;
	align-items: center;
	gap: var(--cm-space-lg);
}

.cm-nav {
	display: flex;
	gap: var(--cm-space-md);
}

.cm-nav a {
	position: relative;
	font-size: var(--cm-step--1);
	font-weight: 500;
	color: var(--cm-subtitle);
	text-decoration: none;
	transition: color 0.18s ease;
}

.cm-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -5px;
	height: 1px;
	background: var(--cm-glow);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cm-nav a:hover {
	color: var(--cm-text);
}

.cm-nav a:hover::after {
	transform: scaleX(1);
}

/* The toggle only exists at the mobile breakpoint. */
.cm-burger {
	display: none;
	position: relative;
	z-index: 2;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cm-text);
	cursor: pointer;
}

.cm-burger__bars,
.cm-burger__bars::before,
.cm-burger__bars::after {
	position: absolute;
	left: 50%;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentcolor;
	transform: translateX(-50%);
	transition: transform 0.24s ease, opacity 0.18s ease;
}

.cm-burger__bars {
	top: 50%;
	margin-top: -1px;
}

.cm-burger__bars::before {
	content: "";
	top: -7px;
}

.cm-burger__bars::after {
	content: "";
	top: 7px;
}

.is-open .cm-burger__bars {
	background: transparent;
}

.is-open .cm-burger__bars::before {
	top: 0;
	transform: translateX(-50%) rotate(45deg);
}

.is-open .cm-burger__bars::after {
	top: 0;
	transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 880px) {
	.has-js .cm-burger {
		display: block;
		order: 3;
	}

	/* Only collapse the menu once the script is running, so a no-JS visitor
	   keeps a usable inline nav rather than an unopenable panel. */
	.has-js .cm-menu {
		position: fixed;
		inset: 0 0 auto;
		z-index: 1;
		flex-direction: column;
		align-items: stretch;
		gap: var(--cm-space-md);
		padding: calc(var(--cm-bar-h) + var(--cm-space-sm)) var(--cm-gutter) var(--cm-space-lg);
		background: rgba(9, 8, 9, 0.96);
		background: color-mix(in srgb, var(--cm-ground-end) 96%, transparent);
		-webkit-backdrop-filter: blur(20px);
		backdrop-filter: blur(20px);
		border-bottom: 1px solid color-mix(in srgb, var(--cm-purple) 30%, transparent);
		max-height: 100vh;
		max-height: 100dvh;
		overflow-y: auto;
		overscroll-behavior: contain;
		display: none;
	}

	.has-js .is-open .cm-menu {
		display: flex;
	}

	.cm-menu .cm-nav {
		flex-direction: column;
		gap: 0;
	}

	.cm-menu .cm-nav a {
		padding: var(--cm-space-sm) 0;
		border-bottom: 1px solid color-mix(in srgb, var(--cm-subtitle) 16%, transparent);
		font-size: var(--cm-step-1);
		font-weight: 600;
		color: var(--cm-text);
	}

	.cm-menu .cm-nav a::after {
		display: none;
	}

	.cm-menu__cta {
		justify-content: center;
		margin-top: var(--cm-space-xs);
	}

	.cm-no-scroll {
		overflow: hidden;
	}
}

/* Below the panel breakpoint the header CTA would crowd the toggle. */
@media (max-width: 420px) {
	.cm-wordmark span {
		font-size: var(--cm-step--1);
	}

	.cm-masthead__in {
		gap: var(--cm-space-xs);
	}
}

/* ---------------------------------------------------------------------------
   Hero.

   The background is the app's own BackgroundGradient, start to end, running
   top to bottom exactly as View+Extension and the launch screen apply it.
   Opening the app and opening the site should look like the same product.
   --------------------------------------------------------------------------- */

.cm-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: calc(var(--cm-bar-h) + clamp(var(--cm-space-lg), 4vw, var(--cm-space-xl))) clamp(var(--cm-space-xl), 6vw, 116px);
}

.cm-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: linear-gradient(180deg, var(--cm-ground-start) 0%, var(--cm-ground-end) 100%);
}

.cm-hero__in {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
	gap: clamp(var(--cm-space-lg), 5vw, var(--cm-space-xl));
	align-items: center;
}

@media (max-width: 940px) {
	.cm-hero__in {
		grid-template-columns: 1fr;
		gap: var(--cm-space-xl);
	}
}

/* The icon, at the scale an app's own mark deserves. */
.cm-hero__light {
	display: grid;
	place-items: center;
	order: 2;
}

.cm-hero__icon {
	width: clamp(190px, 25vw, 320px);
	height: auto;
	border-radius: 23%;
	filter: drop-shadow(0 24px 60px color-mix(in srgb, var(--cm-ground-end) 70%, transparent));
}

@media (max-width: 940px) {
	.cm-hero__light {
		order: 0;
		justify-items: start;
	}

	.cm-hero__icon {
		width: clamp(140px, 34vw, 200px);
	}
}

/* Three beats. Each word steps up in light, ending on the payoff, so the
   colour is a crescendo rather than an arbitrary tinted word. */
.cm-hero__title {
	margin-top: var(--cm-space-md);
	font-size: var(--cm-step-4);
	font-weight: 800;
	line-height: 0.94;
}

.cm-hero__title b {
	display: block;
	font-weight: inherit;
}

.cm-hero__title b:nth-child(1) {
	color: color-mix(in srgb, var(--cm-text) 74%, var(--cm-surface-deep));
}

.cm-hero__title b:nth-child(2) {
	color: color-mix(in srgb, var(--cm-text) 88%, var(--cm-surface-deep));
}

.cm-hero__title b:nth-child(3) {
	color: var(--cm-glow);
	text-shadow: 0 0 44px color-mix(in srgb, var(--cm-glow) 46%, transparent);
}

.cm-hero__strap {
	margin-top: var(--cm-space-md);
	font-size: var(--cm-step-1);
	font-weight: 600;
	color: var(--cm-subtitle);
}

.cm-hero__lede {
	margin-top: var(--cm-space-sm);
	max-width: var(--cm-measure);
	color: var(--cm-body);
}

.cm-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cm-space-sm);
	margin-top: var(--cm-space-lg);
}

.cm-hero__note {
	margin-top: var(--cm-space-sm);
	font-size: var(--cm-step--1);
	color: var(--cm-soft);
}

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

/* ---------------------------------------------------------------------------
   How it works. Six filters, so the rail is lit progressively down its length:
   the further through the questions, the narrower and brighter the result.
   Numbering is used because the app defines these as an ordered sequence.
   --------------------------------------------------------------------------- */

[id] {
	scroll-margin-top: calc(var(--cm-bar-h) + var(--cm-space-md));
}

.cm-how {
	position: relative;
	background: linear-gradient(180deg, var(--cm-ground-end), color-mix(in srgb, var(--cm-surface-deep) 34%, var(--cm-ground-end)) 62%, var(--cm-ground-end));
}

.cm-how__heading {
	margin-top: var(--cm-space-sm);
	max-width: 22ch;
	font-size: var(--cm-step-3);
	font-weight: 800;
}

.cm-how__intro {
	margin-top: var(--cm-space-md);
	max-width: var(--cm-measure);
	color: var(--cm-body);
}

.cm-rail {
	margin-top: clamp(var(--cm-space-lg), 5vw, var(--cm-space-xl));
	display: grid;
	gap: 0;
}

@media (min-width: 1200px) {
	.cm-rail {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--cm-space-xl);
	}

	.cm-rail__item:nth-last-child(-n + 2) {
		border-bottom: 1px solid color-mix(in srgb, var(--cm-subtitle) 14%, transparent);
	}
}

.cm-rail__item {
	position: relative;
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	gap: clamp(var(--cm-space-sm), 3vw, var(--cm-space-lg));
	padding: var(--cm-space-md) 0;
	border-top: 1px solid color-mix(in srgb, var(--cm-subtitle) 14%, transparent);
}

.cm-rail__item:last-child {
	border-bottom: 1px solid color-mix(in srgb, var(--cm-subtitle) 14%, transparent);
}

/* The rail itself, brightening as the filters narrow. */
.cm-rail__item {
	color: color-mix(in srgb, var(--cm-glow) 55%, var(--cm-subtitle));
}

.cm-rail__num {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 3.1rem;
	height: 3.1rem;
	border-radius: 50%;
	background: var(--cm-ground-end);
	box-shadow: inset 0 0 0 1px currentcolor;
	color: currentcolor;
	font-size: var(--cm-step--1);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
	.cm-rail__item:hover .cm-rail__num {
		background: var(--cm-glow);
		color: var(--cm-ground-end);
		box-shadow: 0 0 34px -4px color-mix(in srgb, var(--cm-glow) 70%, transparent);
	}
}

.cm-rail__body {
	padding-top: 0.35rem;
}

.cm-rail__title {
	font-size: var(--cm-step-1);
	font-weight: 700;
	letter-spacing: -0.015em;
}

.cm-rail__text {
	margin-top: var(--cm-space-xs);
	max-width: 58ch;
	color: var(--cm-body);
}

.cm-how__outcome {
	margin-top: var(--cm-space-lg);
	font-size: var(--cm-step-1);
	font-weight: 600;
	color: var(--cm-subtitle);
}

@media (max-width: 1199px) {
	.cm-rail__item {
		grid-template-columns: 1fr;
		gap: var(--cm-space-sm);
	}

	.cm-rail__num {
		width: 2.6rem;
		height: 2.6rem;
	}

	.cm-rail__body {
		padding-top: 0;
	}
}


/* ---------------------------------------------------------------------------
   No JavaScript. The bar stops being fixed so a taller wrapped nav can never
   cover the hero, and the dead toggle is removed rather than left focusable.
   --------------------------------------------------------------------------- */

html:not(.has-js) .cm-masthead {
	position: static;
}

html:not(.has-js) .cm-burger {
	display: none;
}

html:not(.has-js) .cm-hero {
	padding-block-start: clamp(var(--cm-space-lg), 4vw, var(--cm-space-xl));
}

html:not(.has-js) body:not(.home) main {
	padding-top: 0;
}

@media (max-width: 880px) {
	html:not(.has-js) .cm-masthead__in {
		flex-wrap: wrap;
		row-gap: var(--cm-space-xs);
		padding-block: var(--cm-space-xs);
	}

	html:not(.has-js) .cm-menu {
		flex-wrap: wrap;
		gap: var(--cm-space-sm);
	}

	html:not(.has-js) .cm-nav__list {
		flex-wrap: wrap;
		gap: var(--cm-space-sm);
	}
}

/* ---------------------------------------------------------------------------
   Nav list. wp_nav_menu emits li wrappers, so the list is styled rather than
   the anchors alone, and the hand written fallback uses the same structure.
   --------------------------------------------------------------------------- */

.cm-nav__list {
	display: flex;
	gap: var(--cm-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cm-nav__list li {
	display: flex;
}

@media (max-width: 880px) {
	.has-js .cm-menu .cm-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.has-js .cm-menu .cm-nav__list li {
		display: block;
	}

	.has-js .cm-menu .cm-nav__list a {
		display: block;
	}
}

/* ---------------------------------------------------------------------------
   Editor output on inner pages.
   --------------------------------------------------------------------------- */

.cm-page {
	padding-top: calc(var(--cm-bar-h) + clamp(var(--cm-space-lg), 4vw, var(--cm-space-xl)));
}

.cm-page__meta {
	color: var(--cm-soft);
	font-size: var(--cm-step--1);
}

.cm-prose {
	max-width: var(--cm-measure);
}

.cm-prose h1 {
	font-size: var(--cm-step-3);
	font-weight: 800;
	color: var(--cm-text);
}

.cm-prose h2 {
	margin-top: var(--cm-space-xl);
	font-size: var(--cm-step-1);
	font-weight: 700;
	color: var(--cm-text);
}

.cm-prose h3 {
	margin-top: var(--cm-space-lg);
	font-size: var(--cm-step-0);
	font-weight: 700;
	color: var(--cm-text);
}

.cm-prose strong {
	color: var(--cm-text);
}

.cm-prose p {
	margin-block: var(--cm-space-md);
}

.cm-prose ul,
.cm-prose ol {
	margin-block: var(--cm-space-md);
	padding-left: 1.4em;
}

.cm-prose ul {
	list-style: disc;
}

.cm-prose ol {
	list-style: decimal;
}

.cm-prose li + li {
	margin-top: var(--cm-space-xs);
}

.cm-prose a {
	color: var(--cm-glow);
	text-underline-offset: 3px;
}

.cm-features__heading {
	margin-top: var(--cm-space-sm);
	max-width: 20ch;
	font-size: var(--cm-step-3);
	font-weight: 800;
}

.cm-cards {
	margin-top: clamp(var(--cm-space-lg), 5vw, var(--cm-space-xl));
	display: grid;
	gap: var(--cm-space-md);
	padding: 0;
	list-style: none;
}

.cm-card {
	padding: var(--cm-space-md);
	border: 1px solid color-mix(in srgb, var(--cm-subtitle) 14%, transparent);
	border-radius: var(--cm-radius-md);
	background: color-mix(in srgb, var(--cm-surface-deep) 22%, transparent);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.cm-card__label {
	font-size: var(--cm-step--2);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--cm-glow) 70%, var(--cm-soft));
}

.cm-card__title {
	margin-top: var(--cm-space-xs);
	font-size: var(--cm-step-1);
	font-weight: 700;
	letter-spacing: -0.015em;
}

.cm-card__text {
	margin-top: var(--cm-space-xs);
	max-width: var(--cm-measure);
	color: var(--cm-body);
}

@media (hover: hover) {
	.cm-card:hover {
		border-color: color-mix(in srgb, var(--cm-glow) 40%, transparent);
		background: color-mix(in srgb, var(--cm-surface-deep) 38%, transparent);
	}
}

@media (max-width: 899px) {
	.cm-cards {
		max-width: 640px;
	}
}

@media (min-width: 900px) {
	.cm-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--cm-space-md) var(--cm-space-lg);
	}
}

.cm-plans__heading {
	margin-top: var(--cm-space-sm);
	max-width: 20ch;
	font-size: var(--cm-step-3);
	font-weight: 800;
}

.cm-plans__intro {
	margin-top: var(--cm-space-md);
	max-width: var(--cm-measure);
	color: var(--cm-body);
}

.cm-plans__grid {
	margin-top: clamp(var(--cm-space-lg), 5vw, var(--cm-space-xl));
	display: grid;
	gap: var(--cm-space-md);
	max-width: 640px;
}

.cm-plan {
	padding: var(--cm-space-lg);
	border: 1px solid color-mix(in srgb, var(--cm-subtitle) 14%, transparent);
	border-radius: var(--cm-radius-lg);
	background: color-mix(in srgb, var(--cm-surface-deep) 22%, transparent);
}

.cm-plan--featured {
	border-color: color-mix(in srgb, var(--cm-glow) 42%, transparent);
	background: color-mix(in srgb, var(--cm-surface-deep) 42%, transparent);
}

.cm-plan__name {
	font-size: var(--cm-step-1);
	font-weight: 700;
}

.cm-plan__price {
	margin-top: var(--cm-space-2xs);
	font-size: var(--cm-step-2);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--cm-glow);
}

.cm-plan__note {
	margin-top: var(--cm-space-2xs);
	color: var(--cm-soft);
	font-size: var(--cm-step--1);
}

.cm-plan__list {
	margin-top: var(--cm-space-md);
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--cm-space-xs);
}

.cm-plan__item {
	position: relative;
	padding-left: var(--cm-space-md);
	color: var(--cm-body);
}

.cm-plan__item::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--cm-glow);
}

.cm-plans__foot {
	margin-top: var(--cm-space-lg);
	color: var(--cm-soft);
	font-size: var(--cm-step--1);
}

@media (min-width: 900px) {
	.cm-plans__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--cm-space-lg);
		max-width: none;
	}
}

.cm-plans {
	background: linear-gradient(180deg, var(--cm-ground-end) 62%, var(--cm-ground-start) 100%);
}

.cm-get {
	background: linear-gradient(180deg, var(--cm-ground-start) 0%, var(--cm-ground-end) 100%);
	text-align: center;
}

.cm-get__in {
	display: grid;
	justify-items: center;
}

.cm-get__heading {
	max-width: 18ch;
	font-size: var(--cm-step-3);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.cm-get__lede {
	margin-top: var(--cm-space-md);
	max-width: 48ch;
	color: var(--cm-body);
}

.cm-get__cta {
	margin-top: var(--cm-space-lg);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--cm-space-sm);
}

.cm-get__cta .is-pending {
	cursor: default;
	background: color-mix(in srgb, var(--cm-text) 20%, transparent);
	color: var(--cm-text);
	box-shadow: none;
}

.cm-get__note {
	margin-top: var(--cm-space-md);
	color: var(--cm-soft);
	font-size: var(--cm-step--1);
}

.cm-footer {
	flex-shrink: 0;
	padding-block: var(--cm-space-xl);
	border-top: 1px solid color-mix(in srgb, var(--cm-subtitle) 14%, transparent);
	background: var(--cm-ground-end);
}

.cm-footer__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--cm-space-md) var(--cm-space-lg);
}

.cm-footer__mark {
	margin-right: auto;
}

.cm-footer__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cm-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cm-footer__list a {
	font-size: var(--cm-step--1);
	color: var(--cm-body);
	text-decoration: none;
	transition: color 0.18s ease;
}

.cm-footer__list a:hover {
	color: var(--cm-glow);
}

.cm-footer__legal {
	flex-basis: 100%;
	color: var(--cm-soft);
	font-size: var(--cm-step--2);
}

/* Reveal on scroll. The class is applied by JavaScript, never by the markup, so
   the page is fully visible if the script does not run. */
.cm-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
	will-change: opacity, transform;
}

.cm-reveal.is-revealed {
	opacity: 1;
	transform: none;
	will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
	.cm-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ---------------------------------------------------------------------------
   Inner pages. The header carries the app gradient so a policy page still
   reads as Cinemate rather than a bare document.
   --------------------------------------------------------------------------- */

.cm-masthead-page {
	position: relative;
	padding-block: calc(var(--cm-bar-h) + clamp(var(--cm-space-lg), 4vw, var(--cm-space-xl))) clamp(var(--cm-space-lg), 4vw, var(--cm-space-xl));
	background: linear-gradient(180deg, var(--cm-ground-start) 0%, var(--cm-ground-end) 100%);
}

.cm-masthead-page__in {
	max-width: 46rem;
}

.cm-masthead-page__title {
	margin: 0;
	font-size: var(--cm-step-3);
	font-weight: 800;
	line-height: 1.05;
	color: var(--cm-text);
}

.cm-masthead-page__meta {
	margin-top: var(--cm-space-sm);
	margin-bottom: 0;
	color: var(--cm-subtitle);
	font-size: var(--cm-step--1);
}

.cm-masthead-page__lede {
	margin-top: var(--cm-space-md);
	margin-bottom: 0;
	max-width: var(--cm-measure);
	color: var(--cm-body);
	font-size: var(--cm-step-1);
	line-height: 1.5;
}

/* Support */

.cm-support__in {
	display: grid;
	gap: clamp(var(--cm-space-lg), 4vw, var(--cm-space-xl));
}

@media (min-width: 900px) {
	.cm-support__in {
		grid-template-columns: minmax(0, 1fr) 340px;
		align-items: start;
	}
}

.cm-faq {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid color-mix(in srgb, var(--cm-subtitle) 16%, transparent);
}

.cm-faq__item {
	border-bottom: 1px solid color-mix(in srgb, var(--cm-subtitle) 16%, transparent);
}

.cm-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--cm-space-md);
	padding-block: var(--cm-space-md);
	cursor: pointer;
	list-style: none;
	color: var(--cm-text);
	font-size: var(--cm-step-0);
	font-weight: 600;
	transition: color 0.2s ease;
}

.cm-faq__q::-webkit-details-marker {
	display: none;
}

.cm-faq__q:focus-visible {
	outline: 2px solid var(--cm-glow);
	outline-offset: 4px;
}

@media (hover: hover) {
	.cm-faq__q:hover {
		color: var(--cm-glow);
	}
}

.cm-faq__mark {
	position: relative;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

.cm-faq__mark::before,
.cm-faq__mark::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: var(--cm-glow);
	transform: translateY(-50%);
	transition: transform 0.24s ease, opacity 0.24s ease;
}

.cm-faq__mark::after {
	transform: translateY(-50%) rotate(90deg);
}

.cm-faq__details[open] .cm-faq__mark::after {
	transform: translateY(-50%) rotate(0deg);
	opacity: 0;
}

.cm-faq__a {
	padding-bottom: var(--cm-space-md);
	max-width: var(--cm-measure);
	color: var(--cm-body);
}

.cm-faq__a p {
	margin-block: 0 var(--cm-space-sm);
}

.cm-faq__a p:last-child {
	margin-bottom: 0;
}

.cm-support__foot {
	margin-top: var(--cm-space-xl);
	max-width: var(--cm-measure);
}

.cm-support__foot-heading {
	margin: 0 0 var(--cm-space-sm);
	font-size: var(--cm-step-1);
	font-weight: 700;
	color: var(--cm-text);
}

.cm-contact {
	padding: var(--cm-space-lg);
	border: 1px solid color-mix(in srgb, var(--cm-glow) 26%, transparent);
	border-radius: var(--cm-radius-lg);
	background: linear-gradient(180deg, color-mix(in srgb, var(--cm-surface) 46%, var(--cm-ground-end)) 0%, var(--cm-ground-end) 100%);
}

.cm-contact__heading {
	margin: 0 0 var(--cm-space-sm);
	font-size: var(--cm-step-1);
	font-weight: 700;
	color: var(--cm-text);
}

.cm-contact__body {
	margin: 0;
	color: var(--cm-body);
	font-size: var(--cm-step--1);
}

.cm-contact__cta {
	margin-top: var(--cm-space-md);
	width: 100%;
}

/* Legal */

.cm-legal__in {
	display: grid;
	gap: clamp(var(--cm-space-lg), 4vw, var(--cm-space-xl));
}

@media (min-width: 900px) {
	.cm-legal__in {
		grid-template-columns: 260px minmax(0, 1fr);
		align-items: start;
	}
}

.cm-toc {
	padding: var(--cm-space-md);
	border: 1px solid color-mix(in srgb, var(--cm-subtitle) 16%, transparent);
	border-radius: var(--cm-radius-md);
}

.cm-toc__title {
	margin: 0 0 var(--cm-space-sm);
	color: var(--cm-meta);
	font-size: var(--cm-step--2);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cm-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--cm-space-xs);
}

.cm-toc__list a {
	color: var(--cm-body);
	font-size: var(--cm-step--1);
	text-decoration: none;
	transition: color 0.2s ease;
}

@media (hover: hover) {
	.cm-toc__list a:hover {
		color: var(--cm-glow);
	}
}

.cm-legal__body {
	max-width: var(--cm-measure);
}

.cm-legal__section + .cm-legal__section {
	margin-top: var(--cm-space-xl);
}

.cm-legal__section h2 {
	margin-top: 0;
	scroll-margin-top: calc(var(--cm-bar-h) + var(--cm-space-md));
}

/* Only pin these once they sit in their own column. */
@media (min-width: 900px) {
	.cm-contact,
	.cm-toc {
		position: sticky;
		top: calc(var(--cm-bar-h) + var(--cm-space-md));
	}
}

/* Push the footer to the bottom on pages too short to fill the screen. */
#main {
	flex: 1 0 auto;
}
