/* ChimpMatic Hero. Everything is scoped to .cmh and uses divs and spans only, so theme list and paragraph styles cannot reach it. */
.cmh {
	--cmh-brand: #ffe01b;
	--cmh-brand-ink: #131315;
	--cmh-ink: #131315;
	--cmh-text: #1a212b;
	--cmh-muted: #5b6672;
	--cmh-line: #dfe5e8;
	--cmh-bg: #f3f6f7;
	--cmh-blue: #0b6fd3;
	position: relative;
	box-sizing: border-box;
	container: cmh / inline-size;   /* the layout follows the hero's own width, not the screen's */
	margin: 0 0 24px;
	padding: 24px;
	overflow: hidden;
	border-radius: 6px;
	background: var(--cmh-bg);
	color: var(--cmh-text);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.35;
}
.cmh *, .cmh *::before, .cmh *::after { box-sizing: border-box; }
.cmh-stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 176px minmax(0, 1fr);
	align-items: center;
}
.cmh-card {
	min-height: 264px;
	padding: 18px 18px 16px;
	border: 1px solid var(--cmh-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(26, 33, 43, .04);
}
.cmh-card-title { margin: 0 0 12px; color: var(--cmh-ink); font-size: 16px; font-weight: 700; }
.cmh-label { display: block; margin: 0 0 4px; color: var(--cmh-muted); font-size: 12px; }
.cmh-input {
	height: 32px;
	margin: 0 0 10px;
	padding: 0 10px;
	overflow: hidden;
	border: 1px solid var(--cmh-line);
	border-radius: 6px;
	background: var(--cmh-bg);
	color: var(--cmh-text);
	font-size: 14px;
	line-height: 30px;
	white-space: nowrap;
	transition: border-color .2s, box-shadow .2s;
}
.cmh-input.is-typing { border-color: #9cc4ec; box-shadow: 0 0 0 3px rgba(11, 111, 211, .12); background: #fff; }
.cmh-input.is-typing::after {
	content: "";
	display: inline-block;
	width: 1.5px;
	height: 15px;
	margin-left: 1px;
	vertical-align: -2px;
	background: var(--cmh-text);
	animation: cmh-blink 1s steps(1) infinite;
}
.cmh-check { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; font-size: 13px; }
.cmh-box {
	position: relative;
	flex: none;
	width: 16px;
	height: 16px;
	border: 1.5px solid #b9c2c9;
	border-radius: 4px;
	background: #fff;
	transition: background .2s, border-color .2s;
}
.cmh-box.is-on { border-color: var(--cmh-blue); background: var(--cmh-blue); }
.cmh-box.is-on::after {
	content: "";
	position: absolute;
	left: 4px; top: 1px;
	width: 4px; height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.cmh-btn {
	display: inline-block;
	padding: 7px 26px;
	border-radius: 999px;
	background: var(--cmh-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	transition: transform .15s, box-shadow .15s;
}
.cmh-btn.is-pressed { transform: scale(.93); box-shadow: 0 0 0 6px rgba(11, 111, 211, .18); }

/* The middle: ChimpMatic at work. Four steps around the pill turn green one by one, a green
   glint circles the pill while it works, and the signup flows in from the form and out to the
   list as a stream of dots. The page arrives with every step done (the finished state). */
@property --cmh-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cmh-link {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	align-self: stretch;
	padding: 0 6px;
}
.cmh-line { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed #b9c2c9; }
.cmh.is-sending .cmh-line { border-top-color: transparent; background: linear-gradient(90deg, #b9c2c9 50%, transparent 0) 0 0 / 12px 2px repeat-x; height: 2px; margin-top: -2px; animation: cmh-march .5s linear infinite; }
.cmh-steps { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cmh-step {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 9px 3px 7px;
	border: 1px solid var(--cmh-line);
	border-radius: 999px;
	background: #fff;
	color: var(--cmh-muted);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	transition: border-color .25s, color .25s, background-color .25s, transform .25s;
}
.cmh-step::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #dfe5e8;
	transition: background-color .25s;
}
.cmh-step.is-done { border-color: var(--green-line, #b3ecbf); color: var(--green-ink, #006916); background: var(--green-wash, #f5fcf6); }
.cmh-step.is-done::before {
	background: var(--green, #00be28) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.2 6.2l1.8 1.8 3.8-4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.cmh-step.is-now { transform: scale(1.06); border-color: var(--green, #00be28); }
.cmh-pill {
	position: relative;
	z-index: 1;
	padding: 8px 14px;
	border-radius: 999px;
	background: #1a212b;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	transition: box-shadow .3s;
}
.cmh-pill::before {
	content: "";
	position: absolute;
	inset: -3px;
	padding: 2px;
	border-radius: 999px;
	background: conic-gradient(from var(--cmh-a), transparent 0 60%, var(--green, #00be28) 85%, #b3ecbf 92%, transparent 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);
	opacity: 0;
	transition: opacity .2s;
}
.cmh.is-sending .cmh-pill::before { opacity: 1; animation: cmh-spin .9s linear infinite; }
.cmh.is-sending .cmh-pill { box-shadow: 0 0 0 6px rgba(0, 190, 40, .12); }
.cmh.is-sent .cmh-pill { box-shadow: 0 0 0 8px rgba(0, 190, 40, .22); }
.cmh-pk { position: absolute; top: 50%; height: 0; pointer-events: none; }
.cmh-pk--in { left: 0; right: 50%; }
.cmh-pk--out { left: 50%; right: 0; }
.cmh-pk i {
	position: absolute;
	top: -4px;
	left: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cmh-blue);
	box-shadow: 0 0 0 3px rgba(11, 111, 211, .16);
	opacity: 0;
}
.cmh-pk--out i { background: var(--green, #00be28); box-shadow: 0 0 0 3px rgba(0, 190, 40, .18); }
.cmh.is-in .cmh-pk--in i, .cmh.is-out .cmh-pk--out i { animation: cmh-flow .65s ease-in-out forwards; }
.cmh.is-in .cmh-pk--in i:nth-child(2), .cmh.is-out .cmh-pk--out i:nth-child(2) { animation-delay: .14s; }
.cmh.is-in .cmh-pk--in i:nth-child(3), .cmh.is-out .cmh-pk--out i:nth-child(3) { animation-delay: .28s; }

/* The list on the email platform. */
.cmh-aud { padding: 0; overflow: hidden; }
.cmh-aud-head { padding: 14px 18px; background: var(--cmh-brand); color: var(--cmh-brand-ink); font-size: 16px; font-weight: 700; }
.cmh-rows { padding: 6px 18px 10px; }
.cmh-row {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	min-height: 56px;
	padding: 10px 0;
	border-bottom: 1px solid #eef1f3;
}
.cmh-row:last-child { border-bottom: 0; }
.cmh-row.is-new { animation: cmh-in .5s ease-out; }
.cmh-av {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--cmh-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}
.cmh-who { min-width: 0; }
.cmh-who b, .cmh-who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmh-who b { color: var(--cmh-ink); font-size: 14px; }
.cmh-who span { color: var(--cmh-muted); font-size: 12px; }
.cmh-badge {
	padding: 3px 9px;
	border-radius: 999px;
	background: #eef1f3;
	color: var(--cmh-muted);
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	transition: background .3s, color .3s;
}
/* Success uses the site's bedrock green (#00be28) and its shades. Never another green. */
.cmh-badge.is-done { background: var(--green-tint, #e0f7e5); color: var(--green-ink, #006916); }
.cmh-row.is-ghost .cmh-av { background: #dfe5e8; }
.cmh-row.is-ghost .cmh-who b { width: 62%; height: 9px; margin: 3px 0 7px; border-radius: 5px; background: #dfe5e8; }
.cmh-row.is-ghost .cmh-who span { width: 86%; height: 7px; border-radius: 4px; background: #eef1f3; }
.cmh-row.is-ghost .cmh-badge { width: 74px; height: 22px; }

.cmh-caption { margin-top: 22px; }
.cmh-title { color: var(--cmh-ink); font-size: clamp(24px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.cmh-sub:first-child { margin-top: 0; }
.cmh-sub { margin-top: 6px; color: var(--cmh-muted); font-size: 17px; }

@keyframes cmh-blink { 50% { opacity: 0; } }
@keyframes cmh-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes cmh-flow {
	0% { left: 0; opacity: 0; }
	15% { opacity: 1; }
	85% { opacity: 1; }
	100% { left: calc(100% - 8px); opacity: 0; }
}
@keyframes cmh-flowv {
	0% { top: 0; opacity: 0; }
	15% { opacity: 1; }
	85% { opacity: 1; }
	100% { top: calc(100% - 8px); opacity: 0; }
}
@keyframes cmh-spin { to { --cmh-a: 360deg; } }
@keyframes cmh-march { to { background-position: 12px 0; } }
@keyframes cmh-marchv { to { background-position: 0 12px; } }

/* A narrow column (a phone, or beside a sidebar): the form above, the list below,
   the signup drops between them. Decided by the hero's width, so it fits any column. */
/* A narrow column (a phone, or beside a sidebar): the form above, the list below, and
   ChimpMatic between them with its steps in two rows; the signup drops down through it.
   Decided by the hero's width, so it fits any column. */
@container cmh (max-width: 620px) {
	.cmh-stage { grid-template-columns: minmax(0, 1fr); }
	.cmh-card { min-height: 0; }
	.cmh-link { padding: 16px 0; gap: 10px; }
	.cmh-line { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed #b9c2c9; }
	.cmh.is-sending .cmh-line { border-left-color: transparent; width: 2px; height: auto; margin: 0 0 0 -1px; background: linear-gradient(180deg, #b9c2c9 50%, transparent 0) 0 0 / 2px 12px repeat-y; animation-name: cmh-marchv; }
	.cmh-steps { flex-direction: row; gap: 44px; }
	.cmh-pk { left: 50%; right: auto; width: 0; height: auto; }
	.cmh-pk--in { top: 0; bottom: 50%; }
	.cmh-pk--out { top: 50%; bottom: 0; }
	.cmh-pk i { top: 0; left: -4px; }
	.cmh.is-in .cmh-pk--in i, .cmh.is-out .cmh-pk--out i { animation-name: cmh-flowv; }
}

@media (prefers-reduced-motion: reduce) {
	.cmh *, .cmh *::before, .cmh *::after { animation: none !important; transition: none !important; }
}

/* Sample addresses drawn as letter outlines (chimpmatic_hero_glyphs): no address text in the page. */
.cmh-glyphs { display: inline-block; overflow: visible; fill: currentColor; }
/* In a contact row the address shrinks to the column instead of being cut (text used an ellipsis). */
.cmh-who .cmh-glyphs { max-width: 100%; height: auto; }
