/* Focus Buddy landing page.
   Self-contained: no external fonts or assets, so it renders offline and inside
   the Hugging Face Space sandbox. */

:root {
	--bg: #0f1020;
	--bg-soft: #191a33;
	--card: #1e1f3d;
	--border: #2e3060;
	--text: #ececf5;
	--muted: #a3a3c2;
	--accent: #8b7cf6;
	--accent-2: #f472b6;
	--radius: 14px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	line-height: 1.6;
}

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

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
}

.hero {
	padding: 4rem 1.5rem 3rem;
	text-align: center;
	background: radial-gradient(120% 100% at 50% 0%, #2a2358 0%, var(--bg) 70%);
	border-bottom: 1px solid var(--border);
}

.app-icon {
	font-size: 3.5rem;
	line-height: 1;
}

.hero h1 {
	margin: 0.6rem 0 0.4rem;
	font-size: clamp(2rem, 6vw, 3rem);
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.tagline {
	margin: 0 auto;
	max-width: 34rem;
	color: var(--muted);
	font-size: 1.1rem;
}

.pill-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.pill {
	padding: 0.3rem 0.85rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--bg-soft);
	color: var(--muted);
	font-size: 0.85rem;
}

.container {
	max-width: 64rem;
	margin: 0 auto;
	padding: 2rem 1.5rem 3rem;
	display: grid;
	gap: 1.25rem;
}

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
}

.card h2 {
	margin-top: 0;
	font-size: 1.25rem;
}

.habit-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 1rem;
	margin-top: 1.25rem;
}

.habit {
	display: grid;
	gap: 0.25rem;
	padding: 1rem;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.habit-icon {
	font-size: 1.6rem;
}

.habit span:last-child {
	color: var(--muted);
	font-size: 0.9rem;
}

pre {
	overflow-x: auto;
	padding: 1rem;
	background: #0b0b18;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

pre code {
	color: #d7d7ee;
}

.comment {
	color: #6f6f95;
}

.fine {
	color: var(--muted);
	font-size: 0.9rem;
}

.flow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.step {
	padding: 0.4rem 0.75rem;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 8px;
	font-size: 0.9rem;
}

.arrow {
	color: var(--accent);
}

.footer {
	padding: 2rem 1.5rem;
	text-align: center;
	color: var(--muted);
	border-top: 1px solid var(--border);
	font-size: 0.9rem;
}

.bench {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0 6px;
	font-size: 0.95rem;
}

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

.bench th {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted);
	font-weight: 600;
}

.bench tr:last-child td {
	border-bottom: 0;
}

.bench tr.win td {
	font-weight: 600;
	color: var(--accent);
}

.bench th:nth-child(n + 2),
.bench td:nth-child(n + 2) {
	text-align: right;
	white-space: nowrap;
}

/* --- hero art -------------------------------------------------------- */
.hero-art {
	display: block;
	width: 100%;
	max-width: 440px;
	margin: 0 auto 22px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.pill.strong {
	border-color: var(--accent);
	color: var(--text);
	background: color-mix(in srgb, var(--accent) 18%, transparent);
}

/* --- demo video ------------------------------------------------------ */
.demo {
	display: block;
	width: 100%;
	max-width: 380px;
	margin: 4px auto 14px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: #000;
}

/* --- the cost comparison --------------------------------------------- */
.card.highlight {
	border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.cost-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.cost {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-soft);
}

.cost-label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	font-weight: 600;
}

.cost-value {
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.1;
}

.cost-value.ok {
	color: #4ade80;
}

.cost-note {
	font-size: 0.86rem;
	color: var(--muted);
}

/* --- inline tags on the habit cards ---------------------------------- */
.tag {
	align-self: flex-start;
	margin-top: 4px;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 2px 8px;
	border-radius: 20px;
	border: 1px solid var(--border);
	color: var(--muted);
}

.tag.ok {
	color: #4ade80;
	border-color: color-mix(in srgb, #4ade80 45%, transparent);
}

.bench .dim {
	color: var(--muted);
	font-weight: 400;
}

.card h3 {
	font-size: 1rem;
	margin: 22px 0 6px;
}
