/* The marketing pages (cirqueskillbook.app/, /studios, /pricing): plain HTML and CSS in the app's papery
   journal look (src/app.css). No framework, no tracking. */
:root {
	color-scheme: light;
	--paper: #f4eee2;
	--card: #fffdf8;
	--ink: #2e2438;
	--ink-2: #4a4052;
	--muted: #6b6170;
	--line: rgba(46, 36, 56, 0.14);
	--teal: #1f5c5b;
	--teal-dark: #163f3f;
	--teal-tint: rgba(31, 92, 91, 0.1);
	--marigold: #e3a33b;
	--marigold-ink: #8f5f12;
	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Work Sans', system-ui, sans-serif;
	--font-hand: 'Caveat', cursive;
	--shadow-card: 0 1px 0 rgba(46, 36, 56, 0.06), 0 10px 24px rgba(46, 36, 56, 0.08);
	--radius: 8px;
	--wide: 1080px;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	color: var(--ink);
	background-color: var(--paper);
	background-image: radial-gradient(rgba(46, 36, 56, 0.07) 1px, transparent 1.2px);
	background-size: 14px 14px;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
}

h1 {
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	letter-spacing: -0.01em;
}

h2 {
	font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

h3 {
	font-size: 1.2rem;
}

p {
	margin: 0;
}

a {
	color: var(--teal);
}

a:hover {
	color: var(--teal-dark);
}

.wrap {
	max-width: var(--wide);
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

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

.small {
	font-size: 0.92rem;
}

.hand {
	font-family: var(--font-hand);
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--teal);
}

.eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--teal);
}

/* Header ------------------------------------------------------------------ */

.site-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 18px;
	padding-bottom: 18px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
}

.brand img {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	box-shadow: var(--shadow-card);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.site-nav a {
	text-decoration: none;
	font-weight: 500;
}

.site-nav a[aria-current='page'] {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Buttons ----------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 20px;
	border: 1.5px solid var(--ink);
	border-radius: 12px;
	background: var(--card);
	color: var(--ink);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.btn:hover {
	color: var(--ink);
	background: #fff;
}

.btn.primary {
	background: var(--teal);
	border-color: var(--teal);
	color: #fff;
}

.btn.primary:hover {
	background: var(--teal-dark);
	color: #fff;
}

.btn .sub {
	display: block;
	font-size: 0.72rem;
	font-weight: 500;
	opacity: 0.8;
	line-height: 1.1;
}

.btn.store {
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	line-height: 1.2;
}

.btn[aria-disabled='true'] {
	opacity: 0.6;
	cursor: default;
}

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

/* Sections ---------------------------------------------------------------- */

section {
	padding: 56px 0;
}

.hero {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	align-items: center;
	padding-top: 28px;
}

.hero .lede {
	font-size: 1.2rem;
	color: var(--ink-2);
	max-width: 34em;
}

.phones {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 18px;
	padding: 28px 22px;
	border-radius: 24px;
	/* A backdrop, so the screenshots' paper doesn't run into the page's. */
	background: linear-gradient(150deg, rgba(31, 92, 91, 0.16), rgba(227, 163, 59, 0.24));
}

.band .phones {
	background: linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(227, 163, 59, 0.3));
}

/* Each screenshot in a phone-like frame (whole phone screens, from scripts/store-screenshots). */
.phone {
	width: 100%;
	max-width: 220px;
	height: auto;
	border: 7px solid #241c2c;
	border-radius: 28px;
	background: #241c2c;
	box-shadow: 0 18px 36px rgba(46, 36, 56, 0.28);
}

.phones .phone:nth-child(2) {
	margin-top: 40px;
}

/* Store badges: Apple's and Google's official artwork, unchanged. */
.badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.badges img {
	display: block;
	height: 48px;
	width: auto;
}

.badges .soon {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.badges .soon img {
	opacity: 0.55;
}

.card {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	padding: 22px;
}

.tape {
	position: relative;
}

.tape::before {
	content: '';
	position: absolute;
	top: -10px;
	left: 50%;
	width: 84px;
	height: 20px;
	transform: translateX(-50%) rotate(-2deg);
	background: rgba(227, 163, 59, 0.55);
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 22px;
}

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.band {
	background: var(--teal);
	color: #fff;
}

.band a:not(.btn) {
	color: #fff;
}

.band .btn.outline {
	background: transparent;
	border-color: #fff;
	color: #fff;
}

.band .eyebrow,
.band .hand {
	color: #f2d6a2;
}

.band .card {
	color: var(--ink);
}

.band .card a {
	color: var(--teal);
}

.steps {
	counter-reset: step;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.steps li {
	counter-increment: step;
}

.steps li::before {
	content: counter(step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--marigold);
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
}

blockquote {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.25rem;
	line-height: 1.4;
}

blockquote footer {
	margin-top: 10px;
	font-family: var(--font-body);
	font-size: 0.92rem;
	color: var(--muted);
}

ul.ticks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

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

ul.ticks li::before {
	content: '✓';
	position: absolute;
	left: 4px;
	color: var(--teal);
	font-weight: 700;
}

ul.ticks li.no::before {
	content: '–';
	color: var(--muted);
}

.built {
	gap: 18px;
	border-left: 4px solid var(--marigold);
}

.built .grid {
	margin-top: 6px;
}

/* Pricing ----------------------------------------------------------------- */

.price {
	font-family: var(--font-display);
	font-size: 2.6rem;
	font-weight: 600;
	line-height: 1;
}

.price small {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 500;
	color: var(--muted);
}

.notice {
	padding: 14px 18px;
	border-radius: 10px;
	background: rgba(227, 163, 59, 0.2);
	color: var(--marigold-ink);
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	text-align: left;
	padding: 10px 8px;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

th {
	font-weight: 600;
}

.compare col.premium {
	background: var(--teal-tint);
}

.compare col + col {
	width: 20%;
}

.compare td,
.compare thead th:not(:first-child) {
	text-align: center;
}

.compare .premium-head {
	color: var(--teal);
	font-family: var(--font-display);
	font-size: 1.1rem;
}

.compare td:nth-child(2) {
	font-weight: 600;
	color: var(--teal-dark);
}

.compare .priceless th,
.compare .priceless td {
	border-bottom: none;
	padding-top: 16px;
}

.compare .priceless td {
	font-family: var(--font-hand);
	font-size: 1.7rem;
	line-height: 1;
	color: var(--marigold-ink);
	background: var(--card);
	text-align: center;
}

details {
	border-bottom: 1px solid var(--line);
	padding: 14px 0;
}

summary {
	font-weight: 600;
	cursor: pointer;
}

details p {
	margin-top: 8px;
	color: var(--ink-2);
}

/* Footer ------------------------------------------------------------------ */

.site-foot {
	padding-top: 36px;
	padding-bottom: 48px;
	border-top: 1px solid var(--line);
	margin-top: 24px;
}

.site-foot nav {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-bottom: 10px;
}

/* Narrow screens ---------------------------------------------------------- */

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

	.phones .phone {
		max-width: 160px;
		border-width: 5px;
		border-radius: 22px;
	}

	.phones {
		padding: 20px 14px;
	}

	.phones .phone:nth-child(3) {
		display: none;
	}

	section {
		padding: 40px 0;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 16px;
	}

	.site-nav {
		gap: 12px;
		font-size: 0.95rem;
	}

	.site-nav .optional {
		display: none;
	}

	.brand {
		font-size: 1rem;
	}

	.brand img {
		width: 30px;
		height: 30px;
	}
}
