/*
 * Second half of the inner-page styles: the six-stage list (איך זה עובד) and
 * the pricing page (מסלולים) with its reassurance and expert blocks.
 *
 * Split from dn-pages.css only for file size; the mu-plugin globs
 * assets/css/sections/*.css so both load in filename order.
 */

/* ============================================ איך זה עובד — the six stages */

#dn-hw-hero { background: linear-gradient(180deg, var(--page-panel) 0%, var(--page-bg) 100%); }

#dn-hw-stages { background: var(--page-bg); }

#dn-hw-stages .dn-stages-inner { text-align: center; }

#dn-hw-stages .dn-steps {
  width: 100%;
  max-width: 980px;
  margin: clamp(36px, 5vw, 52px) auto 0;
  text-align: start;
}

/* Each stage is a card; the number column is fixed-ish so all six line up. */
#dn-hw-stages .dn-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-card);
  align-items: flex-start;
  transition: box-shadow var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), opacity 0.85s var(--ease);
}

#dn-hw-stages .dn-step:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px);
}

#dn-hw-stages .dn-step-head,
#dn-hw-stages .dn-step-body { width: auto !important; min-width: 0; }

#dn-hw-stages .dn-step-head { flex: 0 0 clamp(150px, 22%, 230px); }
#dn-hw-stages .dn-step-body { flex: 1 1 auto; }

#dn-hw-stages .dn-step-num .elementor-heading-title {
  display: inline-block;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#dn-hw-stages .dn-step-title .elementor-heading-title {
  font-size: var(--t-h4);
  font-weight: 800;
  line-height: 1.3;
  color: var(--page-fg-strong);
  margin-top: 8px;
}

#dn-hw-stages .dn-step-text p {
  font-size: var(--t-small);
  line-height: 1.85;
  color: var(--page-fg-muted);
  margin: 0 0 12px;
}

#dn-hw-stages .dn-step-text p:last-child { margin-bottom: 0; }

/* ================================================================ מסלולים */

#dn-plans-hero { background: linear-gradient(180deg, var(--page-panel) 0%, var(--page-bg) 100%); }

#dn-plans-hero .dn-plans-blob {
  top: -100px;
  inset-inline-end: -120px;
  width: 460px;
  height: 400px;
  border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
  background: rgba(41, 128, 242, 0.045);
  filter: blur(8px);
}

.dn-perks {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dn-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-body);
  font-weight: 700;
  color: var(--page-fg-strong);
}

.dn-perks svg { color: var(--brand-primary); flex-shrink: 0; }

#dn-plans { background: var(--page-panel); }

#dn-plans .dn-plans-inner { text-align: center; }

#dn-plans .dn-plan-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
  width: 100%;
  max-width: 1120px;
  margin: clamp(34px, 4vw, 48px) auto 0;
  align-items: start;
}

#dn-plans .dn-plan-col {
  width: auto !important;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: clamp(20px, 2.4vw, 30px);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), opacity 0.85s var(--ease);
}

#dn-plans .dn-plan-col:nth-child(2) { --reveal-delay: 90ms; }
#dn-plans .dn-plan-col:nth-child(3) { --reveal-delay: 180ms; }

#dn-plans .dn-plan-col:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}

/* The price-table widget brings its own chrome; strip it back to the card. */
#dn-plans .elementor-price-table {
  background: transparent;
  text-align: center;
}

#dn-plans .elementor-price-table__header {
  background: transparent;
  padding: 0 0 10px;
}

#dn-plans .elementor-price-table__heading {
  font-size: var(--t-h3);
  font-weight: 900;
  line-height: 1.2;
  color: var(--page-fg-strong);
}

#dn-plans .elementor-price-table__subheading {
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--brand-primary);
  margin-top: 6px;
}

#dn-plans .elementor-price-table__price {
  padding: 6px 0 10px;
  color: var(--page-fg-strong);
  justify-content: center;
}

#dn-plans .elementor-price-table__integer-part,
#dn-plans .elementor-price-table__currency {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
}

#dn-plans .elementor-price-table__original-price {
  font-size: var(--t-body);
  font-weight: 700;
  color: var(--page-fg-subtle);
  text-decoration: line-through;
}

#dn-plans .elementor-price-table__features-list {
  padding: 0;
  border: 0;
}

#dn-plans .elementor-price-table__features-list li {
  font-size: var(--t-micro);
  line-height: 1.6;
  color: var(--page-fg-muted);
  padding: 4px 0;
}

#dn-plans .elementor-price-table__ribbon-inner {
  background: var(--brand-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#dn-plans .elementor-price-table__footer { padding: 0; }

#dn-plans .elementor-price-table__button {
  background: var(--brand-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--r-pill);
  padding: 12px 22px;
  margin-top: 10px;
  box-shadow: 0 8px 24px -6px rgba(41, 128, 242, 0.45);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

#dn-plans .elementor-price-table__button:hover {
  background: var(--brand-mid);
  transform: translateY(-2px);
}

/*
 * Plan names are Latin with a leading digit ("4 Balance", "22 Life Changer").
 * In an RTL paragraph the bidi algorithm moves the number to the far side and
 * they render as "Balance 4" / "Life Changer 22". The live site has the same
 * flip; forcing LTR on the name is a deliberate source-bug fix.
 */
#dn-plans .elementor-price-table__heading {
  direction: ltr;
  unicode-bidi: isolate;
  /* Clear the corner ribbon — at 0 padding it covered the leading "22" of
     "22 Life Changer" and the name read as "Life Changer". */
  padding-inline: 52px;
}

/* …but the coupon card's heading is Hebrew and must stay RTL. */
#dn-plans .dn-price-coupon .elementor-price-table__heading {
  direction: rtl;
}

/* The payment rows are plain headings now, not price tables — Elementor's
   price-table renders demo copy for every key you leave unset. */
#dn-plans .dn-plan-pay .elementor-heading-title {
  font-size: var(--t-h4);
  font-weight: 900;
  line-height: 1.3;
  color: var(--page-fg-strong);
  text-align: center;
  direction: ltr;
  unicode-bidi: isolate;
}

#dn-plans .dn-plan-pay { margin-top: 10px; }

#dn-plans .dn-plan-cta {
  margin-top: 14px;
  text-align: center;
}

#dn-plans .dn-plan-cta.elementor-widget-button .elementor-button {
  font-size: 14px;
  padding: 12px 20px;
  width: 100%;
}

#dn-plans .dn-plan-cta.elementor-widget-button .elementor-button-text {
  white-space: nowrap;
}

#dn-plans .dn-price-coupon {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}

#dn-plans .dn-price-coupon .elementor-price-table__heading { font-size: var(--t-small); }
#dn-plans .dn-price-coupon .elementor-price-table__integer-part,
#dn-plans .dn-price-coupon .elementor-price-table__currency { font-size: 28px; }

#dn-plans .dn-plan-permonth .elementor-heading-title,
#dn-plans .dn-plan-note .elementor-heading-title {
  font-size: var(--t-micro);
  font-weight: 700;
  line-height: 1.55;
  color: var(--page-fg-muted);
  text-align: center;
}

#dn-plans .dn-plan-permonth .elementor-heading-title {
  font-size: var(--t-small);
  color: var(--brand-primary);
}

/* ----------------------------------------------------------- reassurance */

#dn-reassure { background: var(--page-bg); padding-block: clamp(48px, 6vw, 72px); }

#dn-reassure .dn-reassure-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 28px);
}

#dn-reassure .dn-reassure-col { width: auto !important; min-width: 0; }

.dn-ib {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--page-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px 26px;
  font-size: var(--t-body);
  font-weight: 800;
  color: var(--page-fg-strong);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.dn-ib:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.dn-ib svg { color: var(--brand-primary); flex-shrink: 0; }

/* ---------------------------------------------------------------- expert */

#dn-expert { background: var(--page-panel); }

#dn-expert .dn-expert-inner { text-align: center; }

#dn-expert .dn-expert-name {
  margin-top: 18px;
  --reveal-delay: 90ms;
}

#dn-expert .dn-expert-name .elementor-heading-title {
  font-size: var(--t-h3);
  font-weight: 900;
  color: var(--brand-primary);
}

#dn-expert .dn-expert-role {
  margin-top: 4px;
  --reveal-delay: 130ms;
}

#dn-expert .dn-expert-role .elementor-heading-title {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--page-fg-muted);
}

#dn-expert .dn-expert-video {
  width: 100%;
  max-width: 860px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  --reveal-delay: 170ms;
}

#dn-expert .dn-btn { margin-top: clamp(26px, 3.5vw, 36px); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1024px) {
  #dn-plans .dn-plan-grid { grid-template-columns: 1fr; max-width: 520px; }
  #dn-reassure .dn-reassure-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  #dn-hw-stages .dn-step { flex-direction: column; }
  #dn-hw-stages .dn-step-head { flex: 0 0 auto; }
}
