.dofin-home-page .advisor-home-lead-form-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 1200px) {
  .dofin-home-hero2-kicker, .dofin-home-hero2-copy h1 { font-size: 44px; }
  .dofin-home-hero2-text, .dofin-home-hero2-cta { font-size: 28px; }
}

@media (min-width: 901px) and (max-width: 1279px) {
  .dofin-home-page .advisor-process-section .advisor-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 1vw, 1rem);
  }
}

@media (max-width: 900px) {
  .dofin-home-page .advisor-section > .container,
  .dofin-home-page .advisor-trust-section > .container,
  .dofin-home-page .advisor-form-section > .container,
  .dofin-home-page .advisor-final-cta > .container,
  .dofin-home-page .advisor-photo-break-section > .container {
    width: min(100% - 40px, 1160px);
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .dofin-home-page .advisor-card-grid,
  .dofin-home-page .advisor-steps,
  .dofin-home-page .advisor-trust-bar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .dofin-home-page .advisor-card-grid,
  .dofin-home-page .advisor-steps {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .dofin-home-page .advisor-card,
  .dofin-home-page .advisor-step {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .dofin-home-page .dofin-animate-from-right {
    overflow-x: clip;
  }

  .dofin-home-hero2-grid {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
  }
  .dofin-home-hero2-copy { padding: 2rem 0 1rem; }
  .dofin-home-hero2-kicker, .dofin-home-hero2-copy h1 { font-size: 32px; }
  .dofin-home-hero2-text { font-size: 22px; }
  .dofin-home-hero2-cta { font-size: 20px; min-height: 54px; }
  .dofin-home-hero2-media { justify-content: center; }
}

@media (min-width: 920px) {
  .dofin-home-page .advisor-form-section .advisor-form-card-compact {
    max-width: 980px;
  }

  .dofin-home-after-hero {
    margin-top: -64px;
  }

  .dofin-home-after-hero > .advisor-trust-section {
    padding-top: calc(26px + 64px);
  }

  .dofin-home-hero3-inner {
    padding-top: clamp(4.6rem, 7vh, 6.1rem);
    padding-bottom: clamp(4.6rem, 7vh, 6.1rem);
  }

  .dofin-home-page .advisor-social-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }

  .dofin-home-page .advisor-social-copy,
  .dofin-home-page .advisor-social-card,
  .dofin-home-page .advisor-social-photo,
  .dofin-home-page .advisor-social-stats,
  .dofin-home-page .advisor-social-stat {
    min-width: 0;
  }

  .dofin-home-page .advisor-social-card {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .dofin-home-page .advisor-social-card.dofin-animate-from-right {
    overflow: visible;
  }

  .dofin-home-page .advisor-social-card.dofin-animate-from-right .dofin-animate-card[data-animate-ready="1"] {
    transform: translate3d(24px, 0, 0);
  }

  .dofin-home-page .advisor-social-card.dofin-animate-from-right .dofin-animate-card.is-visible {
    transform: none;
  }

  .dofin-home-page .advisor-social-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dofin-home-page .advisor-social-stat {
    overflow: visible;
  }

  .dofin-home-page .advisor-social-stat span {
    overflow-wrap: anywhere;
  }

  .dofin-home-page .advisor-process-section .advisor-steps {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: clamp(0.75rem, 1vw, 1rem);
  }

  .dofin-home-page .advisor-process-section .advisor-step,
  .dofin-home-page .advisor-process-section .advisor-step h3,
  .dofin-home-page .advisor-process-section .advisor-step p {
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
  }

  .dofin-home-page .advisor-process-section .advisor-steps.dofin-animate-from-right {
    overflow: visible;
  }

  .dofin-home-page .advisor-process-section .advisor-steps.dofin-animate-from-right .dofin-animate-card[data-animate-ready="1"] {
    transform: translate3d(24px, 0, 0);
  }

  .dofin-home-page .advisor-process-section .advisor-steps.dofin-animate-from-right .dofin-animate-card.is-visible {
    transform: none;
  }
}

@media (min-width: 901px) {
  .dofin-home-hero3 {
    --hero3-image-width: auto;
    --hero3-image-height: min(84%, 760px);
    --hero3-image-object-position: right bottom;
  }

  .dofin-home-hero3-bg {
    inset: 0 clamp(1rem, 4vw, 4rem) 0 0;
  }
}

@media (min-width: 1280px) {
  .dofin-home-page .advisor-process-section .advisor-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .dofin-home-hero3 {
    place-items: stretch;
    align-items: stretch;
    --hero3-image-width: auto;
    --hero3-image-height: min(100%, 1120px);
    --hero3-image-object-position: right bottom;
  }

  .dofin-home-hero3-bg {
    inset: 0 clamp(1rem, 4vw, 4rem) 0 0;
  }

  .dofin-home-hero3-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100svh;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    padding-top: clamp(7rem, 11vh, 8.5rem);
    padding-bottom: clamp(2rem, 4vh, 3rem);
    padding-left: clamp(12rem, 18vw, 18rem);
    padding-right: min(46vw, 760px);
  }

  .dofin-home-hero3-title {
    max-width: min(36vw, 620px);
  }

  .dofin-home-hero3-subheadline {
    max-width: min(30vw, 520px);
  }
}

@media (max-width: 900px) {
  .dofin-home-after-hero {
    margin-top: -32px;
  }

  .dofin-home-after-hero > .advisor-trust-section {
    border-radius: 24px 24px 0 0;
    padding-top: calc(18px + 32px);
  }

  .dofin-home-hero3 {
    min-height: 100vh;
    min-height: 100svh;
    --hero3-image-width: 100%;
    --hero3-image-height: 100%;
    --hero3-image-object-position: center top;
  }

  .dofin-home-hero3-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
  }
}

@media (max-width: 768px) {
  .dofin-home-page .dofin-document-nav--transparent {
    box-sizing: border-box;
    min-height: 88px;
    align-items: center;
  }

  .dofin-home-page .dofin-document-nav--transparent .dofin-document-nav-logo,
  .dofin-home-page .dofin-document-nav--transparent .dofin-document-nav-toggle {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
  }

  .dofin-home-page .dofin-document-nav--transparent .dofin-document-nav-toggle {
    margin-left: auto;
  }

  .dofin-home-hero3 {
    height: auto;
    min-height: 100svh;
    align-items: stretch;
    overflow: visible;
    --hero3-mobile-image-offset: 24px;
    --hero3-image-width: 100%;
    --hero3-image-height: 100%;
    --hero3-image-object-position: center var(--hero3-mobile-image-offset, 24px);
  }

  .dofin-home-hero3 .dofin-home-hero3-after-typing-cta {
    transform: translate3d(0, 12px, 0);
  }

  .dofin-home-hero3-overlay {
    display: block;
    inset: 0;
    width: auto;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 5%,
        rgba(255, 255, 255, 0) 10%,
        rgba(24, 36, 52, 0.2) 34%,
        rgba(2, 13, 27, 0.62) 48%,
        rgba(2, 13, 27, 0.94) 62%,
        rgba(2, 13, 27, 1) 74%,
        rgba(2, 13, 27, 1) 100%
      );
  }

  .dofin-home-hero3-bg {
    filter: none;
    opacity: 1;
    mix-blend-mode: normal;
  }

  .dofin-home-hero3::after {
    content: none;
    display: none;
  }

  .dofin-home-hero3-inner {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: min(100% - 32px, 560px);
    max-width: 100%;
    min-width: 0;
    min-height: 100svh;
    box-sizing: border-box;
    text-align: center;
    padding: calc(7.25rem + env(safe-area-inset-top)) 0 calc(5.25rem + env(safe-area-inset-bottom));
  }

  .dofin-home-hero3-badge {
    margin-left: auto;
    margin-right: auto;
    color: #06264d;
  }

  .dofin-home-hero3-title {
    max-width: 100%;
    min-height: calc(2em * 0.99);
    color: #ffffff;
  }

  .dofin-home-hero3-subheadline {
    margin-top: 1.15rem;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.42;
  }

  .dofin-home-hero3-cta {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    padding: 0.95rem 1.25rem;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 768px) and (max-height: 740px) {
  .dofin-home-hero3 {
    --hero3-mobile-image-offset: 12px;
    --hero3-image-object-position: center var(--hero3-mobile-image-offset, 12px);
  }
}

@media (max-width: 768px) and (min-height: 820px) {
  .dofin-home-hero3 {
    --hero3-mobile-image-offset: 28px;
    --hero3-image-object-position: center var(--hero3-mobile-image-offset, 28px);
  }
}
