:root {
	--bg: #f6f8fb;
	--surface: #ffffff;
	--surface-muted: #e8f4fa;
	--ink: #12263a;
	--muted: #5d6978;
	--border: #d7dde6;
	--brand: #0f78aa;
	--brand-strong: #12263a;
	--brand-soft: #e8f4fa;
	--brand-light: #9ac6df;
	--accent: #0f78aa;
	--danger: #a43a34;
	--danger-soft: #f9e5e3;
	--warning: #8b5b14;
	--warning-soft: #fff1d6;
	--success: #14734f;
	--success-soft: #def3e9;
	--shadow: 0 18px 45px rgba(24, 33, 47, 0.08);
	--radius: 8px;
	--focus: 0 0 0 3px rgba(15, 120, 170, 0.28);
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	background: var(--bg);
	color: var(--ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
}

body {
	margin: 0;
	min-height: 100vh;
	background:
		linear-gradient(180deg, #ffffff 0, rgba(255, 255, 255, 0) 320px),
		var(--bg);
}

a {
	color: var(--accent);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--brand-strong);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: none;
	box-shadow: var(--focus);
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -80px;
	z-index: 20;
	padding: 10px 14px;
	border-radius: var(--radius);
	background: var(--ink);
	color: #ffffff;
	transition: top 120ms ease;
}

.skip-link:focus {
	top: 12px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	border-bottom: 1px solid rgba(154, 198, 223, 0.48);
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(12px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	width: min(1120px, calc(100% - 32px));
	min-height: 72px;
	margin: 0 auto;
}

.brand {
	display: inline-flex;
	align-items: center;
	min-width: 150px;
	color: var(--ink);
	font-weight: 800;
	text-decoration: none;
}

.brand__logo {
	display: block;
	width: 174px;
	max-width: 42vw;
	height: auto;
}

.nav {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.nav a {
	min-height: 40px;
	padding: 9px 12px;
	border-radius: var(--radius);
	color: var(--muted);
	font-weight: 700;
	text-decoration: none;
}

.nav a:hover,
.nav a.is-active {
	background: var(--brand-soft);
	color: var(--brand-strong);
}

.header-form {
	margin: 0;
}

.page-shell {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 40px 0 52px;
}

.site-footer {
	display: flex;
	justify-content: center;
	gap: 14px;
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 28px 0 40px;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.92rem;
}

.auth-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
	gap: 36px;
	align-items: center;
	min-height: calc(100vh - 210px);
}

.auth-copy {
	max-width: 620px;
}

.eyebrow {
	margin: 0 0 10px;
	color: var(--brand);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	overflow-wrap: anywhere;
}

h1 {
	margin: 0;
	font-size: 2.6rem;
	line-height: 1.08;
	letter-spacing: 0;
}

h2 {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.2;
	letter-spacing: 0;
}

.auth-copy p,
.page-heading p,
.section-panel p,
.metric-card p,
.pricing-panel p,
.result-page p,
.form-intro,
.form-note {
	color: var(--muted);
}

.auth-copy p:not(.eyebrow),
.page-heading p {
	max-width: 690px;
	font-size: 1.08rem;
}

.form-card,
.section-panel,
.table-panel,
.pricing-panel,
.metric-card {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.form-card {
	display: grid;
	gap: 18px;
	padding: 26px;
}

.field {
	display: grid;
	gap: 7px;
}

label {
	color: #263243;
	font-size: 0.94rem;
	font-weight: 800;
}

input {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #b9c3d0;
	border-radius: var(--radius);
	background: #ffffff;
	color: var(--ink);
	font: inherit;
}

input[aria-describedby*="error"] {
	border-color: var(--danger);
}

.field-help,
.field-error,
.form-note {
	margin: 0;
	font-size: 0.9rem;
}

.field-help {
	color: var(--muted);
}

.field-error {
	color: var(--danger);
	font-weight: 700;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	max-width: 100%;
	padding: 10px 16px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font: inherit;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.button:hover {
	transform: translateY(-1px);
}

.button--primary {
	background: var(--brand);
	color: #ffffff;
}

.button--primary:hover {
	background: var(--brand-strong);
	color: #ffffff;
}

.button--secondary {
	border-color: #b9c3d0;
	background: #ffffff;
	color: var(--ink);
}

.button--secondary:hover,
.button--ghost:hover {
	background: var(--brand-soft);
	color: var(--ink);
}

.button--ghost {
	border-color: transparent;
	background: transparent;
	color: var(--muted);
}

.button[aria-busy="true"] {
	opacity: 0.78;
	pointer-events: none;
}

.page-heading {
	margin-bottom: 26px;
}

.page-heading h1 {
	max-width: 760px;
}

.alert {
	margin-bottom: 18px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.alert h2,
.alert p {
	margin: 0;
}

.alert h2 + p {
	margin-top: 4px;
}

.alert--error {
	border-color: #efb4ae;
	background: var(--danger-soft);
	color: #742823;
}

.alert--success {
	border-color: #abdcc9;
	background: var(--success-soft);
	color: #0d553a;
}

.alert--info {
	border-color: #bcd0e9;
	background: var(--brand-soft);
	color: var(--brand-strong);
}

.metric-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 18px;
}

.metric-card {
	padding: 20px;
}

.metric-card__label {
	display: block;
	margin-bottom: 8px;
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
}

.metric-card strong {
	display: block;
	font-size: 1.55rem;
	line-height: 1.1;
}

.metric-card p {
	margin: 10px 0 0;
}

.section-grid,
.content-grid,
.billing-layout {
	display: grid;
	gap: 18px;
}

.section-grid {
	grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.content-grid,
.billing-layout {
	grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
	align-items: start;
}

.section-panel,
.table-panel,
.pricing-panel {
	padding: 22px;
}

.section-panel--quiet {
	background: var(--surface-muted);
	box-shadow: none;
}

.action-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.action-row--center {
	justify-content: center;
}

.plain-list,
.check-list {
	margin: 16px 0 0;
	padding-left: 22px;
}

.plain-list li,
.check-list li {
	margin-top: 8px;
}

.table-panel__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--brand-soft);
	color: var(--brand-strong);
	font-size: 0.82rem;
	font-weight: 800;
}

.responsive-table {
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
}

th,
td {
	padding: 13px 14px;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

th {
	background: #f6f9fc;
	color: var(--muted);
	font-size: 0.82rem;
	text-transform: uppercase;
}

tr:last-child td {
	border-bottom: 0;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 0.84rem;
	font-weight: 800;
}

.status-pill--success {
	background: var(--success-soft);
	color: var(--success);
}

.status-pill--warning {
	background: var(--warning-soft);
	color: var(--warning);
}

.status-pill--muted {
	background: #eef1f5;
	color: var(--muted);
}

.inline-form {
	margin: 0;
}

.button--small {
	min-height: 34px;
	padding: 7px 10px;
	font-size: 0.86rem;
}

.muted-text {
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 700;
}

.empty-state {
	display: grid;
	gap: 6px;
	padding: 24px;
	border: 1px dashed var(--brand-light);
	border-radius: var(--radius);
	background: #f8fbfd;
	text-align: center;
}

.empty-state--small {
	margin-top: 18px;
	padding: 18px;
	text-align: left;
}

.empty-state h2,
.empty-state p {
	margin: 0;
}

.pricing-panel {
	display: grid;
	gap: 18px;
	background: #fdfefe;
}

.pricing-panel h2 {
	font-size: 2.2rem;
}

.pricing-panel h2 span {
	color: var(--muted);
	font-size: 1rem;
	font-weight: 700;
}

.check-list {
	padding-left: 0;
	list-style: none;
}

.check-list li {
	position: relative;
	padding-left: 24px;
}

.check-list li::before {
	content: "OK";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--success);
	font-size: 0.72rem;
	font-weight: 900;
}

.detail-list {
	display: grid;
	gap: 12px;
	margin: 18px 0 0;
}

.detail-list div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
}

.detail-list dt {
	color: var(--muted);
	font-weight: 800;
}

.detail-list dd {
	margin: 0;
	text-align: right;
}

.result-page {
	display: grid;
	justify-items: center;
	gap: 14px;
	max-width: 720px;
	margin: 54px auto;
	padding: 42px 28px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
	text-align: center;
}

.result-icon {
	display: grid;
	place-items: center;
	min-width: 46px;
	min-height: 46px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--brand-soft);
	color: var(--brand-strong);
	font-weight: 900;
}

.result-page--error .result-icon,
.result-page--canceled .result-icon {
	background: var(--warning-soft);
	color: var(--warning);
}

@media (max-width: 820px) {
	.site-header__inner {
		flex-wrap: wrap;
		gap: 12px;
		padding: 14px 0;
	}

	.nav {
		order: 3;
		width: 100%;
		margin-left: 0;
		overflow-x: auto;
	}

	.header-form {
		margin-left: auto;
	}

	.auth-panel,
	.metric-grid,
	.section-grid,
	.content-grid,
	.billing-layout {
		grid-template-columns: 1fr;
	}

	.auth-panel {
		align-items: start;
		min-height: 0;
	}

	h1 {
		font-size: 2rem;
	}
}

@media (max-width: 520px) {
	.page-shell,
	.site-header__inner,
	.site-footer {
		width: min(100% - 24px, 1120px);
	}

	.site-footer,
	.detail-list div {
		flex-direction: column;
	}

	.detail-list dd {
		text-align: left;
	}

	.form-card,
	.section-panel,
	.table-panel,
	.pricing-panel,
	.metric-card,
	.result-page {
		padding: 18px;
	}

	.button {
		width: 100%;
	}
}
