/* Contact page: onboarding path, sales form with inline success, coverage board. Builds on ui.css. */

.c-hero {
	position: relative;
	padding: 56px 0 72px;
	overflow: hidden;
	isolation: isolate;
}

.c-hero .barrio {
	-webkit-mask-image: radial-gradient(ellipse 55% 70% at 80% 36%, #000 15%, transparent 75%);
	mask-image: radial-gradient(ellipse 55% 70% at 80% 36%, #000 15%, transparent 75%);
}

.c-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
	gap: 56px;
	align-items: start;
}

.c-intro h1 {
	font-size: clamp(40px, 4.7vw, 64px);
	max-width: 600px;
}

.c-intro h1 .hl {
	background: linear-gradient(var(--lime), var(--lime)) left 88% / 0% 30% no-repeat;
	animation: highlight 1.1s 0.35s var(--ease-out) forwards;
	padding: 0 4px;
	margin: 0 -4px;
}

.c-intro .lede {
	margin: 24px 0 34px;
}

.ic-box {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	background: var(--paper);
	color: var(--forest);
	border: 1px solid var(--line);
}

.ic-box .ic {
	width: 20px;
	height: 20px;
}

/* Onboarding path */

.onb {
	position: relative;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: 20px 22px 8px;
	box-shadow: 0 40px 80px -46px rgba(16, 41, 30, 0.45), 0 14px 30px -24px rgba(16, 41, 30, 0.25);
}

.onb-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 6px;
}

.onb .mono-kicker {
	color: var(--forest-3);
	margin: 0;
}

.onb-count {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
}

.onb-count b {
	color: var(--ink);
	font-weight: 600;
}

.onb-steps {
	position: relative;
}

.onb-line {
	position: absolute;
	left: 19px;
	top: 34px;
	bottom: 34px;
	width: 2px;
	background: var(--paper-2);
}

.onb-line i {
	display: block;
	width: 100%;
	height: 0;
	background: var(--forest-3);
	transition: height 0.8s var(--ease-out);
}

.onb-step {
	position: relative;
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	padding: 14px 0;
	border-top: 1px solid var(--paper-2);
	opacity: 0.4;
	transition: opacity 0.5s ease;
}

.onb-step:first-of-type {
	border-top: 0;
}

.onb-step.is-on,
.onb-step.is-done {
	opacity: 1;
}

.onb-dot {
	position: relative;
	z-index: 1;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--paper);
	color: var(--forest);
	border: 1px solid var(--line);
	transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.onb-dot .ic {
	width: 20px;
	height: 20px;
}

.onb-step.is-on .onb-dot::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 15px;
	border: 2px solid var(--lime-2);
	animation: ring 1.4s ease-out infinite;
}

.onb-step.is-done .onb-dot {
	background: var(--forest);
	border-color: var(--forest);
	color: var(--lime);
	--ic-fill: rgba(200, 241, 105, 0.25);
}

.onb-step strong {
	display: block;
	font-size: 15.5px;
	letter-spacing: -0.01em;
}

.onb-step small {
	display: block;
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.4;
	max-width: 330px;
}

.onb-art {
	display: flex;
	justify-content: flex-end;
}

.flowchip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--mono);
	font-size: 12.5px;
	font-weight: 600;
	color: var(--forest-3);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 4px 10px 4px 4px;
	white-space: nowrap;
}

.flowchip .fl {
	width: 20px;
	height: 20px;
}

.onb-flags {
	display: flex;
}

.onb-flags .fl {
	position: relative;
	width: 26px;
	height: 26px;
	margin-left: -7px;
	box-shadow: 0 0 0 2px var(--white);
	overflow: visible;
}

.onb-flags .fl:first-child {
	margin-left: 0;
}

.onb-flags .fl svg {
	border-radius: 50%;
}

.onb-flags .fl.live::after {
	content: '';
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3fae2a;
	box-shadow: 0 0 0 2px var(--white);
}

.onb-flags .fl.soon {
	opacity: 0.55;
}

.onb-code {
	font-family: var(--mono);
	font-size: 12px;
	color: #d9e4dc;
	background: #0a1a12;
	border-radius: 8px;
	padding: 5px 9px;
	white-space: nowrap;
}

.onb-code b {
	color: var(--lime);
	font-weight: 600;
	margin-left: 4px;
}

/* Form panel */

.c-panel {
	position: relative;
	padding: 30px;
	box-shadow: 0 50px 100px -50px rgba(16, 41, 30, 0.5), 0 18px 36px -28px rgba(16, 41, 30, 0.3);
}

.c-form-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--paper-2);
}

.c-form-head .ic-box {
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: var(--forest);
	border-color: var(--forest);
	color: var(--lime);
	--ic-fill: rgba(200, 241, 105, 0.22);
}

.c-form-head h3 {
	font-size: 22px;
}

.c-form-head small {
	display: block;
	color: var(--muted);
	font-size: 14px;
}

.c-form input::placeholder,
.c-form textarea::placeholder {
	color: #9aa39c;
}

.c-form input:focus,
.c-form select:focus,
.c-form textarea:focus {
	border-color: var(--forest-3);
}

.c-prod-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.form label.c-prod {
	display: block;
	position: relative;
	cursor: pointer;
}

.c-prod input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.c-prod-box {
	position: relative;
	display: grid;
	gap: 2px;
	align-content: start;
	height: 100%;
	padding: 14px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--white);
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.c-prod-box .ic-box {
	margin-bottom: 10px;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.c-prod-box strong {
	font-size: 14.5px;
	color: var(--ink);
	letter-spacing: -0.01em;
}

.c-prod-box small {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--muted);
}

.c-tick {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid var(--line);
	background: var(--white);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.c-prod:hover .c-prod-box {
	border-color: #cfc8b4;
}

.c-prod input:checked + .c-prod-box {
	border-color: var(--forest);
	background: #f7fcef;
	box-shadow: 0 0 0 1px var(--forest) inset;
}

.c-prod input:checked + .c-prod-box .ic-box {
	background: var(--forest);
	border-color: var(--forest);
	color: var(--lime);
	--ic-fill: rgba(200, 241, 105, 0.22);
}

.c-prod input:checked + .c-prod-box .c-tick {
	border-color: var(--forest);
	background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23C8F169' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.c-prod input:focus-visible + .c-prod-box {
	outline: 2px solid var(--forest-3);
	outline-offset: 2px;
}

.c-hint {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin: -4px 0 0;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--paper);
	border: 1px dashed var(--line);
	font-size: 13.5px;
	color: var(--ink-2);
	min-height: 46px;
}

.c-hint-t {
	flex: 1 1 180px;
}

.c-hint .fl {
	width: 24px;
	height: 24px;
}

.c-hint-ic {
	color: var(--muted);
	display: grid;
}

.c-hint-ic .ic {
	width: 18px;
	height: 18px;
}

.c-hint b {
	font-weight: 650;
	color: var(--ink);
}

.c-hint .status {
	font-size: 12px;
	padding: 3px 9px;
}

.c-hint .none {
	font-size: 12px;
	color: var(--muted);
	padding: 3px 9px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--white);
}

/* Honeypot: off screen for people, still in the form for bots */
.c-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.c-error {
	margin: 0;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--coral);
	color: var(--ink);
	font-size: 13.5px;
}

.c-error[hidden] {
	display: none;
}

.c-submit {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 4px;
}

/* Success state */

.c-sent[hidden],
.c-form[hidden] {
	display: none;
}

.c-sent {
	display: grid;
	gap: 22px;
	outline: 0;
	animation: sent-in 0.6s var(--ease-out);
}

@keyframes sent-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

.c-sent-ic {
	width: 60px;
	height: 60px;
	border-radius: 18px;
	display: grid;
	place-items: center;
	background: var(--lime);
	color: var(--forest);
	--ic-fill: rgba(16, 41, 30, 0.12);
	animation: pop 0.7s 0.1s var(--ease-out) both;
}

.c-sent-ic .ic {
	width: 30px;
	height: 30px;
}

@keyframes pop {
	from { transform: scale(0.6); opacity: 0; }
	to { transform: none; opacity: 1; }
}

.c-sent .mono-kicker {
	color: var(--forest-3);
	margin-bottom: 12px;
}

.c-sent h3 {
	font-size: clamp(26px, 2.6vw, 34px);
	margin-bottom: 12px;
}

.c-sent p {
	color: var(--ink-2);
	margin: 0;
}

.c-sum {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border: 1px solid var(--paper-2);
	border-radius: 14px;
	overflow: hidden;
}

.c-sum > div {
	padding: 12px 14px;
	border-right: 1px solid var(--paper-2);
	min-width: 0;
}

.c-sum > div:last-child {
	border-right: 0;
}

.c-sum small {
	display: block;
	font-size: 12px;
	color: var(--muted);
}

.c-sum b {
	display: block;
	font-size: 14.5px;
	font-weight: 650;
	overflow-wrap: anywhere;
}

.c-next {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.c-next li {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 10px 12px;
	border-radius: 14px;
	background: var(--paper);
	border: 1px solid transparent;
	color: var(--muted);
}

.c-next li.now {
	background: #f7fcef;
	border-color: #cfe9b4;
	color: var(--ink);
}

.c-next li.now .ic-box {
	background: var(--forest);
	border-color: var(--forest);
	color: var(--lime);
	--ic-fill: rgba(200, 241, 105, 0.22);
}

.c-next strong {
	display: block;
	font-size: 14.5px;
	color: var(--ink);
}

.c-next small {
	display: block;
	font-size: 12.5px;
}

.c-next em {
	font-style: normal;
	font-family: var(--mono);
	font-size: 12px;
}

.c-next .state::before {
	animation: blink 2s ease-in-out infinite;
}

.c-sent-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Coverage board */

.c-board {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.9fr);
	gap: 18px;
}

.c-col {
	border: 1px solid var(--line-dark);
	border-radius: 22px;
	padding: 26px;
	background: rgba(255, 255, 255, 0.03);
	display: flex;
	flex-direction: column;
}

.c-col-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.c-col .ic-box {
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: rgba(200, 241, 105, 0.1);
	border-color: rgba(200, 241, 105, 0.22);
	color: var(--lime);
}

.c-col h3 {
	font-size: 22px;
}

.c-col-head small {
	display: block;
	color: rgba(255, 255, 255, 0.55);
	font-size: 14px;
}

.c-col > .link-arrow {
	margin-top: auto;
	align-self: flex-start;
	color: var(--white);
	font-size: 15px;
}

.c-rows {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
}

.c-rows li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--line-dark);
}

.c-rows .fl {
	width: 30px;
	height: 30px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.c-rows strong {
	display: block;
	font-size: 15px;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.c-rows strong em {
	font-style: normal;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.45);
	margin-left: 4px;
}

.c-rows small {
	display: block;
	color: rgba(255, 255, 255, 0.5);
	font-size: 13px;
}

.c-rows .status {
	margin-left: auto;
	font-size: 12px;
	white-space: nowrap;
}

.c-rows .status.pending {
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.75);
}

.c-rows .stack {
	display: flex;
	margin-left: auto;
}

.c-rows .stack .fl {
	width: 24px;
	height: 24px;
	margin-left: -7px;
	box-shadow: 0 0 0 2px var(--forest);
}

.c-rows .stack .fl:first-child {
	margin-left: 0;
}

.c-rows .more {
	font-family: var(--mono);
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
	margin-left: 8px;
	min-width: 22px;
}

.c-col-cards .mini-card {
	max-width: 260px;
	margin: 4px 0 22px;
	transform: rotate(-3deg);
}

.c-col-cards .checks {
	margin: 0 0 26px;
	gap: 14px;
}

.c-col-cards .checks li strong {
	font-size: 15px;
}

.c-col-cards .checks li span {
	font-size: 14px;
}

/* Other ways in */

.c-ways-sec {
	padding: 72px 0;
}

.c-ways-sec .mono-kicker {
	color: var(--muted);
	margin-bottom: 22px;
}

.c-ways {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.c-way {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 22px;
	border-radius: 20px;
	background: var(--white);
	border: 1px solid var(--line);
	transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.c-way:hover {
	transform: translateY(-3px);
	box-shadow: 0 30px 50px -36px rgba(16, 41, 30, 0.5);
}

.c-way .ic-box {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--forest);
	border-color: var(--forest);
	color: var(--lime);
	--ic-fill: rgba(200, 241, 105, 0.22);
}

.c-way strong {
	display: block;
	font-size: 17px;
	letter-spacing: -0.015em;
}

.c-way small {
	display: block;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.4;
}

.c-way i {
	font-style: normal;
	color: var(--muted);
	transition: transform 0.2s ease, color 0.2s ease;
}

.c-way:hover i {
	transform: translateX(4px);
	color: var(--forest);
}

/* Responsive */

@media (max-width: 1080px) {
	.c-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.c-panel {
		max-width: 680px;
	}

	.c-board {
		grid-template-columns: 1fr 1fr;
	}

	.c-col-cards {
		grid-column: 1 / -1;
	}

	.c-ways {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.c-hero {
		padding: 32px 0 56px;
	}

	.onb {
		padding: 16px 16px 4px;
	}

	.onb-step {
		grid-template-columns: 40px minmax(0, 1fr);
		row-gap: 8px;
	}

	.onb-art {
		grid-column: 2;
		justify-content: flex-start;
	}

	.onb-line {
		top: 34px;
		bottom: 60px;
	}

	.c-panel {
		padding: 20px;
	}

	.c-prod-grid {
		grid-template-columns: 1fr;
	}

	.c-prod-box {
		grid-template-columns: 38px minmax(0, 1fr);
		column-gap: 12px;
		align-items: center;
	}

	.c-prod-box .ic-box {
		grid-row: span 2;
		margin: 0;
	}

	.c-sum {
		grid-template-columns: 1fr;
	}

	.c-sum > div {
		border-right: 0;
		border-top: 1px solid var(--paper-2);
	}

	.c-sum > div:first-child {
		border-top: 0;
	}

	.c-next li {
		grid-template-columns: 38px minmax(0, 1fr);
	}

	.c-next li > :last-child {
		grid-column: 2;
		justify-self: start;
	}

	.c-board {
		grid-template-columns: 1fr;
	}

	.c-col {
		padding: 20px;
	}

	.c-ways-sec {
		padding: 56px 0;
	}
}

/* Screenshots and reduced motion: final state */

.shot .c-intro h1 .hl {
	animation: none;
	background-size: 100% 30%;
}

.shot .onb-step .onb-dot::after,
.shot .c-sent,
.shot .c-sent-ic,
.shot .c-next .state::before,
.shot .c-col-cards .shine {
	animation: none;
}

@media (prefers-reduced-motion: reduce) {
	.c-intro h1 .hl {
		animation: none;
		background-size: 100% 30%;
	}

	.onb-step .onb-dot::after,
	.c-sent,
	.c-sent-ic,
	.c-next .state::before {
		animation: none;
	}
}
