/* ==========================================================================
   The 500 Project — shared design system
   Plain CSS re-implementation of the original Tailwind utility set.
   Class names intentionally mirror the original Tailwind classes so page
   markup can reuse the same vocabulary. If you need a utility that isn't
   defined here yet, add it below using the same naming/escaping convention
   (e.g. `.bg-muted\/30`, `.md\:grid-cols-2`) instead of writing inline styles
   or a one-off CSS rule elsewhere.
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---- Design tokens ---- */
:root {
  --primary-h: 219; --primary-s: 100%; --primary-l: 18%;      /* #00205B Deep Navy */
  --secondary-h: 357; --secondary-s: 92%; --secondary-l: 47%; /* #E50914 Civic Red */
  --background: hsl(220 20% 98%);
  --foreground: hsl(var(--primary-h) var(--primary-s) var(--primary-l));
  --primary: hsl(var(--primary-h) var(--primary-s) var(--primary-l));
  --primary-foreground: #fff;
  --secondary: hsl(var(--secondary-h) var(--secondary-s) var(--secondary-l));
  --secondary-foreground: #fff;
  --muted: hsl(210 20% 96%);
  --muted-foreground: hsl(215 16% 47%);
  --border: hsl(214 32% 91%);
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Oswald', sans-serif;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
::selection { background: var(--secondary); color: #fff; }

/* ---- Container ---- */
.container { width: 100%; margin-left: auto; margin-right: auto; }
@media (min-width: 640px)  { .container { max-width: 40rem; } }
@media (min-width: 768px)  { .container { max-width: 48rem; } }
@media (min-width: 1024px) { .container { max-width: 64rem; } }
@media (min-width: 1280px) { .container { max-width: 80rem; } }
@media (min-width: 1536px) { .container { max-width: 96rem; } }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Display / position ---- */
.block { display: block; }
.hidden { display: none; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.overflow-hidden { overflow: hidden; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.min-h-screen { min-height: 100vh; }
.h-screen { height: 100vh; }
.min-h-\[600px\] { min-height: 600px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-auto { width: auto; }
.h-auto { height: auto; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }

/* sizes */
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-12 { width: 3rem; } .h-12 { height: 3rem; }
.h-10 { height: 2.5rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-1 { height: 0.25rem; }
.w-24 { width: 6rem; }
.w-64 { width: 16rem; } .h-64 { height: 16rem; }
.rounded-full { border-radius: 9999px; }
.rounded-none { border-radius: 0; }

/* ---- Gaps / spacing ---- */
.gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; } .gap-12 { gap: 3rem; } .gap-16 { gap: 4rem; }

.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; } .p-10 { padding: 2.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-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pl-6 { padding-left: 1.5rem; }
.pr-6 { padding-right: 1.5rem; }

.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; }
.mb-12 { margin-bottom: 3rem; } .mb-16 { margin-bottom: 4rem; }
.mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; } .mt-14 { margin-top: 3.5rem; }
.ml-2 { margin-left: 0.5rem; }

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }

/* ---- Grid columns ---- */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* ---- Typography ---- */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-8xl { font-size: 6rem; }
.text-9xl { font-size: 8rem; }
.text-\[13px\] { font-size: 13px; }
.text-\[14px\] { font-size: 14px; }

.font-sans { font-family: var(--font-sans); }
.font-heading { font-family: var(--font-heading); }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.antialiased { -webkit-font-smoothing: antialiased; }

.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.tracking-\[0\.22em\] { letter-spacing: 0.22em; }

.leading-none { line-height: 1; }
.leading-\[0\.9\] { line-height: 0.9; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

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

/* ---- Colors ---- */
.bg-background { background-color: var(--background); }
.text-foreground { color: var(--foreground); }
.bg-primary { background-color: var(--primary); }
.text-primary { color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.text-secondary { color: var(--secondary); }
.bg-white { background-color: #fff; }
.text-white { color: #fff; }
.bg-muted { background-color: var(--muted); }
.text-muted-foreground { color: var(--muted-foreground); }
.border-border { border-color: var(--border); }
.border-secondary { border-color: var(--secondary); }
.border-transparent { border-color: transparent; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.border-gray-300 { border-color: #d1d5db; }

.bg-muted\/20 { background-color: hsl(210 20% 96% / 0.5); }
.bg-muted\/30 { background-color: hsl(210 20% 96% / 0.6); }
.bg-primary\/5 { background-color: hsl(var(--primary-h) var(--primary-s) var(--primary-l) / 0.05); }
.bg-primary\/10 { background-color: hsl(var(--primary-h) var(--primary-s) var(--primary-l) / 0.10); }
.bg-primary\/30 { background-color: hsl(var(--primary-h) var(--primary-s) var(--primary-l) / 0.30); }
.bg-secondary\/10 { background-color: hsl(var(--secondary-h) var(--secondary-s) var(--secondary-l) / 0.10); }
.text-primary\/80 { color: hsl(var(--primary-h) var(--primary-s) var(--primary-l) / 0.80); }
.text-primary\/90 { color: hsl(var(--primary-h) var(--primary-s) var(--primary-l) / 0.90); }
.text-white\/80 { color: hsl(0 0% 100% / 0.80); }
.text-white\/85 { color: hsl(0 0% 100% / 0.85); }
.text-white\/90 { color: hsl(0 0% 100% / 0.90); }
.bg-white\/5 { background-color: hsl(0 0% 100% / 0.05); }
.bg-white\/10 { background-color: hsl(0 0% 100% / 0.10); }
.bg-background\/90 { background-color: hsl(220 20% 98% / 0.90); }
.border-white\/10 { border-color: hsl(0 0% 100% / 0.10); }
.border-white\/12 { border-color: hsl(0 0% 100% / 0.12); }
.border-white\/15 { border-color: hsl(0 0% 100% / 0.15); }

.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-from, transparent), var(--tw-to, transparent)); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-from, transparent), var(--tw-to, transparent)); }
.from-primary { --tw-from: hsl(var(--primary-h) var(--primary-s) var(--primary-l)); }
.from-white { --tw-from: #fff; }
.via-transparent { }
.to-transparent { --tw-to: transparent; }
.to-gray-400 { --tw-to: #9ca3af; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }
.mix-blend-multiply { mix-blend-mode: multiply; }
.opacity-40 { opacity: 0.4; }

/* ---- Borders ----
   Width/style only — color is intentionally NOT set here. Color utilities
   below (.border-secondary, .border-white\/15, etc.) must win regardless of
   HTML class order, and a shorthand `border: ... var(--border)` here would
   silently clobber them whenever this rule happens to sit later in the
   cascade. The `*` reset above supplies the gray default border-color. */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t-4 { border-top-width: 4px; border-top-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-b-4 { border-bottom-width: 4px; border-bottom-style: solid; }

/* ---- Effects ---- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.transition-all { transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
.duration-700 { transition-duration: 0.7s; }
/* Filter utilities compose via custom properties (like Tailwind's filter stack)
   so e.g. `grayscale contrast-125` apply together instead of one clobbering
   the other's `filter` declaration. */
.grayscale, .contrast-125, .blur-3xl, .hover\:grayscale-0 {
  filter: var(--tw-blur, ) var(--tw-contrast, ) var(--tw-grayscale, );
}
.grayscale { --tw-grayscale: grayscale(1); }
.contrast-125 { --tw-contrast: contrast(1.25); }
.blur-3xl { --tw-blur: blur(64px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.object-cover { object-fit: cover; }

/* hover / focus states used across pages */
a:hover.hover\:text-white, .hover\:text-white:hover { color: #fff; }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-secondary:hover { color: var(--secondary); }
.hover\:bg-secondary\/90:hover { background-color: hsl(var(--secondary-h) var(--secondary-s) var(--secondary-l) / 0.9); }
.hover\:border-white:hover { border-color: #fff; }
.hover\:border-secondary:hover { border-color: var(--secondary); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.hover\:grayscale-0:hover { --tw-grayscale: grayscale(0); }
.focus\:border-secondary:focus { border-color: var(--secondary); outline: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.025em;
  border-radius: 0; border: 2px solid transparent; transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: hsl(var(--secondary-h) var(--secondary-s) var(--secondary-l) / 0.9); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; height: 2.25rem; }
.btn-lg { padding: 1.5rem 2rem; font-size: 1.125rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---- Form controls ---- */
.form-label { display: block; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; margin-bottom: 0.5rem; }
.form-input, .form-textarea {
  display: block; width: 100%; background: #fff; border: 1px solid #d1d5db; border-radius: 0;
  padding: 0 1rem; font-family: var(--font-sans); font-size: 1rem;
}
.form-input { height: 3rem; }
.form-textarea { min-height: 120px; padding-top: 0.75rem; padding-bottom: 0.75rem; resize: vertical; }
.form-input:focus, .form-textarea:focus { border-color: var(--secondary); outline: none; }
.form-error { color: hsl(0 84% 45%); font-size: 0.8125rem; margin-top: 0.375rem; }
.form-checkbox-row { display: flex; align-items: flex-start; gap: 0.75rem; }
.form-checkbox-row input[type="checkbox"] { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--secondary); }

/* ---- Nav ---- */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: hsl(220 20% 98% / 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.nav-links { display: none; align-items: center; gap: 1rem; }
.nav-link { font-size: 0.875rem; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--primary-h) var(--primary-s) var(--primary-l) / 0.8); transition: color 0.2s ease; }
.nav-link:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.mobile-menu-btn { display: inline-flex; color: var(--primary); padding: 0.5rem; }

.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.mobile-nav-overlay.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 85vw;
  background: var(--background); z-index: 61; box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  transform: translateX(100%); transition: transform 0.3s ease;
  padding: 3rem 2rem; display: flex; flex-direction: column; gap: 1.5rem;
}
.mobile-nav-panel.is-open { transform: translateX(0); }
.mobile-nav-panel .nav-link { display: block; font-size: 1.125rem; color: var(--primary); }
.mobile-nav-panel .nav-link:hover { color: var(--secondary); }
.mobile-nav-close { align-self: flex-end; color: var(--primary); }
body.nav-open { overflow: hidden; }

/* ---- Footer ---- */
.site-footer { background: var(--primary); color: #fff; padding: 3rem 0; border-top: 1px solid hsl(0 0% 100% / 0.1); }
.footer-disclaimer { font-size: 0.875rem; color: #9ca3af; max-width: 64rem; margin: 0 auto 1.5rem; text-align: center; line-height: 1.625; }
.footer-disclaimer p + p { margin-top: 0.75rem; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; justify-content: space-between; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 1rem; font-size: 0.875rem; color: #9ca3af; }
.footer-links-row { display: flex; gap: 1rem; }
.footer-links a:hover { color: #fff; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-x { opacity: 0; transform: translateX(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-x.is-visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.95); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

/* ---- Toast notifications ---- */
#toast-region { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 100; display: flex; flex-direction: column; gap: 0.75rem; width: min(360px, calc(100vw - 2.5rem)); }
.toast { background: #fff; border-left: 4px solid var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.15); padding: 1rem 1.25rem; opacity: 0; transform: translateY(-10px); transition: opacity 0.25s ease, transform 0.25s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast-title { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.9rem; color: var(--primary); margin-bottom: 0.25rem; }
.toast-description { font-size: 0.875rem; color: var(--muted-foreground); }
.toast.toast-destructive { border-left-color: var(--secondary); }
.toast.toast-destructive .toast-title { color: var(--secondary); }

/* honeypot field: hidden from real users, present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Responsive: md (>=768px) ---- */
@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-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:items-end { align-items: flex-end; }
  .md\:justify-between { justify-content: space-between; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-8xl { font-size: 6rem; }
  .md\:p-6 { padding: 1.5rem; }
  .md\:p-10 { padding: 2.5rem; }
  .md\:p-12 { padding: 3rem; }
  .md\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:gap-0 { gap: 0; }
  .md\:min-h-\[160px\] { min-height: 160px; }
  .md\:border-t-0 { border-top: none; }
  .md\:border-l { border-left: 1px solid var(--border); }
  .site-nav .nav-links.md\:flex { display: flex; }
  .md\:hidden.mobile-menu-wrap { display: none; }
}

/* ---- Responsive: lg (>=1024px) ---- */
@media (min-width: 1024px) {
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* ---- Small utility for section title chips ---- */
.chip-secondary { display: inline-block; padding: 0.5rem 1rem; background: var(--secondary); color: #fff; }

/* ---- Hero headline gradient (mirrors bg-gradient-to-b from-white to-gray-400 bg-clip-text) ---- */
.hero-gradient-text {
  background-image: linear-gradient(to bottom, #fff, #9ca3af);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Image frame (offset shadow block behind photos) ---- */
.img-frame { position: relative; aspect-ratio: 4/3; }
.img-frame::before {
  content: ''; position: absolute; inset: 0;
  background: hsl(var(--primary-h) var(--primary-s) var(--primary-l) / 0.10);
  transform: translate(-1rem, 1rem); z-index: 0;
}
.img-frame img { position: relative; z-index: 1; width: 100%; height: 100%; }

/* ---- Why-500 chain grid ---- */
.chain-card { position: relative; padding: 1.25rem; border-top: 1px solid hsl(0 0% 100% / 0.12); }
.chain-heading { font-size: 13px; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.22em; color: #fff; }
.chain-desc { margin-top: 0.75rem; font-size: 0.95rem; color: hsl(0 0% 100% / 0.85); line-height: 1.625; padding-right: 1.5rem; }
.chain-arrow { position: absolute; bottom: 1rem; right: 1.25rem; font-size: 1.5rem; font-family: var(--font-heading); color: var(--secondary); }
@media (min-width: 768px) {
  .chain-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .chain-card { border-top: none; border-left: 1px solid hsl(0 0% 100% / 0.12); min-height: 160px; padding: 1.5rem; }
}

/* ---- Feature cards ("What It Is") ---- */
.feature-card { background: #fff; padding: 2rem; box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); border-top: 4px solid transparent; transition: all 0.2s ease; }
.feature-card:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); border-top-color: var(--secondary); }
.feature-icon { width: 3rem; height: 3rem; background: hsl(var(--primary-h) var(--primary-s) var(--primary-l) / 0.05); border-radius: 9999px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: var(--primary); }

/* ---- Checklist rows ---- */
.check-row { display: flex; align-items: flex-start; gap: 0.75rem; }
.check-icon { color: var(--secondary); flex-shrink: 0; margin-top: 0.25rem; }

/* ---- Belief cards ---- */
.belief-card { border: 1px solid hsl(0 0% 100% / 0.15); background: hsl(0 0% 100% / 0.05); padding: 1.5rem; backdrop-filter: blur(4px); }

/* ---- Decorative blur blob ---- */
.decorative-blur { position: absolute; right: -2.5rem; bottom: -2.5rem; width: 16rem; height: 16rem; background: hsl(var(--secondary-h) var(--secondary-s) var(--secondary-l) / 0.10); border-radius: 9999px; filter: blur(64px); }

/* ---- Form field wrapper ---- */
.form-field { display: flex; flex-direction: column; }

@media (min-width: 1024px) {
  .lg\:text-9xl { font-size: 8rem; }
}

@media (max-width: 767px) {
  .footer-bottom { text-align: center; }
}

/* ==========================================================================
   Additions for the agreement pages (/mou, /foundingpartners)
   ========================================================================== */

/* ---- Display / sizing ---- */
.flex-1 { flex: 1 1 0%; }
.inline-block { display: inline-block; }
.whitespace-nowrap { white-space: nowrap; }
.w-1 { width: 0.25rem; }
.min-h-\[1em\] { min-height: 1em; }

/* ---- Gaps / spacing ---- */
.gap-2 { gap: 0.5rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-x-10 { column-gap: 2.5rem; }
.gap-y-0 { row-gap: 0; }
.gap-y-4 { row-gap: 1rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-0\.5 > * + * { margin-top: 0.125rem; }

.p-4 { padding: 1rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.pl-5 { padding-left: 1.25rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pb-2 { padding-bottom: 0.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-2 { margin-top: 0.5rem; }

/* ---- Typography ---- */
.text-base { font-size: 1rem; }
.font-semibold { font-weight: 600; }
.leading-tight { line-height: 1.25; }
.hover\:underline:hover { text-decoration: underline; }
.list-disc { list-style: disc; }

/* ---- Colors ---- */
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-400 { border-color: #9ca3af; }

/* ---- Inline label/underline form rows (mirrors md:grid-cols-[auto_1fr]) ---- */
.form-row-inline {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 1rem;
  align-items: end;
}
.form-row-inline .form-error { grid-column: 1 / -1; }
.form-label-inline {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  padding-bottom: 0.5rem;
}
.form-input-underline {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #9ca3af;
  border-radius: 0;
  box-shadow: none;
  height: 2.25rem;
  padding: 0 0.25rem;
}
.form-input-underline:focus { border-bottom-color: var(--secondary); outline: none; }

/* ---- Responsive: md (>=768px) ---- */
@media (min-width: 768px) {
  .md\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .md\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .md\:p-8 { padding: 2rem; }
  .form-row-inline { grid-template-columns: auto 1fr; }
  .form-row-inline .form-error { grid-column: 2 / -1; }
}

/* ---- Responsive: lg (>=1024px) ---- */
@media (min-width: 1024px) {
  .lg\:text-6xl { font-size: 3.75rem; }
}

/* ---- Prose / legal document pages (privacy policy, terms) ---- */
.pt-24 { padding-top: 6rem; }
.pb-16 { padding-bottom: 4rem; }
.pl-8 { padding-left: 2rem; }
.normal-case { text-transform: none; }
.text-gray-500 { color: #6b7280; }
.list-\[lower-alpha\] { list-style-type: lower-alpha; list-style-position: outside; }

/* ---- Additional utilities (Operation 1776 page) ---- */
.space-y-2 > * + * { margin-top: 0.5rem; }
.min-h-\[160px\] { min-height: 160px; }

/* Outlined (white) button variant — mirrors
   `bg-transparent text-white border-white/40 hover:bg-white/10` */
.btn-outline-white { background: transparent; color: #fff; border-color: hsl(0 0% 100% / 0.4); }
.btn-outline-white:hover { background: hsl(0 0% 100% / 0.1); color: #fff; }

/* ---- Responsive: sm (>=640px) ---- */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:text-xl { font-size: 1.25rem; }
  .md\:text-3xl { font-size: 1.875rem; }
}
