/*
 * Vigilo Academy design system
 * ---------------------------------------------------------------
 * 0. Fonts         self-hosted @font-face
 * 1. Tokens        colors, type, spacing, radius, shadow
 * 2. Base          reset, typography, links, focus
 * 3. Layout        container, section, grid, stack
 * 4. Components    header, nav, buttons, eyebrow, cards, steps,
 *                  features, pricing, faq, forms, notice, cta band,
 *                  prose (legal), toc, footer, skip link
 * 5. Utilities
 *
 * Change the look of the whole site from section 1.
 */

/* =============== 0. Fonts (self-hosted, latin subset incl. Spanish accents) =============== */
@font-face {
	font-family: 'IBM Plex Sans';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('/assets/fonts/ibm-plex-sans-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: 'Playfair Display';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('/assets/fonts/playfair-display-700-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;
}

/* =============== 1. Tokens =============== */
:root {
	/* Brand palette (from the original posters) */
	--navy-900: #0c1d3d;
	--navy-800: #13284f;
	--navy-700: #1f3a68;
	--gold-500: #c5a059;
	--gold-600: #b08a43;
	--gold-700: #85652a; /* gold text on light backgrounds: 4.9:1 on cream */
	--gold-300: #e3cc9c; /* gold text on navy: 8.9:1 */
	--cream-50: #fcfaf6;
	--cream-100: #f8f5ee;
	--cream-200: #efe8da;
	--white: #ffffff;

	/* Semantic colors */
	--color-bg: var(--white);
	--color-bg-alt: var(--cream-100);
	--color-bg-dark: var(--navy-900);
	--color-text: #1d2433;
	--color-text-muted: #4a5468;
	--color-heading: var(--navy-900);
	--color-accent: var(--gold-500);
	--color-accent-text: var(--gold-700);
	--color-line: #e4dccb;
	--color-line-dark: rgba(255, 255, 255, 0.16);
	--color-focus: #1f6feb;

	/* Type */
	--font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--text-xs: 0.8125rem;   /* 13px eyebrows */
	--text-sm: 0.9375rem;   /* 15px fine print */
	--text-base: 1.0625rem; /* 17px body: easier for older readers */
	--text-lg: 1.25rem;     /* 20px lead */
	--text-xl: 1.5rem;      /* 24px h3 */
	--text-2xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);    /* h2: 28 -> 40px */
	--text-3xl: clamp(2rem, 1.45rem + 2.3vw, 3.5rem);      /* h1: 32 -> 56px */
	--leading-intro: 1.6;   /* 20px intro paragraphs */
	--leading-tight: 1.15;
	--leading-snug: 1.35;
	--leading-body: 1.65;
	--tracking-caps: 0.18em;

	/* Spacing (4px base) */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4rem;
	--space-9: 6rem;
	--section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

	/* Shape */
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--shadow-sm: 0 1px 2px rgba(12, 29, 61, 0.06), 0 2px 8px rgba(12, 29, 61, 0.05);
	--shadow-md: 0 4px 12px rgba(12, 29, 61, 0.08), 0 16px 40px rgba(12, 29, 61, 0.08);

	/* Layout */
	--container: 1180px;
	--container-narrow: 760px;
	--gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
	--header-h: 72px;
}

/* =============== 2. Base =============== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: var(--leading-tight);
	text-wrap: balance;
}

h1 {
	font-size: var(--text-3xl);
	letter-spacing: -0.01em;
}

h2 {
	font-size: var(--text-2xl);
}

/* One h3 size site-wide (cards, topics, contact details, statements). */
h3 {
	font-size: 1.25rem;
	line-height: var(--leading-snug);
}

h4 {
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: 600;
}

p {
	text-wrap: pretty;
}

a {
	color: var(--navy-700);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

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

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

strong {
	font-weight: 600;
}

/* =============== 3. Layout =============== */
.container {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

.container--narrow {
	width: min(100% - 2 * var(--gutter), var(--container-narrow));
}

.section {
	padding-block: var(--section-y);
}

.section--alt {
	background: var(--color-bg-alt);
}

.section--dark {
	background: var(--color-bg-dark);
	color: rgba(255, 255, 255, 0.86);
	--color-heading: var(--white);
	--color-accent-text: var(--gold-300);
	--color-text-muted: rgba(255, 255, 255, 0.72);
	--color-line: var(--color-line-dark);
}

.section-head {
	max-width: 46rem;
	margin: 0 auto var(--space-7);
	text-align: center;
}

.section-head > * + * {
	margin-top: var(--space-4);
}

.section-head p {
	color: var(--color-text-muted);
	font-size: var(--text-lg);
	line-height: var(--leading-intro);
}

.stack > * + * {
	margin-top: var(--space-4);
}

.grid {
	display: grid;
	gap: var(--space-5);
}

ul.grid,
ol.grid {
	padding: 0;
	list-style: none;
}

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

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

@media (min-width: 640px) and (max-width: 899px) {
	.grid--3,
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.split {
	display: grid;
	gap: var(--space-7);
	align-items: center;
}

@media (min-width: 900px) {
	.split {
		grid-template-columns: 1.05fr 1fr;
		gap: var(--space-8);
	}
}

/* =============== 4. Components =============== */

/* --- Skip link --- */
.skip-link {
	position: absolute;
	top: -100px;
	left: var(--space-4);
	z-index: 100;
	padding: var(--space-3) var(--space-5);
	border-radius: var(--radius-sm);
	background: var(--navy-900);
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: var(--space-4);
	color: var(--white);
}

/* --- Header --- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@supports (backdrop-filter: blur(8px)) {
	.site-header {
		background: rgba(255, 255, 255, 0.86);
		backdrop-filter: saturate(1.4) blur(10px);
	}
}

.site-header.is-scrolled {
	border-bottom-color: var(--color-line);
	box-shadow: var(--shadow-sm);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-5);
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	color: var(--navy-900);
	text-decoration: none;
}

.brand img {
	width: 34px;
	height: 34px;
}

.brand__name {
	display: flex;
	flex-direction: column;
	font-weight: 700;
	font-size: 1.125rem;
	letter-spacing: 0.22em;
	line-height: 1;
}

.brand__name small {
	margin-top: 4px;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.38em;
	color: var(--color-text-muted);
}

/* --- Navigation --- */
.nav__list {
	display: flex;
	align-items: center;
	gap: clamp(var(--space-3), 1.4vw, var(--space-5));
	list-style: none;
	padding: 0;
}

.nav__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding-inline: var(--space-1);
	color: var(--color-text);
	font-size: var(--text-sm);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.nav__link:hover {
	color: var(--navy-900);
	text-decoration: underline;
	text-decoration-color: var(--gold-500);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.nav__link[aria-current="page"] {
	color: var(--navy-900);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--gold-500);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.nav__lang {
	padding: var(--space-1) var(--space-3);
	border: 1px solid var(--color-line);
	border-radius: 999px;
}

.nav__cta {
	margin-left: var(--space-2);
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--navy-900);
	cursor: pointer;
}

.nav-toggle svg {
	width: 26px;
	height: 26px;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
	display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

@media (max-width: 1099px) {
	.nav-toggle {
		display: inline-flex;
	}

	.nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		padding: var(--space-4) var(--gutter) var(--space-6);
		background: var(--white);
		border-top: 1px solid var(--color-line);
		box-shadow: var(--shadow-md);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
	}

	.nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s ease, transform 0.2s ease;
	}

	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav__link {
		width: 100%;
		min-height: 52px;
		font-size: var(--text-base);
		border-bottom: 1px solid var(--color-line);
	}

	.nav__lang {
		border: 0;
		border-bottom: 1px solid var(--color-line);
		border-radius: 0;
		padding: 0 var(--space-1);
	}

	.nav__cta {
		margin: var(--space-5) 0 0;
	}

	.nav__cta .btn {
		width: 100%;
	}
}

/* --- Buttons --- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 48px;
	padding: 0.8rem 1.6rem;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn svg {
	width: 18px;
	height: 18px;
	flex: none;
}

.btn:active {
	transform: translateY(1px);
}

/* Primary: navy text on gold = 7:1 contrast */
.btn--primary {
	background: var(--gold-500);
	color: var(--navy-900);
}

.btn--primary:hover {
	background: var(--navy-900);
	color: var(--white);
}

.btn--secondary {
	background: transparent;
	border-color: var(--navy-900);
	color: var(--navy-900);
}

.btn--secondary:hover {
	background: var(--navy-900);
	color: var(--white);
}

.section--dark .btn--secondary {
	border-color: rgba(255, 255, 255, 0.7);
	color: var(--white);
}

.section--dark .btn--secondary:hover {
	background: var(--white);
	color: var(--navy-900);
}

.section--dark .btn--primary:hover {
	background: var(--white);
	color: var(--navy-900);
}

.btn--sm {
	min-height: 40px;
	padding: 0.55rem 1.1rem;
	font-size: var(--text-sm);
}

.btn--lg {
	min-height: 56px;
	padding: 1rem 2rem;
	font-size: 1.0625rem;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.btn-row--center {
	justify-content: center;
}

@media (max-width: 479px) {
	.btn-row .btn {
		width: 100%;
	}
}

/* --- Eyebrow, lead, rule --- */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	color: var(--color-accent-text);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

.eyebrow::before {
	content: '';
	width: 28px;
	height: 2px;
	background: var(--gold-500);
}

.section-head .eyebrow::after {
	content: '';
	width: 28px;
	height: 2px;
	background: var(--gold-500);
}

.eyebrow::before,
.eyebrow::after {
	flex: none;
}

@media (max-width: 479px) {
	.section-head .eyebrow::before,
	.section-head .eyebrow::after {
		display: none;
	}
}

.lead {
	color: var(--color-text-muted);
	font-size: var(--text-lg);
	line-height: var(--leading-intro);
}

.accent-dot {
	color: var(--gold-500);
}

.fine-print {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

/* --- Hero --- */
.hero {
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
	background: linear-gradient(180deg, var(--cream-50), var(--cream-100));
	overflow: hidden;
}

.hero__content > * + * {
	margin-top: var(--space-5);
}

.hero__content .btn-row {
	margin-top: var(--space-6);
}

/* Photos keep their own proportions (no cropping). */
.hero__media img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

.hero--center {
	text-align: center;
}

.hero--center .hero__content {
	max-width: 52rem;
	margin-inline: auto;
}

.hero--center .btn-row {
	justify-content: center;
}

/* Short page header for inner pages */
.page-hero {
	padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
	background: var(--cream-100);
	text-align: center;
}

.page-hero .container > * + * {
	margin-top: var(--space-4);
}

.page-hero p {
	max-width: 42rem;
	margin-inline: auto;
	color: var(--color-text-muted);
	font-size: var(--text-lg);
	line-height: var(--leading-intro);
}

.page-hero .btn-row {
	justify-content: center;
	margin-top: var(--space-6);
}

/* --- Trust strip (icon + short label) --- */
.trust-strip {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3) var(--space-6);
	padding: 0;
	list-style: none;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

.trust-strip li {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
}

.trust-strip svg {
	width: 20px;
	height: 20px;
	color: var(--gold-600);
}

/* --- Cards --- */
.card {
	height: 100%;
	padding: var(--space-6);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-md);
	background: var(--white);
}

.section--dark .card {
	background: rgba(255, 255, 255, 0.04);
}

.card > * + * {
	margin-top: var(--space-3);
}

@media (max-width: 479px) {
	.card {
		padding: var(--space-5);
	}
}

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

.card__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--cream-100);
	color: var(--gold-600);
}

.section--alt .card__icon {
	background: var(--cream-200);
}

.section--dark .card__icon {
	background: rgba(197, 160, 89, 0.14);
	color: var(--gold-300);
}

.card__icon svg {
	width: 26px;
	height: 26px;
}

.card__num {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--gold-500);
	color: var(--navy-900);
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
}

/* --- Benefit list (icon + one-line statement) --- */
.benefit-list li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--space-4);
	align-items: center;
	font-size: var(--text-lg);
}

.benefit-list strong {
	color: var(--color-heading);
}

/* --- Topic list (two-column list with dividers) --- */
.topic-list {
	display: grid;
	gap: 0 var(--space-7);
	padding: 0;
	list-style: none;
}

@media (min-width: 760px) {
	.topic-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

.topic-list li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--space-4);
	padding-block: var(--space-5);
	border-bottom: 1px solid var(--color-line);
}

.topic-list p {
	margin-top: var(--space-1);
	color: var(--color-text-muted);
}

.topic-list .card__icon {
	width: 44px;
	height: 44px;
}

.topic-list .card__icon svg {
	width: 22px;
	height: 22px;
}

/* --- Pricing --- */
.pricing {
	max-width: 34rem;
	margin-inline: auto;
	padding: clamp(1.75rem, 1rem + 3vw, 3rem);
	border: 1px solid var(--color-line);
	border-top: 4px solid var(--gold-500);
	border-radius: var(--radius-lg);
	background: var(--white);
	box-shadow: var(--shadow-md);
	text-align: center;
}

.section--dark .pricing {
	background: var(--white);
	color: var(--color-text);
	--color-heading: var(--navy-900);
	--color-accent-text: var(--gold-700);
	--color-text-muted: #4a5468;
	--color-line: #e4dccb;
}

.pricing > * + * {
	margin-top: var(--space-4);
}

.pricing__price {
	color: var(--navy-900);
	font-family: var(--font-heading);
	font-size: clamp(2.75rem, 2rem + 3vw, 3.75rem);
	font-weight: 700;
	line-height: 1;
}

.pricing__price small {
	font-size: 0.45em;
	vertical-align: 0.9em;
	margin-right: 0.1em;
}

.pricing__term {
	color: var(--color-accent-text);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

.check-list {
	display: grid;
	gap: var(--space-3);
	padding: var(--space-5) 0;
	border-block: 1px solid var(--color-line);
	list-style: none;
	text-align: left;
}

.check-list li {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: var(--space-3);
	align-items: start;
}

.check-list svg {
	width: 22px;
	height: 22px;
	margin-top: 2px;
	color: var(--gold-600);
}

.pricing .btn {
	width: 100%;
}

/* --- FAQ --- */
.faq {
	max-width: 50rem;
	margin-inline: auto;
	border-top: 1px solid var(--color-line);
}

.faq details {
	border-bottom: 1px solid var(--color-line);
}

.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	min-height: 64px;
	padding-block: var(--space-4);
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: var(--leading-snug);
	list-style: none;
	cursor: pointer;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: '+';
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--cream-100);
	color: var(--gold-700);
	font-family: var(--font-body);
	font-size: 1.25rem;
	font-weight: 500;
}

.faq details[open] summary::after {
	content: '\2212';
}

.faq details p {
	padding-bottom: var(--space-5);
	color: var(--color-text-muted);
}

/* --- Forms --- */
.form {
	display: grid;
	gap: var(--space-4);
}

.field {
	display: grid;
	gap: var(--space-2);
}

.field label {
	color: var(--navy-900);
	font-size: var(--text-sm);
	font-weight: 600;
}

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

.input {
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 0.9rem;
	border: 1px solid #b9b2a3;
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--color-text);
	font: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
	color: #7a8090;
}

.input:hover {
	border-color: var(--navy-700);
}

.input:focus {
	outline: none;
	border-color: var(--navy-700);
	box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.25);
}

textarea.input {
	min-height: 140px;
	resize: vertical;
}

.form__status {
	padding: var(--space-4);
	border-radius: var(--radius-sm);
	background: var(--cream-100);
	color: var(--navy-900);
	font-size: var(--text-sm);
}

.form__status:empty {
	display: none;
}

/* --- Contact details list --- */
.contact-list {
	display: grid;
	gap: var(--space-5);
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--space-4);
}

.contact-list p {
	margin-top: var(--space-1);
	color: var(--color-text-muted);
}

/* --- Notice (informational disclaimer) --- */
.notice {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--space-3);
	max-width: 50rem;
	margin: var(--space-7) auto 0;
	padding: var(--space-4) var(--space-5);
	border-left: 3px solid var(--gold-500);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--cream-100);
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

.section--alt .notice {
	background: var(--white);
}

.section--dark .notice {
	background: rgba(255, 255, 255, 0.06);
}

.notice svg {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--gold-600);
}

/* --- Quote / pull statement --- */
.statement {
	max-width: 44rem;
	margin-inline: auto;
	text-align: center;
}

.statement > * + * {
	margin-top: var(--space-4);
}

.statement p {
	color: var(--color-text-muted);
	font-size: var(--text-lg);
	line-height: var(--leading-intro);
}

/* --- CTA band --- */
.cta-band {
	text-align: center;
}

.cta-band .container > * + * {
	margin-top: var(--space-4);
}

.cta-band p {
	max-width: 40rem;
	margin-inline: auto;
}

.cta-band .btn-row {
	justify-content: center;
	margin-top: var(--space-6);
}

/* --- Prose (legal pages) --- */
.prose {
	color: var(--color-text);
}

.prose > * + * {
	margin-top: var(--space-4);
}

.prose h2 {
	margin-top: var(--space-8);
	padding-top: var(--space-2);
	font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
}

.prose h3 {
	margin-top: var(--space-6);
	font-size: 1.25rem;
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li + li {
	margin-top: var(--space-2);
}

.prose li::marker {
	color: var(--gold-600);
}

.prose address {
	font-style: normal;
}

.legal-meta {
	display: grid;
	gap: var(--space-1);
	margin-top: var(--space-5);
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

/* Company identification under legal page titles: small print, not intro size. */
.page-hero .legal-meta p {
	max-width: 36rem;
	font-size: var(--text-sm);
	line-height: 1.6;
}
.toc {
	margin-block: var(--space-6);
	padding: var(--space-5);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-md);
	background: var(--cream-50);
}

.toc h2 {
	margin: 0 0 var(--space-3);
	padding: 0;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--color-accent-text);
}

.toc ol {
	columns: 2 16rem;
	column-gap: var(--space-6);
	margin: 0;
	padding-left: 1.4em;
	font-size: var(--text-sm);
}

.toc li {
	break-inside: avoid;
	margin: 0 0 var(--space-2);
}

.back-to-top {
	display: inline-block;
	margin-top: var(--space-7);
	font-size: var(--text-sm);
}

/* --- Footer --- */
.site-footer {
	padding-block: var(--space-7) var(--space-3);
	background: var(--navy-900);
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--text-sm);
}

.site-footer a:not(.btn) {
	color: rgba(255, 255, 255, 0.86);
	text-decoration: none;
}

.site-footer .btn--primary:hover {
	background: var(--white);
	color: var(--navy-900);
}

.site-footer a:not(.btn):hover {
	color: var(--white);
	text-decoration: underline;
}

.site-footer :focus-visible {
	outline-color: var(--gold-300);
}

.footer__grid {
	display: grid;
	gap: var(--space-6);
}

@media (min-width: 760px) {
	.footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
		gap: var(--space-5);
	}
}

.footer__brand .brand {
	color: var(--white);
}

.footer__brand .brand__name small {
	color: rgba(255, 255, 255, 0.6);
}

.footer__brand p {
	max-width: 22rem;
	margin-top: var(--space-3);
}

.footer__title {
	margin-bottom: var(--space-3);
	color: var(--gold-300);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

.footer__links {
	display: grid;
	gap: var(--space-1);
	padding: 0;
	list-style: none;
}

.footer__links a {
	display: inline-block;
	padding-block: var(--space-1);
}

.footer__newsletter p + .btn {
	margin-top: var(--space-3);
}

/* Bottom two lines: smallest readable size, tight to the bottom edge */
.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 2px var(--space-4);
	margin-top: var(--space-5);
	padding-top: var(--space-3);
	border-top: 1px solid var(--color-line-dark);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.75rem;   /* 12px */
	line-height: 1.4;
}

/* --- Justified text (all pages, all screen sizes) ---
 * Every paragraph is justified, with hyphenation (uses the page's lang)
 * so word spacing stays even on narrow screens. In centered blocks the
 * last line stays centered, so short centered lines look unchanged. */
p,
.prose li {
	text-align: justify;
	text-justify: inter-word;
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
}

.section-head p,
.hero--center p,
.page-hero p,
.pricing p,
.statement p,
.cta-band p,
.text-center p,
p.text-center {
	text-align-last: center;
}

/* Hero photo: natural proportions; on tablets keep it from filling the screen. */
@media (max-width: 899px) {
	.hero__media {
		max-width: 560px;
		margin-inline: auto;
	}
}

/* --- AI disclosure (below video mentions) --- */
.ai-disclosure {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--space-3);
	max-width: 46rem;
	margin: var(--space-5) auto 0;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	line-height: 1.55;
	text-align: left;
}

.ai-disclosure svg {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	color: var(--gold-600);
}

.section--dark .ai-disclosure svg {
	color: var(--gold-300);
}

.footer__disclosure {
	margin-top: var(--space-6);
	padding-top: var(--space-4);
	border-top: 1px solid var(--color-line-dark);
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--text-xs);
	line-height: 1.6;
}

.footer__disclosure + .footer__bottom {
	margin-top: var(--space-2);
	padding-top: 0;
	border-top: 0;
}
/* --- Icons --- */
.icon {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* --- Reveal on scroll (progressive enhancement; see site.js) --- */
.js .reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

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

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

/* =============== 5. Utilities =============== */
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.text-center {
	text-align: center;
}

.mt-6 {
	margin-top: var(--space-6);
}

.mt-7 {
	margin-top: var(--space-7);
}

/* Placeholder marker: content the owner still needs to supply. */
.placeholder {
	padding: var(--space-4);
	border: 2px dashed var(--gold-500);
	border-radius: var(--radius-sm);
	background: #fff8e6;
	color: var(--navy-900);
	font-size: var(--text-sm);
}
