:root {
  --primary: #2d6a4f;
  --primary-light: #40916c;
  --primary-dark: #1b4332;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --text-main: #212529;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --accent: #52b788;
  --success: #d8f3dc;
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* Header */
.site-header {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}
.site-nav a {
  margin-left: 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
}
.site-nav a:hover {
  color: var(--primary);
}

/* Typography & Spacing */
h1, h2, h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
  margin-top: 2rem;
}
h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}
p {
  margin-bottom: 1.25rem;
}
.text-center {
  text-align: center;
}
.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
}

/* Sections */
.hero-section {
  padding: 4rem 0 2rem;
  background: linear-gradient(135deg, #e9ecef 0%, var(--success) 100%);
}
.tool-section {
  padding: 3rem 0;
}
.educational-section {
  padding: 2rem 0 4rem;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
}

/* Cards & Buttons */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.primary-btn {
  background-color: var(--primary);
  color: #fff;
}
.primary-btn:hover {
  background-color: var(--primary-light);
  text-decoration: none;
  transform: translateY(-2px);
}
.secondary-btn {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  margin-top: 1rem;
}
.secondary-btn:hover {
  background-color: var(--success);
  text-decoration: none;
}

/* Quiz Styles */
.hidden {
  display: none !important;
}
.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--border-color);
  border-radius: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background-color: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
}
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.option-btn {
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-main);
}
.option-btn:hover {
  border-color: var(--primary-light);
  background-color: #f1f8f5;
}
.result-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}
.result-box {
  background-color: var(--success);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  font-size: 1.2rem;
  font-weight: 500;
}
.disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}
.footer-nav {
  margin-top: 1rem;
}
.footer-nav a {
  color: #a3b18a;
  margin: 0 0.75rem;
  font-size: 0.9rem;
}
.footer-nav a:hover {
  color: #fff;
}

/* Responsive */
@media (min-width: 600px) {
  .options-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}


/* 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;
}
