/* DealsPartner landing page — static styles.
 * Mirrors the classic (light) theme of the SvelteKit app: white surfaces,
 * gray-900 text, and the brand-logo yellow (#ffc600) accent. Kept in an
 * external stylesheet (no inline styles) so a strict CSP can forbid
 * 'unsafe-inline'. No JavaScript is used. */

/* Roboto — self-hosted (no third-party font CDN) so the strict CSP stays
 * 'self'-only. Variable font, full weight range 100–900. latin + latin-ext
 * subsets cover the English copy plus accented chars and currency symbols. */
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('/assets/fonts/roboto-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
		U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
		U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('/assets/fonts/roboto-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
		U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
		U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
		U+A720-A7FF;
}

:root {
	--content-primary: #111827; /* gray-900 */
	--content-secondary: #374151; /* gray-700 */
	--content-muted: #6b7280; /* gray-500 */
	--surface-base: #ffffff;
	--surface-elevated: #f9fafb; /* gray-50 */
	--surface-secondary: #f3f4f6; /* gray-100 */
	--border-subtle: #e5e7eb; /* gray-200 */
	--brand: #ffc600;
	--brand-hover: #d9a800;
	--brand-contrast: #061f32; /* navy text on yellow */
	--max-width: 80rem; /* max-w-7xl */
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--surface-base);
	color: var(--content-primary);
	font-family:
		'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial,
		sans-serif;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

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

.container {
	width: 100%;
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: 1.5rem;
}

/* ---- Navigation ---- */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	height: 4rem;
	border-bottom: 1px solid var(--border-subtle);
	background: rgb(255 255 255 / 0.8);
	backdrop-filter: blur(16px);
}

.nav__inner {
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: space-between;
}

.nav__brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: inherit;
}

.nav__logo {
	height: 2rem;
	width: auto;
}

/* ---- Buttons ---- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.5rem;
	padding: 0.5rem 1rem;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

.btn--lg {
	padding: 1rem 2rem;
	font-size: 1.125rem;
}

/* Brand-logo yellow fill with navy text (WCAG AA — ~10.6:1). White text
   fails contrast on this yellow, so brand buttons use navy. */
.btn--brand {
	background: var(--brand);
	color: var(--brand-contrast);
	border-color: rgb(6 31 50 / 0.1);
}

.btn--brand:hover {
	background: var(--brand-hover);
}

.btn--outline {
	background: var(--surface-elevated);
	color: var(--content-primary);
	border-color: var(--border-subtle);
	border-radius: 0.75rem;
}

.btn--outline:hover {
	background: var(--surface-secondary);
}

.btn--ghost {
	background: transparent;
	color: var(--content-secondary);
	border: 2px solid #9ca3af; /* gray-400 */
}

.btn--ghost:hover {
	background: var(--surface-secondary);
}

/* ---- Hero ---- */
.hero {
	text-align: center;
	padding-top: 8rem;
	padding-bottom: 5rem;
}

.hero__brand {
	margin: 0 0 1rem;
	font-size: clamp(3rem, 9vw, 6rem);
	font-weight: 400;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--brand); /* #ffc600 highlight */
}

.hero__title {
	margin: 0 0 1.5rem;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.hero__subtitle {
	max-width: 48rem;
	margin: 0 auto 2.5rem;
	font-size: 1.25rem;
	color: var(--content-secondary);
}

.hero__actions {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
	justify-content: center;
}

/* ---- Sections ---- */
.section {
	padding-block: 5rem;
}

.section__head {
	text-align: center;
	margin-bottom: 4rem;
}

.section__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
}

.section__lede {
	max-width: 42rem;
	margin: 0 auto;
	font-size: 1.125rem;
	color: var(--content-muted);
}

/* ---- Feature grid ---- */
.grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

.card {
	border: 1px solid var(--border-subtle);
	background: var(--surface-elevated);
	border-radius: 0.75rem;
	padding: 2rem;
	transition:
		background-color 0.3s ease,
		border-color 0.3s ease;
}

.card:hover {
	background: var(--surface-base);
	border-color: var(--content-muted);
}

.card__icon {
	display: flex;
	height: 3rem;
	width: 3rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.5rem;
	background: var(--surface-secondary);
	margin-bottom: 1rem;
	color: var(--content-secondary);
}

.card__icon svg {
	height: 1.5rem;
	width: 1.5rem;
}

.card__title {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.card__body {
	margin: 0;
	color: var(--content-muted);
}

/* ---- CTA ---- */
.cta {
	border: 1px solid var(--border-subtle);
	background: var(--surface-secondary);
	border-radius: 1rem;
	padding: 3rem;
	text-align: center;
}

.cta__title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
}

.cta__body {
	max-width: 42rem;
	margin: 0 auto 2rem;
	font-size: 1.125rem;
	color: var(--content-secondary);
}

/* ---- Footer ---- */
.footer {
	border-top: 1px solid var(--border-subtle);
	background: var(--surface-secondary);
}

.footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 2rem;
}

.footer__brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.footer__company {
	font-weight: 600;
	color: var(--content-secondary);
}

.footer__muted {
	font-size: 0.875rem;
	color: var(--content-muted);
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
	.hero__actions {
		flex-direction: row;
	}
}

@media (min-width: 768px) {
	.container {
		padding-inline: 1.5rem;
	}
	.footer__inner {
		flex-direction: row;
	}
	.grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* Smaller padding on mobile */
@media (max-width: 767px) {
	.container {
		padding-inline: 1rem;
	}
	.hero {
		padding-top: 6rem;
	}
	.cta {
		padding: 2rem;
	}
	.card {
		padding: 1.5rem;
	}
}
