/* ============================================================
   Locuvox — marketing site design system
   Matches the Salience app: indigo #4e6df5, amber #e5a158,
   Geist typography, #fafafe ground, 0.75rem radius, dark mode.
   ============================================================ */

/* ---- Tokens -------------------------------------------------- */
:root {
	--indigo: #4e6df5;
	--indigo-600: #3f5ae0;
	--indigo-700: #324bc4;
	--indigo-soft: #eef1fe;
	--amber: #e5a158;
	--amber-soft: #fbf1e3;

	--bg: #fafafe;
	--bg-2: #f3f5fb;
	--ink: #292b35;
	--ink-2: #4a4e5e;
	--card: #ffffff;
	--border: #e3ebf6;
	--border-strong: #c7ced8;
	--muted: #64748b;
	--success: #39a561;
	--success-soft: #e7f4ec;

	--radius: 0.75rem;
	--radius-sm: 0.5rem;
	--radius-lg: 1.25rem;
	--shadow-sm: 0 1px 2px rgba(41, 43, 53, 0.06);
	--shadow: 0 6px 24px -8px rgba(41, 43, 53, 0.14);
	--shadow-lg: 0 30px 60px -24px rgba(41, 43, 53, 0.30);
	--ring: rgba(78, 109, 245, 0.32);

	--maxw: 1200px;
	--font: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
	--mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
	--indigo: #5581f7;
	--indigo-600: #6f95fb;
	--indigo-700: #87a8fc;
	--indigo-soft: #15203a;
	--amber: #e9ad6c;
	--amber-soft: #2a2114;

	--bg: #070d12;
	--bg-2: #0b1219;
	--ink: #e9eef3;
	--ink-2: #b9c2cd;
	--card: #0d1116;
	--border: #222a35;
	--border-strong: #38414f;
	--muted: #8b97a6;
	--success: #4cb978;
	--success-soft: #11221a;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
	--shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.6);
	--shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.8);
	--ring: rgba(85, 129, 247, 0.4);
}

/* ---- Reset --------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--ink);
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--indigo); color: #fff; }

/* ---- Typography --------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.022em; font-weight: 650; }
.display {
	font-size: clamp(2.6rem, 6.4vw, 4.6rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.04;
}
.h1 { font-size: clamp(2rem, 4vw, 3rem); }
.h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.h3 { font-size: 1.25rem; font-weight: 600; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.grad {
	background: linear-gradient(115deg, var(--indigo), #7d6cf0 60%, var(--amber));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.underline-amber {
	background: linear-gradient(var(--amber), var(--amber)) bottom / 100% 0.14em no-repeat;
	padding-bottom: 0.06em;
}

/* ---- Eyebrow / pills ---------------------------------------- */
.eyebrow {
	font-family: var(--mono);
	font-size: 0.74rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--indigo);
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.eyebrow::before {
	content: "";
	width: 1.6rem;
	height: 2px;
	background: var(--amber);
	display: inline-block;
}
.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--border);
	background: var(--card);
	border-radius: 999px;
	font-size: 0.82rem;
	color: var(--ink-2);
	box-shadow: var(--shadow-sm);
}
.pill .dot {
	width: 0.5rem; height: 0.5rem; border-radius: 50%;
	background: var(--success); position: relative;
}
.pill .dot::after {
	content: ""; position: absolute; inset: -3px; border-radius: 50%;
	background: var(--success); opacity: 0.4; animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---- Layout -------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tight { padding: clamp(2.75rem, 5vw, 4rem) 0; }
.center { text-align: center; }
.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; }
.section-head .h2 { margin: 0.9rem 0 0.6rem; }

/* ---- Header -------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 80;
	backdrop-filter: blur(14px);
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-color: var(--border); }
.nav { display: flex; align-items: center; gap: 2rem; height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 650; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem; }
.nav-links a {
	padding: 0.5rem 0.8rem; border-radius: var(--radius-sm);
	font-size: 0.93rem; color: var(--ink-2); font-weight: 450;
	transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--bg-2); color: var(--ink); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.theme-toggle {
	width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
	border-radius: var(--radius-sm); border: 1px solid var(--border);
	background: var(--card); color: var(--ink-2);
}
.theme-toggle:hover { color: var(--indigo); border-color: var(--border-strong); }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-toggle { display: none; }

/* ---- Buttons ------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.7rem 1.15rem; border-radius: var(--radius-sm);
	font-size: 0.94rem; font-weight: 550; border: 1px solid transparent;
	transition: transform .12s, box-shadow .18s, background .15s, border-color .15s;
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 6px 16px -6px var(--ring); }
.btn-primary:hover { background: var(--indigo-600); box-shadow: 0 10px 22px -6px var(--ring); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn-outline { border-color: var(--border-strong); background: var(--card); color: var(--ink); }
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-lg { padding: 0.92rem 1.5rem; font-size: 1rem; border-radius: var(--radius); }
.btn-arrow svg { transition: transform .18s; }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ---- Hero ---------------------------------------------------- */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-grid {
	position: absolute; inset: 0; z-index: -2;
	background-image: radial-gradient(var(--border) 1px, transparent 1px);
	background-size: 30px 30px;
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
	opacity: 0.7;
}
.hero-glow {
	position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%;
	top: -240px; left: 50%; transform: translateX(-50%);
	background: radial-gradient(circle, rgba(78,109,245,0.16), transparent 65%);
	filter: blur(20px);
}
.hero-inner { max-width: 760px; }
.hero .display { margin: 1.4rem 0 1.1rem; }
.hero .lede { max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }
.hero-note { margin-top: 1rem; font-size: 0.86rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.hero-note svg { color: var(--success); }

/* ---- Reveal animation --------------------------------------- */
/* content is visible by default; only hidden once JS is confirmed (.js on <html>) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.stagger > * { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .13s; }
.stagger > *:nth-child(3) { animation-delay: .21s; }
.stagger > *:nth-child(4) { animation-delay: .29s; }
.stagger > *:nth-child(5) { animation-delay: .37s; }
.stagger > *:nth-child(6) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	[data-reveal], .stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; }
	html { scroll-behavior: auto; }
}

/* ---- Dashboard mock ----------------------------------------- */
.dash {
	border: 1px solid var(--border); border-radius: var(--radius-lg);
	background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden;
}
.dash-bar {
	display: flex; align-items: center; gap: 0.45rem;
	padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); background: var(--bg-2);
}
.dash-bar i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--border-strong); display: block; }
.dash-bar i:nth-child(1) { background: #f06a5e; }
.dash-bar i:nth-child(2) { background: var(--amber); }
.dash-bar i:nth-child(3) { background: var(--success); }
.dash-bar span { margin-left: 0.5rem; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.dash-body { padding: 1.3rem; display: grid; gap: 1rem; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.stat {
	border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem 0.95rem; background: var(--bg);
}
.stat .k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-size: 1.55rem; font-weight: 680; letter-spacing: -0.02em; margin-top: 0.2rem; }
.stat .d { font-size: 0.76rem; font-weight: 500; }
.stat .d.up { color: var(--success); }
.stat .d.down { color: #f06a5e; }
.chart {
	border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; background: var(--bg);
}
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.9rem; }
.chart-head b { font-size: 0.9rem; font-weight: 600; }
.chart-head span { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.bars { display: grid; gap: 0.6rem; }
.bar-row { display: grid; grid-template-columns: 88px 1fr 42px; align-items: center; gap: 0.7rem; font-size: 0.8rem; }
.bar-row .name { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 0.62rem; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--indigo), #7d6cf0); width: 0; animation: grow 1.3s cubic-bezier(.2,.8,.2,1) forwards; }
.bar-fill.you { background: linear-gradient(90deg, var(--amber), #efb878); }
.bar-row .pct { font-family: var(--mono); font-weight: 500; text-align: right; color: var(--ink); }
@keyframes grow { from { width: 0; } }

/* ---- Logo strip --------------------------------------------- */
.engines { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 0.7rem; }
.engine {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.5rem 0.95rem; border: 1px solid var(--border);
	border-radius: 999px; background: var(--card); font-size: 0.86rem; color: var(--ink-2);
	font-weight: 450;
}
.engine .glyph {
	width: 1.05rem; height: 1.05rem; border-radius: 0.3rem;
	background: var(--indigo-soft); color: var(--indigo);
	display: grid; place-items: center; font-size: 0.66rem; font-weight: 700; font-family: var(--mono);
}

/* ---- Cards / grids ------------------------------------------ */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
	border: 1px solid var(--border); border-radius: var(--radius);
	background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-sm);
	transition: transform .18s, box-shadow .2s, border-color .2s;
}
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feature-card .ico {
	width: 2.7rem; height: 2.7rem; border-radius: var(--radius-sm);
	display: grid; place-items: center; margin-bottom: 1.05rem;
	background: var(--indigo-soft); color: var(--indigo);
}
.feature-card.amber .ico { background: var(--amber-soft); color: #c98330; }
.feature-card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.93rem; color: var(--muted); }
.feature-card .more {
	margin-top: 0.95rem; font-size: 0.86rem; font-weight: 550; color: var(--indigo);
	display: inline-flex; align-items: center; gap: 0.35rem;
}
.card-link:hover .more svg { transform: translateX(3px); }
.more svg { transition: transform .18s; }

/* ---- Steps --------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step .num {
	counter-increment: step; flex: none;
	width: 2.6rem; height: 2.6rem; border-radius: 50%;
	display: grid; place-items: center; font-family: var(--mono); font-weight: 600;
	background: var(--card); border: 1px solid var(--border); color: var(--indigo);
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.step p { font-size: 0.93rem; color: var(--muted); }

/* ---- Split feature rows ------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.rev > .split-media { order: -1; }
.split-copy h2 { margin: 0.8rem 0 0.7rem; }
.split-copy .lede { font-size: 1.05rem; }
.checks { display: grid; gap: 0.6rem; margin-top: 1.3rem; }
.checks li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.checks svg { flex: none; color: var(--success); margin-top: 0.2rem; }

/* ---- CTA band ------------------------------------------------ */
.cta-band {
	border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 4rem);
	background: linear-gradient(125deg, var(--indigo-700), var(--indigo) 55%, #6f74e6);
	color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
	background-size: 26px 26px; opacity: 0.5;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 480px; margin: 0.7rem auto 1.6rem; }
.cta-band .btn-primary { background: #fff; color: var(--indigo-700); box-shadow: 0 10px 30px -8px rgba(0,0,0,0.4); }
.cta-band .btn-primary:hover { background: #f0f2ff; }
.cta-band .btn-outline { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-band .btn-outline:hover { border-color: #fff; color: #fff; }

/* ---- Footer -------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; padding: 3.5rem 0 2.75rem; }
.footer-brand p { font-size: 0.9rem; color: var(--muted); margin-top: 0.9rem; max-width: 260px; }
.footer-col h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.footer-col a { display: block; font-size: 0.9rem; color: var(--ink-2); padding: 0.28rem 0; }
.footer-col a:hover { color: var(--indigo); }
.footer-bottom {
	display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
	padding: 1.5rem 0; border-top: 1px solid var(--border); font-size: 0.84rem; color: var(--muted);
}

/* ---- Pricing ------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: start; }
.price-card {
	border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
	padding: 1.6rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.price-card.feat { border-color: var(--indigo); box-shadow: 0 18px 40px -18px var(--ring); position: relative; }
.price-card.feat::before {
	content: "Most popular"; position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%);
	background: var(--indigo); color: #fff; font-size: 0.68rem; font-weight: 600;
	padding: 0.25rem 0.7rem; border-radius: 999px; font-family: var(--mono); letter-spacing: 0.04em;
}
.price-card .tier { font-size: 1.05rem; font-weight: 650; }
.price-card .blurb { font-size: 0.85rem; color: var(--muted); margin: 0.3rem 0 1rem; min-height: 2.6rem; }
.price-card .amount { font-size: 2.5rem; font-weight: 720; letter-spacing: -0.03em; }
.price-card .amount small { font-size: 0.9rem; font-weight: 450; color: var(--muted); letter-spacing: 0; }
.price-card .meta { font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 1.15rem; }
.price-card .btn { width: 100%; }
.price-feats { display: grid; gap: 0.55rem; margin-top: 1.2rem; font-size: 0.87rem; }
.price-feats li { display: flex; gap: 0.5rem; align-items: flex-start; }
.price-feats svg { flex: none; color: var(--indigo); margin-top: 0.18rem; }

.matrix { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.matrix th, .matrix td { padding: 0.8rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }
.matrix thead th { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.matrix td:not(:first-child), .matrix th:not(:first-child) { text-align: center; }
.matrix tbody tr:hover { background: var(--bg-2); }
.matrix .grp td { background: var(--bg-2); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.matrix .yes { color: var(--success); }
.matrix .no { color: var(--border-strong); }

/* ---- FAQ accordion ------------------------------------------ */
.faq { display: grid; gap: 0.7rem; max-width: 760px; margin-inline: auto; }
.faq details {
	border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden;
}
.faq summary {
	list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 550; font-size: 1rem;
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--indigo); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: 0.93rem; }

/* ---- Page hero (interior) ----------------------------------- */
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.breadcrumb { font-size: 0.84rem; color: var(--muted); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--indigo); }
.page-hero .h1 { margin: 1rem 0 0.7rem; }
.page-hero .lede { max-width: 620px; }

/* ---- Prose (docs / legal) ----------------------------------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.6rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.9rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
	font-family: var(--mono); font-size: 0.85em; background: var(--bg-2);
	border: 1px solid var(--border); border-radius: 0.35rem; padding: 0.12rem 0.38rem;
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.2rem 0; }
.prose blockquote {
	border-left: 3px solid var(--amber); padding: 0.4rem 0 0.4rem 1.1rem; color: var(--muted);
}

/* ---- Code block --------------------------------------------- */
.code {
	background: #0d1116; border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; margin: 0;
}
[data-theme="dark"] .code { background: #05080c; }
.code-head {
	display: flex; justify-content: space-between; align-items: center;
	padding: 0.55rem 0.95rem; border-bottom: 1px solid #222a35;
	font-family: var(--mono); font-size: 0.72rem; color: #8b97a6;
}
.code pre { padding: 1.05rem 1.1rem; overflow-x: auto; }
.code code { font-family: var(--mono); font-size: 0.84rem; color: #cdd6e3; line-height: 1.7; }
.tok-c { color: #6b7689; } .tok-k { color: #8aa6ff; } .tok-s { color: #8fd6a0; }
.tok-f { color: #e9ad6c; } .tok-n { color: #cdd6e3; }

/* ---- Doc / help layout -------------------------------------- */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
.doc-nav { position: sticky; top: 6rem; }
.doc-nav h4 {
	font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--muted); margin: 1.4rem 0 0.55rem;
}
.doc-nav h4:first-child { margin-top: 0; }
.doc-nav a {
	display: block; font-size: 0.89rem; color: var(--ink-2);
	padding: 0.34rem 0.7rem; border-radius: var(--radius-sm); border-left: 2px solid transparent;
}
.doc-nav a:hover { background: var(--bg-2); color: var(--ink); }
.doc-nav a.active { color: var(--indigo); background: var(--indigo-soft); font-weight: 550; }

/* ---- Misc ---------------------------------------------------- */
.tag {
	font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase;
	color: var(--indigo); background: var(--indigo-soft); padding: 0.2rem 0.5rem; border-radius: 0.3rem;
	display: inline-block; font-weight: 500;
}
.tag.amber { color: #c98330; background: var(--amber-soft); }
.divider { height: 1px; background: var(--border); border: none; }
.note {
	border: 1px solid var(--border); border-left: 3px solid var(--indigo);
	background: var(--indigo-soft); border-radius: var(--radius-sm);
	padding: 0.9rem 1.1rem; font-size: 0.9rem; color: var(--ink-2);
}
.note.amber { border-left-color: var(--amber); background: var(--amber-soft); }
.kpi-row { display: flex; flex-wrap: wrap; gap: 2.4rem; }
.kpi b { font-size: 2rem; font-weight: 720; letter-spacing: -0.03em; display: block; }
.kpi span { font-size: 0.84rem; color: var(--muted); }

/* ---- Screenshot frames -------------------------------------- */
.shot {
	border: 1px solid var(--border); border-radius: var(--radius-lg);
	overflow: hidden; box-shadow: var(--shadow-lg); background: var(--card); line-height: 0;
}
.shot img { display: block; width: 100%; }
/* element-screenshot captures are already content-only — shot-crop is a no-op kept for markup stability */
.shot-crop img { width: 100%; margin-left: 0; }
.shot-bar {
	display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.85rem;
	border-bottom: 1px solid var(--border); background: var(--bg-2); line-height: 1;
}
.shot-bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--border-strong); flex: none; }
.shot-bar i:nth-child(1) { background: #f06a5e; }
.shot-bar i:nth-child(2) { background: var(--amber); }
.shot-bar i:nth-child(3) { background: var(--success); }
.shot-bar span { margin-left: 0.45rem; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.shot-cap { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 0.8rem; }
.shot-tilt { transform: perspective(1600px) rotateX(2deg); }

/* ---- Mobile menu -------------------------------------------- */
.mobile-menu { display: none; }

/* ---- Responsive --------------------------------------------- */
@media (max-width: 940px) {
	.nav-links, .nav-actions .btn-ghost { display: none; }
	.nav-toggle {
		display: grid; place-items: center; width: 2.3rem; height: 2.3rem;
		border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--card); color: var(--ink);
	}
	.grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
	.split, .split.rev > .split-media { grid-template-columns: 1fr; order: 0; }
	.price-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-top { grid-template-columns: 1fr 1fr; gap: 1.8rem 1rem; }
	.doc-layout { grid-template-columns: 1fr; gap: 1.5rem; }
	.doc-nav { position: static; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; }
	.mobile-menu.open {
		display: block; position: fixed; inset: 4.5rem 0 0; z-index: 70;
		background: var(--bg); padding: 1.5rem; overflow-y: auto;
	}
	.mobile-menu a {
		display: block; padding: 0.85rem 0.5rem; font-size: 1.05rem;
		border-bottom: 1px solid var(--border); color: var(--ink);
	}
	.mobile-menu .btn { width: 100%; margin-top: 1rem; }
}
@media (max-width: 600px) {
	.grid-2, .grid-3, .grid-4, .price-grid, .dash-stats { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.matrix { font-size: 0.8rem; }
	.matrix th, .matrix td { padding: 0.6rem 0.5rem; }
}
