/* ========== Homepage — Premium Layout ========== */
.home-page {
  background: #f7f9f8;
}

.home-main {
  padding-bottom: 3rem;
}

/* Hero */
.home-hero {
  background: linear-gradient(145deg, #0d3d2a 0%, #198754 55%, #1fa866 100%);
  border-radius: 16px;
  padding: 2.75rem 2rem 2.5rem;
  margin-bottom: 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(13, 61, 42, 0.22);
}

.home-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero > * {
  position: relative;
  z-index: 1;
}

.home-hero .hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.home-hero h1 {
  color: #fff;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  max-width: 720px;
}

.home-hero .hero-lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 1.75rem;
}

/* Bill tool card in hero */
.hero-bill-card {
  background: #fff;
  border-radius: 14px;
  padding: 0;
  margin: 0 auto;
  max-width: 520px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border: none;
  overflow: hidden;
}

.hero-bill-card .card-header {
  background: linear-gradient(to right, #f8faf9, #eef5f1);
  border-bottom: 1px solid #e2ebe6;
  padding: 1rem 1.25rem;
  text-align: center;
}

.hero-bill-card .card-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a3328;
  margin: 0;
}

.hero-bill-card .bill-form {
  max-width: 100%;
  margin: 0;
  padding: 1.25rem 1.5rem 1.5rem;
}

.hero-bill-card .bill-form input {
  border: 2px solid #e5ebe8;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-bill-card .bill-form input:focus {
  outline: none;
  border-color: #198754;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15);
}

.hero-bill-card .bill-form input.error {
  border-color: #dc3545;
}

.hero-bill-card .bill-form button {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  padding: 14px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(25, 135, 84, 0.35);
}

.hero-bill-card .bill-form button:hover {
  background: #146c43;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(25, 135, 84, 0.4);
}

.hero-bill-card .bill-form button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.800rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.hero-actions a:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* Sections */
.home-section {
  margin-bottom: 2.75rem;
}

.home-section:last-of-type {
  margin-bottom: 0;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #198754;
  margin-bottom: 0.5rem;
}

.home-section h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: #1a2e24;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #e8f0eb;
}

.home-section h3 {
  font-size: 1.2rem;
  color: #243d32;
  margin: 1.75rem 0 0.65rem;
}

.home-section h4 {
  font-size: 1.05rem;
  color: #2d4a3c;
  margin: 1.25rem 0 0.5rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-card {
  background: #fff;
  border: 1px solid #e6ece9;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(25, 135, 84, 0.1);
  transform: translateY(-2px);
}

.feature-card::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #e8f5ee;
  color: #198754;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #3d5248;
  line-height: 1.55;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.step-card {
  background: #fff;
  border: 1px solid #e6ece9;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #198754, #157347);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  margin-bottom: 0.85rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #4a5f54;
}

/* Info callout */
.info-callout {
  background: linear-gradient(to right, #eef7f1, #f5faf7);
  border-left: 4px solid #198754;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  color: #2d4a3c;
}

.info-callout strong {
  color: #157347 !important;
}

/* Tables — homepage */
.home-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 12px;
  border: 1px solid #e2ebe6;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.home-table-wrap table {
  margin: 0;
  border: none;
  font-size: 0.92rem;
}

.home-table-wrap th {
  background: linear-gradient(to bottom, #1a7a4a, #198754);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.home-table-wrap td {
  padding: 0.75rem 1rem;
  border-color: #eaeaea;
  vertical-align: top;
}

.home-table-wrap tr:nth-child(even) {
  background: #f9fbfa;
}

.home-table-wrap tr:hover {
  background: #eef5f1;
}

/* Two-column content blocks */
.content-block {
  background: #fff;
  border: 1px solid #e6ece9;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 1.25rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.content-block ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.content-block h3 {
  margin-top: 0;
}

.content-block p {
  margin-bottom: 0;
}

/* FAQ accordion */
.faq-list {
  margin-top: 1rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #e6ece9;
  border-radius: 10px;
  margin-bottom: 0.65rem;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: #1a2e24;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: #198754;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background: #f5faf7;
}

.faq-item .faq-answer {
  padding: 0 1.25rem 1rem;
  color: #4a5f54;
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item .faq-answer p {
  margin: 0;
}

/* About / disclaimer */
.about-box {
  background: #fff;
  border: 1px solid #e6ece9;
  border-radius: 12px;
  padding: 1.75rem;
  margin-top: 2rem;
}

.about-box h2 {
  border: none;
  padding: 0;
  margin-bottom: 0.75rem;
}

.page-meta {
  text-align: center;
  font-size: 0.82rem;
  color: #7a8f84;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2ebe6;
}

.home-section img {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Override global ol inside home for steps section intro list */
.home-section .plain-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.home-section .plain-list li {
  padding-left: 0;
  margin-bottom: 0.5rem;
}

.home-section .plain-list li::before {
  display: none;
}

.home-section .plain-list li:hover {
  color: inherit;
}

@media (max-width: 768px) {
  .home-hero {
    padding: 2rem 1.25rem;
    border-radius: 12px;
  }

  .hero-bill-card .bill-form {
    padding: 1rem 1.15rem 1.25rem;
  }

  .content-block {
    padding: 1.15rem;
  }
}
