* {
  box-sizing: border-box;
}

body {
  background: #f5f7fa;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 30px 15px;
  color: #111827;
}

/* HOME CALCULATOR */

.card {
  background: white;
  max-width: 560px;
  margin: auto;
  padding: 30px;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
  border: 1px solid #e5e7eb;
}

.badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 14px;
}

h1 {
  font-size: 34px;
  margin: 0 0 10px;
  line-height: 1.1;
}

.intro {
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 22px;
}

label {
  display: block;
  margin-top: 16px;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 15px;
  margin-top: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 16px;
}

.quick-buttons {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

button {
  padding: 14px;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

.quick-buttons button {
  background: #374151;
}

.helper-text {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin: 14px 0 10px;
}

.main-button {
  width: 100%;
  background: #16a34a;
  font-size: 18px;
}

.result-box {
  margin-top: 24px;
  background: #ecfdf5;
  color: #166534;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  font-size: 20px;
  line-height: 1.6;
}

.result-box strong {
  font-size: 36px;
}

.meaning-box,
.comparison-box,
.growth-table,
.chart-section {
  display: none;
  margin-top: 16px;
  background: #f9fafb;
  padding: 18px;
  border-radius: 14px;
  line-height: 1.5;
}

.comparison-box {
  background: #fff7ed;
  color: #9a3412;
}

canvas {
  width: 100%;
  height: 240px;
}

.growth-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  padding: 9px 0;
}

.share-button {
  width: 100%;
  margin-top: 18px;
  background: #2563eb;
}

.copy-button {
  width: 100%;
  margin-top: 10px;
  background: #111827;
}

/* FEATURED ARTICLE CARDS */

.featured-articles {
  margin-top: 28px;
  background: #f8fafc;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
}

.featured-header {
  text-align: center;
  margin-bottom: 22px;
}

.section-label {
  display: inline-block;
  color: #166534;
  background: #dcfce7;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.featured-header h2 {
  margin: 0 0 10px;
  font-size: 26px;
  color: #111827;
}

.featured-header p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.article-card-link {
  display: block;
  background: white;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #111827;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.article-card-link:visited {
  color: #111827;
}

.article-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
}

.article-card-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.article-card-category {
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.article-card-link h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  color: #111827;
}

.article-card-link p {
  color: #4b5563;
  line-height: 1.5;
  margin: 0 0 12px;
  font-size: 15px;
}

.article-card-link span {
  color: #2563eb;
  font-weight: bold;
}

/* ARTICLE PAGES */

.article-shell,
.premium-article {
  max-width: 900px;
  margin: 40px auto;
}

.article-hero {
  background: linear-gradient(135deg, #0f172a, #14532d);
  color: white;
  padding: 50px 40px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.16);
}

.article-hero h1 {
  color: white;
  font-size: 42px;
  line-height: 1.1;
  margin: 15px 0;
}

.article-hero p {
  color: #d1fae5;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 0;
}

.hero-back-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.article-kicker-light {
  color: #86efac;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  margin-top: 28px;
}

.article-content {
  background: white;
  padding: 40px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.10);
  border: 1px solid #e5e7eb;
  border-top: none;
}

.article-section {
  margin-bottom: 40px;
}

.article-section h2 {
  color: #111827;
  font-size: 30px;
  margin-bottom: 12px;
}

.article-section p {
  line-height: 1.8;
  color: #4b5563;
  font-size: 18px;
}

.key-takeaways {
  background: #f8fafc;
  padding: 25px;
  border-radius: 16px;
  border-left: 5px solid #16a34a;
  margin-bottom: 35px;
}

.key-takeaways h2 {
  margin-top: 0;
}

.key-takeaways li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-callout,
.takeaway-box {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  padding: 25px;
  border-radius: 16px;
  margin: 35px 0;
  color: #166534;
}

.article-callout.gold {
  background: linear-gradient(135deg, #fff7ed, #ecfdf5);
  border: 1px solid #fed7aa;
  color: #7c2d12;
}

.premium-grid,
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.premium-card,
.pros-cons div {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 22px;
  border-radius: 16px;
}

.article-footer-cta {
  background: linear-gradient(135deg, #111827, #14532d);
  color: white;
  padding: 35px;
  border-radius: 20px;
  text-align: center;
  margin-top: 40px;
}

.article-footer-cta h2,
.article-footer-cta p {
  color: white;
}

.article-button {
  display: inline-block;
  margin-top: 15px;
  background: #16a34a;
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}

.article-disclaimer,
.disclaimer {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-top: 18px;
  line-height: 1.5;
}

.comparison-table {
  margin-top: 34px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-row div {
  padding: 16px;
  font-size: 15px;
  line-height: 1.5;
}

.comparison-row.header {
  background: #f9fafb;
  font-weight: bold;
  border-radius: 12px 12px 0 0;
}

/* DESKTOP CARDS */

@media (min-width: 800px) {
  .article-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-card-link:first-child {
    grid-column: span 2;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  body {
    padding: 14px;
  }

  .card {
    padding: 22px;
    border-radius: 18px;
  }

  h1 {
    font-size: 28px;
  }

  .result-box {
    font-size: 18px;
  }

  .result-box strong {
    font-size: 32px;
  }

  .article-shell,
  .premium-article {
    margin: 20px auto;
  }

  .article-hero {
    padding: 30px 25px;
  }

  .article-hero h1 {
    font-size: 32px;
  }

  .article-hero p {
    font-size: 18px;
  }

  .article-content {
    padding: 25px;
  }

  .premium-grid,
  .pros-cons {
    grid-template-columns: 1fr;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-row.header {
    display: none;
  }
}