html {
  scroll-behavior: smooth;
}

#top,
#calculator,
#generator,
#glossary,
#checklist,
#faq,
#about,
#privacy {
  scroll-margin-top: 76px;
}

body {
  font-family: system-ui, sans-serif;
  max-width: 580px;
  margin: 0 auto 60px;
  padding: 0 24px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f9f9f7;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0 -24px;
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .brand {
  font-weight: 700;
  color: #0a8754;
  font-size: 1.05em;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-header nav a {
  color: #444;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
}

.site-header nav a:hover {
  color: #0a8754;
}

.page-intro {
  margin-top: 40px;
}

h1 {
  color: #0a8754;
  font-size: 1.6em;
  margin-bottom: 4px;
}

.subtitle {
  color: #555;
  margin-top: 0;
  margin-bottom: 32px;
  font-size: 0.95em;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9em;
  margin-bottom: 6px;
  color: #333;
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 1em;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  background: white;
  color: #1a1a1a;
}

textarea {
  resize: vertical;
  min-height: 70px;
}

.field {
  margin-bottom: 20px;
}

button {
  margin-top: 8px;
  width: 100%;
  padding: 12px;
  background: #0a8754;
  color: white;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #087a4a;
}

#result {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.savings-amount {
  font-size: 2em;
  font-weight: 700;
  color: #0a8754;
  margin: 0;
}

.explanation {
  color: #555;
  font-size: 0.88em;
  margin-top: 8px;
}

.disclaimer {
  margin-top: 24px;
  font-size: 0.78em;
  color: #999;
  line-height: 1.5;
}

.checklist-section {
  margin-top: 40px;
}

.checklist-section h2 {
  color: #0a8754;
  font-size: 1.2em;
  margin-bottom: 4px;
}

.checklist-section .subtitle {
  margin-bottom: 20px;
}

.stage {
  background: white;
  border-radius: 10px;
  padding: 20px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 16px;
}

.stage h3 {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0a8754;
  margin: 0 0 12px 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #0a8754;
  cursor: pointer;
}

.checklist-item label {
  font-weight: 400;
  font-size: 0.95em;
  color: #1a1a1a;
  cursor: pointer;
  margin: 0;
}

.checklist-item.checked label {
  text-decoration: line-through;
  color: #aaa;
}

.tip-box {
  background: #f0faf5;
  border-left: 3px solid #0a8754;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #2a5a3f;
  margin-top: 6px;
  margin-left: 28px;
  display: none;
}

.tip-box a {
  color: #0a8754;
  font-weight: 600;
}

.progress-bar-wrap {
  background: #eee;
  border-radius: 20px;
  height: 8px;
  margin: 16px 0 6px;
}

.progress-bar-fill {
  background: #0a8754;
  height: 8px;
  border-radius: 20px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 0.82em;
  color: #777;
  margin-bottom: 24px;
}

.generator-section {
  margin-top: 40px;
}

.generator-section h2 {
  color: #0a8754;
  font-size: 1.2em;
  margin-bottom: 4px;
}

.generator-section .subtitle {
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

button:disabled {
  background: #9bcdb3;
  cursor: not-allowed;
}

button.secondary {
  background: white;
  color: #0a8754;
  border: 1px solid #0a8754;
  margin-top: 12px;
}

button.secondary:hover {
  background: #f0faf5;
}

.listing-result {
  background: #f0faf5;
  border-left: 3px solid #0a8754;
  border-radius: 4px;
  padding: 16px 18px;
  margin-top: 20px;
  white-space: pre-wrap;
  font-size: 0.95em;
  color: #1a1a1a;
  line-height: 1.6;
}

.error-text {
  color: #c0392b;
  font-size: 0.9em;
  margin-top: 12px;
}

.glossary-section {
  margin-top: 40px;
}

.glossary-section h2 {
  color: #0a8754;
  font-size: 1.2em;
  margin-bottom: 4px;
}

.glossary-section .subtitle {
  margin-bottom: 20px;
}

.glossary-search {
  margin-bottom: 4px;
}

.glossary-count {
  font-size: 0.82em;
  color: #777;
  margin: 8px 0 16px;
}

.glossary-item {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.glossary-item:last-child {
  border-bottom: none;
}

.glossary-term {
  font-weight: 700;
  font-size: 0.98em;
  margin: 0 0 4px 0;
}

.glossary-term a {
  color: #1a1a1a;
  text-decoration: none;
}

.glossary-term a:hover {
  color: #0a8754;
  text-decoration: underline;
}

.glossary-def {
  color: #555;
  font-size: 0.9em;
  margin: 0;
}

.glossary-empty {
  color: #777;
  font-size: 0.9em;
  padding: 12px 0;
}

.legal-section {
  margin-top: 40px;
}

.legal-section h2 {
  color: #0a8754;
  font-size: 1.2em;
  margin-bottom: 4px;
}

.legal-section .subtitle {
  margin-bottom: 20px;
}

.legal-section h3 {
  font-size: 0.95em;
  color: #1a1a1a;
  margin: 20px 0 6px;
}

.legal-section h3:first-child {
  margin-top: 0;
}

.legal-section p {
  font-size: 0.9em;
  color: #555;
  margin: 0 0 10px;
}

.legal-section a {
  color: #0a8754;
}

.faq-section {
  margin-top: 40px;
}

.faq-section h2 {
  color: #0a8754;
  font-size: 1.2em;
  margin-bottom: 4px;
}

.faq-section .subtitle {
  margin-bottom: 20px;
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 4px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 12px 0;
  font-weight: 600;
  font-size: 0.95em;
  color: #1a1a1a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: #0a8754;
  font-size: 1.2em;
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  font-size: 0.9em;
  color: #555;
  margin: 0 0 14px;
}

.site-footer {
  margin-top: 48px;
  padding: 28px 0 0;
  border-top: 1px solid #e2e2e2;
  text-align: center;
}

.site-footer .footer-links {
  font-size: 0.85em;
  margin-bottom: 14px;
}

.site-footer .footer-links a {
  color: #555;
  text-decoration: none;
  margin: 0 10px;
  white-space: nowrap;
}

.site-footer .footer-links a:hover {
  color: #0a8754;
  text-decoration: underline;
}

.site-footer .footer-disclaimer {
  font-size: 0.78em;
  color: #999;
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto 14px;
}

.site-footer .footer-copyright {
  font-size: 0.8em;
  color: #aaa;
  margin: 0;
  padding-bottom: 24px;
}

.term-page {
  margin-top: 40px;
}

.term-breadcrumb {
  margin-bottom: 20px;
}

.term-breadcrumb a {
  color: #0a8754;
  text-decoration: none;
  font-size: 0.9em;
}

.term-breadcrumb a:hover {
  text-decoration: underline;
}

.term-title {
  color: #0a8754;
  font-size: 1.6em;
  margin-bottom: 12px;
}

.term-definition {
  color: #333;
  font-size: 1.05em;
  margin-bottom: 32px;
}

.term-cta {
  text-align: center;
}

.term-cta p {
  color: #555;
  font-size: 0.95em;
  margin: 0 0 16px;
}

.button-link {
  display: inline-block;
  background: #0a8754;
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
}

.button-link:hover {
  background: #087a4a;
}
