/* Home aliases (MUST follow theme tokens) */
:root{
  --brand-bg: var(--bg);
  --brand-card: var(--surface);
  --brand-border: var(--border-2);

  /* critical fix */
  --brand-primary: var(--brand);

  --brand-muted: var(--text-muted);
  --brand-text: var(--text);
}


/* (اختیاری) اگر می‌خواهی در حالت دارک primary همون متن روشن باشد
   همین مپ کافی است چون --text در dark روشن می‌شود. */

/* Page base */
body{
  background-color: var(--brand-bg);
}

.home-page{
  max-width: 1100px;
}

/* Hero */
.hero-section{
  background: linear-gradient(
    135deg,
    var(--surface-2) 0%,
    var(--bg) 60%,
    var(--surface-2) 100%
  );
  border-radius: 24px;
  padding: 32px 28px;
  border: 1px solid var(--brand-border);
  margin-bottom: 40px;
}

.hero-title{
  font-size: 30px;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.hero-subtitle{
  font-size: 15px;
  color: var(--brand-muted);
  line-height: 1.8;
  max-width: 520px;
}

.hero-logo-wrapper{
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo{
  max-width: 260px;
  width: 100%;
  height: auto;
  /* توکنی */
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.12));
}

.hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-border);
  font-size: 11px;
  color: var(--brand-muted);
  margin-bottom: 10px;
}

.hero-cta-group{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.btn-brand-main{
  background-color: var(--brand-primary);
  color: #fff;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  border: none;
}

/* چون توکن hover نداری، یک fallback گذاشتم */
.btn-brand-main:hover{
  background-color: var(--brand);
  color: #fff;
}

.btn-brand-ghost{
  background-color: var(--brand-card-bg);
  color: var(--brand-primary);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  border: 1px solid var(--brand-border);
}

.btn-brand-ghost:hover{
  background-color: var(--surface-2);
  color: var(--brand-primary);
}

.hero-note{
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Feature pill */
.feature-pill{
  background-color: var(--brand-card-bg);
  border-radius: 16px;
  border: 1px solid var(--brand-border);
  padding: 18px 18px 14px;
  height: 100%;
  color: var(--text);
  box-shadow: var(--shadow-2);
}

.feature-pill h5{
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.feature-pill p{
  font-size: 13px;
  color: var(--brand-muted);
  margin-bottom: 0;
}

.section-title{
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 18px;
}

/* Plans section */
.plans-section{
  margin-top: 10px;
  margin-bottom: 40px;
}

.plan-card{
  border-radius: 18px;
  border: 1px solid var(--brand-border);
  background-color: var(--brand-card-bg);
  padding: 20px 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-2);
  color: var(--text);
}

.plan-name{
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 6px;
}

.plan-badge{
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--brand-border);
  color: var(--brand-muted);
  margin-bottom: 8px;
  background: var(--surface-2);
}

.plan-meta{
  font-size: 13px;
  color: var(--brand-muted);
  margin-bottom: 10px;
}

.plan-footer-text{
  font-size: 12px;
  color: var(--text-muted);
}


.faq-accordion .accordion-button{
  font-size: 14px;
  background: var(--brand-card-bg);
  color: var(--text);
  border-color: var(--brand-border);
}

.faq-accordion .accordion-body{
  font-size: 13px;
  background: var(--brand-card-bg);
  color: var(--brand-muted);
  border-color: var(--brand-border);
}

@media (max-width: 768px){
  .hero-section{ padding: 22px 18px; }
  .hero-title{ font-size: 24px; }
  .hero-logo{
    max-width: 200px;
    margin-top: 12px;
  }
}

/* Layout overrides (همان منطق خودت) */
.layout-wrapper{
  height: auto !important;
  min-height: calc(100vh - 80px);
  overflow: visible !important;
}

main{
  overflow-y: visible !important;
  height: auto !important;
}

/* =========================================
   Home page - Dark theme fixes (override)
   No changes to Light appearance
   ========================================= */

html[data-theme="dark"] .hero-section{
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 60%, var(--surface-2) 100%) !important;
  border-color: var(--border) !important;
}

/* Remove “outlined/bright” look of headings in dark */
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .section-title{
  color: var(--text) !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

/* Hero subtitle + links */
html[data-theme="dark"] .hero-subtitle{
  color: var(--text-muted) !important;
}
html[data-theme="dark"] .hero-subtitle a,
html[data-theme="dark"] .hero-subtitle a strong{
  color: var(--text) !important;
}

/* Badge */
html[data-theme="dark"] .hero-badge{
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
}

/* Cards/pills borders in dark */
html[data-theme="dark"] .feature-pill,
html[data-theme="dark"] .plan-card{
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

/* Buttons: keep same shape, fix contrast only in dark */
html[data-theme="dark"] .btn-brand-main{
  background: var(--text) !important;      /* light button */
  color: var(--brand) !important;         /* dark text */
  border: 1px solid transparent !important;
}
html[data-theme="dark"] .btn-brand-main:hover{
  background: var(--surface-2) !important;
  color: var(--text) !important;
}

html[data-theme="dark"] .btn-brand-ghost{
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
html[data-theme="dark"] .btn-brand-ghost:hover{
  background: var(--surface-2) !important;
  color: var(--text) !important;
}

/* Bootstrap link button on home */
html[data-theme="dark"] .hero-cta-group .btn.btn-link{
  color: var(--text-muted) !important;
}
html[data-theme="dark"] .hero-cta-group .btn.btn-link:hover{
  color: var(--text) !important;
}
/* =========================
   Buttons (force theme + prevent bootstrap overrides)
   ========================= */
.btn.btn-brand-main{
  background-color: var(--brand-primary) !important;
  color: #fff !important;
  border: none !important;
}

.btn.btn-brand-main:hover,
.btn.btn-brand-main:focus{
  background-color: var(--brand) !important;
  color: #fff !important;
}

.btn.btn-brand-ghost{
  background-color: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

.btn.btn-brand-ghost:hover,
.btn.btn-brand-ghost:focus{
  background-color: var(--surface-2) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
