/* Tailwind CSS Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Reset scrollbar to browser defaults */
html, body {
    scrollbar-width: auto;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: auto;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: initial;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: initial;
    border-radius: initial;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.6;
    color: #374151;
}

/* Main headings use Poppins */
h1, h2, .hero h1, .hero h2, .logo-font {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Specific styling for the main hero headline */
.hero h1 {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 700;
}

/* Hero subtitle and descriptive paragraphs */
.hero p {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Utility Classes */
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-white { background-color: #ffffff; }
.bg-blue-50 { background-color: #f0fdf4; }
.bg-blue-100 { background-color: #dcfce7; }
.bg-blue-600 { background-color: #16a34a; }
.bg-blue-700 { background-color: #15803d; }
.bg-calculator { background-color: #bbf7d0; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-600 { background-color: #16a34a; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }

.text-white { color: #ffffff; }
.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-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-600 { color: #16a34a; }
.text-blue-800 { color: #166534; }
.text-blue-100 { color: #a7f3d0; }
.text-green-600 { color: #16a34a; }
.text-green-800 { color: #166534; }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-800 { border-color: #1f2937; }
.border-blue-600 { border-color: #16a34a; }
.border-green-500 { border-color: #10b981; }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

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

/* Layout */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1rem;
}

.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }

.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }

.space-x-4 > * + * { margin-left: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.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; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.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-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.pt-8 { padding-top: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.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-12 { margin-bottom: 3rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-10 { margin-left: 2.5rem; }

/* Heights and Widths */
.h-full { height: 100%; }
.h-16 { height: 4rem; }
.w-full { width: 100%; }
.w-16 { width: 4rem; }

/* Flexbox and Grid */
.flex-shrink-0 { flex-shrink: 0; }
.gap-8 { gap: 2rem; }

/* Positioning */
.relative { position: relative; }

/* Form Elements */
input, select, button {
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

button {
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
}

/* Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    border: none;
    padding: 0;
}

input[type="range"]::-webkit-slider-track {
    background: #d1d5db;
    height: 6px;
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #2563eb;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-track {
    background: #d1d5db;
    height: 6px;
    border-radius: 3px;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    background: #2563eb;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Lists */
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

ul {
    list-style: none;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Prose */
.prose {
    max-width: 65ch;
}

.prose-lg {
    font-size: 1.125rem;
    line-height: 1.75;
}

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

/* Responsive */
@media (min-width: 640px) {
    .sm\\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\\:w-auto { width: auto; }
}

@media (min-width: 768px) {
    .md\\:block { display: block; }
    .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)); }
}

@media (min-width: 1024px) {
    .lg\\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
    .lg\\:grid { display: grid; }
    .lg\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\\:gap-8 { gap: 2rem; }
    .lg\\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .lg\\:mt-0 { margin-top: 0; }
}

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

.duration-200 {
    transition-duration: 200ms;
}

/* Hover Effects */
.hover\\:bg-blue-700:hover {
    background-color: #15803d;
}

.hover\\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.hover\\:text-blue-600:hover {
    color: #16a34a;
}

.hover\\:text-white:hover {
    color: #ffffff;
}

/* Gradient */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-blue-50 {
    --tw-gradient-from: #eff6ff;
    --tw-gradient-to: rgb(239 246 255 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-white {
    --tw-gradient-to: #ffffff;
}

/* Mobile Navigation Toggle */
@media (max-width: 767px) {
    .nav-menu {
        display: none;
    }
}

/* Custom Styles */
.hero img {
    max-width: 100%;
    height: auto;
}

.feature-card, .stat-item {
    transition: transform 0.2s ease;
}

.feature-card:hover, .stat-item:hover {
    transform: translateY(-4px);
}

/* Badge/Tag styles */
.inline-flex.items-center {
    display: inline-flex;
    align-items: center;
}

/* Additional responsive text sizes */
@media (min-width: 1024px) {
    .text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

/* Modal styles */
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.min-h-screen { min-height: 100vh; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-h-screen { max-height: 100vh; }
.overflow-y-auto { overflow-y: auto; }
.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }
.space-y-3 > * + * { margin-top: 0.75rem; }

/* Modal centering */
#eligibilityModal {
    display: flex;
    align-items: center;
    justify-content: center;
}

#eligibilityModal.hidden {
    display: none;
}
.rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.hover\\:text-gray-200:hover { color: #e5e7eb; }
.mr-3 { margin-right: 0.75rem; }
.gap-4 { gap: 1rem; }
.flex-1 { flex: 1 1 0%; }
.text-green-700 { color: #047857; }
.text-yellow-600 { color: #d97706; }
.bg-yellow-100 { background-color: #fef3c7; }
.bg-green-50 { background-color: #ecfdf5; }
.hover\\:bg-green-100:hover { background-color: #dcfce7; }
.hover\\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\\:bg-blue-50:hover { background-color: #ecfdf5; }
.bg-gray-50 { background-color: #f9fafb; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.items-start { align-items: flex-start; }
.flex-shrink-0 { flex-shrink: 0; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.leading-none { line-height: 1; }
.rounded-full { border-radius: 9999px; }
.justify-center { justify-content: center; }
.space-y-8 > * + * { margin-top: 2rem; }
.top-1\\/2 { top: 50%; }
.left-4 { left: 1rem; }
.transform { transform: var(--tw-transform); }
.-translate-y-1\\/2 { --tw-translate-y: -50%; }
.pl-12 { padding-left: 3rem; }
.mr-1 { margin-right: 0.25rem; }
.mt-12 { margin-top: 3rem; }
.inline-block { display: inline-block; }
.absolute { position: absolute; }
.relative { position: relative; }
.appearance-none { -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.cursor-pointer { cursor: pointer; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.font-medium { font-weight: 500; }

/* Custom slider styling - green thumbs */
.slider-white-thumb::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: #16a34a !important;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-white-thumb::-moz-range-thumb {
    -moz-appearance: none !important;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: #16a34a !important;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-white-thumb::-webkit-slider-track {
    background: #ffffff !important;
    height: 16px;
    border-radius: 8px;
    border: none;
}

.slider-white-thumb::-moz-range-track {
    background: #ffffff !important;
    height: 16px;
    border-radius: 8px;
    border: none;
}

/* Calculator input styling */
#calculator input[type="number"] {
    border: 2px solid #16a34a !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
    letter-spacing: 0.025em !important;
}

#calculator input[type="number"]:focus {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1) !important;
}

/* Slider value display styling */
#calculator .bg-white {
    border: 2px solid #16a34a !important;
}

/* Remove green outline from sliders */
input[type="range"].slider-white-thumb {
    background: #ffffff;
    border-radius: 8px;
    height: 16px;
    border: none !important;
}

/* Pound sign styling */
#calculator .absolute {
    color: #16a34a !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Dynamic content styling */
#dynamic-content {
    background-color: white;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

#dynamic-content p {
    margin-bottom: 1rem;
}

#dynamic-content p + p {
    margin-top: 1rem;
}

#dynamic-content h1 {
    margin-bottom: 2rem;
}

#dynamic-content h2 {
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

#dynamic-content ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

#dynamic-content li {
    margin-bottom: 0.5rem;
}

/* Media grid layout */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-items: center;
  align-items: center;
}

@media (max-width: 768px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Keep original green thumb styling for other sliders */
.slider-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: #16a34a;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-thumb::-moz-range-thumb {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: #16a34a;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-thumb::-webkit-slider-track {
    background: transparent;
}

.slider-thumb::-moz-range-track {
    background: transparent;
}