/* Gabble reference: Inter (SIL OFL 1.1, packages/site/licenses/inter-OFL.txt) for the form; the
   headings use the site's Newsreader at its stable /fonts/ name. */
/* Headings in the letter's serif, as on the inference page and its contact card (src/letter.ts). */
@font-face {
	font-family: Newsreader;
	src: url("/fonts/newsreader-400.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: Inter;
	src: url("/landing-c73df9dd4d6f/assets/fonts/inter-latin.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
:root {
	color-scheme: dark;
	background: #1d2ab2;
	color: #edf0e9;
	font:
		400 14px / 1.4 Inter,
		sans-serif;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
}
.sales-centred {
	display: grid;
	min-height: 100dvh;
	align-items: center;
}
.sales-popup {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	padding: 52px 50px 44px;
}
h1 {
	margin: 0 0 40px;
	font:
		400 32px / 1.2 Newsreader,
		Georgia,
		serif;
	letter-spacing: -0.005em;
	text-align: center;
}
.sales-lede {
	margin: -24px 0 32px;
	color: rgb(237 240 233 / 65%);
	text-align: center;
}
form {
	--gap: 20px;
	display: grid;
	gap: var(--gap);
}
.sales-names {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
input,
textarea,
select,
summary,
button {
	width: 100%;
	min-width: 0;
	min-height: 44px;
	border: 0;
	border-radius: 0;
	padding: 12px;
	font: inherit;
}
input,
textarea,
select,
summary {
	background: rgb(237 240 233 / 10%);
	color: #edf0e9;
	caret-color: #edf0e9;
}
input::placeholder,
textarea::placeholder {
	color: rgb(237 240 233 / 40%);
	opacity: 1;
}
textarea {
	display: block;
	height: 100px;
	resize: vertical;
}
button {
	background: #edf0e9;
	color: #1d2ab2;
	cursor: pointer;
	transition: opacity 0.15s ease;
}
button:disabled {
	opacity: 0.2;
	cursor: default;
}
button:not(:disabled):hover {
	background: #fff;
}
:is(input, textarea, select, summary, button, a):focus-visible {
	outline: 2px solid #edf0e9;
	outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus,
.sales-menu[open] summary {
	background-color: rgb(237 240 233 / 15%);
}
#sales-spam-check:empty {
	display: none;
}
/* The check sits above the button and is usually invisible (no height), which would leave two of
   the form's gaps above the button: it then takes one back. The script marks the check while it shows. */
#sales-spam-check:not(:empty):not([data-shown]) + :is(button, .sales-actions) {
	margin-top: calc(-1 * var(--gap));
}
.sales-status {
	margin: 0;
}
/* A field the form was sent without: outlined, and a line under it says what is missing. */
[data-invalid]:is(input, select, textarea),
.sales-menu[data-invalid] summary {
	box-shadow: inset 0 0 0 2px #ffc2b8;
}
.sales-missing {
	margin: 0;
	color: #ffc2b8;
}
/* The form's own gap is wider than a field's: the line sits as close under a bare field. */
form > .sales-missing {
	margin-top: calc(8px - var(--gap));
}
.sales-names .sales-missing {
	grid-column: 1 / -1;
	margin-top: -2px;
}
/* The compute form: labelled fields in the same tinted boxes, with its menus, checks and quick
   picks drawn to match them. */
.sales-needs {
	display: grid;
	gap: var(--gap);
}
.sales-field {
	display: grid;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
.sales-field legend {
	margin-bottom: 8px;
	padding: 0;
}
small,
.sales-rate span {
	color: rgb(237 240 233 / 65%);
	font-size: inherit;
}
.sales-row,
.sales-pair,
.sales-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
}
.sales-pair,
.sales-actions {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
}
/* A menu's arrow is two gradients, so no image is fetched for it. */
select,
summary {
	appearance: none;
	padding-right: 34px;
	background-image:
		linear-gradient(45deg, transparent 50%, currentcolor 50%),
		linear-gradient(135deg, currentcolor 50%, transparent 50%);
	background-position:
		right 17px center,
		right 12px center;
	background-size: 5px 5px;
	background-repeat: no-repeat;
	cursor: pointer;
}
.sales-row select {
	width: auto;
}
option {
	background: #1d2ab2;
	color: #edf0e9;
}
/* Nothing picked yet reads as a placeholder does. */
select:has(option[value=""]:checked),
summary:has([data-picked]:not([data-chosen])) {
	color: rgb(237 240 233 / 40%);
}
input[type="number"] {
	appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	appearance: none;
	margin: 0;
}
summary {
	display: flex;
	align-items: center;
	list-style: none;
}
summary::-webkit-details-marker {
	display: none;
}
.sales-options {
	display: grid;
}
.sales-menu .sales-options {
	padding: 4px 12px 6px;
	background: rgb(237 240 233 / 6%);
}
.sales-check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 36px;
	cursor: pointer;
}
.sales-check input {
	display: grid;
	flex: none;
	place-content: center;
	width: 18px;
	height: 18px;
	min-height: 0;
	margin: 0;
	padding: 0;
	appearance: none;
	cursor: pointer;
}
.sales-check input::before {
	content: "";
	width: 10px;
	height: 6px;
	border: solid #1d2ab2;
	border-width: 0 0 2px 2px;
	opacity: 0;
	transform: translateY(-1px) rotate(-45deg);
}
.sales-check input:checked {
	background: #edf0e9;
}
.sales-check input:checked::before {
	opacity: 1;
}
.sales-picks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.sales-picks button {
	width: auto;
	min-height: 32px;
	padding: 0 12px;
	background: rgb(237 240 233 / 10%);
	color: #edf0e9;
	font-variant-numeric: tabular-nums;
}
.sales-picks button:hover {
	background: rgb(237 240 233 / 20%);
}
.sales-rate {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
}
/* The quieter way out: the contact details alone, sent without the requirements. */
.sales-skip {
	order: -1;
	background: none;
	color: #edf0e9;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sales-skip:disabled {
	opacity: 0.4;
}
.sales-skip:not(:disabled):hover {
	background: rgb(237 240 233 / 10%);
}
a {
	color: inherit;
	text-underline-offset: 3px;
}
#sales-success {
	padding: 56px 0;
	text-align: center;
}
#sales-success h2 {
	font:
		400 28px / 1.2 Newsreader,
		Georgia,
		serif;
}
#sales-success a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}
[hidden] {
	display: none;
}
@media (max-width: 440px) {
	:root {
		font-size: 16px;
	}
	.sales-popup {
		padding: 52px 24px 32px;
	}
	h1 {
		font-size: 30px;
		margin-bottom: 32px;
	}
	.sales-pair,
	.sales-actions {
		grid-template-columns: minmax(0, 1fr);
	}
	.sales-pair {
		gap: var(--gap);
	}
	.sales-skip {
		order: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	button {
		transition: none;
	}
}
