:root {
	--bg: #0a0a0a;
	--bg-alt: #121212;
	--fg: #f5f5f5;
	--muted: #a3a3a3;
	--muted-2: #737373;
	--accent: #ef4444;
	--accent-dim: #b91c1c;
	--accent-soft: rgba(239, 68, 68, 0.12);
	--ok: #10b981;
	--line: #262626;
	--line-2: #1c1c1c;
	--radius: 10px;
	--radius-sm: 6px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--fg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
svg { display: block; }

/* ────────────────────────────────────────────────────────────
   LAYOUT
   ──────────────────────────────────────────────────────────── */
.nav, .hero, .section, .site-footer > * {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.section {
	padding-top: 96px;
	padding-bottom: 96px;
}
.section.alt { background: var(--bg-alt); max-width: none; padding-left: 0; padding-right: 0; }
.section.alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 12px;
	color: var(--accent);
	margin: 0 0 8px;
	font-weight: 600;
}
.section h2 {
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.15;
	margin: 0 0 16px;
	letter-spacing: -0.02em;
}
.section-body { max-width: 680px; font-size: 18px; color: var(--muted); }

/* ────────────────────────────────────────────────────────────
   NAV
   ──────────────────────────────────────────────────────────── */
.nav {
	display: flex; justify-content: space-between; align-items: center;
	padding-top: 24px; padding-bottom: 24px;
	border-bottom: 1px solid var(--line-2);
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 17px; text-decoration: none; }
.brand img { border-radius: 6px; }
.nav nav { display: flex; gap: 28px; font-size: 14px; }
.nav nav a { color: var(--muted); text-decoration: none; }
.nav nav a:hover { color: var(--fg); }
@media (max-width: 640px) { .nav nav { display: none; } }

/* ────────────────────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────────────────────── */
.hero {
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px;
	padding-top: 96px; padding-bottom: 96px; align-items: center;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero h1 {
	font-size: clamp(36px, 5.5vw, 60px);
	line-height: 1.02;
	margin: 0 0 20px;
	letter-spacing: -0.03em;
	font-weight: 800;
}
.hero h1 .brake-word {
	color: var(--fg);
	background-image: linear-gradient(var(--accent), var(--accent));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 100% 4px;
	padding-bottom: 6px;
}
.lede { font-size: 20px; color: var(--muted); margin: 0 0 32px; max-width: 52ch; }
.hero-proof { font-size: 13px; color: var(--muted-2); margin: 16px 0 0; max-width: 52ch; }
.hero-proof a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-art svg { width: 100%; max-width: 560px; height: auto; }

/* hero entrance animations for the chart */
@media (prefers-reduced-motion: no-preference) {
	.spend-curve {
		stroke-dasharray: 1200;
		stroke-dashoffset: 1200;
		animation: draw-curve 1100ms ease-out 200ms forwards;
	}
	.brake-bar {
		opacity: 0;
		animation: fade-in 400ms ease-out 1300ms forwards;
	}
}
@keyframes draw-curve {
	to { stroke-dashoffset: 0; }
}
@keyframes fade-in {
	to { opacity: 1; }
}

/* ────────────────────────────────────────────────────────────
   WAITLIST FORM
   ──────────────────────────────────────────────────────────── */
.waitlist { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.waitlist input[type=email] {
	flex: 1 1 260px; padding: 14px 16px;
	background: var(--bg-alt); border: 1px solid var(--line);
	border-radius: var(--radius); color: var(--fg); font: inherit;
}
.waitlist input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.waitlist button {
	padding: 14px 24px; background: var(--accent); color: #fff;
	border: 0; border-radius: var(--radius);
	font-weight: 600; cursor: pointer; font: inherit;
	transition: background .15s ease;
}
.waitlist button:hover { background: var(--accent-dim); }
.wl-msg { color: var(--muted); min-height: 1.4em; margin: 0; font-size: 14px; }

/* ────────────────────────────────────────────────────────────
   PROBLEM SECTION
   ──────────────────────────────────────────────────────────── */
.pain-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.pain-points li {
	padding: 20px 24px; background: var(--bg-alt);
	border: 1px solid var(--line); border-radius: var(--radius);
}
.pain-points strong { color: var(--fg); display: block; margin-bottom: 4px; }
.pain-points li > :not(strong) { color: var(--muted); }

/* ────────────────────────────────────────────────────────────
   HOW IT WORKS (steps)
   ──────────────────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding-top: 40px; }
.step-num {
	position: absolute; top: 0; left: 0;
	font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px;
	color: var(--accent); letter-spacing: 0.1em;
}
.steps h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
.steps p { color: var(--muted); margin: 0; }
.steps code, .faq code {
	font-family: var(--font-mono);
	font-size: 0.92em;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 1px 6px;
	color: var(--fg);
}

/* code sample under the how-it-works steps */
.code-sample {
	margin: 48px 0 0;
	padding: 24px 28px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: var(--font-mono);
	font-size: 14px;
	line-height: 1.7;
	color: var(--fg);
	overflow-x: auto;
	white-space: pre;
}
.code-sample .c-dim { color: var(--muted-2); }
.code-sample .c-red { color: var(--accent); }

/* ────────────────────────────────────────────────────────────
   FEATURES GRID
   ──────────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 700px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
	padding: 28px; background: var(--bg-alt);
	border: 1px solid var(--line); border-radius: var(--radius);
}
.feature-icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--accent); }
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature-card p { color: var(--muted); margin: 0; font-size: 15px; }

/* ────────────────────────────────────────────────────────────
   PRICING
   ──────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
	padding: 32px; background: var(--bg);
	border: 1px solid var(--line); border-radius: var(--radius);
	display: flex; flex-direction: column;
	position: relative;
}
.price-card.featured {
	border: 1px solid var(--accent);
	box-shadow: 0 0 0 1px var(--accent) inset;
}
.featured-badge {
	position: absolute; top: -12px; left: 20px;
	background: var(--accent); color: #fff; padding: 4px 12px;
	border-radius: 999px; font-size: 11px; font-weight: 700;
	letter-spacing: 0.05em; text-transform: uppercase;
	margin: 0;
}
.price-card h3 { font-size: 16px; margin: 0 0 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.price {
	font-size: 40px; font-weight: 700; margin: 0 0 4px;
	letter-spacing: -0.02em;
}
.price span { font-size: 16px; color: var(--muted); font-weight: 500; }
.price-for { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; flex: 1; }
.price-card li { padding-left: 20px; position: relative; color: var(--muted); font-size: 14px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-cta {
	display: inline-block; padding: 12px 20px;
	text-align: center; text-decoration: none;
	border: 1px solid var(--line); border-radius: var(--radius);
	color: var(--fg); font-weight: 500;
}
.price-cta.primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.price-cta.primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); }
.price-cta:hover { border-color: var(--accent); }

/* ────────────────────────────────────────────────────────────
   FAQ
   ──────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 8px; max-width: 760px; }
.faq details {
	background: var(--bg-alt); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 18px 24px;
}
.faq summary {
	cursor: pointer; font-weight: 500; font-size: 16px;
	list-style: none; position: relative; padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; position: absolute; right: 0; top: 0;
	font-size: 20px; color: var(--muted); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { margin-bottom: 12px; }
.faq p { color: var(--muted); margin: 0; }

/* ────────────────────────────────────────────────────────────
   FINAL CTA
   ──────────────────────────────────────────────────────────── */
.section.cta { text-align: center; background: var(--bg-alt); max-width: none; padding: 96px 24px; }
.section.cta h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; }
.section.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 32px; font-size: 18px; }

/* ────────────────────────────────────────────────────────────
   FACTORY RING — cross-links to sibling agent sites
   ──────────────────────────────────────────────────────────── */
.factory-ring {
	max-width: 1100px;
	margin: 0 auto;
	padding: 48px 24px;
	border-top: 1px solid var(--line-2);
}
.factory-ring h4 {
	font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
	color: var(--muted); margin: 0 0 16px; font-weight: 500;
}
.factory-ring ul {
	list-style: none; padding: 0; margin: 0;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px;
}
@media (max-width: 760px) { .factory-ring ul { grid-template-columns: 1fr; } }
.factory-ring li { font-size: 13px; color: var(--muted); }
.factory-ring a { color: var(--fg); text-decoration: none; font-weight: 500; margin-right: 4px; }
.factory-ring a:hover { color: var(--accent); }

/* ────────────────────────────────────────────────────────────
   SEO / BLOG / COMPARE page styles
   ──────────────────────────────────────────────────────────── */
.seo-article {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 24px 96px;
}
.seo-header { margin-bottom: 40px; }
.seo-header h1 {
	font-size: clamp(32px, 4vw, 44px);
	margin: 12px 0 16px;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.seo-tldr {
	background: var(--bg-alt);
	border-left: 3px solid var(--accent);
	padding: 20px 24px;
	margin: 32px 0;
	border-radius: 0 var(--radius) var(--radius) 0;
}
.seo-tldr h2 {
	font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
	color: var(--accent); margin: 0 0 8px;
}
.seo-tldr p { margin: 0; color: var(--fg); }
.seo-article h2 { font-size: 24px; margin: 48px 0 16px; letter-spacing: -0.01em; }
.seo-article h3 { font-size: 19px; margin: 28px 0 12px; }
.seo-article p, .seo-article li { color: var(--muted); }
.seo-article ol, .seo-article ul { padding-left: 24px; }

.compare-table {
	width: 100%; border-collapse: collapse; margin: 24px 0;
	font-size: 14px;
}
.compare-table th, .compare-table td {
	padding: 12px; border-bottom: 1px solid var(--line);
	text-align: left;
}
.compare-table th {
	font-weight: 600; color: var(--fg);
	background: var(--bg-alt);
}
.compare-table td:first-child { color: var(--muted); }

/* ────────────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────────────── */
.site-footer {
	border-top: 1px solid var(--line-2);
	padding: 64px 0 32px;
	color: var(--muted);
	font-size: 14px;
}
.footer-cols {
	display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
	margin-bottom: 48px;
}
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg); margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--fg); }
.footer-tagline { margin: 12px 0 0; max-width: 280px; line-height: 1.5; }
.footer-bottom {
	padding-top: 24px; border-top: 1px solid var(--line-2);
	font-size: 13px; color: var(--muted-2);
}
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ────────────────────────────────────────────────────────────
   UTILITIES
   ──────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ────────────────────────────────────────────────────────────
   MOTION
   ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
	.hero h1, .lede, .waitlist { animation: fadeUp .7s ease-out both; }
	.lede { animation-delay: .08s; }
	.waitlist { animation-delay: .16s; }
}
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
