/* Matches flypilot.io: Inter, uppercase bold headings, wide-tracked eyebrows, near-black textured sections
   alternating with white and light grey, and the #007399 primary. Tokens copied from its stylesheet. */

@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(/fonts/inter-latin.woff2) format("woff2");
}

:root {
	color-scheme: light;
	--background: #ffffff;
	--foreground: #0a0a0a;
	--primary: #007399;
	--primary-hover: #006689;
	--primary-foreground: #ffffff;
	--secondary: #fafafa;
	--muted-foreground: #737373;
	--accent: #e2f1fa;
	--border: #e5e5e5;
	--dark: #020202;
	--on-dark: #ffffff;
	--on-dark-muted: rgb(255 255 255 / 0.65);
	--on-dark-border: rgb(255 255 255 / 0.2);
	/* The site's gradient. Its lightest stop doubles as the accent on dark backgrounds, where #007399 is too dim for small text. */
	--gradient: linear-gradient(135deg, #00c4dc, #007ca6, #0559d2);
	--accent-on-dark: #00c4dc;
	--error: #c0000f;
	--error-on-dark: #ff9b9b;
	--success-on-dark: #7ee2a8;
	--radius: 0.625rem;
	--radius-md: calc(var(--radius) - 2px);
	--font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font: 1rem/1.5 var(--font);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }

code { font-family: var(--mono); font-size: 0.875em; }

:focus-visible {
	outline: 3px solid var(--primary);
	outline-offset: 2px;
}
.dark-section :focus-visible, .site-header :focus-visible { outline-color: var(--accent-on-dark); }

.container {
	max-width: 72rem;
	margin-inline: auto;
	padding-inline: 24px;
}
@media (max-width: 480px) {
	.container { padding-inline: 16px; }
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 60;
	padding: 8px 14px;
	background: var(--background);
	color: var(--foreground);
	border-radius: var(--radius-md);
	font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Near-black with the site's faint noise texture. */
.dark-section {
	color-scheme: dark;
	background-color: var(--dark);
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
	color: var(--on-dark);
}

.eyebrow {
	margin-bottom: 16px;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color: var(--primary);
}
.dark-section .eyebrow { color: var(--accent-on-dark); }

.text-gradient {
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Buttons */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 3rem;
	padding-inline: 2rem;
	border: 0;
	border-radius: var(--radius-md);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
.button-primary {
	background: var(--primary);
	color: var(--primary-foreground);
	transition: background-color 150ms var(--ease);
}
.button-primary:hover { background: var(--primary-hover); }
.button-primary:active { transform: translateY(1px); }
.button-sm { height: 2rem; padding-inline: 1.25rem; font-size: 0.75rem; }
.button-block { width: 100%; }
.button[aria-disabled="true"] { opacity: 0.7; cursor: progress; }

/* Header: sits over the dark hero, like the main site's transparent header. */
.site-header {
	position: absolute;
	inset: 0 0 auto;
	z-index: 50;
	color: var(--on-dark);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 4.5rem;
}
.wordmark {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.25em;
}
.wordmark a {
	color: var(--on-dark);
	text-decoration: none;
	border-radius: 2px;
	transition: opacity 150ms var(--ease);
}
.wordmark a:hover { opacity: 0.8; }
.wordmark-divider { color: var(--on-dark-border); letter-spacing: 0; }
.wordmark-product { color: var(--on-dark-muted); }

/* Hero */
.hero { padding-block: 9rem 6rem; }
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 4rem;
	align-items: center;
}
h1 {
	margin-bottom: 24px;
	font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.025em;
	text-transform: uppercase;
}
.text-gradient { display: inline-block; }
.lede {
	max-width: 34rem;
	font-size: 1.125rem;
	line-height: 1.625;
	color: var(--on-dark-muted);
}
.lede code { color: var(--on-dark); }
.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 32px;
	padding: 0;
	list-style: none;
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--on-dark-muted);
}

/* Generator form: the main site's dark contact-form inputs. */
.generator {
	padding: 2rem;
	background: rgb(255 255 255 / 0.04);
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: var(--radius);
}
.generator h2 {
	margin-bottom: 24px;
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.field { margin-bottom: 20px; }
.field-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 16px;
}
label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.875rem;
	font-weight: 500;
	color: rgb(255 255 255 / 0.8);
}
.optional { font-weight: 400; color: var(--on-dark-muted); }
input {
	width: 100%;
	height: 2.75rem;
	padding: 0 12px;
	font: inherit;
	color: var(--on-dark);
	background: rgb(255 255 255 / 0.08);
	border: 1px solid var(--on-dark-border);
	border-radius: var(--radius-md);
	transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
input::placeholder { color: rgb(255 255 255 / 0.5); }
input:hover { border-color: rgb(255 255 255 / 0.45); }
input:focus-visible {
	outline: none;
	border-color: var(--accent-on-dark);
	box-shadow: 0 0 0 3px rgb(0 196 220 / 0.45);
}
input[aria-invalid="true"] { border-color: var(--error-on-dark); }
input[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgb(255 155 155 / 0.4); }

/* Field with a fixed "https://" in front: the wrapper draws the box and takes the input's states. */
.input-prefix {
	display: flex;
	align-items: center;
	height: 2.75rem;
	background: rgb(255 255 255 / 0.08);
	border: 1px solid var(--on-dark-border);
	border-radius: var(--radius-md);
	transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.input-prefix span {
	padding-left: 12px;
	color: var(--on-dark-muted);
	user-select: none;
}
.input-prefix input {
	height: 100%;
	min-width: 0;
	padding-left: 1px;
	background: transparent;
	border: 0;
	box-shadow: none;
}
.input-prefix:hover { border-color: rgb(255 255 255 / 0.45); }
.input-prefix:has(input:focus-visible) {
	border-color: var(--accent-on-dark);
	box-shadow: 0 0 0 3px rgb(0 196 220 / 0.45);
}
.input-prefix input:focus-visible { box-shadow: none; }
.input-prefix:has(input[aria-invalid="true"]) { border-color: var(--error-on-dark); }
.input-prefix:has(input[aria-invalid="true"]:focus-visible) { box-shadow: 0 0 0 3px rgb(255 155 155 / 0.4); }
.hint, .error { margin-top: 6px; font-size: 0.8125rem; line-height: 1.45; }
.hint { color: var(--on-dark-muted); }
.error { color: var(--error-on-dark); font-weight: 600; }
.generator .button { margin-top: 8px; }
.status { min-height: 1.5em; margin-top: 12px; font-size: 0.875rem; color: var(--on-dark-muted); }
.status.is-error { color: var(--error-on-dark); font-weight: 600; }
.status.is-success { color: var(--success-on-dark); font-weight: 600; }

/* Light sections */
.section { padding-block: 7rem; }
.section-muted { background: var(--secondary); }
.section-heading { max-width: 40rem; margin: 0 auto 4rem; text-align: center; }
h2 {
	font-size: clamp(1.875rem, 1.4rem + 2vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.025em;
	text-transform: uppercase;
}
.section-lede { margin-top: 16px; font-size: 1.125rem; line-height: 1.625; color: var(--muted-foreground); }
h3 {
	margin-bottom: 12px;
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.feature p, .step p { color: var(--muted-foreground); line-height: 1.625; }
.section-muted .step p { color: #5c5c5c; }

/* Feature grid: the main site's services layout, with hairline dividers between cells. */
.features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}
.feature { padding: 2.5rem; }
.feature:nth-child(odd) { border-right: 1px solid var(--border); }
.feature:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
.feature-icon {
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 16px;
	border-radius: var(--radius-md);
	background: var(--accent);
	color: var(--primary);
}
.feature-icon svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Steps: the main site's process layout with large faint numbers. */
.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 3rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.step-number {
	display: block;
	margin-bottom: 16px;
	font-size: clamp(3.75rem, 3rem + 2vw, 4.5rem);
	font-weight: 700;
	line-height: 1;
	color: rgb(0 115 153 / 0.15);
}

.cli {
	max-width: 48rem;
	margin: 4rem auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}
.cli summary {
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--primary);
	border-radius: 2px;
	transition: color 150ms var(--ease);
}
.cli summary:hover { color: var(--foreground); }
.cli pre {
	margin: 16px 0 12px;
	padding: 14px 16px;
	overflow-x: auto;
	background: var(--dark);
	color: var(--on-dark);
	border-radius: var(--radius-md);
	font-size: 0.8125rem;
}
.cli p { font-size: 0.875rem; color: #5c5c5c; }

/* Footer */
.site-footer { border-top: 1px solid rgb(255 255 255 / 0.1); }
.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 2rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--on-dark-muted);
}
.footer-wordmark {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--on-dark-muted);
	text-decoration: none;
	border-radius: 2px;
	transition: color 150ms var(--ease);
}
.footer-wordmark:hover { color: var(--on-dark); }

@media (max-width: 900px) {
	.hero { padding-block: 7rem 4rem; }
	.hero-grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
	.steps { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
	.section { padding-block: 5rem; }
	.section-heading { margin-bottom: 3rem; }
}
@media (max-width: 640px) {
	.features { grid-template-columns: minmax(0, 1fr); }
	.feature { padding: 2rem 0; border-right: 0 !important; border-bottom: 1px solid var(--border); }
	.feature:last-child { border-bottom: 0; }
	.field-row { grid-template-columns: minmax(0, 1fr); }
	.generator { padding: 1.5rem; }
	.wordmark { gap: 8px; font-size: 0.75rem; letter-spacing: 0.2em; }
}

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