/*
 * Refinement layer — the client review pass of 2026-08-06.
 *
 * Loads last (zz-) so it wins equal-specificity ties against dn-home.css and
 * dn-pages*.css. Everything typographic is scoped to `.dn-site`, the body class
 * that dn-body-class.php puts on every page EXCEPT the approved LP on page 14 —
 * tokens.css is shared, so an unscoped change here would redesign that page too.
 *
 * Five things:
 *   1. body copy reads BLACK, not muted grey, and one step larger
 *   2. long "headings" that are really paragraphs stop being display type
 *   3. real background separation between sections
 *   4. tighter vertical rhythm everywhere (the איך-זה-עובד page is the target)
 *   5. brand/promise marks: .dn-mark (red) and .dn-hl (blue underline)
 */

/* ============================================================ typography */

/*
 * +1px across the ramp, and the muted greys go to near-black. --page-fg-muted
 * at 65% alpha was the main legibility complaint: on the tinted section
 * backgrounds it washed out badly.
 */
body.dn-site {
  --t-body: 19px;
  --t-lead: clamp(19px, 1.5vw, 23px);
  --t-small: 17px;
  --t-micro: 15px;
  --t-h4: 23px;

  /* Body copy is the client's "make it black". Kept as the darkest palette
     token rather than #000 so it still sits in the brand's blue-black. */
  --page-fg-muted: #101c33;
}

@media (min-width: 1024px) and (max-width: 1440px) {
  body.dn-site {
    --t-lead: clamp(17px, 1.3vw, 20px);
    --t-body: 18px;
  }
}

/* The tokens above cover anything using them; these are the places that had a
   hard-coded size or colour. */
body.dn-site .dn-note p,
body.dn-site .dn-prose,
body.dn-site .dn-prose p,
body.dn-site .dn-step-text p,
body.dn-site .dn-person-bio p,
body.dn-site .dn-founder-bio p,
body.dn-site .dn-intro-lead p,
body.dn-site .dn-toogood-lead p,
body.dn-site .dn-about-lead p,
body.dn-site .elementor-tab-content p {
  color: #101c33;
}

body.dn-site .dn-step-text p { font-size: 16px; }
body.dn-site .dn-person-bio p,
body.dn-site .dn-founder-bio p { font-size: 16px; }
body.dn-site .dn-prose,
body.dn-site .dn-prose p { font-size: 18px; }

/* ------------------------------------ long headings that are paragraphs */

/*
 * These are set as headings in the client's own markup, so the tag stays (the
 * rebuild is 1:1) — only the visual weight changes. A 60-word sentence at
 * display size is what made the pages feel shouty.
 */
body.dn-site #dn-waze .dn-waze-h2 .elementor-heading-title,
body.dn-site #dn-pr-hero .dn-lead-h2 .elementor-heading-title,
body.dn-site .dn-cta-sub .elementor-heading-title,
body.dn-site .dn-testi-sub .elementor-heading-title,
body.dn-site .dn-webinar-sub .elementor-heading-title {
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: 1.7;
  color: #101c33;
}

body.dn-site #dn-waze .dn-waze-h2 {
  max-width: 820px;
  margin-inline: auto;
}

/* ============================================================== marks */

/* Brand mentions inside running copy. */
.dn-mark {
  color: var(--brand-red);
  font-weight: 800;
}

/*
 * The promise line. An underline rather than a second colour, so it reads as
 * emphasis inside a sentence instead of turning every paragraph two-tone.
 */
.dn-hl {
  color: var(--brand-primary);
  font-weight: 700;
  background-image: linear-gradient(var(--brand-light), var(--brand-light));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.18em;
  padding-bottom: 0.04em;
}

/* On dark plates the blue is unreadable; go light. Every navy band is listed
   here — an earlier version keyed off a `.dn-on-dark` class that was never
   actually added to any element, so the marks stayed dark-on-dark. */
.dn-hero-inner .dn-hl,
#dn-hw-hero .dn-hl,
#dn-hw-cta .dn-hl,
#dn-about-intro .dn-hl,
#dn-webinar .dn-hl,
#dn-prog-cta .dn-hl {
  color: #fff;
  background-image: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55));
}

/* The about intro carries one very long client paragraph; give it a measure
   so the navy band does not become a wall of text. */
body.dn-site #dn-about-intro .dn-about-lead p {
  font-size: 16px;
  line-height: 1.75;
  max-width: 62ch;
  margin-inline-start: auto;
}

/* ================================================== vertical rhythm */

/*
 * The client asked for a shorter scroll site-wide and pointed at איך-זה-עובד as
 * the reference. That page runs ~52-84px section padding; everything else was
 * on the token default of 72-128.
 */
body.dn-site .lt-section {
  padding-block: clamp(52px, 6.5vw, 84px);
}

@media (max-width: 720px) {
  body.dn-site .lt-section {
    padding-block: clamp(42px, 10vw, 68px);
  }
}

/* Heroes carried the worst of it — trimmed on every page, including the
   reference page the client still found slightly too tall on top. */
body.dn-site .dn-page-head {
  padding-top: clamp(104px, 9vw, 128px) !important;
  padding-bottom: clamp(40px, 5vw, 60px) !important;
}

body.dn-site #dn-hw-hero.dn-page-head {
  padding-top: clamp(100px, 8.5vw, 120px) !important;
}

@media (max-width: 767px) {
  body.dn-site .dn-page-head {
    padding-top: clamp(92px, 19vw, 120px) !important;
  }
}

/* ================================== homepage: separate the sections */

/*
 * --page-panel (#f4f8ff) is four points off white and read as "still white",
 * which is why the homepage looked like one continuous sheet. These are real
 * tints, alternating so every section has an edge.
 */
body.dn-site #dn-intro { background: #ffffff; }

body.dn-site #dn-toogood {
  background:
    radial-gradient(900px 320px at 78% 0%, rgba(41, 128, 242, 0.10), transparent 62%),
    linear-gradient(180deg, #eaf1fd 0%, #e3ecfb 100%);
}

body.dn-site #dn-waze {
  background: #ffffff;
}

/* On white the form card needs its own edge to stay separated. */
body.dn-site #dn-waze .dn-form-card {
  box-shadow: var(--shadow-strong);
}

body.dn-site #dn-testi {
  background:
    radial-gradient(1000px 380px at 20% -6%, rgba(41, 128, 242, 0.12), transparent 62%),
    linear-gradient(180deg, #e6eefc 0%, #eef4fe 100%);
}

body.dn-site #dn-founders { background: #ffffff; }

/* A deep plate closes the page instead of fading back into white. */
body.dn-site #dn-webinar {
  background: linear-gradient(135deg, #123163 0%, #1d4d9e 60%, #2980f2 100%);
}

body.dn-site #dn-webinar .dn-webinar-h2 .elementor-heading-title { color: #fff; }

body.dn-site #dn-webinar .dn-webinar-h2b .elementor-heading-title {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--brand-coral);
}

body.dn-site #dn-webinar .dn-webinar-sub .elementor-heading-title {
  color: rgba(255, 255, 255, 0.82);
}

body.dn-site #dn-webinar .dn-webinar-blob { background: rgba(255, 255, 255, 0.07); }

body.dn-site #dn-webinar .dn-form-card {
  border: 0;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.45);
}

body.dn-site #dn-webinar .dn-form.elementor-widget-form .elementor-button[type="submit"] {
  background: var(--brand-coral);
  color: #4a1d10;
}

body.dn-site #dn-webinar .dn-form.elementor-widget-form .elementor-button[type="submit"]:hover {
  background: #eb8d78;
}

/* ------------------------------- inner pages: same alternation logic */

body.dn-site #dn-pr-system,
body.dn-site #dn-pr-problem { background: #ffffff; }

body.dn-site #dn-pr-solution,
body.dn-site #dn-plans,
body.dn-site #dn-about-committee,
body.dn-site #dn-expert {
  background:
    radial-gradient(1000px 380px at 80% -6%, rgba(41, 128, 242, 0.12), transparent 62%),
    linear-gradient(180deg, #e6eefc 0%, #eef4fe 100%);
}

body.dn-site #dn-faq,
body.dn-site #dn-contact,
body.dn-site #dn-testi.dn-page-head,
body.dn-site #dn-pr-hero,
body.dn-site #dn-plans-hero,
body.dn-site #dn-program {
  background: linear-gradient(180deg, #eaf1fd 0%, #ffffff 100%);
}

/* ====================================================== אודותינו page */

/*
 * The hero was a tall pale band with the colour logo floating in it. A navy
 * plate — the same one the איך-זה-עובד hero uses — makes the logo read, and the
 * band comes down to roughly half its height.
 */
body.dn-site #dn-about-intro.dn-page-head {
  background: linear-gradient(135deg, #0d1a2e 0%, #16294a 55%, #1d3a6b 100%);
  padding-top: clamp(104px, 9vw, 128px) !important;
  padding-bottom: clamp(44px, 5.5vw, 66px) !important;
  overflow: hidden;
}

body.dn-site #dn-about-intro::after {
  content: "";
  position: absolute;
  inset-inline-end: -8%;
  top: -30%;
  width: min(60vw, 720px);
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 40% 40%, rgba(41, 128, 242, 0.32), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

body.dn-site #dn-about-intro .dn-split { position: relative; z-index: 1; }

body.dn-site #dn-about-intro .dn-h1 .elementor-heading-title {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  color: #fff;
}

body.dn-site #dn-about-intro .dn-about-lead p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.8;
  margin-top: 16px;
}

body.dn-site #dn-about-intro .dn-about-logo img {
  max-width: 320px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

/* --------------------------------------------- the advisory committee */

/*
 * Prof. Wainstein is the scientific advisor and the only one with a full
 * clinical title, so he leads on a row of his own; the other four sit two-up
 * beneath him. Three-across gave him no more weight than the rest.
 */
body.dn-site #dn-about-committee .dn-committee-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 940px;
}

body.dn-site #dn-about-committee .dn-expert-card:first-child {
  grid-column: 1 / -1;
}

/* On his wider card the photo can sit beside the text instead of above it. */
body.dn-site #dn-about-committee .dn-expert-card:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  text-align: start;
}

body.dn-site #dn-about-committee .dn-expert-card:first-child .dn-person-photo {
  grid-row: 1 / span 4;
  margin-bottom: 0;
  width: 132px;
  height: 132px;
}

body.dn-site #dn-about-committee .dn-expert-card:first-child .dn-person-bio {
  margin-top: 10px;
}

@media (max-width: 767px) {
  body.dn-site #dn-about-committee .dn-committee-grid { grid-template-columns: 1fr; }
  body.dn-site #dn-about-committee .dn-expert-card:first-child {
    display: flex;
    text-align: center;
  }
  body.dn-site #dn-about-committee .dn-expert-card:first-child .dn-person-photo {
    margin-bottom: 18px;
  }
}

/* ================================================= התכנית page (rebuilt) */

body.dn-site #dn-program.dn-page-head {
  background: linear-gradient(180deg, #eaf1fd 0%, #ffffff 100%);
}

/* --- the Waze claim: a paragraph the client set as a heading --- */

body.dn-site #dn-prog-system {
  background:
    radial-gradient(900px 340px at 78% 0%, rgba(41, 128, 242, 0.10), transparent 62%),
    linear-gradient(180deg, #eaf1fd 0%, #e3ecfb 100%);
}

body.dn-site #dn-prog-system .dn-prog-system-inner {
  text-align: center;
  max-width: 880px;
}

body.dn-site #dn-prog-system .dn-prog-waze .elementor-heading-title {
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: 1.75;
  color: #101c33;
}

body.dn-site #dn-prog-system .dn-prog-claim {
  margin-top: 26px;
}

body.dn-site #dn-prog-system .dn-prog-claim .elementor-heading-title {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
}

body.dn-site #dn-prog-system .dn-prog-claim-sub .elementor-heading-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--brand-primary);
  margin-top: 4px;
}

/* --- objection, then the two opposed lists --- */

body.dn-site #dn-prog-compare {
  background: #ffffff;
}

body.dn-site #dn-prog-compare .dn-prog-compare-inner {
  text-align: center;
}

body.dn-site .dn-prog-kicker .elementor-heading-title {
  display: inline-block;
  font-size: var(--t-small);
  font-weight: 800;
  color: var(--page-fg-subtle);
  letter-spacing: .02em;
}

body.dn-site .dn-prog-kicker-answer .elementor-heading-title {
  color: var(--brand-primary);
}

body.dn-site .dn-prog-kicker-answer {
  margin-top: 22px;
  margin-bottom: 18px;
}

/* The objection is a quote, so it is set as one. */
body.dn-site .dn-prog-quote .elementor-heading-title {
  display: block;
  font-size: clamp(21px, 2.3vw, 30px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--page-fg-strong);
  max-width: 760px;
  margin: 10px auto 0;
  padding: 18px 26px;
  border-radius: var(--r-lg);
  background: var(--page-panel-alt);
  border-inline-start: 4px solid var(--page-fg-faint);
}

body.dn-site .dn-cmp-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.4vw, 24px);
  width: 100%;
  max-width: 1060px;
  margin-inline: auto;
  align-items: start;
}

body.dn-site .dn-cmp-col {
  width: auto !important;
  min-width: 0;
  border-radius: var(--r-xl);
  padding: clamp(20px, 2.6vw, 30px);
  text-align: start;
}

/* Negative: what none of the alternatives do. */
body.dn-site .dn-cmp-neg {
  background: linear-gradient(180deg, #fdf1ee 0%, #fbe8e3 100%);
  border: 1px solid rgba(242, 155, 136, 0.4);
}

/* Positive: what this programme does. */
body.dn-site .dn-cmp-pos {
  background: linear-gradient(180deg, #eaf1fd 0%, #dfeafb 100%);
  border: 1px solid rgba(41, 128, 242, 0.28);
  box-shadow: 0 10px 30px -12px rgba(41, 128, 242, 0.35);
}

body.dn-site .dn-cmp {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.dn-site .dn-cmp li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.65;
  color: #101c33;
}

body.dn-site .dn-cmp svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  margin-top: 2px;
}

body.dn-site .dn-cmp-x svg {
  color: #fff;
  background: var(--brand-red);
}

/* Green, not another blue: on a blue plate only a different hue reads as
   "yes" at a glance. */
body.dn-site .dn-cmp-v svg {
  color: #fff;
  background: #16a34a;
}

body.dn-site .dn-cmp-v li { font-weight: 600; }

/* --- closing band --- */

body.dn-site #dn-prog-cta {
  background: linear-gradient(135deg, #123163 0%, #1d4d9e 60%, #2980f2 100%);
}

body.dn-site #dn-prog-cta .dn-cta-h2 .elementor-heading-title { color: #fff; }

body.dn-site #dn-prog-cta .dn-cta-sub .elementor-heading-title {
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
  margin-inline: auto;
}

body.dn-site #dn-prog-cta .dn-cta-blob { background: rgba(255, 255, 255, 0.07); }

body.dn-site #dn-prog-cta .dn-btn { margin-top: 26px; }

body.dn-site #dn-prog-cta .dn-btn.elementor-widget-button .elementor-button {
  background: var(--brand-coral);
  color: #4a1d10;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45);
}

body.dn-site #dn-prog-cta .dn-btn.elementor-widget-button .elementor-button::before {
  background: linear-gradient(120deg, #f7b8a6, #fbd3c7);
}

body.dn-site #dn-prog-cta .dn-hl {
  color: #fff;
  background-image: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55));
}

@media (max-width: 767px) {
  body.dn-site .dn-cmp-grid { grid-template-columns: 1fr; }
}

/* ============================== מסלולים — single plan (client, 2026-08-10) */

/*
 * The offer collapsed from three columns to one: 5,000 ILS + VAT, up to 10
 * instalments. A lone card in a 3-column grid would sit off to one side, so the
 * grid becomes a single centred track and the card gets real presence.
 */
body.dn-site #dn-plans .dn-plan-grid-single {
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
  max-width: 460px;
}

body.dn-site #dn-plans .dn-plan-single {
  padding: clamp(28px, 3.4vw, 42px);
  border: 1px solid rgba(41, 128, 242, 0.28);
  box-shadow: 0 18px 48px -16px rgba(41, 128, 242, 0.4);
  text-align: center;
}

body.dn-site #dn-plans .dn-plan-single .elementor-price-table__heading {
  padding-inline: 0;          /* no ribbon to clear any more */
  direction: rtl;             /* the name is Hebrew now, not "4 Balance" */
  font-size: var(--t-h3);
}

body.dn-site #dn-plans .dn-plan-single .elementor-price-table__integer-part,
body.dn-site #dn-plans .dn-plan-single .elementor-price-table__currency {
  font-size: 54px;
}

body.dn-site #dn-plans .dn-plan-vat .elementor-heading-title {
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--page-fg-muted);
  text-align: center;
  margin-top: -4px;
}

body.dn-site #dn-plans .dn-plan-single .dn-plan-pay .elementor-heading-title {
  direction: rtl;
  font-size: var(--t-h4);
  color: var(--brand-primary);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}

body.dn-site #dn-plans .dn-plan-single .dn-plan-permonth .elementor-heading-title {
  font-size: var(--t-small);
  color: var(--page-fg-muted);
}

body.dn-site #dn-plans .dn-plan-single .elementor-price-table__features-list li {
  font-size: var(--t-micro);
  color: var(--page-fg-muted);
}

/* "+ מע״מ" rides with the price via the widget's period field, so it reads as
   part of the figure rather than a footnote to the guarantee line. */
body.dn-site #dn-plans .dn-plan-single .elementor-price-table__period {
  display: block;
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--page-fg-muted);
  margin-top: 2px;
}
