/* Grantfield — Global Styles */
:root {
  --green-900: #0f3d0f;
  --green-800: #1a5d1a;
  --green-700: #1e6f1e;
  --green-600: #2d8a2d;
  --green-500: #3da33d;
  --green-100: #e8f5e8;
  --green-50: #f0faf0;
  --earth-700: #6b4c2a;
  --earth-600: #8b6914;
  --earth-500: #a07d2e;
  --earth-100: #fdf6e3;
  --earth-50: #fffcf5;
  --cream: #fefdf8;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --red-500: #ef4444;
  --red-100: #fee2e2;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 { color: var(--gray-900); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { color: var(--gray-600); }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-800); text-decoration: underline; }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: var(--white); }
.section-green { background: var(--green-800); color: white; }
.section-green h2, .section-green h3, .section-green p { color: white; }

/* Navigation */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--green-800);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--gray-600); font-size: .95rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--green-700); text-decoration: none; }
.nav-links a.btn-primary { color: white; }
.nav-links a.btn-primary:hover { color: white; }
.nav-links a.active { color: var(--green-800); font-weight: 600; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile-toggle svg { width: 24px; height: 24px; stroke: var(--gray-700); }

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--green-700); color: white; }
.btn-primary:hover { background: var(--green-800); color: white; }
.btn-secondary { background: var(--white); color: var(--green-800); border: 2px solid var(--green-700); }
.btn-secondary:hover { background: var(--green-50); color: var(--green-800); }
.btn-sm { padding: 8px 16px; font-size: .875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-white { background: white; color: var(--green-800); }
.btn-white:hover { background: var(--green-50); color: var(--green-800); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
}
.card:hover { box-shadow: var(--shadow-md); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--earth-50) 100%);
}
.hero h1 { margin-bottom: 16px; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 32px; color: var(--gray-600); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Badges / Status */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.badge-green { background: var(--green-100); color: var(--green-800); }
.badge-amber { background: var(--amber-100); color: #92400e; }
.badge-red { background: var(--red-100); color: #991b1b; }
.badge-blue { background: var(--blue-100); color: #1e40af; }

/* Scheme cards */
.scheme-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 2px solid var(--gray-200);
  transition: all .15s;
}
.scheme-card:hover { box-shadow: var(--shadow-md); }
.scheme-card.eligible { border-color: var(--green-600); }
.scheme-card.likely { border-color: var(--amber-500); }
.scheme-card.unlikely { border-color: var(--red-500); border-style: dashed; }
.scheme-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.scheme-card h3 { font-size: 1.1rem; margin: 0; }
.scheme-card .scheme-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.scheme-card .scheme-payment { font-size: 1.5rem; font-weight: 800; color: var(--green-800); margin: 12px 0 4px; }
.scheme-card .scheme-rate { font-size: .85rem; color: var(--gray-500); }
.scheme-card .scheme-desc { font-size: .9rem; color: var(--gray-600); margin: 12px 0; }
.scheme-card .scheme-reasons { list-style: none; padding: 0; margin: 12px 0; }
.scheme-card .scheme-reasons li { font-size: .85rem; color: var(--gray-500); padding: 2px 0; }
.scheme-card .scheme-reasons li::before { content: '✓ '; color: var(--green-600); font-weight: bold; }
.scheme-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-200); }

/* Score bar */
.score-bar { width: 100%; height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; margin: 8px 0; }
.score-bar-fill { height: 100%; border-radius: 3px; transition: width .4s ease; }
.score-bar-fill.eligible { background: var(--green-600); }
.score-bar-fill.likely { background: var(--amber-500); }
.score-bar-fill.unlikely { background: var(--red-500); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(29,111,29,.1); }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-group label {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-weight: 500; font-size: .9rem; cursor: pointer; transition: all .15s;
}
.checkbox-group label:has(input:checked) { background: var(--green-100); border-color: var(--green-600); color: var(--green-800); }
.checkbox-group input[type="checkbox"] { width: auto; accent-color: var(--green-700); }

/* Pricing */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.pricing-card.featured { border-color: var(--green-600); position: relative; }
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-700);
  color: white;
  padding: 4px 16px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--gray-900); margin: 16px 0 4px; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--gray-500); }
.pricing-features { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.pricing-features li { padding: 8px 0; font-size: .9rem; color: var(--gray-600); border-bottom: 1px solid var(--gray-100); }
.pricing-features li::before { content: '✓ '; color: var(--green-600); font-weight: bold; }
.pricing-features li.disabled { color: var(--gray-400); }
.pricing-features li.disabled::before { content: '— '; color: var(--gray-300); }

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 0 24px;
}
.footer a { color: var(--gray-300); }
.footer a:hover { color: white; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: white; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer li a { font-size: .9rem; }
.footer-bottom { border-top: 1px solid var(--gray-700); padding-top: 24px; font-size: .85rem; text-align: center; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* Scheme filter bar */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-bar select, .filter-bar input {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  background: var(--white);
}

/* Dashboard */
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--green-800); }
.stat-card .stat-label { font-size: .85rem; color: var(--gray-500); margin-top: 4px; }

/* Locked overlay */
.locked {
  position: relative;
  overflow: hidden;
}
.locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--cream) 90%);
  pointer-events: none;
}
.locked-cta {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  background: var(--cream);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  margin-top: -60px;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 20px 0; }
.faq-item summary { font-weight: 600; font-size: 1rem; cursor: pointer; color: var(--gray-800); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--gray-400); transition: transform .2s; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 12px; font-size: .95rem; }

/* Urgent banner */
.urgent-banner {
  background: linear-gradient(90deg, var(--amber-500), #d97706);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-weight: 600;
  font-size: .9rem;
}
.urgent-banner a { color: white; text-decoration: underline; }

/* Loading spinner */
.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid var(--gray-300); border-top-color: var(--green-700); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Utils */
.text-center { text-align: center; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.hidden { display: none !important; }
