/* =========================================================================
   Vindonissa docs — design tokens & base styles
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
	--brand-red: #FF575A;
	--brand-red-60: #FF9A9C;
	--brand-red-20: #FFDDDE;
	--brand-red-50-bg: #FEF2F2;
	--brand-red-600: #DC2626;

	--burgundy: #3F0F27;
	--burgundy-60: #8C6F7D;

	--brand-black: #0C0C0C;
	--brand-white: #FFFFFF;
	--brand-gray: #6D6D6D;
	--brand-light: #F8F8F8;

	--gray-50: #F9FAFB;
	--gray-100: #F3F4F6;
	--gray-200: #E5E7EB;
	--gray-300: #D1D5DB;

	--emerald-50: #ECFDF5;
	--emerald-400: #34D399;
	--emerald-600: #059669;
	--amber-50: #FFFBEB;
	--amber-400: #FBBF24;
	--amber-600: #D97706;
	--blue-50: #EFF6FF;
	--blue-600: #2563EB;
	--orange-50: #FFF7ED;
	--orange-600: #EA580C;

	--font-sans: "Host Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	color: var(--brand-black);
	background: var(--brand-white);
	line-height: 1.5;
}

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

a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
code, pre { font-family: var(--font-mono); }
img, svg { display: block; }

/* =========================================================================
   Layout shell
   ========================================================================= */

.layout { min-height: 100vh; display: flex; flex-direction: column; }
.layout-main { flex: 1 1 auto; }

.container {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* =========================================================================
   Header
   ========================================================================= */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: saturate(180%) blur(6px);
	-webkit-backdrop-filter: saturate(180%) blur(6px);
	border-bottom: 1px solid var(--gray-200);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1rem;
	max-width: 80rem;
	margin: 0 auto;
	gap: 1rem;
}

@media (min-width: 640px) { .site-header__inner { padding: 1.25rem 1.5rem; } }
@media (min-width: 1024px) { .site-header__inner { padding: 1.25rem 2rem; } }

.site-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.site-logo img { height: 1.75rem; width: auto; }
.site-logo__divider { height: 1.25rem; width: 1px; background: var(--gray-300); display: none; }
.site-logo__label { font-size: 15px; font-weight: 500; color: var(--brand-gray); letter-spacing: -0.01em; display: none; }

@media (min-width: 640px) {
	.site-logo { gap: 1rem; }
	.site-logo__divider, .site-logo__label { display: inline-block; }
}

.site-nav { display: flex; align-items: center; gap: 0.875rem; flex-wrap: nowrap; }
@media (min-width: 640px) { .site-nav { gap: 2rem; } }
.site-nav a {
	font-size: 13px;
	font-weight: 500;
	color: var(--brand-gray);
	transition: color 0.2s;
	white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--brand-black); }

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer { border-top: 1px solid var(--gray-200); margin-top: 6rem; }
.site-footer__inner {
	max-width: 80rem;
	margin: 0 auto;
	padding: 2.5rem 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: 12px;
	color: rgba(109, 109, 109, 0.6);
}
.site-footer__inner a { transition: color 0.2s; }
.site-footer__inner a:hover { color: var(--brand-black); }
.site-footer__links { display: flex; gap: 1.5rem; }

@media (min-width: 640px) {
	.site-footer__inner { flex-direction: row; padding: 2.5rem 2rem; }
}

/* =========================================================================
   Docs layout (sidebar + main)
   ========================================================================= */

.docs-layout {
	max-width: 80rem;
	margin: 0 auto;
	padding: 2rem 1rem 3rem;
	display: flex;
	gap: 2rem;
}

@media (min-width: 640px) { .docs-layout { padding: 2.5rem 1.5rem 3rem; } }
@media (min-width: 1024px) { .docs-layout { padding: 3rem 2rem 4rem; gap: 4rem; } }

.docs-main { flex: 1 1 auto; min-width: 0; max-width: 48rem; }

/* =========================================================================
   Sidebar
   ========================================================================= */

.sidebar { display: none; width: 14rem; flex-shrink: 0; }
@media (min-width: 1024px) { .sidebar { display: block; } }

.sidebar__nav { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 2rem; }

.sidebar__section-title {
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(109, 109, 109, 0.6);
	margin: 0 0 0.75rem 0.25rem;
}

.sidebar__list { display: flex; flex-direction: column; gap: 2px; }
.sidebar__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.75rem;
	border-radius: 0.5rem;
	font-size: 13px;
	font-weight: 500;
	color: var(--brand-gray);
	transition: background 0.2s, color 0.2s;
}
.sidebar__link:hover { color: var(--brand-black); background: var(--gray-50); }
.sidebar__link.is-active { color: var(--brand-black); background: var(--gray-50); }

/* Mobile sidebar overlay */
.mobile-menu-toggle {
	position: fixed;
	left: 1.5rem;
	bottom: 1.5rem;
	z-index: 40;
	background: var(--brand-black);
	color: white;
	border-radius: 999px;
	padding: 0.625rem 1rem;
	font-size: 13px;
	font-weight: 500;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	transition: background 0.2s;
}
.mobile-menu-toggle:hover { background: var(--brand-red); }

@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }

.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 30;
	background: rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__panel {
	position: absolute;
	left: 0;
	top: 4rem;
	bottom: 0;
	width: 18rem;
	max-width: 85vw;
	background: white;
	border-right: 1px solid var(--gray-200);
	padding: 1.5rem;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* =========================================================================
   Typography & page structure
   ========================================================================= */

.page-title {
	font-size: 1.625rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--brand-black);
	margin-bottom: 1rem;
	line-height: 1.2;
}
@media (min-width: 640px) { .page-title { font-size: 1.875rem; } }

.page-lede {
	font-size: 1rem;
	color: var(--brand-gray);
	line-height: 1.6;
	max-width: 36rem;
}

.page-header { margin-bottom: 4rem; }
.page-header__titlebar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.page-header__titlebar .page-title { margin-bottom: 0; }

.stack > * + * { margin-top: 4rem; }

.section-heading {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--brand-black);
	margin: 0 0 1rem;
	letter-spacing: -0.01em;
}
.section-subheading {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--brand-black);
	margin: 0 0 1rem;
	letter-spacing: -0.01em;
}

.lede-sm {
	font-size: 14px;
	color: var(--brand-gray);
	line-height: 1.65;
	margin-bottom: 1rem;
}
.lede-sm + .lede-sm { margin-top: -0.25rem; }

/* Block-quote style callout (e.g. recommended integration path) */
.callout {
	padding: 1.25rem 1.5rem;
	background: var(--brand-light);
	border-left: 3px solid var(--gray-300);
	border-radius: 0 0.5rem 0.5rem 0;
}
.callout__title {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--brand-black);
	letter-spacing: -0.01em;
	margin: 0 0 0.5rem;
}
.callout__body {
	font-size: 14px;
	color: var(--brand-gray);
	line-height: 1.65;
	margin: 0;
}
.callout__body strong { color: var(--brand-black); font-weight: 600; }

/* Step number circles */
.step-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.step-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	flex-shrink: 0;
	border-radius: 999px;
	background: var(--brand-black);
	color: white;
	font-size: 12px;
	font-weight: 600;
}
.step-row .step-title { font-size: 1.125rem; font-weight: 600; color: var(--brand-black); }

.step-list-ol { display: flex; flex-direction: column; gap: 1rem; }
.step-list-ol li { display: flex; gap: 0.75rem; font-size: 14px; color: var(--brand-gray); line-height: 1.65; }
.step-list-ol .step-circle--light {
	width: 1.5rem; height: 1.5rem;
	background: var(--brand-light);
	color: var(--brand-black);
	font-size: 12px;
}
.step-list-ol strong { color: var(--brand-black); font-weight: 600; }

.step-list-tall { display: flex; flex-direction: column; gap: 2rem; }
.step-list-tall > li { display: flex; gap: 1.25rem; min-width: 0; }
.step-list-tall > li > div { min-width: 0; flex: 1; }
.step-list-tall .step-circle { margin-top: 0.125rem; }
.step-list-tall h3 {
	font-size: 14px;
	font-weight: 600;
	color: var(--brand-black);
	margin: 0 0 0.25rem;
}
.step-list-tall p, .step-list-tall div > p {
	font-size: 14px;
	color: var(--brand-gray);
	line-height: 1.65;
}

/* Inline code chip */
.code-chip {
	font-family: var(--font-mono);
	font-size: 13px;
	background: var(--brand-light);
	padding: 0.125rem 0.375rem;
	border-radius: 0.25rem;
}
.code-chip-sm {
	font-family: var(--font-mono);
	font-size: 12px;
}

/* Block URL pill */
.url-block {
	display: block;
	font-family: var(--font-mono);
	font-size: 14px;
	background: var(--brand-light);
	padding: 0.875rem 1.25rem;
	border-radius: 0.5rem;
	border: 1px solid var(--gray-200);
}

.subtle-link {
	color: var(--brand-black);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: var(--gray-300);
	transition: text-decoration-color 0.2s;
}
.subtle-link:hover { text-decoration-color: var(--brand-red); }

.divider-top {
	border-top: 1px solid var(--gray-200);
	padding-top: 2.5rem;
}

/* =========================================================================
   Code block
   ========================================================================= */

.code-block {
	position: relative;
	margin: 1rem 0;
	border-radius: 0.75rem;
	overflow: hidden;
	border: 1px solid #1f2937;
	background: var(--brand-black);
}
.code-block__title {
	background: #3a3a3a;
	padding: 0.625rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #999;
}

.code-block__copy {
	position: absolute;
	top: 0.625rem;
	right: 0.75rem;
	z-index: 10;
	border-radius: 0.375rem;
	padding: 0.25rem 0.625rem;
	font-family: var(--font-mono);
	font-size: 11px;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: background 0.2s, color 0.2s, opacity 0.2s;
	opacity: 0;
}
.code-block:hover .code-block__copy,
.code-block__copy:focus-visible { opacity: 1; }
.code-block__copy:hover { background: rgba(255, 255, 255, 0.15); color: white; }

.code-block .code-block__body { font-size: 13px; }
.code-block pre.shiki {
	margin: 0 !important;
	border-radius: 0 !important;
	overflow-x: auto;
	padding: 1.25rem 1.5rem;
	font-size: 13px;
	line-height: 1.7;
	tab-size: 2;
	background-color: #0C0C0C !important;
	color: #E1E4E8;
}
.code-block pre.shiki code { font-family: var(--font-mono); color: inherit; }

/* =========================================================================
   Tab group
   ========================================================================= */

.tab-group { margin: 1.5rem 0; }
.tab-group__tabs {
	display: flex;
	gap: 0;
	border-bottom: 1px solid var(--gray-200);
	overflow-x: auto;
}
.tab-group__tab {
	position: relative;
	padding: 0.625rem 1rem;
	font-size: 13px;
	font-weight: 500;
	color: var(--brand-gray);
	transition: color 0.15s;
	white-space: nowrap;
}
.tab-group__tab:hover { color: var(--brand-black); }
.tab-group__tab[data-active="true"] { color: var(--brand-black); }
.tab-group__tab[data-active="true"]::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--brand-red);
}
.tab-group__pane { display: none; }
.tab-group__pane[data-active="true"] { display: block; }

/* =========================================================================
   Alert
   ========================================================================= */

.alert {
	margin: 1rem 0;
	padding: 1rem 1.5rem 1rem 1.25rem;
	border-left: 3px solid var(--gray-300);
	border-radius: 0 0.375rem 0.375rem 0;
	background: rgba(249, 250, 251, 0.5);
	font-size: 13px;
	line-height: 1.65;
	color: rgba(12, 12, 12, 0.7);
}
.alert p { margin: 0; }
.alert__label {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(109, 109, 109, 0.6);
	margin-bottom: 0.375rem;
}
.alert--tip { border-left-color: var(--emerald-400); background: rgba(236, 253, 245, 0.3); }
.alert--tip .alert__label { color: var(--emerald-600); }
.alert--warning { border-left-color: var(--amber-400); background: rgba(255, 251, 235, 0.3); }
.alert--warning .alert__label { color: var(--amber-600); }
.alert a { color: var(--brand-black); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gray-300); }
.alert a:hover { text-decoration-color: var(--brand-red); }

/* =========================================================================
   Badge
   ========================================================================= */

.badge {
	display: inline-flex;
	align-items: center;
	border-radius: 0.375rem;
	padding: 3px 0.625rem;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
	background: var(--gray-100);
	color: var(--brand-gray);
}
.badge--required { background: var(--brand-red-50-bg); color: var(--brand-red); }
.badge--deprecated { background: var(--orange-50); color: var(--orange-600); }
.badge--method {
	width: 3.75rem;
	justify-content: center;
	font-weight: 600;
}
.badge--get { background: var(--emerald-50); color: var(--emerald-600); }
.badge--post { background: var(--blue-50); color: var(--blue-600); }
.badge--put { background: var(--amber-50); color: var(--amber-600); }
.badge--delete { background: var(--brand-red-50-bg); color: var(--brand-red-600); }

/* =========================================================================
   Endpoint block
   ========================================================================= */

.endpoint-list {
	border-radius: 0.5rem;
	border: 1px solid var(--gray-200);
	overflow: hidden;
}
.endpoint-list > .endpoint + .endpoint { border-top: 1px solid var(--gray-200); }

.endpoint {}
.endpoint__header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	padding: 0.875rem 1.25rem;
	background: white;
	transition: background 0.2s;
	text-align: left;
}
.endpoint__header:hover { background: rgba(249, 250, 251, 0.6); }
@media (min-width: 768px) { .endpoint__header { padding: 1rem 1.5rem; } }

.endpoint__path {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	color: var(--brand-black);
}
.endpoint__auth { display: none; margin-left: 0.25rem; }
@media (min-width: 640px) { .endpoint__auth { display: inline-flex; } }
.endpoint__desc {
	display: none;
	margin-left: auto;
	text-align: right;
	font-size: 13px;
	color: var(--brand-gray);
}
@media (min-width: 1024px) { .endpoint__desc { display: block; } }

.endpoint__chevron {
	flex-shrink: 0;
	margin-left: auto;
	color: var(--gray-300);
	transition: transform 0.2s;
}
@media (min-width: 1024px) { .endpoint__chevron { margin-left: 0.5rem; } }
.endpoint[data-open="true"] .endpoint__chevron { transform: rotate(180deg); }
.endpoint[data-open="true"] .endpoint__desc { margin-left: auto; }

.endpoint__body {
	border-top: 1px solid var(--gray-100);
	background: white;
	padding: 2rem 1.5rem 2.5rem;
}
.endpoint__body[hidden] { display: none; }
.endpoint__desc--mobile {
	font-size: 13px;
	color: var(--brand-gray);
	line-height: 1.65;
	margin-bottom: 1.5rem;
}
@media (min-width: 1024px) { .endpoint__desc--mobile { display: none; } }

.endpoint__section-label {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(109, 109, 109, 0.5);
	margin: 0 0 0.25rem;
}

.param-list { border-top: 1px solid var(--gray-100); }
.param-list > .param { padding: 0.875rem 0; border-bottom: 1px solid var(--gray-100); }
.param-list > .param:last-child { border-bottom: 0; }
.param { display: flex; flex-direction: column; gap: 0.25rem; }
@media (min-width: 640px) { .param { flex-direction: row; gap: 2rem; } }
.param__key { flex-shrink: 0; }
@media (min-width: 640px) { .param__key { width: 10rem; } }
.param__name {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	color: var(--brand-black);
}
.param__meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.125rem; }
.param__type {
	font-family: var(--font-mono);
	font-size: 10px;
	color: rgba(109, 109, 109, 0.4);
	text-transform: uppercase;
}
.param__required {
	font-family: var(--font-mono);
	font-size: 10px;
	color: rgba(255, 87, 90, 0.7);
	text-transform: uppercase;
}
.param__desc {
	font-size: 13px;
	color: var(--brand-gray);
	line-height: 1.65;
}

.endpoint__examples {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-top: 2rem;
	align-items: start;
}
.endpoint__examples > * { min-width: 0; }
.endpoint__examples--single { grid-template-columns: 1fr; }

/* =========================================================================
   Tables
   ========================================================================= */

.table-scroll { overflow-x: auto; }
.table {
	width: 100%;
	font-size: 14px;
	border-collapse: collapse;
}
.table thead th {
	text-align: left;
	padding: 0.75rem 1.5rem 0.75rem 0;
	font-weight: 600;
	color: var(--brand-black);
	border-bottom: 1px solid var(--gray-200);
	white-space: nowrap;
}
.table tbody td {
	padding: 0.625rem 1.5rem 0.625rem 0;
	color: var(--brand-gray);
	border-bottom: 1px solid var(--gray-100);
	vertical-align: top;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table td.mono, .table td > code { font-family: var(--font-mono); }
.table .td-mono {
	font-family: var(--font-mono);
	font-size: 13px;
}
.table .td-muted { color: rgba(109, 109, 109, 0.5); }

/* =========================================================================
   Cards, grids, screenshot placeholder
   ========================================================================= */

.card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }

.card-link {
	display: block;
	padding: 1.25rem;
	border-radius: 0.5rem;
	border: 1px solid var(--gray-200);
	transition: border-color 0.2s, color 0.2s;
}
.card-link:hover { border-color: rgba(255, 87, 90, 0.3); }
.card-link h3 {
	font-size: 14px;
	font-weight: 600;
	color: var(--brand-black);
	margin: 0 0 0.25rem;
	transition: color 0.2s;
}
.card-link:hover h3 { color: var(--brand-red); }
.card-link p { font-size: 13px; color: var(--brand-gray); margin: 0; }

.screenshot-placeholder {
	margin-top: 1rem;
	background: var(--brand-light);
	border: 1px solid var(--gray-200);
	border-radius: 0.5rem;
	height: 12rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 500;
	color: rgba(109, 109, 109, 0.5);
}
.screenshot-placeholder--lg { height: 14rem; }

/* Auth method cards */
.auth-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
@media (min-width: 640px) { .auth-grid { grid-template-columns: 1fr 1fr; } }
.auth-card {
	padding: 1rem;
	border: 1px solid var(--gray-200);
	border-radius: 0.5rem;
}
.auth-card .badge { margin-bottom: 0.5rem; }
.auth-card p { font-size: 13px; color: var(--brand-gray); line-height: 1.65; margin: 0; }

/* Form-style field rows (field/description pairs) */
.field-rows { display: flex; flex-direction: column; gap: 0.75rem; font-size: 14px; color: var(--brand-gray); }
.field-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.field-row > .code-chip { flex-shrink: 0; }

/* =========================================================================
   Home hero
   ========================================================================= */

.hero {
	max-width: 80rem;
	margin: 0 auto;
	padding: 4rem 1rem;
}
@media (min-width: 640px) { .hero { padding: 5rem 1.5rem; } }
@media (min-width: 768px) { .hero { padding: 8rem 2rem; } }

.hero__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 4rem;
}
@media (min-width: 768px) { .hero__head { margin-bottom: 6rem; } }

.hero__eyebrow {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--brand-red);
	margin-bottom: 1.25rem;
}

.hero__title {
	font-size: 2.25rem;
	font-weight: 700;
	color: var(--brand-black);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero__title { font-size: 3.5rem; } }

.hero__lede {
	font-size: 17px;
	color: var(--brand-gray);
	max-width: 42rem;
	line-height: 1.6;
}
@media (min-width: 768px) { .hero__lede { font-size: 19px; } }
.hero__lede strong { color: var(--brand-black); font-weight: 600; }

.hero__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	position: relative;
}
@media (min-width: 768px) { .hero__cards { gap: 2rem; } }
@media (min-width: 1024px) { .hero__cards { grid-template-columns: repeat(3, 1fr); } }

.story-card {
	background: white;
	border-radius: 1.5rem;
	padding: 2rem;
	border: 1px solid var(--gray-200);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	min-height: 400px;
	display: flex;
	flex-direction: column;
	transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}
.story-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
}
@media (min-width: 768px) { .story-card { padding: 2.5rem; } }

.story-card h3 {
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--brand-black);
	margin-bottom: 0.5rem;
	line-height: 1.1;
}
.story-card__kicker {
	color: var(--brand-red);
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.story-card__body {
	font-size: 15px;
	line-height: 1.65;
	color: var(--brand-gray);
	margin-bottom: 2rem;
	flex: 1;
}
.story-card__example {
	margin-top: auto;
	border-left: 2px solid var(--brand-red);
	padding: 0.25rem 0 0.25rem 1rem;
}
.story-card__example-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--brand-red);
	margin-bottom: 0.5rem;
}
.story-card__example p {
	font-size: 13px;
	line-height: 1.65;
	color: var(--brand-black);
}
.story-card__example strong { color: var(--brand-black); font-weight: 700; }

.story-card--red {
	background: var(--brand-red);
	border-color: var(--brand-red);
	color: white;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.story-card--red:hover { box-shadow: 0 25px 60px rgba(255, 87, 90, 0.2); }
.story-card--red h3 { color: white; }
.story-card--red .story-card__kicker { color: var(--burgundy); }
.story-card--red .story-card__body { color: rgba(255, 255, 255, 0.9); }
.story-card--red .story-card__example { border-left-color: var(--burgundy); }
.story-card--red .story-card__example-label { color: var(--burgundy); }
.story-card--red .story-card__example p,
.story-card--red .story-card__example strong { color: white; }
.story-card--red .story-card__example strong { border-bottom: 1px solid rgba(255, 255, 255, 0.4); }

.story-card--black {
	background: var(--brand-black);
	border-color: var(--brand-black);
	color: white;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.story-card--black:hover { box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2); }
.story-card--black h3 { color: white; }
.story-card--black .story-card__kicker { color: var(--brand-red-60); }
.story-card--black .story-card__body { color: rgba(255, 255, 255, 0.8); }
.story-card--black .story-card__example { border-left-color: var(--brand-red-60); }
.story-card--black .story-card__example-label { color: var(--brand-red-60); }
.story-card--black .story-card__example p { color: rgba(255, 255, 255, 0.9); }
.story-card--black .story-card__example strong { color: white; font-weight: 700; }

/* =========================================================================
   Companion (Divico) callout
   ========================================================================= */

.companion {
	margin-top: 6rem;
	padding-top: 4rem;
	border-top: 1px solid var(--gray-200);
}
@media (min-width: 768px) { .companion { margin-top: 8rem; padding-top: 5rem; } }

.companion__inner {
	max-width: 44rem;
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
}

.companion__head { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.companion__eyebrow {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(109, 109, 109, 0.6);
}
.companion__title {
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--brand-black);
	line-height: 1.1;
}
@media (min-width: 640px) { .companion__title { font-size: 2.5rem; } }
.companion__tagline {
	font-size: 15px;
	color: var(--brand-red);
	font-weight: 500;
}
.companion__body {
	font-size: 15px;
	color: var(--brand-gray);
	line-height: 1.7;
	max-width: 36rem;
}
.companion__body strong { color: var(--brand-black); font-weight: 600; }
.companion__meta {
	font-size: 12px;
	color: rgba(109, 109, 109, 0.6);
	font-style: italic;
}

/* =========================================================================
   Document flow (How it works)
   ========================================================================= */

.flow {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}

.flow__stage {
	position: relative;
	display: grid;
	grid-template-columns: 3.5rem 1fr;
	column-gap: 1.25rem;
	padding: 1.75rem 0;
	border-top: 1px solid var(--gray-200);
}
.flow__stage:first-child { border-top: 0; padding-top: 0.5rem; }
.flow__stage:last-child { padding-bottom: 0.5rem; }

@media (min-width: 640px) {
	.flow__stage { grid-template-columns: 4.5rem 1fr; column-gap: 2rem; padding: 2rem 0; }
}

.flow__num {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	color: var(--brand-red);
	letter-spacing: 0.05em;
	padding-top: 0.25rem;
}

.flow__title {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--brand-black);
	letter-spacing: -0.01em;
	margin-bottom: 0.5rem;
}
@media (min-width: 640px) { .flow__title { font-size: 1.25rem; } }

.flow__text {
	font-size: 14px;
	color: var(--brand-gray);
	line-height: 1.7;
	max-width: 36rem;
}

/* Principles block below the flow */
.flow-principles {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
	list-style: none;
	padding: 0;
	margin: 0;
}
@media (min-width: 768px) {
	.flow-principles { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.flow-principles li {
	padding-left: 1rem;
	border-left: 2px solid var(--brand-red);
}
.flow-principles__label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--brand-black);
	margin-bottom: 0.375rem;
}
.flow-principles__text {
	font-size: 13px;
	color: var(--brand-gray);
	line-height: 1.65;
}

/* =========================================================================
   Utility helpers
   ========================================================================= */

.muted { color: var(--brand-gray); }
.text-13 { font-size: 13px; }
.mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
