/* ============================================================
   Digital Experts - home page, Jye direction (preview at /home-v2)
   2026.10.06. Everything is scoped to main.dx.dx-j2 (and the header
   on pages that contain it), so the live home page is untouched.

   Jye's thinking, applied:
   1. Two fonts for web. Wide caps (Archivo 125) for every headline,
      Epilogue for everything else. The serif becomes a display face
      for presentations and socials, not the website.
   2. Headlines centred and one colour: navy on light grounds, cream on
      dark. No second-colour reply line.
   3. Calmer grounds: cream and white with navy type, deep green for
      the close. Burgundy steps back.
   4. A floating green pill nav.
   5. Questions as chat bubbles, the hook split around a black and
      white photo, softer rounded cards with a progress bar, and a
      solid green close with the mark.
   ============================================================ */

.dx.dx-j2 {
  --j2-navy: #1B2A6B;
  --j2-green: #15301F;
  --j2-cream: #F2F0EA;
  --j2-ink: #1D2A22;
}

/* --- 1. Two fonts --------------------------------------------- */

/* Headlines: wide caps. Any reply line inside a headline joins it. */
.dx-j2 .dx-statement,
.dx-j2 h2.dx-reply {
  font-family: var(--dx-wide);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.95;
  font-size: var(--dx-t-display);
}

.dx-j2 .dx-display { font-weight: 800; line-height: 0.94; }

.dx-j2 .dx-statement .dx-reply,
.dx-j2 .dx-display .dx-reply {
  display: block;
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  font-size: 1em;
  margin: 0;
  color: inherit;
}

/* Every other reply line is plain sans. */
.dx-j2 .dx-reply {
  font-family: var(--dx-sans);
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.3;
  font-size: clamp(18px, 1.5vw, 22px);
}

.dx-j2 .dx-step .dx-reply,
.dx-j2 .dx-plan-list .dx-reply,
.dx-j2 .dx-learn-top .dx-reply { font-size: clamp(18px, 1.5vw, 22px); }

.dx-j2 .dx-hero-kicker {
  font-family: var(--dx-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dx-cream);
}

.dx-j2 .dx-who-q,
.dx-j2 .dx-card-q { font-family: var(--dx-sans); font-style: normal; }

.dx-j2 .dx-voice-mark { font-family: var(--dx-wide); font-stretch: 125%; font-weight: 800; line-height: 0.8; }

/* --- 2. Centred section heads, one colour ---------------------- */

.dx-j2 .dx-head {
  display: block;
  text-align: center;
  max-width: 920px;
  margin: 0 auto var(--dx-gap-l);
}

.dx-j2 .dx-head .dx-label { margin-bottom: 18px; }
.dx-j2 .dx-head > :not(.dx-label) { margin-left: auto; margin-right: auto; }

.dx-j2 .dx-white .dx-statement,
.dx-j2 .dx-white h2.dx-reply,
.dx-j2 .dx-white .dx-display,
.dx-j2 .dx-white .dx-display span { color: var(--j2-navy); }

.dx-j2 .dx-meet .dx-head .dx-reply,
.dx-j2 .dx-voice .dx-head .dx-statement .dx-reply,
.dx-j2 .dx-plan .dx-head .dx-statement .dx-reply { color: inherit; }

.dx-j2 .dx-step .dx-reply,
.dx-j2 .dx-harder-side .dx-reply,
.dx-j2 .dx-plan-list .dx-reply { color: var(--j2-navy); }

.dx-j2 .dx-learn-top .dx-reply { color: var(--dx-cream); }

/* --- 3. Hero: centred ------------------------------------------ */

.dx-j2 .dx-hero { align-items: center; text-align: center; }
.dx-j2 .dx-hero .dx-inner { display: flex; flex-direction: column; align-items: center; }
.dx-j2 .dx-hero-title { font-size: clamp(44px, 7vw, 108px); }
.dx-j2 .dx-hero-foot { display: block; border-top: 0; margin-top: 22px; padding-top: 0; width: 100%; max-width: 640px; }
.dx-j2 .dx-hero-foot > .dx-body { max-width: 46ch; margin: 0 auto; }
.dx-j2 .dx-hero-cta { margin-top: 28px; }

/* --- 4. The answers exist: cream, questions as chat bubbles ---- */

.dx-j2 .dx-exist { background: var(--j2-cream); color: var(--j2-green); }
.dx-j2 .dx-exist .dx-statement { color: var(--j2-green); max-width: 16ch; }
.dx-j2 .dx-exist .dx-exist-sub { color: rgba(29, 42, 34, 0.75); }

.dx-j2 .dx-ghost {
  max-width: none;
  white-space: nowrap;
  padding: 9px 15px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--j2-ink);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 22px rgba(21, 48, 31, 0.08);
}

.dx-j2 .dx-ghost:nth-child(5n+1) { background: var(--dx-lavender); color: var(--j2-navy); }
.dx-j2 .dx-ghost:nth-child(7n+3) { background: var(--dx-orange); color: #FFFFFF; }
.dx-j2 .dx-ghost:nth-child(6n+4) { background: var(--dx-mustard); color: var(--j2-green); }

/* --- 5. Hook: the question split around a black and white photo - */

.dx-j2 .dx-hook2 { text-align: center; }
.dx-j2 .dx-hook2 .dx-display { font-size: clamp(32px, 4.6vw, 68px); max-width: 15ch; margin: 0 auto; }
.dx-j2 .dx-hook2 .dx-display > span { display: block; }

.dx-j2 .dx-hook2-img {
  display: block;
  width: min(380px, 70%);
  aspect-ratio: 4 / 3;
  margin: 0.32em auto;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.05);
}

.dx-j2 .dx-hook2 .dx-reply { color: var(--j2-navy); margin-top: var(--dx-gap-m); }
.dx-j2 .dx-hook2 .dx-body { color: var(--dx-ink-78); margin: 10px auto 0; }

/* --- 6. Who it's for: cream, soft cards, progress bar ---------- */

.dx-j2 .dx-who { background: var(--j2-cream); color: var(--j2-navy); }
.dx-j2 .dx-who .dx-head .dx-label { color: var(--dx-green); }
.dx-j2 .dx-who .dx-statement { color: var(--j2-navy); }

.dx-j2 .dx-card { border-radius: 24px; justify-content: flex-end; padding: 20px; }
.dx-j2 .dx-card::before { background: linear-gradient(180deg, rgba(14, 10, 8, 0) 40%, rgba(14, 10, 8, 0.62) 100%); }
.dx-j2 .dx-card-q { order: 1; margin-top: 0; font-size: clamp(18px, 1.5vw, 21px); font-weight: 500; line-height: 1.25; }

.dx-j2 .dx-card-name {
  order: 2;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 7px 7px 7px 14px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--j2-navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  max-width: none;
}

.dx-j2 .dx-card-name::after {
  content: "\2192";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--j2-navy);
  color: #FFFFFF;
  font-size: 13px;
}

.dx-j2 .dx-card-more { display: none; }

.dx-j2 .dx-who-foot { align-items: center; }
.dx-j2 .dx-who-foot .dx-link { color: var(--j2-navy); }
.dx-j2 .dx-cards-btn { border-color: rgba(27, 42, 107, 0.25); color: var(--j2-navy); }
.dx-j2 .dx-cards-btn:hover:not(:disabled) { background: var(--j2-navy); color: #FFFFFF; }

.dx-j2 .dx-cards-bar {
  position: relative;
  flex: 0 1 180px;
  height: 3px;
  border-radius: 3px;
  background: rgba(27, 42, 107, 0.15);
  overflow: hidden;
}

.dx-j2 .dx-cards-bar span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: var(--j2-navy);
  transition: left 0.2s ease;
}

/* --- 7. Close: solid green with the mark ----------------------- */

.dx-j2 .dx-close2 { text-align: center; padding: clamp(110px, 11vw, 170px) 0; }
.dx-j2 .dx-close2 .dx-inner { display: flex; flex-direction: column; align-items: center; }
.dx-j2 .dx-close-mark { width: clamp(64px, 6vw, 88px); height: auto; fill: var(--dx-cream); margin-bottom: var(--dx-gap-m); }
.dx-j2 .dx-close2 .dx-display { max-width: 18ch; }
.dx-j2 .dx-close2 .dx-body { color: var(--dx-cream-70); margin: 20px auto 0; }
.dx-j2 .dx-close2-actions { display: flex; align-items: center; gap: 24px; margin-top: var(--dx-gap-m); flex-wrap: wrap; justify-content: center; }
.dx-j2 .dx-close2-actions .dx-link { color: var(--dx-cream); }

/* --- 8. Floating green pill nav (this page only) --------------- */

body:has(main.dx-j2) .de-header,
body:has(main.dx-j2) .de-header.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  padding-top: 14px;
}

body:has(main.dx-j2) .de-header > .de-wrap {
  background: var(--dx-forest, #15301F);
  height: 68px;
  border-radius: 14px;
  padding-left: 20px;
  padding-right: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

body:has(main.dx-j2) .de-header .de-logo svg { fill: #EDE4D3; color: #EDE4D3; }
body:has(main.dx-j2) .de-header .de-nav > a,
body:has(main.dx-j2) .de-header .de-nav-trigger { color: #EDE4D3; }
body:has(main.dx-j2) .de-header .de-nav a.de-cta { background: #EDE4D3; border-color: #EDE4D3; color: #15301F; }
body:has(main.dx-j2) .de-header .de-nav-toggle span { background: #EDE4D3; }

/* --- 9. Review fixes (6 Oct) ---------------------------------- */

main.dx.dx-j2 .dx-white .dx-statement,
main.dx.dx-j2 .dx-white .dx-statement .dx-reply,
main.dx.dx-j2 .dx-white .dx-display { color: var(--j2-navy); }
main.dx.dx-j2 .dx-hero-foot > .dx-body { text-align: center; }
main.dx.dx-j2 .dx-white .dx-btn { background: var(--j2-navy); border-color: var(--j2-navy); color: #FFFFFF; }

/* --- Responsive -------------------------------------------------- */

@media (max-width: 900px) {
  .dx-j2 .dx-ghost { white-space: normal; max-width: 16ch; }
  .dx-j2 .dx-cards-bar { display: none; }
  body:has(main.dx-j2) .de-header { padding-left: 12px; padding-right: 12px; }
  body:has(main.dx-j2) .de-header > .de-wrap { height: 60px; }
}
