/* Tailwind-inspired utility CSS for Search & Distro */
/* Since we're not running the Tailwind CLI build, this provides the needed styles */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
body { font-family: 'Open Sans', system-ui, -apple-system, sans-serif; }

/* Fonts */
.font-oswald { font-family: 'Oswald', sans-serif; }

/* Flexbox & Grid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Sizing */
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.min-h-screen { min-height: 100vh; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-none { max-width: none; }
.h-full { height: 100%; }
.max-h-full { max-height: 100%; }
.max-w-full { max-width: 100%; }
.max-h-48 { max-height: 12rem; }

/* Spacing */
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mx-6 { margin-left: 1.5rem; margin-right: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-4 { padding-bottom: 1rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.whitespace-pre-line { white-space: pre-line; }
.break-all { word-break: break-all; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none; }

/* Colors */
.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-amber-500 { color: #f59e0b; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-red-300 { color: #fca5a5; }
.text-red-400 { color: #f87171; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991b1b; }
.text-green-300 { color: #86efac; }
.text-green-800 { color: #166534; }
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-500 { background-color: #f59e0b; }
.bg-amber-600 { background-color: #d97706; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-900\/50 { background-color: rgba(127, 29, 29, 0.5); }
.bg-green-900\/50 { background-color: rgba(20, 83, 45, 0.5); }
.bg-transparent { background-color: transparent; }

/* Gradients */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-gray-900 { --tw-gradient-from: #111827; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.via-gray-800 { --tw-gradient-stops: var(--tw-gradient-from), #1f2937, var(--tw-gradient-to, transparent); }
.to-gray-800 { --tw-gradient-to: #1f2937; }
.to-gray-900 { --tw-gradient-to: #111827; }

/* Borders */
.border { border: 1px solid #e5e7eb; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.border-2 { border-width: 2px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-700 { border-color: #374151; }
.border-red-200 { border-color: #fecaca; }
.border-red-700 { border-color: #b91c1c; }
.border-green-200 { border-color: #bbf7d0; }
.border-green-700 { border-color: #15803d; }
.border-white { border-color: #fff; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }

/* Object fit */
.object-contain { object-fit: contain; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Hover states */
.hover\:bg-amber-600:hover { background-color: #d97706; }
.hover\:bg-amber-100:hover { background-color: #fef3c7; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-300:hover { background-color: #d1d5db; }
.hover\:bg-white:hover { background-color: #fff; }
.hover\:text-white:hover { color: #fff; }
.hover\:text-gray-900:hover { color: #111827; }
.hover\:text-amber-600:hover { color: #d97706; }
.hover\:text-amber-700:hover { color: #b45309; }
.hover\:text-red-300:hover { color: #fca5a5; }
.hover\:text-red-700:hover { color: #b91c1c; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.group:hover .group-hover\:text-amber-600 { color: #d97706; }

/* Focus states */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #f59e0b; outline: none; }
.focus\:ring-amber-500:focus { box-shadow: 0 0 0 2px #f59e0b; }
.focus\:border-transparent:focus { border-color: transparent; }

/* Table */
table { border-collapse: collapse; }
.divide-y > * + * { border-top: 1px solid; }
.divide-gray-100 > * + * { border-top-color: #f3f4f6; }

/* Navigation */
.nav-link { color: #d1d5db; text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 150ms; }
.nav-link:hover, .nav-link.active { color: #fff; }

.sidebar-link { display: flex; align-items: center; padding: 0.625rem 1.5rem; color: #9ca3af; text-decoration: none; font-size: 0.875rem; transition: all 150ms; }
.sidebar-link:hover { color: #fff; background-color: rgba(255,255,255,0.05); }
.sidebar-link.active { color: #fff; background-color: rgba(255,255,255,0.1); border-right: 3px solid #f59e0b; }

/* Prose - basic rich text styling */
.prose p { margin-bottom: 1em; }
.prose a { color: #d97706; text-decoration: underline; }
.prose a:hover { color: #b45309; }
.prose ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-left: 1.5em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.25em; }
.prose strong { font-weight: 600; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 1.5em; margin-bottom: 0.75em; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.25em; margin-bottom: 0.5em; }

/* File input */
.file\:mr-4::file-selector-button { margin-right: 1rem; }
.file\:py-2::file-selector-button { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.file\:px-4::file-selector-button { padding-left: 1rem; padding-right: 1rem; }
.file\:rounded-lg::file-selector-button { border-radius: 0.5rem; }
.file\:border-0::file-selector-button { border: 0; }
.file\:bg-amber-50::file-selector-button { background-color: #fffbeb; }
.file\:text-amber-700::file-selector-button { color: #b45309; }
.hover\:file\:bg-amber-100:hover::file-selector-button { background-color: #fef3c7; }

/* Form inputs */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="number"], select, textarea {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
}

/* Responsive */
@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:flex-row { flex-direction: row; }
    .sm\:block { display: block; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:table-cell { display: table-cell; }
    .md\:mt-0 { margin-top: 0; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:block { display: block; }
    .lg\:table-cell { display: table-cell; }
}

/* Mobile menu hidden by default */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
}

/* Carousel */
.carousel-wrapper { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: 0.5rem; }
.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    gap: 1.5rem;
}
.carousel-slide {
    flex: 0 0 calc(50% - 0.75rem);
    min-width: 0;
    text-decoration: none;
}
@media (min-width: 640px) {
    .carousel-slide { flex: 0 0 calc(33.333% - 1rem); }
}
@media (min-width: 768px) {
    .carousel-slide { flex: 0 0 calc(25% - 1.125rem); }
}
@media (min-width: 1024px) {
    .carousel-slide { flex: 0 0 calc(20% - 1.2rem); }
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 150ms;
    color: #374151;
}
.carousel-btn:hover { background: #f9fafb; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-btn-left { left: -1.25rem; }
.carousel-btn-right { right: -1.25rem; }
@media (max-width: 768px) {
    .carousel-btn-left { left: 0.25rem; }
    .carousel-btn-right { right: 0.25rem; }
}
.carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 150ms;
}
.carousel-dot.active { background: #f59e0b; width: 1.5rem; }

/* =====================================================
   PUBLIC SITE REDESIGN — Industrial Analog Warmth
   ===================================================== */

body.public-site {
    background-color: #100e0c;
    color: #e0cfb5;
    font-family: 'Lora', Georgia, serif;
    line-height: 1.7;
    --bg: #100e0c;
    --surface: #1d1914;
    --surface-2: #2a2018;
    --border: #3d3028;
    --border-bright: #5a4838;
    --text: #e0cfb5;
    --text-dim: #c4ad90;
    --text-muted: #8a7a65;
    --accent: #c87840;
    --accent-2: #e8a84a;
    --accent-dark: #8a5228;
    --display-font: 'Bebas Neue', sans-serif;
    --mono-font: 'Space Mono', monospace;
}

/* --- Sticky header --- */
.site-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}
.site-logo img { height: 2.5rem; display: block; }
.site-nav { display: flex; align-items: stretch; }
.site-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--mono-font);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 1.1rem;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    transition: color 180ms, border-color 180ms;
}
.site-nav-link:hover { color: var(--text-dim); border-bottom-color: var(--border-bright); }
.site-nav-link.active { color: var(--text); border-bottom-color: var(--accent); }
.mobile-menu-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.25rem; }
.mobile-menu { background-color: var(--surface); border-top: 1px solid var(--border); padding: 0.5rem 0; }
.mobile-menu-link {
    display: block; padding: 0.75rem 1.5rem;
    color: var(--text-muted); text-decoration: none;
    font-family: var(--mono-font); font-size: 0.7rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    transition: color 150ms, background 150ms;
}
.mobile-menu-link:hover { color: var(--text); background: var(--surface-2); }

/* --- Flash --- */
.flash-wrap { max-width: 80rem; margin: 1rem auto; padding: 0 1.5rem; }
.flash-msg { padding: 0.875rem 1.25rem; border-radius: 0.25rem; font-size: 0.8rem; font-family: var(--mono-font); }
.flash-error { background: rgba(180,50,30,0.12); border: 1px solid rgba(200,60,40,0.35); color: #e8a898; }
.flash-success { background: rgba(40,120,60,0.12); border: 1px solid rgba(50,140,70,0.35); color: #90d0a8; }

/* --- Footer --- */
.site-footer { background-color: var(--surface); border-top: 1px solid var(--border); margin-top: 5rem; }
.footer-inner {
    max-width: 80rem; margin: 0 auto; padding: 3rem 1.5rem;
    display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center;
}
@media (min-width: 768px) {
    .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; align-items: flex-start; }
}
.footer-brand { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-logo-text { font-family: var(--display-font); font-size: 1.6rem; letter-spacing: 0.06em; color: var(--text); }
.footer-tagline { font-family: var(--mono-font); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; align-items: center; }
.footer-link { color: var(--text-muted); text-decoration: none; font-family: var(--mono-font); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; transition: color 150ms; }
.footer-link:hover { color: var(--accent); }
.footer-copy { font-size: 0.7rem; color: var(--text-muted); font-family: var(--mono-font); }

/* --- Page header --- */
.page-header { padding: 3rem 0 2.5rem; }
.page-title { font-family: var(--display-font); font-size: 3.5rem; letter-spacing: 0.04em; color: var(--text); line-height: 1; margin-bottom: 0.75rem; }
.page-rule { width: 3rem; height: 2px; background: var(--accent); border: none; margin: 0; }

/* --- Section titles --- */
.section-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.5rem; }
.section-title { font-family: var(--display-font); font-size: 2.5rem; letter-spacing: 0.05em; color: var(--text); line-height: 1; white-space: nowrap; }
.section-rule { flex: 1; height: 1px; background: var(--border); }

/* --- CTA buttons --- */
.btn-primary {
    display: inline-flex; align-items: center; padding: 0.8rem 2rem;
    background: var(--accent); color: #0f0d0b;
    font-family: var(--mono-font); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none; font-weight: 700; border-radius: 0.125rem;
    transition: background 200ms, transform 150ms;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost {
    display: inline-flex; align-items: center; padding: 0.8rem 2rem;
    border: 1px solid var(--border-bright); color: var(--text-muted);
    font-family: var(--mono-font); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none; border-radius: 0.125rem;
    transition: border-color 200ms, color 200ms;
}
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text); }

/* --- Home Hero --- */
.home-hero {
    position: relative; min-height: 85vh; display: flex; align-items: center; overflow: hidden;
}
.home-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 15% 70%, rgba(200,120,64,0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(200,120,64,0.05) 0%, transparent 50%),
        #100e0c;
}
.home-hero-lines {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: 0.06;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 39px, #5a4838 40px);
}
.home-hero-content {
    position: relative; max-width: 80rem; margin: 0 auto; padding: 5rem 1.5rem;
    display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; width: 100%;
}
@media (min-width: 768px) {
    .home-hero-content { grid-template-columns: 5fr 3fr; padding: 6rem 1.5rem; }
}
.hero-eyebrow {
    font-family: var(--mono-font); font-size: 0.62rem; letter-spacing: 0.35em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before { content: ''; width: 2.5rem; height: 1px; background: var(--accent); flex-shrink: 0; }
.hero-headline {
    font-family: var(--display-font); font-size: 5.5rem; line-height: 0.92;
    letter-spacing: 0.02em; color: var(--text); margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero-headline { font-size: 8rem; } }
.hero-sub { font-size: 1rem; color: var(--text-muted); line-height: 1.75; max-width: 42ch; margin-bottom: 2.5rem; }
.hero-cta-group { display: flex; gap: 0.875rem; flex-wrap: wrap; }
.hero-stats-panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 0.25rem; overflow: hidden; position: relative;
}
.hero-stats-panel::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.hero-stat {
    padding: 2rem 1.5rem; text-align: center;
    border-bottom: 1px solid var(--border);
}
.hero-stat:last-child { border-bottom: none; }
.hero-stat-number { font-family: var(--display-font); font-size: 4.5rem; line-height: 1; color: var(--accent-2); display: block; }
.hero-stat-label { font-family: var(--mono-font); font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.25rem; display: block; }

/* --- Brands carousel section --- */
.brands-carousel-section { padding: 5rem 0; border-top: 1px solid var(--border); }
body.public-site .carousel-btn {
    background: var(--surface-2); border-color: var(--border-bright); color: var(--text-muted);
}
body.public-site .carousel-btn:hover {
    background: var(--surface); color: var(--text); box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
body.public-site .carousel-dot { background: var(--border-bright); }
body.public-site .carousel-dot.active { background: var(--accent); }
body.public-site .brand-card {
    background: var(--surface) !important; border-color: var(--border) !important;
    box-shadow: none !important;
}
body.public-site .brand-card:hover { border-color: var(--border-bright) !important; box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important; }
body.public-site .brand-card h3 { color: var(--text-muted) !important; font-family: var(--mono-font) !important; font-size: 0.62rem !important; letter-spacing: 0.1em !important; text-transform: uppercase !important; }
body.public-site .brand-card:hover h3 { color: var(--accent-2) !important; }
body.public-site .brand-card .bg-gray-100 { background: var(--surface-2) !important; }
body.public-site .brand-card .text-gray-400 { color: var(--text-muted) !important; }

/* --- Brand grid (brands page) --- */
.brand-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
    padding-bottom: 4rem;
}
@media (min-width: 640px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .brand-grid { grid-template-columns: repeat(5, 1fr); } }

.brand-tile {
    background: var(--surface); border: 1px solid var(--border); border-radius: 0.25rem;
    padding: 1.25rem 1rem; display: flex; flex-direction: column; align-items: center;
    text-decoration: none; transition: border-color 200ms, transform 200ms, box-shadow 200ms;
    position: relative; overflow: hidden; cursor: pointer;
}
.brand-tile::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0); transform-origin: left; transition: transform 280ms ease;
}
.brand-tile:hover { border-color: var(--border-bright); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.45); }
.brand-tile:hover::after { transform: scaleX(1); }
.brand-tile-img { width: 100%; height: 5.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.brand-tile-img img { max-height: 100%; max-width: 100%; object-fit: contain; filter: grayscale(15%); transition: filter 200ms; }
.brand-tile:hover .brand-tile-img img { filter: grayscale(0%); }
.brand-tile-no-img {
    width: 100%; height: 5.5rem; display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.75rem; background: var(--surface-2);
}
.brand-tile-no-img span { font-family: var(--display-font); font-size: 1.75rem; color: var(--border-bright); letter-spacing: 0.15em; }
.brand-tile-name { font-family: var(--mono-font); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); text-align: center; transition: color 200ms; line-height: 1.4; }
.brand-tile:hover .brand-tile-name { color: var(--accent-2); }

/* --- Brand detail --- */
.brand-detail-section { padding: 2rem 0 5rem; }
.back-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--mono-font); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-muted); text-decoration: none; margin-bottom: 2rem; transition: color 150ms;
}
.back-link:hover { color: var(--accent); }
.brand-detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.25rem; overflow: hidden; }
.brand-detail-hero { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 3rem 2rem; display: flex; justify-content: center; align-items: center; min-height: 14rem; }
.brand-detail-hero img { max-height: 10rem; max-width: 100%; object-fit: contain; }
.brand-detail-body { padding: 2.5rem; }
.brand-detail-title { font-family: var(--display-font); font-size: 3.5rem; letter-spacing: 0.04em; color: var(--text); line-height: 1; margin-bottom: 1.5rem; }
.brand-detail-desc { color: var(--text-dim); line-height: 1.85; margin-bottom: 2rem; }
.brand-detail-desc a { color: var(--accent); text-decoration: underline; }
.brand-detail-meta { display: grid; grid-template-columns: 1fr; gap: 1.5rem; border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 2rem; }
@media (min-width: 768px) { .brand-detail-meta { grid-template-columns: 1fr 1fr; } }
.meta-label { font-family: var(--mono-font); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.375rem; }
.meta-value { color: var(--text-dim); font-size: 0.9rem; white-space: pre-line; }
.meta-link { color: var(--accent); text-decoration: none; font-family: var(--mono-font); font-size: 0.78rem; word-break: break-all; transition: color 150ms; }
.meta-link:hover { color: var(--accent-2); }

/* --- Dealers --- */
.dealers-section { padding: 0 0 4rem; }
.dealers-filters { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .dealers-filters { flex-direction: row; } }
.filter-input, .filter-select {
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    padding: 0.625rem 1rem; font-family: var(--mono-font); font-size: 0.72rem;
    letter-spacing: 0.04em; border-radius: 0.25rem; outline: none; transition: border-color 150ms;
}
.filter-input { flex: 1; }
.filter-input::placeholder { color: var(--text-muted); }
.filter-input:focus, .filter-select:focus { border-color: var(--accent); }
.filter-select option { background: var(--surface); }
.dealers-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 0.25rem; overflow: hidden; }
.dealers-table { width: 100%; border-collapse: collapse; }
.dealers-table thead { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.dealers-table th { padding: 0.75rem 1.5rem; text-align: left; font-family: var(--mono-font); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.dealers-table td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dealers-table tbody tr:last-child td { border-bottom: none; }
.dealers-table tbody tr { transition: background 150ms; }
.dealers-table tbody tr:hover { background: var(--surface-2); }
.dealer-name-wrap { display: flex; align-items: center; gap: 0.75rem; }
.dealer-logo { max-width: 48px; max-height: 48px; width: auto; height: auto; object-fit: contain; flex-shrink: 0; }
.dealer-name { font-weight: 600; color: var(--text); font-family: 'Lora', serif; font-size: 0.95rem; }
.dealer-address { font-family: var(--mono-font); font-size: 0.62rem; color: var(--text-muted); margin-top: 0.25rem; letter-spacing: 0.02em; }
.dealer-province { font-family: var(--mono-font); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.08em; }
.dealer-link {
    font-family: var(--mono-font); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent); text-decoration: none; border: 1px solid var(--accent-dark);
    padding: 0.3rem 0.8rem; border-radius: 0.125rem; transition: background 150ms, color 150ms; display: inline-block;
}
.dealer-link:hover { background: var(--accent-dark); color: var(--text); }

/* --- Contact page --- */
.contact-section { padding: 0 0 4rem; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.25rem; padding: 2rem; }
.contact-card h2 { font-family: var(--display-font); font-size: 1.8rem; letter-spacing: 0.04em; color: var(--text); margin-bottom: 1rem; }
.contact-card p { color: var(--text-dim); margin-bottom: 0.75rem; line-height: 1.7; font-size: 0.95rem; }
.contact-card a { color: var(--accent); text-decoration: none; }
.contact-card a:hover { color: var(--accent-2); }
.contact-card strong { color: var(--text-dim); font-weight: 600; }
.form-label { display: block; font-family: var(--mono-font); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-input, .form-textarea {
    width: 100%; background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); padding: 0.625rem 0.875rem; font-family: 'Lora', serif; font-size: 0.9rem;
    border-radius: 0.25rem; outline: none; transition: border-color 150ms; margin-bottom: 1.25rem; display: block;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; }
.form-submit {
    width: 100%; padding: 0.875rem 1.5rem; background: var(--accent); color: #0f0d0b;
    font-family: var(--mono-font); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
    font-weight: 700; border: none; border-radius: 0.125rem; cursor: pointer; transition: background 200ms;
}
.form-submit:hover { background: var(--accent-2); }
.form-alert { padding: 0.875rem 1.25rem; border-radius: 0.25rem; font-family: var(--mono-font); font-size: 0.75rem; margin-bottom: 1.25rem; }
.form-alert-success { background: rgba(40,120,60,0.12); border: 1px solid rgba(50,140,70,0.35); color: #90d0a8; }
.form-alert-error { background: rgba(180,50,30,0.12); border: 1px solid rgba(200,60,40,0.35); color: #e8a898; }

/* --- Generic page (about, etc) --- */
.generic-page-section { padding: 0 0 5rem; }
.generic-page-card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.25rem; padding: 2.5rem; }
.generic-page-card h1 { font-family: var(--display-font); font-size: 3rem; letter-spacing: 0.04em; color: var(--text); line-height: 1; margin-bottom: 1.5rem; }
.generic-page-prose { color: var(--text-dim); line-height: 1.85; }
.generic-page-prose p { margin-bottom: 1em; }
.generic-page-prose a { color: var(--accent); text-decoration: underline; }
.generic-page-prose a:hover { color: var(--accent-2); }
.generic-page-prose h2 { font-family: var(--display-font); font-size: 2rem; color: var(--text); margin-top: 1.5em; margin-bottom: 0.5em; }
.generic-page-prose h3 { font-family: var(--mono-font); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 1.25em; margin-bottom: 0.5em; }
.generic-page-prose ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1em; }
.generic-page-prose li { margin-bottom: 0.3em; }
.generic-page-prose strong { color: var(--text); font-weight: 600; }
