/* ForushKade parking pages (doc/site-pool.md §pages): served by nginx under
   /_fk/ on every shop domain — the apex page (domain.html) and the page of an
   address that has no store yet (unclaimed.html). No CDN, no framework. */
@font-face { font-family: "Vazirmatn"; src: url("/_fk/fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/_fk/fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/_fk/fonts/Vazirmatn-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
	--primary: #6c47ff;
	--primary-dark: #4b2fd1;
	--primary-soft: #f0ebff;
	--accent: #ec4899;
	--gradient: linear-gradient(120deg, #6c47ff 0%, #8b5cf6 50%, #ec4899 100%);
	--bg: #ffffff;
	--surface: #f7f6fc;
	--card: #ffffff;
	--border: #e8e6f1;
	--text: #16142b;
	--text-2: #3d3a55;
	--muted: #686580;
	--ok: #0f9d6b;
	--ok-soft: #e6f7f0;
	--shadow: 0 24px 60px -24px rgba(76, 47, 209, .35);
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--primary-soft: #241d4d;
		--bg: #0e0c1f;
		--surface: #15122c;
		--card: #1a1735;
		--border: #2c2850;
		--text: #f2f0ff;
		--text-2: #cfcbe8;
		--muted: #9e9abd;
		--ok: #4ad6a1;
		--ok-soft: #12302a;
		--shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
		color-scheme: dark;
	}
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
	font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.9;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; }
bdi { unicode-bidi: isolate; }

.bg {
	position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(600px 380px at 85% -10%, rgba(108, 71, 255, .18), transparent 70%),
		radial-gradient(520px 340px at 0% 110%, rgba(236, 72, 153, .14), transparent 70%);
}

.top {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	max-width: 1040px; width: 100%; margin: 0 auto; padding: 18px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; }
.top-link { color: var(--muted); text-decoration: none; font-size: .92rem; }
.top-link:hover { color: var(--primary); }

main { flex: 1; display: flex; align-items: center; padding: 8px 16px 40px; }
.wrap { max-width: 760px; width: 100%; margin: 0 auto; }

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 24px;
	box-shadow: var(--shadow);
	padding: 40px 36px;
	text-align: center;
}
.badge {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--primary-soft); color: var(--primary);
	font-weight: 700; font-size: .85rem;
	padding: 4px 14px; border-radius: 999px; margin-bottom: 18px;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

h1 { font-size: clamp(1.45rem, 4.2vw, 2.1rem); line-height: 1.6; margin: 0 0 12px; font-weight: 800; }
.host {
	direction: ltr; display: inline-block;
	background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
	word-break: break-all;
}
.lead { color: var(--text-2); font-size: 1.05rem; margin: 0 auto 26px; max-width: 560px; }

.free {
	background: var(--surface); border: 1px dashed var(--border); border-radius: 18px;
	padding: 18px 20px; margin: 0 auto 26px; max-width: 560px; color: var(--text-2);
}
.free strong { color: var(--text); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: 0; cursor: pointer; text-decoration: none; font-family: inherit;
	font-weight: 700; font-size: 1rem; line-height: 1.4;
	padding: 13px 26px; border-radius: 999px; min-height: 48px;
	transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 12px 26px -12px rgba(108, 71, 255, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(108, 71, 255, .8); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn:focus-visible, .addr input:focus-visible { outline: 3px solid rgba(108, 71, 255, .45); outline-offset: 2px; }

.points {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
	margin: 30px 0 0; padding: 0; list-style: none; text-align: start;
}
.points li {
	background: var(--surface); border-radius: 16px; padding: 14px 16px;
	font-size: .92rem; color: var(--text-2);
}
.points b { display: block; color: var(--text); font-size: .98rem; margin-bottom: 2px; }

/* domain page: try an address */
.addr {
	display: flex; align-items: stretch; max-width: 520px; margin: 0 auto 14px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
	padding: 6px; direction: ltr;
}
.addr input {
	flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
	font-family: inherit; font-size: 1.05rem; padding: 8px 16px; text-align: left;
}
.addr input::placeholder { color: var(--muted); }
.addr .suffix { align-self: center; color: var(--muted); font-weight: 700; padding-inline-end: 10px; white-space: nowrap; }
.addr .btn { padding: 10px 20px; min-height: 44px; direction: rtl; }
.hint { font-size: .88rem; color: var(--muted); margin: 0 0 6px; min-height: 1.6em; }
.hint.bad { color: #d6336c; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; text-align: start; }
.steps li { counter-increment: s; background: var(--surface); border-radius: 16px; padding: 14px 16px 14px 16px; font-size: .92rem; color: var(--text-2); position: relative; }
.steps li::before {
	content: counter(s, persian); display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; border-radius: 50%; background: var(--gradient); color: #fff;
	font-weight: 800; font-size: .9rem; margin-bottom: 6px;
}
.steps b { display: block; color: var(--text); }

.note { margin: 22px 0 0; font-size: .9rem; color: var(--muted); }

footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 18px 16px 26px; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
	.card { padding: 30px 18px; border-radius: 20px; }
	.points, .steps { grid-template-columns: 1fr; }
	.actions .btn { width: 100%; }
	.addr { border-radius: 18px; flex-wrap: wrap; }
	.addr input { flex-basis: 60%; }
	.addr .btn { width: 100%; margin-top: 6px; }
}
