/* ablefrog.com. Quiet and precise around one bold piece: the homepage's features bento. */

:root {
	--paper: #fff;
	--mist: #eef2e6;
	--pond: #14251a;
	--pond-2: #1f3424;
	--frog: #749338;
	--frog-deep: #56741f;
	--frog-bright: #b5cf78;
	--hair: #dce3cf;
	--text: #14251a;
	--muted: #556052;
	--on-dark: #e9efdc;
	--on-dark-muted: #a9b6a0;

	--display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
	--body: "Archivo", system-ui, sans-serif;

	--r-xl: 28px;
	--r-l: 22px;
	--r-m: 14px;
	--r-s: 10px;

	--wrap: 1100px;
	--gutter: clamp(18px, 4vw, 40px);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--frog-deep);
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1.5px;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--display);
	font-optical-sizing: auto;
	font-weight: 700;
	line-height: 1;
	text-wrap: balance;
}

h1 {
	font-size: clamp(3rem, 7.4vw, 6rem);
	letter-spacing: -0.035em;
	line-height: 0.95;
}

h2 {
	font-size: clamp(2.2rem, 4.4vw, 3.4rem);
	letter-spacing: -0.035em;
}

h3 {
	font-size: 1.4rem;
	font-weight: 650;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

p {
	margin: 0;
	text-wrap: pretty;
}

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

:focus-visible {
	outline: 3px solid var(--frog);
	outline-offset: 3px;
	border-radius: 6px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.section {
	padding: clamp(80px, 10vw, 136px) 0;
}

.page-top {
	padding-top: clamp(56px, 8vw, 104px);
}

.narrow {
	max-width: calc(760px + var(--gutter) * 2);
}

.section-mist {
	background: var(--mist);
}

.section-head {
	max-width: 620px;
	margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head p {
	margin-top: 16px;
	font-size: 1.2rem;
	color: var(--muted);
}

/* ---------- buttons */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 20px;
	border: 1.5px solid var(--frog-deep);
	border-radius: 999px;
	background: var(--frog-deep);
	color: #fff;
	font: inherit;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.button:hover {
	background: var(--pond);
	border-color: var(--pond);
}

.button-quiet {
	border-color: var(--hair);
	background: var(--paper);
	color: var(--text);
}

.button-quiet:hover {
	border-color: var(--text);
	background: var(--paper);
}

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

.button-ink:hover {
	border-color: #fff;
	background: #fff;
}

.button-big {
	padding: 15px 26px;
	font-size: 1.08rem;
}

.button-small {
	padding: 8px 16px;
}

/* ---------- header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: color-mix(in srgb, var(--paper) 90%, transparent);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s;
}

.site-header.scrolled {
	border-bottom-color: var(--hair);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 72px;
}

.brand img {
	width: 146px;
	height: auto;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.site-nav a:not(.button) {
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--text);
	font-weight: 550;
	text-decoration: none;
}

.site-nav a:not(.button):hover,
.site-nav a[aria-current="page"]:not(.button) {
	background: var(--mist);
}

.site-nav .button {
	margin-left: 10px;
}

.menu-button {
	display: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 1px solid var(--hair);
	border-radius: 12px;
	background: var(--paper);
	cursor: pointer;
}

.menu-button svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: var(--text);
	stroke-width: 2;
	stroke-linecap: round;
}

@media (max-width: 900px) {
	.menu-button {
		display: block;
	}

	.site-nav {
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		padding: 12px var(--gutter) 20px;
		background: var(--paper);
		border-bottom: 1px solid var(--hair);
	}

	.site-nav.open {
		display: flex;
	}

	.site-nav a:not(.button) {
		padding: 12px 14px;
		font-size: 1.1rem;
	}

	.site-nav .button {
		margin: 8px 0 0;
	}
}

/* ---------- hero: the headline, then the app on a dark stage */

.hero {
	padding-top: clamp(48px, 8vw, 104px);
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	align-items: end;
	gap: 32px clamp(32px, 5vw, 72px);
	margin-bottom: clamp(40px, 6vw, 72px);
}

.hero-title {
	max-width: 9.5em;
}

.hero-side {
	display: grid;
	gap: 22px;
	padding-bottom: 0.6em;
}

.hero-small {
	color: var(--muted);
	font-size: 1.1rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px;
}

.hero-other a {
	color: var(--muted);
	font-size: 0.95rem;
}

.stage {
	padding: clamp(20px, 5vw, 64px) clamp(16px, 5vw, 64px) 0;
	border-radius: var(--r-xl);
	background: var(--pond);
	overflow: hidden;
}

.stage-shot {
	margin: 0;
	overflow: hidden;
	border: 1px solid rgb(255 255 255 / 0.12);
	border-bottom: 0;
	border-radius: var(--r-m) var(--r-m) 0 0;
}

.stage-shot img {
	width: 100%;
}

@media (max-width: 860px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-side {
		padding-bottom: 0;
	}

	.hero-actions {
		justify-content: flex-start;
	}
}

/* the features follow the hero directly, now that it has no screenshot */
.hero + #features {
	padding-top: clamp(8px, 2vw, 24px);
}

.lead {
	max-width: 30ch;
	margin-bottom: clamp(28px, 4vw, 44px);
	font-family: var(--display);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--muted);
}

/* ---------- features: a bento of every feature, sized by how much it matters */

.bento {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 16px;
}

.tile {
	--pad: clamp(22px, 2.4vw, 32px);
	--shot-h: 240px;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	padding: var(--pad) var(--pad) 0;
	border-radius: var(--r-l);
	background: var(--mist);
}

.tile-text {
	display: grid;
	align-content: start;
	gap: 10px;
	max-width: 46ch;
	margin-bottom: 26px;
}

.tile-text p {
	color: var(--muted);
	font-size: 0.98rem;
	line-height: 1.55;
}

.tile-icon {
	width: 40px;
	height: 40px;
	margin-bottom: 6px;
	border-radius: 10px;
}

/* screenshots run off the tile's bottom and right edges, like a window behind it */
.tile-shot {
	flex: none;
	height: var(--shot-h);
	margin: auto calc(var(--pad) * -1) 0 0;
	overflow: hidden;
	border: 1px solid rgb(20 37 26 / 0.14);
	border-right: 0;
	border-bottom: 0;
	border-radius: var(--r-s) 0 0 0;
	background: #1b1d1f;
}

.tile-shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left top;
}

.tile-dark {
	background: var(--pond);
	color: var(--on-dark);
}

.tile-dark .tile-text p {
	color: var(--on-dark-muted);
}

.tile-dark .tile-shot {
	border-color: rgb(255 255 255 / 0.14);
}

/* the setlist generator leads: tall, dark, its shot filling the height */
.t-setlist {
	grid-column: span 7;
	grid-row: span 2;
}

.t-setlist h3 {
	font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}

.t-setlist .tile-text p {
	font-size: 1.08rem;
}

.t-setlist .tile-shot {
	flex: 1;
	height: auto;
	min-height: 320px;
}

.t-setlist .tile-text {
	margin-bottom: 34px;
}

.t-cloud,
.t-builder {
	grid-column: span 5;
	--shot-h: 210px;
}

.t-tracks,
.t-pco {
	grid-column: span 6;
	--shot-h: 260px;
}

/* the cue panel is narrow: text beside it, the panel at its own size */
.t-pp {
	grid-column: span 7;
	display: grid;
	grid-template-columns: 1fr minmax(0, 300px);
	gap: 28px;
}

.t-pp .tile-shot {
	align-self: stretch;
	height: auto;
	min-height: 320px;
	margin: 0 calc(var(--pad) * -1) 0 0;
}

.t-ableset {
	grid-column: span 5;
	--shot-h: 280px;
}

.t-auto {
	grid-column: span 4;
	justify-content: space-between;
	padding-bottom: var(--pad);
}

.t-magic {
	grid-column: span 8;
	--shot-h: 230px;
}

.t-key,
.t-tc,
.t-export {
	grid-column: span 4;
	--shot-h: 200px;
}

/* an automation lane: tempo stepping between songs */
.lane {
	width: 100%;
	height: auto;
	margin-top: 28px;
}

.lane-line {
	fill: none;
	stroke: var(--frog-bright);
	stroke-width: 2;
	stroke-linejoin: round;
}

.lane-dot {
	fill: var(--pond);
	stroke: var(--frog-bright);
	stroke-width: 2;
}

.lane-floor {
	stroke: rgb(255 255 255 / 0.12);
	stroke-width: 1;
}

@media (max-width: 1020px) {
	.bento {
		grid-template-columns: repeat(6, 1fr);
	}

	.t-setlist {
		grid-column: span 6;
		grid-row: auto;
	}

	.t-setlist .tile-shot {
		flex: none;
		height: 380px;
	}

	.t-cloud,
	.t-builder,
	.t-tracks,
	.t-pco,
	.t-key,
	.t-tc,
	.t-auto {
		grid-column: span 3;
	}

	.t-pp,
	.t-ableset,
	.t-magic,
	.t-export {
		grid-column: span 6;
	}
}

@media (max-width: 760px) {
	.t-pp {
		display: flex;
	}

	.t-pp .tile-shot {
		height: 300px;
		min-height: 0;
		margin-top: auto;
	}
}

@media (max-width: 640px) {
	.bento {
		grid-template-columns: 1fr;
	}

	.bento > .tile {
		grid-column: auto;
	}

	.tile {
		--shot-h: 220px;
	}
}

/* ---------- pricing */

.price-cards {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: stretch;
	gap: 16px;
}

.price-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp(26px, 3vw, 40px);
	border: 1px solid var(--hair);
	border-radius: var(--r-l);
	background: var(--paper);
}

.price-card h3 {
	font-size: 1.5rem;
}

.price-main {
	border-color: var(--pond);
	background: var(--pond);
	color: var(--on-dark);
}

.price-main h3 {
	font-size: 1.9rem;
}

.price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

.price-amount {
	font-family: var(--display);
	font-size: clamp(2.6rem, 4vw, 3.4rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
}

.price-note {
	color: var(--muted);
}

.price-main .price-note {
	color: var(--on-dark-muted);
}

.ticks {
	display: grid;
	gap: 9px;
}

.ticks li {
	position: relative;
	padding-left: 28px;
}

.ticks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.42em;
	width: 12px;
	height: 7px;
	border-left: 2px solid var(--frog);
	border-bottom: 2px solid var(--frog);
	rotate: -45deg;
}

.price-main .ticks li::before {
	border-color: var(--frog-bright);
}

.price-card .button {
	align-self: flex-start;
	margin-top: auto;
}

/* cloud storage: one row per plan, the size first */
.tiers {
	display: grid;
	margin: 0;
	border-top: 1px solid var(--hair);
}

.tier {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--hair);
}

.tier dt {
	font-family: var(--display);
	font-size: 1.65rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.tier dd {
	margin: 0;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.tier dd span {
	color: var(--muted);
	font-weight: 400;
}

.fine-print {
	margin-top: 22px;
	color: var(--muted);
	font-size: 0.92rem;
}

/* the pricing page adds the renewal card */
.price-cards:not(.price-cards-two) {
	grid-template-columns: 1.1fr 0.85fr 1.15fr;
}

@media (max-width: 1020px) {
	.price-cards:not(.price-cards-two) {
		grid-template-columns: 1fr 1fr;
	}

	.price-cards:not(.price-cards-two) .price-main {
		grid-column: 1 / -1;
	}
}

@media (max-width: 860px) {
	.price-cards,
	.price-cards:not(.price-cards-two) {
		grid-template-columns: 1fr;
	}
}

.price-card > p:not(.price):not(.price-note) {
	color: var(--muted);
}

/* ---------- cloud */

.cloud {
	background: var(--pond);
	color: var(--on-dark);
}

.cloud-inner {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	align-items: center;
	gap: clamp(32px, 6vw, 80px);
}

.cloud-text p {
	margin-top: 18px;
	max-width: 52ch;
	font-size: 1.15rem;
	color: var(--on-dark-muted);
}

.cloud-art {
	justify-self: center;
	width: min(340px, 70vw);
}

.cloud-shape {
	fill: var(--pond-2);
	stroke: var(--frog-bright);
	stroke-width: 2.5;
	stroke-linejoin: round;
}

.cloud-arrow {
	fill: none;
	stroke: var(--frog-bright);
	stroke-width: 5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 820px) {
	.cloud-inner {
		grid-template-columns: 1fr;
	}

	.cloud-art {
		justify-self: start;
		width: 220px;
	}
}

/* ---------- call to action */

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

.cta-inner p {
	margin-top: 16px;
	font-size: 1.2rem;
	color: var(--muted);
}

.download-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 30px;
}

/* ---------- download page */

.download-inner {
	display: grid;
	gap: clamp(56px, 8vw, 88px);
	justify-items: center;
}

.download-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.download-head > p {
	margin-top: 16px;
	font-size: 1.2rem;
	color: var(--muted);
}

.download-head .download-started {
	margin-top: 22px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--mist);
	color: var(--text);
	font-size: 1rem;
}

.download-head .version-line {
	margin-top: 22px;
	font-size: 0.95rem;
}

.requirements {
	width: 100%;
	max-width: 620px;
	padding: clamp(26px, 3vw, 36px);
	border-radius: var(--r-l);
	background: var(--mist);
}

.requirements h2 {
	margin-bottom: 20px;
	font-size: 1.8rem;
}

/* ---------- questions */

.narrow h1,
.narrow h2 {
	margin-bottom: clamp(28px, 4vw, 44px);
}

.faq-list {
	border-top: 1px solid var(--hair);
}

.faq-item {
	border-bottom: 1px solid var(--hair);
}

.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 0;
	font-family: var(--display);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary:hover {
	color: var(--frog-deep);
}

.faq-item p {
	max-width: 62ch;
	padding: 0 0 24px;
	color: var(--muted);
}

/* a plus that becomes a minus when open */
.faq-mark {
	position: relative;
	flex: none;
	width: 16px;
	height: 16px;
}

.faq-mark::before,
.faq-mark::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
	translate: 0 -50%;
	transition: rotate 0.2s ease;
}

.faq-mark::after {
	rotate: 90deg;
}

.faq-item[open] .faq-mark::after {
	rotate: 0deg;
}

/* ---------- 404 */

.lost-inner {
	display: grid;
	justify-items: start;
	gap: 18px;
	padding-bottom: clamp(40px, 8vw, 120px);
}

.lost-inner h1 {
	max-width: 9em;
}

.lost-inner p {
	font-size: 1.2rem;
	color: var(--muted);
}

.lost-inner .button {
	margin-top: 12px;
}

/* ---------- footer */

.site-footer {
	padding: 64px 0 40px;
	background: var(--pond);
	color: var(--on-dark-muted);
}

.footer-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 28px 40px;
}

.footer-brand img {
	width: 150px;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 6px 22px;
	max-width: 420px;
}

.site-footer a {
	color: var(--on-dark);
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.footer-contact a {
	color: var(--frog-bright);
}

.back-to-top {
	justify-self: end;
	font-weight: 600;
}

.footer-small {
	grid-column: 1 / -1;
	display: grid;
	gap: 8px;
	padding-top: 24px;
	border-top: 1px solid rgb(255 255 255 / 0.1);
	font-size: 0.85rem;
	color: #7f8c78;
}

@media (max-width: 700px) {
	.footer-inner {
		grid-template-columns: 1fr;
	}

	.back-to-top {
		justify-self: start;
	}
}

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

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
