/* ==========================================================================
   MOSAED TECH (مُساعد) - Ready-made systems: /systems and /systems/<slug>
   Builds on styles.css (panels, cards, FAQ) and blog.css (breadcrumbs,
   article cards). Pages are generated by tools/build.mjs.
   Version: 6.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.product-hero {
  padding-bottom: 88px;
}

.product-hero .breadcrumbs ol {
  justify-content: center;
}

.product-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.product-hero-note svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--success);
}

.product-facts {
  margin-top: 40px;
}

.product-facts .stat-value {
  font-size: 44px;
}

/* --------------------------------------------------------------------------
   2. About (logo plate + summary)
   -------------------------------------------------------------------------- */
.product-visual {
  aspect-ratio: 5 / 4;
  margin: 0;
  border-radius: 28px;
}

.product-about .check-list {
  margin-top: 24px;
}

.product-audience {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.product-audience-label {
  margin-inline-end: 4px;
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 600;
}

.product-chip {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   3. Modes (two ways to use one product)
   -------------------------------------------------------------------------- */
.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 960px;
  margin-inline: auto;
}

.mode-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.mode-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
}

.mode-name {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.mode-text {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   4. Features
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-3px);
}

.feature-title {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.feature-text {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   5. Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 880px;
  margin-inline: auto;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.plan-card.is-featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-float);
}

.plan-badge {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 12.5px;
  font-weight: 700;
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
}

.plan-amount {
  color: var(--text);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-period {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
}

.plan-note {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 14px;
}

.plan-items {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.plan-addons {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.7;
}

.plan-cta {
  margin-top: auto;
  width: 100%;
}

.plan-items + .plan-cta,
.plan-addons + .plan-cta {
  margin-top: 24px;
}

.pricing-extra {
  max-width: 880px;
  margin: 18px auto 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.8;
  text-align: center;
}

.pricing-source {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 13.5px;
  text-align: center;
}

.pricing-source a {
  color: var(--brand-ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Closing call to action
   -------------------------------------------------------------------------- */
.product-cta-section {
  padding-top: 24px;
}

.product-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  padding: 40px 44px;
  border-radius: 28px;
  background: var(--stage-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(10, 25, 80, 0.5);
}

.product-cta-title {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.5;
}

.product-cta-text {
  margin-top: 6px;
  color: #C3CDDC;
  font-size: 16px;
  line-height: 1.8;
}

.product-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.product-cta-link {
  color: #BAE6FD;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   7. Systems hub (/systems)
   -------------------------------------------------------------------------- */
.systems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.system-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s ease, transform 0.4s var(--ease);
}

.system-card:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-4px);
}

.system-card .case-visual {
  aspect-ratio: 16 / 9;
  margin: 10px;
}

.system-card:hover .case-logo {
  transform: translateY(-6px) scale(1.02);
}

.system-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 30px 30px;
}

.system-name {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.45;
}

.system-name a:hover {
  color: var(--brand-ink);
}

.system-tagline {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.85;
}

.system-body .check-list {
  margin-top: 18px;
}

.system-price {
  margin-top: 22px;
  padding-top: 18px;
  width: 100%;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14.5px;
}

.system-price b {
  color: var(--text);
  font-size: 20px;
}

.system-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
}

.systems-custom {
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-visual {
    max-width: 640px;
  }
}

@media (max-width: 900px) {
  .modes-grid,
  .pricing-grid,
  .systems-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .product-hero {
    padding-bottom: 56px;
  }

  .product-facts .stat-value {
    font-size: 34px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .product-cta {
    padding: 28px 22px;
  }

  .product-cta-actions,
  .product-cta-actions .btn {
    width: 100%;
  }

  .system-body {
    padding: 14px 18px 22px;
  }
}
