/* ======================== Homepage Content Section ======================== */
.hp-content-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 5rem 0;
  width: 100%;
}

.hp-content-container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ======================== Sticky TOC Dropdown ======================== */
.hp-toc-dropdown {
  position: sticky;
  top: 80px;
  z-index: 50;
  margin-bottom: 2rem;
}

.hp-toc-details {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.hp-toc-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s ease;
}

.hp-toc-summary::-webkit-details-marker {
  display: none;
}

.hp-toc-summary:hover {
  background: #f8fafc;
}

.hp-toc-icon {
  font-size: 1.1rem;
}

.hp-toc-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
}

.hp-toc-chevron {
  color: var(--text-color-light2);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.hp-toc-details[open] .hp-toc-chevron {
  transform: rotate(180deg);
}

.hp-toc-list {
  padding: 0.5rem 1.5rem 1rem;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.hp-toc-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-color-light2);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.hp-toc-link:hover {
  color: var(--primary-color);
  background: #f0f7ff;
  border-left-color: var(--primary-color);
}

/* ======================== Two Column Grid ======================== */
.hp-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.hp-content-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ======================== Content Cards (No Accordions - All Open) ======================== */
.hp-content-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.hp-content-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hp-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.hp-card-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hp-card-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.hp-card-body {
  padding: 1.5rem;
}

.hp-card-body p {
  font-size: var(--font-p-body);
  color: var(--text-color-light2);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.hp-card-body p:last-child {
  margin-bottom: 0;
}

.hp-card-body ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.hp-card-body li {
  font-size: var(--font-p-body);
  color: var(--text-color-light2);
  padding: 0.4rem 0;
  line-height: 1.5;
}

/* List Title */
.hp-list-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.hp-content-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.hp-content-list li {
  font-size: 0.9rem;
  color: var(--text-color-light2);
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.hp-content-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 600;
}

/* ======================== Highlight Box ======================== */
.hp-highlight-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
  border-left: 4px solid var(--primary-color);
  padding: 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 1rem;
}

.hp-highlight-box h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.75rem 0;
}

.hp-highlight-box ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.hp-highlight-box li {
  padding: 0.3rem 0;
  font-size: 0.85rem;
  color: var(--text-color-light2);
}

/* ======================== Service Cards ======================== */
.hp-service-card {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.hp-service-card:last-child {
  margin-bottom: 0;
}

.hp-service-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.5rem 0;
}

.hp-service-card p {
  font-size: var(--font-p-small);
  margin-bottom: 0.75rem;
}

.hp-service-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.hp-service-card li {
  font-size: 0.85rem;
  padding: 0.3rem 0;
}

/* ======================== CTA Inline ======================== */
.hp-cta-inline {
  background: var(--primary-color-hover);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 1rem;
}

.hp-cta-inline span {
  font-size: 0.9rem;
  color: #1a1a1a;
}

/* ======================== Feature Grid ======================== */
.hp-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hp-feature-item {
  background: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.hp-feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.hp-feature-item h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.35rem 0;
}

.hp-feature-item p {
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.5;
  color: var(--text-color-light2);
}

/* ======================== Trust Box ======================== */
.hp-trust-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.hp-trust-box p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-color);
}

.hp-trust-box a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}

.hp-trust-box a:hover {
  opacity: 0.75;
}

/* ======================== AfterList Styled Block ======================== */
.hp-after-list {
  margin-top: 1.25rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
  border-left: 4px solid #056CCA;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.9rem 1.1rem;
}

.hp-after-list p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-color);
  line-height: 1.6;
}

.hp-after-list a {
  color: #056CCA;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(5, 108, 202, 0.4);
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.hp-after-list a:hover {
  color: #0455a1;
  border-bottom-color: #0455a1;
}

/* ======================== AfterList / Post-Highlight Link Para ======================== */
.hp-card-body .hp-after-highlight {
  margin-top: 1rem;
  margin-bottom: 0;
}

.hp-card-body p a,
.hp-card-body .hp-after-highlight a {
  color: #056CCA;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(5, 108, 202, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hp-card-body p a:hover,
.hp-card-body .hp-after-highlight a:hover {
  color: #0455a1;
  border-bottom-color: #0455a1;
}

/* ======================== Steps ======================== */
.hp-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hp-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.hp-step-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #056CCA 0%, #0455a1 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-p-body);
  flex-shrink: 0;
}

.hp-step-content h5 {
  font-size: var(--font-p-heading5);
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.25rem 0;
}

.hp-step-content p {
  font-size: var(--font-p-body);
  margin: 0;
  color: var(--text-color-light2);
}

/* ======================== Scenarios ======================== */
.hp-scenario {
  background: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--primary-color);
}

.hp-scenario:last-child {
  margin-bottom: 0;
}

.hp-scenario h5 {
  font-size: var(--font-p-heading5);
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.35rem 0;
}

.hp-scenario p {
  font-size: var(--font-p-body);
  margin: 0;
  color: var(--text-color-light2);
}

/* ======================== Guarantee Grid ======================== */
.hp-guarantee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hp-guarantee-item {
  text-align: center;
  padding: 1.25rem 1rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.hp-guarantee-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.hp-guarantee-item h5 {
  font-size: var(--font-p-body);
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.35rem 0;
}

.hp-guarantee-item p {
  font-size: var(--font-p-small);
  margin: 0;
  line-height: 1.4;
  color: var(--text-color-light2);
}

/* ======================== Audience Cards ======================== */
.hp-audience-card {
  background: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
}

.hp-audience-card:last-child {
  margin-bottom: 0;
}

.hp-audience-card h5 {
  font-size: var(--font-p-heading5);
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.35rem 0;
}

.hp-audience-card p {
  font-size: var(--font-p-body);
  margin: 0;
  color: var(--text-color-light2);
}

/* ======================== Comparison Table ======================== */
.hp-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.hp-compare-table th,
.hp-compare-table td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.hp-compare-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text-color);
}

.hp-compare-table th:nth-child(2) {
  color: #16a34a;
  /* Darkened from #22c55e for WCAG contrast */
}

.hp-compare-table th:nth-child(3) {
  color: #dc2626;
  /* Darkened from #ef4444 for WCAG contrast */
}

.hp-compare-table td:nth-child(2) {
  color: #16a34a;
  /* Darkened from #22c55e for WCAG contrast */
  font-weight: 500;
}

.hp-compare-table td:nth-child(3) {
  color: #64748b;
  /* Darkened from #94a3b8 for WCAG contrast */
}

/* ======================== Inline Component Wrapper ======================== */
.hp-inline-component {
  margin-bottom: 0;
}

/* ======================== Responsive ======================== */
@media (max-width: 1024px) {
  .hp-content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hp-toc-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hp-content-section {
    padding: 3rem 0;
  }

  .hp-toc-dropdown {
    position: relative;
    top: 0;
  }

  .hp-content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hp-feature-grid,
  .hp-guarantee-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hp-card-header {
    padding: 1rem 1.25rem;
  }

  .hp-card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  /* Header responsive styles use global .title-navigator from global.css */

  .hp-card-title {
    font-size: 0.9rem;
  }

  .hp-card-icon {
    font-size: 1.1rem;
  }

  .hp-toc-summary {
    padding: 0.875rem 1rem;
  }

  .hp-toc-title {
    font-size: 0.85rem;
  }
}