:root {
	--navy-950: #0c1b33;
	--navy-900: #10233f;
	--navy-700: #1a4170;
	--teal: #24b394;
	--teal-tint: #e3f6f0;
	--ink: #142238;
	--muted: #4f5d72;
	--line: #dfe5ee;
	--tint: #f4f7fb;
	--problem: #b42318;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--shadow: 0 1px 2px rgb(16 35 63 / 6%), 0 8px 24px rgb(16 35 63 / 8%);
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

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

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
}

h1 {
	font-size: clamp(2rem, 4.4vw, 3.1rem);
}

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

h3 {
	font-size: 1.15rem;
}

p {
	margin: 0 0 1em;
}

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

.wrap {
	width: min(1160px, 100% - 40px);
	margin-inline: auto;
}

main {
	flex: 1;
}

.measure {
	max-width: 46rem;
}

.measure-form {
	max-width: 52rem;
}

.nowrap {
	white-space: nowrap;
}

/* Header */

.site-header {
	border-bottom: 1px solid var(--line);
	background: #fff;
}

.header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--navy-900);
	font-weight: 700;
	font-size: 1.15rem;
	text-decoration: none;
}

.brand img {
	border-radius: var(--radius-sm);
}

.site-header nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nav-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	color: var(--muted);
	font-weight: 500;
	text-decoration: none;
}

.nav-link:hover {
	color: var(--navy-900);
}

/* Buttons */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background: var(--teal);
	color: var(--navy-950);
	font: inherit;
	font-weight: 650;
	text-decoration: none;
	cursor: pointer;
}

.button:hover {
	background: #1fa185;
}

.button:focus-visible,
.nav-link:focus-visible,
.brand:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--teal);
	outline-offset: 2px;
}

.button-small {
	min-height: 44px;
	padding: 0 16px;
}

.button-ghost {
	background: transparent;
	border-color: rgb(255 255 255 / 55%);
	color: #fff;
}

.button-ghost:hover {
	background: rgb(255 255 255 / 10%);
}

.button-ghost-dark {
	background: transparent;
	border-color: var(--navy-700);
	color: var(--navy-700);
}

.button-ghost-dark:hover {
	background: var(--tint);
}

.button-current {
	background: transparent;
	border-color: var(--navy-700);
	color: var(--navy-700);
}

.button-current:hover {
	background: var(--tint);
}

/* Hero */

.hero {
	background: radial-gradient(120% 140% at 0% 0%, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
	color: #fff;
	padding: clamp(48px, 8vw, 96px) 0;
}

.hero-grid {
	display: grid;
	gap: 48px;
	align-items: center;
}

.hero .lede {
	color: rgb(255 255 255 / 82%);
}

.lede {
	font-size: 1.15rem;
	color: var(--muted);
	max-width: 40em;
}

.hero-actions,
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

/* Product preview */

.preview {
	display: grid;
	gap: 16px;
	width: 100%;
	max-width: 520px;
	color: var(--ink);
}

.preview-card {
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: 0 20px 50px rgb(0 0 0 / 25%);
	padding: 18px 20px;
}

.preview-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-weight: 650;
	margin-bottom: 12px;
}

.preview-pill {
	font-size: 0.8rem;
	font-weight: 600;
	color: #12705c;
	background: var(--teal-tint);
	border-radius: 999px;
	padding: 2px 10px;
	white-space: nowrap;
}

.preview-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.preview-row {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 12px;
	padding: 10px 12px;
	border-radius: var(--radius-md);
	border-left: 4px solid;
	background: var(--tint);
	font-size: 0.95rem;
	line-height: 1.4;
}

.preview-time {
	font-variant-numeric: tabular-nums;
	color: var(--muted);
	font-weight: 600;
}

.tone-a {
	border-color: var(--teal);
}

.tone-b {
	border-color: #4c7bd9;
}

.tone-c {
	border-color: #d89a2b;
}

.preview-chat {
	display: grid;
	gap: 8px;
	background: #f1ede6;
}

.bubble {
	margin: 0;
	padding: 8px 12px;
	border-radius: var(--radius-md);
	font-size: 0.95rem;
	line-height: 1.4;
	max-width: 85%;
}

.bubble-in {
	background: #fff;
	justify-self: start;
}

.bubble-out {
	background: #d9f5e3;
	justify-self: end;
}

.bubble-status {
	display: block;
	text-align: right;
	font-size: 0.75rem;
	color: #3d6b52;
}

/* Sections */

.section {
	padding: clamp(56px, 8vw, 96px) 0;
}

.section-tint {
	background: var(--tint);
}

.feature-grid {
	display: grid;
	gap: 20px;
	margin-top: 32px;
}

.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 26px;
}

.card p {
	color: var(--muted);
	margin: 0;
}

.feature-icon {
	width: 40px;
	height: 40px;
	padding: 8px;
	margin-bottom: 14px;
	border-radius: var(--radius-md);
	background: var(--teal-tint);
	color: #12705c;
}

.steps {
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
	display: grid;
	gap: 28px;
}

.step p {
	color: var(--muted);
	margin: 0;
}

.step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--navy-900);
	color: #fff;
	font-weight: 700;
}


/* Form */

.form {
	display: grid;
	gap: 20px;
	margin-top: 28px;
}

.form-grid {
	display: grid;
	gap: 20px;
}

.field {
	display: grid;
	gap: 6px;
	align-content: start;
}

.field label {
	font-weight: 600;
}

.optional {
	color: var(--muted);
	font-weight: 400;
}

input,
select,
textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid #7d8a9c;
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--ink);
	font: inherit;
}

textarea {
	resize: vertical;
}

select:invalid {
	color: var(--muted);
}

option {
	color: var(--ink);
}

select {
	appearance: none;
	padding-right: 40px;
	background: #fff url("/chevron.svg") no-repeat right 14px center / 12px 8px;
}

.form .field-problem label {
	color: var(--problem);
}

.field-problem input,
.field-problem select,
.field-problem textarea {
	border-color: var(--problem);
	box-shadow: 0 0 0 1px var(--problem);
}

.form .problem {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--problem);
	font-size: 0.95rem;
	font-weight: 500;
}

.problem::before {
	content: "!";
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--problem);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
}

.notice {
	margin: 20px 0 0;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	border: 1px solid #f0b8b2;
	background: #fdf1f0;
	color: var(--problem);
}

.notice p {
	margin: 0;
}

.notice ul {
	margin: 4px 0 0;
	padding-left: 20px;
}

.notice a {
	color: var(--problem);
	font-weight: 600;
}

.form-note {
	margin: 0;
	color: var(--muted);
	font-size: 0.95rem;
}

.form .button {
	justify-self: start;
}

.trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Text pages */

.prose p {
	max-width: 68ch;
}

.prose h2 {
	font-size: 1.25rem;
	margin-top: 1.6em;
}

/* Footer */

.site-footer {
	border-top: 1px solid var(--line);
	background: var(--tint);
	padding: 32px 0;
	font-size: 0.95rem;
	color: var(--muted);
}

.site-footer p {
	margin: 0;
}

.footer-company {
	font-weight: 650;
	color: var(--ink);
}

.footer-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 32px;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
	font-size: 1rem;
}

.footer-links a,
.site-footer a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

@media (min-width: 640px) {
	.feature-grid,
	.form-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 640px) and (max-width: 959px) {
	.preview {
		grid-template-columns: 1fr 1fr;
		align-items: start;
		max-width: none;
	}
}

@media (min-width: 720px) {
	.steps {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 960px) {
	.hero-grid {
		grid-template-columns: 1.1fr 0.9fr;
	}

	.feature-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 639px) {
	body {
		font-size: 16px;
	}

	.nav-link {
		display: none;
	}

	.form .button,
	.hero-actions .button,
	.actions .button {
		width: 100%;
	}
}
