@font-face {
	font-family: "Comfortaa";
	src: url("/fonts/Comfortaa-Regular.woff2") format("woff2");
	font-display: swap;
	font-style: normal;
	font-weight: 400;
}

:root {
	color-scheme: light dark;
	--field: #08090d;
	--field-raised: #0c0c10;
	--field-text: #ffffff;
	--field-secondary: #c9caff;
	--panel: #ffffff;
	--panel-subtle: #f4f4f7;
	--panel-hover: #ececf1;
	--text: #111116;
	--text-secondary: #5c5c68;
	--border: #e3e3e8;
	--accent: #3735ad;
	--accent-deep: #292873;
	--accent-soft: #eeeeff;
	--route: #9a9bff;
	--focus: #5f8cff;
	--error: #b42335;
	--error-surface: #fff0f2;
	--success: #397a4a;
	--success-surface: #eef6f0;
	--warning: #80600f;
	--warning-surface: #fff8e1;
	--action: #3735ad;
	--action-hover: #292873;
	--action-text: #ffffff;
	--disabled: #d8d8de;
	--disabled-text: #5c5c68;
	--font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--text-tiny: 0.625rem;
	--text-caption: 0.75rem;
	--text-small: 0.8125rem;
	--text-control: 0.875rem;
	--text-copy: 0.95rem;
	--text-body: 1rem;
	--text-lead: 1.15rem;
	--text-divider: 1.3rem;
	--text-brand: 1.4rem;
	--text-heading: clamp(1.85rem, 3vw, 2.35rem);
	--text-display: clamp(3.4rem, 6.1vw, 5.6rem);
	--text-step-compact: 0.66rem;
	--page-gutter: clamp(1.25rem, 4vw, 4.5rem);
	--radius-focus: 0.2rem;
	--radius-document: 0.3rem;
	--radius-control: 0.5rem;
	--radius-route: 0.65rem;
	--radius-panel: 1rem;
	--radius-panel-compact: 0.75rem;
	--shadow-panel: 0 1.75rem 4rem rgba(14, 14, 26, 0.16);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
	box-sizing: border-box;
}

html {
	background: var(--field);
	font-family: var(--font-system);
	-webkit-text-size-adjust: 100%;
}

body {
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	background: var(--field);
	color: var(--field-text);
	font-family: var(--font-system);
	font-size: 1rem;
	line-height: 1.5;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

button,
input {
	font: inherit;
}

button,
a,
input {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: inherit;
}

button {
	cursor: pointer;
}

button:disabled {
	cursor: not-allowed;
}

.skip-link {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 20;
	padding: 0.75rem 1rem;
	border-radius: var(--radius-control);
	background: var(--field-text);
	color: var(--field);
	font-size: var(--text-control);
	font-weight: 700;
	transform: translateY(-150%);
	transition: transform 180ms var(--ease-out);
}

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

.app-shell {
	min-height: 100vh;
	min-height: 100svh;
	background: var(--field);
}

.site-header {
	display: flex;
	min-height: 5.45rem;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0 var(--page-gutter);
	border-bottom: 1px solid #303038;
	background: var(--field);
}

.brand-lockup {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	gap: 0.9rem;
	color: var(--field-text);
	text-decoration: none;
}

.brand-lockup:focus-visible,
.support-link:focus-visible,
.text-button:focus-visible,
.workflow-note a:focus-visible {
	border-radius: var(--radius-focus);
	outline: 0.2rem solid var(--focus);
	outline-offset: 0.25rem;
}

.brand-mark {
	display: block;
	width: 2.65rem;
	height: 2.65rem;
	object-fit: contain;
}

.brand-word {
	font-family: "Comfortaa", var(--font-system);
	font-size: var(--text-brand);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

.brand-divider {
	color: #b5b5c0;
	font-size: var(--text-divider);
}

.product-name {
	color: #d8d8de;
	font-size: var(--text-lead);
	font-weight: 450;
	letter-spacing: -0.015em;
}

.support-link {
	color: #d8d8de;
	font-size: var(--text-control);
	font-weight: 650;
	text-decoration-color: transparent;
	text-underline-offset: 0.3rem;
	transition: color 180ms ease, text-decoration-color 180ms ease;
}

.support-link:hover {
	color: var(--field-text);
	text-decoration-color: currentColor;
}

.workspace {
	display: grid;
	min-height: calc(100vh - 5.45rem);
	min-height: calc(100svh - 5.45rem);
	grid-template-columns: minmax(0, 1.05fr) minmax(32rem, 0.95fr);
}

.product-field {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: flex-start;
	padding: clamp(5rem, 8vw, 8.5rem) var(--page-gutter) clamp(4rem, 7vw, 7rem);
	background: var(--field);
}

.product-copy {
	max-width: 42rem;
}

.product-copy h1 {
	max-width: 10.5ch;
	margin: 0;
	color: var(--field-text);
	font-size: var(--text-display);
	font-weight: 760;
	letter-spacing: -0.04em;
	line-height: 0.98;
	text-wrap: balance;
}

.product-copy h1 span {
	color: var(--route);
}

.product-copy p {
	max-width: 36rem;
	margin: 2rem 0 0;
	color: #d8d8de;
	font-size: clamp(var(--text-body), 1.25vw, var(--text-lead));
	line-height: 1.6;
}

.pricing-preview {
	width: min(100%, 36rem);
	margin-top: 2.5rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid #303038;
	border-radius: var(--radius-panel);
	background: #111116;
}

.pricing-preview-header,
.pricing-preview-rates {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
}

.pricing-preview-header {
	align-items: baseline;
}

.pricing-preview h2 {
	margin: 0;
	font-size: var(--text-body);
	font-weight: 700;
}

.pricing-preview-header > span {
	color: #b5b5c0;
	font-size: var(--text-caption);
	font-weight: 700;
	letter-spacing: 0.08em;
}

.pricing-preview-rates {
	margin-top: 1rem;
}

.pricing-preview-rates > div {
	display: grid;
	gap: 0.1rem;
}

.pricing-preview-rates strong {
	font-size: var(--text-divider);
	letter-spacing: -0.03em;
}

.pricing-preview-rates span,
.pricing-preview p {
	color: #b5b5c0;
	font-size: var(--text-small);
}

.pricing-preview p {
	margin: 1rem 0 0;
	line-height: 1.5;
}

.pricing-retry {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--field-secondary);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2rem;
}

.pricing-retry:focus-visible {
	border-radius: var(--radius-focus);
	outline: 0.2rem solid var(--focus);
	outline-offset: 0.2rem;
}

.transmission-route {
	display: grid;
	width: min(100%, 37rem);
	margin: clamp(3rem, 6vh, 5rem) 0 0;
	padding: 0;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
}

.route-stop {
	position: relative;
	display: grid;
	min-width: 0;
	justify-items: center;
	gap: 0.75rem;
	color: var(--field-secondary);
	font-size: var(--text-caption);
	font-weight: 700;
	letter-spacing: 0.07em;
	text-align: center;
	text-transform: uppercase;
}

.route-stop:not(:last-child)::after {
	position: absolute;
	top: 1.72rem;
	left: calc(50% + 2.2rem);
	width: calc(100% - 4.4rem);
	border-top: 1px dashed var(--route);
	content: "";
}

.route-icon {
	position: relative;
	z-index: 1;
	display: grid;
	width: 3.45rem;
	height: 3.45rem;
	place-items: center;
	border: 1px solid var(--route);
	border-radius: var(--radius-route);
	background: var(--field);
	color: var(--route);
}

.route-stop:nth-child(2) .route-icon {
	border-radius: 50%;
}

.route-icon svg {
	width: 1.55rem;
	height: 1.55rem;
}

.workflow-region {
	display: flex;
	min-width: 0;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(1.8rem, 3.25vw, 3.2rem) clamp(1.4rem, 3.2vw, 3.4rem) 4.5rem;
	background: var(--field-raised);
}

.workflow-panel {
	width: min(100%, 42rem);
	min-height: 40rem;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: var(--radius-panel);
	background: var(--panel);
	box-shadow: var(--shadow-panel);
	color: var(--text);
}

.step-navigation {
	padding: 2rem 2rem 0;
}

.step-list {
	display: grid;
	margin: 0;
	padding: 0;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
}

.step-item {
	position: relative;
	min-width: 0;
}

.step-item:not(:last-child)::after {
	position: absolute;
	top: 1rem;
	left: calc(50% + 1.25rem);
	width: calc(100% - 2.5rem);
	border-top: 1px solid var(--border);
	content: "";
}

.step-item.is-complete:not(:last-child)::after,
.step-item.is-current:not(:last-child)::after {
	border-color: var(--accent);
}

.step-button {
	display: grid;
	width: 100%;
	min-width: 0;
	justify-items: center;
	gap: 0.55rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--text-secondary);
	font-size: var(--text-small);
	font-weight: 650;
	line-height: 1;
	text-align: center;
}

.step-button:disabled {
	color: var(--text-secondary);
	cursor: default;
	opacity: 1;
}

.step-button:not(:disabled):hover {
	color: var(--accent);
}

.step-button:not(:disabled):focus-visible {
	border-radius: var(--radius-focus);
	outline: 0.2rem solid var(--focus);
	outline-offset: 0.25rem;
}

.step-number {
	position: relative;
	z-index: 1;
	display: grid;
	width: 2rem;
	height: 2rem;
	place-items: center;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--panel);
	font-size: var(--text-caption);
}

.step-label {
	max-width: 100%;
	white-space: normal;
}

.step-number svg {
	width: 0.95rem;
	height: 0.95rem;
}

.step-item.is-current .step-button {
	color: var(--accent);
	font-weight: 750;
}

.step-item.is-current .step-number {
	border-color: var(--accent);
}

.step-item.is-complete .step-button {
	color: var(--text);
}

.step-item.is-complete .step-number {
	border-color: var(--text);
	background: var(--text);
	color: var(--panel);
}

.workflow-stage {
	padding: clamp(2.3rem, 4vw, 3.25rem) 2rem 2.25rem;
	animation: stage-arrive 300ms var(--ease-out) both;
}

@keyframes stage-arrive {
	from {
		clip-path: inset(0 0 0.75rem 0);
		opacity: 0.65;
		transform: translateY(0.6rem);
	}
	to {
		clip-path: inset(0);
		opacity: 1;
		transform: translateY(0);
	}
}

.workflow-form {
	display: flex;
	min-height: 31rem;
	flex-direction: column;
}

.step-heading {
	max-width: 34rem;
	margin-bottom: 2rem;
}

.step-heading h2,
.receipt-status h2 {
	margin: 0;
	color: var(--text);
	font-size: var(--text-heading);
	font-weight: 750;
	letter-spacing: -0.035em;
	line-height: 1.06;
	text-wrap: balance;
}

.step-heading h2:focus,
.receipt-status h2:focus {
	outline: none;
}

.step-heading p,
.receipt-status p {
	max-width: 62ch;
	margin: 0.75rem 0 0;
	color: var(--text-secondary);
	font-size: var(--text-copy);
	line-height: 1.55;
}

.field-stack {
	display: grid;
	gap: 1.35rem;
}

/* Account access stays optional and visually secondary to the fax route itself. */
.account-choice,
.wallet-choice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid var(--border);
	border-radius: 1rem;
	background: var(--panel-subtle);
}

.account-choice p,
.wallet-choice small {
	display: block;
	margin: 0.25rem 0 0;
	color: var(--text-secondary);
}

.button--compact {
	min-height: 2.5rem;
	padding: 0.55rem 0.9rem;
	white-space: nowrap;
}

.wallet-choice {
	justify-content: flex-start;
	cursor: pointer;
}

.wallet-choice input {
	inline-size: 1.15rem;
	block-size: 1.15rem;
	accent-color: var(--accent);
}

.wallet-allocation {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0.85rem 1rem;
	border-radius: 0.85rem;
	background: var(--panel-subtle);
}

.wallet-allocation div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.wallet-allocation dt,
.wallet-allocation dd {
	margin: 0;
}

.field {
	display: grid;
	gap: 0.45rem;
}

.field-label {
	color: var(--text);
	font-size: var(--text-small);
	font-weight: 740;
	line-height: 1.25;
}

.field input {
	width: 100%;
	min-height: 3.35rem;
	padding: 0.85rem 0.95rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-control);
	outline: none;
	background: var(--panel);
	color: var(--text);
	font-size: var(--text-body);
	line-height: 1.5;
	transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field input::placeholder {
	color: var(--text-secondary);
	opacity: 1;
}

.field input:hover {
	border-color: var(--text-secondary);
}

.field input:focus-visible,
.field input[aria-invalid="true"]:focus-visible {
	border-color: var(--accent);
	box-shadow: 0 0 0 0.2rem var(--focus);
}

.field input[aria-invalid="true"] {
	border-color: var(--error);
}

.field-hint {
	color: var(--text-secondary);
	font-size: var(--text-caption);
	line-height: 1.4;
}

.field-error {
	color: var(--error);
	font-size: var(--text-small);
	font-weight: 650;
	line-height: 1.4;
}

.workflow-actions {
	display: grid;
	margin-top: auto;
	padding-top: 2rem;
	grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
	gap: 0.75rem;
}

.workflow-actions--end {
	grid-template-columns: minmax(12rem, 18rem);
	justify-content: end;
}

.workflow-actions--start {
	grid-template-columns: minmax(8rem, 12rem);
	justify-content: start;
}

.button {
	display: inline-flex;
	min-width: 0;
	min-height: 3.2rem;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.05rem;
	border: 1px solid transparent;
	border-radius: var(--radius-control);
	font-size: var(--text-control);
	font-weight: 720;
	line-height: 1.15;
	text-align: center;
	transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease-out);
}

.button svg {
	width: 1.05rem;
	height: 1.05rem;
}

.button--primary {
	border-color: var(--action);
	background: var(--action);
	color: var(--action-text);
}

.button--primary:hover:not(:disabled) {
	border-color: var(--action-hover);
	background: var(--action-hover);
	box-shadow: 0 0.65rem 1.4rem rgba(41, 40, 115, 0.2);
	transform: translateY(-0.1rem);
}

.button--secondary {
	border-color: var(--text-secondary);
	background: transparent;
	color: var(--text);
}

.button--secondary:hover:not(:disabled) {
	border-color: var(--text);
	background: var(--panel-hover);
}

.button:focus-visible {
	outline: 0.2rem solid var(--focus);
	outline-offset: 0.2rem;
}

.button:active:not(:disabled) {
	box-shadow: none;
	transform: translateY(0);
}

.button:disabled {
	border-color: var(--disabled);
	background: var(--disabled);
	color: var(--disabled-text);
}

.text-button {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--accent);
	font-size: var(--text-small);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2rem;
}

.text-button:hover {
	color: var(--accent-deep);
}

.workflow-note {
	margin: 0.9rem 0 0;
	color: var(--text-secondary);
	font-size: var(--text-small);
	line-height: 1.45;
	text-align: center;
}

.workflow-note a {
	color: var(--text);
	font-weight: 650;
	text-underline-offset: 0.2rem;
}

.drop-zone {
	position: relative;
	display: grid;
	min-height: 10rem;
	place-items: center;
	overflow: hidden;
	border: 1px dashed var(--accent);
	border-radius: var(--radius-control);
	background: var(--panel-subtle);
	transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
	border-color: var(--accent-deep);
	background: var(--accent-soft);
}

.drop-zone:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 0.2rem var(--focus);
}

.drop-zone.has-error {
	border-color: var(--error);
}

.drop-zone-input {
	position: absolute;
	z-index: 2;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	opacity: 0;
}

.drop-zone-content {
	display: grid;
	justify-items: center;
	gap: 0.55rem;
	padding: 1.4rem;
	color: var(--text-secondary);
	text-align: center;
}

.drop-zone-icon {
	width: 2.3rem;
	height: 2.3rem;
	color: var(--accent);
}

.drop-zone-action {
	color: var(--accent);
	font-size: var(--text-body);
	font-weight: 700;
}

.drop-zone-hint {
	font-size: var(--text-small);
}

.document-error {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	margin: 0.65rem 0 0;
}

.document-error svg {
	width: 1rem;
	height: 1rem;
	flex: 0 0 auto;
	margin-top: 0.05rem;
}

.selected-document {
	display: grid;
	min-height: 3.9rem;
	align-items: center;
	margin-top: 0.75rem;
	padding: 0.65rem 0.85rem;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	gap: 0.7rem;
	border-radius: var(--radius-document);
	background: var(--accent-soft);
}

.selected-document-icon {
	width: 1.45rem;
	height: 1.45rem;
	color: var(--accent);
}

.selected-document-name {
	overflow: hidden;
	font-size: var(--text-control);
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.document-meta {
	color: var(--text-secondary);
	font-size: var(--text-caption);
}

.quote-region {
	margin-top: 1rem;
}

.quote-loading {
	display: flex;
	min-height: 3rem;
	align-items: center;
	gap: 0.7rem;
	color: var(--text-secondary);
	font-size: var(--text-control);
}

.spinner {
	display: inline-block;
	width: 1.05rem;
	height: 1.05rem;
	flex: 0 0 auto;
	border: 2px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: spin 700ms linear infinite;
}

.spinner--button {
	border-color: currentColor;
	border-top-color: transparent;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.ledger {
	margin: 0;
	border-top: 1px solid var(--border);
}

.ledger > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 2rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--border);
}

.ledger dt {
	color: var(--text-secondary);
	font-size: var(--text-small);
}

.ledger dd {
	min-width: 0;
	margin: 0;
	color: var(--text);
	font-size: var(--text-control);
	font-weight: 670;
	text-align: right;
	overflow-wrap: anywhere;
}

.ledger .ledger-total {
	padding: 0.9rem 0;
}

.ledger-total dt,
.ledger-total dd {
	color: var(--text);
	font-size: var(--text-body);
	font-weight: 760;
}

.review-ledger {
	margin-bottom: 1.5rem;
}

.inline-alert {
	display: grid;
	margin-top: 1rem;
	padding: 0.9rem 1rem;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.7rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-control);
	background: var(--panel-subtle);
	color: var(--text);
}

.inline-alert > svg {
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.05rem;
}

.inline-alert strong {
	display: block;
	font-size: var(--text-control);
}

.inline-alert p {
	margin: 0.25rem 0 0;
	color: var(--text-secondary);
	font-size: var(--text-small);
	line-height: 1.45;
}

.inline-alert .text-button {
	margin-top: 0.55rem;
}

.inline-alert--error {
	border-color: var(--error);
	background: var(--error-surface);
}

.inline-alert--error > svg,
.inline-alert--error strong {
	color: var(--error);
}

.inline-alert--warning {
	border-color: var(--warning);
	background: var(--warning-surface);
}

.inline-alert--warning > svg,
.inline-alert--warning strong {
	color: var(--warning);
}

.card-entry-field {
	gap: 0.5rem;
}

.card-element {
	min-height: 3.35rem;
	padding: 1rem 0.95rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-control);
	background: var(--panel);
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.card-element:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 0.2rem var(--focus);
}

.payment-loading {
	height: 15rem;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	background: var(--panel-subtle);
}

.receipt-step {
	min-height: 32rem;
}

.receipt-status {
	display: grid;
	align-items: start;
	margin-bottom: 2rem;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem;
}

.receipt-status-mark {
	display: grid;
	width: 2.5rem;
	height: 2.5rem;
	place-items: center;
	border-radius: 50%;
}

.receipt-status-icon {
	width: 1.35rem;
	height: 1.35rem;
}

.receipt-status--success .receipt-status-mark {
	background: var(--success-surface);
	color: var(--success);
}

.receipt-status--error .receipt-status-mark {
	background: var(--error-surface);
	color: var(--error);
}

.receipt-status--pending .receipt-status-mark {
	background: var(--accent-soft);
	color: var(--accent);
}

.receipt-status--warning .receipt-status-mark {
	background: var(--warning-surface);
	color: var(--warning);
}

.receipt-ledger code {
	color: inherit;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.86em;
}

.status-refresh-error {
	margin: 0.9rem 0 0;
	color: var(--warning);
	font-size: var(--text-small);
	font-weight: 650;
	text-align: center;
}

.receipt-actions {
	margin-top: 1.5rem;
	padding-top: 0;
}

@media (max-width: 68rem) {
	:root {
		--text-display: clamp(3.2rem, 6.4vw, 4.6rem);
	}

	.product-copy h1 {
		font-size: var(--text-display);
	}

	.product-field {
		padding-right: clamp(1.8rem, 3vw, 3rem);
	}

	.workflow-region {
		padding-left: 1rem;
	}
}

@media (max-width: 53rem) {
	:root {
		--text-display: clamp(3.6rem, 10vw, 5.3rem);
	}

	.workspace {
		display: block;
	}

	.product-field {
		min-height: 31rem;
		padding: clamp(4rem, 10vw, 6rem) var(--page-gutter) 4rem;
	}

	.product-copy h1 {
		max-width: 12ch;
		font-size: var(--text-display);
	}

	.product-copy p {
		max-width: 38rem;
	}

	.transmission-route {
		margin-top: 4rem;
	}

	.workflow-region {
		padding: 2rem var(--page-gutter) 4rem;
	}

	.workflow-panel {
		width: min(100%, 46rem);
	}
}

@media (max-width: 40rem) {
	:root {
		--text-display: clamp(3rem, 15vw, 4.2rem);
	}

	.site-header {
		min-height: 4.5rem;
		gap: 0.75rem;
	}

	.brand-lockup {
		gap: 0.55rem;
	}

	.brand-mark {
		width: 2rem;
		height: 2rem;
	}

	.brand-word {
		font-size: var(--text-body);
	}

	.brand-divider {
		font-size: var(--text-body);
	}

	.product-name {
		font-size: var(--text-control);
	}

	.support-link {
		font-size: var(--text-small);
	}

	.product-field {
		min-height: auto;
		padding-top: 3.75rem;
		padding-bottom: 3.5rem;
	}

	.product-copy h1 {
		max-width: 11ch;
		font-size: var(--text-display);
	}

	.product-copy p {
		margin-top: 1.5rem;
		font-size: var(--text-body);
	}

	.transmission-route {
		margin-top: 3rem;
	}

	.route-stop {
		font-size: var(--text-tiny);
		letter-spacing: 0.04em;
	}

	.route-stop:not(:last-child)::after {
		left: calc(50% + 1.7rem);
		width: calc(100% - 3.4rem);
	}

	.route-icon {
		width: 3.1rem;
		height: 3.1rem;
	}

	.workflow-region {
		padding: 1rem 1rem 3rem;
	}

	.workflow-panel {
		min-height: 38rem;
		border-radius: var(--radius-panel-compact);
	}

	.step-navigation {
		padding: 1.35rem 0.9rem 0;
	}

	.step-button {
		gap: 0.4rem;
		font-size: var(--text-step-compact);
	}

	.step-item:not(:last-child)::after {
		top: 1rem;
		left: calc(50% + 1.25rem);
		width: calc(100% - 2.5rem);
	}

	.workflow-stage {
		padding: 2rem 1.15rem 1.5rem;
	}

	.workflow-form {
		min-height: 29rem;
	}

	.step-heading {
		margin-bottom: 1.65rem;
	}

	.step-heading h2,
	.receipt-status h2 {
		font-size: var(--text-heading);
	}

	.selected-document {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.document-meta {
		display: none;
	}

	.ledger > div {
		gap: 1rem;
	}

	.ledger dd {
		max-width: 62%;
	}

	.button {
		padding-right: 0.75rem;
		padding-left: 0.75rem;
		font-size: var(--text-small);
	}
}

@media (max-width: 23rem) {
	.product-name {
		display: none;
	}

	.brand-divider {
		display: none;
	}

	.workflow-actions,
	.workflow-actions--end,
	.workflow-actions--start {
		grid-template-columns: 1fr;
	}

	.receipt-status {
		grid-template-columns: 1fr;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--panel: #111116;
		--panel-subtle: #15151a;
		--panel-hover: #1d1d24;
		--text: #f5f5f7;
		--text-secondary: #b5b5c0;
		--border: #303038;
		--accent: #9a9bff;
		--accent-deep: #c9caff;
		--accent-soft: #22216b;
		--focus: #5f8cff;
		--error: #ff8996;
		--error-surface: #3b0a11;
		--success: #89ba93;
		--success-surface: #102b18;
		--warning: #f2d070;
		--warning-surface: #33270a;
		--action: #f5f5f7;
		--action-hover: #9a9bff;
		--action-text: #111116;
		--disabled: #303038;
		--disabled-text: #b5b5c0;
		--shadow-panel: 0 1.75rem 4rem rgba(0, 0, 0, 0.38);
	}

	.workflow-panel {
		border-color: var(--border);
	}

	.button--primary:hover:not(:disabled) {
		box-shadow: 0 0.65rem 1.4rem rgba(154, 155, 255, 0.18);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

	.workflow-stage {
		animation: none;
	}

	.spinner {
		animation: none;
	}
}
.sandbox-notice {
	/* Keep the environment visible without obscuring the document or payment form. */
	max-width: 60rem;
	margin: 1rem auto;
	padding: 1rem;
	border: 2px solid var(--warning);
	border-radius: var(--radius-control);
	background: var(--warning-surface);
	color: var(--warning);
}
