:root {
  --primary: #2d6a4f;
  --primary-light: #40916c;
  --secondary: #d97706;
  --dark: #1f2937;
  --light: #f3f4f6;
  --white: #ffffff;
  --gray: #9ca3af;
  --text: #374151;
  --radius: 8px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-fluid {
  width: 100%;
}

.mb-4 { margin-bottom: 1rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-prose { max-width: 65ch; }

/* Header & Nav */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 4rem 0;
  color: var(--white);
}

.bg-primary {
  background-color: var(--primary);
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  max-width: 60ch;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Calculator */
.calculator-section {
  margin-top: -3rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 10;
}

.calc-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.full-width {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

input, select {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--white);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.btn {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
}

.result-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  text-align: center;
}

.result-box.hidden {
  display: none;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.5rem 0;
}

.result-context {
  color: var(--text);
  font-size: 0.95rem;
}

/* Info Section */
.info-section {
  padding: 4rem 0;
}

.bg-light {
  background-color: var(--light);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.text-content h2 {
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.text-content p {
  margin-bottom: 1rem;
}

.text-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.text-content li {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  background-color: var(--dark);
  color: var(--white);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.site-footer p {
  color: var(--gray);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .form-grid, .content-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-bottom: 6rem;
  }
  .calculator-section {
    margin-top: -4rem;
  }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
