/* =========================
   BASE RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

/* =========================
   LAYOUT
========================= */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  background: radial-gradient(
      circle at top left,
      rgba(255,255,255,0.18),
      transparent 40%
    ),
    linear-gradient(135deg, #1e40af, #2563eb, #0284c7);
  color: white;
  padding: 60px 40px;
  border-radius: 22px;
  margin-bottom: 50px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(30,64,175,0.35);
}

/* Decorative blur shapes */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero::before {
  background: #60a5fa;
  top: -60px;
  left: -60px;
}

.hero::after {
  background: #22d3ee;
  bottom: -80px;
  right: -80px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero p {
  max-width: 750px;
  font-size: 1.15rem;
  opacity: 0.95;
  line-height: 1.7;
}

/* Optional highlight text */
.hero strong {
  color: #fde68a;
}

/* =========================
   CONTENT SECTIONS
========================= */
.content {
  background: white;
  padding: 25px 30px;
  border-radius: 14px;
  margin-bottom: 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.content h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #1e40af;
}

.content p {
  margin-bottom: 12px;
  color: #444;
}

.content ul {
  margin-left: 20px;
}

.content li {
  margin-bottom: 8px;
}

/* =========================
   CARD (CALCULATOR / RESULT)
========================= */
.card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.card h2 {
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: #111827;
}

/* =========================
   GRID (INPUTS)
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: block;
}

input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
}

input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}

/* =========================
   BUTTON
========================= */
button {
  margin-top: 25px;
  background: #2563eb;
  color: white;
  border: none;
  padding: 14px 24px;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #1e40af;
}

/* =========================
   RESULT TEXT
========================= */
.result {
  background: #f1f5f9;
  padding: 20px;
  border-radius: 12px;
  font-size: 1rem;
  color: #111827;
}

/* =========================
   CHART
========================= */
canvas {
  margin-top: 20px;
  max-width: 100%;
}

/* Smaller, readable text for long content */
.small-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #4b5563;
}

.small-text h2 {
  margin-bottom: 14px;
}


/* =========================
   FAQ
========================= */
.faq details {
  background: #f9fafb;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.faq summary {
  font-weight: 600;
  color: #1f2937;
}

.faq p {
  margin-top: 10px;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #111827;
  color: #d1d5db;
  padding: 25px;
  border-radius: 16px;
  margin-top: 40px;
  text-align: center;
}

footer a {
  color: #93c5fd;
  text-decoration: none;
  margin: 0 6px;
}

footer a:hover {
  text-decoration: underline;
}

.footer-note {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* =========================
   NOTES / DISCLAIMERS
========================= */
.note {
  font-size: 0.9rem;
  color: #6b7280;
}

/* =========================
   MOBILE OPTIMIZATION
========================= */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .card,
  .content {
    padding: 20px;
  }

  button {
    width: 100%;
  }
}
