/* Countmate homepage for visitors. Same colours, buttons and type rules as the app (system.css). */

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/OpenSans-Variable.woff2") format("woff2");
}

@font-face {
	font-family: "Devant Horgen";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/DevantHorgen-Regular.woff2") format("woff2");
}

:root {
	--cm-bg: #09090b;
	--cm-surface-1: #18181b;
	--cm-surface-2: #27272a;
	--cm-surface-3: #3f3f46;
	--cm-line: rgba(255, 255, 255, 0.1);
	--cm-text-1: #ffffff;
	--cm-text-2: #a1a1aa;
	--cm-coin: #facc15;
	--cm-done: #4bb9b9;
	--cm-brand: linear-gradient(90deg, #ffa31a, #ff1d6c 40%, #9b30ff 75%, #4cc9b0);
	--cm-display: "Devant Horgen", "Open Sans", Inter, Roboto, sans-serif;
	--cm-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
	--cm-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	color-scheme: dark;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
	-webkit-text-size-adjust: 100%;
}

body.cm-landing {
	margin: 0;
	background: var(--cm-bg);
	color: var(--cm-text-1);
	font-family: "Open Sans", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.cm-landing p,
.cm-landing h1,
.cm-landing h2,
.cm-landing h3,
.cm-landing ol,
.cm-landing ul {
	margin: 0;
	padding: 0;
}

.cm-landing a {
	color: inherit;
}

.cm-landing img {
	display: block;
	max-width: 100%;
}

.cm-landing :focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
	border-radius: 8px;
}

.cm-landing .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

main:focus {
	outline: none;
}

/* Buttons: white for the main action, grey for the rest, text. */

.cm-lbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.2s var(--cm-ease-spring), background-color 0.2s ease, opacity 0.2s ease;
}

.cm-lbtn:active {
	transform: scale(0.97);
}

.cm-lbtn--primary {
	background: #fff;
	color: var(--cm-bg) !important;
}

.cm-lbtn--primary:hover {
	background: #e4e4e7;
}

.cm-lbtn--secondary {
	background: var(--cm-surface-2);
	color: #fff;
}

.cm-lbtn--secondary:hover {
	background: var(--cm-surface-3);
}

.cm-lbtn--text {
	background: transparent;
	color: #fff;
}

.cm-lbtn--text:hover {
	background: rgba(255, 255, 255, 0.08);
}

.cm-lbtn--large {
	min-height: 52px;
	padding: 0 28px;
	font-size: 17px;
}

.cm-lbtn .cm-landing-icon {
	transition: transform 0.25s var(--cm-ease-spring);
}

.cm-lbtn:hover .cm-landing-icon {
	transform: translateX(3px);
}

/* Skip link */

.cm-landing__skip {
	position: absolute;
	top: -80px;
	left: 16px;
	z-index: 50;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	background: #fff;
	color: var(--cm-bg) !important;
	font-weight: 700;
	text-decoration: none;
}

.cm-landing__skip:focus {
	top: 16px;
}

/* Header */

.cm-landing__header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgba(9, 9, 11, 0.86);
	border-bottom: 1px solid var(--cm-line);
	-webkit-backdrop-filter: saturate(140%) blur(16px);
	backdrop-filter: saturate(140%) blur(16px);
}

.cm-landing__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 18px 24px;
}

.cm-landing__brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.cm-landing__brand img {
	width: 40px;
	height: 40px;
	border-radius: 11px;
}

.cm-landing__brand span {
	font-family: var(--cm-display);
	font-size: 30px;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.cm-landing__brand--small {
	gap: 8px;
}

.cm-landing__brand--small img {
	width: 36px;
	height: 36px;
	border-radius: 10px;
}

.cm-landing__brand--small span {
	font-size: 26px;
}

.cm-landing__links {
	display: flex;
	align-items: center;
	gap: 32px;
	font-size: 15px;
	font-weight: 600;
}

.cm-landing__links a {
	color: var(--cm-text-2);
	text-decoration: none;
	transition: color 0.2s ease;
}

.cm-landing__links a:hover {
	color: #fff;
}

.cm-landing__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Shared bits */

.cm-landing__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 28px;
	padding: 0 12px;
	border: 1px solid var(--cm-surface-3);
	border-radius: 999px;
	color: var(--cm-text-2);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
}

.cm-landing__pill--filled {
	padding-left: 3px;
	background: var(--cm-surface-1);
}

.cm-landing__pill .cm-landing-icon {
	color: var(--cm-done);
}

.cm-landing__dot {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ffa31a, #ff1d6c 45%, #9b30ff 80%, #4cc9b0);
}

.cm-landing__h2 {
	font-family: var(--cm-display);
	font-size: clamp(42px, 5vw, 66px);
	font-weight: 400;
	line-height: 0.95;
	text-transform: uppercase;
}

.cm-landing__lede {
	max-width: 520px;
	color: var(--cm-text-2);
	font-size: 17px;
	line-height: 1.6;
}

.cm-landing__section {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px 112px;
}

/* Hero */

.cm-landing__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	align-items: center;
	gap: 56px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 88px 24px 112px;
}

.cm-landing__hero-copy {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
}

.cm-landing__title {
	font-family: var(--cm-display);
	font-size: clamp(64px, 7.2vw, 104px);
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: 0.005em;
	text-transform: uppercase;
}

/* The words take turns in one grid cell, so the heading never jumps. */
.cm-landing__words {
	display: grid;
	justify-items: start;
}

.cm-landing__word {
	grid-area: 1 / 1;
	padding-bottom: 0.04em;
	background: linear-gradient(90deg, #ffa31a, #ff1d6c 40%, #c084fc 75%, #4cc9b0);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	opacity: 0;
	transform: translateY(0.35em);
	transition: opacity 0.45s var(--cm-ease-out), transform 0.55s var(--cm-ease-out);
}

.cm-landing__word.is-on {
	opacity: 1;
	transform: none;
}

.cm-landing__word.is-off {
	opacity: 0;
	transform: translateY(-0.35em);
}

.cm-landing__bar {
	width: 120px;
	height: 4px;
	border-radius: 4px;
	background: var(--cm-brand);
}

.cm-landing__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cm-landing__note {
	margin-top: -12px !important;
	color: var(--cm-text-2);
	font-size: 13px;
}

.cm-landing__hint {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--cm-text-2);
	font-size: 13px;
}

.cm-landing__hint .cm-landing-icon {
	flex: none;
	color: var(--cm-done);
}

.cm-landing__hint a {
	color: #fff;
	font-weight: 700;
	text-underline-offset: 3px;
}

/* Phone */

.cm-landing__stage {
	position: relative;
	display: flex;
	justify-content: flex-end;
}

/* The phone carries the two floating notes, so they stay beside it at every width. */
.cm-landing__device {
	position: relative;
}

.cm-landing__glow {
	position: absolute;
	inset: -40px -20px;
	background:
		radial-gradient(closest-side at 35% 40%, rgba(255, 29, 108, 0.22), transparent),
		radial-gradient(closest-side at 70% 65%, rgba(155, 48, 255, 0.2), transparent),
		radial-gradient(closest-side at 60% 20%, rgba(255, 163, 26, 0.12), transparent);
	filter: blur(10px);
	pointer-events: none;
}

.cm-landing__phone {
	/* The app screen is drawn at its real size (390 x 844) and scaled as a whole. */
	--cm-s: 0.7795;
	position: relative;
	flex: none;
	width: calc(390px * var(--cm-s) + 16px);
	height: calc(844px * var(--cm-s) + 16px);
	overflow: hidden;
	border: 8px solid var(--cm-surface-2);
	border-radius: 48px;
	background: var(--cm-bg);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 80px rgba(0, 0, 0, 0.55);
}

/* ---- The app's Aftellers page, 1:1 ---------------------------------------- */

.cm-screen {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: 390px;
	height: 844px;
	overflow: hidden;
	background: #09090b;
	color: #fff;
	font-size: 14.4px;
	line-height: 1.5;
	transform: scale(var(--cm-s));
	transform-origin: 0 0;
	pointer-events: none;
	user-select: none;
}

.cm-screen__status {
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	height: 54px;
	padding: 6px 30px 0 46px;
	background: #18181b;
}

.cm-screen__time {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.cm-screen__island {
	position: absolute;
	top: 11px;
	left: 50%;
	width: 122px;
	height: 35px;
	border-radius: 20px;
	background: #000;
	transform: translateX(-50%);
}

.cm-screen__signal {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	fill: #fff;
}

.cm-screen__battery {
	position: relative;
	width: 25px;
	height: 12px;
	padding: 1.5px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 4px;
}

.cm-screen__battery::after {
	content: "";
	position: absolute;
	top: 3px;
	right: -3.5px;
	width: 1.5px;
	height: 4px;
	border-radius: 0 1px 1px 0;
	background: rgba(255, 255, 255, 0.45);
}

.cm-screen__battery span {
	display: block;
	width: 80%;
	height: 100%;
	border-radius: 2px;
	background: #fff;
}

.cm-screen__bar {
	position: relative;
	z-index: 2;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 64px;
	padding: 0 24px;
	border-bottom: 1px solid #34343a;
	background: #18181b;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.cm-screen__title {
	font-family: var(--cm-display);
	font-size: 30px;
	line-height: 1.15;
	text-transform: uppercase;
}

.cm-screen__coins {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 28px;
	padding: 0 8px 0 6px;
	border: 1px solid rgba(250, 204, 21, 0.42);
	border-radius: 999px;
	background: #3a3215;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
	color: #fef3c7;
	font-size: 12.48px;
	font-weight: 800;
	line-height: 1;
}

.cm-screen__coins img {
	width: 18px;
	height: 18px;
	filter: drop-shadow(0 2px 4px rgba(120, 74, 0, 0.28));
}

.cm-screen__content {
	display: grid;
	flex: 1;
	align-content: start;
	gap: 14px;
	padding: 16px;
	overflow: hidden;
}

.cm-screen__card {
	position: relative;
	display: grid;
	grid-template-columns: 66px minmax(0, 1fr) 50px;
	align-items: center;
	min-height: 72px;
	padding: 8px 16px 8px 12px;
	border: 1px solid transparent;
	border-radius: 20px;
	background-color: #27272a;
	background-image:
		linear-gradient(90deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.1)),
		var(--cm-card-bg, linear-gradient(135deg, #18a0fb 0%, #4b15f5 100%));
	background-position: center;
	background-size: cover;
	background-clip: padding-box;
	overflow: hidden;
	isolation: isolate;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.22),
		inset 0 -10px 18px rgba(0, 0, 0, 0.12),
		0 10px 24px rgba(0, 0, 0, 0.28);
}

.cm-screen__card[hidden] {
	display: none;
}

.cm-screen__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, rgba(255, 255, 255, 0.08), transparent 54%);
}

/* The glass rim the app draws around every card. */
.cm-screen__card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(150deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.16) 22%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.08) 74%, rgba(255, 255, 255, 0.3) 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.cm-screen__icon {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 10px;
}

.cm-screen__icon img,
.cm-screen__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: contain;
	fill: #fff;
}

.cm-screen__copy {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.cm-screen__card-title,
.cm-screen__card-date,
.cm-screen__days,
.cm-screen__unit {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.38), 0 2px 8px rgba(0, 0, 0, 0.16);
}

.cm-screen__card-title {
	overflow: hidden;
	font-size: 15.2px;
	font-weight: 800;
	line-height: 19px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cm-screen__card-date {
	overflow: hidden;
	color: rgba(255, 255, 255, 0.96);
	font-size: 13.12px;
	font-weight: 700;
	line-height: 16.4px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cm-screen__count {
	display: grid;
	justify-items: center;
	text-align: center;
}

.cm-screen__days {
	font-family: var(--cm-display);
	font-size: 29.76px;
	line-height: 0.9;
	font-variant-numeric: tabular-nums;
}

.cm-screen__unit {
	margin-top: 2px;
	font-size: 11.84px;
	font-weight: 800;
	line-height: 1;
}

.cm-screen__tabs {
	position: relative;
	display: grid;
	flex: none;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	padding: 10px 10px 34px;
	border-top: 1px solid #34343a;
	background: #18181b;
	box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.34);
}

.cm-screen__tab {
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 4px;
	min-height: 64px;
	padding: 4px 2px;
	color: #a1a1aa;
}

.cm-screen__tab-pill {
	display: grid;
	place-items: center;
	width: 56px;
	height: 32px;
	border-radius: 16px;
}

.cm-screen__tab-img,
.cm-screen__tab-svg {
	display: block;
	width: 22px;
	height: 22px;
	object-fit: contain;
	fill: currentColor;
	opacity: 0.74;
}

.cm-screen__tab-img {
	filter: brightness(0) invert(1);
}

.cm-screen__tab-label {
	max-width: 74px;
	overflow: hidden;
	font-size: 10.24px;
	font-weight: 680;
	line-height: 1.16;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cm-screen__tab.is-on {
	color: #fff;
}

.cm-screen__tab.is-on .cm-screen__tab-pill {
	background: rgba(255, 255, 255, 0.2);
}

.cm-screen__tab.is-on .cm-screen__tab-img,
.cm-screen__tab.is-on .cm-screen__tab-svg {
	opacity: 1;
}

.cm-screen__home {
	position: absolute;
	bottom: 9px;
	left: 50%;
	width: 134px;
	height: 5px;
	border-radius: 3px;
	background: #fff;
	transform: translateX(-50%);
}

.cm-landing__float {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2), 0 16px 48px rgba(0, 0, 0, 0.5);
	animation: cm-landing-float 6s ease-in-out infinite;
}

.cm-landing__float--friend {
	top: 170px;
	right: calc(100% - 14px);
	width: max-content;
	max-width: 224px;
	padding: 12px 14px;
	border: 1px solid var(--cm-surface-3);
	border-radius: 16px;
	background: var(--cm-surface-1);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.cm-landing__avatar {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #ff1d6c;
	font-weight: 800;
}

.cm-landing__float--coins {
	right: calc(100% - 26px);
	bottom: 112px;
	width: max-content;
	gap: 8px;
	padding: 8px 16px 8px 8px;
	border-radius: 999px;
	background: var(--cm-coin);
	color: var(--cm-bg);
	font-size: 14px;
	font-weight: 800;
	animation-delay: -3s;
}

.cm-landing__float--coins img {
	width: 28px;
	height: 28px;
}

@keyframes cm-landing-float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-8px);
	}
}

/* Web app */

.cm-landing__webapp {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 48px;
	padding: 56px;
	border: 1px solid var(--cm-line);
	border-radius: 28px;
	background: var(--cm-surface-1);
}

.cm-landing__webapp-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.cm-landing__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
}

.cm-landing__chips li {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	font-size: 13px;
	font-weight: 700;
}

.cm-landing__steps {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.cm-landing__step-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border-radius: 16px;
	background: var(--cm-surface-2);
}

.cm-landing__step-card h3 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
}

.cm-landing__step-card p {
	color: var(--cm-text-2);
	font-size: 13px;
}

.cm-landing__step-card ol {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	counter-reset: cm-step;
}

.cm-landing__step-card li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	line-height: 1.45;
	counter-increment: cm-step;
}

.cm-landing__step-card li::before {
	content: counter(cm-step);
	display: grid;
	flex: none;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	color: var(--cm-bg);
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

.cm-landing__step-card li span {
	padding-top: 2px;
}

/* Questions */

.cm-landing__faq {
	max-width: 928px;
}

.cm-landing__faq-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	margin-bottom: 32px;
}

.cm-landing__faq-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cm-landing__qa {
	border: 1px solid var(--cm-line);
	border-radius: 16px;
	background: var(--cm-surface-1);
	transition: background-color 0.2s ease;
}

.cm-landing__qa:hover {
	background: #1d1d21;
}

.cm-landing__qa summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	padding: 16px 24px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
	list-style: none;
	cursor: pointer;
	border-radius: 16px;
}

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

.cm-landing__qa summary .cm-landing-icon {
	flex: none;
	color: var(--cm-text-2);
	transition: transform 0.3s var(--cm-ease-spring);
}

.cm-landing__qa[open] summary .cm-landing-icon {
	transform: rotate(180deg);
}

.cm-landing__qa p {
	padding: 0 24px 22px;
	color: var(--cm-text-2);
	font-size: 17px;
	line-height: 1.6;
}

.cm-landing__qa[open] p {
	animation: cm-landing-reveal 0.3s var(--cm-ease-out);
}

@keyframes cm-landing-reveal {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

/* Footer */

.cm-landing__footer {
	border-top: 1px solid var(--cm-line);
}

.cm-landing__footer-top,
.cm-landing__footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px 40px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 56px 24px 32px;
}

.cm-landing__footer-top p {
	max-width: 600px;
	color: var(--cm-text-2);
	font-size: 15px;
}

.cm-landing__footer-bottom {
	padding: 20px 24px 32px;
	border-top: 1px solid var(--cm-line);
	color: var(--cm-text-2);
	font-size: 13px;
}

.cm-landing__footer-bottom div {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.cm-landing__footer-bottom a {
	color: var(--cm-text-2);
	text-decoration: none;
}

.cm-landing__footer-bottom a:hover {
	color: #fff;
}

/* Login and register stay in reach on a phone. */

.cm-landing__dock {
	display: none;
}

/* ---- Conversion: reassurance, proof, try it, steps, last call -------------- */

.cm-landing__reassure {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: -10px 0 0 !important;
	list-style: none;
	color: var(--cm-text-2);
	font-size: 14px;
	font-weight: 600;
}

.cm-landing__reassure li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cm-landing__reassure .cm-landing-icon {
	color: var(--cm-done);
}

.cm-landing__proof {
	color: var(--cm-text-2);
	font-size: 14px;
}

.cm-landing__proof strong {
	color: #fff;
}

.cm-landing__try-box {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 48px;
	padding: 56px;
	border: 1px solid var(--cm-line);
	border-radius: 28px;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(255, 29, 108, 0.1), transparent 60%),
		radial-gradient(90% 90% at 0% 100%, rgba(155, 48, 255, 0.1), transparent 60%),
		var(--cm-surface-1);
}

.cm-landing__try-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.cm-landing__fields {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 12px;
	width: 100%;
	margin-top: 4px;
}

.cm-landing__field {
	display: grid;
	gap: 6px;
}

.cm-landing__field span {
	color: var(--cm-text-2);
	font-size: 13px;
	font-weight: 600;
}

.cm-landing__field input {
	width: 100%;
	min-height: 52px;
	padding: 0 16px;
	border: 1px solid var(--cm-surface-3);
	border-radius: 16px;
	background: var(--cm-bg);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	color-scheme: dark;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cm-landing__field input::placeholder {
	color: #71717a;
}

.cm-landing__field input:focus {
	border-color: #fff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.cm-landing__try-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.cm-landing__try-card {
	width: 100%;
	max-width: 390px;
	text-align: left;
	transform: scale(1.06);
	transform-origin: center;
}

.cm-landing__try-card.is-bump {
	animation: cm-landing-bump 0.45s var(--cm-ease-spring);
}

@keyframes cm-landing-bump {
	40% {
		transform: scale(1.1);
	}
}

.cm-landing__try-line {
	margin-top: 10px !important;
	color: var(--cm-text-2);
	font-size: 15px;
}

.cm-landing__try-line strong {
	color: #fff;
}

.cm-landing__try-note {
	margin-top: -6px !important;
	color: var(--cm-text-2);
	font-size: 13px;
}

.cm-landing__how-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
	counter-reset: cm-how;
}

.cm-landing__how-list li {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px;
	border: 1px solid var(--cm-line);
	border-radius: 24px;
	background: var(--cm-surface-1);
	counter-increment: cm-how;
}

.cm-landing__how-list li::before {
	content: counter(cm-how);
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: #fff;
	color: var(--cm-bg);
	font-family: var(--cm-display);
	font-size: 24px;
	line-height: 1;
}

.cm-landing__how-list h3 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

.cm-landing__how-list p {
	color: var(--cm-text-2);
	font-size: 15px;
	line-height: 1.55;
}

.cm-landing__final-box {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	overflow: hidden;
	padding: 72px 24px;
	border: 1px solid var(--cm-line);
	border-radius: 28px;
	background: var(--cm-surface-1);
	text-align: center;
	isolation: isolate;
}

.cm-landing__final-box::before {
	content: "";
	position: absolute;
	inset: -40%;
	z-index: -1;
	background:
		radial-gradient(closest-side at 35% 55%, rgba(255, 29, 108, 0.18), transparent),
		radial-gradient(closest-side at 65% 45%, rgba(155, 48, 255, 0.16), transparent);
}

.cm-landing__final-box .cm-landing__reassure {
	justify-content: center;
	margin-top: 0 !important;
}

@media (max-width: 1080px) {
	.cm-landing__try-box {
		grid-template-columns: 1fr;
		padding: 40px;
	}
}

@media (max-width: 760px) {
	.cm-landing__reassure {
		margin-top: -6px !important;
		font-size: 13px;
	}

	.cm-landing__try-box {
		gap: 32px;
		padding: 24px;
		border-radius: 24px;
	}

	.cm-landing__fields {
		grid-template-columns: 1fr;
	}

	.cm-landing__try-card {
		transform: none;
	}

	.cm-landing__try-result .cm-lbtn {
		width: 100%;
	}

	.cm-landing__how-list {
		grid-template-columns: 1fr;
	}

	.cm-landing__how-list li {
		padding: 22px;
	}

	.cm-landing__final-box {
		padding: 48px 20px;
		border-radius: 24px;
	}

	.cm-landing__final-box .cm-lbtn {
		width: 100%;
	}
}

/* Tablet */

@media (max-width: 1080px) {
	.cm-landing__hero {
		grid-template-columns: 1fr;
		gap: 64px;
		padding-top: 64px;
	}

	.cm-landing__stage {
		justify-content: center;
	}

	.cm-landing__webapp {
		grid-template-columns: 1fr;
		padding: 40px;
	}
}

/* Phone */

@media (max-width: 760px) {
	html {
		scroll-padding-top: 80px;
	}

	.cm-landing__links,
	.cm-landing__actions {
		display: none;
	}

	.cm-landing__nav {
		padding: 14px 16px;
	}

	.cm-landing__brand img {
		width: 36px;
		height: 36px;
		border-radius: 10px;
	}

	.cm-landing__brand span {
		font-size: 26px;
	}

	.cm-landing__hero {
		gap: 48px;
		padding: 40px 16px 80px;
	}

	.cm-landing__hero-copy {
		gap: 22px;
	}

	.cm-landing__title {
		font-size: clamp(56px, 17vw, 80px);
	}

	.cm-landing__lede {
		font-size: 16px;
	}

	.cm-landing__cta {
		flex-direction: column;
		align-self: stretch;
	}

	.cm-landing__cta .cm-lbtn {
		width: 100%;
	}

	.cm-landing__note {
		margin-top: -8px !important;
	}

	.cm-landing__hint {
		align-items: flex-start;
	}

	.cm-landing__stage {
		margin: 0 auto;
	}

	.cm-landing__phone {
		--cm-s: 0.6769;
		border-radius: 44px;
	}

	/* On a phone the app screen speaks for itself; the floating notes would cover it. */
	.cm-landing__float {
		display: none;
	}

	.cm-landing__section {
		padding: 0 16px 80px;
	}

	.cm-landing__webapp {
		gap: 32px;
		padding: 24px;
		border-radius: 24px;
	}

	.cm-landing__steps {
		grid-template-columns: 1fr;
	}

	.cm-landing__step-card {
		padding: 20px;
	}

	.cm-landing__qa summary {
		padding: 16px 18px;
		font-size: 16px;
	}

	.cm-landing__qa p {
		padding: 0 18px 20px;
		font-size: 16px;
	}

	.cm-landing__footer-top {
		padding: 40px 16px 24px;
	}

	.cm-landing__footer-bottom {
		padding: 20px 16px 120px;
	}

	.cm-landing__dock {
		position: fixed;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		left: 12px;
		z-index: 40;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		padding: 8px;
		border: 1px solid var(--cm-surface-3);
		border-radius: 999px;
		background: rgba(24, 24, 27, 0.92);
		box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
		-webkit-backdrop-filter: blur(16px);
		backdrop-filter: blur(16px);
		transform: translateY(0);
		transition: transform 0.4s var(--cm-ease-spring), opacity 0.3s ease;
	}

	/* While the big buttons in the hero are on screen, the dock waits below. */
	.cm-landing__dock.is-waiting {
		opacity: 0;
		transform: translateY(calc(100% + 24px));
		pointer-events: none;
	}
}

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

	.cm-landing *,
	.cm-landing *::before,
	.cm-landing *::after {
		animation: none !important;
		transition: none !important;
	}
}
