/* ablefrog.com/sync: LeapSync's page. Its one moving thing is the diagram: LTC in, read, MTC out. */

.sync-hero {
	background: var(--pond);
	color: var(--on-dark);
	padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px);
}

.sync-hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.sync-name {
	display: flex;
	align-items: center;
	gap: 16px;
}

.sync-name img {
	width: clamp(52px, 7vw, 72px);
	height: auto;
}

.sync-name h1 {
	font-size: clamp(2.8rem, 6vw, 4.4rem);
	color: #fff;
}

.sync-lede {
	max-width: 30ch;
	margin: 18px 0 0;
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	color: var(--on-dark-muted);
	text-wrap: balance;
}

.sync-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: clamp(30px, 4vw, 40px);
}

/* Windows: the installer, with the portable zip behind the chevron. */
.sync-split-button {
	position: relative;
	display: inline-flex;
	border-radius: 999px;
}

.sync-split-button > .button {
	border-color: inherit;
	background: inherit;
	color: inherit;
}

.sync-split-button > .button:first-child {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	padding-right: 20px;
}

.sync-more {
	padding-left: 14px;
	padding-right: 16px;
	margin-left: -1.5px;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	box-shadow: inset 1px 0 0 color-mix(in srgb, currentColor 25%, transparent);
}

.sync-split-button {
	border-color: var(--frog-bright);
	background: var(--frog-bright);
	color: var(--pond);
}

.sync-split-button > .button:hover {
	border-color: #fff;
	background: #fff;
}

.sync-more svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.15s;
}

.sync-more[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.sync-more-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 5;
	display: none;
	min-width: 100%;
	padding: 6px;
	border: 1px solid var(--hair);
	border-radius: var(--r-m);
	background: var(--paper);
	box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.4);
	text-align: left;
}

.sync-more[aria-expanded="true"] + .sync-more-menu {
	display: grid;
}

.sync-more-menu a {
	padding: 9px 12px;
	border-radius: var(--r-s);
	color: var(--text);
	font-weight: 550;
	text-decoration: none;
	white-space: nowrap;
}

.sync-more-menu a:hover {
	background: var(--mist);
}

.sync-ghost {
	border-color: color-mix(in srgb, var(--on-dark) 28%, transparent);
	background: transparent;
	color: var(--on-dark);
}

.sync-ghost:hover {
	border-color: var(--on-dark);
	background: transparent;
}

.sync-ghost:disabled {
	border-style: dashed;
	color: var(--on-dark-muted);
	cursor: default;
}

.sync-ghost:disabled:hover {
	border-color: color-mix(in srgb, var(--on-dark) 28%, transparent);
}

.sync-hero .button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.sync-version {
	margin: 22px 0 0;
	font-size: 0.95rem;
	color: var(--on-dark-muted);
}

.sync-version a {
	color: var(--frog-bright);
}

.sync-version .beta-pill {
	background: var(--pond-2);
	color: var(--frog-bright);
}

/* ---------- the sections: words beside a picture */

.sync-split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(40px, 6vw, 88px);
	align-items: center;
}

.sync-copy p {
	margin: 18px 0 0;
	max-width: 44ch;
	font-size: 1.2rem;
	color: var(--muted);
}

.sync-points {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px 20px;
	margin: 32px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--hair);
}

.sync-points dt {
	font-weight: 650;
}

.sync-points dd {
	margin: 0;
	color: var(--muted);
}

.sync-shot {
	justify-self: center;
	width: min(100%, 420px);
	border-radius: 10px;
	box-shadow: 0 1px 0 rgb(20 37 26 / 0.06), 0 24px 60px -20px rgb(20 37 26 / 0.45);
}

/* ---------- LTC in, MTC out: the wave scrolls in, LeapSync counts, frames go out along the lines */

.flow {
	display: grid;
	grid-template-columns: auto 64px auto 64px auto;
	align-items: center;
	justify-content: center;
}

.flow-node {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 18px;
	border: 1.5px solid var(--hair);
	border-radius: var(--r-m);
	background: var(--paper);
	font-weight: 650;
	white-space: nowrap;
}

.flow-wave {
	width: 96px;
	height: 28px;
	overflow: hidden;
}

.flow-wave svg {
	width: 192px;
	height: 28px;
	fill: none;
	stroke: var(--frog-deep);
	stroke-width: 2;
	stroke-linejoin: round;
	animation: flow-wave 1.2s linear infinite;
}

@keyframes flow-wave {
	to {
		transform: translateX(-64px);
	}
}

.flow-app {
	gap: 8px;
	padding: 18px 20px 16px;
	border-color: var(--pond);
	background: var(--pond);
}

.flow-clock {
	font-size: 1.3rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
	color: var(--frog-bright);
}

.flow-clock i {
	font-style: normal;
	color: color-mix(in srgb, var(--frog-bright) 45%, var(--pond));
}

.flow-link svg {
	display: block;
	width: 64px;
	height: 110px;
	overflow: visible;
}

.flow-link path {
	fill: none;
	stroke: var(--frog);
	stroke-width: 2;
}

.flow-dot {
	fill: var(--frog-deep);
}

.flow-outs {
	display: grid;
	gap: 14px;
}

.flow-outs .flow-node {
	height: 48px;
	padding: 0 18px;
}

@media (prefers-reduced-motion: reduce) {
	.flow-wave svg {
		animation: none;
	}

	.flow-dot {
		display: none;
	}
}

@media (max-width: 900px) {
	.sync-split {
		grid-template-columns: 1fr;
	}
}

/* down the page, on a phone */
@media (max-width: 560px) {
	.flow {
		grid-template-columns: auto;
		justify-items: center;
	}

	.flow-link {
		width: 2px;
		height: 28px;
		background: var(--frog);
	}

	.flow-link svg {
		display: none;
	}

	.flow-outs {
		grid-template-columns: 1fr 1fr;
	}
}
