* { box-sizing: border-box; }
:root {
	--bg: #f6f7f8;
	--surface: #ffffff;
	--surface-soft: #fcfcfd;
	--text: #17181b;
	--muted: #5f636d;
	--border: #e5e7eb;
	--border-strong: #d2d6dc;
	--primary: #111827;
	--success-bg: #f0fff4;
	--success-border: #b9e5c6;
	--success-text: #166534;
	--danger-bg: #fff4f4;
	--danger-border: #f0c5c5;
	--danger-text: #8b1e1e;
	--radius-lg: 14px;
	--radius-md: 10px;
}
body {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 0;
	color: var(--text);
	background:
		radial-gradient(1200px 400px at 50% -120px, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
		var(--bg);
	line-height: 1.45;
}
main { max-width: 1100px; margin: 0 auto; padding: 36px 20px 72px; }

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 30;
}
.nav .brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 19px;
	letter-spacing: -0.01em;
	text-decoration: none;
	color: var(--text);
}
.nav .brand-logo {
	width: 24px;
	height: 24px;
	display: block;
	border-radius: 6px;
}
.nav nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav nav a:hover { color: var(--text); }
.locale-switch {
	display: inline-flex;
	align-items: center;
	padding: 3px;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	background: #f3f4f6;
}
.locale-switch__option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #4b5563;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.locale-switch__option:hover { color: #111827; }
.locale-switch__option.is-active {
	background: #111827;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(17, 24, 39, 0.22);
}
.nav-inline-form { margin: 0; }
.link-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; padding: 0; }
.link-button:hover { color: var(--text); }
.session-pill {
	background: #f3f4f6;
	color: #374151;
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 13px;
	max-width: 240px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

footer { text-align: center; padding: 24px; color: #7a7d85; font-size: 13px; border-top: 1px solid var(--border); margin-top: 48px; }
footer a { color: #7a7d85; margin: 0 6px; }

.hero { text-align: center; padding: 48px 0 24px; }
.hero h1 { font-size: 40px; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero .subtitle { font-size: 18px; color: var(--muted); max-width: 680px; margin: 0 auto 24px; }
.landing-notice { max-width: 760px; margin: 0 auto 20px; text-align: left; }
.ctas { display: flex; justify-content: center; gap: 12px; }

.btn {
	display: inline-block;
	padding: 11px 20px;
	border-radius: var(--radius-md);
	text-decoration: none;
	font-weight: 700;
	transition: transform 0.1s, box-shadow 0.14s, border-color 0.14s;
	border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(17, 24, 39, 0.18); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { border-color: #adb3bd; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 48px; }
.features article { background: var(--surface); padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.features h3 { margin: 0 0 8px; }

.install { margin-top: 48px; text-align: center; }
.platforms { list-style: none; padding: 0; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.platforms li { background: var(--surface); padding: 0; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; overflow: hidden; }
.platforms li a { display: block; padding: 10px 16px; text-decoration: none; color: inherit; }
.platforms li a:hover { background: var(--border); }
.disclaimer { color: #6a6e77; font-size: 14px; max-width: 680px; margin: 24px auto 0; }

.pricing { display: grid; gap: 18px; }
.pricing-hero {
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: linear-gradient(140deg, #ffffff 0%, #f5f7fb 100%);
}
.pricing .subtitle { max-width: 760px; margin-bottom: 0; }
.pricing-highlights {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}
.pricing-highlight {
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid #dbe4f2;
	background: #f7faff;
}
.pricing-highlight strong { font-size: 14px; }
.pricing-highlight p { margin: 8px 0 0; color: #465066; font-size: 14px; }

.pricing .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 8px; align-items: stretch; }
.plan { background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%); padding: 24px; border-radius: 18px; border: 1px solid #d9deea; display: grid; grid-template-rows: auto auto 1fr auto; align-content: start; gap: 10px; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04); }
.plan.featured { border-color: #0f172a; box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12); transform: translateY(-2px); }
.plan-free { background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%); }
.plan h3 { margin: 0 0 4px; }
.plan-head { min-height: 96px; }
.plan-pricing { min-height: 164px; display: grid; align-content: start; gap: 4px; }
.plan .price { color: #70737b; font-size: 14px; margin: 0 0 16px; }
.plan-price { margin: 10px 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.plan-meta { margin: 0 0 8px; color: #444; font-size: 14px; }
.plan-saving { margin: 0 0 14px; color: #166534; font-size: 14px; font-weight: 700; }
.plan-meta.is-empty,
.plan-saving.is-empty { visibility: hidden; }
.plan-badge { display: inline-flex; margin: 0 0 14px; padding: 6px 10px; border-radius: 999px; background: #fff5e8; color: #9a3412; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.plan ul,
.plan-features { padding-left: 18px; color: #2b2d31; margin: 0 0 20px; line-height: 1.4; }
.plan-note { margin: 0 0 14px; color: #555a63; font-size: 14px; }
.plan-actions { display: grid; gap: 10px; margin-top: auto; }
.plan-hint { margin: 0; color: #666; font-size: 13px; }

.checkout-shell { display: grid; gap: 20px; }
.checkout-back-link { display: inline-flex; width: fit-content; color: #374151; text-decoration: none; font-weight: 600; }
.checkout-back-link:hover { color: #111827; text-decoration: underline; }
.checkout-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.checkout-hero,
.checkout-card,
.card { background: var(--surface); padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.checkout-hero h1 { margin: 0 0 8px; }
.checkout-price { margin: 8px 0 4px; font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.checkout-meta { margin: 0; color: #444; font-size: 14px; }
.choice-grid { display: grid; gap: 12px; margin: 18px 0; }
.checkout-choice-intro { margin: 0; }
.choice-card { display: grid; gap: 6px; border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface-soft); cursor: pointer; }
.choice-card input { width: auto; margin: 0; }
.choice-title { font-weight: 700; }
.choice-copy { color: #555; font-size: 14px; line-height: 1.5; }
.checkout-back-inline { margin: 14px 0 0; font-size: 14px; color: #555; }
.checkout-back-inline a { color: #1f2937; }
.compact-list { gap: 10px; }
.compact-list li { display: block; background: var(--surface); border: 1px solid #ececec; border-radius: 10px; padding: 12px 14px; }

.legal h1 { margin-bottom: 8px; }
.legal h2 { margin-top: 28px; }
.legal { background: var(--surface); padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); max-width: 900px; margin: 0 auto; }
.legal ul { line-height: 1.5; }

.muted { color: #666c75; }
.eyebrow { margin: 0 0 8px; color: #777; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.auth-shell { display: flex; justify-content: center; padding: 48px 0; }
.auth-card { width: 100%; max-width: 520px; background: var(--surface); padding: 28px; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.04); }
.auth-card h1 { margin-top: 0; margin-bottom: 10px; }
.danger-card { border-color: #f0c0c0; }
.auth-form { display: grid; gap: 14px; margin-top: 18px; }
.auth-form label { display: grid; gap: 8px; font-weight: 600; }
.auth-form input { width: 100%; border: 1px solid #d8d8d8; border-radius: 10px; padding: 12px 14px; font: inherit; background: #fff; }
.auth-form input:focus { outline: 2px solid rgba(26,26,26,0.12); border-color: #1a1a1a; }
.auth-form select,
.auth-form textarea {
	width: 100%;
	border: 1px solid #d8d8d8;
	border-radius: 10px;
	padding: 12px 14px;
	font: inherit;
	background: #fff;
}
.auth-form select:focus,
.auth-form textarea:focus { outline: 2px solid rgba(26,26,26,0.12); border-color: #1a1a1a; }
.captcha-shell { display: grid; gap: 10px; padding: 14px; border: 1px solid #ececec; border-radius: 12px; background: var(--surface-soft); }
.captcha-note { margin: 0; color: #555; font-size: 14px; }
.auth-alt { margin: 18px 0 0; color: #666; }
.danger-list { margin: 18px 0; padding-left: 18px; color: #5b5b5b; }
.danger-list li + li { margin-top: 8px; }
.danger-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.alert { border-radius: 10px; padding: 12px 14px; margin-top: 18px; }
.alert.error { background: #fff4f4; border: 1px solid #f0c5c5; color: #8b1e1e; }
.alert.success { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success-text); }
.alert.info { background: #f3f7ff; border: 1px solid #cfe0ff; color: #1e3a8a; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.account .card { margin-bottom: 16px; }
.account .card.danger { border-color: #f0c0c0; }
.account-license-list { display: grid; gap: 16px; }
.license-card { background: var(--surface-soft); border: 1px solid #ececec; border-radius: 12px; padding: 20px; }
.license-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.license-card h3 { margin: 0; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 700; }
.status-pill.active { background: #ecfdf3; color: #166534; }
.status-pill.expired { background: #fff7ed; color: #9a3412; }
.status-pill.revoked { background: #f3f4f6; color: #374151; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0 0; }
.detail-grid div { background: var(--surface); border: 1px solid #ececec; border-radius: 10px; padding: 12px; }
.detail-grid dt { color: #777; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.detail-grid dd { margin: 6px 0 0; font-weight: 600; }
.device-list { margin-top: 18px; }
.device-list h4 { margin-bottom: 10px; }
.stack-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.stack-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid #ececec; border-radius: 10px; padding: 12px 14px; }
.device-row-copy { min-width: 0; }
.device-row-actions { display: grid; justify-items: end; gap: 10px; }
.device-row-actions form { margin: 0; }
.danger-button { border-color: #efc1c1; color: #8b1e1e; }
.danger-button:hover { border-color: #dc9f9f; color: #7f1d1d; }
.stack-list p { margin: 4px 0 0; color: #666; font-size: 14px; }

.success { text-align: center; padding: 48px 20px; }
.success-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

@media (max-width: 640px) {
	main { padding: 26px 14px 54px; }
	.hero h1 { font-size: 34px; }
	.hero .subtitle { font-size: 17px; }
	.nav,
	.page-header,
	.license-card__header,
	.stack-list li {
		align-items: stretch;
		flex-direction: column;
	}
	.nav { padding: 12px 14px; }
	.nav nav { gap: 12px; }
	.locale-switch { width: fit-content; }
	.plan,
	.checkout-hero,
	.checkout-card,
	.card,
	.auth-card,
	.legal { padding: 18px; }
	.pricing-hero { padding: 18px; }
	.pricing-highlights { grid-template-columns: 1fr; }
	.pricing .grid { grid-template-columns: 1fr; }
	.btn { width: 100%; text-align: center; }
	.ctas { flex-direction: column; }
	.ctas .btn { width: min(320px, 100%); margin: 0 auto; }
}
