/* Design help page — rebuilt from section mockups */

.design-help-page {
  background: #fff;
}

.design-help-page .fv-header {
  background: #efce0a;
}

.dh-inner {
  width: min(920px, calc(100% - 80px));
  margin: 0 auto;
}

/* ----- 1. Yellow title ----- */
.dh-sec1 {
  background: #efce0a;
  padding: 0 0 56px;
}

.dh-sec1__inner {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  padding-top: 300px;
}

.dh-sec1__title {
  display: block;
  width: min(640px, 88%);
  height: auto;
}

/* ----- 2. Photo + man + bubble + copy ----- */
.dh-sec2 {
  background: #fff;
  /* Design lock @ stage 1400px: man width 300 · top 300 · overlap 64 into photo right edge
     Stage = min(1400px, 78vw) → scale 1 when viewport ≥ 1400/0.78 ≈ 1795px */
  --dh-sec2-stage-max: 1400px;
  --dh-sec2-s: min(1, calc((100vw * 0.78) / 1400px));
  padding: calc(180px * var(--dh-sec2-s)) 0 24px;
  overflow: visible;
}

.dh-sec2__frame {
  position: relative;
  width: min(var(--dh-sec2-stage-max), 78%);
  margin: 0;
  overflow: visible;
}

.dh-sec2__stage {
  position: relative;
  width: 100%;
  z-index: 1;
  overflow: visible;
}

.dh-sec2__photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
}

.dh-sec2__man {
  position: absolute;
  left: calc(74% - (64px * var(--dh-sec2-s)));
  top: calc(220px * var(--dh-sec2-s));
  z-index: 4;
  width: calc(1000px * var(--dh-sec2-s));
  height: auto;
  pointer-events: none;
}

.dh-sec2__copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin: 0 0 48px;
  padding: 0;
  text-align: left;
}

.dh-sec2__heading {
  margin: 0 0 28px;
  line-height: 0;
}

.dh-sec2__bubble {
  display: block;
  width: min(520px, 92%);
  height: auto;
  margin: 0;
}

.dh-sec2__text {
  margin: 0;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
  text-align: left;
}

/* ----- 3. Lead copy + rough intro + cases ----- */
.dh-sec3 {
  background: #fff;
  padding: 0 0 72px;
  text-align: left;
  margin-top: -70px;
}

.dh-sec3__heading {
  margin: 0 0 22px;
  line-height: 0;
}

.dh-sec3__title-img {
  display: block;
  width: min(720px, 100%);
  height: auto;
  margin: 0;
}

.dh-sec3__text {
  margin: 0 0 56px;
  max-width: 760px;
  color: #444;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.95;
  text-align: left;
}

.dh-case {
  margin: 0 0 64px;
  text-align: left;
}

.dh-case:last-child {
  margin-bottom: 0;
}

.dh-case__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(460px, 100%);
  margin: 0 0 24px;
  padding: 14px 32px;
  border-radius: 999px;
  background: #e8e8e8;
  color: #111;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.dh-case__figure {
  margin: 0 0 20px;
}

.dh-case__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.dh-case__text {
  margin: 0;
  max-width: 760px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
  text-align: left;
}

/* ----- 5. CTA ----- */
.dh-sec5 {
  background: #ececec;
  padding: 0 0 88px;
  /* text-align: center; */
  /* Lock banner/heading offsets at 560px banner width; scale down to 320 */
  --dh-sec5-s: min(1, calc((100vw - 80px) / 560px));
}

.dh-sec5__banner {
  display: block;
  width: min(560px, 100%);
  height: auto;
  /* Align left edge with .dh-sec5__heading / __text (max-width: 720px, centered) */
  margin: 0 auto 0;
  margin-left: max(0px, calc((100% - min(720px, 100%)) / 2));
  margin-right: auto;
  transform: translateY(calc(-84px * var(--dh-sec5-s)));
}

.dh-sec5__heading {
  margin: calc(-40px * var(--dh-sec5-s)) auto calc(20px * var(--dh-sec5-s));
  max-width: 720px;
  color: #111;
  font-size: clamp(20px, 1.8vw, 16px);
  font-weight: 900;
  line-height: 1.5;
}

.dh-sec5__text {
  margin: 0 auto 36px;
  max-width: 720px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.95;
  /* text-align: center; */
}

.dh-sec5__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.dh-sec5__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: min(280px, 100%);
  min-height: 64px;
  padding: 14px 28px;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.dh-sec5__btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.dh-sec5__btn--line {
  background: #06c755;
}

.dh-sec5__btn--mail {
  background: #d3122a;
}

.dh-sec5__btn:hover {
  filter: brightness(1.05);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .dh-sec1 {
    background: #efce0a;
    padding: 0 0 56px;
  }

  .dh-sec1__inner {
    width: calc(100% - 40px);
    padding-top: 140px;
  }

  .dh-inner {
    width: calc(100% - 40px);
  }

  .dh-sec1__title {
    width: min(480px, 92%);
  }

  .dh-sec2 {
    padding: 24px 0 16px;
  }

  .dh-sec2__bubble {
    width: min(420px, 88%);
  }

  .dh-sec2__copy {
    margin: 0 auto 40px;
  }

  .dh-sec3 {
    padding: 0 0 56px;
    margin-top: -50px;
  }

  .dh-sec2__text,
  .dh-sec3__text {
    font-size: 14px;
  }

  .dh-case__label {
    min-width: 0;
    width: 100%;
    font-size: 15px;
    padding: 12px 18px;
  }

  .dh-case__text,
  .dh-sec5__text {
    font-size: 13px;
  }

  .dh-sec5 {
    /* Freeze 768 composition; scale to 320 */
    --dh-sec5-768-s: calc(100vw / 768px);
    --dh-sec5-s: var(--dh-sec5-768-s);
    padding: calc(48px * var(--dh-sec5-768-s)) 0 calc(64px * var(--dh-sec5-768-s));
  }

  .dh-sec5__banner {
    width: calc(560px * var(--dh-sec5-768-s));
    max-width: 100%;
    transform: translateY(calc(-124px * var(--dh-sec5-768-s)));
  }

  .dh-sec5__btn {
    min-width: min(100%, 320px);
    min-height: 56px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .dh-br {
    display: none;
  }

  .dh-sec1 {
    background: #efce0a;
    padding: 0 0 56px;
  }

  .dh-sec1__inner {
    width: calc(100% - 32px);
    padding-top: 120px;
  }

  .dh-inner {
    width: calc(100% - 32px);
  }

  .dh-sec5 {
    /* Keep 768→320 lock (do not switch to a different scale) */
    --dh-sec5-768-s: calc(100vw / 768px);
    --dh-sec5-s: var(--dh-sec5-768-s);
  }

  .dh-sec2__bubble {
    width: min(300px, 83%);
  }

  .dh-sec2__copy {
    margin: 0 auto 32px;
  }

  .dh-sec5__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 425px) {
  .dh-sec3 {
    padding: 0 0 56px;
    margin-top: -44px;
  }
}
