@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2');
}

@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-display: swap;
	font-weight: 500;
	src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2');
}

@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-display: swap;
	font-weight: 600;
	src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2');
}

:root {
	--sky: #5fa8d3;
	--blue: #3f8fc5;
	--navy: #1f4e79;
	--grey: #9fa7ae;
	--mist: #f7f9fb;
	--white: #ffffff;
	--ink: #14324f;
	--text: #46596b;
	--muted: #5e6c79;
	--line: #e3e9ef;
	--navy-hover: #173d60;
	--tint: #eaf3fa;
	--blue-ink: #2e72a3;
	--error: #b42318;
	--sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--gutter: clamp(1.25rem, 4.5vw, 3rem);
	--header-h: 4.25rem;
	--radius: 1.25rem;
	--shadow: 0 30px 60px -30px rgb(31 78 121 / 0.28), 0 2px 6px rgb(31 78 121 / 0.06);
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	color-scheme: light;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--white);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-wrap: pretty;
}

body::before {
	content: '';
	display: block;
	height: 4px;
	background: linear-gradient(90deg, var(--navy), var(--sky));
}

main {
	flex: 1;
}

::selection {
	background: var(--sky);
	color: var(--white);
}

img,
svg {
	display: block;
	max-width: 100%;
}

h1,
h2,
p {
	margin: 0;
}

h1,
h2 {
	color: var(--ink);
	font-weight: 600;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.2rem, 4.6vw, 3.4rem);
	line-height: 1.1;
}

h2 {
	margin-top: 1.75rem;
	font-size: 1.3rem;
	line-height: 1.3;
}

a {
	color: var(--navy);
}

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
	border-radius: 6px;
}

.skip {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	border-radius: 0.6rem;
	background: var(--navy);
	color: var(--white);
	font-weight: 500;
	transform: translateY(-200%);
}

.skip:focus {
	transform: none;
}

.wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.narrow {
	max-width: 40rem;
	margin-inline: auto;
	display: grid;
	gap: 1.25rem;
}

.section {
	padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem);
	background:
		radial-gradient(80rem 24rem at 50% -8rem, rgb(95 168 211 / 0.18), transparent 60%), var(--mist);
}

.label {
	color: var(--blue-ink);
	font-size: 0.95rem;
	font-weight: 600;
}

.lead {
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	color: var(--text);
}

header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgb(255 255 255 / 0.92);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	border-bottom: 1px solid var(--line);
}

.bar {
	display: flex;
	align-items: center;
	height: var(--header-h);
}

.home .logo {
	height: clamp(1.05rem, 3.6vw, 1.35rem);
}

.logo {
	width: auto;
	height: 1.35rem;
}

.card {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid var(--line);
	border-radius: calc(var(--radius) * 1.2);
	background: var(--white);
	box-shadow: var(--shadow);
}

form,
.done {
	display: grid;
	gap: 1.15rem;
}

.all,
.fine,
.dentist {
	font-size: 0.88rem;
	color: var(--muted);
}

.dentist {
	font-size: 0.95rem;
}

.fields {
	display: grid;
	gap: 1.1rem;
}

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

.field label {
	color: var(--ink);
	font-size: 0.92rem;
	font-weight: 500;
}

.field input {
	width: 100%;
	min-height: 3.1rem;
	padding: 0.8rem 1rem;
	border: 1.5px solid #cdd7e0;
	border-radius: 0.75rem;
	background: var(--white);
	color: var(--ink);
	font: 400 1rem/1.4 var(--sans);
}

.field input:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 4px rgb(63 143 197 / 0.2);
}

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

.field .error,
.form-error {
	color: var(--error);
	font-size: 0.88rem;
}

.honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3.5rem;
	padding: 0 1.6rem;
	border: 1.5px solid var(--navy);
	border-radius: 999px;
	background: var(--navy);
	color: var(--white);
	font: 500 1.05rem/1 var(--sans);
	text-decoration: none;
	cursor: pointer;
}

.btn:hover {
	background: var(--navy-hover);
	border-color: var(--navy-hover);
}

.btn:disabled {
	cursor: progress;
	opacity: 0.75;
}

a.btn {
	width: auto;
	justify-self: start;
}

.ok {
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: var(--tint);
	color: var(--navy);
}

.done h1 {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.prose {
	gap: 1rem;
}

footer {
	background: var(--navy);
	color: rgb(255 255 255 / 0.8);
	font-size: 0.92rem;
}

footer .top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1.5rem 2.5rem;
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

footer nav {
	display: grid;
	gap: 0.75rem;
	align-content: start;
}

footer a {
	color: var(--white);
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

.legal {
	display: grid;
	gap: 0.35rem;
	padding-block: 1.5rem max(1.5rem, env(safe-area-inset-bottom));
	border-top: 1px solid rgb(255 255 255 / 0.14);
	font-size: 0.82rem;
	color: rgb(255 255 255 / 0.72);
}

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