/* QWeb Agent Ready: brand storefront.
 *
 * Dark by default and not as a preference. The product is about what machines
 * read, the page shows a lot of paths and JSON, and a terminal-coloured ground
 * makes that material look like what it is rather than like decoration.
 */

:root {
	--void:      #070B14;
	--void-2:    #0E1524;
	--void-3:    #131C2F;
	--line:      #1D2941;
	--line-2:    #2A3A5C;

	--text:      #E9EEF9;
	--text-2:    #9DAAC5;
	--text-3:    #6B7A99;

	--blue:      #2F86E0;
	--blue-lift: #58A6F5;
	--blue-deep: #10365F;

	--ok:        #2ED47A;
	--warn:      #E5A54B;
	--bad:       #F0616D;

	--sans:      'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
	--mono:      'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

	--measure:   1180px;
	--gut:       clamp(20px, 5vw, 56px);
	--rad:       14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--void);
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--blue-lift); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .mono { font-family: var(--mono); font-size: 0.88em; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gut); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 21px; }

p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--text-2); max-width: 42rem; }

/* ── Chrome ─────────────────────────────────────────────────────────── */

.site-head {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(7, 11, 20, 0.86);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}

.site-head .wrap {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 66px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 9px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--text);
	font-size: 17px;
}
.brand:hover { text-decoration: none; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.brand em { font-style: normal; color: var(--blue); }

.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--text-2); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.btn {
	display: inline-block;
	padding: 11px 20px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	border: 1px solid transparent;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-lift); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); }
.btn:disabled { opacity: 0.55; cursor: default; }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); }

.eyebrow {
	display: inline-block;
	font-family: var(--mono);
	font-size: 12.5px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--blue-lift);
	background: var(--blue-deep);
	border: 1px solid var(--line-2);
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 22px;
}

.hero h1 span { color: var(--blue); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin-top: 26px;
	color: var(--text-3);
	font-size: 14.5px;
}
.hero-facts span::before { content: '✓'; color: var(--ok); margin-right: 7px; }

/* ── The test ───────────────────────────────────────────────────────── */

.test { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }

.test-box {
	background: linear-gradient(180deg, var(--void-2), var(--void));
	border: 1px solid var(--line);
	border-radius: var(--rad);
	padding: clamp(22px, 3.5vw, 36px);
}

.test-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.test-form input[type="text"] {
	flex: 1 1 320px;
	min-width: 0;
	background: var(--void);
	border: 1px solid var(--line-2);
	border-radius: 10px;
	color: var(--text);
	font-family: var(--mono);
	font-size: 15px;
	padding: 12px 15px;
}
.test-form input[type="text"]:focus { outline: 2px solid var(--blue); outline-offset: -1px; }

.test-note { color: var(--text-3); font-size: 13.5px; margin-top: 12px; }

.result { margin-top: 30px; }
.result[hidden] { display: none; }

.score {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line);
}
.score-num { font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.score-num.is-good { color: var(--ok); }
.score-num.is-mid  { color: var(--warn); }
.score-num.is-bad  { color: var(--bad); }
.score-meta { color: var(--text-2); font-size: 15px; }
.score-meta strong { color: var(--text); }

.cat { margin-top: 26px; }
.cat h3 {
	font-family: var(--mono);
	font-size: 12.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-3);
	margin-bottom: 10px;
}

.row {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 12px;
	padding: 13px 0;
	border-top: 1px solid var(--line);
}
.row:first-of-type { border-top: 0; }

.pip {
	width: 9px; height: 9px;
	margin-top: 8px;
	border-radius: 50%;
	background: var(--bad);
	justify-self: center;
}
.row.is-pass .pip { background: var(--ok); }
.row.is-unknown .pip { background: var(--text-3); }

.row-label { font-weight: 650; }
.row-label .tag {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid var(--line-2);
	color: var(--text-3);
	border-radius: 5px;
	padding: 1px 6px;
	margin-left: 8px;
	vertical-align: 2px;
}
.row-label .tag.is-pro { color: var(--blue-lift); border-color: var(--blue); }

.row-detail { color: var(--text-2); font-size: 15px; margin: 2px 0 0; }
.row-why { color: var(--text-3); font-size: 14.5px; margin: 6px 0 0; }

.row-fix {
	margin: 8px 0 0;
	padding: 9px 13px;
	background: var(--blue-deep);
	border-left: 2px solid var(--blue);
	border-radius: 0 8px 8px 0;
	font-size: 14.5px;
	color: var(--text);
}
.row-fix b { color: var(--blue-lift); font-weight: 700; }

/* ── Sections ───────────────────────────────────────────────────────── */

section { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
section > .wrap > h2 { max-width: 26ch; }

.grid { display: grid; gap: 18px; margin-top: 34px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
	background: var(--void-2);
	border: 1px solid var(--line);
	border-radius: var(--rad);
	padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15.5px; margin: 0; }
.card .path {
	display: inline-block;
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--blue-lift);
	background: var(--void);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 2px 8px;
	margin-bottom: 12px;
}

.terminal {
	background: var(--void-2);
	border: 1px solid var(--line);
	border-radius: var(--rad);
	overflow: hidden;
}
.terminal-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--void-3);
	border-bottom: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--text-3);
}
.terminal pre {
	margin: 0;
	padding: 18px;
	overflow-x: auto;
	font-size: 13px;
	line-height: 1.7;
	color: var(--text-2);
}
.terminal pre .k { color: var(--blue-lift); }
.terminal pre .s { color: var(--ok); }
.terminal pre .c { color: var(--text-3); }

/* ── Pricing ────────────────────────────────────────────────────────── */

.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 38px; }

.plan {
	background: var(--void-2);
	border: 1px solid var(--line);
	border-radius: var(--rad);
	padding: 28px;
	display: flex;
	flex-direction: column;
}
.plan.is-featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 20px 60px -30px var(--blue); }
.plan h3 { font-size: 19px; margin-bottom: 4px; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.plan .plan-note { color: var(--text-3); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; }
.plan li { padding: 6px 0 6px 24px; position: relative; color: var(--text-2); font-size: 15.5px; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); }
.plan li.is-off { color: var(--text-3); }
.plan li.is-off::before { content: '·'; color: var(--text-3); }
.plan .btn { margin-top: auto; text-align: center; }

/* ── FAQ ────────────────────────────────────────────────────────────── */

.faq { max-width: 46rem; }
.faq details {
	border-top: 1px solid var(--line);
	padding: 16px 0;
}
.faq summary { cursor: pointer; font-weight: 650; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; color: var(--blue); margin-right: 10px; font-family: var(--mono); }
.faq details[open] summary::before { content: '−'; }
.faq p { color: var(--text-2); margin: 10px 0 0 24px; font-size: 15.5px; }

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-foot {
	border-top: 1px solid var(--line);
	padding: 44px 0 60px;
	color: var(--text-3);
	font-size: 14.5px;
}
.site-foot .wrap { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.site-foot a { color: var(--text-2); }
.site-foot .spacer { margin-left: auto; }

@media (max-width: 720px) {
	.site-nav { gap: 14px; }
	.site-nav .hide-sm { display: none; }
}
