:root {
	--ink: #16213c;
	--ink-soft: #46506b;
	--paper: #fff;
	--work-surface: #f4f7fb;
	--rule: #c9d3e1;
	--brand: #3858e9;
	--brand-dark: #243eb8;
	--structure: #007c9f;
	--success: #137c5b;
	--warning: #a14d00;
	--focus: #ffb900;
	--font-ui: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
	--font-code: "SFMono-Regular", consolas, "Liberation Mono", monospace;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.65;
}

button,
summary {
	font: inherit;
}

button:focus-visible,
summary:focus-visible,
a:focus-visible,
[tabindex="0"]:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.skip-link {
	position: fixed;
	inset-block-start: 8px;
	inset-inline-start: 8px;
	z-index: 20;
	padding: 8px 12px;
	color: #fff;
	background: var(--ink);
	transform: translateY(-160%);
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 68px;
	padding: 12px clamp(20px, 5vw, 72px);
	border-block-end: 1px solid var(--rule);
}

.brand {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	color: var(--ink);
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
}

.brand__mark {
	display: grid;
	inline-size: 34px;
	block-size: 34px;
	place-items: center;
	color: #fff;
	background: var(--brand);
	border-radius: 8px 2px 8px 2px;
}

.brand strong {
	color: var(--brand);
}

.locale-switcher {
	display: flex;
	gap: 4px;
	padding: 3px;
	background: var(--work-surface);
	border: 1px solid var(--rule);
	border-radius: 7px;
}

.locale-switcher__button {
	padding: 5px 10px;
	color: var(--ink-soft);
	background: transparent;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.locale-switcher__button[aria-pressed="true"] {
	color: #fff;
	background: var(--ink);
}

.demo-notice {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	padding: 8px 20px;
	color: #503000;
	background: #fff5d6;
	border-block-end: 1px solid #e6c96f;
	font-size: 14px;
}

.demo-notice__dot {
	inline-size: 8px;
	block-size: 8px;
	background: var(--warning);
	border-radius: 50%;
}

.demo-shell {
	display: grid;
	grid-template-columns: minmax(245px, 0.72fr) minmax(0, 2.4fr);
	min-height: 720px;
}

.journey {
	padding: 54px clamp(24px, 4vw, 48px);
	color: #fff;
	background: var(--ink);
}

.journey__context,
.truth-section__intro > p:first-child,
.inspection__heading p {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
}

.journey h1 {
	max-inline-size: 10em;
	margin: 0;
	font-size: clamp(28px, 3.2vw, 45px);
	line-height: 1.16;
	letter-spacing: -0.04em;
}

.journey__intro {
	max-inline-size: 34em;
	margin: 20px 0 38px;
	color: #cfd7ef;
}

.steps {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.steps::before {
	position: absolute;
	inset-block: 15px;
	inset-inline-start: 14px;
	inline-size: 1px;
	background: #596480;
	content: "";
}

.step-button {
	position: relative;
	display: grid;
	grid-template-columns: 30px 1fr;
	gap: 11px;
	align-items: start;
	inline-size: 100%;
	padding: 9px 0;
	color: #bac4df;
	text-align: start;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.step-button__marker {
	z-index: 1;
	display: grid;
	inline-size: 29px;
	block-size: 29px;
	place-items: center;
	background: var(--ink);
	border: 1px solid #6c7897;
	border-radius: 50%;
	font-size: 12px;
}

.step-button[aria-current="step"] {
	color: #fff;
	font-weight: 700;
}

.step-button[aria-current="step"] .step-button__marker {
	color: var(--ink);
	background: #7cddf1;
	border-color: #7cddf1;
}

.step-button[data-complete="true"] .step-button__marker {
	color: #fff;
	background: var(--success);
	border-color: var(--success);
}

.workbench {
	min-inline-size: 0;
	padding: 48px clamp(20px, 5vw, 72px) 36px;
	background: var(--work-surface);
}

.stage-header {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	justify-content: space-between;
	margin-block-end: 24px;
}

.stage-header__position {
	margin: 0 0 3px;
	color: var(--brand-dark);
	font-size: 14px;
	font-weight: 700;
}

.stage-header h2 {
	margin: 0;
	font-size: clamp(24px, 3vw, 36px);
	line-height: 1.25;
	letter-spacing: -0.025em;
}

.stage-header__summary {
	max-inline-size: 66ch;
	margin: 8px 0 0;
	color: var(--ink-soft);
}

.availability,
.planned-badge {
	flex: none;
	padding: 4px 9px;
	color: var(--success);
	background: #e7f6ef;
	border: 1px solid #8bc7b3;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.editor {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
	overflow: hidden;
	background: var(--paper);
	border: 1px solid #aebbd0;
	box-shadow: 0 16px 42px rgb(22 33 60 / 9%);
}

.document {
	min-inline-size: 0;
}

.document__header {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding: 11px 16px;
	border-block-end: 1px solid var(--rule);
	font-size: 13px;
	font-weight: 700;
}

.document__state {
	color: var(--ink-soft);
	font-weight: 400;
}

.document pre {
	min-block-size: 350px;
	max-block-size: 430px;
	margin: 0;
	padding: 20px;
	overflow: auto;
	color: #26314e;
	font-family: var(--font-code);
	font-size: 13px;
	line-height: 1.7;
	white-space: pre-wrap;
}

.document--candidate pre {
	background: #fbfcff;
}

.structure-spine {
	display: flex;
	flex-direction: column;
	gap: 30px;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: var(--structure);
	font-family: var(--font-code);
	font-size: 12px;
}

.inspection {
	display: grid;
	grid-template-columns: minmax(180px, 0.65fr) minmax(0, 2fr);
	gap: 28px;
	margin-block-start: 22px;
	padding: 22px;
	background: #fff;
	border-inline-start: 4px solid var(--brand);
}

.inspection__heading p {
	color: var(--brand-dark);
}

.inspection__heading h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
}

.inspection__body > p {
	margin-block-start: 0;
}

.check-list,
.diff-list {
	display: grid;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.check-list li,
.diff-list li {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 8px;
}

.check-list__icon {
	color: var(--success);
	font-weight: 800;
}

.term-change {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 12px;
	align-items: center;
	padding: 14px;
	background: #f3f6ff;
	border: 1px solid #b9c5f7;
	font-family: var(--font-code);
}

.term-change del {
	color: #8b2431;
}

.term-change ins {
	color: #086343;
	font-weight: 700;
	text-decoration: none;
}

.approval-stamp {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 8px 12px;
	color: #fff;
	background: var(--success);
	font-weight: 700;
	transform: rotate(-1deg);
}

.demo-controls {
	display: grid;
	grid-template-columns: auto auto 1fr;
	gap: 10px;
	margin-block-start: 22px;
}

.button {
	min-block-size: 44px;
	padding: 9px 16px;
	color: var(--ink);
	background: #fff;
	border: 1px solid #9ba8bd;
	border-radius: 5px;
	font-weight: 700;
	cursor: pointer;
}

.button:disabled {
	cursor: not-allowed;
	opacity: 0.52;
}

.button--reset {
	font-weight: 500;
}

.button--primary {
	justify-self: end;
	min-inline-size: 190px;
	color: #fff;
	background: var(--brand);
	border-color: var(--brand);
}

.button--primary:not(:disabled):hover {
	background: var(--brand-dark);
}

.keyboard-hint {
	margin: 9px 0 0;
	color: var(--ink-soft);
	font-size: 13px;
	text-align: end;
}

.truth-section,
.sales-guide {
	padding: clamp(54px, 8vw, 100px) clamp(20px, 8vw, 120px);
}

.truth-section {
	display: grid;
	grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.7fr);
	gap: clamp(32px, 7vw, 90px);
	background: #eef2f8;
}

.truth-section__intro > p:first-child {
	color: var(--brand-dark);
}

.truth-section h2,
.sales-guide h2 {
	margin: 0;
	font-size: clamp(27px, 3vw, 40px);
	line-height: 1.25;
}

.truth-section__intro > p:last-child {
	color: var(--ink-soft);
}

.planned-list article {
	padding: 22px 0;
	border-block-start: 1px solid #aebbd0;
}

.planned-list article:last-child {
	border-block-end: 1px solid #aebbd0;
}

.planned-list h3 {
	margin: 12px 0 4px;
}

.planned-list p {
	margin: 0;
	color: var(--ink-soft);
}

.planned-badge {
	color: #704000;
	background: #fff4d2;
	border-color: #dfbd5b;
}

.sales-guide {
	max-inline-size: 1200px;
	margin-inline: auto;
}

.sales-guide__items {
	margin-block-start: 28px;
	border-block-start: 1px solid var(--rule);
}

.sales-guide details {
	padding: 17px 0;
	border-block-end: 1px solid var(--rule);
}

.sales-guide summary {
	cursor: pointer;
	font-weight: 700;
}

.sales-guide details p {
	max-inline-size: 72ch;
	color: var(--ink-soft);
}

.review-gate {
	margin-block-start: 28px;
	padding: 13px 16px;
	color: #503000;
	background: #fff5d6;
	border-inline-start: 4px solid var(--warning);
}

.sr-only {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 900px) {

	.demo-shell,
	.truth-section {
		grid-template-columns: 1fr;
	}

	.journey {
		padding-block: 36px;
	}

	.journey h1 {
		max-inline-size: none;
	}

	.steps {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 4px 14px;
	}

	.steps::before {
		display: none;
	}
}

@media (max-width: 680px) {

	.site-header,
	.demo-notice,
	.stage-header {
		align-items: flex-start;
	}

	.demo-notice {
		flex-wrap: wrap;
		justify-content: flex-start;
	}

	.demo-shell {
		min-height: 0;
	}

	.steps {
		grid-template-columns: 1fr 1fr;
	}

	.workbench {
		padding-block-start: 32px;
	}

	.stage-header {
		flex-direction: column;
	}

	.editor {
		grid-template-columns: 1fr;
	}

	.structure-spine {
		flex-direction: row;
		padding: 7px;
	}

	.document pre {
		min-block-size: 260px;
		max-block-size: 360px;
	}

	.inspection {
		grid-template-columns: 1fr;
	}

	.term-change {
		grid-template-columns: 1fr;
	}

	.demo-controls {
		grid-template-columns: 1fr 1fr;
	}

	.button--primary {
		grid-column: 1 / -1;
		justify-self: stretch;
	}

	.keyboard-hint {
		text-align: start;
	}
}

@media (max-width: 420px) {

	.site-header {
		flex-direction: column;
		gap: 12px;
	}

	.steps {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
