/* testd draft product site */

:root {
	--paper: #f5f0e6;
	--paper-2: #efe8d9;
	--paper-3: #e8e0cd;
	--ink: #141414;
	--ink-2: #443f38;
	--ink-3: #756e63;
	--stone: #d8cfba;
	--basalt: #1c1a18;
	--basalt-2: #262220;
	--ember: #e4542b;
	--ember-dark: #c2401c;

	--font-sans: 'Avenir Next', 'Futura', 'Segoe UI', system-ui, sans-serif;
	--font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
	--line: 1.5px solid var(--stone);
	--wrap: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

::selection { background: var(--ember); color: var(--paper); }

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }

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

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

code {
	font-size: 0.875em;
	background: var(--paper-3);
	border: 1px solid var(--stone);
	border-radius: 0.25rem;
	padding: 0.1em 0.35em;
	white-space: nowrap;
}

/* ---------- header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: color-mix(in srgb, var(--paper) 92%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: var(--line);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	gap: 2rem;
	height: 4.25rem;
}

.product-id {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
}

.product-id img { display: block; height: 1.7rem; width: auto; }

.product-id .name {
	font-family: var(--font-mono);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 1.6rem;
	font-size: 0.92rem;
}

.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a:hover { color: var(--ember); }

.site-nav .ext::after { content: ' ↗'; font-size: 0.75em; }

.nav-cta {
	border: 1.5px solid var(--ink);
	padding: 0.4rem 1rem;
	border-radius: 0.25rem;
	color: var(--ink) !important;
	font-weight: 600;
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

@media (max-width: 56rem) {
	.site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- hero ---------- */

.hero {
	padding: 6.5rem 0 5rem;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cpath d='M0 48 24 34 48 48 24 62Z' fill='none' stroke='%23d8cfba' stroke-opacity='.5' stroke-width='1'/%3E%3Cpath d='M48 48 72 34 96 48 72 62Z' fill='none' stroke='%23d8cfba' stroke-opacity='.5' stroke-width='1'/%3E%3Cpath d='M24 22 48 8 72 22 48 36Z' fill='none' stroke='%23d8cfba' stroke-opacity='.3' stroke-width='1'/%3E%3Cpath d='M24 74 48 60 72 74 48 88Z' fill='none' stroke='%23d8cfba' stroke-opacity='.3' stroke-width='1'/%3E%3C/svg%3E");
}

.hero .wrap {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 4rem;
	align-items: center;
}

.hero .wrap > * { min-width: 0; }

@media (max-width: 48rem) {
	.hero { padding: 4.5rem 0 3.5rem; }
	.hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
}

.hero h1 {
	margin: 1.25rem 0 1.5rem;
	font-size: clamp(2.4rem, 5vw, 3.75rem);
	font-weight: 700;
}

.hero h1 em { font-style: normal; color: var(--ember); }

.hero .lede {
	font-size: 1.2rem;
	color: var(--ink-2);
	max-width: 34rem;
	margin: 0 0 2.25rem;
}

.hero .lede strong { color: var(--ink); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.eyebrow svg { width: 1.05rem; height: auto; flex: none; }

.hero .cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
	display: inline-block;
	padding: 0.7rem 1.5rem;
	border-radius: 0.25rem;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
}

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ember); }

.btn-ghost {
	border: 1.5px solid var(--ink);
	color: var(--ink);
	background: transparent;
}
.btn-ghost:hover { background: var(--paper-3); }

/* ---------- terminal ---------- */

.terminal {
	background: var(--basalt);
	border-radius: 0.5rem;
	box-shadow: 0 1.5rem 3rem rgba(20, 20, 20, 0.18);
	overflow: hidden;
	font-size: 0.86rem;
	line-height: 1.75;
}

.terminal-bar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.9rem;
	border-bottom: 1px solid var(--basalt-2);
}

.terminal-bar i {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: var(--basalt-2);
	border: 1px solid #3d3833;
}
.terminal-bar i:first-child { background: var(--ember); border-color: var(--ember); }

.terminal-bar .title {
	margin-left: auto;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: #7a736a;
}

.terminal pre {
	margin: 0;
	padding: 1.1rem 1.25rem 1.35rem;
	overflow-x: auto;
	font-family: var(--font-mono);
	color: #e8e2d5;
}

.t-prompt { color: #8f887d; }
.t-flag { color: var(--ember); }
.t-ok { color: #8aa05a; }
.t-url { color: #d9a05f; }
.t-comment { color: #6b655c; }
.t-dim { color: #9b9488; }

/* ---------- sections ---------- */

section { border-top: var(--line); padding: 5.5rem 0; }

.section-head { max-width: 44rem; margin-bottom: 3rem; }

.section-head h2 {
	font-size: clamp(1.75rem, 3.5vw, 2.4rem);
	font-weight: 700;
	margin: 0.9rem 0 1rem;
}

.section-head p { color: var(--ink-2); margin: 0; }

/* ---------- how it works ---------- */

.how-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

@media (max-width: 48rem) {
	.how-grid { grid-template-columns: 1fr; }
}

.stratum {
	background: var(--paper-2);
	border: var(--line);
	border-radius: 0.4rem;
	padding: 1.75rem 1.6rem;
	position: relative;
	overflow: hidden;
}

.stratum .index {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--ember);
	font-weight: 600;
	letter-spacing: 0.12em;
}

.stratum h3 { margin: 0.6rem 0 0.75rem; font-size: 1.2rem; }

.stratum p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

.stratum pre {
	margin: 1rem 0 0;
	padding: 0.85rem 1rem;
	background: var(--basalt);
	color: #e8e2d5;
	border-radius: 0.3rem;
	font-size: 0.8rem;
	line-height: 1.7;
	overflow-x: auto;
}

.diagram { margin: 3.5rem 0 0; overflow-x: auto; }

.diagram svg { width: 100%; min-width: 40rem; height: auto; display: block; }

/* ---------- features ---------- */

.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

@media (max-width: 56rem) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 38rem) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
	border: var(--line);
	border-radius: 0.4rem;
	padding: 1.6rem;
	background: var(--paper);
}

.feature h3 { font-size: 1.05rem; margin: 0 0 0.6rem; display: flex; align-items: center; gap: 0.6rem; }
.feature p { margin: 0; font-size: 0.93rem; color: var(--ink-2); }
.feature code { white-space: normal; }

.feature .glyph { flex: none; width: 1.3rem; height: 1.3rem; color: var(--ember); }

/* ---------- sharing ---------- */

.share-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

@media (max-width: 48rem) { .share-grid { grid-template-columns: 1fr; } }

.share-card {
	border: var(--line);
	border-radius: 0.4rem;
	padding: 1.6rem;
	background: var(--paper-2);
	display: flex;
	flex-direction: column;
}

.share-card .provider { font-family: var(--font-mono); font-weight: 600; font-size: 1rem; }

.share-card .exposure {
	margin: 0.4rem 0 0.75rem;
	align-self: flex-start;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.2rem 0.6rem;
	border-radius: 99px;
	border: 1px solid var(--stone);
	color: var(--ink-2);
}
.share-card .exposure.public { color: var(--ember); border-color: var(--ember); }

.share-card p { margin: 0; font-size: 0.93rem; color: var(--ink-2); }

/* ---------- security ---------- */

.table-scroll { overflow-x: auto; }

.trust-table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 0.93rem; }

@media (max-width: 48rem) {
	.trust-table td:first-child { white-space: normal; }
}

.trust-table th, .trust-table td {
	text-align: left;
	padding: 0.8rem 1rem;
	border-bottom: var(--line);
	vertical-align: top;
}

.trust-table th {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--ink-3);
	font-weight: 600;
}

.trust-table td:first-child { font-family: var(--font-mono); font-size: 0.85rem; white-space: nowrap; }

.callout {
	margin-top: 2rem;
	display: flex;
	gap: 1rem;
	padding: 1.25rem 1.4rem;
	border: 1px solid var(--ember);
	border-left-width: 4px;
	border-radius: 0.3rem;
	background: color-mix(in srgb, var(--ember) 6%, var(--paper));
}

.callout .mark { color: var(--ember); font-family: var(--font-mono); font-weight: 700; }

.callout p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.callout p strong { color: var(--ink); }

/* ---------- install ---------- */

.install-cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	align-items: start;
}

@media (max-width: 48rem) { .install-cols { grid-template-columns: 1fr; } }

.step .k {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ember);
}

.step h3 { margin: 0.5rem 0 0.6rem; font-size: 1.1rem; }

.step p { margin: 0 0 1rem; font-size: 0.93rem; color: var(--ink-2); }

.step pre {
	margin: 0;
	background: var(--basalt);
	color: #e8e2d5;
	border-radius: 0.3rem;
	padding: 1rem 1.1rem;
	font-size: 0.82rem;
	line-height: 1.8;
	overflow-x: auto;
}

.facts {
	margin-top: 4rem;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1px;
	background: var(--stone);
	border: var(--line);
	border-radius: 0.4rem;
	overflow: hidden;
}

@media (max-width: 56rem) { .facts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 38rem) { .facts { grid-template-columns: repeat(2, 1fr); } }

.fact {
	background: var(--paper-2);
	padding: 1.1rem 1rem;
	text-align: center;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--ink-2);
}
.fact b { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember); margin-bottom: 0.3rem; }

/* ---------- footer ---------- */

.site-footer {
	background: var(--basalt);
	color: var(--paper);
	padding: 4.5rem 0 2.5rem;
}

.site-footer a { color: #d8cfba; text-decoration: none; }
.site-footer a:hover { color: var(--ember); }

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 2fr);
	gap: 3rem;
}

@media (max-width: 48rem) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.footer-logo img { height: 2.4rem; width: auto; display: block; }

.footer-logo span {
	font-family: var(--font-mono);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--paper);
}

.footer-brand p { margin: 1.4rem 0 0; font-size: 0.95rem; color: #b5ac9e; max-width: 26rem; }

.site-footer h3 {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: #8f887d;
	margin: 0.3rem 0 1.1rem;
	font-weight: 600;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.site-footer li { margin: 0.55rem 0; }

.footer-colophon {
	margin-top: 4rem;
	padding-top: 1.5rem;
	border-top: 1px solid #3d3833;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	justify-content: space-between;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: #8f887d;
}
