/* home.css: homepage-only styles. EVERY rule is scoped under .home so
   loading this site-wide cannot affect any page that lacks bodyClass: home. */

/* Opt the homepage out of the shared narrow column (main.css: main { max-width: 30rem }). */
.home main {
	max-width: none;
	padding: 0;
}

/* Section system: optional full-bleed background, constrained inner content. */
.home .section {
	padding: 5rem 1.5rem;
}

.home .section-inner {
	max-width: 64rem;
	margin: 0 auto;
}

.home .section.alt {
	background: var(--secondary-background);
}

.home .eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--tint);
	margin: 0 0 0.75rem 0;
}

.home h2.section-title {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	margin: 0 0 0.5rem 0;
	text-align: inherit;
}

/* In-section pull-quote, shared by every spotlight. */
.home .pull-quote {
	margin: 1.5rem 0 0 0;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--tint);
	background: var(--secondary-background);
	border-radius: 0 8px 8px 0;
}

.home .pull-quote p {
	margin: 0;
	color: var(--strong-text);
	font-style: italic;
	line-height: 1.5;
}

/* ---- Hero ---- */
.home .hero {
	text-align: center;
	padding-top: 4rem;
}

.home .hero img.app-icon {
	width: 7rem;
	height: 7rem;
}

.home .hero h1 {
	font-size: 3em;
	line-height: 1.05;
	margin: 1rem 0 0.5rem 0;
}

.home .hero h1 strong {
	font-weight: inherit;
	color: var(--tint);
}

.home .hero .subhead {
	max-width: 34rem;
	margin: 1rem auto 1rem auto;
	font-size: 1.1rem;
	color: var(--text);
}

.home .hero .clarity {
	margin: 0 auto 2rem auto;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--title);
}

.home .cta-row {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.home .cta-primary {
	display: inline-block;
	padding: 0.8em 1.8em;
	background: var(--tint);
	color: var(--background);
	text-decoration: none;
	font-weight: 600;
	border-radius: 6px;
	transition: opacity 0.2s ease;
}

.home .cta-primary:hover {
	opacity: 0.9;
}

.home .cta-secondary {
	display: inline-block;
	padding: 0.8em 1.8em;
	border: 1px solid var(--cell-border);
	color: var(--title);
	text-decoration: none;
	font-weight: 600;
	border-radius: 6px;
}

.home .cta-secondary:hover {
	background: var(--secondary-background);
}

.home .hero-image {
	max-width: 56rem;
	margin: 3rem auto 0 auto;
}

.home .hero-image img {
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.home .hero-apps {
	margin-top: 2.5rem;
}

.home .hero-apps-label {
	font-size: 0.8rem;
	color: var(--text);
	margin: 0 0 1rem 0;
}

.hero-apps-marquee {
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
	-webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}

.hero-apps-track {
	display: flex;
	width: max-content;
	padding: 0.5rem 0;
	animation: marquee 60s linear infinite;
	will-change: transform;
}

.hero-apps-track a {
	margin-right: 0.75rem;
}

.hero-apps-marquee:hover .hero-apps-track {
	animation-play-state: paused;
}

.hero-apps-track img {
	width: 64px;
	height: 64px;
	border-radius: 22%;
	transition: transform 0.1s ease-in-out;
}

.hero-apps-track a:hover img {
	transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
	.hero-apps-track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		width: auto;
	}
}

/* ---- App wall ---- */
.home .app-wall {
	text-align: center;
}

.home .app-wall .app-wall-sub {
	max-width: 40rem;
	margin: 0.75rem auto 0 auto;
	color: var(--text);
	font-size: 1rem;
}

.home .app-wall .app-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 2rem;
	text-align: left;
}

.home .app-wall .app-card {
	display: flex;
	gap: 0.9rem;
	padding: 1rem;
	border: 1px solid var(--cell-border);
	border-radius: 12px;
	background: var(--cell);
	text-decoration: none;
	transition: border-color .2s ease, transform .2s ease;
}

.home .app-wall .app-card:hover {
	border-color: var(--tint);
	transform: translateY(-2px);
}

.home .app-wall .app-card img {
	width: 54px;
	height: 54px;
	border-radius: 12px;
	flex: none;
}

.home .app-wall .app-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.home .app-wall .app-card-name {
	font-weight: 700;
	color: var(--title);
	font-size: 0.98rem;
}

.home .app-wall .app-card-desc {
	color: var(--text);
	font-size: 0.85rem;
	line-height: 1.4;
}

.home .app-wall .app-card-maker {
	color: var(--text);
	font-size: 0.78rem;
	opacity: 0.8;
	margin-top: 0.35rem;
}

/* On its own line so the badge width can never wrap or shift the text above it. */
.home .app-wall .app-card-proof {
	align-self: flex-start;
	margin-top: 0.5rem;
	font-size: 0.7rem;
	font-weight: 600;
	white-space: nowrap;
	color: var(--tint);
	border: 1px solid var(--tint);
	border-radius: 999px;
	padding: 0.08em 0.55em;
	line-height: 1.4;
}

@media (max-width: 900px) { .home .app-wall .app-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .home .app-wall .app-cards { grid-template-columns: 1fr; } }

/* ---- Pain (before/after) ---- */
.home .pain .ba {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
	margin-top: 2rem;
}

.home .pain h3 {
	font-size: 1rem;
	margin: 0 0 0.75rem 0;
}

.home .pain ol.timed {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--text);
	line-height: 1.6;
	font-size: 0.9rem;
	counter-reset: step;
}

.home .pain ol.timed li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	height: 2.4rem;
	box-sizing: border-box;
	overflow: hidden;
	line-height: 1;
	border-bottom: 1px solid var(--cell-border);
}

.home .pain ol.timed li:last-child {
	border-bottom: 0;
}

.home .pain .before ol.timed .step {
	counter-increment: step;
}

.home .pain .before ol.timed .step::before {
	content: counter(step) ".";
	color: var(--strong-text);
	margin-right: 0.5em;
	font-variant-numeric: tabular-nums;
}

.home .pain .after ol.timed .step {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: var(--strong-text);
}

.home .pain .after .prompt {
	color: var(--tint);
	margin-right: 0.4em;
}

.home .pain ol.timed .t {
	flex: none;
	color: var(--text);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
}

.home .pain .time-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 1rem 0 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid var(--cell-border);
	color: var(--text);
	font-size: 0.9rem;
}

.home .pain .time-total strong {
	color: var(--strong-text);
	font-size: 1.05rem;
}

.home .pain .after-total strong {
	color: var(--tint);
}

.home .pain .lede {
	margin: 0;
	color: var(--text);
	font-size: 0.95rem;
}

@media (max-width: 767px) {
	.home .pain .ba {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

/* ---- Spotlight rows (alternating media/text) ---- */
.home .spotlight .section-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.home .spotlight.reverse .spotlight-media {
	order: 2;
}

.home .spotlight-media img,
.home .spotlight-media video {
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.home .spotlight-body h2 {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	margin: 0 0 0.75rem 0;
	padding-bottom: 0;
	text-align: left;
}

.home .spotlight-body p {
	color: var(--text);
}

@media (max-width: 767px) {
	.home .spotlight .section-inner {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.home .spotlight.reverse .spotlight-media {
		order: 0;
	}
}

.home .spotlight-body pre {
	font-size: 0.8rem;
	border-radius: 8px;
	overflow-x: auto;
}

.home .install-label {
	margin: 1.5rem 0 0.5rem;
	font-size: 0.9rem;
	color: color-mix(in srgb, var(--text), transparent 25%);
}
.home .install-cmd {
	position: relative;
	margin: 0;
	padding: 0.85rem 5rem 0.85rem 1rem;
	border: 1px solid var(--cell-border);
	border-radius: 8px;
	background: var(--cell);
	color: var(--strong-text);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.home .install-cmd code { font-size: 0.85rem; }
.home .install-cmd .copy-button {
	position: absolute;
	top: 50%;
	right: 0.7rem;
	transform: translateY(-50%);
	padding: 0.3rem 0.7rem;
	font-size: 0.75rem;
	border: 1px solid var(--cell-border);
	border-radius: 6px;
	background: var(--background);
	color: var(--text);
	cursor: pointer;
}
.home .install-cmd .copy-button:hover { color: var(--strong-text); }

/* ---- Your stack, your rules ---- */
/* Lock-in vs no-lock-in comparison */
.home .lockin-compare {
	border: 1px solid var(--cell-border);
	border-radius: 12px;
	overflow: hidden;
	background: var(--cell);
}
.home .lockin-compare .lc-row {
	display: grid;
	grid-template-columns: 5.5rem 1fr 1fr;
	gap: 0.5rem;
	align-items: center;
	padding: 0.7rem 0.9rem;
	border-bottom: 1px solid var(--cell-border);
	font-size: 0.82rem;
}
.home .lockin-compare .lc-row:last-child { border-bottom: 0; }
.home .lockin-compare .lc-dim { color: var(--text); font-weight: 600; }
.home .lockin-compare .lc-bad {
	color: var(--text); opacity: 0.6;
	text-decoration: line-through;
	text-decoration-color: color-mix(in srgb, var(--text), transparent 60%);
}
.home .lockin-compare .lc-good { color: var(--strong-text); font-weight: 500; }
.home .lockin-compare .lc-good::before { content: "✓ "; color: var(--tint); font-weight: 700; }
/* header row */
.home .lockin-compare .lc-head { background: color-mix(in srgb, var(--tint), transparent 92%); }
.home .lockin-compare .lc-head span { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 1; }
.home .lockin-compare .lc-head .lc-bad { text-decoration: none; opacity: 0.7; font-weight: 700; }
.home .lockin-compare .lc-head .lc-good { color: var(--tint); font-weight: 700; }
.home .lockin-compare .lc-head .lc-good::before { content: ""; }

/* ---- CLI & agents ---- */
.home .cli-window {
	border: 1px solid var(--cell-border);
	border-radius: 12px;
	overflow: hidden;
	background: var(--cell);
}
.home .cli-window .cli-bar {
	display: flex;
	gap: 0.45rem;
	padding: 0.7rem 0.9rem;
	border-bottom: 1px solid var(--cell-border);
}
.home .cli-window .cli-bar span {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--text), transparent 70%);
}
.home .cli-window .cli-body {
	margin: 0;
	padding: 1.1rem 1.2rem;
	font-size: 0.85rem;
	line-height: 1.7;
	overflow-x: auto;
	color: var(--text);
}
.home .cli-window .cli-cmd { color: var(--strong-text); font-weight: 600; }
.home .cli-window .cli-ok { color: var(--tint); font-weight: 700; }
.home .cli-window .cli-live { color: var(--strong-text); font-weight: 600; }

.home .agent-chat .chat-turn {
	margin: 0 0 0.7rem;
	display: flex;
	gap: 0.6rem;
}
.home .agent-chat .chat-role {
	flex: none;
	min-width: 3.4rem;
	font-weight: 700;
	color: color-mix(in srgb, var(--text), transparent 45%);
}
.home .agent-chat .chat-you .chat-role { color: var(--strong-text); }
.home .agent-chat .chat-agent .chat-role { color: var(--tint); }
.home .agent-chat .chat-log {
	margin: 0 0 0.7rem;
	padding: 0 0 0 4rem;
	color: var(--text);
}

/* ---- Updates ---- */
.home .updates ul {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem 1.5rem;
}

.home .updates li {
	padding-left: 1.4em;
	position: relative;
	color: var(--text);
	line-height: 1.5;
}

.home .updates li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--tint);
	font-weight: 700;
}

@media (max-width: 767px) {
	.home .updates ul {
		grid-template-columns: 1fr;
	}
}

/* ---- Pricing teaser ---- */
.home .price-teaser {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 2.5rem 0;
}

.home .price-teaser .tier {
	padding: 0 2rem;
}

.home .price-teaser .tier + .tier {
	border-left: 1px solid var(--cell-border);
}

.home .price-teaser .tier strong {
	display: block;
	font-family: ui-serif, Georgia, serif;
	color: var(--title);
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.home .price-teaser .tier p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text);
}

/* ---- Pricing teaser: card layout on the standard dark theme ---- */
.home .pricing-teaser-section .price-teaser {
	gap: 1rem;
	align-items: stretch;
}

/* Cards mirror .app-card: dark cell, subtle border. */
.home .pricing-teaser-section .tier {
	display: flex;
	flex-direction: column;
	padding: 2rem 1.5rem;
	background: var(--cell);
	border: 1px solid var(--cell-border);
	border-radius: 12px;
	text-align: center;
}

.home .pricing-teaser-section .tier + .tier {
	border-left: 1px solid var(--cell-border);
}

.home .pricing-teaser-section .tier strong {
	font-size: 1.1rem;
	margin-bottom: 0.25rem;
}

.home .pricing-teaser-section .tier .price {
	margin-bottom: 0.25rem;
	color: var(--title);
}

.home .pricing-teaser-section .tier .price .amount {
	font-family: ui-serif, Georgia, serif;
	font-size: 2.4rem;
	font-weight: 700;
}

.home .pricing-teaser-section .tier .price .period {
	font-size: 0.95rem;
	color: var(--text);
}

.home .pricing-teaser-section .tier .price-alt {
	margin: 0;
	font-size: 0.8rem;
	color: var(--text);
}

.home .pricing-teaser-section .tier-features {
	list-style: none;
	padding: 0;
	margin: 1.25rem 0;
	text-align: left;
}

.home .pricing-teaser-section .tier-features li {
	position: relative;
	padding-left: 1.5em;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	color: var(--text);
}

.home .pricing-teaser-section .tier-features li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--tint);
	font-weight: 700;
}

.home .pricing-teaser-section .tier-cta {
	margin-top: auto;
	display: block;
	padding: 0.7em 1.2em;
	border: 1px solid var(--cell-border);
	border-radius: 6px;
	color: var(--title);
	font-weight: 600;
	text-decoration: none;
}

.home .pricing-teaser-section .tier-cta:hover {
	background: var(--secondary-background);
}

/* Featured card: tint accent, not a fill. */
.home .pricing-teaser-section .tier.featured {
	border-color: var(--tint);
}

.home .pricing-teaser-section .tier.featured .tier-cta {
	background: var(--tint);
	border-color: var(--tint);
	color: var(--background);
}

.home .pricing-teaser-section .tier.featured .tier-cta:hover {
	background: var(--tint);
	opacity: 0.9;
}

.home .pricing-teaser-section .foss-note {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text);
}

@media (max-width: 767px) {
	.home .price-teaser {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

/* ---- Final CTA ---- */
.home .final-cta {
	text-align: center;
}

.home .final-cta h2 {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	margin: 0 0 0.75rem 0;
}

.home .final-cta .final-sub {
	margin: 0 0 1.5rem 0;
	font-size: 1.05rem;
	color: var(--text-muted, var(--text));
}

.home .final-cta .support-line {
	margin-top: 1.5rem;
	font-size: 0.9rem;
	color: var(--text);
}

.home .final-cta .newsletter-line {
	margin-top: 0.5rem;
	font-size: 0.9rem;
	color: var(--text);
}

/* --- Founder / trust section --- */
.home .founder { text-align: center; }
.home .founder .founder-note {
	max-width: 42rem;
	margin: 2rem auto 0 auto;
	text-align: left;
}
.home .founder .founder-head {
	display: flex; align-items: center; gap: 0.9rem;
	margin-bottom: 1.5rem;
}
.home .founder .founder-head .founder-avatar {
	width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; flex: none;
	border: 1px solid var(--cell-border);
}
.home .founder .founder-head strong { display: block; color: var(--title); font-size: 1.1rem; }
.home .founder .founder-head span { color: var(--text); font-size: 0.85rem; }
.home .founder .founder-note p {
	margin: 0 0 1.1rem 0;
	color: var(--text);
	font-size: 1.02rem;
	line-height: 1.7;
}
.home .founder .founder-note em { color: var(--strong-text); font-style: normal; font-weight: 600; }
.home .founder .founder-note a { color: var(--tint); text-decoration: none; }
.home .founder .founder-note a:hover { text-decoration: underline; }
.home .founder .founder-links { font-size: 0.9rem; margin-top: 0.5rem; }
