/* Design tokens mirror the email-cascade-verifier.kadimi.com splash (daisyUI oklch values). */
:root {
	--base-100: oklch(98% 0 0);
	--base-200: oklch(96% 0.001 286.375);
	--base-300: oklch(92% 0.004 286.32);
	--base-content: oklch(21% 0.006 285.885);
	--primary: oklch(70% 0.213 47.604);
	--primary-content: oklch(98% 0.016 73.684);
	--success: oklch(70% 0.14 182.503);
	--error: oklch(58% 0.253 17.585);
	--warning: oklch(66% 0.179 58.318);
	--muted: oklch(45% 0.02 285);
	--radius: 0.75rem;
	--shadow: 0 10px 30px -12px oklch(21% 0.006 285.885 / 0.18);
}
@media (prefers-color-scheme: dark) {
	:root {
		--base-100: oklch(30.33% 0.016 252.42);
		--base-200: oklch(25.26% 0.014 253.1);
		--base-300: oklch(20.15% 0.012 254.09);
		--base-content: oklch(97.807% 0.029 256.847);
		--primary: oklch(58% 0.233 277.117);
		--primary-content: oklch(96% 0.018 272.314);
		--success: oklch(60% 0.118 184.704);
		--error: oklch(58% 0.253 17.585);
		--warning: oklch(66% 0.179 58.318);
		--muted: oklch(72% 0.02 256);
		--shadow: 0 10px 30px -12px oklch(0% 0 0 / 0.5);
	}
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--base-100);
	color: var(--base-content);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
code {
	background: var(--base-200);
	border: 1px solid var(--base-300);
	border-radius: 0.375rem;
	padding: 0.1rem 0.4rem;
	font-size: 0.85em;
}

.container { max-width: 64rem; margin-inline: auto; padding-inline: 1.5rem; }
.container-narrow { max-width: 46rem; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in oklab, var(--base-100) 82%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--base-300);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 3.75rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.brand-mark {
	display: flex; height: 2.1rem; width: 2.1rem; align-items: center; justify-content: center;
	background: var(--primary); color: var(--primary-content);
	border-radius: 0.65rem; box-shadow: 0 4px 14px -4px color-mix(in oklab, var(--primary) 60%, transparent);
	transition: transform 0.3s ease;
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-mark svg { height: 1.15rem; width: 1.15rem; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; font-size: 0.9rem; }
.nav-links a { text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 48rem) {
	.nav-links a:not(.btn) { display: none; }
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: 0.5rem;
	border-radius: 9999px; padding: 0.75rem 1.5rem;
	font-weight: 600; font-size: 0.95rem; text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
	background: var(--primary); color: var(--primary-content);
	box-shadow: 0 8px 20px -8px color-mix(in oklab, var(--primary) 65%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px color-mix(in oklab, var(--primary) 75%, transparent); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.text-link { font-weight: 600; font-size: 0.95rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.text-link:hover { color: var(--base-content); }

/* Hero */
.hero {
	position: relative; overflow: hidden;
	text-align: center; padding: 6.5rem 0 5.5rem;
}
.hero::before, .hero::after {
	content: ""; position: absolute; border-radius: 9999px; filter: blur(90px); pointer-events: none;
}
.hero::before { top: -12rem; left: 50%; transform: translateX(-50%); width: 56rem; height: 30rem; background: color-mix(in oklab, var(--primary) 18%, transparent); }
.hero::after { bottom: -14rem; right: -10rem; width: 26rem; height: 26rem; background: color-mix(in oklab, var(--success) 12%, transparent); }
.hero-inner { position: relative; }
.hero h1 {
	font-size: clamp(2.1rem, 5.5vw, 3.4rem);
	line-height: 1.12; letter-spacing: -0.02em; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.lead { max-width: 42rem; margin: 1.4rem auto 0; font-size: 1.1rem; color: var(--muted); }
.hero-actions { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }

.pill {
	display: inline-flex; align-items: center; gap: 0.55rem;
	border: 1px solid var(--base-300); background: var(--base-200);
	border-radius: 9999px; padding: 0.35rem 1rem;
	font-size: 0.8rem; font-weight: 600; color: var(--muted);
}
.pulse-dot { position: relative; height: 0.55rem; width: 0.55rem; border-radius: 9999px; background: var(--success); }
.pulse-dot::after {
	content: ""; position: absolute; inset: 0; border-radius: 9999px;
	background: var(--success); animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.4); } }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--base-200); }
.section h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -0.015em; text-align: center; }
.section-lead { max-width: 42rem; margin: 0.9rem auto 0; text-align: center; color: var(--muted); }

/* Chain diagram */
.chain {
	margin-top: 3rem; display: grid; gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}
.chain-node {
	position: relative; border: 1px solid var(--base-300); background: var(--base-100);
	border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
	display: flex; flex-direction: column; gap: 0.3rem;
	transition: transform 0.25s ease;
}
.chain-node:hover { transform: translateY(-4px); }
.chain-node:not(:first-child)::before {
	content: ""; position: absolute; top: 50%; left: -2rem;
	width: 2rem; height: 2px; background: var(--base-300);
	transform: translateY(-50%);
}
@media (max-width: 48rem) {
	.chain { grid-template-columns: 1fr; gap: 1.75rem; }
	.chain-node:not(:first-child)::before {
		top: -1.75rem; left: 1.5rem; width: 2px; height: 1.75rem; transform: none;
	}
}
.node-primary { border-color: color-mix(in oklab, var(--success) 55%, var(--base-300)); }
.chain-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.chain-name { font-weight: 700; }
.chain-status { font-size: 0.82rem; color: var(--success); font-weight: 600; }
.chain-status.muted { color: var(--muted); font-weight: 400; }
.chain-note { margin-top: 1.1rem; text-align: center; font-size: 0.9rem; color: var(--muted); }

/* Providers */
.provider-grid {
	margin-top: 2.5rem; display: grid; gap: 0.9rem;
	grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}
.provider-chip {
	display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
	border: 1px solid var(--base-300); background: var(--base-100);
	border-radius: var(--radius); padding: 1.1rem 0.6rem 0.9rem;
	font-weight: 600; font-size: 0.9rem; text-align: center;
	transition: transform 0.25s ease, border-color 0.25s ease;
}
.provider-chip:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--primary) 45%, var(--base-300)); }
.provider-chip img { height: 1.4rem; max-width: 7rem; object-fit: contain; }
.provider-chip small { color: var(--muted); font-weight: 400; }

/* Logs demo */
.feature-split { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr 1fr; }
@media (max-width: 48rem) { .feature-split { grid-template-columns: 1fr; } }
.feature-split p + p { margin-top: 0.8rem; }
.feature-split p { color: var(--muted); }
.feature-split h2 { text-align: left; }
.log-demo {
	border: 1px solid var(--base-300); border-radius: var(--radius);
	background: var(--base-100); box-shadow: var(--shadow);
	overflow: hidden; font-size: 0.88rem;
}
.log-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1.1rem; }
.log-row + .log-row { border-top: 1px solid var(--base-300); }
.dot { height: 0.55rem; width: 0.55rem; border-radius: 9999px; flex: none; }
.log-row.ok .dot { background: var(--success); }
.log-row.fail .dot { background: var(--error); }
.subj { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { color: var(--muted); font-size: 0.8rem; flex: none; }

/* Live Test */
.badge-demo { margin-top: 2.2rem; display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.badge-demo span { border-radius: 9999px; padding: 0.4rem 1rem; font-size: 0.85rem; font-weight: 600; }
.badge-ok { background: color-mix(in oklab, var(--success) 16%, var(--base-100)); color: var(--success); }
.badge-fail { background: color-mix(in oklab, var(--error) 14%, var(--base-100)); color: var(--error); }
.badge-testing { background: color-mix(in oklab, var(--warning) 16%, var(--base-100)); color: var(--warning); }
.badge-never { background: var(--base-300); color: var(--muted); }
.privacy-card {
	margin-top: 3rem; border: 1px solid var(--base-300);
	border-left: 4px solid var(--primary);
	border-radius: var(--radius); background: var(--base-100);
	padding: 1.6rem 1.8rem;
}
.privacy-card h3 { font-size: 1.05rem; margin-bottom: 0.8rem; }
.privacy-card ul { list-style: none; display: grid; gap: 0.6rem; color: var(--muted); font-size: 0.95rem; }
.privacy-card strong { color: var(--base-content); }

/* Screenshots */
.shots { margin-top: 2.5rem; display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.shot {
	margin: 0; border: 1px solid var(--base-300); border-radius: var(--radius);
	background: var(--base-100); box-shadow: var(--shadow); overflow: hidden;
}
.shot-wide { grid-column: 1 / -1; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 0.9rem 1.2rem; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--base-300); }
.shot figcaption strong { color: var(--base-content); }
@media (max-width: 48rem) { .shots { grid-template-columns: 1fr; } }

/* Steps */
.steps { margin-top: 3rem; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.step {
	border: 1px solid var(--base-300); background: var(--base-200);
	border-radius: var(--radius); padding: 1.6rem;
	transition: transform 0.25s ease;
}
.step:hover { transform: translateY(-4px); }
.step-num {
	display: inline-flex; height: 2rem; width: 2rem; align-items: center; justify-content: center;
	border-radius: 9999px; background: var(--primary); color: var(--primary-content);
	font-weight: 700; font-size: 0.9rem;
}
.step h3 { margin: 0.8rem 0 0.3rem; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* FAQ */
details {
	border: 1px solid var(--base-300); border-radius: var(--radius);
	background: var(--base-100); padding: 1rem 1.3rem;
}
details + details { margin-top: 0.7rem; }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 0.6rem; color: var(--muted); }

/* CTA + footer */
.cta {
	text-align: center; padding: 5rem 0;
	background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 14%, var(--base-100)), var(--base-100) 65%);
}
.cta h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.015em; }
.cta .btn { margin-top: 1.6rem; }
.site-footer { border-top: 1px solid var(--base-300); background: var(--base-200); padding: 1.6rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--muted); }

/* Docs */
.docs-prose h2 { text-align: left; margin-top: 3rem; }
.docs-prose h2:first-of-type { margin-top: 2.5rem; }
.docs-prose p, .docs-prose ol, .docs-prose ul { margin-top: 1rem; color: var(--muted); }
.docs-prose strong, .docs-prose summary { color: var(--base-content); }
.docs-prose ol, .docs-prose ul { padding-left: 1.5rem; display: grid; gap: 0.5rem; }
.docs-prose li::marker { color: var(--primary); font-weight: 700; }
.docs-prose .shot { margin-top: 1.6rem; }
.docs-prose details { margin-top: 0.7rem; }
.docs-prose .privacy-card { margin-top: 1.6rem; }
.docs-toc { margin-top: 1.5rem !important; }
.docs-toc a { text-decoration: none; }
.docs-toc a:hover { color: var(--primary); }

/* Support */
.support-grid { margin-top: 2.5rem; display: grid; gap: 1.2rem; grid-template-columns: 1.2fr 1fr; align-items: start; }
@media (max-width: 48rem) { .support-grid { grid-template-columns: 1fr; } }
.support-grid .privacy-card + .privacy-card { margin-top: 1.2rem; }
.form-card {
	border: 1px solid var(--base-300); border-radius: var(--radius);
	background: var(--base-100); box-shadow: var(--shadow); padding: 1.8rem;
}
.form-card label { display: block; font-weight: 600; font-size: 0.9rem; margin: 1rem 0 0.35rem; }
.form-card label:first-of-type { margin-top: 0; }
.form-card input, .form-card select, .form-card textarea {
	width: 100%; border: 1px solid var(--base-300); border-radius: 0.5rem;
	background: var(--base-100); color: var(--base-content);
	padding: 0.65rem 0.8rem; font: inherit; font-size: 0.95rem;
}
.form-card textarea { min-height: 8rem; resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
	outline: 2px solid var(--primary); border-color: var(--primary);
}
.form-card .cf-turnstile { margin-top: 1.2rem; }
.form-card button { margin-top: 1.2rem; }
#form-error {
	display: none; border: 1px solid var(--error); border-radius: var(--radius);
	background: color-mix(in oklab, var(--error) 10%, var(--base-100));
	padding: 1rem 1.3rem; margin: 0 0 1rem;
}
#form-error:target { display: block; }
