/* ============================================================
   امرتات استور — Features page (امکانات کامل)
   Uses :root tokens + .page-head from styles.css
   ============================================================ */

/* ---- Feature group cards ---- */
.fgroups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---- "Included in all plans" header chips ---- */
.section-head .hl { color: var(--primary); }
.incl-plans { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.incl-label { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--text); }
.incl-label i { color: var(--green); font-size: 19px; }
.incl-chip { font-size: 13.5px; font-weight: 600; color: var(--primary); background: var(--primary-soft); border: 1px solid var(--border-strong); padding: 6px 14px; border-radius: 100px; }
.fgroup {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 26px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  display: flex; flex-direction: column;
}
.fgroup:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.fgroup-ico { width: 56px; height: 56px; border-radius: 15px; background: var(--primary-soft); display: grid; place-items: center; margin-bottom: 18px; }
.fgroup-ico i { font-size: 32px; color: var(--primary); }
.fgroup h3 { font-size: 18px; margin-bottom: 16px; }
.fgroup ul { display: flex; flex-direction: column; gap: 11px; }
.fgroup li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); line-height: 1.6; }
.fgroup li i { font-size: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* ---- Support strip ---- */
.support-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px;
}
.support-item { display: flex; align-items: center; gap: 14px; }
.support-item .si-ico { width: 48px; height: 48px; border-radius: 13px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; flex-shrink: 0; }
.support-item .si-ico i { font-size: 26px; color: var(--primary); }
.support-item .si-title { font-weight: 700; font-size: 15px; }
.support-item .si-sub { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }

/* ---- Comparison table ---- */
.cmp-wrap { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: visible; box-shadow: var(--shadow-sm); background: #fff; position: relative; margin-top: 20px; }
.cmp { width: 100%; border-collapse: collapse; background: #fff; }
.cmp th, .cmp td { padding: 15px 15px; text-align: center; border-bottom: 1px solid var(--border); }
.cmp thead th { background: var(--surface); border-bottom: 2px solid var(--border-strong); padding-top: 26px; padding-bottom: 22px; vertical-align: top; position: relative; }
.cmp thead th:first-child { border-top-right-radius: var(--r-lg); }
.cmp thead th:last-child { border-top-left-radius: var(--r-lg); }
.cmp thead th .th-name { display: block; font-size: 16px; font-weight: 700; color: var(--text); }
.cmp thead th .th-price { display: block; font-size: 14px; font-weight: 800; color: var(--primary); margin-top: 6px; letter-spacing: -0.01em; }
.cmp thead th .th-price small { font-size: 11px; font-weight: 600; color: var(--text-2); }
.cmp thead th.feat-col { text-align: right; width: 34%; color: var(--text-2); font-weight: 600; font-size: 14px; vertical-align: middle; }
.cmp thead th:not(.feat-col) { width: 21%; }
.cmp thead th.featured-col { padding-top: 26px; background: var(--primary-soft); }
.cmp thead th.featured-col .th-name { color: var(--primary); }

.cmp tbody th { text-align: right; font-weight: 600; font-size: 14.5px; color: var(--text); background: #fff; }
.cmp tbody th i { color: var(--text-3); font-size: 16px; margin-inline-end: 7px; vertical-align: -2px; }
.cmp tbody th small { display: inline; font-size: 12.5px; color: var(--text-2); font-weight: normal; margin-inline-start: 3px; }
.cmp td { font-size: 14.5px; color: var(--text); font-weight: 500; }
.cmp td small { display: inline; font-size: 12px; color: var(--text-2); margin-inline-start: 3px; font-weight: 400; }
.cmp .featured-cell { background: var(--primary-soft); }
.cmp td.yes i { color: var(--green); font-size: 21px; vertical-align: -3px; }
.cmp td.no { color: var(--text-3); }
.cmp .off, .cmp-legend .off { color: var(--green); font-weight: 700; font-size: 13px; background: rgba(22,163,74,0.1); padding: 3px 9px; border-radius: 7px; }

/* anchor row — all 200+ base features included everywhere */
.cmp tr.anchor-row th { background: rgba(22,163,74,0.06); font-weight: 700; font-size: 15px; }
.cmp tr.anchor-row th i { color: var(--green); font-size: 19px; }
.cmp tr.anchor-row td { background: rgba(22,163,74,0.06); }
.cmp tr.anchor-row td.featured-cell { background: rgba(22,163,74,0.12); }
.cmp tr.anchor-row td .yes-lab { display: block; font-size: 11px; font-weight: 700; color: var(--green); margin-top: 2px; }

.cmp tr.price-row td, .cmp tr.price-row th { padding-block: 20px; }
.cmp tr.price-row .amount { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; display: block; }
.cmp tr.price-row .amount .unit { font-size: 12px; font-weight: 600; color: var(--text-2); }
.cmp tr.price-row .orig { font-size: 12.5px; color: var(--text-3); text-decoration: line-through; }
.cmp tr.cta-row td, .cmp tr.cta-row th { border-bottom: none; padding-top: 22px; padding-bottom: 26px; }
.cmp .btn { width: 100%; }
.cmp-note { display: flex; align-items: center; gap: 9px; justify-content: center; margin-top: 18px; font-size: 13.5px; color: var(--text-2); }
.cmp-note i { font-size: 18px; color: var(--primary); }

/* ---- All-features accordion (reuses .faq-item styles) ---- */
.allfeat .faq-q { font-size: 16px; }
.allfeat .faq-q .grp-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--primary-soft); display: grid; place-items: center; color: var(--primary); margin-inline-end: 12px; }
.allfeat .faq-q .grp-ico i { font-size: 19px; }
.allfeat .faq-q .q-left { display: flex; align-items: center; }
.allfeat .faq-q .q-count { font-size: 12.5px; color: var(--text-3); font-weight: 500; margin-inline-start: 10px; }
.allfeat .faq-a-inner { padding-top: 4px; }
.allfeat .feat-list { columns: 2; column-gap: 34px; }
.allfeat .feat-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 11px; break-inside: avoid; }
.allfeat .feat-list li i { font-size: 16px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .fgroups { grid-template-columns: repeat(2, 1fr); }
  .support-strip { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .cmp-wrap { overflow-x: auto; }
  .cmp { min-width: 620px; }
  .allfeat .feat-list { columns: 1; }
}
@media (max-width: 560px) {
  .fgroups { grid-template-columns: 1fr; }
  .support-strip { grid-template-columns: 1fr; }
}

@media (min-width: 941px) {
  .fgroup:last-child {
    grid-column: span 2;
  }
}

.cmp td.add-on i {
  color: var(--text-3);
  font-size: 21px;
  vertical-align: -3px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.cmp td.add-on i:hover {
  color: var(--primary);
}

/* ---- Comparison Table Legend ---- */
.cmp-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r);
  padding: 16px 24px;
  margin-top: 20px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}
.legend-item i.text-green {
  color: var(--green);
  font-size: 18px;
}
.legend-item i.text-gray {
  color: var(--text-3);
  font-size: 18px;
}
.legend-item i.text-primary {
  color: var(--primary);
  font-size: 18px;
}


/* ---- Comparison Table Category Headers ---- */
.cmp tr.cat-head th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  font-size: 14.5px;
  text-align: right;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-strong);
  border-top: 1px solid var(--border-strong);
}
